@amos.com/amos-js 0.1.2 → 0.2.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/README.md CHANGED
@@ -198,6 +198,8 @@ Only the variables you provide are sent; omitted variables keep their defaults.
198
198
  | `--destructive` | Error/invalid state borders and icons | `oklch(0.577 0.245 27.325)` |
199
199
  | `--border` | General border color | `oklch(0.922 0 0)` |
200
200
  | `--input` | Input field border color | `oklch(0.922 0 0)` |
201
+ | `--input-background` | Input field background fill | `var(--background)` |
202
+ | `--input-height` | Height of text inputs and form controls | `2.25rem` |
201
203
  | `--ring` | Focus ring and outline color | `oklch(0.708 0 0)` |
202
204
  | `--radius` | Base border-radius (derived into sm/md/lg/xl) | `0.625rem` |
203
205
 
@@ -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" | "--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" | "--ring" | "--radius";
8
8
  /**
9
9
  * Appearance overrides for the embedded Amos iframe UI.
10
10
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amos.com/amos-js",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "main": "dist/index.js",
5
5
  "repository": {
6
6
  "type": "git",
package/src/types.ts CHANGED
@@ -79,6 +79,18 @@ export type ThemeVariable =
79
79
  * Default: oklch(0.922 0 0)
80
80
  */
81
81
  | "--input"
82
+ /*
83
+ * Input field background fill. Falls back to `--background` when unset.
84
+ *
85
+ * Default: var(--background)
86
+ */
87
+ | "--input-background"
88
+ /*
89
+ * Height of text inputs and form controls (e.g. `2.25rem`, `48px`).
90
+ *
91
+ * Default: 2.25rem
92
+ */
93
+ | "--input-height"
82
94
  /*
83
95
  * Focus ring and outline color for inputs and buttons.
84
96
  *