@apolitical/component-library 6.0.3-ac.4 → 6.0.3-ac.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.
@@ -1,3 +1,3 @@
1
1
  import type { CardProps } from './../cards.types';
2
- declare const Card: ({ id, className, buildCardData, buildMemberData, card, cta, gtmContext, handleCardClick, setFocus, }: CardProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Card: ({ id, className, buildCardData, buildMemberData, card, cta, gtmContext, handleCardClick, meta, }: CardProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Card;
@@ -93,8 +93,13 @@ export interface CardProps {
93
93
  className?: string;
94
94
  /** A callback to run when the user clicks on the card CTA */
95
95
  handleCardClick?: (card: CardType) => Promise<string>;
96
- /** If the browser should focus on this card */
97
- setFocus?: boolean;
96
+ /** Metadata about the card */
97
+ meta?: {
98
+ /** If the browser should be able to reach the card, e.g. for out of view cards in carousels */
99
+ isTabbable?: boolean;
100
+ /** If the browser should focus on this card */
101
+ setFocus?: boolean;
102
+ };
98
103
  }
99
104
  export interface CarouselTitleProps {
100
105
  /** The title text */
@@ -1 +1,4 @@
1
- export declare const shouldDisplayCard: (index: number, cardsPerPage: number, page: number, loadedPages: number[]) => boolean;
1
+ export declare const shouldDisplayCard: (index: number, cardsPerPage: number, page: number, loadedPages: number[]) => {
2
+ inView: boolean;
3
+ isLoaded: boolean;
4
+ };
@@ -101,9 +101,10 @@ export interface BaseProps {
101
101
  };
102
102
  [key: string]: unknown;
103
103
  }
104
- export type BlockOptionType = Formatting.blockquote | Formatting.link | Formatting.li | Formatting.mention | Formatting.ol | Formatting.ul | Formatting.paragraph | Formatting.span | Formatting.h3;
104
+ export type BlockOptionType = Formatting.blockquote | Formatting.link | Formatting.li | Formatting.mention | Formatting.ol | Formatting.ul | Formatting.paragraph | Formatting.span;
105
105
  export interface TypeElement extends BaseElement {
106
106
  type: BlockOptionType | MarkOptionType;
107
+ [Formatting.h3]?: boolean;
107
108
  }
108
109
  export interface MentionElement extends BaseElement {
109
110
  type: Formatting.mention;
package/helpers/intl.d.ts CHANGED
@@ -297,7 +297,7 @@ export declare const checkIntlPathExists: (path: string, language?: {
297
297
  richTextEditor_placeholder: string;
298
298
  richTextEditor_toolbar: string;
299
299
  richTextEditor_bold: string;
300
- richTextEditor_h3: string;
300
+ richTextEditor_heading_three: string;
301
301
  richTextEditor_italic: string;
302
302
  richTextEditor_strikeThrough: string;
303
303
  richTextEditor_link: string;
@@ -346,6 +346,10 @@ export declare const checkIntlPathExists: (path: string, language?: {
346
346
  signup_submitting: string;
347
347
  signup_success_title: string;
348
348
  signup_success_text: string;
349
+ poll_instructions: string;
350
+ poll_num_votes: string;
351
+ poll_remove_vote_button: string;
352
+ poll_aria_votes: string;
349
353
  tableOfContents: string;
350
354
  timeToComplete_hours: string;
351
355
  timeToComplete_hours_short: string;
@@ -7,7 +7,6 @@ declare const _default: (hasTooltip?: boolean) => {
7
7
  onMouseOut?: undefined;
8
8
  onFocus?: undefined;
9
9
  onBlur?: undefined;
10
- tabIndex?: undefined;
11
10
  };
12
11
  } | {
13
12
  showTooltip: boolean;
@@ -18,7 +17,6 @@ declare const _default: (hasTooltip?: boolean) => {
18
17
  onMouseOut: () => void;
19
18
  onFocus: () => void;
20
19
  onBlur: () => void;
21
- tabIndex: number;
22
20
  };
23
21
  };
24
22
  export default _default;
package/index.d.ts CHANGED
@@ -16,6 +16,7 @@ export * from './mappers';
16
16
  export * from './modals';
17
17
  export * from './navigation';
18
18
  export * from './pages';
19
+ export * from './polls';
19
20
  export * from './sections';
20
21
  export * from './text';
21
22
  export * from './user';