@salutejs/sdds-cs 0.230.1-canary.1701.12828004221.0 → 0.231.0-canary.1702.12829190112.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -50,7 +50,6 @@ import { CellTextbox } from '@salutejs/plasma-new-hope/styled-components';
50
50
  import { CellTextboxLabel } from '@salutejs/plasma-new-hope/styled-components';
51
51
  import { CellTextboxSubtitle } from '@salutejs/plasma-new-hope/styled-components';
52
52
  import { CellTextboxTitle } from '@salutejs/plasma-new-hope/styled-components';
53
- import { ChangeEvent } from 'react';
54
53
  import { ChangeInstanceCallback } from '@salutejs/plasma-new-hope/types/components/DatePicker/RangeDate/RangeDate.types';
55
54
  import { CheckboxProps as CheckboxProps_2 } from '@salutejs/plasma-new-hope/types/components/Checkbox/Checkbox.types';
56
55
  import { ChipGroupProps } from '@salutejs/plasma-new-hope/types/components/ChipGroup/ChipGroup.types';
@@ -112,6 +111,7 @@ import { FC } from 'react';
112
111
  import { FileProcessHandler } from '@salutejs/plasma-new-hope/types/components/Dropzone/Dropzone.types';
113
112
  import { Filter } from '@salutejs/plasma-new-hope/types/engines/types';
114
113
  import { FlowProps } from '@salutejs/plasma-new-hope/styled-components';
114
+ import { FocusEvent as FocusEvent_2 } from 'react';
115
115
  import { FormTypeNumber } from '@salutejs/plasma-new-hope/types/types/FormType';
116
116
  import { FormTypeString } from '@salutejs/plasma-new-hope/types/types/FormType';
117
117
  import { ForwardRefExoticComponent } from 'react';
@@ -1390,10 +1390,10 @@ secondTextfieldContentLeft?: ReactElement<any, string | JSXElementConstructor<an
1390
1390
  secondTextfieldContentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
1391
1391
  firstTextfieldTextAfter?: string | undefined;
1392
1392
  secondTextfieldTextAfter?: string | undefined;
1393
- onFocusFirstTextfield?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
1394
- onFocusSecondTextfield?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
1395
- onBlurFirstTextfield?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
1396
- onBlurSecondTextfield?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
1393
+ onFocusFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
1394
+ onFocusSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
1395
+ onBlurFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
1396
+ onBlurSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
1397
1397
  firstTextfieldTextBefore?: string | undefined;
1398
1398
  secondTextfieldTextBefore?: string | undefined;
1399
1399
  dividerVariant?: "none" | "dash" | "icon" | undefined;
@@ -1401,6 +1401,7 @@ dividerIcon?: ReactNode;
1401
1401
  } & DatePickerCalendarProps & Omit<DatePickerPopoverProps, "placement"> & {
1402
1402
  placement?: DatePickerRangePlacement | DatePickerRangePlacementBasic[] | undefined;
1403
1403
  isDoubleCalendar?: boolean | undefined;
1404
+ closeAfterDateSelect?: boolean | undefined;
1404
1405
  } & HTMLAttributes<HTMLDivElement> & RefAttributes<RangeInputRefs>>;
1405
1406
 
1406
1407
  export { DatePickerRangePlacement }
@@ -2618,10 +2619,10 @@ onChangeFirstValue?: BaseCallbackChangeInstance | undefined;
2618
2619
  onChangeSecondValue?: BaseCallbackChangeInstance | undefined;
2619
2620
  onSearchFirstValue?: BaseCallbackKeyboardInstance | undefined;
2620
2621
  onSearchSecondValue?: BaseCallbackKeyboardInstance | undefined;
