@arc-ui/components 10.0.3 → 10.2.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 (180) hide show
  1. package/dist/Align/index.d.ts +25 -0
  2. package/dist/Align/index.js +25 -0
  3. package/dist/Base/index.d.ts +16 -0
  4. package/dist/Base/index.js +12 -0
  5. package/dist/BrandLogo/index.d.ts +1 -0
  6. package/dist/BrandLogo/index.js +6 -0
  7. package/dist/Breadcrumbs/index.d.ts +57 -0
  8. package/dist/Breadcrumbs/index.js +17294 -0
  9. package/dist/Button/index.d.ts +1 -0
  10. package/dist/Button/index.js +8 -0
  11. package/dist/Card/index.d.ts +126 -0
  12. package/dist/Card/index.js +118 -0
  13. package/dist/Checkbox/index.d.ts +59 -0
  14. package/dist/Checkbox/index.js +46 -0
  15. package/dist/Clock/index.d.ts +15 -0
  16. package/dist/Clock/index.js +34 -0
  17. package/dist/Columns/index.d.ts +76 -0
  18. package/dist/Columns/index.js +51 -0
  19. package/dist/Curve/index.d.ts +1 -0
  20. package/dist/Curve/index.js +5 -0
  21. package/dist/Disclosure/index.d.ts +31 -0
  22. package/dist/Disclosure/index.js +25 -0
  23. package/dist/Elevation/index.d.ts +16 -0
  24. package/dist/Elevation/index.js +17 -0
  25. package/dist/FormControl/index.d.ts +1 -0
  26. package/dist/FormControl/index.js +5 -0
  27. package/dist/Group/index.d.ts +46 -0
  28. package/dist/Group/index.js +42 -0
  29. package/dist/Heading/index.d.ts +1 -0
  30. package/dist/Heading/index.js +6 -0
  31. package/dist/Icon/index.d.ts +1 -0
  32. package/dist/Icon/index.js +7 -0
  33. package/dist/Image/index.d.ts +1 -0
  34. package/dist/Image/index.js +5 -0
  35. package/dist/Markup/index.d.ts +16 -0
  36. package/dist/Markup/index.js +19 -0
  37. package/dist/Poster/index.d.ts +76 -0
  38. package/dist/Poster/index.js +44 -0
  39. package/dist/RadioGroup/index.d.ts +85 -0
  40. package/dist/RadioGroup/index.js +64 -0
  41. package/dist/Rule/index.d.ts +8 -0
  42. package/dist/Rule/index.js +17 -0
  43. package/dist/Section/index.d.ts +1 -0
  44. package/dist/Section/index.js +4 -0
  45. package/dist/SiteFooter/index.d.ts +64 -0
  46. package/dist/SiteFooter/index.js +88 -0
  47. package/dist/SiteHeader/index.d.ts +252 -0
  48. package/dist/SiteHeader/index.js +638 -0
  49. package/dist/Surface/index.d.ts +1 -0
  50. package/dist/Surface/index.js +4 -0
  51. package/dist/Text/index.d.ts +1 -0
  52. package/dist/Text/index.js +6 -0
  53. package/dist/TextInput/index.d.ts +71 -0
  54. package/dist/TextInput/index.js +56 -0
  55. package/dist/UniversalHeader/index.d.ts +26 -0
  56. package/dist/UniversalHeader/index.js +30 -0
  57. package/dist/VerticalSpace/index.d.ts +18 -0
  58. package/dist/VerticalSpace/index.js +19 -0
  59. package/dist/_shared/BrandLogo-6cc8202e.d.ts +26 -0
  60. package/dist/_shared/BrandLogo-6cc8202e.js +25 -0
  61. package/dist/_shared/Button-abfb12d4.d.ts +98 -0
  62. package/dist/_shared/Button-abfb12d4.js +51 -0
  63. package/dist/_shared/Curve-5f476d0b.d.ts +32 -0
  64. package/dist/_shared/Curve-5f476d0b.js +24 -0
  65. package/dist/_shared/FormControl-9dc9ecc3.d.ts +70 -0
  66. package/dist/_shared/FormControl-9dc9ecc3.js +74 -0
  67. package/dist/_shared/Heading-8c640dd1.d.ts +46 -0
  68. package/dist/_shared/Heading-8c640dd1.js +35 -0
  69. package/dist/_shared/Icon-4d523b46.d.ts +34 -0
  70. package/dist/_shared/Icon-4d523b46.js +27 -0
  71. package/dist/_shared/Image-a3225049.d.ts +94 -0
  72. package/dist/_shared/Image-a3225049.js +39 -0
  73. package/dist/_shared/Section-927988cb.d.ts +21 -0
  74. package/dist/_shared/Section-927988cb.js +17 -0
  75. package/dist/_shared/Surface-3fe44a2a.d.ts +50 -0
  76. package/dist/_shared/Surface-3fe44a2a.js +49 -0
  77. package/dist/_shared/Text-1c43d82b.d.ts +34 -0
  78. package/dist/_shared/Text-1c43d82b.js +26 -0
  79. package/dist/_shared/handle-link-click-35e09d0c.d.ts +7 -0
  80. package/dist/_shared/handle-link-click-35e09d0c.js +13 -0
  81. package/dist/_shared/index-56d9df62.js +61 -0
  82. package/dist/_shared/index-9483ad5f.d.ts +14 -0
  83. package/dist/_shared/index-c81c9401.d.ts +4 -0
  84. package/dist/_shared/index-e3c83626.d.ts +2 -0
  85. package/dist/_shared/index-e3c83626.js +208 -0
  86. package/dist/_shared/index.es-f5886c3a.js +284 -0
  87. package/dist/_shared/suffix-modifier-2a93822c.d.ts +10 -0
  88. package/dist/_shared/suffix-modifier-2a93822c.js +17 -0
  89. package/dist/_shared/use-media-query-f11805d4.d.ts +19 -0
  90. package/dist/_shared/use-media-query-f11805d4.js +39 -0
  91. package/dist/index.es.js +17493 -178
  92. package/dist/index.es.js.map +1 -1
  93. package/dist/index.js +17492 -176
  94. package/dist/index.js.map +1 -1
  95. package/dist/styles.css +1 -1
  96. package/dist/types/components/Align/Align.d.ts +1 -2
  97. package/dist/types/components/Align/index.d.ts +1 -1
  98. package/dist/types/components/Base/Base.d.ts +1 -2
  99. package/dist/types/components/Base/index.d.ts +1 -1
  100. package/dist/types/components/BrandLogo/BrandLogo.d.ts +1 -2
  101. package/dist/types/components/BrandLogo/index.d.ts +1 -1
  102. package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +18 -0
  103. package/dist/types/components/Breadcrumbs/BreadcrumbsItem/BreadcrumbsItem.d.ts +17 -0
  104. package/dist/types/components/Breadcrumbs/BreadcrumbsLink/BreadcrumbsLink.d.ts +25 -0
  105. package/dist/types/components/Breadcrumbs/index.d.ts +1 -0
  106. package/dist/types/components/Button/Button.d.ts +2 -2
  107. package/dist/types/components/Button/index.d.ts +1 -1
  108. package/dist/types/components/Card/Card.d.ts +6 -2
  109. package/dist/types/components/Card/index.d.ts +1 -1
  110. package/dist/types/components/Checkbox/Checkbox.d.ts +2 -2
  111. package/dist/types/components/Checkbox/index.d.ts +1 -1
  112. package/dist/types/components/Clock/Clock.d.ts +1 -2
  113. package/dist/types/components/Clock/index.d.ts +1 -1
  114. package/dist/types/components/Columns/Columns.d.ts +2 -2
  115. package/dist/types/components/Columns/index.d.ts +1 -1
  116. package/dist/types/components/Curve/Curve.d.ts +1 -2
  117. package/dist/types/components/Curve/index.d.ts +1 -1
  118. package/dist/types/components/Disclosure/Disclosure.d.ts +1 -2
  119. package/dist/types/components/Disclosure/index.d.ts +1 -1
  120. package/dist/types/components/Elevation/Elevation.d.ts +1 -2
  121. package/dist/types/components/Elevation/index.d.ts +1 -1
  122. package/dist/types/components/FormControl/FormControl.d.ts +1 -2
  123. package/dist/types/components/FormControl/index.d.ts +1 -1
  124. package/dist/types/components/Group/Group.d.ts +1 -2
  125. package/dist/types/components/Group/index.d.ts +1 -1
  126. package/dist/types/components/Heading/Heading.d.ts +1 -2
  127. package/dist/types/components/Heading/index.d.ts +1 -1
  128. package/dist/types/components/Icon/Icon.d.ts +1 -2
  129. package/dist/types/components/Icon/index.d.ts +1 -1
  130. package/dist/types/components/Image/Image.d.ts +1 -2
  131. package/dist/types/components/Image/index.d.ts +1 -1
  132. package/dist/types/components/Markup/Markup.d.ts +1 -2
  133. package/dist/types/components/Markup/index.d.ts +1 -1
  134. package/dist/types/components/Poster/Poster.d.ts +3 -4
  135. package/dist/types/components/Poster/PosterImage.d.ts +0 -1
  136. package/dist/types/components/Poster/PosterVideo.d.ts +1 -2
  137. package/dist/types/components/Poster/index.d.ts +1 -1
  138. package/dist/types/components/RadioGroup/RadioButton/RadioButton.d.ts +1 -2
  139. package/dist/types/components/RadioGroup/RadioButton/index.d.ts +1 -1
  140. package/dist/types/components/RadioGroup/RadioGroup.d.ts +7 -3
  141. package/dist/types/components/RadioGroup/index.d.ts +1 -1
  142. package/dist/types/components/Rule/Rule.d.ts +1 -2
  143. package/dist/types/components/Rule/index.d.ts +1 -1
  144. package/dist/types/components/Section/Section.d.ts +1 -2
  145. package/dist/types/components/Section/index.d.ts +1 -1
  146. package/dist/types/components/SiteFooter/SiteFooter.d.ts +5 -2
  147. package/dist/types/components/SiteFooter/index.d.ts +1 -1
  148. package/dist/types/components/SiteHeader/SiteHeader.d.ts +15 -8
  149. package/dist/types/components/SiteHeader/components/BackButton/BackButton.d.ts +0 -1
  150. package/dist/types/components/SiteHeader/components/BackButton/index.d.ts +1 -1
  151. package/dist/types/components/SiteHeader/components/Column/Column.d.ts +1 -2
  152. package/dist/types/components/SiteHeader/components/Column/index.d.ts +1 -1
  153. package/dist/types/components/SiteHeader/components/Item/Item.d.ts +5 -2
  154. package/dist/types/components/SiteHeader/components/Item/index.d.ts +1 -1
  155. package/dist/types/components/SiteHeader/components/ItemGroup/ItemGroup.d.ts +5 -2
  156. package/dist/types/components/SiteHeader/components/ItemGroup/index.d.ts +1 -1
  157. package/dist/types/components/SiteHeader/components/MenuButton/MenuButton.d.ts +1 -2
  158. package/dist/types/components/SiteHeader/components/MenuButton/index.d.ts +1 -1
  159. package/dist/types/components/SiteHeader/components/NavItem/NavItem.d.ts +4 -1
  160. package/dist/types/components/SiteHeader/components/NavItem/NavItemWithSubNav.d.ts +5 -2
  161. package/dist/types/components/SiteHeader/components/NavItem/index.d.ts +2 -2
  162. package/dist/types/components/SiteHeader/components/Panel/Panel.d.ts +1 -1
  163. package/dist/types/components/SiteHeader/components/Panel/index.d.ts +1 -1
  164. package/dist/types/components/SiteHeader/components/SubNavItem/SubNavItem.d.ts +5 -2
  165. package/dist/types/components/SiteHeader/components/SubNavItem/index.d.ts +1 -1
  166. package/dist/types/components/SiteHeader/index.d.ts +1 -1
  167. package/dist/types/components/Surface/Surface.d.ts +1 -2
  168. package/dist/types/components/Surface/index.d.ts +1 -1
  169. package/dist/types/components/Text/Text.d.ts +1 -2
  170. package/dist/types/components/Text/index.d.ts +1 -1
  171. package/dist/types/components/TextInput/TextInput.d.ts +2 -2
  172. package/dist/types/components/TextInput/index.d.ts +1 -1
  173. package/dist/types/components/UniversalHeader/UniversalHeader.d.ts +1 -2
  174. package/dist/types/components/UniversalHeader/index.d.ts +1 -1
  175. package/dist/types/components/VerticalSpace/VerticalSpace.d.ts +1 -2
  176. package/dist/types/components/VerticalSpace/index.d.ts +1 -1
  177. package/dist/types/components/index.d.ts +29 -28
  178. package/dist/types/helpers/handle-link-click.d.ts +7 -0
  179. package/dist/types/styles.d.ts +2 -0
  180. package/package.json +7 -7
