@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.
- package/cards/card/card.d.ts +1 -1
- package/cards/cards.types.d.ts +7 -2
- package/cards/carousel/components/carousel/carousel.helpers.d.ts +4 -1
- package/form/components/rich-text-editor/rich-text-editor.types.d.ts +2 -1
- package/helpers/intl.d.ts +5 -1
- package/hooks/use-tooltips.d.ts +0 -2
- package/index.d.ts +1 -0
- package/index.js +49 -49
- package/index.mjs +7382 -7210
- package/package.json +1 -1
- package/polls/index.d.ts +1 -0
- package/polls/poll/components/index.d.ts +1 -0
- package/polls/poll/components/poll-option/index.d.ts +1 -0
- package/polls/poll/components/poll-option/poll-option.d.ts +18 -0
- package/polls/poll/index.d.ts +3 -0
- package/polls/poll/poll.d.ts +18 -0
- package/polls/poll/poll.enums.d.ts +4 -0
- package/polls/poll/poll.helpers.d.ts +9 -0
- package/polls/poll/poll.mocks.d.ts +58 -0
- package/polls/poll/poll.types.d.ts +10 -0
- package/style.css +1 -1
- package/styles/variables/colors/theme/_index.scss +3 -3
- package/styles/variables/colors/theme/_polls.scss +10 -0
- package/text/pill/pill.d.ts +4 -1
- package/form/components/rich-text-editor/components/toolbar/components/header-option/header-option.d.ts +0 -2
- package/form/components/rich-text-editor/components/toolbar/components/header-option/index.d.ts +0 -1
package/cards/card/card.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { CardProps } from './../cards.types';
|
|
2
|
-
declare const Card: ({ id, className, buildCardData, buildMemberData, card, cta, gtmContext, handleCardClick,
|
|
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;
|
package/cards/cards.types.d.ts
CHANGED
|
@@ -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
|
-
/**
|
|
97
|
-
|
|
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[]) =>
|
|
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
|
|
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
|
-
|
|
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;
|
package/hooks/use-tooltips.d.ts
CHANGED
|
@@ -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;
|