@salutejs/sdds-cs 0.228.0-canary.1702.12749548652.0 → 0.228.0-canary.1702.12763507639.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ import React, { ComponentProps, useRef, useState } from 'react';
2
2
  import type { StoryObj, Meta } from '@storybook/react';
3
3
  import { action } from '@storybook/addon-actions';
4
4
  import { IconPlaceholder, InSpacingDecorator } from '@salutejs/plasma-sb-utils';
5
- import { IconPlasma, IconDisclosureDown, IconCalendarOutline } from '@salutejs/plasma-icons';
5
+ import { IconPlasma, IconCalendarOutline } from '@salutejs/plasma-icons';
6
6
 
7
7
  import { IconButton } from '../IconButton/IconButton';
8
8
 
@@ -186,7 +186,6 @@ const StoryRange = ({
186
186
  const rangeRef = useRef(null);
187
187
 
188
188
  const [isOpen, setIsOpen] = useState(false);
189
- const [firstDate, setFirstDate] = useState<string | Date>('');
190
189
 
191
190
  const iconSize = 's';
192
191
  const showDividerIcon = dividerVariant === 'icon';
@@ -233,12 +232,6 @@ const StoryRange = ({
233
232
  onChangeSecondValue={(e, currentValue) => {
234
233
  onChangeSecondValue(e, currentValue);
235
234
  }}
236
- onCommitFirstDate={(currentValue) => {
237
- setFirstDate(currentValue);
238
- }}
239
- onCommitSecondDate={(currentValue) => {
240
- firstDate && currentValue && setIsOpen(false);
241
- }}
242
235
  {...dividerIconProps}
243
236
  {...rest}
244
237
  />
@@ -267,6 +260,7 @@ export const Range: StoryObj<StoryPropsRange> = {
267
260
  view: 'default',
268
261
  lang: 'ru',
269
262
  format: 'DD.MM.YYYY',
263
+ closeAfterDateSelect: true,
270
264
  isDoubleCalendar: false,
271
265
  dividerVariant: 'dash',
272
266
  min: new Date(2024, 1, 1),
@@ -2,7 +2,7 @@ import React, { ComponentProps, useRef, useState } from 'react';
2
2
  import type { StoryObj, Meta } from '@storybook/react';
3
3
  import { action } from '@storybook/addon-actions';
4
4
  import { IconPlaceholder, InSpacingDecorator } from '@salutejs/plasma-sb-utils';
5
- import { IconPlasma, IconDisclosureDown, IconCalendarOutline } from '@salutejs/plasma-icons';
5
+ import { IconPlasma, IconCalendarOutline } from '@salutejs/plasma-icons';
6
6
 
7
7
  import { IconButton } from '../IconButton/IconButton';
8
8
 
@@ -186,7 +186,6 @@ const StoryRange = ({
186
186
  const rangeRef = useRef(null);
187
187
 
188
188
  const [isOpen, setIsOpen] = useState(false);
189
- const [firstDate, setFirstDate] = useState<string | Date>('');
190
189
 
191
190
  const iconSize = 's';
192
191
  const showDividerIcon = dividerVariant === 'icon';
@@ -233,12 +232,6 @@ const StoryRange = ({
233
232
  onChangeSecondValue={(e, currentValue) => {
234
233
  onChangeSecondValue(e, currentValue);
235
234
  }}
236
- onCommitFirstDate={(currentValue) => {
237
- setFirstDate(currentValue);
238
- }}
239
- onCommitSecondDate={(currentValue) => {
240
- firstDate && currentValue && setIsOpen(false);
241
- }}
242
235
  {...dividerIconProps}
243
236
  {...rest}
244
237
  />
@@ -267,6 +260,7 @@ export const Range: StoryObj<StoryPropsRange> = {
267
260
  view: 'default',
268
261
  lang: 'ru',
269
262
  format: 'DD.MM.YYYY',
263
+ closeAfterDateSelect: true,
270
264
  isDoubleCalendar: false,
271
265
  dividerVariant: 'dash',
272
266
  min: new Date(2024, 1, 1),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/sdds-cs",
3
- "version": "0.228.0-canary.1702.12749548652.0",
3
+ "version": "0.228.0-canary.1702.12763507639.0",
4
4
  "description": "Salute Design System / React UI kit for SDDS CS web applications",
5
5
  "author": "Salute Frontend Team <salute.developers@gmail.com>",
6
6
  "license": "MIT",
@@ -52,7 +52,7 @@
52
52
  "directory": "packages/sdds-cs"
53
53
  },
54
54
  "dependencies": {
55
- "@salutejs/plasma-new-hope": "0.239.0-canary.1702.12749548652.0",
55
+ "@salutejs/plasma-new-hope": "0.239.0-canary.1702.12763507639.0",
56
56
  "@salutejs/sdds-themes": "0.31.0"
57
57
  },
58
58
  "peerDependencies": {
@@ -144,5 +144,5 @@
144
144
  "Anton Vinogradov"
145
145
  ],
146
146
  "sideEffects": false,
147
- "gitHead": "8187d20bd9a978a6e3bad6318d4005727c10f098"
147
+ "gitHead": "4dfa771a4d2b642c4b972bf130fa97ec90ebefbd"
148
148
  }