@mijn-ui/react-calendar 0.0.5 → 0.0.7

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/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
- LuChevronDown,
9
- LuChevronLeft,
10
- LuChevronRight,
11
- LuChevronUp
12
- } from "react-icons/lu";
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,
@@ -28,16 +28,16 @@ var Calendar = ({
28
28
  [UI.MonthCaption]: "flex justify-center py-2 relative items-center",
29
29
  [UI.CaptionLabel]: "text-sm font-medium",
30
30
  [UI.PreviousMonthButton]: cn(
31
- buttonStyles({ color: "neutral", variant: "outline" }),
31
+ buttonStyles({ color: "muted", variant: "outline" }),
32
32
  "absolute left-1 top-0 z-10 size-7 bg-transparent p-0 opacity-50 hover:opacity-100"
33
33
  ),
34
34
  [UI.NextMonthButton]: cn(
35
- buttonStyles({ color: "neutral", variant: "outline" }),
35
+ buttonStyles({ color: "muted", variant: "outline" }),
36
36
  "absolute right-1 top-0 z-10 size-7 bg-transparent p-0 opacity-50 hover:opacity-100"
37
37
  ),
38
38
  [UI.MonthGrid]: "w-full border-collapse space-y-1",
39
39
  [UI.Weekdays]: "flex",
40
- [UI.Weekday]: "text-neutral-text w-9 font-normal text-[0.8rem] h-9 flex items-center justify-center",
40
+ [UI.Weekday]: "text-muted-text w-9 font-normal text-[0.8rem] h-9 flex items-center justify-center",
41
41
  [UI.Week]: "flex w-full mt-0.5",
42
42
  [UI.Day]: cn(
43
43
  buttonStyles({ variant: "text", color: "accent" }),
@@ -48,8 +48,8 @@ var Calendar = ({
48
48
  [SelectionState.selected]: "bg-primary text-primary-text hover:bg-primary hover:text-primary-text focus:bg-primary focus:text-primary-text",
49
49
  [SelectionState.range_middle]: "aria-selected:bg-accent/75 aria-selected:text-accent-text",
50
50
  [DayFlag.today]: "bg-accent text-accent-text",
51
- [DayFlag.outside]: "day-outside text-neutral-text opacity-50 aria-selected:bg-accent/50 aria-selected:text-neutral-text aria-selected:opacity-30",
52
- [DayFlag.disabled]: "text-neutral-text opacity-50",
51
+ [DayFlag.outside]: "day-outside text-muted-text opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-text aria-selected:opacity-30",
52
+ [DayFlag.disabled]: "text-muted-text opacity-50",
53
53
  [DayFlag.hidden]: "invisible",
54
54
  ...classNames
55
55
  },
@@ -63,13 +63,13 @@ var Calendar = ({
63
63
  var Chevron = ({ orientation = "left" }) => {
64
64
  switch (orientation) {
65
65
  case "left":
66
- return /* @__PURE__ */ jsx(LuChevronLeft, { className: "size-4" });
66
+ return /* @__PURE__ */ jsx(ChevronLeftIcon, { className: "size-4" });
67
67
  case "right":
68
- return /* @__PURE__ */ jsx(LuChevronRight, { className: "size-4" });
68
+ return /* @__PURE__ */ jsx(ChevronRightIcon, { className: "size-4" });
69
69
  case "up":
70
- return /* @__PURE__ */ jsx(LuChevronUp, { className: "size-4" });
70
+ return /* @__PURE__ */ jsx(ChevronUpIcon, { className: "size-4" });
71
71
  case "down":
72
- return /* @__PURE__ */ jsx(LuChevronDown, { className: "size-4" });
72
+ return /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4" });
73
73
  default:
74
74
  return null;
75
75
  }
@@ -1 +1 @@
1
- {"inputs":{"src/calendar.tsx":{"bytes":3218,"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":"react-icons/lu","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":"react-icons/lu","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":3193},"src/index.ts":{"bytesInOutput":0}},"bytes":3236}}}
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.5",
4
+ "version": "0.0.7",
5
5
  "homepage": "https://mijn-ui.vercel.app",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -24,19 +24,20 @@
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-icons": "^5.3.0",
34
- "@mijn-ui/react-utilities": "0.0.4",
35
- "@mijn-ui/react-button": "0.0.5"
34
+ "@mijn-ui/react-utilities": "0.0.5",
35
+ "@mijn-ui/react-button": "0.0.7",
36
+ "@mijn-ui/shared-icons": "0.0.1"
36
37
  },
37
38
  "peerDependencies": {
38
- "react": "19.0.0-rc-b01722d5-20241114",
39
- "react-dom": "19.0.0-rc-b01722d5-20241114"
39
+ "react": "^19.0",
40
+ "react-dom": "^19.0"
40
41
  },
41
42
  "publishConfig": {
42
43
  "access": "public"