@atls-ui-parts/datepicker 1.0.4 → 1.0.7
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.
- package/CHANGELOG.md +31 -0
- package/dist/datepicker.component.d.ts +2 -2
- package/package.json +14 -14
- package/dist/datepicker.stories.d.ts +0 -10
- package/dist/datepicker.stories.js +0 -484
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [1.0.7](https://github.com/atls/hyperion/compare/@atls-ui-parts/datepicker@1.0.6...@atls-ui-parts/datepicker@1.0.7) (2025-04-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* **ui:** type and lint errors ([da072ab](https://github.com/atls/hyperion/commit/da072abf91f465b4a6f0b736e2b26c78a2891d1d))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [1.0.6](https://github.com/atls/hyperion/compare/@atls-ui-parts/datepicker@1.0.4...@atls-ui-parts/datepicker@1.0.6) (2025-02-23)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
* **atls-ui:** bump rainbow sprinkles ([#595](https://github.com/atls/hyperion/issues/595)) ([be18713](https://github.com/atls/hyperion/commit/be1871351926c38605bbed4d7aa11a4759f80f3d))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## [1.0.4](https://github.com/atls/hyperion/compare/@atls-ui-parts/datepicker@1.0.4...@atls-ui-parts/datepicker@1.0.4) (2025-02-19)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
3
34
|
## [1.0.4](https://github.com/atls/hyperion/compare/@atls-ui-parts/datepicker@1.0.3...@atls-ui-parts/datepicker@1.0.4) (2025-02-19)
|
|
4
35
|
|
|
5
36
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'react-datepicker/dist/react-datepicker.css';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
3
|
import type { DatepickerProps } from './datepicker.interface.js';
|
|
4
|
-
export declare const Datepicker:
|
|
4
|
+
export declare const Datepicker: ({ withBaseStyle, ...props }: DatepickerProps) => ReactNode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atls-ui-parts/datepicker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -15,21 +15,21 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@emotion/css": "patch:@emotion/css@npm%3A11.13.0#~/.yarn/patches/@emotion-css-npm-11.13.0-7fe925d1e6.patch",
|
|
17
17
|
"clsx": "2.1.1",
|
|
18
|
-
"date-fns": "
|
|
19
|
-
"rainbow-sprinkles": "0.
|
|
20
|
-
"react-datepicker": "
|
|
18
|
+
"date-fns": "4.1.0",
|
|
19
|
+
"rainbow-sprinkles": "1.0.0",
|
|
20
|
+
"react-datepicker": "8.3.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@atls-ui-parts/condition": "1.0.
|
|
24
|
-
"@atls-ui-parts/input": "1.0.
|
|
25
|
-
"@atls-ui-parts/layout": "1.0.
|
|
26
|
-
"@storybook/react": "8.
|
|
27
|
-
"@types/react": "
|
|
28
|
-
"@vanilla-extract/css": "1.
|
|
29
|
-
"@vanilla-extract/dynamic": "2.1.
|
|
30
|
-
"react": "
|
|
31
|
-
"react-dom": "
|
|
32
|
-
"storybook": "8.
|
|
23
|
+
"@atls-ui-parts/condition": "1.0.3",
|
|
24
|
+
"@atls-ui-parts/input": "1.0.7",
|
|
25
|
+
"@atls-ui-parts/layout": "1.0.5",
|
|
26
|
+
"@storybook/react": "8.6.12",
|
|
27
|
+
"@types/react": "19.1.2",
|
|
28
|
+
"@vanilla-extract/css": "1.17.1",
|
|
29
|
+
"@vanilla-extract/dynamic": "2.1.2",
|
|
30
|
+
"react": "19.1.0",
|
|
31
|
+
"react-dom": "19.1.0",
|
|
32
|
+
"storybook": "8.6.12"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@vanilla-extract/css": "*",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react';
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
import type { AppearanceStyles } from './utils/index.js';
|
|
4
|
-
import type { ShapeStyles } from './utils/index.js';
|
|
5
|
-
interface DatepickerStoryProps extends AppearanceStyles, ShapeStyles {
|
|
6
|
-
showPopperArrow: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const meta: Meta<DatepickerStoryProps>;
|
|
9
|
-
export default meta;
|
|
10
|
-
export declare const Base: StoryObj<DatepickerStoryProps>;
|
|
@@ -1,484 +0,0 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { Input } from '@atls-ui-parts/input';
|
|
4
|
-
import { Box } from '@atls-ui-parts/layout';
|
|
5
|
-
import { Datepicker } from './datepicker.component.js';
|
|
6
|
-
const meta = {
|
|
7
|
-
title: 'Components/Datepicker',
|
|
8
|
-
render: (props) => {
|
|
9
|
-
const [endDate, setEndDate] = useState(new Date('2021/06/17'));
|
|
10
|
-
const [startDate, setStartDate] = useState(new Date('2021/06/07'));
|
|
11
|
-
const handleDateChange = (date) => {
|
|
12
|
-
if (!date)
|
|
13
|
-
return;
|
|
14
|
-
if (date.getTime() > endDate.getTime()) {
|
|
15
|
-
setStartDate(endDate);
|
|
16
|
-
setEndDate(date);
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
setStartDate(date);
|
|
20
|
-
};
|
|
21
|
-
const dateRangeValue = `${Intl.DateTimeFormat('ru').format(startDate)}-${Intl.DateTimeFormat('ru').format(endDate)}`;
|
|
22
|
-
return (React.createElement(Box, { width: '100%', height: '300px', flexDirection: 'column', alignItems: 'center', justifyContent: 'center' },
|
|
23
|
-
React.createElement(Datepicker, { isClearable: true, strictParsing: true, dateFormat: 'dd.MM.yy', startDate: startDate, endDate: endDate, selected: startDate, customInput: React.createElement(Input, { value: dateRangeValue }), onChange: handleDateChange, ...props })));
|
|
24
|
-
},
|
|
25
|
-
tags: ['autodocs'],
|
|
26
|
-
argTypes: {
|
|
27
|
-
arrowColor: {
|
|
28
|
-
name: 'Цвет стрелки',
|
|
29
|
-
description: 'Цвет стрелки',
|
|
30
|
-
table: {
|
|
31
|
-
category: 'Представление',
|
|
32
|
-
subcategory: 'Цвет',
|
|
33
|
-
},
|
|
34
|
-
control: {
|
|
35
|
-
type: 'color',
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
arrowHoverColor: {
|
|
39
|
-
name: 'Цвет стрелки при наведении',
|
|
40
|
-
description: 'Цвет стрелки при наведении',
|
|
41
|
-
table: {
|
|
42
|
-
category: 'Представление',
|
|
43
|
-
subcategory: 'Цвет',
|
|
44
|
-
},
|
|
45
|
-
control: {
|
|
46
|
-
type: 'color',
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
showPopperArrow: {
|
|
50
|
-
name: 'Показывать стрелку',
|
|
51
|
-
description: 'Показывать стрелку',
|
|
52
|
-
table: {
|
|
53
|
-
category: 'Форма',
|
|
54
|
-
},
|
|
55
|
-
control: {
|
|
56
|
-
type: 'boolean',
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
cellColor: {
|
|
60
|
-
name: 'Цвет ячейки',
|
|
61
|
-
description: 'Цвет ячейки',
|
|
62
|
-
table: {
|
|
63
|
-
category: 'Представление',
|
|
64
|
-
subcategory: 'Цвет',
|
|
65
|
-
},
|
|
66
|
-
control: {
|
|
67
|
-
type: 'color',
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
cellFontColor: {
|
|
71
|
-
name: 'Цвет текста в ячейке',
|
|
72
|
-
description: 'Цвет текста в ячейке',
|
|
73
|
-
table: {
|
|
74
|
-
category: 'Представление',
|
|
75
|
-
subcategory: 'Цвет',
|
|
76
|
-
},
|
|
77
|
-
control: {
|
|
78
|
-
type: 'color',
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
cellActiveColor: {
|
|
82
|
-
name: 'Активный цвет ячейки',
|
|
83
|
-
description: 'Активный цвет ячейки',
|
|
84
|
-
table: {
|
|
85
|
-
category: 'Представление',
|
|
86
|
-
subcategory: 'Цвет',
|
|
87
|
-
},
|
|
88
|
-
control: {
|
|
89
|
-
type: 'color',
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
cellActiveFontColor: {
|
|
93
|
-
name: 'Активный цвет текста в ячейке',
|
|
94
|
-
description: 'Активный цвет текста в ячейке',
|
|
95
|
-
table: {
|
|
96
|
-
category: 'Представление',
|
|
97
|
-
subcategory: 'Цвет',
|
|
98
|
-
},
|
|
99
|
-
control: {
|
|
100
|
-
type: 'color',
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
cellHoverColor: {
|
|
104
|
-
name: 'Цвет ячейки при наведении',
|
|
105
|
-
description: 'Цвет ячейки при наведении',
|
|
106
|
-
table: {
|
|
107
|
-
category: 'Представление',
|
|
108
|
-
subcategory: 'Цвет',
|
|
109
|
-
},
|
|
110
|
-
control: {
|
|
111
|
-
type: 'color',
|
|
112
|
-
},
|
|
113
|
-
},
|
|
114
|
-
cellHoverFontColor: {
|
|
115
|
-
name: 'Цвет текста в ячейке при наведении',
|
|
116
|
-
description: 'Цвет текста в ячейке при наведении',
|
|
117
|
-
table: {
|
|
118
|
-
category: 'Представление',
|
|
119
|
-
subcategory: 'Цвет',
|
|
120
|
-
},
|
|
121
|
-
control: {
|
|
122
|
-
type: 'color',
|
|
123
|
-
},
|
|
124
|
-
},
|
|
125
|
-
currentMonthPadding: {
|
|
126
|
-
name: 'Внешний отступ текущего месяца',
|
|
127
|
-
description: 'Внешний отступ текущего месяца',
|
|
128
|
-
table: {
|
|
129
|
-
category: 'Форма',
|
|
130
|
-
},
|
|
131
|
-
control: {
|
|
132
|
-
type: 'number',
|
|
133
|
-
},
|
|
134
|
-
},
|
|
135
|
-
currentMonthFontFamily: {
|
|
136
|
-
name: 'Форма шрифта текущего месяца',
|
|
137
|
-
description: 'Форма шрифта текущего месяца',
|
|
138
|
-
table: {
|
|
139
|
-
category: 'Форма',
|
|
140
|
-
},
|
|
141
|
-
control: {
|
|
142
|
-
type: 'text',
|
|
143
|
-
},
|
|
144
|
-
},
|
|
145
|
-
currentMonthFontStyle: {
|
|
146
|
-
name: 'Стиль шрифта текущего месяца',
|
|
147
|
-
description: 'Стиль шрифта текущего месяца',
|
|
148
|
-
table: {
|
|
149
|
-
category: 'Форма',
|
|
150
|
-
},
|
|
151
|
-
control: {
|
|
152
|
-
type: 'text',
|
|
153
|
-
},
|
|
154
|
-
},
|
|
155
|
-
currentMonthFontWeight: {
|
|
156
|
-
name: 'Толщина шрифта текущего месяца',
|
|
157
|
-
description: 'Толщина шрифта текущего месяца',
|
|
158
|
-
table: {
|
|
159
|
-
category: 'Форма',
|
|
160
|
-
},
|
|
161
|
-
control: {
|
|
162
|
-
type: 'number',
|
|
163
|
-
},
|
|
164
|
-
},
|
|
165
|
-
currentMonthFontSize: {
|
|
166
|
-
name: 'Размер шрифта текущего месяца',
|
|
167
|
-
description: 'Размер шрифта текущего месяца',
|
|
168
|
-
table: {
|
|
169
|
-
category: 'Форма',
|
|
170
|
-
},
|
|
171
|
-
control: {
|
|
172
|
-
type: 'text',
|
|
173
|
-
},
|
|
174
|
-
},
|
|
175
|
-
currentMonthFontColor: {
|
|
176
|
-
name: 'Цвет шрифта текущего месяца',
|
|
177
|
-
description: 'Цвет шрифта текущего месяца',
|
|
178
|
-
table: {
|
|
179
|
-
category: 'Представление',
|
|
180
|
-
subcategory: 'Цвет',
|
|
181
|
-
},
|
|
182
|
-
control: {
|
|
183
|
-
type: 'color',
|
|
184
|
-
},
|
|
185
|
-
},
|
|
186
|
-
dayNameFontFamily: {
|
|
187
|
-
name: 'Форма шрифта дня недели',
|
|
188
|
-
description: 'Форма шрифта дня недели',
|
|
189
|
-
table: {
|
|
190
|
-
category: 'Форма',
|
|
191
|
-
},
|
|
192
|
-
control: {
|
|
193
|
-
type: 'text',
|
|
194
|
-
},
|
|
195
|
-
},
|
|
196
|
-
dayNameFontStyle: {
|
|
197
|
-
name: 'Стиль шрифта дня недели',
|
|
198
|
-
description: 'Стиль шрифта дня недели',
|
|
199
|
-
table: {
|
|
200
|
-
category: 'Форма',
|
|
201
|
-
},
|
|
202
|
-
control: {
|
|
203
|
-
type: 'text',
|
|
204
|
-
},
|
|
205
|
-
},
|
|
206
|
-
dayNameFontColor: {
|
|
207
|
-
name: 'Цвет шрифта дня недели',
|
|
208
|
-
description: 'Цвет шрифта дня недели',
|
|
209
|
-
table: {
|
|
210
|
-
category: 'Представление',
|
|
211
|
-
subcategory: 'Цвет',
|
|
212
|
-
},
|
|
213
|
-
control: {
|
|
214
|
-
type: 'color',
|
|
215
|
-
},
|
|
216
|
-
},
|
|
217
|
-
dayNameFontWeight: {
|
|
218
|
-
name: 'Толщина шрифта дня недели',
|
|
219
|
-
description: 'Толщина шрифта дня недели',
|
|
220
|
-
table: {
|
|
221
|
-
category: 'Форма',
|
|
222
|
-
},
|
|
223
|
-
control: {
|
|
224
|
-
type: 'number',
|
|
225
|
-
},
|
|
226
|
-
},
|
|
227
|
-
cellMargin: {
|
|
228
|
-
name: 'Внешний отступ ячейки',
|
|
229
|
-
description: 'Внешний отступ ячейки',
|
|
230
|
-
table: {
|
|
231
|
-
category: 'Форма',
|
|
232
|
-
},
|
|
233
|
-
control: {
|
|
234
|
-
type: 'number',
|
|
235
|
-
},
|
|
236
|
-
},
|
|
237
|
-
cellPadding: {
|
|
238
|
-
name: 'Внутренний отступ ячейки',
|
|
239
|
-
description: 'Внутренний отступ ячейки',
|
|
240
|
-
table: {
|
|
241
|
-
category: 'Форма',
|
|
242
|
-
},
|
|
243
|
-
control: {
|
|
244
|
-
type: 'number',
|
|
245
|
-
},
|
|
246
|
-
},
|
|
247
|
-
cellBorderRadius: {
|
|
248
|
-
name: 'Закругление ячейки',
|
|
249
|
-
description: 'Закругление ячейки',
|
|
250
|
-
table: {
|
|
251
|
-
category: 'Форма',
|
|
252
|
-
},
|
|
253
|
-
control: {
|
|
254
|
-
type: 'number',
|
|
255
|
-
},
|
|
256
|
-
},
|
|
257
|
-
cellInRangeBorderRadius: {
|
|
258
|
-
name: 'Закругление ячейки в выбранном диапазоне',
|
|
259
|
-
description: 'Закругление ячейки в выбранном диапазоне',
|
|
260
|
-
table: {
|
|
261
|
-
category: 'Форма',
|
|
262
|
-
},
|
|
263
|
-
control: {
|
|
264
|
-
type: 'number',
|
|
265
|
-
},
|
|
266
|
-
},
|
|
267
|
-
cellInRangeColor: {
|
|
268
|
-
name: 'Цвет ячейки в выбранном диапазоне',
|
|
269
|
-
description: 'Цвет ячейки в выбранном диапазоне',
|
|
270
|
-
table: {
|
|
271
|
-
category: 'Представление',
|
|
272
|
-
subcategory: 'Цвет',
|
|
273
|
-
},
|
|
274
|
-
control: {
|
|
275
|
-
type: 'color',
|
|
276
|
-
},
|
|
277
|
-
},
|
|
278
|
-
cellInRangeFontColor: {
|
|
279
|
-
name: 'Цвет текста ячейки в выбранном диапазоне',
|
|
280
|
-
description: 'Цвет текста ячейки в выбранном диапазоне',
|
|
281
|
-
table: {
|
|
282
|
-
category: 'Представление',
|
|
283
|
-
subcategory: 'Цвет',
|
|
284
|
-
},
|
|
285
|
-
control: {
|
|
286
|
-
type: 'color',
|
|
287
|
-
},
|
|
288
|
-
},
|
|
289
|
-
cellInRangeHoverColor: {
|
|
290
|
-
name: 'Цвет ячейки в выбранном диапазоне при наведении',
|
|
291
|
-
description: 'Цвет ячейки в выбранном диапазоне при наведении',
|
|
292
|
-
table: {
|
|
293
|
-
category: 'Представление',
|
|
294
|
-
subcategory: 'Цвет',
|
|
295
|
-
},
|
|
296
|
-
control: {
|
|
297
|
-
type: 'color',
|
|
298
|
-
},
|
|
299
|
-
},
|
|
300
|
-
cellInRangeHoverFontColor: {
|
|
301
|
-
name: 'Цвет текста ячейки в выбранном диапазоне при наведении',
|
|
302
|
-
description: 'Цвет текста ячейки в выбранном диапазоне при наведении',
|
|
303
|
-
table: {
|
|
304
|
-
category: 'Представление',
|
|
305
|
-
subcategory: 'Цвет',
|
|
306
|
-
},
|
|
307
|
-
control: {
|
|
308
|
-
type: 'color',
|
|
309
|
-
},
|
|
310
|
-
},
|
|
311
|
-
headerBackgroundColor: {
|
|
312
|
-
name: 'Цвет шапки календаря',
|
|
313
|
-
description: 'Цвет шапки календаря',
|
|
314
|
-
table: {
|
|
315
|
-
category: 'Представление',
|
|
316
|
-
subcategory: 'Цвет',
|
|
317
|
-
},
|
|
318
|
-
control: {
|
|
319
|
-
type: 'color',
|
|
320
|
-
},
|
|
321
|
-
},
|
|
322
|
-
inputBorderColor: {
|
|
323
|
-
name: 'Цвет рамки поля для ввода',
|
|
324
|
-
description: 'Цвет рамки поля для',
|
|
325
|
-
table: {
|
|
326
|
-
category: 'Представление',
|
|
327
|
-
subcategory: 'Цвет',
|
|
328
|
-
},
|
|
329
|
-
control: {
|
|
330
|
-
type: 'color',
|
|
331
|
-
},
|
|
332
|
-
},
|
|
333
|
-
inputActiveBorderColor: {
|
|
334
|
-
name: 'Цвет рамки поля для ввода в активном состоянии',
|
|
335
|
-
description: 'Цвет рамки поля для ввода в активном состоянии',
|
|
336
|
-
table: {
|
|
337
|
-
category: 'Представление',
|
|
338
|
-
subcategory: 'Цвет',
|
|
339
|
-
},
|
|
340
|
-
control: {
|
|
341
|
-
type: 'color',
|
|
342
|
-
},
|
|
343
|
-
},
|
|
344
|
-
inputBorderWidth: {
|
|
345
|
-
name: 'Толщина рамки поля для ввода',
|
|
346
|
-
description: 'Толщина рамки поля для ввода',
|
|
347
|
-
table: {
|
|
348
|
-
category: 'Форма',
|
|
349
|
-
},
|
|
350
|
-
control: {
|
|
351
|
-
type: 'number',
|
|
352
|
-
},
|
|
353
|
-
},
|
|
354
|
-
inputBorderRadius: {
|
|
355
|
-
name: 'Закругление поля для ввода',
|
|
356
|
-
description: 'Закругление поля для ввода',
|
|
357
|
-
table: {
|
|
358
|
-
category: 'Форма',
|
|
359
|
-
},
|
|
360
|
-
control: {
|
|
361
|
-
type: 'number',
|
|
362
|
-
},
|
|
363
|
-
},
|
|
364
|
-
inputPadding: {
|
|
365
|
-
name: 'Внутренний отступ поля для ввода',
|
|
366
|
-
description: 'Внутренний отступ поля для ввода',
|
|
367
|
-
table: {
|
|
368
|
-
category: 'Форма',
|
|
369
|
-
},
|
|
370
|
-
control: {
|
|
371
|
-
type: 'text',
|
|
372
|
-
},
|
|
373
|
-
},
|
|
374
|
-
dividerPosition: {
|
|
375
|
-
name: 'Позиция разделителя',
|
|
376
|
-
description: 'Позиция разделителя',
|
|
377
|
-
table: {
|
|
378
|
-
category: 'Форма',
|
|
379
|
-
},
|
|
380
|
-
control: {
|
|
381
|
-
type: 'inline-radio',
|
|
382
|
-
},
|
|
383
|
-
options: ['middle', 'bottom', 'none'],
|
|
384
|
-
},
|
|
385
|
-
dividerWidth: {
|
|
386
|
-
name: 'Толщина разделителя',
|
|
387
|
-
description: 'Толщина разделителя',
|
|
388
|
-
table: {
|
|
389
|
-
category: 'Форма',
|
|
390
|
-
},
|
|
391
|
-
control: {
|
|
392
|
-
type: 'number',
|
|
393
|
-
},
|
|
394
|
-
},
|
|
395
|
-
dividerColor: {
|
|
396
|
-
name: 'Цвет разделителя',
|
|
397
|
-
description: 'Цвет разделителя',
|
|
398
|
-
table: {
|
|
399
|
-
category: 'Представление',
|
|
400
|
-
subcategory: 'Цвет',
|
|
401
|
-
},
|
|
402
|
-
control: {
|
|
403
|
-
type: 'color',
|
|
404
|
-
},
|
|
405
|
-
},
|
|
406
|
-
fontFamily: {
|
|
407
|
-
name: 'Форма шрифта',
|
|
408
|
-
description: 'Форма шрифта',
|
|
409
|
-
table: {
|
|
410
|
-
category: 'Шрифт',
|
|
411
|
-
},
|
|
412
|
-
control: {
|
|
413
|
-
type: 'text',
|
|
414
|
-
},
|
|
415
|
-
},
|
|
416
|
-
fontWeight: {
|
|
417
|
-
name: 'Толщина шрифта',
|
|
418
|
-
description: 'Толщина шрифта',
|
|
419
|
-
table: {
|
|
420
|
-
category: 'Шрифт',
|
|
421
|
-
},
|
|
422
|
-
control: {
|
|
423
|
-
type: 'inline-radio',
|
|
424
|
-
},
|
|
425
|
-
options: ['normal', 'bold'],
|
|
426
|
-
},
|
|
427
|
-
fontStyle: {
|
|
428
|
-
name: 'Стиль шрифта',
|
|
429
|
-
description: 'Стиль шрифта',
|
|
430
|
-
table: {
|
|
431
|
-
category: 'Шрифт',
|
|
432
|
-
},
|
|
433
|
-
control: {
|
|
434
|
-
type: 'inline-radio',
|
|
435
|
-
},
|
|
436
|
-
options: ['normal', 'italic', 'oblique', 'inherit'],
|
|
437
|
-
},
|
|
438
|
-
},
|
|
439
|
-
};
|
|
440
|
-
export default meta;
|
|
441
|
-
export const Base = {
|
|
442
|
-
name: 'Базовый',
|
|
443
|
-
args: {
|
|
444
|
-
arrowColor: '#376EFF',
|
|
445
|
-
arrowHoverColor: '#376EFF',
|
|
446
|
-
showPopperArrow: true,
|
|
447
|
-
cellColor: undefined,
|
|
448
|
-
cellFontColor: '#262C34',
|
|
449
|
-
cellActiveColor: '#376EFF',
|
|
450
|
-
cellActiveFontColor: '#FFFFFF',
|
|
451
|
-
cellHoverColor: undefined,
|
|
452
|
-
cellHoverFontColor: undefined,
|
|
453
|
-
cellInRangeBorderRadius: 0,
|
|
454
|
-
cellInRangeColor: 'rgba(70, 120, 251, 0.16)',
|
|
455
|
-
cellInRangeFontColor: '#376EFF',
|
|
456
|
-
cellInRangeHoverColor: '#376EFF',
|
|
457
|
-
cellInRangeHoverFontColor: '#FFFFFF',
|
|
458
|
-
cellMargin: 0,
|
|
459
|
-
cellPadding: 14,
|
|
460
|
-
cellBorderRadius: 4,
|
|
461
|
-
dividerPosition: 'middle',
|
|
462
|
-
dividerWidth: '1px',
|
|
463
|
-
dividerColor: 'rgba(0,0,0,0.08)',
|
|
464
|
-
fontFamily: 'Gordita, sans-serif',
|
|
465
|
-
fontStyle: 'normal',
|
|
466
|
-
fontWeight: 400,
|
|
467
|
-
headerBackgroundColor: 'white',
|
|
468
|
-
inputActiveBorderColor: '#376EFF',
|
|
469
|
-
inputBorderColor: 'silver',
|
|
470
|
-
inputBorderWidth: 1,
|
|
471
|
-
inputBorderRadius: 6,
|
|
472
|
-
inputPadding: '12px 14px',
|
|
473
|
-
currentMonthPadding: 10,
|
|
474
|
-
currentMonthFontFamily: 'Gordita, sans-serif',
|
|
475
|
-
currentMonthFontStyle: 'normal',
|
|
476
|
-
currentMonthFontWeight: 400,
|
|
477
|
-
currentMonthFontSize: 20,
|
|
478
|
-
currentMonthFontColor: '#000000',
|
|
479
|
-
dayNameFontFamily: 'Gordita, sans-serif',
|
|
480
|
-
dayNameFontStyle: 'normal',
|
|
481
|
-
dayNameFontWeight: 400,
|
|
482
|
-
dayNameFontColor: '#000000',
|
|
483
|
-
},
|
|
484
|
-
};
|