@leavepulse/ui 0.22.22 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{LpAddressInput-peTpNSJK.js → LpAddressInput-BTqnUXZG.js} +1 -1
- package/dist/chunks/{LpAvatar-B1Ez0ZAx.js → LpAvatar-CzCE5cXg.js} +30 -8
- package/dist/chunks/LpBreadcrumbs-5uvViCXi.js +60 -0
- package/dist/chunks/{LpConfirmDialog-DOU_zaTI.js → LpConfirmDialog-CObRah9c.js} +10 -5
- package/dist/chunks/LpEmptyState-BV3q7Qyi.js +49 -0
- package/dist/chunks/{LpFileTree-Cw50eG_y.js → LpFileTree-nU1wRRxZ.js} +2 -2
- package/dist/chunks/{LpFileTreeNode-DFg4PhOK.js → LpFileTreeNode-D7WgUPcJ.js} +23 -21
- package/dist/chunks/{LpInput-BfLIWV-P.js → LpInput-jwqXlAy0.js} +5 -2
- package/dist/chunks/LpLink-Bu01SZzB.js +51 -0
- package/dist/chunks/{LpNotificationBell-a08cl0yY.js → LpNotificationBell-X1M30e0X.js} +1 -1
- package/dist/chunks/{LpPasswordInput-BfjDrvZq.js → LpPasswordInput-Bmo6q9Kd.js} +11 -3
- package/dist/chunks/{LpStepper-5dFTrW21.js → LpStepper-Wtl-6nUh.js} +27 -10
- package/dist/chunks/{LpTextarea-BDl7PR9U.js → LpTextarea-1ENb3ZAO.js} +6 -3
- package/dist/chunks/{LpThemeSwitcher-B_kj0T2b.js → LpThemeSwitcher-BgpJgrnP.js} +27 -0
- package/dist/components/LpAddressInput.vue.js +1 -1
- package/dist/components/LpAvatar.vue.d.ts +17 -3
- package/dist/components/LpAvatar.vue.js +1 -1
- package/dist/components/LpBreadcrumbs.vue.d.ts +13 -1
- package/dist/components/LpBreadcrumbs.vue.js +1 -1
- package/dist/components/LpConfirmDialog.vue.d.ts +8 -0
- package/dist/components/LpConfirmDialog.vue.js +1 -1
- package/dist/components/LpEmptyState.vue.d.ts +5 -0
- package/dist/components/LpEmptyState.vue.js +1 -1
- package/dist/components/LpFileTree.vue.js +1 -1
- package/dist/components/LpFileTreeNode.vue.js +1 -1
- package/dist/components/LpInput.vue.d.ts +12 -0
- package/dist/components/LpInput.vue.js +1 -1
- package/dist/components/LpLink.vue.d.ts +24 -4
- package/dist/components/LpLink.vue.js +1 -1
- package/dist/components/LpNotificationBell.vue.js +1 -1
- package/dist/components/LpPasswordInput.vue.d.ts +8 -0
- package/dist/components/LpPasswordInput.vue.js +1 -1
- package/dist/components/LpStepper.vue.d.ts +15 -1
- package/dist/components/LpStepper.vue.js +1 -1
- package/dist/components/LpTextarea.vue.d.ts +5 -0
- package/dist/components/LpTextarea.vue.js +1 -1
- package/dist/components/LpThemeSwitcher.vue.js +1 -1
- package/dist/index.js +14 -14
- package/dist/theme/tokens.d.ts +3 -0
- package/package.json +1 -1
- package/src/components/LpAvatar.vue +33 -5
- package/src/components/LpBreadcrumbs.vue +30 -7
- package/src/components/LpConfirmDialog.vue +21 -6
- package/src/components/LpEmptyState.vue +18 -5
- package/src/components/LpFileTreeNode.vue +11 -2
- package/src/components/LpInput.vue +8 -0
- package/src/components/LpLink.vue +48 -10
- package/src/components/LpPasswordInput.vue +16 -1
- package/src/components/LpStepper.vue +49 -9
- package/src/components/LpTextarea.vue +7 -0
- package/src/theme/presets.ts +24 -0
- package/src/theme/tokens.ts +6 -0
- package/src/tokens/tokens.css +3 -0
- package/dist/chunks/LpBreadcrumbs-B7Aqatzw.js +0 -42
- package/dist/chunks/LpEmptyState-CrfyRJUG.js +0 -47
- package/dist/chunks/LpLink-DHwOEp4e.js +0 -36
|
@@ -23,7 +23,10 @@ const dark = {
|
|
|
23
23
|
brandSoft: "rgba(0, 188, 255, 0.16)",
|
|
24
24
|
action: "#39e58c",
|
|
25
25
|
actionHover: "#4dffa1",
|
|
26
|
+
actionSoft: "rgba(57, 229, 140, 0.14)",
|
|
26
27
|
accent: "#f0b35a",
|
|
28
|
+
accentHover: "#f2bf74",
|
|
29
|
+
accentSoft: "rgba(240, 179, 90, 0.14)",
|
|
27
30
|
danger: "#ff6f6f",
|
|
28
31
|
dangerHover: "#ff8585",
|
|
29
32
|
dangerSoft: "rgba(255, 111, 111, 0.14)",
|
|
@@ -51,7 +54,10 @@ const light = {
|
|
|
51
54
|
brandSoft: "rgba(0, 134, 199, 0.12)",
|
|
52
55
|
action: "#1f9d5f",
|
|
53
56
|
actionHover: "#23b06b",
|
|
57
|
+
actionSoft: "rgba(31, 157, 95, 0.12)",
|
|
54
58
|
accent: "#aa6f1d",
|
|
59
|
+
accentHover: "#b88641",
|
|
60
|
+
accentSoft: "rgba(170, 111, 29, 0.12)",
|
|
55
61
|
danger: "#c2333b",
|
|
56
62
|
dangerHover: "#d23b44",
|
|
57
63
|
dangerSoft: "rgba(194, 51, 59, 0.12)",
|
|
@@ -79,7 +85,10 @@ const lime = {
|
|
|
79
85
|
brandSoft: "rgba(196, 240, 66, 0.14)",
|
|
80
86
|
action: "#5fd97a",
|
|
81
87
|
actionHover: "#74e88d",
|
|
88
|
+
actionSoft: "rgba(95, 217, 122, 0.14)",
|
|
82
89
|
accent: "#ffb84d",
|
|
90
|
+
accentHover: "#ffc369",
|
|
91
|
+
accentSoft: "rgba(255, 184, 77, 0.14)",
|
|
83
92
|
danger: "#ff6f6f",
|
|
84
93
|
dangerHover: "#ff8585",
|
|
85
94
|
dangerSoft: "rgba(255, 111, 111, 0.14)",
|
|
@@ -120,7 +129,10 @@ const leavepulse = {
|
|
|
120
129
|
brandSoft: "rgba(0, 188, 255, 0.2)",
|
|
121
130
|
action: "#44c2ad",
|
|
122
131
|
actionHover: "#56d3be",
|
|
132
|
+
actionSoft: "rgba(68, 194, 173, 0.14)",
|
|
123
133
|
accent: "#d36a2c",
|
|
134
|
+
accentHover: "#da824e",
|
|
135
|
+
accentSoft: "rgba(211, 106, 44, 0.14)",
|
|
124
136
|
danger: "#f87171",
|
|
125
137
|
dangerHover: "#fca5a5",
|
|
126
138
|
dangerSoft: "rgba(248, 113, 113, 0.14)",
|
|
@@ -152,7 +164,10 @@ const rose = {
|
|
|
152
164
|
brandSoft: "rgba(251, 113, 133, 0.14)",
|
|
153
165
|
action: "#34d399",
|
|
154
166
|
actionHover: "#4adeaa",
|
|
167
|
+
actionSoft: "rgba(52, 211, 153, 0.14)",
|
|
155
168
|
accent: "#fbbf24",
|
|
169
|
+
accentHover: "#fcc947",
|
|
170
|
+
accentSoft: "rgba(251, 191, 36, 0.14)",
|
|
156
171
|
danger: "#ef4444",
|
|
157
172
|
dangerHover: "#f56565",
|
|
158
173
|
dangerSoft: "rgba(239, 68, 68, 0.14)",
|
|
@@ -180,7 +195,10 @@ const amber = {
|
|
|
180
195
|
brandSoft: "rgba(245, 158, 11, 0.14)",
|
|
181
196
|
action: "#4ade80",
|
|
182
197
|
actionHover: "#5cea90",
|
|
198
|
+
actionSoft: "rgba(74, 222, 128, 0.14)",
|
|
183
199
|
accent: "#38bdf8",
|
|
200
|
+
accentHover: "#58c8f9",
|
|
201
|
+
accentSoft: "rgba(56, 189, 248, 0.14)",
|
|
184
202
|
danger: "#f87171",
|
|
185
203
|
dangerHover: "#fa8a8a",
|
|
186
204
|
dangerSoft: "rgba(248, 113, 113, 0.14)",
|
|
@@ -208,7 +226,10 @@ const violet = {
|
|
|
208
226
|
brandSoft: "rgba(167, 139, 250, 0.14)",
|
|
209
227
|
action: "#34d399",
|
|
210
228
|
actionHover: "#4adeaa",
|
|
229
|
+
actionSoft: "rgba(52, 211, 153, 0.14)",
|
|
211
230
|
accent: "#fbbf24",
|
|
231
|
+
accentHover: "#fcc947",
|
|
232
|
+
accentSoft: "rgba(251, 191, 36, 0.14)",
|
|
212
233
|
danger: "#f87171",
|
|
213
234
|
dangerHover: "#fa8a8a",
|
|
214
235
|
dangerSoft: "rgba(248, 113, 113, 0.14)",
|
|
@@ -236,7 +257,10 @@ const nord = {
|
|
|
236
257
|
brandSoft: "rgba(136, 192, 208, 0.16)",
|
|
237
258
|
action: "#a3be8c",
|
|
238
259
|
actionHover: "#b3cb9f",
|
|
260
|
+
actionSoft: "rgba(163, 190, 140, 0.16)",
|
|
239
261
|
accent: "#ebcb8b",
|
|
262
|
+
accentHover: "#eed39e",
|
|
263
|
+
accentSoft: "rgba(235, 203, 139, 0.16)",
|
|
240
264
|
danger: "#bf616a",
|
|
241
265
|
dangerHover: "#cb727b",
|
|
242
266
|
dangerSoft: "rgba(191, 97, 106, 0.16)",
|
|
@@ -275,7 +299,10 @@ const COLOR_VARS = {
|
|
|
275
299
|
brandSoft: "--color-brand-soft",
|
|
276
300
|
action: "--color-action",
|
|
277
301
|
actionHover: "--color-action-hover",
|
|
302
|
+
actionSoft: "--color-action-soft",
|
|
278
303
|
accent: "--color-accent",
|
|
304
|
+
accentHover: "--color-accent-hover",
|
|
305
|
+
accentSoft: "--color-accent-soft",
|
|
279
306
|
danger: "--color-danger",
|
|
280
307
|
dangerHover: "--color-danger-hover",
|
|
281
308
|
dangerSoft: "--color-danger-soft",
|
|
@@ -5,16 +5,30 @@ declare const __VLS_export: import('vue').DefineComponent<{
|
|
|
5
5
|
src?: string;
|
|
6
6
|
alt?: string;
|
|
7
7
|
fallback?: string;
|
|
8
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
8
|
+
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
9
|
+
/** Explicit pixel size, wins over `size` — for avatars keyed to a layout. */
|
|
10
|
+
pixelSize?: number;
|
|
11
|
+
/** Silhouette: circle for people, soft/square for servers and projects. */
|
|
12
|
+
shape?: "circle" | "square" | "soft" | undefined;
|
|
13
|
+
/** Draws a hairline ring, for avatars laid over imagery or other avatars. */
|
|
14
|
+
ring?: boolean;
|
|
9
15
|
/** Right-click menu (e.g. account quick actions). Consumer-supplied. */
|
|
10
16
|
menuItems?: ContextMenuItemDef[];
|
|
11
17
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
12
18
|
src?: string;
|
|
13
19
|
alt?: string;
|
|
14
20
|
fallback?: string;
|
|
15
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
21
|
+
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
22
|
+
/** Explicit pixel size, wins over `size` — for avatars keyed to a layout. */
|
|
23
|
+
pixelSize?: number;
|
|
24
|
+
/** Silhouette: circle for people, soft/square for servers and projects. */
|
|
25
|
+
shape?: "circle" | "square" | "soft" | undefined;
|
|
26
|
+
/** Draws a hairline ring, for avatars laid over imagery or other avatars. */
|
|
27
|
+
ring?: boolean;
|
|
16
28
|
/** Right-click menu (e.g. account quick actions). Consumer-supplied. */
|
|
17
29
|
menuItems?: ContextMenuItemDef[];
|
|
18
30
|
}> & Readonly<{}>, {
|
|
19
|
-
size: "sm" | "md" | "lg";
|
|
31
|
+
size: "sm" | "md" | "lg" | "xs" | "xl";
|
|
32
|
+
shape: "circle" | "square" | "soft";
|
|
33
|
+
ring: boolean;
|
|
20
34
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,14 +1,26 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
1
2
|
export interface Crumb {
|
|
2
3
|
label: string;
|
|
3
4
|
href?: string;
|
|
5
|
+
/** Destination for router links; passed straight to the `as` component. */
|
|
6
|
+
to?: string | Record<string, unknown>;
|
|
7
|
+
/** Leading icon, for crumbs that carry a glyph (a home root, a section). */
|
|
8
|
+
icon?: string;
|
|
4
9
|
}
|
|
5
10
|
type __VLS_Props = {
|
|
6
11
|
items: Crumb[];
|
|
12
|
+
/**
|
|
13
|
+
* Root element/component for linked crumbs. Defaults to a native <a>;
|
|
14
|
+
* pass a router link component to keep client-side navigation.
|
|
15
|
+
*/
|
|
16
|
+
as?: string | Component;
|
|
7
17
|
};
|
|
8
18
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
9
19
|
navigate: (item: Crumb, index: number) => any;
|
|
10
20
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
21
|
onNavigate?: ((item: Crumb, index: number) => any) | undefined;
|
|
12
|
-
}>, {
|
|
22
|
+
}>, {
|
|
23
|
+
as: string | Component;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
25
|
declare const _default: typeof __VLS_export;
|
|
14
26
|
export default _default;
|
|
@@ -5,6 +5,13 @@ type __VLS_Props = {
|
|
|
5
5
|
confirmLabel?: string;
|
|
6
6
|
cancelLabel?: string;
|
|
7
7
|
danger?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* The confirm action is in flight: the button disables and swaps to
|
|
10
|
+
* `loadingLabel`, and confirming no longer closes the dialog — the owner
|
|
11
|
+
* closes it once the work settles, so a failure can stay on screen.
|
|
12
|
+
*/
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
loadingLabel?: string;
|
|
8
15
|
};
|
|
9
16
|
declare var __VLS_10: {};
|
|
10
17
|
type __VLS_Slots = {} & {
|
|
@@ -21,6 +28,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
21
28
|
}>, {
|
|
22
29
|
confirmLabel: string;
|
|
23
30
|
cancelLabel: string;
|
|
31
|
+
loadingLabel: string;
|
|
24
32
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
33
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
34
|
declare const _default: typeof __VLS_export;
|
|
@@ -2,6 +2,11 @@ type __VLS_Props = {
|
|
|
2
2
|
icon?: string;
|
|
3
3
|
title: string;
|
|
4
4
|
description?: string;
|
|
5
|
+
/**
|
|
6
|
+
* Tightens the block for empty states nested inside a card or a panel,
|
|
7
|
+
* where the full-page padding would dwarf its container.
|
|
8
|
+
*/
|
|
9
|
+
compact?: boolean;
|
|
5
10
|
};
|
|
6
11
|
declare var __VLS_6: {};
|
|
7
12
|
type __VLS_Slots = {} & {
|
|
@@ -11,6 +11,12 @@ declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
|
|
|
11
11
|
hint?: string;
|
|
12
12
|
error?: string;
|
|
13
13
|
icon?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Marks the label with the required indicator. The attribute still reaches
|
|
16
|
+
* the underlying <input> for native validation; this only makes the field
|
|
17
|
+
* read as required.
|
|
18
|
+
*/
|
|
19
|
+
required?: boolean;
|
|
14
20
|
/**
|
|
15
21
|
* RegExp/string the whole value must match to be valid. Validation only —
|
|
16
22
|
* never blocks typing; a non-matching non-empty value shows the invalid
|
|
@@ -40,6 +46,12 @@ declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
|
|
|
40
46
|
hint?: string;
|
|
41
47
|
error?: string;
|
|
42
48
|
icon?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Marks the label with the required indicator. The attribute still reaches
|
|
51
|
+
* the underlying <input> for native validation; this only makes the field
|
|
52
|
+
* read as required.
|
|
53
|
+
*/
|
|
54
|
+
required?: boolean;
|
|
43
55
|
/**
|
|
44
56
|
* RegExp/string the whole value must match to be valid. Validation only —
|
|
45
57
|
* never blocks typing; a non-matching non-empty value shows the invalid
|
|
@@ -1,21 +1,41 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
1
2
|
type __VLS_Props = {
|
|
2
3
|
href?: string;
|
|
3
4
|
external?: boolean;
|
|
5
|
+
/** Shorthand for `tone="muted"`. */
|
|
4
6
|
muted?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* "brand" — the accent link colour (default).
|
|
9
|
+
* "ink" — inherits body text colour; for links that sit inside prose or
|
|
10
|
+
* chrome where an accent would shout (breadcrumbs, footers, nav).
|
|
11
|
+
* "muted" / "soft" — progressively quieter, both resolving to ink on hover.
|
|
12
|
+
*/
|
|
13
|
+
tone?: "brand" | "ink" | "muted" | "soft";
|
|
14
|
+
/**
|
|
15
|
+
* Root element/component. Defaults to a native <a>. Pass a router link
|
|
16
|
+
* component (e.g. NuxtLink or RouterLink) to keep client-side navigation;
|
|
17
|
+
* the kit stays DOM-agnostic, the consumer supplies the link component.
|
|
18
|
+
* Router links take their destination through their own prop (`to`), which
|
|
19
|
+
* falls through as a plain attribute.
|
|
20
|
+
*/
|
|
21
|
+
as?: string | Component;
|
|
5
22
|
/**
|
|
6
23
|
* "default" — plain hover underline.
|
|
24
|
+
* "underline" — underlined at rest; for links inside running prose,
|
|
25
|
+
* where hover-only underlines leave the link invisible until pointed at.
|
|
7
26
|
* "reveal" — an underline bar that grows in from the left on hover
|
|
8
27
|
* (origin-left scale-x 0→1). The LeavePulse landing "monitoring" link feel;
|
|
9
28
|
* good for inline prose links and nav items that want a bit of motion.
|
|
10
29
|
*/
|
|
11
|
-
variant?: "default" | "reveal";
|
|
30
|
+
variant?: "default" | "underline" | "reveal";
|
|
12
31
|
};
|
|
13
|
-
declare var
|
|
32
|
+
declare var __VLS_8: {};
|
|
14
33
|
type __VLS_Slots = {} & {
|
|
15
|
-
default?: (props: typeof
|
|
34
|
+
default?: (props: typeof __VLS_8) => any;
|
|
16
35
|
};
|
|
17
36
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
18
|
-
|
|
37
|
+
as: string | Component;
|
|
38
|
+
variant: "default" | "underline" | "reveal";
|
|
19
39
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
40
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
41
|
declare const _default: typeof __VLS_export;
|
|
@@ -5,6 +5,10 @@ declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
|
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
invalid?: boolean;
|
|
7
7
|
disabled?: boolean;
|
|
8
|
+
label?: string;
|
|
9
|
+
hint?: string;
|
|
10
|
+
error?: string;
|
|
11
|
+
required?: boolean;
|
|
8
12
|
}, {
|
|
9
13
|
focus: (options?: FocusOptions) => void | undefined;
|
|
10
14
|
blur: () => void | undefined;
|
|
@@ -16,6 +20,10 @@ declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
|
|
|
16
20
|
placeholder?: string;
|
|
17
21
|
invalid?: boolean;
|
|
18
22
|
disabled?: boolean;
|
|
23
|
+
label?: string;
|
|
24
|
+
hint?: string;
|
|
25
|
+
error?: string;
|
|
26
|
+
required?: boolean;
|
|
19
27
|
}> & Readonly<{
|
|
20
28
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
21
29
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
export interface Step {
|
|
2
2
|
label: string;
|
|
3
|
+
/** Stable id, for flows whose steps are addressed by name rather than order. */
|
|
4
|
+
key?: string;
|
|
5
|
+
/** Replaces the step number while the step is pending or current. */
|
|
6
|
+
icon?: string;
|
|
3
7
|
}
|
|
4
8
|
type __VLS_Props = {
|
|
5
9
|
steps: Step[];
|
|
6
|
-
|
|
10
|
+
/**
|
|
11
|
+
* The active step: an index, or a step `key` for keyed flows.
|
|
12
|
+
*/
|
|
13
|
+
current: number | string;
|
|
14
|
+
/**
|
|
15
|
+
* Which steps count as done. Omit it and everything before `current` is
|
|
16
|
+
* complete, which is the linear case. Pass keys (or indices) when a flow can
|
|
17
|
+
* finish steps out of order — a verification that succeeds before its
|
|
18
|
+
* prerequisite is filled in, say.
|
|
19
|
+
*/
|
|
20
|
+
completed?: Array<string | number>;
|
|
7
21
|
};
|
|
8
22
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
23
|
declare const _default: typeof __VLS_export;
|
|
@@ -7,6 +7,11 @@ type __VLS_Props = {
|
|
|
7
7
|
label?: string;
|
|
8
8
|
hint?: string;
|
|
9
9
|
error?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Marks the label with the required indicator; the attribute still reaches
|
|
12
|
+
* the <textarea> for native validation.
|
|
13
|
+
*/
|
|
14
|
+
required?: boolean;
|
|
10
15
|
};
|
|
11
16
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
12
17
|
"update:modelValue": (value: string) => any;
|
package/dist/index.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { _ } from "./chunks/LayoutCanvas-Dd20boUG.js";
|
|
2
|
-
import { _ as _2 } from "./chunks/LpAddressInput-
|
|
2
|
+
import { _ as _2 } from "./chunks/LpAddressInput-BTqnUXZG.js";
|
|
3
3
|
import { _ as _3 } from "./chunks/LpMapPicker-DFKrd1Ne.js";
|
|
4
4
|
import { OSM_TILES, createNominatimProvider, emptyAddress, formatAddress, project, tileUrl, unproject } from "./components/address.js";
|
|
5
5
|
import { _ as _4 } from "./chunks/LpAlert-BAYHDSS1.js";
|
|
6
6
|
import { _ as _5 } from "./chunks/LpAppShell-CaQYQKZV.js";
|
|
7
7
|
import { _ as _6 } from "./chunks/LpAutocomplete-DExlIZe_.js";
|
|
8
|
-
import { _ as _7 } from "./chunks/LpAvatar-
|
|
8
|
+
import { _ as _7 } from "./chunks/LpAvatar-CzCE5cXg.js";
|
|
9
9
|
import { _ as _8 } from "./chunks/LpBadge-BPodVcJa.js";
|
|
10
|
-
import { _ as _9 } from "./chunks/LpBreadcrumbs-
|
|
10
|
+
import { _ as _9 } from "./chunks/LpBreadcrumbs-5uvViCXi.js";
|
|
11
11
|
import { _ as _10 } from "./chunks/LpButton-5VXXCjwF.js";
|
|
12
12
|
import { _ as _11 } from "./chunks/LpCalendar-B7ZL0ty3.js";
|
|
13
13
|
import { _ as _12 } from "./chunks/LpCard-BmrTvWOe.js";
|
|
14
14
|
import { _ as _13 } from "./chunks/LpCheckbox-BO0zuuPh.js";
|
|
15
15
|
import { _ as _14 } from "./chunks/LpCodeBlock-CSiOSPs8.js";
|
|
16
16
|
import { default as default2 } from "./components/LpCommandPalette.vue.js";
|
|
17
|
-
import { _ as _15 } from "./chunks/LpConfirmDialog-
|
|
17
|
+
import { _ as _15 } from "./chunks/LpConfirmDialog-CObRah9c.js";
|
|
18
18
|
import { _ as _16 } from "./chunks/LpContextMenu-D0mzXqA7.js";
|
|
19
19
|
import { _ as _17 } from "./chunks/LpDatePicker-dY2q4dr4.js";
|
|
20
20
|
import { _ as _18 } from "./chunks/LpDisclosure-DP6yfgfM.js";
|
|
21
21
|
import { _ as _19 } from "./chunks/LpDivider-CUX46KR0.js";
|
|
22
22
|
import { _ as _20 } from "./chunks/LpDrawer-DAJN5rGK.js";
|
|
23
23
|
import { _ as _21 } from "./chunks/LpDropdownMenu-DJpoqRCb.js";
|
|
24
|
-
import { _ as _22 } from "./chunks/LpEmptyState-
|
|
25
|
-
import { _ as _23 } from "./chunks/LpFileTree-
|
|
24
|
+
import { _ as _22 } from "./chunks/LpEmptyState-BV3q7Qyi.js";
|
|
25
|
+
import { _ as _23 } from "./chunks/LpFileTree-nU1wRRxZ.js";
|
|
26
26
|
import { ancestorIds, checkStateOf, checkedCount, computeStats, fileIcon, formatModified, formatSize, sortNodes, subtreeIds, subtreeSize } from "./components/fileTree.js";
|
|
27
27
|
import { _ as _24 } from "./chunks/LpFormField-CesaPWPO.js";
|
|
28
28
|
import { _ as _25 } from "./chunks/LpIcon-CCnX5_2j.js";
|
|
29
29
|
import { _ as _26 } from "./chunks/LpInfraNode-qIL3l7IO.js";
|
|
30
|
-
import { _ as _27 } from "./chunks/LpInput-
|
|
30
|
+
import { _ as _27 } from "./chunks/LpInput-jwqXlAy0.js";
|
|
31
31
|
import { _ as _28 } from "./chunks/LpLightbox-Ci35Y_xP.js";
|
|
32
32
|
import { fileNameOf } from "./components/lightbox.js";
|
|
33
|
-
import { _ as _29 } from "./chunks/LpLink-
|
|
33
|
+
import { _ as _29 } from "./chunks/LpLink-Bu01SZzB.js";
|
|
34
34
|
import { _ as _30 } from "./chunks/LpLogViewer-B1aLUVdz.js";
|
|
35
35
|
import { _ as _31 } from "./chunks/LpModal-D_o-56To.js";
|
|
36
|
-
import { _ as _32 } from "./chunks/LpNotificationBell-
|
|
36
|
+
import { _ as _32 } from "./chunks/LpNotificationBell-X1M30e0X.js";
|
|
37
37
|
import { _ as _33 } from "./chunks/LpNumberField-B3JuQFol.js";
|
|
38
38
|
import { _ as _34 } from "./chunks/LpOtpInput-DqaT0Z75.js";
|
|
39
39
|
import { _ as _35 } from "./chunks/LpPagination-CeGuNe_q.js";
|
|
40
|
-
import { _ as _36 } from "./chunks/LpPasswordInput-
|
|
40
|
+
import { _ as _36 } from "./chunks/LpPasswordInput-Bmo6q9Kd.js";
|
|
41
41
|
import { _ as _37 } from "./chunks/LpPhoneInput-NXXjciJJ.js";
|
|
42
42
|
import { flagEmoji, loadCountries, matchCountryByValue } from "./components/countries.js";
|
|
43
43
|
import { _ as _38 } from "./chunks/LpPopover-8268UmlC.js";
|
|
@@ -54,14 +54,14 @@ import { _ as _47 } from "./chunks/LpSidebar-D3GGLSE7.js";
|
|
|
54
54
|
import { _ as _48 } from "./chunks/LpSkeleton-eSFIo4kD.js";
|
|
55
55
|
import { _ as _49 } from "./chunks/LpSlider-B1SF3pRV.js";
|
|
56
56
|
import { _ as _50 } from "./chunks/LpStat-CdbEFOvn.js";
|
|
57
|
-
import { _ as _51 } from "./chunks/LpStepper-
|
|
57
|
+
import { _ as _51 } from "./chunks/LpStepper-Wtl-6nUh.js";
|
|
58
58
|
import { _ as _52 } from "./chunks/LpSwitch-v6fnccSM.js";
|
|
59
59
|
import { _ as _53 } from "./chunks/LpTable-DTj52qlg.js";
|
|
60
60
|
import { _ as _54 } from "./chunks/LpTableOfContents-CjvxPMpU.js";
|
|
61
61
|
import { _ as _55 } from "./chunks/LpTabs-Cefe_lys.js";
|
|
62
|
-
import { _ as _56 } from "./chunks/LpTextarea-
|
|
63
|
-
import { p as presets, a as parseTheme, s as serializeTheme } from "./chunks/LpThemeSwitcher-
|
|
64
|
-
import { D, _ as _57, N, T, b, c, d, e, f, g, i, l, h, j, n, r, t, k, m, u, v } from "./chunks/LpThemeSwitcher-
|
|
62
|
+
import { _ as _56 } from "./chunks/LpTextarea-1ENb3ZAO.js";
|
|
63
|
+
import { p as presets, a as parseTheme, s as serializeTheme } from "./chunks/LpThemeSwitcher-BgpJgrnP.js";
|
|
64
|
+
import { D, _ as _57, N, T, b, c, d, e, f, g, i, l, h, j, n, r, t, k, m, u, v } from "./chunks/LpThemeSwitcher-BgpJgrnP.js";
|
|
65
65
|
import { _ as _58 } from "./chunks/LpTilt-DuyKbpkA.js";
|
|
66
66
|
import { _ as _59 } from "./chunks/LpToaster-gDB1EaU3.js";
|
|
67
67
|
import { _ as _60 } from "./chunks/LpTooltip-D1hbjQWG.js";
|
package/dist/theme/tokens.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -12,15 +12,25 @@ import { computed, onMounted, ref } from "vue"
|
|
|
12
12
|
import LpContextMenu, { type ContextMenuItemDef } from "./LpContextMenu.vue"
|
|
13
13
|
|
|
14
14
|
const avatar = tv({
|
|
15
|
-
base: "inline-flex shrink-0 select-none items-center justify-center overflow-hidden
|
|
15
|
+
base: "inline-flex shrink-0 select-none items-center justify-center overflow-hidden bg-surface-soft font-medium text-muted-strong",
|
|
16
16
|
variants: {
|
|
17
17
|
size: {
|
|
18
|
+
xs: "size-5 text-[10px]",
|
|
18
19
|
sm: "size-7 text-xs",
|
|
19
20
|
md: "size-9 text-sm",
|
|
20
21
|
lg: "size-12 text-base",
|
|
22
|
+
xl: "size-16 text-lg",
|
|
21
23
|
},
|
|
24
|
+
// People read as circles; things (servers, projects, orgs) read as
|
|
25
|
+
// rounded squares — the same distinction platform icons make.
|
|
26
|
+
shape: {
|
|
27
|
+
circle: "rounded-pill",
|
|
28
|
+
soft: "rounded-card",
|
|
29
|
+
square: "rounded-control",
|
|
30
|
+
},
|
|
31
|
+
ring: { true: "ring-2 ring-line", false: "" },
|
|
22
32
|
},
|
|
23
|
-
defaultVariants: { size: "md" },
|
|
33
|
+
defaultVariants: { size: "md", shape: "circle", ring: false },
|
|
24
34
|
})
|
|
25
35
|
|
|
26
36
|
type AvatarVariants = VariantProps<typeof avatar>
|
|
@@ -31,10 +41,28 @@ const props = withDefaults(
|
|
|
31
41
|
alt?: string
|
|
32
42
|
fallback?: string
|
|
33
43
|
size?: AvatarVariants["size"]
|
|
44
|
+
/** Explicit pixel size, wins over `size` — for avatars keyed to a layout. */
|
|
45
|
+
pixelSize?: number
|
|
46
|
+
/** Silhouette: circle for people, soft/square for servers and projects. */
|
|
47
|
+
shape?: AvatarVariants["shape"]
|
|
48
|
+
/** Draws a hairline ring, for avatars laid over imagery or other avatars. */
|
|
49
|
+
ring?: boolean
|
|
34
50
|
/** Right-click menu (e.g. account quick actions). Consumer-supplied. */
|
|
35
51
|
menuItems?: ContextMenuItemDef[]
|
|
36
52
|
}>(),
|
|
37
|
-
{ size: "md" },
|
|
53
|
+
{ size: "md", shape: "circle", ring: false },
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
// A pixel size drives both box and glyph, so the initials keep their
|
|
57
|
+
// proportion instead of staying at the preset's step.
|
|
58
|
+
const sizeStyle = computed(() =>
|
|
59
|
+
props.pixelSize
|
|
60
|
+
? {
|
|
61
|
+
width: `${props.pixelSize}px`,
|
|
62
|
+
height: `${props.pixelSize}px`,
|
|
63
|
+
fontSize: `${Math.max(10, Math.round(props.pixelSize * 0.4))}px`,
|
|
64
|
+
}
|
|
65
|
+
: undefined,
|
|
38
66
|
)
|
|
39
67
|
|
|
40
68
|
const initials = computed(
|
|
@@ -55,12 +83,12 @@ onMounted(() => {
|
|
|
55
83
|
|
|
56
84
|
<template>
|
|
57
85
|
<LpContextMenu v-if="menuItems?.length" :items="menuItems">
|
|
58
|
-
<AvatarRoot :class="avatar({ size })" v-bind="$attrs">
|
|
86
|
+
<AvatarRoot :class="avatar({ size: pixelSize ? undefined : size, shape, ring })" :style="sizeStyle" v-bind="$attrs">
|
|
59
87
|
<AvatarImage v-if="src && mounted" :src="src" :alt="alt" class="size-full object-cover" />
|
|
60
88
|
<AvatarFallback>{{ initials }}</AvatarFallback>
|
|
61
89
|
</AvatarRoot>
|
|
62
90
|
</LpContextMenu>
|
|
63
|
-
<AvatarRoot v-else :class="avatar({ size })" v-bind="$attrs">
|
|
91
|
+
<AvatarRoot v-else :class="avatar({ size: pixelSize ? undefined : size, shape, ring })" :style="sizeStyle" v-bind="$attrs">
|
|
64
92
|
<AvatarImage v-if="src" :src="src" :alt="alt" class="size-full object-cover" />
|
|
65
93
|
<AvatarFallback>{{ initials }}</AvatarFallback>
|
|
66
94
|
</AvatarRoot>
|