@salutejs/plasma-new-hope 0.260.0-canary.1757.13160270615.0 → 0.260.0-canary.1759.13175602857.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +2 -4
- package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +2 -4
- package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +2 -4
- package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
- package/emotion/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +2 -4
- package/emotion/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +2 -4
- package/emotion/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +2 -4
- package/emotion/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +10 -10
- package/emotion/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +0 -12
- package/emotion/cjs/examples/plasma_b2c/components/TextArea/TextArea.config.js +14 -13
- package/emotion/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +10 -10
- package/emotion/cjs/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +1 -13
- package/emotion/cjs/examples/plasma_web/components/TextArea/TextArea.config.js +14 -13
- package/emotion/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +1 -1
- package/emotion/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +2 -4
- package/emotion/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +2 -4
- package/emotion/es/components/Calendar/ui/CalendarYears/CalendarYears.js +2 -4
- package/emotion/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +10 -10
- package/emotion/es/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +0 -12
- package/emotion/es/examples/plasma_b2c/components/TextArea/TextArea.config.js +14 -13
- package/emotion/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +10 -10
- package/emotion/es/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +1 -13
- package/emotion/es/examples/plasma_web/components/TextArea/TextArea.config.js +14 -13
- package/emotion/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +1 -1
- package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +2 -4
- package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
- package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +2 -4
- package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js.map +1 -1
- package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +2 -4
- package/es/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +2 -4
- package/styled-components/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +2 -4
- package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +2 -4
- package/styled-components/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +10 -10
- package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +0 -12
- package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.config.js +2 -1
- package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +10 -10
- package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +1 -13
- package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.config.js +2 -1
- package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +1 -1
- package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +2 -4
- package/styled-components/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +2 -4
- package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.js +2 -4
- package/styled-components/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +10 -10
- package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +0 -12
- package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.config.js +2 -1
- package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +10 -10
- package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +1 -13
- package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.config.js +2 -1
- package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +1 -1
- package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarQuarters/CalendarQuarters.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarYears/CalendarYears.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/TextArea/TextArea.config.d.ts +1 -0
- package/types/examples/plasma_b2c/components/TextArea/TextArea.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts +1 -0
- package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts.map +1 -1
- package/types/examples/plasma_web/components/TextArea/TextArea.config.d.ts +1 -0
- package/types/examples/plasma_web/components/TextArea/TextArea.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/TextArea/TextArea.d.ts +1 -0
- package/types/examples/plasma_web/components/TextArea/TextArea.d.ts.map +1 -1
@@ -13,7 +13,7 @@ import { config } from './TextArea.config';
|
|
13
13
|
import { TextArea } from './TextArea';
|
14
14
|
|
15
15
|
const labelPlacements = ['inner', 'outer'];
|
16
|
-
const sizes = ['xs', 's', 'm', 'l'];
|
16
|
+
const sizes = ['xs', 's', 'm', 'l', 'xl'];
|
17
17
|
const hintViews = ['default'];
|
18
18
|
const hintSizes = ['m', 's'];
|
19
19
|
const hintTriggers = ['hover', 'click'];
|
@@ -35,15 +35,13 @@ export var CalendarMonths = function CalendarMonths(_ref) {
|
|
35
35
|
onSetSelected = _ref.onSetSelected,
|
36
36
|
onKeyDown = _ref.onKeyDown,
|
37
37
|
locale = _ref.locale;
|
38
|
-
var minDate = min ? new Date(min.getFullYear(), min.getMonth(), 1) : undefined;
|
39
|
-
var maxDate = max ? new Date(max.getFullYear(), max.getMonth() + 1, 0) : undefined;
|
40
38
|
var _useMonths = useMonths({
|
41
39
|
date: currentDate,
|
42
40
|
value: value,
|
43
41
|
eventList: eventList,
|
44
42
|
disabledList: disabledList,
|
45
|
-
min:
|
46
|
-
max:
|
43
|
+
min: min,
|
44
|
+
max: max,
|
47
45
|
locale: locale
|
48
46
|
}),
|
49
47
|
_useMonths2 = _slicedToArray(_useMonths, 2),
|
@@ -34,15 +34,13 @@ export var CalendarQuarters = function CalendarQuarters(_ref) {
|
|
34
34
|
onHoverQuarter = _ref.onHoverQuarter,
|
35
35
|
onSetSelected = _ref.onSetSelected,
|
36
36
|
onKeyDown = _ref.onKeyDown;
|
37
|
-
var minDate = min ? new Date(min.getFullYear(), min.getMonth(), 1) : undefined;
|
38
|
-
var maxDate = max ? new Date(max.getFullYear(), max.getMonth() + 1, 0) : undefined;
|
39
37
|
var _useQuarters = useQuarters({
|
40
38
|
date: currentDate,
|
41
39
|
value: value,
|
42
40
|
eventList: eventList,
|
43
41
|
disabledList: disabledList,
|
44
|
-
min:
|
45
|
-
max:
|
42
|
+
min: min,
|
43
|
+
max: max
|
46
44
|
}),
|
47
45
|
_useQuarters2 = _slicedToArray(_useQuarters, 2),
|
48
46
|
quarters = _useQuarters2[0],
|
@@ -35,16 +35,14 @@ export var CalendarYears = function CalendarYears(_ref) {
|
|
35
35
|
onHoverYear = _ref.onHoverYear,
|
36
36
|
onSetSelected = _ref.onSetSelected,
|
37
37
|
onKeyDown = _ref.onKeyDown;
|
38
|
-
var minDate = min ? new Date(min.getFullYear(), 0, 1) : undefined;
|
39
|
-
var maxDate = max ? new Date(max.getFullYear(), 11, 31) : undefined;
|
40
38
|
var _useYears = useYears({
|
41
39
|
date: currentDate,
|
42
40
|
value: value,
|
43
41
|
startYear: startYear,
|
44
42
|
eventList: eventList,
|
45
43
|
disabledList: disabledList,
|
46
|
-
min:
|
47
|
-
max:
|
44
|
+
min: min,
|
45
|
+
max: max
|
48
46
|
}),
|
49
47
|
_useYears2 = _slicedToArray(_useYears, 2),
|
50
48
|
years = _useYears2[0],
|
@@ -100,11 +100,11 @@ const StoryDefault = (args: CalendarProps) => {
|
|
100
100
|
isDouble={isDouble}
|
101
101
|
date={date}
|
102
102
|
value={(isRange ? valueRange : value) as Date & [Date, Date?]}
|
103
|
+
min={min}
|
104
|
+
max={max}
|
103
105
|
includeEdgeDates={includeEdgeDates}
|
104
106
|
locale={locale}
|
105
107
|
onChangeValue={(isRange ? handleOnRangeChange : handleOnChange) as (value: Date | [Date, Date?]) => void}
|
106
|
-
{...(min && { min: new Date(min) })}
|
107
|
-
{...(max && { max: new Date(max) })}
|
108
108
|
/>
|
109
109
|
);
|
110
110
|
};
|
@@ -146,24 +146,24 @@ const StoryBase = (args: CalendarBaseProps & { displayDouble: boolean }) => {
|
|
146
146
|
<CalendarDouble
|
147
147
|
size={size}
|
148
148
|
value={value}
|
149
|
+
min={min}
|
150
|
+
max={max}
|
149
151
|
includeEdgeDates={includeEdgeDates}
|
150
152
|
type={type}
|
151
153
|
locale={locale}
|
152
154
|
onChangeValue={handleOnChange}
|
153
|
-
{...(min && { min: new Date(min) })}
|
154
|
-
{...(max && { max: new Date(max) })}
|
155
155
|
{...rest}
|
156
156
|
/>
|
157
157
|
) : (
|
158
158
|
<CalendarBase
|
159
159
|
size={size}
|
160
160
|
value={value}
|
161
|
+
min={min}
|
162
|
+
max={max}
|
161
163
|
includeEdgeDates={includeEdgeDates}
|
162
164
|
type={type}
|
163
165
|
locale={locale}
|
164
166
|
onChangeValue={handleOnChange}
|
165
|
-
{...(min && { min: new Date(min) })}
|
166
|
-
{...(max && { max: new Date(max) })}
|
167
167
|
{...rest}
|
168
168
|
/>
|
169
169
|
);
|
@@ -233,24 +233,24 @@ const StoryRange = (args: CalendarBaseRangeProps & { displayDouble: boolean }) =
|
|
233
233
|
<CalendarBaseRange
|
234
234
|
size={size}
|
235
235
|
value={values}
|
236
|
+
min={min}
|
237
|
+
max={max}
|
236
238
|
includeEdgeDates={includeEdgeDates}
|
237
239
|
type={type}
|
238
240
|
onChangeValue={handleOnChange}
|
239
241
|
locale={locale}
|
240
|
-
{...(min && { min: new Date(min) })}
|
241
|
-
{...(max && { max: new Date(max) })}
|
242
242
|
{...rest}
|
243
243
|
/>
|
244
244
|
) : (
|
245
245
|
<CalendarDoubleRange
|
246
246
|
size={size}
|
247
247
|
value={values}
|
248
|
+
min={min}
|
249
|
+
max={max}
|
248
250
|
includeEdgeDates={includeEdgeDates}
|
249
251
|
type={type}
|
250
252
|
onChangeValue={handleOnChange}
|
251
253
|
locale={locale}
|
252
|
-
{...(min && { min: new Date(min) })}
|
253
|
-
{...(max && { max: new Date(max) })}
|
254
254
|
{...rest}
|
255
255
|
/>
|
256
256
|
);
|
@@ -80,8 +80,6 @@ const StoryDefault = ({
|
|
80
80
|
size,
|
81
81
|
lang,
|
82
82
|
format,
|
83
|
-
min,
|
84
|
-
max,
|
85
83
|
...rest
|
86
84
|
}: StoryPropsDefault) => {
|
87
85
|
const [isOpen, setIsOpen] = useState(false);
|
@@ -105,8 +103,6 @@ const StoryDefault = ({
|
|
105
103
|
lang={lang}
|
106
104
|
format={format}
|
107
105
|
onCommitDate={() => setIsOpen(false)}
|
108
|
-
{...(min && { min: new Date(min) })}
|
109
|
-
{...(max && { max: new Date(max) })}
|
110
106
|
{...rest}
|
111
107
|
/>
|
112
108
|
);
|
@@ -192,8 +188,6 @@ const StoryRange = ({
|
|
192
188
|
secondValueSuccess,
|
193
189
|
size,
|
194
190
|
lang,
|
195
|
-
min,
|
196
|
-
max,
|
197
191
|
...rest
|
198
192
|
}: StoryPropsRange) => {
|
199
193
|
const rangeRef = useRef<RangeInputRefs>(null);
|
@@ -246,8 +240,6 @@ const StoryRange = ({
|
|
246
240
|
onChangeSecondValue(e, currentValue);
|
247
241
|
}}
|
248
242
|
lang={lang}
|
249
|
-
{...(min && { min: new Date(min) })}
|
250
|
-
{...(max && { max: new Date(max) })}
|
251
243
|
{...dividerIconProps}
|
252
244
|
{...rest}
|
253
245
|
/>
|
@@ -314,8 +306,6 @@ const StoryDeferred = ({
|
|
314
306
|
valueError,
|
315
307
|
valueSuccess,
|
316
308
|
size,
|
317
|
-
min,
|
318
|
-
max,
|
319
309
|
...rest
|
320
310
|
}: StoryPropsDefault) => {
|
321
311
|
const [isOpen, setIsOpen] = useState(false);
|
@@ -348,8 +338,6 @@ const StoryDeferred = ({
|
|
348
338
|
onChangeValue(e, currentValue);
|
349
339
|
}}
|
350
340
|
onCommitDate={() => setIsOpen(false)}
|
351
|
-
{...(min && { min: new Date(min) })}
|
352
|
-
{...(max && { max: new Date(max) })}
|
353
341
|
{...rest}
|
354
342
|
/>
|
355
343
|
</>
|