@orianatech/pire 1.4.0 → 1.4.1
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/navigation/Ribbon.d.ts.map +1 -1
- package/dist/components.css +56 -11
- package/dist/index.cjs +58 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +67 -26
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ribbon.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/Ribbon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,MAAM,WAAW,kBAAkB;IACjC;6FACyF;IACzF,KAAK,EAAE,MAAM,CAAC;IACd,qFAAqF;IACrF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;kGAC8F;IAC9F,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;oFACgF;IAChF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;qGACiG;IACjG,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B;yEACqE;IACrE,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd;wFACoF;IACpF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,MAAM,WAAW,WAAW;IAC1B,6FAA6F;IAC7F,YAAY,EAAE,MAAM,CAAC;IACrB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC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4C,CAAC,KAAK,EAAE,gBAAgB,KAAK,KAAK,CAAC,YAAY,CAAC;AACpH,8BAA8B;AAC9B,eAAO,MAAM,aAAa,EAAgD,CAAC,KAAK,EAAE,kBAAkB,KAAK,KAAK,CAAC,YAAY,CAAC;AAuL5H;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,iBAAiB,EAC9F,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,qBA8I3E;yBA/Ie,MAAM;aAiJT,SAAS;aACP,WAAW;aACT,aAAa"}
|
package/dist/components.css
CHANGED
|
@@ -235,7 +235,14 @@
|
|
|
235
235
|
position is muscle memory, and a band that reflows as its content changes throws that away. The
|
|
236
236
|
large tile is 78x68 because that is the smallest box that fits a 20px glyph over two lines of
|
|
237
237
|
caption at --fs-caption without the caption hyphenating. */
|
|
238
|
-
|
|
238
|
+
/* `max-width` and `min-width` together are what make the scrolling below actually happen. The
|
|
239
|
+
ribbon has no width of its own, so in a *block* parent it fills and its scroller scrolls — but
|
|
240
|
+
as a flex item under `align-items:flex-start`, or in a grid track, its width is content-based
|
|
241
|
+
and it simply grows past the container instead, taking the pinned toggle off-screen with it.
|
|
242
|
+
`max-width` clamps those two; `min-width:0` is the separate half that lets it shrink as a flex
|
|
243
|
+
*row* item, where the default `min-width:auto` floors it at its content. Same fix, and the same
|
|
244
|
+
reason, as `.pire-sidenav` embedded in a column narrower than `--sidenav-w`. */
|
|
245
|
+
.pire-ribbon{display:flex;flex-direction:column;max-width:100%;min-width:0;background:var(--surface-card);border-bottom:1px solid var(--border-default)}
|
|
239
246
|
.pire-ribbon-tablist{display:flex;align-items:stretch;gap:var(--sp-0h);height:var(--sp-8);padding:0 var(--sp-3);border-bottom:1px solid var(--border-subtle)}
|
|
240
247
|
.pire-ribbon-tab{display:flex;align-items:center;height:var(--sp-8);padding:0 var(--sp-3);border:0;background:transparent;color:var(--text-secondary);font:var(--type-body);white-space:nowrap;cursor:pointer;outline:none;transition:var(--transition-control)}
|
|
241
248
|
.pire-ribbon-tab[data-hovered]{color:var(--text-primary)}
|
|
@@ -246,11 +253,32 @@
|
|
|
246
253
|
.pire-ribbon-tab[data-contextual="true"]{background:var(--surface-contextual);color:var(--text-contextual)}
|
|
247
254
|
.pire-ribbon-tab[data-contextual="true"][data-selected]{color:var(--text-contextual);box-shadow:inset 0 -2px 0 0 var(--border-contextual)}
|
|
248
255
|
.pire-ribbon-panel{padding:var(--sp-1) var(--sp-2) 0;outline:none}
|
|
249
|
-
.pire-ribbon-band{display:flex;align-items:stretch;min-width:0
|
|
256
|
+
.pire-ribbon-band{display:flex;align-items:stretch;min-width:0}
|
|
257
|
+
/* Both modes are a scrolling command region plus a trailing region that never scrolls. Before the
|
|
258
|
+
split the toggle was simply the last flex item of an `overflow:hidden` row, so a narrow screen
|
|
259
|
+
clipped it away with the last group — and the toggle is the one control that gets an oversized
|
|
260
|
+
ribbon out of the way, so the overflow ate the way out of the overflow.
|
|
261
|
+
`overflow-y:hidden` because a horizontal scroller reports a stray vertical overflow often
|
|
262
|
+
enough to draw a second scrollbar; nothing is clipped by it, since every focus ring in here is
|
|
263
|
+
inset (`outline-offset` is negative on both the command and the toggle). */
|
|
264
|
+
/* Everything it holds carries `flex:0 0 auto` on its own rule below. Shrinking is the alternative
|
|
265
|
+
to scrolling and a flex row reaches for it first: left at the default, the collapsed bar squashed
|
|
266
|
+
its `leading` chip to nothing and drew the first command straight through it, and the scrollbar
|
|
267
|
+
it should have grown never appeared. */
|
|
268
|
+
.pire-ribbon-scroll{display:flex;align-items:stretch;flex:1 1 auto;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
|
|
269
|
+
/* Opaque, so commands pass *behind* the trailing controls rather than through them. */
|
|
270
|
+
.pire-ribbon-trail{display:flex;align-items:center;gap:var(--sp-0h);flex:0 0 auto;background:var(--surface-card)}
|
|
271
|
+
/* The freeze line, and only while something is genuinely hidden behind it — the component sets
|
|
272
|
+
`data-overflow` from the scroller's own geometry. A line drawn unconditionally is a divider the
|
|
273
|
+
ribbon does not have, parked beside the toggle on every screen wide enough not to need one.
|
|
274
|
+
Drawn as a box-shadow rather than a border for the same reason `.pire-table [data-pinned-last]`
|
|
275
|
+
is: it paints over the scrolled content instead of reserving a pixel of layout that would shift
|
|
276
|
+
the commands sideways the moment the line appeared. */
|
|
277
|
+
.pire-ribbon-trail[data-overflow="true"]{box-shadow:-1px 0 0 0 var(--border-default)}
|
|
250
278
|
/* The prototype's group gutter is 10px, which is off the 4px grid. --sp-2 (8px) reads the same at
|
|
251
279
|
this scale and stays on it; if the groups end up visually cramped, widen the *band* padding
|
|
252
280
|
rather than reintroducing a literal here. */
|
|
253
|
-
.pire-ribbon-group{display:flex;flex-direction:column;padding:0 var(--sp-2);border-right:1px solid var(--border-subtle)}
|
|
281
|
+
.pire-ribbon-group{display:flex;flex-direction:column;flex:0 0 auto;padding:0 var(--sp-2);border-right:1px solid var(--border-subtle)}
|
|
254
282
|
.pire-ribbon-group:last-child{border-right:0}
|
|
255
283
|
.pire-ribbon-group-body{display:flex;gap:var(--sp-0h);flex:1;align-items:flex-start}
|
|
256
284
|
.pire-ribbon-stack{display:flex;flex-direction:column;gap:var(--sp-0h);padding-top:var(--sp-0h)}
|
|
@@ -278,17 +306,18 @@
|
|
|
278
306
|
/* Every bar command is emitted `data-size="sm"` whatever it is in the band (see `Command` in
|
|
279
307
|
Ribbon.tsx), so this rule only has to resize the compact form — it never has to out-specify the
|
|
280
308
|
`lg` tile's `flex-direction:column` and fixed 78px width. */
|
|
281
|
-
.pire-ribbon-bar .pire-ribbon-command{gap:var(--sp-1);height:var(--sp-8);padding:0 var(--sp-2);font:var(--type-body);white-space:nowrap}
|
|
282
|
-
.pire-ribbon-bar-sep{width:1px;align-self:stretch;margin:var(--sp-2) var(--sp-1);background:var(--border-subtle)}
|
|
283
|
-
.pire-ribbon-
|
|
284
|
-
.pire-ribbon-leading{display:flex;align-items:center;min-width:0}
|
|
309
|
+
.pire-ribbon-bar .pire-ribbon-command{gap:var(--sp-1);flex:0 0 auto;height:var(--sp-8);padding:0 var(--sp-2);font:var(--type-body);white-space:nowrap}
|
|
310
|
+
.pire-ribbon-bar-sep{width:1px;flex:0 0 auto;align-self:stretch;margin:var(--sp-2) var(--sp-1);background:var(--border-subtle)}
|
|
311
|
+
.pire-ribbon-leading{display:flex;align-items:center;flex:0 0 auto}
|
|
285
312
|
.pire-ribbon-toggle{display:inline-flex;align-items:center;justify-content:center;width:var(--sp-8);height:var(--sp-8);flex-shrink:0;border:1px solid transparent;border-radius:var(--radius-1);background:transparent;color:var(--text-secondary);cursor:pointer;outline:none;transition:var(--transition-control)}
|
|
286
313
|
.pire-ribbon-toggle[data-hovered]{background:var(--surface-hover);border-color:var(--border-subtle)}
|
|
287
314
|
.pire-ribbon-toggle[data-focus-visible]{outline:var(--focus-w) solid var(--focus-color);outline-offset:calc(var(--focus-offset) * -1)}
|
|
288
315
|
/* The band's trailing controls sit at the top of the band, not centred in it — a toggle floating
|
|
289
316
|
in the middle of the ribbon reads as belonging to whichever group it lands beside. The band has
|
|
290
|
-
no declared height: it is as tall as its tallest group, so there is no figure to name here.
|
|
291
|
-
|
|
317
|
+
no declared height: it is as tall as its tallest group, so there is no figure to name here.
|
|
318
|
+
`align-items`, not `align-self`: the trail is a flex container of its own now, and the freeze
|
|
319
|
+
line has to run the full height of the band rather than stopping at the toggle. */
|
|
320
|
+
.pire-ribbon-band .pire-ribbon-trail{align-items:flex-start;padding-top:var(--sp-1)}
|
|
292
321
|
|
|
293
322
|
/* ---- Breadcrumb / Pagination ----------------------------------------- */
|
|
294
323
|
.pire-breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-1);margin:0;padding:0;list-style:none;font:var(--type-caption)}
|
|
@@ -313,7 +342,15 @@
|
|
|
313
342
|
.pire-avatar-trigger[data-hovered]{background:var(--blue-50)}
|
|
314
343
|
.pire-avatar-trigger[data-pressed]{background:var(--blue-70)}
|
|
315
344
|
.pire-avatar-trigger[data-focus-visible]{outline:var(--focus-w) solid var(--text-inverse);outline-offset:2px}
|
|
316
|
-
|
|
345
|
+
/* `max-width:100%` so the nav can be embedded somewhere narrower than `--sidenav-w` — the POS uses
|
|
346
|
+
it as a category list in a 200px grid track, where the fixed 256px overflowed by 56. Nothing
|
|
347
|
+
looked broken: the containing element scrolled on its own axis, so the excess went off-frame
|
|
348
|
+
with no scrollbar, and what people saw was that `.pire-sidenav-count` — pushed to the item's
|
|
349
|
+
right edge, 240px in — had nothing to draw on. Twenty invisible counters read as "this component
|
|
350
|
+
has no counters". Overriding `--sidenav-w` from an ancestor is not the answer: it duplicates a
|
|
351
|
+
number that lives in the parent's own `grid-template-columns`, and a 1px parent border means the
|
|
352
|
+
two still disagree. In the shell this does not bite, because there the parent is wider. */
|
|
353
|
+
.pire-sidenav{display:flex;flex-direction:column;width:var(--sidenav-w);max-width:100%;flex:0 0 auto;background:var(--surface-nav);border-right:1px solid var(--border-subtle);overflow:auto}
|
|
317
354
|
.pire-sidenav[data-collapsed="true"]{width:var(--sidenav-w-collapsed)}
|
|
318
355
|
.pire-sidenav-group{padding:var(--sp-3) 0}
|
|
319
356
|
.pire-sidenav-group + .pire-sidenav-group{border-top:1px solid var(--border-subtle)}
|
|
@@ -393,7 +430,15 @@
|
|
|
393
430
|
panel into a menu. Collapses below the breakpoint rather than shrinking the tiles past legibility. */
|
|
394
431
|
.pire-launcher-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--sp-0h)}
|
|
395
432
|
@media (max-width:600px){.pire-launcher-grid{grid-template-columns:1fr}}
|
|
396
|
-
|
|
433
|
+
/* `min-width:0` is what keeps the grid inside the panel. `1fr` is `minmax(auto, 1fr)`, and that
|
|
434
|
+
`auto` is this item's min-content — which includes a `white-space:nowrap` description, so a track
|
|
435
|
+
could not shrink below a whole sentence. With a long description in *both* columns the tracks
|
|
436
|
+
computed to 575px inside a 528px box and the right-hand card ran past the panel; the declared
|
|
437
|
+
`text-overflow:ellipsis` never fired, because the description measured exactly its own text and
|
|
438
|
+
an ancestor was doing the clipping. No ellipsis reads as "the copy is like that", not as
|
|
439
|
+
"there is more", which is why this survived so long. The sibling rule on
|
|
440
|
+
`.pire-launcher-item-text` already had this; it was one level too far in to define the track. */
|
|
441
|
+
.pire-launcher-item{display:flex;align-items:center;gap:var(--sp-3);width:100%;min-width:0;padding:var(--sp-2);border:0;border-radius:var(--radius-1);background:transparent;color:var(--text-primary);font:var(--type-body);text-align:left;cursor:pointer;transition:var(--transition-control)}
|
|
397
442
|
.pire-launcher-item[data-hovered]{background:var(--surface-hover)}
|
|
398
443
|
.pire-launcher-item[data-pressed]{background:var(--surface-active)}
|
|
399
444
|
.pire-launcher-item[data-selected="true"]{background:var(--surface-selected);color:var(--accent-subtle-fg)}
|
package/dist/index.cjs
CHANGED
|
@@ -3305,6 +3305,33 @@ function Group8({ group, selectionCount }) {
|
|
|
3305
3305
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "pire-ribbon-caption", "aria-hidden": "true", children: group.caption })
|
|
3306
3306
|
] });
|
|
3307
3307
|
}
|
|
3308
|
+
function useTrailingOverflow() {
|
|
3309
|
+
const ref = React24.useRef(null);
|
|
3310
|
+
const [overflow, setOverflow] = React24.useState(false);
|
|
3311
|
+
React24.useEffect(() => {
|
|
3312
|
+
const node = ref.current;
|
|
3313
|
+
if (!node) return;
|
|
3314
|
+
const measure = () => setOverflow(node.scrollLeft + node.clientWidth < node.scrollWidth - 1);
|
|
3315
|
+
measure();
|
|
3316
|
+
node.addEventListener("scroll", measure, { passive: true });
|
|
3317
|
+
const resize = new ResizeObserver(measure);
|
|
3318
|
+
resize.observe(node);
|
|
3319
|
+
for (const child of node.children) resize.observe(child);
|
|
3320
|
+
return () => {
|
|
3321
|
+
node.removeEventListener("scroll", measure);
|
|
3322
|
+
resize.disconnect();
|
|
3323
|
+
};
|
|
3324
|
+
}, []);
|
|
3325
|
+
return [ref, overflow];
|
|
3326
|
+
}
|
|
3327
|
+
function Surface({ className, id, label, trailing, children }) {
|
|
3328
|
+
const [scrollRef, overflow] = useTrailingOverflow();
|
|
3329
|
+
const domId = id ? { id } : {};
|
|
3330
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_react_aria_components31.Toolbar, { ...domId, className, "aria-label": label, children: [
|
|
3331
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "pire-ribbon-scroll", ref: scrollRef, children }),
|
|
3332
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "pire-ribbon-trail", "data-overflow": overflow ? "true" : void 0, children: trailing })
|
|
3333
|
+
] });
|
|
3334
|
+
}
|
|
3308
3335
|
function barBlocks(tabs) {
|
|
3309
3336
|
const blocks = [];
|
|
3310
3337
|
for (const tab of tabs) {
|
|
@@ -3362,7 +3389,6 @@ function Ribbon({
|
|
|
3362
3389
|
toggleRef.current?.focus();
|
|
3363
3390
|
});
|
|
3364
3391
|
const bandId = React24.useId();
|
|
3365
|
-
const bandDomId = { id: bandId };
|
|
3366
3392
|
const toggle = /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3367
3393
|
import_react_aria_components31.Button,
|
|
3368
3394
|
{
|
|
@@ -3381,16 +3407,24 @@ function Ribbon({
|
|
|
3381
3407
|
);
|
|
3382
3408
|
if (collapsed) {
|
|
3383
3409
|
const blocks = barBlocks(tabs);
|
|
3384
|
-
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: cx("pire-ribbon", className), style, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3410
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: cx("pire-ribbon", className), style, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
3411
|
+
Surface,
|
|
3412
|
+
{
|
|
3413
|
+
className: "pire-ribbon-bar",
|
|
3414
|
+
label: rest["aria-label"],
|
|
3415
|
+
trailing: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
|
|
3416
|
+
actions,
|
|
3417
|
+
toggle
|
|
3418
|
+
] }),
|
|
3419
|
+
children: [
|
|
3420
|
+
leading ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "pire-ribbon-leading", children: leading }) : null,
|
|
3421
|
+
blocks.map((block, i) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(React24.Fragment, { children: [
|
|
3422
|
+
i > 0 || leading ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "pire-ribbon-bar-sep" }) : null,
|
|
3423
|
+
block.commands.map((c) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Command, { command: c, selectionCount: count, inBar: true }, c.key))
|
|
3424
|
+
] }, block.key))
|
|
3425
|
+
]
|
|
3426
|
+
}
|
|
3427
|
+
) });
|
|
3394
3428
|
}
|
|
3395
3429
|
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: cx("pire-ribbon", className), style, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_react_aria_components31.Tabs, { selectedKey: selected, onSelectionChange: (k) => select(String(k)), children: [
|
|
3396
3430
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_aria_components31.TabList, { className: "pire-ribbon-tablist", "aria-label": rest["aria-label"], children: visible.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
@@ -3403,12 +3437,19 @@ function Ribbon({
|
|
|
3403
3437
|
},
|
|
3404
3438
|
tab.key
|
|
3405
3439
|
)) }),
|
|
3406
|
-
visible.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_aria_components31.TabPanel, { id: tab.id, className: "pire-ribbon-panel", children: /* @__PURE__ */ (0, import_jsx_runtime44.
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3440
|
+
visible.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_aria_components31.TabPanel, { id: tab.id, className: "pire-ribbon-panel", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3441
|
+
Surface,
|
|
3442
|
+
{
|
|
3443
|
+
id: bandId,
|
|
3444
|
+
className: "pire-ribbon-band",
|
|
3445
|
+
label: msg.ribbonLabel,
|
|
3446
|
+
trailing: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
|
|
3447
|
+
actions,
|
|
3448
|
+
toggle
|
|
3449
|
+
] }),
|
|
3450
|
+
children: tab.groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Group8, { group, selectionCount: count }, group.key))
|
|
3451
|
+
}
|
|
3452
|
+
) }, tab.key))
|
|
3412
3453
|
] }) });
|
|
3413
3454
|
}
|
|
3414
3455
|
Ribbon.Tab = RibbonTab;
|