@oslokommune/punkt-react 6.0.2 → 6.0.4
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/button/Button.d.ts +1 -0
- package/dist/header/Header.d.ts +3 -3
- package/dist/punkt-react.es.js +185 -167
- package/dist/punkt-react.umd.js +9 -9
- package/package.json +3 -3
- package/src/components/button/Button.tsx +3 -0
- package/src/components/header/Header.tsx +26 -11
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
|
+
## [6.0.4](https://github.com/oslokommune/punkt/compare/6.0.3...6.0.4) (2023-08-30)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
Ingen
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
* Tillat funksjon som logoLink i Header.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
Ingen
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [6.0.3](https://github.com/oslokommune/punkt/compare/6.0.2...6.0.3) (2023-08-30)
|
|
27
|
+
|
|
28
|
+
### ⚠ BREAKING CHANGES
|
|
29
|
+
Ingen
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
Ingen
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
Ingen
|
|
36
|
+
|
|
37
|
+
### Chores
|
|
38
|
+
* [1030](https://github.com/oslokommune/punkt/issues/1030) Button colors.
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
|
|
8
44
|
## [6.0.2](https://github.com/oslokommune/punkt/compare/6.0.1...6.0.2) (2023-08-28)
|
|
9
45
|
|
|
10
46
|
### ⚠ BREAKING CHANGES
|
package/dist/button/Button.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export interface IPktButton extends React.ButtonHTMLAttributes<HTMLButtonElement
|
|
|
4
4
|
secondIconName?: string;
|
|
5
5
|
mode?: 'light' | 'dark';
|
|
6
6
|
size?: 'small' | 'medium' | 'large';
|
|
7
|
+
color?: 'blue' | 'blue-outline' | 'green' | 'green-outline' | 'green-dark' | 'green-dark-outline' | 'beige-light' | 'beige-dark-outline' | 'yellow' | 'yellow-outline' | 'red' | 'red-outline';
|
|
7
8
|
skin?: 'primary' | 'secondary' | 'tertiary';
|
|
8
9
|
variant?: 'label-only' | 'icon-left' | 'icon-right' | 'icon-only' | 'icons-right-and-left';
|
|
9
10
|
state?: 'normal' | 'focus' | 'hover' | 'active';
|
package/dist/header/Header.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ interface User {
|
|
|
7
7
|
interface UserMenuItem {
|
|
8
8
|
iconName?: string;
|
|
9
9
|
title: string;
|
|
10
|
-
target: string |
|
|
10
|
+
target: string | (() => void);
|
|
11
11
|
}
|
|
12
12
|
interface Representing {
|
|
13
13
|
name?: string;
|
|
@@ -16,10 +16,10 @@ interface Representing {
|
|
|
16
16
|
}
|
|
17
17
|
interface UserMenuFooterItem {
|
|
18
18
|
title: string;
|
|
19
|
-
target: string |
|
|
19
|
+
target: string | (() => void);
|
|
20
20
|
}
|
|
21
21
|
interface IPktHeader extends HTMLAttributes<HTMLDivElement> {
|
|
22
|
-
logoLink?: string;
|
|
22
|
+
logoLink?: string | (() => void);
|
|
23
23
|
serviceName?: string;
|
|
24
24
|
fixed?: boolean;
|
|
25
25
|
scrollToHide?: boolean;
|