@amos.com/amos-js 0.9.6 → 0.9.8

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
@@ -222,8 +222,10 @@ Radio groups (e.g. account type) always use an above-style group label regardles
222
222
  | `--input` | Input field border color | `oklch(0.922 0 0)` |
223
223
  | `--input-background` | Input field background fill | `var(--background)` |
224
224
  | `--input-height` | Height of text inputs and form controls | `2.25rem` |
225
- | `--input-font-size` | Font size of text inputs and dropdown fields | `0.875rem` |
226
- | `--ring` | Focus ring and outline color | `oklch(0.708 0 0)` |
225
+ | `--input-font-size` | Font size of text inputs and dropdown fields | `0.875rem` |
226
+ | `--floating-label-font-size` | Font size of floating labels when focused or filled | `0.75rem` |
227
+ | `--floating-label-font-weight` | Font weight of floating labels | `500` |
228
+ | `--ring` | Focus ring and outline color | `oklch(0.708 0 0)` |
227
229
  | `--radius` | Base border-radius (derived into sm/md/lg/xl) | `0.625rem` |
228
230
 
229
231
  ## API reference
package/dist/types.d.ts CHANGED
@@ -48,7 +48,7 @@ export type ConfirmationResult = {
48
48
  * Amos iframe UI. Only the variables you provide are sent; omitted
49
49
  * variables keep their defaults.
50
50
  */
51
- export type ThemeVariable = "--background" | "--foreground" | "--primary" | "--primary-foreground" | "--secondary" | "--secondary-foreground" | "--muted-foreground" | "--accent" | "--accent-foreground" | "--destructive" | "--border" | "--input" | "--input-background" | "--input-height" | "--input-font-size" | "--ring" | "--radius";
51
+ export type ThemeVariable = "--background" | "--foreground" | "--primary" | "--primary-foreground" | "--secondary" | "--secondary-foreground" | "--muted-foreground" | "--accent" | "--accent-foreground" | "--destructive" | "--border" | "--input" | "--input-background" | "--input-height" | "--input-font-size" | "--floating-label-font-size" | "--floating-label-font-weight" | "--ring" | "--radius";
52
52
  /**
53
53
  * Placement of field labels in payment method forms.
54
54
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amos.com/amos-js",
3
- "version": "0.9.6",
3
+ "version": "0.9.8",
4
4
  "main": "dist/index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,10 +36,10 @@
36
36
  "license": "MIT",
37
37
  "description": "Amos JavaScript SDK for embedding payment methods via iframes.",
38
38
  "peerDependencies": {
39
- "@amos.com/node": ">=0.1.37"
39
+ "@amos.com/node": ">=0.1.39"
40
40
  },
41
41
  "devDependencies": {
42
- "@amos.com/node": "0.1.37",
42
+ "@amos.com/node": "0.1.39",
43
43
  "@biomejs/biome": "2.5.7",
44
44
  "@changesets/cli": "2.31.1",
45
45
  "@types/node": "26.1.2",
package/src/types.ts CHANGED
@@ -147,6 +147,19 @@ export type ThemeVariable =
147
147
  * Default: 0.875rem
148
148
  */
149
149
  | "--input-font-size"
150
+ /*
151
+ * Font size of floating labels when the field is focused or filled
152
+ * (e.g. `0.75rem`, `12px`). Does not affect the typed input value.
153
+ *
154
+ * Default: 0.75rem
155
+ */
156
+ | "--floating-label-font-size"
157
+ /*
158
+ * Font weight of floating labels (e.g. `400`, `500`, `normal`, `bold`).
159
+ *
160
+ * Default: 500
161
+ */
162
+ | "--floating-label-font-weight"
150
163
  /*
151
164
  * Focus ring and outline color for inputs and buttons.
152
165
  *