@cerberus-design/react 1.9.0-next.1790696978591.fa36c92 → 1.9.0-next.1790786618140.ca4e12e
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.
|
@@ -11,12 +11,13 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
11
11
|
*/
|
|
12
12
|
function DatePickerDayView(props) {
|
|
13
13
|
function isToday(date) {
|
|
14
|
-
|
|
14
|
+
const today = () => /* @__PURE__ */ new Date();
|
|
15
|
+
return today().toISOString().split("T")[0] === `${date.year}-${String(date.month).padStart(2, "0")}-${String(date.day).padStart(2, "0")}`;
|
|
15
16
|
}
|
|
16
17
|
function isPastDay(date) {
|
|
17
|
-
const today = /* @__PURE__ */ new Date();
|
|
18
|
+
const today = () => /* @__PURE__ */ new Date();
|
|
18
19
|
const arkDate = `${date.year}-${String(date.month).padStart(2, "0")}-${String(date.day).padStart(2, "0")}`;
|
|
19
|
-
return new Date(arkDate) < today;
|
|
20
|
+
return new Date(arkDate) < today();
|
|
20
21
|
}
|
|
21
22
|
function getDayValue(date) {
|
|
22
23
|
if (isToday(date)) return "today";
|
|
@@ -11,12 +11,13 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
11
11
|
*/
|
|
12
12
|
function DatePickerDayView(props) {
|
|
13
13
|
function isToday(date) {
|
|
14
|
-
|
|
14
|
+
const today = () => /* @__PURE__ */ new Date();
|
|
15
|
+
return today().toISOString().split("T")[0] === `${date.year}-${String(date.month).padStart(2, "0")}-${String(date.day).padStart(2, "0")}`;
|
|
15
16
|
}
|
|
16
17
|
function isPastDay(date) {
|
|
17
|
-
const today = /* @__PURE__ */ new Date();
|
|
18
|
+
const today = () => /* @__PURE__ */ new Date();
|
|
18
19
|
const arkDate = `${date.year}-${String(date.month).padStart(2, "0")}-${String(date.day).padStart(2, "0")}`;
|
|
19
|
-
return new Date(arkDate) < today;
|
|
20
|
+
return new Date(arkDate) < today();
|
|
20
21
|
}
|
|
21
22
|
function getDayValue(date) {
|
|
22
23
|
if (isToday(date)) return "today";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cerberus-design/react",
|
|
3
|
-
"version": "1.9.0-next.
|
|
3
|
+
"version": "1.9.0-next.1790786618140.ca4e12e",
|
|
4
4
|
"description": "The Cerberus Design React component library.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@ark-ui/react": "^5.39.2",
|
|
35
|
-
"@carbon/icons-react": "^11.
|
|
35
|
+
"@carbon/icons-react": "^11.89.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@cerberus/panda-preset": "1.9.0-next.
|
|
38
|
+
"@cerberus/panda-preset": "1.9.0-next.1790786618140.ca4e12e",
|
|
39
39
|
"@internationalized/date": "^3.12.4",
|
|
40
40
|
"@pandacss/dev": "^1.12.1",
|
|
41
41
|
"@types/react": "^19.3.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"react": "^19.3.0",
|
|
47
47
|
"react-dom": "^19.3.0",
|
|
48
48
|
"styled-system": "0.0.0",
|
|
49
|
-
"vite": "^8.3.
|
|
49
|
+
"vite": "^8.3.1",
|
|
50
50
|
"vite-plugin-dts": "^5.1.1"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|