@xleddyl/443-components-vue 0.16.81 → 0.16.83

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/CATALOG.md CHANGED
@@ -188,27 +188,27 @@ All field components work inside `FormField` and take `invalid`, `disabled`, `re
188
188
  | `ColorInput` | Color text field with picker and swatches. | Model: hex string or null. Props: `swatches` (strings or `{ value, label }`), `placeholder`, `invalidText`. | `forms/color-input.vue` |
189
189
  | `PaletteSelect` | Select of a palette color, with the dot and the localized color name. | Model: `ColorValue` (palette name or `#rrggbb`) or null. A non-searchable `Combobox` (pass `:searchable="true"` to type a filter). Props: `colors` (subset of `PALETTE_COLORS`), `clearable` (placeholder "Automatic"), `custom` (adds "Custom": choosing it shows a `ColorInput` under the select and the model becomes the hex), `customLabel` (name of the color input), `placeholder`, `size`, `disabled`, `readonly`, `invalid`. | `forms/palette-select.vue` |
190
190
  | `Slider` | Number in a range with drag handle. | Model: number. Props: `min`, `max`, `step`, `bubble` (true, always), `marks`, `format(value)`, `label`. Event: `change` (on release). | `forms/slider.vue` |
191
- | `FileInput` | Drop zone and file picker. Validates type, size and count. Supports folders and previews. | Model: `File`, `File[]` or null. Props: `accept`, `acceptMode`, `maxSize`, `maxFiles`, `multiple`, `directory`, `directoryAction`, `previews`, `list`, `loading`, `capture`, `title`, `dropText`, `hint`. Slots: `title`, `hint`, `actions`. Events: `add`, `remove`, `invalid`, `reject`. | `forms/file-input.vue` |
191
+ | `FileInput` | Drop zone and file picker. Validates type, size and count. Supports folders and previews. | Model: `File`, `File[]` or null. Props: `accept`, `acceptMode`, `maxSize`, `maxFiles`, `multiple`, `directory`, `directoryAction`, `previews`, `list`, `fill` (fills the height of its parent, centered), `loading`, `capture`, `title`, `dropText`, `hint`. Slots: `title`, `hint`, `actions`. Events: `add`, `remove`, `invalid`, `reject`. | `forms/file-input.vue` |
192
192
 
193
193
  ## Overlays
194
194
 
