@apolitical/component-library 2.0.2-ac.3 → 2.0.2-ac.32
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/discussion/components/responses-heading/responses-heading.d.ts +1 -1
- package/discussion/discussion.mock.d.ts +4 -0
- package/discussion/sections/activity-section/mocks/activity-section.mock.d.ts +3 -0
- package/discussion/shared/interfaces/user.interface.d.ts +3 -0
- package/form/components/form/components/fields/dropdown-menu/dropdown-menu.d.ts +1 -1
- package/form/components/form/form.d.ts +1 -1
- package/form/components/form/form.types.d.ts +16 -4
- package/form/types/contact-form/contact-form.d.ts +1 -1
- package/general/return-to-nav-button/return-to-nav-button.d.ts +3 -0
- package/helpers/index.d.ts +1 -0
- package/helpers/inline-styling.d.ts +2 -0
- package/helpers/validation.d.ts +8 -0
- package/index.d.ts +1 -0
- package/index.js +19 -19
- package/index.mjs +2933 -2714
- package/layout/content-layout/contact-footer/contact-footer.d.ts +1 -1
- package/layout/page-layout/page-layout.d.ts +1 -1
- package/package.json +1 -1
- package/sections/edit-section/edit-section.d.ts +33 -0
- package/sections/edit-section/index.d.ts +1 -0
- package/sections/index.d.ts +1 -0
- package/style.css +1 -1
- package/styles/variables/colors/theme/_banners.scss +2 -0
- package/styles/variables/colors/theme/_form.scss +5 -0
- package/styles/variables/colors/theme/_general.scss +5 -0
- package/styles/variables/colors/theme/_layout.scss +1 -0
- package/styles/variables/colors/theme/_text.scss +1 -0
- package/text/index.d.ts +1 -0
- package/text/markdown-text/markdown-text.d.ts +3 -1
- package/text/pill/pill.d.ts +1 -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
|
);
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
$c: $default-colors;
|
|
5
5
|
$form: (
|
|
6
|
+
dropdown_menu_border_top: get-map($c, 'n500'),
|
|
7
|
+
dropdown_action_bar_color: get-map($c, 'n600'),
|
|
8
|
+
dropdown_action_bar_button_color: get-map($c, 'n700'),
|
|
9
|
+
dropdown_action_bar_button_color_active_focus_hover: get-map($c, 'b700'),
|
|
10
|
+
dropdown_action_bar_button_color_active_focus_hover_override: get-map($c, 'white'),
|
|
6
11
|
invite_form_border_focus: get-map($c, 'b500'),
|
|
7
12
|
invite_form_shadow: get-map($c, 'b100'),
|
|
8
13
|
invite_form_remove_email_button: get-map($c, 'n700'),
|
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
$c: $default-colors;
|
|
6
6
|
$general: (
|
|
7
|
+
image_container_bg: get-map($c, 'n50'),
|
|
8
|
+
image_container_bg_empty: get-map($c, 'white'),
|
|
9
|
+
return_to_nav_box_shadow: get-map($c, 'black'),
|
|
10
|
+
return_to_nav_bg_focus_active: get-map($c, 'white'),
|
|
11
|
+
return_to_nav_bg_before_after: get-map($c, 'b700'),
|
|
7
12
|
tooltip: get-map($c, 'white'),
|
|
8
13
|
tooltip_bg: color.adjust(get-map($c, 'n900'), $alpha: -0.1),
|
|
9
14
|
);
|
|
@@ -39,6 +39,7 @@ $layout: (
|
|
|
39
39
|
logos_title: get-map($c, 'n700'),
|
|
40
40
|
logos_small: get-map($c, 'n600'),
|
|
41
41
|
page-layout_gradient_bg_1: get-map($c, 'n50'),
|
|
42
|
+
page-layout_subtle_bg: rgb(43 137 117 / 10%),
|
|
42
43
|
page-layout_gradient_bg_2: rgb(240 245 255 / 0%),
|
|
43
44
|
page-layout_bold: get-map($c, 'white'),
|
|
44
45
|
page-layout_bold_bg: get-map($c, 'b700'),
|
|
@@ -36,6 +36,7 @@ $text: (
|
|
|
36
36
|
pill_bg: get-map($c, 'n200'),
|
|
37
37
|
pill_subtle_bg: get-map($c, 'white'),
|
|
38
38
|
pill_highlighted_bg: get-map($c, 'y300'),
|
|
39
|
+
pill_light_bg: get-map($c, 'info50'),
|
|
39
40
|
pill_information_bg: get-map($c, 'g100'),
|
|
40
41
|
pill_registered_bg: get-map($c, 'g50'),
|
|
41
42
|
pill_subtle_border: get-map($c, 'n200'),
|
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;
|
package/text/pill/pill.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ interface Props {
|
|
|
3
3
|
/** The size of the pill */
|
|
4
4
|
size?: 'small' | 'medium' | 'large';
|
|
5
5
|
/** The style of the pill */
|
|
6
|
-
variant?: 'default' | 'subtle' | 'highlighted' | 'information' | 'registered';
|
|
6
|
+
variant?: 'default' | 'subtle' | 'highlighted' | 'information' | 'registered' | 'light';
|
|
7
7
|
/** Additional classes to add to the pill */
|
|
8
8
|
className?: string;
|
|
9
9
|
/** The pill text */
|
|
@@ -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;
|