react-beauty-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 +7 -0
- package/README.md +123 -0
- package/dist/build/assets/react-beauty-calendar.css +1 -0
- package/dist/build/main.cjs.js +176 -0
- package/dist/build/main.es.js +16085 -0
- package/dist/logo.png +0 -0
- package/dist/vite.svg +1 -0
- package/package.json +105 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright 2025 Diego Kennedy
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="/">
|
|
3
|
+
<img src="public/logo.png" alt="Kaneo's logo" width="200" />
|
|
4
|
+
</a>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
<h1 align="center">React Beauty Calendar - RBC </h1>
|
|
8
|
+
|
|
9
|
+
<div>
|
|
10
|
+
|
|
11
|
+
🇬🇧 [English](README.md)
|
|
12
|
+
🇧🇷 [Portuguese](README-PT.md)
|
|
13
|
+
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
With the need to implement an efficient scheduling system, I decided to create a library inspired by Google Calendar and Outlook. This library offers features such as appointment creation, drag and drop, resizing, and much more. ✨
|
|
17
|
+
|
|
18
|
+
> **Note:** The current focus is on fixing performance issues.
|
|
19
|
+
|
|
20
|
+
<div align="center">
|
|
21
|
+
|
|
22
|
+
[](LICENSE)
|
|
23
|
+
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<p align="center">An open source react calendar focused on simplicity and efficiency.</p>
|
|
27
|
+
|
|
28
|
+
## Features
|
|
29
|
+
|
|
30
|
+
- **Simple & Fast**: Minimalist interface with powerful features
|
|
31
|
+
- **Drag & Drop**: Advanced appointment creation
|
|
32
|
+
- **Open Source**: MIT licensed, free forever
|
|
33
|
+
- Storybook available.
|
|
34
|
+
|
|
35
|
+
<!-- Disabled for now -->
|
|
36
|
+
<!-- ## Installation
|
|
37
|
+
Install @RBC/react in your project with your package manager of choice:
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
npm install @RBC/react
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
yarn add @RBC/react
|
|
45
|
+
```
|
|
46
|
+
-->
|
|
47
|
+
|
|
48
|
+
## Running the App
|
|
49
|
+
|
|
50
|
+
To run the app locally, follow these steps:
|
|
51
|
+
|
|
52
|
+
1. Clone the repository:
|
|
53
|
+
|
|
54
|
+
```sh
|
|
55
|
+
git clone https://github.com/Dikendev/react-beauty-calendar.git
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
2. Navigate to the project directory:
|
|
59
|
+
|
|
60
|
+
```sh
|
|
61
|
+
cd react-beauty-calendar
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
3. Install the dependencies:
|
|
65
|
+
|
|
66
|
+
```sh
|
|
67
|
+
npm install
|
|
68
|
+
```
|
|
69
|
+
or
|
|
70
|
+
```sh
|
|
71
|
+
yarn install
|
|
72
|
+
```
|
|
73
|
+
4. Start the development server:
|
|
74
|
+
|
|
75
|
+
```sh
|
|
76
|
+
npm run dev
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
or
|
|
80
|
+
|
|
81
|
+
```sh
|
|
82
|
+
yarn dev
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
The app should now be running at http://localhost:5173.
|
|
86
|
+
|
|
87
|
+
### Running Storybook
|
|
88
|
+
|
|
89
|
+
To run Storybook locally, follow these steps:
|
|
90
|
+
|
|
91
|
+
1. Ensure you are in the project directory:
|
|
92
|
+
|
|
93
|
+
```sh
|
|
94
|
+
cd react-beauty-calendar
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
2. Start Storybook:
|
|
98
|
+
|
|
99
|
+
```sh
|
|
100
|
+
npm run storybook
|
|
101
|
+
```
|
|
102
|
+
or
|
|
103
|
+
|
|
104
|
+
```sh
|
|
105
|
+
yarn storybook
|
|
106
|
+
```
|
|
107
|
+
Storybook should now be running at http://localhost:6006.
|
|
108
|
+
|
|
109
|
+
## Contributing
|
|
110
|
+
|
|
111
|
+
We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.
|
|
112
|
+
|
|
113
|
+
## New Component Proposals
|
|
114
|
+
|
|
115
|
+
Feel free to open a issue for new ideas and contributions.
|
|
116
|
+
|
|
117
|
+
## Contact
|
|
118
|
+
|
|
119
|
+
For bug reports and feature requests, please use the issue tracker of this repository.
|
|
120
|
+
|
|
121
|
+
## License
|
|
122
|
+
|
|
123
|
+
This project is licensed under the [MIT License](LICENSE) 2025.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._calendarHeader_1dbzv_1{max-width:4.85rem;min-width:4.85rem}@media screen and (max-width: 1189px){._calendarHeader_1dbzv_1{max-width:4rem;min-width:4rem}}@property --progress{syntax: "<number>"; initial-value: 0; inherits: false;}._Draggable_1rwnc_7{position:relative;transition:transform .25s ease}._Draggable_1rwnc_7>div{-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;border:0;border-radius:5px;box-shadow:var(--box-shadow);transform:translate3d(var(--translate-x, 0),var(--translate-y, 0),0) scale(var(--scale, 1));transition:box-shadow .3s ease}._Draggable_1rwnc_7._pendingDelay_1rwnc_22{animation:_pending_1rwnc_22 linear;background-image:linear-gradient(90deg,rgb(0,47,255) calc(var(--progress)* 1%),transparent calc(var(--progress)* 1% + 1%))}._Draggable_1rwnc_7:not(._handle_1rwnc_29)>div{touch-action:none;cursor:grab}._Draggable_1rwnc_7:not(._handle_1rwnc_29)>div:focus-visible:not(._active_1rwnc_34 :is(._Draggable_1rwnc_7:not(._handle_1rwnc_29)>div)){box-shadow:0 0 0 3px #4c9ffe}._Draggable_1rwnc_7._handle_1rwnc_29>div{--action-background: rgba(255, 255, 255, .1)}._Draggable_1rwnc_7._handle_1rwnc_29>div>svg{margin-right:5px}._Draggable_1rwnc_7._handle_1rwnc_29>div>div{margin-right:-10px}._Draggable_1rwnc_7 img{-webkit-user-select:none;user-select:none;pointer-events:none}._Draggable_1rwnc_7._dragging_1rwnc_59{z-index:1;transition:none}._Draggable_1rwnc_7._dragging_1rwnc_59 *{cursor:grabbing}._Draggable_1rwnc_7._dragging_1rwnc_59>div{--scale: 1.06;--box-shadow: -1px 0 15px 0 rgba(34, 33, 81, .01), 0px 15px 15px 0 rgba(34, 33, 81, .25)}._Draggable_1rwnc_7._dragging_1rwnc_59>div:focus-visible{--box-shadow: 0 0px 10px 2px #4c9ffe}._Draggable_1rwnc_7._dragging_1rwnc_59 label{animation:none;opacity:0}._Draggable_1rwnc_7._dragOverlay_1rwnc_83>div,._Draggable_1rwnc_7._dragging_1rwnc_59>div{animation:_pop_1rwnc_1 .25s cubic-bezier(.18,.67,.6,1.22)}@keyframes _pulse_1rwnc_1{0%{opacity:0}to{opacity:1}}@keyframes _pop_1rwnc_1{0%{transform:translate3d(var(--translate-x, 0),var(--translate-y, 0),0) scale(1)}to{transform:translate3d(var(--translate-x, 0),var(--translate-y, 0),0) scale(var(--scale));box-shadow:var(--box-shadow)}}@keyframes _pending_1rwnc_22{to{--progress: 100}}#root{margin:0 auto;text-align:center}.react-resizable{position:relative}.react-resizable:hover .react-resizable-handle-s{display:inline}.dragging-effect{border:2px solid rgba(255,21,0,.682)}.show-handle.react-resizable .react-resizable-handle-s{display:inline}.react-resizable.slot-resizable>.react-resizable-handle{width:100%;height:100%}.react-resizable.slot-resizable>.react-resizable-handle.react-resizable-handle-se{cursor:default;background-image:none}.react-resizable.slot-resizable>.react-resizable-handle.react-resizable-handle-se:hover{cursor:default;background-image:none}.react-resizable-handle{position:absolute;width:20px;height:20px;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E %3Cpath d='M5 14H19M5 10H19' stroke='%23fff' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E %3C/g%3E%3C/svg%3E");background-position:bottom right}.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;left:0;cursor:se-resize;z-index:100}.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-resizable-handle-w,.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0}.react-resizable-handle-n,.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-resizable-handle-n{top:-5px;z-index:100}.react-resizable-handle-s{display:none;bottom:-5px;z-index:100}.rdp-day:hover{background-color:#edecec!important;color:#1f1f1f!important;border-radius:50%!important}.rdp-chevron{fill:#5403d6!important}.rdp-day.rdp-today{color:#fff!important;border-radius:50%;background-color:#8574e5!important}.rdp-day::selection{background-color:#8574e5!important;color:red!important}.rdp-day.rdp-selected>.rdp-day_button{background:#d5d0f7;color:#322290;border:none}.shadow{box-shadow:2px 2px 6px 1px #0000004d}@keyframes spinBorder{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}.animate-spin-border{animation:spinBorder 3s linear infinite;background-size:200% 200%}.disableVisibilityTime{display:none}.activateVisibilityTime{display:block}
|