@xleddyl/443-components-vue 0.16.41 → 0.16.43
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 +2 -2
- package/dist/components/core/palette.d.ts +2 -2
- package/dist/components/core/types.d.ts +1 -0
- package/dist/components/overlays/types.d.ts +2 -2
- package/dist/grid/data-grid.css +3 -1
- package/dist/styles/templates/settings-modal.css +1 -1
- package/dist/styles/utilities.css +4 -0
- package/package.json +1 -1
package/CATALOG.md
CHANGED
|
@@ -196,7 +196,7 @@ Mount `OverlayHost` once for the imperative hooks (see [Composables](#composable
|
|
|
196
196
|
| `ConfirmHost` | Renders the dialogs of `useConfirm`, `useAlert`, `usePrompt`. `OverlayHost` includes it. Do not mount it alone. | None. | - |
|
|
197
197
|
| `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` |
|
|
198
198
|
| `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` |
|
|
199
|
-
| `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 dot), `to`, `href`, `tone: danger`, `shortcut`, `disabled`, `children`, `onSelect`; also `type`: checkbox, radio, label, separator), `placement`, `offset`, `matchTriggerWidth`, `minWidth`. Slot: default (the trigger). Event: `select`.
|
|
199
|
+
| `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 dot, or `muted` for a grey dot of an empty state), `to`, `href`, `tone: danger`, `shortcut`, `disabled`, `children`, `onSelect`; also `type`: checkbox, radio, label, separator), `placement`, `offset`, `matchTriggerWidth`, `minWidth`. Slot: default (the trigger). Event: `select`. | `overlays/dropdown-menu.vue` |
|
|
200
200
|
| `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` |
|
|
201
201
|
| `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` |
|
|
202
202
|
| `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` |
|
|
@@ -324,7 +324,7 @@ Chart helpers: `useChartColors`, `readChartColors`, `withAlpha`, `registerChartM
|
|
|
324
324
|
|
|
325
325
|
## Palette
|
|
326
326
|
|
|
327
|
-
`PALETTE_COLORS` is a categorical palette of 12 colors (`--k-palette-<name>` tokens, light and dark). `paletteColor(key)` gives a stable color for a string, `paletteClass(color)` the class that sets `--k-palette` and `--k-palette-text` on your own elements. `k-palette-dot` with that class draws a small dot of the color.
|
|
327
|
+
`PALETTE_COLORS` is a categorical palette of 12 colors (`--k-palette-<name>` tokens, light and dark). `paletteColor(key)` gives a stable color for a string, `paletteClass(color)` the class that sets `--k-palette` and `--k-palette-text` on your own elements. `paletteClass('muted')` (class `k-palette-muted`) is a grey for an empty or missing state, outside the palette. `k-palette-dot` with that class draws a small dot of the color.
|
|
328
328
|
|
|
329
329
|
## Composables
|
|
330
330
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PaletteColor } from './types';
|
|
1
|
+
import type { DotColor, PaletteColor } from './types';
|
|
2
2
|
export declare const PALETTE_COLORS: readonly ["blue", "green", "amber", "violet", "pink", "teal", "orange", "cyan", "indigo", "lime", "red", "slate"];
|
|
3
3
|
export declare function paletteColor(key: string): PaletteColor;
|
|
4
|
-
export declare function paletteClass(color:
|
|
4
|
+
export declare function paletteClass(color: DotColor | undefined): string | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type ButtonSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
2
2
|
export type Tone = 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger';
|
|
3
3
|
export type PaletteColor = 'blue' | 'green' | 'amber' | 'violet' | 'pink' | 'teal' | 'orange' | 'cyan' | 'indigo' | 'lime' | 'red' | 'slate';
|
|
4
|
+
export type DotColor = PaletteColor | 'muted';
|
|
4
5
|
export type ButtonVariant = 'solid' | 'soft' | 'subtle' | 'outline' | 'ghost' | 'link';
|
|
5
6
|
export type FieldSize = 'sm' | 'md' | 'lg';
|
|
6
7
|
export type LinkTarget = string | Record<string, unknown>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LinkTarget, PaletteColor, Tone } from '../core/types';
|
|
1
|
+
import type { DotColor, LinkTarget, PaletteColor, Tone } from '../core/types';
|
|
2
2
|
import type { IconName } from '../../composables/useIcons';
|
|
3
3
|
import type { AnchorTarget, Placement, Side, VirtualAnchor } from '../../internal/floating/position';
|
|
4
4
|
export type { AnchorTarget as OverlayAnchorTarget, Placement as OverlayPlacement, Side as OverlaySide, VirtualAnchor as OverlayVirtualAnchor, };
|
|
@@ -31,7 +31,7 @@ interface MenuEntryBase {
|
|
|
31
31
|
disabled?: boolean;
|
|
32
32
|
shortcut?: string;
|
|
33
33
|
description?: string;
|
|
34
|
-
color?:
|
|
34
|
+
color?: DotColor;
|
|
35
35
|
}
|
|
36
36
|
export interface MenuActionItem extends MenuEntryBase {
|
|
37
37
|
type?: 'item';
|
package/dist/grid/data-grid.css
CHANGED
|
@@ -58,7 +58,9 @@
|
|
|
58
58
|
background: var(--k-hover);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.k-data-grid-active-filters
|
|
61
|
+
.k-data-grid-active-filters
|
|
62
|
+
.k-filter-pill-group:has(.k-filter-pill.is-active)
|
|
63
|
+
> .k-filter-pill-remove {
|
|
62
64
|
color: var(--k-text-muted);
|
|
63
65
|
}
|
|
64
66
|
|
package/package.json
CHANGED