@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.
@@ -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
- /** Whether the `text` should replace the `submitting` state of the button */
172
- overwriteSubmittingText?: boolean;
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;