@pantheon-systems/pds-toolkit-react 2.0.0-alpha.2 → 2.0.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/components/Avatar/Avatar.d.ts +6 -2
- package/dist/components/ComparisonList/ComparisonList.d.ts +10 -1
- package/dist/components/Drawer/Drawer.d.ts +58 -0
- package/dist/components/Dropdown/Dropdown.d.ts +140 -0
- package/dist/components/Dropdown/DropdownSelectedIcon.d.ts +7 -0
- package/dist/components/FileDiff/FileDiff.d.ts +2 -2
- package/dist/components/IdentityBlock/IdentityBlock.d.ts +37 -0
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Popover/Popover.d.ts +5 -1
- package/dist/components/SiteDashboardHeading/SiteDashboardHeading.d.ts +1 -1
- package/dist/components/{RefreshChecker/RefreshChecker.d.ts → StatusChecker/StatusChecker.d.ts} +5 -19
- package/dist/components/StatusIndicator/StatusIndicator.d.ts +2 -2
- package/dist/components/Table/Table.d.ts +10 -19
- package/dist/components/Tabs/Tabs.d.ts +6 -1
- package/dist/components/Tag/Tag.d.ts +7 -2
- package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +14 -8
- package/dist/components/Tooltip/Tooltip.d.ts +5 -1
- package/dist/components/badges/Badge/Badge.d.ts +28 -0
- package/dist/components/buttons/CloseButton/CloseButton.d.ts +6 -6
- package/dist/components/buttons/IconButton/IconButton.d.ts +4 -0
- package/dist/components/buttons/MenuButton/MenuButton.d.ts +2 -7
- package/dist/components/cards/Card/Card.d.ts +1 -1
- package/dist/components/cards/NewSiteCard/NewSiteCard.d.ts +1 -1
- package/dist/components/cards/PricingCard/PricingCard.d.ts +6 -1
- package/dist/components/charts/BarChart/BarChart.d.ts +21 -0
- package/dist/components/charts/LineChart/LineChart.d.ts +22 -0
- package/dist/components/charts/shared/ChartAccessibleTable.d.ts +17 -0
- package/dist/components/charts/shared/ChartLegend.d.ts +25 -0
- package/dist/components/charts/shared/ChartSkeleton.d.ts +7 -0
- package/dist/components/charts/shared/chart-colors.d.ts +30 -0
- package/dist/components/charts/shared/chart-styles.d.ts +16 -0
- package/dist/components/charts/shared/formatters.d.ts +12 -0
- package/dist/components/charts/shared/types.d.ts +128 -0
- package/dist/components/empty-states/HorizontalEmptyState/HorizontalEmptyState.d.ts +1 -1
- package/dist/components/footer/SiteFooter/SiteFooter.d.ts +5 -1
- package/dist/components/icons/Icon/Icon.d.ts +11 -731
- package/dist/components/icons/Icon/IconSearch.d.ts +1 -0
- package/dist/components/icons/Icon/custom-icons.d.ts +46 -0
- package/dist/components/icons/Icon/generated-icon-data.d.ts +1450 -0
- package/dist/components/icons/Icon/icon-registry.d.ts +34 -0
- package/dist/components/icons/PaymentIcon/PaymentIcon.d.ts +7 -3
- package/dist/components/icons/PlatformIcon/PlatformIcon.d.ts +6 -6
- package/dist/components/inputs/Checkbox/Checkbox.d.ts +2 -2
- package/dist/components/inputs/Combobox/Combobox.d.ts +16 -6
- package/dist/components/inputs/ComboboxMultiselect/ComboboxMultiselect.d.ts +32 -5
- package/dist/components/inputs/Datepicker/Datepicker.d.ts +15 -1
- package/dist/components/inputs/FileUpload/FileUpload.d.ts +5 -0
- package/dist/components/inputs/Select/Select.d.ts +10 -1
- package/dist/components/inputs/Select/select-sample-data.d.ts +1 -0
- package/dist/components/inputs/Switch/Switch.d.ts +0 -16
- package/dist/components/inputs/TagsInput/TagsInput.d.ts +100 -0
- package/dist/components/inputs/TextInput/TextInput.d.ts +4 -0
- package/dist/components/inputs/Textarea/Textarea.d.ts +4 -0
- package/dist/components/inputs/input-utilities.d.ts +4 -3
- package/dist/components/{CTALink → links/CTALink}/CTALink.d.ts +1 -1
- package/dist/components/{LinkNewWindow → links/LinkNewWindow}/LinkNewWindow.d.ts +1 -1
- package/dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +1 -0
- package/dist/components/navigation/Navbar/Navbar.d.ts +1 -1
- package/dist/components/navigation/SideNavGlobal/SideNavGlobal.d.ts +5 -15
- package/dist/components/navigation/SideNavGlobal/SideNavGlobalItem.d.ts +5 -1
- package/dist/components/navigation/{NavMenu/NavMenu.d.ts → SiteMenu/SiteMenu.d.ts} +5 -8
- package/dist/components/navigation/SiteMenu/SiteMenuDropdown.d.ts +23 -0
- package/dist/components/navigation/TabMenu/TabMenu.d.ts +6 -1
- package/dist/components/navigation/UserMenu/UserMenu.d.ts +1 -5
- package/dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +8 -12
- package/dist/components/notifications/Banner/Banner.d.ts +32 -12
- package/dist/components/notifications/NotificationsPopover/NotificationsPopover.d.ts +2 -7
- package/dist/components/notifications/SectionMessage/SectionMessage.d.ts +6 -2
- package/dist/components/notifications/Toaster/Toast.d.ts +13 -2
- package/dist/components/notifications/Toaster/Toaster.d.ts +16 -7
- package/dist/components/notifications/Toaster/useToast.d.ts +2 -0
- package/dist/components/{Pagination → pagination/Pagination}/Pagination.d.ts +7 -2
- package/dist/components/pagination/PaginationCompact/PaginationCompact.d.ts +49 -0
- package/dist/components/pagination/PaginationMini/PaginationMini.d.ts +55 -0
- package/dist/components/panels/ExpansionPanel/ExpansionPanel.d.ts +6 -3
- package/dist/components/panels/ExpansionPanelGroup/ExpansionPanelGroup.d.ts +1 -2
- package/dist/components/panels/Panel/Panel.d.ts +1 -18
- package/dist/components/panels/PanelList/PanelList.d.ts +1 -1
- package/dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +3 -4
- package/dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +2 -3
- package/dist/css/component-css/pds-avatar-tile-list.css +1 -1
- package/dist/css/component-css/pds-avatar.css +1 -1
- package/dist/css/component-css/pds-badge.css +1 -0
- package/dist/css/component-css/pds-banner.css +1 -1
- package/dist/css/component-css/pds-bar-chart.css +1 -0
- package/dist/css/component-css/pds-branch-diff.css +1 -1
- package/dist/css/component-css/pds-breadcrumb.css +1 -1
- package/dist/css/component-css/pds-button-link.css +1 -1
- package/dist/css/component-css/pds-button-nav.css +1 -1
- package/dist/css/component-css/pds-button.css +9 -3
- package/dist/css/component-css/pds-callout.css +1 -1
- package/dist/css/component-css/pds-card-select-group.css +1 -1
- package/dist/css/component-css/pds-card.css +1 -1
- package/dist/css/component-css/pds-chart-legend.css +1 -0
- package/dist/css/component-css/pds-chart-wrapper.css +1 -0
- package/dist/css/component-css/pds-checkbox.css +1 -1
- package/dist/css/component-css/pds-close-button.css +1 -1
- package/dist/css/component-css/pds-combobox-multiselect.css +4 -2
- package/dist/css/component-css/pds-combobox.css +1 -1
- package/dist/css/component-css/pds-compact-empty-state.css +1 -1
- package/dist/css/component-css/pds-comparison-list.css +1 -1
- package/dist/css/component-css/pds-cta-link.css +1 -1
- package/dist/css/component-css/pds-dashboard-search.css +1 -1
- package/dist/css/component-css/pds-datepicker.css +1 -1
- package/dist/css/component-css/pds-drawer.css +1 -0
- package/dist/css/component-css/pds-dropdown-menu.css +2 -2
- package/dist/css/component-css/pds-dropdown.css +2 -0
- package/dist/css/component-css/pds-empty-state-card.css +1 -1
- package/dist/css/component-css/pds-expansion-panel.css +1 -1
- package/dist/css/component-css/pds-file-diff.css +1 -1
- package/dist/css/component-css/pds-file-upload.css +2 -2
- package/dist/css/component-css/pds-flow-steps.css +1 -1
- package/dist/css/component-css/pds-footer-links.css +1 -1
- package/dist/css/component-css/pds-horizontal-empty-state.css +1 -1
- package/dist/css/component-css/pds-icon-button.css +4 -4
- package/dist/css/component-css/pds-icon-story-only.css +1 -1
- package/dist/css/component-css/pds-icon.css +1 -0
- package/dist/css/component-css/pds-identity-block.css +1 -0
- package/dist/css/component-css/pds-index.css +96 -57
- package/dist/css/component-css/pds-inline-message.css +1 -1
- package/dist/css/component-css/pds-input-group.css +1 -1
- package/dist/css/component-css/pds-input-utilities.css +1 -1
- package/dist/css/component-css/pds-line-chart.css +1 -0
- package/dist/css/component-css/pds-link-new-window.css +1 -1
- package/dist/css/component-css/pds-menu-button.css +4 -1
- package/dist/css/component-css/pds-modal.css +1 -1
- package/dist/css/component-css/pds-nav-menu.css +2 -2
- package/dist/css/component-css/pds-navbar.css +4 -1
- package/dist/css/component-css/pds-new-site-card.css +1 -1
- package/dist/css/component-css/pds-notification-hub-icon.css +1 -1
- package/dist/css/component-css/pds-notifications-popover.css +13 -1
- package/dist/css/component-css/pds-pagination-compact.css +1 -0
- package/dist/css/component-css/pds-pagination-mini.css +3 -0
- package/dist/css/component-css/pds-pagination.css +1 -1
- package/dist/css/component-css/pds-panel-list.css +1 -1
- package/dist/css/component-css/pds-panel.css +1 -1
- package/dist/css/component-css/pds-pantheon-logo.css +1 -1
- package/dist/css/component-css/pds-payment-card.css +1 -1
- package/dist/css/component-css/pds-payment-icon.css +1 -1
- package/dist/css/component-css/pds-platform-icon.css +1 -1
- package/dist/css/component-css/pds-popover.css +1 -1
- package/dist/css/component-css/pds-pricing-card.css +1 -1
- package/dist/css/component-css/pds-progress-bar.css +1 -1
- package/dist/css/component-css/pds-progress-ring.css +1 -1
- package/dist/css/component-css/pds-pull-quote.css +1 -1
- package/dist/css/component-css/pds-radio-group.css +1 -1
- package/dist/css/component-css/pds-section-message.css +1 -1
- package/dist/css/component-css/pds-segmented-button.css +1 -1
- package/dist/css/component-css/pds-select.css +1 -1
- package/dist/css/component-css/pds-side-nav-compact.css +1 -1
- package/dist/css/component-css/pds-side-nav-global.css +6 -4
- package/dist/css/component-css/pds-side-nav.css +1 -1
- package/dist/css/component-css/pds-site-card.css +1 -1
- package/dist/css/component-css/pds-site-footer.css +1 -1
- package/dist/css/component-css/pds-skiplink.css +1 -1
- package/dist/css/component-css/pds-spinner.css +1 -1
- package/dist/css/component-css/pds-sso-button.css +1 -1
- package/dist/css/component-css/pds-status-badge.css +1 -1
- package/dist/css/component-css/pds-status-checker.css +1 -0
- package/dist/css/component-css/pds-status-indicator.css +1 -1
- package/dist/css/component-css/pds-stepper.css +1 -1
- package/dist/css/component-css/pds-switch.css +4 -11
- package/dist/css/component-css/pds-tab-menu.css +2 -2
- package/dist/css/component-css/pds-table-of-contents.css +1 -1
- package/dist/css/component-css/pds-table.css +1 -1
- package/dist/css/component-css/pds-tabs.css +1 -1
- package/dist/css/component-css/pds-tag.css +1 -1
- package/dist/css/component-css/pds-tags-input.css +1 -0
- package/dist/css/component-css/pds-text-input.css +1 -1
- package/dist/css/component-css/pds-textarea.css +1 -1
- package/dist/css/component-css/pds-theme-switcher.css +1 -1
- package/dist/css/component-css/pds-toaster.css +1 -1
- package/dist/css/component-css/pds-tooltip.css +1 -1
- package/dist/css/component-css/pds-user-menu.css +29 -1
- package/dist/css/component-css/pds-utility-button.css +1 -1
- package/dist/css/component-css/pds-vertical-empty-state.css +1 -1
- package/dist/css/component-css/pds-vertical-stepper.css +1 -1
- package/dist/css/component-css/pds-workspace-selector.css +16 -1
- package/dist/css/design-tokens/fonts.css +1 -1
- package/dist/css/design-tokens/variables.dark.css +232 -49
- package/dist/css/design-tokens/variables.global.css +8 -11
- package/dist/css/design-tokens/variables.light.css +207 -46
- package/dist/css/design-tokens/variables.typography.css +9 -6
- package/dist/css/layout-css/pds-app-layout.css +2 -0
- package/dist/css/layout-css/pds-docs-layout.css +1 -0
- package/dist/css/layout-css/pds-index.css +2 -0
- package/dist/css/layout-css/pds-sidebar-layout.css +5 -0
- package/dist/css/layout-css/pds-stepper-layout.css +1 -0
- package/dist/css/layout-css/pds-three-item-layout.css +1 -0
- package/dist/css/layout-css/pds-two-item-layout.css +1 -0
- package/dist/css/pds-components.css +96 -57
- package/dist/css/pds-core.css +2 -2
- package/dist/css/pds-layouts.css +2 -9
- package/dist/index.css +1 -1
- package/dist/index.d.ts +88 -6
- package/dist/index.js +11161 -1809
- package/dist/index.js.map +1 -1
- package/dist/index.source.d.ts +21 -16
- package/dist/layouts/AppLayout/AppLayout.d.ts +47 -6
- package/dist/layouts/DocsLayout/DocsLayout.d.ts +9 -7
- package/dist/layouts/SidebarLayout/SidebarLayout.d.ts +12 -3
- package/dist/libs/components/NavAccordion/NavAccordion.d.ts +27 -0
- package/dist/libs/types/custom-types.d.ts +10 -2
- package/dist/libs/types/navigation-types.d.ts +1 -1
- package/dist/svg/angleDown.svg +3 -0
- package/dist/svg/angleLeft.svg +3 -0
- package/dist/svg/angleRight.svg +3 -0
- package/dist/svg/angleUp.svg +3 -0
- package/dist/svg/anglesLeft.svg +3 -0
- package/dist/svg/anglesRight.svg +3 -0
- package/dist/svg/arrowDownToLine.svg +3 -0
- package/dist/svg/arrowLeft.svg +3 -0
- package/dist/svg/arrowRight.svg +3 -0
- package/dist/svg/arrowsRetweet.svg +3 -0
- package/dist/svg/asterisk.svg +3 -0
- package/dist/svg/banBug.svg +3 -0
- package/dist/svg/bars.svg +3 -0
- package/dist/svg/barsFilter.svg +3 -0
- package/dist/svg/bell.svg +3 -0
- package/dist/svg/billboard.svg +3 -0
- package/dist/svg/bitbucket.svg +3 -0
- package/dist/svg/bluesky.svg +3 -0
- package/dist/svg/bolt.svg +3 -0
- package/dist/svg/boltPantheon.svg +3 -0
- package/dist/svg/boltSolid.svg +3 -0
- package/dist/svg/book.svg +3 -0
- package/dist/svg/books.svg +3 -0
- package/dist/svg/bracketRight.svg +3 -0
- package/dist/svg/bracketsSquare.svg +3 -0
- package/dist/svg/brainCircuit.svg +3 -0
- package/dist/svg/broomWide.svg +3 -0
- package/dist/svg/building.svg +3 -0
- package/dist/svg/buildings.svg +3 -0
- package/dist/svg/bullhorn.svg +3 -0
- package/dist/svg/calendarDays.svg +3 -0
- package/dist/svg/caretDown.svg +3 -0
- package/dist/svg/caretLeft.svg +3 -0
- package/dist/svg/caretRight.svg +3 -0
- package/dist/svg/caretUp.svg +3 -0
- package/dist/svg/ccAmex.svg +3 -0
- package/dist/svg/ccApplePay.svg +3 -0
- package/dist/svg/ccDiscover.svg +3 -0
- package/dist/svg/ccGeneric.svg +3 -0
- package/dist/svg/ccMC.svg +3 -0
- package/dist/svg/ccPaypal.svg +3 -0
- package/dist/svg/ccVisa.svg +3 -0
- package/dist/svg/chartLine.svg +3 -0
- package/dist/svg/chartNetwork.svg +3 -0
- package/dist/svg/chartSimple.svg +3 -0
- package/dist/svg/check.svg +3 -0
- package/dist/svg/circle.svg +3 -0
- package/dist/svg/circleCheck.svg +3 -0
- package/dist/svg/circleExclamation.svg +3 -0
- package/dist/svg/circleInfo.svg +3 -0
- package/dist/svg/circleMinus.svg +3 -0
- package/dist/svg/circleNotch.svg +3 -0
- package/dist/svg/circlePlus.svg +3 -0
- package/dist/svg/circleQuestion.svg +3 -0
- package/dist/svg/circleUser.svg +3 -0
- package/dist/svg/circleXmark.svg +3 -0
- package/dist/svg/cloud.svg +3 -0
- package/dist/svg/cloudArrowDown.svg +3 -0
- package/dist/svg/cloudArrowUp.svg +3 -0
- package/dist/svg/cloudPlus.svg +3 -0
- package/dist/svg/code.svg +3 -0
- package/dist/svg/codeBranch.svg +3 -0
- package/dist/svg/codeMerge.svg +3 -0
- package/dist/svg/command.svg +3 -0
- package/dist/svg/comment.svg +3 -0
- package/dist/svg/copy.svg +3 -0
- package/dist/svg/desktop.svg +3 -0
- package/dist/svg/diamondExclamation.svg +3 -0
- package/dist/svg/diamonds4.svg +3 -0
- package/dist/svg/discourse.svg +3 -0
- package/dist/svg/display.svg +3 -0
- package/dist/svg/dollarSign.svg +3 -0
- package/dist/svg/download.svg +3 -0
- package/dist/svg/drupal.svg +3 -0
- package/dist/svg/ellipsis.svg +3 -0
- package/dist/svg/ellipsisVertical.svg +3 -0
- package/dist/svg/emptySet.svg +3 -0
- package/dist/svg/envelope.svg +3 -0
- package/dist/svg/envelopeOpen.svg +3 -0
- package/dist/svg/exclamation.svg +3 -0
- package/dist/svg/expand.svg +3 -0
- package/dist/svg/expandFromCenter.svg +3 -0
- package/dist/svg/externalLink.svg +3 -0
- package/dist/svg/eye.svg +3 -0
- package/dist/svg/eyeSlash.svg +3 -0
- package/dist/svg/facebook.svg +3 -0
- package/dist/svg/file.svg +3 -0
- package/dist/svg/fileCSV.svg +3 -0
- package/dist/svg/fileCheck.svg +3 -0
- package/dist/svg/fileContract.svg +3 -0
- package/dist/svg/fileDiff.svg +3 -0
- package/dist/svg/fileExport.svg +3 -0
- package/dist/svg/fileImport.svg +3 -0
- package/dist/svg/fileLines.svg +3 -0
- package/dist/svg/filePDF.svg +3 -0
- package/dist/svg/fileZip.svg +3 -0
- package/dist/svg/folder.svg +3 -0
- package/dist/svg/folderTree.svg +3 -0
- package/dist/svg/gear.svg +3 -0
- package/dist/svg/gem.svg +3 -0
- package/dist/svg/github.svg +3 -0
- package/dist/svg/gitlab.svg +3 -0
- package/dist/svg/globe.svg +3 -0
- package/dist/svg/graduationCap.svg +3 -0
- package/dist/svg/grid.svg +3 -0
- package/dist/svg/gripDots.svg +3 -0
- package/dist/svg/gripDotsVertical.svg +3 -0
- package/dist/svg/heart.svg +3 -0
- package/dist/svg/heartSolid.svg +3 -0
- package/dist/svg/house.svg +3 -0
- package/dist/svg/idCard.svg +3 -0
- package/dist/svg/image.svg +3 -0
- package/dist/svg/inputText.svg +3 -0
- package/dist/svg/instagram.svg +3 -0
- package/dist/svg/keySkeleton.svg +3 -0
- package/dist/svg/landmark.svg +3 -0
- package/dist/svg/laptop.svg +3 -0
- package/dist/svg/laptopCode.svg +3 -0
- package/dist/svg/leaf.svg +3 -0
- package/dist/svg/lifeRing.svg +3 -0
- package/dist/svg/linkSimple.svg +3 -0
- package/dist/svg/linkSimpleSlash.svg +3 -0
- package/dist/svg/linkedin.svg +3 -0
- package/dist/svg/listCheck.svg +3 -0
- package/dist/svg/locationCrosshairs.svg +3 -0
- package/dist/svg/lock.svg +3 -0
- package/dist/svg/lockOpen.svg +3 -0
- package/dist/svg/magnifyingGlass.svg +3 -0
- package/dist/svg/medal.svg +3 -0
- package/dist/svg/memo.svg +3 -0
- package/dist/svg/messages.svg +3 -0
- package/dist/svg/minus.svg +3 -0
- package/dist/svg/moon.svg +3 -0
- package/dist/svg/nextJs.svg +3 -0
- package/dist/svg/paperPlane.svg +3 -0
- package/dist/svg/paperclip.svg +3 -0
- package/dist/svg/pause.svg +3 -0
- package/dist/svg/pen.svg +3 -0
- package/dist/svg/penField.svg +3 -0
- package/dist/svg/phone.svg +3 -0
- package/dist/svg/play.svg +3 -0
- package/dist/svg/plus.svg +3 -0
- package/dist/svg/question.svg +3 -0
- package/dist/svg/quotesLeft.svg +3 -0
- package/dist/svg/quotesRight.svg +3 -0
- package/dist/svg/rectangleList.svg +3 -0
- package/dist/svg/reply.svg +3 -0
- package/dist/svg/robot.svg +3 -0
- package/dist/svg/rocketLaunch.svg +3 -0
- package/dist/svg/rotate.svg +3 -0
- package/dist/svg/rotateClock.svg +3 -0
- package/dist/svg/rotateLeft.svg +3 -0
- package/dist/svg/rotateRight.svg +3 -0
- package/dist/svg/rss.svg +3 -0
- package/dist/svg/save.svg +3 -0
- package/dist/svg/server.svg +3 -0
- package/dist/svg/shareNodes.svg +3 -0
- package/dist/svg/shield.svg +3 -0
- package/dist/svg/shieldQuartered.svg +3 -0
- package/dist/svg/shovel.svg +3 -0
- package/dist/svg/sidebar.svg +3 -0
- package/dist/svg/siren.svg +3 -0
- package/dist/svg/sirenOn.svg +3 -0
- package/dist/svg/sitemap.svg +3 -0
- package/dist/svg/slack.svg +3 -0
- package/dist/svg/slashForward.svg +3 -0
- package/dist/svg/slidersSimple.svg +3 -0
- package/dist/svg/snowflake.svg +3 -0
- package/dist/svg/sparkles.svg +3 -0
- package/dist/svg/squareCheck.svg +3 -0
- package/dist/svg/squareCode.svg +3 -0
- package/dist/svg/squareMinus.svg +3 -0
- package/dist/svg/squarePen.svg +3 -0
- package/dist/svg/squareQuestion.svg +3 -0
- package/dist/svg/squareTerminal.svg +3 -0
- package/dist/svg/star.svg +3 -0
- package/dist/svg/starSolid.svg +3 -0
- package/dist/svg/sun.svg +3 -0
- package/dist/svg/sunBright.svg +3 -0
- package/dist/svg/table.svg +3 -0
- package/dist/svg/tableRows.svg +3 -0
- package/dist/svg/terminal.svg +3 -0
- package/dist/svg/text.svg +3 -0
- package/dist/svg/threads.svg +3 -0
- package/dist/svg/thumbsDown.svg +3 -0
- package/dist/svg/thumbsUp.svg +3 -0
- package/dist/svg/trash.svg +3 -0
- package/dist/svg/triangleExclamation.svg +3 -0
- package/dist/svg/twitter.svg +3 -0
- package/dist/svg/upload.svg +3 -0
- package/dist/svg/user.svg +3 -0
- package/dist/svg/userAstronaut.svg +3 -0
- package/dist/svg/userGear.svg +3 -0
- package/dist/svg/userPlus.svg +3 -0
- package/dist/svg/users.svg +3 -0
- package/dist/svg/video.svg +3 -0
- package/dist/svg/wavePulse.svg +3 -0
- package/dist/svg/windowRestore.svg +3 -0
- package/dist/svg/wordpress.svg +3 -0
- package/dist/svg/wreathLaurel.svg +3 -0
- package/dist/svg/wrench.svg +3 -0
- package/dist/svg/xTwitter.svg +3 -0
- package/dist/svg/xmark.svg +3 -0
- package/dist/svg/xmarkLarge.svg +3 -0
- package/dist/svg/youtube.svg +3 -0
- package/dist/{layouts → utilities}/FlexContainer/FlexContainer.d.ts +1 -1
- package/dist/utilities/GlobalWrapper/GlobalWrapper.d.ts +21 -0
- package/dist/utilities/hooks/useDropdown/index.d.ts +1 -0
- package/dist/utilities/hooks/useDropdown/useDropdown.d.ts +121 -0
- package/package.json +67 -44
- package/tailwind/README.md +220 -0
- package/tailwind/TESTING.md +457 -0
- package/tailwind/v3/preset.cjs +258 -0
- package/tailwind/v4/theme.css +230 -0
- package/dist/components/badges/IndicatorBadge/IndicatorBadge.d.ts +0 -27
- package/dist/components/navigation/DashboardNav/DashboardNav.d.ts +0 -35
- package/dist/components/navigation/DashboardNav/DashboardNavItem.d.ts +0 -24
- package/dist/components/navigation/NavMenu/NavMenuDropdown.d.ts +0 -24
- package/dist/css/component-css/pds-dashboard-nav.css +0 -5
- package/dist/css/component-css/pds-indicator-badge.css +0 -25
- package/dist/css/component-css/pds-refresh-checker.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/{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/{layouts → utilities}/Container/Container.d.ts +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Icon Registry - Source of truth for PDS icon mappings.
|
|
3
|
+
*
|
|
4
|
+
* Maps PDS camelCase icon names to their source:
|
|
5
|
+
* - FA icons: reference a Font Awesome package + export name
|
|
6
|
+
* - Custom icons: hand-authored SVG data in custom-icons.tsx
|
|
7
|
+
*
|
|
8
|
+
* To add an FA icon:
|
|
9
|
+
* 1. Add entry here with source: 'fa', style, and faImportName
|
|
10
|
+
* 2. Run: npm run generate:icon-data
|
|
11
|
+
* 3. Commit both this file and generated-icon-data.ts
|
|
12
|
+
*
|
|
13
|
+
* To add a custom icon:
|
|
14
|
+
* 1. Add SVG data to custom-icons.tsx
|
|
15
|
+
* 2. Add entry here with source: 'custom'
|
|
16
|
+
* 3. Run: npm run generate:icon-data
|
|
17
|
+
* 4. Commit all three files
|
|
18
|
+
*/
|
|
19
|
+
export type FAStyle = 'regular' | 'solid' | 'brands';
|
|
20
|
+
export type IconCategory = 'actions' | 'arrows' | 'brands' | 'communication' | 'custom' | 'data' | 'development' | 'documents' | 'financial' | 'media' | 'navigation' | 'objects' | 'security' | 'status' | 'users';
|
|
21
|
+
export interface FAIconEntry {
|
|
22
|
+
aliases?: string[];
|
|
23
|
+
categories: IconCategory[];
|
|
24
|
+
faImportName: string;
|
|
25
|
+
source: 'fa';
|
|
26
|
+
style: FAStyle;
|
|
27
|
+
}
|
|
28
|
+
export interface CustomIconEntry {
|
|
29
|
+
aliases?: string[];
|
|
30
|
+
categories: IconCategory[];
|
|
31
|
+
source: 'custom';
|
|
32
|
+
}
|
|
33
|
+
export type IconRegistryEntry = CustomIconEntry | FAIconEntry;
|
|
34
|
+
export declare const iconRegistry: Record<string, IconRegistryEntry>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import './payment-icon.css';
|
|
3
|
-
type
|
|
3
|
+
export type PaymentSize = 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl';
|
|
4
|
+
export type PaymentType = 'visa' | 'mastercard' | 'amex' | 'discover' | 'generic';
|
|
4
5
|
/**
|
|
5
6
|
* Prop types for PaymentIcon
|
|
6
7
|
*/
|
|
@@ -13,9 +14,12 @@ export interface PaymentIconProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
13
14
|
* The type of payment icon to display.
|
|
14
15
|
*/
|
|
15
16
|
paymentType: PaymentType;
|
|
17
|
+
/**
|
|
18
|
+
* Which size of icon to render
|
|
19
|
+
*/
|
|
20
|
+
size?: PaymentSize;
|
|
16
21
|
}
|
|
17
22
|
/**
|
|
18
23
|
* PaymentIcon UI component
|
|
19
24
|
*/
|
|
20
|
-
export declare const PaymentIcon: ({ className, paymentType, ...props }: PaymentIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export {};
|
|
25
|
+
export declare const PaymentIcon: ({ className, paymentType, size, ...props }: PaymentIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import './platform-icon.css';
|
|
3
|
-
type
|
|
4
|
-
|
|
3
|
+
export type PlatformSize = 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl';
|
|
4
|
+
export type PlatformType = 'drupal' | 'drupal7' | 'front-end-sites' | 'gatsby' | 'gatsby-wp' | 'google' | 'import-custom' | 'microsoft' | 'next' | 'next-drupal' | 'next-wp' | 'splunk' | 'sumo-logic' | 'wordpress';
|
|
5
|
+
export interface PlatformIconProps extends ComponentPropsWithoutRef<'div'> {
|
|
5
6
|
className?: string;
|
|
7
|
+
platformType: PlatformType;
|
|
6
8
|
/**
|
|
7
9
|
* Which size of icon to render
|
|
8
10
|
*/
|
|
9
|
-
|
|
10
|
-
platformType: PlatformType;
|
|
11
|
+
size?: PlatformSize;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* PlatformIcon UI component
|
|
14
15
|
*/
|
|
15
|
-
export declare const PlatformIcon: ({ className,
|
|
16
|
-
export {};
|
|
16
|
+
export declare const PlatformIcon: ({ className, platformType, size, ...props }: PlatformIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -74,9 +74,9 @@ export interface CheckboxProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
74
74
|
*/
|
|
75
75
|
showLabel?: boolean;
|
|
76
76
|
/**
|
|
77
|
-
* Size of the
|
|
77
|
+
* Size of the checkbox and label.
|
|
78
78
|
*/
|
|
79
|
-
size?: '
|
|
79
|
+
size?: 's' | 'm';
|
|
80
80
|
/**
|
|
81
81
|
* Validation message for the input field based on the validation status.
|
|
82
82
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React, { ChangeEvent, ComponentPropsWithoutRef,
|
|
1
|
+
import React, { ChangeEvent, ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import { ValidationStatus } from '../../../libs/types/input-types';
|
|
3
3
|
import './combobox.css';
|
|
4
|
+
export type ComboboxSize = 's' | 'm' | 'l';
|
|
4
5
|
type LabelStrings = {
|
|
5
6
|
clearButton?: string;
|
|
6
7
|
inputInstructions?: string;
|
|
@@ -14,10 +15,15 @@ export type ComboboxOption = {
|
|
|
14
15
|
searchIndex?: string[];
|
|
15
16
|
value: string;
|
|
16
17
|
};
|
|
18
|
+
export type ComboboxOptionGroup = {
|
|
19
|
+
groupLabel: string;
|
|
20
|
+
options: ComboboxOption[];
|
|
21
|
+
};
|
|
22
|
+
export type ComboboxOptionsType = (ComboboxOption | ComboboxOptionGroup)[];
|
|
17
23
|
/**
|
|
18
24
|
* Prop types for Combobox
|
|
19
25
|
*/
|
|
20
|
-
export interface ComboboxProps extends ComponentPropsWithoutRef<'div'> {
|
|
26
|
+
export interface ComboboxProps extends Omit<ComponentPropsWithoutRef<'div'>, 'onFocus' | 'onBlur'> {
|
|
21
27
|
/**
|
|
22
28
|
* Additional class names
|
|
23
29
|
*/
|
|
@@ -79,9 +85,9 @@ export interface ComboboxProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
79
85
|
*/
|
|
80
86
|
noResultsText?: string;
|
|
81
87
|
/**
|
|
82
|
-
* onBlur event handler.
|
|
88
|
+
* onBlur event handler to provide the current value of the input.
|
|
83
89
|
*/
|
|
84
|
-
onBlur?: (
|
|
90
|
+
onBlur?: (currentValue: string) => void;
|
|
85
91
|
/**
|
|
86
92
|
* onChange event handler.
|
|
87
93
|
*/
|
|
@@ -91,9 +97,9 @@ export interface ComboboxProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
91
97
|
*/
|
|
92
98
|
onClear?: () => void;
|
|
93
99
|
/**
|
|
94
|
-
* onFocus event handler.
|
|
100
|
+
* onFocus event handler to provide the current value of the input.
|
|
95
101
|
*/
|
|
96
|
-
onFocus?: (
|
|
102
|
+
onFocus?: (currentValue: string) => void;
|
|
97
103
|
/**
|
|
98
104
|
* Callback when an option is selected. Returns the selected option object.
|
|
99
105
|
*/
|
|
@@ -119,6 +125,10 @@ export interface ComboboxProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
119
125
|
* When true, clicking or focusing the input will show all available options before typing.
|
|
120
126
|
*/
|
|
121
127
|
showUnfilteredOptions?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Size of the combobox field.
|
|
130
|
+
*/
|
|
131
|
+
size?: ComboboxSize;
|
|
122
132
|
/**
|
|
123
133
|
* Optional tooltip text to display additional information.
|
|
124
134
|
*/
|
|
@@ -1,19 +1,39 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import './combobox-multiselect.css';
|
|
3
|
+
export type ComboboxMultiselectSize = 's' | 'm' | 'l';
|
|
3
4
|
type LabelStrings = {
|
|
5
|
+
aiBadgeLabel?: string;
|
|
6
|
+
aiPanelButton?: string;
|
|
7
|
+
aiPanelClose?: string;
|
|
8
|
+
aiPanelRefresh?: string;
|
|
4
9
|
inputInstructions?: string;
|
|
5
10
|
triggerButton?: string;
|
|
6
11
|
};
|
|
7
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Public option interface - what users provide to the component
|
|
14
|
+
*/
|
|
15
|
+
export interface OptionProps {
|
|
16
|
+
badge?: 'ai';
|
|
8
17
|
id: string;
|
|
9
|
-
isAlreadySelected?: boolean;
|
|
10
18
|
label: string;
|
|
11
19
|
}
|
|
20
|
+
interface AiSuggestionsPanel {
|
|
21
|
+
content?: ReactNode;
|
|
22
|
+
disableRefresh?: boolean;
|
|
23
|
+
isFetching?: boolean;
|
|
24
|
+
items?: OptionProps[];
|
|
25
|
+
onClose?: () => void;
|
|
26
|
+
onRefresh?: () => void;
|
|
27
|
+
}
|
|
12
28
|
type DivProps = Omit<ComponentPropsWithoutRef<'div'>, 'onChange'>;
|
|
13
29
|
/**
|
|
14
30
|
* Prop types for ComboboxMultiselect
|
|
15
31
|
*/
|
|
16
32
|
export interface ComboboxMultiselectProps extends DivProps {
|
|
33
|
+
/**
|
|
34
|
+
* AI suggestions panel configuration. When provided, shows a sparkle button that opens a floating suggestions panel.
|
|
35
|
+
*/
|
|
36
|
+
aiSuggestions?: AiSuggestionsPanel;
|
|
17
37
|
/**
|
|
18
38
|
* Additional class names
|
|
19
39
|
*/
|
|
@@ -70,14 +90,21 @@ export interface ComboboxMultiselectProps extends DivProps {
|
|
|
70
90
|
* Is this field required?
|
|
71
91
|
*/
|
|
72
92
|
required?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Display all selected tags in a wrapping row instead of stacking with only the top one visible
|
|
95
|
+
*/
|
|
96
|
+
showAllTags?: boolean;
|
|
73
97
|
/**
|
|
74
98
|
* Should the label be visible? If false, it will render for screen readers only.
|
|
75
99
|
*/
|
|
76
100
|
showLabel?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Size of the combobox multiselect field.
|
|
103
|
+
*/
|
|
104
|
+
size?: ComboboxMultiselectSize;
|
|
77
105
|
}
|
|
78
|
-
export declare const getFilteredOptions: (options: OptionProps[], selectedItems: OptionProps[], inputValue: string) => OptionProps[];
|
|
79
106
|
/**
|
|
80
107
|
* ComboboxMultiselect UI component
|
|
81
108
|
*/
|
|
82
|
-
export declare const ComboboxMultiselect: ({ className, disabled, id, initialSelectedItems, inputWidth, isLoading, label, labelStrings, loadingText, noResultsText, onChange, options, placeholder, required, showLabel, ...props }: ComboboxMultiselectProps) => import("react/jsx-runtime").JSX.Element;
|
|
109
|
+
export declare const ComboboxMultiselect: ({ aiSuggestions, className, disabled, id, initialSelectedItems, inputWidth, isLoading, label, labelStrings, loadingText, noResultsText, onChange, options, placeholder, required, showAllTags, showLabel, size, ...props }: ComboboxMultiselectProps) => import("react/jsx-runtime").JSX.Element;
|
|
83
110
|
export {};
|
|
@@ -5,6 +5,7 @@ import 'react-day-picker/dist/style.css';
|
|
|
5
5
|
import './datepicker.css';
|
|
6
6
|
type PresetType = 'today' | 'current-week' | 'current-month' | 'last-week' | 'last-month';
|
|
7
7
|
export interface CustomPresetConfig {
|
|
8
|
+
active?: boolean;
|
|
8
9
|
custom?: () => DateRange;
|
|
9
10
|
days?: number;
|
|
10
11
|
label: string;
|
|
@@ -56,10 +57,23 @@ export interface DatepickerProps extends DatepickerHTMLProps {
|
|
|
56
57
|
* Locale from date-fns for internationalization.
|
|
57
58
|
*/
|
|
58
59
|
locale?: Locale;
|
|
60
|
+
/**
|
|
61
|
+
* Maximum selectable date.
|
|
62
|
+
*/
|
|
63
|
+
maxDate?: Date;
|
|
64
|
+
/**
|
|
65
|
+
* Minimum selectable date.
|
|
66
|
+
*/
|
|
67
|
+
minDate?: Date;
|
|
59
68
|
/**
|
|
60
69
|
* onChange handler
|
|
61
70
|
*/
|
|
62
71
|
onChange?: (value: DateRange | Date | undefined) => void;
|
|
72
|
+
/**
|
|
73
|
+
* Callback fired once on mount when an active preset is applied.
|
|
74
|
+
* Only fires if no initial value is provided and a preset has active: true.
|
|
75
|
+
*/
|
|
76
|
+
onInitialize?: (value: DateRange | Date | undefined) => void;
|
|
63
77
|
/**
|
|
64
78
|
* Placeholder text for the trigger button.
|
|
65
79
|
*/
|
|
@@ -92,5 +106,5 @@ export interface DatepickerProps extends DatepickerHTMLProps {
|
|
|
92
106
|
/**
|
|
93
107
|
* Datepicker UI component.
|
|
94
108
|
*/
|
|
95
|
-
export declare const Datepicker: ({ className, disabled, hasDateRange, id, inputWidth, label, locale, onChange, placeholder, presets, required, showLabel, tooltipText, translationStrings, value, ...props }: DatepickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
109
|
+
export declare const Datepicker: ({ className, disabled, hasDateRange, id, inputWidth, label, locale, maxDate, minDate, onChange, onInitialize, placeholder, presets, required, showLabel, tooltipText, translationStrings, value, ...props }: DatepickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
96
110
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import { ValidationStatus } from '../../../libs/types/input-types';
|
|
3
3
|
import './file-upload.css';
|
|
4
|
+
export type FileUploadSize = 's' | 'm';
|
|
4
5
|
type LabelStrings = {
|
|
5
6
|
chooseFile: string;
|
|
6
7
|
clearButton: string;
|
|
@@ -73,6 +74,10 @@ export interface FileUploadProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
73
74
|
* Should the label be visible? If false, it will render for screen readers only.
|
|
74
75
|
*/
|
|
75
76
|
showLabel?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Size of the input field.
|
|
79
|
+
*/
|
|
80
|
+
size?: FileUploadSize;
|
|
76
81
|
/**
|
|
77
82
|
* Optional tooltip text to display additional information.
|
|
78
83
|
*/
|
|
@@ -3,6 +3,7 @@ import { ValidationStatus } from '../../../libs/types/input-types';
|
|
|
3
3
|
import { PDSIcon } from '../../icons/Icon/Icon';
|
|
4
4
|
import './select.css';
|
|
5
5
|
export type SelectIconType = PDSIcon | 'google' | 'microsoft';
|
|
6
|
+
export type SelectSize = 's' | 'm' | 'l';
|
|
6
7
|
type LabelStrings = {
|
|
7
8
|
selectOptionText: string;
|
|
8
9
|
triggerButton: string;
|
|
@@ -44,6 +45,10 @@ interface SelectOptionGroupProps {
|
|
|
44
45
|
* Prop types for Select
|
|
45
46
|
*/
|
|
46
47
|
export interface SelectProps {
|
|
48
|
+
/**
|
|
49
|
+
* Automatically resize the select to fit the longest option label. Defaults to false (width: 100%).
|
|
50
|
+
*/
|
|
51
|
+
autoWidth?: boolean;
|
|
47
52
|
/**
|
|
48
53
|
* Additional class names
|
|
49
54
|
*/
|
|
@@ -104,6 +109,10 @@ export interface SelectProps {
|
|
|
104
109
|
* Should the label be visible? If false, it will render for screen readers only.
|
|
105
110
|
*/
|
|
106
111
|
showLabel?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Size of the select field.
|
|
114
|
+
*/
|
|
115
|
+
size?: SelectSize;
|
|
107
116
|
/**
|
|
108
117
|
* Optional tooltip text to display additional information.
|
|
109
118
|
*/
|
|
@@ -128,5 +137,5 @@ export declare const SelectOptionGroup: ({ children, label, }: SelectOptionGroup
|
|
|
128
137
|
/**
|
|
129
138
|
* Select UI component
|
|
130
139
|
*/
|
|
131
|
-
export declare const Select: ({ className, defaultValue, disabled, icon, id, inputWidth, label, labelStrings, message, onBlur, onFocus, onOptionSelect, options, required, showLabel, tooltipText, validationMessage, validationStatus, value, ...props }: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
140
|
+
export declare const Select: ({ autoWidth, className, defaultValue, disabled, icon, id, inputWidth, label, labelStrings, message, onBlur, onFocus, onOptionSelect, options, required, showLabel, size, tooltipText, validationMessage, validationStatus, value, ...props }: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
132
141
|
export {};
|
|
@@ -4,4 +4,5 @@ export declare const userRoleOptions: SelectOptionType[];
|
|
|
4
4
|
export declare const validationExampleOptions: SelectOptionType[];
|
|
5
5
|
export declare const sampleSelectOptionsWithGroups: SelectOptionsType;
|
|
6
6
|
export declare const ssoProviderOptions: SelectOptionType[];
|
|
7
|
+
export declare const autoWidthOptions: SelectOptionType[];
|
|
7
8
|
export declare const sampleSelectOptions: SelectOptionType[];
|
|
@@ -40,18 +40,10 @@ export interface SwitchProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
40
40
|
* Message or description used to help clarify the usage of the input.
|
|
41
41
|
*/
|
|
42
42
|
message?: string | ReactNode;
|
|
43
|
-
/**
|
|
44
|
-
* Status text for when switch is off.
|
|
45
|
-
*/
|
|
46
|
-
offLabel?: string;
|
|
47
43
|
/**
|
|
48
44
|
* onChange event handler. Controlled inputs should use this to manage the input value. Uncontrolled inputs will manage their own state, but may still use this to access the event object.
|
|
49
45
|
*/
|
|
50
46
|
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
51
|
-
/**
|
|
52
|
-
* Status text for when switch is on.
|
|
53
|
-
*/
|
|
54
|
-
onLabel?: string;
|
|
55
47
|
/**
|
|
56
48
|
* Is this field required?
|
|
57
49
|
*/
|
|
@@ -60,14 +52,6 @@ export interface SwitchProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
60
52
|
* Should the label be visible? If false, it will render for screen readers only.
|
|
61
53
|
*/
|
|
62
54
|
showLabel?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Show toggle status label next to switch. If false, icons will render and the text will still be available to screen readers.
|
|
65
|
-
*/
|
|
66
|
-
showStatusLabel?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* Determines the placement of the toggle status label. Default set to `right`.
|
|
69
|
-
*/
|
|
70
|
-
statusLabelPlacement?: 'right' | 'left';
|
|
71
55
|
/**
|
|
72
56
|
* Determines switch placement, default set to `right`.
|
|
73
57
|
*/
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { ValidationStatus } from '../../../libs/types/input-types';
|
|
3
|
+
import './tags-input.css';
|
|
4
|
+
type LabelStrings = {
|
|
5
|
+
inputInstructions: string;
|
|
6
|
+
tagAriaLabel: string;
|
|
7
|
+
tagAriaLabelSimple: string;
|
|
8
|
+
tagRemove: string;
|
|
9
|
+
tagsListLabel: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Tag type
|
|
13
|
+
*/
|
|
14
|
+
export type TagType = {
|
|
15
|
+
id: string;
|
|
16
|
+
value: string;
|
|
17
|
+
};
|
|
18
|
+
type DivProps = Omit<ComponentPropsWithoutRef<'div'>, 'onChange'>;
|
|
19
|
+
/**
|
|
20
|
+
* Prop types for TagsInput
|
|
21
|
+
*/
|
|
22
|
+
export interface TagsInputProps extends DivProps {
|
|
23
|
+
/**
|
|
24
|
+
* Optional placeholder text to display when the input field is empty and there are existing tags.
|
|
25
|
+
*/
|
|
26
|
+
addMorePlaceholder?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Additional class names
|
|
29
|
+
*/
|
|
30
|
+
className?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Is the field disabled?
|
|
33
|
+
*/
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Input ID.
|
|
37
|
+
*/
|
|
38
|
+
id: string;
|
|
39
|
+
/**
|
|
40
|
+
* Minimum height in pixels for the tags input wrapper box (not including label or message). Defaults to 80px.
|
|
41
|
+
*/
|
|
42
|
+
inputMinHeight?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Max-width of the input field. Accepts a number in pixels. Leave blank for width: 100%.
|
|
45
|
+
*/
|
|
46
|
+
inputWidth?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Should tags be sortable via drag-and-drop and keyboard shortcuts? Defaults to false.
|
|
49
|
+
*/
|
|
50
|
+
isSortable?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Input label.
|
|
53
|
+
*/
|
|
54
|
+
label: string;
|
|
55
|
+
/**
|
|
56
|
+
* Input message. Used to provide supplemental text. Will be displayed below the input field.
|
|
57
|
+
*/
|
|
58
|
+
message?: string | ReactNode;
|
|
59
|
+
/**
|
|
60
|
+
* onChange event handler. Called when tags change.
|
|
61
|
+
*/
|
|
62
|
+
onChange: (tags: TagType[]) => void;
|
|
63
|
+
/**
|
|
64
|
+
* Optional placeholder text to display when the input field is empty and there are no tags yet.
|
|
65
|
+
*/
|
|
66
|
+
placeholder?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Is this field required?
|
|
69
|
+
*/
|
|
70
|
+
required?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Should the label be visible? If false, it will render for screen readers only.
|
|
73
|
+
*/
|
|
74
|
+
showLabel?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Tags array. The component is controlled and requires managing state externally.
|
|
77
|
+
*/
|
|
78
|
+
tags: TagType[];
|
|
79
|
+
/**
|
|
80
|
+
* Optional tooltip text to display additional information.
|
|
81
|
+
*/
|
|
82
|
+
tooltipText?: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* Translation strings for various labels or other visually-hidden text.
|
|
85
|
+
*/
|
|
86
|
+
translationStrings?: LabelStrings;
|
|
87
|
+
/**
|
|
88
|
+
* Validation message for the input field based on the validation status.
|
|
89
|
+
*/
|
|
90
|
+
validationMessage?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Validation status of the input field.
|
|
93
|
+
*/
|
|
94
|
+
validationStatus?: ValidationStatus;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* TagsInput UI component
|
|
98
|
+
*/
|
|
99
|
+
export declare const TagsInput: React.ForwardRefExoticComponent<TagsInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
100
|
+
export {};
|
|
@@ -107,6 +107,10 @@ export interface TextInputProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
107
107
|
* Show Toggle visibility control for input. Valid for type `password` only.
|
|
108
108
|
*/
|
|
109
109
|
showVisibilityToggle?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Input size.
|
|
112
|
+
*/
|
|
113
|
+
size?: 's' | 'm' | 'l';
|
|
110
114
|
/**
|
|
111
115
|
* Optional tooltip text to display additional information.
|
|
112
116
|
*/
|
|
@@ -79,6 +79,10 @@ export interface TextareaProps {
|
|
|
79
79
|
* Should the label be visible? If false, it will render for screen readers only.
|
|
80
80
|
*/
|
|
81
81
|
showLabel?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Input size.
|
|
84
|
+
*/
|
|
85
|
+
size?: 's' | 'm' | 'l';
|
|
82
86
|
/**
|
|
83
87
|
* Additional props for the `<textarea>` element.
|
|
84
88
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef, MouseEventHandler, ReactNode } from 'react';
|
|
2
2
|
import { SelectOptionGroupType, SelectOptionType } from './Select/Select';
|
|
3
|
+
import '@components/Dropdown/dropdown.css';
|
|
3
4
|
import './input-utilities.css';
|
|
4
5
|
export declare const inputCommonClasses: {
|
|
5
6
|
base: string;
|
|
@@ -63,9 +64,9 @@ export declare const InputMessage: ({ className, forInputGroup, hasValidationMes
|
|
|
63
64
|
validationMessageHasDecorators?: boolean;
|
|
64
65
|
validationStatus?: string;
|
|
65
66
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
66
|
-
type
|
|
67
|
-
export declare const
|
|
68
|
-
variant:
|
|
67
|
+
export type PrefixVariants = 'search' | 'error' | 'success' | 'filter';
|
|
68
|
+
export declare const InputPrefix: ({ variant }: {
|
|
69
|
+
variant: PrefixVariants;
|
|
69
70
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
70
71
|
export declare const SearchShortcut: ({ inputId, shortcutLabel, }: {
|
|
71
72
|
inputId: string;
|
|
@@ -15,7 +15,7 @@ export interface LinkNewWindowProps extends ComponentPropsWithoutRef<'a'> {
|
|
|
15
15
|
/**
|
|
16
16
|
* Optional font size for the LinkNewWindow. If not provided, the font size will be inherited from the parent element.
|
|
17
17
|
*/
|
|
18
|
-
fontSize?: '
|
|
18
|
+
fontSize?: 's' | 'm' | 'l';
|
|
19
19
|
/**
|
|
20
20
|
* Is the link in the process of loading?
|
|
21
21
|
*/
|
|
@@ -27,7 +27,7 @@ export interface NavbarProps extends ComponentPropsWithoutRef<'header'> {
|
|
|
27
27
|
*/
|
|
28
28
|
hideBorder?: boolean;
|
|
29
29
|
/**
|
|
30
|
-
* Hide the logo
|
|
30
|
+
* Hide the logo on desktop. The logo is always shown in the mobile bar.
|
|
31
31
|
*/
|
|
32
32
|
hideLogo?: boolean;
|
|
33
33
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { SideNavGlobalItemProps } from './SideNavGlobalItem';
|
|
3
3
|
import './side-nav-global.css';
|
|
4
4
|
/**
|
|
@@ -13,11 +13,6 @@ export interface SideNavGlobalProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
13
13
|
* Additional class names
|
|
14
14
|
*/
|
|
15
15
|
className?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Should the Pantheon logo be displayed above the menu items?
|
|
18
|
-
* It will not be displayed in the mobile view regardless of this value.
|
|
19
|
-
*/
|
|
20
|
-
hasLogo?: boolean;
|
|
21
16
|
/**
|
|
22
17
|
* Is the sidebar collapsed?
|
|
23
18
|
*/
|
|
@@ -29,22 +24,17 @@ export interface SideNavGlobalProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
29
24
|
submenu: string;
|
|
30
25
|
toggle: string;
|
|
31
26
|
};
|
|
32
|
-
/**
|
|
33
|
-
* Where should the logo link to? A fully-formed link element.
|
|
34
|
-
* Only necessary if `hasLogo` is true.
|
|
35
|
-
* If the logo should not be a link, leave blank.
|
|
36
|
-
*/
|
|
37
|
-
logoLinkContent?: ReactNode;
|
|
38
27
|
/**
|
|
39
28
|
* Menu items to render.
|
|
40
29
|
*/
|
|
41
30
|
menuItems?: SideNavGlobalItemProps[];
|
|
42
31
|
/**
|
|
43
|
-
*
|
|
32
|
+
* Callback to expand the sidebar. When provided and the sidebar is collapsed,
|
|
33
|
+
* tapping a nav item with children will expand the sidebar instead of showing a flyout.
|
|
44
34
|
*/
|
|
45
|
-
|
|
35
|
+
onExpandSidebar?: () => void;
|
|
46
36
|
}
|
|
47
37
|
/**
|
|
48
38
|
* SideNavGlobal UI component
|
|
49
39
|
*/
|
|
50
|
-
export declare const SideNavGlobal: ({ ariaLabel, className,
|
|
40
|
+
export declare const SideNavGlobal: ({ ariaLabel, className, isSidebarCollapsed, labels, menuItems, onExpandSidebar, ...props }: SideNavGlobalProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -17,8 +17,12 @@ export interface SideNavGlobalItemProps extends NavigationItem {
|
|
|
17
17
|
submenu: string;
|
|
18
18
|
toggle: string;
|
|
19
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* Callback to expand the sidebar on touch devices when collapsed.
|
|
22
|
+
*/
|
|
23
|
+
onExpandSidebar?: () => void;
|
|
20
24
|
}
|
|
21
25
|
/**
|
|
22
26
|
* SideNavGlobalItem UI component
|
|
23
27
|
*/
|
|
24
|
-
export declare const SideNavGlobalItem: ({ icon, isActive, isSidebarCollapsed, labels, linkContent, links, }: SideNavGlobalItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare const SideNavGlobalItem: ({ icon, isActive, isSidebarCollapsed, labels, linkContent, links, onExpandSidebar, }: SideNavGlobalItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { NavMenuItem } from '../../../libs/types/navigation-types';
|
|
3
|
+
import '@components/Dropdown/dropdown.css';
|
|
3
4
|
import './nav-menu.css';
|
|
4
5
|
/**
|
|
5
|
-
* Prop types for
|
|
6
|
+
* Prop types for SiteMenu
|
|
6
7
|
*/
|
|
7
|
-
interface
|
|
8
|
+
interface SiteMenuProps extends ComponentPropsWithoutRef<'nav'> {
|
|
8
9
|
/**
|
|
9
10
|
* Aria label for `nav` element.
|
|
10
11
|
*/
|
|
@@ -21,13 +22,9 @@ interface NavMenuProps extends ComponentPropsWithoutRef<'nav'> {
|
|
|
21
22
|
* Menu Items.
|
|
22
23
|
*/
|
|
23
24
|
menuItems?: NavMenuItem[];
|
|
24
|
-
/**
|
|
25
|
-
* Mobile menu will be enabled when viewport is at or below this number in pixels.
|
|
26
|
-
*/
|
|
27
|
-
mobileMenuMaxWidth?: number;
|
|
28
25
|
}
|
|
29
26
|
/**
|
|
30
|
-
*
|
|
27
|
+
* SiteMenu UI component
|
|
31
28
|
*/
|
|
32
|
-
export declare const
|
|
29
|
+
export declare const SiteMenu: ({ ariaLabel, className, colorType, menuItems, ...props }: SiteMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
30
|
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { NavMenuItem } from '../../../libs/types/navigation-types';
|
|
3
|
+
/**
|
|
4
|
+
* Prop types for SiteMenuDropdown
|
|
5
|
+
*/
|
|
6
|
+
interface SiteMenuDropdownProps extends ComponentPropsWithoutRef<'button'> {
|
|
7
|
+
/**
|
|
8
|
+
* Menu items. If omitted or empty, renders as a plain top-level link.
|
|
9
|
+
*/
|
|
10
|
+
items?: NavMenuItem[];
|
|
11
|
+
/**
|
|
12
|
+
* Menu label shown on the trigger button.
|
|
13
|
+
*/
|
|
14
|
+
label?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* SiteMenuDropdown — a sub-menu for SiteMenu items that have child links.
|
|
18
|
+
* Desktop: Floating UI dropdown (opens on hover or click).
|
|
19
|
+
* Mobile: NavAccordion inline expansion.
|
|
20
|
+
* Both are always in the DOM; CSS driven by [data-pds-mobile] shows the right one.
|
|
21
|
+
*/
|
|
22
|
+
export declare const SiteMenuDropdown: ({ items, label }: SiteMenuDropdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|