@arc-ui/components 11.22.0 → 11.24.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 (160) hide show
  1. package/dist/Alert/Alert.cjs.js +1 -1
  2. package/dist/Alert/Alert.esm.js +1 -1
  3. package/dist/Avatar/Avatar.cjs.js +1 -1
  4. package/dist/Avatar/Avatar.esm.js +1 -1
  5. package/dist/AvatarGroup/AvatarGroup.cjs.js +2 -1
  6. package/dist/AvatarGroup/AvatarGroup.esm.js +2 -1
  7. package/dist/Badge/Badge.cjs.js +1 -1
  8. package/dist/Badge/Badge.esm.js +1 -1
  9. package/dist/Button/Button.cjs.js +1 -1
  10. package/dist/Button/Button.esm.js +1 -1
  11. package/dist/Calendar/Calendar.cjs.js +2 -2
  12. package/dist/Calendar/Calendar.esm.js +2 -2
  13. package/dist/Checkbox/Checkbox.cjs.js +4 -4
  14. package/dist/Checkbox/Checkbox.esm.js +4 -4
  15. package/dist/DatePicker/DatePicker.cjs.js +8 -5
  16. package/dist/DatePicker/DatePicker.esm.js +8 -5
  17. package/dist/Disclosure/Disclosure.cjs.js +1 -2
  18. package/dist/Disclosure/Disclosure.esm.js +1 -2
  19. package/dist/DisclosureMini/DisclosureMini.cjs.js +1 -1
  20. package/dist/DisclosureMini/DisclosureMini.esm.js +1 -1
  21. package/dist/Filter/Filter.cjs.js +2 -1
  22. package/dist/Filter/Filter.esm.js +2 -1
  23. package/dist/FormControl/FormControl.cjs.js +3 -3
  24. package/dist/FormControl/FormControl.esm.js +3 -3
  25. package/dist/Grid/Grid.cjs.js +13 -0
  26. package/dist/Grid/Grid.esm.js +5 -0
  27. package/dist/Grid/package.json +7 -0
  28. package/dist/Hidden/Hidden.cjs.js +24 -0
  29. package/dist/Hidden/Hidden.esm.js +16 -0
  30. package/dist/Hidden/package.json +7 -0
  31. package/dist/ImpactCard/ImpactCard.cjs.js +1 -0
  32. package/dist/ImpactCard/ImpactCard.esm.js +1 -0
  33. package/dist/InformationCard/InformationCard.cjs.js +3 -2
  34. package/dist/InformationCard/InformationCard.esm.js +3 -2
  35. package/dist/Link/Link.cjs.js +76 -0
  36. package/dist/Link/Link.esm.js +68 -0
  37. package/dist/Link/package.json +7 -0
  38. package/dist/Modal/Modal.cjs.js +3 -3
  39. package/dist/Modal/Modal.esm.js +3 -3
  40. package/dist/Pagination/Pagination.cjs.js +1 -1
  41. package/dist/Pagination/Pagination.esm.js +1 -1
  42. package/dist/PaginationSimple/PaginationSimple.cjs.js +6 -10
  43. package/dist/PaginationSimple/PaginationSimple.esm.js +6 -10
  44. package/dist/ProgressBar/ProgressBar.cjs.js +8 -2
  45. package/dist/ProgressBar/ProgressBar.esm.js +8 -2
  46. package/dist/ProgressStepper/ProgressStepper.cjs.js +2 -2
  47. package/dist/ProgressStepper/ProgressStepper.esm.js +2 -2
  48. package/dist/RadioGroup/RadioGroup.cjs.js +4 -4
  49. package/dist/RadioGroup/RadioGroup.esm.js +4 -4
  50. package/dist/Select/Select.cjs.js +3 -3
  51. package/dist/Select/Select.esm.js +3 -3
  52. package/dist/SiteHeader/SiteHeader.cjs.js +2 -2
  53. package/dist/SiteHeader/SiteHeader.esm.js +2 -2
  54. package/dist/SiteHeaderV2/SiteHeaderV2.cjs.js +2 -2
  55. package/dist/SiteHeaderV2/SiteHeaderV2.esm.js +2 -2
  56. package/dist/SkipLink/SkipLink.cjs.js +1 -0
  57. package/dist/SkipLink/SkipLink.esm.js +1 -0
  58. package/dist/Switch/Switch.cjs.js +4 -4
  59. package/dist/Switch/Switch.esm.js +4 -4
  60. package/dist/Tabs/Tabs.cjs.js +1 -1
  61. package/dist/Tabs/Tabs.esm.js +1 -1
  62. package/dist/Tag/Tag.cjs.js +1 -1
  63. package/dist/Tag/Tag.esm.js +1 -1
  64. package/dist/TextArea/TextArea.cjs.js +16 -15
  65. package/dist/TextArea/TextArea.esm.js +16 -15
  66. package/dist/TextInput/TextInput.cjs.js +4 -4
  67. package/dist/TextInput/TextInput.esm.js +4 -4
  68. package/dist/Toast/Toast.cjs.js +1 -1
  69. package/dist/Toast/Toast.esm.js +1 -1
  70. package/dist/TypographyCard/TypographyCard.cjs.js +1 -0
  71. package/dist/TypographyCard/TypographyCard.esm.js +1 -0
  72. package/dist/Visible/Visible.cjs.js +24 -0
  73. package/dist/Visible/Visible.esm.js +16 -0
  74. package/dist/Visible/package.json +7 -0
  75. package/dist/VisuallyHidden/VisuallyHidden.cjs.js +1 -1
  76. package/dist/VisuallyHidden/VisuallyHidden.esm.js +1 -1
  77. package/dist/_shared/cjs/{Avatar-12ece0dd.js → Avatar-f1b1c129.js} +1 -0
  78. package/dist/_shared/cjs/{Button-84533dc8.js → Button-6ba21d3b.js} +1 -1
  79. package/dist/_shared/cjs/{Calendar-c6ed5f2c.js → Calendar-b022545c.js} +4 -3
  80. package/dist/_shared/cjs/{Checkbox-8915fcd9.js → Checkbox-0253327b.js} +2 -2
  81. package/dist/_shared/cjs/{DisclosureMini-d0eeb6bb.js → DisclosureMini-09c749e5.js} +1 -2
  82. package/dist/_shared/cjs/{Filter-f4b73f5d.js → Filter-f9506dfa.js} +6 -2
  83. package/dist/_shared/cjs/{FormControl-5f3b6ce4.js → FormControl-68258ce1.js} +2 -2
  84. package/dist/_shared/cjs/Grid-da776e77.js +45 -0
  85. package/dist/_shared/cjs/{ProgressStepper-20a61620.js → ProgressStepper-57cfef1e.js} +3 -3
  86. package/dist/_shared/cjs/{RadioGroup-07bb155e.js → RadioGroup-85eda600.js} +2 -2
  87. package/dist/_shared/cjs/{SiteHeader.rehydrator-ea49f8d5.js → SiteHeader.rehydrator-b76b0889.js} +1 -1
  88. package/dist/_shared/cjs/{SiteHeaderV2-e0735a9d.js → SiteHeaderV2-ce1c8737.js} +1 -1
  89. package/dist/_shared/cjs/{Tabs-24e6f45b.js → Tabs-bc9fac46.js} +1 -0
  90. package/dist/_shared/cjs/{Tag-8723b324.js → Tag-73a59171.js} +5 -5
  91. package/dist/_shared/cjs/{TextInput-5da70ec2.js → TextInput-8d139489.js} +7 -7
  92. package/dist/_shared/cjs/{Toast-7a20d1b9.js → Toast-26207fef.js} +1 -1
  93. package/dist/_shared/cjs/{VisuallyHidden-e2c8b291.js → VisuallyHidden-b0de4c7b.js} +1 -1
  94. package/dist/_shared/esm/{Avatar-d01e2b7b.js → Avatar-320313f0.js} +1 -0
  95. package/dist/_shared/esm/{Button-3f294e64.js → Button-a7d134c6.js} +1 -1
  96. package/dist/_shared/esm/{Calendar-753ef6f1.js → Calendar-ea232839.js} +4 -3
  97. package/dist/_shared/esm/{Checkbox-0e051546.js → Checkbox-588619c7.js} +2 -2
  98. package/dist/_shared/esm/{DisclosureMini-ec17b008.js → DisclosureMini-56719716.js} +1 -2
  99. package/dist/_shared/esm/{Filter-ad254e3d.js → Filter-258ba675.js} +6 -2
  100. package/dist/_shared/esm/{FormControl-cc99cde0.js → FormControl-8e836656.js} +2 -2
  101. package/dist/_shared/esm/Grid-07dbf4bd.js +39 -0
  102. package/dist/_shared/esm/{ProgressStepper-74d48612.js → ProgressStepper-6c811282.js} +3 -3
  103. package/dist/_shared/esm/{RadioGroup-362be63f.js → RadioGroup-6c8f8454.js} +2 -2
  104. package/dist/_shared/esm/{SiteHeader.rehydrator-65c8cf71.js → SiteHeader.rehydrator-8ad7651b.js} +1 -1
  105. package/dist/_shared/esm/{SiteHeaderV2-c74b811b.js → SiteHeaderV2-a7c1b1cb.js} +1 -1
  106. package/dist/_shared/esm/{Tabs-a85af483.js → Tabs-9485cab6.js} +1 -0
  107. package/dist/_shared/esm/{Tag-664b85c8.js → Tag-cb35d57b.js} +5 -5
  108. package/dist/_shared/esm/{TextInput-1d1c5fd6.js → TextInput-c0388103.js} +7 -7
  109. package/dist/_shared/esm/{Toast-7a232e15.js → Toast-fcbfc194.js} +1 -1
  110. package/dist/_shared/esm/{VisuallyHidden-b9eebf71.js → VisuallyHidden-06692fd3.js} +1 -1
  111. package/dist/index.es.js +170 -47
  112. package/dist/index.es.js.map +1 -1
  113. package/dist/index.js +173 -46
  114. package/dist/index.js.map +1 -1
  115. package/dist/styles.css +3 -3
  116. package/dist/types/components/Alert/Alert.d.ts +1 -1
  117. package/dist/types/components/Avatar/Avatar.d.ts +1 -0
  118. package/dist/types/components/AvatarGroup/AvatarGroup.d.ts +1 -0
  119. package/dist/types/components/Badge/Badge.d.ts +1 -1
  120. package/dist/types/components/Button/Button.d.ts +1 -1
  121. package/dist/types/components/Calendar/Calendar.d.ts +1 -0
  122. package/dist/types/components/DatePicker/DatePicker.d.ts +3 -0
  123. package/dist/types/components/Disclosure/Disclosure.d.ts +1 -2
  124. package/dist/types/components/DisclosureMini/DisclosureMini.d.ts +1 -2
  125. package/dist/types/components/Filter/Filter.d.ts +1 -1
  126. package/dist/types/components/Filter/FilterItems/FilterItems.d.ts +4 -1
  127. package/dist/types/components/Grid/Grid.constants.d.ts +1 -0
  128. package/dist/types/components/Grid/Grid.d.ts +28 -0
  129. package/dist/types/components/Grid/Grid.types.d.ts +8 -0
  130. package/dist/types/components/Grid/components/Col/Col.d.ts +9 -0
  131. package/dist/types/components/Grid/components/Col/index.d.ts +1 -0
  132. package/dist/types/components/Grid/components/Row/Row.d.ts +9 -0
  133. package/dist/types/components/Grid/components/Row/index.d.ts +1 -0
  134. package/dist/types/components/Grid/index.d.ts +2 -0
  135. package/dist/types/components/Hidden/Hidden.d.ts +11 -0
  136. package/dist/types/components/Hidden/index.d.ts +1 -0
  137. package/dist/types/components/ImpactCard/ImpactCard.d.ts +1 -0
  138. package/dist/types/components/InformationCard/InformationCard.d.ts +1 -0
  139. package/dist/types/components/Link/Link.d.ts +52 -0
  140. package/dist/types/components/Link/index.d.ts +1 -0
  141. package/dist/types/components/Modal/Modal.d.ts +1 -1
  142. package/dist/types/components/Pagination/Pagination.d.ts +1 -1
  143. package/dist/types/components/PaginationSimple/PaginationSimple.d.ts +12 -4
  144. package/dist/types/components/ProgressBar/ProgressBar.d.ts +4 -0
  145. package/dist/types/components/ProgressStepper/ProgressStepper.d.ts +1 -1
  146. package/dist/types/components/SkipLink/SkipLink.d.ts +1 -0
  147. package/dist/types/components/Switch/Switch.d.ts +1 -1
  148. package/dist/types/components/Tabs/Tabs.d.ts +1 -0
  149. package/dist/types/components/Tag/Tag.d.ts +5 -1
  150. package/dist/types/components/TextArea/TextArea.d.ts +5 -0
  151. package/dist/types/components/TextInput/TextInput.d.ts +8 -0
  152. package/dist/types/components/Toast/Toast.d.ts +1 -1
  153. package/dist/types/components/TypographyCard/TypographyCard.d.ts +1 -0
  154. package/dist/types/components/Visible/Visible.d.ts +11 -0
  155. package/dist/types/components/Visible/index.d.ts +1 -0
  156. package/dist/types/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
  157. package/dist/types/components/index.d.ts +4 -0
  158. package/dist/types/styles.d.ts +4 -0
  159. package/dist/types/types/auto-complete-types.d.ts +1 -0
  160. package/package.json +3 -3
