@symbo.ls/datepicker 2.11.49 → 2.11.52
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/index.js +10 -14
- package/package.json +6 -5
package/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import { Button } from '@symbo.ls/button'
|
|
4
3
|
import { Flex, Grid } from '@symbo.ls/atoms'
|
|
4
|
+
import { Button } from '@symbo.ls/button'
|
|
5
|
+
import { Dialog } from '@symbo.ls/dialog'
|
|
5
6
|
|
|
6
7
|
export const DatePickerYears = {
|
|
7
8
|
tag: 'aside',
|
|
@@ -211,7 +212,7 @@ export const DatePickerWeekDays = {
|
|
|
211
212
|
fontSize: 'Y1',
|
|
212
213
|
textTransform: 'capitalize',
|
|
213
214
|
align: 'center center',
|
|
214
|
-
':nth-child(7n-1), &:nth-child(7n)': { opacity: '.5' }
|
|
215
|
+
':nth-child(7n-1), &:nth-child(7n)': { opacity: '.5' }
|
|
215
216
|
}
|
|
216
217
|
},
|
|
217
218
|
...[
|
|
@@ -231,7 +232,7 @@ export const DatePickerGrid = {
|
|
|
231
232
|
columns: 'repeat(7, 1fr)',
|
|
232
233
|
minWidth: '100%',
|
|
233
234
|
gap: 'W2',
|
|
234
|
-
padding:
|
|
235
|
+
padding: '- Z'
|
|
235
236
|
},
|
|
236
237
|
childExtend: {
|
|
237
238
|
extend: Button,
|
|
@@ -246,10 +247,10 @@ export const DatePickerGrid = {
|
|
|
246
247
|
background: 'transparent',
|
|
247
248
|
theme: 'secondary @dark .color',
|
|
248
249
|
'.isActive': { theme: 'primary' },
|
|
249
|
-
'!isActive': {
|
|
250
|
+
'!isActive': {
|
|
250
251
|
':hover': { theme: 'secondary' },
|
|
251
|
-
':nth-child(7n-1), &:nth-child(7n)': { opacity: '.5' }
|
|
252
|
-
|
|
252
|
+
':nth-child(7n-1), &:nth-child(7n)': { opacity: '.5' }
|
|
253
|
+
}
|
|
253
254
|
}),
|
|
254
255
|
on: {
|
|
255
256
|
click: (event, element, state) => {
|
|
@@ -302,13 +303,8 @@ const monthNumbersContainer = {
|
|
|
302
303
|
|
|
303
304
|
const props = {
|
|
304
305
|
yearRange: [1993, 2023],
|
|
305
|
-
theme: 'tertiary',
|
|
306
|
-
round: 'Z2',
|
|
307
|
-
margin: 'E',
|
|
308
|
-
overflow: 'hidden',
|
|
309
306
|
maxHeight: '318px',
|
|
310
307
|
boxSize: 'fit-content fit-content',
|
|
311
|
-
padding: '- Z - -',
|
|
312
308
|
style: {
|
|
313
309
|
button: {
|
|
314
310
|
padding: '0'
|
|
@@ -317,7 +313,7 @@ const props = {
|
|
|
317
313
|
}
|
|
318
314
|
|
|
319
315
|
export const DatePicker = {
|
|
320
|
-
extend: Flex,
|
|
316
|
+
extend: [Dialog, Flex],
|
|
321
317
|
state: {
|
|
322
318
|
activeYear: 1993,
|
|
323
319
|
activeMonth: 8,
|
|
@@ -332,9 +328,9 @@ export const DatePicker = {
|
|
|
332
328
|
props: {
|
|
333
329
|
flow: 'column',
|
|
334
330
|
padding: '20px - - -',
|
|
335
|
-
position: 'relative'
|
|
331
|
+
position: 'relative'
|
|
336
332
|
},
|
|
337
|
-
|
|
333
|
+
|
|
338
334
|
DatePickerMonthsSlider: {},
|
|
339
335
|
|
|
340
336
|
DatePickerWeekDays: {},
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/datepicker",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.52",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "2e71da7acbdccc01e180f37d76f4ce0889791bf5",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@symbo.ls/
|
|
9
|
-
"@symbo.ls/
|
|
10
|
-
"@symbo.ls/
|
|
8
|
+
"@symbo.ls/atoms": "latest",
|
|
9
|
+
"@symbo.ls/button": "latest",
|
|
10
|
+
"@symbo.ls/dialog": "latest",
|
|
11
|
+
"@symbo.ls/icon": "latest"
|
|
11
12
|
},
|
|
12
13
|
"source": "src/index.js"
|
|
13
14
|
}
|