@1337exp/taoui 5.9.0 → 5.10.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1337exp/taoui",
3
- "version": "5.9.0",
3
+ "version": "5.10.0",
4
4
  "description": "Design-token driven Vue 3 / Nuxt component library: palettes with tested contrast, accessible menus and toolbars, navigation that adapts without JS, small charts, built-in locales.",
5
5
  "keywords": [
6
6
  "vue",
@@ -82,7 +82,8 @@ choose a text colour, WCAG 2 to promise a number.
82
82
  `TaoRangeSlider`, `TaoPinCode` (`status="success | error"` after `complete`), `TaoColorInput` / `TaoColorPicker`,
83
83
  `TaoFileDrop`. A form is a plain `<form>`; there is no TaoForm.
84
84
  - Attributes given to a field (`aria-label`, `name`, `autocomplete`, `inputmode`, `data-*`, listeners) reach its control
85
- (the input, the trigger button, the checkbox); `class` and `style` stay on its wrapper. On `TaoColorInput` the
85
+ (the input, the trigger button, the checkbox); `class` and `style` stay on its wrapper. A field that reads as text
86
+ (an item of a list being edited): `<TaoInput variant="plain">` (`TaoInputNumber`, `TaoCombobox` and `TaoTextarea` take the same `variant`). On `TaoColorInput` the
86
87
  `aria-label` is followed by the colour («Background: #ff8800»); `TaoColorPicker` is a group it names.
87
88
 
88
89
  ## Overlays and feedback
@@ -126,6 +126,7 @@ Showcase section: `#input`
126
126
  | `size` | `'small' \| 'medium' \| 'large'` | inherited | Size, the same scale as TaoButton. Without it — the size of the ancestors (tao-size-* or size on FormField / InputGroup), otherwise medium |
127
127
  | `disabled` | `boolean` | false | Disabled |
128
128
  | `error` | `boolean` | false | A red border. The error text is error on TaoFormField |
129
+ | `variant` | `'outline' \| 'filled' \| 'plain'` | 'outline' | A frame / a fill only / nothing: plain reads as text (an item of a list being edited): no inset, the caret shows the focus, an error is a red line under the text. The height does not change |
129
130
  | `id` | `string` | auto | The input id; otherwise taken from FormField or useId |
130
131
 
131
132
  **Slots, events, notes.** #prefix and #suffix — inside the frame, left/right (an icon, text).
@@ -155,6 +156,7 @@ Showcase section: `#input-number`
155
156
  | `size` | `'small' \| 'medium' \| 'large'` | inherited | Size, the same scale as TaoButton. Without it — the size of the ancestors (tao-size-* or size on FormField / InputGroup), otherwise medium |
156
157
  | `disabled` | `boolean` | false | Disabled |
157
158
  | `error` | `boolean` | false | A red border. The error text is error on TaoFormField |
159
+ | `variant` | `'outline' \| 'filled' \| 'plain'` | 'outline' | As on TaoInput: a frame / a fill only / nothing (the field reads as text, an error is a red line under the text) |
158
160
  | `placeholder` | `string` | '' | The hint when null |
159
161
 
160
162
  ## TaoQuantity
@@ -332,6 +334,7 @@ Showcase section: `#combobox`
332
334
  | `clearable` | `boolean` | true | Clear row in the list. Turn off when null is not valid. |
333
335
  | `clearText` | `string` | 'Clear' | Label of the clear row; slot #clear replaces it. |
334
336
  | `disabled / error` | `boolean` | false | Disabled / a red border |
337
+ | `variant` | `'outline' \| 'filled' \| 'plain'` | 'outline' | As on TaoInput: a frame / a fill only / nothing (the field reads as text, an error is a red line under the text) |
335
338
 
336
339
  **Slots, events, notes.** create — an event when a new value is typed: the parent extends options itself.
337
340