@amos.com/amos-js 0.3.18 → 0.3.20
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 +1 -0
- package/dist/types.d.ts +1 -1
- package/package.json +2 -2
- package/src/types.ts +6 -0
package/README.md
CHANGED
|
@@ -213,6 +213,7 @@ Radio groups (e.g. account type) always use an above-style group label regardles
|
|
|
213
213
|
| `--input` | Input field border color | `oklch(0.922 0 0)` |
|
|
214
214
|
| `--input-background` | Input field background fill | `var(--background)` |
|
|
215
215
|
| `--input-height` | Height of text inputs and form controls | `2.25rem` |
|
|
216
|
+
| `--input-font-size` | Font size of text inputs and dropdown fields | `0.875rem` |
|
|
216
217
|
| `--ring` | Focus ring and outline color | `oklch(0.708 0 0)` |
|
|
217
218
|
| `--radius` | Base border-radius (derived into sm/md/lg/xl) | `0.625rem` |
|
|
218
219
|
|
package/dist/types.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { components } from '@amos.com/node';
|
|
|
4
4
|
* Amos iframe UI. Only the variables you provide are sent; omitted
|
|
5
5
|
* variables keep their defaults.
|
|
6
6
|
*/
|
|
7
|
-
export type ThemeVariable = "--background" | "--foreground" | "--primary" | "--primary-foreground" | "--secondary" | "--secondary-foreground" | "--muted-foreground" | "--accent" | "--accent-foreground" | "--destructive" | "--border" | "--input" | "--input-background" | "--input-height" | "--ring" | "--radius";
|
|
7
|
+
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";
|
|
8
8
|
/**
|
|
9
9
|
* Placement of field labels in payment method forms.
|
|
10
10
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amos.com/amos-js",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.20",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"vite-plugin-dts": "5.0.2"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@amos.com/node": "0.1.
|
|
45
|
+
"@amos.com/node": "0.1.23",
|
|
46
46
|
"@types/googlepay": "0.7.11"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
package/src/types.ts
CHANGED
|
@@ -91,6 +91,12 @@ export type ThemeVariable =
|
|
|
91
91
|
* Default: 2.25rem
|
|
92
92
|
*/
|
|
93
93
|
| "--input-height"
|
|
94
|
+
/*
|
|
95
|
+
* Font size of text inputs and dropdown fields (e.g. `0.875rem`, `16px`).
|
|
96
|
+
*
|
|
97
|
+
* Default: 0.875rem
|
|
98
|
+
*/
|
|
99
|
+
| "--input-font-size"
|
|
94
100
|
/*
|
|
95
101
|
* Focus ring and outline color for inputs and buttons.
|
|
96
102
|
*
|