@xleddyl/443-components-vue 0.16.89 → 0.16.91

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.
Files changed (64) hide show
  1. package/CATALOG.md +20 -19
  2. package/README.md +35 -5
  3. package/dist/components/core/Input.vue +1 -1
  4. package/dist/components/core/Input.vue.d.ts +1 -0
  5. package/dist/components/core/Textarea.vue +1 -1
  6. package/dist/components/core/Textarea.vue.d.ts +1 -0
  7. package/dist/components/data/Tree.vue +10 -18
  8. package/dist/components/data/Tree.vue.d.ts +2 -0
  9. package/dist/components/forms/Checkbox.vue +1 -1
  10. package/dist/components/forms/CheckboxGroup.vue +1 -1
  11. package/dist/components/forms/ColorInput.vue +1 -1
  12. package/dist/components/forms/ColorInput.vue.d.ts +1 -0
  13. package/dist/components/forms/Combobox.vue +1 -1
  14. package/dist/components/forms/DateInput.vue +1 -1
  15. package/dist/components/forms/DateInput.vue.d.ts +1 -0
  16. package/dist/components/forms/DatePicker.vue +1 -1
  17. package/dist/components/forms/DatePicker.vue.d.ts +1 -0
  18. package/dist/components/forms/FileInput.vue +1 -1
  19. package/dist/components/forms/FileInput.vue.d.ts +1 -0
  20. package/dist/components/forms/NumberInput.vue +1 -1
  21. package/dist/components/forms/NumberInput.vue.d.ts +1 -0
  22. package/dist/components/forms/PaletteSelect.vue +1 -1
  23. package/dist/components/forms/PaletteSelect.vue.d.ts +1 -0
  24. package/dist/components/forms/PasswordInput.vue +1 -1
  25. package/dist/components/forms/PasswordInput.vue.d.ts +1 -0
  26. package/dist/components/forms/PinInput.vue +1 -1
  27. package/dist/components/forms/PinInput.vue.d.ts +1 -0
  28. package/dist/components/forms/RadioGroup.vue +1 -1
  29. package/dist/components/forms/SegmentedControl.vue +1 -1
  30. package/dist/components/forms/Select.vue +1 -1
  31. package/dist/components/forms/Slider.vue +1 -1
  32. package/dist/components/forms/Slider.vue.d.ts +1 -0
  33. package/dist/components/forms/Switch.vue +1 -1
  34. package/dist/components/forms/Switch.vue.d.ts +1 -0
  35. package/dist/components/forms/TimeInput.vue +1 -1
  36. package/dist/components/forms/TimeInput.vue.d.ts +1 -0
  37. package/dist/components/forms/TreeSelect.vue +1 -1
  38. package/dist/components/forms/TreeSelect.vue.d.ts +1 -0
  39. package/dist/components/overlays/CommandList.vue +423 -0
  40. package/dist/components/overlays/CommandList.vue.d.ts +255 -0
  41. package/dist/components/overlays/CommandPalette.vue +48 -315
  42. package/dist/components/overlays/CommandPalette.vue.d.ts +2 -1
  43. package/dist/components/overlays/Popover.vue +24 -5
  44. package/dist/components/overlays/Popover.vue.d.ts +4 -1
  45. package/dist/components/overlays/index.d.ts +1 -0
  46. package/dist/components/overlays/index.mjs +1 -0
  47. package/dist/components/overlays/types.d.ts +1 -0
  48. package/dist/composables/useField.mjs +1 -1
  49. package/dist/editor/RichTextEditor.vue +1 -1
  50. package/dist/editor/RichTextEditor.vue.d.ts +1 -0
  51. package/dist/editor/TemplateEditor.vue +1 -1
  52. package/dist/editor/TemplateEditor.vue.d.ts +1 -0
  53. package/dist/internal/core/DivElement.d.ts +2 -0
  54. package/dist/internal/core/DivElement.mjs +8 -0
  55. package/dist/internal/floating/layer.d.ts +1 -0
  56. package/dist/internal/floating/layer.mjs +56 -7
  57. package/dist/internal/floating/position.d.ts +2 -0
  58. package/dist/internal/floating/position.mjs +25 -0
  59. package/dist/internal/overlays/HintTooltip.vue +10 -2
  60. package/dist/internal/overlays/HintTooltip.vue.d.ts +2 -0
  61. package/dist/styles/data/tree.css +29 -5
  62. package/dist/styles/overlays/command.css +22 -0
  63. package/dist/styles/overlays/floating.css +1 -0
  64. package/package.json +1 -1
package/CATALOG.md CHANGED
@@ -82,7 +82,7 @@ Playground paths in this file are relative to `playground/nuxt/app/pages/compone
82
82
  | Small floating panel with content or a form | `Popover` |
83
83
  | Preview on hover (user card) | `HoverCard` |
84
84
  | Short label on hover or focus | `Tooltip` |
85
- | Global search, command menu (Cmd+K) | `CommandPalette` (the `DashboardLayout` has it with `search`) |
85
+ | Global search, command menu (Cmd+K) | `CommandPalette` (the `DashboardLayout` has it with `search`), `CommandList` for the same list inline or in a `Popover` |
86
86
  | Small table, simple sort | `Table` (+ `useTableSort` for client sort) |
87
87
  | Big table, many rows, editing, Excel-like | `DataGrid` (+ `spreadsheet` prop for Excel-like editing) |
88
88
  | Filters for a grid (selects, dates in a modal from the toolbar) | `DataGrid` `#filters` slot with `activeFilters` (or `filterCount`), `@filter-remove` and `@filters-reset` |
