@bcgov/design-system-react-components 0.1.4 → 0.2.0-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.
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types/components/Footer/Footer.d.ts +0 -1
- package/dist/cjs/types/components/Form/Form.test.d.ts +1 -0
- package/dist/cjs/types/components/Header/Header.d.ts +2 -2
- package/dist/cjs/types/components/Header/Header.test.d.ts +1 -0
- package/dist/cjs/types/components/InlineAlert/InlineAlert.d.ts +0 -1
- package/dist/cjs/types/components/InlineAlert/InlineAlert.test.d.ts +1 -0
- package/dist/cjs/types/components/Select/Select.d.ts +0 -1
- package/dist/cjs/types/components/Switch/Switch.test.d.ts +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Footer/Footer.d.ts +0 -1
- package/dist/esm/types/components/Form/Form.test.d.ts +1 -0
- package/dist/esm/types/components/Header/Header.d.ts +2 -2
- package/dist/esm/types/components/Header/Header.test.d.ts +1 -0
- package/dist/esm/types/components/InlineAlert/InlineAlert.d.ts +0 -1
- package/dist/esm/types/components/InlineAlert/InlineAlert.test.d.ts +1 -0
- package/dist/esm/types/components/Select/Select.d.ts +0 -1
- package/dist/esm/types/components/Switch/Switch.test.d.ts +1 -0
- package/dist/index.d.ts +15 -15
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
2
|
import "./Header.css";
|
|
3
3
|
export interface HeaderProps {
|
|
4
4
|
/**
|
|
@@ -26,4 +26,4 @@ export interface HeaderProps {
|
|
|
26
26
|
*/
|
|
27
27
|
titleElement?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "span" | "p";
|
|
28
28
|
}
|
|
29
|
-
export default function Header({ children, logoLinkElement, logoImage, skipLinks, title, titleElement, }:
|
|
29
|
+
export default function Header({ children, logoLinkElement, logoImage, skipLinks, title, titleElement, }: PropsWithChildren<HeaderProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@testing-library/jest-dom";
|
package/dist/esm/index.js
CHANGED
|
@@ -13950,7 +13950,7 @@ function Header({ children, logoLinkElement, logoImage = jsx(SvgBcLogo, { id: "b
|
|
|
13950
13950
|
function getLogo() {
|
|
13951
13951
|
if (!logoLinkElement)
|
|
13952
13952
|
return (jsx("a", { href: "/", title: "Government of British Columbia", children: logoImage }));
|
|
13953
|
-
return
|
|
13953
|
+
return cloneElement(logoLinkElement, { children: logoImage });
|
|
13954
13954
|
}
|
|
13955
13955
|
function getTitle() {
|
|
13956
13956
|
switch (titleElement) {
|