@cfpb/design-system-react 0.0.14 → 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.
- package/dist/index.css +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +323 -374
- package/dist/src/components/PageHeader/page-header.d.ts +1 -3
- package/dist/src/components/PageHeader/page-header.stories.d.ts +1 -2
- package/dist/src/components/ResponsiveMenu/responsive-menu.stories.d.ts +1 -3
- package/dist/src/components/TextInput/text-input.stories.d.ts +1 -1
- package/dist/src/index.d.ts +0 -1
- package/package.json +15 -16
- package/dist/src/components/Navbar/navbar.d.ts +0 -12
- package/dist/src/components/Navbar/navbar.stories.d.ts +0 -8
|
@@ -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,
|
|
7
|
+
export default function PageHeader({ links, href, withBottomBorder, }: PageHeaderProperties): JSX.Element;
|
|
10
8
|
export {};
|
|
@@ -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
|
|
7
|
-
export declare const LoggedOut: Story;
|
|
8
|
-
export declare const NoUser: Story;
|
|
6
|
+
export declare const Default: Story;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -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.
|
|
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
|
-
"./index.css": "./index.css"
|
|
21
|
+
"./index.css": "./dist/index.css"
|
|
22
22
|
},
|
|
23
23
|
"files": [
|
|
24
24
|
"dist"
|
|
@@ -52,16 +52,16 @@
|
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react": "^18.0.0 || ^19.0.0",
|
|
54
54
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
55
|
-
"react-router
|
|
55
|
+
"react-router": "^7.13.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@chromatic-com/storybook": "^5.0.1",
|
|
59
|
-
"@eslint/js": "^9.39.
|
|
59
|
+
"@eslint/js": "^9.39.3",
|
|
60
60
|
"@nabla/vite-plugin-eslint": "^2.0.6",
|
|
61
|
-
"@storybook/addon-a11y": "^10.2.
|
|
62
|
-
"@storybook/addon-docs": "^10.2.
|
|
63
|
-
"@storybook/addon-links": "^10.2.
|
|
64
|
-
"@storybook/react-vite": "^10.2.
|
|
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",
|
|
65
65
|
"@testing-library/dom": "^10.4.1",
|
|
66
66
|
"@testing-library/jest-dom": "^6.9.1",
|
|
67
67
|
"@testing-library/react": "^16.3.2",
|
|
@@ -70,10 +70,9 @@
|
|
|
70
70
|
"@types/node": "^25.3.0",
|
|
71
71
|
"@types/react": "^19.2.14",
|
|
72
72
|
"@types/react-dom": "^19.2.3",
|
|
73
|
-
"@types/react-router-dom": "5.3.3",
|
|
74
73
|
"@types/testing-library__jest-dom": "6.0.0",
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "8.56.
|
|
76
|
-
"@typescript-eslint/parser": "8.56.
|
|
74
|
+
"@typescript-eslint/eslint-plugin": "8.56.1",
|
|
75
|
+
"@typescript-eslint/parser": "8.56.1",
|
|
77
76
|
"@vitejs/plugin-react": "^5.1.4",
|
|
78
77
|
"@vitest/coverage-istanbul": "^4.0.18",
|
|
79
78
|
"astring": "^1.9.0",
|
|
@@ -83,14 +82,14 @@
|
|
|
83
82
|
"commitizen": "4.3.1",
|
|
84
83
|
"css-mediaquery": "0.1.2",
|
|
85
84
|
"cz-conventional-changelog": "3.3.0",
|
|
86
|
-
"eslint": "9.39.
|
|
85
|
+
"eslint": "9.39.3",
|
|
87
86
|
"eslint-config-prettier": "10.1.8",
|
|
88
87
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
89
88
|
"eslint-plugin-import": "2.32.0",
|
|
90
89
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
91
90
|
"eslint-plugin-react": "^7.37.5",
|
|
92
91
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
93
|
-
"eslint-plugin-storybook": "^10.2.
|
|
92
|
+
"eslint-plugin-storybook": "^10.2.11",
|
|
94
93
|
"eslint-plugin-testing-library": "7.16.0",
|
|
95
94
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
96
95
|
"globals": "^17.3.0",
|
|
@@ -103,15 +102,15 @@
|
|
|
103
102
|
"prettier": "3.8.1",
|
|
104
103
|
"react": "19.2.4",
|
|
105
104
|
"react-dom": "19.2.4",
|
|
106
|
-
"react-router
|
|
105
|
+
"react-router": "^7.13.1",
|
|
107
106
|
"rollup-plugin-jsx-remove-attributes": "^3.1.2",
|
|
108
107
|
"sass": "^1.97.3",
|
|
109
108
|
"start-server-and-test": "2.1.3",
|
|
110
|
-
"storybook": "^10.2.
|
|
109
|
+
"storybook": "^10.2.11",
|
|
111
110
|
"stylelint": "^17.3.0",
|
|
112
111
|
"stylelint-config-standard-scss": "^17.0.0",
|
|
113
112
|
"typescript": "^5.9.3",
|
|
114
|
-
"typescript-eslint": "^8.56.
|
|
113
|
+
"typescript-eslint": "^8.56.1",
|
|
115
114
|
"vite": "^7.3.1",
|
|
116
115
|
"vite-plugin-dts": "^4.5.4",
|
|
117
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;
|