@@ -2,7 +2,7 @@ import { FC, ReactNode } from "react";
2
2
  /**
3
3
  * Use `Align` to align items horizontally or vertically.
4
4
  */
5
- declare const Align: FC<AlignProps>;
5
+ export declare const Align: FC<AlignProps>;
6
6
  export interface AlignItemProps {
7
7
  /**
8
8
  * Contents of the AlignItem.
@@ -28,4 +28,3 @@ export interface AlignProps {
28
28
  */
29
29
  vertical?: "top" | "center" | "bottom";
30
30
  }
31
- export default Align;
@@ -1 +1 @@
1
- export { default } from "./Align";
1
+ export { Align } from "./Align";
@@ -2,7 +2,7 @@ import { FC } from "react";
2
2
  /**
3
3
  * Use `Base` as the root component of the arc system.
4
4
  */
5
- declare const Base: FC<BaseProps>;
5
+ export declare const Base: FC<BaseProps>;
6
6
  export interface BaseProps {
7
7
  /**
8
8
  * Brand theme to apply to Base.
@@ -13,4 +13,3 @@ export interface BaseProps {
13
13
  */
14
14
  children: any;
15
15
  }
16
- export default Base;
@@ -1 +1 @@
1
- export { default } from "./Base";
1
+ export { Base } from "./Base";
@@ -2,7 +2,7 @@ import { FC } from "react";
2
2
  /**
3
3
  * Use `BrandLogo` to display the brand logo.
4
4
  */
