@atls-ui-parts/datepicker 0.0.9 → 0.0.12
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/dist/datepicker.component.d.ts +4 -0
- package/dist/datepicker.interface.d.ts +4 -0
- package/dist/datepicker.stories.d.ts +462 -0
- package/dist/datepicker.stories.js +123 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +19 -0
- package/dist/locales/index.d.ts +2 -0
- package/dist/locales/locales.d.ts +3 -0
- package/dist/locales/register-locales.d.ts +2 -0
- package/dist/styles/appearance/appearance.interfaces.d.ts +21 -0
- package/dist/styles/appearance/appearance.styles.d.ts +113 -0
- package/dist/styles/appearance/appearance.styles.js +11 -5
- package/dist/styles/appearance/index.d.ts +2 -0
- package/dist/styles/base/base.styles.d.ts +1 -0
- package/dist/styles/base/index.d.ts +1 -0
- package/dist/styles/datepicker-styles.interfaces.d.ts +4 -0
- package/dist/styles/datepicker.styles.d.ts +3 -0
- package/dist/styles/datepicker.styles.js +11 -1
- package/dist/styles/index.d.ts +5 -0
- package/dist/styles/shape/index.d.ts +2 -0
- package/dist/styles/shape/shape.interfaces.d.ts +25 -0
- package/dist/styles/shape/shape.styles.d.ts +121 -0
- package/dist/styles/shape/shape.styles.js +25 -5
- package/package.json +15 -12
|
@@ -0,0 +1,462 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Datepicker: {
|
|
7
|
+
(props: any): JSX.Element;
|
|
8
|
+
args: {
|
|
9
|
+
arrowColor: string;
|
|
10
|
+
arrowHoverColor: string;
|
|
11
|
+
showPopperArrow: boolean;
|
|
12
|
+
cellColor: null;
|
|
13
|
+
cellFontColor: string;
|
|
14
|
+
cellActiveColor: string;
|
|
15
|
+
cellActiveFontColor: string;
|
|
16
|
+
cellHoverColor: null;
|
|
17
|
+
cellHoverFontColor: null;
|
|
18
|
+
cellInRangeBorderRadius: number;
|
|
19
|
+
cellInRangeColor: string;
|
|
20
|
+
cellInRangeFontColor: string;
|
|
21
|
+
cellInRangeHoverColor: string;
|
|
22
|
+
cellInRangeHoverFontColor: string;
|
|
23
|
+
cellMargin: number;
|
|
24
|
+
cellPadding: number;
|
|
25
|
+
cellBorderRadius: number;
|
|
26
|
+
dividerPosition: string;
|
|
27
|
+
dividerWidth: string;
|
|
28
|
+
dividerColor: string;
|
|
29
|
+
fontFamily: string;
|
|
30
|
+
fontStyle: string;
|
|
31
|
+
fontWeight: number;
|
|
32
|
+
headerBackgroundColor: string;
|
|
33
|
+
inputActiveBorderColor: string;
|
|
34
|
+
inputBorderColor: string;
|
|
35
|
+
inputBorderWidth: number;
|
|
36
|
+
inputBorderRadius: number;
|
|
37
|
+
inputPadding: string;
|
|
38
|
+
currentMonthPadding: number;
|
|
39
|
+
currentMonthFontFamily: string;
|
|
40
|
+
currentMonthFontStyle: string;
|
|
41
|
+
currentMonthFontWeight: number;
|
|
42
|
+
currentMonthFontSize: number;
|
|
43
|
+
currentMonthFontColor: string;
|
|
44
|
+
dayNameFontFamily: string;
|
|
45
|
+
dayNameFontStyle: string;
|
|
46
|
+
dayNameFontWeight: number;
|
|
47
|
+
dayNameFontColor: string;
|
|
48
|
+
};
|
|
49
|
+
argTypes: {
|
|
50
|
+
arrowColor: {
|
|
51
|
+
name: string;
|
|
52
|
+
description: string;
|
|
53
|
+
table: {
|
|
54
|
+
category: string;
|
|
55
|
+
subcategory: string;
|
|
56
|
+
};
|
|
57
|
+
control: {
|
|
58
|
+
type: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
arrowHoverColor: {
|
|
62
|
+
name: string;
|
|
63
|
+
description: string;
|
|
64
|
+
table: {
|
|
65
|
+
category: string;
|
|
66
|
+
subcategory: string;
|
|
67
|
+
};
|
|
68
|
+
control: {
|
|
69
|
+
type: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
showPopperArrow: {
|
|
73
|
+
name: string;
|
|
74
|
+
description: string;
|
|
75
|
+
table: {
|
|
76
|
+
category: string;
|
|
77
|
+
};
|
|
78
|
+
control: {
|
|
79
|
+
type: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
cellColor: {
|
|
83
|
+
name: string;
|
|
84
|
+
description: string;
|
|
85
|
+
table: {
|
|
86
|
+
category: string;
|
|
87
|
+
subcategory: string;
|
|
88
|
+
};
|
|
89
|
+
control: {
|
|
90
|
+
type: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
cellFontColor: {
|
|
94
|
+
name: string;
|
|
95
|
+
description: string;
|
|
96
|
+
table: {
|
|
97
|
+
category: string;
|
|
98
|
+
subcategory: string;
|
|
99
|
+
};
|
|
100
|
+
control: {
|
|
101
|
+
type: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
cellActiveColor: {
|
|
105
|
+
name: string;
|
|
106
|
+
description: string;
|
|
107
|
+
table: {
|
|
108
|
+
category: string;
|
|
109
|
+
subcategory: string;
|
|
110
|
+
};
|
|
111
|
+
control: {
|
|
112
|
+
type: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
cellActiveFontColor: {
|
|
116
|
+
name: string;
|
|
117
|
+
description: string;
|
|
118
|
+
table: {
|
|
119
|
+
category: string;
|
|
120
|
+
subcategory: string;
|
|
121
|
+
};
|
|
122
|
+
control: {
|
|
123
|
+
type: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
cellHoverColor: {
|
|
127
|
+
name: string;
|
|
128
|
+
description: string;
|
|
129
|
+
table: {
|
|
130
|
+
category: string;
|
|
131
|
+
subcategory: string;
|
|
132
|
+
};
|
|
133
|
+
control: {
|
|
134
|
+
type: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
cellHoverFontColor: {
|
|
138
|
+
name: string;
|
|
139
|
+
description: string;
|
|
140
|
+
table: {
|
|
141
|
+
category: string;
|
|
142
|
+
subcategory: string;
|
|
143
|
+
};
|
|
144
|
+
control: {
|
|
145
|
+
type: string;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
currentMonthPadding: {
|
|
149
|
+
name: string;
|
|
150
|
+
description: string;
|
|
151
|
+
table: {
|
|
152
|
+
category: string;
|
|
153
|
+
};
|
|
154
|
+
control: {
|
|
155
|
+
type: string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
currentMonthFontFamily: {
|
|
159
|
+
name: string;
|
|
160
|
+
description: string;
|
|
161
|
+
table: {
|
|
162
|
+
category: string;
|
|
163
|
+
};
|
|
164
|
+
control: {
|
|
165
|
+
type: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
currentMonthFontStyle: {
|
|
169
|
+
name: string;
|
|
170
|
+
description: string;
|
|
171
|
+
table: {
|
|
172
|
+
category: string;
|
|
173
|
+
};
|
|
174
|
+
control: {
|
|
175
|
+
type: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
currentMonthFontWeight: {
|
|
179
|
+
name: string;
|
|
180
|
+
description: string;
|
|
181
|
+
table: {
|
|
182
|
+
category: string;
|
|
183
|
+
};
|
|
184
|
+
control: {
|
|
185
|
+
type: string;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
currentMonthFontSize: {
|
|
189
|
+
name: string;
|
|
190
|
+
description: string;
|
|
191
|
+
table: {
|
|
192
|
+
category: string;
|
|
193
|
+
};
|
|
194
|
+
control: {
|
|
195
|
+
type: string;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
currentMonthFontColor: {
|
|
199
|
+
name: string;
|
|
200
|
+
description: string;
|
|
201
|
+
table: {
|
|
202
|
+
category: string;
|
|
203
|
+
subcategory: string;
|
|
204
|
+
};
|
|
205
|
+
control: {
|
|
206
|
+
type: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
dayNameFontFamily: {
|
|
210
|
+
name: string;
|
|
211
|
+
description: string;
|
|
212
|
+
table: {
|
|
213
|
+
category: string;
|
|
214
|
+
};
|
|
215
|
+
control: {
|
|
216
|
+
type: string;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
dayNameFontStyle: {
|
|
220
|
+
name: string;
|
|
221
|
+
description: string;
|
|
222
|
+
table: {
|
|
223
|
+
category: string;
|
|
224
|
+
};
|
|
225
|
+
control: {
|
|
226
|
+
type: string;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
dayNameFontColor: {
|
|
230
|
+
name: string;
|
|
231
|
+
description: string;
|
|
232
|
+
table: {
|
|
233
|
+
category: string;
|
|
234
|
+
subcategory: string;
|
|
235
|
+
};
|
|
236
|
+
control: {
|
|
237
|
+
type: string;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
dayNameFontWeight: {
|
|
241
|
+
name: string;
|
|
242
|
+
description: string;
|
|
243
|
+
table: {
|
|
244
|
+
category: string;
|
|
245
|
+
};
|
|
246
|
+
control: {
|
|
247
|
+
type: string;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
cellMargin: {
|
|
251
|
+
name: string;
|
|
252
|
+
description: string;
|
|
253
|
+
table: {
|
|
254
|
+
category: string;
|
|
255
|
+
};
|
|
256
|
+
control: {
|
|
257
|
+
type: string;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
cellPadding: {
|
|
261
|
+
name: string;
|
|
262
|
+
description: string;
|
|
263
|
+
table: {
|
|
264
|
+
category: string;
|
|
265
|
+
};
|
|
266
|
+
control: {
|
|
267
|
+
type: string;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
cellBorderRadius: {
|
|
271
|
+
name: string;
|
|
272
|
+
description: string;
|
|
273
|
+
table: {
|
|
274
|
+
category: string;
|
|
275
|
+
};
|
|
276
|
+
control: {
|
|
277
|
+
type: string;
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
cellInRangeBorderRadius: {
|
|
281
|
+
name: string;
|
|
282
|
+
description: string;
|
|
283
|
+
table: {
|
|
284
|
+
category: string;
|
|
285
|
+
};
|
|
286
|
+
control: {
|
|
287
|
+
type: string;
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
cellInRangeColor: {
|
|
291
|
+
name: string;
|
|
292
|
+
description: string;
|
|
293
|
+
table: {
|
|
294
|
+
category: string;
|
|
295
|
+
subcategory: string;
|
|
296
|
+
};
|
|
297
|
+
control: {
|
|
298
|
+
type: string;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
cellInRangeFontColor: {
|
|
302
|
+
name: string;
|
|
303
|
+
description: string;
|
|
304
|
+
table: {
|
|
305
|
+
category: string;
|
|
306
|
+
subcategory: string;
|
|
307
|
+
};
|
|
308
|
+
control: {
|
|
309
|
+
type: string;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
cellInRangeHoverColor: {
|
|
313
|
+
name: string;
|
|
314
|
+
description: string;
|
|
315
|
+
table: {
|
|
316
|
+
category: string;
|
|
317
|
+
subcategory: string;
|
|
318
|
+
};
|
|
319
|
+
control: {
|
|
320
|
+
type: string;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
cellInRangeHoverFontColor: {
|
|
324
|
+
name: string;
|
|
325
|
+
description: string;
|
|
326
|
+
table: {
|
|
327
|
+
category: string;
|
|
328
|
+
subcategory: string;
|
|
329
|
+
};
|
|
330
|
+
control: {
|
|
331
|
+
type: string;
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
headerBackgroundColor: {
|
|
335
|
+
name: string;
|
|
336
|
+
description: string;
|
|
337
|
+
table: {
|
|
338
|
+
category: string;
|
|
339
|
+
subcategory: string;
|
|
340
|
+
};
|
|
341
|
+
control: {
|
|
342
|
+
type: string;
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
inputBorderColor: {
|
|
346
|
+
name: string;
|
|
347
|
+
description: string;
|
|
348
|
+
table: {
|
|
349
|
+
category: string;
|
|
350
|
+
subcategory: string;
|
|
351
|
+
};
|
|
352
|
+
control: {
|
|
353
|
+
type: string;
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
inputActiveBorderColor: {
|
|
357
|
+
name: string;
|
|
358
|
+
description: string;
|
|
359
|
+
table: {
|
|
360
|
+
category: string;
|
|
361
|
+
subcategory: string;
|
|
362
|
+
};
|
|
363
|
+
control: {
|
|
364
|
+
type: string;
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
inputBorderWidth: {
|
|
368
|
+
name: string;
|
|
369
|
+
description: string;
|
|
370
|
+
table: {
|
|
371
|
+
category: string;
|
|
372
|
+
};
|
|
373
|
+
control: {
|
|
374
|
+
type: string;
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
inputBorderRadius: {
|
|
378
|
+
name: string;
|
|
379
|
+
description: string;
|
|
380
|
+
table: {
|
|
381
|
+
category: string;
|
|
382
|
+
};
|
|
383
|
+
control: {
|
|
384
|
+
type: string;
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
inputPadding: {
|
|
388
|
+
name: string;
|
|
389
|
+
description: string;
|
|
390
|
+
table: {
|
|
391
|
+
category: string;
|
|
392
|
+
};
|
|
393
|
+
control: {
|
|
394
|
+
type: string;
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
dividerPosition: {
|
|
398
|
+
name: string;
|
|
399
|
+
description: string;
|
|
400
|
+
table: {
|
|
401
|
+
category: string;
|
|
402
|
+
};
|
|
403
|
+
control: {
|
|
404
|
+
type: string;
|
|
405
|
+
options: string[];
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
dividerWidth: {
|
|
409
|
+
name: string;
|
|
410
|
+
description: string;
|
|
411
|
+
table: {
|
|
412
|
+
category: string;
|
|
413
|
+
};
|
|
414
|
+
control: {
|
|
415
|
+
type: string;
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
dividerColor: {
|
|
419
|
+
name: string;
|
|
420
|
+
description: string;
|
|
421
|
+
table: {
|
|
422
|
+
category: string;
|
|
423
|
+
subcategory: string;
|
|
424
|
+
};
|
|
425
|
+
control: {
|
|
426
|
+
type: string;
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
fontFamily: {
|
|
430
|
+
name: string;
|
|
431
|
+
description: string;
|
|
432
|
+
table: {
|
|
433
|
+
category: string;
|
|
434
|
+
};
|
|
435
|
+
control: {
|
|
436
|
+
type: string;
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
fontWeight: {
|
|
440
|
+
name: string;
|
|
441
|
+
description: string;
|
|
442
|
+
table: {
|
|
443
|
+
category: string;
|
|
444
|
+
};
|
|
445
|
+
control: {
|
|
446
|
+
type: string;
|
|
447
|
+
options: string[];
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
fontStyle: {
|
|
451
|
+
name: string;
|
|
452
|
+
description: string;
|
|
453
|
+
table: {
|
|
454
|
+
category: string;
|
|
455
|
+
};
|
|
456
|
+
control: {
|
|
457
|
+
type: string;
|
|
458
|
+
options: string[];
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
};
|
|
@@ -31,6 +31,7 @@ exports.Datepicker = Datepicker;
|
|
|
31
31
|
exports.Datepicker.args = {
|
|
32
32
|
arrowColor: '#376EFF',
|
|
33
33
|
arrowHoverColor: '#376EFF',
|
|
34
|
+
showPopperArrow: true,
|
|
34
35
|
cellColor: null,
|
|
35
36
|
cellFontColor: '#262C34',
|
|
36
37
|
cellActiveColor: '#376EFF',
|
|
@@ -57,6 +58,16 @@ exports.Datepicker.args = {
|
|
|
57
58
|
inputBorderWidth: 1,
|
|
58
59
|
inputBorderRadius: 6,
|
|
59
60
|
inputPadding: '12px 14px',
|
|
61
|
+
currentMonthPadding: 10,
|
|
62
|
+
currentMonthFontFamily: 'Gordita, sans-serif',
|
|
63
|
+
currentMonthFontStyle: 'normal',
|
|
64
|
+
currentMonthFontWeight: 400,
|
|
65
|
+
currentMonthFontSize: 20,
|
|
66
|
+
currentMonthFontColor: '#000000',
|
|
67
|
+
dayNameFontFamily: 'Gordita, sans-serif',
|
|
68
|
+
dayNameFontStyle: 'normal',
|
|
69
|
+
dayNameFontWeight: 400,
|
|
70
|
+
dayNameFontColor: '#000000',
|
|
60
71
|
};
|
|
61
72
|
exports.Datepicker.argTypes = {
|
|
62
73
|
arrowColor: {
|
|
@@ -81,6 +92,16 @@ exports.Datepicker.argTypes = {
|
|
|
81
92
|
type: 'color',
|
|
82
93
|
},
|
|
83
94
|
},
|
|
95
|
+
showPopperArrow: {
|
|
96
|
+
name: 'Показывать стрелку',
|
|
97
|
+
description: 'Показывать стрелку',
|
|
98
|
+
table: {
|
|
99
|
+
category: 'Форма',
|
|
100
|
+
},
|
|
101
|
+
control: {
|
|
102
|
+
type: 'boolean',
|
|
103
|
+
},
|
|
104
|
+
},
|
|
84
105
|
cellColor: {
|
|
85
106
|
name: 'Цвет ячейки',
|
|
86
107
|
description: 'Цвет ячейки',
|
|
@@ -147,6 +168,108 @@ exports.Datepicker.argTypes = {
|
|
|
147
168
|
type: 'color',
|
|
148
169
|
},
|
|
149
170
|
},
|
|
171
|
+
currentMonthPadding: {
|
|
172
|
+
name: 'Внешний отступ текущего месяца',
|
|
173
|
+
description: 'Внешний отступ текущего месяца',
|
|
174
|
+
table: {
|
|
175
|
+
category: 'Форма',
|
|
176
|
+
},
|
|
177
|
+
control: {
|
|
178
|
+
type: 'number',
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
currentMonthFontFamily: {
|
|
182
|
+
name: 'Форма шрифта текущего месяца',
|
|
183
|
+
description: 'Форма шрифта текущего месяца',
|
|
184
|
+
table: {
|
|
185
|
+
category: 'Форма',
|
|
186
|
+
},
|
|
187
|
+
control: {
|
|
188
|
+
type: 'text',
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
currentMonthFontStyle: {
|
|
192
|
+
name: 'Стиль шрифта текущего месяца',
|
|
193
|
+
description: 'Стиль шрифта текущего месяца',
|
|
194
|
+
table: {
|
|
195
|
+
category: 'Форма',
|
|
196
|
+
},
|
|
197
|
+
control: {
|
|
198
|
+
type: 'text',
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
currentMonthFontWeight: {
|
|
202
|
+
name: 'Толщина шрифта текущего месяца',
|
|
203
|
+
description: 'Толщина шрифта текущего месяца',
|
|
204
|
+
table: {
|
|
205
|
+
category: 'Форма',
|
|
206
|
+
},
|
|
207
|
+
control: {
|
|
208
|
+
type: 'number',
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
currentMonthFontSize: {
|
|
212
|
+
name: 'Размер шрифта текущего месяца',
|
|
213
|
+
description: 'Размер шрифта текущего месяца',
|
|
214
|
+
table: {
|
|
215
|
+
category: 'Форма',
|
|
216
|
+
},
|
|
217
|
+
control: {
|
|
218
|
+
type: 'text',
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
currentMonthFontColor: {
|
|
222
|
+
name: 'Цвет шрифта текущего месяца',
|
|
223
|
+
description: 'Цвет шрифта текущего месяца',
|
|
224
|
+
table: {
|
|
225
|
+
category: 'Представление',
|
|
226
|
+
subcategory: 'Цвет',
|
|
227
|
+
},
|
|
228
|
+
control: {
|
|
229
|
+
type: 'color',
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
dayNameFontFamily: {
|
|
233
|
+
name: 'Форма шрифта дня недели',
|
|
234
|
+
description: 'Форма шрифта дня недели',
|
|
235
|
+
table: {
|
|
236
|
+
category: 'Форма',
|
|
237
|
+
},
|
|
238
|
+
control: {
|
|
239
|
+
type: 'text',
|
|
240
|
+
},
|
|
241
|
+
},
|
|
242
|
+
dayNameFontStyle: {
|
|
243
|
+
name: 'Стиль шрифта дня недели',
|
|
244
|
+
description: 'Стиль шрифта дня недели',
|
|
245
|
+
table: {
|
|
246
|
+
category: 'Форма',
|
|
247
|
+
},
|
|
248
|
+
control: {
|
|
249
|
+
type: 'text',
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
dayNameFontColor: {
|
|
253
|
+
name: 'Цвет шрифта дня недели',
|
|
254
|
+
description: 'Цвет шрифта дня недели',
|
|
255
|
+
table: {
|
|
256
|
+
category: 'Представление',
|
|
257
|
+
subcategory: 'Цвет',
|
|
258
|
+
},
|
|
259
|
+
control: {
|
|
260
|
+
type: 'color',
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
dayNameFontWeight: {
|
|
264
|
+
name: 'Толщина шрифта дня недели',
|
|
265
|
+
description: 'Толщина шрифта дня недели',
|
|
266
|
+
table: {
|
|
267
|
+
category: 'Форма',
|
|
268
|
+
},
|
|
269
|
+
control: {
|
|
270
|
+
type: 'number',
|
|
271
|
+
},
|
|
272
|
+
},
|
|
150
273
|
cellMargin: {
|
|
151
274
|
name: 'Внешний отступ ячейки',
|
|
152
275
|
description: 'Внешний отступ ячейки',
|
package/dist/index.d.ts
ADDED
package/dist/index.js
CHANGED
|
@@ -1 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./datepicker.component"), exports);
|
|
18
|
+
__exportStar(require("./datepicker.interface"), exports);
|
|
19
|
+
__exportStar(require("./styles"), exports);
|
|
20
|
+
__exportStar(require("./locales"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface AppearanceStyles {
|
|
2
|
+
arrowColor?: string;
|
|
3
|
+
arrowHoverColor?: string;
|
|
4
|
+
cellColor?: string;
|
|
5
|
+
cellFontColor?: string;
|
|
6
|
+
cellActiveColor?: string;
|
|
7
|
+
cellActiveFontColor?: string;
|
|
8
|
+
cellHoverColor?: string;
|
|
9
|
+
cellHoverFontColor?: string;
|
|
10
|
+
cellInRangeColor?: string;
|
|
11
|
+
cellInRangeFontColor?: string;
|
|
12
|
+
cellInRangeHoverColor?: string;
|
|
13
|
+
cellInRangeHoverFontColor?: string;
|
|
14
|
+
dividerColor?: string;
|
|
15
|
+
headerBackgroundColor?: string;
|
|
16
|
+
inputBackgroundColor?: string;
|
|
17
|
+
inputBorderColor?: string;
|
|
18
|
+
inputActiveBorderColor?: string;
|
|
19
|
+
dayNameFontColor?: string;
|
|
20
|
+
currentMonthFontColor?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { AppearanceStyles } from './appearance.interfaces';
|
|
2
|
+
export declare const createCellColorStyles: (backgroundColor?: string | undefined, color?: string | undefined, activeColor?: string | undefined, activeFontColor?: string | undefined, hoverColor?: string | undefined, hoverFontColor?: string | undefined, inRangeColor?: string | undefined, inRangeFontColor?: string | undefined, inRangeHoverColor?: string | undefined, inRangeHoverFontColor?: string | undefined, dayNameFontColor?: string | undefined) => {
|
|
3
|
+
'.react-datepicker__day-name': {
|
|
4
|
+
color: string | undefined;
|
|
5
|
+
};
|
|
6
|
+
'.react-datepicker__day': {
|
|
7
|
+
backgroundColor: string | undefined;
|
|
8
|
+
color: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
'.react-datepicker__day--selected': {
|
|
11
|
+
backgroundColor: string | undefined;
|
|
12
|
+
color: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
'.react-datepicker__day:hover': {
|
|
15
|
+
backgroundColor: string | undefined;
|
|
16
|
+
color: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
'.react-datepicker__day--in-range, .react-datepicker__day--in-selecting-range': {
|
|
19
|
+
backgroundColor: string | undefined;
|
|
20
|
+
color: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
'.react-datepicker__day--selected:hover, .react-datepicker__day--keyboard-selected, .react-datepicker__day--range-start, .react-datepicker__day--range-end': {
|
|
23
|
+
backgroundColor: string | undefined;
|
|
24
|
+
color: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
'.react-datepicker__day--in-range:hover, .react-datepicker__day--in-selecting-range:hover': {
|
|
27
|
+
backgroundColor: string | undefined;
|
|
28
|
+
color: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const createArrowColorStyles: (borderColor?: string | undefined, borderHoverColor?: string | undefined) => {
|
|
32
|
+
'.react-datepicker__navigation-icon::before': {
|
|
33
|
+
borderColor: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
'.react-datepicker__navigation:hover *::before': {
|
|
36
|
+
borderColor: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare const createHeaderColorStyles: (backgroundColor?: string | undefined, borderColor?: string | undefined, fontColor?: string | undefined) => {
|
|
40
|
+
'.react-datepicker__header ': {
|
|
41
|
+
backgroundColor: string | undefined;
|
|
42
|
+
borderColor: string | undefined;
|
|
43
|
+
};
|
|
44
|
+
'.react-datepicker__current-month': {
|
|
45
|
+
color: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export declare const createDividerColorStyles: (borderColor?: string | undefined) => {
|
|
49
|
+
'.react-datepicker__day-names': {
|
|
50
|
+
borderTopColor: string | undefined;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export declare const createInputColorStyles: (backgroundColor?: string | undefined, borderColor?: string | undefined, activeBorderColor?: string | undefined) => {
|
|
54
|
+
'.react-datepicker__input-container>input': {
|
|
55
|
+
backgroundColor: string | undefined;
|
|
56
|
+
borderColor: string | undefined;
|
|
57
|
+
};
|
|
58
|
+
'.react-datepicker__input-container>input:focus': {
|
|
59
|
+
borderColor: string | undefined;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export declare const createAppearanceStyles: ({ arrowColor, arrowHoverColor, cellColor, cellFontColor, cellActiveColor, cellActiveFontColor, cellHoverColor, cellHoverFontColor, cellInRangeColor, cellInRangeFontColor, cellInRangeHoverColor, cellInRangeHoverFontColor, dividerColor, headerBackgroundColor, inputBackgroundColor, inputBorderColor, inputActiveBorderColor, dayNameFontColor, currentMonthFontColor, }: AppearanceStyles) => {
|
|
63
|
+
'.react-datepicker__input-container>input': {
|
|
64
|
+
backgroundColor: string | undefined;
|
|
65
|
+
borderColor: string | undefined;
|
|
66
|
+
};
|
|
67
|
+
'.react-datepicker__input-container>input:focus': {
|
|
68
|
+
borderColor: string | undefined;
|
|
69
|
+
};
|
|
70
|
+
'.react-datepicker__day-names': {
|
|
71
|
+
borderTopColor: string | undefined;
|
|
72
|
+
};
|
|
73
|
+
'.react-datepicker__header ': {
|
|
74
|
+
backgroundColor: string | undefined;
|
|
75
|
+
borderColor: string | undefined;
|
|
76
|
+
};
|
|
77
|
+
'.react-datepicker__current-month': {
|
|
78
|
+
color: string | undefined;
|
|
79
|
+
};
|
|
80
|
+
'.react-datepicker__navigation-icon::before': {
|
|
81
|
+
borderColor: string | undefined;
|
|
82
|
+
};
|
|
83
|
+
'.react-datepicker__navigation:hover *::before': {
|
|
84
|
+
borderColor: string | undefined;
|
|
85
|
+
};
|
|
86
|
+
'.react-datepicker__day-name': {
|
|
87
|
+
color: string | undefined;
|
|
88
|
+
};
|
|
89
|
+
'.react-datepicker__day': {
|
|
90
|
+
backgroundColor: string | undefined;
|
|
91
|
+
color: string | undefined;
|
|
92
|
+
};
|
|
93
|
+
'.react-datepicker__day--selected': {
|
|
94
|
+
backgroundColor: string | undefined;
|
|
95
|
+
color: string | undefined;
|
|
96
|
+
};
|
|
97
|
+
'.react-datepicker__day:hover': {
|
|
98
|
+
backgroundColor: string | undefined;
|
|
99
|
+
color: string | undefined;
|
|
100
|
+
};
|
|
101
|
+
'.react-datepicker__day--in-range, .react-datepicker__day--in-selecting-range': {
|
|
102
|
+
backgroundColor: string | undefined;
|
|
103
|
+
color: string | undefined;
|
|
104
|
+
};
|
|
105
|
+
'.react-datepicker__day--selected:hover, .react-datepicker__day--keyboard-selected, .react-datepicker__day--range-start, .react-datepicker__day--range-end': {
|
|
106
|
+
backgroundColor: string | undefined;
|
|
107
|
+
color: string | undefined;
|
|
108
|
+
};
|
|
109
|
+
'.react-datepicker__day--in-range:hover, .react-datepicker__day--in-selecting-range:hover': {
|
|
110
|
+
backgroundColor: string | undefined;
|
|
111
|
+
color: string | undefined;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createAppearanceStyles = exports.createInputColorStyles = exports.createDividerColorStyles = exports.createHeaderColorStyles = exports.createArrowColorStyles = exports.createCellColorStyles = void 0;
|
|
4
|
-
const createCellColorStyles = (backgroundColor, color, activeColor, activeFontColor, hoverColor, hoverFontColor, inRangeColor, inRangeFontColor, inRangeHoverColor, inRangeHoverFontColor) => ({
|
|
4
|
+
const createCellColorStyles = (backgroundColor, color, activeColor, activeFontColor, hoverColor, hoverFontColor, inRangeColor, inRangeFontColor, inRangeHoverColor, inRangeHoverFontColor, dayNameFontColor) => ({
|
|
5
|
+
'.react-datepicker__day-name': {
|
|
6
|
+
color: dayNameFontColor,
|
|
7
|
+
},
|
|
5
8
|
'.react-datepicker__day': {
|
|
6
9
|
backgroundColor,
|
|
7
10
|
color,
|
|
@@ -37,11 +40,14 @@ const createArrowColorStyles = (borderColor, borderHoverColor) => ({
|
|
|
37
40
|
},
|
|
38
41
|
});
|
|
39
42
|
exports.createArrowColorStyles = createArrowColorStyles;
|
|
40
|
-
const createHeaderColorStyles = (backgroundColor, borderColor) => ({
|
|
43
|
+
const createHeaderColorStyles = (backgroundColor, borderColor, fontColor) => ({
|
|
41
44
|
'.react-datepicker__header ': {
|
|
42
45
|
backgroundColor,
|
|
43
46
|
borderColor,
|
|
44
47
|
},
|
|
48
|
+
'.react-datepicker__current-month': {
|
|
49
|
+
color: fontColor,
|
|
50
|
+
},
|
|
45
51
|
});
|
|
46
52
|
exports.createHeaderColorStyles = createHeaderColorStyles;
|
|
47
53
|
const createDividerColorStyles = (borderColor) => ({
|
|
@@ -60,10 +66,10 @@ const createInputColorStyles = (backgroundColor, borderColor, activeBorderColor)
|
|
|
60
66
|
},
|
|
61
67
|
});
|
|
62
68
|
exports.createInputColorStyles = createInputColorStyles;
|
|
63
|
-
const createAppearanceStyles = ({ arrowColor, arrowHoverColor, cellColor, cellFontColor, cellActiveColor, cellActiveFontColor, cellHoverColor, cellHoverFontColor, cellInRangeColor, cellInRangeFontColor, cellInRangeHoverColor, cellInRangeHoverFontColor, dividerColor, headerBackgroundColor, inputBackgroundColor, inputBorderColor, inputActiveBorderColor, }) => ({
|
|
64
|
-
...(0, exports.createCellColorStyles)(cellColor, cellFontColor, cellActiveColor, cellActiveFontColor, cellHoverColor, cellHoverFontColor, cellInRangeColor, cellInRangeFontColor, cellInRangeHoverColor, cellInRangeHoverFontColor),
|
|
69
|
+
const createAppearanceStyles = ({ arrowColor, arrowHoverColor, cellColor, cellFontColor, cellActiveColor, cellActiveFontColor, cellHoverColor, cellHoverFontColor, cellInRangeColor, cellInRangeFontColor, cellInRangeHoverColor, cellInRangeHoverFontColor, dividerColor, headerBackgroundColor, inputBackgroundColor, inputBorderColor, inputActiveBorderColor, dayNameFontColor, currentMonthFontColor, }) => ({
|
|
70
|
+
...(0, exports.createCellColorStyles)(cellColor, cellFontColor, cellActiveColor, cellActiveFontColor, cellHoverColor, cellHoverFontColor, cellInRangeColor, cellInRangeFontColor, cellInRangeHoverColor, cellInRangeHoverFontColor, dayNameFontColor),
|
|
65
71
|
...(0, exports.createArrowColorStyles)(arrowColor, arrowHoverColor),
|
|
66
|
-
...(0, exports.createHeaderColorStyles)(headerBackgroundColor, dividerColor),
|
|
72
|
+
...(0, exports.createHeaderColorStyles)(headerBackgroundColor, dividerColor, currentMonthFontColor),
|
|
67
73
|
...(0, exports.createDividerColorStyles)(dividerColor),
|
|
68
74
|
...(0, exports.createInputColorStyles)(inputBackgroundColor, inputBorderColor, inputActiveBorderColor),
|
|
69
75
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createInjectableBaseStyles: () => () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './base.styles';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DatepickerStyles } from './datepicker-styles.interfaces';
|
|
2
|
+
export declare const injectBaseStyles: () => void;
|
|
3
|
+
export declare const createAndInjectDatepickerStyles: ({ arrowColor, arrowHoverColor, cellColor, cellFontColor, cellActiveColor, cellActiveFontColor, cellHoverColor, cellHoverFontColor, cellInRangeColor, cellInRangeFontColor, cellInRangeHoverColor, cellInRangeHoverFontColor, cellInRangeBorderRadius, cellMargin, cellPadding, cellBorderRadius, dividerPosition, dividerWidth, dividerColor, fontSize, fontFamily, fontStyle, fontWeight, headerBackgroundColor, inputBackgroundColor, inputBorderColor, inputBorderRadius, inputActiveBorderColor, inputSize, inputBorderWidth, inputPadding, currentMonthPadding, currentMonthFontFamily, currentMonthFontSize, currentMonthFontStyle, currentMonthFontWeight, currentMonthFontColor, dayNameFontFamily, dayNameFontWeight, dayNameFontStyle, dayNameFontColor, }: DatepickerStyles) => void;
|
|
@@ -6,7 +6,7 @@ const appearance_1 = require("./appearance");
|
|
|
6
6
|
const base_1 = require("./base");
|
|
7
7
|
const shape_1 = require("./shape");
|
|
8
8
|
exports.injectBaseStyles = (0, base_1.createInjectableBaseStyles)();
|
|
9
|
-
const createAndInjectDatepickerStyles = ({ arrowColor, arrowHoverColor, cellColor, cellFontColor, cellActiveColor, cellActiveFontColor, cellHoverColor, cellHoverFontColor, cellInRangeColor, cellInRangeFontColor, cellInRangeHoverColor, cellInRangeHoverFontColor, cellInRangeBorderRadius, cellMargin, cellPadding, cellBorderRadius, dividerPosition, dividerWidth, dividerColor, fontSize, fontFamily, fontStyle, fontWeight, headerBackgroundColor, inputBackgroundColor, inputBorderColor, inputBorderRadius, inputActiveBorderColor, inputSize, inputBorderWidth, inputPadding, }) => {
|
|
9
|
+
const createAndInjectDatepickerStyles = ({ arrowColor, arrowHoverColor, cellColor, cellFontColor, cellActiveColor, cellActiveFontColor, cellHoverColor, cellHoverFontColor, cellInRangeColor, cellInRangeFontColor, cellInRangeHoverColor, cellInRangeHoverFontColor, cellInRangeBorderRadius, cellMargin, cellPadding, cellBorderRadius, dividerPosition, dividerWidth, dividerColor, fontSize, fontFamily, fontStyle, fontWeight, headerBackgroundColor, inputBackgroundColor, inputBorderColor, inputBorderRadius, inputActiveBorderColor, inputSize, inputBorderWidth, inputPadding, currentMonthPadding, currentMonthFontFamily, currentMonthFontSize, currentMonthFontStyle, currentMonthFontWeight, currentMonthFontColor, dayNameFontFamily, dayNameFontWeight, dayNameFontStyle, dayNameFontColor, }) => {
|
|
10
10
|
(0, exports.injectBaseStyles)();
|
|
11
11
|
(0, css_1.injectGlobal)((0, appearance_1.createAppearanceStyles)({
|
|
12
12
|
arrowColor,
|
|
@@ -26,6 +26,8 @@ const createAndInjectDatepickerStyles = ({ arrowColor, arrowHoverColor, cellColo
|
|
|
26
26
|
inputBackgroundColor,
|
|
27
27
|
inputBorderColor,
|
|
28
28
|
inputActiveBorderColor,
|
|
29
|
+
dayNameFontColor,
|
|
30
|
+
currentMonthFontColor,
|
|
29
31
|
}));
|
|
30
32
|
(0, css_1.injectGlobal)((0, shape_1.createShapeStyles)({
|
|
31
33
|
cellMargin,
|
|
@@ -42,6 +44,14 @@ const createAndInjectDatepickerStyles = ({ arrowColor, arrowHoverColor, cellColo
|
|
|
42
44
|
inputBorderWidth,
|
|
43
45
|
inputBorderRadius,
|
|
44
46
|
inputPadding,
|
|
47
|
+
currentMonthPadding,
|
|
48
|
+
currentMonthFontFamily,
|
|
49
|
+
currentMonthFontSize,
|
|
50
|
+
currentMonthFontStyle,
|
|
51
|
+
currentMonthFontWeight,
|
|
52
|
+
dayNameFontFamily,
|
|
53
|
+
dayNameFontWeight,
|
|
54
|
+
dayNameFontStyle,
|
|
45
55
|
}));
|
|
46
56
|
};
|
|
47
57
|
exports.createAndInjectDatepickerStyles = createAndInjectDatepickerStyles;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface ShapeStyles {
|
|
2
|
+
dividerPosition?: 'middle' | 'bottom' | 'none';
|
|
3
|
+
dividerWidth?: number | string;
|
|
4
|
+
cellMargin?: number | string;
|
|
5
|
+
cellPadding?: number | string;
|
|
6
|
+
cellBorderRadius?: number | string;
|
|
7
|
+
cellInRangeBorderRadius?: number | string;
|
|
8
|
+
fontSize?: number | string;
|
|
9
|
+
fontFamily?: string;
|
|
10
|
+
fontStyle?: string;
|
|
11
|
+
fontWeight?: string;
|
|
12
|
+
inputSize?: number;
|
|
13
|
+
inputBorderWidth?: number | string;
|
|
14
|
+
inputBorderRadius?: number | string;
|
|
15
|
+
inputPadding?: number | string;
|
|
16
|
+
dayNameFontFamily?: string;
|
|
17
|
+
dayNameFontStyle?: string;
|
|
18
|
+
dayNameFontWeight?: string;
|
|
19
|
+
dayNameFontSize?: number | string;
|
|
20
|
+
currentMonthPadding?: number | string;
|
|
21
|
+
currentMonthFontFamily?: string;
|
|
22
|
+
currentMonthFontWeight?: string;
|
|
23
|
+
currentMonthFontStyle?: string;
|
|
24
|
+
currentMonthFontSize?: number | string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { ShapeStyles } from './shape.interfaces';
|
|
2
|
+
export declare const createHeaderShapeStyles: (padding?: string | number | undefined, fontFamily?: string | undefined, fontWeight?: string | undefined, fontStyle?: string | undefined, fontSize?: string | number | undefined) => {
|
|
3
|
+
'.react-datepicker__current-month': {
|
|
4
|
+
paddingTop: string | number | undefined;
|
|
5
|
+
paddingBottom: string | number | undefined;
|
|
6
|
+
fontFamily: string | undefined;
|
|
7
|
+
fontWeight: string | undefined;
|
|
8
|
+
fontSize: string | number | undefined;
|
|
9
|
+
fontStyle: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const createCellShapeStyles: (margin?: string | number | undefined, padding?: string | number | undefined, borderRadius?: string | number | undefined, inRangeBorderRadius?: string | number | undefined, fontSize?: string | number | undefined, fontFamily?: string | undefined, fontStyle?: string | undefined, fontWeight?: string | undefined, dayNameFontFamily?: string | undefined, dayNameFontStyle?: string | undefined, dayNameFontWeight?: string | undefined, dayNameFontSize?: string | number | undefined) => {
|
|
13
|
+
'.react-datepicker__day-name': {
|
|
14
|
+
margin: string | number | undefined;
|
|
15
|
+
padding: string | number | undefined;
|
|
16
|
+
fontFamily: string | undefined;
|
|
17
|
+
fontStyle: string | undefined;
|
|
18
|
+
fontWeight: string | undefined;
|
|
19
|
+
fontSize: string | number | undefined;
|
|
20
|
+
};
|
|
21
|
+
'.react-datepicker__day, .react-datepicker__time-name': {
|
|
22
|
+
margin: string | number | undefined;
|
|
23
|
+
padding: string | number | undefined;
|
|
24
|
+
borderRadius: string | number | undefined;
|
|
25
|
+
fontFamily: string | undefined;
|
|
26
|
+
fontStyle: string | undefined;
|
|
27
|
+
fontWeight: string | undefined;
|
|
28
|
+
fontSize: string | number | undefined;
|
|
29
|
+
};
|
|
30
|
+
'.react-datepicker__day--in-range': {
|
|
31
|
+
borderRadius: string | number | undefined;
|
|
32
|
+
};
|
|
33
|
+
'.react-datepicker__day-name:hover, .react-datepicker__day:hover, .react-datepicker__time-name:hover, .react-datepicker__day--range-start, .react-datepicker__day--range-end': {
|
|
34
|
+
borderRadius: string | number | undefined;
|
|
35
|
+
};
|
|
36
|
+
'.react-datepicker__current-month': {
|
|
37
|
+
paddingTop: string | number | undefined;
|
|
38
|
+
paddingBottom: string | number | undefined;
|
|
39
|
+
};
|
|
40
|
+
'.react-datepicker__navigation': {
|
|
41
|
+
marginTop: string | number | undefined;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare const createDividerShapeStyles: (position?: "none" | "bottom" | "middle" | undefined, borderWidth?: string | number | undefined) => {
|
|
45
|
+
'.react-datepicker__header': {
|
|
46
|
+
borderStyle: string;
|
|
47
|
+
borderWidth: number;
|
|
48
|
+
borderBottomWidth: string | number | undefined;
|
|
49
|
+
};
|
|
50
|
+
'.react-datepicker__day-names': {
|
|
51
|
+
borderStyle: string;
|
|
52
|
+
borderWidth: number;
|
|
53
|
+
borderTopWidth: string | number | undefined;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export declare const createInputShapeStyles: (size?: number | undefined, borderWidth?: string | number | undefined, padding?: string | number | undefined, fontSize?: string | number | undefined, fontWeight?: string | undefined, fontFamily?: string | undefined, borderRadius?: string | number | undefined) => {
|
|
57
|
+
'.react-datepicker__input-container>input': {
|
|
58
|
+
height: number | undefined;
|
|
59
|
+
borderWidth: string | number | undefined;
|
|
60
|
+
fontSize: string | number | undefined;
|
|
61
|
+
fontWeight: string | undefined;
|
|
62
|
+
fontFamily: string | undefined;
|
|
63
|
+
padding: string | number | undefined;
|
|
64
|
+
borderRadius: string | number | undefined;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
export declare const createShapeStyles: ({ dividerPosition, dividerWidth, cellMargin, cellPadding, cellBorderRadius, cellInRangeBorderRadius, inputSize, inputBorderWidth, inputBorderRadius, inputPadding, fontSize, fontFamily, fontStyle, fontWeight, dayNameFontFamily, dayNameFontStyle, dayNameFontWeight, dayNameFontSize, currentMonthFontFamily, currentMonthFontStyle, currentMonthFontWeight, currentMonthFontSize, currentMonthPadding, }: ShapeStyles) => {
|
|
68
|
+
'.react-datepicker__current-month': {
|
|
69
|
+
paddingTop: string | number | undefined;
|
|
70
|
+
paddingBottom: string | number | undefined;
|
|
71
|
+
fontFamily: string | undefined;
|
|
72
|
+
fontWeight: string | undefined;
|
|
73
|
+
fontSize: string | number | undefined;
|
|
74
|
+
fontStyle: string | undefined;
|
|
75
|
+
};
|
|
76
|
+
'.react-datepicker__input-container>input': {
|
|
77
|
+
height: number | undefined;
|
|
78
|
+
borderWidth: string | number | undefined;
|
|
79
|
+
fontSize: string | number | undefined;
|
|
80
|
+
fontWeight: string | undefined;
|
|
81
|
+
fontFamily: string | undefined;
|
|
82
|
+
padding: string | number | undefined;
|
|
83
|
+
borderRadius: string | number | undefined;
|
|
84
|
+
};
|
|
85
|
+
'.react-datepicker__header': {
|
|
86
|
+
borderStyle: string;
|
|
87
|
+
borderWidth: number;
|
|
88
|
+
borderBottomWidth: string | number | undefined;
|
|
89
|
+
};
|
|
90
|
+
'.react-datepicker__day-names': {
|
|
91
|
+
borderStyle: string;
|
|
92
|
+
borderWidth: number;
|
|
93
|
+
borderTopWidth: string | number | undefined;
|
|
94
|
+
};
|
|
95
|
+
'.react-datepicker__day-name': {
|
|
96
|
+
margin: string | number | undefined;
|
|
97
|
+
padding: string | number | undefined;
|
|
98
|
+
fontFamily: string | undefined;
|
|
99
|
+
fontStyle: string | undefined;
|
|
100
|
+
fontWeight: string | undefined;
|
|
101
|
+
fontSize: string | number | undefined;
|
|
102
|
+
};
|
|
103
|
+
'.react-datepicker__day, .react-datepicker__time-name': {
|
|
104
|
+
margin: string | number | undefined;
|
|
105
|
+
padding: string | number | undefined;
|
|
106
|
+
borderRadius: string | number | undefined;
|
|
107
|
+
fontFamily: string | undefined;
|
|
108
|
+
fontStyle: string | undefined;
|
|
109
|
+
fontWeight: string | undefined;
|
|
110
|
+
fontSize: string | number | undefined;
|
|
111
|
+
};
|
|
112
|
+
'.react-datepicker__day--in-range': {
|
|
113
|
+
borderRadius: string | number | undefined;
|
|
114
|
+
};
|
|
115
|
+
'.react-datepicker__day-name:hover, .react-datepicker__day:hover, .react-datepicker__time-name:hover, .react-datepicker__day--range-start, .react-datepicker__day--range-end': {
|
|
116
|
+
borderRadius: string | number | undefined;
|
|
117
|
+
};
|
|
118
|
+
'.react-datepicker__navigation': {
|
|
119
|
+
marginTop: string | number | undefined;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
@@ -1,8 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createShapeStyles = exports.createInputShapeStyles = exports.createDividerShapeStyles = exports.createCellShapeStyles = void 0;
|
|
4
|
-
const
|
|
5
|
-
'.react-
|
|
3
|
+
exports.createShapeStyles = exports.createInputShapeStyles = exports.createDividerShapeStyles = exports.createCellShapeStyles = exports.createHeaderShapeStyles = void 0;
|
|
4
|
+
const createHeaderShapeStyles = (padding, fontFamily, fontWeight, fontStyle, fontSize) => ({
|
|
5
|
+
'.react-datepicker__current-month': {
|
|
6
|
+
paddingTop: padding,
|
|
7
|
+
paddingBottom: padding,
|
|
8
|
+
fontFamily,
|
|
9
|
+
fontWeight,
|
|
10
|
+
fontSize,
|
|
11
|
+
fontStyle,
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
exports.createHeaderShapeStyles = createHeaderShapeStyles;
|
|
15
|
+
const createCellShapeStyles = (margin, padding, borderRadius, inRangeBorderRadius, fontSize, fontFamily, fontStyle, fontWeight, dayNameFontFamily, dayNameFontStyle, dayNameFontWeight, dayNameFontSize) => ({
|
|
16
|
+
'.react-datepicker__day-name': {
|
|
17
|
+
margin,
|
|
18
|
+
padding,
|
|
19
|
+
fontFamily: dayNameFontFamily,
|
|
20
|
+
fontStyle: dayNameFontStyle,
|
|
21
|
+
fontWeight: dayNameFontWeight,
|
|
22
|
+
fontSize: dayNameFontSize || fontSize,
|
|
23
|
+
},
|
|
24
|
+
'.react-datepicker__day, .react-datepicker__time-name': {
|
|
6
25
|
margin,
|
|
7
26
|
padding,
|
|
8
27
|
borderRadius,
|
|
@@ -51,9 +70,10 @@ const createInputShapeStyles = (size, borderWidth, padding, fontSize, fontWeight
|
|
|
51
70
|
},
|
|
52
71
|
});
|
|
53
72
|
exports.createInputShapeStyles = createInputShapeStyles;
|
|
54
|
-
const createShapeStyles = ({ dividerPosition, dividerWidth, cellMargin, cellPadding, cellBorderRadius, cellInRangeBorderRadius, inputSize, inputBorderWidth, inputBorderRadius, inputPadding, fontSize, fontFamily, fontStyle, fontWeight, }) => ({
|
|
55
|
-
...(0, exports.createCellShapeStyles)(cellMargin, cellPadding, cellBorderRadius, cellInRangeBorderRadius, fontSize, fontFamily, fontStyle, fontWeight),
|
|
73
|
+
const createShapeStyles = ({ dividerPosition, dividerWidth, cellMargin, cellPadding, cellBorderRadius, cellInRangeBorderRadius, inputSize, inputBorderWidth, inputBorderRadius, inputPadding, fontSize, fontFamily, fontStyle, fontWeight, dayNameFontFamily, dayNameFontStyle, dayNameFontWeight, dayNameFontSize, currentMonthFontFamily, currentMonthFontStyle, currentMonthFontWeight, currentMonthFontSize, currentMonthPadding, }) => ({
|
|
74
|
+
...(0, exports.createCellShapeStyles)(cellMargin, cellPadding, cellBorderRadius, cellInRangeBorderRadius, fontSize, fontFamily, fontStyle, fontWeight, dayNameFontFamily, dayNameFontStyle, dayNameFontWeight, dayNameFontSize),
|
|
56
75
|
...(0, exports.createDividerShapeStyles)(dividerPosition, dividerWidth),
|
|
57
76
|
...(0, exports.createInputShapeStyles)(inputSize, inputBorderWidth, inputPadding, fontSize, fontWeight, fontFamily, inputBorderRadius),
|
|
77
|
+
...(0, exports.createHeaderShapeStyles)(currentMonthPadding, currentMonthFontFamily, currentMonthFontWeight, currentMonthFontStyle, currentMonthFontSize),
|
|
58
78
|
});
|
|
59
79
|
exports.createShapeStyles = createShapeStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atls-ui-parts/datepicker",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -12,20 +12,23 @@
|
|
|
12
12
|
"postpack": "rm -rf dist"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"date-fns": "^2.22.1",
|
|
18
|
-
"react": "^17.0.1",
|
|
19
|
-
"react-datepicker": "^4.1.1",
|
|
20
|
-
"styled-system": "^5.1.5"
|
|
15
|
+
"date-fns": "2.22.1",
|
|
16
|
+
"react-datepicker": "4.8.0"
|
|
21
17
|
},
|
|
22
18
|
"devDependencies": {
|
|
23
|
-
"@atls-ui-proto/input": "0.0.
|
|
24
|
-
"@emotion/
|
|
25
|
-
"@
|
|
19
|
+
"@atls-ui-proto/input": "0.0.11",
|
|
20
|
+
"@emotion/css": "^11.9.0",
|
|
21
|
+
"@emotion/styled": "^11.8.1",
|
|
22
|
+
"@types/react": "^18.0.12",
|
|
26
23
|
"@types/react-datepicker": "^3.1.8",
|
|
27
|
-
"@types/styled-system": "^5.1.
|
|
28
|
-
"react": "^
|
|
24
|
+
"@types/styled-system": "^5.1.15",
|
|
25
|
+
"react": "^18.1.0",
|
|
26
|
+
"styled-system": "^5.1.5"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"@emotion/css": "^11.9.0",
|
|
30
|
+
"@emotion/styled": "^11.8.1",
|
|
31
|
+
"react": "^18.1.0",
|
|
29
32
|
"styled-system": "^5.1.5"
|
|
30
33
|
},
|
|
31
34
|
"publishConfig": {
|