@pantheon-systems/pds-toolkit-react 2.0.0-beta.1 → 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.
Files changed (49) hide show
  1. package/dist/components/StatusChecker/StatusChecker.d.ts +8 -1
  2. package/dist/components/Table/Table.d.ts +24 -7
  3. package/dist/components/buttons/Button/Button.d.ts +11 -1
  4. package/dist/components/buttons/ClipboardButton/ClipboardButton.d.ts +6 -1
  5. package/dist/components/buttons/IconButton/IconButton.d.ts +1 -1
  6. package/dist/components/buttons/SSOButton/SSOButton.d.ts +7 -1
  7. package/dist/components/buttons/UtilityButton/UtilityButton.d.ts +10 -2
  8. package/dist/components/empty-states/VerticalEmptyState/VerticalEmptyState.d.ts +45 -7
  9. package/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
  10. package/dist/components/inputs/Datepicker/Datepicker.d.ts +18 -18
  11. package/dist/components/inputs/Switch/Switch.d.ts +7 -0
  12. package/dist/components/inputs/WorkspacePicker/WorkspacePicker.d.ts +90 -0
  13. package/dist/components/media/Illustration/Illustration.d.ts +37 -0
  14. package/dist/components/media/Illustration/generated-illustration-data.d.ts +16 -0
  15. package/dist/components/media/Illustration/illustration-registry.d.ts +19 -0
  16. package/dist/components/panels/BookmarksPanel/BookmarksPanel.d.ts +13 -1
  17. package/dist/css/component-css/pds-bookmarks-panel.css +1 -1
  18. package/dist/css/component-css/pds-button.css +2 -2
  19. package/dist/css/component-css/pds-compact-empty-state.css +1 -1
  20. package/dist/css/component-css/pds-datepicker.css +1 -1
  21. package/dist/css/component-css/pds-horizontal-empty-state.css +1 -1
  22. package/dist/css/component-css/pds-illustration.css +1 -0
  23. package/dist/css/component-css/pds-index.css +14 -14
  24. package/dist/css/component-css/pds-segmented-button.css +2 -2
  25. package/dist/css/component-css/pds-status-checker.css +1 -1
  26. package/dist/css/component-css/pds-switch.css +1 -1
  27. package/dist/css/component-css/pds-table.css +3 -3
  28. package/dist/css/component-css/pds-tags-input.css +1 -1
  29. package/dist/css/component-css/pds-toaster.css +1 -1
  30. package/dist/css/component-css/pds-vertical-empty-state.css +1 -1
  31. package/dist/css/component-css/pds-workspace-picker.css +1 -0
  32. package/dist/css/component-css/pds-workspace-selector-panel.css +1 -1
  33. package/dist/css/component-css/pds-workspace-selector.css +1 -1
  34. package/dist/css/design-tokens/variables.dark.css +3 -0
  35. package/dist/css/design-tokens/variables.light.css +3 -0
  36. package/dist/css/layout-css/pds-app-layout.css +1 -1
  37. package/dist/css/layout-css/pds-index.css +1 -1
  38. package/dist/css/layout-css/pds-sidebar-layout.css +1 -1
  39. package/dist/css/pds-components.css +14 -14
  40. package/dist/css/pds-core.css +1 -1
  41. package/dist/css/pds-layouts.css +1 -1
  42. package/dist/index.css +1 -1
  43. package/dist/index.d.ts +2 -0
  44. package/dist/index.js +3418 -2286
  45. package/dist/index.js.map +1 -1
  46. package/dist/index.source.d.ts +2 -0
  47. package/dist/layouts/SidebarLayout/SidebarLayout.d.ts +9 -2
  48. package/dist/libs/components/WorkspaceListItem/WorkspaceListItem.d.ts +6 -5
  49. package/package.json +14 -4
@@ -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 both
35
- * `WorkspaceSelector` (dropdown menu item) and `WorkspaceSelectorPanel`
36
- * (embedded list item). Intentionally has no interactive wrapper, list
37
- * semantics, or ARIA role of its own -- each caller owns those, since the
38
- * two components' items differ (menuitem vs. plain list item).
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.1",
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",
@@ -88,6 +88,8 @@
88
88
  "generate:component": "plop component",
89
89
  "generate:icon": "plop icon",
90
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",
91
93
  "generate:svg-icons": "node scripts/generate-svg-files.js",
92
94
  "generate:layout": "plop layout",
93
95
  "generate:foundation": "plop foundation",
@@ -113,9 +115,13 @@
113
115
  "devDependencies": {
114
116
  "@arethetypeswrong/cli": "^0.15.3",
115
117
  "@axe-core/playwright": "^4.11.3",
118
+ "@babel/generator": "^8.0.6",
119
+ "@babel/parser": "^7.29.9",
116
120
  "@babel/preset-env": "^7.29.5",
117
121
  "@babel/preset-react": "^7.18.6",
118
122
  "@babel/preset-typescript": "^7.28.5",
123
+ "@babel/traverse": "^8.0.6",
124
+ "@babel/types": "^8.0.6",
119
125
  "@csstools/postcss-design-tokens": "^2.0.4",
120
126
  "@csstools/postcss-global-data": "^1.0.3",
121
127
  "@fortawesome/free-brands-svg-icons": "7.2.0",
@@ -129,6 +135,8 @@
129
135
  "@storybook/addon-webpack5-compiler-swc": "^4.0.3",
130
136
  "@storybook/react-vite": "^10.4.0",
131
137
  "@storybook/react-webpack5": "^10.4.0",
138
+ "@svgr/core": "^8.1.0",
139
+ "@svgr/plugin-jsx": "^8.1.0",
132
140
  "@types/prismjs": "^1.26.6",
133
141
  "@types/react": "^19.2.14",
134
142
  "@typescript-eslint/eslint-plugin": "^8.59.3",
@@ -145,6 +153,7 @@
145
153
  "eslint-plugin-import": "^2.32.0",
146
154
  "eslint-plugin-prettier": "^5.5.5",
147
155
  "eslint-plugin-react": "^7.32.2",
156
+ "eslint-plugin-react-google-translate": "^1.1.0",
148
157
  "eslint-plugin-react-hooks": "^7.1.1",
149
158
  "eslint-plugin-simple-import-sort": "^12.1.1",
150
159
  "eslint-plugin-sort-destructure-keys": "^2.0.0",
@@ -186,7 +195,7 @@
186
195
  "@floating-ui/react": "^0.24.3",
187
196
  "@floating-ui/react-dom": "~1.3.0",
188
197
  "@internationalized/date": "^3.12.2",
189
- "@pantheon-systems/pds-design-tokens": "^2.0.0-beta.0",
198
+ "@pantheon-systems/pds-design-tokens": "^2.0.0-beta.1",
190
199
  "@reactuses/core": "^5.0.15",
191
200
  "date-fns": "^4.1.0",
192
201
  "downshift": "^9.3.2",
@@ -209,7 +218,8 @@
209
218
  },
210
219
  "overrides": {
211
220
  "@babel/plugin-transform-modules-systemjs": "^7.29.4",
212
- "fast-uri": "^3.1.7",
221
+ "webpack-dev-middleware": "^7.4.6",
222
+ "fast-uri": "^3.1.8",
213
223
  "hono": "^4.12.18",
214
224
  "ip-address": "^10.1.1",
215
225
  "js-yaml": "^4.3.2",