@salutejs/sdds-cs 0.318.0-canary.2014.15531870271.0 → 0.318.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.
@@ -27,7 +27,7 @@ export declare const DatePicker: import("react").FunctionComponent<import("@salu
|
|
27
27
|
textBefore?: string;
|
28
28
|
textAfter?: string;
|
29
29
|
autoComplete?: string;
|
30
|
-
onCommitDate?: (value: Date | string, error?: boolean, success?: boolean, dateInfo?:
|
30
|
+
onCommitDate?: (value: Date | string, error?: boolean, success?: boolean, dateInfo?: DateInfo, originalDate?: Date, isoDate?: string) => void;
|
31
31
|
onChangeValue?: (event: import("react").SyntheticEvent<HTMLInputElement> | null, value?: string, originalDate?: DateType, isoDate?: string) => void;
|
32
32
|
onChange?: (event: {
|
33
33
|
target: {
|
@@ -105,5 +105,4 @@ export declare const DatePickerRange: import("react").FunctionComponent<import("
|
|
105
105
|
} & 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"> & {
|
106
106
|
placement?: import("@salutejs/plasma-new-hope/styled-components").DatePickerRangePlacement | Array<import("@salutejs/plasma-new-hope/types/components/DatePicker/RangeDate/RangeDate.types").DatePickerRangePlacementBasic>;
|
107
107
|
isDoubleCalendar?: boolean;
|
108
|
-
closeAfterDateSelect?: boolean;
|
109
108
|
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<import("@salutejs/plasma-new-hope/styled-components").RangeInputRefs>>;
|
@@ -107,7 +107,10 @@ const StoryDefault = ({
|
|
107
107
|
contentRight={enableContentRight ? <IconCalendarOutline size={iconSize} /> : undefined}
|
108
108
|
onBlur={onBlur}
|
109
109
|
onFocus={onFocus}
|
110
|
-
onToggle={(is) =>
|
110
|
+
onToggle={(is) => {
|
111
|
+
setIsOpen(is);
|
112
|
+
onToggle(is);
|
113
|
+
}}
|
111
114
|
onChangeValue={onChangeValue}
|
112
115
|
onCommitDate={onCommitDate}
|
113
116
|
{...rest}
|
@@ -143,6 +146,7 @@ export const Default: StoryObj<StoryPropsDefault> = {
|
|
143
146
|
includeEdgeDates: true,
|
144
147
|
min: new Date(2024, 1, 1),
|
145
148
|
max: new Date(2024, 12, 29),
|
149
|
+
closeAfterDateSelect: true,
|
146
150
|
maskWithFormat: false,
|
147
151
|
required: false,
|
148
152
|
requiredPlacement: 'right',
|
@@ -238,7 +242,10 @@ const StoryRange = ({
|
|
238
242
|
secondTextfieldTextBefore={
|
239
243
|
showDefaultTextBefore ? secondTextfieldTextBefore || 'ПО' : secondTextfieldTextBefore
|
240
244
|
}
|
241
|
-
onToggle={(is) =>
|
245
|
+
onToggle={(is) => {
|
246
|
+
setIsOpen(is);
|
247
|
+
onToggle(is);
|
248
|
+
}}
|
242
249
|
onChangeFirstValue={onChangeFirstValue}
|
243
250
|
onChangeSecondValue={onChangeSecondValue}
|
244
251
|
{...dividerIconProps}
|
@@ -275,6 +282,7 @@ export const Range: StoryObj<StoryPropsRange> = {
|
|
275
282
|
includeEdgeDates: true,
|
276
283
|
min: new Date(2024, 1, 1),
|
277
284
|
max: new Date(2024, 12, 29),
|
285
|
+
closeAfterDateSelect: true,
|
278
286
|
renderFromDate: new Date(2024, 4, 14),
|
279
287
|
maskWithFormat: false,
|
280
288
|
required: false,
|
@@ -107,7 +107,10 @@ const StoryDefault = ({
|
|
107
107
|
contentRight={enableContentRight ? <IconCalendarOutline size={iconSize} /> : undefined}
|
108
108
|
onBlur={onBlur}
|
109
109
|
onFocus={onFocus}
|
110
|
-
onToggle={(is) =>
|
110
|
+
onToggle={(is) => {
|
111
|
+
setIsOpen(is);
|
112
|
+
onToggle(is);
|
113
|
+
}}
|
111
114
|
onChangeValue={onChangeValue}
|
112
115
|
onCommitDate={onCommitDate}
|
113
116
|
{...rest}
|
@@ -143,6 +146,7 @@ export const Default: StoryObj<StoryPropsDefault> = {
|
|
143
146
|
includeEdgeDates: true,
|
144
147
|
min: new Date(2024, 1, 1),
|
145
148
|
max: new Date(2024, 12, 29),
|
149
|
+
closeAfterDateSelect: true,
|
146
150
|
maskWithFormat: false,
|
147
151
|
required: false,
|
148
152
|
requiredPlacement: 'right',
|
@@ -238,7 +242,10 @@ const StoryRange = ({
|
|
238
242
|
secondTextfieldTextBefore={
|
239
243
|
showDefaultTextBefore ? secondTextfieldTextBefore || 'ПО' : secondTextfieldTextBefore
|
240
244
|
}
|
241
|
-
onToggle={(is) =>
|
245
|
+
onToggle={(is) => {
|
246
|
+
setIsOpen(is);
|
247
|
+
onToggle(is);
|
248
|
+
}}
|
242
249
|
onChangeFirstValue={onChangeFirstValue}
|
243
250
|
onChangeSecondValue={onChangeSecondValue}
|
244
251
|
{...dividerIconProps}
|
@@ -275,6 +282,7 @@ export const Range: StoryObj<StoryPropsRange> = {
|
|
275
282
|
includeEdgeDates: true,
|
276
283
|
min: new Date(2024, 1, 1),
|
277
284
|
max: new Date(2024, 12, 29),
|
285
|
+
closeAfterDateSelect: true,
|
278
286
|
renderFromDate: new Date(2024, 4, 14),
|
279
287
|
maskWithFormat: false,
|
280
288
|
required: false,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/sdds-cs",
|
3
|
-
"version": "0.318.0-canary.
|
3
|
+
"version": "0.318.0-canary.2016.15553329485.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,8 +30,8 @@
|
|
30
30
|
"directory": "packages/sdds-cs"
|
31
31
|
},
|
32
32
|
"dependencies": {
|
33
|
-
"@salutejs/plasma-new-hope": "0.326.0-canary.
|
34
|
-
"@salutejs/sdds-themes": "0.38.0-canary.
|
33
|
+
"@salutejs/plasma-new-hope": "0.326.0-canary.2016.15553329485.0",
|
34
|
+
"@salutejs/sdds-themes": "0.38.0-canary.2016.15553329485.0"
|
35
35
|
},
|
36
36
|
"peerDependencies": {
|
37
37
|
"@emotion/react": ">=11",
|
@@ -54,10 +54,10 @@
|
|
54
54
|
"@microsoft/api-extractor": "7.38.3",
|
55
55
|
"@originjs/vite-plugin-commonjs": "1.0.3",
|
56
56
|
"@salutejs/plasma-colors": "0.15.0",
|
57
|
-
"@salutejs/plasma-core": "1.198.0-canary.
|
58
|
-
"@salutejs/plasma-cy-utils": "0.129.0-canary.
|
57
|
+
"@salutejs/plasma-core": "1.198.0-canary.2016.15553329485.0",
|
58
|
+
"@salutejs/plasma-cy-utils": "0.129.0-canary.2016.15553329485.0",
|
59
59
|
"@salutejs/plasma-icons": "1.218.0",
|
60
|
-
"@salutejs/plasma-sb-utils": "0.199.0-canary.
|
60
|
+
"@salutejs/plasma-sb-utils": "0.199.0-canary.2016.15553329485.0",
|
61
61
|
"@storybook/addon-docs": "7.6.17",
|
62
62
|
"@storybook/addon-essentials": "7.6.17",
|
63
63
|
"@storybook/addons": "7.6.17",
|
@@ -123,5 +123,5 @@
|
|
123
123
|
"Anton Vinogradov"
|
124
124
|
],
|
125
125
|
"sideEffects": false,
|
126
|
-
"gitHead": "
|
126
|
+
"gitHead": "c78373876f8c65b9f297fa93b5c552d6bf7a478e"
|
127
127
|
}
|