@apolitical/component-library 4.7.16 → 4.7.17-4765.3
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/index.js +3 -3
- package/index.mjs +32 -26
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/variables/colors/theme/_assistant.scss +11 -0
- package/styles/variables/colors/theme/_index.scss +5 -5
- package/styles/variables/colors/theme/_text.scss +2 -2
- package/text/hide-show-text-box/hide-show-text-box.d.ts +3 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
@import './../colors';
|
|
3
|
+
@import './../../../functions';
|
|
4
|
+
|
|
5
|
+
$c: $default-colors;
|
|
6
|
+
$assistant: (
|
|
7
|
+
ai_assistant_heading_text: get-map($c, 'n900'),
|
|
8
|
+
ai_assistant_button_text: get-map($c, 'n600'),
|
|
9
|
+
ai_assistant_button_box_shadow: color.adjust(get-map($c, 'n800'), $alpha: -0.9),
|
|
10
|
+
ai_assistant_border: get-map($c, 'n100'),
|
|
11
|
+
);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@import './../../../functions';
|
|
2
|
-
@import 'banners', 'base', 'cards', 'communities', 'courses', 'discussion',
|
|
3
|
-
'general', 'layout', 'loaders', 'modals', 'navigation', 'pages', 'sections',
|
|
4
|
-
'user';
|
|
2
|
+
@import 'assistant', 'banners', 'base', 'cards', 'communities', 'courses', 'discussion',
|
|
3
|
+
'form', 'general', 'layout', 'loaders', 'modals', 'navigation', 'pages', 'sections',
|
|
4
|
+
'text', 'user';
|
|
5
5
|
|
|
6
6
|
$theme: merge-maps(
|
|
7
|
-
$banners $base $cards $communities $courses $discussion $form $general
|
|
8
|
-
$modals $navigation $pages $sections $text $user
|
|
7
|
+
$assistant $banners $base $cards $communities $courses $discussion $form $general
|
|
8
|
+
$layout $loaders $modals $navigation $pages $sections $text $user
|
|
9
9
|
);
|
|
@@ -18,6 +18,8 @@ $text: (
|
|
|
18
18
|
helper-text-box_warning_bg: get-map($c, 'warning50'),
|
|
19
19
|
helper-text-box_error_bg: get-map($c, 'error50'),
|
|
20
20
|
helper-text-box_success_bg: get-map($c, 'success50'),
|
|
21
|
+
hide-show-text-box_gradient:
|
|
22
|
+
linear-gradient(rgba(255 255 255 / 0%), rgba(255 255 255 / 100%)),
|
|
21
23
|
highlighted-text-box_bg: get-map($c, 'n50'),
|
|
22
24
|
highlighted-text-box_secondary_bg: get-map($c, 'y50'),
|
|
23
25
|
highlighted-text-box_tertiary_bg: get-map($c, 'error50'),
|
|
@@ -26,8 +28,6 @@ $text: (
|
|
|
26
28
|
highlighted-text-box_subtle-alt_dark_bg: get-map($c, 'n50'),
|
|
27
29
|
highlighted-text-box_bold_bg:
|
|
28
30
|
linear-gradient(135deg, get-map($c, 'b100'), get-map($c, 'g50')),
|
|
29
|
-
highlighted-text-box_subtle_gradient:
|
|
30
|
-
linear-gradient(rgba(255 255 255 / 0%), rgba(255 255 255 / 100%)),
|
|
31
31
|
highlighted-text-box_bold_icon: get-map($c, 'b500'),
|
|
32
32
|
highlighted-text-box_subtle_border: get-map($c, 'n100'),
|
|
33
33
|
highlighted-text-box_subtle-alt_border: get-map($c, 'n200'),
|
|
@@ -13,8 +13,10 @@ interface Props {
|
|
|
13
13
|
hide?: string | false;
|
|
14
14
|
/** The content to show when the section is expanded */
|
|
15
15
|
text: string;
|
|
16
|
+
/** Fade style to hide the text */
|
|
17
|
+
fadeStyle?: 'default' | 'none';
|
|
16
18
|
markdownOptions?: MarkdownToJSX.Options;
|
|
17
19
|
children?: React.ReactNode;
|
|
18
20
|
}
|
|
19
|
-
declare const HideShowTextBox: ({ id, className, show, hide, text, markdownOptions, children, }: Props) => import("react/jsx-runtime").JSX.Element
|
|
21
|
+
declare const HideShowTextBox: ({ id, className, show, hide, text, markdownOptions, fadeStyle, children, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
20
22
|
export default HideShowTextBox;
|