@onesy/ui-react 1.0.192 → 1.0.193
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/Calendar/Calendar.js +5 -6
- package/esm/Calendar/Calendar.js +5 -6
- package/esm/index.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/Calendar/Calendar.js
CHANGED
|
@@ -703,9 +703,11 @@ const Calendar = props__ => {
|
|
|
703
703
|
const yearValue_0 = (0, _date.format)(onesyDate_1, 'YYYY');
|
|
704
704
|
const selected_1 = calendar.year === onesyDate_1.year;
|
|
705
705
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(PaginationItem, _objectSpread(_objectSpread({
|
|
706
|
-
tonal: tonal,
|
|
707
|
-
|
|
706
|
+
tonal: tonal !== undefined ? tonal : false,
|
|
707
|
+
version: selected_1 ? 'filled' : 'text',
|
|
708
|
+
color: selected_1 ? color : 'inherit',
|
|
708
709
|
size: size,
|
|
710
|
+
selected: selected_1,
|
|
709
711
|
InteractionProps: {
|
|
710
712
|
background: false
|
|
711
713
|
},
|
|
@@ -718,10 +720,7 @@ const Calendar = props__ => {
|
|
|
718
720
|
disabled: !valid(onesyDate_1, 'year')
|
|
719
721
|
}, PaginationItemsProps), {}, {
|
|
720
722
|
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Calendar', theme) && ['onesy-Calendar-day-version-year'], PaginationItemsProps === null || PaginationItemsProps === void 0 ? void 0 : PaginationItemsProps.className, classes.day_version_year]),
|
|
721
|
-
style: _objectSpread(
|
|
722
|
-
color: theme.methods.palette.color.value(undefined, 90, true, palette),
|
|
723
|
-
backgroundColor: theme.methods.palette.color.value(undefined, 40, true, palette)
|
|
724
|
-
} : undefined), PaginationItemsProps === null || PaginationItemsProps === void 0 ? void 0 : PaginationItemsProps.style),
|
|
723
|
+
style: _objectSpread({}, PaginationItemsProps === null || PaginationItemsProps === void 0 ? void 0 : PaginationItemsProps.style),
|
|
725
724
|
children: yearValue_0
|
|
726
725
|
}), index_5);
|
|
727
726
|
})
|
package/esm/Calendar/Calendar.js
CHANGED
|
@@ -692,9 +692,11 @@ const Calendar = props__ => {
|
|
|
692
692
|
const yearValue_0 = format(onesyDate_1, 'YYYY');
|
|
693
693
|
const selected_1 = calendar.year === onesyDate_1.year;
|
|
694
694
|
return /*#__PURE__*/_jsx(PaginationItem, _objectSpread(_objectSpread({
|
|
695
|
-
tonal: tonal,
|
|
696
|
-
|
|
695
|
+
tonal: tonal !== undefined ? tonal : false,
|
|
696
|
+
version: selected_1 ? 'filled' : 'text',
|
|
697
|
+
color: selected_1 ? color : 'inherit',
|
|
697
698
|
size: size,
|
|
699
|
+
selected: selected_1,
|
|
698
700
|
InteractionProps: {
|
|
699
701
|
background: false
|
|
700
702
|
},
|
|
@@ -707,10 +709,7 @@ const Calendar = props__ => {
|
|
|
707
709
|
disabled: !valid(onesyDate_1, 'year')
|
|
708
710
|
}, PaginationItemsProps), {}, {
|
|
709
711
|
className: classNames([staticClassName('Calendar', theme) && ['onesy-Calendar-day-version-year'], PaginationItemsProps?.className, classes.day_version_year]),
|
|
710
|
-
style: _objectSpread(
|
|
711
|
-
color: theme.methods.palette.color.value(undefined, 90, true, palette),
|
|
712
|
-
backgroundColor: theme.methods.palette.color.value(undefined, 40, true, palette)
|
|
713
|
-
} : undefined), PaginationItemsProps?.style),
|
|
712
|
+
style: _objectSpread({}, PaginationItemsProps?.style),
|
|
714
713
|
children: yearValue_0
|
|
715
714
|
}), index_5);
|
|
716
715
|
})
|
package/esm/index.js
CHANGED
package/index.js
CHANGED