@cfpb/design-system-react 0.0.13 → 0.0.15

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.
@@ -1,10 +1,8 @@
1
1
  import { JSX } from 'react';
2
- import { User } from '../ResponsiveMenu/responsive-menu';
3
2
  interface PageHeaderProperties {
4
3
  links?: JSX.Element[];
5
- user?: User;
6
4
  href?: string;
7
5
  withBottomBorder?: boolean;
8
6
  }
9
- export default function PageHeader({ links, user, href, withBottomBorder, }: PageHeaderProperties): JSX.Element;
7
+ export default function PageHeader({ links, href, withBottomBorder, }: PageHeaderProperties): JSX.Element;
10
8
  export {};
@@ -3,5 +3,4 @@ import { PageHeader } from '../../index';
3
3
  declare const meta: Meta<typeof PageHeader>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
6
- export declare const LoggedIn: Story;
7
- export declare const LoggedOut: Story;
6
+ export declare const Default: Story;
@@ -3,6 +3,4 @@ import { ResponsiveMenu } from '../../index';
3
3
  declare const meta: Meta<typeof ResponsiveMenu>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
6
- export declare const LoggedIn: Story;
7
- export declare const LoggedOut: Story;
8
- export declare const NoUser: Story;
6
+ export declare const Default: Story;
@@ -11,4 +11,4 @@ export declare const Success: Story;
11
11
  export declare const Warning: Story;
12
12
  export declare const Error: Story;
13
13
  export declare const FullWidth: Story;
14
- export declare const searchInput: Story;
14
+ export declare const SearchInput: Story;
@@ -21,7 +21,6 @@ export { default as Link, LinkText, ListLink } from './components/Link/link';
21
21
  export type { LinkProperties } from './components/Link/link';
22
22
  export { default as List } from './components/List/list';
23
23
  export { default as ListItem, ListItemBuilder, } from './components/List/list-item';
24
- export { default as Navbar } from './components/Navbar/navbar';
25
24
  export { default as PageHeader } from './components/PageHeader/page-header';
26
25
  export { Pagination } from './components/Pagination/pagination';
27
26
  export { usePagination } from './components/Pagination/use-pagination';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cfpb/design-system-react",
3
3
  "license": "MIT",
4
- "version": "0.0.13",
4
+ "version": "0.0.15",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/cfpb/design-system-react.git"
@@ -18,7 +18,7 @@
18
18
  "import": "./dist/index.mjs",
19
19
  "require": "./dist/index.js"
20
20
  },
21
- "./style.css": "./dist/assets/style.css"
21
+ "./index.css": "./dist/index.css"
22
22
  },
