@pantheon-systems/pds-toolkit-react 2.0.0-beta.0 → 2.0.0-beta.10
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/StatusChecker/StatusChecker.d.ts +8 -1
- package/dist/components/Table/Table.d.ts +24 -7
- package/dist/components/buttons/Button/Button.d.ts +11 -1
- package/dist/components/buttons/ClipboardButton/ClipboardButton.d.ts +6 -1
- package/dist/components/buttons/IconButton/IconButton.d.ts +1 -1
- package/dist/components/buttons/SSOButton/SSOButton.d.ts +7 -1
- package/dist/components/buttons/UtilityButton/UtilityButton.d.ts +10 -2
- package/dist/components/empty-states/VerticalEmptyState/VerticalEmptyState.d.ts +45 -7
- package/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
- package/dist/components/inputs/Datepicker/Datepicker.d.ts +18 -18
- package/dist/components/inputs/Switch/Switch.d.ts +7 -0
- package/dist/components/inputs/WorkspacePicker/WorkspacePicker.d.ts +90 -0
- package/dist/components/media/Illustration/Illustration.d.ts +37 -0
- package/dist/components/media/Illustration/generated-illustration-data.d.ts +16 -0
- package/dist/components/media/Illustration/illustration-registry.d.ts +19 -0
- package/dist/components/panels/BookmarksPanel/BookmarksPanel.d.ts +13 -1
- package/dist/css/component-css/pds-bookmarks-panel.css +1 -1
- package/dist/css/component-css/pds-button.css +2 -2
- package/dist/css/component-css/pds-compact-empty-state.css +1 -1
- package/dist/css/component-css/pds-cta-link.css +1 -1
- package/dist/css/component-css/pds-datepicker.css +1 -1
- package/dist/css/component-css/pds-horizontal-empty-state.css +1 -1
- package/dist/css/component-css/pds-illustration.css +1 -0
- package/dist/css/component-css/pds-index.css +14 -14
- package/dist/css/component-css/pds-segmented-button.css +2 -2
- package/dist/css/component-css/pds-status-checker.css +1 -1
- package/dist/css/component-css/pds-switch.css +1 -1
- package/dist/css/component-css/pds-table.css +3 -3
- package/dist/css/component-css/pds-tags-input.css +1 -1
- package/dist/css/component-css/pds-toaster.css +1 -1
- package/dist/css/component-css/pds-vertical-empty-state.css +1 -1
- package/dist/css/component-css/pds-workspace-picker.css +1 -0
- package/dist/css/component-css/pds-workspace-selector-panel.css +1 -1
- package/dist/css/component-css/pds-workspace-selector.css +1 -1
- package/dist/css/design-tokens/variables.dark.css +3 -0
- package/dist/css/design-tokens/variables.light.css +3 -0
- package/dist/css/layout-css/pds-app-layout.css +1 -1
- package/dist/css/layout-css/pds-index.css +1 -1
- package/dist/css/layout-css/pds-sidebar-layout.css +1 -1
- package/dist/css/pds-components.css +14 -14
- package/dist/css/pds-core.css +1 -1
- package/dist/css/pds-layouts.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3825 -2648
- package/dist/index.js.map +1 -1
- package/dist/index.source.d.ts +2 -0
- package/dist/layouts/SidebarLayout/SidebarLayout.d.ts +9 -2
- package/dist/libs/components/WorkspaceListItem/WorkspaceListItem.d.ts +6 -5
- package/package.json +15 -4
package/dist/index.source.d.ts
CHANGED
|
@@ -51,11 +51,13 @@ export * from './components/inputs/TagsInput/TagsInput';
|
|
|
51
51
|
export * from './components/inputs/Textarea/Textarea';
|
|
52
52
|
export * from './components/inputs/TextInput/TextInput';
|
|
53
53
|
export * from './components/inputs/Timepicker/Timepicker';
|
|
54
|
+
export * from './components/inputs/WorkspacePicker/WorkspacePicker';
|
|
54
55
|
export * from './components/links/CTALink/CTALink';
|
|
55
56
|
export * from './components/links/LinkNewWindow/LinkNewWindow';
|
|
56
57
|
export * from './components/links/Skiplink/Skiplink';
|
|
57
58
|
export * from './components/loading-indicators/Skeleton/Skeleton';
|
|
58
59
|
export * from './components/loading-indicators/Spinner/Spinner';
|
|
60
|
+
export * from './components/media/Illustration/Illustration';
|
|
59
61
|
export * from './components/media/Picture/Picture';
|
|
60
62
|
export * from './components/media/VideoEmbed/VideoEmbed';
|
|
61
63
|
export * from './components/navigation/BookmarksMenu/BookmarksMenu';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { GapScale } from '../../libs/types/layout-types';
|
|
2
|
+
import { ContainerStackBreakpoint, GapScale } from '../../libs/types/layout-types';
|
|
3
3
|
import './sidebar-layout.css';
|
|
4
4
|
/**
|
|
5
5
|
* Prop types for SidebarLayout
|
|
@@ -63,9 +63,16 @@ interface SidebarLayoutProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
63
63
|
* Minimum width of the sidebar in rems. Ensures the sidebar remains usable on medium-sized screens.
|
|
64
64
|
*/
|
|
65
65
|
sidebarWidthMin?: number;
|
|
66
|
+
/**
|
|
67
|
+
* When a `second-sidebar` is present, merges it with the primary sidebar
|
|
68
|
+
* into one stacked column once this element's own width drops below the
|
|
69
|
+
* threshold, instead of dropping straight to the full `[data-pds-mobile]`
|
|
70
|
+
* stack. No effect without a `second-sidebar` slot.
|
|
71
|
+
*/
|
|
72
|
+
stackSidebarsBelow?: ContainerStackBreakpoint;
|
|
66
73
|
}
|
|
67
74
|
/**
|
|
68
75
|
* SidebarLayout UI component
|
|
69
76
|
*/
|
|
70
|
-
export declare const SidebarLayout: ({ children, className, gridGap, mobileGridGap, secondSidebarMobileLocation, secondSidebarWidth, secondSidebarWidthMax, secondSidebarWidthMin, sidebarLocation, sidebarMobileLocation, sidebarWidth, sidebarWidthMax, sidebarWidthMin, ...props }: SidebarLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
77
|
+
export declare const SidebarLayout: ({ children, className, gridGap, mobileGridGap, secondSidebarMobileLocation, secondSidebarWidth, secondSidebarWidthMax, secondSidebarWidthMin, sidebarLocation, sidebarMobileLocation, sidebarWidth, sidebarWidthMax, sidebarWidthMin, stackSidebarsBelow, ...props }: SidebarLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
71
78
|
export {};
|
|
@@ -31,10 +31,11 @@ export interface WorkspaceListItemProps extends ComponentPropsWithoutRef<'div'>
|
|
|
31
31
|
workspace: WorkspaceSelectorItem;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
* Shared avatar/name/status markup for a single workspace, used by
|
|
35
|
-
* `WorkspaceSelector` (dropdown menu item)
|
|
36
|
-
* (embedded list item)
|
|
37
|
-
* semantics, or ARIA role of
|
|
38
|
-
*
|
|
34
|
+
* Shared avatar/name/status markup for a single workspace, used by
|
|
35
|
+
* `WorkspaceSelector` (dropdown menu item), `WorkspaceSelectorPanel`
|
|
36
|
+
* (embedded list item), and `WorkspacePicker` (selectable list item).
|
|
37
|
+
* Intentionally has no interactive wrapper, list semantics, or ARIA role of
|
|
38
|
+
* its own -- each caller owns those, since their items differ (menuitem vs.
|
|
39
|
+
* plain list item vs. selectable button).
|
|
39
40
|
*/
|
|
40
41
|
export declare const WorkspaceListItem: ({ avatarSize, className, showActiveState, workspace, ...props }: WorkspaceListItemProps) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pantheon-systems/pds-toolkit-react",
|
|
3
3
|
"technology": "React",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.10",
|
|
5
5
|
"description": "PDS toolkit built using the React framework",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
],
|
|
48
48
|
"type": "module",
|
|
49
49
|
"scripts": {
|
|
50
|
-
"prebuild:lib": "node scripts/generate-icon-data.js && node scripts/filter-exports-by-tags.js --filter",
|
|
50
|
+
"prebuild:lib": "node scripts/generate-icon-data.js && node scripts/generate-illustration-data.js && node scripts/filter-exports-by-tags.js --filter",
|
|
51
51
|
"build:lib": "vite build && npm run build:types",
|
|
52
52
|
"build:types": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|
|
53
53
|
"postbuild:lib": "npm run build:css && npm run build:css:components && npm run build:css:layouts && npm run build:css:packageExtraCss && npm run generate:svg-icons",
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
"pretest:a11y:generate": "npm run build:css",
|
|
81
81
|
"test:a11y:generate": "DISABLE_A11Y_ADDON=true npm run build && node __tests__/a11y/a11y.generate-tests.js",
|
|
82
82
|
"test:a11y": "USE_STATIC_STORYBOOK=true DISABLE_A11Y_ADDON=true playwright test --project 'a11y'",
|
|
83
|
+
"test:render": "playwright test --project 'render'",
|
|
83
84
|
"test:a11y:results": "npx http-server ./__tests__/a11y/results/",
|
|
84
85
|
"eslint": "eslint",
|
|
85
86
|
"eslint:all": "eslint src --cache",
|
|
@@ -87,6 +88,8 @@
|
|
|
87
88
|
"generate:component": "plop component",
|
|
88
89
|
"generate:icon": "plop icon",
|
|
89
90
|
"generate:icon-data": "node scripts/generate-icon-data.js",
|
|
91
|
+
"generate:illustration": "plop illustration",
|
|
92
|
+
"generate:illustration-data": "node scripts/generate-illustration-data.js",
|
|
90
93
|
"generate:svg-icons": "node scripts/generate-svg-files.js",
|
|
91
94
|
"generate:layout": "plop layout",
|
|
92
95
|
"generate:foundation": "plop foundation",
|
|
@@ -112,9 +115,13 @@
|
|
|
112
115
|
"devDependencies": {
|
|
113
116
|
"@arethetypeswrong/cli": "^0.15.3",
|
|
114
117
|
"@axe-core/playwright": "^4.11.3",
|
|
118
|
+
"@babel/generator": "^8.0.6",
|
|
119
|
+
"@babel/parser": "^7.29.9",
|
|
115
120
|
"@babel/preset-env": "^7.29.5",
|
|
116
121
|
"@babel/preset-react": "^7.18.6",
|
|
117
122
|
"@babel/preset-typescript": "^7.28.5",
|
|
123
|
+
"@babel/traverse": "^8.0.6",
|
|
124
|
+
"@babel/types": "^8.0.6",
|
|
118
125
|
"@csstools/postcss-design-tokens": "^2.0.4",
|
|
119
126
|
"@csstools/postcss-global-data": "^1.0.3",
|
|
120
127
|
"@fortawesome/free-brands-svg-icons": "7.2.0",
|
|
@@ -128,6 +135,8 @@
|
|
|
128
135
|
"@storybook/addon-webpack5-compiler-swc": "^4.0.3",
|
|
129
136
|
"@storybook/react-vite": "^10.4.0",
|
|
130
137
|
"@storybook/react-webpack5": "^10.4.0",
|
|
138
|
+
"@svgr/core": "^8.1.0",
|
|
139
|
+
"@svgr/plugin-jsx": "^8.1.0",
|
|
131
140
|
"@types/prismjs": "^1.26.6",
|
|
132
141
|
"@types/react": "^19.2.14",
|
|
133
142
|
"@typescript-eslint/eslint-plugin": "^8.59.3",
|
|
@@ -144,6 +153,7 @@
|
|
|
144
153
|
"eslint-plugin-import": "^2.32.0",
|
|
145
154
|
"eslint-plugin-prettier": "^5.5.5",
|
|
146
155
|
"eslint-plugin-react": "^7.32.2",
|
|
156
|
+
"eslint-plugin-react-google-translate": "^1.1.0",
|
|
147
157
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
148
158
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
149
159
|
"eslint-plugin-sort-destructure-keys": "^2.0.0",
|
|
@@ -185,7 +195,7 @@
|
|
|
185
195
|
"@floating-ui/react": "^0.24.3",
|
|
186
196
|
"@floating-ui/react-dom": "~1.3.0",
|
|
187
197
|
"@internationalized/date": "^3.12.2",
|
|
188
|
-
"@pantheon-systems/pds-design-tokens": "^2.0.0-beta.
|
|
198
|
+
"@pantheon-systems/pds-design-tokens": "^2.0.0-beta.1",
|
|
189
199
|
"@reactuses/core": "^5.0.15",
|
|
190
200
|
"date-fns": "^4.1.0",
|
|
191
201
|
"downshift": "^9.3.2",
|
|
@@ -208,7 +218,8 @@
|
|
|
208
218
|
},
|
|
209
219
|
"overrides": {
|
|
210
220
|
"@babel/plugin-transform-modules-systemjs": "^7.29.4",
|
|
211
|
-
"
|
|
221
|
+
"webpack-dev-middleware": "^7.4.6",
|
|
222
|
+
"fast-uri": "^3.1.8",
|
|
212
223
|
"hono": "^4.12.18",
|
|
213
224
|
"ip-address": "^10.1.1",
|
|
214
225
|
"js-yaml": "^4.3.2",
|