@apolitical/component-library 8.7.10 → 8.7.12-re.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.
- package/cards/card/card.d.ts +1 -1
- package/cards/card-block/card-block.d.ts +2 -0
- package/cards/cards.types.d.ts +4 -0
- package/discussion/components/form/form.type.d.ts +2 -0
- package/form/components/rich-text-editor/helpers/transform/transform.d.ts +1 -1
- package/index.js +151 -145
- package/index.mjs +15146 -14132
- package/modals/components/overlay/overlay.d.ts +3 -1
- package/package.json +2 -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, meta, }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const Card: ({ id, className, buildCardData, buildMemberData, card, cta, gtmContext, handleCardClick, meta, onClick, }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Card;
|
|
@@ -11,6 +11,8 @@ export interface ICardBlockProps {
|
|
|
11
11
|
/** Additional classes to add to the card block */
|
|
12
12
|
className?: string;
|
|
13
13
|
focusCardIndex?: number;
|
|
14
|
+
/** A callback to run when the user clicks on the card */
|
|
15
|
+
onClick?: (link: string) => void;
|
|
14
16
|
}
|
|
15
17
|
declare const CardBlock: ({ cards, cardTypes, className, gtmContext, ...props }: ICardBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
18
|
export default CardBlock;
|
package/cards/cards.types.d.ts
CHANGED
|
@@ -104,6 +104,8 @@ export interface CardProps {
|
|
|
104
104
|
/** If the browser should focus on this card */
|
|
105
105
|
setFocus?: boolean;
|
|
106
106
|
};
|
|
107
|
+
/** A callback to run when the user clicks on the card */
|
|
108
|
+
onClick?: (link: string) => void;
|
|
107
109
|
}
|
|
108
110
|
export interface CarouselTitleProps {
|
|
109
111
|
/** The title text */
|
|
@@ -156,6 +158,8 @@ export interface IndividualCarouselProps extends BaseCarouselProps {
|
|
|
156
158
|
cards: CardType[];
|
|
157
159
|
/** The types for each card, from Contentful */
|
|
158
160
|
cardTypes: CardContentType[];
|
|
161
|
+
/** A callback to run when the user clicks on the card */
|
|
162
|
+
onClick?: (link: string) => void;
|
|
159
163
|
}
|
|
160
164
|
export interface NarrowCardType {
|
|
161
165
|
/** The image to use */
|
|
@@ -12,8 +12,8 @@ export default function transform<T extends InputNodeTypes>(node: MdastNode, opt
|
|
|
12
12
|
position?: any;
|
|
13
13
|
ordered?: boolean | undefined;
|
|
14
14
|
checked?: any;
|
|
15
|
-
depth?: 1 | 2 | 3 | 4 | 5 | 6 | undefined;
|
|
16
15
|
lang?: string | undefined;
|
|
16
|
+
depth?: 1 | 2 | 3 | 4 | 5 | 6 | undefined;
|
|
17
17
|
spread?: any;
|
|
18
18
|
indent?: any;
|
|
19
19
|
text: string | undefined;
|