treefmt: apply prettier
Pure `nix fmt` output from the commit before this one — no hand edits. 203 files: 52 md, 42 tsx, 32 js, 32 css, 21 ts, 13 html, 8 json, 3 mjs. Reproduce with `nix develop -c nix fmt` on the parent commit; the result should be byte-identical to this tree. None of the 13 `.prettierignore` entries appears here — verified by intersecting the changed-file list against the ignore file, with a control proving the intersection finds a match when one exists.
This commit is contained in:
parent
5d24bedd60
commit
39b95c2ede
203 changed files with 10090 additions and 6085 deletions
|
|
@ -12,9 +12,15 @@
|
|||
:host {
|
||||
display: contents;
|
||||
}
|
||||
:host([variant="cancel"]) { color: var(--subtext0); }
|
||||
:host([variant="confirm"]) { color: var(--green); }
|
||||
:host([variant="danger"]) { color: var(--red); }
|
||||
:host([variant="cancel"]) {
|
||||
color: var(--subtext0);
|
||||
}
|
||||
:host([variant="confirm"]) {
|
||||
color: var(--green);
|
||||
}
|
||||
:host([variant="danger"]) {
|
||||
color: var(--red);
|
||||
}
|
||||
|
||||
button {
|
||||
font-family: inherit;
|
||||
|
|
|
|||
|
|
@ -20,10 +20,10 @@
|
|||
// `disabled`/`type` are likewise plain attributes on the host, mirrored
|
||||
// onto the inner button on connect and on every attribute change.
|
||||
|
||||
import { attachShadowCss } from '../shadow-css.js';
|
||||
import hiveBtnCss from './hive-btn.css';
|
||||
import { attachShadowCss } from "../shadow-css.js";
|
||||
import hiveBtnCss from "./hive-btn.css";
|
||||
|
||||
const OBSERVED = ['disabled', 'type'];
|
||||
const OBSERVED = ["disabled", "type"];
|
||||
|
||||
class HiveBtn extends HTMLElement {
|
||||
static get observedAttributes() {
|
||||
|
|
@ -36,8 +36,8 @@ class HiveBtn extends HTMLElement {
|
|||
return; // already built (e.g. re-parenting re-fires connectedCallback)
|
||||
}
|
||||
const root = attachShadowCss(this, hiveBtnCss, { delegatesFocus: true });
|
||||
const btn = document.createElement('button');
|
||||
btn.append(document.createElement('slot'));
|
||||
const btn = document.createElement("button");
|
||||
btn.append(document.createElement("slot"));
|
||||
root.append(btn);
|
||||
this._btn = btn;
|
||||
this._sync();
|
||||
|
|
@ -49,8 +49,8 @@ class HiveBtn extends HTMLElement {
|
|||
|
||||
_sync() {
|
||||
if (!this._btn) return;
|
||||
this._btn.disabled = this.hasAttribute('disabled');
|
||||
this._btn.type = this.getAttribute('type') || 'button';
|
||||
this._btn.disabled = this.hasAttribute("disabled");
|
||||
this._btn.type = this.getAttribute("type") || "button";
|
||||
}
|
||||
}
|
||||
customElements.define('hive-btn', HiveBtn);
|
||||
customElements.define("hive-btn", HiveBtn);
|
||||
|
|
|
|||
Loading…
Reference in a new issue