Skip to content

Commit 08b3b7a

Browse files
author
onesine
committed
Initial commit
0 parents  commit 08b3b7a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+6433
-0
lines changed

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
node_modules
5+
6+
# test coverage
7+
coverage
8+
9+
# builds
10+
build
11+
#dist
12+
.rpt2_cache
13+
14+
# misc
15+
.DS_Store
16+
.env
17+
.env.local
18+
.env.development.local
19+
.env.test.local
20+
.env.production.local
21+
22+
npm-debug.log*
23+
yarn-debug.log*
24+
yarn-error.log*
25+
26+
.vscode
27+
.idea

.npmignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## Folders
2+
src
3+
node_modules
4+
.vscode
5+
.idea
6+
assets
7+
## Files
8+
babel.config.json
9+
tsconfig.json
10+
rollup.config.js
11+
.git
12+
.gitignore
13+
.DS_Store
14+
npm-debug.log
15+
package-lock.json
16+
yarn.lock
17+
tailwind.config.js
18+
postcss.config.js

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Onesine
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.

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Still in development
2+
3+
This is simple react package template
4+
5+
Created with:
6+
- **React**,
7+
- **Rollup**,
8+
- **TypeScript**,
9+
10+
## License
11+
MIT Licensed. Copyright (c) Lewhe Onesine 2022.

dist/components/Calendar/Days.d.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import React from "react";
2+
import dayjs from "dayjs";
3+
interface Props {
4+
calendarData: {
5+
date: dayjs.Dayjs;
6+
days: {
7+
previous: number[];
8+
current: number[];
9+
next: number[];
10+
};
11+
};
12+
onClickPreviousDays: (day: number) => void;
13+
onClickDay: (day: number) => void;
14+
onClickNextDays: (day: number) => void;
15+
}
16+
declare const Days: React.FC<Props>;
17+
export default Days;

dist/components/Calendar/Months.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import React from "react";
2+
interface Props {
3+
clickMonth: (month: number) => void;
4+
}
5+
declare const Months: React.FC<Props>;
6+
export default Months;

dist/components/Calendar/Week.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import React from "react";
2+
declare const Week: React.FC;
3+
export default Week;

dist/components/Calendar/Years.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import React from "react";
2+
interface Props {
3+
year: number;
4+
clickYear: (data: number) => void;
5+
}
6+
declare const Years: React.FC<Props>;
7+
export default Years;

dist/components/Calendar/index.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from "react";
2+
import dayjs from 'dayjs';
3+
interface Props {
4+
date: dayjs.Dayjs;
5+
onClickPrevious: () => void;
6+
onClickNext: () => void;
7+
changeMonth: (month: number) => void;
8+
changeYear: (year: number) => void;
9+
}
10+
declare const Calendar: React.FC<Props>;
11+
export default Calendar;

dist/components/Datepicker.d.ts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import React from "react";
2+
interface Props {
3+
primaryColor?: string;
4+
value: {
5+
startDate: Date | string;
6+
endDate: Date | string;
7+
} | null;
8+
onChange: (value: {
9+
startDate: string | null;
10+
endDate: string | null;
11+
}) => void;
12+
useRange?: boolean;
13+
showFooter?: boolean;
14+
showShortcuts?: boolean;
15+
configs?: {
16+
shortcuts?: {
17+
today?: string;
18+
yesterday?: string;
19+
past?: (period: number) => string;
20+
currentMonth?: string;
21+
pastMonth?: string;
22+
} | null;
23+
footer?: {
24+
cancel?: string;
25+
apply?: string;
26+
} | null;
27+
} | null;
28+
asSingle?: boolean;
29+
placeholder?: string;
30+
separator?: string;
31+
startFrom?: Date | null;
32+
i18n?: string;
33+
}
34+
declare const Datepicker: React.FC<Props>;
35+
export default Datepicker;

0 commit comments

Comments
 (0)