@pantheon-systems/pds-toolkit-react 1.0.0-dev.130 → 1.0.0-dev.132
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/Avatar/Avatar.d.ts +19 -0
- package/_dist/components/Breadcrumbs/Breadcrumbs.d.ts +9 -0
- package/_dist/components/Breadcrumbs/BreadcrumbsContent.d.ts +12 -0
- package/_dist/components/Breadcrumbs/BreadcrumbsContext.d.ts +17 -0
- package/_dist/components/Breadcrumbs/ListItem.d.ts +14 -0
- package/_dist/components/Breadcrumbs/MobileCrumbs.d.ts +2 -0
- package/_dist/components/CTALink/CTALink.d.ts +15 -0
- package/_dist/components/CTASlice/CTASlice.d.ts +34 -0
- package/_dist/components/Callout/Callout.d.ts +25 -0
- package/_dist/components/Callout/sample-callout-content.d.ts +2 -0
- package/_dist/components/ComparisonList/ComparisonList.d.ts +32 -0
- package/_dist/components/Heading/Heading.d.ts +15 -0
- package/_dist/components/Icon/Icon.d.ts +592 -0
- package/_dist/components/Icon/iconList.d.ts +1 -0
- package/_dist/components/Modal/Modal.d.ts +25 -0
- package/_dist/components/Pager/AdvancedPagination.d.ts +4 -0
- package/_dist/components/Pager/BasicPagination.d.ts +4 -0
- package/_dist/components/Pager/MiniPagination.d.ts +4 -0
- package/_dist/components/Pager/NavigationButton.d.ts +13 -0
- package/_dist/components/Pager/Pager.d.ts +24 -0
- package/_dist/components/Pager/PagerContext.d.ts +23 -0
- package/_dist/components/Pager/PagerItem.d.ts +14 -0
- package/_dist/components/Pager/usePaginationUI.d.ts +1 -0
- package/_dist/components/Panel/Panel.d.ts +15 -0
- package/_dist/components/PantheonLogo/PantheonLogo.d.ts +25 -0
- package/_dist/components/PlatformIcon/PlatformIcon.d.ts +13 -0
- package/_dist/components/Popover/Popover.d.ts +29 -0
- package/_dist/components/PullQuote/PullQuote.d.ts +23 -0
- package/_dist/components/Skiplink/Skiplink.d.ts +15 -0
- package/_dist/components/SocialLinks/SocialLinks.d.ts +13 -0
- package/_dist/components/StatusIndicator/StatusIndicator.d.ts +15 -0
- package/_dist/components/Stepper/Stepper.d.ts +46 -0
- package/_dist/components/Table/Table.d.ts +15 -0
- package/_dist/components/TableOfContents/TableOfContents.d.ts +25 -0
- package/_dist/components/Tabs/Tabs.d.ts +40 -0
- package/_dist/components/Tag/Tag.d.ts +23 -0
- package/_dist/components/Tooltip/Tooltip.d.ts +21 -0
- package/_dist/components/badges/IndicatorBadge/IndicatorBadge.d.ts +28 -0
- package/_dist/components/badges/StatusBadge/StatusBadge.d.ts +36 -0
- package/_dist/components/buttons/AnimatedButton/AnimatedButton.d.ts +25 -0
- package/_dist/components/buttons/Button/Button.d.ts +5 -0
- package/_dist/components/buttons/ButtonLink/ButtonLink.d.ts +24 -0
- package/_dist/components/buttons/IconButton/IconButton.d.ts +23 -0
- package/_dist/components/buttons/MenuButton/MenuButton.d.ts +65 -0
- package/_dist/components/buttons/SplitButton/SplitButton.d.ts +36 -0
- package/_dist/components/buttons/ToggleButton/ToggleButton.d.ts +31 -0
- package/_dist/components/cards/Card/Card.d.ts +30 -0
- package/_dist/components/cards/CardSelectGroup/CardSelectGroup.d.ts +38 -0
- package/_dist/components/cards/LinksCard/LinksCard.d.ts +17 -0
- package/_dist/components/cards/NewSiteCard/NewSiteCard.d.ts +25 -0
- package/_dist/components/cards/PricingCard/PricingCard.d.ts +64 -0
- package/_dist/components/cards/SiteCard/SiteCard.d.ts +25 -0
- package/_dist/components/expansion-panels/ExpansionPanel/ExpansionPanel.d.ts +19 -0
- package/_dist/components/expansion-panels/ExpansionPanelGroup/ExpansionPanelGroup.d.ts +15 -0
- package/_dist/components/footer/FooterHeading/FooterHeading.d.ts +15 -0
- package/_dist/components/footer/FooterLinks/FooterLinks.d.ts +17 -0
- package/_dist/components/footer/SiteFooter/SiteFooter.d.ts +18 -0
- package/_dist/components/inputs/Checkbox/Checkbox.d.ts +5 -0
- package/_dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +44 -0
- package/_dist/components/inputs/Combobox/Combobox.d.ts +65 -0
- package/_dist/components/inputs/InputFormatted/InputFormatted.d.ts +35 -0
- package/_dist/components/inputs/InputGroup/InputGroup.d.ts +13 -0
- package/_dist/components/inputs/InputObscured/InputObscured.d.ts +33 -0
- package/_dist/components/inputs/InputText/InputText.d.ts +75 -0
- package/_dist/components/inputs/InputWrapper/InputWrapper.d.ts +5 -0
- package/_dist/components/inputs/RadioGroup/RadioGroup.d.ts +46 -0
- package/_dist/components/inputs/Select/Select.d.ts +44 -0
- package/_dist/components/inputs/Textarea/Textarea.d.ts +39 -0
- package/_dist/components/inputs/ToggleSwitch/ToggleSwitch.d.ts +31 -0
- package/_dist/components/inputs/inputs-common.d.ts +40 -0
- package/_dist/components/navigation/DashboardNav/DashboardNav.d.ts +27 -0
- package/_dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +17 -0
- package/_dist/components/navigation/NavMenu/NavMenu.d.ts +19 -0
- package/_dist/components/navigation/NavMenu/NavMenuDropdown.d.ts +14 -0
- package/_dist/components/navigation/Navbar/Navbar.d.ts +37 -0
- package/_dist/components/navigation/SideNav/SideNav.d.ts +29 -0
- package/_dist/components/navigation/SideNavCompact/SideNavCompact.d.ts +29 -0
- package/_dist/components/navigation/UserMenu/UserMenu.d.ts +46 -0
- package/_dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +60 -0
- package/_dist/components/notifications/Banner/Banner.d.ts +35 -0
- package/_dist/components/notifications/InlineMessage/InlineMessage.d.ts +31 -0
- package/_dist/components/notifications/SectionMessage/SectionMessage.d.ts +39 -0
- package/_dist/components/notifications/Toaster/Toast.d.ts +30 -0
- package/_dist/components/notifications/Toaster/Toaster.d.ts +16 -0
- package/_dist/components/notifications/Toaster/useToast.d.ts +2 -0
- package/_dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +23 -0
- package/_dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +25 -0
- package/_dist/components/progress-indicators/Spinner/Spinner.d.ts +21 -0
- package/_dist/components/tiles/AvatarTileList/AvatarTileList.d.ts +22 -0
- package/_dist/components/tiles/StatsTileList/StatsTileList.d.ts +26 -0
- package/_dist/components/tiles/Tile/Tile.d.ts +23 -0
- package/_dist/components/tiles/TileGrid/TileGrid.d.ts +38 -0
- package/_dist/css/component-css/pds-avatar.css +1 -1
- package/_dist/css/component-css/pds-button.css +1 -1
- package/_dist/css/component-css/pds-checkbox.css +1 -1
- package/_dist/css/component-css/pds-index.css +4 -4
- package/_dist/css/component-css/pds-inline-message.css +1 -0
- package/_dist/css/component-css/pds-input-wrapper.css +1 -1
- package/_dist/css/component-css/pds-inputs-common-deprecated.css +1 -1
- package/_dist/css/component-css/pds-status-indicator.css +1 -1
- package/_dist/css/component-css/pds-tag.css +1 -1
- package/_dist/css/component-css/pds-tiles-common.css +1 -1
- package/_dist/css/design-tokens/pds-design-tokens-dark-mode.css +261 -0
- package/_dist/css/design-tokens/pds-design-tokens-light-mode.css +297 -0
- package/_dist/css/design-tokens/pds-design-tokens.css +103 -0
- package/_dist/css/pds-components.css +4 -4
- package/_dist/css/pds-core.css +2 -2
- package/_dist/index.css +1 -0
- package/_dist/index.d.ts +84 -0
- package/_dist/index.js +10954 -0
- package/_dist/index.js.map +1 -0
- package/_dist/layouts/Container/Container.d.ts +16 -0
- package/_dist/layouts/FlexContainer/FlexContainer.d.ts +27 -0
- package/_dist/layouts/GlobalLayout/GlobalLayout.d.ts +23 -0
- package/_dist/layouts/SidebarLayout/SidebarLayout.d.ts +21 -0
- package/_dist/layouts/StepperLayout/StepperLayout.d.ts +13 -0
- package/_dist/layouts/ThreeItemLayout/ThreeItemLayout.d.ts +15 -0
- package/_dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +17 -0
- package/_dist/libs/components/customPropTypes.d.ts +85 -0
- package/_dist/libs/components/utils.d.ts +2 -0
- package/_dist/vars/global.d.ts +2 -0
- package/_dist/vars/spacing.d.ts +17 -0
- package/_dist/vars/z-index.d.ts +5 -0
- package/package.json +90 -40
- package/_dist/cjs/index.js +0 -117
- package/_dist/cjs/index.js.map +0 -1
- package/_dist/esm/index.js +0 -117
- package/_dist/esm/index.js.map +0 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function Container({ children, width, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
width?: string;
|
|
5
|
+
className: any;
|
|
6
|
+
}): React.JSX.Element;
|
|
7
|
+
export namespace Container {
|
|
8
|
+
namespace propTypes {
|
|
9
|
+
export let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
10
|
+
export { ContainerWidth as width };
|
|
11
|
+
export let className: PropTypes.Requireable<string>;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
import React from 'react';
|
|
15
|
+
import PropTypes from 'prop-types';
|
|
16
|
+
import { ContainerWidth } from '@libs/components/customPropTypes';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export function FlexContainer({ alignContent, alignItems, flexDirection, flexWrap, justifyContent, mobileFlex, spacing, children, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
alignContent: any;
|
|
4
|
+
alignItems: any;
|
|
5
|
+
flexDirection: any;
|
|
6
|
+
flexWrap: any;
|
|
7
|
+
justifyContent: any;
|
|
8
|
+
mobileFlex?: string;
|
|
9
|
+
spacing?: string;
|
|
10
|
+
children: any;
|
|
11
|
+
className: any;
|
|
12
|
+
}): React.JSX.Element;
|
|
13
|
+
export namespace FlexContainer {
|
|
14
|
+
namespace propTypes {
|
|
15
|
+
let alignContent: PropTypes.Requireable<string>;
|
|
16
|
+
let alignItems: PropTypes.Requireable<string>;
|
|
17
|
+
let flexDirection: PropTypes.Requireable<string>;
|
|
18
|
+
let flexWrap: PropTypes.Requireable<string>;
|
|
19
|
+
let justifyContent: PropTypes.Requireable<string>;
|
|
20
|
+
let mobileFlex: PropTypes.Requireable<string>;
|
|
21
|
+
let spacing: PropTypes.Requireable<string>;
|
|
22
|
+
let children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
23
|
+
let className: PropTypes.Requireable<string>;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
import React from 'react';
|
|
27
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export function GlobalLayout({ children, hasSidebarToggle, initialSidebarExpanded, mobileMenuMaxWidth, sidebarToggleLabel, skiplinkText, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
hasSidebarToggle?: boolean;
|
|
5
|
+
initialSidebarExpanded?: boolean;
|
|
6
|
+
mobileMenuMaxWidth?: number;
|
|
7
|
+
sidebarToggleLabel?: string;
|
|
8
|
+
skiplinkText?: string;
|
|
9
|
+
className: any;
|
|
10
|
+
}): React.JSX.Element;
|
|
11
|
+
export namespace GlobalLayout {
|
|
12
|
+
namespace propTypes {
|
|
13
|
+
let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
14
|
+
let hasSidebarToggle: PropTypes.Requireable<boolean>;
|
|
15
|
+
let initialSidebarExpanded: PropTypes.Requireable<boolean>;
|
|
16
|
+
let mobileMenuMaxWidth: PropTypes.Requireable<number>;
|
|
17
|
+
let sidebarToggleLabel: PropTypes.Requireable<string>;
|
|
18
|
+
let skiplinkText: PropTypes.Requireable<string>;
|
|
19
|
+
let className: PropTypes.Requireable<string>;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
import React from 'react';
|
|
23
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export function SidebarLayout({ children, gridGap, sidebarLocation, sidebarMobileLocation, sidebarWidth, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
gridGap?: string;
|
|
5
|
+
sidebarLocation?: string;
|
|
6
|
+
sidebarMobileLocation?: string;
|
|
7
|
+
sidebarWidth?: string;
|
|
8
|
+
className: any;
|
|
9
|
+
}): React.JSX.Element;
|
|
10
|
+
export namespace SidebarLayout {
|
|
11
|
+
namespace propTypes {
|
|
12
|
+
let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
13
|
+
let gridGap: PropTypes.Requireable<string>;
|
|
14
|
+
let sidebarLocation: PropTypes.Requireable<string>;
|
|
15
|
+
let sidebarMobileLocation: PropTypes.Requireable<string>;
|
|
16
|
+
let sidebarWidth: PropTypes.Requireable<string>;
|
|
17
|
+
let className: PropTypes.Requireable<string>;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
import React from 'react';
|
|
21
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export function StepperLayout({ children, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
className: any;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
export namespace StepperLayout {
|
|
7
|
+
namespace propTypes {
|
|
8
|
+
let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
9
|
+
let className: PropTypes.Requireable<string>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export function ThreeItemLayout({ children, gridGap, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
gridGap?: string;
|
|
5
|
+
className: any;
|
|
6
|
+
}): React.JSX.Element;
|
|
7
|
+
export namespace ThreeItemLayout {
|
|
8
|
+
namespace propTypes {
|
|
9
|
+
let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
10
|
+
let gridGap: PropTypes.Requireable<string>;
|
|
11
|
+
let className: PropTypes.Requireable<string>;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
import React from 'react';
|
|
15
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export function TwoItemLayout({ children, gridGap, layoutVariant, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
gridGap?: string;
|
|
5
|
+
layoutVariant?: string;
|
|
6
|
+
className: any;
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
export namespace TwoItemLayout {
|
|
9
|
+
namespace propTypes {
|
|
10
|
+
let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
11
|
+
let gridGap: PropTypes.Requireable<string>;
|
|
12
|
+
let layoutVariant: PropTypes.Requireable<string>;
|
|
13
|
+
let className: PropTypes.Requireable<string>;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
import React from 'react';
|
|
17
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export const PDSIcon: PropTypes.Requireable<string>;
|
|
2
|
+
export const ContainerWidth: PropTypes.Requireable<string>;
|
|
3
|
+
export const HeadingItemType: PropTypes.Requireable<Required<PropTypes.InferProps<{
|
|
4
|
+
/**
|
|
5
|
+
* Label for a menu item
|
|
6
|
+
*/
|
|
7
|
+
label: PropTypes.Validator<string>;
|
|
8
|
+
/**
|
|
9
|
+
* Is the item a heading?
|
|
10
|
+
*/
|
|
11
|
+
isHeading: PropTypes.Validator<boolean>;
|
|
12
|
+
}>>>;
|
|
13
|
+
export const LinkItemType: PropTypes.Requireable<Required<PropTypes.InferProps<{
|
|
14
|
+
/**
|
|
15
|
+
* Description of the item
|
|
16
|
+
*/
|
|
17
|
+
description: PropTypes.Requireable<string>;
|
|
18
|
+
/**
|
|
19
|
+
* Is this item disabled?
|
|
20
|
+
*/
|
|
21
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
22
|
+
/**
|
|
23
|
+
* Optional icon for this item. Choose from available icons in the Icon component.
|
|
24
|
+
*/
|
|
25
|
+
iconName: PropTypes.Requireable<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Is the item a link?
|
|
28
|
+
*/
|
|
29
|
+
isLink: PropTypes.Validator<boolean>;
|
|
30
|
+
/**
|
|
31
|
+
* The content of the link.
|
|
32
|
+
*/
|
|
33
|
+
linkContent: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
34
|
+
/**
|
|
35
|
+
* Optional `data-testid` value for this item.
|
|
36
|
+
*/
|
|
37
|
+
testId: PropTypes.Requireable<string>;
|
|
38
|
+
}>>>;
|
|
39
|
+
export const MenuItemType: PropTypes.Requireable<Required<PropTypes.InferProps<{
|
|
40
|
+
/**
|
|
41
|
+
* (optional) Callback function to execute when menu item is activated
|
|
42
|
+
*/
|
|
43
|
+
callback: PropTypes.Requireable<(...args: any[]) => any>;
|
|
44
|
+
/**
|
|
45
|
+
* Description of the item
|
|
46
|
+
*/
|
|
47
|
+
description: PropTypes.Requireable<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Is this item disabled?
|
|
50
|
+
*/
|
|
51
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
52
|
+
/**
|
|
53
|
+
* Optional icon for this item. Choose from available icons in the Icon component.
|
|
54
|
+
*/
|
|
55
|
+
iconName: PropTypes.Requireable<string>;
|
|
56
|
+
/**
|
|
57
|
+
* Optional ID value for this item.
|
|
58
|
+
*/
|
|
59
|
+
id: PropTypes.Requireable<string>;
|
|
60
|
+
/**
|
|
61
|
+
* Label for a menu item
|
|
62
|
+
*/
|
|
63
|
+
label: PropTypes.Validator<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Optional `data-testid` value for this item.
|
|
66
|
+
*/
|
|
67
|
+
testId: PropTypes.Requireable<string>;
|
|
68
|
+
}>>>;
|
|
69
|
+
export const NodeItemType: PropTypes.Requireable<Required<PropTypes.InferProps<{
|
|
70
|
+
/**
|
|
71
|
+
* Is the item a node?
|
|
72
|
+
*/
|
|
73
|
+
isNode: PropTypes.Validator<boolean>;
|
|
74
|
+
/**
|
|
75
|
+
* The content of the node.
|
|
76
|
+
*/
|
|
77
|
+
nodeContent: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
78
|
+
}>>>;
|
|
79
|
+
export const SeparatorItemType: PropTypes.Requireable<Required<PropTypes.InferProps<{
|
|
80
|
+
/**
|
|
81
|
+
* Is the item a separator?
|
|
82
|
+
*/
|
|
83
|
+
isSeparator: PropTypes.Validator<boolean>;
|
|
84
|
+
}>>>;
|
|
85
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const SPACING_2XL: 1.953;
|
|
2
|
+
export const SPACING_2XS: 0.512;
|
|
3
|
+
export const SPACING_3XL: 2.441;
|
|
4
|
+
export const SPACING_3XS: 0.41;
|
|
5
|
+
export const SPACING_4XL: 3.052;
|
|
6
|
+
export const SPACING_4XS: 0.328;
|
|
7
|
+
export const SPACING_5XL: 3.815;
|
|
8
|
+
export const SPACING_5XS: 0.25;
|
|
9
|
+
export const SPACING_6XL: 4.678;
|
|
10
|
+
export const SPACING_6XS: 0.125;
|
|
11
|
+
export const SPACING_7XL: 5.96;
|
|
12
|
+
export const SPACING_8XL: 7.451;
|
|
13
|
+
export const SPACING_L: 1.25;
|
|
14
|
+
export const SPACING_M: 1;
|
|
15
|
+
export const SPACING_S: 0.8;
|
|
16
|
+
export const SPACING_XL: 1.563;
|
|
17
|
+
export const SPACING_XS: 0.64;
|
package/package.json
CHANGED
|
@@ -1,37 +1,60 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pantheon-systems/pds-toolkit-react",
|
|
3
3
|
"technology": "React",
|
|
4
|
-
"version": "1.0.0-dev.
|
|
4
|
+
"version": "1.0.0-dev.132",
|
|
5
5
|
"description": "PDS toolkit built using the React framework",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/pantheon-systems/pds-toolkit-react.git"
|
|
9
9
|
},
|
|
10
10
|
"author": "Pantheon Systems",
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=18.0.0 <=20.x"
|
|
13
|
+
},
|
|
11
14
|
"bugs": {
|
|
12
15
|
"url": "https://github.com/pantheon-systems/pds-toolkit-react/issues"
|
|
13
16
|
},
|
|
14
17
|
"homepage": "https://github.com/pantheon-systems/pds-toolkit-react#readme",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
18
|
+
"module": "_dist/index.js",
|
|
19
|
+
"types": "_dist/index.d.ts",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./_dist/index.d.ts",
|
|
23
|
+
"import": "./_dist/index.js"
|
|
24
|
+
},
|
|
25
|
+
"./*": "./_dist/*"
|
|
26
|
+
},
|
|
17
27
|
"files": [
|
|
18
28
|
"_dist"
|
|
19
29
|
],
|
|
30
|
+
"sideEffects": [
|
|
31
|
+
"*.css"
|
|
32
|
+
],
|
|
33
|
+
"type": "module",
|
|
20
34
|
"scripts": {
|
|
21
|
-
"
|
|
22
|
-
"
|
|
35
|
+
"postinstall": "vendor-copy",
|
|
36
|
+
"build": "npm run vite build && npm run build:types || true",
|
|
37
|
+
"build:types": "tsc -p tsconfig.build.json",
|
|
38
|
+
"prebuild": "vendor-copy",
|
|
39
|
+
"postbuild": "npm run build:css && npm run build:css:components && npm run build:css:layouts && npm run build:css:packageExtraCss",
|
|
23
40
|
"build:css": "postcss src/core.css -o _dist/css/pds-core.css",
|
|
24
41
|
"build:css:components": "postcss src/components/index.css -o _dist/css/pds-components.css",
|
|
25
42
|
"build:css:layouts": "postcss src/layouts/index.css -o _dist/css/pds-layouts.css",
|
|
26
|
-
"build:css:
|
|
43
|
+
"build:css:packageExtraCss": "node scripts/package-extra-css.js",
|
|
27
44
|
"build:css:watch": "npm run build:css -- -w",
|
|
45
|
+
"typecheck:tsc": "tsc --noEmit",
|
|
46
|
+
"typecheck:attw": "attw --pack . --ignore-rules cjs-resolves-to-esm no-resolution internal-resolution-error",
|
|
47
|
+
"typecheck:publint": "npx publint",
|
|
48
|
+
"typecheck": "npm run typecheck:attw && npm run typecheck:publint && npm run typecheck:tsc",
|
|
28
49
|
"prestorybook": "npm run build:css",
|
|
29
50
|
"storybook": "storybook dev -p 6006",
|
|
30
51
|
"prestorybook:build": "npm run build:css",
|
|
31
52
|
"storybook:build": "storybook build",
|
|
32
53
|
"develop": "concurrently --raw --kill-others \"npm run storybook\" \"npm run build:css:watch\"",
|
|
33
|
-
"
|
|
34
|
-
"eslint
|
|
54
|
+
"predevelop": "vendor-copy",
|
|
55
|
+
"eslint": "eslint --ext .jsx,.tsx,.js,.ts",
|
|
56
|
+
"eslint:all": "eslint src --ext .jsx,.tsx,.js,.ts --cache",
|
|
57
|
+
"format:fix": "prettier . --write && npm run eslint:all -- --fix",
|
|
35
58
|
"pretest": "npm run build:css",
|
|
36
59
|
"test": "playwright test",
|
|
37
60
|
"pretest:vrt": "npm run build:css",
|
|
@@ -49,67 +72,72 @@
|
|
|
49
72
|
"generate:foundation": "plop foundation",
|
|
50
73
|
"generate:pattern": "plop pattern",
|
|
51
74
|
"generate:utility": "plop utility",
|
|
52
|
-
"prepare": "husky install"
|
|
75
|
+
"prepare": "husky install",
|
|
76
|
+
"build-storybook": "storybook build",
|
|
77
|
+
"vite": "vite"
|
|
53
78
|
},
|
|
54
79
|
"devDependencies": {
|
|
80
|
+
"@arethetypeswrong/cli": "^0.15.3",
|
|
55
81
|
"@axe-core/playwright": "^4.7.0",
|
|
56
82
|
"@babel/preset-env": "^7.21.5",
|
|
57
83
|
"@babel/preset-react": "^7.18.6",
|
|
58
84
|
"@csstools/postcss-design-tokens": "^2.0.4",
|
|
59
85
|
"@csstools/postcss-global-data": "^1.0.3",
|
|
60
|
-
"@floating-ui/react-dom": "~1.3.0",
|
|
61
86
|
"@pantheon-systems/pds-design-tokens": "^1.0.0-dev.75",
|
|
62
87
|
"@playwright/test": "^1.36.2",
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
65
|
-
"@
|
|
66
|
-
"@storybook/addon-
|
|
67
|
-
"@storybook/addon-
|
|
68
|
-
"@storybook/
|
|
69
|
-
"@storybook/
|
|
70
|
-
"@storybook/
|
|
71
|
-
"@storybook/
|
|
72
|
-
"@storybook/
|
|
73
|
-
"@storybook/
|
|
74
|
-
"@
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"@storybook/theming": "^7.5.1",
|
|
88
|
+
"@storybook/addon-a11y": "^8.2.4",
|
|
89
|
+
"@storybook/addon-essentials": "^8.2.4",
|
|
90
|
+
"@storybook/addon-interactions": "^8.2.4",
|
|
91
|
+
"@storybook/addon-links": "^8.2.4",
|
|
92
|
+
"@storybook/addon-webpack5-compiler-swc": "^1.0.2",
|
|
93
|
+
"@storybook/blocks": "^8.2.4",
|
|
94
|
+
"@storybook/react": "^8.2.4",
|
|
95
|
+
"@storybook/react-vite": "^8.2.4",
|
|
96
|
+
"@storybook/react-webpack5": "^8.2.4",
|
|
97
|
+
"@storybook/test": "^8.2.4",
|
|
98
|
+
"@storybook/theming": "^8.2.4",
|
|
99
|
+
"@typescript-eslint/eslint-plugin": "^7.7.0",
|
|
100
|
+
"@typescript-eslint/parser": "^7.7.0",
|
|
101
|
+
"@vitejs/plugin-react": "^4.3.0",
|
|
78
102
|
"axe-html-reporter": "^2.2.3",
|
|
79
103
|
"concurrently": "^8.0.1",
|
|
80
104
|
"cssnano": "^6.0.1",
|
|
81
|
-
"eslint": "^8.
|
|
82
|
-
"eslint-config-prettier": "^
|
|
105
|
+
"eslint": "^8.57.0",
|
|
106
|
+
"eslint-config-prettier": "^9.1.0",
|
|
107
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
83
108
|
"eslint-plugin-react": "^7.32.2",
|
|
84
|
-
"eslint-plugin-storybook": "^0.
|
|
109
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
85
110
|
"fast-glob": "^3.3.2",
|
|
86
111
|
"husky": "^8.0.3",
|
|
87
112
|
"lint-staged": "^13.2.3",
|
|
88
113
|
"plop": "^3.1.2",
|
|
89
|
-
"postcss": "^8.4.
|
|
114
|
+
"postcss": "^8.4.38",
|
|
90
115
|
"postcss-cli": "^10.1.0",
|
|
91
116
|
"postcss-custom-media": "^9.1.3",
|
|
92
117
|
"postcss-import": "^15.1.0",
|
|
93
118
|
"postcss-insert": "^1.0.0",
|
|
119
|
+
"postcss-loader": "^8.1.1",
|
|
94
120
|
"postcss-nested": "^6.0.1",
|
|
95
|
-
"prettier": "
|
|
121
|
+
"prettier": "3.2.5",
|
|
122
|
+
"prettier-plugin-css-order": "^2.1.2",
|
|
96
123
|
"prop-types": "^15.8.1",
|
|
97
124
|
"react": "^18.2.0",
|
|
98
125
|
"react-dom": "^18.2.0",
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
126
|
+
"storybook": "^8.2.4",
|
|
127
|
+
"storybook-dark-mode": "^4.0.1",
|
|
128
|
+
"typescript": "^5.4.5",
|
|
129
|
+
"vendor-copy": "^3.0.1",
|
|
130
|
+
"vite": "^5.2.11",
|
|
131
|
+
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
132
|
+
"vite-tsconfig-paths": "^4.3.2"
|
|
106
133
|
},
|
|
107
134
|
"peerDependencies": {
|
|
108
135
|
"react": "^16.0.0 || ^17.0.0 || ^18.0.0"
|
|
109
136
|
},
|
|
110
137
|
"dependencies": {
|
|
111
138
|
"@floating-ui/react": "^0.24.3",
|
|
112
|
-
"@
|
|
139
|
+
"@floating-ui/react-dom": "~1.3.0",
|
|
140
|
+
"@reactuses/core": "^5.0.15",
|
|
113
141
|
"focus-trap-react": "^10.2.1",
|
|
114
142
|
"hash-sum": "^2.0.0",
|
|
115
143
|
"react-merge-refs": "^2.1.1",
|
|
@@ -117,8 +145,30 @@
|
|
|
117
145
|
"react-toastify": "^9.0.3"
|
|
118
146
|
},
|
|
119
147
|
"lint-staged": {
|
|
120
|
-
"src/**/*.{js,jsx}": [
|
|
148
|
+
"src/**/*.{js,jsx,ts,tsx}": [
|
|
121
149
|
"npm run eslint"
|
|
122
150
|
]
|
|
123
|
-
}
|
|
151
|
+
},
|
|
152
|
+
"vendorCopy": [
|
|
153
|
+
{
|
|
154
|
+
"from": "node_modules/@pantheon-systems/pds-design-tokens/build/css/pds-design-tokens.css",
|
|
155
|
+
"to": "src/foundations/design-tokens/pds-design-tokens.css"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"from": "node_modules/@pantheon-systems/pds-design-tokens/build/css/pds-design-tokens-dark-mode.css",
|
|
159
|
+
"to": "src/foundations/design-tokens/pds-design-tokens-dark-mode.css"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"from": "node_modules/@pantheon-systems/pds-design-tokens/build/css/pds-design-tokens-dark-mode.css",
|
|
163
|
+
"to": "public/design-tokens/pds-design-tokens-dark-mode.css"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"from": "node_modules/@pantheon-systems/pds-design-tokens/build/css/pds-design-tokens-light-mode.css",
|
|
167
|
+
"to": "src/foundations/design-tokens/pds-design-tokens-light-mode.css"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"from": "node_modules/@pantheon-systems/pds-design-tokens/build/css/pds-design-tokens-light-mode.css",
|
|
171
|
+
"to": "public/design-tokens/pds-design-tokens-light-mode.css"
|
|
172
|
+
}
|
|
173
|
+
]
|
|
124
174
|
}
|