@react-fabric/date 1.0.0-beta.49 → 1.0.0-beta.51

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.
@@ -25,7 +25,7 @@ var DateDisplay = function DateDisplay(_ref) {
25
25
  disabled: !showAlternateDate,
26
26
  content: dateUtil.DateUtil.format(date, format, currentLocale, currentCalendar !== "hijri"),
27
27
  children: /*#__PURE__*/jsxRuntime.jsx("span", _objectSpread(_objectSpread({
28
- className: classNames(className, children && "underline decoration-dotted cursor-pointer")
28
+ className: classNames(className, !!children && "underline decoration-dotted cursor-pointer")
29
29
  }, aria), {}, {
30
30
  children: dateUtil.DateUtil.format(date, format, currentLocale, currentCalendar === "hijri")
31
31
  }))
@@ -112,7 +112,7 @@ var DateDuration = function DateDuration(_ref) {
112
112
  var dtLabel = /*#__PURE__*/jsxRuntime.jsx(core.Tooltip, {
113
113
  content: utilities.Format.date(date, format),
114
114
  children: /*#__PURE__*/jsxRuntime.jsx("span", _objectSpread(_objectSpread({
115
- className: classNames(className, children && "underline decoration-dotted cursor-pointer")
115
+ className: classNames(className, !!children && "underline decoration-dotted cursor-pointer")
116
116
  }, props), {}, {
117
117
  children: label
118
118
  }))
@@ -25,7 +25,7 @@ var DateDisplay = function DateDisplay(_ref) {
25
25
  disabled: !showAlternateDate,
26
26
  content: DateUtil.format(date, format, currentLocale, currentCalendar !== "hijri"),
27
27
  children: /*#__PURE__*/jsx("span", _objectSpread(_objectSpread({
28
- className: classNames(className, children && "underline decoration-dotted cursor-pointer")
28
+ className: classNames(className, !!children && "underline decoration-dotted cursor-pointer")
29
29
  }, aria), {}, {
30
30
  children: DateUtil.format(date, format, currentLocale, currentCalendar === "hijri")
31
31
  }))
@@ -112,7 +112,7 @@ var DateDuration = function DateDuration(_ref) {
112
112
  var dtLabel = /*#__PURE__*/jsx(Tooltip, {
113
113
  content: Format.date(date, format),
114
114
  children: /*#__PURE__*/jsx("span", _objectSpread(_objectSpread({
115
- className: classNames(className, children && "underline decoration-dotted cursor-pointer")
115
+ className: classNames(className, !!children && "underline decoration-dotted cursor-pointer")
116
116
  }, props), {}, {
117
117
  children: label
118
118
  }))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-fabric/date",
3
- "version": "1.0.0-beta.49",
3
+ "version": "1.0.0-beta.51",
4
4
  "description": "RUF: Date package",
5
5
  "author": "Adarsh Pastakia <adarshpastakia@outlook.com>",
6
6
  "license": "MIT",
@@ -35,17 +35,17 @@
35
35
  "watch": "npm-run-all -p watch:rollup watch:dts"
36
36
  },
37
37
  "dependencies": {
38
- "@react-fabric/core": "^1.0.0-beta.49",
39
- "@react-fabric/utilities": "^1.0.0-beta.49",
38
+ "@react-fabric/core": "^1.0.0-beta.51",
39
+ "@react-fabric/utilities": "^1.0.0-beta.50",
40
40
  "classnames": "^2.5.1",
41
41
  "date-fns": "^4.1.0",
42
42
  "resize-observer-polyfill": "^1.5.1"
43
43
  },
44
44
  "peerDependencies": {
45
- "i18next": "^23.15.1",
45
+ "i18next": "^25.2.1",
46
46
  "react": "^19.0.0",
47
47
  "react-dom": "^19.0.0",
48
- "react-i18next": "^15.0.2"
48
+ "react-i18next": "^15.5.2"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@types/react-color": "^3.0.12"
@@ -54,5 +54,5 @@
54
54
  "node": ">=18.12.0",
55
55
  "npm": ">=8.19.0"
56
56
  },
57
- "gitHead": "29b3ed65e9f9687d738dd7c6facdb9fedafb4219"
57
+ "gitHead": "a1b04de4663045f82992bff2aef8db26608eac74"
58
58
  }
@@ -74,7 +74,7 @@ export const DateDisplay = ({
74
74
  <span
75
75
  className={classNames(
76
76
  className,
77
- children && "underline decoration-dotted cursor-pointer",
77
+ !!children && "underline decoration-dotted cursor-pointer",
78
78
  )}
79
79
  {...aria}
80
80
  >
@@ -144,7 +144,7 @@ export const DateDuration = ({
144
144
  <span
145
145
  className={classNames(
146
146
  className,
147
- children && "underline decoration-dotted cursor-pointer",
147
+ !!children && "underline decoration-dotted cursor-pointer",
148
148
  )}
149
149
  {...props}
150
150
  >