@mijn-ui/react-calendar 0.0.6 → 0.0.8
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/README.md +16 -0
- package/dist/index.js +9 -9
- package/dist/metafile-esm.json +1 -1
- package/package.json +11 -5
package/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
# @mijn-ui/react-calendar
|
|
3
|
+
|
|
4
|
+
A date field component that allows users to enter and edit date.
|
|
5
|
+
|
|
6
|
+
[Documentation](https://mijn-ui.vercel.app/docs/components/calendar)
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
npm install @mijn-ui/react-calendar
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## License
|
|
15
|
+
|
|
16
|
+
This project is licensed under the terms of the [MIT license.](https://github.com/mijn-ui/mijn-ui-react/blob/main/LICENSE)
|
package/dist/index.js
CHANGED
|
@@ -5,11 +5,11 @@ import { buttonStyles } from "@mijn-ui/react-button";
|
|
|
5
5
|
import { cn } from "@mijn-ui/react-utilities/shared";
|
|
6
6
|
import { DayFlag, DayPicker, SelectionState, UI } from "react-day-picker";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "
|
|
8
|
+
ChevronDownIcon,
|
|
9
|
+
ChevronLeftIcon,
|
|
10
|
+
ChevronRightIcon,
|
|
11
|
+
ChevronUpIcon
|
|
12
|
+
} from "@mijn-ui/shared-icons";
|
|
13
13
|
import { jsx } from "react/jsx-runtime";
|
|
14
14
|
var Calendar = ({
|
|
15
15
|
className,
|
|
@@ -63,13 +63,13 @@ var Calendar = ({
|
|
|
63
63
|
var Chevron = ({ orientation = "left" }) => {
|
|
64
64
|
switch (orientation) {
|
|
65
65
|
case "left":
|
|
66
|
-
return /* @__PURE__ */ jsx(
|
|
66
|
+
return /* @__PURE__ */ jsx(ChevronLeftIcon, { className: "size-4" });
|
|
67
67
|
case "right":
|
|
68
|
-
return /* @__PURE__ */ jsx(
|
|
68
|
+
return /* @__PURE__ */ jsx(ChevronRightIcon, { className: "size-4" });
|
|
69
69
|
case "up":
|
|
70
|
-
return /* @__PURE__ */ jsx(
|
|
70
|
+
return /* @__PURE__ */ jsx(ChevronUpIcon, { className: "size-4" });
|
|
71
71
|
case "down":
|
|
72
|
-
return /* @__PURE__ */ jsx(
|
|
72
|
+
return /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4" });
|
|
73
73
|
default:
|
|
74
74
|
return null;
|
|
75
75
|
}
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/calendar.tsx":{"bytes":
|
|
1
|
+
{"inputs":{"src/calendar.tsx":{"bytes":3229,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@mijn-ui/react-button","kind":"import-statement","external":true},{"path":"@mijn-ui/react-utilities/shared","kind":"import-statement","external":true},{"path":"react-day-picker","kind":"import-statement","external":true},{"path":"@mijn-ui/shared-icons","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":27,"imports":[{"path":"src/calendar.tsx","kind":"import-statement","original":"./calendar"}],"format":"esm"}},"outputs":{"dist/index.js":{"imports":[{"path":"@mijn-ui/react-button","kind":"import-statement","external":true},{"path":"@mijn-ui/react-utilities/shared","kind":"import-statement","external":true},{"path":"react-day-picker","kind":"import-statement","external":true},{"path":"@mijn-ui/shared-icons","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Calendar"],"entryPoint":"src/index.ts","inputs":{"src/calendar.tsx":{"bytesInOutput":3204},"src/index.ts":{"bytesInOutput":0}},"bytes":3247}}}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mijn-ui/react-calendar",
|
|
3
3
|
"author": "Htet Aung Lin<htetaunglin.coder@gmail.com>",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.8",
|
|
5
5
|
"homepage": "https://mijn-ui.vercel.app",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -24,15 +24,16 @@
|
|
|
24
24
|
"@types/react": "^18.3.12",
|
|
25
25
|
"@types/react-dom": "^18.3.1",
|
|
26
26
|
"eslint-config-custom": "0.0.1",
|
|
27
|
-
"tsconfig": "0.0.0"
|
|
27
|
+
"tsconfig": "0.0.0",
|
|
28
|
+
"tsup-config": "0.0.0"
|
|
28
29
|
},
|
|
29
30
|
"dependencies": {
|
|
30
31
|
"react": "19.0.0-rc-b01722d5-20241114",
|
|
31
32
|
"react-dom": "19.0.0-rc-b01722d5-20241114",
|
|
32
33
|
"react-day-picker": "^9.3.0",
|
|
33
|
-
"react-
|
|
34
|
-
"@mijn-ui/react-
|
|
35
|
-
"@mijn-ui/
|
|
34
|
+
"@mijn-ui/react-utilities": "0.0.6",
|
|
35
|
+
"@mijn-ui/react-button": "0.0.8",
|
|
36
|
+
"@mijn-ui/shared-icons": "0.0.2"
|
|
36
37
|
},
|
|
37
38
|
"peerDependencies": {
|
|
38
39
|
"react": "^19.0",
|
|
@@ -41,6 +42,11 @@
|
|
|
41
42
|
"publishConfig": {
|
|
42
43
|
"access": "public"
|
|
43
44
|
},
|
|
45
|
+
"keywords": [
|
|
46
|
+
"calendar",
|
|
47
|
+
"react",
|
|
48
|
+
"nextjs"
|
|
49
|
+
],
|
|
44
50
|
"scripts": {
|
|
45
51
|
"clean": "rimraf dist",
|
|
46
52
|
"build": "tsup",
|