@bcgov/design-system-react-components 0.0.6 → 0.0.7
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 +9 -1
- package/dist/cjs/index.cjs +4279 -4442
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types/components/Button/Button.test.d.ts +1 -0
- package/dist/cjs/types/components/Header/Header.d.ts +1 -1
- package/dist/cjs/types/components/Tooltip/Tooltip.d.ts +2 -2
- package/dist/esm/index.js +4322 -4485
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Button/Button.test.d.ts +1 -0
- package/dist/esm/types/components/Header/Header.d.ts +1 -1
- package/dist/esm/types/components/Tooltip/Tooltip.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +48 -33
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
@@ -4,7 +4,7 @@ export interface HeaderProps {
|
|
|
4
4
|
/**
|
|
5
5
|
* Link element that surrounds the logo. Use what's appropriate for your
|
|
6
6
|
* router, like a `<Link>`. Defaults to a generic HTML link element like
|
|
7
|
-
* `<a href="/" title="Government of British Columbia"
|
|
7
|
+
* `<a href="/" title="Government of British Columbia">`
|
|
8
8
|
*/
|
|
9
9
|
logoLinkElement?: React.ReactElement;
|
|
10
10
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { TooltipProps, TooltipTrigger } from "react-aria-components";
|
|
3
2
|
import "./Tooltip.css";
|
|
4
|
-
export default function Tooltip(
|
|
3
|
+
export default function Tooltip(props: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export { TooltipTrigger };
|
|
5
|
+
export type { TooltipProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ interface HeaderProps {
|
|
|
28
28
|
/**
|
|
29
29
|
* Link element that surrounds the logo. Use what's appropriate for your
|
|
30
30
|
* router, like a `<Link>`. Defaults to a generic HTML link element like
|
|
31
|
-
* `<a href="/" title="Government of British Columbia"
|
|
31
|
+
* `<a href="/" title="Government of British Columbia">`
|
|
32
32
|
*/
|
|
33
33
|
logoLinkElement?: React$1.ReactElement;
|
|
34
34
|
/**
|
|
@@ -189,6 +189,6 @@ interface TagListProps<T> extends Pick<TagListProps$1<T>, "children" | "renderEm
|
|
|
189
189
|
}
|
|
190
190
|
declare function TagList<T extends object>({ items, orientation, renderEmptyState, ...props }: TagListProps<T>): react_jsx_runtime.JSX.Element;
|
|
191
191
|
|
|
192
|
-
declare function Tooltip(
|
|
192
|
+
declare function Tooltip(props: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
193
193
|
|
|
194
194
|
export { Button, Footer, FooterLinks, Header, Select, SvgBcLogo, Tag, TagGroup, TagList, Tooltip };
|
package/package.json
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bcgov/design-system-react-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"rollup": "rm -rf dist && rollup -c --bundleConfigAsCjs",
|
|
7
7
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
8
8
|
"storybook-dev": "storybook dev -p 6006",
|
|
9
9
|
"storybook-build": "storybook build",
|
|
10
|
+
"test": "npx jest --config=./jest.config.ts",
|
|
11
|
+
"test:ci": "npx jest --ci --config=./jest.config.ts",
|
|
12
|
+
"test:watch": "npx jest --watch --config=./jest.config.ts",
|
|
13
|
+
"test-storybook": "test-storybook",
|
|
14
|
+
"test-storybook:ci": "test-storybook --maxWorkers=2",
|
|
10
15
|
"vite-dev": "vite",
|
|
11
16
|
"vite-build": "tsc && vite build",
|
|
12
17
|
"vite-preview": "vite preview"
|
|
@@ -18,8 +23,8 @@
|
|
|
18
23
|
],
|
|
19
24
|
"types": "dist/index.d.ts",
|
|
20
25
|
"dependencies": {
|
|
21
|
-
"@bcgov/design-tokens": "
|
|
22
|
-
"react-aria-components": "1.
|
|
26
|
+
"@bcgov/design-tokens": "3.0.0",
|
|
27
|
+
"react-aria-components": "1.2.1"
|
|
23
28
|
},
|
|
24
29
|
"peerDependencies": {
|
|
25
30
|
"@bcgov/bc-sans": "^2.1.0",
|
|
@@ -27,36 +32,46 @@
|
|
|
27
32
|
"react-dom": "^16.14.0 || ^17.0.0-rc.1 || ^18.0.0"
|
|
28
33
|
},
|
|
29
34
|
"devDependencies": {
|
|
30
|
-
"@react-stately/data": "
|
|
31
|
-
"@rollup/plugin-commonjs": "
|
|
32
|
-
"@rollup/plugin-json": "
|
|
33
|
-
"@rollup/plugin-node-resolve": "
|
|
34
|
-
"@rollup/plugin-typescript": "
|
|
35
|
-
"@storybook/addon-a11y": "
|
|
36
|
-
"@storybook/addon-essentials": "
|
|
37
|
-
"@storybook/addon-interactions": "
|
|
38
|
-
"@storybook/addon-links": "
|
|
39
|
-
"@storybook/blocks": "
|
|
40
|
-
"@storybook/react": "
|
|
41
|
-
"@storybook/react-vite": "
|
|
42
|
-
"@storybook/
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"
|
|
49
|
-
"eslint-plugin
|
|
50
|
-
"eslint
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"storybook": "
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
35
|
+
"@react-stately/data": "3.11.4",
|
|
36
|
+
"@rollup/plugin-commonjs": "25.0.8",
|
|
37
|
+
"@rollup/plugin-json": "6.1.0",
|
|
38
|
+
"@rollup/plugin-node-resolve": "15.2.3",
|
|
39
|
+
"@rollup/plugin-typescript": "11.1.6",
|
|
40
|
+
"@storybook/addon-a11y": "8.1.5",
|
|
41
|
+
"@storybook/addon-essentials": "8.1.5",
|
|
42
|
+
"@storybook/addon-interactions": "8.1.5",
|
|
43
|
+
"@storybook/addon-links": "8.1.5",
|
|
44
|
+
"@storybook/blocks": "8.1.5",
|
|
45
|
+
"@storybook/react": "8.1.5",
|
|
46
|
+
"@storybook/react-vite": "8.1.5",
|
|
47
|
+
"@storybook/test": "8.1.5",
|
|
48
|
+
"@storybook/test-runner": "0.18.2",
|
|
49
|
+
"@testing-library/jest-dom": "6.4.5",
|
|
50
|
+
"@testing-library/react": "16.0.0",
|
|
51
|
+
"@types/jest": "29.5.12",
|
|
52
|
+
"@types/react": "18.3.3",
|
|
53
|
+
"@types/react-dom": "18.3.0",
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "7.12.0",
|
|
55
|
+
"@typescript-eslint/parser": "7.12.0",
|
|
56
|
+
"@vitejs/plugin-react": "4.3.0",
|
|
57
|
+
"axe-playwright": "2.0.1",
|
|
58
|
+
"eslint": "8.57.0",
|
|
59
|
+
"eslint-plugin-react-hooks": "4.6.2",
|
|
60
|
+
"eslint-plugin-react-refresh": "0.4.7",
|
|
61
|
+
"eslint-plugin-storybook": "0.8.0",
|
|
62
|
+
"identity-obj-proxy": "3.0.0",
|
|
63
|
+
"jest": "29.7.0",
|
|
64
|
+
"jest-environment-jsdom": "29.7.0",
|
|
65
|
+
"rollup": "4.18.0",
|
|
66
|
+
"rollup-plugin-dts": "6.1.1",
|
|
67
|
+
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
68
|
+
"rollup-plugin-postcss": "4.0.2",
|
|
69
|
+
"storybook": "8.1.5",
|
|
70
|
+
"ts-jest": "29.1.4",
|
|
71
|
+
"ts-node": "10.9.2",
|
|
72
|
+
"tslib": "2.6.2",
|
|
73
|
+
"typescript": "5.4.5",
|
|
74
|
+
"vite": "5.2.12"
|
|
60
75
|
},
|
|
61
76
|
"author": "Tyler Krys <Tyler.Krys@gov.bc.ca>",
|
|
62
77
|
"license": "Apache-2.0",
|