@primer/view-components 0.0.58 → 0.0.59
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
CHANGED
|
@@ -30,6 +30,20 @@ The category for changes related to documentation, testing and tooling. Also, fo
|
|
|
30
30
|
|
|
31
31
|
## main
|
|
32
32
|
|
|
33
|
+
## 0.0.59
|
|
34
|
+
|
|
35
|
+
### Updates
|
|
36
|
+
|
|
37
|
+
* Changed `ClipboardCopy` to use `copy` instead of `paste` icon.
|
|
38
|
+
|
|
39
|
+
*Cole Bemis*
|
|
40
|
+
|
|
41
|
+
### Breaking changes
|
|
42
|
+
|
|
43
|
+
* `Breadcrumbs` no longer accepts padding and font size system arguments.
|
|
44
|
+
|
|
45
|
+
*Joel Hawksley*
|
|
46
|
+
|
|
33
47
|
## 0.0.58
|
|
34
48
|
|
|
35
49
|
### Updates
|
|
@@ -8,18 +8,18 @@ function hideSVG(svg) {
|
|
|
8
8
|
}
|
|
9
9
|
// Toggle a copy button.
|
|
10
10
|
function showCopy(button) {
|
|
11
|
-
const [
|
|
12
|
-
if (!
|
|
11
|
+
const [copyIcon, checkIcon] = button.querySelectorAll('.octicon');
|
|
12
|
+
if (!copyIcon || !checkIcon)
|
|
13
13
|
return;
|
|
14
|
-
showSVG(
|
|
14
|
+
showSVG(copyIcon);
|
|
15
15
|
hideSVG(checkIcon);
|
|
16
16
|
}
|
|
17
17
|
// Toggle a copy button.
|
|
18
18
|
function showCheck(button) {
|
|
19
|
-
const [
|
|
20
|
-
if (!
|
|
19
|
+
const [copyIcon, checkIcon] = button.querySelectorAll('.octicon');
|
|
20
|
+
if (!copyIcon || !checkIcon)
|
|
21
21
|
return;
|
|
22
|
-
hideSVG(
|
|
22
|
+
hideSVG(copyIcon);
|
|
23
23
|
showSVG(checkIcon);
|
|
24
24
|
}
|
|
25
25
|
const clipboardCopyElementTimers = new WeakMap();
|
package/package.json
CHANGED