@apolitical/component-library 4.7.7-beta.0 → 4.7.8-SW.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.types.d.ts +6 -4
- package/helpers/intl.d.ts +2 -0
- package/index.js +47 -47
- package/index.mjs +5223 -5212
- 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
|
@@ -166,10 +166,12 @@ export interface FormCancelButtonPropsType extends ButtonPropsType {
|
|
|
166
166
|
export interface FormButtonPropsType extends ButtonPropsType {
|
|
167
167
|
/** A custom component to render when the form is submitting */
|
|
168
168
|
customOnSubmit?: React.ReactNode | false;
|
|
169
|
-
/** The text to show on the button */
|
|
170
|
-
text?: string
|
|
171
|
-
|
|
172
|
-
|
|
169
|
+
/** The text to show on the button. If a string is passed in, it's just the default text. If we want to control the submitting/submitted text, we can pass an object, with `default` as the default text. */
|
|
170
|
+
text?: string | {
|
|
171
|
+
default?: string;
|
|
172
|
+
submitting?: string;
|
|
173
|
+
submitted?: string;
|
|
174
|
+
};
|
|
173
175
|
/** The option to not have the submit button at all */
|
|
174
176
|
hideButton?: boolean;
|
|
175
177
|
}
|
package/helpers/intl.d.ts
CHANGED
|
@@ -251,6 +251,8 @@ export declare const checkIntlPathExists: (path: string, language?: {
|
|
|
251
251
|
profileForm_bio: string;
|
|
252
252
|
profileForm_bio_placeholder: string;
|
|
253
253
|
profileForm_cta: string;
|
|
254
|
+
profileForm_cta_submitting: string;
|
|
255
|
+
profileForm_cta_submitted: string;
|
|
254
256
|
profileImageChange_cta_uploading: string;
|
|
255
257
|
profileImageChange_cta_change: string;
|
|
256
258
|
profileImageChange_cta_upload: string;
|