@@ -1,7 +1,7 @@
1
1
  import { ReactNode, FC } from "react";
2
2
  import { HeadingProps } from "../Heading/Heading";
3
3
  import { ArcIcon } from "../../types/arc-icon";
4
- /** use `Alert` to display persistent messages, either permanent or dismissible. */
4
+ /** Use `Alert` to inform the user of important changes or actions. */
5
5
  export declare const Alert: FC<AlertProps>;
6
6
  export interface AlertProps {
7
7
  /**
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import { type AvatarImage } from "./types/avatar-image";
3
3
  import { type AvatarSize } from "./types/avatar-size";
4
+ /** Use `Avatar` to visually represent a user. */
4
5
  export declare const Avatar: React.FC<AvatarProps>;
5
6
  export interface AvatarProps {
6
7
  initials?: string;
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import { type AvatarSize } from "../Avatar/types/avatar-size";
3
3
  import { type GroupAvatar } from "./types/group-avatar";
4
+ /** Use `AvatarGroup` to visually represent a group of users. */
4
5
  export declare const AvatarGroup: React.FC<AvatarGroupProps>;
5
6
  export interface AvatarGroupProps {
6
7
  avatars: GroupAvatar[];
@@ -1,5 +1,5 @@
1
1
  import { FC, ReactNode } from "react";
2
- /** Use `Badge` component to visually display a small amount of information, such as notification counts or status indicators. */
2
+ /** Use `Badge` as a static, non-interactive way to provide short updates. */
3
3
  export declare const Badge: FC<BadgeProps>;
4
4
  export interface BadgeProps {
5
5
  /**
@@ -3,7 +3,7 @@ import { ArcIcon } from "../../types/arc-icon";
3
3
  export type ElementUnion = HTMLButtonElement | HTMLAnchorElement;
4
4
  export type Ref = React.Ref<ElementUnion> | null;
5
5
  /**
6
- * Use `Button` to allow users to take actions with clicks and taps.
6
+ * Use `Button` to let a user complete an action like ‘Log in’ or ‘Register’.
7
7
  */
8
8
  export declare const Button: FC<ButtonProps>;
9
9
  export interface ButtonIconProps {
@@ -1,5 +1,6 @@
1
1
  import { FC } from "react";
2
2
  import { CalendarType, RangeSelection, SelectionType } from "./types";
3
+ /** Use `Calendar` to clearly present available dates and allowing users to choose a way to enter information. */
3
4
  export declare const Calendar: FC<CalendarProps>;
4
5
  export interface CalendarProps {
5
6
  /**
@@ -2,6 +2,9 @@ import React from "react";
2
2
  import { type ArcCalendarRangeSelection } from "../Calendar";
3
3
  import { CalendarProps } from "../Calendar/Calendar";
4
4
  import { TextInputWithPlaceholderProps } from "../TextInput/TextInput";
5
+ /**
6
+ * Use `DatePicker` to clearly present available dates and allow users to choose a way to enter information.
7
+ */
5
8
  export declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLInputElement>>;
6
9
  interface DatePickerRangeSelection extends ArcCalendarRangeSelection {
7
10
  formattedRange: string;
@@ -1,8 +1,7 @@
1
1
  import { FC, ReactNode } from "react";
2
2
  import { HeadingLevel } from "../Heading/Heading";
3
3
  /**
4
- * Use `Disclosure` to display content that is only visible when toggled into
5
- * an "open" state.
4
+ * Use `Disclosure` to show and hide sections of content.
6
5
  */
7
6
  export declare const Disclosure: FC<DisclosureProps>;
8
7
  export interface DisclosureProps {
@@ -1,7 +1,6 @@
1
1
  import { FC, ReactNode } from "react";
2
2
  /**
3
- * Use `DisclosureMini` to display content that is only visible when toggled into
4
- * an "open" state.
3
+ * Use `DisclosureMini` to show and hide sections of content.
5
4
  */
6
5
  export declare const DisclosureMini: FC<DisclosureMiniProps>;
7
6
  export interface DisclosureMiniProps {
@@ -3,7 +3,7 @@ import { FilterControl } from "./FilterControls/FilterControl/FilterControl";
3
3
  import { FilterControls, FilterControlsProps } from "./FilterControls/FilterControls";
4
4
  import { FilterItem } from "./FilterItems/FilterItem/FilterItem";
5
5
  import { FilterItems, FilterItemsProps } from "./FilterItems/FilterItems";
6
- /** use `Filter` for interactive elements that filter and categorise page content. */
6
+ /** Use `Filter` to filter and categorise page content. */
7
7
  export declare const Filter: FC<FilterProps> & {
8
8
  Item: typeof FilterItem;
9
9
  Items: typeof FilterItems;
@@ -5,7 +5,10 @@ export interface FilterItemsProps {
5
5
  * Render children of `<Filter.Items />`. This should only use `<Filter.Item />`
6
6
  */
7
7
  children: ReactNode;
8
- error: ReactNode;
8
+ /**
9
+ * Error to display for `<Filter.Item />`
10
+ */
11
+ error?: ReactNode;
9
12
  /**
10
13
  * Determine the display style of `<Filter.Item />`
11
14
  */
@@ -0,0 +1 @@
1
+ export declare const BREAKPOINTS: readonly ["xs", "s", "m", "l", "xl"];
@@ -0,0 +1,28 @@
1
+ import React from "react";
2
+ import { Col } from "./components/Col";
3
+ import { Row } from "./components/Row";
4
+ /**
5
+ * Use `Grid` to compose layouts on a 12-column grid.
6
+ */
7
+ export declare const Grid: React.FC<GridProps> & {
8
+ Col: typeof Col;
9
+ Row: typeof Row;
10
+ };
11
+ export interface GridProps {
12
+ /**
13
+ * `Grid` is set to 100% width if true.
14
+ */
15
+ isFluid?: boolean;
16
+ /**
17
+ * Removes gap between columns for an edge to edge layout if true.
18
+ */
19
+ isGutterless?: boolean;
20
+ /**
21
+ * Allows the rows and columns be visible for debugging.
22
+ */
23
+ isDebugVisible?: boolean;
24
+ /**
25
+ * Contents of the Grid. Should only contain `Grid.Row`.
26
+ */
27
+ children: React.ReactNode;
28
+ }
@@ -0,0 +1,8 @@
1
+ import { BREAKPOINTS } from "./Grid.constants";
2
+ type Breakpoints = (typeof BREAKPOINTS)[number];
3
+ type ColumnConfig<T> = Partial<Record<Breakpoints, T>>;
4
+ export type GridValue = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
5
+ export type ColumnValue = GridValue | "auto" | "equal";
6
+ export type Column = ColumnConfig<ColumnValue>;
7
+ export type Arrangement = ColumnConfig<GridValue>;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { Arrangement, Column } from "../../Grid.types";
3
+ export declare const Col: React.FC<ColProps>;
4
+ interface ColProps extends Column {
5
+ offset?: Arrangement;
6
+ order?: Arrangement;
7
+ children: React.ReactNode;
8
+ }
9
+ export {};
@@ -0,0 +1 @@
1
+ export { Col } from "./Col";
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ export declare const Row: React.FC<RowProps>;
3
+ interface RowProps {
4
+ direction?: "column" | "row" | "column-reverse" | "row-reverse";
5
+ align?: "normal" | "start" | "center" | "end" | "stretch";
6
+ justify?: "start" | "center" | "end" | "between" | "around" | "normal";
7
+ children: React.ReactNode;
8
+ }
9
+ export {};
@@ -0,0 +1 @@
1
+ export { Row } from "./Row";
@@ -0,0 +1,2 @@
1
+ export { Grid } from "./Grid";
2
+ export { type GridValue, type ColumnValue } from "./Grid.types";
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ export declare const Hidden: React.FC<HiddenProps>;
3
+ interface HiddenProps {
4
+ xs?: boolean;
5
+ s?: boolean;
6
+ m?: boolean;
7
+ l?: boolean;
8
+ xl?: boolean;
9
+ children: React.ReactNode;
10
+ }
11
+ export {};
@@ -0,0 +1 @@
1
+ export { Hidden } from "./Hidden";
@@ -2,6 +2,7 @@ import React, { FC } from "react";
2
2
  import { HeadingLevel } from "../Heading/Heading";
3
3
  import { ImageProps } from "../Image/Image";
4
4
  import { CardFooterProps } from "../../private-components/CardFooter/CardFooter";
5
+ /** Use `ImpactCard` for important content that needs additional hierarchy and prominence. */
5
6
  export declare const ImpactCard: FC<ImpactCardProps>;
6
7
  type ImpactCardPathway = "light" | "dark";
7
8
  export interface ImpactCardProps {
@@ -3,6 +3,7 @@ import { ImageProps } from "../Image/Image";
3
3
  import { HeadingLevel } from "../Heading/Heading";
4
4
  import { ButtonProps } from "../Button/Button";
5
5
  import { ArcIcon } from "../../types/arc-icon";
6
+ /** Use `InformationCard` for flexibility and the ability to focus and highlight product specific content. */
6
7
  export declare const InformationCard: FC<InformationCardProps>;
7
8
  type InformationCardImage = Pick<ImageProps, "alt" | "loading" | "width" | "height" | "src">;
8
9
  type InformationCardButtonProps = Pick<ButtonProps, "label" | "onClick" | "href">;
@@ -0,0 +1,52 @@
1
+ import React from "react";
2
+ /**
3
+ * Use `Link` to direct users to a new page or piece of information.
4
+ */
5
+ export declare const Link: React.FC<LinkProps>;
6
+ interface LinkProps {
7
+ /**
8
+ * Id attribute for `Link`.
9
+ */
10
+ id?: string;
11
+ /**
12
+ * href attribute for `Link`.
13
+ */
14
+ href?: string;
15
+ /**
16
+ * Screen reader text for `Link`, which is visually hidden.
17
+ */
18
+ screenReaderText?: string;
19
+ /**
20
+ * title attribute for `Link`.
21
+ */
22
+ title?: string;
23
+ /**
24
+ * Rel attribute for `Link`.
25
+ */
26
+ rel?: string;
27
+ /**
28
+ * Configures the size of `Link`.
29
+ */
30
+ size?: "s" | "m" | "l";
31
+ /**
32
+ * Removes underline if true.
33
+ */
34
+ isImplied?: boolean;
35
+ /**
36
+ * Renders as a button element if true.
37
+ */
38
+ isButton?: boolean;
39
+ /**
40
+ * Click handler for `Link`.
41
+ */
42
+ onClick?: (e: React.MouseEvent) => void;
43
+ /**
44
+ * Target for `Link`.
45
+ */
46
+ target?: "_self" | "_blank" | "_parent" | "_top";
47
+ /**
48
+ * Content for `Link`.
49
+ */
50
+ children: string;
51
+ }
52
+ export {};
@@ -0,0 +1 @@
1
+ export { Link } from "./Link";
@@ -1,6 +1,6 @@
1
1
  import React, { FC } from "react";
2
2
  import { ButtonProps } from "../Button/Button";
3
- /** Use `Modal` to focus a user's attention to an urgent or required prompt for interaction or input. */
3
+ /** Use `Modal` to display information that needs immediate action from a user. */
4
4
  export declare const Modal: FC<ModalProps>;
5
5
  export interface ModalProps {
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import { FC } from "react";
2
2
  /**
3
- * Use `Pagination` to navigate multiple pages.
3
+ * Use `Pagination` to navigate through multiple pages of content.
4
4
  */
5
5
  export declare const Pagination: FC<PaginationProps>;
6
6
  export interface PaginationProps {
@@ -1,6 +1,6 @@
1
- import { FC } from "react";
1
+ import React, { FC } from "react";
2
2
  /**
3
- * Use `PaginationSimple` to navigate multiple pages.
3
+ * Use `PaginationSimple` to navigate through multiple pages of content.
4
4
  */
5
5
  export declare const PaginationSimple: FC<PaginationSimpleProps>;
6
6
  export interface PaginationSimpleProps {
@@ -12,6 +12,14 @@ export interface PaginationSimpleProps {
12
12
  * hides next button if true.
13
13
  */
14
14
  hideNext?: boolean;
15
+ /**
16
+ * makes prev button a link
17
+ */
18
+ prevHref?: string;
19
+ /**
20
+ * makes next button a link
21
+ */
22
+ nextHref?: string;
15
23
  /**
16
24
  * if true buttons will hug either edge of the parent element
17
25
  */
@@ -19,9 +27,9 @@ export interface PaginationSimpleProps {
19
27
  /**
20
28
  * Function to call when previous page is selected
21
29
  */
22
- onPrevPage: () => void;
30
+ onPrevPage?: (e: React.MouseEvent) => void;
23
31
  /**
24
32
  * Function to call when next page is selected
25
33
  */
26
- onNextPage: () => void;
34
+ onNextPage?: (e: React.MouseEvent) => void;
27
35
  }
@@ -1,6 +1,9 @@
1
1
  import { FC } from "react";
2
2
  import { ProgressBarState } from "./types/progress-bar-state";
3
3
  import { ProgressBarIcons } from "./types/progress-bar-icons";
4
+ /**
5
+ * Use `ProgressBar` to show the progress of a specific task within a page.
6
+ */
4
7
  export declare const ProgressBar: FC<ProgressBarProps>;
5
8
  export interface ProgressBarProps {
6
9
  /**
@@ -39,6 +42,7 @@ export interface ProgressBarProps {
39
42
  * Action for the progress bar.
40
43
  */
41
44
  action?: {
45
+ autofocusOnMount?: boolean;
42
46
  text: string;
43
47
  action: () => void;
44
48
  icon?: ProgressBarIcons;
@@ -1,6 +1,6 @@
1
1
  import { FC, ReactNode } from "react";
2
2
  import { ProgressStepperItem } from "./ProgressStepperItem/ProgressStepperItem";
3
- /** Use `ProgressStepper` to illustrate the progress of a specific task within a page, by displaying a step-by-step progress through the user journey. This is commonly used in multi-step processes or wizards. */
3
+ /** Use `ProgressStepper` to provide an overview of a series of steps in a digital journey. */
4
4
  export declare const ProgressStepper: FC<ProgressStepperProps> & {
5
5
  Item: typeof ProgressStepperItem;
6
6
  };
@@ -1,5 +1,6 @@
1
1
  import { FC, ReactNode } from "react";
2
2
  import { SkipLinkItem } from "./SkipLinkItem/SkipLinkItem";
3
+ /** Use `SkipLink` to help keyboard-only users skip to the main content on a page. */
3
4
  export declare const SkipLink: FC<SkipLinkProps> & {
4
5
  Item: typeof SkipLinkItem;
5
6
  };
@@ -1,7 +1,7 @@
1
1
  import { FC } from "react";
2
2
  import { SwitchProps as RadixSwitchProps } from "@radix-ui/react-switch";
3
3
  import { FormControlProps } from "../FormControl/FormControl";
4
- /** Use `Switch` to toggle between checked and not checked. */
4
+ /** Use `Switch` to allow users to immediately toggle between two states. */
5
5
  export declare const Switch: FC<SwitchProps>;
6
6
  export interface SwitchProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "disclosureText" | "disclosureTitle" | "onClickDisclosure" | "helper" | "supplementaryInfo"> {
7
7
  /**
@@ -2,6 +2,7 @@ import { FC, ReactNode } from "react";
2
2
  import { Tab } from "./Tab/Tab";
3
3
  import { TabContent } from "./TabContent";
4
4
  import { TabsList } from "./TabsList";
5
+ /** Use `Tabs` to allow users to navigate between different sections of relevant content. */
5
6
  export declare const Tabs: FC<TabsProps> & {
6
7
  Tab: typeof Tab;
7
8
  Content: typeof TabContent;
@@ -1,7 +1,7 @@
1
1
  import { FC, ReactNode } from "react";
2
2
  import { ArcIcon } from "../../types/arc-icon";
3
3
  /**
4
- * use `Tag` to promote features and manage filtering.
4
+ * Use `Tag` to promote features and manage filtering.
5
5
  */
6
6
  export declare const Tag: FC<TagProps>;
7
7
  export interface TagProps {
@@ -29,4 +29,8 @@ export interface TagProps {
29
29
  * Execute function on remove
30
30
  */
31
31
  onRemove?: () => void;
32
+ /**
33
+ * Specify extra information about the Tag.
34
+ */
35
+ title?: string;
32
36
  }
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
2
  import { FormControlProps } from "../FormControl/FormControl";
3
+ import { AutoCompleteTypes } from "../../types/auto-complete-types";
3
4
  type EventType = React.ChangeEvent<HTMLTextAreaElement>;
4
5
  /** Use `TextArea` to allow custom user text entry via keyboard, for long-form and multi-line descriptions */
5
6
  export declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
@@ -63,5 +64,9 @@ export interface TextAreaProps extends Omit<FormControlProps, "children" | "elem
63
64
  * Sets the width of the TextArea.
64
65
  */
65
66
  width?: string;
67
+ /**
68
+ * Sets autoComplete value for TextArea.
69
+ */
70
+ autoComplete?: AutoCompleteTypes;
66
71
  }
67
72
  export {};
@@ -1,7 +1,11 @@
1
1
  import React from "react";
2
2
  import { FormControlProps } from "../FormControl/FormControl";
3
3
  import { ArcIcon } from "../../types/arc-icon";
4
+ import { AutoCompleteTypes } from "../../types/auto-complete-types";
4
5
  type EventType = React.ChangeEvent<HTMLInputElement>;
6
+ /**
7
+ * Use `TextInput` to allow users to enter short form text.
8
+ */
5
9
  export declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
6
10
  export declare const TextInputWithPlaceHolder: React.ForwardRefExoticComponent<TextInputComponentProps & React.RefAttributes<HTMLInputElement>>;
7
11
  export interface TextInputComponentProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "helperUnderLabel" | "supplementaryInfo"> {
@@ -103,6 +107,10 @@ export interface TextInputComponentProps extends Omit<FormControlProps, "childre
103
107
  * Sets the width of the TextInput.
104
108
  */
105
109
  width?: string;
110
+ /**
111
+ * Sets autoComplete value for TextInput.
112
+ */
113
+ autoComplete?: AutoCompleteTypes;
106
114
  }
107
115
  export type TextInputProps = Omit<TextInputComponentProps, "placeholder">;
108
116
  export type TextInputWithPlaceholderProps = TextInputComponentProps;
@@ -1,6 +1,6 @@
1
1
  import React, { FC } from "react";
2
2
  import { ToastNotification } from "./ToastNotification";
3
- /** Use `Toast` to display temporary messages at the bottom of the viewport. */
3
+ /** Use `Toast` to display temporary messages at the bottom of the screen. */
4
4
  export declare const Toast: FC<ToastProps> & {
5
5
  Notification: typeof ToastNotification;
6
6
  };
@@ -1,5 +1,6 @@
1
1
  import React, { FC } from "react";
2
2
  import { HeadingLevel } from "../Heading/Heading";
3
+ /** Use `TypographyCard` for content that benefits from larger and energetic typography. */
3
4
  export declare const TypographyCard: FC<TypographyCardProps>;
4
5
  type TypographyCardIcon = "play" | "arrow";
5
6
  type TypographyCardPathway = "light" | "dark";
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ export declare const Visible: React.FC<VisibleProps>;
3
+ interface VisibleProps {
4
+ xs?: boolean;
5
+ s?: boolean;
6
+ m?: boolean;
7
+ l?: boolean;
8
+ xl?: boolean;
9
+ children: React.ReactNode;
10
+ }
11
+ export {};
@@ -0,0 +1 @@
1
+ export { Visible } from "./Visible";
@@ -1,6 +1,6 @@
1
1
  import { FC, ReactNode } from "react";
2
2
  /**
3
- * Provides text for screen readers that is visually hidden.
3
+ * Use `VisuallyHidden` to provide text for screen readers that is visually hidden on screen.
4
4
  */
5
5
  export declare const VisuallyHidden: FC<VisuallyHiddenProps>;
6
6
  export interface VisuallyHiddenProps {
@@ -18,8 +18,10 @@ export { DisclosureMini } from "./DisclosureMini";
18
18
  export { Elevation } from "./Elevation";
19
19
  export { Filter } from "./Filter";
20
20
  export { FormControl } from "./FormControl";
21
+ export { Grid } from "./Grid";
21
22
  export { Group } from "./Group";
22
23
  export { Heading } from "./Heading";
24
+ export { Hidden } from "./Hidden";
23
25
  export { Icon } from "./Icon";
24
26
  export { InformationCard } from "./InformationCard";
25
27
  export { Image } from "./Image";
@@ -52,4 +54,6 @@ export { Truncate } from "./Truncate";
52
54
  export { TypographyCard } from "./TypographyCard";
53
55
  export { UniversalHeader } from "./UniversalHeader";
54
56
  export { VerticalSpace } from "./VerticalSpace";
57
+ export { Visible } from "./Visible";
55
58
  export { VisuallyHidden } from "./VisuallyHidden";
59
+ export { Link } from "./Link";
@@ -82,6 +82,10 @@ import "./components/InformationCard/InformationCard.css";
82
82
  import "./components/TypographyCard/TypographyCard.css";
83
83
  import "./components/Avatar/Avatar.css";
84
84
  import "./components/AvatarGroup/AvatarGroup.css";
85
+ import "./components/Grid/Grid.css";
86
+ import "./components/Hidden/Hidden.css";
87
+ import "./components/Visible/Visible.css";
88
+ import "./components/Link/Link.css";
85
89
  import "./private-components/CardHeading/CardHeading.css";
86
90
  import "./private-components/CardLabel/CardLabel.css";
87
91
  import "./private-components/CardFooter/CardFooter.css";
@@ -0,0 +1 @@
1
+ export type AutoCompleteTypes = "on" | "off" | "name" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "country" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "email" | "impp" | "url" | "photo" | "organization-unit";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arc-ui/components",
3
- "version": "11.22.0",
3
+ "version": "11.24.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",
@@ -12,8 +12,8 @@
12
12
  "storybook:build": "storybook build --quiet",
13
13
  "storybook:quiet": "pnpm run storybook --quiet",
14
14
  "coverage:summary": "pnpm dlx nyc report --reporter=text-summary",
15
- "coverage:files": "pnpm dlx nyc report --reporter=text",
16
- "coverage:check": "pnpm dlx nyc report --check-coverage --lines 85 --functions 85 --branches 85 --statements 85",
15
+ "coverage:files": "pnpm dlx nyc@15.0.0 report --reporter=text",
16
+ "coverage:check": "pnpm dlx nyc@15.0.0 report --check-coverage --lines 85 --functions 85 --branches 85 --statements 85",
17
17
  "test:components": "cypress open --component",
18
18
  "test:components:ci": "cypress run --component --browser chrome",
19
19
  "test:components:pipeline": "pnpm run test:components:ci && pnpm run coverage:check",