@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.
Files changed (211) hide show
  1. package/dist/index.js +11 -11
  2. package/dist/index.js.map +1 -1
  3. package/package.json +5 -5
  4. package/packages/react/dist/index.js +17 -0
  5. package/packages/react/dist/index.js.map +1 -0
  6. package/packages/react/package.json +4 -4
  7. package/packages/react/{index.js → src/index.js} +0 -0
  8. package/.parcel-cache/3085beb0745a2550.txt +0 -2
  9. package/.parcel-cache/736b9fb319e7887f.txt +0 -2
  10. package/.parcel-cache/data.mdb +0 -0
  11. package/.parcel-cache/lock.mdb +0 -0
  12. package/packages/react/node_modules/.yarn-integrity +0 -105
  13. package/packages/react/node_modules/@domql/cache/LICENSE +0 -21
  14. package/packages/react/node_modules/@domql/cache/index.js +0 -0
  15. package/packages/react/node_modules/@domql/cache/package.json +0 -10
  16. package/packages/react/node_modules/@domql/cookie/LICENSE +0 -21
  17. package/packages/react/node_modules/@domql/cookie/index.js +0 -22
  18. package/packages/react/node_modules/@domql/cookie/package.json +0 -10
  19. package/packages/react/node_modules/@domql/define/LICENSE +0 -21
  20. package/packages/react/node_modules/@domql/define/index.js +0 -14
  21. package/packages/react/node_modules/@domql/define/package.json +0 -11
  22. package/packages/react/node_modules/@domql/domql/LICENSE +0 -21
  23. package/packages/react/node_modules/@domql/domql/dist/index.js +0 -93
  24. package/packages/react/node_modules/@domql/domql/dist/index.js.map +0 -1
  25. package/packages/react/node_modules/@domql/domql/package.json +0 -33
  26. package/packages/react/node_modules/@domql/element/LICENSE +0 -21
  27. package/packages/react/node_modules/@domql/element/package.json +0 -20
  28. package/packages/react/node_modules/@domql/element/src/assign.js +0 -22
  29. package/packages/react/node_modules/@domql/element/src/create.js +0 -125
  30. package/packages/react/node_modules/@domql/element/src/index.js +0 -8
  31. package/packages/react/node_modules/@domql/element/src/iterate.js +0 -80
  32. package/packages/react/node_modules/@domql/element/src/methods.js +0 -96
  33. package/packages/react/node_modules/@domql/element/src/set.js +0 -44
  34. package/packages/react/node_modules/@domql/element/src/update.js +0 -100
  35. package/packages/react/node_modules/@domql/event/LICENSE +0 -21
  36. package/packages/react/node_modules/@domql/event/package.json +0 -14
  37. package/packages/react/node_modules/@domql/event/src/can.js +0 -10
  38. package/packages/react/node_modules/@domql/event/src/index.js +0 -11
  39. package/packages/react/node_modules/@domql/event/src/is.js +0 -13
  40. package/packages/react/node_modules/@domql/event/src/on.js +0 -33
  41. package/packages/react/node_modules/@domql/event/src/store.js +0 -6
  42. package/packages/react/node_modules/@domql/event/src/wrappers.js +0 -14
  43. package/packages/react/node_modules/@domql/event/yarn-error.log +0 -44
  44. package/packages/react/node_modules/@domql/id/LICENSE +0 -21
  45. package/packages/react/node_modules/@domql/id/index.js +0 -12
  46. package/packages/react/node_modules/@domql/id/package.json +0 -10
  47. package/packages/react/node_modules/@domql/mixins/LICENSE +0 -21
  48. package/packages/react/node_modules/@domql/mixins/package.json +0 -12
  49. package/packages/react/node_modules/@domql/mixins/src/attr.js +0 -19
  50. package/packages/react/node_modules/@domql/mixins/src/classList.js +0 -37
  51. package/packages/react/node_modules/@domql/mixins/src/content.js +0 -17
  52. package/packages/react/node_modules/@domql/mixins/src/data.js +0 -21
  53. package/packages/react/node_modules/@domql/mixins/src/html.js +0 -17
  54. package/packages/react/node_modules/@domql/mixins/src/index.js +0 -11
  55. package/packages/react/node_modules/@domql/mixins/src/registry.js +0 -55
  56. package/packages/react/node_modules/@domql/mixins/src/state.js +0 -16
  57. package/packages/react/node_modules/@domql/mixins/src/style.js +0 -14
  58. package/packages/react/node_modules/@domql/mixins/src/text.js +0 -19
  59. package/packages/react/node_modules/@domql/node/LICENSE +0 -21
  60. package/packages/react/node_modules/@domql/node/package.json +0 -18
  61. package/packages/react/node_modules/@domql/node/src/cache.js +0 -53
  62. package/packages/react/node_modules/@domql/node/src/create.js +0 -86
  63. package/packages/react/node_modules/@domql/node/src/index.js +0 -5
  64. package/packages/react/node_modules/@domql/node/src/registry.js +0 -139
  65. package/packages/react/node_modules/@domql/node/yarn-error.log +0 -166
  66. package/packages/react/node_modules/@domql/parse/LICENSE +0 -21
  67. package/packages/react/node_modules/@domql/parse/index.js +0 -16
  68. package/packages/react/node_modules/@domql/parse/package.json +0 -10
  69. package/packages/react/node_modules/@domql/props/LICENSE +0 -21
  70. package/packages/react/node_modules/@domql/props/package.json +0 -10
  71. package/packages/react/node_modules/@domql/props/src/index.js +0 -62
  72. package/packages/react/node_modules/@domql/proto/LICENSE +0 -21
  73. package/packages/react/node_modules/@domql/proto/index.js +0 -66
  74. package/packages/react/node_modules/@domql/proto/package.json +0 -10
  75. package/packages/react/node_modules/@domql/react-transformer/LICENSE +0 -21
  76. package/packages/react/node_modules/@domql/react-transformer/dist/index.js +0 -62
  77. package/packages/react/node_modules/@domql/react-transformer/dist/index.js.map +0 -1
  78. package/packages/react/node_modules/@domql/react-transformer/package.json +0 -17
  79. package/packages/react/node_modules/@domql/report/LICENSE +0 -21
  80. package/packages/react/node_modules/@domql/report/index.js +0 -62
  81. package/packages/react/node_modules/@domql/report/package.json +0 -7
  82. package/packages/react/node_modules/@domql/state/LICENSE +0 -21
  83. package/packages/react/node_modules/@domql/state/package.json +0 -11
  84. package/packages/react/node_modules/@domql/state/src/index.js +0 -51
  85. package/packages/react/node_modules/@domql/tree/LICENSE +0 -21
  86. package/packages/react/node_modules/@domql/tree/index.js +0 -6
  87. package/packages/react/node_modules/@domql/tree/package.json +0 -10
  88. package/packages/react/node_modules/@domql/tree/root.js +0 -8
  89. package/packages/react/node_modules/@domql/utils/LICENSE +0 -21
  90. package/packages/react/node_modules/@domql/utils/package.json +0 -13
  91. package/packages/react/node_modules/@domql/utils/src/index.js +0 -5
  92. package/packages/react/node_modules/@domql/utils/src/node.js +0 -10
  93. package/packages/react/node_modules/@domql/utils/src/object.js +0 -193
  94. package/packages/react/node_modules/@domql/utils/src/protoUtils.js +0 -119
  95. package/packages/react/node_modules/@symbo.ls/block/package.json +0 -7
  96. package/packages/react/node_modules/@symbo.ls/block/packages/react/index.js +0 -1
  97. package/packages/react/node_modules/@symbo.ls/block/packages/react/package.json +0 -7
  98. package/packages/react/node_modules/@symbo.ls/block/src/index.js +0 -90
  99. package/packages/react/node_modules/@symbo.ls/block/src/style.js +0 -5
  100. package/packages/react/node_modules/@symbo.ls/datepicker/package.json +0 -12
  101. package/packages/react/node_modules/@symbo.ls/datepicker/packages/react/index.js +0 -1
  102. package/packages/react/node_modules/@symbo.ls/datepicker/packages/react/package.json +0 -7
  103. package/packages/react/node_modules/@symbo.ls/datepicker/src/index.js +0 -115
  104. package/packages/react/node_modules/@symbo.ls/datepicker/src/style.js +0 -100
  105. package/packages/react/node_modules/@symbo.ls/icon/package.json +0 -10
  106. package/packages/react/node_modules/@symbo.ls/icon/packages/react/index.js +0 -1
  107. package/packages/react/node_modules/@symbo.ls/icon/packages/react/package.json +0 -7
  108. package/packages/react/node_modules/@symbo.ls/icon/src/index.js +0 -14
  109. package/packages/react/node_modules/@symbo.ls/icon/src/style.js +0 -8
  110. package/packages/react/node_modules/@symbo.ls/shape/package.json +0 -7
  111. package/packages/react/node_modules/@symbo.ls/shape/packages/react/index.js +0 -1
  112. package/packages/react/node_modules/@symbo.ls/shape/packages/react/package.json +0 -7
  113. package/packages/react/node_modules/@symbo.ls/shape/src/index.js +0 -43
  114. package/packages/react/node_modules/@symbo.ls/shape/src/style.js +0 -102
  115. package/packages/react/node_modules/@symbo.ls/svg/package.json +0 -7
  116. package/packages/react/node_modules/@symbo.ls/svg/packages/react/index.js +0 -1
  117. package/packages/react/node_modules/@symbo.ls/svg/packages/react/package.json +0 -7
  118. package/packages/react/node_modules/@symbo.ls/svg/src/index.js +0 -14
  119. package/packages/react/node_modules/js-tokens/CHANGELOG.md +0 -151
  120. package/packages/react/node_modules/js-tokens/LICENSE +0 -21
  121. package/packages/react/node_modules/js-tokens/README.md +0 -240
  122. package/packages/react/node_modules/js-tokens/index.js +0 -23
  123. package/packages/react/node_modules/js-tokens/package.json +0 -30
  124. package/packages/react/node_modules/loose-envify/LICENSE +0 -21
  125. package/packages/react/node_modules/loose-envify/README.md +0 -45
  126. package/packages/react/node_modules/loose-envify/cli.js +0 -16
  127. package/packages/react/node_modules/loose-envify/custom.js +0 -4
  128. package/packages/react/node_modules/loose-envify/index.js +0 -3
  129. package/packages/react/node_modules/loose-envify/loose-envify.js +0 -36
  130. package/packages/react/node_modules/loose-envify/package.json +0 -36
  131. package/packages/react/node_modules/loose-envify/replace.js +0 -65
  132. package/packages/react/node_modules/object-assign/index.js +0 -90
  133. package/packages/react/node_modules/object-assign/license +0 -21
  134. package/packages/react/node_modules/object-assign/package.json +0 -42
  135. package/packages/react/node_modules/object-assign/readme.md +0 -61
  136. package/packages/react/node_modules/react/LICENSE +0 -21
  137. package/packages/react/node_modules/react/README.md +0 -13
  138. package/packages/react/node_modules/react/build-info.json +0 -8
  139. package/packages/react/node_modules/react/cjs/react-jsx-dev-runtime.development.js +0 -1203
  140. package/packages/react/node_modules/react/cjs/react-jsx-dev-runtime.production.min.js +0 -9
  141. package/packages/react/node_modules/react/cjs/react-jsx-dev-runtime.profiling.min.js +0 -9
  142. package/packages/react/node_modules/react/cjs/react-jsx-runtime.development.js +0 -1221
  143. package/packages/react/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -10
  144. package/packages/react/node_modules/react/cjs/react-jsx-runtime.profiling.min.js +0 -10
  145. package/packages/react/node_modules/react/cjs/react.development.js +0 -2333
  146. package/packages/react/node_modules/react/cjs/react.production.min.js +0 -23
  147. package/packages/react/node_modules/react/index.js +0 -7
  148. package/packages/react/node_modules/react/jsx-dev-runtime.js +0 -7
  149. package/packages/react/node_modules/react/jsx-runtime.js +0 -7
  150. package/packages/react/node_modules/react/package.json +0 -39
  151. package/packages/react/node_modules/react/umd/react.development.js +0 -3357
  152. package/packages/react/node_modules/react/umd/react.production.min.js +0 -31
  153. package/packages/react/node_modules/react/umd/react.profiling.min.js +0 -36
  154. package/packages/react/node_modules/react-dom/LICENSE +0 -21
  155. package/packages/react/node_modules/react-dom/README.md +0 -54
  156. package/packages/react/node_modules/react-dom/build-info.json +0 -8
  157. package/packages/react/node_modules/react-dom/cjs/react-dom-server.browser.development.js +0 -4342
  158. package/packages/react/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js +0 -51
  159. package/packages/react/node_modules/react-dom/cjs/react-dom-server.node.development.js +0 -4383
  160. package/packages/react/node_modules/react-dom/cjs/react-dom-server.node.production.min.js +0 -52
  161. package/packages/react/node_modules/react-dom/cjs/react-dom-test-utils.development.js +0 -2118
  162. package/packages/react/node_modules/react-dom/cjs/react-dom-test-utils.production.min.js +0 -43
  163. package/packages/react/node_modules/react-dom/cjs/react-dom.development.js +0 -26262
  164. package/packages/react/node_modules/react-dom/cjs/react-dom.production.min.js +0 -297
  165. package/packages/react/node_modules/react-dom/cjs/react-dom.profiling.min.js +0 -310
  166. package/packages/react/node_modules/react-dom/index.js +0 -38
  167. package/packages/react/node_modules/react-dom/package.json +0 -49
  168. package/packages/react/node_modules/react-dom/profiling.js +0 -38
  169. package/packages/react/node_modules/react-dom/server.browser.js +0 -7
  170. package/packages/react/node_modules/react-dom/server.js +0 -3
  171. package/packages/react/node_modules/react-dom/server.node.js +0 -7
  172. package/packages/react/node_modules/react-dom/test-utils.js +0 -7
  173. package/packages/react/node_modules/react-dom/umd/react-dom-server.browser.development.js +0 -4341
  174. package/packages/react/node_modules/react-dom/umd/react-dom-server.browser.production.min.js +0 -46
  175. package/packages/react/node_modules/react-dom/umd/react-dom-test-utils.development.js +0 -2136
  176. package/packages/react/node_modules/react-dom/umd/react-dom-test-utils.production.min.js +0 -35
  177. package/packages/react/node_modules/react-dom/umd/react-dom.development.js +0 -26292
  178. package/packages/react/node_modules/react-dom/umd/react-dom.production.min.js +0 -245
  179. package/packages/react/node_modules/react-dom/umd/react-dom.profiling.min.js +0 -252
  180. package/packages/react/node_modules/regenerator-runtime/LICENSE +0 -21
  181. package/packages/react/node_modules/regenerator-runtime/README.md +0 -31
  182. package/packages/react/node_modules/regenerator-runtime/package.json +0 -19
  183. package/packages/react/node_modules/regenerator-runtime/path.js +0 -11
  184. package/packages/react/node_modules/regenerator-runtime/runtime.js +0 -754
  185. package/packages/react/node_modules/scheduler/LICENSE +0 -21
  186. package/packages/react/node_modules/scheduler/README.md +0 -9
  187. package/packages/react/node_modules/scheduler/build-info.json +0 -8
  188. package/packages/react/node_modules/scheduler/cjs/scheduler-tracing.development.js +0 -347
  189. package/packages/react/node_modules/scheduler/cjs/scheduler-tracing.production.min.js +0 -9
  190. package/packages/react/node_modules/scheduler/cjs/scheduler-tracing.profiling.min.js +0 -16
  191. package/packages/react/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +0 -665
  192. package/packages/react/node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js +0 -19
  193. package/packages/react/node_modules/scheduler/cjs/scheduler-unstable_post_task.development.js +0 -206
  194. package/packages/react/node_modules/scheduler/cjs/scheduler-unstable_post_task.production.min.js +0 -13
  195. package/packages/react/node_modules/scheduler/cjs/scheduler.development.js +0 -646
  196. package/packages/react/node_modules/scheduler/cjs/scheduler.production.min.js +0 -20
  197. package/packages/react/node_modules/scheduler/index.js +0 -7
  198. package/packages/react/node_modules/scheduler/package.json +0 -40
  199. package/packages/react/node_modules/scheduler/tracing-profiling.js +0 -7
  200. package/packages/react/node_modules/scheduler/tracing.js +0 -7
  201. package/packages/react/node_modules/scheduler/umd/scheduler-tracing.development.js +0 -80
  202. package/packages/react/node_modules/scheduler/umd/scheduler-tracing.production.min.js +0 -80
  203. package/packages/react/node_modules/scheduler/umd/scheduler-tracing.profiling.min.js +0 -80
  204. package/packages/react/node_modules/scheduler/umd/scheduler-unstable_mock.development.js +0 -664
  205. package/packages/react/node_modules/scheduler/umd/scheduler-unstable_mock.production.min.js +0 -18
  206. package/packages/react/node_modules/scheduler/umd/scheduler.development.js +0 -152
  207. package/packages/react/node_modules/scheduler/umd/scheduler.production.min.js +0 -146
  208. package/packages/react/node_modules/scheduler/umd/scheduler.profiling.min.js +0 -146
  209. package/packages/react/node_modules/scheduler/unstable_mock.js +0 -7
  210. package/packages/react/node_modules/scheduler/unstable_post_task.js +0 -7
  211. 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,10 +0,0 @@
