@aparte/core 0.16.5 → 0.16.6
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/dist/components/elicitation/aparte-elicitation.d.ts +1 -1
- package/dist/components/sidebar/aparte-sidebar.d.ts.map +1 -1
- package/dist/components/split/aparte-split.d.ts.map +1 -1
- package/dist/custom-elements.json +5757 -5723
- package/dist/index.css +5 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/types/element-attributes.d.ts +8 -2
- package/dist/types/element-attributes.d.ts.map +1 -1
- package/dist/utils/presence.d.ts +16 -0
- package/dist/utils/presence.d.ts.map +1 -0
- package/package.json +17 -3
package/dist/index.css
CHANGED
|
@@ -6112,7 +6112,11 @@ details[open] > .aparte-tool-summary .aparte-tool-toggle { transform: rotate(180
|
|
|
6112
6112
|
}
|
|
6113
6113
|
|
|
6114
6114
|
.aparte-elic-message {
|
|
6115
|
-
margin
|
|
6115
|
+
/* The end margin is the room the corner "Skip" needs, from the same token the tab
|
|
6116
|
+
rail reserves — the button is absolutely positioned, so nothing in the flow knows
|
|
6117
|
+
it is there, and a long question printed its first line underneath it (#50). One
|
|
6118
|
+
token, because the button holds a word and the word changes width per locale. */
|
|
6119
|
+
margin: 0 var(--aparte-elic-dismiss-room) var(--aparte-space-3) var(--aparte-space-3);
|
|
6116
6120
|
font-size: var(--aparte-elic-message-size);
|
|
6117
6121
|
font-weight: var(--aparte-font-weight-semibold);
|
|
6118
6122
|
color: var(--aparte-text);
|
package/dist/index.js
CHANGED
|
@@ -5914,6 +5914,9 @@ class AparteScrollRail extends HTMLElement {
|
|
|
5914
5914
|
if (!customElements.get("aparte-scroll-rail")) {
|
|
5915
5915
|
customElements.define("aparte-scroll-rail", AparteScrollRail);
|
|
5916
5916
|
}
|
|
5917
|
+
function presenceOn(value) {
|
|
5918
|
+
return value === "" ? true : Boolean(value);
|
|
5919
|
+
}
|
|
5917
5920
|
const DRAWER_QUERY = "(max-width: 48rem)";
|
|
5918
5921
|
class AparteSidebar extends HTMLElement {
|
|
5919
5922
|
static get observedAttributes() {
|
|
@@ -5963,7 +5966,7 @@ class AparteSidebar extends HTMLElement {
|
|
|
5963
5966
|
return this.hasAttribute("collapsed");
|
|
5964
5967
|
}
|
|
5965
5968
|
set collapsed(value) {
|
|
5966
|
-
this.toggleAttribute("collapsed", value);
|
|
5969
|
+
this.toggleAttribute("collapsed", presenceOn(value));
|
|
5967
5970
|
}
|
|
5968
5971
|
/** True while the window is under the breakpoint and the sidebar is a drawer. */
|
|
5969
5972
|
get drawer() {
|
|
@@ -6307,7 +6310,7 @@ class AparteSplit extends HTMLElement {
|
|
|
6307
6310
|
return this.hasAttribute("collapsed");
|
|
6308
6311
|
}
|
|
6309
6312
|
set collapsed(value) {
|
|
6310
|
-
this.toggleAttribute("collapsed", value);
|
|
6313
|
+
this.toggleAttribute("collapsed", presenceOn(value));
|
|
6311
6314
|
}
|
|
6312
6315
|
/** Which pane is shown while the split is stacked. */
|
|
6313
6316
|
get pane() {
|
|
@@ -6321,7 +6324,7 @@ class AparteSplit extends HTMLElement {
|
|
|
6321
6324
|
return this.hasAttribute("disabled");
|
|
6322
6325
|
}
|
|
6323
6326
|
set disabled(value) {
|
|
6324
|
-
this.toggleAttribute("disabled", value);
|
|
6327
|
+
this.toggleAttribute("disabled", presenceOn(value));
|
|
6325
6328
|
}
|
|
6326
6329
|
/**
|
|
6327
6330
|
* True while the split is showing one pane. Read-only.
|
|
@@ -6341,7 +6344,7 @@ class AparteSplit extends HTMLElement {
|
|
|
6341
6344
|
return this.hasAttribute("single");
|
|
6342
6345
|
}
|
|
6343
6346
|
set single(value) {
|
|
6344
|
-
this.toggleAttribute("single", value);
|
|
6347
|
+
this.toggleAttribute("single", presenceOn(value));
|
|
6345
6348
|
}
|
|
6346
6349
|
// ─── Public API ───────────────────────────────────────────────────────
|
|
6347
6350
|
/** Fold the primary pane to its minimum, remembering the size it had. */
|