@bcgov/design-system-react-components 0.0.5 → 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.
- package/README.md +17 -8
- package/dist/cjs/index.cjs +4809 -4457
- 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/Footer/Footer.d.ts +28 -2
- package/dist/cjs/types/components/Footer/index.d.ts +2 -2
- package/dist/cjs/types/components/Header/Header.d.ts +1 -1
- package/dist/cjs/types/components/Tooltip/Tooltip.d.ts +5 -0
- package/dist/cjs/types/components/Tooltip/index.d.ts +2 -0
- package/dist/cjs/types/components/index.d.ts +2 -1
- package/dist/esm/index.js +3882 -3533
- 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/Footer/Footer.d.ts +28 -2
- package/dist/esm/types/components/Footer/index.d.ts +2 -2
- package/dist/esm/types/components/Header/Header.d.ts +1 -1
- package/dist/esm/types/components/Tooltip/Tooltip.d.ts +5 -0
- package/dist/esm/types/components/Tooltip/index.d.ts +2 -0
- package/dist/esm/types/components/index.d.ts +2 -1
- package/dist/index.d.ts +34 -5
- package/package.json +49 -33
- package/dist/assets/BCSans-Bold-ZqE3sZik.woff +0 -0
- package/dist/assets/BCSans-Bold-onJZunl0.woff2 +0 -0
- package/dist/assets/BCSans-BoldItalic-4P_OlA2s.woff +0 -0
- package/dist/assets/BCSans-BoldItalic-GxGpSOWy.woff2 +0 -0
- package/dist/assets/BCSans-Italic-Pz_cGW4F.woff2 +0 -0
- package/dist/assets/BCSans-Italic-UhTyhoET.woff +0 -0
- package/dist/assets/BCSans-Light-A03rbYd1.woff2 +0 -0
- package/dist/assets/BCSans-Light-playkmYo.woff +0 -0
- package/dist/assets/BCSans-LightItalic-HTeW1g69.woff2 +0 -0
- package/dist/assets/BCSans-LightItalic-tgMWPWlK.woff +0 -0
- package/dist/assets/BCSans-Regular-jMf6NRx3.woff +0 -0
- package/dist/assets/BCSans-Regular-ysGfRp0T.woff2 +0 -0
- package/dist/assets/index-t1vEzjyT.css +0 -1
- package/dist/assets/index-yaBoZILt.js +0 -48
- package/dist/cjs/types/components/SelectItem/SelectItem.d.ts +0 -16
- package/dist/cjs/types/components/SelectItem/index.d.ts +0 -2
- package/dist/esm/types/components/SelectItem/SelectItem.d.ts +0 -16
- package/dist/esm/types/components/SelectItem/index.d.ts +0 -2
- package/dist/index.html +0 -14
- package/dist/vite.svg +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./Footer.css";
|
|
3
|
+
export interface FooterLinksProps {
|
|
4
|
+
/**
|
|
5
|
+
* Title for the list of links - associated to the list of links as a `<figcaption>`
|
|
6
|
+
*/
|
|
7
|
+
title: string;
|
|
8
|
+
/**
|
|
9
|
+
* Array of link elements (`<a>` or `<Link>`)
|
|
10
|
+
*/
|
|
11
|
+
links: React.ReactElement[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* A titled list of links for use in the Footer. Rendered inside a `<figure>`
|
|
15
|
+
* with the `title` prop inside of the `<figcaption>`.
|
|
16
|
+
* @param {FooterLinksProps} props
|
|
17
|
+
* @returns {React.ReactElement}
|
|
18
|
+
*/
|
|
19
|
+
export declare function FooterLinks({ title, links }: FooterLinksProps): import("react/jsx-runtime").JSX.Element;
|
|
3
20
|
export interface FooterProps {
|
|
4
21
|
/**
|
|
5
22
|
* Land acknowledgement block (defaults to Gov.bc.ca land acknowledgement)
|
|
@@ -14,7 +31,9 @@ export interface FooterProps {
|
|
|
14
31
|
*/
|
|
15
32
|
contact?: React.ReactElement;
|
|
16
33
|
/**
|
|
17
|
-
* Link list block (defaults to Gov.bc.ca link list)
|
|
34
|
+
* Link list block (defaults to Gov.bc.ca link list).
|
|
35
|
+
*
|
|
36
|
+
* Pass the `<FooterLinks>` component for a styles-included list.
|
|
18
37
|
*/
|
|
19
38
|
links?: React.ReactElement;
|
|
20
39
|
/**
|
|
@@ -34,4 +53,11 @@ export interface FooterProps {
|
|
|
34
53
|
*/
|
|
35
54
|
hideCopyright?: boolean;
|
|
36
55
|
}
|
|
37
|
-
|
|
56
|
+
/**
|
|
57
|
+
* A `<footer>` element with default content included.
|
|
58
|
+
*
|
|
59
|
+
* Passing `children` replaces `logo`, `contact`, and `links`.
|
|
60
|
+
* @param {FooterProps} props
|
|
61
|
+
* @returns {React.ReactElement}
|
|
62
|
+
*/
|
|
63
|
+
export default function Footer({ children, acknowledgement, logo, contact, links, copyright, hideAcknowledgement, hideLogoAndLinks, hideCopyright, }: React.PropsWithChildren<FooterProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from "./Footer";
|
|
2
|
-
export type { FooterProps } from "./Footer";
|
|
1
|
+
export { default, FooterLinks } from "./Footer";
|
|
2
|
+
export type { FooterProps, FooterLinksProps } from "./Footer";
|
|
@@ -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,9 +1,10 @@
|
|
|
1
1
|
import "@bcgov/design-tokens/css/variables.css";
|
|
2
2
|
export { default as Button } from "./Button";
|
|
3
3
|
export { default as Header } from "./Header";
|
|
4
|
-
export { default as Footer } from "./Footer";
|
|
4
|
+
export { default as Footer, FooterLinks } from "./Footer";
|
|
5
5
|
export { default as Select } from "./Select";
|
|
6
6
|
export { default as SvgBcLogo } from "./SvgBcLogo";
|
|
7
7
|
export { default as Tag } from "./Tag";
|
|
8
8
|
export { default as TagGroup } from "./TagGroup";
|
|
9
9
|
export { default as TagList } from "./TagList";
|
|
10
|
+
export { default as Tooltip, TooltipTrigger } from "./Tooltip";
|