@oslokommune/punkt-react 13.9.1 → 13.10.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 +18 -0
- package/dist/index.d.ts +7 -5
- package/dist/punkt-react.es.js +1356 -1313
- package/dist/punkt-react.umd.js +177 -177
- package/package.json +3 -3
- package/src/components/alert/Alert.test.tsx +44 -16
- package/src/components/alert/Alert.tsx +79 -28
- package/src/components/select/Select.test.tsx +5 -13
- package/src/components/textarea/Textarea.test.tsx +6 -9
- package/src/components/textinput/Textinput.test.tsx +7 -7
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.10.0](https://github.com/oslokommune/punkt/compare/13.9.1...13.10.0) (2025-10-29)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
* PktAlert som ren React-komponent (#3090).
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
Ingen
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
Ingen
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
8
26
|
## [13.8.1](https://github.com/oslokommune/punkt/compare/13.8.0...13.8.1) (2025-10-16)
|
|
9
27
|
|
|
10
28
|
### ⚠ BREAKING CHANGES
|
package/dist/index.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ import { RefAttributes } from 'react';
|
|
|
30
30
|
import { RefObject } from 'react';
|
|
31
31
|
import { SelectHTMLAttributes } from 'react';
|
|
32
32
|
import { SyntheticEvent } from 'react';
|
|
33
|
+
import { TAlertRole } from '../../types/aria';
|
|
34
|
+
import { TAriaLive } from '../../types/aria';
|
|
33
35
|
import { TextareaHTMLAttributes } from 'react';
|
|
34
36
|
|
|
35
37
|
declare type Booleanish = boolean | 'true' | 'false';
|
|
@@ -89,14 +91,14 @@ export declare interface IPktAccordionItem {
|
|
|
89
91
|
onToggle?: (e: SyntheticEvent<HTMLDetailsElement>) => void;
|
|
90
92
|
}
|
|
91
93
|
|
|
92
|
-
export declare interface IPktAlert extends
|
|
94
|
+
export declare interface IPktAlert extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
93
95
|
skin?: 'error' | 'success' | 'warning' | 'info';
|
|
94
96
|
closeAlert?: boolean;
|
|
95
|
-
title?:
|
|
97
|
+
title?: ReactNode;
|
|
96
98
|
date?: string;
|
|
97
|
-
ariaLive?:
|
|
99
|
+
ariaLive?: TAriaLive;
|
|
98
100
|
compact?: boolean;
|
|
99
|
-
role?:
|
|
101
|
+
role?: TAlertRole;
|
|
100
102
|
onClose?: (e: CustomEvent) => void;
|
|
101
103
|
}
|
|
102
104
|
|
|
@@ -734,7 +736,7 @@ export declare const PktStep: ({ children, className, status, title }: IPktStep)
|
|
|
734
736
|
|
|
735
737
|
export declare const PktStepper: ForwardRefExoticComponent<IPktStepper & RefAttributes<HTMLOListElement>>;
|
|
736
738
|
|
|
737
|
-
export declare const PktTabItem: ForwardRefExoticComponent<IPktTabItem & RefAttributes<
|
|
739
|
+
export declare const PktTabItem: ForwardRefExoticComponent<IPktTabItem & RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
738
740
|
|
|
739
741
|
export declare const PktTable: ({ className, compact, skin, responsiveView, children, ...props }: ITableProps) => JSX_2.Element;
|
|
740
742
|
|