2621
- onFocusFirstTextfield?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
2622
- onFocusSecondTextfield?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
2623
- onBlurFirstTextfield?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
2624
- onBlurSecondTextfield?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
2622
+ onFocusFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
2623
+ onFocusSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
2624
+ onBlurFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
2625
+ onBlurSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
2625
2626
  } & {
2626
2627
  firstTextfieldTextBefore: string;
2627
2628
  secondTextfieldTextBefore: string;
@@ -2657,10 +2658,10 @@ onChangeFirstValue?: BaseCallbackChangeInstance | undefined;
2657
2658
  onChangeSecondValue?: BaseCallbackChangeInstance | undefined;
2658
2659
  onSearchFirstValue?: BaseCallbackKeyboardInstance | undefined;
2659
2660
  onSearchSecondValue?: BaseCallbackKeyboardInstance | undefined;
2660
- onFocusFirstTextfield?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
2661
- onFocusSecondTextfield?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
2662
- onBlurFirstTextfield?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
2663
- onBlurSecondTextfield?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
2661
+ onFocusFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
2662
+ onFocusSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
2663
+ onBlurFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
2664
+ onBlurSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
2664
2665
  } & {
2665
2666
  dividerVariant?: "dash" | undefined;
2666
2667
  dividerIcon?: undefined;
@@ -2696,10 +2697,10 @@ onChangeFirstValue?: BaseCallbackChangeInstance | undefined;
2696
2697
  onChangeSecondValue?: BaseCallbackChangeInstance | undefined;
2697
2698
  onSearchFirstValue?: BaseCallbackKeyboardInstance | undefined;
2698
2699
  onSearchSecondValue?: BaseCallbackKeyboardInstance | undefined;
2699
- onFocusFirstTextfield?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
2700
- onFocusSecondTextfield?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
2701
- onBlurFirstTextfield?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
2702
- onBlurSecondTextfield?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
2700
+ onFocusFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
2701
+ onFocusSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
2702
+ onBlurFirstTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
2703
+ onBlurSecondTextfield?: ((event: FocusEvent_2<HTMLInputElement, Element>) => void) | undefined;
2703
2704
  } & {
2704
2705
  dividerIcon?: ReactNode;
2705
2706
  dividerVariant?: "icon" | undefined;
@@ -87,10 +87,10 @@ export declare const DatePickerRange: import("react").FunctionComponent<import("
87
87
  secondTextfieldContentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
88
88
  firstTextfieldTextAfter?: string | undefined;
89
89
  secondTextfieldTextAfter?: string | undefined;
90
- onFocusFirstTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
91
- onFocusSecondTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
92
- onBlurFirstTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
93
- onBlurSecondTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
90
+ onFocusFirstTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
91
+ onFocusSecondTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
92
+ onBlurFirstTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
93
+ onBlurSecondTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
94
94
  firstTextfieldTextBefore?: string | undefined;
95
95
  secondTextfieldTextBefore?: string | undefined;
96
96
  dividerVariant?: "none" | "dash" | "icon" | undefined;
@@ -98,4 +98,5 @@ export declare const DatePickerRange: import("react").FunctionComponent<import("
98
98
  } & import("@salutejs/plasma-new-hope/types/components/DatePicker/DatePickerBase.types").DatePickerCalendarProps & Omit<import("@salutejs/plasma-new-hope/types/components/DatePicker/SingleDate/SingleDate.types").DatePickerPopoverProps, "placement"> & {
99
99
  placement?: import("@salutejs/plasma-new-hope/styled-components").DatePickerRangePlacement | import("@salutejs/plasma-new-hope/types/components/DatePicker/RangeDate/RangeDate.types").DatePickerRangePlacementBasic[] | undefined;
100
100
  isDoubleCalendar?: boolean | undefined;
101
+ closeAfterDateSelect?: boolean | undefined;
101
102
  } & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<import("@salutejs/plasma-new-hope/styled-components").RangeInputRefs>>;
@@ -45,10 +45,10 @@ export declare const Range: import("react").FunctionComponent<import("@salutejs/
45
45
  onChangeSecondValue?: import("@salutejs/plasma-new-hope/types/components/Range/Range.types").BaseCallbackChangeInstance | undefined;
46
46
  onSearchFirstValue?: import("@salutejs/plasma-new-hope/types/components/Range/Range.types").BaseCallbackKeyboardInstance | undefined;
47
47
  onSearchSecondValue?: import("@salutejs/plasma-new-hope/types/components/Range/Range.types").BaseCallbackKeyboardInstance | undefined;
48
- onFocusFirstTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
49
- onFocusSecondTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
50
- onBlurFirstTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
51
- onBlurSecondTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
48
+ onFocusFirstTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
49
+ onFocusSecondTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
50
+ onBlurFirstTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
51
+ onBlurSecondTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
52
52
  } & {
53
53
  firstTextfieldTextBefore: string;
54
54
  secondTextfieldTextBefore: string;
@@ -84,10 +84,10 @@ export declare const Range: import("react").FunctionComponent<import("@salutejs/
84
84
  onChangeSecondValue?: import("@salutejs/plasma-new-hope/types/components/Range/Range.types").BaseCallbackChangeInstance | undefined;
85
85
  onSearchFirstValue?: import("@salutejs/plasma-new-hope/types/components/Range/Range.types").BaseCallbackKeyboardInstance | undefined;
86
86
  onSearchSecondValue?: import("@salutejs/plasma-new-hope/types/components/Range/Range.types").BaseCallbackKeyboardInstance | undefined;
87
- onFocusFirstTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
88
- onFocusSecondTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
89
- onBlurFirstTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
90
- onBlurSecondTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
87
+ onFocusFirstTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
88
+ onFocusSecondTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
89
+ onBlurFirstTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
90
+ onBlurSecondTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
91
91
  } & {
92
92
  dividerVariant?: "dash" | undefined;
93
93
  dividerIcon?: undefined;
@@ -123,10 +123,10 @@ export declare const Range: import("react").FunctionComponent<import("@salutejs/
123
123
  onChangeSecondValue?: import("@salutejs/plasma-new-hope/types/components/Range/Range.types").BaseCallbackChangeInstance | undefined;
124
124
  onSearchFirstValue?: import("@salutejs/plasma-new-hope/types/components/Range/Range.types").BaseCallbackKeyboardInstance | undefined;
125
125
  onSearchSecondValue?: import("@salutejs/plasma-new-hope/types/components/Range/Range.types").BaseCallbackKeyboardInstance | undefined;
126
- onFocusFirstTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
127
- onFocusSecondTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
128
- onBlurFirstTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
129
- onBlurSecondTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
126
+ onFocusFirstTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
127
+ onFocusSecondTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
128
+ onBlurFirstTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
129
+ onBlurSecondTextfield?: ((event: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
130
130
  } & {
131
131
  dividerIcon?: import("react").ReactNode;
132
132
  dividerVariant?: "icon" | undefined;
@@ -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.230.1-canary.1701.12828004221.0",
3
+ "version": "0.231.0-canary.1702.12829190112.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",
@@ -30,7 +30,7 @@
30
30
  "directory": "packages/sdds-cs"
31
31
  },
32
32
  "dependencies": {
33
- "@salutejs/plasma-new-hope": "0.241.1-canary.1701.12828004221.0",
33
+ "@salutejs/plasma-new-hope": "0.242.0-canary.1702.12829190112.0",
34
34
  "@salutejs/sdds-themes": "0.31.0"
35
35
  },
36
36
  "peerDependencies": {
@@ -122,5 +122,5 @@
122
122
  "Anton Vinogradov"
123
123
  ],
124
124
  "sideEffects": false,
125
- "gitHead": "13984cb233e780a5660e89d4ba62dbebfc516695"
125
+ "gitHead": "18f89843d2170002fa4c9d0626bc7823763a009c"
126
126
  }