@pantheon-systems/pds-toolkit-react 2.0.0-alpha.8 → 2.0.0-alpha.80
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 +1787 -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/Avatar/Avatar.d.ts +5 -1
- 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/IdentityBlock/IdentityBlock.d.ts +37 -0
- package/dist/components/PantheonLogo/PantheonLogo.d.ts +5 -4
- package/dist/components/Popover/Popover.d.ts +5 -1
- 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/Table/Table.d.ts +356 -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 +6 -2
- 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 +53 -19
- 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 +7 -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 +226 -16
- package/dist/components/icons/PaymentIcon/PaymentIcon.d.ts +7 -3
- package/dist/components/icons/PlatformIcon/PlatformIcon.d.ts +6 -6
- package/dist/components/inputs/Checkbox/Checkbox.d.ts +3 -3
- package/dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +9 -1
- package/dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +9 -1
- package/dist/components/inputs/Combobox/Combobox.d.ts +17 -7
- package/dist/components/inputs/ComboboxMultiselect/ComboboxMultiselect.d.ts +10 -5
- package/dist/components/inputs/Datepicker/Datepicker.d.ts +217 -14
- package/dist/components/inputs/FileUpload/FileUpload.d.ts +6 -1
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +10 -2
- package/dist/components/inputs/Select/Select.d.ts +11 -2
- package/dist/components/inputs/Switch/Switch.d.ts +5 -5
- package/dist/components/inputs/TagsInput/TagsInput.d.ts +6 -1
- package/dist/components/inputs/TextInput/TextInput.d.ts +4 -4
- package/dist/components/inputs/Textarea/Textarea.d.ts +2 -2
- package/dist/components/inputs/Timepicker/Timepicker.d.ts +94 -0
- package/dist/components/inputs/input-utilities.d.ts +12 -2
- 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/ButtonNav/ButtonNav.d.ts +11 -5
- package/dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +1 -0
- package/dist/components/navigation/Navbar/Navbar.d.ts +9 -21
- 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/overlays/Drawer/Drawer.d.ts +58 -0
- package/dist/components/overlays/FullScreenOverlay/FullScreenOverlay.d.ts +45 -0
- package/dist/components/{Modal → overlays/Modal}/Modal.d.ts +1 -1
- package/dist/components/{Pagination → pagination/Pagination}/Pagination.d.ts +7 -2
- package/dist/components/pagination/PaginationChapter/PaginationChapter.d.ts +55 -0
- package/dist/components/pagination/PaginationCompact/PaginationCompact.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 +4 -21
- package/dist/components/panels/PanelList/PanelList.d.ts +1 -1
- package/dist/components/panels/PanelStack/PanelStack.d.ts +19 -0
- package/dist/components/panels/WidgetPanel/WidgetPanel.d.ts +39 -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-action-card.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-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 -0
- 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 +3 -3
- 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 +187 -57
- package/dist/css/component-css/pds-inline-message.css +1 -1
- package/dist/css/component-css/pds-input-group.css +1 -1
- package/dist/css/component-css/pds-input-utilities.css +1 -1
- package/dist/css/component-css/pds-line-chart.css +1 -0
- package/dist/css/component-css/pds-link-new-window.css +1 -1
- package/dist/css/component-css/pds-menu-button.css +7 -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 -5
- 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-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.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 +187 -57
- 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 +103 -7
- package/dist/index.js +13227 -4807
- package/dist/index.js.map +1 -1
- package/dist/index.source.d.ts +53 -41
- 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 +36 -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/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 +5 -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/floppyDisk.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/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/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 +6 -6
- package/dist/utilities/GlobalWrapper/GlobalWrapper.d.ts +35 -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 +58 -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 +148 -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 +78 -46
- package/tailwind/README.md +9 -0
- package/tailwind/v3/preset.cjs +20 -0
- package/tailwind/v4/theme.css +19 -0
- 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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, MouseEvent, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { StatusType } from '../../../libs/types/custom-types';
|
|
3
3
|
import { Button } from '../../buttons/Button/Button';
|
|
4
|
+
import { PDSIcon } from '../../icons/Icon/Icon';
|
|
4
5
|
import './section-message.css';
|
|
5
6
|
export type SectionMessageType = StatusType;
|
|
6
7
|
type TypeLabels = Record<SectionMessageType, string>;
|
|
@@ -15,9 +16,10 @@ export interface SectionMessageProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
15
16
|
*/
|
|
16
17
|
ctaButton?: ComponentPropsWithoutRef<typeof Button>;
|
|
17
18
|
/**
|
|
18
|
-
*
|
|
19
|
+
* Optional leading icon for `ctaButton`. Always colored to match the
|
|
20
|
+
* section message's own foreground color.
|
|
19
21
|
*/
|
|
20
|
-
|
|
22
|
+
ctaIcon?: PDSIcon;
|
|
21
23
|
/**
|
|
22
24
|
* Label for dismiss button. Provide a translation string if needed.
|
|
23
25
|
*/
|
|
@@ -38,6 +40,12 @@ export interface SectionMessageProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
38
40
|
* Callback function when message is dismissed.
|
|
39
41
|
*/
|
|
40
42
|
onDismiss?: (event: MouseEvent<HTMLButtonElement>, id: string) => void;
|
|
43
|
+
/**
|
|
44
|
+
* Props for an optional secondary action, rendered before `ctaButton` so the
|
|
45
|
+
* more prominent action sits on the outside. Can include any Button props
|
|
46
|
+
* except for size. Defaults to the `link` variant.
|
|
47
|
+
*/
|
|
48
|
+
secondaryCta?: ComponentPropsWithoutRef<typeof Button>;
|
|
41
49
|
/**
|
|
42
50
|
* Message title.
|
|
43
51
|
*/
|
|
@@ -54,5 +62,5 @@ export interface SectionMessageProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
54
62
|
/**
|
|
55
63
|
* SectionMessage UI component
|
|
56
64
|
*/
|
|
57
|
-
export declare const SectionMessage: ({ className, ctaButton,
|
|
65
|
+
export declare const SectionMessage: ({ className, ctaButton, ctaIcon, dismissLabel, id, isDismissible, message, onDismiss, secondaryCta, title, type, typeLabels, ...props }: SectionMessageProps) => import("react/jsx-runtime").JSX.Element;
|
|
58
66
|
export {};
|
|
@@ -18,6 +18,12 @@ declare const defaultTypeLabels: {
|
|
|
18
18
|
* Prop types for Toast
|
|
19
19
|
*/
|
|
20
20
|
interface ToastProps extends ComponentPropsWithoutRef<'div'> {
|
|
21
|
+
/**
|
|
22
|
+
* Duration in milliseconds before the toast auto-dismisses. When set, shows
|
|
23
|
+
* a progress bar and pause button. Populated automatically by useToast —
|
|
24
|
+
* consumers do not need to set this.
|
|
25
|
+
*/
|
|
26
|
+
autoCloseDuration?: number;
|
|
21
27
|
/**
|
|
22
28
|
* Toast message content.
|
|
23
29
|
*/
|
|
@@ -30,6 +36,11 @@ interface ToastProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
30
36
|
* ID of individual toast.
|
|
31
37
|
*/
|
|
32
38
|
id?: string;
|
|
39
|
+
/**
|
|
40
|
+
* React-Toastify toast ID, used to control the pause/resume timer.
|
|
41
|
+
* Populated automatically by useToast — consumers do not need to set this.
|
|
42
|
+
*/
|
|
43
|
+
toastId?: string | number;
|
|
33
44
|
/**
|
|
34
45
|
* Type of toast to show.
|
|
35
46
|
*/
|
|
@@ -42,5 +53,5 @@ interface ToastProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
42
53
|
/**
|
|
43
54
|
* Toast UI component
|
|
44
55
|
*/
|
|
45
|
-
export declare const Toast: ({ children, className, id, type, typeLabels, }: ToastProps) => import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
export declare const Toast: ({ autoCloseDuration, children, className, id, toastId, type, typeLabels, }: ToastProps) => import("react/jsx-runtime").JSX.Element;
|
|
46
57
|
export {};
|
|
@@ -1,18 +1,27 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import 'react-toastify/dist/ReactToastify.css';
|
|
3
3
|
import './toaster.css';
|
|
4
|
+
export declare const MIN_AUTO_CLOSE_DURATION = 30000;
|
|
5
|
+
type PauseResumeLabels = {
|
|
6
|
+
pause: string;
|
|
7
|
+
resume: string;
|
|
8
|
+
};
|
|
9
|
+
export interface ToasterContextValue {
|
|
10
|
+
labelStrings: PauseResumeLabels;
|
|
11
|
+
}
|
|
12
|
+
export declare const ToasterContext: React.Context<ToasterContextValue>;
|
|
4
13
|
/**
|
|
5
|
-
* Prop types for
|
|
14
|
+
* Prop types for Toaster
|
|
6
15
|
*/
|
|
7
16
|
interface ToasterProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
|
-
/**
|
|
9
|
-
* Duration in milliseconds before the toast will auto-close. Set to `false` to disable auto-close (default).
|
|
10
|
-
*/
|
|
11
|
-
autoCloseDuration?: number | false;
|
|
12
17
|
/**
|
|
13
18
|
* Additional class names
|
|
14
19
|
*/
|
|
15
20
|
className?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Label strings for the pause and resume buttons. Provide translation strings if needed.
|
|
23
|
+
*/
|
|
24
|
+
labelStrings?: PauseResumeLabels;
|
|
16
25
|
/**
|
|
17
26
|
* Maximum number of toasts that can be displayed at once.
|
|
18
27
|
*/
|
|
@@ -25,5 +34,5 @@ interface ToasterProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
25
34
|
/**
|
|
26
35
|
* Toaster UI component
|
|
27
36
|
*/
|
|
28
|
-
export declare const Toaster: ({
|
|
37
|
+
export declare const Toaster: ({ className, labelStrings, limit, position, }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
38
|
export {};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { cssTransition, toast as toastApi, ToastOptions } from 'react-toastify';
|
|
3
|
+
import { MIN_AUTO_CLOSE_DURATION } from './Toaster';
|
|
4
|
+
export { MIN_AUTO_CLOSE_DURATION };
|
|
3
5
|
export declare enum ToastType {
|
|
4
6
|
Critical = "critical",
|
|
5
7
|
Info = "info",
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import './bottom-sheet.css';
|
|
3
|
+
export interface BottomSheetProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
4
|
+
/**
|
|
5
|
+
* Aria label that describes the sheet. Falls back to `title` if not provided.
|
|
6
|
+
*/
|
|
7
|
+
ariaLabel?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Main content for the sheet. Pass a `slot="footer"` child for footer content
|
|
10
|
+
* (e.g. Prev/Next navigation), same pattern as `Drawer`.
|
|
11
|
+
*/
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Additional class names
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Text for the close button's aria-label attribute. Defaults to `'Close'`.
|
|
19
|
+
*/
|
|
20
|
+
closeButtonLabel?: string;
|
|
21
|
+
/**
|
|
22
|
+
* If true, clicking the scrim will not close the sheet.
|
|
23
|
+
*/
|
|
24
|
+
disableOutsideClick?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Height while expanded (dragged past the expand threshold, or the grabber
|
|
27
|
+
* tapped/activated once). Accepts any valid CSS value. Defaults to `'96dvh'`.
|
|
28
|
+
* Pass `null` to disable expansion entirely — the sheet can then only be
|
|
29
|
+
* dragged smaller (toward dismissal), never past its default `height`.
|
|
30
|
+
*/
|
|
31
|
+
expandedHeight?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
* Indicates if the built-in close button will be shown.
|
|
34
|
+
*/
|
|
35
|
+
hasCloseButton?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Default (collapsed) height. Accepts any valid CSS value. Defaults to `'62dvh'`.
|
|
38
|
+
*/
|
|
39
|
+
height?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Is the sheet open?
|
|
42
|
+
*/
|
|
43
|
+
isOpen?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Accessible label for the drag handle. Dragging resizes the sheet, but
|
|
46
|
+
* that's a pointer-only enhancement — for keyboard/screen reader users,
|
|
47
|
+
* activating this handle (Enter/Space) closes the sheet outright, the
|
|
48
|
+
* same as dragging it down past the dismiss threshold. Defaults to
|
|
49
|
+
* `'Close sheet'`.
|
|
50
|
+
*/
|
|
51
|
+
resizeLabel?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Function to set the sheet's open state.
|
|
54
|
+
*/
|
|
55
|
+
setIsOpen?: (isOpen: boolean) => void;
|
|
56
|
+
/**
|
|
57
|
+
* Title for the sheet. Accepts a string or ReactNode. Leave empty for no title.
|
|
58
|
+
*/
|
|
59
|
+
title?: ReactNode;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* BottomSheet UI component. A mobile-oriented overlay that slides up from the
|
|
63
|
+
* bottom of the viewport, with a draggable handle to resize between a default
|
|
64
|
+
* and an expanded height, or drag down past a threshold to dismiss.
|
|
65
|
+
*/
|
|
66
|
+
export declare const BottomSheet: ({ ariaLabel, children, className, closeButtonLabel, disableOutsideClick, expandedHeight, hasCloseButton, height, isOpen: isOpenProp, resizeLabel, setIsOpen: setIsOpenProp, title, ...props }: BottomSheetProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import './bulk-action-bar.css';
|
|
3
|
+
/**
|
|
4
|
+
* Prop types for BulkActionBar
|
|
5
|
+
*/
|
|
6
|
+
export interface BulkActionBarProps extends ComponentPropsWithoutRef<'div'> {
|
|
7
|
+
/**
|
|
8
|
+
* Action content (e.g. `MenuButton`s) rendered between the count and the
|
|
9
|
+
* clear button. Not opinionated about what it contains — this component
|
|
10
|
+
* only owns the count, the clear button, and the surrounding chrome.
|
|
11
|
+
* Since the bar always renders on a reverse (dark) surface, content
|
|
12
|
+
* should use variants suited to that — e.g. `MenuButton`'s
|
|
13
|
+
* `reverse-secondary`, `IconButton`'s `reverse`.
|
|
14
|
+
*/
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Additional class names
|
|
18
|
+
*/
|
|
19
|
+
className?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Accessible label for the built-in clear button. Defaults to `'Clear
|
|
22
|
+
* selection'`. Override for translation.
|
|
23
|
+
*/
|
|
24
|
+
clearLabel?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Number of items currently selected.
|
|
27
|
+
*/
|
|
28
|
+
count: number;
|
|
29
|
+
/**
|
|
30
|
+
* Returns the visible count label. Defaults to `(count) => \`${count} selected\``.
|
|
31
|
+
* Override for translation, or to describe what's selected (e.g. "3 sites selected").
|
|
32
|
+
*/
|
|
33
|
+
getCountLabel?: (count: number) => string;
|
|
34
|
+
/**
|
|
35
|
+
* Called when the clear button is activated. Typically clears the
|
|
36
|
+
* selection; whether that also exits any "select mode" the consumer has
|
|
37
|
+
* is up to them — this component has no opinion on that state.
|
|
38
|
+
*/
|
|
39
|
+
onClear: () => void;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* BulkActionBar UI component — a floating bar that surfaces a selection
|
|
43
|
+
* count and bulk actions once at least one item is selected. Pinned to the
|
|
44
|
+
* bottom of the viewport, content scrolls behind it. Mounting/unmounting
|
|
45
|
+
* based on selection state is the consumer's responsibility; this component
|
|
46
|
+
* always renders what it's given.
|
|
47
|
+
*/
|
|
48
|
+
export declare const BulkActionBar: ({ children, className, clearLabel, count, getCountLabel, onClear, ...props }: BulkActionBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import './drawer.css';
|
|
3
|
+
export type DrawerPlacement = 'left' | 'right';
|
|
4
|
+
export type DrawerSize = 's' | 'm' | 'l';
|
|
5
|
+
export interface DrawerProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
6
|
+
/**
|
|
7
|
+
* Aria label that describes the drawer. Will default to the title if not provided.
|
|
8
|
+
*/
|
|
9
|
+
ariaLabel?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Main content for the drawer.
|
|
12
|
+
*/
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Additional class names
|
|
16
|
+
*/
|
|
17
|
+
className?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Text for close button aria-label attribute.
|
|
20
|
+
*/
|
|
21
|
+
closeButtonLabel?: string;
|
|
22
|
+
/**
|
|
23
|
+
* If true, clicking outside the drawer will not close it.
|
|
24
|
+
*/
|
|
25
|
+
disableOutsideClick?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Indicates if the built-in close button will be shown.
|
|
28
|
+
*/
|
|
29
|
+
hasCloseButton?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Is the drawer open?
|
|
32
|
+
*/
|
|
33
|
+
isOpen?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Which edge of the screen the drawer slides in from.
|
|
36
|
+
*/
|
|
37
|
+
placement?: DrawerPlacement;
|
|
38
|
+
/**
|
|
39
|
+
* Function to set the drawer open state.
|
|
40
|
+
*/
|
|
41
|
+
setIsOpen?: (isOpen: boolean) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Preset width of the drawer. Overridden by the `width` prop if provided.
|
|
44
|
+
*/
|
|
45
|
+
size?: DrawerSize;
|
|
46
|
+
/**
|
|
47
|
+
* Title for the drawer. Accepts a string or ReactNode (e.g., a logo). Leave empty for no title.
|
|
48
|
+
*/
|
|
49
|
+
title?: ReactNode;
|
|
50
|
+
/**
|
|
51
|
+
* Custom width for the drawer. Accepts any valid CSS value (e.g. '50vw', '800px', '40rem'). Overrides the `size` prop.
|
|
52
|
+
*/
|
|
53
|
+
width?: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Drawer UI component
|
|
57
|
+
*/
|
|
58
|
+
export declare const Drawer: ({ ariaLabel, children, className, closeButtonLabel, disableOutsideClick, hasCloseButton, isOpen: isOpenProp, placement, setIsOpen: setIsOpenProp, size, title, width, ...props }: DrawerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { PDSIcon } from '../../icons/Icon/Icon';
|
|
3
|
+
import './full-screen-overlay.css';
|
|
4
|
+
export interface FullScreenOverlayProps extends ComponentPropsWithoutRef<'div'> {
|
|
5
|
+
/**
|
|
6
|
+
* Accessible label for the overlay.
|
|
7
|
+
*/
|
|
8
|
+
ariaLabel: string;
|
|
9
|
+
/**
|
|
10
|
+
* Background color of the overlay surface.
|
|
11
|
+
* - 'default': white / dark-mode dark (default)
|
|
12
|
+
* - 'default-secondary': slightly off-white / dark-mode slightly lighter dark
|
|
13
|
+
*/
|
|
14
|
+
background?: 'default' | 'default-secondary';
|
|
15
|
+
/**
|
|
16
|
+
* Content rendered inside the overlay.
|
|
17
|
+
*/
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Additional class names.
|
|
21
|
+
*/
|
|
22
|
+
className?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Accessible label for the close button.
|
|
25
|
+
*/
|
|
26
|
+
closeButtonLabel?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Icon to use for the close button. Defaults to 'compress'.
|
|
29
|
+
*/
|
|
30
|
+
closeIconName?: PDSIcon;
|
|
31
|
+
/**
|
|
32
|
+
* Whether to show the built-in close button. Set to false when providing
|
|
33
|
+
* your own close control (e.g. in a UtilityBar).
|
|
34
|
+
*/
|
|
35
|
+
hasCloseButton?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the overlay is currently open.
|
|
38
|
+
*/
|
|
39
|
+
isOpen: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Callback when the overlay should close.
|
|
42
|
+
*/
|
|
43
|
+
onClose: () => void;
|
|
44
|
+
}
|
|
45
|
+
export declare const FullScreenOverlay: ({ ariaLabel, background, children, className, closeButtonLabel, closeIconName, hasCloseButton, isOpen, onClose, ...props }: FullScreenOverlayProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { HeadingLevelCommon } from '
|
|
2
|
+
import { HeadingLevelCommon } from '../../../libs/types/custom-types';
|
|
3
3
|
import './pagination.css';
|
|
4
|
+
export type PaginationSize = 's' | 'm';
|
|
4
5
|
/**
|
|
5
6
|
* Prop types for Pagination
|
|
6
7
|
*/
|
|
@@ -43,6 +44,10 @@ export interface PaginationProps extends ComponentPropsWithoutRef<'nav'> {
|
|
|
43
44
|
* For example: `onPageChange={(page) => setCurrentPage(page)}`
|
|
44
45
|
*/
|
|
45
46
|
onPageChange?: (page: number) => void;
|
|
47
|
+
/**
|
|
48
|
+
* Size of the pagination items.
|
|
49
|
+
*/
|
|
50
|
+
size?: PaginationSize;
|
|
46
51
|
/**
|
|
47
52
|
* Total number of items to paginate.
|
|
48
53
|
*/
|
|
@@ -51,4 +56,4 @@ export interface PaginationProps extends ComponentPropsWithoutRef<'nav'> {
|
|
|
51
56
|
/**
|
|
52
57
|
* Pagination UI component
|
|
53
58
|
*/
|
|
54
|
-
export declare const Pagination: ({ bufferCount, className, currentPage, headingLevel, headingText, itemsPerPage, labelStrings, onPageChange, totalItemCount, ...props }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
export declare const Pagination: ({ bufferCount, className, currentPage, headingLevel, headingText, itemsPerPage, labelStrings, onPageChange, size, totalItemCount, ...props }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { HeadingLevelCommon } from '../../../libs/types/custom-types';
|
|
3
|
+
import './pagination-chapter.css';
|
|
4
|
+
/**
|
|
5
|
+
* Prop types for PaginationChapter
|
|
6
|
+
*/
|
|
7
|
+
export interface PaginationChapterProps extends ComponentPropsWithoutRef<'nav'> {
|
|
8
|
+
/**
|
|
9
|
+
* Additional class names.
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Current page number.
|
|
14
|
+
*/
|
|
15
|
+
currentPage: number;
|
|
16
|
+
/**
|
|
17
|
+
* Heading level. Defaults to `h2`.
|
|
18
|
+
*/
|
|
19
|
+
headingLevel?: HeadingLevelCommon;
|
|
20
|
+
/**
|
|
21
|
+
* Heading text for the pagination component. Will only be accessible to screen readers.
|
|
22
|
+
*/
|
|
23
|
+
headingText?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Number of items per page.
|
|
26
|
+
*/
|
|
27
|
+
itemsPerPage?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Translatable label strings.
|
|
30
|
+
*/
|
|
31
|
+
labelStrings?: {
|
|
32
|
+
next: string;
|
|
33
|
+
previous: string;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Title of the next page. Displayed as the clickable label on the next button.
|
|
37
|
+
*/
|
|
38
|
+
nextPage?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Callback to handle page change.
|
|
41
|
+
*/
|
|
42
|
+
onPageChange?: (page: number) => void;
|
|
43
|
+
/**
|
|
44
|
+
* Title of the previous page. Displayed as the clickable label on the previous button.
|
|
45
|
+
*/
|
|
46
|
+
previousPage?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Total number of items to paginate.
|
|
49
|
+
*/
|
|
50
|
+
totalItemCount: number;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* PaginationChapter UI component — previous/next navigation with page labels.
|
|
54
|
+
*/
|
|
55
|
+
export declare const PaginationChapter: ({ className, currentPage, headingLevel, headingText, itemsPerPage, labelStrings, nextPage, onPageChange, previousPage, totalItemCount, ...props }: PaginationChapterProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { HeadingLevelCommon } from '../../../libs/types/custom-types';
|
|
3
|
+
import './pagination-compact.css';
|
|
4
|
+
export type PaginationCompactPageControlType = 'dropdown' | 'input' | 'static';
|
|
5
|
+
/**
|
|
6
|
+
* Prop types for PaginationCompact
|
|
7
|
+
*/
|
|
8
|
+
export interface PaginationCompactProps extends ComponentPropsWithoutRef<'nav'> {
|
|
9
|
+
/**
|
|
10
|
+
* Additional class names.
|
|
11
|
+
*/
|
|
12
|
+
className?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Current page number.
|
|
15
|
+
*/
|
|
16
|
+
currentPage: number;
|
|
17
|
+
/**
|
|
18
|
+
* Heading level. Defaults to `h2`.
|
|
19
|
+
*/
|
|
20
|
+
headingLevel?: HeadingLevelCommon;
|
|
21
|
+
/**
|
|
22
|
+
* Heading text for the pagination component. Will only be accessible to screen readers.
|
|
23
|
+
*/
|
|
24
|
+
headingText?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Number of items per page.
|
|
27
|
+
*/
|
|
28
|
+
itemsPerPage?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Translatable label strings.
|
|
31
|
+
*/
|
|
32
|
+
labelStrings?: {
|
|
33
|
+
next: string;
|
|
34
|
+
of: string;
|
|
35
|
+
/**
|
|
36
|
+
* Label shown before the page selector (e.g. "Page 1 of 50"). Pass `null` to omit it.
|
|
37
|
+
*/
|
|
38
|
+
page?: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* Validation message shown when a typed page number is out of range. `{total}` is replaced with the total page count. Only used when `pageControlType` is `'input'`.
|
|
41
|
+
*/
|
|
42
|
+
pageInputError: string;
|
|
43
|
+
pageSelect: string;
|
|
44
|
+
previous: string;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Callback to handle page change.
|
|
48
|
+
*/
|
|
49
|
+
onPageChange?: (page: number) => void;
|
|
50
|
+
/**
|
|
51
|
+
* Which control to use for jumping to a page: a dropdown select or a typed
|
|
52
|
+
* number input. `'static'` renders the current page as plain text instead
|
|
53
|
+
* — no direct jump-to-page at all, just Prev/Next — for contexts where
|
|
54
|
+
* that control isn't worth the space (e.g. a mobile card list, where
|
|
55
|
+
* search/filter is the more realistic way to narrow a large result set
|
|
56
|
+
* down, not paging through it one page at a time). Defaults to `'dropdown'`.
|
|
57
|
+
*/
|
|
58
|
+
pageControlType?: PaginationCompactPageControlType;
|
|
59
|
+
/**
|
|
60
|
+
* Total number of items to paginate.
|
|
61
|
+
*/
|
|
62
|
+
totalItemCount: number;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* PaginationCompact UI component — page selector dropdown with previous/next controls.
|
|
66
|
+
*/
|
|
67
|
+
export declare const PaginationCompact: ({ className, currentPage, headingLevel, headingText, itemsPerPage, labelStrings, onPageChange, pageControlType, totalItemCount, ...props }: PaginationCompactProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import './expansion-panel.css';
|
|
|
3
3
|
/**
|
|
4
4
|
* Prop types for ExpansionPanel
|
|
5
5
|
*/
|
|
6
|
-
interface ExpansionPanelProps extends ComponentPropsWithoutRef<'div'> {
|
|
6
|
+
export interface ExpansionPanelProps extends ComponentPropsWithoutRef<'div'> {
|
|
7
7
|
/**
|
|
8
8
|
* The content of the expansion panel.
|
|
9
9
|
*/
|
|
@@ -33,4 +33,3 @@ interface ExpansionPanelProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
33
33
|
* ExpansionPanel UI component
|
|
34
34
|
*/
|
|
35
35
|
export declare const ExpansionPanel: ({ children, className, id, isOpen, showBorder, summary, ...props }: ExpansionPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
36
|
-
export {};
|
|
@@ -3,7 +3,7 @@ import './expansion-panel-group.css';
|
|
|
3
3
|
/**
|
|
4
4
|
* Prop types for ExpansionPanelGroup
|
|
5
5
|
*/
|
|
6
|
-
interface ExpansionPanelGroupProps extends ComponentPropsWithoutRef<'div'> {
|
|
6
|
+
export interface ExpansionPanelGroupProps extends ComponentPropsWithoutRef<'div'> {
|
|
7
7
|
/**
|
|
8
8
|
* The content of the expansion panel group. This should be a series of ExpansionPanel components.
|
|
9
9
|
*/
|
|
@@ -21,4 +21,3 @@ interface ExpansionPanelGroupProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
21
21
|
* ExpansionPanelGroup UI component
|
|
22
22
|
*/
|
|
23
23
|
export declare const ExpansionPanelGroup: ({ children, className, displayType, ...props }: ExpansionPanelGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export {};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { ImageDisplayVariant } from '../../../libs/types/layout-types';
|
|
3
|
+
import { Button } from '../../buttons/Button/Button';
|
|
4
|
+
import { ButtonLink } from '../../buttons/ButtonLink/ButtonLink';
|
|
5
|
+
import './feature-panel.css';
|
|
6
|
+
/**
|
|
7
|
+
* Prop types for FeaturePanel
|
|
8
|
+
*/
|
|
9
|
+
export interface FeaturePanelProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
10
|
+
/**
|
|
11
|
+
* Additional class names
|
|
12
|
+
*/
|
|
13
|
+
className?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Body content.
|
|
16
|
+
*/
|
|
17
|
+
content: string;
|
|
18
|
+
/**
|
|
19
|
+
* Props for an optional call to action. Pass `ButtonLink` props (must
|
|
20
|
+
* include `linkContent`) to render a link, or `Button` props to render a
|
|
21
|
+
* button. Always renders at `variant="brand"` `size="sm"` regardless of
|
|
22
|
+
* what's passed in.
|
|
23
|
+
*/
|
|
24
|
+
cta?: ComponentPropsWithoutRef<typeof Button> | ComponentPropsWithoutRef<typeof ButtonLink>;
|
|
25
|
+
/**
|
|
26
|
+
* Label for the close button. Provide a translation string if needed.
|
|
27
|
+
*/
|
|
28
|
+
dismissLabel?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Heading text. Rendered as an `h2`.
|
|
31
|
+
*/
|
|
32
|
+
heading: string;
|
|
33
|
+
/**
|
|
34
|
+
* An optional image. Pass the full element, e.g.
|
|
35
|
+
* `<img alt="..." src="..." />`. Aspect ratio isn't enforced, but
|
|
36
|
+
* `1:1`–`3:2` works best in `vertical` layout, and `1:1` is a reasonable
|
|
37
|
+
* starting point for `horizontal` (see the MDX docs for why — that one
|
|
38
|
+
* shifts with panel width and copy length, so preview it for real).
|
|
39
|
+
*/
|
|
40
|
+
image?: ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* Controls how the image fills its side of the panel. Only relevant when
|
|
43
|
+
* an image is provided.
|
|
44
|
+
* - `bleed` (default): image extends to the panel edges, corners rounded
|
|
45
|
+
* only where it meets the panel's own edge.
|
|
46
|
+
* - `inset`: image has padding on all sides, all corners rounded.
|
|
47
|
+
*/
|
|
48
|
+
imageVariant?: ImageDisplayVariant;
|
|
49
|
+
/**
|
|
50
|
+
* Shows a close button in the upper-right corner that calls `onDismiss`
|
|
51
|
+
* when clicked. The panel does not remove or hide itself — that's up to
|
|
52
|
+
* the consumer.
|
|
53
|
+
*/
|
|
54
|
+
isDismissible?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Which way the panel lays out its image and content.
|
|
57
|
+
* - `vertical` (default): image on top, content below.
|
|
58
|
+
* - `horizontal`: image on the left, content on the right. Only takes
|
|
59
|
+
* effect at the `bp-m` breakpoint and up — below that it collapses to
|
|
60
|
+
* the same stacked layout as `vertical`.
|
|
61
|
+
*/
|
|
62
|
+
layout?: 'horizontal' | 'vertical';
|
|
63
|
+
/**
|
|
64
|
+
* Called when the close button is clicked. Required in practice when
|
|
65
|
+
* `isDismissible` is true.
|
|
66
|
+
*/
|
|
67
|
+
onDismiss?: () => void;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* FeaturePanel UI component
|
|
71
|
+
*/
|
|
72
|
+
export declare const FeaturePanel: ({ className, content, cta, dismissLabel, heading, image, imageVariant, isDismissible, layout, onDismiss, ...props }: FeaturePanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { GridGapOptions } from '../../../libs/types/layout-types';
|
|
2
|
+
import { PaddingScale } from '../../../libs/types/layout-types';
|
|
4
3
|
import './panel.css';
|
|
5
|
-
export type PanelStatusType = Exclude<StatusType, 'discovery'> | 'neutral';
|
|
6
|
-
type TypeLabels = Record<Exclude<StatusType, 'discovery'>, string>;
|
|
7
4
|
export interface PanelProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
5
|
/**
|
|
9
6
|
* Panel content.
|
|
@@ -13,30 +10,16 @@ export interface PanelProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
13
10
|
* Additional class names
|
|
14
11
|
*/
|
|
15
12
|
className?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Should the panel show a status indicator.
|
|
18
|
-
*/
|
|
19
|
-
hasStatusIndicator?: boolean;
|
|
20
13
|
/**
|
|
21
14
|
* Padding for the panel.
|
|
22
15
|
*/
|
|
23
|
-
padding?:
|
|
24
|
-
/**
|
|
25
|
-
* Status type for panel. Only renders if `hasStatusIndicator` is true.
|
|
26
|
-
*/
|
|
27
|
-
statusType?: PanelStatusType;
|
|
28
|
-
/**
|
|
29
|
-
* Status type labels for screen readers. Provide translation strings if needed.
|
|
30
|
-
* Set to empty string ('') to create a visual-only indicator.
|
|
31
|
-
*/
|
|
32
|
-
typeLabels?: TypeLabels;
|
|
16
|
+
padding?: PaddingScale;
|
|
33
17
|
/**
|
|
34
18
|
* Which variant of panel to render
|
|
35
19
|
*/
|
|
36
|
-
variant?: 'default' | 'sunken' | 'raised' | 'overlay' | 'critical';
|
|
20
|
+
variant?: 'default' | 'sunken' | 'raised' | 'overlay' | 'critical' | 'info' | 'warning' | 'success' | 'discovery';
|
|
37
21
|
}
|
|
38
22
|
/**
|
|
39
23
|
* Panel UI component
|
|
40
24
|
*/
|
|
41
|
-
export declare const Panel: ({ children, className,
|
|
42
|
-
export {};
|
|
25
|
+
export declare const Panel: ({ children, className, padding, variant, ...props }: PanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -24,7 +24,7 @@ export interface PanelListProps extends ComponentPropsWithoutRef<'ul'> {
|
|
|
24
24
|
/**
|
|
25
25
|
* Panel list size variants for block padding only.
|
|
26
26
|
*/
|
|
27
|
-
paddingSize?: '
|
|
27
|
+
paddingSize?: '2xs' | 'xs' | 's' | 'm' | 'l';
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* PanelList UI component
|