@oslokommune/punkt-react 3.4.1 → 4.0.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 +40 -0
- package/dist/alert/Alert.d.ts +1 -1
- package/dist/footer/Footer.d.ts +23 -0
- package/dist/footerSimple/FooterSimple.d.ts +9 -0
- package/dist/index.d.ts +2 -0
- package/dist/punkt-react.es.js +572 -479
- package/dist/punkt-react.umd.js +11 -11
- package/package.json +5 -4
- package/src/components/alert/Alert.test.tsx +38 -0
- package/src/components/alert/Alert.tsx +6 -4
- package/src/components/button/Button.test.tsx +28 -0
- package/src/components/footer/Footer.test.tsx +123 -0
- package/src/components/footer/Footer.tsx +123 -0
- package/src/components/footer/__snapshots__/Footer.test.tsx.snap +218 -0
- package/src/components/footerSimple/FooterSimple.test.tsx +66 -0
- package/src/components/footerSimple/FooterSimple.tsx +50 -0
- package/src/components/footerSimple/__snapshots__/FooterSimple.test.tsx.snap +109 -0
- package/src/components/index.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,46 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [4.0.0](https://github.com/oslokommune/punkt/compare/3.4.2...4.0.0) (2023-05-08)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
* [792](https://github.com/oslokommune/punkt/issues/792) Footer. Nye komponenter:
|
|
12
|
+
- pkt-footer
|
|
13
|
+
- pkt-footer-simple
|
|
14
|
+
|
|
15
|
+
BREAKING CHANGE: Gammel pkt-footer er nå blitt pkt-footer-simple
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
Ingen
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
Ingen
|
|
23
|
+
|
|
24
|
+
### Chores
|
|
25
|
+
Ingen
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [3.4.2](https://github.com/oslokommune/punkt/compare/3.4.1...3.4.2) (2023-05-04)
|
|
31
|
+
|
|
32
|
+
### ⚠ BREAKING CHANGES
|
|
33
|
+
Ingen
|
|
34
|
+
|
|
35
|
+
### Features
|
|
36
|
+
Ingen
|
|
37
|
+
|
|
38
|
+
### Bug Fixes
|
|
39
|
+
* [825](https://github.com/oslokommune/punkt/issues/825) Ref og tester i button og alert.
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Chores
|
|
43
|
+
Ingen
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
|
|
8
48
|
## [3.4.1](https://github.com/oslokommune/punkt/compare/3.4.0...3.4.1) (2023-05-04)
|
|
9
49
|
|
|
10
50
|
### ⚠ BREAKING CHANGES
|
package/dist/alert/Alert.d.ts
CHANGED
|
@@ -7,4 +7,4 @@ export interface IPktAlert extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
7
7
|
date?: string;
|
|
8
8
|
ariaLive?: 'off' | 'polite' | 'assertive';
|
|
9
9
|
}
|
|
10
|
-
export declare const PktAlert: React.
|
|
10
|
+
export declare const PktAlert: React.ForwardRefExoticComponent<IPktAlert & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Link {
|
|
3
|
+
href: string;
|
|
4
|
+
text: string;
|
|
5
|
+
external?: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface Column {
|
|
8
|
+
title: string;
|
|
9
|
+
links?: Link[];
|
|
10
|
+
text?: string;
|
|
11
|
+
}
|
|
12
|
+
interface SocialLink {
|
|
13
|
+
href: string;
|
|
14
|
+
iconName?: string;
|
|
15
|
+
language?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IPktFooter extends React.HTMLAttributes<HTMLDivElement> {
|
|
18
|
+
columnOne: Column;
|
|
19
|
+
columnTwo: Column;
|
|
20
|
+
socialLinks?: SocialLink[];
|
|
21
|
+
}
|
|
22
|
+
export declare const PktFooter: React.FC<IPktFooter>;
|
|
23
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { PktAlert } from './alert/Alert';
|
|
2
2
|
export { PktButton } from './button/Button';
|
|
3
|
+
export { PktFooterSimple } from './footerSimple/FooterSimple';
|
|
4
|
+
export { PktFooter } from './footer/Footer';
|
|
3
5
|
export { PktHeader } from './header/Header';
|
|
4
6
|
export { PktInput } from './input/Input';
|
|
5
7
|
export { PktLinkCard } from './linkcard/LinkCard';
|