@flopay/react 1.4.21 → 1.4.22

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/README.md CHANGED
@@ -284,7 +284,7 @@ legacy props will be removed in `2.0`.
284
284
 
285
285
  #### Theming
286
286
 
287
- `FloPayCheckout`, `FloPayAutomaticPaymentButton`, and `SplitCardForm` accept a single `theme` prop that maps to a coherent `{appearance, buttonsLayout}` bundle in `@flopay/shared`'s `THEMES` map. One value styles non-card Stripe Elements, the React-rendered wrapper and AVS inputs, the hosted vault widget, and — for `FloPayAutomaticPaymentButton` — the fallback modal that opens when a saved-payment charge can't complete silently.
287
+ `FloPayCheckout`, `FloPayAutomaticPaymentButton`, `SplitCardForm`, and `FloPayCardSetup` accept a single `theme` prop that maps to a coherent `{appearance, buttonsLayout}` bundle in `@flopay/shared`'s `THEMES` map. (`FloPayCardSetup` styles only the hosted vault widget — there are no surrounding Stripe Elements on that surface — and unlike the checkout components it defaults to `'modern-light'` rather than `'classic'`.) One value styles non-card Stripe Elements, the React-rendered wrapper and AVS inputs, the hosted vault widget, and — for `FloPayAutomaticPaymentButton` — the fallback modal that opens when a saved-payment charge can't complete silently.
288
288
 
289
289
  | `theme` | Aesthetic |
290
290
  |---|---|
@@ -831,7 +831,7 @@ function PaymentStatus() {
831
831
  | `nonce` | `string` | Required session-bound read/capture token. |
832
832
  | `billingApiUrl` | `string?` | Billing API base URL; defaults through normal FloPay environment resolution. |
833
833
  | `telemetry` | `boolean?` | Privacy-safe operational telemetry; set `false` to opt out. |
834
- | `theme` | `VaultCardThemeColors?` | Hosted widget colors. |
834
+ | `theme` | `ThemeId \| VaultCardThemeColors?` | High-level theme id (same values as `FloPayCheckout`, resolved through the same bundle) or raw hosted-widget colors. Defaults to `'modern-light'`; `'classic'` keeps the historic FloPay look. |
835
835
  | `containerStyle` | `React.CSSProperties?` | Inline styles for the hosted-widget container. |
836
836
  | `loading` | `React.ReactNode?` | Content shown while the session and hosted widget load. |
837
837
  | `onReady` | `() => void` | Hosted widget is mounted and accepting input. |