@cjlapao/ui-kit-vue 0.2.31 → 0.2.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +15 -15
- package/dist/index.css +14 -0
- package/dist/index.js +12268 -12233
- package/dist/types/common/theme/Theme.d.ts +12 -7
- package/dist/types/common/theme/glass.d.ts +1 -1
- package/dist/types/vue/src/components/Accordion.vue.d.ts +1 -1
- package/dist/types/vue/src/components/ActivityFeed.vue.d.ts +4 -3
- package/dist/types/vue/src/components/BreakdownCard.vue.d.ts +4 -3
- package/dist/types/vue/src/components/Chat.vue.d.ts +4 -3
- package/dist/types/vue/src/components/CollapsibleHelpText.vue.d.ts +3 -3
- package/dist/types/vue/src/components/CollapsiblePanel.vue.d.ts +1 -1
- package/dist/types/vue/src/components/DetailItemCard.vue.d.ts +4 -3
- package/dist/types/vue/src/components/DynamicFormField.vue.d.ts +4 -3
- package/dist/types/vue/src/components/EmptyState.vue.d.ts +3 -2
- package/dist/types/vue/src/components/Gantt/Gantt.vue.d.ts +4 -0
- package/dist/types/vue/src/components/Gantt/GanttToolbar.vue.d.ts +3 -0
- package/dist/types/vue/src/components/Hero.vue.d.ts +3 -2
- package/dist/types/vue/src/components/InfoRow.vue.d.ts +5 -4
- package/dist/types/vue/src/components/MultiToggle.vue.d.ts +1 -1
- package/dist/types/vue/src/components/PagedPanel.vue.d.ts +4 -3
- package/dist/types/vue/src/components/Panel.test.d.ts +1 -0
- package/dist/types/vue/src/components/Panel.vue.d.ts +3 -4
- package/dist/types/vue/src/components/Stepper.vue.d.ts +1 -1
- package/dist/types/vue/src/components/TimelinePanel/TimelinePanel.vue.d.ts +1 -1
- package/dist/types/vue/src/components/TimelinePanel/types.d.ts +2 -1
- package/dist/types/vue/src/components/Toolbar.vue.d.ts +4 -3
- package/package.json +1 -1
|
@@ -19,6 +19,11 @@ export declare const TRUE_COLORS: readonly ["red", "orange", "amber", "yellow",
|
|
|
19
19
|
* All components, tokens, and utilities must use TrueColor exclusively.
|
|
20
20
|
*/
|
|
21
21
|
export type TrueColor = (typeof TRUE_COLORS)[number];
|
|
22
|
+
/** Container tint is independent of control/status accent colors. */
|
|
23
|
+
export type SurfaceTone = TrueColor | "none";
|
|
24
|
+
export declare const SURFACE_TONES: readonly ["none", "red", "orange", "amber", "yellow", "lime", "green", "emerald", "teal", "cyan", "sky", "blue", "indigo", "violet", "purple", "fuchsia", "rose", "slate", "gray", "zinc", "neutral", "stone"];
|
|
25
|
+
/** A non-tinted surface still needs a real color for controls and focus cues. */
|
|
26
|
+
export declare const getSurfaceAccentColor: (tone: SurfaceTone) => TrueColor;
|
|
22
27
|
/**
|
|
23
28
|
* The fill class for a dot/swatch of each TrueColor: the 500 step in light
|
|
24
29
|
* mode, the 400 step in dark. Literal per colour — never interpolated — so
|
|
@@ -219,7 +224,7 @@ export declare const FIELD_STATUS_CLASSES: Record<"error" | "success", string>;
|
|
|
219
224
|
* (`FormSection`). Kept here so the type and the text that sits on those
|
|
220
225
|
* surfaces are defined once, not per component.
|
|
221
226
|
*/
|
|
222
|
-
export declare const SURFACE_VARIANTS: readonly ["elevated", "outlined", "subtle", "tonal", "default", "glass", "simple", "liquid-glass"];
|
|
227
|
+
export declare const SURFACE_VARIANTS: readonly ["none", "elevated", "outlined", "subtle", "tonal", "default", "glass", "simple", "liquid-glass"];
|
|
223
228
|
export type SurfaceVariant = (typeof SURFACE_VARIANTS)[number];
|
|
224
229
|
/**
|
|
225
230
|
* The button a card surface implies — what a card CTA wears when it is not
|
|
@@ -236,7 +241,7 @@ export declare const SURFACE_TO_BUTTON_VARIANT: Record<SurfaceVariant, ButtonVar
|
|
|
236
241
|
* not enumerate the others. Same list, nine names: the day `SURFACE_VARIANTS`
|
|
237
242
|
* gains a member, eight of them keep working only by luck.
|
|
238
243
|
*/
|
|
239
|
-
export declare const PLAIN_SURFACE_VARIANTS: readonly ["elevated", "outlined", "subtle", "tonal", "default", "glass", "simple", "liquid-glass", "plain"];
|
|
244
|
+
export declare const PLAIN_SURFACE_VARIANTS: readonly ["none", "elevated", "outlined", "subtle", "tonal", "default", "glass", "simple", "liquid-glass", "plain"];
|
|
240
245
|
export type PlainSurfaceVariant = (typeof PLAIN_SURFACE_VARIANTS)[number];
|
|
241
246
|
export type SurfaceTextTokens = {
|
|
242
247
|
/** Section and card headings. */
|
|
@@ -267,7 +272,7 @@ export type SurfaceTriggerTokens = {
|
|
|
267
272
|
/** Complete focus indicator: outline reset, width, inset, colour. */
|
|
268
273
|
focusRing: string;
|
|
269
274
|
};
|
|
270
|
-
export declare const getSurfaceTriggerTokens: (color:
|
|
275
|
+
export declare const getSurfaceTriggerTokens: (color: SurfaceTone) => SurfaceTriggerTokens;
|
|
271
276
|
/**
|
|
272
277
|
* The `CollapsibleHelpText` trigger — the shared surface-trigger tokens plus
|
|
273
278
|
* the accent glyph, icon chip and title line.
|
|
@@ -350,7 +355,7 @@ export declare const SURFACE_VARIANT_FOR_FIELD: Record<InputVariant, SurfaceVari
|
|
|
350
355
|
export declare const isGlassSurface: (variant: PlainSurfaceVariant) => boolean;
|
|
351
356
|
/** The panel tone that follows a field: the field keeps its accent as the
|
|
352
357
|
* selected-day tint either way, so the fill takes the neutral default. */
|
|
353
|
-
export declare const PANEL_TONE_FOR_FIELD:
|
|
358
|
+
export declare const PANEL_TONE_FOR_FIELD: SurfaceTone;
|
|
354
359
|
/**
|
|
355
360
|
* The field surface a container implies — the reverse pairing: composite
|
|
356
361
|
* controls whose rows of inputs sit *inside* a card (the `KeyValueArrayField`)
|
|
@@ -365,7 +370,7 @@ export declare const INPUT_VARIANT_FOR_SURFACE: Record<PlainSurfaceVariant, Inpu
|
|
|
365
370
|
* component — `Panel` and its wrappers — resolves to this same constant, so a
|
|
366
371
|
* default cannot be restated wrongly in one of them.
|
|
367
372
|
*/
|
|
368
|
-
export declare const DEFAULT_SURFACE_TONE:
|
|
373
|
+
export declare const DEFAULT_SURFACE_TONE: SurfaceTone;
|
|
369
374
|
/**
|
|
370
375
|
* The `EmptyState` size for a pane that has its own header — a `Panel`
|
|
371
376
|
* sibling like `PagedPanel` or `TagPanel`. `EmptyState`'s own scale is tuned
|
|
@@ -979,9 +984,9 @@ export interface SurfaceVariantOverrides {
|
|
|
979
984
|
/** Extra classes folded in for `liquid-glass` (vibrancy, glass fill). */
|
|
980
985
|
liquidExtras?: string;
|
|
981
986
|
}
|
|
982
|
-
export declare const getPanelToneStyles: (tone
|
|
987
|
+
export declare const getPanelToneStyles: (tone?: SurfaceTone) => PanelToneConfig;
|
|
983
988
|
/** Shared surface paint, including the four-level background transparency scale. */
|
|
984
|
-
export declare const getSurfaceVariantClasses: (variant: SurfaceVariant, tone:
|
|
989
|
+
export declare const getSurfaceVariantClasses: (variant: SurfaceVariant, tone: SurfaceTone, overrides?: SurfaceVariantOverrides) => string;
|
|
985
990
|
export declare const getStepperTonePalette: (tone: TrueColor) => StepperToneConfig;
|
|
986
991
|
export declare const getBadgeColorClasses: (color: TrueColor) => string;
|
|
987
992
|
export declare const getPillColorClasses: (color: TrueColor, variant: "solid" | "soft" | "outline") => {
|
|
@@ -63,7 +63,7 @@ export declare const getGlassFillClass: (color: TrueColor, opacity: GlassOpacity
|
|
|
63
63
|
* fill" sat in different files with different scales and no shared safelist.
|
|
64
64
|
* The steps here are the ones `scripts/generate-safelist.mjs` emits.
|
|
65
65
|
*/
|
|
66
|
-
export declare const getSurfaceGlassFillClass: (color: TrueColor, opacity: GlassOpacity) => string;
|
|
66
|
+
export declare const getSurfaceGlassFillClass: (color: TrueColor | "none", opacity: GlassOpacity) => string;
|
|
67
67
|
/**
|
|
68
68
|
* Halo specular for a container, as stacked full-bleed gradient layers for a
|
|
69
69
|
* `background-image`.
|
|
@@ -58,7 +58,7 @@ declare const _default: import("vue").DefineComponent<AccordionProps, {}, {}, {}
|
|
|
58
58
|
}>, {
|
|
59
59
|
size: ControlSize;
|
|
60
60
|
loading: boolean;
|
|
61
|
-
tone: import("
|
|
61
|
+
tone: import("..").SurfaceTone;
|
|
62
62
|
disabled: boolean;
|
|
63
63
|
variant: import("./Panel.vue").PanelVariant;
|
|
64
64
|
corner: import("./Panel.vue").PanelCorner;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ButtonVariant } from "./Button.vue";
|
|
2
2
|
import { type SurfaceCorner, type SurfacePadding, type SurfaceVariant, type TrueColor } from "../theme";
|
|
3
|
+
import { type SurfaceTone } from "../theme/Theme";
|
|
3
4
|
/** One entry in the feed. */
|
|
4
5
|
export interface ActivityFeedItem {
|
|
5
6
|
id: string;
|
|
@@ -65,7 +66,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
66
|
/** Surface, as every card in the kit takes it. @default "outlined" */
|
|
66
67
|
variant?: SurfaceVariant;
|
|
67
68
|
/** @default "neutral" */
|
|
68
|
-
tone?:
|
|
69
|
+
tone?: SurfaceTone;
|
|
69
70
|
/** @default "md" */
|
|
70
71
|
padding?: SurfacePadding;
|
|
71
72
|
corner?: SurfaceCorner;
|
|
@@ -113,7 +114,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
113
114
|
/** Surface, as every card in the kit takes it. @default "outlined" */
|
|
114
115
|
variant?: SurfaceVariant;
|
|
115
116
|
/** @default "neutral" */
|
|
116
|
-
tone?:
|
|
117
|
+
tone?: SurfaceTone;
|
|
117
118
|
/** @default "md" */
|
|
118
119
|
padding?: SurfacePadding;
|
|
119
120
|
corner?: SurfaceCorner;
|
|
@@ -124,7 +125,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
124
125
|
}>, {
|
|
125
126
|
title: string;
|
|
126
127
|
loading: boolean;
|
|
127
|
-
tone:
|
|
128
|
+
tone: SurfaceTone;
|
|
128
129
|
filters: ActivityFeedFilter[];
|
|
129
130
|
variant: SurfaceVariant;
|
|
130
131
|
tag: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ButtonVariant } from "./Button.vue";
|
|
2
2
|
import { type SurfaceCorner, type SurfacePadding, type SurfaceVariant, type TrueColor } from "../theme";
|
|
3
|
+
import { type SurfaceTone } from "../theme/Theme";
|
|
3
4
|
/** One slice of the breakdown — its tone paints both the slice and the dot. */
|
|
4
5
|
export interface BreakdownItem {
|
|
5
6
|
id: string;
|
|
@@ -36,7 +37,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
37
|
/** Surface, as every card in the kit takes it. @default "outlined" */
|
|
37
38
|
variant?: SurfaceVariant;
|
|
38
39
|
/** @default "neutral" */
|
|
39
|
-
tone?:
|
|
40
|
+
tone?: SurfaceTone;
|
|
40
41
|
/** @default "md" */
|
|
41
42
|
padding?: SurfacePadding;
|
|
42
43
|
corner?: SurfaceCorner;
|
|
@@ -63,7 +64,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
63
64
|
/** Surface, as every card in the kit takes it. @default "outlined" */
|
|
64
65
|
variant?: SurfaceVariant;
|
|
65
66
|
/** @default "neutral" */
|
|
66
|
-
tone?:
|
|
67
|
+
tone?: SurfaceTone;
|
|
67
68
|
/** @default "md" */
|
|
68
69
|
padding?: SurfacePadding;
|
|
69
70
|
corner?: SurfaceCorner;
|
|
@@ -72,7 +73,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
72
73
|
}>, {
|
|
73
74
|
caption: string;
|
|
74
75
|
loading: boolean;
|
|
75
|
-
tone:
|
|
76
|
+
tone: SurfaceTone;
|
|
76
77
|
variant: SurfaceVariant;
|
|
77
78
|
padding: SurfacePadding;
|
|
78
79
|
stats: BreakdownStat[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { type SurfaceTone } from "../theme/Theme";
|
|
1
2
|
import type { ChatEvent, ChatModel, ChatStorage } from "../chat";
|
|
2
|
-
import type { SurfacePadding
|
|
3
|
+
import type { SurfacePadding } from "../theme";
|
|
3
4
|
export interface ChatProps {
|
|
4
5
|
/**
|
|
5
6
|
* The persistence contract — bring your own.
|
|
@@ -27,7 +28,7 @@ export interface ChatProps {
|
|
|
27
28
|
/** @default "outlined" */
|
|
28
29
|
variant?: "outlined" | "subtle" | "elevated" | "tonal" | "glass";
|
|
29
30
|
/** @default "neutral" */
|
|
30
|
-
tone?:
|
|
31
|
+
tone?: SurfaceTone;
|
|
31
32
|
/** @default "none" */
|
|
32
33
|
padding?: SurfacePadding;
|
|
33
34
|
}
|
|
@@ -37,7 +38,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatProps,
|
|
|
37
38
|
onEvent?: ((payload: ChatEvent) => any) | undefined;
|
|
38
39
|
}>, {
|
|
39
40
|
height: number | string;
|
|
40
|
-
tone:
|
|
41
|
+
tone: SurfaceTone;
|
|
41
42
|
variant: "outlined" | "subtle" | "elevated" | "tonal" | "glass";
|
|
42
43
|
placeholder: string;
|
|
43
44
|
storage: ChatStorage;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type SurfaceTone } from "../theme/Theme";
|
|
2
2
|
export interface CollapsibleHelpTextProps {
|
|
3
3
|
title?: string;
|
|
4
4
|
text: string;
|
|
5
5
|
maxLength?: number;
|
|
6
6
|
showIcon?: boolean;
|
|
7
7
|
icon?: string;
|
|
8
|
-
tone?:
|
|
8
|
+
tone?: SurfaceTone;
|
|
9
9
|
variant?: "card" | "plain";
|
|
10
10
|
}
|
|
11
11
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CollapsibleHelpTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CollapsibleHelpTextProps> & Readonly<{}>, {
|
|
12
12
|
icon: string;
|
|
13
|
-
tone:
|
|
13
|
+
tone: SurfaceTone;
|
|
14
14
|
variant: "card" | "plain";
|
|
15
15
|
showIcon: boolean;
|
|
16
16
|
maxLength: number;
|
|
@@ -19,7 +19,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Collapsibl
|
|
|
19
19
|
}>, {
|
|
20
20
|
expanded: boolean;
|
|
21
21
|
loading: boolean;
|
|
22
|
-
tone: import("
|
|
22
|
+
tone: import("../index.js").SurfaceTone;
|
|
23
23
|
disabled: boolean;
|
|
24
24
|
variant: import("./Panel.vue").PanelVariant;
|
|
25
25
|
corner: import("./Panel.vue").PanelCorner;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { type SurfaceTone } from "../theme/Theme";
|
|
1
2
|
import type { PanelCorner, PanelPadding, PanelSpecularMode } from "./Panel.vue";
|
|
2
3
|
import type { GlassOpacity, GlassVibrancy } from "../theme/glass";
|
|
3
|
-
import type { PlainSurfaceVariant
|
|
4
|
+
import type { PlainSurfaceVariant } from "../theme/Theme";
|
|
4
5
|
/** Every container surface, plus `plain` for a bare row inside a list. */
|
|
5
6
|
export type DetailItemCardVariant = PlainSurfaceVariant;
|
|
6
7
|
export type DetailItemCardBadgesAlignment = "right" | "bottom" | "bottom-end";
|
|
@@ -20,7 +21,7 @@ export interface DetailItemCardProps {
|
|
|
20
21
|
disabled?: boolean;
|
|
21
22
|
/** @default "plain" — this is normally a row inside a list. */
|
|
22
23
|
variant?: DetailItemCardVariant;
|
|
23
|
-
tone?:
|
|
24
|
+
tone?: SurfaceTone;
|
|
24
25
|
corner?: PanelCorner;
|
|
25
26
|
padding?: PanelPadding;
|
|
26
27
|
glassOpacity?: GlassOpacity;
|
|
@@ -34,7 +35,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DetailItem
|
|
|
34
35
|
onToggle?: ((expanded: boolean) => any) | undefined;
|
|
35
36
|
onSelect?: (() => any) | undefined;
|
|
36
37
|
}>, {
|
|
37
|
-
tone:
|
|
38
|
+
tone: SurfaceTone;
|
|
38
39
|
clickable: boolean;
|
|
39
40
|
disabled: boolean;
|
|
40
41
|
variant: DetailItemCardVariant;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type SurfaceTone } from "../theme/Theme";
|
|
1
2
|
import { type ControlSize, type InputVariant, type SurfaceCorner, type SurfacePadding, type TrueColor } from "../theme/Theme";
|
|
2
3
|
import type { KeyValuePair } from "./KeyValueArrayField.vue";
|
|
3
4
|
import type { CapsuleBlueprintParameter } from "../../../common/types/CapsuleBlueprint";
|
|
@@ -6,7 +7,7 @@ import type { CapsuleBlueprintParameter } from "../../../common/types/CapsuleBlu
|
|
|
6
7
|
* app already frames. A form of these used to force one bordered card per
|
|
7
8
|
* parameter, with no way to turn it off.
|
|
8
9
|
*/
|
|
9
|
-
export declare const DYNAMIC_FORM_FIELD_VARIANTS: readonly ["elevated", "outlined", "subtle", "tonal", "default", "glass", "simple", "liquid-glass", "plain"];
|
|
10
|
+
export declare const DYNAMIC_FORM_FIELD_VARIANTS: readonly ["none", "elevated", "outlined", "subtle", "tonal", "default", "glass", "simple", "liquid-glass", "plain"];
|
|
10
11
|
export type DynamicFormFieldVariant = (typeof DYNAMIC_FORM_FIELD_VARIANTS)[number];
|
|
11
12
|
/**
|
|
12
13
|
* Everything a blueprint parameter can hold.
|
|
@@ -29,7 +30,7 @@ export interface DynamicFormFieldProps {
|
|
|
29
30
|
size?: ControlSize;
|
|
30
31
|
/** Surface of the card around the field. @default "outlined" */
|
|
31
32
|
variant?: DynamicFormFieldVariant;
|
|
32
|
-
tone?:
|
|
33
|
+
tone?: SurfaceTone;
|
|
33
34
|
corner?: SurfaceCorner;
|
|
34
35
|
/** @default "md" */
|
|
35
36
|
padding?: SurfacePadding;
|
|
@@ -58,7 +59,7 @@ declare const _default: import("vue").DefineComponent<DynamicFormFieldProps, {},
|
|
|
58
59
|
onChange?: ((serviceName: string, key: string, value: DynamicFormFieldValue, triggerDependencyEvaluation: boolean) => any) | undefined;
|
|
59
60
|
}>, {
|
|
60
61
|
size: ControlSize;
|
|
61
|
-
tone:
|
|
62
|
+
tone: SurfaceTone;
|
|
62
63
|
disabled: boolean;
|
|
63
64
|
variant: DynamicFormFieldVariant;
|
|
64
65
|
corner: SurfaceCorner;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type SurfaceTone } from "../theme/Theme";
|
|
1
2
|
import type { VNode } from "vue";
|
|
2
3
|
import type { ButtonVariant, ButtonSize, ButtonColor } from "./Button.vue";
|
|
3
4
|
import { type ControlSize, type SurfaceCorner, type SurfacePadding, type TrueColor } from "../theme/Theme";
|
|
@@ -7,9 +8,9 @@ import type { GlassOpacity, GlassVibrancy, SpecularMode } from "../theme/glass";
|
|
|
7
8
|
* card the app already owns — the common case, and previously only reachable
|
|
8
9
|
* by setting `disableBorder` *and* `transparentBackground` together.
|
|
9
10
|
*/
|
|
10
|
-
export declare const EMPTY_STATE_VARIANTS: readonly ["elevated", "outlined", "subtle", "tonal", "default", "glass", "simple", "liquid-glass", "plain"];
|
|
11
|
+
export declare const EMPTY_STATE_VARIANTS: readonly ["none", "elevated", "outlined", "subtle", "tonal", "default", "glass", "simple", "liquid-glass", "plain"];
|
|
11
12
|
export type EmptyStateVariant = (typeof EMPTY_STATE_VARIANTS)[number];
|
|
12
|
-
export type EmptyStateTone =
|
|
13
|
+
export type EmptyStateTone = SurfaceTone;
|
|
13
14
|
export type EmptyStateSize = ControlSize;
|
|
14
15
|
/** @deprecated Use `size`, which now drives the whole type scale. */
|
|
15
16
|
export type TextSize = ControlSize;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SurfaceTone } from "../../theme/Theme";
|
|
1
2
|
import type { GanttBarGeometry, GanttColumn, GanttDate, GanttLabels, GanttLane, GanttLink, GanttSnap, GanttTask, TrueColor } from "../../../../common/gantt";
|
|
2
3
|
import type { VNodeChild } from "vue";
|
|
3
4
|
import type { PanelCorner, PanelPadding, PanelVariant } from "../Panel.vue";
|
|
@@ -64,6 +65,8 @@ export interface GanttProps {
|
|
|
64
65
|
* @default "elevated"
|
|
65
66
|
*/
|
|
66
67
|
variant?: GanttVariant;
|
|
68
|
+
/** Container tint, separate from task accent colors. @default "none" */
|
|
69
|
+
tone?: SurfaceTone;
|
|
67
70
|
/**
|
|
68
71
|
* Corner radius of the panel surface — the shared container scale
|
|
69
72
|
* (same `corner` vocabulary as Panel).
|
|
@@ -137,6 +140,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<GanttProps
|
|
|
137
140
|
}>, {
|
|
138
141
|
height: number | string;
|
|
139
142
|
loading: boolean;
|
|
143
|
+
tone: SurfaceTone;
|
|
140
144
|
color: TrueColor;
|
|
141
145
|
variant: GanttVariant;
|
|
142
146
|
corner: GanttCorner;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { SurfaceTone } from "../../theme/Theme";
|
|
1
2
|
import type { GANTT_ZOOM_PRESET } from "../../../../common/gantt";
|
|
2
3
|
import type { SurfaceVariant } from "../../theme/Theme";
|
|
3
4
|
export interface GanttToolbarProps {
|
|
4
5
|
/** Gantt surface variant the pill should match. @default "elevated" */
|
|
5
6
|
variant?: SurfaceVariant;
|
|
7
|
+
tone?: SurfaceTone;
|
|
6
8
|
zoom: number;
|
|
7
9
|
presets: GANTT_ZOOM_PRESET[];
|
|
8
10
|
}
|
|
@@ -17,6 +19,7 @@ declare const _default: import("vue").DefineComponent<GanttToolbarProps, {}, {},
|
|
|
17
19
|
"onZoom-to"?: ((value: number) => any) | undefined;
|
|
18
20
|
"onZoom-by"?: ((factor: number) => any) | undefined;
|
|
19
21
|
}>, {
|
|
22
|
+
tone: SurfaceTone;
|
|
20
23
|
variant: SurfaceVariant;
|
|
21
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
25
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type SurfaceTone } from "../theme/Theme";
|
|
1
2
|
import type { VNode } from "vue";
|
|
2
3
|
import { type ControlSize, type GlowIntensity, type SurfaceCorner, type SurfacePadding, type TrueColor } from "../theme/Theme";
|
|
3
4
|
import type { PanelDecoration } from "./Panel.vue";
|
|
@@ -7,7 +8,7 @@ import type { IconName } from "../icons/registry";
|
|
|
7
8
|
* component's own reason to exist — the same shape `EmptyState` uses for its
|
|
8
9
|
* extra `plain`.
|
|
9
10
|
*/
|
|
10
|
-
export declare const HERO_VARIANTS: readonly ["elevated", "outlined", "subtle", "tonal", "default", "glass", "simple", "liquid-glass", "gradient"];
|
|
11
|
+
export declare const HERO_VARIANTS: readonly ["none", "elevated", "outlined", "subtle", "tonal", "default", "glass", "simple", "liquid-glass", "gradient"];
|
|
11
12
|
export type HeroVariant = (typeof HERO_VARIANTS)[number];
|
|
12
13
|
/** The shared control scale. Both were bespoke unions, and the subtitle's was
|
|
13
14
|
* truncated to three members, so a hero could not be sized past `md`. */
|
|
@@ -32,7 +33,7 @@ export interface HeroProps {
|
|
|
32
33
|
/** Registry icon name, or a node. Omit it and the slot is not drawn. */
|
|
33
34
|
icon?: IconName | VNode;
|
|
34
35
|
/** @default "blue" */
|
|
35
|
-
tone?:
|
|
36
|
+
tone?: SurfaceTone;
|
|
36
37
|
/** Alias for `tone`, matching the rest of the kit. */
|
|
37
38
|
color?: TrueColor;
|
|
38
39
|
/** @default "gradient" */
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type SurfaceTone } from "../theme/Theme";
|
|
2
|
+
import { type ControlSize, type PlainSurfaceVariant, type SurfaceCorner, type SurfacePadding } from "../theme/Theme";
|
|
2
3
|
import type { GlassOpacity, GlassVibrancy } from "../theme/glass";
|
|
3
4
|
/**
|
|
4
5
|
* Every container surface, plus `plain` for a row dropped straight into a card
|
|
5
6
|
* the app already owns — which is where an `InfoRow` normally lives, so it is
|
|
6
7
|
* the default.
|
|
7
8
|
*/
|
|
8
|
-
export declare const INFO_ROW_VARIANTS: readonly ["elevated", "outlined", "subtle", "tonal", "default", "glass", "simple", "liquid-glass", "plain"];
|
|
9
|
+
export declare const INFO_ROW_VARIANTS: readonly ["none", "elevated", "outlined", "subtle", "tonal", "default", "glass", "simple", "liquid-glass", "plain"];
|
|
9
10
|
export type InfoRowVariant = PlainSurfaceVariant;
|
|
10
11
|
/** The shared control scale. Was a component-local `xs | sm | md | lg`. */
|
|
11
12
|
export type InfoRowSize = ControlSize;
|
|
@@ -59,7 +60,7 @@ export interface InfoRowProps {
|
|
|
59
60
|
*/
|
|
60
61
|
variant?: InfoRowVariant;
|
|
61
62
|
/** Accent for the hover wash, the focus ring and the glass tint. @default "blue" */
|
|
62
|
-
tone?:
|
|
63
|
+
tone?: SurfaceTone;
|
|
63
64
|
/** Corner radius when `variant` is not `plain`. */
|
|
64
65
|
corner?: SurfaceCorner;
|
|
65
66
|
/** Vertical padding override. When omitted, padding is derived from `size`. */
|
|
@@ -113,7 +114,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<InfoRowPro
|
|
|
113
114
|
}>, {
|
|
114
115
|
size: InfoRowSize;
|
|
115
116
|
loading: boolean;
|
|
116
|
-
tone:
|
|
117
|
+
tone: SurfaceTone;
|
|
117
118
|
variant: InfoRowVariant;
|
|
118
119
|
corner: SurfaceCorner;
|
|
119
120
|
loaderType: InfoRowLoader;
|
|
@@ -15,7 +15,7 @@ export type MultiToggleShape = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full
|
|
|
15
15
|
* *indicator* rather than the track and had no relationship to anything else
|
|
16
16
|
* in the kit.
|
|
17
17
|
*/
|
|
18
|
-
export declare const MULTI_TOGGLE_VARIANTS: readonly ["elevated", "outlined", "subtle", "tonal", "default", "glass", "simple", "liquid-glass"];
|
|
18
|
+
export declare const MULTI_TOGGLE_VARIANTS: readonly ["none", "elevated", "outlined", "subtle", "tonal", "default", "glass", "simple", "liquid-glass"];
|
|
19
19
|
export type MultiToggleVariant = SurfaceVariant;
|
|
20
20
|
/**
|
|
21
21
|
* How the active segment is drawn. This is what the old `variant` union was
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { type SurfaceTone } from "../theme/Theme";
|
|
1
2
|
import type { VNodeChild } from "vue";
|
|
2
3
|
import type { PanelProps } from "./Panel.vue";
|
|
3
|
-
import type { ControlSize
|
|
4
|
+
import type { ControlSize } from "../theme/Theme";
|
|
4
5
|
/**
|
|
5
6
|
* The kit's three loader treatments, with `skeleton` the default — a
|
|
6
7
|
* placeholder shaped like the panel's own content keeps the block at its real
|
|
@@ -31,7 +32,7 @@ export interface PagedPanelProps extends Omit<PanelProps, "title" | "subtitle" |
|
|
|
31
32
|
/** Copy for the default empty state. @default "No data available." */
|
|
32
33
|
emptyMessage?: string;
|
|
33
34
|
/** Accent for the nav buttons. @default "blue" */
|
|
34
|
-
tone?:
|
|
35
|
+
tone?: SurfaceTone;
|
|
35
36
|
/** Scale of the nav buttons and header type. @default "md" */
|
|
36
37
|
size?: ControlSize;
|
|
37
38
|
/** Controlled page index. Omit for uncontrolled paging. */
|
|
@@ -49,7 +50,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PagedPanel
|
|
|
49
50
|
}>, {
|
|
50
51
|
size: ControlSize;
|
|
51
52
|
loading: boolean;
|
|
52
|
-
tone:
|
|
53
|
+
tone: SurfaceTone;
|
|
53
54
|
loaderType: PagedPanelLoader;
|
|
54
55
|
bare: boolean;
|
|
55
56
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { CSSProperties, VNode } from "vue";
|
|
2
2
|
import type { ButtonProps } from "./Button.vue";
|
|
3
3
|
import type { LoaderProps } from "./Loader.vue";
|
|
4
|
-
import type { SurfaceCorner, SurfacePadding, SurfaceVariant, SurfaceTransparency, TrueColor } from "../theme/Theme";
|
|
4
|
+
import type { SurfaceCorner, SurfacePadding, SurfaceVariant, SurfaceTone, SurfaceTransparency, TrueColor } from "../theme/Theme";
|
|
5
5
|
/**
|
|
6
6
|
* Aliased from the shared theme rather than redeclared, so the Vue and React
|
|
7
7
|
* kits cannot drift. These were three separate hand-written unions; the corner
|
|
8
8
|
* one had no `rounded-xl` and its `pill` duplicated `rounded-lg`.
|
|
9
9
|
*/
|
|
10
10
|
export type PanelVariant = SurfaceVariant;
|
|
11
|
-
export type PanelTone =
|
|
11
|
+
export type PanelTone = SurfaceTone;
|
|
12
12
|
export type PanelDecoration = "none" | "gradient" | "shapes" | "both";
|
|
13
13
|
export type PanelMediaPlacement = "top" | "start" | "end" | "overlay";
|
|
14
14
|
export type PanelPadding = SurfacePadding;
|
|
@@ -35,7 +35,7 @@ export interface PanelProps {
|
|
|
35
35
|
actionLayout?: PanelActionLayout;
|
|
36
36
|
variant?: PanelVariant;
|
|
37
37
|
transparency?: SurfaceTransparency;
|
|
38
|
-
tone?:
|
|
38
|
+
tone?: SurfaceTone;
|
|
39
39
|
padding?: PanelPadding;
|
|
40
40
|
corner?: PanelCorner;
|
|
41
41
|
fullWidth?: boolean;
|
|
@@ -110,7 +110,6 @@ export interface PanelProps {
|
|
|
110
110
|
export declare const paddingStyles: Record<PanelPadding, string>;
|
|
111
111
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PanelProps> & Readonly<{}>, {
|
|
112
112
|
loading: boolean;
|
|
113
|
-
tone: TrueColor;
|
|
114
113
|
disabled: boolean;
|
|
115
114
|
variant: PanelVariant;
|
|
116
115
|
corner: PanelCorner;
|
|
@@ -99,7 +99,7 @@ declare const _default: import("vue").DefineComponent<StepperProps, {}, {}, {},
|
|
|
99
99
|
interactive: boolean;
|
|
100
100
|
size: ControlSize;
|
|
101
101
|
loading: boolean;
|
|
102
|
-
tone: import("
|
|
102
|
+
tone: import("../index.js").SurfaceTone;
|
|
103
103
|
disabled: boolean;
|
|
104
104
|
variant: import("./Panel.vue").PanelVariant;
|
|
105
105
|
corner: import("./Panel.vue").PanelCorner;
|
|
@@ -3,7 +3,7 @@ import type { TimelinePanelProps } from "./types";
|
|
|
3
3
|
import type { PanelVariant } from "../Panel.vue";
|
|
4
4
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<TimelinePanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TimelinePanelProps> & Readonly<{}>, {
|
|
5
5
|
loading: boolean;
|
|
6
|
-
tone: import("
|
|
6
|
+
tone: import("../../index.js").SurfaceTone;
|
|
7
7
|
variant: PanelVariant;
|
|
8
8
|
corner: import("./types").TimelinePanelCorner;
|
|
9
9
|
padding: PanelPadding;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SurfaceTone } from "../../theme/Theme";
|
|
1
2
|
import type { VNode, VNodeChild } from "vue";
|
|
2
3
|
import type { ButtonVariant, ButtonSize } from "../Button.vue";
|
|
3
4
|
import type { TrueColor } from "../../theme/Theme";
|
|
@@ -69,7 +70,7 @@ export interface TimelinePanelProps {
|
|
|
69
70
|
/** Timeline items */
|
|
70
71
|
items: TimelinePanelItem[];
|
|
71
72
|
variant?: PanelVariant;
|
|
72
|
-
tone?:
|
|
73
|
+
tone?: SurfaceTone;
|
|
73
74
|
padding?: PanelPadding;
|
|
74
75
|
corner?: PanelCorner;
|
|
75
76
|
/** Color of the connecting vertical line */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type SurfaceTone } from "../theme/Theme";
|
|
2
|
+
import { type SurfaceCorner, type SurfacePadding, type SurfaceVariant } from "../theme/Theme";
|
|
2
3
|
import { type GlassOpacity, type GlassVibrancy } from "../theme/glass";
|
|
3
4
|
/**
|
|
4
5
|
* A bar that groups the actions for the content beside it — PrimeVue's
|
|
@@ -21,7 +22,7 @@ interface ToolbarProps {
|
|
|
21
22
|
*/
|
|
22
23
|
variant?: SurfaceVariant;
|
|
23
24
|
/** Accent for the tinted and translucent variants. @default "neutral" */
|
|
24
|
-
tone?:
|
|
25
|
+
tone?: SurfaceTone;
|
|
25
26
|
/**
|
|
26
27
|
* Inset around the regions, on the shared container scale. A bar wants it
|
|
27
28
|
* small; `none` lets a toolbar bleed flush into the content it serves.
|
|
@@ -46,7 +47,7 @@ type __VLS_Slots = {} & {
|
|
|
46
47
|
default?: (props: typeof __VLS_7) => any;
|
|
47
48
|
};
|
|
48
49
|
declare const __VLS_component: import("vue").DefineComponent<ToolbarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToolbarProps> & Readonly<{}>, {
|
|
49
|
-
tone:
|
|
50
|
+
tone: SurfaceTone;
|
|
50
51
|
variant: SurfaceVariant;
|
|
51
52
|
corner: SurfaceCorner;
|
|
52
53
|
glassOpacity: GlassOpacity;
|