@apolitical/component-library 5.0.0 → 5.0.1

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.
@@ -4,6 +4,7 @@
4
4
  $c: $default-colors;
5
5
  $base: (
6
6
  default_focus: get-map($c, 'b500'),
7
+ focus_light: get-map($c, 'b300'),
7
8
  background: get-map($c, 'white'),
8
9
  highlight_bg: get-map($c, 'g300'),
9
10
  title: get-map($c, 'n900'),
@@ -7,7 +7,7 @@ interface ButtonType extends ButtonPropsType {
7
7
  };
8
8
  component?: React.ReactNode;
9
9
  }
10
- interface Props {
10
+ export interface IEmptyStateBoxProps {
11
11
  /** Box styling */
12
12
  variant?: 'empty' | 'error';
13
13
  /** Optional text */
@@ -17,5 +17,5 @@ interface Props {
17
17
  /** Additional classes */
18
18
  className?: string;
19
19
  }
20
- declare const EmptyStateBox: ({ variant, text, button, className, }: Props) => import("react/jsx-runtime").JSX.Element;
20
+ declare const EmptyStateBox: ({ variant, text, button, className, }: IEmptyStateBoxProps) => import("react/jsx-runtime").JSX.Element;
21
21
  export default EmptyStateBox;
@@ -1 +1,2 @@
1
+ export type { IEmptyStateBoxProps } from './empty-state-box';
1
2
  export { default as EmptyStateBox } from './empty-state-box';
@@ -11,6 +11,8 @@ interface Props {
11
11
  heading?: string | false;
12
12
  /** The content to display in the box */
13
13
  children: React.ReactNode | JSX.Element | string;
14
+ /** Optional aria live, for screen readers */
15
+ 'aria-live'?: 'polite' | 'assertive';
14
16
  }
15
17
  declare const HelperTextBox: ({ type, className, heading, children, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
16
18
  export default HelperTextBox;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { MarkdownToJSX } from 'markdown-to-jsx';
3
- interface Props {
3
+ export interface IHideShowTextBoxProps {
4
4
  /** The language for the box text */
5
5
  locale?: string;
6
6
  /** An optional id for the box */
@@ -18,5 +18,5 @@ interface Props {
18
18
  markdownOptions?: MarkdownToJSX.Options;
19
19
  children?: React.ReactNode;
20
20
  }
21
- declare const HideShowTextBox: ({ id, className, show, hide, text, markdownOptions, fadeStyle, children, }: Props) => import("react/jsx-runtime").JSX.Element;
21
+ declare const HideShowTextBox: ({ id, className, show, hide, text, markdownOptions, fadeStyle, children, }: IHideShowTextBoxProps) => import("react/jsx-runtime").JSX.Element;
22
22
  export default HideShowTextBox;
@@ -1 +1,2 @@
1
+ export type { IHideShowTextBoxProps } from './hide-show-text-box';
1
2
  export { default as HideShowTextBox } from './hide-show-text-box';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- interface Props {
2
+ export interface IHighlightedTextBoxProps {
3
3
  /** The style of box being rendered */
4
4
  variant?: 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'subtle' | 'subtle-alt' | 'bold' | 'muted';
5
5
  /** The name of an icon file to display at the top */
@@ -18,5 +18,5 @@ interface Props {
18
18
  /** Additional props to pass to the box */
19
19
  style?: React.CSSProperties;
20
20
  }
21
- declare const HighlightedTextBoxWrapper: ({ variant, icon, styling, className, children, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
21
+ declare const HighlightedTextBoxWrapper: ({ variant, icon, styling, className, children, ...props }: IHighlightedTextBoxProps) => import("react/jsx-runtime").JSX.Element;
22
22
  export default HighlightedTextBoxWrapper;
@@ -1 +1,2 @@
1
+ export type { IHighlightedTextBoxProps } from './highlighted-text-box';
1
2
  export { default as HighlightedTextBox } from './highlighted-text-box';
@@ -1 +1,2 @@
1
+ export type { IProfilePictureProps } from './profile-picture';
1
2
  export { default as ProfilePicture } from './profile-picture';
@@ -1,4 +1,4 @@
1
- interface Props {
1
+ export interface IProfilePictureProps {
2
2
  /** The user's name, to create initials */
3
3
  name: string;
4
4
  /** The user's image */
@@ -16,5 +16,5 @@ interface Props {
16
16
  /** Optional test ID */
17
17
  'data-testid'?: string;
18
18
  }
19
- declare const ProfilePicture: ({ className, src, name, alt, width, height, showInitials, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
19
+ declare const ProfilePicture: ({ className, src, name, alt, width, height, showInitials, ...props }: IProfilePictureProps) => import("react/jsx-runtime").JSX.Element;
20
20
  export default ProfilePicture;