@cloudflare/component-header 3.5.92 → 3.5.96
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/CHANGELOG.md +36 -0
- package/es/Hamburger.js +5 -2
- package/lib/Hamburger.js +6 -2
- package/package.json +5 -4
- package/src/Hamburger.js +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,42 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.5.96](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-header@3.5.95...@cloudflare/component-header@3.5.96) (2021-12-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @cloudflare/component-header
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [3.5.95](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-header@3.5.94...@cloudflare/component-header@3.5.95) (2021-12-03)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @cloudflare/component-header
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [3.5.94](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-header@3.5.93...@cloudflare/component-header@3.5.94) (2021-12-02)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* **component-header:** A11Y-14: Make Hamburger component a11y ([5519fe4](http://stash.cfops.it:7999/fe/stratus/commits/5519fe4))
|
|
28
|
+
* **component-header:** A11Y-14: yarn test -u ([e3b390b](http://stash.cfops.it:7999/fe/stratus/commits/e3b390b))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## [3.5.93](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-header@3.5.92...@cloudflare/component-header@3.5.93) (2021-11-23)
|
|
35
|
+
|
|
36
|
+
**Note:** Version bump only for package @cloudflare/component-header
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
6
42
|
## [3.5.92](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-header@3.5.91...@cloudflare/component-header@3.5.92) (2021-11-22)
|
|
7
43
|
|
|
8
44
|
**Note:** Version bump only for package @cloudflare/component-header
|
package/es/Hamburger.js
CHANGED
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Icon } from '@cloudflare/component-icon';
|
|
4
4
|
import { createComponent } from '@cloudflare/style-container';
|
|
5
|
+
import { Button } from '@cloudflare/elements';
|
|
5
6
|
const Wrapper = createComponent(({
|
|
6
7
|
theme,
|
|
7
8
|
alwaysShow
|
|
@@ -11,13 +12,15 @@ const Wrapper = createComponent(({
|
|
|
11
12
|
alignItems: 'center',
|
|
12
13
|
borderRight: `1px solid ${theme.colors.gray[8]}`,
|
|
13
14
|
padding: theme.space[3],
|
|
14
|
-
'-webkit-tap-highlight-color': 'rgba(0, 0, 0, 0)',
|
|
15
15
|
userSelect: 'none',
|
|
16
16
|
cursor: 'pointer',
|
|
17
|
+
color: theme.colors.gray[1],
|
|
18
|
+
backgroundColor: theme.colors.background,
|
|
19
|
+
'-webkit-tap-highlight-color': 'rgba(0, 0, 0, 0)',
|
|
17
20
|
tabletWide: {
|
|
18
21
|
display: !alwaysShow && 'none'
|
|
19
22
|
}
|
|
20
|
-
}),
|
|
23
|
+
}), Button);
|
|
21
24
|
|
|
22
25
|
const Hamburger = ({
|
|
23
26
|
onClick,
|
package/lib/Hamburger.js
CHANGED
|
@@ -13,6 +13,8 @@ var _componentIcon = require("@cloudflare/component-icon");
|
|
|
13
13
|
|
|
14
14
|
var _styleContainer = require("@cloudflare/style-container");
|
|
15
15
|
|
|
16
|
+
var _elements = require("@cloudflare/elements");
|
|
17
|
+
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
19
|
|
|
18
20
|
var Wrapper = (0, _styleContainer.createComponent)(function (_ref) {
|
|
@@ -24,14 +26,16 @@ var Wrapper = (0, _styleContainer.createComponent)(function (_ref) {
|
|
|
24
26
|
alignItems: 'center',
|
|
25
27
|
borderRight: "1px solid ".concat(theme.colors.gray[8]),
|
|
26
28
|
padding: theme.space[3],
|
|
27
|
-
'-webkit-tap-highlight-color': 'rgba(0, 0, 0, 0)',
|
|
28
29
|
userSelect: 'none',
|
|
29
30
|
cursor: 'pointer',
|
|
31
|
+
color: theme.colors.gray[1],
|
|
32
|
+
backgroundColor: theme.colors.background,
|
|
33
|
+
'-webkit-tap-highlight-color': 'rgba(0, 0, 0, 0)',
|
|
30
34
|
tabletWide: {
|
|
31
35
|
display: !alwaysShow && 'none'
|
|
32
36
|
}
|
|
33
37
|
};
|
|
34
|
-
},
|
|
38
|
+
}, _elements.Button);
|
|
35
39
|
|
|
36
40
|
var Hamburger = function Hamburger(_ref2) {
|
|
37
41
|
var onClick = _ref2.onClick,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/component-header",
|
|
3
3
|
"description": "Cloudflare Header Component",
|
|
4
|
-
"version": "3.5.
|
|
4
|
+
"version": "3.5.96",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
7
7
|
"author": "Vojtech Miksu <vojtech@miksu.cz>",
|
|
@@ -11,8 +11,9 @@
|
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@cloudflare/component-icon": "^6.5.
|
|
15
|
-
"@cloudflare/
|
|
14
|
+
"@cloudflare/component-icon": "^6.5.16",
|
|
15
|
+
"@cloudflare/elements": "^1.11.33",
|
|
16
|
+
"@cloudflare/style-container": "^7.5.22",
|
|
16
17
|
"prop-types": "^15.6.0"
|
|
17
18
|
},
|
|
18
19
|
"peerDependencies": {
|
|
@@ -29,5 +30,5 @@
|
|
|
29
30
|
"test-coverage": "stratus test --coverage",
|
|
30
31
|
"test-watch": "stratus test --watch"
|
|
31
32
|
},
|
|
32
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "50805a2e36847b63f6e19370bd3507ce5a05bd68"
|
|
33
34
|
}
|
package/src/Hamburger.js
CHANGED
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Icon } from '@cloudflare/component-icon';
|
|
4
4
|
import { createComponent } from '@cloudflare/style-container';
|
|
5
|
+
import { Button } from '@cloudflare/elements';
|
|
5
6
|
|
|
6
7
|
const Wrapper = createComponent(
|
|
7
8
|
({ theme, alwaysShow }) => ({
|
|
@@ -10,14 +11,17 @@ const Wrapper = createComponent(
|
|
|
10
11
|
alignItems: 'center',
|
|
11
12
|
borderRight: `1px solid ${theme.colors.gray[8]}`,
|
|
12
13
|
padding: theme.space[3],
|
|
13
|
-
'-webkit-tap-highlight-color': 'rgba(0, 0, 0, 0)',
|
|
14
14
|
userSelect: 'none',
|
|
15
15
|
cursor: 'pointer',
|
|
16
|
+
color: theme.colors.gray[1],
|
|
17
|
+
backgroundColor: theme.colors.background,
|
|
18
|
+
'-webkit-tap-highlight-color': 'rgba(0, 0, 0, 0)',
|
|
19
|
+
|
|
16
20
|
tabletWide: {
|
|
17
21
|
display: !alwaysShow && 'none'
|
|
18
22
|
}
|
|
19
23
|
}),
|
|
20
|
-
|
|
24
|
+
Button
|
|
21
25
|
);
|
|
22
26
|
|
|
23
27
|
const Hamburger = ({ onClick, label, icon, alwaysShow }) => (
|