@apolitical/component-library 4.7.6 → 4.7.7-SW.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/index.js +35 -35
- package/index.mjs +3514 -3513
- package/layout/page-layout/page-layout.d.ts +1 -1
- package/navigation/tabs/tabs.d.ts +6 -0
- package/navigation/tabs/tabs.mocks.d.ts +11 -0
- package/package.json +1 -1
- package/sections/edit-section/edit-section.d.ts +3 -1
- package/style.css +1 -1
- package/styles/variables/colors/theme/_text.scss +1 -1
|
@@ -14,7 +14,7 @@ interface Props {
|
|
|
14
14
|
/** Optional styling for the page */
|
|
15
15
|
styling?: {
|
|
16
16
|
/** The background of the page. Defaults to `default` */
|
|
17
|
-
background?: 'default' | 'gradient' | 'bold'
|
|
17
|
+
background?: 'default' | 'gradient' | 'bold';
|
|
18
18
|
/** The styling variants of the `bold` background */
|
|
19
19
|
variant?: 'default' | 'inverted' | 'alt-1' | 'alt-2';
|
|
20
20
|
/** The size of the circle on the `bold` background */
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
interface TabBreakPoint {
|
|
3
|
+
target: 'min-width' | 'max-width';
|
|
4
|
+
value: number;
|
|
5
|
+
}
|
|
2
6
|
interface TabType {
|
|
3
7
|
/** An ID for the tab - this is used to create an anchor on the page */
|
|
4
8
|
id?: string;
|
|
@@ -12,6 +16,8 @@ interface TabType {
|
|
|
12
16
|
current?: boolean;
|
|
13
17
|
/** Whether the tab has carousels - this is needed to ensure the carousel width loads as expected */
|
|
14
18
|
hasCarousel?: boolean;
|
|
19
|
+
/** The breakpoint at which the tab should be shown. If not specified, always show */
|
|
20
|
+
breakpoint?: TabBreakPoint;
|
|
15
21
|
}
|
|
16
22
|
interface Props {
|
|
17
23
|
/** The tab details */
|
|
@@ -4,11 +4,22 @@ declare const _default: {
|
|
|
4
4
|
text: string;
|
|
5
5
|
content: import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
href?: undefined;
|
|
7
|
+
breakpoint?: undefined;
|
|
7
8
|
} | {
|
|
8
9
|
id: string;
|
|
9
10
|
text: string;
|
|
10
11
|
href: string;
|
|
11
12
|
content?: undefined;
|
|
13
|
+
breakpoint?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
id: string;
|
|
16
|
+
text: string;
|
|
17
|
+
content: string;
|
|
18
|
+
breakpoint: {
|
|
19
|
+
target: string;
|
|
20
|
+
value: number;
|
|
21
|
+
};
|
|
22
|
+
href?: undefined;
|
|
12
23
|
})[];
|
|
13
24
|
};
|
|
14
25
|
export default _default;
|
package/package.json
CHANGED
|
@@ -18,6 +18,8 @@ interface Props {
|
|
|
18
18
|
id?: string;
|
|
19
19
|
/** Section title */
|
|
20
20
|
title: string;
|
|
21
|
+
/** Show title or not */
|
|
22
|
+
showTitle?: boolean;
|
|
21
23
|
/** Modal Title */
|
|
22
24
|
modalTitle?: string;
|
|
23
25
|
/** Form fields to be rendered inside a modal form when user clicks cta or edit button. Alternatively, we can pass a whole form in `form`, if there's an existing component. */
|
|
@@ -31,5 +33,5 @@ interface Props {
|
|
|
31
33
|
/** Placeholder settings */
|
|
32
34
|
placeholder?: IPlaceholder;
|
|
33
35
|
}
|
|
34
|
-
declare const EditSection: ({ children, className, formProps, formComponent: originalFormComponent, href, title, modalTitle, placeholder, showDivider, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
declare const EditSection: ({ children, className, formProps, formComponent: originalFormComponent, href, title, showTitle, modalTitle, placeholder, showDivider, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
35
37
|
export default EditSection;
|