@oslokommune/punkt-react 13.6.8 → 13.6.9
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/CHANGELOG.md +18 -0
- package/dist/index.d.ts +12 -12
- package/dist/punkt-react.es.js +5 -2
- package/dist/punkt-react.umd.js +1 -1
- package/package.json +2 -2
- package/src/components/table/Table.tsx +3 -1
- package/src/components/table/TableBody.tsx +3 -3
- package/src/components/table/TableData.tsx +8 -2
- package/src/components/table/TableDataCell.tsx +3 -2
- package/src/components/table/TableHeader.tsx +3 -3
- package/src/components/table/TableHeaderCell.tsx +3 -3
- package/src/components/table/TableRow.tsx +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,24 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [13.6.9](https://github.com/oslokommune/punkt/compare/13.6.8...13.6.9) (2025-09-24)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
Ingen
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
* Utvid table-komponentene til å ta alle tilgjengelige HTML-props (#3044).
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
Ingen
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
8
26
|
## [13.6.4](https://github.com/oslokommune/punkt/compare/13.6.3...13.6.4) (2025-09-19)
|
|
9
27
|
|
|
10
28
|
### ⚠ BREAKING CHANGES
|
package/dist/index.d.ts
CHANGED
|
@@ -604,28 +604,28 @@ declare interface ISpecObject {
|
|
|
604
604
|
default?: any;
|
|
605
605
|
}
|
|
606
606
|
|
|
607
|
-
declare interface ITableBodyProps {
|
|
607
|
+
declare interface ITableBodyProps extends React_2.HTMLAttributes<HTMLTableSectionElement> {
|
|
608
608
|
className?: string;
|
|
609
609
|
children: React_2.ReactNode;
|
|
610
610
|
}
|
|
611
611
|
|
|
612
|
-
declare interface ITableDataCellProps {
|
|
612
|
+
declare interface ITableDataCellProps extends React_2.HTMLAttributes<HTMLTableCellElement> {
|
|
613
613
|
className?: string;
|
|
614
614
|
children?: React_2.ReactNode;
|
|
615
615
|
dataLabel?: string;
|
|
616
616
|
}
|
|
617
617
|
|
|
618
|
-
declare interface ITableHeaderCellProps {
|
|
618
|
+
declare interface ITableHeaderCellProps extends React_2.HTMLAttributes<HTMLTableCellElement> {
|
|
619
619
|
className?: string;
|
|
620
620
|
children: React_2.ReactNode;
|
|
621
621
|
}
|
|
622
622
|
|
|
623
|
-
declare interface ITableHeaderProps {
|
|
623
|
+
declare interface ITableHeaderProps extends React_2.HTMLAttributes<HTMLTableSectionElement> {
|
|
624
624
|
className?: string;
|
|
625
625
|
children: React_2.ReactNode;
|
|
626
626
|
}
|
|
627
627
|
|
|
628
|
-
declare interface ITableProps {
|
|
628
|
+
declare interface ITableProps extends React_2.HTMLAttributes<HTMLTableElement> {
|
|
629
629
|
compact?: boolean;
|
|
630
630
|
skin?: 'basic' | 'zebra-blue';
|
|
631
631
|
responsiveView?: boolean;
|
|
@@ -633,7 +633,7 @@ declare interface ITableProps {
|
|
|
633
633
|
children: React_2.ReactNode;
|
|
634
634
|
}
|
|
635
635
|
|
|
636
|
-
declare interface ITableRowProps {
|
|
636
|
+
declare interface ITableRowProps extends React_2.HTMLAttributes<HTMLTableRowElement> {
|
|
637
637
|
className?: string;
|
|
638
638
|
children: React_2.ReactNode;
|
|
639
639
|
}
|
|
@@ -729,17 +729,17 @@ export declare const PktStep: ({ children, className, status, title }: IPktStep)
|
|
|
729
729
|
|
|
730
730
|
export declare const PktStepper: default_2.ForwardRefExoticComponent<IPktStepper & default_2.RefAttributes<HTMLOListElement>>;
|
|
731
731
|
|
|
732
|
-
export declare const PktTable: ({ className, compact, skin, responsiveView, children, }: ITableProps) => JSX_2.Element;
|
|
732
|
+
export declare const PktTable: ({ className, compact, skin, responsiveView, children, ...props }: ITableProps) => JSX_2.Element;
|
|
733
733
|
|
|
734
|
-
export declare const PktTableBody: ({ children, className }: ITableBodyProps) => JSX_2.Element;
|
|
734
|
+
export declare const PktTableBody: ({ id, children, className, ...props }: ITableBodyProps) => JSX_2.Element;
|
|
735
735
|
|
|
736
|
-
export declare const PktTableDataCell: ({ children, className, dataLabel }: ITableDataCellProps) => JSX_2.Element;
|
|
736
|
+
export declare const PktTableDataCell: ({ children, className, dataLabel, ...props }: ITableDataCellProps) => JSX_2.Element;
|
|
737
737
|
|
|
738
|
-
export declare const PktTableHeader: ({ className, children }: ITableHeaderProps) => JSX_2.Element;
|
|
738
|
+
export declare const PktTableHeader: ({ className, children, ...props }: ITableHeaderProps) => JSX_2.Element;
|
|
739
739
|
|
|
740
|
-
export declare const PktTableHeaderCell: ({ className, children }: ITableHeaderCellProps) => JSX_2.Element;
|
|
740
|
+
export declare const PktTableHeaderCell: ({ className, children, ...props }: ITableHeaderCellProps) => JSX_2.Element;
|
|
741
741
|
|
|
742
|
-
export declare const PktTableRow: ({ className, children }: ITableRowProps) => JSX_2.Element;
|
|
742
|
+
export declare const PktTableRow: ({ className, children, ...props }: ITableRowProps) => JSX_2.Element;
|
|
743
743
|
|
|
744
744
|
export declare const PktTabs: default_2.ForwardRefExoticComponent<IPktTabs & default_2.RefAttributes<HTMLDivElement>>;
|
|
745
745
|
|
package/dist/punkt-react.es.js
CHANGED
|
@@ -37554,7 +37554,8 @@ const rf = Ke(
|
|
|
37554
37554
|
compact: t = !1,
|
|
37555
37555
|
skin: r = "basic",
|
|
37556
37556
|
responsiveView: n = !0,
|
|
37557
|
-
children: a
|
|
37557
|
+
children: a,
|
|
37558
|
+
...i
|
|
37558
37559
|
}) => /* @__PURE__ */ f.jsx(
|
|
37559
37560
|
"table",
|
|
37560
37561
|
{
|
|
@@ -37566,15 +37567,17 @@ const rf = Ke(
|
|
|
37566
37567
|
"pkt-table--zebra-blue": r === "zebra-blue"
|
|
37567
37568
|
}),
|
|
37568
37569
|
role: "table",
|
|
37570
|
+
...i,
|
|
37569
37571
|
children: a
|
|
37570
37572
|
}
|
|
37571
|
-
), qs = ({ className: e, children: t }) => /* @__PURE__ */ f.jsx("thead", { className: _r(e, "pkt-table__header", {}), role: "rowgroup", children: t }), Gs = ({
|
|
37573
|
+
), qs = ({ className: e, children: t, ...r }) => /* @__PURE__ */ f.jsx("thead", { className: _r(e, "pkt-table__header", {}), role: "rowgroup", ...r, children: t }), Gs = ({ id: e, children: t, className: r, ...n }) => /* @__PURE__ */ f.jsx("tbody", { id: e, className: _r(r, "pkt-table__body", {}), ...n, role: "rowgroup", children: t }), On = ({ className: e, children: t, ...r }) => /* @__PURE__ */ f.jsx("tr", { className: _r(e, "pkt-table__row", {}), role: "row", ...r, children: t }), vr = ({ className: e, children: t, ...r }) => /* @__PURE__ */ f.jsx("th", { className: _r(e, "pkt-table__header-cell", {}), role: "columnheader", ...r, children: t }), ar = ({ children: e, className: t, dataLabel: r, ...n }) => /* @__PURE__ */ f.jsx(
|
|
37572
37574
|
"td",
|
|
37573
37575
|
{
|
|
37574
37576
|
className: _r(t, "pkt-table__data-cell", {}),
|
|
37575
37577
|
"data-label": r,
|
|
37576
37578
|
role: "cell",
|
|
37577
37579
|
"data-testid": "pkt-table__data-cell",
|
|
37580
|
+
...n,
|
|
37578
37581
|
children: e
|
|
37579
37582
|
}
|
|
37580
37583
|
), c3 = ({ specs: e }) => {
|