@@ -144,21 +144,21 @@ Playground paths in this file are relative to `playground/nuxt/app/pages/compone
144
144
 
145
145
  ## Core
146
146
 
147
- | Component | Purpose and when to use it | Main props, models, slots, events | Playground |
148
- | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
149
- | `Root` | App root. Scopes all styles under `.k-root` and sets theme, preset and tokens. Mount once. Add `is-canvas` for the page background. | Props: `theme` (system, light, dark), `preset`, `accent`, `accentContrast`, `fontSans`, `fontMono`, `fontDisplay`, `radiusScale`, `as`. Slot: default. | `core/root.vue` |
150
- | `Button` | Every button and button-like link. Use `CopyButton` to copy text, `DropdownMenu` for a menu. | Props: `label`, `variant` (solid, soft, subtle, outline, ghost, link), `tone`, `size`, `icon`, `trailingIcon`, `to`, `href`, `target`, `external`, `type`, `disabled`, `loading`, `block`, `square` (icon only), `tooltip` (tooltip text on hover and focus; `false` turns off the automatic one), `disabledReason` (with `disabled`: the button stays focusable and hoverable with `aria-disabled`, ignores clicks and shows the reason in a tooltip and as its description). An icon-only button shows its `aria-label` (or `title`) as a tooltip; inside a `Tooltip` it shows none. Slot: default. A `to` or `href` makes it a link. | `core/button.vue` |
151
- | `Icon` | Show an icon by name. | Props: `name` (required), `label` (makes it non decorative), `size`. | `core/icon.vue` |
152
- | `Spinner` | Loading indicator. Use `block` for a centered loading state that fills its container. | Props: `size` (xs to lg), `label`, `decorative`, `block`. | `core/spinner.vue` |
153
- | `Input` | Single line text field. Use `NumberInput` for numbers, `PasswordInput` for passwords. | Model: `v-model` (string, number or null; modifiers `.number`, `.trim`). Props: `type`, `size`, `icon`, `clearable`, `counter` (needs `maxlength`), `transform`, `numeric` (decimal keyboard, number model, tabular digits, left aligned), `invalid`, `disabled`, `readonly`, `required`, `noAutofill`. Slots: `leading`, `trailing`. Event: `clear`. | `core/input.vue` |
154
- | `Textarea` | Multi line text field. | Model: `v-model`. Props: `rows`, `maxRows`, `autoresize`, `counter`, `size`, `invalid`, `disabled`, `readonly`, `required`. Slot: `trailing`. | `core/textarea.vue` |
155
- | `FormField` | Label, description, hint, error and required marker around one control. It links ids and ARIA for the control inside. | Props: `label`, `name` (reads error and warning from the surrounding `Form`), `description`, `hint`, `error`, `warning`, `required`, `optional`, `disabled`, `icon`, `help` (an info icon after the label with the text as tooltip, also linked to the control as a description). Slots: default, `label`, `label-actions`, `description`, `hint`. | `core/form-field.vue` |
156
- | `FieldMessage` | One error, warning or hint line outside a `FormField`. | Props: `message`, `tone` (danger, warning, neutral), `icon`. Slot: default. | `core/field-message.vue` |
157
- | `FieldBoundary` | Cut the field context for controls inside a `FormField` that are not the main control (a search box above a `Tree`). | Prop: `auxiliary` (keeps own id, follows only `disabled`). Without it the context is fully cut. | `core/form-field.vue` |
158
- | `Form` | Connects a `useForm` result to a `<form>`. Provides errors to `FormField`, handles submit, reset, focus on first error. | Props: `form` (required), `as` (form or div; use `div` for a form nested in a modal), `focusOnError`, `alerts` (start, end, false), `disabled` (every `FormField` and control inside is disabled; a nested form inherits it unless it sets its own), `guard` (`false` keeps this form out of the leave guard; default: the `guard` option of `useForm`). While mounted it registers its dirty state in the nearest leave scope (`Modal`, `Drawer`, `FormDrawer`, `FormModal`, `SettingsModal`, else the page): leaving it dirty asks `confirm.discard()` first. Not while submitting or disabled. Slot: default, `alerts`. Events: `submitted`, `invalid`, `reset`. | `core/form.vue` |
159
- | `FormAlerts` | Render root errors and warnings as alerts. `Form` already does it. Use it only for a custom placement. | Props: `errors`, `warnings`. | `core/form.vue` |
160
- | `Kbd` | Show a keyboard key or shortcut. | Props: `value` (for example `mod+k`, shown per platform), `size`. Slot: default. | `core/kbd.vue` |
161
- | `VisuallyHidden` | Text for screen readers only. | Props: `as`, `focusable`. | `core/visually-hidden.vue` |
147
+ | Component | Purpose and when to use it | Main props, models, slots, events | Playground |
148
+ | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
149
+ | `Root` | App root. Scopes all styles under `.k-root` and sets theme, preset and tokens. Mount once. Add `is-canvas` for the page background. | Props: `theme` (system, light, dark), `preset`, `accent`, `accentContrast`, `fontSans`, `fontMono`, `fontDisplay`, `radiusScale`, `as`. Slot: default. | `core/root.vue` |
150
+ | `Button` | Every button and button-like link. Use `CopyButton` to copy text, `DropdownMenu` for a menu. | Props: `label`, `variant` (solid, soft, subtle, outline, ghost, link), `tone`, `size`, `icon`, `trailingIcon`, `to`, `href`, `target`, `external`, `type`, `disabled`, `loading`, `block`, `square` (icon only), `tooltip` (tooltip text on hover and focus; `false` turns off the automatic one), `disabledReason` (with `disabled`: the button stays focusable and hoverable with `aria-disabled`, ignores clicks and shows the reason in a tooltip and as its description). An icon-only button shows its `aria-label` (or `title`) as a tooltip; inside a `Tooltip` it shows none. Slot: default. A `to` or `href` makes it a link. | `core/button.vue` |
151
+ | `Icon` | Show an icon by name. | Props: `name` (required), `label` (makes it non decorative), `size`. | `core/icon.vue` |
152
+ | `Spinner` | Loading indicator. Use `block` for a centered loading state that fills its container. | Props: `size` (xs to lg), `label`, `decorative`, `block`. | `core/spinner.vue` |
153
+ | `Input` | Single line text field. Use `NumberInput` for numbers, `PasswordInput` for passwords. | Model: `v-model` (string, number or null; modifiers `.number`, `.trim`). Props: `type`, `size`, `icon`, `clearable`, `counter` (needs `maxlength`), `transform`, `numeric` (decimal keyboard, number model, tabular digits, left aligned), `invalid`, `disabled`, `readonly`, `required`, `noAutofill`. Slots: `leading`, `trailing`. Event: `clear`. | `core/input.vue` |
154
+ | `Textarea` | Multi line text field. | Model: `v-model`. Props: `rows`, `maxRows`, `autoresize`, `counter`, `size`, `invalid`, `disabled`, `readonly`, `required`. Slot: `trailing`. | `core/textarea.vue` |
155
+ | `FormField` | Label, description, hint, error and required marker around one control. It links ids and ARIA for the control inside. | Props: `label`, `name` (reads error and warning from the surrounding `Form`), `description`, `hint`, `error`, `warning`, `required`, `optional`, `disabled`, `icon`, `help` (an info icon after the label with the text as tooltip, also linked to the control as a description). Slots: default, `label`, `label-actions`, `description`, `hint`. | `core/form-field.vue` |
156
+ | `FieldMessage` | One error, warning or hint line outside a `FormField`. | Props: `message`, `tone` (danger, warning, neutral), `icon`. Slot: default. | `core/field-message.vue` |
157
+ | `FieldBoundary` | Cut the field context for controls inside a `FormField` that are not the main control (a search box above a `Tree`). | Prop: `auxiliary` (keeps own id, follows only `disabled`). Without it the context is fully cut. | `core/form-field.vue` |
158
+ | `Form` | Connects a `useForm` result to a `<form>`. Provides errors to `FormField`, handles submit, reset, focus on first error. | Props: `form` (required), `as` (form or div; use `div` for a form nested in a modal), `focusOnError`, `alerts` (start, end, false), `disabled` (every `FormField` and control inside is disabled; a nested form inherits it unless it sets its own, and a control with an explicit `:disabled="false"` stays enabled), `guard` (`false` keeps this form out of the leave guard; default: the `guard` option of `useForm`). While mounted it registers its dirty state in the nearest leave scope (`Modal`, `Drawer`, `FormDrawer`, `FormModal`, `SettingsModal`, else the page): leaving it dirty asks `confirm.discard()` first. Not while submitting or disabled. Slot: default, `alerts`. Events: `submitted`, `invalid`, `reset`. | `core/form.vue` |
159
+ | `FormAlerts` | Render root errors and warnings as alerts. `Form` already does it. Use it only for a custom placement. | Props: `errors`, `warnings`. | `core/form.vue` |
160
+ | `Kbd` | Show a keyboard key or shortcut. | Props: `value` (for example `mod+k`, shown per platform), `size`. Slot: default. | `core/kbd.vue` |
161
+ | `VisuallyHidden` | Text for screen readers only. | Props: `as`, `focusable`. | `core/visually-hidden.vue` |
162
162
 
163
163
  ## Forms
164
164
 
@@ -204,10 +204,11 @@ Mount `OverlayHost` once for the imperative hooks (see [Composables](#composable
204
204
  | `Toaster` | Renders toasts. `OverlayHost` includes it. Use it directly only for custom options. The stack moves out of the way of an open side Drawer (beside it, or above its footer). | Props: `position`, `max`, `duration`, `gap`, `expand`, `progress`, `hotkey`. | `overlays/toast.vue` |
205
205
  | `DropdownMenu` | Menu opened by its trigger. Items can have icons, shortcuts, checkboxes, radios, sub menus and links. | Model: `v-model:open`. Props: `items` (`label`, `icon`, `color` (palette name or hex dot, or `muted` for a grey dot of an empty state), `to`, `href`, `tone: danger`, `shortcut`, `disabled`, `disabledReason` (with `disabled`: a tooltip on hover and keyboard focus, linked with `aria-describedby`; the item stays reachable but not selectable), `children`, `onSelect`; also `type`: checkbox, radio, label, separator), `placement`, `offset`, `matchTriggerWidth`, `minWidth`. Slot: default (the trigger). Event: `select`. | `overlays/dropdown-menu.vue` |
206
206
  | `ContextMenu` | Menu on right click of the wrapped area. | Model: `v-model:open`. Props: `items` (same as `DropdownMenu`), `disabled`. Slot: default (the area). Event: `select`. | `overlays/context-menu.vue` |
207
- | `Popover` | Floating panel with any content (a form, filters) opened by its trigger. Use `DropdownMenu` for a list of actions. | Model: `v-model:open`. Props: `placement`, `offset`, `arrow`, `label`, `initialFocus`. Slots: default (the trigger), `content`. | `overlays/popover.vue` |
207
+ | `Popover` | Floating panel with any content (a form, filters) opened by its trigger, or next to any element or point with `anchor`. Use `DropdownMenu` for a list of actions. | Model: `v-model:open`. Props: `placement`, `offset`, `arrow`, `label`, `initialFocus`, `anchor` (an element, also inside a same origin iframe, or a virtual `{ getBoundingClientRect() }`; positions against it instead of the trigger, the trigger slot becomes optional). Slots: default (the trigger), `content`. Exposed: `show`, `hide`, `toggle`. | `overlays/popover.vue` |
208
208
  | `HoverCard` | Rich preview on hover or focus (user card, link preview). Use `Tooltip` for plain text. | Model: `v-model:open`. Props: `placement`, `openDelay`, `closeDelay`, `arrow`, `disabled`. Slots: default (trigger), `content`. | `overlays/hover-card.vue` |
209
209
  | `Tooltip` | Short text on hover or focus. Optional shortcut. `Button` already shows one for icon-only buttons, `tooltip` and `disabledReason`. | Props: `text`, `placement`, `openDelay`, `closeDelay`, `arrow`, `shortcut`, `disabled`. Slots: default (trigger), `content`. | `overlays/tooltip.vue` |
210
- | `CommandPalette` | Search and command dialog (Cmd+K) with groups, recent items, async search and typed item data. Groups take `icon` (default item icon) and `more` (a last "show all" item). Matching (`matchesSearch`, exported) finds every word in any order, without case or accents. | Models: `v-model:open`, `v-model:query`. Props: `groups` (items with `id`, `label`, `description`, `icon`, `badge`, `shortcut`, `keywords`, `to`, `data`, `onSelect`), `search(query, signal)`, `shortcut`, `trigger`, `recentKey`, `emptyText`, `notice`. Slots: `item`, `empty`, `group-label`, `after-results`. Events: `select`, `open`, `close`. | `overlays/command-palette.vue` |
210
+ | `CommandPalette` | Search and command dialog (Cmd+K) with groups, recent items, async search and typed item data. Groups take `icon` (default item icon) and `more` (a last "show all" item). Matching (`matchesSearch`, exported) finds every word in any order, without case or accents. | Models: `v-model:open`, `v-model:query`. Props: `groups` (items with `id`, `label`, `description`, `icon`, `badge`, `shortcut`, `keywords`, `to`, `data`, `disabled`, `disabledReason` (with `disabled`: reachable with the arrow keys but not selectable, a tooltip on hover and keyboard focus, linked with `aria-describedby`), `onSelect`), `search(query, signal)`, `pinned` (items or `(query) => items` shown first, never filtered or saved as recent), `shortcut`, `trigger`, `recentKey`, `emptyText`, `notice`. Slots: `item`, `empty`, `group-label`, `after-results`. Events: `select`, `open`, `close`. | `overlays/command-palette.vue` |
211
+ | `CommandList` | The search field and grouped list of `CommandPalette` without the dialog: place it inline in a panel or in a `Popover` (with `anchor` for a picker opened next to any element). Arrow keys, Enter and the same matching. | Model: `v-model:query`. Props: the `CommandPalette` list props (`groups`, `search`, `pinned`, `filter`, `loading`, `placeholder`, `label`, `recentKey`, `emptyText`, `notice` and the copy props), `autofocus` (default `true`), `footer` (the key hints, default `false`). Slots: `item`, `empty`, `group-label`, `after-results`. Events: `select`, `close` (Escape). Exposed: `focus`, `refresh`. | `overlays/command-palette.vue` |
211
212
  | `CommandButton` | A `Button` made from a `CommandItem`: label, icon, `to`, `href`, `disabled`, `disabledReason` (tooltip on the disabled button) and `onSelect` come from the command. | Props: `command`, `label`, `icon`, `iconOnly` (a square button with the icon only, the label as `aria-label` and tooltip), and every `Button` prop (size, variant, tone). | `overlays/command-palette.vue` |
212
213
 
213
214
  ## Data
@@ -228,7 +229,7 @@ Mount `OverlayHost` once for the imperative hooks (see [Composables](#composable
228
229
  | `RecordList` | Short list of records (settings, users, tokens): title, badge, description, leading and action slots, `SkeletonList` while `loading`, empty state. | Props: `items` (`RecordListItem`: `id`, `title` (truncated, full text on hover), `description`, `badge` `{ label, tone }`), `loading`, `avatar`, `action`, `label`, `skeletonRows`, `emptyText`, `emptyDescription`, `emptyIcon`, `emptyVariant` (card, the default, or plain). Event: `row-click` (`item`, `event`): each row becomes a navigation item (padding, hover and press background like a ghost button, no separators) and its title a button, so Tab reaches every row and Enter or Space opens it (focus ring on the row, the description is the button description). Clicks on buttons, links, inputs, menu items and inside an open menu, popover or dialog of the row are ignored, and pressing them does not tint the row; `rowClickable(item)` keeps some rows static in the same list (no button, no hover). Slots: `leading`, `action` (`{ item }`), `empty`, `empty-actions` (buttons in the default empty state). | `data/record-list.vue` |
229
230
  | `DescriptionList` | Label and value pairs for a record. Use it on detail views. | Props: `items` (`key`, `label`, `value`, `hint`), `layout` (stacked, inline, grid), `columns`, `divided`, `emptyText`. Slots: `term`, `value`, `value-<key>`. | `data/description-list.vue` |
230
231
  | `Timeline` | Vertical list of events or activity. | Props: `items` (`title`, `description`, `time`, `datetime`, `icon`, `tone`), `compact`. Slot: `item`. | `data/timeline.vue` |
231
- | `Tree` | Expandable hierarchy with selection, drag to reorder and nesting. | Models: `v-model:expanded`, `v-model:selected`. Props: `nodes` (`id`, `label`, `description`, `meta`, `icon`, `children`, `disabled`, `invalid`), `selectable`, `highlighted` (id or ids tinted like hover), `invalidText`, `reorderable`, `nestable`, `moveButtons` (default `true`; `false` hides the row arrows, drag and Alt+arrow keys still work), `canDrop`, `size`, `checkmark`, `emptyText`, `emptyDescription`, `emptyIcon`, `emptyVariant` (card, the default, or plain). Slots: `label`, `meta`, `actions` (row end, on hover, focus and the selected row; `node`, `level`, `selected`, `expanded`, `highlighted`, `hovered`), `empty`, `empty-actions` (buttons in the default empty state). Events: `select`, `move`, `hover` (node or `null`). | `data/tree.vue` |
232
+ | `Tree` | Expandable hierarchy with selection, drag to reorder and nesting. | Models: `v-model:expanded`, `v-model:selected`. Props: `nodes` (`id`, `label`, `description`, `meta`, `icon`, `children`, `disabled`, `invalid`), `selectable`, `highlighted` (id or ids tinted like hover), `invalidText`, `reorderable`, `nestable`, `moveButtons` (default `true`; `false` hides the row arrows, drag and Alt+arrow keys still work), `canDrop`, `size`, `checkmark`, `emptyText`, `emptyDescription`, `emptyIcon`, `emptyVariant` (card, the default, or plain). Slots: `label` (`node`, `level`, `invalid`; an invalid row tints a custom label), `meta`, `actions` (row end, on hover, focus and the selected row, and while a popup opened from them is open; always visible without hover; `node`, `level`, `selected`, `expanded`, `highlighted`, `hovered`), `empty`, `empty-actions` (buttons in the default empty state). Events: `select`, `move`, `hover` (node or `null`). | `data/tree.vue` |
232
233
 
233
234
  ## Layout
234
235
 
package/README.md CHANGED
@@ -287,7 +287,7 @@ The Nuxt module still writes the theme (`k-theme`), the preset (`k-preset`) and
287
287
  - Everything sits in `@layer k.tokens, k.base, k.components, k.utilities`. Any unlayered host CSS wins, so overrides need no `!important`. The flip side: unlayered host element selectors (`button { ... }`) also reach library elements. Put global element styles in a layer or scope them.
288
288
  - Tailwind 4 puts its preflight in the `base` layer. The Nuxt module declares `@layer theme, base, k, components, utilities` before any stylesheet (option `cssLayers`), so preflight never resets library components while Tailwind utilities still win on them. Without Nuxt, put the same statement at the top of your first stylesheet. A host reset of your own belongs in `base` (or any layer declared before `k`).
289
289
  - The one exception is the dashboard frame: while an `AppShell` (`.k-shell`) is on the page, or with `k.global`, `html` and `body` get `overscroll-behavior: none` and `overflow-x: clip`, so the page never rubber bands or scrolls sideways. Only the content panel and the sidebar list scroll, with `overscroll-behavior: contain`.
290
- - Overlays stay inside the root in the DOM (native top layer through `<dialog>` and `popover`), so they inherit tokens.
290
+ - Overlays stay inside the root in the DOM (native top layer through `<dialog>` and `popover`), so they inherit tokens. They also inherit from their trigger's parents: floating panels reset `pointer-events`, so a menu opened from a container with `pointer-events: none` (a hover reveal) stays clickable, but an `inert` or `visibility: hidden` ancestor still disables or hides it while it is open.
291
291
 
292
292
  ## Icons
293
293
 
@@ -411,7 +411,7 @@ Nested forms. Overlays stay in the DOM, so a `Form` inside a Modal opened from a
411
411
  </KForm>
412
412
  ```
