@chronogrove/ui 0.76.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/.turbo/turbo-test$colon$coverage.log +44 -0
- package/.turbo/turbo-test.log +168 -0
- package/LICENSE +9 -0
- package/README.md +41 -0
- package/babel.config.cjs +9 -0
- package/coverage/clover.xml +131 -0
- package/coverage/coverage-final.json +13 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/browser-sync.js.html +268 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +161 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +210 -0
- package/coverage/lcov-report/src/button.js.html +160 -0
- package/coverage/lcov-report/src/color-mode/browser-sync.js.html +268 -0
- package/coverage/lcov-report/src/color-mode/constants.js.html +121 -0
- package/coverage/lcov-report/src/color-mode/head-inline.js.html +304 -0
- package/coverage/lcov-report/src/color-mode/index.html +176 -0
- package/coverage/lcov-report/src/color-mode/index.js.html +124 -0
- package/coverage/lcov-report/src/color-mode/normalize.js.html +112 -0
- package/coverage/lcov-report/src/color-mode/resolve-theme-colors.js.html +154 -0
- package/coverage/lcov-report/src/color-toggle.js.html +142 -0
- package/coverage/lcov-report/src/emotion-cache.js.html +151 -0
- package/coverage/lcov-report/src/helpers/index.html +116 -0
- package/coverage/lcov-report/src/helpers/isDarkMode.js.html +91 -0
- package/coverage/lcov-report/src/index.html +161 -0
- package/coverage/lcov-report/src/provider.js.html +124 -0
- package/coverage/lcov-report/src/skip-nav/SkipNavContent.js.html +133 -0
- package/coverage/lcov-report/src/skip-nav/SkipNavLink.js.html +301 -0
- package/coverage/lcov-report/src/skip-nav/index.html +131 -0
- package/coverage/lcov-report/src/theme.js.html +2143 -0
- package/coverage/lcov.info +309 -0
- package/jest.config.cjs +32 -0
- package/jest.setup.cjs +1 -0
- package/package.json +73 -0
- package/src/__snapshots__/theme.spec.js.snap +1027 -0
- package/src/button.js +25 -0
- package/src/button.spec.js +16 -0
- package/src/color-mode/browser-sync.js +61 -0
- package/src/color-mode/browser-sync.node.spec.js +15 -0
- package/src/color-mode/browser-sync.spec.js +137 -0
- package/src/color-mode/constants.js +12 -0
- package/src/color-mode/head-inline.js +73 -0
- package/src/color-mode/head-inline.spec.js +33 -0
- package/src/color-mode/index.js +13 -0
- package/src/color-mode/normalize.js +9 -0
- package/src/color-mode/normalize.spec.js +17 -0
- package/src/color-mode/resolve-theme-colors.js +23 -0
- package/src/color-mode/resolve-theme-colors.spec.js +39 -0
- package/src/color-toggle.js +19 -0
- package/src/color-toggle.spec.js +35 -0
- package/src/emotion-cache.js +22 -0
- package/src/emotion-cache.spec.js +30 -0
- package/src/helpers/isDarkMode.js +2 -0
- package/src/helpers/isDarkMode.spec.js +9 -0
- package/src/index.js +1 -0
- package/src/provider.js +13 -0
- package/src/provider.spec.js +25 -0
- package/src/skip-nav/SkipNavContent.js +16 -0
- package/src/skip-nav/SkipNavContent.spec.js +22 -0
- package/src/skip-nav/SkipNavLink.js +72 -0
- package/src/skip-nav/SkipNavLink.spec.js +56 -0
- package/src/skip-nav/index.js +2 -0
- package/src/theme.js +686 -0
- package/src/theme.spec.js +56 -0
- package/test-utils/mock-theme-toggles-react.js +10 -0
- package/turbo.json +12 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
> @chronogrove/ui@0.76.0 test:coverage /Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui
|
|
3
|
+
> jest --config jest.config.cjs --coverage --colors --maxWorkers=2
|
|
4
|
+
|
|
5
|
+
PASS src/color-mode/browser-sync.spec.js
|
|
6
|
+
PASS src/skip-nav/SkipNavLink.spec.js
|
|
7
|
+
PASS src/color-toggle.spec.js
|
|
8
|
+
PASS src/emotion-cache.spec.js
|
|
9
|
+
PASS src/skip-nav/SkipNavContent.spec.js
|
|
10
|
+
PASS src/provider.spec.js
|
|
11
|
+
PASS src/color-mode/normalize.spec.js
|
|
12
|
+
PASS src/button.spec.js
|
|
13
|
+
PASS src/color-mode/browser-sync.node.spec.js
|
|
14
|
+
PASS src/helpers/isDarkMode.spec.js
|
|
15
|
+
PASS src/theme.spec.js
|
|
16
|
+
PASS src/color-mode/head-inline.spec.js
|
|
17
|
+
PASS src/color-mode/resolve-theme-colors.spec.js
|
|
18
|
+
--------------------------|---------|----------|---------|---------|-------------------
|
|
19
|
+
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
|
|
20
|
+
--------------------------|---------|----------|---------|---------|-------------------
|
|
21
|
+
All files | 98.75 | 96.15 | 100 | 98.7 |
|
|
22
|
+
src | 100 | 88.88 | 100 | 100 |
|
|
23
|
+
button.js | 100 | 100 | 100 | 100 |
|
|
24
|
+
color-toggle.js | 100 | 100 | 100 | 100 |
|
|
25
|
+
emotion-cache.js | 100 | 83.33 | 100 | 100 | 7
|
|
26
|
+
provider.js | 100 | 100 | 100 | 100 |
|
|
27
|
+
src/color-mode | 98.21 | 98.21 | 100 | 98.14 |
|
|
28
|
+
browser-sync.js | 97.05 | 96.66 | 100 | 96.87 | 44
|
|
29
|
+
constants.js | 100 | 100 | 100 | 100 |
|
|
30
|
+
head-inline.js | 100 | 100 | 100 | 100 |
|
|
31
|
+
normalize.js | 100 | 100 | 100 | 100 |
|
|
32
|
+
resolve-theme-colors.js | 100 | 100 | 100 | 100 |
|
|
33
|
+
src/helpers | 100 | 100 | 100 | 100 |
|
|
34
|
+
isDarkMode.js | 100 | 100 | 100 | 100 |
|
|
35
|
+
src/skip-nav | 100 | 92.3 | 100 | 100 |
|
|
36
|
+
SkipNavContent.js | 100 | 100 | 100 | 100 |
|
|
37
|
+
SkipNavLink.js | 100 | 90.9 | 100 | 100 | 7
|
|
38
|
+
--------------------------|---------|----------|---------|---------|-------------------
|
|
39
|
+
|
|
40
|
+
Test Suites: 13 passed, 13 total
|
|
41
|
+
Tests: 39 passed, 39 total
|
|
42
|
+
Snapshots: 1 passed, 1 total
|
|
43
|
+
Time: 1.111 s
|
|
44
|
+
Ran all test suites.
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @chronogrove/ui@0.76.0 test /Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui
|
|
4
|
+
> jest --config jest.config.cjs
|
|
5
|
+
|
|
6
|
+
[1m[2mDetermining test suites to run...[22m[22m[?2026h[999D[K
|
|
7
|
+
[?2026l[?2026h
|
|
8
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mbrowser-sync.spec.js[22m
|
|
9
|
+
[?2026l[?2026h
|
|
10
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mbrowser-sync.spec.js[22m
|
|
11
|
+
[?2026l[?2026h
|
|
12
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mbrowser-sync.spec.js[22m
|
|
13
|
+
[?2026l[?2026h
|
|
14
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mbrowser-sync.spec.js[22m
|
|
15
|
+
[?2026l[?2026h
|
|
16
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mbrowser-sync.spec.js[22m
|
|
17
|
+
[?2026l[?2026h
|
|
18
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mbrowser-sync.spec.js[22m
|
|
19
|
+
[?2026l[?2026h
|
|
20
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mbrowser-sync.spec.js[22m
|
|
21
|
+
[?2026l[?2026h
|
|
22
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mbrowser-sync.spec.js[22m
|
|
23
|
+
[?2026l[?2026h
|
|
24
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mbrowser-sync.spec.js[22m
|
|
25
|
+
[?2026l[?2026h
|
|
26
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mbrowser-sync.spec.js[22m
|
|
27
|
+
[?2026l[?2026h
|
|
28
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mbrowser-sync.spec.js[22m
|
|
29
|
+
[?2026l[?2026h
|
|
30
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mbrowser-sync.spec.js[22m
|
|
31
|
+
[?2026l[?2026h
|
|
32
|
+
|
|
33
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mbrowser-sync.spec.js[22m
|
|
34
|
+
[?2026l[?2026h
|
|
35
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mbrowser-sync.spec.js[22m
|
|
36
|
+
[?2026l[?2026h
|
|
37
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/skip-nav/[22m[1mSkipNavLink.spec.js[22m
|
|
38
|
+
[?2026l[?2026h
|
|
39
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/skip-nav/[22m[1mSkipNavLink.spec.js[22m
|
|
40
|
+
[?2026l[?2026h
|
|
41
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/skip-nav/[22m[1mSkipNavLink.spec.js[22m
|
|
42
|
+
[?2026l[?2026h
|
|
43
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/skip-nav/[22m[1mSkipNavLink.spec.js[22m
|
|
44
|
+
[?2026l[?2026h
|
|
45
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/skip-nav/[22m[1mSkipNavLink.spec.js[22m
|
|
46
|
+
[?2026l[?2026h
|
|
47
|
+
|
|
48
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/skip-nav/[22m[1mSkipNavLink.spec.js[22m
|
|
49
|
+
[?2026l[?2026h
|
|
50
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1mprovider.spec.js[22m
|
|
51
|
+
[?2026l[?2026h
|
|
52
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1mprovider.spec.js[22m
|
|
53
|
+
[?2026l[?2026h
|
|
54
|
+
|
|
55
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1mprovider.spec.js[22m
|
|
56
|
+
[?2026l[?2026h
|
|
57
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1mbutton.spec.js[22m
|
|
58
|
+
[?2026l[?2026h
|
|
59
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1mbutton.spec.js[22m
|
|
60
|
+
[?2026l[?2026h
|
|
61
|
+
|
|
62
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1mbutton.spec.js[22m
|
|
63
|
+
[?2026l[?2026h
|
|
64
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1mcolor-toggle.spec.js[22m
|
|
65
|
+
[?2026l[?2026h
|
|
66
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1mcolor-toggle.spec.js[22m
|
|
67
|
+
[?2026l[?2026h
|
|
68
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1mcolor-toggle.spec.js[22m
|
|
69
|
+
[?2026l[?2026h
|
|
70
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1mcolor-toggle.spec.js[22m
|
|
71
|
+
[?2026l[?2026h
|
|
72
|
+
|
|
73
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1mcolor-toggle.spec.js[22m
|
|
74
|
+
[?2026l[?2026h
|
|
75
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mbrowser-sync.node.spec.js[22m
|
|
76
|
+
[?2026l[?2026h
|
|
77
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mbrowser-sync.node.spec.js[22m
|
|
78
|
+
[?2026l[?2026h
|
|
79
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mbrowser-sync.node.spec.js[22m
|
|
80
|
+
[?2026l[?2026h
|
|
81
|
+
|
|
82
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mbrowser-sync.node.spec.js[22m
|
|
83
|
+
[?2026l[?2026h
|
|
84
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mhead-inline.spec.js[22m
|
|
85
|
+
[?2026l[?2026h
|
|
86
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mhead-inline.spec.js[22m
|
|
87
|
+
[?2026l[?2026h
|
|
88
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mhead-inline.spec.js[22m
|
|
89
|
+
[?2026l[?2026h
|
|
90
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mhead-inline.spec.js[22m
|
|
91
|
+
[?2026l[?2026h
|
|
92
|
+
|
|
93
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mhead-inline.spec.js[22m
|
|
94
|
+
[?2026l[?2026h
|
|
95
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/skip-nav/[22m[1mSkipNavContent.spec.js[22m
|
|
96
|
+
[?2026l[?2026h
|
|
97
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/skip-nav/[22m[1mSkipNavContent.spec.js[22m
|
|
98
|
+
[?2026l[?2026h
|
|
99
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/skip-nav/[22m[1mSkipNavContent.spec.js[22m
|
|
100
|
+
[?2026l[?2026h
|
|
101
|
+
|
|
102
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/skip-nav/[22m[1mSkipNavContent.spec.js[22m
|
|
103
|
+
[?2026l[?2026h
|
|
104
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1mtheme.spec.js[22m
|
|
105
|
+
[?2026l[?2026h
|
|
106
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1mtheme.spec.js[22m
|
|
107
|
+
[?2026l[?2026h
|
|
108
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1mtheme.spec.js[22m
|
|
109
|
+
[?2026l[?2026h
|
|
110
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1mtheme.spec.js[22m
|
|
111
|
+
[?2026l[?2026h
|
|
112
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1mtheme.spec.js[22m
|
|
113
|
+
[?2026l[?2026h
|
|
114
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1mtheme.spec.js[22m
|
|
115
|
+
[?2026l[?2026h
|
|
116
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1mtheme.spec.js[22m
|
|
117
|
+
[?2026l[?2026h
|
|
118
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1mtheme.spec.js[22m
|
|
119
|
+
[?2026l[?2026h
|
|
120
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1mtheme.spec.js[22m
|
|
121
|
+
[?2026l[?2026h
|
|
122
|
+
|
|
123
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1mtheme.spec.js[22m
|
|
124
|
+
[?2026l[?2026h
|
|
125
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/helpers/[22m[1misDarkMode.spec.js[22m
|
|
126
|
+
[?2026l[?2026h
|
|
127
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/helpers/[22m[1misDarkMode.spec.js[22m
|
|
128
|
+
[?2026l[?2026h
|
|
129
|
+
|
|
130
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/helpers/[22m[1misDarkMode.spec.js[22m
|
|
131
|
+
[?2026l[?2026h
|
|
132
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mresolve-theme-colors.spec.js[22m
|
|
133
|
+
[?2026l[?2026h
|
|
134
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mresolve-theme-colors.spec.js[22m
|
|
135
|
+
[?2026l[?2026h
|
|
136
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mresolve-theme-colors.spec.js[22m
|
|
137
|
+
[?2026l[?2026h
|
|
138
|
+
|
|
139
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mresolve-theme-colors.spec.js[22m
|
|
140
|
+
[?2026l[?2026h
|
|
141
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1memotion-cache.spec.js[22m
|
|
142
|
+
[?2026l[?2026h
|
|
143
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1memotion-cache.spec.js[22m
|
|
144
|
+
[?2026l[?2026h
|
|
145
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1memotion-cache.spec.js[22m
|
|
146
|
+
[?2026l[?2026h
|
|
147
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1memotion-cache.spec.js[22m
|
|
148
|
+
[?2026l[?2026h
|
|
149
|
+
|
|
150
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/[22m[1memotion-cache.spec.js[22m
|
|
151
|
+
[?2026l[?2026h
|
|
152
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mnormalize.spec.js[22m
|
|
153
|
+
[?2026l[?2026h
|
|
154
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mnormalize.spec.js[22m
|
|
155
|
+
[?2026l[?2026h
|
|
156
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mnormalize.spec.js[22m
|
|
157
|
+
[?2026l[?2026h
|
|
158
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mnormalize.spec.js[22m
|
|
159
|
+
[?2026l[?2026h
|
|
160
|
+
|
|
161
|
+
[0m[7m[33m[1m RUNS [22m[39m[27m[0m [2msrc/color-mode/[22m[1mnormalize.spec.js[22m
|
|
162
|
+
[?2026l[?2026h
|
|
163
|
+
[1mTest Suites: [22m[1m[32m13 passed[39m[22m, 13 total
|
|
164
|
+
[1mTests: [22m[1m[32m40 passed[39m[22m, 40 total
|
|
165
|
+
[1mSnapshots: [22m[1m[32m1 passed[39m[22m, 1 total
|
|
166
|
+
[1mTime:[22m 0.812 s, estimated 1 s
|
|
167
|
+
[2mRan all test suites[22m[2m.[22m
|
|
168
|
+
[?2026h[?2026l
|
package/LICENSE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 Chris Vogt <mail@chrisvogt.me>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# `@chronogrove/ui`
|
|
2
|
+
|
|
3
|
+
Shared **Theme UI** theme, color-mode (light/dark) helpers, **Emotion** cache utilities, and small **Gatsby-independent** components used by [`gatsby-theme-chronogrove`](../../theme/README.md).
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
In this monorepo the theme uses `workspace:*`. In another project (after publish):
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pnpm add @chronogrove/ui
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Use **`pnpm publish`** for releases so `workspace:` dependencies in dependents are rewritten; see [pnpm workspaces — publishing](https://pnpm.io/workspaces#publishing-workspace-packages).
|
|
14
|
+
|
|
15
|
+
## Subpath exports
|
|
16
|
+
|
|
17
|
+
Prefer deep imports so bundles stay lean:
|
|
18
|
+
|
|
19
|
+
| Import path | Contents |
|
|
20
|
+
| ------------------------------- | -------------------------------------------------------------------------------------------------- |
|
|
21
|
+
| `@chronogrove/ui` | `ChronogroveThemeProvider` |
|
|
22
|
+
| `@chronogrove/ui/theme` | Default Theme UI theme object + named exports |
|
|
23
|
+
| `@chronogrove/ui/provider` | `ChronogroveThemeProvider` |
|
|
24
|
+
| `@chronogrove/ui/color-mode` | Storage key, reconcile event, SSR inline builders, `resolveChronogroveSurfaceColors`, browser sync |
|
|
25
|
+
| `@chronogrove/ui/emotion-cache` | `createChronogroveEmotionCache`, `getChronogroveEmotionCache` |
|
|
26
|
+
| `@chronogrove/ui/button` | Theme UI `components` button |
|
|
27
|
+
| `@chronogrove/ui/color-toggle` | Theme UI + `@theme-toggles/react` toggle |
|
|
28
|
+
| `@chronogrove/ui/skip-nav` | `SkipNavLink`, `SkipNavContent` |
|
|
29
|
+
| `@chronogrove/ui/is-dark-mode` | `colorMode === 'dark'` helper |
|
|
30
|
+
|
|
31
|
+
## Next.js (App Router)
|
|
32
|
+
|
|
33
|
+
Anything using `useColorMode`, `useThemeUI`, or the provider must run in a **client** component (`'use client'`). Stack **Emotion** `CacheProvider` (with the `meta[name="emotion-insertion-point"]` pattern) **outside** `ChronogroveThemeProvider`. Detailed integration is tracked as follow-up work in the repo roadmap.
|
|
34
|
+
|
|
35
|
+
## Changelog
|
|
36
|
+
|
|
37
|
+
Releases are recorded in the repository root [`CHANGELOG.md`](../../CHANGELOG.md).
|
|
38
|
+
|
|
39
|
+
## License
|
|
40
|
+
|
|
41
|
+
MIT (same as the parent repository).
|
package/babel.config.cjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Jest transforms @emotion and JSX; mirror theme with classic runtime.
|
|
3
|
+
*/
|
|
4
|
+
module.exports = {
|
|
5
|
+
presets: [
|
|
6
|
+
[require.resolve('@babel/preset-env'), { targets: { node: 'current' } }],
|
|
7
|
+
[require.resolve('@babel/preset-react'), { runtime: 'classic', useBuiltIns: true }]
|
|
8
|
+
]
|
|
9
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<coverage generated="1775797645097" clover="3.2.0">
|
|
3
|
+
<project timestamp="1775797645097" name="All files">
|
|
4
|
+
<metrics statements="77" coveredstatements="77" conditionals="78" coveredconditionals="76" methods="23" coveredmethods="23" elements="178" coveredelements="176" complexity="0" loc="77" ncloc="77" packages="4" files="12" classes="12"/>
|
|
5
|
+
<package name="src">
|
|
6
|
+
<metrics statements="12" coveredstatements="12" conditionals="9" coveredconditionals="8" methods="6" coveredmethods="6"/>
|
|
7
|
+
<file name="button.js" path="/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/button.js">
|
|
8
|
+
<metrics statements="2" coveredstatements="2" conditionals="1" coveredconditionals="1" methods="1" coveredmethods="1"/>
|
|
9
|
+
<line num="4" count="1" type="cond" truecount="1" falsecount="0"/>
|
|
10
|
+
<line num="5" count="1" type="stmt"/>
|
|
11
|
+
</file>
|
|
12
|
+
<file name="color-toggle.js" path="/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/color-toggle.js">
|
|
13
|
+
<metrics statements="3" coveredstatements="3" conditionals="2" coveredconditionals="2" methods="2" coveredmethods="2"/>
|
|
14
|
+
<line num="7" count="2" type="stmt"/>
|
|
15
|
+
<line num="9" count="2" type="stmt"/>
|
|
16
|
+
<line num="13" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
17
|
+
</file>
|
|
18
|
+
<file name="emotion-cache.js" path="/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/emotion-cache.js">
|
|
19
|
+
<metrics statements="6" coveredstatements="6" conditionals="6" coveredconditionals="5" methods="2" coveredmethods="2"/>
|
|
20
|
+
<line num="3" count="2" type="stmt"/>
|
|
21
|
+
<line num="7" count="2" type="cond" truecount="1" falsecount="1"/>
|
|
22
|
+
<line num="9" count="2" type="stmt"/>
|
|
23
|
+
<line num="18" count="3" type="cond" truecount="2" falsecount="0"/>
|
|
24
|
+
<line num="19" count="2" type="stmt"/>
|
|
25
|
+
<line num="21" count="3" type="stmt"/>
|
|
26
|
+
</file>
|
|
27
|
+
<file name="provider.js" path="/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/provider.js">
|
|
28
|
+
<metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
|
|
29
|
+
<line num="6" count="1" type="stmt"/>
|
|
30
|
+
</file>
|
|
31
|
+
</package>
|
|
32
|
+
<package name="src.color-mode">
|
|
33
|
+
<metrics statements="54" coveredstatements="54" conditionals="56" coveredconditionals="56" methods="14" coveredmethods="14"/>
|
|
34
|
+
<file name="browser-sync.js" path="/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/color-mode/browser-sync.js">
|
|
35
|
+
<metrics statements="32" coveredstatements="32" conditionals="30" coveredconditionals="30" methods="7" coveredmethods="7"/>
|
|
36
|
+
<line num="6" count="13" type="stmt"/>
|
|
37
|
+
<line num="7" count="13" type="cond" truecount="2" falsecount="0"/>
|
|
38
|
+
<line num="9" count="1" type="stmt"/>
|
|
39
|
+
<line num="11" count="13" type="stmt"/>
|
|
40
|
+
<line num="12" count="13" type="cond" truecount="2" falsecount="0"/>
|
|
41
|
+
<line num="13" count="7" type="stmt"/>
|
|
42
|
+
<line num="16" count="6" type="cond" truecount="2" falsecount="0"/>
|
|
43
|
+
<line num="17" count="5" type="stmt"/>
|
|
44
|
+
<line num="18" count="5" type="stmt"/>
|
|
45
|
+
<line num="19" count="5" type="cond" truecount="2" falsecount="0"/>
|
|
46
|
+
<line num="20" count="1" type="stmt"/>
|
|
47
|
+
<line num="22" count="4" type="cond" truecount="2" falsecount="0"/>
|
|
48
|
+
<line num="23" count="1" type="stmt"/>
|
|
49
|
+
<line num="25" count="3" type="cond" truecount="4" falsecount="0"/>
|
|
50
|
+
<line num="26" count="1" type="stmt"/>
|
|
51
|
+
<line num="31" count="3" type="cond" truecount="3" falsecount="0"/>
|
|
52
|
+
<line num="35" count="3" type="cond" truecount="2" falsecount="0"/>
|
|
53
|
+
<line num="39" count="8" type="cond" truecount="2" falsecount="0"/>
|
|
54
|
+
<line num="40" count="1" type="stmt"/>
|
|
55
|
+
<line num="42" count="7" type="stmt"/>
|
|
56
|
+
<line num="43" count="7" type="cond" truecount="2" falsecount="0"/>
|
|
57
|
+
<line num="44" count="1" type="stmt"/>
|
|
58
|
+
<line num="46" count="6" type="stmt"/>
|
|
59
|
+
<line num="47" count="6" type="stmt"/>
|
|
60
|
+
<line num="48" count="4" type="stmt"/>
|
|
61
|
+
<line num="49" count="4" type="stmt"/>
|
|
62
|
+
<line num="50" count="6" type="stmt"/>
|
|
63
|
+
<line num="51" count="6" type="stmt"/>
|
|
64
|
+
<line num="55" count="2" type="stmt"/>
|
|
65
|
+
<line num="56" count="2" type="cond" truecount="4" falsecount="0"/>
|
|
66
|
+
<line num="57" count="1" type="stmt"/>
|
|
67
|
+
<line num="59" count="1" type="stmt"/>
|
|
68
|
+
</file>
|
|
69
|
+
<file name="constants.js" path="/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/color-mode/constants.js">
|
|
70
|
+
<metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
|
|
71
|
+
<line num="2" count="3" type="stmt"/>
|
|
72
|
+
<line num="5" count="3" type="stmt"/>
|
|
73
|
+
<line num="8" count="3" type="stmt"/>
|
|
74
|
+
</file>
|
|
75
|
+
<file name="head-inline.js" path="/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/color-mode/head-inline.js">
|
|
76
|
+
<metrics statements="8" coveredstatements="8" conditionals="2" coveredconditionals="2" methods="4" coveredmethods="4"/>
|
|
77
|
+
<line num="4" count="4" type="stmt"/>
|
|
78
|
+
<line num="8" count="1" type="stmt"/>
|
|
79
|
+
<line num="9" count="1" type="stmt"/>
|
|
80
|
+
<line num="44" count="1" type="stmt"/>
|
|
81
|
+
<line num="45" count="1" type="stmt"/>
|
|
82
|
+
<line num="46" count="1" type="stmt"/>
|
|
83
|
+
<line num="47" count="1" type="stmt"/>
|
|
84
|
+
<line num="69" count="1" type="stmt"/>
|
|
85
|
+
</file>
|
|
86
|
+
<file name="normalize.js" path="/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/color-mode/normalize.js">
|
|
87
|
+
<metrics statements="5" coveredstatements="5" conditionals="6" coveredconditionals="6" methods="1" coveredmethods="1"/>
|
|
88
|
+
<line num="2" count="23" type="cond" truecount="2" falsecount="0"/>
|
|
89
|
+
<line num="3" count="5" type="stmt"/>
|
|
90
|
+
<line num="5" count="18" type="cond" truecount="4" falsecount="0"/>
|
|
91
|
+
<line num="6" count="6" type="stmt"/>
|
|
92
|
+
<line num="8" count="12" type="stmt"/>
|
|
93
|
+
</file>
|
|
94
|
+
<file name="resolve-theme-colors.js" path="/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/color-mode/resolve-theme-colors.js">
|
|
95
|
+
<metrics statements="6" coveredstatements="6" conditionals="18" coveredconditionals="18" methods="2" coveredmethods="2"/>
|
|
96
|
+
<line num="2" count="12" type="cond" truecount="2" falsecount="0"/>
|
|
97
|
+
<line num="3" count="6" type="stmt"/>
|
|
98
|
+
<line num="5" count="6" type="stmt"/>
|
|
99
|
+
<line num="13" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
100
|
+
<line num="14" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
101
|
+
<line num="15" count="2" type="stmt"/>
|
|
102
|
+
</file>
|
|
103
|
+
</package>
|
|
104
|
+
<package name="src.helpers">
|
|
105
|
+
<metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
|
|
106
|
+
<file name="isDarkMode.js" path="/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/helpers/isDarkMode.js">
|
|
107
|
+
<metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
|
|
108
|
+
<line num="1" count="9" type="stmt"/>
|
|
109
|
+
</file>
|
|
110
|
+
</package>
|
|
111
|
+
<package name="src.skip-nav">
|
|
112
|
+
<metrics statements="10" coveredstatements="10" conditionals="13" coveredconditionals="12" methods="2" coveredmethods="2"/>
|
|
113
|
+
<file name="SkipNavContent.js" path="/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/skip-nav/SkipNavContent.js">
|
|
114
|
+
<metrics statements="3" coveredstatements="3" conditionals="2" coveredconditionals="2" methods="1" coveredmethods="1"/>
|
|
115
|
+
<line num="3" count="1" type="stmt"/>
|
|
116
|
+
<line num="7" count="1" type="stmt"/>
|
|
117
|
+
<line num="14" count="1" type="stmt"/>
|
|
118
|
+
</file>
|
|
119
|
+
<file name="SkipNavLink.js" path="/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/skip-nav/SkipNavLink.js">
|
|
120
|
+
<metrics statements="7" coveredstatements="7" conditionals="11" coveredconditionals="10" methods="1" coveredmethods="1"/>
|
|
121
|
+
<line num="6" count="1" type="stmt"/>
|
|
122
|
+
<line num="10" count="4" type="stmt"/>
|
|
123
|
+
<line num="11" count="4" type="stmt"/>
|
|
124
|
+
<line num="12" count="4" type="cond" truecount="4" falsecount="0"/>
|
|
125
|
+
<line num="13" count="4" type="cond" truecount="4" falsecount="0"/>
|
|
126
|
+
<line num="15" count="4" type="stmt"/>
|
|
127
|
+
<line num="70" count="1" type="stmt"/>
|
|
128
|
+
</file>
|
|
129
|
+
</package>
|
|
130
|
+
</project>
|
|
131
|
+
</coverage>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/button.js": {"path":"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/button.js","statementMap":{"0":{"start":{"line":4,"column":15},"end":{"line":23,"column":1}},"1":{"start":{"line":5,"column":2},"end":{"line":22,"column":4}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":15},"end":{"line":4,"column":16}},"loc":{"start":{"line":5,"column":2},"end":{"line":22,"column":4}},"line":5}},"branchMap":{"0":{"loc":{"start":{"line":4,"column":18},"end":{"line":4,"column":37}},"type":"default-arg","locations":[{"start":{"line":4,"column":28},"end":{"line":4,"column":37}}],"line":4}},"s":{"0":1,"1":1},"f":{"0":1},"b":{"0":[1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"65decdf2626f94b158fa6d5336bd6cdb0aa037fc"}
|
|
2
|
+
,"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/color-toggle.js": {"path":"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/color-toggle.js","statementMap":{"0":{"start":{"line":7,"column":36},"end":{"line":7,"column":50}},"1":{"start":{"line":9,"column":2},"end":{"line":18,"column":3}},"2":{"start":{"line":13,"column":20},"end":{"line":13,"column":78}}},"fnMap":{"0":{"name":"ColorToggle","decl":{"start":{"line":6,"column":24},"end":{"line":6,"column":35}},"loc":{"start":{"line":6,"column":38},"end":{"line":19,"column":1}},"line":6},"1":{"name":"(anonymous_1)","decl":{"start":{"line":13,"column":14},"end":{"line":13,"column":15}},"loc":{"start":{"line":13,"column":20},"end":{"line":13,"column":78}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":13,"column":33},"end":{"line":13,"column":77}},"type":"cond-expr","locations":[{"start":{"line":13,"column":59},"end":{"line":13,"column":65}},{"start":{"line":13,"column":68},"end":{"line":13,"column":77}}],"line":13}},"s":{"0":2,"1":2,"2":2},"f":{"0":2,"1":2},"b":{"0":[1,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"966d9997c80588f1d96126eef67bab33fc7e0c75"}
|
|
3
|
+
,"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/emotion-cache.js": {"path":"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/emotion-cache.js","statementMap":{"0":{"start":{"line":3,"column":18},"end":{"line":3,"column":23}},"1":{"start":{"line":7,"column":4},"end":{"line":7,"column":112}},"2":{"start":{"line":9,"column":2},"end":{"line":12,"column":4}},"3":{"start":{"line":18,"column":2},"end":{"line":20,"column":3}},"4":{"start":{"line":19,"column":4},"end":{"line":19,"column":59}},"5":{"start":{"line":21,"column":2},"end":{"line":21,"column":30}}},"fnMap":{"0":{"name":"createChronogroveEmotionCache","decl":{"start":{"line":5,"column":16},"end":{"line":5,"column":45}},"loc":{"start":{"line":5,"column":48},"end":{"line":13,"column":1}},"line":5},"1":{"name":"getChronogroveEmotionCache","decl":{"start":{"line":17,"column":16},"end":{"line":17,"column":42}},"loc":{"start":{"line":17,"column":45},"end":{"line":22,"column":1}},"line":17}},"branchMap":{"0":{"loc":{"start":{"line":7,"column":4},"end":{"line":7,"column":112}},"type":"cond-expr","locations":[{"start":{"line":7,"column":38},"end":{"line":7,"column":100}},{"start":{"line":7,"column":103},"end":{"line":7,"column":112}}],"line":7},"1":{"loc":{"start":{"line":11,"column":20},"end":{"line":11,"column":47}},"type":"binary-expr","locations":[{"start":{"line":11,"column":20},"end":{"line":11,"column":34}},{"start":{"line":11,"column":38},"end":{"line":11,"column":47}}],"line":11},"2":{"loc":{"start":{"line":18,"column":2},"end":{"line":20,"column":3}},"type":"if","locations":[{"start":{"line":18,"column":2},"end":{"line":20,"column":3}},{"start":{},"end":{}}],"line":18}},"s":{"0":2,"1":2,"2":2,"3":3,"4":2,"5":3},"f":{"0":2,"1":3},"b":{"0":[2,0],"1":[2,1],"2":[2,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"eace68c38a6b2cf5dcf9bbca44e2912da040fe8e"}
|
|
4
|
+
,"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/provider.js": {"path":"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/provider.js","statementMap":{"0":{"start":{"line":6,"column":2},"end":{"line":12,"column":3}}},"fnMap":{"0":{"name":"ChronogroveThemeProvider","decl":{"start":{"line":5,"column":16},"end":{"line":5,"column":40}},"loc":{"start":{"line":5,"column":62},"end":{"line":13,"column":1}},"line":5}},"branchMap":{},"s":{"0":1},"f":{"0":1},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"4b8c0e280caf4f854ebe83b0fd904593ca0e0bee"}
|
|
5
|
+
,"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/color-mode/browser-sync.js": {"path":"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/color-mode/browser-sync.js","statementMap":{"0":{"start":{"line":6,"column":2},"end":{"line":10,"column":3}},"1":{"start":{"line":7,"column":4},"end":{"line":7,"column":89}},"2":{"start":{"line":9,"column":4},"end":{"line":9,"column":15}},"3":{"start":{"line":11,"column":2},"end":{"line":11,"column":40}},"4":{"start":{"line":12,"column":2},"end":{"line":14,"column":3}},"5":{"start":{"line":13,"column":4},"end":{"line":13,"column":15}},"6":{"start":{"line":16,"column":2},"end":{"line":28,"column":3}},"7":{"start":{"line":17,"column":24},"end":{"line":17,"column":48}},"8":{"start":{"line":18,"column":29},"end":{"line":18,"column":109}},"9":{"start":{"line":19,"column":4},"end":{"line":21,"column":5}},"10":{"start":{"line":20,"column":6},"end":{"line":20,"column":29}},"11":{"start":{"line":22,"column":4},"end":{"line":24,"column":5}},"12":{"start":{"line":23,"column":6},"end":{"line":23,"column":19}},"13":{"start":{"line":25,"column":4},"end":{"line":27,"column":5}},"14":{"start":{"line":26,"column":6},"end":{"line":26,"column":22}},"15":{"start":{"line":31,"column":4},"end":{"line":33,"column":61}},"16":{"start":{"line":35,"column":2},"end":{"line":35,"column":41}},"17":{"start":{"line":39,"column":2},"end":{"line":41,"column":3}},"18":{"start":{"line":40,"column":4},"end":{"line":40,"column":10}},"19":{"start":{"line":42,"column":22},"end":{"line":42,"column":46}},"20":{"start":{"line":43,"column":2},"end":{"line":45,"column":3}},"21":{"start":{"line":44,"column":4},"end":{"line":44,"column":10}},"22":{"start":{"line":46,"column":15},"end":{"line":46,"column":50}},"23":{"start":{"line":47,"column":2},"end":{"line":49,"column":66}},"24":{"start":{"line":48,"column":25},"end":{"line":48,"column":58}},"25":{"start":{"line":49,"column":26},"end":{"line":49,"column":65}},"26":{"start":{"line":50,"column":2},"end":{"line":50,"column":47}},"27":{"start":{"line":51,"column":2},"end":{"line":51,"column":60}},"28":{"start":{"line":55,"column":2},"end":{"line":55,"column":34}},"29":{"start":{"line":56,"column":2},"end":{"line":60,"column":3}},"30":{"start":{"line":57,"column":4},"end":{"line":57,"column":72}},"31":{"start":{"line":57,"column":39},"end":{"line":57,"column":71}},"32":{"start":{"line":59,"column":4},"end":{"line":59,"column":57}},"33":{"start":{"line":59,"column":21},"end":{"line":59,"column":53}}},"fnMap":{"0":{"name":"resolveThemeUiColorMode","decl":{"start":{"line":4,"column":16},"end":{"line":4,"column":39}},"loc":{"start":{"line":4,"column":86},"end":{"line":36,"column":1}},"line":4},"1":{"name":"syncThemeUiColorMode","decl":{"start":{"line":38,"column":16},"end":{"line":38,"column":36}},"loc":{"start":{"line":38,"column":83},"end":{"line":52,"column":1}},"line":38},"2":{"name":"(anonymous_2)","decl":{"start":{"line":48,"column":12},"end":{"line":48,"column":13}},"loc":{"start":{"line":48,"column":25},"end":{"line":48,"column":58}},"line":48},"3":{"name":"(anonymous_3)","decl":{"start":{"line":49,"column":13},"end":{"line":49,"column":14}},"loc":{"start":{"line":49,"column":26},"end":{"line":49,"column":65}},"line":49},"4":{"name":"scheduleThemeUiColorModeSync","decl":{"start":{"line":54,"column":16},"end":{"line":54,"column":44}},"loc":{"start":{"line":54,"column":91},"end":{"line":61,"column":1}},"line":54},"5":{"name":"(anonymous_5)","decl":{"start":{"line":57,"column":33},"end":{"line":57,"column":34}},"loc":{"start":{"line":57,"column":39},"end":{"line":57,"column":71}},"line":57},"6":{"name":"(anonymous_6)","decl":{"start":{"line":59,"column":15},"end":{"line":59,"column":16}},"loc":{"start":{"line":59,"column":21},"end":{"line":59,"column":53}},"line":59}},"branchMap":{"0":{"loc":{"start":{"line":4,"column":40},"end":{"line":4,"column":84}},"type":"default-arg","locations":[{"start":{"line":4,"column":53},"end":{"line":4,"column":84}}],"line":4},"1":{"loc":{"start":{"line":7,"column":11},"end":{"line":7,"column":89}},"type":"cond-expr","locations":[{"start":{"line":7,"column":43},"end":{"line":7,"column":82}},{"start":{"line":7,"column":85},"end":{"line":7,"column":89}}],"line":7},"2":{"loc":{"start":{"line":12,"column":2},"end":{"line":14,"column":3}},"type":"if","locations":[{"start":{"line":12,"column":2},"end":{"line":14,"column":3}},{"start":{},"end":{}}],"line":12},"3":{"loc":{"start":{"line":16,"column":2},"end":{"line":28,"column":3}},"type":"if","locations":[{"start":{"line":16,"column":2},"end":{"line":28,"column":3}},{"start":{},"end":{}}],"line":16},"4":{"loc":{"start":{"line":19,"column":4},"end":{"line":21,"column":5}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":21,"column":5}},{"start":{},"end":{}}],"line":19},"5":{"loc":{"start":{"line":22,"column":4},"end":{"line":24,"column":5}},"type":"if","locations":[{"start":{"line":22,"column":4},"end":{"line":24,"column":5}},{"start":{},"end":{}}],"line":22},"6":{"loc":{"start":{"line":25,"column":4},"end":{"line":27,"column":5}},"type":"if","locations":[{"start":{"line":25,"column":4},"end":{"line":27,"column":5}},{"start":{},"end":{}}],"line":25},"7":{"loc":{"start":{"line":25,"column":8},"end":{"line":25,"column":114}},"type":"binary-expr","locations":[{"start":{"line":25,"column":8},"end":{"line":25,"column":60}},{"start":{"line":25,"column":64},"end":{"line":25,"column":114}}],"line":25},"8":{"loc":{"start":{"line":31,"column":4},"end":{"line":33,"column":61}},"type":"binary-expr","locations":[{"start":{"line":31,"column":4},"end":{"line":31,"column":33}},{"start":{"line":32,"column":4},"end":{"line":32,"column":43}},{"start":{"line":33,"column":4},"end":{"line":33,"column":61}}],"line":31},"9":{"loc":{"start":{"line":35,"column":9},"end":{"line":35,"column":41}},"type":"cond-expr","locations":[{"start":{"line":35,"column":23},"end":{"line":35,"column":29}},{"start":{"line":35,"column":32},"end":{"line":35,"column":41}}],"line":35},"10":{"loc":{"start":{"line":38,"column":37},"end":{"line":38,"column":81}},"type":"default-arg","locations":[{"start":{"line":38,"column":50},"end":{"line":38,"column":81}}],"line":38},"11":{"loc":{"start":{"line":39,"column":2},"end":{"line":41,"column":3}},"type":"if","locations":[{"start":{"line":39,"column":2},"end":{"line":41,"column":3}},{"start":{},"end":{}}],"line":39},"12":{"loc":{"start":{"line":43,"column":2},"end":{"line":45,"column":3}},"type":"if","locations":[{"start":{"line":43,"column":2},"end":{"line":45,"column":3}},{"start":{},"end":{}}],"line":43},"13":{"loc":{"start":{"line":54,"column":45},"end":{"line":54,"column":89}},"type":"default-arg","locations":[{"start":{"line":54,"column":58},"end":{"line":54,"column":89}}],"line":54},"14":{"loc":{"start":{"line":56,"column":2},"end":{"line":60,"column":3}},"type":"if","locations":[{"start":{"line":56,"column":2},"end":{"line":60,"column":3}},{"start":{"line":58,"column":9},"end":{"line":60,"column":3}}],"line":56},"15":{"loc":{"start":{"line":56,"column":6},"end":{"line":56,"column":89}},"type":"binary-expr","locations":[{"start":{"line":56,"column":6},"end":{"line":56,"column":35}},{"start":{"line":56,"column":39},"end":{"line":56,"column":89}}],"line":56}},"s":{"0":13,"1":13,"2":1,"3":13,"4":13,"5":7,"6":6,"7":5,"8":5,"9":5,"10":1,"11":4,"12":1,"13":3,"14":1,"15":3,"16":3,"17":8,"18":1,"19":7,"20":7,"21":1,"22":6,"23":6,"24":4,"25":4,"26":6,"27":6,"28":2,"29":2,"30":1,"31":1,"32":1,"33":1},"f":{"0":13,"1":8,"2":4,"3":4,"4":2,"5":1,"6":1},"b":{"0":[7],"1":[12,1],"2":[7,6],"3":[5,1],"4":[1,4],"5":[1,3],"6":[1,2],"7":[3,3],"8":[3,2,2],"9":[1,2],"10":[4],"11":[1,7],"12":[1,6],"13":[2],"14":[1,1],"15":[2,2]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"44d112d95d3019e59fb1e4a27dcc3fda06f3d659"}
|
|
6
|
+
,"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/color-mode/constants.js": {"path":"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/color-mode/constants.js","statementMap":{"0":{"start":{"line":2,"column":47},"end":{"line":2,"column":68}},"1":{"start":{"line":5,"column":42},"end":{"line":5,"column":73}},"2":{"start":{"line":8,"column":57},"end":{"line":12,"column":1}}},"fnMap":{},"branchMap":{},"s":{"0":3,"1":3,"2":3},"f":{},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"0f9493ed8e9b34c940da4fcf79636093e106d50c"}
|
|
7
|
+
,"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/color-mode/head-inline.js": {"path":"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/color-mode/head-inline.js","statementMap":{"0":{"start":{"line":4,"column":2},"end":{"line":4,"column":28}},"1":{"start":{"line":8,"column":14},"end":{"line":8,"column":27}},"2":{"start":{"line":9,"column":2},"end":{"line":36,"column":3}},"3":{"start":{"line":44,"column":14},"end":{"line":44,"column":27}},"4":{"start":{"line":45,"column":18},"end":{"line":45,"column":41}},"5":{"start":{"line":46,"column":17},"end":{"line":46,"column":37}},"6":{"start":{"line":47,"column":2},"end":{"line":60,"column":3}},"7":{"start":{"line":69,"column":2},"end":{"line":72,"column":10}}},"fnMap":{"0":{"name":"q","decl":{"start":{"line":3,"column":9},"end":{"line":3,"column":10}},"loc":{"start":{"line":3,"column":16},"end":{"line":5,"column":1}},"line":3},"1":{"name":"buildThemeUiNoFlashInlineScript","decl":{"start":{"line":7,"column":16},"end":{"line":7,"column":47}},"loc":{"start":{"line":7,"column":94},"end":{"line":37,"column":1}},"line":7},"2":{"name":"buildHtmlBackgroundInlineScript","decl":{"start":{"line":39,"column":16},"end":{"line":39,"column":47}},"loc":{"start":{"line":43,"column":3},"end":{"line":61,"column":1}},"line":43},"3":{"name":"buildThemeUiColorModeFallbackCss","decl":{"start":{"line":63,"column":16},"end":{"line":63,"column":48}},"loc":{"start":{"line":68,"column":3},"end":{"line":73,"column":1}},"line":68}},"branchMap":{"0":{"loc":{"start":{"line":7,"column":48},"end":{"line":7,"column":92}},"type":"default-arg","locations":[{"start":{"line":7,"column":61},"end":{"line":7,"column":92}}],"line":7},"1":{"loc":{"start":{"line":40,"column":2},"end":{"line":40,"column":46}},"type":"default-arg","locations":[{"start":{"line":40,"column":15},"end":{"line":40,"column":46}}],"line":40}},"s":{"0":4,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1},"f":{"0":4,"1":1,"2":1,"3":1},"b":{"0":[1],"1":[1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"393954f7b48d65c430d41cd365084ba59a565559"}
|
|
8
|
+
,"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/color-mode/normalize.js": {"path":"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/color-mode/normalize.js","statementMap":{"0":{"start":{"line":2,"column":2},"end":{"line":4,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":20}},"2":{"start":{"line":5,"column":2},"end":{"line":7,"column":3}},"3":{"start":{"line":6,"column":4},"end":{"line":6,"column":15}},"4":{"start":{"line":8,"column":2},"end":{"line":8,"column":13}}},"fnMap":{"0":{"name":"normalizeThemeUiColorMode","decl":{"start":{"line":1,"column":16},"end":{"line":1,"column":41}},"loc":{"start":{"line":1,"column":48},"end":{"line":9,"column":1}},"line":1}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":2},"end":{"line":4,"column":3}},"type":"if","locations":[{"start":{"line":2,"column":2},"end":{"line":4,"column":3}},{"start":{},"end":{}}],"line":2},"1":{"loc":{"start":{"line":5,"column":2},"end":{"line":7,"column":3}},"type":"if","locations":[{"start":{"line":5,"column":2},"end":{"line":7,"column":3}},{"start":{},"end":{}}],"line":5},"2":{"loc":{"start":{"line":5,"column":6},"end":{"line":5,"column":43}},"type":"binary-expr","locations":[{"start":{"line":5,"column":6},"end":{"line":5,"column":21}},{"start":{"line":5,"column":25},"end":{"line":5,"column":43}}],"line":5}},"s":{"0":23,"1":5,"2":18,"3":6,"4":12},"f":{"0":23},"b":{"0":[5,18],"1":[6,12],"2":[18,13]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"1c0cffdd2076b6b1f398463a6a29bf358ef4c80f"}
|
|
9
|
+
,"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/color-mode/resolve-theme-colors.js": {"path":"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/color-mode/resolve-theme-colors.js","statementMap":{"0":{"start":{"line":2,"column":2},"end":{"line":4,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":16}},"2":{"start":{"line":5,"column":2},"end":{"line":5,"column":13}},"3":{"start":{"line":13,"column":17},"end":{"line":13,"column":36}},"4":{"start":{"line":14,"column":15},"end":{"line":14,"column":39}},"5":{"start":{"line":15,"column":2},"end":{"line":22,"column":3}}},"fnMap":{"0":{"name":"pickColor","decl":{"start":{"line":1,"column":9},"end":{"line":1,"column":18}},"loc":{"start":{"line":1,"column":26},"end":{"line":6,"column":1}},"line":1},"1":{"name":"resolveChronogroveSurfaceColors","decl":{"start":{"line":12,"column":16},"end":{"line":12,"column":47}},"loc":{"start":{"line":12,"column":55},"end":{"line":23,"column":1}},"line":12}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":2},"end":{"line":4,"column":3}},"type":"if","locations":[{"start":{"line":2,"column":2},"end":{"line":4,"column":3}},{"start":{},"end":{}}],"line":2},"1":{"loc":{"start":{"line":13,"column":17},"end":{"line":13,"column":36}},"type":"binary-expr","locations":[{"start":{"line":13,"column":17},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":36}}],"line":13},"2":{"loc":{"start":{"line":14,"column":15},"end":{"line":14,"column":39}},"type":"binary-expr","locations":[{"start":{"line":14,"column":15},"end":{"line":14,"column":33}},{"start":{"line":14,"column":37},"end":{"line":14,"column":39}}],"line":14},"3":{"loc":{"start":{"line":16,"column":26},"end":{"line":16,"column":67}},"type":"binary-expr","locations":[{"start":{"line":16,"column":26},"end":{"line":16,"column":54}},{"start":{"line":16,"column":58},"end":{"line":16,"column":67}}],"line":16},"4":{"loc":{"start":{"line":17,"column":23},"end":{"line":17,"column":62}},"type":"binary-expr","locations":[{"start":{"line":17,"column":23},"end":{"line":17,"column":49}},{"start":{"line":17,"column":53},"end":{"line":17,"column":62}}],"line":17},"5":{"loc":{"start":{"line":18,"column":20},"end":{"line":18,"column":52}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":42}},{"start":{"line":18,"column":46},"end":{"line":18,"column":52}}],"line":18},"6":{"loc":{"start":{"line":19,"column":25},"end":{"line":19,"column":62}},"type":"binary-expr","locations":[{"start":{"line":19,"column":25},"end":{"line":19,"column":52}},{"start":{"line":19,"column":56},"end":{"line":19,"column":62}}],"line":19},"7":{"loc":{"start":{"line":20,"column":17},"end":{"line":20,"column":47}},"type":"binary-expr","locations":[{"start":{"line":20,"column":17},"end":{"line":20,"column":37}},{"start":{"line":20,"column":41},"end":{"line":20,"column":47}}],"line":20},"8":{"loc":{"start":{"line":21,"column":22},"end":{"line":21,"column":60}},"type":"binary-expr","locations":[{"start":{"line":21,"column":22},"end":{"line":21,"column":47}},{"start":{"line":21,"column":51},"end":{"line":21,"column":60}}],"line":21}},"s":{"0":12,"1":6,"2":6,"3":2,"4":2,"5":2},"f":{"0":12,"1":2},"b":{"0":[6,6],"1":[2,1],"2":[2,1],"3":[2,1],"4":[2,1],"5":[2,1],"6":[2,1],"7":[2,1],"8":[2,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"68036ab52e0fd5fba3b7263a8c5e70bf77fdec06"}
|
|
10
|
+
,"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/helpers/isDarkMode.js": {"path":"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/helpers/isDarkMode.js","statementMap":{"0":{"start":{"line":1,"column":19},"end":{"line":1,"column":52}},"1":{"start":{"line":1,"column":32},"end":{"line":1,"column":52}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":19},"end":{"line":1,"column":20}},"loc":{"start":{"line":1,"column":32},"end":{"line":1,"column":52}},"line":1}},"branchMap":{},"s":{"0":3,"1":9},"f":{"0":9},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"35b5533cc6b3c1f3cfae5aebc306a90c214ea468"}
|
|
11
|
+
,"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/skip-nav/SkipNavContent.js": {"path":"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/skip-nav/SkipNavContent.js","statementMap":{"0":{"start":{"line":3,"column":23},"end":{"line":12,"column":2}},"1":{"start":{"line":7,"column":2},"end":{"line":11,"column":3}},"2":{"start":{"line":14,"column":0},"end":{"line":14,"column":45}}},"fnMap":{"0":{"name":"SkipNavContent","decl":{"start":{"line":3,"column":43},"end":{"line":3,"column":57}},"loc":{"start":{"line":6,"column":2},"end":{"line":12,"column":1}},"line":6}},"branchMap":{"0":{"loc":{"start":{"line":4,"column":8},"end":{"line":4,"column":20}},"type":"default-arg","locations":[{"start":{"line":4,"column":15},"end":{"line":4,"column":20}}],"line":4},"1":{"loc":{"start":{"line":4,"column":22},"end":{"line":4,"column":45}},"type":"default-arg","locations":[{"start":{"line":4,"column":27},"end":{"line":4,"column":45}}],"line":4}},"s":{"0":1,"1":1,"2":1},"f":{"0":1},"b":{"0":[1],"1":[1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"7afb83e1a1424a8e46975367dacbe89ea5de6f47"}
|
|
12
|
+
,"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/skip-nav/SkipNavLink.js": {"path":"/Users/chrisvogt/Code/gatsby-theme-chronogrove/packages/ui/src/skip-nav/SkipNavLink.js","statementMap":{"0":{"start":{"line":6,"column":20},"end":{"line":68,"column":2}},"1":{"start":{"line":10,"column":31},"end":{"line":10,"column":43}},"2":{"start":{"line":11,"column":25},"end":{"line":11,"column":46}},"3":{"start":{"line":12,"column":23},"end":{"line":12,"column":89}},"4":{"start":{"line":13,"column":21},"end":{"line":13,"column":99}},"5":{"start":{"line":15,"column":2},"end":{"line":67,"column":3}},"6":{"start":{"line":70,"column":0},"end":{"line":70,"column":39}}},"fnMap":{"0":{"name":"SkipNavLink","decl":{"start":{"line":6,"column":40},"end":{"line":6,"column":51}},"loc":{"start":{"line":9,"column":2},"end":{"line":68,"column":1}},"line":9}},"branchMap":{"0":{"loc":{"start":{"line":7,"column":8},"end":{"line":7,"column":18}},"type":"default-arg","locations":[{"start":{"line":7,"column":15},"end":{"line":7,"column":18}}],"line":7},"1":{"loc":{"start":{"line":7,"column":20},"end":{"line":7,"column":48}},"type":"default-arg","locations":[{"start":{"line":7,"column":31},"end":{"line":7,"column":48}}],"line":7},"2":{"loc":{"start":{"line":7,"column":50},"end":{"line":7,"column":80}},"type":"default-arg","locations":[{"start":{"line":7,"column":62},"end":{"line":7,"column":80}}],"line":7},"3":{"loc":{"start":{"line":12,"column":23},"end":{"line":12,"column":89}},"type":"binary-expr","locations":[{"start":{"line":12,"column":23},"end":{"line":12,"column":45}},{"start":{"line":12,"column":50},"end":{"line":12,"column":88}}],"line":12},"4":{"loc":{"start":{"line":12,"column":50},"end":{"line":12,"column":88}},"type":"cond-expr","locations":[{"start":{"line":12,"column":67},"end":{"line":12,"column":76}},{"start":{"line":12,"column":79},"end":{"line":12,"column":88}}],"line":12},"5":{"loc":{"start":{"line":13,"column":21},"end":{"line":13,"column":99}},"type":"binary-expr","locations":[{"start":{"line":13,"column":21},"end":{"line":13,"column":46}},{"start":{"line":13,"column":51},"end":{"line":13,"column":98}}],"line":13},"6":{"loc":{"start":{"line":13,"column":51},"end":{"line":13,"column":98}},"type":"cond-expr","locations":[{"start":{"line":13,"column":68},"end":{"line":13,"column":82}},{"start":{"line":13,"column":85},"end":{"line":13,"column":98}}],"line":13}},"s":{"0":1,"1":4,"2":4,"3":4,"4":4,"5":4,"6":1},"f":{"0":4},"b":{"0":[4],"1":[0],"2":[4],"3":[4,3],"4":[1,2],"5":[4,3],"6":[1,2]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"98efc1fc736593c5e4b794f6604a3182052e3666"}
|
|
13
|
+
}
|