@oslokommune/punkt-react 16.17.3 → 16.18.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 +36 -0
- package/dist/index.d.ts +9 -13
- package/dist/punkt-react.es.js +16417 -16340
- package/dist/punkt-react.umd.js +569 -569
- package/dist/shared-types/index.d.ts +1 -1
- package/dist/shared-types/skin.d.ts +4 -0
- package/package.json +4 -4
- package/src/components/accordion/Accordion.test.tsx +5 -4
- package/src/components/alert/Alert.tsx +2 -1
- package/src/components/button/Button.test.tsx +5 -5
- package/src/components/card/Card.tsx +1 -3
- package/src/components/fileupload/DropZone.tsx +1 -1
- package/src/components/fileupload/QueueItemContent.tsx +1 -1
- package/src/components/fileupload/Subcomponents.tsx +3 -1
- package/src/components/header-menu/HeaderMenu.test.tsx +4 -6
- package/src/components/icon/Icon.test.tsx +68 -3
- package/src/components/icon/Icon.tsx +172 -13
- package/src/components/link/Link.tsx +1 -1
- package/src/components/linkcard/LinkCard.tsx +1 -1
- package/src/components/messagebox/Messagebox.tsx +1 -1
- package/src/components/tabs/TabItem.tsx +4 -4
- package/src/components/tabs/Tabs.tsx +3 -3
- package/src/components/tag/Tag.tsx +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,42 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [16.18.0](https://github.com/oslokommune/punkt/compare/16.17.4...16.18.0) (2026-05-28)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
* Ny PktIcon-komponent i React erstatter wrapper rundt Elements pkt-icon + aria-endringer (#3495).
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
Ingen
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
Ingen
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [16.17.4](https://github.com/oslokommune/punkt/compare/16.17.3...16.17.4) (2026-05-28)
|
|
27
|
+
|
|
28
|
+
### ⚠ BREAKING CHANGES
|
|
29
|
+
Ingen
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
Ingen
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
Ingen
|
|
36
|
+
|
|
37
|
+
### Chores
|
|
38
|
+
* legg til TTagSkin-type i shared-types (#3498).
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
|
|
8
44
|
## [16.17.3](https://github.com/oslokommune/punkt/compare/16.17.2...16.17.3) (2026-05-27)
|
|
9
45
|
|
|
10
46
|
### ⚠ BREAKING CHANGES
|
package/dist/index.d.ts
CHANGED
|
@@ -54,9 +54,10 @@ import { TProgressbarStatusPlacement } from './shared-types';
|
|
|
54
54
|
import { TProgressbarStatusType } from './shared-types';
|
|
55
55
|
import { TProgressbarTitlePosition } from './shared-types';
|
|
56
56
|
import { TSlotMenuVariant } from './shared-types';
|
|
57
|
+
import { TTagSkin } from './shared-types';
|
|
57
58
|
|
|
58
59
|
declare interface BasePktTagProps {
|
|
59
|
-
skin?:
|
|
60
|
+
skin?: TTagSkin;
|
|
60
61
|
textStyle?: 'normal-text' | 'thin-text';
|
|
61
62
|
size?: 'small' | 'medium' | 'large';
|
|
62
63
|
closeTag?: boolean;
|
|
@@ -565,10 +566,11 @@ declare interface IPktHelptextProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
565
566
|
onToggleHelpText?: (e: CustomEvent) => void;
|
|
566
567
|
}
|
|
567
568
|
|
|
568
|
-
declare interface IPktIcon extends
|
|
569
|
+
declare interface IPktIcon extends HTMLAttributes<HTMLElement> {
|
|
569
570
|
name?: string;
|
|
570
571
|
path?: string;
|
|
571
|
-
|
|
572
|
+
ariaHidden?: Booleanish;
|
|
573
|
+
ariaLabel?: string;
|
|
572
574
|
}
|
|
573
575
|
|
|
574
576
|
export declare interface IPktInputWrapper extends RefAttributes<HTMLElement> {
|
|
@@ -766,7 +768,7 @@ export declare interface IPktTab {
|
|
|
766
768
|
controls?: string;
|
|
767
769
|
tag?: {
|
|
768
770
|
text: string;
|
|
769
|
-
skin:
|
|
771
|
+
skin: TTagSkin | undefined;
|
|
770
772
|
};
|
|
771
773
|
active?: boolean;
|
|
772
774
|
}
|
|
@@ -780,7 +782,7 @@ declare interface IPktTabItem {
|
|
|
780
782
|
icon?: string;
|
|
781
783
|
controls?: string;
|
|
782
784
|
tag?: string;
|
|
783
|
-
tagSkin?:
|
|
785
|
+
tagSkin?: TTagSkin;
|
|
784
786
|
index?: number;
|
|
785
787
|
}
|
|
786
788
|
|
|
@@ -1105,7 +1107,7 @@ export declare const PktHeading: FC<IPktHeading>;
|
|
|
1105
1107
|
|
|
1106
1108
|
export declare const PktHelptext: FC<IPktHelptextProps>;
|
|
1107
1109
|
|
|
1108
|
-
export declare const PktIcon:
|
|
1110
|
+
export declare const PktIcon: ForwardRefExoticComponent<IPktIcon & RefAttributes<HTMLSpanElement>>;
|
|
1109
1111
|
|
|
1110
1112
|
/**
|
|
1111
1113
|
* Input component
|
|
@@ -1174,7 +1176,7 @@ export declare const PktTableRow: ({ className, children, ...props }: ITableRowP
|
|
|
1174
1176
|
|
|
1175
1177
|
export declare const PktTabs: ForwardRefExoticComponent<IPktTabs & RefAttributes<HTMLDivElement>>;
|
|
1176
1178
|
|
|
1177
|
-
export declare const PktTag: ForwardRefExoticComponent<(ButtonPktTagProps | SpanPktTagProps) & RefAttributes<
|
|
1179
|
+
export declare const PktTag: ForwardRefExoticComponent<(ButtonPktTagProps | SpanPktTagProps) & RefAttributes<HTMLSpanElement | HTMLButtonElement>>;
|
|
1178
1180
|
|
|
1179
1181
|
export declare const PktTextarea: ForwardRefExoticComponent<IPktTextarea & RefAttributes<HTMLTextAreaElement>>;
|
|
1180
1182
|
|
|
@@ -1281,14 +1283,8 @@ export declare type TQueueOperationContext = {
|
|
|
1281
1283
|
|
|
1282
1284
|
declare type TQueueOperationLabel = string | ((fileItem: FileItem) => string);
|
|
1283
1285
|
|
|
1284
|
-
declare type TSkin = 'blue' | 'green' | 'red' | 'beige' | 'yellow' | 'grey' | 'gray' | 'blue-light';
|
|
1285
|
-
|
|
1286
|
-
declare type TSkin_2 = IPktTag['skin'];
|
|
1287
|
-
|
|
1288
1286
|
declare type TStepStatus = 'completed' | 'incomplete' | 'current';
|
|
1289
1287
|
|
|
1290
|
-
declare type TTagSkin = 'blue' | 'blue-light' | 'blue-dark' | 'green' | 'red' | 'beige' | 'yellow' | 'grey' | 'gray';
|
|
1291
|
-
|
|
1292
1288
|
export declare type TTransferItemInProgress = TFileAndTransfer & {
|
|
1293
1289
|
progress: number;
|
|
1294
1290
|
};
|