@alfadocs/ui-kit 1.15.1 → 1.16.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/{calendar-CHT9Rm3M.js → calendar-PFO-NlYw.js} +2 -2
- package/dist/_chunks/{calendar-event-card-BjdHZaqz.js → calendar-event-card-66CEEWU6.js} +38 -20
- package/dist/_chunks/calendar-workspace-B87-QI8L.js +7606 -0
- package/dist/agent-catalog.json +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +2 -0
- package/dist/i18n/locales/ar.js +2 -0
- package/dist/i18n/locales/de.d.ts +2 -0
- package/dist/i18n/locales/de.js +2 -0
- package/dist/i18n/locales/el.d.ts +2 -0
- package/dist/i18n/locales/el.js +2 -0
- package/dist/i18n/locales/en.d.ts +2 -0
- package/dist/i18n/locales/en.js +2 -0
- package/dist/i18n/locales/es.d.ts +2 -0
- package/dist/i18n/locales/es.js +2 -0
- package/dist/i18n/locales/fr.d.ts +2 -0
- package/dist/i18n/locales/fr.js +2 -0
- package/dist/i18n/locales/hi.d.ts +2 -0
- package/dist/i18n/locales/hi.js +2 -0
- package/dist/i18n/locales/it.d.ts +2 -0
- package/dist/i18n/locales/it.js +2 -0
- package/dist/i18n/locales/ja.d.ts +2 -0
- package/dist/i18n/locales/ja.js +2 -0
- package/dist/i18n/locales/nl.d.ts +2 -0
- package/dist/i18n/locales/nl.js +2 -0
- package/dist/i18n/locales/pl.d.ts +2 -0
- package/dist/i18n/locales/pl.js +2 -0
- package/dist/i18n/locales/pt.d.ts +2 -0
- package/dist/i18n/locales/pt.js +2 -0
- package/dist/i18n/locales/ro.d.ts +2 -0
- package/dist/i18n/locales/ro.js +2 -0
- package/dist/i18n/locales/ru.d.ts +2 -0
- package/dist/i18n/locales/ru.js +2 -0
- package/dist/i18n/locales/sq.d.ts +2 -0
- package/dist/i18n/locales/sq.js +2 -0
- package/dist/i18n/locales/sv.d.ts +2 -0
- package/dist/i18n/locales/sv.js +2 -0
- package/dist/i18n/locales/tr.d.ts +2 -0
- package/dist/i18n/locales/tr.js +2 -0
- package/dist/i18n/locales/zh.d.ts +2 -0
- package/dist/i18n/locales/zh.js +2 -0
- package/dist/index.js +3 -3
- package/dist/locales/ar.json +2 -0
- package/dist/locales/de.json +2 -0
- package/dist/locales/el.json +2 -0
- package/dist/locales/en.json +2 -0
- package/dist/locales/es.json +2 -0
- package/dist/locales/fr.json +2 -0
- package/dist/locales/hi.json +2 -0
- package/dist/locales/it.json +2 -0
- package/dist/locales/ja.json +2 -0
- package/dist/locales/nl.json +2 -0
- package/dist/locales/pl.json +2 -0
- package/dist/locales/pt.json +2 -0
- package/dist/locales/ro.json +2 -0
- package/dist/locales/ru.json +2 -0
- package/dist/locales/sq.json +2 -0
- package/dist/locales/sv.json +2 -0
- package/dist/locales/tr.json +2 -0
- package/dist/locales/zh.json +2 -0
- package/dist/patterns/calendar/calendar-workspace.model.d.ts +59 -13
- package/dist/patterns/calendar/calendar.model.d.ts +18 -5
- package/dist/patterns/calendar/calendar.sheets.d.ts +6 -5
- package/dist/patterns/calendar/calendar.types.d.ts +79 -13
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/calendar-workspace-CqVe4v5s.js +0 -7481
|
@@ -12,7 +12,7 @@ import Zt from "@fullcalendar/timeline";
|
|
|
12
12
|
import Qt from "@fullcalendar/interaction";
|
|
13
13
|
import { u as er } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
14
14
|
import { u as tr } from "./registry-DvAUVLHh.js";
|
|
15
|
-
import { w as rr, C as nr } from "./calendar-event-card-
|
|
15
|
+
import { w as rr, C as nr } from "./calendar-event-card-66CEEWU6.js";
|
|
16
16
|
import { A as ir } from "./avatar-BNQNhoyL.js";
|
|
17
17
|
import { R as ar } from "./resource-chip-DYTG0IQQ.js";
|
|
18
18
|
import { T as sr } from "./tooltip-DvmfrNvB.js";
|
|
@@ -1249,4 +1249,4 @@ export {
|
|
|
1249
1249
|
dr as c,
|
|
1250
1250
|
pe as r
|
|
1251
1251
|
};
|
|
1252
|
-
//# sourceMappingURL=calendar-
|
|
1252
|
+
//# sourceMappingURL=calendar-PFO-NlYw.js.map
|
|
@@ -97,21 +97,21 @@ function ce(a) {
|
|
|
97
97
|
const r = oe(a);
|
|
98
98
|
return r ? le(r) > 0.1791 ? "on-light" : "on-dark" : null;
|
|
99
99
|
}
|
|
100
|
-
const
|
|
100
|
+
const pe = {
|
|
101
101
|
confirmed: te,
|
|
102
102
|
waiting: F,
|
|
103
103
|
in_care: D,
|
|
104
104
|
done: Y,
|
|
105
105
|
cancelled: ne,
|
|
106
106
|
absent: ie
|
|
107
|
-
}, i = "ds:inline-flex ds:size-4.5 ds:shrink-0 ds:items-center ds:justify-center ds:rounded-[var(--radius-full)] ds:bg-[color:var(--card)] ds:border ds:border-[color:var(--border)] ds:shadow-[var(--shadow-sm)]",
|
|
107
|
+
}, i = "ds:inline-flex ds:size-4.5 ds:shrink-0 ds:items-center ds:justify-center ds:rounded-[var(--radius-full)] ds:bg-[color:var(--card)] ds:border ds:border-[color:var(--border)] ds:shadow-[var(--shadow-sm)]", p = {
|
|
108
108
|
success: "ds:text-[color:var(--success-foreground)]",
|
|
109
109
|
info: "ds:text-[color:var(--info-foreground)]",
|
|
110
110
|
warning: "ds:text-[color:var(--warning-foreground)]",
|
|
111
111
|
error: "ds:text-[color:var(--error-foreground)]",
|
|
112
112
|
// Same AA-clearing accent mix Badge's accentSoft uses for its ink.
|
|
113
113
|
accent: "ds:text-[color:color-mix(in_srgb,var(--accent)_40%,var(--foreground))]"
|
|
114
|
-
},
|
|
114
|
+
}, me = {
|
|
115
115
|
confirmed: "success",
|
|
116
116
|
waiting: "info",
|
|
117
117
|
in_care: "accent",
|
|
@@ -131,7 +131,16 @@ const me = {
|
|
|
131
131
|
// (inline-flowing text cell beside the icon column — structurally
|
|
132
132
|
// overlap-safe). Tight padding and line-height so sliver-height
|
|
133
133
|
// harnesses show a full text line.
|
|
134
|
-
|
|
134
|
+
//
|
|
135
|
+
// `@container/eventcard` makes the card's own inline size the query
|
|
136
|
+
// basis for the indicator column below. FullCalendar sizes the
|
|
137
|
+
// harness by lane count, so a dense day splits a column into
|
|
138
|
+
// 30-40px slivers with no media query anywhere near that width —
|
|
139
|
+
// only a container query can see it. Safe here: the root is a
|
|
140
|
+
// BLOCK, never a flex parent, so `container-type` cannot collapse a
|
|
141
|
+
// flex child (see rich-text-editor/editor-toolbar.tsx for the same
|
|
142
|
+
// precaution).
|
|
143
|
+
"ds:relative ds:block ds:@container/eventcard",
|
|
135
144
|
"ds:w-full ds:h-full",
|
|
136
145
|
"ds:ps-[var(--spacing-2xs)] ds:pe-[var(--spacing-2xs)]",
|
|
137
146
|
"ds:rounded-[var(--radius-sm)]",
|
|
@@ -239,7 +248,7 @@ const me = {
|
|
|
239
248
|
allDay: d = !1,
|
|
240
249
|
status: s,
|
|
241
250
|
backgroundColor: o,
|
|
242
|
-
textColor:
|
|
251
|
+
textColor: m,
|
|
243
252
|
borderColor: h,
|
|
244
253
|
isBookedOnline: g = !1,
|
|
245
254
|
hasUnassignedPatient: N,
|
|
@@ -258,9 +267,9 @@ const me = {
|
|
|
258
267
|
"aria-label": C,
|
|
259
268
|
...O
|
|
260
269
|
}, M) => {
|
|
261
|
-
const { t: b } = q(), x = s ?
|
|
270
|
+
const { t: b } = q(), x = s ? pe[s] : null, H = !!x || !!g || !!N || !!w || !!k || !!y || !!z, R = s ? b(ue[s]) : void 0, V = u ? b("calendar.eventKind.draft") : l ? b("calendar.eventKind.task") : void 0, K = C ?? [a, n, A, R, V].filter(Boolean).join(", "), v = !l && !u && j === "tinted", _ = !v && !m && o ? ce(o) : null, S = v ? o ? { "--calendar-event-accent": o } : void 0 : o || m || h ? {
|
|
262
271
|
...o ? { "--calendar-event-bg": o } : {},
|
|
263
|
-
...
|
|
272
|
+
...m ? { "--calendar-event-text": m } : _ === "on-light" ? { "--calendar-event-text": "var(--event-ink-on-light)" } : _ === "on-dark" ? { "--calendar-event-text": "var(--event-ink-on-dark)" } : {},
|
|
264
273
|
...h ? { "--calendar-event-border": h } : {}
|
|
265
274
|
} : void 0, U = I || S ? { ...I, ...S } : void 0;
|
|
266
275
|
return /* @__PURE__ */ c(
|
|
@@ -281,7 +290,7 @@ const me = {
|
|
|
281
290
|
"data-event-id": L,
|
|
282
291
|
"data-kind": u ? "draft" : l ? "task" : "appointment",
|
|
283
292
|
"data-status": s ?? "none",
|
|
284
|
-
"data-contrast": v ? "tinted" :
|
|
293
|
+
"data-contrast": v ? "tinted" : m ? "custom" : _ ?? "default",
|
|
285
294
|
children: [
|
|
286
295
|
l ? (
|
|
287
296
|
/* Task cards lead with ONE line — glyph + title inline. A task is
|
|
@@ -313,7 +322,7 @@ const me = {
|
|
|
313
322
|
produced glyphs-through-icons in sliver-width columns). A
|
|
314
323
|
one-line sliver still reads "09:15 Name" plus icons. */
|
|
315
324
|
/* @__PURE__ */ c("span", { className: "ds:flex ds:h-full ds:items-stretch ds:gap-[var(--spacing-2xs)]", children: [
|
|
316
|
-
/* @__PURE__ */ c("span", { className: "ds:min-w-
|
|
325
|
+
/* @__PURE__ */ c("span", { className: "ds:min-w-[var(--spacing-2xl)] ds:flex-1 ds:overflow-hidden ds:break-normal", children: [
|
|
317
326
|
t && !d && n ? (
|
|
318
327
|
// No opacity here — composing 70% over saturated bgs drops
|
|
319
328
|
// effective contrast below WCAG AA. The smaller
|
|
@@ -340,16 +349,25 @@ const me = {
|
|
|
340
349
|
{
|
|
341
350
|
className: H ? (
|
|
342
351
|
/* Vertically CENTRED indicator column — each disc is
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
352
|
+
its own card-surface circle, so no plate and no
|
|
353
|
+
colour-on-colour.
|
|
354
|
+
|
|
355
|
+
Hidden below 128px of CARD width: three discs are
|
|
356
|
+
58px, so on a 34px overlap sliver the shrink-0
|
|
357
|
+
column outran the whole card and the time and name
|
|
358
|
+
were laid out at zero. Decoration must not outrank
|
|
359
|
+
the only content, and nothing is lost — every disc
|
|
360
|
+
is aria-hidden and its meaning already sits in the
|
|
361
|
+
composed aria-label, which a sliver card still
|
|
362
|
+
carries in full. */
|
|
363
|
+
"ds:hidden ds:@[128px]/eventcard:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-2xs)] ds:self-center"
|
|
346
364
|
) : "ds:hidden",
|
|
347
365
|
children: [
|
|
348
366
|
x && s ? /* @__PURE__ */ e(
|
|
349
367
|
"span",
|
|
350
368
|
{
|
|
351
369
|
"aria-hidden": "true",
|
|
352
|
-
className: `${i} ${
|
|
370
|
+
className: `${i} ${p[me[s]]}`,
|
|
353
371
|
children: /* @__PURE__ */ e(x, { size: 11, "aria-hidden": "true" })
|
|
354
372
|
}
|
|
355
373
|
) : null,
|
|
@@ -357,7 +375,7 @@ const me = {
|
|
|
357
375
|
"span",
|
|
358
376
|
{
|
|
359
377
|
"aria-hidden": "true",
|
|
360
|
-
className: `${i} ${
|
|
378
|
+
className: `${i} ${p.info}`,
|
|
361
379
|
children: /* @__PURE__ */ e(J, { size: 11, "aria-hidden": "true" })
|
|
362
380
|
}
|
|
363
381
|
) : null,
|
|
@@ -365,7 +383,7 @@ const me = {
|
|
|
365
383
|
"span",
|
|
366
384
|
{
|
|
367
385
|
"aria-hidden": "true",
|
|
368
|
-
className: `${i} ${
|
|
386
|
+
className: `${i} ${p.warning}`,
|
|
369
387
|
children: /* @__PURE__ */ e(P, { size: 11, "aria-hidden": "true" })
|
|
370
388
|
}
|
|
371
389
|
) : null,
|
|
@@ -373,7 +391,7 @@ const me = {
|
|
|
373
391
|
"span",
|
|
374
392
|
{
|
|
375
393
|
"aria-hidden": "true",
|
|
376
|
-
className: `${i} ${
|
|
394
|
+
className: `${i} ${p.accent}`,
|
|
377
395
|
children: /* @__PURE__ */ e(Q, { size: 11, "aria-hidden": "true" })
|
|
378
396
|
}
|
|
379
397
|
) : null,
|
|
@@ -381,7 +399,7 @@ const me = {
|
|
|
381
399
|
"span",
|
|
382
400
|
{
|
|
383
401
|
"aria-hidden": "true",
|
|
384
|
-
className: `${i} ${
|
|
402
|
+
className: `${i} ${p.warning}`,
|
|
385
403
|
children: /* @__PURE__ */ e(re, { size: 11, "aria-hidden": "true" })
|
|
386
404
|
}
|
|
387
405
|
) : null,
|
|
@@ -389,7 +407,7 @@ const me = {
|
|
|
389
407
|
"span",
|
|
390
408
|
{
|
|
391
409
|
"aria-hidden": "true",
|
|
392
|
-
className: `${i} ${
|
|
410
|
+
className: `${i} ${p.info}`,
|
|
393
411
|
children: /* @__PURE__ */ e(T, { size: 11, "aria-hidden": "true" })
|
|
394
412
|
}
|
|
395
413
|
) : null,
|
|
@@ -397,7 +415,7 @@ const me = {
|
|
|
397
415
|
"span",
|
|
398
416
|
{
|
|
399
417
|
"aria-hidden": "true",
|
|
400
|
-
className: `${i} ${
|
|
418
|
+
className: `${i} ${p.info}`,
|
|
401
419
|
children: /* @__PURE__ */ e(X, { size: 11, "aria-hidden": "true" })
|
|
402
420
|
}
|
|
403
421
|
) : null
|
|
@@ -426,4 +444,4 @@ export {
|
|
|
426
444
|
ie as Z,
|
|
427
445
|
Ae as w
|
|
428
446
|
};
|
|
429
|
-
//# sourceMappingURL=calendar-event-card-
|
|
447
|
+
//# sourceMappingURL=calendar-event-card-66CEEWU6.js.map
|