@oslokommune/punkt-react 19.12.3 → 19.14.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 +16 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/select/Select.d.ts +3 -18
- package/dist/components/table/Table.d.ts +5 -8
- package/dist/components/table/TableDataCell.d.ts +3 -5
- package/dist/punkt-react.cjs +1 -1
- package/dist/punkt-react.js +1722 -1708
- package/dist/shared-types/index.d.ts +4 -1
- package/dist/shared-types/select.d.ts +57 -0
- package/dist/shared-types/table.d.ts +51 -0
- package/package.json +3 -3
- package/src/components/index.ts +3 -0
- package/src/components/select/Select.tsx +13 -26
- package/src/components/table/Table.tsx +8 -10
- package/src/components/table/TableBody.tsx +1 -1
- package/src/components/table/TableDataCell.tsx +3 -4
- package/dist/components/table/TableData.d.ts +0 -7
- package/src/components/table/TableData.tsx +0 -15
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,22 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [19.14.0](https://github.com/oslokommune/punkt/compare/19.13.0...19.14.0) (2026-10-15)
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
* Typesikre table (#3729).
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [19.13.0](https://github.com/oslokommune/punkt/compare/19.12.3...19.13.0) (2026-10-14)
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
* typesikre select (#3727).
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
|
|
8
24
|
## [19.12.0](https://github.com/oslokommune/punkt/compare/19.11.0...19.12.0) (2026-10-12)
|
|
9
25
|
|
|
10
26
|
### Features
|
|
@@ -46,6 +46,9 @@ export { PktTableDataCell } from './table/TableDataCell';
|
|
|
46
46
|
export { PktTableHeader } from './table/TableHeader';
|
|
47
47
|
export { PktTableHeaderCell } from './table/TableHeaderCell';
|
|
48
48
|
export { PktTableRow } from './table/TableRow';
|
|
49
|
+
export type { IPktTable } from './table/Table';
|
|
50
|
+
export type { IPktTableDataCell } from './table/TableDataCell';
|
|
51
|
+
export type { TPktTableSkin } from '../shared-types';
|
|
49
52
|
export { PktTabs } from './tabs/Tabs';
|
|
50
53
|
export { PktTabItem } from './tabs/TabItem';
|
|
51
54
|
export { PktTag } from './tag/Tag';
|
|
@@ -1,29 +1,14 @@
|
|
|
1
1
|
import { ReactNode, SelectHTMLAttributes } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IPktSelectBase } from '../../shared-types';
|
|
3
3
|
export type { IPktSelectOption, TSelectOption } from '../../shared-types/select';
|
|
4
|
-
export interface IPktSelectProps extends
|
|
5
|
-
ariaDescribedby?: string;
|
|
6
|
-
ariaLabelledby?: string;
|
|
4
|
+
export interface IPktSelectProps extends Omit<IPktSelectBase, 'helptext' | 'helptextDropdown' | 'errorMessage' | 'value' | 'options'>, Omit<SelectHTMLAttributes<HTMLSelectElement>, keyof IPktSelectBase> {
|
|
7
5
|
children?: ReactNode | ReactNode[];
|
|
8
|
-
disabled?: boolean;
|
|
9
6
|
errorMessage?: string | ReactNode | ReactNode[];
|
|
10
|
-
hasError?: boolean;
|
|
11
7
|
helptext?: string | ReactNode | ReactNode[];
|
|
12
8
|
helptextDropdown?: string | ReactNode | ReactNode[];
|
|
13
|
-
helptextDropdownButton?: string;
|
|
14
9
|
id: string;
|
|
15
|
-
inline?: boolean;
|
|
16
|
-
fullwidth?: boolean;
|
|
17
10
|
label: string;
|
|
18
|
-
|
|
19
|
-
optionalTag?: boolean;
|
|
20
|
-
optionalText?: string;
|
|
21
|
-
requiredTag?: boolean;
|
|
22
|
-
requiredText?: string;
|
|
23
|
-
tagText?: string | null;
|
|
24
|
-
useWrapper?: boolean;
|
|
25
|
-
hasFieldset?: boolean;
|
|
26
|
-
inputSize?: 'small' | 'medium' | 'xsmall';
|
|
11
|
+
value?: SelectHTMLAttributes<HTMLSelectElement>['value'];
|
|
27
12
|
/** @deprecated Var aldri implementert — bruk children med `<option>`-elementer. */
|
|
28
13
|
options?: never;
|
|
29
14
|
}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
responsiveView?: boolean;
|
|
7
|
-
className?: string;
|
|
2
|
+
import { IPktTableBase, TPktTableSkin } from '../../shared-types';
|
|
3
|
+
/** @deprecated Bruk `TPktTableSkin`. */
|
|
4
|
+
export type TTableSkin = TPktTableSkin;
|
|
5
|
+
export interface IPktTable extends IPktTableBase, HTMLAttributes<HTMLTableElement> {
|
|
8
6
|
children: ReactNode;
|
|
9
7
|
}
|
|
10
|
-
export declare const PktTable: ({ className, compact, skin, responsiveView, children, ...props }:
|
|
11
|
-
export {};
|
|
8
|
+
export declare const PktTable: ({ className, compact, skin, responsiveView, children, ...props }: IPktTable) => import("react").JSX.Element;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { IPktTableDataCellBase } from '../../shared-types';
|
|
3
|
+
export interface IPktTableDataCell extends IPktTableDataCellBase, HTMLAttributes<HTMLTableCellElement> {
|
|
4
4
|
children?: ReactNode;
|
|
5
|
-
dataLabel?: string;
|
|
6
5
|
}
|
|
7
|
-
export declare const PktTableDataCell: ({ children, className, dataLabel, ...props }:
|
|
8
|
-
export {};
|
|
6
|
+
export declare const PktTableDataCell: ({ children, className, dataLabel, ...props }: IPktTableDataCell) => import("react").JSX.Element;
|