prime-ui-kit 0.7.10 → 0.7.13
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/dist/components/index.css +9 -11
- package/dist/components/index.css.map +2 -2
- package/dist/components/index.js +13 -11
- package/dist/components/index.js.map +2 -2
- package/dist/components/tag-select/TagSelect.d.ts.map +1 -1
- package/dist/index.css +9 -11
- package/dist/index.css.map +2 -2
- package/dist/index.js +13 -11
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/src/components/tag-select/COMPONENT.md +1 -0
- package/src/components/textarea/COMPONENT.md +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prime-ui-kit",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.13",
|
|
4
4
|
"description": "React 19 UI kit: CSS Modules, semantic design tokens (--prime-sys-*), composable components — forms, modals, selects, tables, navigation, overlays. TypeScript, ESM, a11y-oriented.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -99,6 +99,7 @@ Live demo: **`playground/sections/TagSelectSection.tsx`** — snippet **`playgro
|
|
|
99
99
|
- **`size`** follows the same **`Select`** control tier as **`Select.Root`**; nested **`Badge`** chips inherit size via **`ControlSizeProvider`**.
|
|
100
100
|
- **`onCreated`** is only invoked when a **new** value is added through creatable flow (Create row or Enter), not when selecting an existing **`options`** row.
|
|
101
101
|
- **`hasPanelContent`** gates the dropdown: if there are no list rows and no create row, the panel closes.
|
|
102
|
+
- **List rows vs chips:** options already in **`value`** are omitted from the listbox (add-to-selection rows only). If nothing is left to add and there is no creatable row, the panel does **not** open on focus (e.g. all catalog tags already on the record) — open again after typing (filter / create) or removing a chip so at least one option can be added again. **`optionManagement`** ⋯ is available on rows **when** those options appear in the list (not while the panel is forced empty).
|
|
102
103
|
- Removing the last chip with empty input: **Backspace** removes the last selected value.
|
|
103
104
|
- Name the control with **`aria-label`** or **`aria-labelledby`** when there is no visible [Label](../label/COMPONENT.md).
|
|
104
105
|
|
|
@@ -71,7 +71,7 @@ Live demos use **`playground/snippets/textarea/*.tsx`** (see **`playground/secti
|
|
|
71
71
|
|
|
72
72
|
- **Controlled vs uncontrolled:** pass **`value`** with **`onChange`** / **`onInput`** as needed for controlled text; omit **`value`** and optionally set **`defaultValue`** for uncontrolled usage.
|
|
73
73
|
- **`autoResize`** defaults to **`true`**: input events update a wrapper `data-value` mirror; set **`autoResize={false}`** to rely on fixed height / native resize behavior.
|
|
74
|
-
- **Min height:** tokens
|
|
74
|
+
- **Min height:** design tokens define the **minimum inner** height (`token − 2×padding` on the `::after` mirror); the bordered shell height follows padding + that inner block. The mirror uses the **same** `font-size` / `line-height` as the native `textarea` so row height matches wrapped text (no growing empty band below the last line). The shell does **not** duplicate `min-height` with `flex-grow` on inner stacks — that used to stretch the field below the mirrored content.
|
|
75
75
|
- **`variant="error"`** or mounting **`Textarea.Error`** sets invalid styling; **`aria-invalid`** defaults from that unless overridden.
|
|
76
76
|
- **`aria-describedby`** you pass is **merged** with auto-added hint and error ids (your ids first, then hint and error when those parts mount).
|
|
77
77
|
- **`disabled`** / **`readOnly`** on `Root` flow to the native textarea; **`Textarea.Hint`** switches to a disabled visual variant when either is true.
|