@apolitical/component-library 2.0.4-4125.1 → 2.0.4-beta.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 +4 -16
- package/form/types/contact-form/contact-form.d.ts +1 -1
- package/helpers/validation.d.ts +0 -8
- package/index.d.ts +0 -1
- package/index.js +18 -18
- package/index.mjs +2359 -2424
- 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/index.d.ts +0 -1
- package/style.css +1 -1
- package/styles/variables/colors/theme/_layout.scss +0 -1
- package/styles/variables/colors/theme/_text.scss +0 -1
- package/text/pill/pill.d.ts +1 -1
- package/sections/edit-section/edit-section.d.ts +0 -31
- package/sections/edit-section/index.d.ts +0 -1
|
@@ -39,7 +39,6 @@ $layout: (
|
|
|
39
39
|
logos_title: get-map($c, 'n700'),
|
|
40
40
|
logos_small: get-map($c, 'n600'),
|
|
41
41
|
page-layout_gradient_bg_1: get-map($c, 'n50'),
|
|
42
|
-
page-layout_subtle_bg: rgb(43 137 117 / 10%),
|
|
43
42
|
page-layout_gradient_bg_2: rgb(240 245 255 / 0%),
|
|
44
43
|
page-layout_bold: get-map($c, 'white'),
|
|
45
44
|
page-layout_bold_bg: get-map($c, 'b700'),
|
|
@@ -36,7 +36,6 @@ $text: (
|
|
|
36
36
|
pill_bg: get-map($c, 'n200'),
|
|
37
37
|
pill_subtle_bg: get-map($c, 'white'),
|
|
38
38
|
pill_highlighted_bg: get-map($c, 'y300'),
|
|
39
|
-
pill_light_bg: get-map($c, 'info50'),
|
|
40
39
|
pill_information_bg: get-map($c, 'g100'),
|
|
41
40
|
pill_registered_bg: get-map($c, 'g50'),
|
|
42
41
|
pill_subtle_border: get-map($c, 'n200'),
|
package/text/pill/pill.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ interface Props {
|
|
|
3
3
|
/** The size of the pill */
|
|
4
4
|
size?: 'small' | 'medium' | 'large';
|
|
5
5
|
/** The style of the pill */
|
|
6
|
-
variant?: 'default' | 'subtle' | 'highlighted' | 'information' | 'registered'
|
|
6
|
+
variant?: 'default' | 'subtle' | 'highlighted' | 'information' | 'registered';
|
|
7
7
|
/** Additional classes to add to the pill */
|
|
8
8
|
className?: string;
|
|
9
9
|
/** The pill text */
|
|
@@ -1,31 +0,0 @@
|
|
|
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?: 'person' | 'tick-with-circle' | 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
|
-
/** Form fields to be rendered inside a modal form when user clicks cta or edit button */
|
|
22
|
-
formProps?: IFormProps;
|
|
23
|
-
/** Link to a url where user can edit the data */
|
|
24
|
-
href?: THref;
|
|
25
|
-
/** Whether to show a divider at the bottom of the section */
|
|
26
|
-
showDivider?: boolean;
|
|
27
|
-
/** Placeholder settings */
|
|
28
|
-
placeholder?: IPlaceholder;
|
|
29
|
-
}
|
|
30
|
-
declare const EditSection: ({ children, className, showDivider, title, href, placeholder, formProps }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
export default EditSection;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as EditSection } from './edit-section';
|