@salutejs/sdds-serv 0.313.0-canary.2012.15487817329.0 → 0.313.0-canary.2013.15518408913.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?: DateInfo, originalDate?: Date, isoDate?: string) => void;
|
33
|
+
onCommitDate?: (value: Date | string, error?: boolean, success?: boolean, dateInfo?: import("src/components/Calendar/Calendar.types").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,4 +111,5 @@ 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;
|
114
115
|
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<import("@salutejs/plasma-new-hope/styled-components").RangeInputRefs>>;
|
@@ -122,10 +122,7 @@ const StoryDefault = ({
|
|
122
122
|
contentRight={enableContentRight ? <IconPlaceholder size={iconSize} /> : undefined}
|
123
123
|
onBlur={onBlur}
|
124
124
|
onFocus={onFocus}
|
125
|
-
onToggle={(is) =>
|
126
|
-
setIsOpen(is);
|
127
|
-
onToggle(is);
|
128
|
-
}}
|
125
|
+
onToggle={(is) => setIsOpen(is)}
|
129
126
|
onChangeValue={onChangeValue}
|
130
127
|
onCommitDate={onCommitDate}
|
131
128
|
lang={lang}
|
@@ -165,7 +162,6 @@ export const Default: StoryObj<StoryPropsDefault> = {
|
|
165
162
|
includeEdgeDates: true,
|
166
163
|
min: new Date(2024, 1, 1),
|
167
164
|
max: new Date(2024, 12, 29),
|
168
|
-
closeAfterDateSelect: true,
|
169
165
|
maskWithFormat: false,
|
170
166
|
required: false,
|
171
167
|
requiredPlacement: 'right',
|
@@ -261,10 +257,7 @@ const StoryRange = ({
|
|
261
257
|
secondTextfieldTextBefore={
|
262
258
|
showDefaultTextBefore ? secondTextfieldTextBefore || 'ПО' : secondTextfieldTextBefore
|
263
259
|
}
|
264
|
-
onToggle={(is) =>
|
265
|
-
setIsOpen(is);
|
266
|
-
onToggle(is);
|
267
|
-
}}
|
260
|
+
onToggle={(is) => setIsOpen(is)}
|
268
261
|
onChangeFirstValue={onChangeFirstValue}
|
269
262
|
onChangeSecondValue={onChangeSecondValue}
|
270
263
|
{...dividerIconProps}
|
@@ -297,11 +290,11 @@ export const Range: StoryObj<StoryPropsRange> = {
|
|
297
290
|
calendarContainerHeight: 0,
|
298
291
|
stretched: false,
|
299
292
|
isDoubleCalendar: false,
|
293
|
+
closeAfterDateSelect: true,
|
300
294
|
dividerVariant: 'dash',
|
301
295
|
includeEdgeDates: true,
|
302
296
|
min: new Date(2024, 1, 1),
|
303
297
|
max: new Date(2024, 12, 29),
|
304
|
-
closeAfterDateSelect: true,
|
305
298
|
renderFromDate: new Date(2024, 4, 14),
|
306
299
|
lang: 'ru',
|
307
300
|
format: 'DD.MM.YYYY',
|
@@ -393,7 +386,6 @@ export const Deferred: StoryObj<StoryPropsDefault> = {
|
|
393
386
|
includeEdgeDates: true,
|
394
387
|
min: new Date(2024, 1, 1),
|
395
388
|
max: new Date(2024, 12, 29),
|
396
|
-
closeAfterDateSelect: true,
|
397
389
|
maskWithFormat: false,
|
398
390
|
required: false,
|
399
391
|
requiredPlacement: 'right',
|
@@ -122,10 +122,7 @@ const StoryDefault = ({
|
|
122
122
|
contentRight={enableContentRight ? <IconPlaceholder size={iconSize} /> : undefined}
|
123
123
|
onBlur={onBlur}
|
124
124
|
onFocus={onFocus}
|
125
|
-
onToggle={(is) =>
|
126
|
-
setIsOpen(is);
|
127
|
-
onToggle(is);
|
128
|
-
}}
|
125
|
+
onToggle={(is) => setIsOpen(is)}
|
129
126
|
onChangeValue={onChangeValue}
|
130
127
|
onCommitDate={onCommitDate}
|
131
128
|
lang={lang}
|
@@ -165,7 +162,6 @@ export const Default: StoryObj<StoryPropsDefault> = {
|
|
165
162
|
includeEdgeDates: true,
|
166
163
|
min: new Date(2024, 1, 1),
|
167
164
|
max: new Date(2024, 12, 29),
|
168
|
-
closeAfterDateSelect: true,
|
169
165
|
maskWithFormat: false,
|
170
166
|
required: false,
|
171
167
|
requiredPlacement: 'right',
|
@@ -261,10 +257,7 @@ const StoryRange = ({
|
|
261
257
|
secondTextfieldTextBefore={
|
262
258
|
showDefaultTextBefore ? secondTextfieldTextBefore || 'ПО' : secondTextfieldTextBefore
|
263
259
|
}
|
264
|
-
onToggle={(is) =>
|
265
|
-
setIsOpen(is);
|
266
|
-
onToggle(is);
|
267
|
-
}}
|
260
|
+
onToggle={(is) => setIsOpen(is)}
|
268
261
|
onChangeFirstValue={onChangeFirstValue}
|
269
262
|
onChangeSecondValue={onChangeSecondValue}
|
270
263
|
{...dividerIconProps}
|
@@ -297,11 +290,11 @@ export const Range: StoryObj<StoryPropsRange> = {
|
|
297
290
|
calendarContainerHeight: 0,
|
298
291
|
stretched: false,
|
299
292
|
isDoubleCalendar: false,
|
293
|
+
closeAfterDateSelect: true,
|
300
294
|
dividerVariant: 'dash',
|
301
295
|
includeEdgeDates: true,
|
302
296
|
min: new Date(2024, 1, 1),
|
303
297
|
max: new Date(2024, 12, 29),
|
304
|
-
closeAfterDateSelect: true,
|
305
298
|
renderFromDate: new Date(2024, 4, 14),
|
306
299
|
lang: 'ru',
|
307
300
|
format: 'DD.MM.YYYY',
|
@@ -393,7 +386,6 @@ export const Deferred: StoryObj<StoryPropsDefault> = {
|
|
393
386
|
includeEdgeDates: true,
|
394
387
|
min: new Date(2024, 1, 1),
|
395
388
|
max: new Date(2024, 12, 29),
|
396
|
-
closeAfterDateSelect: true,
|
397
389
|
maskWithFormat: false,
|
398
390
|
required: false,
|
399
391
|
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.2013.15518408913.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.2013.15518408913.0",
|
36
|
+
"@salutejs/sdds-themes": "0.38.0-canary.2013.15518408913.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.2013.15518408913.0",
|
67
|
+
"@salutejs/plasma-cy-utils": "0.129.0-canary.2013.15518408913.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.2013.15518408913.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": "fdfd6a0c139970bf8dc9676587277d2dd847e053"
|
141
141
|
}
|