@innosolutions/inno-calendar 1.0.60 → 1.0.62
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/AGENT.md +31 -4
- package/dist/{agenda-widget-COpTIR70.js → agenda-widget-Couk7jMB.js} +1314 -1296
- package/dist/agenda-widget-Couk7jMB.js.map +1 -0
- package/dist/agenda-widget-DZkEXTh-.cjs +2 -0
- package/dist/agenda-widget-DZkEXTh-.cjs.map +1 -0
- package/dist/components/event/event-card.d.ts.map +1 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.mjs +2 -2
- package/dist/components/primitives/scroll-navigator.d.ts +3 -1
- package/dist/components/primitives/scroll-navigator.d.ts.map +1 -1
- package/dist/components/views/timeline-view.d.ts +1 -1
- package/dist/components/views/timeline-view.d.ts.map +1 -1
- package/dist/core/context/slot-selection-context.d.ts +2 -0
- package/dist/core/context/slot-selection-context.d.ts.map +1 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +4 -4
- package/dist/presets/index.cjs +1 -1
- package/dist/presets/index.mjs +1 -1
- package/dist/slot-selection-context-CRstOosL.js +604 -0
- package/dist/{slot-selection-context-CKGT_45R.js.map → slot-selection-context-CRstOosL.js.map} +1 -1
- package/dist/slot-selection-context-DBCZI2Dn.cjs +2 -0
- package/dist/{slot-selection-context-CS1te8uo.cjs.map → slot-selection-context-DBCZI2Dn.cjs.map} +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/{tailwind-calendar-C3DidCJ5.js → tailwind-calendar-CNhXkxzW.js} +2 -2
- package/dist/{tailwind-calendar-C3DidCJ5.js.map → tailwind-calendar-CNhXkxzW.js.map} +1 -1
- package/dist/{tailwind-calendar-iFeIx0Ci.cjs → tailwind-calendar-VRvPJQwa.cjs} +2 -2
- package/dist/{tailwind-calendar-iFeIx0Ci.cjs.map → tailwind-calendar-VRvPJQwa.cjs.map} +1 -1
- package/dist/week-view-C1Vu2ErD.cjs +11 -0
- package/dist/week-view-C1Vu2ErD.cjs.map +1 -0
- package/dist/{week-view-CNbtlkE_.js → week-view-DY167Wok.js} +700 -670
- package/dist/week-view-DY167Wok.js.map +1 -0
- package/package.json +1 -1
- package/dist/agenda-widget-BtjS59HE.cjs +0 -2
- package/dist/agenda-widget-BtjS59HE.cjs.map +0 -1
- package/dist/agenda-widget-COpTIR70.js.map +0 -1
- package/dist/slot-selection-context-CKGT_45R.js +0 -598
- package/dist/slot-selection-context-CS1te8uo.cjs +0 -2
- package/dist/week-view-B9_48WmF.cjs +0 -11
- package/dist/week-view-B9_48WmF.cjs.map +0 -1
- package/dist/week-view-CNbtlkE_.js.map +0 -1
package/AGENT.md
CHANGED
|
@@ -137,10 +137,21 @@ import { useCalendar, type TCalendarView } from '@innosolutions/inno-calendar/co
|
|
|
137
137
|
import { EventCard } from '@innosolutions/inno-calendar/components';
|
|
138
138
|
// Presets only
|
|
139
139
|
import { DefaultCalendar } from '@innosolutions/inno-calendar/presets';
|
|
140
|
-
// Styles (required for built-in components)
|
|
141
|
-
import '@innosolutions/inno-calendar/styles';
|
|
140
|
+
// Styles (required for built-in components — import in the page/component that renders the calendar)
|
|
141
|
+
import '@innosolutions/inno-calendar/styles.css';
|
|
142
142
|
```
|
|
143
143
|
|
|
144
|
+
### TailwindCSS Source Directive (Required)
|
|
145
|
+
|
|
146
|
+
For Tailwind to scan the package's class names, add a `@source` directive in your **global CSS file** (e.g., `app/style.css` or `globals.css`):
|
|
147
|
+
|
|
148
|
+
```css
|
|
149
|
+
/* app/style.css (or your global CSS entry point) */
|
|
150
|
+
@source "../../node_modules/@innosolutions/inno-calendar/dist";
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
> **Why?** TailwindCSS 4+ only scans files under your project source by default. Without this directive, Tailwind will purge the calendar's utility classes and the components will render unstyled. Adjust the relative path based on your CSS file's location relative to `node_modules`.
|
|
154
|
+
|
|
144
155
|
---
|
|
145
156
|
|
|
146
157
|
## 4. Core Types
|
|
@@ -1164,7 +1175,23 @@ import { TailwindCalendar } from '@innosolutions/inno-calendar';
|
|
|
1164
1175
|
|
|
1165
1176
|
## 18. CSS & Theming
|
|
1166
1177
|
|
|
1167
|
-
Styles are in `src/styles/calendar.css` (imported via `@innosolutions/inno-calendar/styles`).
|
|
1178
|
+
Styles are in `src/styles/calendar.css` (imported via `@innosolutions/inno-calendar/styles.css`).
|
|
1179
|
+
|
|
1180
|
+
### Consumer Setup (Required)
|
|
1181
|
+
|
|
1182
|
+
**1. Global CSS — TailwindCSS source directive:**
|
|
1183
|
+
|
|
1184
|
+
```css
|
|
1185
|
+
/* app/style.css or globals.css */
|
|
1186
|
+
@source "../../node_modules/@innosolutions/inno-calendar/dist";
|
|
1187
|
+
```
|
|
1188
|
+
|
|
1189
|
+
**2. Page/component — style import:**
|
|
1190
|
+
|
|
1191
|
+
```tsx
|
|
1192
|
+
// In the file where you render <InnoCalendar> (e.g., agenda.tsx)
|
|
1193
|
+
import '@innosolutions/inno-calendar/styles.css';
|
|
1194
|
+
```
|
|
1168
1195
|
|
|
1169
1196
|
### CSS Custom Properties
|
|
1170
1197
|
|
|
@@ -1304,7 +1331,7 @@ const DEFAULT_BUSINESS_HOURS: IVisibleHours = { startHour: 8, endHour: 18 };
|
|
|
1304
1331
|
|
|
1305
1332
|
```tsx
|
|
1306
1333
|
import { InnoCalendar, type CalendarEvent } from '@innosolutions/inno-calendar';
|
|
1307
|
-
import '@innosolutions/inno-calendar/styles';
|
|
1334
|
+
import '@innosolutions/inno-calendar/styles.css';
|
|
1308
1335
|
|
|
1309
1336
|
const events: CalendarEvent[] = [
|
|
1310
1337
|
{
|