@apolitical/component-library 2.0.4-beta.0 → 2.0.5
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/banners/highlight-section/highlight-section.d.ts +14 -0
- package/banners/highlight-section/index.d.ts +1 -0
- package/banners/index.d.ts +1 -0
- package/index.js +18 -18
- package/index.mjs +1703 -1641
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/variables/colors/theme/_banners.scss +2 -0
- package/text/index.d.ts +1 -0
- package/text/markdown-text/markdown-text.d.ts +3 -1
- package/text/testimonial-block/index.d.ts +1 -0
- package/text/testimonial-block/testimonial-block.d.ts +11 -0
|
@@ -23,4 +23,6 @@ $banners: (
|
|
|
23
23
|
marketing-block_primary_bg_2: get-map($c, 'y300'),
|
|
24
24
|
marketing-block_secondary_bg_2: get-map($c, 'g100'),
|
|
25
25
|
marketing-block_tertiary_bg_2: get-map($c, 'p600'),
|
|
26
|
+
testimonial-block_author: get-map($c, 'b700'),
|
|
27
|
+
testimonial-block_author_cite: get-map($c, 'n700'),
|
|
26
28
|
);
|
package/text/index.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ interface Props {
|
|
|
5
5
|
options?: any;
|
|
6
6
|
/** The content to be parsed */
|
|
7
7
|
children: string;
|
|
8
|
+
/** What is being changed or removed in the final mark-up. `default` handles large blocks of HTML for courses. `text-only` only expects text and will remove `iframe`s. */
|
|
9
|
+
overrideType?: 'default' | 'text-only';
|
|
8
10
|
}
|
|
9
|
-
declare const MarkdownText: ({ className, options, children }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare const MarkdownText: ({ className, options, children, overrideType, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
12
|
export default MarkdownText;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TestimonialBlock } from './testimonial-block';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type TestimonialBlockProps = {
|
|
3
|
+
/** The name of the Testimonial's author */
|
|
4
|
+
author?: string;
|
|
5
|
+
/** The citation of the Testimonial's author */
|
|
6
|
+
authorCite?: string;
|
|
7
|
+
/** The content to display */
|
|
8
|
+
content: string;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import("react").MemoExoticComponent<({ author, authorCite, content }: TestimonialBlockProps) => import("react/jsx-runtime").JSX.Element>;
|
|
11
|
+
export default _default;
|