@wow-two-beta/fe 0.0.27 → 0.0.28
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/{AppSwitcherMenu.vue_vue_type_script_setup_true_lang-DVqdOOst.js → AccountMenu.vue_vue_type_script_setup_true_lang-CWsiHHiy.js} +700 -283
- package/dist/chunks/AccountMenu.vue_vue_type_script_setup_true_lang-CWsiHHiy.js.map +1 -0
- package/dist/chunks/Avatar.vue_vue_type_script_setup_true_lang-BIoaOjCh.js +267 -0
- package/dist/chunks/Avatar.vue_vue_type_script_setup_true_lang-BIoaOjCh.js.map +1 -0
- package/dist/chunks/{BackToTopButton.vue_vue_type_script_setup_true_lang-CNMcUYtR.js → BackToTopButton.vue_vue_type_script_setup_true_lang-6tfkqsrZ.js} +2 -2
- package/dist/chunks/{BackToTopButton.vue_vue_type_script_setup_true_lang-CNMcUYtR.js.map → BackToTopButton.vue_vue_type_script_setup_true_lang-6tfkqsrZ.js.map} +1 -1
- package/dist/chunks/{Button.vue_vue_type_script_setup_true_lang-BrgCAsgC.js → Button.vue_vue_type_script_setup_true_lang-Cw0QS_Mm.js} +2 -3
- package/dist/chunks/{Button.vue_vue_type_script_setup_true_lang-BrgCAsgC.js.map → Button.vue_vue_type_script_setup_true_lang-Cw0QS_Mm.js.map} +1 -1
- package/dist/chunks/{DrawerContent.vue_vue_type_script_setup_true_lang-CZQnfNGk.js → DrawerContent.vue_vue_type_script_setup_true_lang-BA-au7LC.js} +2 -2
- package/dist/chunks/{DrawerContent.vue_vue_type_script_setup_true_lang-CZQnfNGk.js.map → DrawerContent.vue_vue_type_script_setup_true_lang-BA-au7LC.js.map} +1 -1
- package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-LRQbVAiW.js → ErrorBoundary.vue_vue_type_script_setup_true_lang-DzqE0ZF8.js} +4 -4
- package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-LRQbVAiW.js.map → ErrorBoundary.vue_vue_type_script_setup_true_lang-DzqE0ZF8.js.map} +1 -1
- package/dist/chunks/{FieldHelperText.vue_vue_type_script_setup_true_lang-eqG5AyoV.js → FieldHelperText.vue_vue_type_script_setup_true_lang-DuMcXUch.js} +2 -2
- package/dist/chunks/{FieldHelperText.vue_vue_type_script_setup_true_lang-eqG5AyoV.js.map → FieldHelperText.vue_vue_type_script_setup_true_lang-DuMcXUch.js.map} +1 -1
- package/dist/chunks/{KanbanCard.vue_vue_type_script_setup_true_lang-BCnquIre.js → KanbanCard.vue_vue_type_script_setup_true_lang-CyXb4ZZw.js} +169 -427
- package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-CyXb4ZZw.js.map +1 -0
- package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-Dm79L1eK.js → LightboxModal.vue_vue_type_script_setup_true_lang-BxdSYLYf.js} +6 -6
- package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-Dm79L1eK.js.map → LightboxModal.vue_vue_type_script_setup_true_lang-BxdSYLYf.js.map} +1 -1
- package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-2CWeHWdV.js → MasonryLayout.vue_vue_type_script_setup_true_lang-DD_jRzkM.js} +4 -4
- package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-2CWeHWdV.js.map → MasonryLayout.vue_vue_type_script_setup_true_lang-DD_jRzkM.js.map} +1 -1
- package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-DdT24dkW.js → MentionInput.vue_vue_type_script_setup_true_lang-hYD3uP3P.js} +6 -6
- package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-DdT24dkW.js.map → MentionInput.vue_vue_type_script_setup_true_lang-hYD3uP3P.js.map} +1 -1
- package/dist/chunks/{OverlayCloseButton.vue_vue_type_script_setup_true_lang-D01KYAAn.js → OverlayCloseButton.vue_vue_type_script_setup_true_lang-Df9raD_m.js} +2 -2
- package/dist/chunks/{OverlayCloseButton.vue_vue_type_script_setup_true_lang-D01KYAAn.js.map → OverlayCloseButton.vue_vue_type_script_setup_true_lang-Df9raD_m.js.map} +1 -1
- package/dist/chunks/{PopoverContent.vue_vue_type_script_setup_true_lang-BIHYpwzT.js → PopoverContent.vue_vue_type_script_setup_true_lang-C6YKEo3H.js} +2 -2
- package/dist/chunks/{PopoverContent.vue_vue_type_script_setup_true_lang-BIHYpwzT.js.map → PopoverContent.vue_vue_type_script_setup_true_lang-C6YKEo3H.js.map} +1 -1
- package/dist/chunks/{ReportAction.vue_vue_type_script_setup_true_lang-l4DjtcpM.js → ReportAction.vue_vue_type_script_setup_true_lang-DCnPCczd.js} +2 -2
- package/dist/chunks/{ReportAction.vue_vue_type_script_setup_true_lang-l4DjtcpM.js.map → ReportAction.vue_vue_type_script_setup_true_lang-DCnPCczd.js.map} +1 -1
- package/dist/chunks/{SurfaceStyles-B8KNkFsm.js → SurfaceStyles-BYvRlsWe.js} +2 -2
- package/dist/chunks/{SurfaceStyles-B8KNkFsm.js.map → SurfaceStyles-BYvRlsWe.js.map} +1 -1
- package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-p0bfXJ9l.js → ToastHost.vue_vue_type_script_setup_true_lang-J1ZPZXn3.js} +3 -3
- package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-p0bfXJ9l.js.map → ToastHost.vue_vue_type_script_setup_true_lang-J1ZPZXn3.js.map} +1 -1
- package/dist/chunks/{Tones-CQu-OvAk.js → Tones-Bcz8dIo3.js} +159 -1
- package/dist/chunks/Tones-Bcz8dIo3.js.map +1 -0
- package/dist/chunks/{index-C-r59Hob.js → index-CGIXFfl9.js} +3 -4
- package/dist/chunks/{index-C-r59Hob.js.map → index-CGIXFfl9.js.map} +1 -1
- package/dist/foundation/config/ConfigSource.d.ts +12 -5
- package/dist/foundation/config/DefineConfig.d.ts +9 -4
- package/dist/foundation/config/index.d.ts +1 -1
- package/dist/foundation/config/index.js +12 -9
- package/dist/foundation/config/index.js.map +1 -1
- package/dist/foundation/styles/index.js +9 -10
- package/dist/foundation/styles/index.js.map +1 -1
- package/dist/index.js +465 -463
- package/dist/index.js.map +1 -1
- package/dist/presentation/actions/index.js +2 -2
- package/dist/presentation/display/index.js +178 -177
- package/dist/presentation/display/index.js.map +1 -1
- package/dist/presentation/feedback/index.js +3 -3
- package/dist/presentation/feedback/toastHost/index.js +1 -1
- package/dist/presentation/forms/index.js +2 -2
- package/dist/presentation/layout/index.js +1 -1
- package/dist/presentation/nav/accountMenu/AccountMenu.vue.d.ts +131 -0
- package/dist/presentation/nav/accountMenu/index.d.ts +1 -0
- package/dist/presentation/nav/index.d.ts +1 -0
- package/dist/presentation/nav/index.js +72 -71
- package/dist/presentation/overlays/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunks/AppSwitcherMenu.vue_vue_type_script_setup_true_lang-DVqdOOst.js.map +0 -1
- package/dist/chunks/CssExtensions-ctGVlfYU.js +0 -161
- package/dist/chunks/CssExtensions-ctGVlfYU.js.map +0 -1
- package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-BCnquIre.js.map +0 -1
- package/dist/chunks/Tones-CQu-OvAk.js.map +0 -1
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { defineComponent, useAttrs, useTemplateRef, ref, watch, computed, openBlock, createElementBlock, mergeProps, unref, renderSlot, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import { U as UrlExtensions } from "./UrlExtensions-DqgLm0KY.js";
|
|
3
|
+
import { c as cn } from "./Cn-C7De6POU.js";
|
|
4
|
+
import { C as CssExtensions } from "./Tones-Bcz8dIo3.js";
|
|
5
|
+
import { u as useSkeletonState } from "./SkeletonStateContext-tVYMa6xt.js";
|
|
6
|
+
import { tv } from "tailwind-variants";
|
|
7
|
+
const AvatarShape = {
|
|
8
|
+
/** Refers to a circular avatar. */
|
|
9
|
+
Circle: "circle",
|
|
10
|
+
/** Refers to a rounded-square avatar. */
|
|
11
|
+
Square: "square"
|
|
12
|
+
};
|
|
13
|
+
const AvatarTone = {
|
|
14
|
+
/** Refers to no tone — autoColor takes over the cascade. */
|
|
15
|
+
None: "none",
|
|
16
|
+
/** Refers to the neutral / default palette. */
|
|
17
|
+
Neutral: "neutral",
|
|
18
|
+
/** Refers to the primary brand palette. */
|
|
19
|
+
Primary: "primary",
|
|
20
|
+
/** Refers to the destructive / error palette. */
|
|
21
|
+
Danger: "danger",
|
|
22
|
+
/** Refers to the positive / confirmation palette. */
|
|
23
|
+
Success: "success",
|
|
24
|
+
/** Refers to the caution palette. */
|
|
25
|
+
Warning: "warning"
|
|
26
|
+
};
|
|
27
|
+
const AvatarBackground = {
|
|
28
|
+
/** Refers to a flat, solid fill. */
|
|
29
|
+
Solid: "solid",
|
|
30
|
+
/** Refers to a tone-gradient fill. */
|
|
31
|
+
Gradient: "gradient"
|
|
32
|
+
};
|
|
33
|
+
const AvatarRing = {
|
|
34
|
+
/** Refers to no ring. */
|
|
35
|
+
None: "none",
|
|
36
|
+
/** Refers to a neutral border ring. */
|
|
37
|
+
Neutral: "neutral",
|
|
38
|
+
/** Refers to a primary-toned ring. */
|
|
39
|
+
Primary: "primary",
|
|
40
|
+
/** Refers to a destructive-toned ring. */
|
|
41
|
+
Danger: "danger",
|
|
42
|
+
/** Refers to a success-toned ring. */
|
|
43
|
+
Success: "success",
|
|
44
|
+
/** Refers to a caution-toned ring. */
|
|
45
|
+
Warning: "warning"
|
|
46
|
+
};
|
|
47
|
+
const avatarVariants = tv({
|
|
48
|
+
base: "inline-flex shrink-0 select-none items-center justify-center overflow-hidden font-medium",
|
|
49
|
+
variants: {
|
|
50
|
+
size: {
|
|
51
|
+
xs: "h-6 w-6 text-xs",
|
|
52
|
+
sm: "h-8 w-8 text-sm",
|
|
53
|
+
md: "h-10 w-10 text-base",
|
|
54
|
+
lg: "h-12 w-12 text-lg",
|
|
55
|
+
xl: "h-16 w-16 text-xl",
|
|
56
|
+
"2xl": "h-20 w-20 text-2xl"
|
|
57
|
+
},
|
|
58
|
+
shape: {
|
|
59
|
+
circle: "rounded-full",
|
|
60
|
+
square: "rounded-md"
|
|
61
|
+
},
|
|
62
|
+
tone: {
|
|
63
|
+
// 'none' is used when autoColor takes over — prevents theme tokens from competing in the cascade.
|
|
64
|
+
none: "",
|
|
65
|
+
neutral: "bg-muted text-muted-foreground",
|
|
66
|
+
primary: "bg-primary-soft text-primary-soft-foreground",
|
|
67
|
+
danger: "bg-destructive-soft text-destructive-soft-foreground",
|
|
68
|
+
success: "bg-success-soft text-success-soft-foreground",
|
|
69
|
+
warning: "bg-warning-soft text-warning-soft-foreground"
|
|
70
|
+
},
|
|
71
|
+
bgStyle: {
|
|
72
|
+
solid: "",
|
|
73
|
+
// Gradient class composed in compoundVariants × tone.
|
|
74
|
+
gradient: ""
|
|
75
|
+
},
|
|
76
|
+
ring: {
|
|
77
|
+
none: "",
|
|
78
|
+
neutral: "ring-2 ring-offset-2 ring-border ring-offset-background",
|
|
79
|
+
primary: "ring-2 ring-offset-2 ring-primary ring-offset-background",
|
|
80
|
+
danger: "ring-2 ring-offset-2 ring-destructive ring-offset-background",
|
|
81
|
+
success: "ring-2 ring-offset-2 ring-success ring-offset-background",
|
|
82
|
+
warning: "ring-2 ring-offset-2 ring-warning ring-offset-background"
|
|
83
|
+
},
|
|
84
|
+
isLoading: {
|
|
85
|
+
/* The tile keeps its size and shape; forced colours keep it visible as a `GrayText` outline. */
|
|
86
|
+
true: "bg-muted! bg-none! text-transparent [&_*]:invisible motion-safe:animate-pulse forced-colors:[forced-color-adjust:none] forced-colors:bg-[color:Canvas]! forced-colors:outline-1 forced-colors:outline-solid forced-colors:-outline-offset-1 forced-colors:outline-[color:GrayText]",
|
|
87
|
+
false: ""
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
compoundVariants: [
|
|
91
|
+
// gradient × tone
|
|
92
|
+
{ bgStyle: "gradient", tone: "neutral", class: "bg-gradient-to-br from-muted to-muted/40" },
|
|
93
|
+
{
|
|
94
|
+
bgStyle: "gradient",
|
|
95
|
+
tone: "primary",
|
|
96
|
+
class: "bg-gradient-to-br from-primary-soft to-primary text-primary-foreground"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
bgStyle: "gradient",
|
|
100
|
+
tone: "danger",
|
|
101
|
+
class: "bg-gradient-to-br from-destructive-soft to-destructive text-destructive-foreground"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
bgStyle: "gradient",
|
|
105
|
+
tone: "success",
|
|
106
|
+
class: "bg-gradient-to-br from-success-soft to-success text-success-foreground"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
bgStyle: "gradient",
|
|
110
|
+
tone: "warning",
|
|
111
|
+
class: "bg-gradient-to-br from-warning-soft to-warning text-warning-foreground"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
defaultVariants: {
|
|
115
|
+
size: "md",
|
|
116
|
+
shape: "circle",
|
|
117
|
+
tone: "neutral",
|
|
118
|
+
bgStyle: "solid",
|
|
119
|
+
ring: "none",
|
|
120
|
+
isLoading: false
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
const _hoisted_1 = ["data-loading", "aria-busy", "role", "aria-label", "aria-hidden"];
|
|
124
|
+
const _hoisted_2 = ["src", "alt"];
|
|
125
|
+
const _hoisted_3 = ["aria-hidden"];
|
|
126
|
+
const AvatarSizePresets = /* @__PURE__ */ new Set(["xs", "sm", "md", "lg", "xl", "2xl"]);
|
|
127
|
+
const AutoColorPalette = [
|
|
128
|
+
"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100",
|
|
129
|
+
"bg-orange-100 text-orange-800 dark:bg-orange-900 dark:text-orange-100",
|
|
130
|
+
"bg-amber-100 text-amber-800 dark:bg-amber-900 dark:text-amber-100",
|
|
131
|
+
"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100",
|
|
132
|
+
"bg-lime-100 text-lime-800 dark:bg-lime-900 dark:text-lime-100",
|
|
133
|
+
"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100",
|
|
134
|
+
"bg-emerald-100 text-emerald-800 dark:bg-emerald-900 dark:text-emerald-100",
|
|
135
|
+
"bg-teal-100 text-teal-800 dark:bg-teal-900 dark:text-teal-100",
|
|
136
|
+
"bg-cyan-100 text-cyan-800 dark:bg-cyan-900 dark:text-cyan-100",
|
|
137
|
+
"bg-sky-100 text-sky-800 dark:bg-sky-900 dark:text-sky-100",
|
|
138
|
+
"bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-100",
|
|
139
|
+
"bg-indigo-100 text-indigo-800 dark:bg-indigo-900 dark:text-indigo-100",
|
|
140
|
+
"bg-violet-100 text-violet-800 dark:bg-violet-900 dark:text-violet-100",
|
|
141
|
+
"bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-100",
|
|
142
|
+
"bg-fuchsia-100 text-fuchsia-800 dark:bg-fuchsia-900 dark:text-fuchsia-100",
|
|
143
|
+
"bg-pink-100 text-pink-800 dark:bg-pink-900 dark:text-pink-100",
|
|
144
|
+
"bg-rose-100 text-rose-800 dark:bg-rose-900 dark:text-rose-100"
|
|
145
|
+
];
|
|
146
|
+
function hashName(name) {
|
|
147
|
+
let h = 0;
|
|
148
|
+
for (let i = 0; i < name.length; i++) {
|
|
149
|
+
h = h * 31 + name.charCodeAt(i) | 0;
|
|
150
|
+
}
|
|
151
|
+
return Math.abs(h);
|
|
152
|
+
}
|
|
153
|
+
function pickAutoColor(name) {
|
|
154
|
+
return AutoColorPalette[hashName(name) % AutoColorPalette.length];
|
|
155
|
+
}
|
|
156
|
+
function firstCharacter(word) {
|
|
157
|
+
return word ? Array.from(word)[0] ?? "" : "";
|
|
158
|
+
}
|
|
159
|
+
function getInitials(name) {
|
|
160
|
+
const parts = name.trim().split(/\s+/).filter(Boolean);
|
|
161
|
+
if (parts.length === 0) return "";
|
|
162
|
+
const first = firstCharacter(parts[0]);
|
|
163
|
+
const last = parts.length > 1 ? firstCharacter(parts[parts.length - 1]) : "";
|
|
164
|
+
return (first + last).toUpperCase();
|
|
165
|
+
}
|
|
166
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
167
|
+
...{ name: "Avatar", inheritAttrs: false },
|
|
168
|
+
__name: "Avatar",
|
|
169
|
+
props: {
|
|
170
|
+
shape: {},
|
|
171
|
+
tone: {},
|
|
172
|
+
bgStyle: {},
|
|
173
|
+
ring: {},
|
|
174
|
+
isLoading: { type: Boolean, default: void 0 },
|
|
175
|
+
src: {},
|
|
176
|
+
name: { default: "" },
|
|
177
|
+
fallback: {},
|
|
178
|
+
alt: {},
|
|
179
|
+
canAutoColor: { type: Boolean, default: void 0 },
|
|
180
|
+
size: {}
|
|
181
|
+
},
|
|
182
|
+
setup(__props, { expose: __expose }) {
|
|
183
|
+
const props = __props;
|
|
184
|
+
const attrs = useAttrs();
|
|
185
|
+
const el = useTemplateRef("el");
|
|
186
|
+
const errored = ref(false);
|
|
187
|
+
watch(
|
|
188
|
+
() => props.src,
|
|
189
|
+
() => {
|
|
190
|
+
errored.value = false;
|
|
191
|
+
}
|
|
192
|
+
);
|
|
193
|
+
const skeleton = useSkeletonState(() => props.isLoading);
|
|
194
|
+
const loading = computed(() => skeleton.isSkeleton.value);
|
|
195
|
+
const showImage = computed(() => !!props.src && !errored.value && !loading.value);
|
|
196
|
+
const parsedSize = computed(() => CssExtensions.parseSizeUnion(props.size, AvatarSizePresets));
|
|
197
|
+
const boxStyle = computed(
|
|
198
|
+
() => parsedSize.value.box ? CssExtensions.resolveBoxSize(parsedSize.value.box) : void 0
|
|
199
|
+
);
|
|
200
|
+
const autoColorClass = computed(
|
|
201
|
+
() => props.canAutoColor && props.name && props.bgStyle !== AvatarBackground.Gradient && (props.tone === void 0 || props.tone === AvatarTone.Neutral) ? pickAutoColor(props.name) : void 0
|
|
202
|
+
);
|
|
203
|
+
const effectiveTone = computed(() => autoColorClass.value ? AvatarTone.None : props.tone);
|
|
204
|
+
const initials = computed(() => getInitials(props.name));
|
|
205
|
+
const fallbackName = computed(() => props.alt === "" ? void 0 : props.alt ?? (props.name || void 0));
|
|
206
|
+
const isDecorative = computed(() => props.alt === "");
|
|
207
|
+
const classes = computed(
|
|
208
|
+
() => cn(
|
|
209
|
+
avatarVariants({
|
|
210
|
+
size: parsedSize.value.preset,
|
|
211
|
+
shape: props.shape,
|
|
212
|
+
tone: effectiveTone.value,
|
|
213
|
+
bgStyle: props.bgStyle,
|
|
214
|
+
ring: props.ring,
|
|
215
|
+
isLoading: loading.value
|
|
216
|
+
}),
|
|
217
|
+
autoColorClass.value,
|
|
218
|
+
attrs.class
|
|
219
|
+
)
|
|
220
|
+
);
|
|
221
|
+
const styles = computed(() => [boxStyle.value, attrs.style]);
|
|
222
|
+
const rest = computed(() => {
|
|
223
|
+
const { class: _class, style: _style, ...others } = attrs;
|
|
224
|
+
return others;
|
|
225
|
+
});
|
|
226
|
+
__expose({ el });
|
|
227
|
+
return (_ctx, _cache) => {
|
|
228
|
+
return openBlock(), createElementBlock("span", mergeProps({
|
|
229
|
+
ref_key: "el",
|
|
230
|
+
ref: el,
|
|
231
|
+
"data-loading": loading.value ? "true" : void 0,
|
|
232
|
+
"aria-busy": loading.value ? true : void 0,
|
|
233
|
+
role: !showImage.value && fallbackName.value ? "img" : void 0,
|
|
234
|
+
"aria-label": !showImage.value ? fallbackName.value : void 0,
|
|
235
|
+
"aria-hidden": isDecorative.value ? "true" : void 0
|
|
236
|
+
}, rest.value, {
|
|
237
|
+
class: classes.value,
|
|
238
|
+
style: styles.value
|
|
239
|
+
}), [
|
|
240
|
+
showImage.value ? (openBlock(), createElementBlock("img", {
|
|
241
|
+
key: 0,
|
|
242
|
+
src: unref(UrlExtensions).safeResource(props.src),
|
|
243
|
+
alt: props.alt ?? props.name,
|
|
244
|
+
class: "h-full w-full object-cover",
|
|
245
|
+
onError: _cache[0] || (_cache[0] = ($event) => errored.value = true)
|
|
246
|
+
}, null, 40, _hoisted_2)) : (openBlock(), createElementBlock("span", {
|
|
247
|
+
key: 1,
|
|
248
|
+
"aria-hidden": fallbackName.value ? "true" : void 0,
|
|
249
|
+
class: "contents"
|
|
250
|
+
}, [
|
|
251
|
+
renderSlot(_ctx.$slots, "fallback", {}, () => [
|
|
252
|
+
createTextVNode(toDisplayString(props.fallback ?? initials.value), 1)
|
|
253
|
+
])
|
|
254
|
+
], 8, _hoisted_3))
|
|
255
|
+
], 16, _hoisted_1);
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
export {
|
|
260
|
+
AvatarBackground as A,
|
|
261
|
+
_sfc_main as _,
|
|
262
|
+
AvatarRing as a,
|
|
263
|
+
AvatarShape as b,
|
|
264
|
+
AvatarTone as c,
|
|
265
|
+
avatarVariants as d
|
|
266
|
+
};
|
|
267
|
+
//# sourceMappingURL=Avatar.vue_vue_type_script_setup_true_lang-BIoaOjCh.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.vue_vue_type_script_setup_true_lang-BIoaOjCh.js","sources":["../../src/presentation/display/avatar/Avatar.variants.ts","../../src/presentation/display/avatar/Avatar.vue"],"sourcesContent":["import { tv, type VariantProps } from '../../../foundation/styles';\n\n/** Defines the Avatar silhouette. */\nexport const AvatarShape = {\n /** Refers to a circular avatar. */\n Circle: 'circle',\n /** Refers to a rounded-square avatar. */\n Square: 'square',\n} as const;\n\nexport type AvatarShape = (typeof AvatarShape)[keyof typeof AvatarShape];\n\n/** Defines the Avatar tone palette (`none` cedes color to autoColor). */\nexport const AvatarTone = {\n /** Refers to no tone — autoColor takes over the cascade. */\n None: 'none',\n /** Refers to the neutral / default palette. */\n Neutral: 'neutral',\n /** Refers to the primary brand palette. */\n Primary: 'primary',\n /** Refers to the destructive / error palette. */\n Danger: 'danger',\n /** Refers to the positive / confirmation palette. */\n Success: 'success',\n /** Refers to the caution palette. */\n Warning: 'warning',\n} as const;\n\nexport type AvatarTone = (typeof AvatarTone)[keyof typeof AvatarTone];\n\n/** Defines the Avatar background fill style. */\nexport const AvatarBackground = {\n /** Refers to a flat, solid fill. */\n Solid: 'solid',\n /** Refers to a tone-gradient fill. */\n Gradient: 'gradient',\n} as const;\n\nexport type AvatarBackground = (typeof AvatarBackground)[keyof typeof AvatarBackground];\n\n/** Defines the Avatar focus/emphasis ring tone. */\nexport const AvatarRing = {\n /** Refers to no ring. */\n None: 'none',\n /** Refers to a neutral border ring. */\n Neutral: 'neutral',\n /** Refers to a primary-toned ring. */\n Primary: 'primary',\n /** Refers to a destructive-toned ring. */\n Danger: 'danger',\n /** Refers to a success-toned ring. */\n Success: 'success',\n /** Refers to a caution-toned ring. */\n Warning: 'warning',\n} as const;\n\nexport type AvatarRing = (typeof AvatarRing)[keyof typeof AvatarRing];\n\nexport const avatarVariants = tv({\n base: 'inline-flex shrink-0 select-none items-center justify-center overflow-hidden font-medium',\n variants: {\n size: {\n xs: 'h-6 w-6 text-xs',\n sm: 'h-8 w-8 text-sm',\n md: 'h-10 w-10 text-base',\n lg: 'h-12 w-12 text-lg',\n xl: 'h-16 w-16 text-xl',\n '2xl': 'h-20 w-20 text-2xl',\n },\n shape: {\n circle: 'rounded-full',\n square: 'rounded-md',\n },\n tone: {\n // 'none' is used when autoColor takes over — prevents theme tokens from competing in the cascade.\n none: '',\n neutral: 'bg-muted text-muted-foreground',\n primary: 'bg-primary-soft text-primary-soft-foreground',\n danger: 'bg-destructive-soft text-destructive-soft-foreground',\n success: 'bg-success-soft text-success-soft-foreground',\n warning: 'bg-warning-soft text-warning-soft-foreground',\n },\n bgStyle: {\n solid: '',\n // Gradient class composed in compoundVariants × tone.\n gradient: '',\n },\n ring: {\n none: '',\n neutral: 'ring-2 ring-offset-2 ring-border ring-offset-background',\n primary: 'ring-2 ring-offset-2 ring-primary ring-offset-background',\n danger: 'ring-2 ring-offset-2 ring-destructive ring-offset-background',\n success: 'ring-2 ring-offset-2 ring-success ring-offset-background',\n warning: 'ring-2 ring-offset-2 ring-warning ring-offset-background',\n },\n isLoading: {\n /* The tile keeps its size and shape; forced colours keep it visible as a `GrayText` outline. */\n true:\n 'bg-muted! bg-none! text-transparent [&_*]:invisible motion-safe:animate-pulse ' +\n 'forced-colors:[forced-color-adjust:none] forced-colors:bg-[color:Canvas]! forced-colors:outline-1 ' +\n 'forced-colors:outline-solid forced-colors:-outline-offset-1 forced-colors:outline-[color:GrayText]',\n false: '',\n },\n },\n compoundVariants: [\n // gradient × tone\n { bgStyle: 'gradient', tone: 'neutral', class: 'bg-gradient-to-br from-muted to-muted/40' },\n {\n bgStyle: 'gradient',\n tone: 'primary',\n class: 'bg-gradient-to-br from-primary-soft to-primary text-primary-foreground',\n },\n {\n bgStyle: 'gradient',\n tone: 'danger',\n class: 'bg-gradient-to-br from-destructive-soft to-destructive text-destructive-foreground',\n },\n {\n bgStyle: 'gradient',\n tone: 'success',\n class: 'bg-gradient-to-br from-success-soft to-success text-success-foreground',\n },\n {\n bgStyle: 'gradient',\n tone: 'warning',\n class: 'bg-gradient-to-br from-warning-soft to-warning text-warning-foreground',\n },\n ],\n defaultVariants: {\n size: 'md',\n shape: 'circle',\n tone: 'neutral',\n bgStyle: 'solid',\n ring: 'none',\n isLoading: false,\n },\n});\n\nexport type AvatarVariants = VariantProps<typeof avatarVariants>;\n\n/* Compile-time lock: enum values ≡ tv shape/tone/bgStyle/ring value-sets (drift = type error). */\ntype AssertExact<A, B> = [A] extends [B] ? ([B] extends [A] ? true : never) : never;\nconst _assertAvatarShape: AssertExact<AvatarShape, NonNullable<VariantProps<typeof avatarVariants>['shape']>> = true;\nconst _assertAvatarTone: AssertExact<AvatarTone, NonNullable<VariantProps<typeof avatarVariants>['tone']>> = true;\nconst _assertAvatarBackground: AssertExact<\n AvatarBackground,\n NonNullable<VariantProps<typeof avatarVariants>['bgStyle']>\n> = true;\nconst _assertAvatarRing: AssertExact<AvatarRing, NonNullable<VariantProps<typeof avatarVariants>['ring']>> = true;\nvoid _assertAvatarShape;\nvoid _assertAvatarTone;\nvoid _assertAvatarBackground;\nvoid _assertAvatarRing;\n","<script lang=\"ts\">\nimport type { CSSProperties } from 'vue';\nimport type { SizePreset, SizeUnion } from '../../../foundation/styles';\n/* The four value-sets are imported as values (not `import type`) so the one binding serves\n as both the prop type below and the runtime enum used in the auto-color guard. */\nimport { AvatarBackground, AvatarRing, AvatarShape, AvatarTone, type AvatarVariants } from './Avatar.variants';\n\n/* Avatar supports the full canonical preset vocabulary. */\ntype AvatarSizePreset = SizePreset;\n\n/**\n * The size union — preset (`xs|sm|md|lg|xl|2xl`) · raw number/string (square inline dims) ·\n * object (explicit dims). Named here so `AvatarGroup` can reuse it.\n */\nexport type AvatarSize = SizeUnion<AvatarSizePreset>;\n\nconst AvatarSizePresets: ReadonlySet<string> = new Set<AvatarSizePreset>(['xs', 'sm', 'md', 'lg', 'xl', '2xl']);\n\n/* autoColor palette — 17 hues, dark-mode aware. No opacity keeps contrast deterministic. */\nconst AutoColorPalette = [\n 'bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100',\n 'bg-orange-100 text-orange-800 dark:bg-orange-900 dark:text-orange-100',\n 'bg-amber-100 text-amber-800 dark:bg-amber-900 dark:text-amber-100',\n 'bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100',\n 'bg-lime-100 text-lime-800 dark:bg-lime-900 dark:text-lime-100',\n 'bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100',\n 'bg-emerald-100 text-emerald-800 dark:bg-emerald-900 dark:text-emerald-100',\n 'bg-teal-100 text-teal-800 dark:bg-teal-900 dark:text-teal-100',\n 'bg-cyan-100 text-cyan-800 dark:bg-cyan-900 dark:text-cyan-100',\n 'bg-sky-100 text-sky-800 dark:bg-sky-900 dark:text-sky-100',\n 'bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-100',\n 'bg-indigo-100 text-indigo-800 dark:bg-indigo-900 dark:text-indigo-100',\n 'bg-violet-100 text-violet-800 dark:bg-violet-900 dark:text-violet-100',\n 'bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-100',\n 'bg-fuchsia-100 text-fuchsia-800 dark:bg-fuchsia-900 dark:text-fuchsia-100',\n 'bg-pink-100 text-pink-800 dark:bg-pink-900 dark:text-pink-100',\n 'bg-rose-100 text-rose-800 dark:bg-rose-900 dark:text-rose-100',\n];\n\nfunction hashName(name: string): number {\n let h = 0;\n for (let i = 0; i < name.length; i++) {\n h = (h * 31 + name.charCodeAt(i)) | 0;\n }\n return Math.abs(h);\n}\n\nfunction pickAutoColor(name: string): string {\n return AutoColorPalette[hashName(name) % AutoColorPalette.length]!;\n}\n\n/** The first character of a word by code point — `[0]` would split an astral character into a lone surrogate. */\nfunction firstCharacter(word: string | undefined): string {\n return word ? (Array.from(word)[0] ?? '') : '';\n}\n\nfunction getInitials(name: string): string {\n const parts = name.trim().split(/\\s+/).filter(Boolean);\n if (parts.length === 0) return '';\n const first = firstCharacter(parts[0]);\n const last = parts.length > 1 ? firstCharacter(parts[parts.length - 1]) : '';\n return (first + last).toUpperCase();\n}\n\nexport interface AvatarProps {\n /** The silhouette. */\n readonly shape?: AvatarShape;\n\n /** The tone palette (`none` cedes color to autoColor). */\n readonly tone?: AvatarTone;\n\n /** The background fill style. */\n readonly bgStyle?: AvatarBackground;\n\n /** The focus/emphasis ring tone. */\n readonly ring?: AvatarRing;\n\n /** The skeleton state — pulses the tile and hides its content. Defaults to the nearest `DataRegion` first load. */\n readonly isLoading?: boolean;\n\n /** The image source; falls back to `name` initials or `fallback` on error. */\n readonly src?: string;\n\n /** The person/entity name — used to derive initials when no image. */\n readonly name?: string;\n\n /** The custom fallback (overrides initials). Rich content goes through the `fallback` slot. */\n readonly fallback?: string | number;\n\n /** The alt text for the underlying `<img>` (defaults to `name`). */\n readonly alt?: string;\n\n /**\n * The auto-color flag — derives a deterministic tint from the `name` hash.\n * A non-neutral `tone` or a non-solid `bgStyle` overrides it.\n */\n readonly canAutoColor?: boolean;\n\n /** The size — preset → variant class · number/string → square inline · object → explicit dims. */\n readonly size?: AvatarSize;\n}\n\n/* Compile-time lock: the hand-written `isLoading` prop ≡ the tv variant key (drift = type error).\n `shape` / `tone` / `bgStyle` / `ring` need no lock here — they use the named enums the\n variants file already locks against `avatarVariants`. */\ntype AssertExact<A, B> = [A] extends [B] ? ([B] extends [A] ? true : never) : never;\nconst _assertAvatarLoading: AssertExact<\n NonNullable<AvatarProps['isLoading']>,\n NonNullable<AvatarVariants['isLoading']>\n> = true;\nvoid _assertAvatarLoading;\n</script>\n\n<script setup lang=\"ts\">\nimport { UrlExtensions } from '../../../foundation/dom';\nimport { computed, ref, useAttrs, useTemplateRef, watch } from 'vue';\nimport { cn, CssExtensions } from '../../../foundation/styles';\nimport { useSkeletonState } from '../../feedback/skeletonState/SkeletonStateContext';\nimport { avatarVariants } from './Avatar.variants';\n\n/**\n * Renders a user image avatar that falls back to initials, with tone, ring, and loading skeleton.\n *\n * Auto-color is a deterministic hash of the name. Compose with `BadgeOverlay` for status dots / counts / icons.\n */\ndefineOptions({ name: 'Avatar', inheritAttrs: false });\n\ndefineSlots<{\n /** The custom fallback content — wins over the `fallback` prop and the derived initials. */\n fallback?(): unknown;\n}>();\n\n/**\n * `isLoading` / `canAutoColor` default to `undefined`, not `false`: Vue casts an absent\n * `Boolean` prop to `false`, and `avatarVariants` expects the tri-state React handed it.\n */\nconst props = withDefaults(defineProps<AvatarProps>(), {\n name: '',\n isLoading: undefined,\n canAutoColor: undefined,\n});\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLSpanElement>('el');\n\nconst errored = ref(false);\n\n/* A new src deserves a fresh load attempt — reset the error latch. */\nwatch(\n () => props.src,\n () => {\n errored.value = false;\n },\n);\n\n/* An absent `isLoading` follows the nearest `DataRegion` first load; an explicit one wins either way. */\nconst skeleton = useSkeletonState(() => props.isLoading);\nconst loading = computed(() => skeleton.isSkeleton.value);\n\nconst showImage = computed(() => !!props.src && !errored.value && !loading.value);\n\n/* Parse union-typed `size` — preset routes to variant class, raw/object routes to inline dims. */\nconst parsedSize = computed(() => CssExtensions.parseSizeUnion<AvatarSizePreset>(props.size, AvatarSizePresets));\n\nconst boxStyle = computed<CSSProperties | undefined>(() =>\n parsedSize.value.box ? CssExtensions.resolveBoxSize(parsedSize.value.box) : undefined,\n);\n\n/* Auto-color fires only when: name set, no explicit non-neutral tone, bgStyle not gradient. Explicit dials win. */\nconst autoColorClass = computed(() =>\n props.canAutoColor &&\n props.name &&\n props.bgStyle !== AvatarBackground.Gradient &&\n (props.tone === undefined || props.tone === AvatarTone.Neutral)\n ? pickAutoColor(props.name)\n : undefined,\n);\n\n/* When auto-color is active, suppress the tone variant so its theme-token classes don't compete in the cascade. */\nconst effectiveTone = computed(() => (autoColorClass.value ? AvatarTone.None : props.tone));\n\nconst initials = computed(() => getInitials(props.name));\n\n/*\n * Without an image the initials are not a name — \"AK\" reads as two letters. The fallback therefore speaks as one\n * image named like the `<img>` would be: `alt`, else `name`. An empty `alt` marks the avatar decorative.\n */\nconst fallbackName = computed(() => (props.alt === '' ? undefined : (props.alt ?? (props.name || undefined))));\nconst isDecorative = computed(() => props.alt === '');\n\nconst classes = computed(() =>\n cn(\n avatarVariants({\n size: parsedSize.value.preset,\n shape: props.shape,\n tone: effectiveTone.value,\n bgStyle: props.bgStyle,\n ring: props.ring,\n isLoading: loading.value,\n }),\n autoColorClass.value,\n attrs.class as string | undefined,\n ),\n);\n\n/** The consumer's inline style lands last, so it wins over the parsed box dims. */\nconst styles = computed(() => [boxStyle.value, attrs.style as CSSProperties | undefined]);\n\n/** Everything but `class` / `style`, both re-applied above. */\nconst rest = computed(() => {\n const { class: _class, style: _style, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <!-- Own attrs first, `v-bind=\"rest\"` after — a consumer-supplied `data-loading` / `aria-busy`\n still wins, as it did through React's trailing `{...props}` spread. -->\n <span\n ref=\"el\"\n :data-loading=\"loading ? 'true' : undefined\"\n :aria-busy=\"loading ? true : undefined\"\n :role=\"!showImage && fallbackName ? 'img' : undefined\"\n :aria-label=\"!showImage ? fallbackName : undefined\"\n :aria-hidden=\"isDecorative ? 'true' : undefined\"\n v-bind=\"rest\"\n :class=\"classes\"\n :style=\"styles\"\n >\n <img\n v-if=\"showImage\"\n :src=\"UrlExtensions.safeResource(props.src)\"\n :alt=\"props.alt ?? props.name\"\n class=\"h-full w-full object-cover\"\n @error=\"errored = true\"\n />\n <span v-else :aria-hidden=\"fallbackName ? 'true' : undefined\" class=\"contents\">\n <slot name=\"fallback\">{{ props.fallback ?? initials }}</slot>\n </span>\n </span>\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_unref","_renderSlot"],"mappings":";;;;;;AAGO,MAAM,cAAc;AAAA;AAAA,EAEzB,QAAQ;AAAA;AAAA,EAER,QAAQ;AACV;AAKO,MAAM,aAAa;AAAA;AAAA,EAExB,MAAM;AAAA;AAAA,EAEN,SAAS;AAAA;AAAA,EAET,SAAS;AAAA;AAAA,EAET,QAAQ;AAAA;AAAA,EAER,SAAS;AAAA;AAAA,EAET,SAAS;AACX;AAKO,MAAM,mBAAmB;AAAA;AAAA,EAE9B,OAAO;AAAA;AAAA,EAEP,UAAU;AACZ;AAKO,MAAM,aAAa;AAAA;AAAA,EAExB,MAAM;AAAA;AAAA,EAEN,SAAS;AAAA;AAAA,EAET,SAAS;AAAA;AAAA,EAET,QAAQ;AAAA;AAAA,EAER,SAAS;AAAA;AAAA,EAET,SAAS;AACX;AAIO,MAAM,iBAAiB,GAAG;AAAA,EAC/B,MAAM;AAAA,EACN,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,OAAO;AAAA,IAAA;AAAA,IAET,OAAO;AAAA,MACL,QAAQ;AAAA,MACR,QAAQ;AAAA,IAAA;AAAA,IAEV,MAAM;AAAA;AAAA,MAEJ,MAAM;AAAA,MACN,SAAS;AAAA,MACT,SAAS;AAAA,MACT,QAA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A;AAAA,MAAA;QAGA,UAAA,sBADRD,mBAME,OAAA;AAAA;UAJC,KAAKE,MAAA,aAAA,EAAc,aAAa,MAAM,GAAG;AAAA,UACzC,KAAK,MAAM,OAAO,MAAM;AAAA,UACzB,OAAM;AAAA,UACL,+CAAO,QAAA,QAAO;AAAA,QAAA,0CAEjBF,mBAEO,QAAA;AAAA;UAFO,eAAa,aAAA,QAAY,SAAY;AAAA,UAAW,OAAM;AAAA,QAAA;UAClEG,WAA6D,6BAA7D,MAA6D;AAAA,4CAApC,MAAM,YAAY,SAAA,KAAQ,GAAA,CAAA;AAAA,UAAA;;;;;;"}
|
|
@@ -6,7 +6,7 @@ import { u as useClipboard } from "./UseClipboard-D5jEv39w.js";
|
|
|
6
6
|
import { A as AriaAttribute } from "./AriaAttribute-CmUjjXjp.js";
|
|
7
7
|
import { D as DomEvent, A as AttributeValue, u as useOutsideClick } from "./UseOutsideClick-8TTSb9x6.js";
|
|
8
8
|
import { O as OptionalExtensions } from "./OptionalExtensions-NiO6gV0W.js";
|
|
9
|
-
import { a as ButtonVariant, _ as _sfc_main$e } from "./Button.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { a as ButtonVariant, _ as _sfc_main$e } from "./Button.vue_vue_type_script_setup_true_lang-Cw0QS_Mm.js";
|
|
10
10
|
import { _ as _sfc_main$f } from "./Icon.vue_vue_type_script_setup_true_lang-Ca4wsJw9.js";
|
|
11
11
|
import { u as useGoogleIdentity, G as GoogleIdentityStatus } from "./GoogleIdentity-WSQsNIRW.js";
|
|
12
12
|
import { d as dataAttr } from "./DataAttr-7BR67dTj.js";
|
|
@@ -958,4 +958,4 @@ export {
|
|
|
958
958
|
useToolbarContext as p,
|
|
959
959
|
useSpeedDialContext as u
|
|
960
960
|
};
|
|
961
|
-
//# sourceMappingURL=BackToTopButton.vue_vue_type_script_setup_true_lang-
|
|
961
|
+
//# sourceMappingURL=BackToTopButton.vue_vue_type_script_setup_true_lang-6tfkqsrZ.js.map
|