@yr3/ui 1.0.21 → 1.0.22
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/dist/index.cjs +3 -4
- package/dist/index.js +3 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1820,9 +1820,8 @@ var MonthSelector = ({ label, value, disabled, propsComponent, data, daysFormat,
|
|
|
1820
1820
|
const iconClasses = monthSelectorIconVariants({ color: properties?.icon?.color });
|
|
1821
1821
|
const containerClasses = monthSelectorContainerVariants({ color: properties?.container?.color });
|
|
1822
1822
|
const getData = React10.useMemo(() => {
|
|
1823
|
-
if (!disabled) return {};
|
|
1824
1823
|
return getMonthCalendarProps({ year: data.years[yearSelected], data, daysFormat, value: valueState });
|
|
1825
|
-
}, [yearSelected, data, daysFormat, valueState
|
|
1824
|
+
}, [yearSelected, data, daysFormat, valueState]);
|
|
1826
1825
|
React10.useEffect(() => {
|
|
1827
1826
|
if (onNext) onNext(getData.prev);
|
|
1828
1827
|
if (onLast) onLast(getData.last);
|
|
@@ -1831,8 +1830,8 @@ var MonthSelector = ({ label, value, disabled, propsComponent, data, daysFormat,
|
|
|
1831
1830
|
setValueState(value || null);
|
|
1832
1831
|
}, [value]);
|
|
1833
1832
|
React10.useEffect(() => {
|
|
1834
|
-
if (onChange && valueState
|
|
1835
|
-
}, [valueState, onChange
|
|
1833
|
+
if (onChange && valueState) onChange(valueState);
|
|
1834
|
+
}, [valueState, onChange]);
|
|
1836
1835
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "yr3MonthSelector", ref, children: [
|
|
1837
1836
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1838
1837
|
Input,
|
package/dist/index.js
CHANGED
|
@@ -1696,9 +1696,8 @@ var MonthSelector = ({ label, value, disabled, propsComponent, data, daysFormat,
|
|
|
1696
1696
|
const iconClasses = monthSelectorIconVariants({ color: properties?.icon?.color });
|
|
1697
1697
|
const containerClasses = monthSelectorContainerVariants({ color: properties?.container?.color });
|
|
1698
1698
|
const getData = React10.useMemo(() => {
|
|
1699
|
-
if (!disabled) return {};
|
|
1700
1699
|
return getMonthCalendarProps({ year: data.years[yearSelected], data, daysFormat, value: valueState });
|
|
1701
|
-
}, [yearSelected, data, daysFormat, valueState
|
|
1700
|
+
}, [yearSelected, data, daysFormat, valueState]);
|
|
1702
1701
|
React10.useEffect(() => {
|
|
1703
1702
|
if (onNext) onNext(getData.prev);
|
|
1704
1703
|
if (onLast) onLast(getData.last);
|
|
@@ -1707,8 +1706,8 @@ var MonthSelector = ({ label, value, disabled, propsComponent, data, daysFormat,
|
|
|
1707
1706
|
setValueState(value || null);
|
|
1708
1707
|
}, [value]);
|
|
1709
1708
|
React10.useEffect(() => {
|
|
1710
|
-
if (onChange && valueState
|
|
1711
|
-
}, [valueState, onChange
|
|
1709
|
+
if (onChange && valueState) onChange(valueState);
|
|
1710
|
+
}, [valueState, onChange]);
|
|
1712
1711
|
return /* @__PURE__ */ jsxs6("div", { className: "yr3MonthSelector", ref, children: [
|
|
1713
1712
|
/* @__PURE__ */ jsx24(
|
|
1714
1713
|
Input,
|