@itcase/ui 1.8.151 → 1.8.152
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/{DatePicker_cjs_D0iBBPU9.js → DatePicker_cjs_CccRZSjc.js} +2 -2
- package/dist/{DatePicker_es_DtBOEq-Q.js → DatePicker_es_54jl8guQ.js} +2 -2
- package/dist/cjs/components/DatePeriod.js +1 -1
- package/dist/cjs/components/DatePicker.js +1 -1
- package/dist/components/DatePeriod.js +1 -1
- package/dist/components/DatePicker.js +1 -1
- package/package.json +1 -1
|
@@ -101,7 +101,7 @@ function DatePickerInput(props) {
|
|
|
101
101
|
const datepickerRef = React.useRef(null);
|
|
102
102
|
const [dateStart, dateEnd] = React.useMemo(() => {
|
|
103
103
|
let dateStart = undefined;
|
|
104
|
-
if (value
|
|
104
|
+
if (value) {
|
|
105
105
|
if (typeof value === 'string') {
|
|
106
106
|
dateStart = new Date(value);
|
|
107
107
|
}
|
|
@@ -110,7 +110,7 @@ function DatePickerInput(props) {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
let dateEnd = undefined;
|
|
113
|
-
if (endValue
|
|
113
|
+
if (endValue) {
|
|
114
114
|
if (typeof endValue === 'string') {
|
|
115
115
|
dateEnd = new Date(endValue);
|
|
116
116
|
}
|
|
@@ -99,7 +99,7 @@ function DatePickerInput(props) {
|
|
|
99
99
|
const datepickerRef = useRef(null);
|
|
100
100
|
const [dateStart, dateEnd] = useMemo(() => {
|
|
101
101
|
let dateStart = undefined;
|
|
102
|
-
if (value
|
|
102
|
+
if (value) {
|
|
103
103
|
if (typeof value === 'string') {
|
|
104
104
|
dateStart = new Date(value);
|
|
105
105
|
}
|
|
@@ -108,7 +108,7 @@ function DatePickerInput(props) {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
let dateEnd = undefined;
|
|
111
|
-
if (endValue
|
|
111
|
+
if (endValue) {
|
|
112
112
|
if (typeof endValue === 'string') {
|
|
113
113
|
dateEnd = new Date(endValue);
|
|
114
114
|
}
|
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var luxon = require('luxon');
|
|
7
7
|
var common = require('@itcase/common');
|
|
8
|
-
var DatePicker = require('../../
|
|
8
|
+
var DatePicker = require('../../DatePicker_cjs_CccRZSjc.js');
|
|
9
9
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
10
10
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
11
11
|
var ChipsGroup = require('../../ChipsGroup_cjs_DVizkQ4v.js');
|
|
@@ -3,7 +3,7 @@ import { useCallback } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { DateTime } from 'luxon';
|
|
5
5
|
import { DATE_PERIOD_INTERVALS } from '@itcase/common';
|
|
6
|
-
import { D as DatePickerInput } from '../
|
|
6
|
+
import { D as DatePickerInput } from '../DatePicker_es_54jl8guQ.js';
|
|
7
7
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
8
8
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
9
9
|
import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_D3eiXGyK.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../
|
|
1
|
+
export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_54jl8guQ.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|