@orianatech/pire 0.11.0 → 0.12.0
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/data/LinkList.d.ts.map +1 -1
- package/dist/components.css +10 -3
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/tokens/colors.css +24 -2
- package/dist/tokens/themes.css +24 -5
- package/package.json +4 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkList.d.ts","sourceRoot":"","sources":["../../../src/components/data/LinkList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAKpC,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,mEAAmE;IACnE,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,wCAAwC;IACxC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IAC3F,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,wEAAwE;IACxE,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,sGAAsG;AACtG,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"LinkList.d.ts","sourceRoot":"","sources":["../../../src/components/data/LinkList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAKpC,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,mEAAmE;IACnE,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,wCAAwC;IACxC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IAC3F,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,wEAAwE;IACxE,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,sGAAsG;AACtG,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,qBAmB9E"}
|
package/dist/components.css
CHANGED
|
@@ -19,7 +19,9 @@
|
|
|
19
19
|
.pire-btn[data-variant="secondary"][data-pressed]{background:var(--blue-20)}
|
|
20
20
|
.pire-btn[data-variant="tertiary"]{background:transparent;color:var(--text-link)}
|
|
21
21
|
.pire-btn[data-variant="tertiary"][data-hovered]{background:var(--surface-hover)}
|
|
22
|
-
.
|
|
22
|
+
/* The label deepens with the press, not just the background. `--surface-active` is the strongest
|
|
23
|
+
tint in the neutral ramp, and holding the resting link colour against it leaves 4.03:1 in dark. */
|
|
24
|
+
.pire-btn[data-variant="tertiary"][data-pressed]{background:var(--surface-active);color:var(--text-link-hover)}
|
|
23
25
|
.pire-btn[data-variant="danger"]{background:var(--danger-bg);color:var(--accent-fg);border-color:var(--danger-bg)}
|
|
24
26
|
.pire-btn[data-variant="danger"][data-hovered]{background:var(--danger-bg-hover);border-color:var(--danger-bg-hover)}
|
|
25
27
|
.pire-btn[data-variant="emphasized"]{background:var(--surface-shell);color:var(--accent-fg);border-color:var(--surface-shell)}
|
|
@@ -367,8 +369,13 @@
|
|
|
367
369
|
|
|
368
370
|
/* ---- LinkList ---------------------------------------------------------- */
|
|
369
371
|
.pire-linklist{display:flex;flex-direction:column}
|
|
372
|
+
/* The role="listitem" wrapper that satisfies aria-required-children. It lays out rather than
|
|
373
|
+
disappearing: display:contents would drop it from the accessibility tree in some engines, which
|
|
374
|
+
is the one thing it exists to be in. */
|
|
375
|
+
.pire-linklist-row{display:flex}
|
|
370
376
|
.pire-linklist-item{display:flex;align-items:center;gap:var(--sp-2);width:100%;height:var(--row-h-regular);padding:0 var(--sp-1);border:0;border-bottom:1px solid var(--border-subtle);background:transparent;text-align:left;cursor:pointer;color:var(--text-primary);transition:var(--transition-control)}
|
|
371
|
-
|
|
377
|
+
/* The button is no longer its parent's last child — the wrapper is. */
|
|
378
|
+
.pire-linklist-row:last-child .pire-linklist-item{border-bottom:0}
|
|
372
379
|
.pire-linklist-item[data-hovered]{background:var(--surface-hover)}
|
|
373
380
|
.pire-linklist-key{font:var(--type-code)}
|
|
374
381
|
.pire-linklist-text{flex:1;min-width:0;font:var(--type-caption);color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
@@ -539,7 +546,7 @@
|
|
|
539
546
|
/* Sits over the icon's top-right. The button is position:relative only when a count is present,
|
|
540
547
|
so nothing else about its layout changes for the common case. */
|
|
541
548
|
.pire-iconbtn[data-has-count="true"]{position:relative}
|
|
542
|
-
.pire-iconbtn-count{position:absolute;top:2px;right:2px;display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 var(--sp-1);border-radius:var(--radius-pill);background:var(--status-negative-fg);color:var(--text-
|
|
549
|
+
.pire-iconbtn-count{position:absolute;top:2px;right:2px;display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 var(--sp-1);border-radius:var(--radius-pill);background:var(--status-negative-fg);color:var(--text-on-status);font:var(--type-micro);font-weight:var(--fw-semibold);line-height:1;pointer-events:none}
|
|
543
550
|
.pire-iconbtn-count[data-variant="dot"]{min-width:8px;width:8px;height:8px;padding:0;top:4px;right:4px}
|
|
544
551
|
.pire-iconbtn[data-variant="inverse"] .pire-iconbtn-count{box-shadow:0 0 0 2px var(--surface-shell)}
|
|
545
552
|
|
package/dist/index.cjs
CHANGED
|
@@ -2969,12 +2969,12 @@ function colorForSegment(index) {
|
|
|
2969
2969
|
var import_react_aria_components29 = require("react-aria-components");
|
|
2970
2970
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
2971
2971
|
function LinkList({ items, onSelect, className, ...rest }) {
|
|
2972
|
-
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: cx("pire-linklist", className), role: "list", ...rest, children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_react_aria_components29.Button, { className: "pire-linklist-item", onPress: () => onSelect?.(item.id), children: [
|
|
2972
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: cx("pire-linklist", className), role: "list", ...rest, children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { role: "listitem", className: "pire-linklist-row", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_react_aria_components29.Button, { className: "pire-linklist-item", onPress: () => onSelect?.(item.id), children: [
|
|
2973
2973
|
item.icon ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon, { name: item.icon, size: 16, style: { color: "var(--text-secondary)" } }) : null,
|
|
2974
2974
|
item.key ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "pire-linklist-key", children: item.key }) : null,
|
|
2975
2975
|
item.text ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "pire-linklist-text", children: item.text }) : null,
|
|
2976
2976
|
item.trailing
|
|
2977
|
-
] }, item.id)) });
|
|
2977
|
+
] }) }, item.id)) });
|
|
2978
2978
|
}
|
|
2979
2979
|
|
|
2980
2980
|
// src/components/layout/PageBand.tsx
|