@symbo.ls/datepicker 0.5.10 → 0.6.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.
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/packages/react/dist/index.js +17 -0
- package/packages/react/dist/index.js.map +1 -0
- package/packages/react/package.json +4 -4
- package/packages/react/{index.js → src/index.js} +0 -0
- package/.parcel-cache/3085beb0745a2550.txt +0 -2
- package/.parcel-cache/736b9fb319e7887f.txt +0 -2
- package/.parcel-cache/data.mdb +0 -0
- package/.parcel-cache/lock.mdb +0 -0
- package/packages/react/node_modules/.yarn-integrity +0 -105
- package/packages/react/node_modules/@domql/cache/LICENSE +0 -21
- package/packages/react/node_modules/@domql/cache/index.js +0 -0
- package/packages/react/node_modules/@domql/cache/package.json +0 -10
- package/packages/react/node_modules/@domql/cookie/LICENSE +0 -21
- package/packages/react/node_modules/@domql/cookie/index.js +0 -22
- package/packages/react/node_modules/@domql/cookie/package.json +0 -10
- package/packages/react/node_modules/@domql/define/LICENSE +0 -21
- package/packages/react/node_modules/@domql/define/index.js +0 -14
- package/packages/react/node_modules/@domql/define/package.json +0 -11
- package/packages/react/node_modules/@domql/domql/LICENSE +0 -21
- package/packages/react/node_modules/@domql/domql/dist/index.js +0 -93
- package/packages/react/node_modules/@domql/domql/dist/index.js.map +0 -1
- package/packages/react/node_modules/@domql/domql/package.json +0 -33
- package/packages/react/node_modules/@domql/element/LICENSE +0 -21
- package/packages/react/node_modules/@domql/element/package.json +0 -20
- package/packages/react/node_modules/@domql/element/src/assign.js +0 -22
- package/packages/react/node_modules/@domql/element/src/create.js +0 -125
- package/packages/react/node_modules/@domql/element/src/index.js +0 -8
- package/packages/react/node_modules/@domql/element/src/iterate.js +0 -80
- package/packages/react/node_modules/@domql/element/src/methods.js +0 -96
- package/packages/react/node_modules/@domql/element/src/set.js +0 -44
- package/packages/react/node_modules/@domql/element/src/update.js +0 -100
- package/packages/react/node_modules/@domql/event/LICENSE +0 -21
- package/packages/react/node_modules/@domql/event/package.json +0 -14
- package/packages/react/node_modules/@domql/event/src/can.js +0 -10
- package/packages/react/node_modules/@domql/event/src/index.js +0 -11
- package/packages/react/node_modules/@domql/event/src/is.js +0 -13
- package/packages/react/node_modules/@domql/event/src/on.js +0 -33
- package/packages/react/node_modules/@domql/event/src/store.js +0 -6
- package/packages/react/node_modules/@domql/event/src/wrappers.js +0 -14
- package/packages/react/node_modules/@domql/event/yarn-error.log +0 -44
- package/packages/react/node_modules/@domql/id/LICENSE +0 -21
- package/packages/react/node_modules/@domql/id/index.js +0 -12
- package/packages/react/node_modules/@domql/id/package.json +0 -10
- package/packages/react/node_modules/@domql/mixins/LICENSE +0 -21
- package/packages/react/node_modules/@domql/mixins/package.json +0 -12
- package/packages/react/node_modules/@domql/mixins/src/attr.js +0 -19
- package/packages/react/node_modules/@domql/mixins/src/classList.js +0 -37
- package/packages/react/node_modules/@domql/mixins/src/content.js +0 -17
- package/packages/react/node_modules/@domql/mixins/src/data.js +0 -21
- package/packages/react/node_modules/@domql/mixins/src/html.js +0 -17
- package/packages/react/node_modules/@domql/mixins/src/index.js +0 -11
- package/packages/react/node_modules/@domql/mixins/src/registry.js +0 -55
- package/packages/react/node_modules/@domql/mixins/src/state.js +0 -16
- package/packages/react/node_modules/@domql/mixins/src/style.js +0 -14
- package/packages/react/node_modules/@domql/mixins/src/text.js +0 -19
- package/packages/react/node_modules/@domql/node/LICENSE +0 -21
- package/packages/react/node_modules/@domql/node/package.json +0 -18
- package/packages/react/node_modules/@domql/node/src/cache.js +0 -53
- package/packages/react/node_modules/@domql/node/src/create.js +0 -86
- package/packages/react/node_modules/@domql/node/src/index.js +0 -5
- package/packages/react/node_modules/@domql/node/src/registry.js +0 -139
- package/packages/react/node_modules/@domql/node/yarn-error.log +0 -166
- package/packages/react/node_modules/@domql/parse/LICENSE +0 -21
- package/packages/react/node_modules/@domql/parse/index.js +0 -16
- package/packages/react/node_modules/@domql/parse/package.json +0 -10
- package/packages/react/node_modules/@domql/props/LICENSE +0 -21
- package/packages/react/node_modules/@domql/props/package.json +0 -10
- package/packages/react/node_modules/@domql/props/src/index.js +0 -62
- package/packages/react/node_modules/@domql/proto/LICENSE +0 -21
- package/packages/react/node_modules/@domql/proto/index.js +0 -66
- package/packages/react/node_modules/@domql/proto/package.json +0 -10
- package/packages/react/node_modules/@domql/react-transformer/LICENSE +0 -21
- package/packages/react/node_modules/@domql/react-transformer/dist/index.js +0 -62
- package/packages/react/node_modules/@domql/react-transformer/dist/index.js.map +0 -1
- package/packages/react/node_modules/@domql/react-transformer/package.json +0 -17
- package/packages/react/node_modules/@domql/report/LICENSE +0 -21
- package/packages/react/node_modules/@domql/report/index.js +0 -62
- package/packages/react/node_modules/@domql/report/package.json +0 -7
- package/packages/react/node_modules/@domql/state/LICENSE +0 -21
- package/packages/react/node_modules/@domql/state/package.json +0 -11
- package/packages/react/node_modules/@domql/state/src/index.js +0 -51
- package/packages/react/node_modules/@domql/tree/LICENSE +0 -21
- package/packages/react/node_modules/@domql/tree/index.js +0 -6
- package/packages/react/node_modules/@domql/tree/package.json +0 -10
- package/packages/react/node_modules/@domql/tree/root.js +0 -8
- package/packages/react/node_modules/@domql/utils/LICENSE +0 -21
- package/packages/react/node_modules/@domql/utils/package.json +0 -13
- package/packages/react/node_modules/@domql/utils/src/index.js +0 -5
- package/packages/react/node_modules/@domql/utils/src/node.js +0 -10
- package/packages/react/node_modules/@domql/utils/src/object.js +0 -193
- package/packages/react/node_modules/@domql/utils/src/protoUtils.js +0 -119
- package/packages/react/node_modules/@symbo.ls/block/package.json +0 -7
- package/packages/react/node_modules/@symbo.ls/block/packages/react/index.js +0 -1
- package/packages/react/node_modules/@symbo.ls/block/packages/react/package.json +0 -7
- package/packages/react/node_modules/@symbo.ls/block/src/index.js +0 -90
- package/packages/react/node_modules/@symbo.ls/block/src/style.js +0 -5
- package/packages/react/node_modules/@symbo.ls/datepicker/package.json +0 -12
- package/packages/react/node_modules/@symbo.ls/datepicker/packages/react/index.js +0 -1
- package/packages/react/node_modules/@symbo.ls/datepicker/packages/react/package.json +0 -7
- package/packages/react/node_modules/@symbo.ls/datepicker/src/index.js +0 -115
- package/packages/react/node_modules/@symbo.ls/datepicker/src/style.js +0 -100
- package/packages/react/node_modules/@symbo.ls/icon/package.json +0 -10
- package/packages/react/node_modules/@symbo.ls/icon/packages/react/index.js +0 -1
- package/packages/react/node_modules/@symbo.ls/icon/packages/react/package.json +0 -7
- package/packages/react/node_modules/@symbo.ls/icon/src/index.js +0 -14
- package/packages/react/node_modules/@symbo.ls/icon/src/style.js +0 -8
- package/packages/react/node_modules/@symbo.ls/shape/package.json +0 -7
- package/packages/react/node_modules/@symbo.ls/shape/packages/react/index.js +0 -1
- package/packages/react/node_modules/@symbo.ls/shape/packages/react/package.json +0 -7
- package/packages/react/node_modules/@symbo.ls/shape/src/index.js +0 -43
- package/packages/react/node_modules/@symbo.ls/shape/src/style.js +0 -102
- package/packages/react/node_modules/@symbo.ls/svg/package.json +0 -7
- package/packages/react/node_modules/@symbo.ls/svg/packages/react/index.js +0 -1
- package/packages/react/node_modules/@symbo.ls/svg/packages/react/package.json +0 -7
- package/packages/react/node_modules/@symbo.ls/svg/src/index.js +0 -14
- package/packages/react/node_modules/js-tokens/CHANGELOG.md +0 -151
- package/packages/react/node_modules/js-tokens/LICENSE +0 -21
- package/packages/react/node_modules/js-tokens/README.md +0 -240
- package/packages/react/node_modules/js-tokens/index.js +0 -23
- package/packages/react/node_modules/js-tokens/package.json +0 -30
- package/packages/react/node_modules/loose-envify/LICENSE +0 -21
- package/packages/react/node_modules/loose-envify/README.md +0 -45
- package/packages/react/node_modules/loose-envify/cli.js +0 -16
- package/packages/react/node_modules/loose-envify/custom.js +0 -4
- package/packages/react/node_modules/loose-envify/index.js +0 -3
- package/packages/react/node_modules/loose-envify/loose-envify.js +0 -36
- package/packages/react/node_modules/loose-envify/package.json +0 -36
- package/packages/react/node_modules/loose-envify/replace.js +0 -65
- package/packages/react/node_modules/object-assign/index.js +0 -90
- package/packages/react/node_modules/object-assign/license +0 -21
- package/packages/react/node_modules/object-assign/package.json +0 -42
- package/packages/react/node_modules/object-assign/readme.md +0 -61
- package/packages/react/node_modules/react/LICENSE +0 -21
- package/packages/react/node_modules/react/README.md +0 -13
- package/packages/react/node_modules/react/build-info.json +0 -8
- package/packages/react/node_modules/react/cjs/react-jsx-dev-runtime.development.js +0 -1203
- package/packages/react/node_modules/react/cjs/react-jsx-dev-runtime.production.min.js +0 -9
- package/packages/react/node_modules/react/cjs/react-jsx-dev-runtime.profiling.min.js +0 -9
- package/packages/react/node_modules/react/cjs/react-jsx-runtime.development.js +0 -1221
- package/packages/react/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -10
- package/packages/react/node_modules/react/cjs/react-jsx-runtime.profiling.min.js +0 -10
- package/packages/react/node_modules/react/cjs/react.development.js +0 -2333
- package/packages/react/node_modules/react/cjs/react.production.min.js +0 -23
- package/packages/react/node_modules/react/index.js +0 -7
- package/packages/react/node_modules/react/jsx-dev-runtime.js +0 -7
- package/packages/react/node_modules/react/jsx-runtime.js +0 -7
- package/packages/react/node_modules/react/package.json +0 -39
- package/packages/react/node_modules/react/umd/react.development.js +0 -3357
- package/packages/react/node_modules/react/umd/react.production.min.js +0 -31
- package/packages/react/node_modules/react/umd/react.profiling.min.js +0 -36
- package/packages/react/node_modules/react-dom/LICENSE +0 -21
- package/packages/react/node_modules/react-dom/README.md +0 -54
- package/packages/react/node_modules/react-dom/build-info.json +0 -8
- package/packages/react/node_modules/react-dom/cjs/react-dom-server.browser.development.js +0 -4342
- package/packages/react/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js +0 -51
- package/packages/react/node_modules/react-dom/cjs/react-dom-server.node.development.js +0 -4383
- package/packages/react/node_modules/react-dom/cjs/react-dom-server.node.production.min.js +0 -52
- package/packages/react/node_modules/react-dom/cjs/react-dom-test-utils.development.js +0 -2118
- package/packages/react/node_modules/react-dom/cjs/react-dom-test-utils.production.min.js +0 -43
- package/packages/react/node_modules/react-dom/cjs/react-dom.development.js +0 -26262
- package/packages/react/node_modules/react-dom/cjs/react-dom.production.min.js +0 -297
- package/packages/react/node_modules/react-dom/cjs/react-dom.profiling.min.js +0 -310
- package/packages/react/node_modules/react-dom/index.js +0 -38
- package/packages/react/node_modules/react-dom/package.json +0 -49
- package/packages/react/node_modules/react-dom/profiling.js +0 -38
- package/packages/react/node_modules/react-dom/server.browser.js +0 -7
- package/packages/react/node_modules/react-dom/server.js +0 -3
- package/packages/react/node_modules/react-dom/server.node.js +0 -7
- package/packages/react/node_modules/react-dom/test-utils.js +0 -7
- package/packages/react/node_modules/react-dom/umd/react-dom-server.browser.development.js +0 -4341
- package/packages/react/node_modules/react-dom/umd/react-dom-server.browser.production.min.js +0 -46
- package/packages/react/node_modules/react-dom/umd/react-dom-test-utils.development.js +0 -2136
- package/packages/react/node_modules/react-dom/umd/react-dom-test-utils.production.min.js +0 -35
- package/packages/react/node_modules/react-dom/umd/react-dom.development.js +0 -26292
- package/packages/react/node_modules/react-dom/umd/react-dom.production.min.js +0 -245
- package/packages/react/node_modules/react-dom/umd/react-dom.profiling.min.js +0 -252
- package/packages/react/node_modules/regenerator-runtime/LICENSE +0 -21
- package/packages/react/node_modules/regenerator-runtime/README.md +0 -31
- package/packages/react/node_modules/regenerator-runtime/package.json +0 -19
- package/packages/react/node_modules/regenerator-runtime/path.js +0 -11
- package/packages/react/node_modules/regenerator-runtime/runtime.js +0 -754
- package/packages/react/node_modules/scheduler/LICENSE +0 -21
- package/packages/react/node_modules/scheduler/README.md +0 -9
- package/packages/react/node_modules/scheduler/build-info.json +0 -8
- package/packages/react/node_modules/scheduler/cjs/scheduler-tracing.development.js +0 -347
- package/packages/react/node_modules/scheduler/cjs/scheduler-tracing.production.min.js +0 -9
- package/packages/react/node_modules/scheduler/cjs/scheduler-tracing.profiling.min.js +0 -16
- package/packages/react/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +0 -665
- package/packages/react/node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js +0 -19
- package/packages/react/node_modules/scheduler/cjs/scheduler-unstable_post_task.development.js +0 -206
- package/packages/react/node_modules/scheduler/cjs/scheduler-unstable_post_task.production.min.js +0 -13
- package/packages/react/node_modules/scheduler/cjs/scheduler.development.js +0 -646
- package/packages/react/node_modules/scheduler/cjs/scheduler.production.min.js +0 -20
- package/packages/react/node_modules/scheduler/index.js +0 -7
- package/packages/react/node_modules/scheduler/package.json +0 -40
- package/packages/react/node_modules/scheduler/tracing-profiling.js +0 -7
- package/packages/react/node_modules/scheduler/tracing.js +0 -7
- package/packages/react/node_modules/scheduler/umd/scheduler-tracing.development.js +0 -80
- package/packages/react/node_modules/scheduler/umd/scheduler-tracing.production.min.js +0 -80
- package/packages/react/node_modules/scheduler/umd/scheduler-tracing.profiling.min.js +0 -80
- package/packages/react/node_modules/scheduler/umd/scheduler-unstable_mock.development.js +0 -664
- package/packages/react/node_modules/scheduler/umd/scheduler-unstable_mock.production.min.js +0 -18
- package/packages/react/node_modules/scheduler/umd/scheduler.development.js +0 -152
- package/packages/react/node_modules/scheduler/umd/scheduler.production.min.js +0 -146
- package/packages/react/node_modules/scheduler/umd/scheduler.profiling.min.js +0 -146
- package/packages/react/node_modules/scheduler/unstable_mock.js +0 -7
- package/packages/react/node_modules/scheduler/unstable_post_task.js +0 -7
- package/packages/react/yarn.lock +0 -229
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import style from './style'
|
|
4
|
-
|
|
5
|
-
import { Icon } from '@symbo.ls/icon'
|
|
6
|
-
import { Shape } from '@symbo.ls/shape'
|
|
7
|
-
import { Block } from '@symbo.ls/block'
|
|
8
|
-
|
|
9
|
-
export const DatePicker = {
|
|
10
|
-
style,
|
|
11
|
-
|
|
12
|
-
proto: [Shape, Block],
|
|
13
|
-
props: {
|
|
14
|
-
theme: 'lightDark',
|
|
15
|
-
padding: 'A',
|
|
16
|
-
round: 'Z',
|
|
17
|
-
depth: 16
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
aside: {
|
|
21
|
-
childProto: { tag: 'button' },
|
|
22
|
-
...[
|
|
23
|
-
{ text: '2020' },
|
|
24
|
-
{ text: '2021' },
|
|
25
|
-
{ text: '2022' },
|
|
26
|
-
{ text: '2023' },
|
|
27
|
-
{ text: '2024' },
|
|
28
|
-
{ text: '2025' },
|
|
29
|
-
{ text: '2026' },
|
|
30
|
-
{ text: '2026' },
|
|
31
|
-
{ text: '2026' }
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
main: {
|
|
36
|
-
header: {
|
|
37
|
-
icon: {
|
|
38
|
-
proto: Icon,
|
|
39
|
-
props: { icon: 'arrowMediumLeft' }
|
|
40
|
-
},
|
|
41
|
-
month: {
|
|
42
|
-
childProto: { tag: 'span' },
|
|
43
|
-
...[
|
|
44
|
-
{ text: 'january' },
|
|
45
|
-
{ text: 'february' },
|
|
46
|
-
{ text: 'march' },
|
|
47
|
-
{ text: 'april' },
|
|
48
|
-
{ text: 'may' },
|
|
49
|
-
{ text: 'june' },
|
|
50
|
-
{ text: 'july' },
|
|
51
|
-
{ text: 'august' },
|
|
52
|
-
{ text: 'september' },
|
|
53
|
-
{ text: 'october' },
|
|
54
|
-
{ text: 'november' },
|
|
55
|
-
{ text: 'december' }
|
|
56
|
-
]
|
|
57
|
-
},
|
|
58
|
-
icon2: {
|
|
59
|
-
proto: Icon,
|
|
60
|
-
props: { icon: 'arrowMediumRight' }
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
days: {
|
|
64
|
-
tag: 'section',
|
|
65
|
-
header: {
|
|
66
|
-
childProto: { tag: 'span' },
|
|
67
|
-
...[
|
|
68
|
-
{ text: 'Mo' },
|
|
69
|
-
{ text: 'Tu' },
|
|
70
|
-
{ text: 'We' },
|
|
71
|
-
{ text: 'Th' },
|
|
72
|
-
{ text: 'Fr' },
|
|
73
|
-
{ text: 'Sa' },
|
|
74
|
-
{ text: 'Su' }
|
|
75
|
-
]
|
|
76
|
-
},
|
|
77
|
-
content: {
|
|
78
|
-
childProto: { tag: 'button' },
|
|
79
|
-
...[
|
|
80
|
-
{ text: '1' },
|
|
81
|
-
{ text: '2' },
|
|
82
|
-
{ text: '3' },
|
|
83
|
-
{ text: '4' },
|
|
84
|
-
{ text: '5' },
|
|
85
|
-
{ text: '6' },
|
|
86
|
-
{ text: '7' },
|
|
87
|
-
{ text: '8' },
|
|
88
|
-
{ text: '9' },
|
|
89
|
-
{ text: '10' },
|
|
90
|
-
{ text: '11' },
|
|
91
|
-
{ text: '12' },
|
|
92
|
-
{ text: '13' },
|
|
93
|
-
{ text: '14' },
|
|
94
|
-
{ text: '15' },
|
|
95
|
-
{ text: '16' },
|
|
96
|
-
{ text: '17' },
|
|
97
|
-
{ text: '18' },
|
|
98
|
-
{ text: '19' },
|
|
99
|
-
{ text: '20' },
|
|
100
|
-
{ text: '21' },
|
|
101
|
-
{ text: '22' },
|
|
102
|
-
{ text: '23' },
|
|
103
|
-
{ text: '24' },
|
|
104
|
-
{ text: '25' },
|
|
105
|
-
{ text: '26' },
|
|
106
|
-
{ text: '27' },
|
|
107
|
-
{ text: '28' },
|
|
108
|
-
{ text: '29' },
|
|
109
|
-
{ text: '30' },
|
|
110
|
-
{ text: '31' }
|
|
111
|
-
]
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
maxWidth: `${336 / 16}em`,
|
|
5
|
-
maxHeight: `${260 / 16}em`,
|
|
6
|
-
display: 'flex',
|
|
7
|
-
padding: '0 1em',
|
|
8
|
-
boxSizing: 'border-box',
|
|
9
|
-
borderRadius: '10px',
|
|
10
|
-
button: {
|
|
11
|
-
border: 'none',
|
|
12
|
-
outline: 'none',
|
|
13
|
-
background: 'transparent',
|
|
14
|
-
cursor: 'pointer'
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
aside: {
|
|
18
|
-
display: 'flex',
|
|
19
|
-
flexDirection: 'column',
|
|
20
|
-
overflowX: 'auto',
|
|
21
|
-
paddingRight: `${10 / 16}em`,
|
|
22
|
-
|
|
23
|
-
button: {
|
|
24
|
-
opacity: 0.5,
|
|
25
|
-
marginBottom: `${22 / 12}em`
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
main: {
|
|
30
|
-
flex: 1,
|
|
31
|
-
paddingTop: `${14 / 16}em`,
|
|
32
|
-
paddingBottom: `${10 / 16}em`,
|
|
33
|
-
overflow: 'hidden',
|
|
34
|
-
|
|
35
|
-
display: 'flex',
|
|
36
|
-
flexDirection: 'column',
|
|
37
|
-
|
|
38
|
-
'> header': {
|
|
39
|
-
display: 'flex',
|
|
40
|
-
alignItems: 'center',
|
|
41
|
-
height: 'auto',
|
|
42
|
-
overflow: 'hidden',
|
|
43
|
-
width: '100%',
|
|
44
|
-
padding: `0 ${8 / 16}em ${14 / 16}em ${8 / 16}em`,
|
|
45
|
-
boxSizing: 'border-box'
|
|
46
|
-
},
|
|
47
|
-
'> header > svg': {
|
|
48
|
-
cursor: 'pointer'
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
'> header > div': {
|
|
52
|
-
display: 'flex',
|
|
53
|
-
overflow: 'hidden',
|
|
54
|
-
flex: 1
|
|
55
|
-
},
|
|
56
|
-
'> header span': {
|
|
57
|
-
minWidth: '100%',
|
|
58
|
-
textTransform: 'capitalize',
|
|
59
|
-
textAlign: 'center',
|
|
60
|
-
fontWeight: 'bold'
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
section: {
|
|
64
|
-
flex: 1,
|
|
65
|
-
display: 'flex',
|
|
66
|
-
flexDirection: 'column'
|
|
67
|
-
},
|
|
68
|
-
'section > header': {
|
|
69
|
-
height: 'auto',
|
|
70
|
-
display: 'grid',
|
|
71
|
-
gridTemplateColumns: 'repeat(7, 1fr)',
|
|
72
|
-
gap: '6px',
|
|
73
|
-
paddingBottom: `${2 / 16}em`
|
|
74
|
-
},
|
|
75
|
-
'section > header span': {
|
|
76
|
-
textAlign: 'center',
|
|
77
|
-
fontWeight: 'bold'
|
|
78
|
-
},
|
|
79
|
-
'section > header span:nth-child(6)': {
|
|
80
|
-
opacity: 0.5
|
|
81
|
-
},
|
|
82
|
-
'section > header span:nth-child(7)': {
|
|
83
|
-
opacity: 0.5
|
|
84
|
-
},
|
|
85
|
-
'section > div': {
|
|
86
|
-
flex: 1,
|
|
87
|
-
display: 'grid',
|
|
88
|
-
gridTemplateColumns: 'repeat(7, 1fr)',
|
|
89
|
-
gap: '6px'
|
|
90
|
-
},
|
|
91
|
-
'section > div button': {
|
|
92
|
-
},
|
|
93
|
-
'section > div button:nth-child(7n)': {
|
|
94
|
-
opacity: 0.5
|
|
95
|
-
},
|
|
96
|
-
'section > div button:nth-child(7n - 1)': {
|
|
97
|
-
opacity: 0.5
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import style from './style'
|
|
4
|
-
|
|
5
|
-
import { SVG } from '@symbo.ls/svg'
|
|
6
|
-
|
|
7
|
-
export const Icon = {
|
|
8
|
-
proto: SVG,
|
|
9
|
-
style,
|
|
10
|
-
define: { name: param => param },
|
|
11
|
-
name: ({ props }) => props.icon,
|
|
12
|
-
attr: { viewBox: '0 0 24 24' },
|
|
13
|
-
src: ({ key, name }) => name || key || 'noIcon'
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { mapSpacing, getTheme, getColor } from '@symbo.ls/scratch'
|
|
4
|
-
|
|
5
|
-
import style, { shape, depth } from './style'
|
|
6
|
-
|
|
7
|
-
export const Shape = {
|
|
8
|
-
class: {
|
|
9
|
-
default: style,
|
|
10
|
-
shape: ({ props }) => props.shape && shape[props.shape],
|
|
11
|
-
shapeDirection: ({ props }) => props.shape && shape[props.shape][props.shapeDirection || 'top'],
|
|
12
|
-
shapeDirectionColor: ({ props, ...el }) => props.shapeDirection && { '&:before': { borderColor: el.class.backgroundColor } },
|
|
13
|
-
depth: ({ props }) => depth[props.depth],
|
|
14
|
-
round: ({ props, key, ...el }) => props.round && (mapSpacing(props.round, 'borderRadius') || ({ borderRadius: props.round })),
|
|
15
|
-
theme: ({ props }) => props.theme && getTheme(props.theme),
|
|
16
|
-
color: ({ props }) => props.color && ({ color: getColor(props.color) }),
|
|
17
|
-
border: ({ props }) => props.border ? ({ border: getColor(props.border) }) : 'transparent 0',
|
|
18
|
-
background: ({ props }) => props.background && ({ backgroundColor: getColor(props.background) })
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// mode: {
|
|
22
|
-
// dark: {
|
|
23
|
-
// theme: 'white'
|
|
24
|
-
// }
|
|
25
|
-
// }
|
|
26
|
-
|
|
27
|
-
// theme: {
|
|
28
|
-
// default: 'primary',
|
|
29
|
-
// dark: 'whiteish'
|
|
30
|
-
// }
|
|
31
|
-
|
|
32
|
-
// size: {
|
|
33
|
-
// default: 'auto',
|
|
34
|
-
// mobile: 'fit'
|
|
35
|
-
// }
|
|
36
|
-
|
|
37
|
-
// padding: {
|
|
38
|
-
// default: ratio.phi,
|
|
39
|
-
// mobile: ratio.perfect
|
|
40
|
-
// }
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export default Shape
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { UNIT } from '@symbo.ls/scratch'
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
boxSizing: 'border-box'
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const depth = {
|
|
10
|
-
4: { boxShadow: `rgba(0,0,0,.10) 0 2${UNIT.default} 4${UNIT.default}` },
|
|
11
|
-
6: { boxShadow: `rgba(0,0,0,.10) 0 3${UNIT.default} 6${UNIT.default}` },
|
|
12
|
-
10: { boxShadow: `rgba(0,0,0,.10) 0 4${UNIT.default} 10${UNIT.default}` },
|
|
13
|
-
16: { boxShadow: `rgba(0,0,0,.10) 0 8${UNIT.default} 16${UNIT.default}` },
|
|
14
|
-
26: { boxShadow: `rgba(0,0,0,.10) 0 14${UNIT.default} 26${UNIT.default}` },
|
|
15
|
-
42: { boxShadow: `rgba(0,0,0,.10) 0 20${UNIT.default} 42${UNIT.default}` }
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export const shape = {
|
|
19
|
-
rectangle: {},
|
|
20
|
-
circle: { borderRadius: '100%' },
|
|
21
|
-
bubble: {},
|
|
22
|
-
tooltip: {
|
|
23
|
-
position: 'relative',
|
|
24
|
-
'&:before': {
|
|
25
|
-
content: '""',
|
|
26
|
-
display: 'block',
|
|
27
|
-
width: '0px',
|
|
28
|
-
height: '0px',
|
|
29
|
-
border: '6px solid #343434',
|
|
30
|
-
position: 'absolute',
|
|
31
|
-
borderRadius: '2px'
|
|
32
|
-
},
|
|
33
|
-
top: {
|
|
34
|
-
'&:before': {
|
|
35
|
-
top: '2px',
|
|
36
|
-
left: '50%',
|
|
37
|
-
transform: 'translate(-50%, -50%) rotate(45deg)'
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
right: {
|
|
41
|
-
'&:before': {
|
|
42
|
-
top: '50%',
|
|
43
|
-
right: '-10px',
|
|
44
|
-
transform: 'translate(-50%, -50%) rotate(45deg)'
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
bottom: {
|
|
48
|
-
'&:before': {
|
|
49
|
-
bottom: '-10px',
|
|
50
|
-
left: '50%',
|
|
51
|
-
transform: 'translate(-50%, -50%) rotate(45deg)'
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
left: {
|
|
55
|
-
'&:before': {
|
|
56
|
-
top: '50%',
|
|
57
|
-
left: '2px',
|
|
58
|
-
transform: 'translate(-50%, -50%) rotate(45deg)'
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
tag: {
|
|
63
|
-
position: 'relative',
|
|
64
|
-
'&:before': {
|
|
65
|
-
content: '""',
|
|
66
|
-
display: 'block',
|
|
67
|
-
width: '0',
|
|
68
|
-
height: '0',
|
|
69
|
-
border: '16px solid #343434',
|
|
70
|
-
borderRadius: '6px',
|
|
71
|
-
position: 'absolute'
|
|
72
|
-
},
|
|
73
|
-
top: {
|
|
74
|
-
'&:before': {
|
|
75
|
-
bottom: '100%',
|
|
76
|
-
left: '50%',
|
|
77
|
-
transform: 'translate(-50%, 60%) rotate(45deg)'
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
right: {
|
|
81
|
-
'&:before': {
|
|
82
|
-
top: '50%',
|
|
83
|
-
left: '100%',
|
|
84
|
-
transform: 'translate(-60%, -50%) rotate(45deg)'
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
bottom: {
|
|
88
|
-
'&:before': {
|
|
89
|
-
top: '100%',
|
|
90
|
-
left: '50%',
|
|
91
|
-
transform: 'translate(-50%, -60%) rotate(45deg)'
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
left: {
|
|
95
|
-
'&:before': {
|
|
96
|
-
top: '50%',
|
|
97
|
-
right: '100%',
|
|
98
|
-
transform: 'translate(60%, -50%) rotate(45deg)'
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
var useSVGSymbol = file => `<use xlink:href="${file}" />`
|
|
4
|
-
|
|
5
|
-
// create icon
|
|
6
|
-
export const SVG = {
|
|
7
|
-
tag: 'svg',
|
|
8
|
-
attr: {
|
|
9
|
-
xmlns: 'http://www.w3.org/2000/svg',
|
|
10
|
-
'xmlns:xlink': 'http://www.w3.org/1999/xlink'
|
|
11
|
-
},
|
|
12
|
-
define: { src: param => param },
|
|
13
|
-
html: ({ key, src }) => useSVGSymbol(src || key)
|
|
14
|
-
}
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
### Version 4.0.0 (2018-01-28) ###
|
|
2
|
-
|
|
3
|
-
- Added: Support for ES2018. The only change needed was recognizing the `s`
|
|
4
|
-
regex flag.
|
|
5
|
-
- Changed: _All_ tokens returned by the `matchToToken` function now have a
|
|
6
|
-
`closed` property. It is set to `undefined` for the tokens where “closed”
|
|
7
|
-
doesn’t make sense. This means that all tokens objects have the same shape,
|
|
8
|
-
which might improve performance.
|
|
9
|
-
|
|
10
|
-
These are the breaking changes:
|
|
11
|
-
|
|
12
|
-
- `'/a/s'.match(jsTokens)` no longer returns `['/', 'a', '/', 's']`, but
|
|
13
|
-
`['/a/s']`. (There are of course other variations of this.)
|
|
14
|
-
- Code that rely on some token objects not having the `closed` property could
|
|
15
|
-
now behave differently.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
### Version 3.0.2 (2017-06-28) ###
|
|
19
|
-
|
|
20
|
-
- No code changes. Just updates to the readme.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
### Version 3.0.1 (2017-01-30) ###
|
|
24
|
-
|
|
25
|
-
- Fixed: ES2015 unicode escapes with more than 6 hex digits are now matched
|
|
26
|
-
correctly.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
### Version 3.0.0 (2017-01-11) ###
|
|
30
|
-
|
|
31
|
-
This release contains one breaking change, that should [improve performance in
|
|
32
|
-
V8][v8-perf]:
|
|
33
|
-
|
|
34
|
-
> So how can you, as a JavaScript developer, ensure that your RegExps are fast?
|
|
35
|
-
> If you are not interested in hooking into RegExp internals, make sure that
|
|
36
|
-
> neither the RegExp instance, nor its prototype is modified in order to get the
|
|
37
|
-
> best performance:
|
|
38
|
-
>
|
|
39
|
-
> ```js
|
|
40
|
-
> var re = /./g;
|
|
41
|
-
> re.exec(''); // Fast path.
|
|
42
|
-
> re.new_property = 'slow';
|
|
43
|
-
> ```
|
|
44
|
-
|
|
45
|
-
This module used to export a single regex, with `.matchToToken` bolted
|
|
46
|
-
on, just like in the above example. This release changes the exports of
|
|
47
|
-
the module to avoid this issue.
|
|
48
|
-
|
|
49
|
-
Before:
|
|
50
|
-
|
|
51
|
-
```js
|
|
52
|
-
import jsTokens from "js-tokens"
|
|
53
|
-
// or:
|
|
54
|
-
var jsTokens = require("js-tokens")
|
|
55
|
-
var matchToToken = jsTokens.matchToToken
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
After:
|
|
59
|
-
|
|
60
|
-
```js
|
|
61
|
-
import jsTokens, {matchToToken} from "js-tokens"
|
|
62
|
-
// or:
|
|
63
|
-
var jsTokens = require("js-tokens").default
|
|
64
|
-
var matchToToken = require("js-tokens").matchToToken
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
[v8-perf]: http://v8project.blogspot.se/2017/01/speeding-up-v8-regular-expressions.html
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
### Version 2.0.0 (2016-06-19) ###
|
|
71
|
-
|
|
72
|
-
- Added: Support for ES2016. In other words, support for the `**` exponentiation
|
|
73
|
-
operator.
|
|
74
|
-
|
|
75
|
-
These are the breaking changes:
|
|
76
|
-
|
|
77
|
-
- `'**'.match(jsTokens)` no longer returns `['*', '*']`, but `['**']`.
|
|
78
|
-
- `'**='.match(jsTokens)` no longer returns `['*', '*=']`, but `['**=']`.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
### Version 1.0.3 (2016-03-27) ###
|
|
82
|
-
|
|
83
|
-
- Improved: Made the regex ever so slightly smaller.
|
|
84
|
-
- Updated: The readme.
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
### Version 1.0.2 (2015-10-18) ###
|
|
88
|
-
|
|
89
|
-
- Improved: Limited npm package contents for a smaller download. Thanks to
|
|
90
|
-
@zertosh!
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
### Version 1.0.1 (2015-06-20) ###
|
|
94
|
-
|
|
95
|
-
- Fixed: Declared an undeclared variable.
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
### Version 1.0.0 (2015-02-26) ###
|
|
99
|
-
|
|
100
|
-
- Changed: Merged the 'operator' and 'punctuation' types into 'punctuator'. That
|
|
101
|
-
type is now equivalent to the Punctuator token in the ECMAScript
|
|
102
|
-
specification. (Backwards-incompatible change.)
|
|
103
|
-
- Fixed: A `-` followed by a number is now correctly matched as a punctuator
|
|
104
|
-
followed by a number. It used to be matched as just a number, but there is no
|
|
105
|
-
such thing as negative number literals. (Possibly backwards-incompatible
|
|
106
|
-
change.)
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
### Version 0.4.1 (2015-02-21) ###
|
|
110
|
-
|
|
111
|
-
- Added: Support for the regex `u` flag.
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
### Version 0.4.0 (2015-02-21) ###
|
|
115
|
-
|
|
116
|
-
- Improved: `jsTokens.matchToToken` performance.
|
|
117
|
-
- Added: Support for octal and binary number literals.
|
|
118
|
-
- Added: Support for template strings.
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
### Version 0.3.1 (2015-01-06) ###
|
|
122
|
-
|
|
123
|
-
- Fixed: Support for unicode spaces. They used to be allowed in names (which is
|
|
124
|
-
very confusing), and some unicode newlines were wrongly allowed in strings and
|
|
125
|
-
regexes.
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
### Version 0.3.0 (2014-12-19) ###
|
|
129
|
-
|
|
130
|
-
- Changed: The `jsTokens.names` array has been replaced with the
|
|
131
|
-
`jsTokens.matchToToken` function. The capturing groups of `jsTokens` are no
|
|
132
|
-
longer part of the public API; instead use said function. See this [gist] for
|
|
133
|
-
an example. (Backwards-incompatible change.)
|
|
134
|
-
- Changed: The empty string is now considered an “invalid” token, instead an
|
|
135
|
-
“empty” token (its own group). (Backwards-incompatible change.)
|
|
136
|
-
- Removed: component support. (Backwards-incompatible change.)
|
|
137
|
-
|
|
138
|
-
[gist]: https://gist.github.com/lydell/be49dbf80c382c473004
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
### Version 0.2.0 (2014-06-19) ###
|
|
142
|
-
|
|
143
|
-
- Changed: Match ES6 function arrows (`=>`) as an operator, instead of its own
|
|
144
|
-
category (“functionArrow”), for simplicity. (Backwards-incompatible change.)
|
|
145
|
-
- Added: ES6 splats (`...`) are now matched as an operator (instead of three
|
|
146
|
-
punctuations). (Backwards-incompatible change.)
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
### Version 0.1.0 (2014-03-08) ###
|
|
150
|
-
|
|
151
|
-
- Initial release.
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2014, 2015, 2016, 2017, 2018 Simon Lydell
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|