413
413
 
414
- Read only forms. `<KForm :form="form" disabled>` disables every `FormField` and every control inside (also the controls built on `useFieldControl` and the ones outside a `FormField`), as if each had `disabled`. A field is disabled when its own `disabled` is set or the form is disabled. A nested `Form` without `disabled` inherits the state; `:disabled="false"` or `true` on it overrides the parent, for example a modal form that opens from a read only drawer but follows its own permission. `FormDrawer` with `readonly` does the same for its body, also for a `Form` you render yourself in the default slot.
414
+ Read only forms. `<KForm :form="form" disabled>` disables every `FormField` and every control inside (also the controls built on `useFieldControl` and the ones outside a `FormField`), as if each had `disabled`. A field is disabled when its own `disabled` is set or the form is disabled. A nested `Form` without `disabled` inherits the state; `:disabled="false"` or `true` on it overrides the parent, for example a modal form that opens from a read only drawer but follows its own permission. A control works the same way: without `disabled` it inherits the state of its `Form`, `Fieldset` and `FormField`, and an explicit `:disabled="false"` keeps it enabled, for example a locale switch in the `#label-actions` of a field so a read only user can still view the other translations (every control built on `useFieldControl`; in your own control pass `disabled: () => props.disabled` with a prop that defaults to `undefined`). Inside a disabled `Fieldset` the browser still disables every native control except the ones in its legend, so keep such a control outside the fieldset or in its `#legend`. `FormDrawer` with `readonly` does the same for its body, also for a `Form` you render yourself in the default slot.
415
415
 
