@arc-ui/components 11.13.0 → 11.14.0

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.
Files changed (34) hide show
  1. package/dist/Box/Box.cjs.js +0 -1
  2. package/dist/Box/Box.esm.js +0 -1
  3. package/dist/InformationCard/InformationCard.cjs.js +85 -0
  4. package/dist/InformationCard/InformationCard.esm.js +77 -0
  5. package/dist/InformationCard/package.json +7 -0
  6. package/dist/Select/Select.cjs.js +3 -3
  7. package/dist/Select/Select.esm.js +3 -3
  8. package/dist/SiteFooter/SiteFooter.cjs.js +2 -2
  9. package/dist/SiteFooter/SiteFooter.esm.js +3 -3
  10. package/dist/SiteHeader/SiteHeader.cjs.js +2 -2
  11. package/dist/SiteHeader/SiteHeader.esm.js +2 -2
  12. package/dist/Tag/Tag.cjs.js +7 -79
  13. package/dist/Tag/Tag.esm.js +6 -78
  14. package/dist/TextArea/TextArea.cjs.js +3 -3
  15. package/dist/TextArea/TextArea.esm.js +3 -3
  16. package/dist/_shared/cjs/{SiteFooter-6381ac4a.js → SiteFooter-97c27b29.js} +1 -1
  17. package/dist/_shared/cjs/{SiteHeader.rehydrator-a3f07c9e.js → SiteHeader.rehydrator-af3dddef.js} +1 -1
  18. package/dist/_shared/cjs/Tag-42ddca45.js +84 -0
  19. package/dist/_shared/cjs/{index.es-77def0c9.js → index.es-26dd8c5d.js} +2 -0
  20. package/dist/_shared/esm/{SiteFooter-233bb926.js → SiteFooter-94316b8b.js} +1 -1
  21. package/dist/_shared/esm/{SiteHeader.rehydrator-8f554bfd.js → SiteHeader.rehydrator-1b507253.js} +1 -1
  22. package/dist/_shared/esm/Tag-92c088a9.js +78 -0
  23. package/dist/_shared/esm/{index.es-00cb3bcb.js → index.es-c552c0ea.js} +2 -1
  24. package/dist/index.es.js +162 -101
  25. package/dist/index.es.js.map +1 -1
  26. package/dist/index.js +162 -100
  27. package/dist/index.js.map +1 -1
  28. package/dist/styles.css +2 -2
  29. package/dist/types/components/InformationCard/InformationCard.d.ts +57 -0
  30. package/dist/types/components/InformationCard/index.d.ts +1 -0
  31. package/dist/types/components/Select/Select.d.ts +1 -0
  32. package/dist/types/components/index.d.ts +1 -0
  33. package/dist/types/styles.d.ts +1 -0
  34. package/package.json +1 -1
@@ -0,0 +1,57 @@
1
+ import React, { FC } from "react";
2
+ import { ImageProps } from "../Image/Image";
3
+ import { HeadingLevel } from "../Heading/Heading";
4
+ import { ButtonProps } from "../Button/Button";
5
+ import { ArcIcon } from "../../types/arc-icon";
6
+ export declare const InformationCard: FC<InformationCardProps>;
7
+ type InformationCardImage = Pick<ImageProps, "alt" | "loading" | "width" | "height" | "src">;
8
+ type InformationCardButtonProps = Pick<ButtonProps, "label" | "onClick" | "href">;
9
+ export interface InformationCardProps {
10
+ /**
11
+ * Heading for the InformationCard.
12
+ */
13
+ heading: string;
14
+ /**
15
+ * Heading level for the InformationCard heading.
16
+ */
17
+ headingLevel?: HeadingLevel;
18
+ /**
19
+ * Text content for the InformationCard
20
+ */
21
+ text?: string;
22
+ /**
23
+ * Uppercase label for the InformationCard.
24
+ */
25
+ label?: string;
26
+ /**
27
+ * Url for the InformationCard. Makes the whole card a link and hides `button` if provided.
28
+ */
29
+ cardUrl?: string;
30
+ /**
31
+ * Click handler for the InformationCard. Only applied when a card url is provided.
32
+ */
33
+ onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
34
+ /**
35
+ * Footer logo for the InformationCard.
36
+ */
37
+ footerLogo?: InformationCardImage;
38
+ /**
39
+ * Header image for the InformationCard.
40
+ */
41
+ image?: InformationCardImage;
42
+ /**
43
+ * Header icon for the InformationCard.
44
+ */
45
+ icon?: ArcIcon;
46
+ /**
47
+ * Tags for the InformationCard.
48
+ */
49
+ tags?: {
50
+ text: string;
51
+ }[];
52
+ /**
53
+ * Cta button for the InformationCard. Hidden if there is a card url.
54
+ */
55
+ button?: InformationCardButtonProps;
56
+ }
57
+ export {};
@@ -0,0 +1 @@
1
+ export { InformationCard } from "./InformationCard";
@@ -5,6 +5,7 @@ export declare const Select: React.FC<SelectProps>;
5
5
  export interface SelectProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "id" | "helperUnderLabel" | "supplementaryInfo"> {
6
6
  name: string;
7
7
  label: string;
8
+ ariaLabel?: string;
8
9
  placeholder: string;
9
10
  options: {
10
11
  name: string;
@@ -19,6 +19,7 @@ export { FormControl } from "./FormControl";
19
19
  export { Group } from "./Group";
20
20
  export { Heading } from "./Heading";
21
21
  export { Icon } from "./Icon";
22
+ export { InformationCard } from "./InformationCard";
22
23
  export { Image } from "./Image";
23
24
  export { Markup } from "./Markup";
24
25
  export { MediaCard } from "./MediaCard";
@@ -73,3 +73,4 @@ import "./components/UniversalHeader/UniversalHeader.bt.css";
73
73
  import "./components/Switch/Switch.bt.css";
74
74
  import "./components/Toast/Toast.css";
75
75
  import "./components/ProgressStepper/ProgressStepper.css";
76
+ import "./components/InformationCard/InformationCard.css";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arc-ui/components",
3
- "version": "11.13.0",
3
+ "version": "11.14.0",
4
4
  "homepage": "https://ui.digital-ent-int.bt.com",
5
5
  "author": "BT Enterprise Digital UI Team <ui-digital-ent-int@bt.com>",
6
6
  "main": "./dist/index.js",