@pantheon-systems/pds-toolkit-react 1.0.0-dev.21 → 1.0.0-dev.210
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 +31 -1
- package/_dist/components/Avatar/Avatar.d.ts +37 -0
- package/_dist/components/BranchDiff/BranchDiff.d.ts +35 -0
- package/_dist/components/CTALink/CTALink.d.ts +20 -0
- package/_dist/components/CTASlice/CTASlice.d.ts +43 -0
- package/_dist/components/Callout/Callout.d.ts +31 -0
- package/_dist/components/Callout/sample-callout-content.d.ts +2 -0
- package/_dist/components/ComparisonList/ComparisonList.d.ts +42 -0
- package/_dist/components/FileDiff/FileDiff.d.ts +35 -0
- package/_dist/components/Heading/Heading.d.ts +15 -0
- package/_dist/components/Icon/Icon.d.ts +662 -0
- package/_dist/components/LinkNewWindow/LinkNewWindow.d.ts +31 -0
- package/_dist/components/Modal/Modal.d.ts +40 -0
- package/_dist/components/Pagination/Pagination.d.ts +54 -0
- package/_dist/components/Pagination/usePagination.d.ts +7 -0
- package/_dist/components/PantheonLogo/PantheonLogo.d.ts +32 -0
- package/_dist/components/PantheonLogo/pantheon-logo-data.d.ts +4 -0
- package/_dist/components/PlatformIcon/PlatformIcon.d.ts +12 -0
- package/_dist/components/Popover/Popover.d.ts +58 -0
- package/_dist/components/PullQuote/PullQuote.d.ts +34 -0
- package/_dist/components/RefreshChecker/RefreshChecker.d.ts +46 -0
- package/_dist/components/SiteDashboardHeading/SiteDashboardHeading.d.ts +28 -0
- package/_dist/components/Skiplink/Skiplink.d.ts +21 -0
- package/_dist/components/SocialLinks/SocialLinks.d.ts +23 -0
- package/_dist/components/StatusIndicator/StatusIndicator.d.ts +20 -0
- package/_dist/components/Stepper/Stepper.d.ts +49 -0
- package/_dist/components/Table/Table.d.ts +27 -0
- package/_dist/components/TableOfContents/TableOfContents.d.ts +45 -0
- package/_dist/components/Tabs/Tabs.d.ts +63 -0
- package/_dist/components/Tag/Tag.d.ts +39 -0
- package/_dist/components/Tooltip/Tooltip.d.ts +51 -0
- package/_dist/components/badges/IndicatorBadge/IndicatorBadge.d.ts +27 -0
- package/_dist/components/badges/StatusBadge/StatusBadge.d.ts +35 -0
- package/_dist/components/badges/Tally/Tally.d.ts +38 -0
- package/_dist/components/buttons/Button/Button.d.ts +62 -0
- package/_dist/components/buttons/ButtonLink/ButtonLink.d.ts +44 -0
- package/_dist/components/buttons/IconButton/IconButton.d.ts +50 -0
- package/_dist/components/buttons/MenuButton/MenuButton.d.ts +73 -0
- package/_dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +58 -0
- package/_dist/components/buttons/SplitButton/SplitButton.d.ts +37 -0
- package/_dist/components/buttons/ToggleButton/ToggleButton.d.ts +39 -0
- package/_dist/components/buttons/UtilityButton/UtilityButton.d.ts +44 -0
- package/_dist/components/cards/Card/Card.d.ts +29 -0
- package/_dist/components/cards/CardHeading/CardHeading.d.ts +32 -0
- package/_dist/components/cards/CardSelectGroup/CardSelectGroup.d.ts +60 -0
- package/_dist/components/cards/LinksCard/LinksCard.d.ts +29 -0
- package/_dist/components/cards/LinksCard/links-card-sample-data.d.ts +2 -0
- package/_dist/components/cards/NewSiteCard/NewSiteCard.d.ts +57 -0
- package/_dist/components/cards/PricingCard/PricingCard.d.ts +90 -0
- package/_dist/components/cards/SiteCard/SiteCard.d.ts +45 -0
- package/_dist/components/footer/FooterHeading/FooterHeading.d.ts +22 -0
- package/_dist/components/footer/FooterLinks/FooterLinks.d.ts +26 -0
- package/_dist/components/footer/SiteFooter/SiteFooter.d.ts +26 -0
- package/_dist/components/footer/SiteFooter/footer-content.d.ts +2 -0
- package/_dist/components/inputs/Checkbox/Checkbox.d.ts +92 -0
- package/_dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +60 -0
- package/_dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +76 -0
- package/_dist/components/inputs/Combobox/Combobox.d.ts +134 -0
- package/_dist/components/inputs/FileUpload/FileUpload.d.ts +81 -0
- package/_dist/components/inputs/InputGroup/InputGroup.d.ts +19 -0
- package/_dist/components/inputs/RadioGroup/RadioGroup.d.ts +92 -0
- package/_dist/components/inputs/Select/Select.d.ts +118 -0
- package/_dist/components/inputs/Switch/Switch.d.ts +74 -0
- package/_dist/components/inputs/TextInput/TextInput.d.ts +127 -0
- package/_dist/components/inputs/Textarea/Textarea.d.ts +106 -0
- package/_dist/components/inputs/input-types.d.ts +1 -0
- package/_dist/components/inputs/input-utilities.d.ts +90 -0
- package/_dist/components/navigation/Breadcrumb/Breadcrumb.d.ts +23 -0
- package/_dist/components/navigation/DashboardNav/DashboardNav.d.ts +35 -0
- package/_dist/components/navigation/DashboardNav/DashboardNavItem.d.ts +25 -0
- package/_dist/components/navigation/DashboardNav/dashboard-nav-utilities.d.ts +4 -0
- package/_dist/components/navigation/DashboardSearch/DashboardSearch.d.ts +70 -0
- package/_dist/components/navigation/DashboardSearch/SiteOptionDisplay.d.ts +39 -0
- package/_dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +28 -0
- package/_dist/components/navigation/NavMenu/NavMenu.d.ts +43 -0
- package/_dist/components/navigation/NavMenu/NavMenuDropdown.d.ts +24 -0
- package/_dist/components/navigation/Navbar/Navbar.d.ts +60 -0
- package/_dist/components/navigation/SideNav/SideNav.d.ts +47 -0
- package/_dist/components/navigation/SideNavCompact/SideNavCompact.d.ts +47 -0
- package/_dist/components/navigation/TabMenu/TabMenu.d.ts +43 -0
- package/_dist/components/navigation/TabMenu/TabMenuDropdown.d.ts +33 -0
- package/_dist/components/navigation/UserMenu/UserMenu.d.ts +69 -0
- package/_dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +80 -0
- package/_dist/components/navigation/navigation-types.d.ts +29 -0
- package/_dist/components/navigation/navigation-utilities.d.ts +7 -0
- package/_dist/components/notifications/Banner/Banner.d.ts +47 -0
- package/_dist/components/notifications/InlineMessage/InlineMessage.d.ts +37 -0
- package/_dist/components/notifications/SectionMessage/SectionMessage.d.ts +47 -0
- package/_dist/components/notifications/Toaster/Toast.d.ts +46 -0
- package/_dist/components/notifications/Toaster/Toaster.d.ts +29 -0
- package/_dist/components/notifications/Toaster/useToast.d.ts +13 -0
- package/_dist/components/panels/ExpansionPanel/ExpansionPanel.d.ts +32 -0
- package/_dist/components/panels/ExpansionPanelGroup/ExpansionPanelGroup.d.ts +24 -0
- package/_dist/components/panels/Panel/Panel.d.ts +35 -0
- package/_dist/components/panels/PanelList/PanelList.d.ts +28 -0
- package/_dist/components/panels/PanelList/PanelRow.d.ts +19 -0
- package/_dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +53 -0
- package/_dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +41 -0
- package/_dist/components/progress-indicators/Spinner/Spinner.d.ts +33 -0
- package/_dist/components/tiles/AvatarTileList/AvatarTileList.d.ts +28 -0
- package/_dist/components/tiles/Tile/Tile.d.ts +42 -0
- package/_dist/components/tiles/TileGrid/TileGrid.d.ts +29 -0
- package/_dist/css/component-css/pds-avatar-tile-list.css +1 -0
- package/_dist/css/component-css/pds-avatar.css +1 -0
- package/_dist/css/component-css/pds-banner.css +1 -0
- package/_dist/css/component-css/pds-branch-diff.css +1 -0
- package/_dist/css/component-css/pds-breadcrumb.css +1 -0
- package/_dist/css/component-css/pds-button-link.css +1 -0
- package/_dist/css/component-css/pds-button.css +81 -0
- package/_dist/css/component-css/pds-callout.css +1 -0
- package/_dist/css/component-css/pds-card-heading.css +1 -0
- package/_dist/css/component-css/pds-card-select-group.css +1 -0
- package/_dist/css/component-css/pds-card.css +1 -0
- package/_dist/css/component-css/pds-checkbox-group.css +1 -0
- package/_dist/css/component-css/pds-checkbox.css +1 -0
- package/_dist/css/component-css/pds-combobox.css +1 -0
- package/_dist/css/component-css/pds-comparison-list.css +1 -0
- package/_dist/css/component-css/pds-cta-link.css +1 -0
- package/_dist/css/component-css/pds-cta-slice.css +1 -0
- package/_dist/css/component-css/pds-dashboard-nav.css +5 -0
- package/_dist/css/component-css/pds-dashboard-search.css +1 -0
- package/_dist/css/component-css/pds-dropdown-menu.css +2 -0
- package/_dist/css/component-css/pds-expansion-panel-group.css +1 -0
- package/_dist/css/component-css/pds-expansion-panel.css +1 -0
- package/_dist/css/component-css/pds-file-diff.css +1 -0
- package/_dist/css/component-css/pds-file-upload.css +7 -0
- package/_dist/css/component-css/pds-footer-heading.css +1 -0
- package/_dist/css/component-css/pds-footer-links.css +1 -0
- package/_dist/css/component-css/pds-heading.css +1 -0
- package/_dist/css/component-css/pds-icon-button.css +7 -0
- package/_dist/css/component-css/pds-icon-story-only.css +1 -0
- package/_dist/css/component-css/pds-index.css +154 -0
- package/_dist/css/component-css/pds-indicator-badge.css +39 -0
- package/_dist/css/component-css/pds-inline-message.css +1 -0
- package/_dist/css/component-css/pds-input-group.css +1 -0
- package/_dist/css/component-css/pds-input-utilities.css +1 -0
- package/_dist/css/component-css/pds-link-new-window.css +1 -0
- package/_dist/css/component-css/pds-links-card.css +1 -0
- package/_dist/css/component-css/pds-menu-button.css +1 -0
- package/_dist/css/component-css/pds-modal.css +1 -0
- package/_dist/css/component-css/pds-nav-menu.css +7 -0
- package/_dist/css/component-css/pds-navbar.css +1 -0
- package/_dist/css/component-css/pds-new-site-card.css +1 -0
- package/_dist/css/component-css/pds-pagination.css +1 -0
- package/_dist/css/component-css/pds-panel-list.css +1 -0
- package/_dist/css/component-css/pds-panel.css +1 -0
- package/_dist/css/component-css/pds-pantheon-logo.css +1 -0
- package/_dist/css/component-css/pds-platform-icon.css +1 -0
- package/_dist/css/component-css/pds-popover.css +1 -0
- package/_dist/css/component-css/pds-pricing-card-local.css +1 -0
- package/_dist/css/component-css/pds-pricing-card.css +1 -0
- package/_dist/css/component-css/pds-progress-bar.css +1 -0
- package/_dist/css/component-css/pds-progress-ring.css +1 -0
- package/_dist/css/component-css/pds-pull-quote.css +1 -0
- package/_dist/css/component-css/pds-radio-group.css +1 -0
- package/_dist/css/component-css/pds-refresh-checker.css +1 -0
- package/_dist/css/component-css/pds-section-message.css +1 -0
- package/_dist/css/component-css/pds-segmented-button.css +1 -0
- package/_dist/css/component-css/pds-select.css +1 -0
- package/_dist/css/component-css/pds-side-nav-compact.css +1 -0
- package/_dist/css/component-css/pds-side-nav.css +1 -0
- package/_dist/css/component-css/pds-site-card.css +1 -0
- package/_dist/css/component-css/pds-site-dashboard-heading.css +1 -0
- package/_dist/css/component-css/pds-site-footer.css +1 -0
- package/_dist/css/component-css/pds-skiplink.css +1 -0
- package/_dist/css/component-css/pds-social-links.css +1 -0
- package/_dist/css/component-css/pds-spinner.css +1 -0
- package/_dist/css/component-css/pds-split-button.css +2 -0
- package/_dist/css/component-css/pds-status-badge.css +9 -0
- package/_dist/css/component-css/pds-status-indicator.css +1 -0
- package/_dist/css/component-css/pds-stepper.css +1 -0
- package/_dist/css/component-css/pds-switch.css +3 -0
- package/_dist/css/component-css/pds-tab-menu.css +2 -0
- package/_dist/css/component-css/pds-table-of-contents.css +1 -0
- package/_dist/css/component-css/pds-table.css +1 -0
- package/_dist/css/component-css/pds-tabs.css +1 -0
- package/_dist/css/component-css/pds-tag.css +1 -0
- package/_dist/css/component-css/pds-tally.css +1 -0
- package/_dist/css/component-css/pds-text-input.css +1 -0
- package/_dist/css/component-css/pds-textarea.css +1 -0
- package/_dist/css/component-css/pds-tile.css +1 -0
- package/_dist/css/component-css/pds-tiles-common.css +1 -0
- package/_dist/css/component-css/pds-toaster.css +1 -0
- package/_dist/css/component-css/pds-toggle-button.css +1 -0
- package/_dist/css/component-css/pds-tooltip.css +1 -0
- package/_dist/css/component-css/pds-user-menu-story-only.css +1 -0
- package/_dist/css/component-css/pds-user-menu.css +1 -0
- package/_dist/css/component-css/pds-utility-button.css +1 -0
- package/_dist/css/component-css/pds-workspace-selector.css +1 -0
- package/_dist/css/design-tokens/pds-design-tokens-dark-mode.css +250 -0
- package/_dist/css/design-tokens/pds-design-tokens-light-mode.css +334 -0
- package/_dist/css/design-tokens/pds-design-tokens.css +114 -0
- package/_dist/css/pds-components.css +117 -70
- package/_dist/css/pds-core.css +6 -2
- package/_dist/css/pds-layouts.css +6 -1
- package/_dist/index.css +1 -0
- package/_dist/index.d.ts +100 -0
- package/_dist/index.js +8908 -0
- package/_dist/index.js.map +1 -0
- package/_dist/layouts/Container/Container.d.ts +25 -0
- package/_dist/layouts/DashboardGlobal/DashboardGlobal.d.ts +57 -0
- package/_dist/layouts/DashboardInner/DashboardInner.d.ts +20 -0
- package/_dist/layouts/FlexContainer/FlexContainer.d.ts +72 -0
- package/_dist/layouts/GlobalWrapper/GlobalWrapper.d.ts +19 -0
- package/_dist/layouts/SidebarLayout/SidebarLayout.d.ts +36 -0
- package/_dist/layouts/StepperLayout/StepperLayout.d.ts +20 -0
- package/_dist/layouts/ThreeItemLayout/ThreeItemLayout.d.ts +30 -0
- package/_dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +34 -0
- package/_dist/layouts/layout-types.d.ts +2 -0
- package/_dist/libs/components/utility-components.d.ts +15 -0
- package/_dist/libs/components/utils.d.ts +4 -0
- package/_dist/libs/types/custom-types.d.ts +103 -0
- package/_dist/mocks/data/navigation-items.d.ts +375 -0
- package/_dist/mocks/data/pagination-items.d.ts +16 -0
- package/_dist/mocks/markup/dashboard-main-content.d.ts +10 -0
- package/_dist/mocks/markup/dashboard-navigation.d.ts +11 -0
- package/_dist/mocks/markup/modal.d.ts +2 -0
- package/_dist/mocks/markup/panel-row-content.d.ts +7 -0
- package/_dist/utilities/context-providers/ResponsiveContext/ResponsiveContext.d.ts +6 -0
- package/_dist/utilities/hooks/useWindowWidth.d.ts +1 -0
- package/_dist/vars/spacing.d.ts +17 -0
- package/_dist/vars/z-index.d.ts +5 -0
- package/package.json +85 -43
- package/_dist/cjs/index.js +0 -98
- package/_dist/cjs/index.js.map +0 -1
- package/_dist/esm/index.js +0 -98
- package/_dist/esm/index.js.map +0 -1
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const dialogMsgBase = "Activated menu item => ";
|
|
3
|
+
import { UserMenuItem } from '@components/navigation/UserMenu/UserMenu';
|
|
4
|
+
export declare const blogMenuItems: {
|
|
5
|
+
linkContent: React.JSX.Element;
|
|
6
|
+
}[];
|
|
7
|
+
export declare const dashboardNavSampleMenuItems: ({
|
|
8
|
+
icon: string;
|
|
9
|
+
linkContent: React.JSX.Element;
|
|
10
|
+
links?: undefined;
|
|
11
|
+
isActive?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
icon: string;
|
|
14
|
+
linkContent: string;
|
|
15
|
+
links: {
|
|
16
|
+
linkContent: React.JSX.Element;
|
|
17
|
+
}[];
|
|
18
|
+
isActive?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
icon: string;
|
|
21
|
+
linkContent: React.JSX.Element;
|
|
22
|
+
isActive: boolean;
|
|
23
|
+
links?: undefined;
|
|
24
|
+
})[];
|
|
25
|
+
export declare const dashboardNavSampleMenuItemsRR: ({
|
|
26
|
+
icon: string;
|
|
27
|
+
linkContent: React.JSX.Element;
|
|
28
|
+
links?: undefined;
|
|
29
|
+
} | {
|
|
30
|
+
icon: string;
|
|
31
|
+
linkContent: React.JSX.Element;
|
|
32
|
+
links: {
|
|
33
|
+
linkContent: React.JSX.Element;
|
|
34
|
+
}[];
|
|
35
|
+
})[];
|
|
36
|
+
export declare const dashboardSegmentedButtonItems: {
|
|
37
|
+
label: string;
|
|
38
|
+
value: string;
|
|
39
|
+
}[];
|
|
40
|
+
export declare const documentationMenuItems: ({
|
|
41
|
+
label: string;
|
|
42
|
+
links: {
|
|
43
|
+
linkContent: React.JSX.Element;
|
|
44
|
+
}[];
|
|
45
|
+
linkContent?: undefined;
|
|
46
|
+
} | {
|
|
47
|
+
linkContent: React.JSX.Element;
|
|
48
|
+
label?: undefined;
|
|
49
|
+
links?: undefined;
|
|
50
|
+
})[];
|
|
51
|
+
export declare const helpMenuItems: ({
|
|
52
|
+
label: string;
|
|
53
|
+
callback: (item: any) => void;
|
|
54
|
+
isSeparator?: undefined;
|
|
55
|
+
isHeading?: undefined;
|
|
56
|
+
} | {
|
|
57
|
+
isSeparator: boolean;
|
|
58
|
+
label?: undefined;
|
|
59
|
+
callback?: undefined;
|
|
60
|
+
isHeading?: undefined;
|
|
61
|
+
} | {
|
|
62
|
+
label: string;
|
|
63
|
+
isHeading: boolean;
|
|
64
|
+
callback?: undefined;
|
|
65
|
+
isSeparator?: undefined;
|
|
66
|
+
})[];
|
|
67
|
+
export declare const micrositeMenuItems: ({
|
|
68
|
+
label: string;
|
|
69
|
+
links: {
|
|
70
|
+
linkContent: React.JSX.Element;
|
|
71
|
+
}[];
|
|
72
|
+
linkContent?: undefined;
|
|
73
|
+
} | {
|
|
74
|
+
linkContent: React.JSX.Element;
|
|
75
|
+
label?: undefined;
|
|
76
|
+
links?: undefined;
|
|
77
|
+
})[];
|
|
78
|
+
export declare const navMenuSampleMenuItems: ({
|
|
79
|
+
label: string;
|
|
80
|
+
links: ({
|
|
81
|
+
linkContent: React.JSX.Element;
|
|
82
|
+
isSeparator?: undefined;
|
|
83
|
+
} | {
|
|
84
|
+
isSeparator: boolean;
|
|
85
|
+
linkContent?: undefined;
|
|
86
|
+
})[];
|
|
87
|
+
linkContent?: undefined;
|
|
88
|
+
isActive?: undefined;
|
|
89
|
+
} | {
|
|
90
|
+
linkContent: React.JSX.Element;
|
|
91
|
+
isActive: boolean;
|
|
92
|
+
label?: undefined;
|
|
93
|
+
links?: undefined;
|
|
94
|
+
} | {
|
|
95
|
+
linkContent: React.JSX.Element;
|
|
96
|
+
label?: undefined;
|
|
97
|
+
links?: undefined;
|
|
98
|
+
isActive?: undefined;
|
|
99
|
+
})[];
|
|
100
|
+
export declare const navMenuSampleMenuItemsRR: ({
|
|
101
|
+
label: string;
|
|
102
|
+
links: ({
|
|
103
|
+
linkContent: React.JSX.Element;
|
|
104
|
+
isSeparator?: undefined;
|
|
105
|
+
} | {
|
|
106
|
+
isSeparator: boolean;
|
|
107
|
+
linkContent?: undefined;
|
|
108
|
+
})[];
|
|
109
|
+
linkContent?: undefined;
|
|
110
|
+
} | {
|
|
111
|
+
linkContent: React.JSX.Element;
|
|
112
|
+
label?: undefined;
|
|
113
|
+
links?: undefined;
|
|
114
|
+
})[];
|
|
115
|
+
export declare const sampleSites: ({
|
|
116
|
+
id: string;
|
|
117
|
+
machineName: string;
|
|
118
|
+
name: string;
|
|
119
|
+
status: string;
|
|
120
|
+
type: string;
|
|
121
|
+
} | {
|
|
122
|
+
id: string;
|
|
123
|
+
name: string;
|
|
124
|
+
status: string;
|
|
125
|
+
type: string;
|
|
126
|
+
machineName?: undefined;
|
|
127
|
+
} | {
|
|
128
|
+
id: string;
|
|
129
|
+
machineName: string;
|
|
130
|
+
name: string;
|
|
131
|
+
status: string;
|
|
132
|
+
type?: undefined;
|
|
133
|
+
})[];
|
|
134
|
+
export declare const sideNavSampleMenuItems: ({
|
|
135
|
+
linkContent: React.JSX.Element;
|
|
136
|
+
links?: undefined;
|
|
137
|
+
} | {
|
|
138
|
+
linkContent: string;
|
|
139
|
+
links: ({
|
|
140
|
+
linkContent: React.JSX.Element;
|
|
141
|
+
isActive?: undefined;
|
|
142
|
+
} | {
|
|
143
|
+
linkContent: React.JSX.Element;
|
|
144
|
+
isActive: boolean;
|
|
145
|
+
})[];
|
|
146
|
+
})[];
|
|
147
|
+
export declare const sideNavSampleMenuItemsWithTallies: ({
|
|
148
|
+
linkContent: React.JSX.Element;
|
|
149
|
+
links?: undefined;
|
|
150
|
+
} | {
|
|
151
|
+
linkContent: React.JSX.Element;
|
|
152
|
+
links: {
|
|
153
|
+
linkContent: React.JSX.Element;
|
|
154
|
+
}[];
|
|
155
|
+
} | {
|
|
156
|
+
linkContent: string;
|
|
157
|
+
links: ({
|
|
158
|
+
linkContent: React.JSX.Element;
|
|
159
|
+
isActive?: undefined;
|
|
160
|
+
} | {
|
|
161
|
+
linkContent: React.JSX.Element;
|
|
162
|
+
isActive: boolean;
|
|
163
|
+
})[];
|
|
164
|
+
})[];
|
|
165
|
+
export declare const sideNavSampleMenuItemsRR: ({
|
|
166
|
+
linkContent: React.JSX.Element;
|
|
167
|
+
links?: undefined;
|
|
168
|
+
} | {
|
|
169
|
+
linkContent: string;
|
|
170
|
+
links: {
|
|
171
|
+
linkContent: React.JSX.Element;
|
|
172
|
+
}[];
|
|
173
|
+
})[];
|
|
174
|
+
export declare const sideNavSampleMenuItemsMultidev: ({
|
|
175
|
+
linkContent: React.JSX.Element;
|
|
176
|
+
isActive: boolean;
|
|
177
|
+
} | {
|
|
178
|
+
linkContent: React.JSX.Element;
|
|
179
|
+
isActive?: undefined;
|
|
180
|
+
})[];
|
|
181
|
+
export declare const sideNavSampleMenuItemsCode: ({
|
|
182
|
+
linkContent: React.JSX.Element;
|
|
183
|
+
isActive: boolean;
|
|
184
|
+
} | {
|
|
185
|
+
linkContent: React.JSX.Element;
|
|
186
|
+
isActive?: undefined;
|
|
187
|
+
})[];
|
|
188
|
+
export declare const sideNavCompactSampleMenuItems: ({
|
|
189
|
+
linkContent: React.JSX.Element;
|
|
190
|
+
links?: undefined;
|
|
191
|
+
isActive?: undefined;
|
|
192
|
+
} | {
|
|
193
|
+
linkContent: string;
|
|
194
|
+
links: {
|
|
195
|
+
linkContent: React.JSX.Element;
|
|
196
|
+
}[];
|
|
197
|
+
isActive?: undefined;
|
|
198
|
+
} | {
|
|
199
|
+
linkContent: React.JSX.Element;
|
|
200
|
+
isActive: boolean;
|
|
201
|
+
links: ({
|
|
202
|
+
linkContent: string;
|
|
203
|
+
links: {
|
|
204
|
+
linkContent: React.JSX.Element;
|
|
205
|
+
}[];
|
|
206
|
+
} | {
|
|
207
|
+
linkContent: React.JSX.Element;
|
|
208
|
+
links?: undefined;
|
|
209
|
+
})[];
|
|
210
|
+
})[];
|
|
211
|
+
export declare const sideNavCompactSampleMenuItemsRR: ({
|
|
212
|
+
linkContent: React.JSX.Element;
|
|
213
|
+
links?: undefined;
|
|
214
|
+
} | {
|
|
215
|
+
linkContent: string;
|
|
216
|
+
links: {
|
|
217
|
+
linkContent: React.JSX.Element;
|
|
218
|
+
}[];
|
|
219
|
+
} | {
|
|
220
|
+
linkContent: React.JSX.Element;
|
|
221
|
+
links: ({
|
|
222
|
+
linkContent: string;
|
|
223
|
+
links: {
|
|
224
|
+
linkContent: React.JSX.Element;
|
|
225
|
+
}[];
|
|
226
|
+
} | {
|
|
227
|
+
linkContent: React.JSX.Element;
|
|
228
|
+
links?: undefined;
|
|
229
|
+
})[];
|
|
230
|
+
})[];
|
|
231
|
+
export declare const tabMenuSampleMenuItems: ({
|
|
232
|
+
dropdownSettings: {
|
|
233
|
+
buttonLabel: string;
|
|
234
|
+
filterLabel: string;
|
|
235
|
+
filterPlaceholder: string;
|
|
236
|
+
minFilterItems: number;
|
|
237
|
+
noResultsText: string;
|
|
238
|
+
};
|
|
239
|
+
icon: string;
|
|
240
|
+
linkContent: React.JSX.Element;
|
|
241
|
+
links: {
|
|
242
|
+
linkContent: React.JSX.Element;
|
|
243
|
+
}[];
|
|
244
|
+
isActive?: undefined;
|
|
245
|
+
} | {
|
|
246
|
+
icon: string;
|
|
247
|
+
linkContent: React.JSX.Element;
|
|
248
|
+
isActive: boolean;
|
|
249
|
+
dropdownSettings?: undefined;
|
|
250
|
+
links?: undefined;
|
|
251
|
+
} | {
|
|
252
|
+
icon: string;
|
|
253
|
+
linkContent: React.JSX.Element;
|
|
254
|
+
dropdownSettings?: undefined;
|
|
255
|
+
links?: undefined;
|
|
256
|
+
isActive?: undefined;
|
|
257
|
+
})[];
|
|
258
|
+
export declare const tabMenuSampleMenuItemsMultidev: ({
|
|
259
|
+
dropdownSettings: {
|
|
260
|
+
buttonLabel: string;
|
|
261
|
+
filterLabel: string;
|
|
262
|
+
filterPlaceholder: string;
|
|
263
|
+
minFilterItems: number;
|
|
264
|
+
noResultsText: string;
|
|
265
|
+
};
|
|
266
|
+
icon: string;
|
|
267
|
+
linkContent: React.JSX.Element;
|
|
268
|
+
links: ({
|
|
269
|
+
linkContent: React.JSX.Element;
|
|
270
|
+
isActive?: undefined;
|
|
271
|
+
} | {
|
|
272
|
+
linkContent: React.JSX.Element;
|
|
273
|
+
isActive: boolean;
|
|
274
|
+
})[];
|
|
275
|
+
promoteActiveChildLink: boolean;
|
|
276
|
+
} | {
|
|
277
|
+
icon: string;
|
|
278
|
+
linkContent: React.JSX.Element;
|
|
279
|
+
dropdownSettings?: undefined;
|
|
280
|
+
links?: undefined;
|
|
281
|
+
promoteActiveChildLink?: undefined;
|
|
282
|
+
})[];
|
|
283
|
+
export declare const userMenuSampleItems: UserMenuItem[];
|
|
284
|
+
export declare const workspaceItemsSimple: ({
|
|
285
|
+
displayName: string;
|
|
286
|
+
workspaceId: string;
|
|
287
|
+
workspaceLink: React.JSX.Element;
|
|
288
|
+
imageSrc?: undefined;
|
|
289
|
+
planTier?: undefined;
|
|
290
|
+
isUnprivileged?: undefined;
|
|
291
|
+
isActive?: undefined;
|
|
292
|
+
} | {
|
|
293
|
+
displayName: string;
|
|
294
|
+
imageSrc: string;
|
|
295
|
+
planTier: string;
|
|
296
|
+
workspaceId: string;
|
|
297
|
+
workspaceLink: React.JSX.Element;
|
|
298
|
+
isUnprivileged?: undefined;
|
|
299
|
+
isActive?: undefined;
|
|
300
|
+
} | {
|
|
301
|
+
displayName: string;
|
|
302
|
+
imageSrc: string;
|
|
303
|
+
planTier: string;
|
|
304
|
+
workspaceId: string;
|
|
305
|
+
workspaceLink: React.JSX.Element;
|
|
306
|
+
isUnprivileged: boolean;
|
|
307
|
+
isActive?: undefined;
|
|
308
|
+
} | {
|
|
309
|
+
displayName: string;
|
|
310
|
+
planTier: string;
|
|
311
|
+
workspaceId: string;
|
|
312
|
+
workspaceLink: React.JSX.Element;
|
|
313
|
+
isActive: boolean;
|
|
314
|
+
imageSrc?: undefined;
|
|
315
|
+
isUnprivileged?: undefined;
|
|
316
|
+
} | {
|
|
317
|
+
displayName: string;
|
|
318
|
+
planTier: string;
|
|
319
|
+
workspaceId: string;
|
|
320
|
+
workspaceLink: React.JSX.Element;
|
|
321
|
+
imageSrc?: undefined;
|
|
322
|
+
isUnprivileged?: undefined;
|
|
323
|
+
isActive?: undefined;
|
|
324
|
+
})[];
|
|
325
|
+
export declare const workspaceItemsPersonal: ({
|
|
326
|
+
displayName: string;
|
|
327
|
+
workspaceId: string;
|
|
328
|
+
workspaceLink: React.JSX.Element;
|
|
329
|
+
isActive: boolean;
|
|
330
|
+
imageSrc?: undefined;
|
|
331
|
+
planTier?: undefined;
|
|
332
|
+
} | {
|
|
333
|
+
displayName: string;
|
|
334
|
+
imageSrc: string;
|
|
335
|
+
planTier: string;
|
|
336
|
+
workspaceId: string;
|
|
337
|
+
workspaceLink: React.JSX.Element;
|
|
338
|
+
isActive?: undefined;
|
|
339
|
+
} | {
|
|
340
|
+
displayName: string;
|
|
341
|
+
planTier: string;
|
|
342
|
+
workspaceId: string;
|
|
343
|
+
workspaceLink: React.JSX.Element;
|
|
344
|
+
isActive?: undefined;
|
|
345
|
+
imageSrc?: undefined;
|
|
346
|
+
})[];
|
|
347
|
+
export declare const workspaceItemsLonger: ({
|
|
348
|
+
displayName: string;
|
|
349
|
+
workspaceId: string;
|
|
350
|
+
workspaceLink: React.JSX.Element;
|
|
351
|
+
imageSrc?: undefined;
|
|
352
|
+
planTier?: undefined;
|
|
353
|
+
isActive?: undefined;
|
|
354
|
+
} | {
|
|
355
|
+
displayName: string;
|
|
356
|
+
imageSrc: string;
|
|
357
|
+
planTier: string;
|
|
358
|
+
workspaceId: string;
|
|
359
|
+
workspaceLink: React.JSX.Element;
|
|
360
|
+
isActive?: undefined;
|
|
361
|
+
} | {
|
|
362
|
+
displayName: string;
|
|
363
|
+
planTier: string;
|
|
364
|
+
workspaceId: string;
|
|
365
|
+
workspaceLink: React.JSX.Element;
|
|
366
|
+
imageSrc?: undefined;
|
|
367
|
+
isActive?: undefined;
|
|
368
|
+
} | {
|
|
369
|
+
displayName: string;
|
|
370
|
+
planTier: string;
|
|
371
|
+
workspaceId: string;
|
|
372
|
+
workspaceLink: React.JSX.Element;
|
|
373
|
+
isActive: boolean;
|
|
374
|
+
imageSrc?: undefined;
|
|
375
|
+
})[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const paginationItemsSites: {
|
|
2
|
+
sitename: string;
|
|
3
|
+
dateCreated: string;
|
|
4
|
+
user: string;
|
|
5
|
+
upstream: string;
|
|
6
|
+
plan: string;
|
|
7
|
+
status: string;
|
|
8
|
+
}[];
|
|
9
|
+
export declare const paginationItemsUsers: {
|
|
10
|
+
id: number;
|
|
11
|
+
first_name: string;
|
|
12
|
+
last_name: string;
|
|
13
|
+
job_title: string;
|
|
14
|
+
email: string;
|
|
15
|
+
phone: string;
|
|
16
|
+
}[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const DemoDashboardInnerHeaderLeft: ({ slot: _slot, }: {
|
|
3
|
+
slot?: string;
|
|
4
|
+
}) => React.JSX.Element;
|
|
5
|
+
export declare const DemoDashboardInnerHeaderRight: ({ slot: _slot, }: {
|
|
6
|
+
slot?: string;
|
|
7
|
+
}) => React.JSX.Element;
|
|
8
|
+
export declare const DemoDashboardContent: ({ slot: _slot }: {
|
|
9
|
+
slot?: string;
|
|
10
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const DemoDashboardSidebarNav: ({ slot: _slot }: {
|
|
3
|
+
slot?: string;
|
|
4
|
+
}) => React.JSX.Element;
|
|
5
|
+
export declare const DemoDashboardFooter: ({ slot: _slot }: {
|
|
6
|
+
slot?: string;
|
|
7
|
+
}) => React.JSX.Element;
|
|
8
|
+
export declare const DemoDashboardNavbar: ({ isAdmin, slot: _slot, }: {
|
|
9
|
+
isAdmin?: boolean;
|
|
10
|
+
slot?: string;
|
|
11
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useWindowWidth: () => number;
|
|
@@ -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,42 +1,65 @@
|
|
|
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.210",
|
|
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 <=22.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
|
-
"build": "
|
|
22
|
-
"
|
|
35
|
+
"build": "npm run vite build && npm run build:types || true",
|
|
36
|
+
"build:types": "tsc -p tsconfig.build.json",
|
|
37
|
+
"prebuild": "vendor-copy",
|
|
38
|
+
"postbuild": "npm run build:css && npm run build:css:components && npm run build:css:layouts && npm run build:css:packageExtraCss",
|
|
23
39
|
"build:css": "postcss src/core.css -o _dist/css/pds-core.css",
|
|
24
40
|
"build:css:components": "postcss src/components/index.css -o _dist/css/pds-components.css",
|
|
25
41
|
"build:css:layouts": "postcss src/layouts/index.css -o _dist/css/pds-layouts.css",
|
|
42
|
+
"build:css:packageExtraCss": "node scripts/package-extra-css.js",
|
|
26
43
|
"build:css:watch": "npm run build:css -- -w",
|
|
44
|
+
"typecheck:tsc": "tsc --noEmit",
|
|
45
|
+
"typecheck:attw": "attw --pack . --ignore-rules cjs-resolves-to-esm no-resolution internal-resolution-error",
|
|
46
|
+
"typecheck:publint": "npx publint",
|
|
47
|
+
"typecheck": "npm run typecheck:attw && npm run typecheck:publint && npm run typecheck:tsc",
|
|
27
48
|
"prestorybook": "npm run build:css",
|
|
28
49
|
"storybook": "storybook dev -p 6006",
|
|
29
50
|
"prestorybook:build": "npm run build:css",
|
|
30
51
|
"storybook:build": "storybook build",
|
|
31
52
|
"develop": "concurrently --raw --kill-others \"npm run storybook\" \"npm run build:css:watch\"",
|
|
32
|
-
"
|
|
33
|
-
"eslint
|
|
53
|
+
"predevelop": "vendor-copy",
|
|
54
|
+
"eslint": "eslint --ext .jsx,.tsx,.js,.ts",
|
|
55
|
+
"eslint:all": "eslint src --ext .jsx,.tsx,.js,.ts --cache",
|
|
56
|
+
"format:fix": "prettier . --write && npm run eslint:all -- --fix",
|
|
34
57
|
"pretest": "npm run build:css",
|
|
35
58
|
"test": "playwright test",
|
|
36
59
|
"pretest:vrt": "npm run build:css",
|
|
37
|
-
"test:vrt": "playwright test --project '
|
|
38
|
-
"pretest:vrt:update
|
|
39
|
-
"test:vrt:update
|
|
60
|
+
"test:vrt": "playwright test --project 'firefox' 'safari' 'iphone'",
|
|
61
|
+
"pretest:vrt:update": "npm run build:css",
|
|
62
|
+
"test:vrt:update": "npm run test:vrt -- --update-snapshots",
|
|
40
63
|
"pretest:a11y:generate": "npm run build:css",
|
|
41
64
|
"test:a11y:generate": "npm run storybook:build && npx sb extract && node __tests__/a11y/a11y.generate-tests.js",
|
|
42
65
|
"test:a11y": "playwright test --project 'a11y'",
|
|
@@ -48,72 +71,91 @@
|
|
|
48
71
|
"generate:foundation": "plop foundation",
|
|
49
72
|
"generate:pattern": "plop pattern",
|
|
50
73
|
"generate:utility": "plop utility",
|
|
51
|
-
"prepare": "husky install"
|
|
74
|
+
"prepare": "husky install",
|
|
75
|
+
"build-storybook": "storybook build",
|
|
76
|
+
"vite": "vite"
|
|
52
77
|
},
|
|
53
78
|
"devDependencies": {
|
|
79
|
+
"@arethetypeswrong/cli": "^0.15.3",
|
|
54
80
|
"@axe-core/playwright": "^4.7.0",
|
|
55
81
|
"@babel/preset-env": "^7.21.5",
|
|
56
82
|
"@babel/preset-react": "^7.18.6",
|
|
57
83
|
"@csstools/postcss-design-tokens": "^2.0.4",
|
|
58
84
|
"@csstools/postcss-global-data": "^1.0.3",
|
|
59
|
-
"@floating-ui/react-dom": "~1.3.0",
|
|
60
|
-
"@pantheon-systems/pds-design-tokens": "^1.0.0-dev.75",
|
|
61
85
|
"@playwright/test": "^1.36.2",
|
|
62
|
-
"@
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
65
|
-
"@storybook/addon-
|
|
66
|
-
"@storybook/addon-
|
|
67
|
-
"@storybook/
|
|
68
|
-
"@storybook/
|
|
69
|
-
"@storybook/
|
|
70
|
-
"@storybook/
|
|
71
|
-
"@storybook/
|
|
72
|
-
"@storybook/
|
|
73
|
-
"@
|
|
74
|
-
"@
|
|
75
|
-
"@
|
|
76
|
-
"@storybook/theming": "^7.4.0",
|
|
86
|
+
"@storybook/addon-a11y": "^8.2.4",
|
|
87
|
+
"@storybook/addon-essentials": "^8.2.4",
|
|
88
|
+
"@storybook/addon-interactions": "^8.2.4",
|
|
89
|
+
"@storybook/addon-links": "^8.2.4",
|
|
90
|
+
"@storybook/addon-webpack5-compiler-swc": "^1.0.2",
|
|
91
|
+
"@storybook/blocks": "^8.2.4",
|
|
92
|
+
"@storybook/react": "^8.2.4",
|
|
93
|
+
"@storybook/react-vite": "^8.2.4",
|
|
94
|
+
"@storybook/react-webpack5": "^8.2.4",
|
|
95
|
+
"@storybook/test": "^8.2.4",
|
|
96
|
+
"@storybook/theming": "^8.2.4",
|
|
97
|
+
"@typescript-eslint/eslint-plugin": "^7.7.0",
|
|
98
|
+
"@typescript-eslint/parser": "^7.7.0",
|
|
99
|
+
"@vitejs/plugin-react": "^4.3.0",
|
|
77
100
|
"axe-html-reporter": "^2.2.3",
|
|
78
101
|
"concurrently": "^8.0.1",
|
|
79
102
|
"cssnano": "^6.0.1",
|
|
80
|
-
"eslint": "^8.
|
|
81
|
-
"eslint-config-prettier": "^
|
|
103
|
+
"eslint": "^8.57.0",
|
|
104
|
+
"eslint-config-prettier": "^9.1.0",
|
|
105
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
82
106
|
"eslint-plugin-react": "^7.32.2",
|
|
83
|
-
"eslint-plugin-storybook": "^0.
|
|
107
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
108
|
+
"fast-glob": "^3.3.2",
|
|
84
109
|
"husky": "^8.0.3",
|
|
85
110
|
"lint-staged": "^13.2.3",
|
|
86
111
|
"plop": "^3.1.2",
|
|
87
|
-
"postcss": "^8.4.
|
|
112
|
+
"postcss": "^8.4.38",
|
|
88
113
|
"postcss-cli": "^10.1.0",
|
|
89
114
|
"postcss-custom-media": "^9.1.3",
|
|
90
115
|
"postcss-import": "^15.1.0",
|
|
91
116
|
"postcss-insert": "^1.0.0",
|
|
117
|
+
"postcss-loader": "^8.1.1",
|
|
92
118
|
"postcss-nested": "^6.0.1",
|
|
93
|
-
"prettier": "
|
|
119
|
+
"prettier": "3.2.5",
|
|
120
|
+
"prettier-plugin-css-order": "^2.1.2",
|
|
94
121
|
"prop-types": "^15.8.1",
|
|
95
122
|
"react": "^18.2.0",
|
|
96
123
|
"react-dom": "^18.2.0",
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
124
|
+
"storybook": "^8.2.4",
|
|
125
|
+
"storybook-dark-mode": "^4.0.1",
|
|
126
|
+
"typescript": "^5.4.5",
|
|
127
|
+
"vendor-copy": "^3.0.1",
|
|
128
|
+
"vite": "^5.2.11",
|
|
129
|
+
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
130
|
+
"vite-tsconfig-paths": "^4.3.2"
|
|
103
131
|
},
|
|
104
132
|
"peerDependencies": {
|
|
105
133
|
"react": "^16.0.0 || ^17.0.0 || ^18.0.0"
|
|
106
134
|
},
|
|
107
135
|
"dependencies": {
|
|
108
136
|
"@floating-ui/react": "^0.24.3",
|
|
109
|
-
"@
|
|
137
|
+
"@floating-ui/react-dom": "~1.3.0",
|
|
138
|
+
"@pantheon-systems/pds-design-tokens": "^1.0.0-dev.147",
|
|
139
|
+
"@reactuses/core": "^5.0.15",
|
|
110
140
|
"focus-trap-react": "^10.2.1",
|
|
141
|
+
"hash-sum": "^2.0.0",
|
|
142
|
+
"react-hotkeys-hook": "^4.5.1",
|
|
111
143
|
"react-router-dom": "^6.13.0",
|
|
112
|
-
"
|
|
144
|
+
"react-toastify": "^9.0.3"
|
|
113
145
|
},
|
|
114
146
|
"lint-staged": {
|
|
115
|
-
"src/**/*.{js,jsx}": [
|
|
147
|
+
"src/**/*.{js,jsx,ts,tsx}": [
|
|
116
148
|
"npm run eslint"
|
|
117
149
|
]
|
|
118
|
-
}
|
|
150
|
+
},
|
|
151
|
+
"vendorCopy": [
|
|
152
|
+
{
|
|
153
|
+
"from": "node_modules/@pantheon-systems/pds-design-tokens/build/css/pds-design-tokens-dark-mode.css",
|
|
154
|
+
"to": "public/design-tokens/pds-design-tokens-dark-mode.css"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"from": "node_modules/@pantheon-systems/pds-design-tokens/build/css/pds-design-tokens-light-mode.css",
|
|
158
|
+
"to": "public/design-tokens/pds-design-tokens-light-mode.css"
|
|
159
|
+
}
|
|
160
|
+
]
|
|
119
161
|
}
|