@salutejs/sdds-serv 0.224.0-canary.1702.12749548652.0 → 0.224.0-canary.1702.12763507639.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -185,7 +185,6 @@ const StoryRange = ({
|
|
185
185
|
const rangeRef = useRef(null);
|
186
186
|
|
187
187
|
const [isOpen, setIsOpen] = useState(false);
|
188
|
-
const [firstDate, setFirstDate] = useState<string | Date>('');
|
189
188
|
|
190
189
|
const iconSize = size === 'xs' ? 'xs' : 's';
|
191
190
|
const showDividerIcon = dividerVariant === 'icon';
|
@@ -232,12 +231,6 @@ const StoryRange = ({
|
|
232
231
|
onChangeSecondValue={(e, currentValue) => {
|
233
232
|
onChangeSecondValue(e, currentValue);
|
234
233
|
}}
|
235
|
-
onCommitFirstDate={(currentValue) => {
|
236
|
-
setFirstDate(currentValue);
|
237
|
-
}}
|
238
|
-
onCommitSecondDate={(currentValue) => {
|
239
|
-
firstDate && currentValue && setIsOpen(false);
|
240
|
-
}}
|
241
234
|
{...dividerIconProps}
|
242
235
|
{...rest}
|
243
236
|
/>
|
@@ -265,6 +258,7 @@ export const Range: StoryObj<StoryPropsRange> = {
|
|
265
258
|
size: 'l',
|
266
259
|
view: 'default',
|
267
260
|
isDoubleCalendar: false,
|
261
|
+
closeAfterDateSelect: true,
|
268
262
|
dividerVariant: 'dash',
|
269
263
|
min: new Date(2024, 1, 1),
|
270
264
|
max: new Date(2024, 12, 29),
|
@@ -185,7 +185,6 @@ const StoryRange = ({
|
|
185
185
|
const rangeRef = useRef(null);
|
186
186
|
|
187
187
|
const [isOpen, setIsOpen] = useState(false);
|
188
|
-
const [firstDate, setFirstDate] = useState<string | Date>('');
|
189
188
|
|
190
189
|
const iconSize = size === 'xs' ? 'xs' : 's';
|
191
190
|
const showDividerIcon = dividerVariant === 'icon';
|
@@ -232,12 +231,6 @@ const StoryRange = ({
|
|
232
231
|
onChangeSecondValue={(e, currentValue) => {
|
233
232
|
onChangeSecondValue(e, currentValue);
|
234
233
|
}}
|
235
|
-
onCommitFirstDate={(currentValue) => {
|
236
|
-
setFirstDate(currentValue);
|
237
|
-
}}
|
238
|
-
onCommitSecondDate={(currentValue) => {
|
239
|
-
firstDate && currentValue && setIsOpen(false);
|
240
|
-
}}
|
241
234
|
{...dividerIconProps}
|
242
235
|
{...rest}
|
243
236
|
/>
|
@@ -265,6 +258,7 @@ export const Range: StoryObj<StoryPropsRange> = {
|
|
265
258
|
size: 'l',
|
266
259
|
view: 'default',
|
267
260
|
isDoubleCalendar: false,
|
261
|
+
closeAfterDateSelect: true,
|
268
262
|
dividerVariant: 'dash',
|
269
263
|
min: new Date(2024, 1, 1),
|
270
264
|
max: new Date(2024, 12, 29),
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/sdds-serv",
|
3
|
-
"version": "0.224.0-canary.1702.
|
3
|
+
"version": "0.224.0-canary.1702.12763507639.0",
|
4
4
|
"description": "Salute Design System / React UI kit for SDDS SERV web applications",
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -48,7 +48,7 @@
|
|
48
48
|
"directory": "packages/sdds-serv"
|
49
49
|
},
|
50
50
|
"dependencies": {
|
51
|
-
"@salutejs/plasma-new-hope": "0.239.0-canary.1702.
|
51
|
+
"@salutejs/plasma-new-hope": "0.239.0-canary.1702.12763507639.0",
|
52
52
|
"@salutejs/sdds-themes": "0.31.0"
|
53
53
|
},
|
54
54
|
"peerDependencies": {
|
@@ -153,5 +153,5 @@
|
|
153
153
|
"sideEffects": [
|
154
154
|
"*.css"
|
155
155
|
],
|
156
|
-
"gitHead": "
|
156
|
+
"gitHead": "4dfa771a4d2b642c4b972bf130fa97ec90ebefbd"
|
157
157
|
}
|