@apolitical/component-library 6.6.13 → 6.6.14-ac.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/components/fields/checkbox/checkbox.d.ts +1 -0
- package/form/components/form/components/fields/input/input.d.ts +1 -0
- package/form/components/form/components/fields/multiple-options/multiple-options.d.ts +1 -1
- package/form/components/form/form.types.d.ts +2 -0
- package/form/types/publish-article-form/publish-article-form.d.ts +1 -1
- package/form/types/publish-article-form/publish-article-form.types.d.ts +17 -0
- package/helpers/intl.d.ts +15 -0
- package/index.js +37 -37
- package/index.mjs +4317 -4269
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -26,6 +26,7 @@ export declare const Checkbox: ({ className, disabled, element, functions: allFu
|
|
|
26
26
|
multiSelectOptions?: {
|
|
27
27
|
topbar?: boolean | undefined;
|
|
28
28
|
submitSection?: boolean | undefined;
|
|
29
|
+
limit?: number | undefined;
|
|
29
30
|
} | undefined;
|
|
30
31
|
multipleInputs?: {
|
|
31
32
|
showCount?: boolean | undefined;
|
|
@@ -39,6 +39,7 @@ export declare const Input: ({ className, element, id, inputRef: ref, functions,
|
|
|
39
39
|
multiSelectOptions?: {
|
|
40
40
|
topbar?: boolean | undefined;
|
|
41
41
|
submitSection?: boolean | undefined;
|
|
42
|
+
limit?: number | undefined;
|
|
42
43
|
} | undefined;
|
|
43
44
|
multipleInputs?: {
|
|
44
45
|
showCount?: boolean | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IField } from '../../../form.types';
|
|
2
|
-
export declare const MultipleOptions: ({ className, functions, intlPath, id: groupId, label, multiSelect, name, options, required, type, value, accessibilityOptions, styling: { displayOptionsAsPills }, ...props }: IField) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const MultipleOptions: ({ className, functions, intlPath, id: groupId, label, multiSelect, name, options, required, type, value, accessibilityOptions, styling: { displayOptionsAsPills }, multiSelectOptions, ...props }: IField) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default MultipleOptions;
|
|
@@ -146,6 +146,8 @@ export interface IField {
|
|
|
146
146
|
topbar?: boolean;
|
|
147
147
|
/** Whether to display the submit button in the dropdown - this allows the user to submit the dropdown only */
|
|
148
148
|
submitSection?: boolean;
|
|
149
|
+
/** The limit of the number of options that can be selected */
|
|
150
|
+
limit?: number;
|
|
149
151
|
};
|
|
150
152
|
/** Props for the inputs rendered in a `multiple` field */
|
|
151
153
|
multipleInputs?: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type IPublishArticleFormProps } from './publish-article-form.types';
|
|
2
2
|
declare const PublishArticleForm: ({ id, values, functions, meta, gtm, }: IPublishArticleFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default PublishArticleForm;
|
|
@@ -1,7 +1,22 @@
|
|
|
1
|
+
export declare enum ArticleTags {
|
|
2
|
+
CitiesAndLocalGovernment = "topic_CitiesAndLocalGovernment",
|
|
3
|
+
Climate = "topic_Climate",
|
|
4
|
+
DigitalAndData = "topic_DigitalAndData",
|
|
5
|
+
Education = "topic_Education",
|
|
6
|
+
EquityJusticeAndInclusion = "topic_EquityJusticeAndInclusion",
|
|
7
|
+
HealthAndSocialCare = "topic_HealthAndSocialCare",
|
|
8
|
+
Innovation = "topic_Innovation",
|
|
9
|
+
LeadershipAndSkills = "topic_LeadershipAndSkills",
|
|
10
|
+
LifeInGovernment = "topic_LifeInGovernment",
|
|
11
|
+
Policymaking = "topic_Policymaking",
|
|
12
|
+
TransportAndInfrastructure = "topic_TransportAndInfrastructure",
|
|
13
|
+
WorkingAndTheEconomy = "topic_WorkAndTheEconomy"
|
|
14
|
+
}
|
|
1
15
|
export interface IPublishArticleFormValues {
|
|
2
16
|
title: string;
|
|
3
17
|
subtitle: string;
|
|
4
18
|
body: string;
|
|
19
|
+
tags: ArticleTags[];
|
|
5
20
|
}
|
|
6
21
|
export interface IPublishArticleFormProps {
|
|
7
22
|
/** A unique ID for the form */
|
|
@@ -14,6 +29,8 @@ export interface IPublishArticleFormProps {
|
|
|
14
29
|
subtitle?: string;
|
|
15
30
|
/** The body of the form */
|
|
16
31
|
body?: string;
|
|
32
|
+
/** The tags of the form */
|
|
33
|
+
tags?: ArticleTags[];
|
|
17
34
|
};
|
|
18
35
|
/** The functions to handle the form */
|
|
19
36
|
functions?: {
|
package/helpers/intl.d.ts
CHANGED
|
@@ -293,6 +293,21 @@ export declare const checkIntlPathExists: (path: string, language?: {
|
|
|
293
293
|
publishArticleForm_subtitle_placeholder: string;
|
|
294
294
|
publishArticleForm_body_label: string;
|
|
295
295
|
publishArticleForm_body_placeholder: string;
|
|
296
|
+
publishArticleForm_tags_label: string;
|
|
297
|
+
publishArticleForm__tags_topic_CitiesAndLocalGovernment: string;
|
|
298
|
+
publishArticleForm__tags_topic_Climate: string;
|
|
299
|
+
publishArticleForm__tags_topic_DigitalAndData: string;
|
|
300
|
+
publishArticleForm__tags_topic_Education: string;
|
|
301
|
+
publishArticleForm__tags_topic_EquityJusticeAndInclusion: string;
|
|
302
|
+
publishArticleForm__tags_topic_HealthAndSocialCare: string;
|
|
303
|
+
publishArticleForm__tags_topic_Innovation: string;
|
|
304
|
+
publishArticleForm__tags_topic_LeadershipAndSkills: string;
|
|
305
|
+
publishArticleForm__tags_topic_LifeInGovernment: string;
|
|
306
|
+
publishArticleForm__tags_topic_Policymaking: string;
|
|
307
|
+
publishArticleForm__tags_topic_TransportAndInfrastructure: string;
|
|
308
|
+
publishArticleForm__tags_topic_WorkAndTheEconomy: string;
|
|
309
|
+
publishArticleForm_tags_error_over_three: string;
|
|
310
|
+
publishArticleForm_tags_error_required: string;
|
|
296
311
|
publishArticleForm_disclaimer: string;
|
|
297
312
|
publishArticleForm_cta_submit: string;
|
|
298
313
|
publishArticleForm_cta_submitting: string;
|