@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.
@@ -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
- color: "inherit",
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(_objectSpread({}, selected_1 ? {
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
  })
@@ -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
- color: "inherit",
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(_objectSpread({}, selected_1 ? {
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
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.191
1
+ /** @license UiReact v1.0.192
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.191
1
+ /** @license UiReact v1.0.192
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesy/ui-react",
3
- "version": "1.0.192",
3
+ "version": "1.0.193",
4
4
  "description": "UI for React",
5
5
  "repository": "https://github.com/onesy-me/onesy.git",
6
6
  "author": "Lazar Erić <lazareric1@proton.me>",