1
- {
2
- "name": "@symbo.ls/icon",
3
- "version": "0.5.3",
4
- "main": "src/index.js",
5
- "license": "MIT",
6
- "gitHead": "f0c29fae632536241c4e803b880991748344f7c5",
7
- "dependencies": {
8
- "@symbo.ls/svg": "^0.5.3"
9
- }
10
- }
@@ -1,7 +0,0 @@
1
- {
2
- "name": "@symbo.ls/react-icon",
3
- "version": "0.5.3",
4
- "main": "index.js",
5
- "license": "MIT",
6
- "gitHead": "f0c29fae632536241c4e803b880991748344f7c5"
7
- }
@@ -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,8 +0,0 @@
1
- 'use strict'
2
-
3
- export default {
4
- width: '1em',
5
- height: '1em',
6
- fill: 'currentColor',
7
- display: 'inline-block'
8
- }
@@ -1,7 +0,0 @@
1
- {
2
- "name": "@symbo.ls/shape",
3
- "version": "0.5.3",
4
- "main": "src/index.js",
5
- "license": "MIT",
6
- "gitHead": "f0c29fae632536241c4e803b880991748344f7c5"
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "name": "@symbo.ls/react-shape",
3
- "version": "0.5.3",
4
- "main": "index.js",
5
- "license": "MIT",
6
- "gitHead": "f0c29fae632536241c4e803b880991748344f7c5"
7
- }
@@ -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,7 +0,0 @@
1
- {
2
- "name": "@symbo.ls/svg",
3
- "version": "0.5.3",
4
- "main": "src/index.js",
5
- "license": "MIT",
6
- "gitHead": "f0c29fae632536241c4e803b880991748344f7c5"
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "name": "@symbo.ls/react-svg",
3
- "version": "0.5.3",
4
- "main": "index.js",
5
- "license": "MIT",
6
- "gitHead": "f0c29fae632536241c4e803b880991748344f7c5"
7
- }
@@ -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.