@apolitical/component-library 2.2.3 → 2.3.0-beta.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/accessibility/visually-hidden/visually-hidden.d.ts +3 -1
- package/banners/custom-content-banner/custom-content-banner.d.ts +13 -0
- package/banners/custom-content-banner/index.d.ts +1 -0
- package/banners/index.d.ts +1 -0
- package/cards/card/components/links/links.d.ts +1 -1
- package/cards/cards.types.d.ts +3 -1
- package/cards/mocks/mocks.helpers.d.ts +16 -0
- package/constants/courses.d.ts +5 -0
- package/constants/index.d.ts +1 -0
- package/courses/course-progression/course-progression.d.ts +7 -0
- package/courses/course-progression/course-progression.types.d.ts +28 -0
- package/courses/course-progression/index.d.ts +1 -0
- package/courses/course-structure/course-structure.d.ts +3 -0
- package/courses/course-structure/course-structure.mock.d.ts +122 -0
- package/courses/course-structure/course-structure.types.d.ts +55 -0
- package/courses/course-structure/index.d.ts +1 -0
- package/courses/index.d.ts +5 -0
- package/courses/lesson-name/index.d.ts +1 -0
- package/courses/lesson-name/lesson-name.d.ts +19 -0
- package/courses/lesson-type/index.d.ts +1 -0
- package/courses/lesson-type/lesson-type.d.ts +10 -0
- package/courses/mark-complete-button/index.d.ts +1 -0
- package/courses/mark-complete-button/mark-complete-button.d.ts +7 -0
- package/general/index.d.ts +2 -0
- package/general/link/link.d.ts +2 -0
- package/general/table-of-contents/index.d.ts +1 -0
- package/general/table-of-contents/table-of-contents.d.ts +16 -0
- package/general/time-to-complete/index.d.ts +1 -0
- package/general/time-to-complete/time-to-complete.d.ts +12 -0
- package/helpers/cases.d.ts +2 -0
- package/helpers/intl.d.ts +376 -1
- package/index.d.ts +3 -1
- package/index.js +18 -18
- package/index.mjs +6053 -5532
- package/loaders/progress-bar/progress-bar.d.ts +11 -1
- package/modals/invite-modal/invite-modal.d.ts +2 -2
- package/navigation/load-more/load-more.d.ts +2 -1
- package/package.json +1 -1
- package/sections/full-width-section/full-width-section.d.ts +2 -0
- package/sections/logo-section/logo-section.d.ts +11 -1
- package/style.css +1 -1
- package/styles/base/_layout.scss +2 -0
- package/styles/base/_lists.scss +29 -1
- package/styles/base/_titles.scss +14 -0
- package/styles/base/buttons/_button-wrapper.scss +1 -0
- package/styles/base/buttons/_icons.scss +9 -0
- package/styles/variables/colors/theme/_banners.scss +8 -0
- package/styles/variables/colors/theme/_base.scss +2 -0
- package/styles/variables/colors/theme/_courses.scss +22 -0
- package/styles/variables/colors/theme/_general.scss +2 -0
- package/styles/variables/colors/theme/_index.scss +5 -4
- package/styles/variables/colors/theme/_layout.scss +1 -0
- package/styles/variables/colors/theme/_loaders.scss +4 -0
- package/styles/variables/colors/theme/_text.scss +12 -0
- package/text/collapsible-section/accordian.d.ts +15 -0
- package/text/collapsible-section/collapsible-section.d.ts +4 -4
- package/text/content-type-label/content-type-label.d.ts +14 -0
- package/{cards/card/card.helpers.d.ts → text/content-type-label/content-type-label.helpers.d.ts} +1 -1
- package/text/content-type-label/content-type-label.types.d.ts +1 -0
- package/text/content-type-label/index.d.ts +2 -0
- package/text/highlighted-text-box/highlighted-text-box.d.ts +9 -2
- package/text/icon-bulleted-list/icon-bulleted-list.d.ts +31 -0
- package/text/icon-bulleted-list/index.d.ts +1 -0
- package/text/index.d.ts +2 -0
- package/text/markdown-text/markdown-text.d.ts +5 -1
- package/text/pill/pill.d.ts +1 -1
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface Props {
|
|
3
|
+
styling?: {
|
|
4
|
+
/** Whether to show the text visually. It will always be rendered for screen readers */
|
|
5
|
+
showText?: boolean;
|
|
6
|
+
/** The layout of the progress bar */
|
|
7
|
+
layout?: 'bar' | 'circle';
|
|
8
|
+
/** The size of the progress bar */
|
|
9
|
+
size?: 'default' | 'small';
|
|
10
|
+
/** The color of the progress bar */
|
|
11
|
+
color?: 'default' | 'dark';
|
|
12
|
+
};
|
|
3
13
|
/** The amount of progress, shown as a percent */
|
|
4
14
|
progress?: number;
|
|
5
15
|
/** Text to display for screen readers */
|
|
@@ -9,5 +19,5 @@ interface Props {
|
|
|
9
19
|
/** The language for the text */
|
|
10
20
|
locale?: string;
|
|
11
21
|
}
|
|
12
|
-
declare const _default: React.MemoExoticComponent<({ progress, text, className }: Props) => import("react/jsx-runtime").JSX.Element>;
|
|
22
|
+
declare const _default: React.MemoExoticComponent<({ styling, progress, text, className, }: Props) => import("react/jsx-runtime").JSX.Element>;
|
|
13
23
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface IProps {
|
|
3
3
|
/** The ID of the element */
|
|
4
4
|
id?: string;
|
|
@@ -19,7 +19,7 @@ interface IProps {
|
|
|
19
19
|
/** Form input label */
|
|
20
20
|
formLabel?: string;
|
|
21
21
|
/** CTA button text displayed on the form */
|
|
22
|
-
ctaMessage
|
|
22
|
+
ctaMessage?: string;
|
|
23
23
|
/** Function to send the invites */
|
|
24
24
|
sendInvites(emails: string[]): void;
|
|
25
25
|
/** Whether to show the check icon */
|
|
@@ -5,6 +5,7 @@ export interface PaginationType {
|
|
|
5
5
|
hasNextPage: boolean;
|
|
6
6
|
/** The function that will be invoked when the button is clicked */
|
|
7
7
|
loadNextPage: (e: React.MouseEvent<HTMLElement>) => void;
|
|
8
|
+
isLoading?: boolean;
|
|
8
9
|
/** Text displayed in the component */
|
|
9
10
|
messages?: {
|
|
10
11
|
button: string;
|
|
@@ -20,5 +21,5 @@ interface Props extends PaginationType {
|
|
|
20
21
|
}
|
|
21
22
|
interface Props extends ButtonPropsType {
|
|
22
23
|
}
|
|
23
|
-
declare const LoadMore: ({ hasNextPage, loadNextPage, variant, size, styling, icon, messages, className, gtmContext, }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
24
|
+
declare const LoadMore: ({ hasNextPage, loadNextPage, isLoading, variant, size, styling, icon, messages, className, gtmContext, }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
24
25
|
export default LoadMore;
|
package/package.json
CHANGED
|
@@ -10,6 +10,8 @@ interface Props {
|
|
|
10
10
|
children: React.ReactNode | JSX.Element;
|
|
11
11
|
/** Optional ID */
|
|
12
12
|
id?: string;
|
|
13
|
+
/** Optional style */
|
|
14
|
+
style?: React.CSSProperties;
|
|
13
15
|
}
|
|
14
16
|
declare const FullWidthSection: ({ children, className, styling, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
15
17
|
export default FullWidthSection;
|
|
@@ -14,11 +14,21 @@ interface Props {
|
|
|
14
14
|
title?: false | string | {
|
|
15
15
|
element: string;
|
|
16
16
|
text: string;
|
|
17
|
+
className?: string;
|
|
17
18
|
};
|
|
18
19
|
/** The logos to show */
|
|
19
20
|
logos?: Array<LogosType>;
|
|
21
|
+
/** Optional styling */
|
|
22
|
+
styling?: {
|
|
23
|
+
/** Whether the logos should be wrapped in boxes */
|
|
24
|
+
wrapLogos?: boolean;
|
|
25
|
+
/** The alignment of the section */
|
|
26
|
+
align?: 'center' | 'left';
|
|
27
|
+
/** Whether the section is inline or not */
|
|
28
|
+
display?: 'block' | 'inline-block';
|
|
29
|
+
};
|
|
20
30
|
/** Additional classes */
|
|
21
31
|
className?: string;
|
|
22
32
|
}
|
|
23
|
-
declare const LogoSection: ({ title: titleProps, logos, className, }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
33
|
+
declare const LogoSection: ({ title: titleProps, logos, styling, className, }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
24
34
|
export default LogoSection;
|