@r2digisolutions/components 0.19.13 → 0.19.15

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.
@@ -84,8 +84,9 @@
84
84
  class={[
85
85
  'w-full',
86
86
  spacing[resolvedSize],
87
+ !sticky && 'mb-6',
87
88
  sticky && 'sticky top-0 z-10 bg-surface/90 backdrop-blur-md',
88
- sticky && 'border-b border-border pb-3',
89
+ sticky && 'border-b border-border pb-3 mb-6',
89
90
  className
90
91
  ]}
91
92
  >
@@ -13,6 +13,7 @@
13
13
  import Plus from '@lucide/svelte/icons/plus';
14
14
  import MapPin from '@lucide/svelte/icons/map-pin';
15
15
  import Clock from '@lucide/svelte/icons/clock';
16
+ import User from '@lucide/svelte/icons/user';
16
17
  import X from '@lucide/svelte/icons/x';
17
18
 
18
19
  export type CalendarView = 'month' | 'week' | 'day' | 'agenda';
@@ -38,6 +39,8 @@
38
39
  calendarId?: string;
39
40
  color?: CalendarTone;
40
41
  location?: string;
42
+ /** Person / client linked to the event (shown in detail). */
43
+ people?: string;
41
44
  description?: string;
42
45
  }
43
46
 
@@ -368,6 +371,7 @@
368
371
  calendarId: e.calendarId,
369
372
  color: e.color,
370
373
  location: e.location,
374
+ people: e.people,
371
375
  description: e.description
372
376
  };
373
377
  selectedEventId = e.id;
@@ -1214,6 +1218,12 @@
1214
1218
  <Clock class="h-4 w-4 shrink-0 text-muted" />
1215
1219
  <span>{timeLabel(selectedEvent)}</span>
1216
1220
  </div>
1221
+ {#if selectedEvent.people}
1222
+ <div class="flex items-center gap-2 text-sm text-secondary">
1223
+ <User class="h-4 w-4 shrink-0 text-muted" />
1224
+ <span class="min-w-0 truncate">{selectedEvent.people}</span>
1225
+ </div>
1226
+ {/if}
1217
1227
  {#if selectedEvent.location}
1218
1228
  <div class="flex items-center gap-2 text-sm text-secondary">
1219
1229
  <MapPin class="h-4 w-4 shrink-0 text-muted" />
@@ -1228,6 +1238,14 @@
1228
1238
  ></span>
1229
1239
  <Badge size="sm" variant="secondary">{cal.label}</Badge>
1230
1240
  </div>
1241
+ {:else if selectedEvent.calendarId}
1242
+ <div class="flex items-center gap-2">
1243
+ <span
1244
+ class={['h-2.5 w-2.5 shrink-0 rounded-full', toneClass[tone]]}
1245
+ aria-hidden="true"
1246
+ ></span>
1247
+ <Badge size="sm" variant="secondary">{selectedEvent.calendarId}</Badge>
1248
+ </div>
1231
1249
  {/if}
1232
1250
  {#if selectedEvent.description}
1233
1251
  <Text as="p" size="sm" tone="secondary" class="leading-relaxed">
@@ -20,6 +20,8 @@ export interface CalendarAppEvent {
20
20
  calendarId?: string;
21
21
  color?: CalendarTone;
22
22
  location?: string;
23
+ /** Person / client linked to the event (shown in detail). */
24
+ people?: string;
23
25
  description?: string;
24
26
  }
25
27
  export interface CalendarAppLabels {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2digisolutions/components",
3
- "version": "0.19.13",
3
+ "version": "0.19.15",
4
4
  "private": false,
5
5
  "description": "R2DigiSolutions Svelte 5 component library — Atomic Design, Tailwind 4, Light/Dark mode",
6
6
  "license": "MIT",
@@ -66,7 +66,7 @@
66
66
  },
67
67
  "devDependencies": {
68
68
  "@eslint/js": "^10.0.1",
69
- "@lucide/svelte": "^1.45.0",
69
+ "@lucide/svelte": "^1.46.0",
70
70
  "@playwright/test": "^1.63.0",
71
71
  "@storybook/addon-a11y": "^10.6.0",
72
72
  "@storybook/addon-docs": "^10.6.0",
@@ -79,7 +79,7 @@
79
79
  "@sveltejs/package": "^2.5.8",
80
80
  "@sveltejs/vite-plugin-svelte": "^7.3.0",
81
81
  "@tailwindcss/vite": "^4.3.3",
82
- "@types/node": "^26.4.1",
82
+ "@types/node": "^26.5.1",
83
83
  "@vitest/browser-playwright": "^5.0.0",
84
84
  "bumpp": "~12.3.0",
85
85
  "eslint": "^10.10.0",