@protonradio/proton-ui 0.7.11 → 0.7.13
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/README.md +73 -73
- package/dist/colors-BdogYmJi.js.map +1 -1
- package/dist/colors-Dwh4VIMR.mjs.map +1 -1
- package/dist/constants.cjs.js.map +1 -1
- package/dist/constants.es.js.map +1 -1
- package/dist/icons.svg +10 -10
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.es.js +26 -19
- package/dist/index.es.js.map +1 -1
- package/dist/utils-BUwoPI1e.js.map +1 -1
- package/dist/utils-Bc2wVuvD.mjs.map +1 -1
- package/package.json +91 -91
package/dist/index.d.ts
CHANGED
|
@@ -610,7 +610,11 @@ export declare const TableBody: <T = object>(props: ProtonTableBodyProps<T>) =>
|
|
|
610
610
|
|
|
611
611
|
export { TableHeader }
|
|
612
612
|
|
|
613
|
-
declare
|
|
613
|
+
declare interface TableProps extends AriaTableProps, TableStateProps<object> {
|
|
614
|
+
headerProps?: {
|
|
615
|
+
isHidden?: boolean;
|
|
616
|
+
};
|
|
617
|
+
}
|
|
614
618
|
|
|
615
619
|
/**
|
|
616
620
|
* A component that displays text with an ellipsis when it overflows its container.
|
package/dist/index.es.js
CHANGED
|
@@ -11388,16 +11388,21 @@ function Bh({ column: t, state: e }) {
|
|
|
11388
11388
|
}
|
|
11389
11389
|
);
|
|
11390
11390
|
}
|
|
11391
|
-
function hi({
|
|
11392
|
-
|
|
11391
|
+
function hi({
|
|
11392
|
+
type: t,
|
|
11393
|
+
children: e,
|
|
11394
|
+
isHidden: n = !1
|
|
11395
|
+
}) {
|
|
11396
|
+
let { rowGroupProps: r } = Hp();
|
|
11393
11397
|
return /* @__PURE__ */ b.jsx(
|
|
11394
11398
|
t,
|
|
11395
11399
|
{
|
|
11396
|
-
...
|
|
11400
|
+
...r,
|
|
11397
11401
|
className: W(
|
|
11398
11402
|
"proton-Table__rowGroup",
|
|
11399
11403
|
t === "thead" ? "proton-Table__rowGroup--header" : "proton-Table__rowGroup--body"
|
|
11400
11404
|
),
|
|
11405
|
+
style: n ? { display: "none" } : void 0,
|
|
11401
11406
|
children: e
|
|
11402
11407
|
}
|
|
11403
11408
|
);
|
|
@@ -11433,25 +11438,27 @@ function Kh({
|
|
|
11433
11438
|
}
|
|
11434
11439
|
);
|
|
11435
11440
|
}
|
|
11436
|
-
function Mh({ cell: t, state: e }) {
|
|
11437
|
-
let
|
|
11438
|
-
const { align:
|
|
11441
|
+
function Mh({ cell: t, state: e, width: n }) {
|
|
11442
|
+
let r = M(), { gridCellProps: l } = Vp({ node: t }, e, r), { isFocusVisible: i, focusProps: o } = Xt();
|
|
11443
|
+
const { align: a = "left" } = t.props;
|
|
11439
11444
|
return /* @__PURE__ */ b.jsx(
|
|
11440
11445
|
"td",
|
|
11441
11446
|
{
|
|
11442
|
-
...H(
|
|
11447
|
+
...H(l, o),
|
|
11443
11448
|
className: W(
|
|
11444
11449
|
"proton-Table__cell",
|
|
11445
|
-
|
|
11446
|
-
`proton-Table__cell--${
|
|
11450
|
+
i ? "proton-Table__cell--focused" : null,
|
|
11451
|
+
`proton-Table__cell--${a}`
|
|
11447
11452
|
),
|
|
11448
|
-
|
|
11453
|
+
style: n ? { width: n } : void 0,
|
|
11454
|
+
ref: r,
|
|
11449
11455
|
children: t.rendered
|
|
11450
11456
|
}
|
|
11451
11457
|
);
|
|
11452
11458
|
}
|
|
11453
11459
|
const u4 = uv, s4 = cv, c4 = sv, d4 = av;
|
|
11454
11460
|
function f4(t) {
|
|
11461
|
+
var i;
|
|
11455
11462
|
let e = ov({
|
|
11456
11463
|
...t
|
|
11457
11464
|
}), n = M(), { collection: r } = e, { gridProps: l } = Np(
|
|
@@ -11460,24 +11467,24 @@ function f4(t) {
|
|
|
11460
11467
|
n
|
|
11461
11468
|
);
|
|
11462
11469
|
return /* @__PURE__ */ b.jsxs("table", { ...l, ref: n, className: W("proton-Table"), children: [
|
|
11463
|
-
/* @__PURE__ */ b.jsx(hi, { type: "thead", children: r.headerRows.map((
|
|
11470
|
+
/* @__PURE__ */ b.jsx(hi, { type: "thead", isHidden: (i = t.headerProps) == null ? void 0 : i.isHidden, children: r.headerRows.map((o) => /* @__PURE__ */ b.jsx(Ah, { item: o, state: e, children: Array.from(r.getChildren(o.key)).map((a) => /* @__PURE__ */ b.jsx(
|
|
11464
11471
|
Bh,
|
|
11465
11472
|
{
|
|
11466
|
-
column:
|
|
11473
|
+
column: a,
|
|
11467
11474
|
state: e
|
|
11468
11475
|
},
|
|
11469
|
-
|
|
11470
|
-
)) },
|
|
11471
|
-
/* @__PURE__ */ b.jsx(hi, { type: "tbody", children: Array.from(r.body.childNodes).map((
|
|
11476
|
+
a.key
|
|
11477
|
+
)) }, o.key)) }),
|
|
11478
|
+
/* @__PURE__ */ b.jsx(hi, { type: "tbody", children: Array.from(r.body.childNodes).map((o) => /* @__PURE__ */ b.jsx(
|
|
11472
11479
|
Kh,
|
|
11473
11480
|
{
|
|
11474
|
-
item:
|
|
11481
|
+
item: o,
|
|
11475
11482
|
state: e,
|
|
11476
|
-
backgroundColor:
|
|
11483
|
+
backgroundColor: o.props.backgroundColor,
|
|
11477
11484
|
showLines: r.body.props.showLines,
|
|
11478
|
-
children: Array.from(r.getChildren(
|
|
11485
|
+
children: Array.from(r.getChildren(o.key)).map((a) => /* @__PURE__ */ b.jsx(Mh, { cell: a, state: e, width: a.props.width }, a.key))
|
|
11479
11486
|
},
|
|
11480
|
-
|
|
11487
|
+
o.key
|
|
11481
11488
|
)) })
|
|
11482
11489
|
] });
|
|
11483
11490
|
}
|