@onesy/ui-react 1.0.192 → 1.0.194
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 +6 -7
- package/CalendarMonth/CalendarMonth.js +1 -1
- package/DatePicker/DatePicker.js +1 -1
- package/DateTimePicker/DateTimePicker.js +1 -1
- package/TimePicker/TimePicker.js +1 -1
- package/esm/Calendar/Calendar.js +6 -7
- package/esm/CalendarMonth/CalendarMonth.js +1 -1
- package/esm/DatePicker/DatePicker.js +1 -1
- package/esm/DateTimePicker/DateTimePicker.js +1 -1
- package/esm/TimePicker/TimePicker.js +1 -1
- package/esm/index.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/Calendar/Calendar.js
CHANGED
|
@@ -169,7 +169,7 @@ const Calendar = props__ => {
|
|
|
169
169
|
const PaginationItem = (theme === null || theme === void 0 || (_theme$elements10 = theme.elements) === null || _theme$elements10 === void 0 ? void 0 : _theme$elements10.PaginationItem) || _PaginationItem.default;
|
|
170
170
|
const {
|
|
171
171
|
ref,
|
|
172
|
-
tonal
|
|
172
|
+
tonal,
|
|
173
173
|
color = 'default',
|
|
174
174
|
version = 'regular',
|
|
175
175
|
size = 'regular',
|
|
@@ -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
|
})
|
|
@@ -216,7 +216,7 @@ const CalendarMonth = props__ => {
|
|
|
216
216
|
const Transitions = (theme === null || theme === void 0 || (_theme$elements5 = theme.elements) === null || _theme$elements5 === void 0 ? void 0 : _theme$elements5.Transitions) || _Transitions.default;
|
|
217
217
|
const Transition = (theme === null || theme === void 0 || (_theme$elements6 = theme.elements) === null || _theme$elements6 === void 0 ? void 0 : _theme$elements6.Transition) || _Transition.default;
|
|
218
218
|
const {
|
|
219
|
-
tonal
|
|
219
|
+
tonal,
|
|
220
220
|
color = 'primary',
|
|
221
221
|
size = 'regular',
|
|
222
222
|
value: value_,
|
package/DatePicker/DatePicker.js
CHANGED
|
@@ -141,7 +141,7 @@ const DatePicker = props__ => {
|
|
|
141
141
|
const ClickListener = (theme === null || theme === void 0 || (_theme$elements10 = theme.elements) === null || _theme$elements10 === void 0 ? void 0 : _theme$elements10.ClickListener) || _ClickListener.default;
|
|
142
142
|
const {
|
|
143
143
|
ref,
|
|
144
|
-
tonal
|
|
144
|
+
tonal,
|
|
145
145
|
color = 'primary',
|
|
146
146
|
version: version_ = 'auto',
|
|
147
147
|
size = 'regular',
|
|
@@ -75,7 +75,7 @@ const DateTimePicker = props__ => {
|
|
|
75
75
|
const ClickListener = (theme === null || theme === void 0 || (_theme$elements10 = theme.elements) === null || _theme$elements10 === void 0 ? void 0 : _theme$elements10.ClickListener) || _ClickListener.default;
|
|
76
76
|
const {
|
|
77
77
|
ref,
|
|
78
|
-
tonal
|
|
78
|
+
tonal,
|
|
79
79
|
color = 'primary',
|
|
80
80
|
version: version_ = 'auto',
|
|
81
81
|
value: value_,
|
package/TimePicker/TimePicker.js
CHANGED
|
@@ -236,7 +236,7 @@ const TimePicker = props__ => {
|
|
|
236
236
|
const Tabs = (theme === null || theme === void 0 || (_theme$elements13 = theme.elements) === null || _theme$elements13 === void 0 ? void 0 : _theme$elements13.Tabs) || _Tabs.default;
|
|
237
237
|
const {
|
|
238
238
|
ref,
|
|
239
|
-
tonal
|
|
239
|
+
tonal,
|
|
240
240
|
color = 'primary',
|
|
241
241
|
version: version_ = 'auto',
|
|
242
242
|
value: value_,
|
package/esm/Calendar/Calendar.js
CHANGED
|
@@ -161,7 +161,7 @@ const Calendar = props__ => {
|
|
|
161
161
|
const PaginationItem = theme?.elements?.PaginationItem || PaginationItemElement;
|
|
162
162
|
const {
|
|
163
163
|
ref,
|
|
164
|
-
tonal
|
|
164
|
+
tonal,
|
|
165
165
|
color = 'default',
|
|
166
166
|
version = 'regular',
|
|
167
167
|
size = 'regular',
|
|
@@ -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
|
})
|
|
@@ -208,7 +208,7 @@ const CalendarMonth = props__ => {
|
|
|
208
208
|
const Transitions = theme?.elements?.Transitions || TransitionsElement;
|
|
209
209
|
const Transition = theme?.elements?.Transition || TransitionElement;
|
|
210
210
|
const {
|
|
211
|
-
tonal
|
|
211
|
+
tonal,
|
|
212
212
|
color = 'primary',
|
|
213
213
|
size = 'regular',
|
|
214
214
|
value: value_,
|
package/esm/index.js
CHANGED
package/index.js
CHANGED