@fiscozen/input 3.3.1 → 3.4.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/CHANGELOG.md +12 -0
- package/dist/input.js +206 -207
- package/dist/input.umd.cjs +1 -1
- package/dist/src/FzCurrencyInput.vue.d.ts +2 -0
- package/dist/src/types.d.ts +6 -0
- package/dist/src/useInputStyle.d.ts +0 -1
- package/package.json +3 -3
- package/src/FzInput.vue +14 -16
- package/src/__tests__/FzInput.spec.ts +94 -15
- package/src/types.ts +6 -0
- package/src/useInputStyle.ts +3 -8
- package/tsconfig.tsbuildinfo +1 -1
- package/coverage/FzCurrencyInput.vue.html +0 -640
- package/coverage/FzInput.vue.html +0 -709
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/clover.xml +0 -494
- package/coverage/coverage-final.json +0 -4
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +0 -146
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -196
- package/coverage/useInputStyle.ts.html +0 -343
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @fiscozen/input
|
|
2
2
|
|
|
3
|
+
## 3.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c77895b: Add `id` prop and align DS baselines
|
|
8
|
+
- NEW: `FzInput` accepts an optional `id` prop. When provided, it sets the underlying `<input>`'s `id` and the `<label>`'s `for` attribute to the same value so the label-input binding stays intact. When omitted, the component continues to generate a stable internal id. Aligns the component with `FzTextarea`'s `effectiveId` pattern.
|
|
9
|
+
- Apply `text-core-black` baseline on the root wrapper so descendant text inherits the design's neutral colour.
|
|
10
|
+
- Pair `border-1` with `border-solid` on the input container so the 1px border renders in host environments without a global Tailwind preflight.
|
|
11
|
+
- Apply `mb-0` baseline on the label so it does not collide with host `<label>` reboots that add margin-bottom.
|
|
12
|
+
- Style disabled and readonly value text intrinsically: the `<input>` now carries `disabled:text-grey-300` and `read-only:text-grey-300` Tailwind variants (the placeholder is already `placeholder:text-grey-300` by default). This removes the dependency on a `.text-grey-300`-on-container class convention to color the value text in host environments where the input would otherwise keep the UA default color.
|
|
13
|
+
- Drop the inline `style="width: ..."` previously applied to the helper text and error message elements. Their width is now set by the natural document flow.
|
|
14
|
+
|
|
3
15
|
## 3.3.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|