@salutejs/sdds-serv 0.313.0-canary.2014.15531870271.0 → 0.313.0-canary.2016.15553329485.0
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.
@@ -30,7 +30,7 @@ export declare const DatePicker: import("react").FunctionComponent<import("@salu
|
|
30
30
|
textBefore?: string;
|
31
31
|
textAfter?: string;
|
32
32
|
autoComplete?: string;
|
33
|
-
onCommitDate?: (value: Date | string, error?: boolean, success?: boolean, dateInfo?:
|
33
|
+
onCommitDate?: (value: Date | string, error?: boolean, success?: boolean, dateInfo?: DateInfo, originalDate?: Date, isoDate?: string) => void;
|
34
34
|
onChangeValue?: (event: import("react").SyntheticEvent<HTMLInputElement> | null, value?: string, originalDate?: DateType, isoDate?: string) => void;
|
35
35
|
onChange?: (event: {
|
36
36
|
target: {
|
@@ -111,5 +111,4 @@ export declare const DatePickerRange: import("react").FunctionComponent<import("
|
|
111
111
|
} & 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"> & {
|
112
112
|
placement?: import("@salutejs/plasma-new-hope/styled-components").DatePickerRangePlacement | Array<import("@salutejs/plasma-new-hope/types/components/DatePicker/RangeDate/RangeDate.types").DatePickerRangePlacementBasic>;
|
113
113
|
isDoubleCalendar?: boolean;
|
114
|
-
closeAfterDateSelect?: boolean;
|
115
114
|
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<import("@salutejs/plasma-new-hope/styled-components").RangeInputRefs>>;
|
@@ -122,7 +122,10 @@ const StoryDefault = ({
|
|
122
122
|
contentRight={enableContentRight ? <IconPlaceholder size={iconSize} /> : undefined}
|
123
123
|
onBlur={onBlur}
|
124
124
|
onFocus={onFocus}
|
125
|
-
onToggle={(is) =>
|
125
|
+
onToggle={(is) => {
|
126
|
+
setIsOpen(is);
|
127
|
+
onToggle(is);
|
128
|
+
}}
|
126
129
|
onChangeValue={onChangeValue}
|
127
130
|
onCommitDate={onCommitDate}
|
128
131
|
lang={lang}
|
@@ -162,6 +165,7 @@ export const Default: StoryObj<StoryPropsDefault> = {
|
|
162
165
|
includeEdgeDates: true,
|
163
166
|
min: new Date(2024, 1, 1),
|
164
167
|
max: new Date(2024, 12, 29),
|
168
|
+
closeAfterDateSelect: true,
|
165
169
|
maskWithFormat: false,
|
166
170
|
required: false,
|
167
171
|
requiredPlacement: 'right',
|
@@ -257,7 +261,10 @@ const StoryRange = ({
|
|
257
261
|
secondTextfieldTextBefore={
|
258
262
|
showDefaultTextBefore ? secondTextfieldTextBefore || 'ПО' : secondTextfieldTextBefore
|
259
263
|
}
|
260
|
-
onToggle={(is) =>
|
264
|
+
onToggle={(is) => {
|
265
|
+
setIsOpen(is);
|
266
|
+
onToggle(is);
|
267
|
+
}}
|
261
268
|
onChangeFirstValue={onChangeFirstValue}
|
262
269
|
onChangeSecondValue={onChangeSecondValue}
|
263
270
|
{...dividerIconProps}
|
@@ -290,11 +297,11 @@ export const Range: StoryObj<StoryPropsRange> = {
|
|
290
297
|
calendarContainerHeight: 0,
|
291
298
|
stretched: false,
|
292
299
|
isDoubleCalendar: false,
|
293
|
-
closeAfterDateSelect: true,
|
294
300
|
dividerVariant: 'dash',
|
295
301
|
includeEdgeDates: true,
|
296
302
|
min: new Date(2024, 1, 1),
|
297
303
|
max: new Date(2024, 12, 29),
|
304
|
+
closeAfterDateSelect: true,
|
298
305
|
renderFromDate: new Date(2024, 4, 14),
|
299
306
|
lang: 'ru',
|
300
307
|
format: 'DD.MM.YYYY',
|
@@ -386,6 +393,7 @@ export const Deferred: StoryObj<StoryPropsDefault> = {
|
|
386
393
|
includeEdgeDates: true,
|
387
394
|
min: new Date(2024, 1, 1),
|
388
395
|
max: new Date(2024, 12, 29),
|
396
|
+
closeAfterDateSelect: true,
|
389
397
|
maskWithFormat: false,
|
390
398
|
required: false,
|
391
399
|
requiredPlacement: 'right',
|
@@ -122,7 +122,10 @@ const StoryDefault = ({
|
|
122
122
|
contentRight={enableContentRight ? <IconPlaceholder size={iconSize} /> : undefined}
|
123
123
|
onBlur={onBlur}
|
124
124
|
onFocus={onFocus}
|
125
|
-
onToggle={(is) =>
|
125
|
+
onToggle={(is) => {
|
126
|
+
setIsOpen(is);
|
127
|
+
onToggle(is);
|
128
|
+
}}
|
126
129
|
onChangeValue={onChangeValue}
|
127
130
|
onCommitDate={onCommitDate}
|
128
131
|
lang={lang}
|
@@ -162,6 +165,7 @@ export const Default: StoryObj<StoryPropsDefault> = {
|
|
162
165
|
includeEdgeDates: true,
|
163
166
|
min: new Date(2024, 1, 1),
|
164
167
|
max: new Date(2024, 12, 29),
|
168
|
+
closeAfterDateSelect: true,
|
165
169
|
maskWithFormat: false,
|
166
170
|
required: false,
|
167
171
|
requiredPlacement: 'right',
|
@@ -257,7 +261,10 @@ const StoryRange = ({
|
|
257
261
|
secondTextfieldTextBefore={
|
258
262
|
showDefaultTextBefore ? secondTextfieldTextBefore || 'ПО' : secondTextfieldTextBefore
|
259
263
|
}
|
260
|
-
onToggle={(is) =>
|
264
|
+
onToggle={(is) => {
|
265
|
+
setIsOpen(is);
|
266
|
+
onToggle(is);
|
267
|
+
}}
|
261
268
|
onChangeFirstValue={onChangeFirstValue}
|
262
269
|
onChangeSecondValue={onChangeSecondValue}
|
263
270
|
{...dividerIconProps}
|
@@ -290,11 +297,11 @@ export const Range: StoryObj<StoryPropsRange> = {
|
|
290
297
|
calendarContainerHeight: 0,
|
291
298
|
stretched: false,
|
292
299
|
isDoubleCalendar: false,
|
293
|
-
closeAfterDateSelect: true,
|
294
300
|
dividerVariant: 'dash',
|
295
301
|
includeEdgeDates: true,
|
296
302
|
min: new Date(2024, 1, 1),
|
297
303
|
max: new Date(2024, 12, 29),
|
304
|
+
closeAfterDateSelect: true,
|
298
305
|
renderFromDate: new Date(2024, 4, 14),
|
299
306
|
lang: 'ru',
|
300
307
|
format: 'DD.MM.YYYY',
|
@@ -386,6 +393,7 @@ export const Deferred: StoryObj<StoryPropsDefault> = {
|
|
386
393
|
includeEdgeDates: true,
|
387
394
|
min: new Date(2024, 1, 1),
|
388
395
|
max: new Date(2024, 12, 29),
|
396
|
+
closeAfterDateSelect: true,
|
389
397
|
maskWithFormat: false,
|
390
398
|
required: false,
|
391
399
|
requiredPlacement: 'right',
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/sdds-serv",
|
3
|
-
"version": "0.313.0-canary.
|
3
|
+
"version": "0.313.0-canary.2016.15553329485.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",
|
@@ -32,8 +32,8 @@
|
|
32
32
|
"directory": "packages/sdds-serv"
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
|
-
"@salutejs/plasma-new-hope": "0.326.0-canary.
|
36
|
-
"@salutejs/sdds-themes": "0.38.0-canary.
|
35
|
+
"@salutejs/plasma-new-hope": "0.326.0-canary.2016.15553329485.0",
|
36
|
+
"@salutejs/sdds-themes": "0.38.0-canary.2016.15553329485.0"
|
37
37
|
},
|
38
38
|
"peerDependencies": {
|
39
39
|
"@emotion/react": ">=11",
|
@@ -63,10 +63,10 @@
|
|
63
63
|
"@rollup/plugin-commonjs": "^25.0.4",
|
64
64
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
65
65
|
"@salutejs/plasma-colors": "0.15.0",
|
66
|
-
"@salutejs/plasma-core": "1.198.0-canary.
|
67
|
-
"@salutejs/plasma-cy-utils": "0.129.0-canary.
|
66
|
+
"@salutejs/plasma-core": "1.198.0-canary.2016.15553329485.0",
|
67
|
+
"@salutejs/plasma-cy-utils": "0.129.0-canary.2016.15553329485.0",
|
68
68
|
"@salutejs/plasma-icons": "1.218.0",
|
69
|
-
"@salutejs/plasma-sb-utils": "0.199.0-canary.
|
69
|
+
"@salutejs/plasma-sb-utils": "0.199.0-canary.2016.15553329485.0",
|
70
70
|
"@storybook/addon-docs": "7.6.17",
|
71
71
|
"@storybook/addon-essentials": "7.6.17",
|
72
72
|
"@storybook/addons": "7.6.17",
|
@@ -137,5 +137,5 @@
|
|
137
137
|
"sideEffects": [
|
138
138
|
"*.css"
|
139
139
|
],
|
140
|
-
"gitHead": "
|
140
|
+
"gitHead": "c78373876f8c65b9f297fa93b5c552d6bf7a478e"
|
141
141
|
}
|