@pantheon-systems/pds-toolkit-react 1.0.0-beta.7 → 1.0.0-beta.8
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/_dist/components/CTASlice/CTASlice.d.ts +1 -1
- package/_dist/components/Callout/Callout.d.ts +1 -1
- package/_dist/components/Pagination/Pagination.d.ts +1 -1
- package/_dist/components/Popover/Popover.d.ts +2 -3
- package/_dist/components/SiteDashboardHeading/SiteDashboardHeading.d.ts +3 -3
- package/_dist/components/SocialLinks/SocialLinks.d.ts +1 -1
- package/_dist/components/StatusIndicator/StatusIndicator.d.ts +1 -1
- package/_dist/components/TableOfContents/TableOfContents.d.ts +1 -1
- package/_dist/components/Tabs/Tabs.d.ts +1 -1
- package/_dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/_dist/components/badges/StatusBadge/StatusBadge.d.ts +1 -1
- package/_dist/components/buttons/Button/Button.d.ts +2 -2
- package/_dist/components/buttons/ButtonLink/ButtonLink.d.ts +2 -2
- package/_dist/components/buttons/IconButton/IconButton.d.ts +2 -2
- package/_dist/components/buttons/MenuButton/MenuButton.d.ts +2 -2
- package/_dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +1 -1
- package/_dist/components/buttons/SplitButton/SplitButton.d.ts +1 -1
- package/_dist/components/buttons/UtilityButton/UtilityButton.d.ts +1 -1
- package/_dist/components/cards/Card/Card.d.ts +1 -1
- package/_dist/components/cards/CardHeading/CardHeading.d.ts +1 -1
- package/_dist/components/cards/EmptyStateCard/EmptyStateCard.d.ts +1 -1
- package/_dist/components/cards/LinksCard/LinksCard.d.ts +1 -1
- package/_dist/components/cards/NewSiteCard/NewSiteCard.d.ts +1 -1
- package/_dist/components/cards/PricingCard/PricingCard.d.ts +1 -1
- package/_dist/components/cards/SiteCard/SiteCard.d.ts +1 -1
- package/_dist/components/empty-states/CompactEmptyState/CompactEmptyState.d.ts +3 -3
- package/_dist/components/empty-states/HorizontalEmptyState/HorizontalEmptyState.d.ts +2 -2
- package/_dist/components/empty-states/VerticalEmptyState/VerticalEmptyState.d.ts +1 -1
- package/_dist/components/footer/FooterHeading/FooterHeading.d.ts +1 -1
- package/_dist/components/footer/FooterLinks/FooterLinks.d.ts +1 -1
- package/_dist/components/footer/SiteFooter/SiteFooter.d.ts +1 -1
- package/_dist/components/icons/Icon/Icon.d.ts +1 -1
- package/_dist/components/inputs/Checkbox/Checkbox.d.ts +1 -1
- package/_dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +1 -1
- package/_dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/_dist/components/inputs/Combobox/Combobox.d.ts +1 -1
- package/_dist/components/inputs/FileUpload/FileUpload.d.ts +1 -1
- package/_dist/components/inputs/RadioGroup/RadioGroup.d.ts +1 -1
- package/_dist/components/inputs/Select/Select.d.ts +2 -2
- package/_dist/components/inputs/TextInput/TextInput.d.ts +1 -1
- package/_dist/components/inputs/Textarea/Textarea.d.ts +1 -1
- package/_dist/components/loading-indicators/Skeleton/Skeleton.d.ts +1 -1
- package/_dist/components/navigation/ButtonNav/ButtonNav.d.ts +1 -1
- package/_dist/components/navigation/DashboardNav/DashboardNavItem.d.ts +2 -2
- package/_dist/components/navigation/DashboardSearch/SiteOptionDisplay.d.ts +1 -1
- package/_dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/_dist/components/navigation/NavMenu/NavMenu.d.ts +1 -1
- package/_dist/components/navigation/NavMenu/NavMenuDropdown.d.ts +1 -1
- package/_dist/components/navigation/Navbar/Navbar.d.ts +2 -2
- package/_dist/components/navigation/SideNav/SideNav.d.ts +1 -1
- package/_dist/components/navigation/SideNavCompact/SideNavCompact.d.ts +1 -1
- package/_dist/components/navigation/SideNavGlobal/SideNavGlobalItem.d.ts +2 -2
- package/_dist/components/navigation/TabMenu/TabMenu.d.ts +2 -2
- package/_dist/components/navigation/TabMenu/TabMenuDropdown.d.ts +1 -1
- package/_dist/components/navigation/UserMenu/UserMenu.d.ts +1 -1
- package/_dist/components/navigation/navigation-utilities.d.ts +2 -2
- package/_dist/components/notifications/Banner/Banner.d.ts +1 -1
- package/_dist/components/notifications/InlineMessage/InlineMessage.d.ts +1 -1
- package/_dist/components/notifications/SectionMessage/SectionMessage.d.ts +2 -2
- package/_dist/components/panels/Panel/Panel.d.ts +5 -5
- package/_dist/components/panels/PanelList/PanelList.d.ts +5 -1
- package/_dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +1 -1
- package/_dist/components/steppers/VerticalStepper/VerticalStep.d.ts +1 -1
- package/_dist/components/tiles/Tile/Tile.d.ts +1 -1
- package/_dist/components/tiles/TileGrid/TileGrid.d.ts +2 -2
- package/_dist/css/component-css/pds-index.css +1 -1
- package/_dist/css/component-css/pds-panel-list.css +1 -1
- package/_dist/css/pds-components.css +1 -1
- package/_dist/index.css +1 -1
- package/_dist/index.js +6 -4
- package/_dist/index.js.map +1 -1
- package/_dist/layouts/AppLayout/AppLayout.d.ts +1 -1
- package/_dist/layouts/Container/Container.d.ts +1 -1
- package/_dist/layouts/FlexContainer/FlexContainer.d.ts +1 -1
- package/_dist/layouts/SidebarLayout/SidebarLayout.d.ts +1 -1
- package/_dist/layouts/ThreeItemLayout/ThreeItemLayout.d.ts +1 -1
- package/_dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +1 -1
- package/_dist/libs/components/utility-components.d.ts +1 -1
- package/_dist/libs/types/custom-types.d.ts +5 -1
- package/_dist/libs/types/navigation-types.d.ts +5 -5
- package/_dist/mocks/data/navigation-items.d.ts +3 -3
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { GridGapOptions } from '
|
|
2
|
+
import { GridGapOptions } from '../../libs/types/layout-types';
|
|
3
3
|
import './flex-container.css';
|
|
4
4
|
type FlexAlignContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch';
|
|
5
5
|
type FlexAlignItems = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { GridGapOptions, VerticalAlignOptions } from '
|
|
2
|
+
import { GridGapOptions, VerticalAlignOptions } from '../../libs/types/layout-types';
|
|
3
3
|
import '../../utilities/grid/grid.css';
|
|
4
4
|
import './three-item-layout.css';
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { GridGapOptions, VerticalAlignOptions } from '
|
|
2
|
+
import { GridGapOptions, VerticalAlignOptions } from '../../libs/types/layout-types';
|
|
3
3
|
import '../../utilities/grid/grid.css';
|
|
4
4
|
import './two-item-layout.css';
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { PDSIcon } from '
|
|
2
|
+
import { PDSIcon } from '../../components/icons/Icon/Icon';
|
|
3
3
|
export type BadgeColor = 'success' | 'critical' | 'info' | 'warning' | 'neutral' | 'brand' | 'silver' | 'gold' | 'platinum' | 'diamond';
|
|
4
4
|
export type ButtonDisplayType = 'label-only' | 'icon-start' | 'icon-end';
|
|
5
5
|
export type ButtonSize = 'sm' | 'md' | 'lg';
|
|
@@ -105,6 +105,10 @@ export type NodeItemType = {
|
|
|
105
105
|
* Screen reader label for critical items. Only used when isCritical is true.
|
|
106
106
|
*/
|
|
107
107
|
criticalLabel?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Is this item disabled?
|
|
110
|
+
*/
|
|
111
|
+
disabled?: boolean;
|
|
108
112
|
/**
|
|
109
113
|
* Is this a critical action item?
|
|
110
114
|
*/
|
|
@@ -3,11 +3,11 @@ export type NavigationItem = {
|
|
|
3
3
|
/**
|
|
4
4
|
* A boolean indicating whether the item is the active item.
|
|
5
5
|
*/
|
|
6
|
-
isActive?: boolean;
|
|
6
|
+
isActive?: boolean | null;
|
|
7
7
|
/**
|
|
8
8
|
* Link content — a fully-formed link element using the router of your choice. If a string is provided instead, the item will be rendered as a link that navigates to the first child item.
|
|
9
9
|
*/
|
|
10
|
-
linkContent
|
|
10
|
+
linkContent?: ReactElement | string;
|
|
11
11
|
/**
|
|
12
12
|
* Submenu items.
|
|
13
13
|
*/
|
|
@@ -17,7 +17,7 @@ export type FlattenedNavigationItem = {
|
|
|
17
17
|
/**
|
|
18
18
|
* A boolean indicating whether the item is the active item.
|
|
19
19
|
*/
|
|
20
|
-
isActive?: boolean;
|
|
20
|
+
isActive?: boolean | null;
|
|
21
21
|
/**
|
|
22
22
|
* Nesting level of the item.
|
|
23
23
|
*/
|
|
@@ -25,11 +25,11 @@ export type FlattenedNavigationItem = {
|
|
|
25
25
|
/**
|
|
26
26
|
* Link content — a fully-formed link element using the router of your choice.
|
|
27
27
|
*/
|
|
28
|
-
linkContent
|
|
28
|
+
linkContent?: ReactElement;
|
|
29
29
|
};
|
|
30
30
|
export interface NavMenuItem {
|
|
31
31
|
id?: string;
|
|
32
|
-
isActive?: boolean;
|
|
32
|
+
isActive?: boolean | null;
|
|
33
33
|
isSeparator?: boolean;
|
|
34
34
|
label: string;
|
|
35
35
|
linkContent?: ReactElement;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { SideNavGlobalItemProps } from '
|
|
2
|
-
import type { WorkspaceSelectorItem } from '
|
|
1
|
+
import type { SideNavGlobalItemProps } from '../../components/navigation/SideNavGlobal/SideNavGlobalItem';
|
|
2
|
+
import type { WorkspaceSelectorItem } from '../../components/navigation/WorkspaceSelector/WorkspaceSelector';
|
|
3
3
|
export declare const dialogMsgBase = "Activated menu item => ";
|
|
4
|
-
import { UserMenuItem } from '
|
|
4
|
+
import { UserMenuItem } from '../../components/navigation/UserMenu/UserMenu';
|
|
5
5
|
export declare const buttonNavSampleMenuItems: ({
|
|
6
6
|
linkContent: import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
isActive: boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pantheon-systems/pds-toolkit-react",
|
|
3
3
|
"technology": "React",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.8",
|
|
5
5
|
"description": "PDS toolkit built using the React framework",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
],
|
|
38
38
|
"type": "module",
|
|
39
39
|
"scripts": {
|
|
40
|
-
"build": "npm run vite build && npm run build:types
|
|
40
|
+
"build": "npm run vite build && npm run build:types",
|
|
41
41
|
"build:types": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|
|
42
42
|
"postbuild": "npm run build:css && npm run build:css:components && npm run build:css:layouts && npm run build:css:packageExtraCss",
|
|
43
43
|
"build:css": "postcss src/core.css -o _dist/css/pds-core.css",
|