@apolitical/component-library 6.4.1-ac.4 → 6.4.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/form/components/form/index.d.ts +0 -1
- package/index.js +43 -43
- package/index.mjs +22 -19
- package/layout/content-layout/top-level-page/top-level-page.d.ts +5 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/base/form/_checkbox.scss +1 -1
- package/styles/base/form/_index.scss +1 -1
- package/styles/variables/colors/theme/_form.scss +0 -1
- package/text/page-heading/page-heading.d.ts +6 -1
- package/styles/base/form/_radio.scss +0 -31
|
@@ -1 +1 @@
|
|
|
1
|
-
@import 'checkbox', 'fields', 'form', 'labels', '
|
|
1
|
+
@import 'checkbox', 'fields', 'form', 'labels', 'search-button';
|
|
@@ -28,7 +28,6 @@ $form: (
|
|
|
28
28
|
search_clear-button_bg: get-map($c, 'n500'),
|
|
29
29
|
search_search-button_bg: get-map($c, 'n600'),
|
|
30
30
|
search_search-button_active_bg: get-map($c, 'white'),
|
|
31
|
-
selected_row_bg: get-map($c, 'n50'),
|
|
32
31
|
show_password: get-map($c, 'n600'),
|
|
33
32
|
signup_form_error: get-map($c, 'error600'),
|
|
34
33
|
toggle_bg: get-map($c, 'n100'),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ButtonPropsType } from '../../general';
|
|
2
3
|
interface PageHeadingTitleProps {
|
|
3
4
|
/** Text to be rendered in the title */
|
|
4
5
|
text: string;
|
|
@@ -16,6 +17,10 @@ export interface PageHeadingProps {
|
|
|
16
17
|
children?: React.ReactNode;
|
|
17
18
|
/** Additional classes */
|
|
18
19
|
className?: string;
|
|
20
|
+
/** Call-To-Action button configuration */
|
|
21
|
+
ctaButton?: ButtonPropsType & {
|
|
22
|
+
text: string;
|
|
23
|
+
};
|
|
19
24
|
}
|
|
20
|
-
declare const PageHeading: ({ maxWidth, title, subtitle, children, className, }: PageHeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
declare const PageHeading: ({ maxWidth, title, subtitle, children, className, ctaButton, }: PageHeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
26
|
export default PageHeading;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
@import '@/styles/functions', '@/styles/mixins', '@/styles/variables';
|
|
2
|
-
|
|
3
|
-
$radio: (
|
|
4
|
-
'border': 2,
|
|
5
|
-
);
|
|
6
|
-
$radio-inner: (
|
|
7
|
-
'width': 14,
|
|
8
|
-
);
|
|
9
|
-
|
|
10
|
-
@layer components {
|
|
11
|
-
.pretty-checkbox.radio {
|
|
12
|
-
border-radius: 50%;
|
|
13
|
-
display: flex;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
align-items: center;
|
|
16
|
-
|
|
17
|
-
input:checked + &,
|
|
18
|
-
.selected & {
|
|
19
|
-
border: px-to-rem(get-map($radio, 'border')) solid
|
|
20
|
-
get-map($theme, 'form_checkbox_bg');
|
|
21
|
-
background: none;
|
|
22
|
-
|
|
23
|
-
.radio-inner {
|
|
24
|
-
background: get-map($theme, 'form_checkbox_bg');
|
|
25
|
-
border-radius: 50%;
|
|
26
|
-
width: px-to-rem(get-map($radio-inner, 'width'));
|
|
27
|
-
height: px-to-rem(get-map($radio-inner, 'width'));
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|