@bcgov/design-system-react-components 0.0.6 → 0.0.7-rc1

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.
@@ -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({ children, placement, }: React.PropsWithChildren<TooltipProps>): import("react/jsx-runtime").JSX.Element;
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({ children, placement, }: React$1.PropsWithChildren<TooltipProps>): react_jsx_runtime.JSX.Element;
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.6",
3
+ "version": "0.0.7-rc1",
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": "^2.0.1",
22
- "react-aria-components": "1.1.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": "^3.11.2",
31
- "@rollup/plugin-commonjs": "^25.0.7",
32
- "@rollup/plugin-json": "^6.1.0",
33
- "@rollup/plugin-node-resolve": "^15.2.3",
34
- "@rollup/plugin-typescript": "^11.1.6",
35
- "@storybook/addon-a11y": "^8.0.2",
36
- "@storybook/addon-essentials": "^8.0.2",
37
- "@storybook/addon-interactions": "^8.0.2",
38
- "@storybook/addon-links": "^8.0.2",
39
- "@storybook/blocks": "^8.0.2",
40
- "@storybook/react": "^8.0.2",
41
- "@storybook/react-vite": "^8.0.2",
42
- "@storybook/testing-library": "^0.2.2",
43
- "@types/react": "^18.2.67",
44
- "@types/react-dom": "^18.2.22",
45
- "@typescript-eslint/eslint-plugin": "^7.3.1",
46
- "@typescript-eslint/parser": "^7.3.1",
47
- "@vitejs/plugin-react": "^4.2.1",
48
- "eslint": "^8.57.0",
49
- "eslint-plugin-react-hooks": "^4.6.0",
50
- "eslint-plugin-react-refresh": "^0.4.6",
51
- "eslint-plugin-storybook": "^0.8.0",
52
- "rollup": "^4.13.0",
53
- "rollup-plugin-dts": "^6.1.0",
54
- "rollup-plugin-peer-deps-external": "^2.2.4",
55
- "rollup-plugin-postcss": "^4.0.2",
56
- "storybook": "^8.0.2",
57
- "tslib": "^2.6.2",
58
- "typescript": "^5.4.3",
59
- "vite": "^5.2.2"
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",