@teamco/ischeduler-shadcn 2.0.1 → 2.0.9
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 +21 -0
- package/README.md +56 -0
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ischeduler contributors
|
|
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,56 @@
|
|
|
1
|
+
# @teamco/ischeduler-shadcn
|
|
2
|
+
|
|
3
|
+
iScheduler UI components for [React](https://reactjs.org) and [shadcn/ui](https://ui.shadcn.com) (Radix UI + Tailwind).
|
|
4
|
+
|
|
5
|
+
Provides a complete scheduler form, a table list with CRUD actions, and a drawer-based creation flow — all driven by a headless core.
|
|
6
|
+
|
|
7
|
+
[](../../LICENSE)
|
|
8
|
+
|
|
9
|
+
## Demo sandbox: [https://teamco.github.io/ischeduler/](https://teamco.github.io/ischeduler/?path=/story/shadcn-overview--overview-story)
|
|
10
|
+
|
|
11
|
+
<img width="1024" height="239" alt="Screenshot 2026-04-03 at 9 29 00" src="https://github.com/user-attachments/assets/de3375b6-1ff6-436c-92da-17965c1302a2" />
|
|
12
|
+
<img width="1024" height="504" alt="Screenshot 2026-04-03 at 9 29 19" src="https://github.com/user-attachments/assets/46460517-7573-453e-83d0-2324dfb88986" />
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install @teamco/ischeduler-core @teamco/ischeduler-shadcn
|
|
18
|
+
npm install react react-dom dayjs
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Quick Start (Controlled pattern)
|
|
22
|
+
|
|
23
|
+
MUI and shadcn adapters use a controlled component pattern instead of Ant Design's Form:
|
|
24
|
+
|
|
25
|
+
```tsx
|
|
26
|
+
import { SchedulerProvider, ESchedulerPrefix, type IScheduler } from '@teamco/ischeduler-core';
|
|
27
|
+
import { SchedulersList } from '@teamco/ischeduler-shadcn';
|
|
28
|
+
|
|
29
|
+
function App() {
|
|
30
|
+
return (
|
|
31
|
+
<SchedulerProvider
|
|
32
|
+
schedulers={/* your schedulers state */}
|
|
33
|
+
onCreate={/* create callback */}
|
|
34
|
+
onUpdate={/* update callback */}
|
|
35
|
+
onDelete={/* delete callback */}
|
|
36
|
+
permissions={{ canCreate: true, canUpdate: true, canDelete: true }}
|
|
37
|
+
>
|
|
38
|
+
<SchedulersList type={ESchedulerPrefix.SALE} />
|
|
39
|
+
</SchedulerProvider>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Components
|
|
45
|
+
|
|
46
|
+
- **`Scheduler`** — Form for creating/editing a scheduler.
|
|
47
|
+
- **`SchedulersList`** — Table with CRUD actions, column visibility toggle, and pagination.
|
|
48
|
+
- **`SchedulerDrawerButton`** — Button that opens a drawer with the `Scheduler` form.
|
|
49
|
+
|
|
50
|
+
## Documentation
|
|
51
|
+
|
|
52
|
+
For architecture details, i18n customization, and more examples, visit the [main repository](https://github.com/teamco/ischeduler).
|
|
53
|
+
|
|
54
|
+
## License
|
|
55
|
+
|
|
56
|
+
[MIT](../../LICENSE)
|