@oslokommune/punkt-react 11.12.4 → 11.13.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/CHANGELOG.md +34 -0
- package/dist/components/icon/DefaultIconFetcher.d.ts +1 -1
- package/dist/components/index.d.ts +4 -1
- package/dist/components/table/Table.d.ts +8 -8
- package/dist/components/table/Table.test.d.ts +1 -1
- package/dist/components/table/TableBody.d.ts +7 -0
- package/dist/components/table/TableDataCell.d.ts +8 -0
- package/dist/components/table/TableHeader.d.ts +4 -3
- package/dist/components/table/TableHeaderCell.d.ts +7 -0
- package/dist/components/table/TableRow.d.ts +7 -0
- package/dist/punkt-react.es.js +621 -605
- package/dist/punkt-react.umd.js +13 -13
- package/package.json +3 -3
- package/src/components/index.ts +4 -1
- package/src/components/table/Table.test.tsx +48 -89
- package/src/components/table/Table.tsx +24 -24
- package/src/components/table/TableBody.tsx +13 -0
- package/src/components/table/TableDataCell.tsx +19 -0
- package/src/components/table/TableHeader.tsx +9 -3
- package/src/components/table/TableHeaderCell.tsx +13 -0
- package/src/components/table/TableRow.tsx +13 -0
- package/src/components/table/__snapshots__/Table.test.tsx.snap +0 -137
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,40 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [11.13.0](https://github.com/oslokommune/punkt/compare/11.12.8...11.13.0) (2024-05-22)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
Ingen
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
Ingen
|
|
18
|
+
|
|
19
|
+
### Chores
|
|
20
|
+
Ingen
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [11.13.0](https://github.com/oslokommune/punkt/compare/11.12.7...11.13.0) (2024-05-14)
|
|
26
|
+
|
|
27
|
+
### ⚠ BREAKING CHANGES
|
|
28
|
+
Ingen
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
Ingen
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
Ingen
|
|
35
|
+
|
|
36
|
+
### Chores
|
|
37
|
+
Ingen
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
|
|
8
42
|
## [11.12.4](https://github.com/oslokommune/punkt/compare/11.12.3...11.12.4) (2024-05-08)
|
|
9
43
|
|
|
10
44
|
### ⚠ BREAKING CHANGES
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconFetcher } from './IconContext';
|
|
2
2
|
|
|
3
|
-
export declare const defaultSvgPath = "https://punkt-cdn.oslo.kommune.no/11.
|
|
3
|
+
export declare const defaultSvgPath = "https://punkt-cdn.oslo.kommune.no/11.13/icons/";
|
|
4
4
|
declare const defaultIconFetcher: IconFetcher;
|
|
5
5
|
export default defaultIconFetcher;
|
|
@@ -17,8 +17,11 @@ export { PktRadioButton } from './radio/RadioButton';
|
|
|
17
17
|
export { PktSearchInput } from './searchinput/SearchInput';
|
|
18
18
|
export { PktSelect } from './select/Select';
|
|
19
19
|
export { PktTable } from './table/Table';
|
|
20
|
-
export {
|
|
20
|
+
export { PktTableDataCell } from './table/TableDataCell';
|
|
21
|
+
export { PktTableHeaderCell } from './table/TableHeaderCell';
|
|
21
22
|
export { PktTableHeader } from './table/TableHeader';
|
|
23
|
+
export { PktTableRow } from './table/TableRow';
|
|
24
|
+
export { PktTableBody } from './table/TableBody';
|
|
22
25
|
export { PktTabs } from './tabs/Tabs';
|
|
23
26
|
export { PktTag } from './tag/Tag';
|
|
24
27
|
export { PktTextarea } from './textarea/Textarea';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export type
|
|
3
|
-
interface
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
children: React.ReactNode
|
|
2
|
+
export type TTableSkin = 'basic' | 'zebra-blue';
|
|
3
|
+
interface ITableProps {
|
|
4
|
+
compact?: boolean;
|
|
5
|
+
skin?: 'basic' | 'zebra-blue';
|
|
6
|
+
responsiveView?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
children: React.ReactNode;
|
|
9
9
|
}
|
|
10
|
-
export declare const PktTable: ({
|
|
10
|
+
export declare const PktTable: ({ className, compact, skin, responsiveView, children, }: ITableProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface ITableDataCellProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
dataLabel?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const PktTableDataCell: ({ children, className, dataLabel }: ITableDataCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
interface
|
|
3
|
-
|
|
2
|
+
interface ITableHeaderProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
children: React.ReactNode;
|
|
4
5
|
}
|
|
5
|
-
export declare const PktTableHeader: ({ children }:
|
|
6
|
+
export declare const PktTableHeader: ({ className, children }: ITableHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface ITableHeaderCellProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const PktTableHeaderCell: ({ className, children }: ITableHeaderCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|