@apolitical/component-library 6.4.1-ac.5 → 6.5.0-SW.0
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/discussion/components/conversation/conversation.d.ts +1 -1
- package/discussion/components/discussion-form-card/discussion-form-card.d.ts +2 -2
- package/discussion/components/form/components/guidelines/guidelines.d.ts +1 -1
- package/discussion/components/form/components/label/label.d.ts +1 -1
- package/discussion/components/form/form.type.d.ts +1 -2
- package/discussion/components/post/components/author-section/author-section.d.ts +14 -0
- package/discussion/components/post/components/author-section/index.d.ts +1 -0
- package/discussion/components/post/components/categories/categories.d.ts +5 -0
- package/discussion/components/post/components/categories/index.d.ts +1 -0
- package/discussion/components/post/components/index.d.ts +4 -0
- package/discussion/components/post/components/poll-content/index.d.ts +1 -0
- package/discussion/components/post/components/poll-content/poll-content.d.ts +11 -0
- package/discussion/components/post/components/post-content/index.d.ts +1 -0
- package/discussion/components/post/components/post-content/post-content.d.ts +15 -0
- package/discussion/components/post/post.d.ts +13 -5
- package/discussion/components/post/post.helpers.d.ts +5 -1
- package/discussion/feeds/activities-feed/activities-feed.d.ts +6 -2
- package/discussion/feeds/activities-feed/cache/hooks/create-vote/create-vote.hook.d.ts +8 -0
- package/discussion/feeds/activities-feed/cache/hooks/create-vote/index.d.ts +1 -0
- package/discussion/feeds/activities-feed/cache/hooks/index.d.ts +2 -0
- package/discussion/feeds/activities-feed/cache/hooks/remove-vote/index.d.ts +1 -0
- package/discussion/feeds/activities-feed/cache/hooks/remove-vote/remove-vote.hook.d.ts +8 -0
- package/discussion/feeds/replies-feed/components/nested-replies-feed/nested-replies-feed.d.ts +1 -1
- package/discussion/feeds/replies-feed/components/reply-item/reply-item.d.ts +1 -1
- package/discussion/feeds/replies-feed/replies-feed.d.ts +1 -1
- package/discussion/index.d.ts +1 -2
- package/discussion/sections/activity-section/activity-section.d.ts +1 -1
- package/discussion/shared/constants.d.ts +1 -0
- package/discussion/shared/helpers/index.d.ts +2 -1
- package/discussion/shared/helpers/poll.helper.d.ts +23 -0
- package/discussion/shared/interfaces/activity.interface.d.ts +16 -1
- package/discussion/shared/interfaces/discussion.interface.d.ts +15 -4
- package/discussion/shared/interfaces/reaction.interface.d.ts +1 -1
- package/form/components/form/index.d.ts +0 -1
- package/form/components/rich-text-editor/components/context/context.d.ts +1 -1
- package/form/components/rich-text-editor/rich-text-editor.types.d.ts +1 -1
- package/helpers/intl.d.ts +2 -0
- package/helpers/replace-mention-data.d.ts +1 -1
- package/index.js +61 -61
- package/index.mjs +7260 -7014
- package/layout/content-layout/top-level-page/top-level-page.d.ts +5 -0
- package/navigation/action-bar/action-bar.d.ts +1 -1
- package/navigation/action-bar/components/likes/likes.d.ts +2 -2
- package/package.json +1 -1
- package/polls/poll/index.d.ts +1 -1
- package/polls/poll/poll.d.ts +8 -9
- package/polls/poll/poll.mocks.d.ts +1 -0
- package/polls/poll/poll.types.d.ts +9 -0
- 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 -34
|
@@ -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,34 +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
|
-
|
|
14
|
-
input:checked + &,
|
|
15
|
-
.selected & {
|
|
16
|
-
border: px-to-rem(get-map($radio, 'border')) solid
|
|
17
|
-
get-map($theme, 'form_checkbox_bg');
|
|
18
|
-
background: none;
|
|
19
|
-
|
|
20
|
-
&::after {
|
|
21
|
-
content: '';
|
|
22
|
-
display: block;
|
|
23
|
-
width: px-to-rem(get-map($radio-inner, 'width'));
|
|
24
|
-
height: px-to-rem(get-map($radio-inner, 'width'));
|
|
25
|
-
background-color: get-map($theme, 'form_checkbox_bg');
|
|
26
|
-
border-radius: 50%;
|
|
27
|
-
position: absolute;
|
|
28
|
-
top: 50%;
|
|
29
|
-
left: 50%;
|
|
30
|
-
transform: translate(-50%, -50%);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|