@softium/calendar 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sunghoon Lee
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # @softium/calendar
2
+
3
+ A full calendar UI for React: month / week / day / year views, an event
4
+ create/edit modal with categories and recurrence (daily/weekly/monthly/yearly),
5
+ drag-to-create / move / resize, keyboard navigation, undo/redo, and holidays.
6
+ Token-CSS themed — no Tailwind.
7
+
8
+ Part of [softium-ui](https://github.com/HOONY-LEE/softium-ui).
9
+
10
+ ## Install
11
+
12
+ ```bash
13
+ npm i @softium/calendar
14
+ ```
15
+
16
+ `react` and `react-dom` (`^18` or `^19`) are peer dependencies.
17
+
18
+ ## Usage
19
+
20
+ Import the stylesheet once, then render `<Calendar>`:
21
+
22
+ ```tsx
23
+ import '@softium/calendar/styles.css';
24
+ import { Calendar } from '@softium/calendar';
25
+
26
+ export function Demo() {
27
+ return (
28
+ <Calendar
29
+ language="en"
30
+ initialEvents={[
31
+ { id: '1', title: 'Standup', date: new Date(), startTime: '10:00', endTime: '10:30' },
32
+ ]}
33
+ />
34
+ );
35
+ }
36
+ ```
37
+
38
+ Pass a `controller` from `useCalendar()` to drive events/categories from your
39
+ own state, or let `Calendar` manage them internally. Recurring-event edits
40
+ (move/delete) prompt a "this / this-and-following / all" scope dialog.
41
+
42
+ ## Theming
43
+
44
+ Plain CSS custom properties (`--sft-*`). Dark mode via `prefers-color-scheme`
45
+ or `<html data-theme="dark">`. The stylesheet inlines the shared design tokens,
46
+ so this one import is self-contained.
47
+
48
+ ## License
49
+
50
+ MIT © Sunghoon Lee