spell 0.8.5 → 0.8.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/app/package.json +1 -1
- package/app/spaces/@spell/examples/Solitaire/__project.json5 +22 -4
- package/dist/epic/cli/epicGroups.js +1 -0
- package/dist/epic/command/epicArgs.js +3 -1
- package/dist/epic/comments/ThreadFacts.js +10 -2
- package/dist/epic/components/__pack/epics.entry.js +41 -41
- package/dist/epic/components/__pack/epics.pack.js +1517 -1481
- package/dist/epic/components/epic-answer/EpicAnswer.css +21 -11
- package/dist/epic/components/epic-answer/EpicAnswer.css.inline.js +1 -1
- package/dist/epic/components/epic-item/CollapseAll.css +3 -3
- package/dist/epic/components/epic-item/Fold.js +105 -81
- package/dist/epic/components/epic-overview/EpicOverview.js +0 -2
- package/dist/epic/components/epic-phase/EpicPhase.css +16 -7
- package/dist/epic/components/epic-phase/EpicPhase.css.inline.js +1 -1
- package/dist/epic/components/epic-phase/EpicPhase.js +1 -3
- package/dist/epic/components/epic-section/EpicFold.css +15 -0
- package/dist/epic/components/epic-section/EpicFold.css.inline.js +1 -1
- package/dist/epic/components/epic-section/EpicFold.js +80 -52
- package/dist/epic/components/epic-section/EpicSection.js +1 -3
- package/dist/epic/components/epic-section/EpicSection.types.js +1 -15
- package/dist/epic/components/epic-section/PhaseDrag.js +7 -4
- package/dist/epic/docs/__data/components.json5 +0 -42
- package/dist/epic/docs/epic-overview.html +6 -6
- package/dist/epic/docs/epic-phase.html +12 -5
- package/dist/epic/docs/epic-section.html +6 -4
- package/dist/epic/review/ReviewClient.js +9 -0
- package/dist/epic/tool/InboxCommands.js +12 -1
- package/dist/epic/tool/PLAN-DOC.md +9 -0
- package/dist/epic/tool/PlanDoc.js +17 -5
- package/dist/epic/tool/PlanDocCommands.js +6 -3
- package/dist/epic/tool/ReviewInbox.js +20 -4
- package/dist/epic/tools/_assets/commands.js +452 -451
- package/dist/epic/tools/_assets/core-reference.js +656 -655
- package/dist/epic/tools/_assets/spell-comments.js +575 -569
- package/dist/epic/tools/_assets/spell-doc-runtime.js +16 -3
- package/dist/epic/tools/_assets/spell-syntax.js +415 -414
- package/dist/epic/tools/_assets/spell-ui.entry.js +3 -2
- package/dist/epic/tools/_assets/spell-ui.js +7898 -7835
- package/dist/server/WebServer.js +2 -1
- package/dist/server/liveClient.d.ts +37 -1
- package/dist/server/liveClient.js +119 -6
- package/dist/server/site/PagePatch.d.ts +35 -1
- package/dist/server/site/PagePatch.js +94 -12
- package/dist/ui/components/ui-components/PackHotSwap.d.ts +6 -0
- package/dist/ui/components/ui-components/PackHotSwap.js +12 -2
- package/dist/ui/components/ui-section/UISection.d.ts +8 -0
- package/dist/ui/components/ui-section/UISection.js +22 -11
- package/dist/ui/docs-components/ui-docs-theme-bench/UIDocsThemeBench.d.ts +1 -1
- package/dist/util/spell/constants.js +1 -1
- package/epic/package.json +1 -1
- package/epic/skills/epic/SKILL.md +16 -0
- package/epic/src/AGENTS.md +29 -4
- package/epic/src/tool/PLAN-DOC.md +9 -0
- package/package.json +1 -1
- package/parser/package.json +1 -1
- package/ui/package.json +1 -1
|
@@ -46,7 +46,10 @@
|
|
|
46
46
|
* the head ends the frame
|
|
47
47
|
*/
|
|
48
48
|
:host(:state(in-thread)) {
|
|
49
|
-
--_epic-thread-rule: var(
|
|
49
|
+
--_epic-thread-rule: var(
|
|
50
|
+
--epic-thread-rule,
|
|
51
|
+
var(--epic-rule, var(--ui-border-color, light-dark(#e6e3ef, #34343b)))
|
|
52
|
+
);
|
|
50
53
|
margin-top: 0;
|
|
51
54
|
}
|
|
52
55
|
:host(:state(thread-start)) {
|
|
@@ -148,21 +151,28 @@
|
|
|
148
151
|
font-variant-numeric: tabular-nums;
|
|
149
152
|
white-space: nowrap;
|
|
150
153
|
}
|
|
151
|
-
/* who said it:
|
|
154
|
+
/* who said it: their initial before their name, drawn as an item's id chip (`T1`, I165: "(c) should be same
|
|
155
|
+
styling as a T1 etc, no?"), in the speaker's colour (`--_epic-who-mark`, `--_epic-who-initial`)
|
|
156
|
+
- the item chip's shared tokens (`--epic-chip-height`, `--epic-chip-font-size`, `EpicItem.css`):
|
|
157
|
+
a pill, mono 600, its letters trimmed to the capitals and centred both ways
|
|
158
|
+
- the band's type is smaller than an item line's (11.5px to 13.8px, measured in an item's details):
|
|
159
|
+
the chip scaled back up by that, so it's the item's chip's size (11px type, 17.7px tall) */
|
|
152
160
|
.reply .who::before {
|
|
161
|
+
--_epic-who-chip-size: calc(var(--epic-chip-font-size, 0.8em) * 1.2);
|
|
162
|
+
--_epic-who-chip-height: var(--epic-chip-height, 1.6em);
|
|
153
163
|
content: var(--_epic-who-initial, "C");
|
|
154
|
-
display: inline-
|
|
155
|
-
|
|
156
|
-
width:
|
|
157
|
-
height: 18px;
|
|
164
|
+
display: inline-block;
|
|
165
|
+
box-sizing: border-box;
|
|
166
|
+
min-width: 3.1em;
|
|
158
167
|
margin-inline-end: 6px;
|
|
159
|
-
|
|
168
|
+
padding: calc((var(--_epic-who-chip-height) - 1cap) / 2) 0.6em;
|
|
169
|
+
text-align: center;
|
|
170
|
+
text-box: trim-both cap alphabetic;
|
|
171
|
+
border-radius: 999px;
|
|
160
172
|
background: var(--_epic-who-mark);
|
|
161
173
|
color: #fff;
|
|
162
|
-
font-size
|
|
163
|
-
|
|
164
|
-
line-height: 1;
|
|
165
|
-
vertical-align: 1px;
|
|
174
|
+
font: 600 var(--_epic-who-chip-size) / 1 var(--ui-font-family-mono, ui-monospace, "SF Mono", Menlo, monospace);
|
|
175
|
+
letter-spacing: 0.02em;
|
|
166
176
|
}
|
|
167
177
|
/* the fold chevron close to the avatar (I152: "Too much space between collapse arrow and O avatar"):
|
|
168
178
|
back over the band's 12px column gap (kept for the date), so the chevron's stroke sits ~6px from the mark */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "@layer ui.components.epic-answer.types{:host{--_epic-card-ink:var(--ui-text-color,CanvasText);--_epic-card-fill:light-dark(#fff,color-mix(in oklab, CanvasText 6%, Canvas));--_epic-card-accent:var(--ui-text-muted,GrayText);margin-top:var(--epic-part-gap,8px);display:block}:host([hidden]),:host(:state(unneeded)){display:none}:host(:state(in-thread)){--_epic-thread-rule:var(--epic-thread-rule,var(--epic-rule,var(--ui-border-color,light-dark(#e6e3ef,#34343b))));margin-top:0}:host(:state(thread-start)){margin-top:var(--epic-part-gap,8px)}:host(:state(thread-hidden)){display:none}:host(:state(in-thread)) :is(.answer,.reply){border:1px solid var(--_epic-thread-rule);box-shadow:none;border-block-end:none;border-radius:0}:host(:state(thread-start)) :is(.answer,.reply){border-start-start-radius:10px;border-start-end-radius:10px}:host(:state(thread-end)) :is(.answer,.reply){border-block-end:1px solid var(--_epic-thread-rule);border-end-end-radius:10px;border-end-start-radius:10px}:host(:state(redundant):state(in-thread)) .answer{background:var(--_epic-card-fill)}:host(:state(redundant)) .body{padding:6px 10px}.reply.new{border-color:color-mix(in oklab, var(--ui-orange,#f2711c) 55%, transparent);box-shadow:0 0 0 1px color-mix(in oklab, var(--ui-orange,#f2711c) 25%, transparent)}:host(:state(in-thread)) .reply.new{border-color:var(--_epic-thread-rule);box-shadow:inset 3px 0 0 color-mix(in oklab, var(--ui-orange,#f2711c) 70%, transparent)}.reply.new .who{flex:0 auto}.new-tag{background:var(--ui-orange,#f2711c);color:var(--ui-orange-on,#fff);letter-spacing:.04em;border-radius:999px;flex:none;align-self:center;padding:0 6px;font-size:.75em;font-weight:700;line-height:1.5}.answer,.reply,.more,.status{--_epic-card-band:transparent;--_epic-card-rule:var(--epic-rule,var(--ui-border-color,light-dark(#e6e3ef,#34343b)));border:1px solid var(--_epic-card-rule);background:var(--_epic-card-fill);color:var(--_epic-card-ink);border-radius:10px;overflow:hidden;box-shadow:0 1px light-dark(#281e5a0d,#00000059)}.header{background:var(--_epic-card-band);color:color-mix(in oklab, var(--_epic-card-accent) 75%, var(--_epic-card-ink));overflow-wrap:anywhere;padding:6px 10px 2px;font-size:.85em;font-weight:600;line-height:1.4}.header.dated{align-items:baseline;gap:2px 12px;display:flex}.who{flex:auto;min-width:0}.date{color:var(--ui-text-muted,GrayText);font-variant-numeric:tabular-nums;white-space:nowrap;flex:none;margin-inline-start:auto;font-size:.92em;font-weight:400}.reply .who:before{content:var(--_epic-who-initial,\"C\");
|
|
1
|
+
export default "@layer ui.components.epic-answer.types{:host{--_epic-card-ink:var(--ui-text-color,CanvasText);--_epic-card-fill:light-dark(#fff,color-mix(in oklab, CanvasText 6%, Canvas));--_epic-card-accent:var(--ui-text-muted,GrayText);margin-top:var(--epic-part-gap,8px);display:block}:host([hidden]),:host(:state(unneeded)){display:none}:host(:state(in-thread)){--_epic-thread-rule:var(--epic-thread-rule,var(--epic-rule,var(--ui-border-color,light-dark(#e6e3ef,#34343b))));margin-top:0}:host(:state(thread-start)){margin-top:var(--epic-part-gap,8px)}:host(:state(thread-hidden)){display:none}:host(:state(in-thread)) :is(.answer,.reply){border:1px solid var(--_epic-thread-rule);box-shadow:none;border-block-end:none;border-radius:0}:host(:state(thread-start)) :is(.answer,.reply){border-start-start-radius:10px;border-start-end-radius:10px}:host(:state(thread-end)) :is(.answer,.reply){border-block-end:1px solid var(--_epic-thread-rule);border-end-end-radius:10px;border-end-start-radius:10px}:host(:state(redundant):state(in-thread)) .answer{background:var(--_epic-card-fill)}:host(:state(redundant)) .body{padding:6px 10px}.reply.new{border-color:color-mix(in oklab, var(--ui-orange,#f2711c) 55%, transparent);box-shadow:0 0 0 1px color-mix(in oklab, var(--ui-orange,#f2711c) 25%, transparent)}:host(:state(in-thread)) .reply.new{border-color:var(--_epic-thread-rule);box-shadow:inset 3px 0 0 color-mix(in oklab, var(--ui-orange,#f2711c) 70%, transparent)}.reply.new .who{flex:0 auto}.new-tag{background:var(--ui-orange,#f2711c);color:var(--ui-orange-on,#fff);letter-spacing:.04em;border-radius:999px;flex:none;align-self:center;padding:0 6px;font-size:.75em;font-weight:700;line-height:1.5}.answer,.reply,.more,.status{--_epic-card-band:transparent;--_epic-card-rule:var(--epic-rule,var(--ui-border-color,light-dark(#e6e3ef,#34343b)));border:1px solid var(--_epic-card-rule);background:var(--_epic-card-fill);color:var(--_epic-card-ink);border-radius:10px;overflow:hidden;box-shadow:0 1px light-dark(#281e5a0d,#00000059)}.header{background:var(--_epic-card-band);color:color-mix(in oklab, var(--_epic-card-accent) 75%, var(--_epic-card-ink));overflow-wrap:anywhere;padding:6px 10px 2px;font-size:.85em;font-weight:600;line-height:1.4}.header.dated{align-items:baseline;gap:2px 12px;display:flex}.who{flex:auto;min-width:0}.date{color:var(--ui-text-muted,GrayText);font-variant-numeric:tabular-nums;white-space:nowrap;flex:none;margin-inline-start:auto;font-size:.92em;font-weight:400}.reply .who:before{--_epic-who-chip-size:calc(var(--epic-chip-font-size,.8em) * 1.2);--_epic-who-chip-height:var(--epic-chip-height,1.6em);content:var(--_epic-who-initial,\"C\");box-sizing:border-box;min-width:3.1em;padding:calc((var(--_epic-who-chip-height) - 1cap) / 2) .6em;text-align:center;text-box:trim-both cap alphabetic;background:var(--_epic-who-mark);color:#fff;font:600 var(--_epic-who-chip-size) / 1 var(--ui-font-family-mono,ui-monospace, \"SF Mono\", Menlo, monospace);letter-spacing:.02em;border-radius:999px;margin-inline-end:6px;display:inline-block}.reply .fold-button{margin-inline-end:-10px;padding-inline-end:0}:host(:not(:state(open))) .reply>.header{padding-bottom:6px}.header[hidden]{display:none}.title{font-weight:400}.body{padding:4px 10px 10px}[hidden=until-found]{content-visibility:hidden;padding:0;display:block}.body.empty{display:none}::slotted(:is(p,ul,ol)){margin-block:.35em}::slotted(:is(ul,ol)){padding-inline-start:1.2em}::slotted(:nth-child(1 of :not([slot]))){margin-top:0}::slotted(:last-child){margin-bottom:0}.answer{background:0 0;border:none;overflow:visible}.answer>.header{color:var(--_epic-card-ink);background:0 0;padding:2px 0;font-weight:400}.answer>.header>.label{color:var(--ui-green-text,var(--ui-green,#21ba45));font-weight:700}.answer>.header>.label:before{content:\"✓ \"}.toggle{width:100%;color:var(--ui-text-muted,GrayText);letter-spacing:.04em;text-align:start;text-transform:uppercase;cursor:pointer;background:0 0;border:none;align-items:center;gap:6px;padding:6px 10px;font:600 .78em/1.4 inherit;display:flex}.toggle:focus-visible{outline:2px solid var(--ui-focus-color,Highlight);outline-offset:-2px}.chevron{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:12px;height:12px;transition:rotate var(--epic-turn-duration,.12s);flex:none}.more:has(>.body:not([hidden])) .chevron{rotate:90deg}.more>.body{padding-top:0}.more>.body[hidden]{content-visibility:hidden;padding:0;display:block}}@layer ui.components.epic-answer.variations{.reply{--_epic-who-mark:light-dark(#c96442,#d97757);--_epic-card-accent:light-dark(#a8502f,#e59a7c)}.reply.owen{--_epic-who-initial:\"O\";--_epic-who-mark:var(--ui-violet,#6550ca);--_epic-card-fill:color-mix(in oklab, var(--ui-violet,#6550ca) 5%, light-dark(#fff,var(--ui-background,Canvas)));--_epic-card-rule:color-mix(in oklab, var(--ui-violet,#6550ca) 26%, transparent);--_epic-card-accent:var(--ui-violet-text,var(--ui-violet,#6550ca))}.more{--_epic-card-rule:var(--epic-rule,var(--ui-border-color,light-dark(#e6e3ef,#34343b)))}}"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* `Fold.
|
|
3
|
-
* - Adopted as `epic-collapse-all` by
|
|
4
|
-
*
|
|
2
|
+
* `Fold.toggleAllButton()` (`Fold.tsx`): the page toolbar's double chevron, opening or folding the whole page.
|
|
3
|
+
* - Adopted as `epic-collapse-all` by `<epic-page>`.
|
|
4
|
+
* - A fold's own title row has none since epic `epic-engine` I161: ⌥-click on its chevron does it.
|
|
5
5
|
* - Square and muted, as the Phases toggles; the chevron's stroke, a size up.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -15,10 +15,8 @@ import { E } from "spell/element";
|
|
|
15
15
|
import { ACTIONS_SLOT } from "./Fold.types.js";
|
|
16
16
|
var _tmpl$ = /* @__PURE__ */ _$template(`<button type=button><!><!>`);
|
|
17
17
|
var _tmpl$2 = /* @__PURE__ */ _$template(`<svg viewBox="0 0 16 16"aria-hidden=true><path d="M6 3.5 10.5 8 6 12.5">`);
|
|
18
|
-
var _tmpl$3 = /* @__PURE__ */ _$template(`<button type=button><svg viewBox="0 0 16 16"aria-hidden=true><path
|
|
19
|
-
var _tmpl$4 = /* @__PURE__ */ _$template(`<
|
|
20
|
-
var _tmpl$5 = /* @__PURE__ */ _$template(`<span><slot>`);
|
|
21
|
-
var _tmpl$6 = /* @__PURE__ */ _$template(`<button type=button><svg viewBox="0 0 16 16"aria-hidden=true><path d="M4 3.5 8 7.5 12 3.5M4 7.5 8 11.5 12 7.5">`);
|
|
18
|
+
var _tmpl$3 = /* @__PURE__ */ _$template(`<button type=button><svg viewBox="0 0 16 16"aria-hidden=true><path>`);
|
|
19
|
+
var _tmpl$4 = /* @__PURE__ */ _$template(`<span><slot>`);
|
|
22
20
|
var Fold = class _Fold {
|
|
23
21
|
static {
|
|
24
22
|
__name(this, "Fold");
|
|
@@ -42,6 +40,11 @@ var Fold = class _Fold {
|
|
|
42
40
|
toggle = /* @__PURE__ */ __name(() => {
|
|
43
41
|
this.disclosure.toggle();
|
|
44
42
|
}, "toggle");
|
|
43
|
+
/**
|
|
44
|
+
* ⌥-click: open it and everything inside `host` (its element), or fold them all (`Fold.toggleFrom()`).
|
|
45
|
+
* - `host`: the element whose shadow root draws the fold; what's inside it, its light children
|
|
46
|
+
*/
|
|
47
|
+
toggleDeep = /* @__PURE__ */ __name((event) => _Fold.toggleDeepUnder(this, _Fold.hostOf(event)), "toggleDeep");
|
|
45
48
|
/** Fold it, if open (collapse-all, `foldAllUnder()`); true when it was open. */
|
|
46
49
|
close = /* @__PURE__ */ __name(() => this.disclosure.close(), "close");
|
|
47
50
|
/** Open it, if folded, as the reader would (expand-all, `expandAllUnder()`); true when it was folded. */
|
|
@@ -72,13 +75,15 @@ var Fold = class _Fold {
|
|
|
72
75
|
* - `options` is read as the button draws: a getter there (an item's `controls`, an option's `tips`) follows
|
|
73
76
|
* - Always `FOLD_BUTTON` among its classes: how its band knows it
|
|
74
77
|
* - The chevron turns down while open (`Fold.css`, or the element's own sheet).
|
|
78
|
+
* - Its tooltip ends with what ⌥-click does (`DEEP_TIPS`; not its name): the click itself is `Fold.toggleFrom()`'s
|
|
75
79
|
*/
|
|
76
80
|
static button(opener, options) {
|
|
77
81
|
const tip = /* @__PURE__ */ __name(() => opener.isOpen() ? options.tips.fold : options.tips.unfold, "tip");
|
|
78
82
|
var _el$ = _tmpl$();
|
|
79
83
|
var _el$2 = _el$.firstChild;
|
|
80
84
|
var _el$3 = _el$2.nextSibling;
|
|
81
|
-
_
|
|
85
|
+
_el$._$$keydown = (event) => _Fold.deepKey(event) && _Fold.toggleFrom(opener, event);
|
|
86
|
+
_$addEvent(_el$, "click", options.clicks ? (event) => _Fold.toggleFrom(opener, event) : void 0, true);
|
|
82
87
|
_$insert(_el$, () => {
|
|
83
88
|
return _Fold.chevron();
|
|
84
89
|
}, _el$2);
|
|
@@ -93,7 +98,7 @@ var Fold = class _Fold {
|
|
|
93
98
|
o: options.controls,
|
|
94
99
|
i: options.labelledBy,
|
|
95
100
|
n: options.labelledBy || options.label !== void 0 ? void 0 : tip(),
|
|
96
|
-
s: tip()
|
|
101
|
+
s: _Fold.withDeepTip(tip(), opener.isOpen())
|
|
97
102
|
};
|
|
98
103
|
}, ({ e, t, a, o, i, n, s }, _p$) => {
|
|
99
104
|
_$className(_el$, e, _p$?.e);
|
|
@@ -122,44 +127,18 @@ var Fold = class _Fold {
|
|
|
122
127
|
return _el$4;
|
|
123
128
|
}
|
|
124
129
|
/**
|
|
125
|
-
* The collapse-all button: the double up-chevron beside an open title's fold chevron,
|
|
126
|
-
* which folds everything under it, the title itself staying open
|
|
127
|
-
* (Owen, 2026-10-10: "Add collapse all buttons to the headers ... It should close everything underneath it").
|
|
128
|
-
* - Whose: a section's, a phase's, an item's, the page toolbar's
|
|
129
|
-
* - What it folds is its owner's `collapseAll()` (`foldAllUnder()`); this only draws it and calls `onCollapse`.
|
|
130
|
-
* - Drawn here, as the chevron is: on screen in the first frame, in the chevron's stroke.
|
|
131
|
-
* - Its look: `CollapseAll.css`, which each owner adopts as `epic-collapse-all`.
|
|
132
|
-
*/
|
|
133
|
-
static collapseAllButton({ label, part, onCollapse }) {
|
|
134
|
-
var _el$5 = _tmpl$3();
|
|
135
|
-
var _el$6 = _el$5.firstChild;
|
|
136
|
-
_$addEvent(_el$5, "click", onCollapse, true);
|
|
137
|
-
_$setAttribute(_el$5, "part", part);
|
|
138
|
-
_$setAttribute(_el$5, "aria-label", label);
|
|
139
|
-
_$setAttribute(_el$5, "title", label);
|
|
140
|
-
_$effect(() => {
|
|
141
|
-
return {
|
|
142
|
-
e: _$readShallow(COLLAPSE_ALL),
|
|
143
|
-
t: _$readShallow(CHEVRONS)
|
|
144
|
-
};
|
|
145
|
-
}, ({ e, t }, _p$) => {
|
|
146
|
-
_$className(_el$5, e, _p$?.e);
|
|
147
|
-
_$className(_el$6, t, _p$?.t);
|
|
148
|
-
});
|
|
149
|
-
return _el$5;
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
130
|
* ONE button for expand-all and collapse-all (Owen, 2026-10-25: "Instead of two buttons for expand all / collapse
|
|
153
131
|
* all, have one button that toggles"): chevrons down while it would open everything, up once it has
|
|
132
|
+
* - the page toolbar's only: a fold's title does it with ⌥-click on its chevron (`Fold.toggleFrom()`, I161)
|
|
154
133
|
* - `expanded()`: what its owner last did with it (and still holds: folding the owner by hand resets it)
|
|
155
134
|
*/
|
|
156
135
|
static toggleAllButton({ expandLabel, collapseLabel, part, expanded, onToggle }) {
|
|
157
136
|
const label = /* @__PURE__ */ __name(() => expanded() ? collapseLabel : expandLabel, "label");
|
|
158
|
-
var _el$
|
|
159
|
-
var _el$
|
|
160
|
-
var _el$
|
|
161
|
-
_$addEvent(_el$
|
|
162
|
-
_$setAttribute(_el$
|
|
137
|
+
var _el$5 = _tmpl$3();
|
|
138
|
+
var _el$6 = _el$5.firstChild;
|
|
139
|
+
var _el$7 = _el$6.firstChild;
|
|
140
|
+
_$addEvent(_el$5, "click", onToggle, true);
|
|
141
|
+
_$setAttribute(_el$5, "part", part);
|
|
163
142
|
_$effect(() => {
|
|
164
143
|
return {
|
|
165
144
|
e: _$readShallow(COLLAPSE_ALL),
|
|
@@ -170,14 +149,14 @@ var Fold = class _Fold {
|
|
|
170
149
|
n: expanded() ? "M4 8.5 8 4.5 12 8.5M4 12.5 8 8.5 12 12.5" : "M4 3.5 8 7.5 12 3.5M4 7.5 8 11.5 12 7.5"
|
|
171
150
|
};
|
|
172
151
|
}, ({ e, t, a, o, i, n }, _p$) => {
|
|
173
|
-
_$className(_el$
|
|
174
|
-
t !== _p$?.t && _$setAttribute(_el$
|
|
175
|
-
a !== _p$?.a && _$setAttribute(_el$
|
|
176
|
-
o !== _p$?.o && _$setAttribute(_el$
|
|
177
|
-
_$className(_el$
|
|
178
|
-
n !== _p$?.n && _$setAttribute(_el$
|
|
152
|
+
_$className(_el$5, e, _p$?.e);
|
|
153
|
+
t !== _p$?.t && _$setAttribute(_el$5, "aria-label", t);
|
|
154
|
+
a !== _p$?.a && _$setAttribute(_el$5, "title", a);
|
|
155
|
+
o !== _p$?.o && _$setAttribute(_el$5, "aria-pressed", o);
|
|
156
|
+
_$className(_el$6, i, _p$?.i);
|
|
157
|
+
n !== _p$?.n && _$setAttribute(_el$7, "d", n);
|
|
179
158
|
});
|
|
180
|
-
return _el$
|
|
159
|
+
return _el$5;
|
|
181
160
|
}
|
|
182
161
|
/**
|
|
183
162
|
* The box of a title row's ACTIONS SLOT (`Fold.types.ts`): the page's own buttons there
|
|
@@ -187,44 +166,21 @@ var Fold = class _Fold {
|
|
|
187
166
|
* - `hidden` while nothing is slotted, so an empty box takes no room: read where it's drawn, so it follows.
|
|
188
167
|
*/
|
|
189
168
|
static actions({ part, hidden }) {
|
|
190
|
-
var _el$
|
|
191
|
-
var _el$
|
|
192
|
-
_$setAttribute(_el$
|
|
193
|
-
_$setAttribute(_el$
|
|
194
|
-
_el$
|
|
169
|
+
var _el$8 = _tmpl$4();
|
|
170
|
+
var _el$9 = _el$8.firstChild;
|
|
171
|
+
_$setAttribute(_el$8, "part", part);
|
|
172
|
+
_$setAttribute(_el$9, "name", ACTIONS_SLOT);
|
|
173
|
+
_el$9._$owner = _$getOwner();
|
|
195
174
|
_$effect(() => {
|
|
196
175
|
return {
|
|
197
176
|
e: _$readShallow(ACTIONS_BOX),
|
|
198
177
|
t: hidden?.()
|
|
199
178
|
};
|
|
200
179
|
}, ({ e, t }, _p$) => {
|
|
201
|
-
_$className(_el$
|
|
202
|
-
t !== _p$?.t && _$setAttribute(_el$
|
|
203
|
-
});
|
|
204
|
-
return _el$10;
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* Expand-all's button, collapse-all's look, its double chevron pointing down: the page toolbar's, and every fold
|
|
208
|
-
* title's (`EpicFold`), just before its collapse-all (Owen, 2026-10-20: "This should have an 'Expand all' next to
|
|
209
|
-
* collapse all").
|
|
210
|
-
*/
|
|
211
|
-
static expandAllButton({ label, part, onCollapse: onExpand }) {
|
|
212
|
-
var _el$12 = _tmpl$6();
|
|
213
|
-
var _el$13 = _el$12.firstChild;
|
|
214
|
-
_$addEvent(_el$12, "click", onExpand, true);
|
|
215
|
-
_$setAttribute(_el$12, "part", part);
|
|
216
|
-
_$setAttribute(_el$12, "aria-label", label);
|
|
217
|
-
_$setAttribute(_el$12, "title", label);
|
|
218
|
-
_$effect(() => {
|
|
219
|
-
return {
|
|
220
|
-
e: _$readShallow(COLLAPSE_ALL),
|
|
221
|
-
t: _$readShallow(CHEVRONS)
|
|
222
|
-
};
|
|
223
|
-
}, ({ e, t }, _p$) => {
|
|
224
|
-
_$className(_el$12, e, _p$?.e);
|
|
225
|
-
_$className(_el$13, t, _p$?.t);
|
|
180
|
+
_$className(_el$8, e, _p$?.e);
|
|
181
|
+
t !== _p$?.t && _$setAttribute(_el$8, "hidden", t);
|
|
226
182
|
});
|
|
227
|
-
return _el$
|
|
183
|
+
return _el$8;
|
|
228
184
|
}
|
|
229
185
|
////////////////
|
|
230
186
|
// ## The heading band
|
|
@@ -249,13 +205,77 @@ var Fold = class _Fold {
|
|
|
249
205
|
if (!band.querySelector(`.${FOLD_BUTTON}`)) return;
|
|
250
206
|
for (const target of event.composedPath()) {
|
|
251
207
|
if (!(target instanceof Element) || target === band) break;
|
|
252
|
-
if (target.classList.contains(FOLD_BUTTON)) return void
|
|
208
|
+
if (target.classList.contains(FOLD_BUTTON)) return void _Fold.toggleFrom(opener, event);
|
|
253
209
|
if (target.matches(CONTROLS)) return;
|
|
254
210
|
}
|
|
255
211
|
const selection = window.getSelection();
|
|
256
212
|
if (selection && !selection.isCollapsed && String(selection)) return;
|
|
257
|
-
|
|
213
|
+
_Fold.toggleFrom(opener, event);
|
|
214
|
+
}
|
|
215
|
+
////////////////
|
|
216
|
+
// ## ⌥-click: everything inside
|
|
217
|
+
////////////////
|
|
218
|
+
/**
|
|
219
|
+
* A click (or Enter / Space) on a fold's chevron or title: `opener` folds or unfolds; with ⌥ (Alt) held, it
|
|
220
|
+
* and everything inside it (epic `epic-engine` I161).
|
|
221
|
+
* - ⌥: `opener.toggleDeep()` when it has one (a section, a phase, an item), else its box and the light children of
|
|
222
|
+
* the element drawing it (`toggleDeepUnder()`)
|
|
223
|
+
* - Enter / Space click the button: the browser's click carries the keys held (⌥+Enter too)
|
|
224
|
+
*/
|
|
225
|
+
static toggleFrom(opener, event) {
|
|
226
|
+
if (!_Fold.isDeep(event)) return opener.toggle(event);
|
|
227
|
+
return opener.toggleDeep ? opener.toggleDeep(event) : _Fold.toggleDeepUnder(opener, _Fold.hostOf(event));
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* ⌥+Enter or ⌥+Space on a fold button: true, its own activation stopped (`preventDefault()`), so the caller toggles
|
|
231
|
+
* it deep (`toggleFrom()`).
|
|
232
|
+
* - why: Chromium clicks no button for Enter or Space with ⌥ held; macOS's ⌥+Space types a no-break space, so by
|
|
233
|
+
* `code`
|
|
234
|
+
*/
|
|
235
|
+
static deepKey(event) {
|
|
236
|
+
if (!event.altKey || !DEEP_KEYS.includes(event.code)) return false;
|
|
237
|
+
event.preventDefault();
|
|
238
|
+
event.stopPropagation();
|
|
239
|
+
return true;
|
|
240
|
+
}
|
|
241
|
+
/** ⌥ (Alt) held through `event`: everything inside too. */
|
|
242
|
+
static isDeep(event) {
|
|
243
|
+
return !!event && event.altKey === true;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Open `opener` and every block, item, card and panel inside `host` (`expandAllUnder()`, `cards`); open, fold it
|
|
247
|
+
* and all of them (`foldAllUnder()`).
|
|
248
|
+
* - no `host`: `opener` alone
|
|
249
|
+
* - returns whether `opener` changed
|
|
250
|
+
*/
|
|
251
|
+
static toggleDeepUnder(opener, host) {
|
|
252
|
+
const opening = !opener.isOpen();
|
|
253
|
+
if (opening) {
|
|
254
|
+
opener.toggle();
|
|
255
|
+
if (host) expandAllUnder(host, { cards: true });
|
|
256
|
+
} else {
|
|
257
|
+
if (host) foldAllUnder(host);
|
|
258
|
+
opener.toggle();
|
|
259
|
+
}
|
|
260
|
+
return opening === opener.isOpen();
|
|
258
261
|
}
|
|
262
|
+
/** The element whose shadow root `event` started in: the card or panel drawing the fold. */
|
|
263
|
+
static hostOf(event) {
|
|
264
|
+
const start = event.composedPath()[0];
|
|
265
|
+
const root = start instanceof Node ? start.getRootNode() : void 0;
|
|
266
|
+
return root instanceof ShadowRoot ? root.host : void 0;
|
|
267
|
+
}
|
|
268
|
+
/** `tip`, then what ⌥-click does, on a line of its own (`DEEP_TIPS`). */
|
|
269
|
+
static withDeepTip(tip, isOpen) {
|
|
270
|
+
return `${tip}
|
|
271
|
+
${isOpen ? DEEP_TIPS.fold : DEEP_TIPS.open}`;
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
var DEEP_TIPS = {
|
|
275
|
+
/** folded */
|
|
276
|
+
open: "⌥-click: open everything inside",
|
|
277
|
+
/** open */
|
|
278
|
+
fold: "⌥-click: fold everything inside"
|
|
259
279
|
};
|
|
260
280
|
function foldAllUnder(root) {
|
|
261
281
|
let folded = 0;
|
|
@@ -289,7 +309,11 @@ function insideFolded(element, root) {
|
|
|
289
309
|
return false;
|
|
290
310
|
}
|
|
291
311
|
__name(insideFolded, "insideFolded");
|
|
292
|
-
var
|
|
312
|
+
var DEEP_KEYS = [
|
|
313
|
+
"Enter",
|
|
314
|
+
"NumpadEnter",
|
|
315
|
+
"Space"
|
|
316
|
+
];
|
|
293
317
|
var EPIC_PREFIX = "epic-";
|
|
294
318
|
var FOLD_BUTTON = "fold-button";
|
|
295
319
|
var FOLDS = "folds";
|
|
@@ -298,11 +322,11 @@ var CONTROLS = `a[href], button, input, select, textarea, label, summary, [role=
|
|
|
298
322
|
var CHEVRON = "chevron";
|
|
299
323
|
var COLLAPSE_ALL = "collapse-all";
|
|
300
324
|
var CHEVRONS = "chevrons";
|
|
301
|
-
_$delegateEvents(["click"]);
|
|
325
|
+
_$delegateEvents(["click", "keydown"]);
|
|
302
326
|
export {
|
|
303
327
|
ACTIONS_BOX,
|
|
304
328
|
CONTROLS,
|
|
305
|
-
|
|
329
|
+
DEEP_TIPS,
|
|
306
330
|
FOLDS,
|
|
307
331
|
FOLD_BUTTON,
|
|
308
332
|
Fold,
|
|
@@ -16,7 +16,6 @@ import { SUMMARY_ID } from "../../review/index.js";
|
|
|
16
16
|
import { ReviewState } from "../epic-review/ReviewState.js";
|
|
17
17
|
import { EpicFold } from "../epic-section/EpicFold.js";
|
|
18
18
|
import { epicOverviewVocabulary } from "./EpicOverview.en.js";
|
|
19
|
-
import collapseAllCSS from "../epic-item/CollapseAll.css.inline.js";
|
|
20
19
|
import foldCSS from "../epic-section/EpicFold.css.inline.js";
|
|
21
20
|
import overviewCSS from "./EpicOverview.css.inline.js";
|
|
22
21
|
import tooltipCSS from "../epic-item/Tooltip.css.inline.js";
|
|
@@ -306,7 +305,6 @@ __publicField(EpicOverview, "vocabulary", __runInitializers(_init, 8, EpicOvervi
|
|
|
306
305
|
__publicField(EpicOverview, "elementSetup", __runInitializers(_init, 12, EpicOverview, { styleSheets: {
|
|
307
306
|
"epic-tooltip": tooltipCSS,
|
|
308
307
|
"epic-fold": foldCSS,
|
|
309
|
-
"epic-collapse-all": collapseAllCSS,
|
|
310
308
|
"epic-overview": overviewCSS
|
|
311
309
|
} })), __runInitializers(_init, 15, EpicOverview);
|
|
312
310
|
var PROMPT = "prompt";
|
|
@@ -24,13 +24,14 @@
|
|
|
24
24
|
--epic-inset: var(--epic-card-inset, 16px);
|
|
25
25
|
}
|
|
26
26
|
/*
|
|
27
|
-
* its status icon
|
|
28
|
-
*
|
|
27
|
+
* its status icon as wide as its circle, the title the row's gap after it: circle to "P53" as far as chevron to
|
|
28
|
+
* circle (epic `epic-engine` I161; Owen, 2026-10-29: "Why so much space between o and P53?"; 24.5px, now 12px)
|
|
29
|
+
* - before: a cell as wide as an item's id chip (`--epic-phase-icon-cell`, 30px), so a phase's title started where
|
|
30
|
+
* an item's does (Owen, 2026-10-25)
|
|
31
|
+
* - 2px past its circle: the chevron's own box has that much room after its stroke
|
|
29
32
|
*/
|
|
30
33
|
ui-section::part(icon) {
|
|
31
|
-
|
|
32
|
-
width: var(--epic-phase-icon-cell, 30px);
|
|
33
|
-
justify-content: flex-start;
|
|
34
|
+
margin-inline-end: 2px;
|
|
34
35
|
}
|
|
35
36
|
:host([status="done"]) {
|
|
36
37
|
--_epic-fold-title-color: var(--epic-muted, var(--ui-text-muted));
|
|
@@ -174,12 +175,20 @@
|
|
|
174
175
|
|
|
175
176
|
/*
|
|
176
177
|
* ## Dragged to another place (epic `epic-engine` P34; the Phases section's `PhaseDrag`)
|
|
177
|
-
* - a to-do phase on a reviewed page: its title row the grab cursor
|
|
178
|
+
* - a to-do phase on a reviewed page: its title row's EMPTY space the grab cursor; its chevron, icon, title, time
|
|
179
|
+
* pill and buttons keep the pointer (I161, `EpicFold.css`); while dragging, the grabbing cursor everywhere
|
|
178
180
|
* - while dragged: faded; the phase it would land beside: an accent line on that side, over its edge (no room taken)
|
|
179
181
|
*/
|
|
180
|
-
:host(:state(movable)) ui-section::part(
|
|
182
|
+
:host(:state(movable)) ui-section::part(title) {
|
|
181
183
|
cursor: grab;
|
|
182
184
|
}
|
|
185
|
+
/* while a phase is dragged, `PhaseDrag` marks every phase (`data-dragging`) */
|
|
186
|
+
:host([data-dragging]) ui-section::part(title),
|
|
187
|
+
:host([data-dragging]) ui-section::part(toggle),
|
|
188
|
+
:host([data-dragging]) ui-section::part(badge),
|
|
189
|
+
:host([data-dragging]) ui-section::part(actions) {
|
|
190
|
+
cursor: grabbing;
|
|
191
|
+
}
|
|
183
192
|
:host([data-dragged]) {
|
|
184
193
|
opacity: 0.45;
|
|
185
194
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "@layer ui.components.epic-phase.content{:host{--_epic-fold-band:var(--epic-band-row,transparent);--_epic-fold-gap:var(--epic-phase-gap,12px);--_epic-fold-bleed:0px;--epic-inset:var(--epic-card-inset,16px)}ui-section::part(icon){
|
|
1
|
+
export default "@layer ui.components.epic-phase.content{:host{--_epic-fold-band:var(--epic-band-row,transparent);--_epic-fold-gap:var(--epic-phase-gap,12px);--_epic-fold-bleed:0px;--epic-inset:var(--epic-card-inset,16px)}ui-section::part(icon){margin-inline-end:2px}:host([status=done]){--_epic-fold-title-color:var(--epic-muted,var(--ui-text-muted))}ui-section{--ui-section-title-padding:8px 6px 8px 8px;--ui-section-content-padding:10px var(--epic-inset,16px) 0;--_epic-fold-line:calc(var(--ui-font-size,16px) * var(--ui-section-h3) * var(--ui-section-title-line-height))}:host(:state(open)) ui-section{--ui-section-content-padding:0}:host(:state(open)) ui-section:not(:state(stuck))::part(title){border-end-end-radius:var(--epic-phase-radius,8px);border-end-start-radius:var(--epic-phase-radius,8px)}ui-section:not(:state(stuck))::part(title){border-start-start-radius:var(--epic-phase-top-radius,0px);border-start-end-radius:var(--epic-phase-top-radius,0px)}:host(:not(:state(open))) ui-section:not(:state(stuck))::part(title){border-end-end-radius:var(--epic-phase-bottom-radius,0px);border-end-start-radius:var(--epic-phase-bottom-radius,0px)}.estimate{box-sizing:border-box;background:var(--epic-card,var(--ui-surface));min-width:52px;height:22px;box-shadow:inset 0 0 0 1px var(--epic-rule,var(--ui-border-color));color:var(--epic-muted,var(--ui-text-muted));font:600 12px/1 var(--epic-sans,var(--ui-font-family));font-variant-numeric:tabular-nums;letter-spacing:0;border-radius:999px;flex:none;justify-content:center;align-items:center;margin-inline-end:6px;padding:0 6px;display:inline-flex}.estimate.took{color:var(--ui-green-text,var(--ui-green));cursor:help}.icon.todo{color:var(--ui-grey-text,var(--ui-text-muted))}.icon.active{color:var(--ui-blue-text,var(--ui-blue))}.icon.done{color:var(--ui-green-text,var(--ui-green))}.icon.working{color:var(--ui-blue-text,var(--ui-blue));cursor:help}.spinner{box-sizing:border-box;border:1.5px solid color-mix(in oklab, currentColor 25%, transparent);border-top-color:currentColor;border-radius:50%;flex:none;width:1em;height:1em;animation:1.1s linear infinite epic-phase-turn;display:block}@keyframes epic-phase-turn{to{rotate:1turn}}@media (prefers-reduced-motion:reduce){.spinner{animation:none}}.id{font-variant-numeric:tabular-nums}.dot{white-space:pre}.body{overflow-wrap:anywhere}.changed{color:var(--ui-orange-text,var(--ui-orange));font-variant-numeric:tabular-nums;vertical-align:.05em;pointer-events:auto;align-items:center;gap:3px;margin-left:8px;font-size:.8em;font-weight:700;display:inline-flex}.changed svg{fill:currentColor;width:auto;height:.95em;display:block}:host(:state(movable)) ui-section::part(title){cursor:grab}:host([data-dragging]) ui-section::part(title),:host([data-dragging]) ui-section::part(toggle),:host([data-dragging]) ui-section::part(badge),:host([data-dragging]) ui-section::part(actions){cursor:grabbing}:host([data-dragged]){opacity:.45}:host([data-drop=before]){box-shadow:0 -2px 0 var(--epic-accent,var(--ui-link))}:host([data-drop=after]){box-shadow:0 2px 0 var(--epic-accent,var(--ui-link))}}"
|
|
@@ -21,7 +21,6 @@ import { EpicFold } from "../epic-section/EpicFold.js";
|
|
|
21
21
|
import { DOC_REVIEW } from "../epic-section/EpicSection.types.js";
|
|
22
22
|
import { epicPhaseVocabulary } from "./EpicPhase.en.js";
|
|
23
23
|
import { ICON } from "./EpicPhase.types.js";
|
|
24
|
-
import collapseAllCSS from "../epic-item/CollapseAll.css.inline.js";
|
|
25
24
|
import foldCSS from "../epic-section/EpicFold.css.inline.js";
|
|
26
25
|
import phaseCSS from "./EpicPhase.css.inline.js";
|
|
27
26
|
import tooltipCSS from "../epic-item/Tooltip.css.inline.js";
|
|
@@ -311,7 +310,7 @@ var _EpicPhase = class _EpicPhase2 extends (_a = EpicFold, _vocabulary_dec = [E.
|
|
|
311
310
|
}, "icon"),
|
|
312
311
|
// its time pill (the estimate, or what a done phase took) just BEFORE the review controls (Owen, 2026-10-25:
|
|
313
312
|
// "time moved to the right, I preferred it to the left so the buttons lined up row to row"; I123 had it after
|
|
314
|
-
// them), in the tools: the review buttons end at one right edge on every row
|
|
313
|
+
// them), in the tools: the review buttons end at one right edge on every row
|
|
315
314
|
tools: /* @__PURE__ */ __name(() => {
|
|
316
315
|
const _self$3 = this;
|
|
317
316
|
return [_$createComponent(Show, {
|
|
@@ -474,7 +473,6 @@ __publicField(_EpicPhase, "vocabulary", __runInitializers(_init, 8, _EpicPhase,
|
|
|
474
473
|
__publicField(_EpicPhase, "elementSetup", __runInitializers(_init, 12, _EpicPhase, { styleSheets: {
|
|
475
474
|
"epic-tooltip": tooltipCSS,
|
|
476
475
|
"epic-fold": foldCSS,
|
|
477
|
-
"epic-collapse-all": collapseAllCSS,
|
|
478
476
|
"epic-phase": phaseCSS
|
|
479
477
|
} })), __runInitializers(_init, 15, _EpicPhase);
|
|
480
478
|
var EpicPhase = _EpicPhase;
|
|
@@ -129,8 +129,23 @@
|
|
|
129
129
|
align-items: flex-start;
|
|
130
130
|
letter-spacing: -0.012em;
|
|
131
131
|
}
|
|
132
|
+
/*
|
|
133
|
+
* the fold button as wide as what it draws (chevron, icon, title), not the whole row: so the row's CURSORS can
|
|
134
|
+
* differ (epic `epic-engine` I161; Owen, 2026-10-29: "pointer when over content in these headers, drag cursor when
|
|
135
|
+
* over whitespace")
|
|
136
|
+
* - over the chevron, icon, title, badge and buttons: the pointer
|
|
137
|
+
* - over the empty space: the pointer too, as a click there still folds (`EpicFold.onTitleRowClick()`); a to-do
|
|
138
|
+
* phase on a reviewed page, the grab cursor, where it drags (`EpicPhase.css`)
|
|
139
|
+
*/
|
|
132
140
|
ui-section::part(toggle) {
|
|
133
141
|
align-items: flex-start;
|
|
142
|
+
width: fit-content;
|
|
143
|
+
max-width: 100%;
|
|
144
|
+
}
|
|
145
|
+
ui-section::part(title),
|
|
146
|
+
ui-section::part(badge),
|
|
147
|
+
ui-section::part(actions) {
|
|
148
|
+
cursor: pointer;
|
|
134
149
|
}
|
|
135
150
|
/*
|
|
136
151
|
* Everything in the title row sits on the title's FIRST line, centred on it, however many lines the title wraps to:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "@layer ui.components.epic-fold.types{:host{margin-inline:calc(-1 * var(--_epic-fold-bleed,0px));display:block}:host([hidden]){display:none}:host(:not(:state(open))){border-bottom:1px solid var(--epic-rule,var(--ui-border-color))}:host(:state(open)){margin-block-end:var(--_epic-fold-gap,28px)}}@layer ui.components.epic-fold.content{:host(:is(epic-overview,epic-section:not([kind=overview-part]))) ui-section{--ui-section-stuck-shadow:var(--epic-bar-shadow,none)}:host(:is(epic-overview,epic-section:not([kind=overview-part])):state(open)) ui-section::part(title){border-end-end-radius:var(--epic-section-radius,14px);border-end-start-radius:var(--epic-section-radius,14px);box-shadow:0 1px light-dark(#281e5a2e,#000000a6),0 -1px light-dark(#281e5a14,#00000073)}:host(:is(epic-overview,epic-section:not([kind=overview-part]))) ui-section::part(title){margin-inline:max(0px, calc(var(--epic-inset,16px) - var(--epic-card-inset,16px)));padding-inline:min(var(--epic-inset,16px), var(--epic-card-inset,16px)) var(--_epic-fold-end)}:host(:is(epic-overview,epic-section:not([kind=overview-part])):state(open)) ui-section:not(:state(stuck))::part(title){border-start-start-radius:var(--epic-section-top-radius,var(--epic-section-radius,14px));border-start-end-radius:var(--epic-section-top-radius,var(--epic-section-radius,14px))}:host(:is(epic-overview,epic-section:not([kind=overview-part])):not(:state(open))) ui-section:not(:state(stuck))::part(title){border-start-start-radius:var(--epic-section-top-radius,var(--epic-section-radius,14px));border-start-end-radius:var(--epic-section-top-radius,var(--epic-section-radius,14px));border-end-end-radius:var(--epic-section-bottom-radius,var(--epic-section-radius,14px));border-end-start-radius:var(--epic-section-bottom-radius,var(--epic-section-radius,14px))}:host(:is(epic-overview,epic-section:not([kind=overview-part])):not(:state(open))){border-bottom:none}:host(:is(epic-overview,epic-section:not([kind=overview-part])):not(:state(open))) ui-section::part(title){border-bottom:1px solid var(--epic-rule,var(--ui-border-color))}ui-section{--ui-section-margin:0;--ui-section-dividing-border:none;--ui-section-title-padding:10px var(--_epic-fold-end) 10px var(--epic-inset,16px);--ui-section-title-gap:10px;--ui-section-title-color:var(--_epic-fold-title-color,var(--epic-heading-ink,var(--ui-text-color)));--ui-section-title-line-height:1.25;--ui-section-h2:1.5;--ui-section-h3:1.15;--ui-section-h4:1;--ui-section-content-padding:12px var(--epic-inset,16px) 0;--ui-section-sticky-background:linear-gradient(var(--_epic-fold-band,transparent), var(--_epic-fold-band,transparent)) var(--epic-bg,var(--ui-background));--ui-section-stuck-shadow:none;--ui-section-z-index:4;--ui-section-fold-icon-size:12px;--ui-section-tip-width:340px;--ui-font-family-heading:var(--epic-serif,var(--ui-font-family-heading));display:block}ui-section::part(title){letter-spacing:-.012em;align-items:flex-start}ui-section::part(toggle){align-items:flex-start}ui-section{--_epic-fold-line:calc(var(--ui-font-size,16px) * var(--ui-section-h2) * var(--ui-section-title-line-height));--_epic-fold-end:var(--epic-title-end,12px)}ui-section::part(icon),ui-section::part(badge),ui-section::part(fold-icon){translate:0 calc((var(--_epic-fold-line) - 100%) / 2);align-self:flex-start}ui-section::part(actions){height:var(--_epic-fold-line);align-self:flex-start}ui-section::part(icon){color:var(--epic-accent,var(--ui-link))}ui-section::part(fold-icon){color:var(--epic-muted,var(--ui-text-muted))}ui-section::part(header){overflow-wrap:break-word}ui-section::part(badge){box-sizing:border-box;background:var(--epic-card,var(--ui-surface));height:22px;box-shadow:inset 0 0 0 1px var(--epic-rule,var(--ui-border-color));color:var(--epic-muted,var(--ui-text-muted));font:600 12px/1 var(--epic-sans,var(--ui-font-family));font-variant-numeric:tabular-nums;letter-spacing:0;border-radius:999px;flex:none;align-items:center;padding:0 8px;display:inline-flex}ui-section::part(actions){flex:none;align-items:center;display:inline-flex}ui-section::part(content){overflow-clip-margin:6px;line-height:1.6;overflow:clip}.tools{align-items:center;gap:2px;display:inline-flex}.icon{justify-content:center;align-items:center;display:inline-flex}.icon svg{fill:currentColor;width:auto;height:.9em;display:block}ui-section::part(header){min-width:0;display:flex}.header{align-items:baseline;min-width:0;display:flex}.words{min-width:0}.header>:not(.words){flex:none}.header,.icon,ui-section::part(header),ui-section::part(icon){pointer-events:none}.body{display:block}:host(:is(epic-phase,[kind=overview-part]):state(open)){margin-block:0 10px}:host(:is(epic-phase,[kind=overview-part]):state(open)) ui-section::part(title){box-shadow:var(--epic-bar-shadow,0 1px 0 light-dark(#281e5a14,#00000073))}:host(:is(epic-phase,[kind=overview-part]):state(open)) ui-section:not(:state(stuck))::part(title),:host(:is(epic-phase,[kind=overview-part]):state(open)) ui-section:state(stuck)::part(title){border-end-end-radius:var(--epic-drawer-radius,8px);border-end-start-radius:var(--epic-drawer-radius,8px)}:host(:is(epic-phase,[kind=overview-part]):state(open)) .body{margin:0 var(--epic-drawer-inset,4px);padding:10px calc(var(--epic-inset,16px) - var(--epic-drawer-inset,4px) - 1px) 10px;border:1px solid var(--epic-rule,var(--ui-border-color));background:var(--epic-drawer-fill,light-dark(#ffffff47,#ffffff05));border-top:none;border-end-end-radius:var(--epic-drawer-radius,8px);border-end-start-radius:var(--epic-drawer-radius,8px)}:host(:is(epic-phase,[kind=overview-part]):state(open)) .body>[part~=note-box]:last-child{margin-inline:calc(var(--epic-drawer-inset,4px) - var(--epic-inset,16px));margin-block-end:-11px}.body>[part~=note-box]{z-index:1;position:sticky;bottom:4px}:host(:is(epic-phase,[kind=overview-part]):state(open)) .body>[part~=note-box]:last-child::part(base){--epic-note-radius-top:10px;--epic-note-radius-bottom:var(--epic-drawer-radius,8px);margin:8px 0 0}.note{color:var(--epic-muted,var(--ui-text-muted));margin:0 0 8px;font-size:14px;font-style:italic}@container epic-page (width<=480px){ui-section{--ui-section-h2:1.25;--ui-section-h3:1.05;--ui-section-title-gap:8px;--ui-section-tip-width:240px}}}"
|
|
1
|
+
export default "@layer ui.components.epic-fold.types{:host{margin-inline:calc(-1 * var(--_epic-fold-bleed,0px));display:block}:host([hidden]){display:none}:host(:not(:state(open))){border-bottom:1px solid var(--epic-rule,var(--ui-border-color))}:host(:state(open)){margin-block-end:var(--_epic-fold-gap,28px)}}@layer ui.components.epic-fold.content{:host(:is(epic-overview,epic-section:not([kind=overview-part]))) ui-section{--ui-section-stuck-shadow:var(--epic-bar-shadow,none)}:host(:is(epic-overview,epic-section:not([kind=overview-part])):state(open)) ui-section::part(title){border-end-end-radius:var(--epic-section-radius,14px);border-end-start-radius:var(--epic-section-radius,14px);box-shadow:0 1px light-dark(#281e5a2e,#000000a6),0 -1px light-dark(#281e5a14,#00000073)}:host(:is(epic-overview,epic-section:not([kind=overview-part]))) ui-section::part(title){margin-inline:max(0px, calc(var(--epic-inset,16px) - var(--epic-card-inset,16px)));padding-inline:min(var(--epic-inset,16px), var(--epic-card-inset,16px)) var(--_epic-fold-end)}:host(:is(epic-overview,epic-section:not([kind=overview-part])):state(open)) ui-section:not(:state(stuck))::part(title){border-start-start-radius:var(--epic-section-top-radius,var(--epic-section-radius,14px));border-start-end-radius:var(--epic-section-top-radius,var(--epic-section-radius,14px))}:host(:is(epic-overview,epic-section:not([kind=overview-part])):not(:state(open))) ui-section:not(:state(stuck))::part(title){border-start-start-radius:var(--epic-section-top-radius,var(--epic-section-radius,14px));border-start-end-radius:var(--epic-section-top-radius,var(--epic-section-radius,14px));border-end-end-radius:var(--epic-section-bottom-radius,var(--epic-section-radius,14px));border-end-start-radius:var(--epic-section-bottom-radius,var(--epic-section-radius,14px))}:host(:is(epic-overview,epic-section:not([kind=overview-part])):not(:state(open))){border-bottom:none}:host(:is(epic-overview,epic-section:not([kind=overview-part])):not(:state(open))) ui-section::part(title){border-bottom:1px solid var(--epic-rule,var(--ui-border-color))}ui-section{--ui-section-margin:0;--ui-section-dividing-border:none;--ui-section-title-padding:10px var(--_epic-fold-end) 10px var(--epic-inset,16px);--ui-section-title-gap:10px;--ui-section-title-color:var(--_epic-fold-title-color,var(--epic-heading-ink,var(--ui-text-color)));--ui-section-title-line-height:1.25;--ui-section-h2:1.5;--ui-section-h3:1.15;--ui-section-h4:1;--ui-section-content-padding:12px var(--epic-inset,16px) 0;--ui-section-sticky-background:linear-gradient(var(--_epic-fold-band,transparent), var(--_epic-fold-band,transparent)) var(--epic-bg,var(--ui-background));--ui-section-stuck-shadow:none;--ui-section-z-index:4;--ui-section-fold-icon-size:12px;--ui-section-tip-width:340px;--ui-font-family-heading:var(--epic-serif,var(--ui-font-family-heading));display:block}ui-section::part(title){letter-spacing:-.012em;align-items:flex-start}ui-section::part(toggle){align-items:flex-start;width:fit-content;max-width:100%}ui-section::part(title),ui-section::part(badge),ui-section::part(actions){cursor:pointer}ui-section{--_epic-fold-line:calc(var(--ui-font-size,16px) * var(--ui-section-h2) * var(--ui-section-title-line-height));--_epic-fold-end:var(--epic-title-end,12px)}ui-section::part(icon),ui-section::part(badge),ui-section::part(fold-icon){translate:0 calc((var(--_epic-fold-line) - 100%) / 2);align-self:flex-start}ui-section::part(actions){height:var(--_epic-fold-line);align-self:flex-start}ui-section::part(icon){color:var(--epic-accent,var(--ui-link))}ui-section::part(fold-icon){color:var(--epic-muted,var(--ui-text-muted))}ui-section::part(header){overflow-wrap:break-word}ui-section::part(badge){box-sizing:border-box;background:var(--epic-card,var(--ui-surface));height:22px;box-shadow:inset 0 0 0 1px var(--epic-rule,var(--ui-border-color));color:var(--epic-muted,var(--ui-text-muted));font:600 12px/1 var(--epic-sans,var(--ui-font-family));font-variant-numeric:tabular-nums;letter-spacing:0;border-radius:999px;flex:none;align-items:center;padding:0 8px;display:inline-flex}ui-section::part(actions){flex:none;align-items:center;display:inline-flex}ui-section::part(content){overflow-clip-margin:6px;line-height:1.6;overflow:clip}.tools{align-items:center;gap:2px;display:inline-flex}.icon{justify-content:center;align-items:center;display:inline-flex}.icon svg{fill:currentColor;width:auto;height:.9em;display:block}ui-section::part(header){min-width:0;display:flex}.header{align-items:baseline;min-width:0;display:flex}.words{min-width:0}.header>:not(.words){flex:none}.header,.icon,ui-section::part(header),ui-section::part(icon){pointer-events:none}.body{display:block}:host(:is(epic-phase,[kind=overview-part]):state(open)){margin-block:0 10px}:host(:is(epic-phase,[kind=overview-part]):state(open)) ui-section::part(title){box-shadow:var(--epic-bar-shadow,0 1px 0 light-dark(#281e5a14,#00000073))}:host(:is(epic-phase,[kind=overview-part]):state(open)) ui-section:not(:state(stuck))::part(title),:host(:is(epic-phase,[kind=overview-part]):state(open)) ui-section:state(stuck)::part(title){border-end-end-radius:var(--epic-drawer-radius,8px);border-end-start-radius:var(--epic-drawer-radius,8px)}:host(:is(epic-phase,[kind=overview-part]):state(open)) .body{margin:0 var(--epic-drawer-inset,4px);padding:10px calc(var(--epic-inset,16px) - var(--epic-drawer-inset,4px) - 1px) 10px;border:1px solid var(--epic-rule,var(--ui-border-color));background:var(--epic-drawer-fill,light-dark(#ffffff47,#ffffff05));border-top:none;border-end-end-radius:var(--epic-drawer-radius,8px);border-end-start-radius:var(--epic-drawer-radius,8px)}:host(:is(epic-phase,[kind=overview-part]):state(open)) .body>[part~=note-box]:last-child{margin-inline:calc(var(--epic-drawer-inset,4px) - var(--epic-inset,16px));margin-block-end:-11px}.body>[part~=note-box]{z-index:1;position:sticky;bottom:4px}:host(:is(epic-phase,[kind=overview-part]):state(open)) .body>[part~=note-box]:last-child::part(base){--epic-note-radius-top:10px;--epic-note-radius-bottom:var(--epic-drawer-radius,8px);margin:8px 0 0}.note{color:var(--epic-muted,var(--ui-text-muted));margin:0 0 8px;font-size:14px;font-style:italic}@container epic-page (width<=480px){ui-section{--ui-section-h2:1.25;--ui-section-h3:1.05;--ui-section-title-gap:8px;--ui-section-tip-width:240px}}}"
|