@apolitical/component-library 2.0.5 → 2.1.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/form/components/form/form.d.ts +1 -1
- package/form/components/form/form.types.d.ts +16 -4
- package/form/types/contact-form/contact-form.d.ts +1 -1
- package/helpers/index.d.ts +1 -0
- package/helpers/inline-styling.d.ts +2 -0
- package/helpers/validation.d.ts +8 -0
- package/index.d.ts +1 -0
- package/index.js +17 -17
- package/index.mjs +2000 -1896
- package/layout/content-layout/contact-footer/contact-footer.d.ts +1 -1
- package/layout/page-layout/page-layout.d.ts +1 -1
- package/package.json +1 -1
- package/sections/edit-section/edit-section.d.ts +33 -0
- package/sections/edit-section/index.d.ts +1 -0
- package/sections/index.d.ts +1 -0
- package/style.css +1 -1
- package/styles/variables/colors/theme/_layout.scss +1 -0
- package/styles/variables/colors/theme/_text.scss +1 -0
- package/text/pill/pill.d.ts +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' | 'subtle';
|
|
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 */
|
package/package.json
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IFormProps } from '../../form/components/form/form.types';
|
|
3
|
+
type THref = string | undefined;
|
|
4
|
+
interface IPlaceholder {
|
|
5
|
+
/** Placeholder icon */
|
|
6
|
+
icon?: string | undefined;
|
|
7
|
+
/** Placeholder description */
|
|
8
|
+
description?: string;
|
|
9
|
+
/** Cta message showing on a button */
|
|
10
|
+
ctaMessage?: string;
|
|
11
|
+
}
|
|
12
|
+
interface Props {
|
|
13
|
+
/** Additional classes */
|
|
14
|
+
className?: string;
|
|
15
|
+
/** Content to be rendered */
|
|
16
|
+
children?: React.ReactNode | JSX.Element;
|
|
17
|
+
/** Optional ID */
|
|
18
|
+
id?: string;
|
|
19
|
+
/** Section title */
|
|
20
|
+
title: string;
|
|
21
|
+
/** Modal Title */
|
|
22
|
+
modalTitle?: string;
|
|
23
|
+
/** Form fields to be rendered inside a modal form when user clicks cta or edit button */
|
|
24
|
+
formProps?: IFormProps;
|
|
25
|
+
/** Link to a url where user can edit the data */
|
|
26
|
+
href?: THref;
|
|
27
|
+
/** Whether to show a divider at the bottom of the section */
|
|
28
|
+
showDivider?: boolean;
|
|
29
|
+
/** Placeholder settings */
|
|
30
|
+
placeholder?: IPlaceholder;
|
|
31
|
+
}
|
|
32
|
+
declare const EditSection: ({ children, className, formProps, href, title, modalTitle, placeholder, showDivider, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export default EditSection;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as EditSection } from './edit-section';
|
package/sections/index.d.ts
CHANGED