@patternfly/react-code-editor 4.82.113 → 5.0.0-alpha.10

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.
@@ -6,7 +6,8 @@ exports[`CodeEditor matches snapshot with all props 1`] = `
6
6
  class="pf-c-code-editor pf-m-read-only"
7
7
  >
8
8
  <div
9
- class="pf-c-file-upload undefined false"
9
+ class="pf-c-file-upload false false"
10
+ role="presentation"
10
11
  tabindex="0"
11
12
  >
12
13
  <div
@@ -15,75 +16,87 @@ exports[`CodeEditor matches snapshot with all props 1`] = `
15
16
  <div
16
17
  class="pf-c-code-editor__controls"
17
18
  >
18
- <button
19
- aria-disabled="false"
20
- aria-label="Copy code to clipboard"
21
- class="pf-c-button pf-m-control"
22
- data-ouia-component-id="OUIA-Generated-Button-control-1"
23
- data-ouia-component-type="PF4/Button"
24
- data-ouia-safe="true"
25
- type="button"
19
+ <div
20
+ style="display: contents;"
26
21
  >
27
- <svg
28
- aria-hidden="true"
29
- fill="currentColor"
30
- height="1em"
31
- role="img"
32
- style="vertical-align: -0.125em;"
33
- viewBox="0 0 448 512"
34
- width="1em"
22
+ <button
23
+ aria-disabled="false"
24
+ aria-label="Copy code to clipboard"
25
+ class="pf-c-button pf-m-control"
26
+ data-ouia-component-id="OUIA-Generated-Button-control-1"
27
+ data-ouia-component-type="PF4/Button"
28
+ data-ouia-safe="true"
29
+ type="button"
35
30
  >
36
- <path
37
- d="M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"
38
- />
39
- </svg>
40
- </button>
41
- <button
42
- aria-disabled="false"
43
- aria-label="Upload code"
44
- class="pf-c-button pf-m-control"
45
- data-ouia-component-id="OUIA-Generated-Button-control-2"
46
- data-ouia-component-type="PF4/Button"
47
- data-ouia-safe="true"
48
- type="button"
31
+ <svg
32
+ aria-hidden="true"
33
+ fill="currentColor"
34
+ height="1em"
35
+ role="img"
36
+ style="vertical-align: -0.125em;"
37
+ viewBox="0 0 448 512"
38
+ width="1em"
39
+ >
40
+ <path
41
+ d="M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"
42
+ />
43
+ </svg>
44
+ </button>
45
+ </div>
46
+ <div
47
+ style="display: contents;"
49
48
  >
50
- <svg
51
- aria-hidden="true"
52
- fill="currentColor"
53
- height="1em"
54
- role="img"
55
- style="vertical-align: -0.125em;"
56
- viewBox="0 0 512 512"
57
- width="1em"
49
+ <button
50
+ aria-disabled="false"
51
+ aria-label="Upload code"
52
+ class="pf-c-button pf-m-control"
53
+ data-ouia-component-id="OUIA-Generated-Button-control-2"
54
+ data-ouia-component-type="PF4/Button"
55
+ data-ouia-safe="true"
56
+ type="button"
58
57
  >
59
- <path
60
- d="M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"
61
- />
62
- </svg>
63
- </button>
64
- <button
65
- aria-disabled="false"
66
- aria-label="Download code"
67
- class="pf-c-button pf-m-control"
68
- data-ouia-component-id="OUIA-Generated-Button-control-3"
69
- data-ouia-component-type="PF4/Button"
70
- data-ouia-safe="true"
71
- type="button"
58
+ <svg
59
+ aria-hidden="true"
60
+ fill="currentColor"
61
+ height="1em"
62
+ role="img"
63
+ style="vertical-align: -0.125em;"
64
+ viewBox="0 0 512 512"
65
+ width="1em"
66
+ >
67
+ <path
68
+ d="M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"
69
+ />
70
+ </svg>
71
+ </button>
72
+ </div>
73
+ <div
74
+ style="display: contents;"
72
75
  >
73
- <svg
74
- aria-hidden="true"
75
- fill="currentColor"
76
- height="1em"
77
- role="img"
78
- style="vertical-align: -0.125em;"
79
- viewBox="0 0 512 512"
80
- width="1em"
76
+ <button
77
+ aria-disabled="false"
78
+ aria-label="Download code"
79
+ class="pf-c-button pf-m-control"
80
+ data-ouia-component-id="OUIA-Generated-Button-control-3"
81
+ data-ouia-component-type="PF4/Button"
82
+ data-ouia-safe="true"
83
+ type="button"
81
84
  >
82
- <path
83
- d="M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"
84
- />
85
- </svg>
86
- </button>
85
+ <svg
86
+ aria-hidden="true"
87
+ fill="currentColor"
88
+ height="1em"
89
+ role="img"
90
+ style="vertical-align: -0.125em;"
91
+ viewBox="0 0 512 512"
92
+ width="1em"
93
+ >
94
+ <path
95
+ d="M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"
96
+ />
97
+ </svg>
98
+ </button>
99
+ </div>
87
100
  </div>
88
101
  <div
89
102
  class="pf-c-code-editor__header-main"
@@ -119,7 +132,6 @@ exports[`CodeEditor matches snapshot with all props 1`] = `
119
132
  class="pf-c-code-editor__main"
120
133
  >
121
134
  <input
122
- autocomplete="off"
123
135
  style="display: none;"
124
136
  tabindex="-1"
125
137
  type="file"