416
416
  ```vue
417
417
  <KForm :form="form" :disabled="!canWrite">
@@ -465,7 +465,7 @@ async function switchView() {
465
465
  | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
466
466
  | core | Root, Icon, Button, Spinner, Input, Textarea, FormField, FieldMessage, FieldBoundary, Form, FormAlerts, Kbd, VisuallyHidden |
467
467
  | forms | Calendar, Checkbox, CheckboxGroup, ColorInput, Combobox, DateInput, DatePicker, FileInput, InputAddon, InputGroup, NumberInput, PaletteSelect, PasswordInput, PinInput, Radio, RadioGroup, SegmentedControl, Select, Slider, Switch, TimeInput, TreeSelect |
468
- | overlays | CommandButton, CommandPalette, ConfirmDialog, ConfirmHost, ContextMenu, Drawer, DropdownMenu, HoverCard, Modal, OverlayHost, Popover, Toaster, Tooltip |
468
+ | overlays | CommandButton, CommandList, CommandPalette, ConfirmDialog, ConfirmHost, ContextMenu, Drawer, DropdownMenu, HoverCard, Modal, OverlayHost, Popover, Toaster, Tooltip |
469
469
  | data | Avatar, AvatarGroup, Badge, DescriptionList, FilterPill, FilterPills, Pagination, RecordList, SelectionBar, Stat, Table, Tag, TagList, Timeline, Tree |
470
470
  | layout | Accordion, AppShell, Breadcrumbs, Card, CopyButton, Grid, NavLink, PageHeader, Separator, Sidebar, SidebarNav, SidebarSection, Stack, Stepper, Tabs, ThemeSwitch, Toolbar |
471
471
  | templates | DashboardLayout, AuthLayout, AuthLogin, AuthLogout, DashboardPage, ListPage, DetailPage, FormPage, SettingsPage, SettingsSection, SettingsModal, SettingsGroup, AppearanceSettings, SaveBar, ErrorPage, NotFoundPage, EmptyPage, Brand, AccountMenu, FormDrawer |
@@ -482,6 +482,7 @@ Composables: `useTheme`, `usePreset`, `useForm`, `useField`, `useFieldControl`,
482
482
  - `tooltip="..."` adds a tooltip to any button, also with a label; when it differs from the accessible name it is also the button description.
483
483
  - `disabledReason` explains a disabled button. With `disabled` and a reason the button uses `aria-disabled` instead of `disabled`: it stays in the Tab order and receives hover, clicks (and implicit form submission) are ignored, the reason shows as a tooltip and is linked with `aria-describedby`, and before mount the reason is the native `title`. Without a reason a disabled button behaves as before.
484
484
  - Menu items of `DropdownMenu` and `ContextMenu` (and every `MenuItems` list: the account menu, `FilterPills` option menus) take `disabledReason` too: with `disabled` the item stays reachable with the arrow keys but cannot be selected, and the reason shows as a tooltip on hover and keyboard focus and is linked with `aria-describedby`. Use it instead of putting the reason in `description`.
485
+ - Items of `CommandPalette` and `CommandList` take `disabledReason` the same way: a disabled item with a reason stays reachable with the arrow keys (one without a reason is skipped), Enter ignores it, and the reason shows as a tooltip on hover and when the arrow keys make it active, linked with `aria-describedby`.
485
486
  - The same works for `CommandButton` (`CommandItem.disabledReason`, and `iconOnly` shows the label as a tooltip), `Tabs` (`TabItem.title`, also on a disabled tab), `FormDrawer` and `FormModal` (`deleteHint`) and the grid `ButtonCell` (`tooltip`, `disabled`, `disabledReason` params).
486
487
 
487
488
  ```vue
