gatsby-theme-carbon 4.1.5 → 4.1.7

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/gatsby-ssr.js CHANGED
@@ -32,7 +32,7 @@ export const onRenderBody = ({ setHeadComponents, setBodyAttributes }) => {
32
32
  <link
33
33
  key="sans"
34
34
  rel="preload"
35
- href="https://gatsby.carbondesignsystem.com/fonts/6.3/IBMPlexSansVar-Roman.woff2"
35
+ href="https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans-Variable/fonts/complete/woff2/IBM%20Plex%20Sans%20Var-Roman.woff2"
36
36
  as="font"
37
37
  type="font/woff2"
38
38
  crossOrigin=""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-theme-carbon",
3
- "version": "4.1.5",
3
+ "version": "4.1.7",
4
4
  "main": "index.js",
5
5
  "author": "vpicone <vp@vincepic.one> (@vpicone)",
6
6
  "repository": {
@@ -1,7 +1,7 @@
1
1
  import React, { memo, useCallback, useEffect, useState } from 'react';
2
2
  import { useLocation } from '@reach/router';
3
3
  import { Theme, TreeNode, TreeView } from '@carbon/react';
4
- import { Link } from 'gatsby';
4
+ import { Link, navigate } from 'gatsby';
5
5
 
6
6
  import cx from 'classnames';
7
7
  import slugify from 'slugify';
@@ -110,6 +110,13 @@ const LeftNavTree = ({ items, theme, pathPrefix }) => {
110
110
  evalNode.pages?.some((page) => page.id === treeActiveItem?.id)
111
111
  );
112
112
 
113
+ const handleKeyDownEvent = (event, path) => {
114
+ if (event.key === 'Enter' || event.key === ' ') {
115
+ event.preventDefault();
116
+ navigate(path);
117
+ }
118
+ };
119
+
113
120
  function renderTree({ nodes }) {
114
121
  if (!nodes) {
115
122
  return;
@@ -136,6 +143,7 @@ const LeftNavTree = ({ items, theme, pathPrefix }) => {
136
143
  label={label}
137
144
  value={node.title}
138
145
  isExpanded={isTreeNodeExpanded(node)}
146
+ onKeyDown={(event) => handleKeyDownEvent(event, node.path)}
139
147
  className={cx({
140
148
  'cds--tree-node--active': node.id === treeActiveItem?.id,
141
149
  'cds--tree-node--selected': node.id === treeActiveItem?.id,
@@ -9,9 +9,9 @@
9
9
  font-style: normal;
10
10
  font-weight: 100 900;
11
11
  src:
12
- url('https://gatsby.carbondesignsystem.com/fonts/6.3/IBMPlexSansVar-Roman-Latin1.woff2')
12
+ url('https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans-Variable/fonts/split/woff2/IBM Plex Sans Var-Roman-Latin1.woff2')
13
13
  format('woff2-variations'),
14
- url('https://gatsby.carbondesignsystem.com/fonts/6.3/IBMPlexSansVar-Roman-Latin1.woff2')
14
+ url('https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans-Variable/fonts/split/woff2/IBM Plex Sans Var-Roman-Latin1.woff2')
15
15
  format('woff2');
16
16
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA,
17
17
  U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030,
@@ -23,9 +23,9 @@
23
23
  font-style: normal;
24
24
  font-weight: 100 900;
25
25
  src:
26
- url('https://gatsby.carbondesignsystem.com/fonts/6.3/IBMPlexSansVar-Roman-Latin2.woff2')
26
+ url('https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans-Variable/fonts/split/woff2/IBM Plex Sans Var-Roman-Latin2.woff2')
27
27
  format('woff2-variations'),
28
- url('https://gatsby.carbondesignsystem.com/fonts/6.3/IBMPlexSansVar-Roman-Latin2.woff2')
28
+ url('https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans-Variable/fonts/split/woff2/IBM Plex Sans Var-Roman-Latin2.woff2')
29
29
  format('woff2');
30
30
  unicode-range: U+0100-0101, U+0104-0130, U+0132-0151, U+0154-017F, U+018F,
31
31
  U+0192, U+01A0-01A1, U+01AF-01B0, U+01FA-01FF, U+0218-021B, U+0237, U+0259,
@@ -38,9 +38,9 @@
38
38
  font-style: normal;
39
39
  font-weight: 100 900;
40
40
  src:
41
- url('https://gatsby.carbondesignsystem.com/fonts/6.3/IBMPlexSansVar-Roman-Latin3.woff2')
41
+ url('https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans-Variable/fonts/split/woff2/IBM Plex Sans Var-Roman-Latin3.woff2')
42
42
  format('woff2-variations'),
43
- url('https://gatsby.carbondesignsystem.com/fonts/6.3/IBMPlexSansVar-Roman-Latin3.woff2')
43
+ url('https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans-Variable/fonts/split/woff2/IBM Plex Sans Var-Roman-Latin3.woff2')
44
44
  format('woff2');
45
45
  unicode-range: U+0102-0103, U+01CD-01DC, U+1EA0-1EF9, U+20AB;
46
46
  }
@@ -50,9 +50,9 @@
50
50
  font-style: normal;
51
51
  font-weight: 100 900;
52
52
  src:
53
- url('https://gatsby.carbondesignsystem.com/fonts/6.3/IBMPlexSansVar-Roman-Pi.woff2')
53
+ url('https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans-Variable/fonts/split/woff2/IBM Plex Sans Var-Roman-Pi.woff2')
54
54
  format('woff2-variations'),
55
- url('https://gatsby.carbondesignsystem.com/fonts/6.3/IBMPlexSansVar-Roman-Pi.woff2')
55
+ url('https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans-Variable/fonts/split/woff2/IBM Plex Sans Var-Roman-Pi.woff2')
56
56
  format('woff2');
57
57
  unicode-range: U+03C0, U+0E3F, U+2000-200D, U+2010-2012, U+2015, U+2028-2029,
58
58
  U+202F, U+2032-2033, U+2070, U+2074-2079, U+2080-2089, U+2113, U+2116,
@@ -70,9 +70,9 @@
70
70
  font-style: italic;
71
71
  font-weight: 100 900;
72
72
  src:
73
- url('https://gatsby.carbondesignsystem.com/fonts/6.3/IBMPlexSansVar-Italic-Latin1.woff2')
73
+ url('https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans-Variable/fonts/split/woff2/IBM Plex Sans Var-Italic-Latin1.woff2')
74
74
  format('woff2-variations'),
75
- url('https://gatsby.carbondesignsystem.com/fonts/6.3/IBMPlexSansVar-Italic-Latin1.woff2')
75
+ url('https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans-Variable/fonts/split/woff2/IBM Plex Sans Var-Italic-Latin1.woff2')
76
76
  format('woff2');
77
77
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA,
78
78
  U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030,
@@ -84,9 +84,9 @@
84
84
  font-style: italic;
85
85
  font-weight: 100 900;
86
86
  src:
87
- url('https://gatsby.carbondesignsystem.com/fonts/6.3/IBMPlexSansVar-Italic-Latin2.woff2')
87
+ url('https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans-Variable/fonts/split/woff2/IBM Plex Sans Var-Italic-Latin2.woff2')
88
88
  format('woff2-variations'),
89
- url('https://gatsby.carbondesignsystem.com/fonts/6.3/IBMPlexSansVar-Italic-Latin2.woff2')
89
+ url('https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans-Variable/fonts/split/woff2/IBM Plex Sans Var-Italic-Latin2.woff2')
90
90
  format('woff2');
91
91
  unicode-range: U+0100-0101, U+0104-0130, U+0132-0151, U+0154-017F, U+018F,
92
92
  U+0192, U+01A0-01A1, U+01AF-01B0, U+01FA-01FF, U+0218-021B, U+0237, U+0259,
@@ -99,9 +99,9 @@
99
99
  font-style: italic;
100
100
  font-weight: 100 900;
101
101
  src:
102
- url('https://gatsby.carbondesignsystem.com/fonts/6.3/IBMPlexSansVar-Italic-Latin3.woff2')
102
+ url('https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans-Variable/fonts/split/woff2/IBM Plex Sans Var-Italic-Latin3.woff2')
103
103
  format('woff2-variations'),
104
- url('https://gatsby.carbondesignsystem.com/fonts/6.3/IBMPlexSansVar-Italic-Latin3.woff2')
104
+ url('https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans-Variable/fonts/split/woff2/IBM Plex Sans Var-Italic-Latin3.woff2')
105
105
  format('woff2');
106
106
  unicode-range: U+0102-0103, U+01CD-01DC, U+1EA0-1EF9, U+20AB;
107
107
  }
@@ -111,9 +111,9 @@
111
111
  font-style: italic;
112
112
  font-weight: 100 900;
113
113
  src:
114
- url('https://gatsby.carbondesignsystem.com/fonts/6.3/IBMPlexSansVar-Italic-Pi.woff2')
114
+ url('https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans-Variable/fonts/split/woff2/IBM Plex Sans Var-Italic-Pi.woff2')
115
115
  format('woff2-variations'),
116
- url('https://gatsby.carbondesignsystem.com/fonts/6.3/IBMPlexSansVar-Italic-Pi.woff2')
116
+ url('https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans-Variable/fonts/split/woff2/IBM Plex Sans Var-Italic-Pi.woff2')
117
117
  format('woff2');
118
118
  unicode-range: U+03C0, U+0E3F, U+2000-200D, U+2010-2012, U+2015, U+2028-2029,
119
119
  U+202F, U+2032-2033, U+2070, U+2074-2079, U+2080-2089, U+2113, U+2116,
@@ -132,7 +132,7 @@
132
132
  src:
133
133
  local('IBM Plex Mono'),
134
134
  local('IBMPlexMono'),
135
- url('https://gatsby.carbondesignsystem.com/fonts/mono/IBMPlexMono-Regular-Latin1.woff2')
135
+ url('https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Regular-Latin1.woff2')
136
136
  format('woff2');
137
137
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131,
138
138
  U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E,
@@ -147,7 +147,7 @@
147
147
  src:
148
148
  local('IBM Plex Mono'),
149
149
  local('IBMPlexMono'),
150
- url('https://gatsby.carbondesignsystem.com/fonts/mono/IBMPlexMono-Regular-Latin2.woff2')
150
+ url('https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Regular-Latin2.woff2')
151
151
  format('woff2');
152
152
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF,
153
153
  U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02;
@@ -160,7 +160,7 @@
160
160
  src:
161
161
  local('IBM Plex Mono'),
162
162
  local('IBMPlexMono'),
163
- url('https://gatsby.carbondesignsystem.com/fonts/mono/IBMPlexMono-Regular-Latin3.woff2')
163
+ url('https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Regular-Latin3.woff2')
164
164
  format('woff2');
165
165
  unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB;
166
166
  }
@@ -172,7 +172,7 @@
172
172
  src:
173
173
  local('IBM Plex Mono'),
174
174
  local('IBMPlexMono'),
175
- url('https://gatsby.carbondesignsystem.com/fonts/mono/IBMPlexMono-Regular-Pi.woff2')
175
+ url('https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Regular-Pi.woff2')
176
176
  format('woff2');
177
177
  unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083,
178
178
  U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E,
@@ -189,7 +189,7 @@
189
189
  src:
190
190
  local('IBM Plex Mono'),
191
191
  local('IBMPlexMono'),
192
- url('https://gatsby.carbondesignsystem.com/fonts/mono/IBMPlexMono-Regular-Cyrillic.woff2')
192
+ url('https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Regular-Cyrillic.woff2')
193
193
  format('woff2');
194
194
  unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB,
195
195
  U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9,