@bcgov/design-system-react-components 0.0.5 → 0.0.6
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 +8 -7
- package/dist/cjs/index.cjs +541 -26
- package/dist/cjs/index.cjs.map +1 -1
- 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/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 +539 -27
- package/dist/esm/index.js.map +1 -1
- 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/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 +33 -4
- package/package.json +18 -17
- 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
|
@@ -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";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TooltipProps, TooltipTrigger } from "react-aria-components";
|
|
3
|
+
import "./Tooltip.css";
|
|
4
|
+
export default function Tooltip({ children, placement, }: React.PropsWithChildren<TooltipProps>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export { TooltipTrigger };
|
|
@@ -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";
|