@@ -502,7 +503,7 @@ On your own elements, `paletteClass(color)` gives the class of a palette name an
502
503
 
503
504
  ### Lists, trees and uploads
504
505
 
505
- - `Tree` takes `size="sm"` for dense rows, `checkmark`, `descriptionVariant` (`mono`, the default for paths and slugs, or `text`; a node can override it with its own `descriptionVariant`), `emptyText`, `emptyDescription`, `emptyIcon` and `emptyVariant` (`card`, the default, or `plain`) for the `EmptyState` shown without nodes (`#empty` replaces it, `#empty-actions` adds buttons inside it, like `RecordList`) and works inside a `FormField` (labelled and described by the field). With `reorderable` rows get a drag handle and Alt with the up and down arrows moves them; `nestable` also lets rows change level (drop in the middle of a row, Alt with left and right). Each row also shows move buttons; `moveButtons: false` hides them and keeps drag and the keyboard. The `move` event carries `{ node, target, position, from: { parent, index }, to: { parent, index } }`, `to.index` being the final index, and `applyTreeMove(nodes, move)` returns the updated tree. `canDrop(move)` vetoes a move. Moves are announced to screen readers. The `#actions` slot (`node`, `level`, `selected`, `expanded`, `highlighted`, `hovered`) renders row actions at the end of the row, over the label, on the hovered, focused and selected rows only; Tab from the focused row reaches them, and focus returns to a row when the focused one is removed. `highlighted` (an id or an array of ids) tints rows like hover, for a link with something outside the tree (a block hovered in a preview). The `hover` event carries the node under the pointer, then `null` when the pointer leaves the tree. A node with `invalid: true` shows a danger dot and a tinted label, and its row is described by a hidden "Contains errors" (`invalidText` overrides it).
506
+ - `Tree` takes `size="sm"` for dense rows, `checkmark`, `descriptionVariant` (`mono`, the default for paths and slugs, or `text`; a node can override it with its own `descriptionVariant`), `emptyText`, `emptyDescription`, `emptyIcon` and `emptyVariant` (`card`, the default, or `plain`) for the `EmptyState` shown without nodes (`#empty` replaces it, `#empty-actions` adds buttons inside it, like `RecordList`) and works inside a `FormField` (labelled and described by the field). With `reorderable` rows get a drag handle and Alt with the up and down arrows moves them; `nestable` also lets rows change level (drop in the middle of a row, Alt with left and right). Each row also shows move buttons; `moveButtons: false` hides them and keeps drag and the keyboard. The `move` event carries `{ node, target, position, from: { parent, index }, to: { parent, index } }`, `to.index` being the final index, and `applyTreeMove(nodes, move)` returns the updated tree. `canDrop(move)` vetoes a move. Moves are announced to screen readers. The `#actions` slot (`node`, `level`, `selected`, `expanded`, `highlighted`, `hovered`) renders row actions at the end of the row, over the label, on the hovered, focused and selected rows only; Tab from the focused row reaches them, and focus returns to a row when the focused one is removed. Actions stay visible and clickable while a menu, popover or select opened from them is open (any trigger inside with `aria-expanded="true"`), so the pointer can cross other rows to reach the menu items. On devices without hover (`hover: none`, touch) the slot actions are always visible and sit in the row after the label instead of over it, and the move buttons show on the focused (tapped) and selected rows. `highlighted` (an id or an array of ids) tints rows like hover, for a link with something outside the tree (a block hovered in a preview). The `hover` event carries the node under the pointer, then `null` when the pointer leaves the tree. A node with `invalid: true` shows a danger dot before the label (never covered by the actions) and a tinted label, and its row is described by a hidden "Contains errors" (`invalidText` overrides it). The `#label` slot receives `invalid` (with `node` and `level`), and a custom label inherits the danger text color unless it sets its own.
506
507
  - `Select` takes string, number or boolean option values (`{ value: true, label: 'Yes' }`); the model gets the option value back with its type and is typed `T | null | undefined`, so `v-model` works on a narrow ref (`Ref<'a' | 'b' | null>`). An option whose value is `''` is a real option: it is selected and shown with its own label, distinct from the placeholder, which still maps to `null`.