23
23
  "files": [
24
24
  "dist"
@@ -47,19 +47,21 @@
47
47
  "dependencies": {
48
48
  "@cfpb/browserslist-config": "^0.0.6",
49
49
  "@cfpb/cfpb-design-system": "4.4.0",
50
- "react": "19.2.4",
51
- "react-dom": "19.2.4",
52
- "react-router-dom": "^7.13.0",
53
50
  "react-select": "^5.10.2"
54
51
  },
52
+ "peerDependencies": {
53
+ "react": "^18.0.0 || ^19.0.0",
54
+ "react-dom": "^18.0.0 || ^19.0.0",
55
+ "react-router": "^7.13.0"
56
+ },
55
57
  "devDependencies": {
56
58
  "@chromatic-com/storybook": "^5.0.1",
57
- "@eslint/js": "^9.39.2",
59
+ "@eslint/js": "^9.39.3",
58
60
  "@nabla/vite-plugin-eslint": "^2.0.6",
59
- "@storybook/addon-a11y": "^10.2.10",
60
- "@storybook/addon-docs": "^10.2.10",
61
- "@storybook/addon-links": "^10.2.10",
62
- "@storybook/react-vite": "^10.2.10",
61
+ "@storybook/addon-a11y": "^10.2.11",
62
+ "@storybook/addon-docs": "^10.2.11",
63
+ "@storybook/addon-links": "^10.2.11",
64
+ "@storybook/react-vite": "^10.2.11",
63
65
  "@testing-library/dom": "^10.4.1",
64
66
  "@testing-library/jest-dom": "^6.9.1",
65
67
  "@testing-library/react": "^16.3.2",
@@ -68,10 +70,9 @@
68
70
  "@types/node": "^25.3.0",
69
71
  "@types/react": "^19.2.14",
70
72
  "@types/react-dom": "^19.2.3",
71
- "@types/react-router-dom": "5.3.3",
72
73
  "@types/testing-library__jest-dom": "6.0.0",
73
- "@typescript-eslint/eslint-plugin": "8.56.0",
74
- "@typescript-eslint/parser": "8.56.0",
74
+ "@typescript-eslint/eslint-plugin": "8.56.1",
75
+ "@typescript-eslint/parser": "8.56.1",
75
76
  "@vitejs/plugin-react": "^5.1.4",
76
77
  "@vitest/coverage-istanbul": "^4.0.18",
77
78
  "astring": "^1.9.0",
@@ -81,14 +82,14 @@
81
82
  "commitizen": "4.3.1",
82
83
  "css-mediaquery": "0.1.2",
83
84
  "cz-conventional-changelog": "3.3.0",
84
- "eslint": "9.39.2",
85
+ "eslint": "9.39.3",
85
86
  "eslint-config-prettier": "10.1.8",
86
87
  "eslint-import-resolver-typescript": "^4.4.4",
87
88
  "eslint-plugin-import": "2.32.0",
88
89
  "eslint-plugin-jsx-a11y": "^6.10.2",
89
90
  "eslint-plugin-react": "^7.37.5",
90
91
  "eslint-plugin-react-hooks": "^7.0.1",
91
- "eslint-plugin-storybook": "^10.2.10",
92
+ "eslint-plugin-storybook": "^10.2.11",
92
93
  "eslint-plugin-testing-library": "7.16.0",
93
94
  "eslint-plugin-unicorn": "^62.0.0",
94
95
  "globals": "^17.3.0",
@@ -99,14 +100,17 @@
99
100
  "npm-run-all": "4.1.5",
100
101
  "postcss": "8.5.6",
101
102
  "prettier": "3.8.1",
103
+ "react": "19.2.4",
104
+ "react-dom": "19.2.4",
105
+ "react-router": "^7.13.1",
102
106
  "rollup-plugin-jsx-remove-attributes": "^3.1.2",
103
107
  "sass": "^1.97.3",
104
108
  "start-server-and-test": "2.1.3",
105
- "storybook": "^10.2.10",
109
+ "storybook": "^10.2.11",
106
110
  "stylelint": "^17.3.0",
107
111
  "stylelint-config-standard-scss": "^17.0.0",
108
112
  "typescript": "^5.9.3",
109
- "typescript-eslint": "^8.56.0",
113
+ "typescript-eslint": "^8.56.1",
110
114
  "vite": "^7.3.1",
111
115
  "vite-plugin-dts": "^4.5.4",
112
116
  "vite-plugin-pwa": "^1.2.0",
@@ -1,12 +0,0 @@
1
- import { JSX } from 'react';
2
- interface CfpbLogoProperties {
3
- href?: string;
4
- }
5
- export declare function CfpbLogo({ href, }: CfpbLogoProperties): JSX.Element;
6
- interface NavbarProperties {
7
- links?: JSX.Element[];
8
- href?: string;
9
- }
10
- export default function Navbar({ links, href }: NavbarProperties): JSX.Element;
11
- export declare const ExampleLinks: JSX.Element[];
12
- export {};
@@ -1,8 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { Navbar } from '../../index';
3
- declare const meta: Meta<typeof Navbar>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const LoggedIn: Story;
7
- export declare const LoggedOut: Story;
8
- export declare const NoUser: Story;