@pb33f/cowboy-components 0.0.11 → 0.0.12

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.
@@ -70,12 +70,19 @@ export default css `
70
70
  white-space: pre-wrap;
71
71
  max-width: 760px;
72
72
  overflow-x: auto;
73
+ margin-top: 0;
74
+ margin-bottom: 0;
73
75
  }
74
76
 
75
77
  pre > code {
76
78
  word-wrap: break-word;
77
79
  white-space: pre-wrap;
78
80
  }
81
+
82
+ .no-box {
83
+ border: none;
84
+ background: none;
85
+ }
79
86
 
80
87
 
81
88
  `;
@@ -24,7 +24,6 @@ let KVViewComponent = class KVViewComponent extends LitElement {
24
24
  this._data = new Map();
25
25
  this.keyLabel = 'Key';
26
26
  this.valueLabel = 'Value';
27
- // tslint:disable
28
27
  }
29
28
  set data(value) {
30
29
  if (value && value.size > 0) {
@@ -41,9 +40,7 @@ let KVViewComponent = class KVViewComponent extends LitElement {
41
40
  <tr>
42
41
  <td><code>${i[0]}</code></td>
43
42
  <td>
44
- <pre style=""><code
45
- style="white-space: pre-wrap; word-wrap: break-word;">${unsafeHTML(Prism.highlight(JSON.stringify(i[1], null, 2), Prism.languages['json'], 'json'))}</pre>
46
- </code>
43
+ <pre style=""><code class="no-box" style="white-space: pre-wrap; word-wrap: break-word;">${unsafeHTML(Prism.highlight(JSON.stringify(i[1], null, 2), Prism.languages['json'], 'json'))}</pre></code>
47
44
  </td>
48
45
  </tr>`;
49
46
  }
@@ -86,7 +83,7 @@ let KVViewComponent = class KVViewComponent extends LitElement {
86
83
  return html `${output}`;
87
84
  }
88
85
  };
89
- KVViewComponent.styles = [prismCss, sharedCss, syntaxCss, kvViewComponentCss];
86
+ KVViewComponent.styles = [sharedCss, syntaxCss, prismCss, kvViewComponentCss];
90
87
  __decorate([
91
88
  property()
92
89
  ], KVViewComponent.prototype, "keyLabel", void 0);
@@ -239,12 +239,19 @@
239
239
  white-space: pre-wrap;
240
240
  max-width: 760px;
241
241
  overflow-x: auto;
242
+ margin-top: 0;
243
+ margin-bottom: 0;
242
244
  }
243
245
 
244
246
  pre > code {
245
247
  word-wrap: break-word;
246
248
  white-space: pre-wrap;
247
249
  }
250
+
251
+ .no-box {
252
+ border: none;
253
+ background: none;
254
+ }
248
255
 
249
256
 
250
257
  `;Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json;/**
@@ -619,9 +626,7 @@
619
626
  <tr>
620
627
  <td><code>${o[0]}</code></td>
621
628
  <td>
622
- <pre style=""><code
623
- style="white-space: pre-wrap; word-wrap: break-word;">${Z(y.highlight(JSON.stringify(o[1],null,2),y.languages.json,"json"))}</pre>
624
- </code>
629
+ <pre style=""><code class="no-box" style="white-space: pre-wrap; word-wrap: break-word;">${Z(y.highlight(JSON.stringify(o[1],null,2),y.languages.json,"json"))}</pre></code>
625
630
  </td>
626
631
  </tr>`:c.html`
627
632
  <tr>
@@ -649,7 +654,7 @@
649
654
  </tbody>
650
655
  </table>
651
656
  </div>
652
- `,n=((s=this._data)==null?void 0:s.size)>0?r:e;return c.html`${n}`}};I.styles=[Wt,J,Gt,Ot],de([h.property()],I.prototype,"keyLabel",2),de([h.property()],I.prototype,"valueLabel",2),de([h.state()],I.prototype,"_data",2),I=de([h.customElement("pb33f-kv-view")],I);const Xt=c.css`
657
+ `,n=((s=this._data)==null?void 0:s.size)>0?r:e;return c.html`${n}`}};I.styles=[J,Gt,Wt,Ot],de([h.property()],I.prototype,"keyLabel",2),de([h.property()],I.prototype,"valueLabel",2),de([h.state()],I.prototype,"_data",2),I=de([h.customElement("pb33f-kv-view")],I);const Xt=c.css`
653
658
  .prop-type-table > table > thead > tr > th {
654
659
  font-family: var(--font-stack-bold), sans-serif;
655
660
  background-color: var(--table-header-background-solid);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Princess Beef Heavy Industries Cowboy Components",
4
4
  "private": false,
5
5
  "license": "BUSL-1.1",
6
- "version": "0.0.11",
6
+ "version": "0.0.12",
7
7
  "type": "module",
8
8
  "main": "./dist/cowboy-components.umd.cjs",
9
9
  "module": "./dist/cowboy-components.js",