507
508
  - `Input` and `Textarea` take `counter`: with a `maxlength` attribute they show `length / maxlength` inside the field, describe the control with "12 of 40 characters" (`form.characterCount`) and announce "Character limit reached" when it is hit.
508
509
  - Numbers are left aligned in every field. `Input` `numeric` sets the decimal keyboard, the number model and tabular digits; `NumberInput` takes `align="end"` to right align its value when a layout needs it (default `start`).
@@ -712,7 +713,36 @@ const archived = useRouteState('archived', {
712
713
  - Pages that set `definePageMeta({ key: (route) => route.fullPath })` remount on every query change; keep the default page key for pages with deep links.
713
714
  - To leave the page from inside an overlay, navigate (a link or `router.push`): the new route has no parameter, so the overlay closes. Do not set the ref to `undefined` and navigate in the same tick: the later navigation cancels the earlier one.
714
715
 
715
- `CommandPalette`: an item takes a `badge` (a label, or `{ label, tone, color }`), shown before its shortcut. Recent items do not keep the badge, because it can change. Items take typed `data` (`CommandItem<T>`, `CommandGroup<T>`), which reaches the `#item` slot and the `select` event typed; `emptyText` also takes `(query) => string`. Groups take a `description` (shown after the label), the `#group-label` slot (`{ group, label, description, recent }`) replaces the label, and `notice` or the `#after-results` slot (`{ query, count }`) adds a line under the results, for example "Showing the first results".
716
+ `Popover`: `anchor` places the panel against any element or a virtual reference (`OverlayVirtualAnchor`, an object with `getBoundingClientRect()`, for a pointer position or a text selection) instead of its trigger, and the trigger slot becomes optional: open it with `v-model:open` or the exposed `show()`. An element inside a same origin iframe works too: the panel is placed in the page against it, and a click or Escape inside the iframe closes it. The position follows scroll and resize. Focus moves into the panel on open and returns to the anchor when it can take focus, otherwise to the element focused before; a click outside and Escape close it. Without a trigger, name the panel with `label`.
717
+
718
+ ```vue
719
+ <script setup lang="ts">
720
+ const open = ref(false)
721
+ const anchor = shallowRef<HTMLElement | null>(null)
722
+
723
+ function openAt(event: MouseEvent) {
724
+ anchor.value = event.currentTarget as HTMLElement
725
+ open.value = true
726
+ }
727
+ </script>
728
+
729
+ <KButton icon="plus" aria-label="Add block" @click="openAt" />
730
+ <KPopover v-model:open="open" :anchor="anchor" placement="right-start" label="Add block">
731
+ <template #content="{ close }">...</template>
732
+ </KPopover>
733
+ ```
734
+
735
+ `CommandPalette`: an item takes a `badge` (a label, or `{ label, tone, color }`), shown before its shortcut. Recent items do not keep the badge, because it can change. Items take typed `data` (`CommandItem<T>`, `CommandGroup<T>`), which reaches the `#item` slot and the `select` event typed; `emptyText` also takes `(query) => string`. Groups take a `description` (shown after the label), the `#group-label` slot (`{ group, label, description, recent }`) replaces the label, and `notice` or the `#after-results` slot (`{ query, count }`) adds a line under the results, for example "Showing the first results". `pinned` (items, or `(query) => CommandItem[]`) adds items at the top that are never filtered and never saved as recent, like "Paste block" or "Create {query}"; the empty text still shows under them when nothing else matches.
736
+
737
+ `CommandList` is the palette content without the dialog: the search field (focused on mount unless `:autofocus="false"`), the grouped and filtered list, arrow keys and Enter, the empty state and the same props, slots and `v-model:query`. Escape emits `close` and is not stopped, so a surrounding `Popover` closes too. `footer` shows the key hints. Put it in a side panel, or in a `Popover` with `anchor` for a picker opened next to any element:
738
+
739
+ ```vue
740
+ <KPopover v-model:open="open" :anchor="anchor" label="Add block">
741
+ <template #content>
742
+ <KCommandList :groups="blocks" :pinned="pinned" @select="add" @close="open = false" />
743
+ </template>
744
+ </KPopover>
745
+ ```
716
746
 
717
747
  - `Brand`: `logo` takes an image URL, trusted inline SVG markup (`'<svg ...>'`) or a component; the `#logo` slot replaces the boxed mark; `show-name` keeps the name visible next to a logo.
718
748
  - `Card`: `selected` gives a pressed look (`aria-pressed` on `as="button"`, `aria-selected` with `role="option"` and similar roles); `:animated="false"` turns off the entrance animation.
@@ -92,7 +92,7 @@ const props = defineProps({
92
92
  clearLabel: { type: String, required: false },
93
93
  numeric: { type: Boolean, required: false },
94
94
  invalid: { type: Boolean, required: false, default: void 0 },
95
- disabled: { type: Boolean, required: false },
95
+ disabled: { type: Boolean, required: false, default: void 0 },
96
96
  readonly: { type: Boolean, required: false },
97
97
  required: { type: Boolean, required: false },
98
98
  noAutofill: { type: Boolean, required: false },
@@ -495,6 +495,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
495
495
  }>, {
496
496
  size: FieldSize;
497
497
  invalid: boolean;
498
+ disabled: boolean;
498
499
  type: string;
499
500
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
500
501
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -75,7 +75,7 @@ const props = defineProps({
75
75
  autoresize: { type: Boolean, required: false },
76
76
  numeric: { type: Boolean, required: false },
77
77
  invalid: { type: Boolean, required: false, default: void 0 },
78
- disabled: { type: Boolean, required: false },
78
+ disabled: { type: Boolean, required: false, default: void 0 },
79
79
  readonly: { type: Boolean, required: false },
80
80
  required: { type: Boolean, required: false },
81
81
  noAutofill: { type: Boolean, required: false },
@@ -443,6 +443,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
443
443
  }>, {
444
444
  size: FieldSize;
445
445
  invalid: boolean;
446
+ disabled: boolean;
446
447
  rows: number;
447
448
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
448
449
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -15,8 +15,6 @@
15
15
  :class="rootClass"
16
16
  data-k-shake
17
17
  @pointerleave="onTreeLeave"
18
- @focusin="hasFocus = true"
19
- @focusout="onFocusOut"
20
18
  >
21
19
  <li
22
20
  v-for="(entry, index) in visible"
@@ -77,8 +75,14 @@
77
75
  <span v-if="entry.node.icon" class="k-tree-icon" aria-hidden="true">
78
76
  <Icon :name="entry.node.icon" />
79
77
  </span>
78
+ <span v-if="entry.node.invalid" class="k-tree-invalid" aria-hidden="true" />
80
79
  <span :id="textId(entry.node.id)" class="k-tree-text">
81
- <slot name="label" :node="entry.node" :level="entry.level">
80
+ <slot
81
+ name="label"
82
+ :node="entry.node"
83
+ :level="entry.level"
84
+ :invalid="Boolean(entry.node.invalid)"
85
+ >
82
86
  <span :id="labelId(entry.node.id)" class="k-tree-label">{{ entry.node.label }}</span>
83
87
  <span
84
88
  v-if="entry.node.description"
@@ -89,7 +93,6 @@
89
93
  >
90
94
  </slot>
91
95
  </span>
92
- <span v-if="entry.node.invalid" class="k-tree-invalid" aria-hidden="true" />
93
96
  <span
94
97
  v-if="entry.node.meta || $slots.meta"
95
98
  :id="metaId(entry.node.id)"
@@ -104,11 +107,10 @@
104
107
  v-if="hasMoveButtons(entry) || $slots.actions"
105
108
  class="k-tree-actions"
106
109
  :class="{ 'has-slot': $slots.actions }"
107
- :inert="actionsInert(entry) || void 0"
108
110
  @click.stop
109
111
  @focusin="focusId = entry.node.id"
110
112
  >
111
- <template v-if="hasMoveButtons(entry)">
113
+ <span v-if="hasMoveButtons(entry)" class="k-tree-moves">
112
114
  <Button
113
115
  v-for="action in rowActions(entry)"
114
116
  :key="action.direction"
@@ -122,7 +124,7 @@
122
124
  :disabled="!action.move"
123
125
  @click="action.move && commit(action.move)"
124
126
  />
125
- </template>
127
+ </span>
126
128
  <slot
127
129
  name="actions"
128
130
  :node="entry.node"
@@ -199,7 +201,7 @@ const props = defineProps({
199
201
  highlighted: { type: [String, Number, Array, null], required: false },
200
202
  invalidText: { type: String, required: false },
201
203
  invalid: { type: Boolean, required: false, default: void 0 },
202
- disabled: { type: Boolean, required: false },
204
+ disabled: { type: Boolean, required: false, default: void 0 },
203
205
  required: { type: Boolean, required: false }
204
206
  });
205
207
  const { t } = useLocale();
@@ -223,7 +225,6 @@ const dragId = ref(null);
223
225
  const dropState = ref(null);
224
226
  const live = useLiveMessage();
225
227
  const hoverId = ref(null);
226
- const hasFocus = ref(false);
227
228
  const ariaLabel = computed(() => {
228
229
  if (props.label) return props.label;
229
230
  return control.labelledBy.value ? void 0 : t("tree.label");
@@ -320,10 +321,6 @@ const hasInvalid = computed(() => visible.value.some((entry) => entry.node.inval
320
321
  function hasMoveButtons(entry) {
321
322
  return canReorder.value && props.moveButtons && !entry.node.disabled;
322
323
  }
323
- function actionsInert(entry) {
324
- const id = entry.node.id;
325
- return hoverId.value !== id && !(hasFocus.value && rovingId.value === id);
326
- }
327
324
  function setHover(node) {
328
325
  const id = node?.id ?? null;
329
326
  if (hoverId.value === id) return;
@@ -336,11 +333,6 @@ function onRowEnter(entry) {
336
333
  function onTreeLeave() {
337
334
  setHover(null);
338
335
  }
339
- function onFocusOut(event) {
340
- const next = event.relatedTarget;
341
- if (next instanceof Node && event.currentTarget.contains(next)) return;
342
- hasFocus.value = false;
343
- }
344
336
  watch(visible, (list) => {
345
337
  if (hoverId.value !== null && !list.some((entry) => entry.node.id === hoverId.value))
346
338
  setHover(null);
@@ -3,6 +3,7 @@ import type { TreeDescriptionVariant, TreeMove, TreeNode, TreeNodeId, TreeSize }
3
3
  declare var __VLS_12: {
4
4
  node: TreeNode;
5
5
  level: number;
6
+ invalid: boolean;
6
7
  }, __VLS_14: {
7
8
  node: TreeNode;
8
9
  }, __VLS_29: {
@@ -469,6 +470,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
469
470
  }>, {
470
471
  size: TreeSize;
471
472
  invalid: boolean;
473
+ disabled: boolean;
472
474
  selectable: boolean;
473
475
  bordered: boolean;
474
476
  moveButtons: boolean;
@@ -68,7 +68,7 @@ const props = defineProps({
68
68
  indeterminate: { type: Boolean, required: false },
69
69
  size: { type: String, required: false },
70
70
  invalid: { type: Boolean, required: false, default: void 0 },
71
- disabled: { type: Boolean, required: false },
71
+ disabled: { type: Boolean, required: false, default: void 0 },
72
72
  readonly: { type: Boolean, required: false },
73
73
  required: { type: Boolean, required: false },
74
74
  class: { type: null, required: false },
@@ -54,7 +54,7 @@ const props = defineProps({
54
54
  size: { type: String, required: false, default: "md" },
55
55
  name: { type: String, required: false },
56
56
  invalid: { type: Boolean, required: false, default: void 0 },
57
- disabled: { type: Boolean, required: false },
57
+ disabled: { type: Boolean, required: false, default: void 0 },
58
58
  readonly: { type: Boolean, required: false },
59
59
  required: { type: Boolean, required: false }
60
60
  });
@@ -94,7 +94,7 @@ const props = defineProps({
94
94
  swatchesLabel: { type: String, required: false },
95
95
  invalidText: { type: String, required: false },
96
96
  invalid: { type: Boolean, required: false, default: void 0 },
97
- disabled: { type: Boolean, required: false },
97
+ disabled: { type: Boolean, required: false, default: void 0 },
98
98
  readonly: { type: Boolean, required: false },
99
99
  required: { type: Boolean, required: false },
100
100
  class: { type: null, required: false },
@@ -480,6 +480,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
480
480
  invalid: boolean;
481
481
  swatches: ColorSwatch[];
482
482
  placeholder: string;
483
+ disabled: boolean;
483
484
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
484
485
  declare const _default: typeof __VLS_export;
485
486
  export default _default;
@@ -315,7 +315,7 @@ const props = defineProps({
315
315
  createText: { type: Function, required: false },
316
316
  resultsText: { type: Function, required: false },
317
317
  invalid: { type: Boolean, required: false, default: void 0 },
318
- disabled: { type: Boolean, required: false },
318
+ disabled: { type: Boolean, required: false, default: void 0 },
319
319
  readonly: { type: Boolean, required: false },
320
320
  required: { type: Boolean, required: false },
321
321
  class: { type: null, required: false },
@@ -26,7 +26,7 @@ defineProps({
26
26
  step: { type: [Number, String], required: false },
27
27
  clearable: { type: Boolean, required: false },
28
28
  invalid: { type: Boolean, required: false, default: void 0 },
29
- disabled: { type: Boolean, required: false },
29
+ disabled: { type: Boolean, required: false, default: void 0 },
30
30
  readonly: { type: Boolean, required: false },
31
31
  required: { type: Boolean, required: false }
32
32
  });
@@ -496,6 +496,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
496
496
  }>, {
497
497
  size: FieldSize;
498
498
  invalid: boolean;
499
+ disabled: boolean;
499
500
  type: "month" | "week" | "date" | "datetime-local";
500
501
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
501
502
  declare const _default: typeof __VLS_export;
@@ -117,7 +117,7 @@ const props = defineProps({
117
117
  closeOnSelect: { type: Boolean, required: false, default: true },
118
118
  level: { type: Number, required: false },
119
119
  invalid: { type: Boolean, required: false, default: void 0 },
120
- disabled: { type: Boolean, required: false },
120
+ disabled: { type: Boolean, required: false, default: void 0 },
121
121
  readonly: { type: Boolean, required: false },
122
122
  required: { type: Boolean, required: false },
123
123
  class: { type: null, required: false },
@@ -464,6 +464,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
464
464
  }>, {
465
465
  size: FieldSize;
466
466
  invalid: boolean;
467
+ disabled: boolean;
467
468
  format: Intl.DateTimeFormatOptions;
468
469
  closeOnSelect: boolean;
469
470
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -180,7 +180,7 @@ const props = defineProps({
180
180
  locale: { type: String, required: false },
181
181
  announce: { type: Function, required: false },
182
182
  invalid: { type: Boolean, required: false, default: void 0 },
183
- disabled: { type: Boolean, required: false },
183
+ disabled: { type: Boolean, required: false, default: void 0 },
184
184
  readonly: { type: Boolean, required: false },
185
185
  required: { type: Boolean, required: false },
186
186
  class: { type: null, required: false },
@@ -502,6 +502,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
502
502
  size: FieldSize;
503
503
  invalid: boolean;
504
504
  list: boolean;
505
+ disabled: boolean;
505
506
  acceptMode: FileInputAcceptMode;
506
507
  previews: boolean;
507
508
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -101,7 +101,7 @@ const props = defineProps({
101
101
  incrementLabel: { type: String, required: false },
102
102
  decrementLabel: { type: String, required: false },
103
103
  invalid: { type: Boolean, required: false, default: void 0 },
104
- disabled: { type: Boolean, required: false },
104
+ disabled: { type: Boolean, required: false, default: void 0 },
105
105
  readonly: { type: Boolean, required: false },
106
106
  required: { type: Boolean, required: false },
107
107
  class: { type: null, required: false },
@@ -492,6 +492,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
492
492
  stepper: boolean;
493
493
  invalid: boolean;
494
494
  align: "start" | "end";
495
+ disabled: boolean;
495
496
  step: number;
496
497
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
497
498
  declare const _default: typeof __VLS_export;
@@ -40,7 +40,7 @@ const props = defineProps({
40
40
  placeholder: { type: String, required: false },
41
41
  customLabel: { type: String, required: false },
42
42
  size: { type: String, required: false, default: "md" },
43
- disabled: { type: Boolean, required: false },
43
+ disabled: { type: Boolean, required: false, default: void 0 },
44
44
  readonly: { type: Boolean, required: false },
45
45
  invalid: { type: Boolean, required: false, default: void 0 },
46
46
  class: { type: null, required: false },
@@ -545,6 +545,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
545
545
  }>, {
546
546
  size: FieldSize;
547
547
  invalid: boolean;
548
+ disabled: boolean;
548
549
  colors: readonly PaletteColor[];
549
550
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
550
551
  declare const _default: typeof __VLS_export;
@@ -108,7 +108,7 @@ const props = defineProps({
108
108
  copiedLabel: { type: String, required: false },
109
109
  strengthLabel: { type: String, required: false },
110
110
  invalid: { type: Boolean, required: false, default: void 0 },
111
- disabled: { type: Boolean, required: false },
111
+ disabled: { type: Boolean, required: false, default: void 0 },
112
112
  readonly: { type: Boolean, required: false },
113
113
  required: { type: Boolean, required: false },
114
114
  class: { type: null, required: false },
@@ -524,6 +524,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
524
524
  size: FieldSize;
525
525
  minLength: number;
526
526
  invalid: boolean;
527
+ disabled: boolean;
527
528
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
528
529
  declare const _default: typeof __VLS_export;
529
530
  export default _default;
@@ -89,7 +89,7 @@ const props = defineProps({
89
89
  noAutofill: { type: Boolean, required: false },
90
90
  size: { type: String, required: false, default: "md" },
91
91
  invalid: { type: Boolean, required: false, default: void 0 },
92
- disabled: { type: Boolean, required: false },
92
+ disabled: { type: Boolean, required: false, default: void 0 },
93
93
  readonly: { type: Boolean, required: false },
94
94
  required: { type: Boolean, required: false },
95
95
  class: { type: null, required: false },
@@ -490,6 +490,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
490
490
  length: number;
491
491
  size: FieldSize;
492
492
  invalid: boolean;
493
+ disabled: boolean;
493
494
  mode: PinInputMode;
494
495
  autocomplete: string;
495
496
  maskChar: string;
@@ -53,7 +53,7 @@ const props = defineProps({
53
53
  size: { type: String, required: false, default: "md" },
54
54
  name: { type: String, required: false },
55
55
  invalid: { type: Boolean, required: false, default: void 0 },
56
- disabled: { type: Boolean, required: false },
56
+ disabled: { type: Boolean, required: false, default: void 0 },
57
57
  readonly: { type: Boolean, required: false },
58
58
  required: { type: Boolean, required: false }
59
59
  });