5
- declare const BrandLogo: FC<BrandLogoProps>;
5
+ export declare const BrandLogo: FC<BrandLogoProps>;
6
6
  export declare const colors: readonly ["auto", "brand"];
7
7
  export declare const subBrands: readonly ["redcare", "wholesale"];
8
8
  export interface BrandLogoProps {
@@ -23,4 +23,3 @@ export interface BrandLogoProps {
23
23
  */
24
24
  subBrand?: typeof subBrands[number];
25
25
  }
26
- export default BrandLogo;
@@ -1 +1 @@
1
- export { default } from "./BrandLogo";
1
+ export { BrandLogo } from "./BrandLogo";
@@ -0,0 +1,18 @@
1
+ import { FC, ReactNode } from "react";
2
+ import BreadcrumbsItem from "./BreadcrumbsItem/BreadcrumbsItem";
3
+ import BreadcrumbsLink from "./BreadcrumbsLink/BreadcrumbsLink";
4
+ /** Use `Breadcrumbs` to add a secondary navigation scheme that reveals the user’s location. Each item should be wrapped with `Breadcrumbs.Item` */
5
+ export declare const Breadcrumbs: FC<BreadcrumbsProps> & {
6
+ Item: typeof BreadcrumbsItem;
7
+ Link: typeof BreadcrumbsLink;
8
+ };
9
+ export interface BreadcrumbsProps {
10
+ /**
11
+ * Contents of the Breadcrumbs. Should only contain `Breadcrumb.Item`.
12
+ */
13
+ children: ReactNode;
14
+ /**
15
+ * Select if you want the Nav items to be Light
16
+ */
17
+ isLight?: boolean;
18
+ }
@@ -0,0 +1,17 @@
1
+ import { FC, ReactNode } from "react";
2
+ declare const BreadcrumbsItem: FC<ItemProps>;
3
+ export interface ItemProps {
4
+ /**
5
+ * Render child elements within `Breadcrumbs.Item`
6
+ */
7
+ children?: ReactNode;
8
+ /**
9
+ * Use icon as a spacer that will be positioned after `Breadcrumbs.Item`.
10
+ */
11
+ spacerIconAfter?: boolean;
12
+ /**
13
+ * Use icon as a spacer that will be positioned before `Breadcrumbs.Item`.
14
+ */
15
+ spacerIconBefore?: boolean;
16
+ }
17
+ export default BreadcrumbsItem;
@@ -0,0 +1,25 @@
1
+ import React, { FC } from "react";
2
+ declare const BreadcrumbsLink: FC<LinkProps>;
3
+ export interface LinkProps {
4
+ /**
5
+ * Where breadcrumb linkshould lead too
6
+ */
7
+ href?: string;
8
+ /**
9
+ * Pass a function to the breadcrumb item
10
+ */
11
+ onClick?: () => void;
12
+ /**
13
+ * Highlights item in breadcrumb (This also removes the a tag and any links)
14
+ */
15
+ isActive?: boolean;
16
+ /**
17
+ * Ref to `<a>` tag
18
+ */
19
+ ref?: React.Ref<HTMLAnchorElement>;
20
+ /**
21
+ * React router property
22
+ */
23
+ navigate?: () => void;
24
+ }
25
+ export default BreadcrumbsLink;
@@ -0,0 +1 @@
1
+ export { Breadcrumbs } from "./Breadcrumbs";
@@ -5,7 +5,7 @@ export declare type Ref = React.Ref<ElementUnion> | null;
5
5
  /**
6
6
  * Use `Button` to allow users to take actions with clicks and taps.
7
7
  */
8
- declare const Button: FC<ButtonProps>;
8
+ export declare const Button: FC<ButtonProps>;
9
9
  export interface ButtonIconProps {
10
10
  /**
11
11
  * Icon variant.
@@ -93,4 +93,4 @@ export interface ButtonProps extends ButtonElementProps, LinkElementProps {
93
93
  */
94
94
  supportingText?: string;
95
95
  }
96
- export default Button;
96
+ export {};
@@ -1 +1 @@
1
- export { default } from "./Button";
1
+ export { Button } from "./Button";
@@ -2,7 +2,7 @@ import React, { FC, HTMLAttributes } from "react";
2
2
  /**
3
3
  * Use `Card` to contain content and actions about a single subject.
4
4
  */
5
- declare const Card: FC<CardProps> & {
5
+ export declare const Card: FC<CardProps> & {
6
6
  Block: typeof CardBlock;
7
7
  Image: typeof CardImage;
8
8
  };
@@ -116,5 +116,9 @@ export interface CardProps extends HTMLAttributes<HTMLElement> {
116
116
  * The size for the Card title.
117
117
  */
118
118
  titleSize?: TitleSize;
119
+ /**
120
+ * On click handler.
121
+ */
122
+ onClick?: () => void;
119
123
  }
120
- export default Card;
124
+ export {};
@@ -1 +1 @@
1
- export { default } from "./Card";
1
+ export { Card } from "./Card";
@@ -3,7 +3,7 @@ declare type EventType = React.ChangeEvent<HTMLInputElement>;
3
3
  /**
4
4
  * Use `Checkbox` to allow users to select individual options.
5
5
  */
6
- declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
6
+ export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
7
7
  export interface CheckboxProps {
8
8
  /**
9
9
  * Error message for the Checkbox.
@@ -55,4 +55,4 @@ export interface CheckboxProps {
55
55
  */
56
56
  value?: string;
57
57
  }
58
- export default Checkbox;
58
+ export {};
@@ -1 +1 @@
1
- export { default } from "./Checkbox";
1
+ export { Checkbox } from "./Checkbox";
@@ -2,7 +2,7 @@ import { FC } from "react";
2
2
  /**
3
3
  * `Clock` is a demo component that shows the current time.
4
4
  */
5
- declare const Clock: FC<ClockProps>;
5
+ export declare const Clock: FC<ClockProps>;
6
6
  export declare type LocaleType = "en-GB" | "en-US" | "ar-EG";
7
7
  export interface ClockProps {
8
8
  /**
@@ -10,4 +10,3 @@ export interface ClockProps {
10
10
  */
11
11
  locale?: LocaleType;
12
12
  }
13
- export default Clock;
@@ -1,2 +1,2 @@
1
- export { default } from "./Clock";
1
+ export { Clock } from "./Clock";
2
2
  export { default as ClockRehydrator } from "./Clock.rehydrator";
@@ -2,7 +2,7 @@ import { FC, ReactNode } from "react";
2
2
  /**
3
3
  * Use `Columns` to compose layouts on a 12-column grid.
4
4
  */
5
- declare const Columns: FC<ColumnsProps> & {
5
+ export declare const Columns: FC<ColumnsProps> & {
6
6
  Col: typeof Col;
7
7
  };
8
8
  export declare const Col: FC<ColProps>;
@@ -73,4 +73,4 @@ export interface ColumnsProps {
73
73
  */
74
74
  isGutterless?: boolean;
75
75
  }
76
- export default Columns;
76
+ export {};
@@ -1 +1 @@
1
- export { default } from "./Columns";
1
+ export { Columns } from "./Columns";
@@ -4,7 +4,7 @@ import { backgroundsBT } from "../Surface";
4
4
  * Use `Curve` sparingly to soften edges and create a more natural, less rigid
5
5
  * look and feel.
6
6
  */
7
- declare const Curve: FC<CurveProps>;
7
+ export declare const Curve: FC<CurveProps>;
8
8
  export declare const sizes: readonly ["s", "m", "l"];
9
9
  export declare const positions: readonly ["bottom", "bottomLeft", "bottomRight", "top", "topLeft", "topRight"];
10
10
  export interface CurveProps {
@@ -29,4 +29,3 @@ export interface CurveProps {
29
29
  */
30
30
  topColor?: typeof backgroundsBT[number];
31
31
  }
32
- export default Curve;
@@ -1 +1 @@
1
- export { default } from "./Curve";
1
+ export { Curve } from "./Curve";
@@ -4,7 +4,7 @@ import { HeadingLevel } from "../Heading/Heading";
4
4
  * Use `Disclosure` to display content that is only visible when toggled into
5
5
  * an "open" state.
6
6
  */
7
- declare const Disclosure: FC<DisclosureProps>;
7
+ export declare const Disclosure: FC<DisclosureProps>;
8
8
  export interface DisclosureProps {
9
9
  /**
10
10
  * Content to display in the Disclosure.
@@ -28,4 +28,3 @@ export interface DisclosureProps {
28
28
  */
29
29
  summary: string;
30
30
  }
31
- export default Disclosure;
@@ -1 +1 @@
1
- export { default } from "./Disclosure";
1
+ export { Disclosure } from "./Disclosure";
@@ -2,7 +2,7 @@ import { FC, ReactNode } from "react";
2
2
  /**
3
3
  * Use `Elevation` to elevate what matters.
4
4
  */
5
- declare const Elevation: FC<ElevationProps>;
5
+ export declare const Elevation: FC<ElevationProps>;
6
6
  export interface ElevationProps {
7
7
  /**
8
8
  * Contents to Elevate.
@@ -13,4 +13,3 @@ export interface ElevationProps {
13
13
  */
14
14
  isFullWidth?: boolean;
15
15
  }
16
- export default Elevation;
@@ -1 +1 @@
1
- export { default } from "./Elevation";
1
+ export { Elevation } from "./Elevation";
@@ -6,7 +6,7 @@ declare const Context: React.Context<{
6
6
  /**
7
7
  * Use `FormControl` to provide inputs with labels, helper text and error messages
8
8
  */
9
- declare const FormControl: FC<FormControlProps>;
9
+ export declare const FormControl: FC<FormControlProps>;
10
10
  export interface FormControlProps {
11
11
  /**
12
12
  * Render the input or series of inputs
@@ -48,4 +48,3 @@ export interface FormControlProps {
48
48
  labelSize?: "s" | "l";
49
49
  }
50
50
  export { Context as FormControlContext };
51
- export default FormControl;
@@ -1 +1 @@
1
- export { default, FormControlContext } from "./FormControl";
1
+ export { FormControl, FormControlContext } from "./FormControl";
@@ -2,7 +2,7 @@ import { FC, ReactNode } from "react";
2
2
  /**
3
3
  * Use `Group` to arrange flexible items in a row.
4
4
  */
5
- declare const Group: FC<GroupProps> & {
5
+ export declare const Group: FC<GroupProps> & {
6
6
  Item: typeof GroupItem;
7
7
  };
8
8
  export declare const GroupItem: FC<ItemProps>;
@@ -43,4 +43,3 @@ export interface GroupProps {
43
43
  */
44
44
  noWrap?: boolean;
45
45
  }
46
- export default Group;
@@ -1 +1 @@
1
- export { default } from "./Group";
1
+ export { Group } from "./Group";
@@ -2,7 +2,7 @@ import { FC, ReactNode } from "react";
2
2
  /**
3
3
  * Use `Heading` to display heading text.
4
4
  */
5
- declare const Heading: FC<HeadingProps> & {
5
+ export declare const Heading: FC<HeadingProps> & {
6
6
  Proposition: typeof HeadingProposition;
7
7
  };
8
8
  export declare const HeadingProposition: FC<HeadingPropositionProps>;
@@ -43,4 +43,3 @@ export interface HeadingProps {
43
43
  */
44
44
  size?: HeadingSize;
45
45
  }
46
- export default Heading;
@@ -1 +1 @@
1
- export { default } from "./Heading";
1
+ export { Heading } from "./Heading";
@@ -3,7 +3,7 @@ import { FC } from "react";
3
3
  /**
4
4
  * Use `Icon` to display brand iconography.
5
5
  */
6
- declare const Icon: FC<IconProps>;
6
+ export declare const Icon: FC<IconProps>;
7
7
  export declare const colors: readonly ["auto", "brand", "statusRed", "statusAmber", "statusGreen"];
8
8
  export interface IconProps {
9
9
  /**
@@ -31,4 +31,3 @@ export interface IconProps {
31
31
  */
32
32
  size?: number;
33
33
  }
34
- export default Icon;
@@ -1 +1 @@
1
- export { default } from "./Icon";
1
+ export { Icon } from "./Icon";
@@ -4,7 +4,7 @@ import { anchorPoints } from "../../helpers";
4
4
  * Use `Image` to render a single image, or set of images, with support for
5
5
  * image fitting and art direction.
6
6
  */
7
- declare const Image: FC<ImageProps> & {
7
+ export declare const Image: FC<ImageProps> & {
8
8
  Source: typeof ImageSource;
9
9
  };
10
10
  export declare const ImageSource: FC<ImageSourceProps>;
@@ -91,4 +91,3 @@ export interface ImageProps extends HTMLAttributes<HTMLElement> {
91
91
  */
92
92
  width?: number;
93
93
  }
94
- export default Image;
@@ -1 +1 @@
1
- export { default } from "./Image";
1
+ export { Image } from "./Image";
@@ -2,7 +2,7 @@ import { FC, ReactNode } from "react";
2
2
  /**
3
3
  * Use `Markup` to display HTML-formatted text.
4
4
  */
5
- declare const Markup: FC<MarkupProps>;
5
+ export declare const Markup: FC<MarkupProps>;
6
6
  export interface MarkupProps {
7
7
  /**
8
8
  * HTML-formatted text to display in Markup.
@@ -13,4 +13,3 @@ export interface MarkupProps {
13
13
  */
14
14
  isMeasured?: boolean;
15
15
  }
16
- export default Markup;
@@ -1 +1 @@
1
- export { default } from "./Markup";
1
+ export { Markup } from "./Markup";
@@ -1,10 +1,10 @@
1
1
  import { FC, ReactNode } from "react";
2
- import PosterImage from "./PosterImage";
3
- import PosterVideo from "./PosterVideo";
2
+ import { PosterImage } from "./PosterImage";
3
+ import { PosterVideo } from "./PosterVideo";
4
4
  /**
5
5
  * Use `Poster` to compose content on an image or video background.
6
6
  */
7
- declare const Poster: FC<PosterProps> & {
7
+ export declare const Poster: FC<PosterProps> & {
8
8
  Image: typeof PosterImage;
9
9
  Video: typeof PosterVideo;
10
10
  };
@@ -27,4 +27,3 @@ export interface PosterProps {
27
27
  */
28
28
  surface?: "darker" | "lighter";
29
29
  }
30
- export default Poster;
@@ -28,4 +28,3 @@ export interface PosterImageProps {
28
28
  */
29
29
  srcSet?: string;
30
30
  }
31
- export default PosterImage;
@@ -1,6 +1,6 @@
1
1
  import { FC, ReactNode } from "react";
2
2
  import { anchorPoints } from "../../helpers";
3
- declare const PosterVideo: FC<PosterVideoProps>;
3
+ export declare const PosterVideo: FC<PosterVideoProps>;
4
4
  export interface PosterVideoProps {
5
5
  /**
6
6
  * Anchor point for the Poster.Video,
@@ -19,4 +19,3 @@ export interface PosterVideoProps {
19
19
  */
20
20
  loop?: boolean;
21
21
  }
22
- export default PosterVideo;
@@ -1 +1 @@
1
- export { default } from "./Poster";
1
+ export { Poster } from "./Poster";
@@ -2,7 +2,7 @@ import { FC } from "react";
2
2
  /**
3
3
  * Radio Button component.
4
4
  */
5
- declare const RadioButton: FC<RadioButtonProps>;
5
+ export declare const RadioButton: FC<RadioButtonProps>;
6
6
  export interface RadioButtonProps {
7
7
  /**
8
8
  * ID for the Radio Button.
@@ -25,4 +25,3 @@ export interface RadioButtonProps {
25
25
  */
26
26
  value: string;
27
27
  }
28
- export default RadioButton;
@@ -1 +1 @@
1
- export { default } from "./RadioButton";
1
+ export { RadioButton } from "./RadioButton";
@@ -1,14 +1,18 @@
1
1
  import React, { FC } from "react";
2
2
  import { FormControlProps } from "../FormControl/FormControl";
3
- import RadioButton from "./RadioButton";
3
+ import { RadioButton } from "./RadioButton";
4
4
  declare type EventType = React.ChangeEvent<HTMLInputElement>;
5
5
  /**
6
6
  * Use `RadioGroup` to wrap and control radio buttons and apply default values
7
7
  */
8
- declare const RadioGroup: FC<RadioGroupProps> & {
8
+ export declare const RadioGroup: FC<RadioGroupProps> & {
9
9
  RadioButton: typeof RadioButton;
10
10
  };
11
11
  export interface RadioGroupProps extends Omit<FormControlProps, "children" | "elementType" | "errorMessage" | "htmlFor" | "labelSize" | "requirementStatus"> {
12
+ /**
13
+ * Contents of the RadioGroup. Should only contain `RadioGroup.RadioButton`
14
+ */
15
+ children?: React.ReactNode;
12
16
  /**
13
17
  * Value of the RadioButton that should be checked by default.
14
18
  */
@@ -51,4 +55,4 @@ export interface RadioGroupProps extends Omit<FormControlProps, "children" | "el
51
55
  */
52
56
  size?: "s" | "l";
53
57
  }
54
- export default RadioGroup;
58
+ export {};
@@ -1 +1 @@
1
- export { default } from "./RadioGroup";
1
+ export { RadioGroup } from "./RadioGroup";
@@ -2,7 +2,6 @@ import { FC } from "react";
2
2
  /**
3
3
  * Use `Rule` to display a horizontal rule.
4
4
  */
5
- declare const Rule: FC<RuleProps>;
5
+ export declare const Rule: FC<RuleProps>;
6
6
  export interface RuleProps {
7
7
  }
8
- export default Rule;
@@ -1 +1 @@
1
- export { default } from "./Rule";
1
+ export { Rule } from "./Rule";
@@ -2,7 +2,7 @@ import { FC, ReactNode } from "react";
2
2
  /**
3
3
  * Use `Section` to compose content into vertical page layouts.
4
4
  */
5
- declare const Section: FC<SectionProps>;
5
+ export declare const Section: FC<SectionProps>;
6
6
  export interface SectionProps {
7
7
  /**
8
8
  * Content to display in the Section.
@@ -18,4 +18,3 @@ export interface SectionProps {
18
18
  */
19
19
  isFullWidth?: boolean;
20
20
  }
21
- export default Section;
@@ -1 +1 @@
1
- export { default } from "./Section";
1
+ export { Section } from "./Section";
@@ -2,7 +2,7 @@ import { FC, ReactNode } from "react";
2
2
  /**
3
3
  * Use `SiteFooter` to display information at the bottom of a page.
4
4
  */
5
- declare const SiteFooter: FC<SiteFooterProps> & {
5
+ export declare const SiteFooter: FC<SiteFooterProps> & {
6
6
  Item: typeof SiteFooterItem;
7
7
  ItemGroup: typeof SiteFooterItemGroup;
8
8
  };
@@ -27,6 +27,10 @@ export interface SiteFooterItemProps {
27
27
  * A URL to link to when the Item is clicked or touched.
28
28
  */
29
29
  href: string;
30
+ /**
31
+ * On click handler.
32
+ */
33
+ onClick?: () => void;
30
34
  }
31
35
  export interface SiteFooterProps {
32
36
  /**
@@ -55,4 +59,3 @@ export interface SiteFooterProps {
55
59
  */
56
60
  siteName?: string;
57
61
  }
58
- export default SiteFooter;
@@ -1,2 +1,2 @@
1
- export { default } from "./SiteFooter";
1
+ export { SiteFooter } from "./SiteFooter";
2
2
  export { default as SiteFooterRehydrator } from "./SiteFooter.rehydrator";
@@ -1,17 +1,17 @@
1
1
  import React, { FC, ReactNode } from "react";
2
2
  import { subBrands } from "../BrandLogo/BrandLogo";
3
- import Column from "./components/Column";
4
- import Item from "./components/Item";
5
- import ItemGroup from "./components/ItemGroup";
6
- import NavItem, { NavItemWithSubNav } from "./components/NavItem";
7
- import SubNavItem from "./components/SubNavItem";
3
+ import { Column } from "./components/Column";
4
+ import { Item } from "./components/Item";
5
+ import { ItemGroup } from "./components/ItemGroup";
6
+ import { NavItem, NavItemWithSubNav } from "./components/NavItem";
7
+ import { SubNavItem } from "./components/SubNavItem";
8
8
  declare const Context: React.Context<{
9
9
  transparent: boolean;
10
10
  }>;
11
11
  /**
12
12
  * Use `SiteHeader` to display brand logo and navigation at the top of a page.
13
13
  */
14
- declare const SiteHeader: FC<SiteHeaderProps> & {
14
+ export declare const SiteHeader: FC<SiteHeaderProps> & {
15
15
  Column: typeof Column;
16
16
  Item: typeof Item;
17
17
  ItemGroup: typeof ItemGroup;
@@ -38,9 +38,17 @@ export interface SiteHeaderProps {
38
38
  */
39
39
  isTransparent?: boolean;
40
40
  /**
41
- * A URL to link to when SiteHeader login links are clicked or touched.
41
+ * A URL to link to when SiteHeader logo is clicked or touched.
42
42
  */
43
43
  loginHref?: string;
44
+ /**
45
+ * A Function to run to when SiteHeader logo is clicked or touched.
46
+ */
47
+ logoOnClick?: () => void;
48
+ /**
49
+ * A Function to run to when SiteHeader login links are clicked or touched.
50
+ */
51
+ loginOnClick?: () => void;
44
52
  /**
45
53
  * Text to display in SiteHeader login links.
46
54
  */
@@ -63,4 +71,3 @@ export interface SiteHeaderProps {
63
71
  subBrand?: typeof subBrands[number];
64
72
  }
65
73
  export { Context as SiteHeaderContext };
66
- export default SiteHeader;
@@ -3,4 +3,3 @@ export declare const BackButton: FC<BackButtonProps>;
3
3
  export interface BackButtonProps {
4
4
  setOpen: (arg0: boolean) => any;
5
5
  }
6
- export default BackButton;
@@ -1 +1 @@
1
- export { default } from "./BackButton";
1
+ export { BackButton } from "./BackButton";
@@ -1,9 +1,8 @@
1
1
  import { FC, ReactNode } from "react";
2
- declare const Column: FC<ColumnProps>;
2
+ export declare const Column: FC<ColumnProps>;
3
3
  export interface ColumnProps {
4
4
  /**
5
5
  * Contents of the Column. Must be SiteHeader.ItemGroup components.
6
6
  */
7
7
  children: ReactNode;
8
8
  }
9
- export default Column;
@@ -1 +1 @@
1
- export { default } from "./Column";
1
+ export { Column } from "./Column";