@salutejs/sdds-cs 0.318.0-canary.2012.15531128062.0 → 0.318.0-canary.2014.15531870271.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?: DateInfo, originalDate?: Date, isoDate?: string) => void;
|
30
|
+
onCommitDate?: (value: Date | string, error?: boolean, success?: boolean, dateInfo?: import("src/components/Calendar/Calendar.types").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,4 +105,5 @@ 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;
|
108
109
|
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<import("@salutejs/plasma-new-hope/styled-components").RangeInputRefs>>;
|
@@ -107,10 +107,7 @@ const StoryDefault = ({
|
|
107
107
|
contentRight={enableContentRight ? <IconCalendarOutline size={iconSize} /> : undefined}
|
108
108
|
onBlur={onBlur}
|
109
109
|
onFocus={onFocus}
|
110
|
-
onToggle={(is) =>
|
111
|
-
setIsOpen(is);
|
112
|
-
onToggle(is);
|
113
|
-
}}
|
110
|
+
onToggle={(is) => setIsOpen(is)}
|
114
111
|
onChangeValue={onChangeValue}
|
115
112
|
onCommitDate={onCommitDate}
|
116
113
|
{...rest}
|
@@ -146,7 +143,6 @@ export const Default: StoryObj<StoryPropsDefault> = {
|
|
146
143
|
includeEdgeDates: true,
|
147
144
|
min: new Date(2024, 1, 1),
|
148
145
|
max: new Date(2024, 12, 29),
|
149
|
-
closeAfterDateSelect: true,
|
150
146
|
maskWithFormat: false,
|
151
147
|
required: false,
|
152
148
|
requiredPlacement: 'right',
|
@@ -242,10 +238,7 @@ const StoryRange = ({
|
|
242
238
|
secondTextfieldTextBefore={
|
243
239
|
showDefaultTextBefore ? secondTextfieldTextBefore || 'ПО' : secondTextfieldTextBefore
|
244
240
|
}
|
245
|
-
onToggle={(is) =>
|
246
|
-
setIsOpen(is);
|
247
|
-
onToggle(is);
|
248
|
-
}}
|
241
|
+
onToggle={(is) => setIsOpen(is)}
|
249
242
|
onChangeFirstValue={onChangeFirstValue}
|
250
243
|
onChangeSecondValue={onChangeSecondValue}
|
251
244
|
{...dividerIconProps}
|
@@ -282,7 +275,6 @@ export const Range: StoryObj<StoryPropsRange> = {
|
|
282
275
|
includeEdgeDates: true,
|
283
276
|
min: new Date(2024, 1, 1),
|
284
277
|
max: new Date(2024, 12, 29),
|
285
|
-
closeAfterDateSelect: true,
|
286
278
|
renderFromDate: new Date(2024, 4, 14),
|
287
279
|
maskWithFormat: false,
|
288
280
|
required: false,
|
@@ -107,10 +107,7 @@ const StoryDefault = ({
|
|
107
107
|
contentRight={enableContentRight ? <IconCalendarOutline size={iconSize} /> : undefined}
|
108
108
|
onBlur={onBlur}
|
109
109
|
onFocus={onFocus}
|
110
|
-
onToggle={(is) =>
|
111
|
-
setIsOpen(is);
|
112
|
-
onToggle(is);
|
113
|
-
}}
|
110
|
+
onToggle={(is) => setIsOpen(is)}
|
114
111
|
onChangeValue={onChangeValue}
|
115
112
|
onCommitDate={onCommitDate}
|
116
113
|
{...rest}
|
@@ -146,7 +143,6 @@ export const Default: StoryObj<StoryPropsDefault> = {
|
|
146
143
|
includeEdgeDates: true,
|
147
144
|
min: new Date(2024, 1, 1),
|
148
145
|
max: new Date(2024, 12, 29),
|
149
|
-
closeAfterDateSelect: true,
|
150
146
|
maskWithFormat: false,
|
151
147
|
required: false,
|
152
148
|
requiredPlacement: 'right',
|
@@ -242,10 +238,7 @@ const StoryRange = ({
|
|
242
238
|
secondTextfieldTextBefore={
|
243
239
|
showDefaultTextBefore ? secondTextfieldTextBefore || 'ПО' : secondTextfieldTextBefore
|
244
240
|
}
|
245
|
-
onToggle={(is) =>
|
246
|
-
setIsOpen(is);
|
247
|
-
onToggle(is);
|
248
|
-
}}
|
241
|
+
onToggle={(is) => setIsOpen(is)}
|
249
242
|
onChangeFirstValue={onChangeFirstValue}
|
250
243
|
onChangeSecondValue={onChangeSecondValue}
|
251
244
|
{...dividerIconProps}
|
@@ -282,7 +275,6 @@ export const Range: StoryObj<StoryPropsRange> = {
|
|
282
275
|
includeEdgeDates: true,
|
283
276
|
min: new Date(2024, 1, 1),
|
284
277
|
max: new Date(2024, 12, 29),
|
285
|
-
closeAfterDateSelect: true,
|
286
278
|
renderFromDate: new Date(2024, 4, 14),
|
287
279
|
maskWithFormat: false,
|
288
280
|
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.2014.15531870271.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.2014.15531870271.0",
|
34
|
+
"@salutejs/sdds-themes": "0.38.0-canary.2014.15531870271.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.2014.15531870271.0",
|
58
|
+
"@salutejs/plasma-cy-utils": "0.129.0-canary.2014.15531870271.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.2014.15531870271.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": "5f82a222af198e1c2e02daee64f9f4ca75d25e3b"
|
127
127
|
}
|