@oslokommune/punkt-react 16.5.1 → 16.6.1
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 +22 -6
- package/dist/punkt-react.es.js +3138 -3055
- package/dist/punkt-react.umd.js +109 -107
- package/package.json +3 -3
- package/src/components/progressbar/Progressbar.test.tsx +49 -47
- package/src/components/progressbar/Progressbar.tsx +135 -20
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.6.0](https://github.com/oslokommune/punkt/compare/16.5.1...16.6.0) (2026-04-07)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
* PktProgressbar i React (#3392).
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
Ingen
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
Ingen
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
8
26
|
## [16.4.0](https://github.com/oslokommune/punkt/compare/16.3.0...16.4.0) (2026-03-26)
|
|
9
27
|
|
|
10
28
|
### ⚠ BREAKING CHANGES
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { ButtonHTMLAttributes } from 'react';
|
|
|
4
4
|
import { ChangeEvent } from 'react';
|
|
5
5
|
import { ChangeEventHandler } from 'react';
|
|
6
6
|
import { CSSProperties } from 'react';
|
|
7
|
-
import { default as default_2 } from 'react';
|
|
8
7
|
import { FC } from 'react';
|
|
9
8
|
import { ForwardRefExoticComponent } from 'react';
|
|
10
9
|
import { HTMLAttributes } from 'react';
|
|
@@ -15,7 +14,6 @@ import { IPktComboboxOption } from '../../../../../shared-types/combobox';
|
|
|
15
14
|
import { IPktConsent as IPktConsent_2 } from '@oslokommune/punkt-elements';
|
|
16
15
|
import { IPktHeading as IPktHeading_2 } from '@oslokommune/punkt-elements';
|
|
17
16
|
import { IPktLoader as IPktLoader_2 } from '@oslokommune/punkt-elements';
|
|
18
|
-
import { IPktProgressbar as IPktProgressbar_2 } from '@oslokommune/punkt-elements';
|
|
19
17
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
20
18
|
import { LegacyRef } from 'react';
|
|
21
19
|
import { LinkHTMLAttributes } from 'react';
|
|
@@ -41,6 +39,11 @@ import { TLogOutButtonPlacement } from '../../../../../shared-types';
|
|
|
41
39
|
import { TMessageboxSkin } from '../../../../../shared-types';
|
|
42
40
|
import { TPktComboboxDisplayValue } from '../../../../../shared-types/combobox';
|
|
43
41
|
import { TPktComboboxTagPlacement } from '../../../../../shared-types/combobox';
|
|
42
|
+
import { TProgressbarRole } from '../../../../../shared-types';
|
|
43
|
+
import { TProgressbarSkin } from '../../../../../shared-types';
|
|
44
|
+
import { TProgressbarStatusPlacement } from '../../../../../shared-types';
|
|
45
|
+
import { TProgressbarStatusType } from '../../../../../shared-types';
|
|
46
|
+
import { TProgressbarTitlePosition } from '../../../../../shared-types';
|
|
44
47
|
import { TSlotMenuVariant } from '../../../../../shared-types';
|
|
45
48
|
|
|
46
49
|
declare interface BasePktTagProps {
|
|
@@ -67,8 +70,6 @@ declare interface Column {
|
|
|
67
70
|
|
|
68
71
|
declare type ExtendedLoader = IPktLoader_2 & PktElType;
|
|
69
72
|
|
|
70
|
-
declare type ExtendedProgressbar = IPktProgressbar_2 & PktElType;
|
|
71
|
-
|
|
72
73
|
/**
|
|
73
74
|
* A selected file plus metadata used by the FileUpload UI.
|
|
74
75
|
*
|
|
@@ -624,7 +625,22 @@ export declare interface IPktModal extends Omit<HTMLAttributes<HTMLDialogElement
|
|
|
624
625
|
ref?: Ref<HTMLDialogElement>;
|
|
625
626
|
}
|
|
626
627
|
|
|
627
|
-
export declare interface IPktProgressbar extends
|
|
628
|
+
export declare interface IPktProgressbar extends Omit<HTMLAttributes<HTMLDivElement>, 'role' | 'title'> {
|
|
629
|
+
ariaLabel?: string | null;
|
|
630
|
+
ariaLabelledby?: string | null;
|
|
631
|
+
ariaLive?: TAriaLive;
|
|
632
|
+
ariaValueText?: string | null;
|
|
633
|
+
id?: string;
|
|
634
|
+
role?: TProgressbarRole;
|
|
635
|
+
skin?: TProgressbarSkin;
|
|
636
|
+
statusPlacement?: TProgressbarStatusPlacement;
|
|
637
|
+
statusType?: TProgressbarStatusType;
|
|
638
|
+
title?: string | null;
|
|
639
|
+
titlePosition?: TProgressbarTitlePosition;
|
|
640
|
+
valueCurrent: number;
|
|
641
|
+
valueMax?: number;
|
|
642
|
+
valueMin?: number;
|
|
643
|
+
ref?: Ref<HTMLDivElement>;
|
|
628
644
|
}
|
|
629
645
|
|
|
630
646
|
export declare interface IPktRadioButton extends InputHTMLAttributes<HTMLInputElement> {
|
|
@@ -1001,7 +1017,7 @@ export declare const PktMessagebox: FC<IPktMessagebox>;
|
|
|
1001
1017
|
|
|
1002
1018
|
export declare const PktModal: ForwardRefExoticComponent<Omit<IPktModal, "ref"> & RefAttributes<HTMLDialogElement>>;
|
|
1003
1019
|
|
|
1004
|
-
export declare const PktProgressbar:
|
|
1020
|
+
export declare const PktProgressbar: ForwardRefExoticComponent<Omit<IPktProgressbar, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1005
1021
|
|
|
1006
1022
|
export declare const PktRadioButton: ForwardRefExoticComponent<IPktRadioButton & RefAttributes<HTMLInputElement>>;
|
|
1007
1023
|
|