@oslokommune/punkt-react 12.17.2 → 12.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 +38 -0
- package/dist/index.d.ts +5 -16
- package/dist/punkt-react.es.js +10825 -10763
- package/dist/punkt-react.umd.js +301 -266
- package/package.json +3 -3
- package/src/components/header/Header.tsx +15 -5
- package/src/components/progressbar/Progressbar.test.tsx +108 -62
- package/src/components/progressbar/Progressbar.tsx +19 -115
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,44 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [12.18.0](https://github.com/oslokommune/punkt/compare/12.17.3...12.18.0) (2025-01-17)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
Ingen
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
Ingen
|
|
18
|
+
|
|
19
|
+
### Chores
|
|
20
|
+
Ingen
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [12.17.3](https://github.com/oslokommune/punkt/compare/12.17.2...12.17.3) (2025-01-16)
|
|
26
|
+
|
|
27
|
+
### ⚠ BREAKING CHANGES
|
|
28
|
+
Ingen
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
Ingen
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
* Ikke oversett egennavn i Header (#2129). Gjelder:
|
|
35
|
+
- Virksomhet
|
|
36
|
+
- Innlogget bruker
|
|
37
|
+
- Representasjon
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Chores
|
|
41
|
+
Ingen
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
|
|
8
46
|
## [12.17.2](https://github.com/oslokommune/punkt/compare/12.17.1...12.17.2) (2025-01-16)
|
|
9
47
|
|
|
10
48
|
### ⚠ BREAKING CHANGES
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { ForwardRefExoticComponent } from 'react';
|
|
|
8
8
|
import { HTMLAttributes } from 'react';
|
|
9
9
|
import { HTMLProps } from 'react';
|
|
10
10
|
import { InputHTMLAttributes } from 'react';
|
|
11
|
+
import { IPktProgressbar as IPktProgressbar_2 } from '@oslokommune/punkt-elements';
|
|
11
12
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
12
13
|
import { LegacyRef } from 'react';
|
|
13
14
|
import { PktInputWrapper as PktInputWrapper_2 } from '@oslokommune/punkt-elements';
|
|
@@ -26,6 +27,8 @@ declare interface Column {
|
|
|
26
27
|
text?: string;
|
|
27
28
|
}
|
|
28
29
|
|
|
30
|
+
declare type ExtendedProgressbar = IPktProgressbar_2 & PktElType;
|
|
31
|
+
|
|
29
32
|
declare interface IBreadcrumbs {
|
|
30
33
|
text: string;
|
|
31
34
|
href: string;
|
|
@@ -297,21 +300,7 @@ declare interface IPktModal extends PktElType {
|
|
|
297
300
|
removePadding?: boolean;
|
|
298
301
|
}
|
|
299
302
|
|
|
300
|
-
declare interface IPktProgressbar extends
|
|
301
|
-
valueCurrent: number;
|
|
302
|
-
valueMax?: number;
|
|
303
|
-
valueMin?: number;
|
|
304
|
-
ariaValueText?: string;
|
|
305
|
-
skin?: 'dark-blue' | 'light-blue' | 'green' | 'red';
|
|
306
|
-
title?: string;
|
|
307
|
-
titlePosition?: 'left' | 'center';
|
|
308
|
-
statusType?: 'none' | 'percentage' | 'fraction';
|
|
309
|
-
statusPlacement?: 'center' | 'left' | 'following';
|
|
310
|
-
ariaLabel?: string;
|
|
311
|
-
ariaLabelledby?: string;
|
|
312
|
-
role?: 'progressbar' | 'meter';
|
|
313
|
-
className?: string;
|
|
314
|
-
id?: string;
|
|
303
|
+
declare interface IPktProgressbar extends ExtendedProgressbar {
|
|
315
304
|
}
|
|
316
305
|
|
|
317
306
|
declare interface IPktSelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
|
@@ -614,7 +603,7 @@ export declare const PktModal: FC<IPktModal>;
|
|
|
614
603
|
|
|
615
604
|
export declare const PktPreview: default_2.FC<PreviewProps>;
|
|
616
605
|
|
|
617
|
-
export declare const PktProgressbar: default_2.ForwardRefExoticComponent<IPktProgressbar & default_2.RefAttributes<
|
|
606
|
+
export declare const PktProgressbar: default_2.ForwardRefExoticComponent<Omit<IPktProgressbar, "ref"> & default_2.RefAttributes<HTMLElement>>;
|
|
618
607
|
|
|
619
608
|
export declare const PktRadioButton: default_2.ForwardRefExoticComponent<IRadio & default_2.RefAttributes<HTMLInputElement>>;
|
|
620
609
|
|