@oslokommune/punkt-react 16.2.0 → 16.3.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 +6 -2
- package/dist/punkt-react.es.js +2205 -2120
- package/dist/punkt-react.umd.js +181 -181
- package/package.json +4 -4
- package/src/components/accordion/AccordionItem.tsx +3 -0
- package/src/components/modal/Modal.test.tsx +12 -7
- package/src/components/modal/Modal.tsx +155 -19
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
|
+
## [16.3.0](https://github.com/oslokommune/punkt/compare/16.2.0...16.3.0) (2026-03-24)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
* Deklarativ PktModal + Ren React-Modal (#3387).
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
Ingen
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
Ingen
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
8
26
|
## [16.2.0](https://github.com/oslokommune/punkt/compare/16.1.0...16.2.0) (2026-03-24)
|
|
9
27
|
|
|
10
28
|
### ⚠ BREAKING CHANGES
|
package/dist/index.d.ts
CHANGED
|
@@ -606,7 +606,8 @@ export declare interface IPktMessagebox extends Omit<HTMLAttributes<HTMLDivEleme
|
|
|
606
606
|
onClose?: () => void;
|
|
607
607
|
}
|
|
608
608
|
|
|
609
|
-
export declare interface IPktModal extends
|
|
609
|
+
export declare interface IPktModal extends Omit<HTMLAttributes<HTMLDialogElement>, 'onClose' | 'open'> {
|
|
610
|
+
open?: boolean;
|
|
610
611
|
headingText?: string;
|
|
611
612
|
hideCloseButton?: boolean;
|
|
612
613
|
closeOnBackdropClick?: boolean;
|
|
@@ -616,6 +617,9 @@ export declare interface IPktModal extends PktElType {
|
|
|
616
617
|
variant?: 'dialog' | 'drawer';
|
|
617
618
|
drawerPosition?: 'left' | 'right';
|
|
618
619
|
transparentBackdrop?: boolean;
|
|
620
|
+
onClose?: () => void;
|
|
621
|
+
children?: ReactNode;
|
|
622
|
+
ref?: Ref<HTMLDialogElement>;
|
|
619
623
|
}
|
|
620
624
|
|
|
621
625
|
export declare interface IPktProgressbar extends ExtendedProgressbar {
|
|
@@ -993,7 +997,7 @@ export declare const PktLoader: FC<IPktLoader>;
|
|
|
993
997
|
|
|
994
998
|
export declare const PktMessagebox: FC<IPktMessagebox>;
|
|
995
999
|
|
|
996
|
-
export declare const PktModal:
|
|
1000
|
+
export declare const PktModal: ForwardRefExoticComponent<Omit<IPktModal, "ref"> & RefAttributes<HTMLDialogElement>>;
|
|
997
1001
|
|
|
998
1002
|
export declare const PktProgressbar: default_2.ForwardRefExoticComponent<Omit<IPktProgressbar, "ref"> & default_2.RefAttributes<HTMLElement>>;
|
|
999
1003
|
|