195
195
  Mount `OverlayHost` once for the imperative hooks (see [Composables](#composables)).
196
196
 
197
- | Component | Purpose and when to use it | Main props, models, slots, events | Playground |
198
- | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------ |
199
- | `Modal` | Centered dialog for forms and content. Use `Drawer` for a side panel, `useConfirm` for a yes or no question. | Models: `v-model:open`, `v-model:tab`. Props: `title`, `description`, `size` (sm to xl, full, fit, fullscreen), `width`, `minHeight`, `dismissible`, `hideClose`, `sheet`, `flush`, `fill`, `loading`, `beforeClose(reason)`, `tabs` (tabs in the header), `trail` (breadcrumb title and back button; a long trail stays on one line, the middle crumbs collapse into a "..." menu and the current title truncates), `backLabel`, `guard` (default `true`: closing, or a trail navigation, with a dirty `Form` inside asks to discard first; `beforeClose` runs after), `guardTitle`, `guardMessage`. Slots: default (`{ tab }`), `header`, `actions` (header, before the close button), `footer`, `title-trailing`. Events: `open`, `close`, `afterLeave`, `navigate(index)`. Exposes `close()`, `confirmLeave()`, `dirty`. | `overlays/modal.vue` |
200
- | `Drawer` | Panel from the side or bottom for details and edit forms. Use `Modal` for short focused dialogs. | Models: `v-model:open`, `v-model:tab`. Props: `title`, `description`, `side` (left, right, bottom), `size` (sm to xl, full), `dismissible`, `hideClose`, `flush`, `fill` (the body content takes the full height, for a table or a grid), `loading`, `beforeClose(reason)`, `tabs`, `trail`, `backLabel`, `guard`, `guardTitle`, `guardMessage` (as `Modal`). Slots like `Modal`. Events: `open`, `close`, `afterLeave`, `navigate(index)`. Exposes `close()`, `confirmLeave()`, `dirty`. | `overlays/drawer.vue` |
201
- | `ConfirmDialog` | Declarative confirm dialog. Prefer `useConfirm()`. Use this one only when the dialog state lives in the template. | Model: `v-model:open`. Props: `title`, `description`, `confirmLabel`, `cancelLabel`, `tone`, `icon`, `hideCancel`, `onConfirm`. Events: `resolve(confirmed)`, `cancel`, `afterLeave`. | `overlays/confirm-dialog.vue` |
202
- | `ConfirmHost` | Renders the dialogs of `useConfirm`, `useAlert`, `usePrompt`. `OverlayHost` includes it. Do not mount it alone. | None. | - |
203
- | `OverlayHost` | One mount point for toasts, confirm dialogs, programmatic modals and loading indicators. | Props: `toaster` (true or options), `confirm`, `modals`, `loading` (true or `{ bar, delay, label }`). | `overlays/hooks.vue` |
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
- | `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
- | `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` |
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
- | `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` |
211
- | `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` |
197
+ | Component | Purpose and when to use it | Main props, models, slots, events | Playground |
198
+ | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------ |
199
+ | `Modal` | Centered dialog for forms and content. Use `Drawer` for a side panel, `useConfirm` for a yes or no question. | Models: `v-model:open`, `v-model:tab`. Props: `title`, `description`, `size` (sm to xl, full, fit, fullscreen), `width`, `minHeight`, `height` (fixed, capped at the viewport), `dismissible`, `hideClose`, `sheet`, `flush`, `fill`, `loading`, `beforeClose(reason)`, `tabs` (tabs in the header), `trail` (breadcrumb title and back button; a long trail stays on one line, the middle crumbs collapse into a "..." menu and the current title truncates), `backLabel`, `guard` (default `true`: closing, or a trail navigation, with a dirty `Form` inside asks to discard first; `beforeClose` runs after), `guardTitle`, `guardMessage`. Slots: default (`{ tab }`), `header`, `actions` (header, before the close button), `footer`, `title-trailing`. Events: `open`, `close`, `afterLeave`, `navigate(index)`. Exposes `close()`, `confirmLeave()`, `dirty`. | `overlays/modal.vue` |
200
+ | `Drawer` | Panel from the side or bottom for details and edit forms. Use `Modal` for short focused dialogs. | Models: `v-model:open`, `v-model:tab`. Props: `title`, `description`, `side` (left, right, bottom), `size` (sm to xl, full), `dismissible`, `hideClose`, `flush`, `fill` (the body content takes the full height, for a table or a grid), `loading`, `beforeClose(reason)`, `tabs`, `trail`, `backLabel`, `guard`, `guardTitle`, `guardMessage` (as `Modal`). Slots like `Modal`. Events: `open`, `close`, `afterLeave`, `navigate(index)`. Exposes `close()`, `confirmLeave()`, `dirty`. | `overlays/drawer.vue` |
201
+ | `ConfirmDialog` | Declarative confirm dialog. Prefer `useConfirm()`. Use this one only when the dialog state lives in the template. | Model: `v-model:open`. Props: `title`, `description`, `confirmLabel`, `cancelLabel`, `tone`, `icon`, `hideCancel`, `onConfirm`. Events: `resolve(confirmed)`, `cancel`, `afterLeave`. | `overlays/confirm-dialog.vue` |
202
+ | `ConfirmHost` | Renders the dialogs of `useConfirm`, `useAlert`, `usePrompt`. `OverlayHost` includes it. Do not mount it alone. | None. | - |
203
+ | `OverlayHost` | One mount point for toasts, confirm dialogs, programmatic modals and loading indicators. | Props: `toaster` (true or options), `confirm`, `modals`, `loading` (true or `{ bar, delay, label }`). | `overlays/hooks.vue` |
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
+ | `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
+ | `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` |
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
+ | `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` |
211
+ | `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
212
 
213
213
  ## Data
214
214
 
package/README.md CHANGED
@@ -520,7 +520,7 @@ On your own elements, `paletteClass(color)` gives the class of a palette name an
520
520
  - `FilterPills` can list active filters: options with `removable: true` render as active pills with a remove button (`removeLabel`, a `'Remove {label}'` template). Clicking the pill emits `select(value)`, the button emits `remove(value)` (and drops the value from the model when it is selected); focus moves to the next pill when the removed one disappears.
521
521
  - `Calendar` takes `dayText: (iso) => string | undefined`, a short line under each day number that is also added to the day's accessible name (availability, prices). The `#day` slot (`{ date, number, text, selected, unavailable, outOfRange, inMonth }`) replaces the cell content; it is decorative, so announced text still comes from `dayText`. Days before `min` or after `max` get the `is-out-of-range` class (and `is-unavailable`, like days rejected by `isDateDisabled`), so the `--k-calendar-out-of-range-*` tokens style them apart from disabled days.
522
522
  - `Separator` takes `description` (or `#description`) under its label, and an `#actions` slot rendered next to them (a small add or edit button). `variant="heading"` (`SeparatorVariant`, `'label' | 'heading'`, default `'label'`) shows the label as a section title on its own (an `h3`, `level` changes it) with the description below and the actions at the end, under one line above instead of the small muted label between two lines. `:lines="false"` (default `true`) hides the lines of either variant. `align` (`SeparatorAlign`, `'start' | 'center'`, default `'start'`) centers the heading title and description. `--k-separator-heading-font-size` (0.9375rem) sizes the heading, `--k-separator-heading-color` (default `--k-text`) colors it, and `--k-separator-label-font-size` (0.75rem) sizes the small label of `variant="label"`, with or without lines.
523
- - `Modal` takes `width` (any CSS length, overrides `size`) and `minHeight` (keeps the height steady while tabs or steps change). The size widths are tokens: `--k-modal-width-sm` (26rem), `--k-modal-width-md` (32rem), `--k-modal-width-lg` (50rem), `--k-modal-width-xl` (64rem).
523
+ - `Modal` takes `width` (any CSS length, overrides `size`), `minHeight` (keeps the height steady while tabs or steps change) and `height` (a fixed height, capped at the viewport: every tab or step has the same size and the body scrolls). The size widths are tokens: `--k-modal-width-sm` (26rem), `--k-modal-width-md` (32rem), `--k-modal-width-lg` (50rem), `--k-modal-width-xl` (64rem).
524
524
  - `Stepper` shows the steps of a wizard: `steps` (`StepperStep[]`: `value`, `label`, `description`, `icon`, `disabled`, `state` `'complete' | 'error'`) and `v-model` for the current value. It renders a `nav` (named by `label`, default "Progress") around an ordered list; the current step has `aria-current="step"`, every step carries a hidden "Step 2 of 4" (`stepper.position`, `positionLabel` overrides it) and its state ("completed", "has errors"). Clickable steps are buttons with one tab stop and arrow keys, Home and End between them. `linear` makes only completed steps (`state: 'complete'` or before the current one) and the current step clickable; `readonly` renders no buttons. `orientation="vertical"` stacks the steps; `size="sm"` is denser. `compact` is `'auto'` by default: below 36rem of container width the labels are visually hidden (still read) and a "Step 2 of 4 Columns" line shows the current step; `true` forces it, `false` turns it off. `:summary="false"` keeps only the numbers in compact mode, without that line (a stepper in a modal header). `select(step)` fires on a click before the model changes.
525
525
 
526
526
  ```vue
@@ -536,7 +536,7 @@ On your own elements, `paletteClass(color)` gives the class of a palette name an
536
536
  - `SelectionBar` shows a plural aware selected count (announced in a live region), select all (`total` plus `@select-all`) and clear (`@clear`) actions, an `#actions` slot and `placement` `inline`, `sticky` or `floating`. With `count` 0 it renders no box (only its live region), so it can sit in a flex toolbar without adding a gap; the first count after mount is announced too. `ListPage` renders it for `#bulk`.
537
537
  - `FilterPills` is generic: the value type comes from the options, `multiple` makes the model an array and `required` drops `null` from it (like `SegmentedControl`). Options take `menu` items (a dropdown trigger showing `valueLabel`) or `panel: true`, which opens a popover with the `#panel-<value>` slot (`{ option, active, toggle, close }`, `panelLabel` names it). The `#pill` slot renders any trigger and its scope has `defaultPill`, a component that renders the built-in pill for that option, so one custom pill does not mean rewriting the others: `<component :is="defaultPill" v-else />`. `FilterPill` is exported so custom triggers match the other pills.
538
538
  - `SegmentedControl` with `required` narrows `v-model` to a non null value. Options take `title` (tooltip and description) and `muted`, and the `#option` slot replaces the content of each option.
539
- - `FileInput` takes `directory` (folder picker; dropped folders are walked, every file keeps its relative path) or `directory="drop"` (the click opens a file picker, dropped folders are still walked), `directoryAction` (an "Upload a folder" button under the dropzone, `directoryActionLabel` renames it) or the `#actions` slot (`{ browse, browseDirectory, disabled }`), `skipHidden` (ignores dot files and dot folders), `list: false` (no file list: picks and drops only emit `add`), `loading` and the `#hint` slot. `add` receives `(files, { entries: [{ file, path }], directories, source, event, dataTransfer })`; `directories` lists every folder path of a folder pick or drop, empty folders included, and `add` also fires for a drop of empty folders. `invalid` fires per file and `reject` once with every rejected file (`(events, detail)`). `acceptMode="hint"` only passes `accept` to the picker and leaves filtering to the host. The component exposes `browse()`, `browseDirectory()`, `addFiles()` and `focus()`.
539
+ - `FileInput` takes `directory` (folder picker; dropped folders are walked, every file keeps its relative path) or `directory="drop"` (the click opens a file picker, dropped folders are still walked), `directoryAction` (an "Upload a folder" button under the dropzone, `directoryActionLabel` renames it) or the `#actions` slot (`{ browse, browseDirectory, disabled }`), `skipHidden` (ignores dot files and dot folders), `list: false` (no file list: picks and drops only emit `add`), `fill` (the dropzone fills the height of its flex column parent, with the icon and the text centered: an import screen), `loading` and the `#hint` slot. `add` receives `(files, { entries: [{ file, path }], directories, source, event, dataTransfer })`; `directories` lists every folder path of a folder pick or drop, empty folders included, and `add` also fires for a drop of empty folders. `invalid` fires per file and `reject` once with every rejected file (`(events, detail)`). `acceptMode="hint"` only passes `accept` to the picker and leaves filtering to the host. The component exposes `browse()`, `browseDirectory()`, `addFiles()` and `focus()`.
540
540
  - `TagList` renders `v-model` (`TagListItem[]`: `value`, `label`, `tone`, `icon`, `removable`, `disabled`) as `Tag` chips in a labelled list (`label`, default "Items"). `removable` (or `removable` per item) adds the remove button; the chip is dropped from the model, `remove(item, index)` fires, focus moves to the neighbor and "Label removed" is announced. `sortable` reorders by pointer drag (the list updates live while dragging, Escape cancels), and the chips become one tab stop: the arrow keys, Home and End move between chips, Alt with an arrow key (or Alt with Home and End) moves the focused chip, Delete removes it, and every move is announced ("Name moved to position 2 of 4", `sortable.moved`). `moveButtons` adds "Move earlier" and "Move later" buttons to every chip, a single pointer alternative to dragging. A disabled item cannot move or be removed. `move({ item, from, to })` fires after each move. `accept` (a MIME type, a list of them, or `(event) => boolean`) makes the list a drop target for native drags from outside: an insertion marker follows the pointer and `itemDrop({ index, dataTransfer, event })` (`@item-drop`, named apart from the native `drop` event) gives the insertion index, so the host inserts the item (`dropEffect`, default `copy`, must match the `effectAllowed` of the source). The `#item` slot (`{ item, index }`) replaces the chip label.
541
541
 
542
542
  ```vue
@@ -9,6 +9,7 @@
9
9
  'is-disabled': control.disabled.value,
10
10
  'is-invalid': control.invalid.value,
11
11
  'is-loading': loading,
12
+ 'is-fill': fill,
12
13
  'has-files': list && files.length > 0
13
14
  },
14
15
  props.class
@@ -169,6 +170,7 @@ const props = defineProps({
169
170
  capture: { type: String, required: false },
170
171
  previews: { type: Boolean, required: false, default: true },
171
172
  size: { type: String, required: false, default: "md" },
173
+ fill: { type: Boolean, required: false },
172
174
  icon: { type: null, required: false, default: "arrow-up-tray" },
173
175
  title: { type: String, required: false },
174
176
  dropText: { type: String, required: false },
@@ -33,6 +33,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
33
33
  capture?: "user" | "environment";
34
34
  previews?: boolean;
35
35
  size?: FieldSize;
36
+ fill?: boolean;
36
37
  icon?: IconName;
37
38
  title?: string | undefined;
38
39
  dropText?: string;
@@ -275,6 +276,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
275
276
  capture?: "user" | "environment";
276
277
  previews?: boolean;
277
278
  size?: FieldSize;
279
+ fill?: boolean;
278
280
  icon?: IconName;
279
281
  title?: string | undefined;
280
282
  dropText?: string;
@@ -133,6 +133,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
133
133
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
134
134
  innerHTML?: string | undefined;
135
135
  color?: string | undefined;
136
+ height?: string;
136
137
  lang?: string | undefined;
137
138
  width?: string;
138
139
  tabindex?: (string | number) | undefined;
@@ -373,6 +374,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
373
374
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
374
375
  innerHTML?: string | undefined;
375
376
  color?: string | undefined;
377
+ height?: string;
376
378
  lang?: string | undefined;
377
379
  width?: string;
378
380
  tabindex?: (string | number) | undefined;
@@ -123,6 +123,7 @@ declare const __VLS_export: import("vue").DefineComponent<Partial<NonNullable<{
123
123
  readonly onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
124
124
  readonly innerHTML?: string | undefined | undefined;
125
125
  readonly color?: string | undefined | undefined;
126
+ readonly height?: string | undefined;
126
127
  readonly lang?: string | undefined | undefined;
127
128
  readonly width?: string | undefined;
128
129
  readonly tabindex?: (string | number) | undefined;
@@ -359,6 +360,7 @@ declare const __VLS_export: import("vue").DefineComponent<Partial<NonNullable<{
359
360
  readonly onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
360
361
  readonly innerHTML?: string | undefined | undefined;
361
362
  readonly color?: string | undefined | undefined;
363
+ readonly height?: string | undefined;
362
364
  readonly lang?: string | undefined | undefined;
363
365
  readonly width?: string | undefined;
364
366
  readonly tabindex?: (string | number) | undefined;
@@ -56,11 +56,13 @@ const props = defineProps({
56
56
  guardTitle: { type: String, required: false },
57
57
  guardMessage: { type: String, required: false },
58
58
  width: { type: String, required: false },
59
- minHeight: { type: String, required: false }
59
+ minHeight: { type: String, required: false },
60
+ height: { type: String, required: false }
60
61
  });
61
62
  const sizeStyle = computed(() => ({
62
63
  "--k-modal-custom-width": props.width,
63
- "--k-modal-min-height": props.minHeight
64
+ "--k-modal-min-height": props.minHeight,
65
+ "--k-modal-height": props.height
64
66
  }));
65
67
  const slots = defineSlots();
66
68
  const slotNames = () => Object.keys(slots);
@@ -23,6 +23,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
23
23
  guardMessage?: string;
24
24
  width?: string;
25
25
  minHeight?: string;
26
+ height?: string;
26
27
  open?: boolean | undefined;
27
28
  tab?: TabItem["value"];
28
29
  key?: PropertyKey | undefined;
@@ -258,6 +259,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
258
259
  guardMessage?: string;
259
260
  width?: string;
260
261
  minHeight?: string;
262
+ height?: string;
261
263
  open?: boolean | undefined;
262
264
  tab?: TabItem["value"];
263
265
  key?: PropertyKey | undefined;
@@ -60,6 +60,7 @@ declare const __VLS_export: <S extends FormSchema, V extends object>(__VLS_props
60
60
  readonly guardMessage?: string | undefined;
61
61
  readonly width?: string | undefined;
62
62
  readonly minHeight?: string | undefined;
63
+ readonly height?: string | undefined;
63
64
  readonly open?: boolean | undefined;
64
65
  readonly tab?: import("../layout/types.ts").TabItem["value"] | undefined;
65
66
  readonly key?: PropertyKey | undefined;
@@ -168,6 +168,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
168
168
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
169
169
  innerHTML?: string | undefined;
170
170
  color?: string | undefined;
171
+ height?: string;
171
172
  lang?: string | undefined;
172
173
  width?: string;
173
174
  tabindex?: (string | number) | undefined;
@@ -423,6 +424,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
423
424
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
424
425
  innerHTML?: string | undefined;
425
426
  color?: string | undefined;
427
+ height?: string;
426
428
  lang?: string | undefined;
427
429
  width?: string;
428
430
  tabindex?: (string | number) | undefined;
@@ -119,6 +119,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
119
119
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
120
120
  innerHTML?: string | undefined;
121
121
  color?: string | undefined;
122
+ height?: string;
122
123
  lang?: string | undefined;
123
124
  width?: string;
124
125
  tabindex?: (string | number) | undefined;
@@ -352,6 +353,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
352
353
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
353
354
  innerHTML?: string | undefined;
354
355
  color?: string | undefined;
356
+ height?: string;
355
357
  lang?: string | undefined;
356
358
  width?: string;
357
359
  tabindex?: (string | number) | undefined;
@@ -34,6 +34,31 @@
34
34
  padding: 1.375rem 1.25rem;
35
35
  }
36
36
 
37
+ .k-file-input.is-fill {
38
+ flex: 1;
39
+ min-height: 0;
40
+ }
41
+
42
+ .k-file-input.is-fill .k-file-input-dropzone {
43
+ flex: 1;
44
+ flex-direction: column;
45
+ justify-content: center;
46
+ gap: 0.875rem;
47
+ padding: 2rem 1.5rem;
48
+ text-align: center;
49
+ }
50
+
51
+ .k-file-input.is-fill .k-file-input-dropzone-text {
52
+ align-items: center;
53
+ gap: 0.25rem;
54
+ }
55
+
56
+ .k-file-input.is-fill .k-file-input-dropzone-icon {
57
+ --k-icon-size: 1.5rem;
58
+ width: 3rem;
59
+ height: 3rem;
60
+ }
61
+
37
62
  .k-file-input-dropzone:hover:not(:disabled) {
38
63
  border-color: var(--k-text-dimmed);
39
64
  background: color-mix(in oklab, var(--k-accent) 3%, var(--k-subtle));
@@ -19,6 +19,9 @@
19
19
  }
20
20
 
21
21
  .k-modal {
22
+ --k-modal-custom-width: initial;
23
+ --k-modal-min-height: initial;
24
+ --k-modal-height: initial;
22
25
  place-items: center;
23
26
  }
24
27
 
@@ -57,6 +60,7 @@
57
60
  flex-direction: column;
58
61
  width: 100%;
59
62
  max-width: var(--k-modal-custom-width, var(--k-modal-width));
63
+ height: var(--k-modal-height, auto);
60
64
  min-height: min(var(--k-modal-min-height, 0px), calc(100dvh - 2rem));
61
65
  max-height: calc(100dvh - 2rem);
62
66
  overflow: hidden;
@@ -4,7 +4,7 @@
4
4
  background: var(--k-surface);
5
5
  }
6
6
 
7
- .k-settings-modal .k-modal-body {
7
+ .k-settings-modal > .k-modal-panel > .k-modal-body {
8
8
  display: flex;
9
9
  overflow: hidden;
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xleddyl/443-components-vue",
3
- "version": "0.16.81",
3
+ "version": "0.16.83",
4
4
  "description": "Compact, scoped dashboard components for Vue and Nuxt",
5
5
  "license": "MIT",
6
6
  "author": "Edoardo Alberti (https://github.com/xleddyl)",