@oslokommune/punkt-react 3.4.2 → 4.1.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 +41 -0
- package/dist/footer/Footer.d.ts +25 -0
- package/dist/footerSimple/FooterSimple.d.ts +10 -0
- package/dist/index.d.ts +2 -0
- package/dist/punkt-react.es.js +545 -437
- package/dist/punkt-react.umd.js +11 -11
- package/dist/table/Table.d.ts +1 -1
- package/dist/table/TableData.d.ts +1 -1
- package/dist/table/TableHeader.d.ts +1 -1
- package/package.json +4 -4
- package/src/components/footer/Footer.test.tsx +122 -0
- package/src/components/footer/Footer.tsx +134 -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 +54 -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,47 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [4.1.0](https://github.com/oslokommune/punkt/compare/4.0.1...4.1.0) (2023-05-16)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
* [850](https://github.com/oslokommune/punkt/issues/850) openInNewTab prop - Footer. Lagt til ny prop i Footer og FooterSimple: openInNewTab.
|
|
15
|
+
Om du ønsker at linken skal åpnes i ny fane send openInNewTab = true. Da vil det legges til en target="_blank" og rel="noopener noreferrer"
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
Ingen
|
|
20
|
+
|
|
21
|
+
### Chores
|
|
22
|
+
Ingen
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## [4.0.0](https://github.com/oslokommune/punkt/compare/3.4.2...4.0.0) (2023-05-08)
|
|
28
|
+
|
|
29
|
+
### ⚠ BREAKING CHANGES
|
|
30
|
+
* [792](https://github.com/oslokommune/punkt/issues/792) Footer. Nye komponenter:
|
|
31
|
+
- pkt-footer
|
|
32
|
+
- pkt-footer-simple
|
|
33
|
+
|
|
34
|
+
BREAKING CHANGE: Gammel pkt-footer er nå blitt pkt-footer-simple
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
Ingen
|
|
39
|
+
|
|
40
|
+
### Bug Fixes
|
|
41
|
+
Ingen
|
|
42
|
+
|
|
43
|
+
### Chores
|
|
44
|
+
Ingen
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
|
|
8
49
|
## [3.4.2](https://github.com/oslokommune/punkt/compare/3.4.1...3.4.2) (2023-05-04)
|
|
9
50
|
|
|
10
51
|
### ⚠ BREAKING CHANGES
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Link {
|
|
3
|
+
href: string;
|
|
4
|
+
text: string;
|
|
5
|
+
external?: boolean;
|
|
6
|
+
openInNewTab?: boolean;
|
|
7
|
+
}
|
|
8
|
+
interface Column {
|
|
9
|
+
title: string;
|
|
10
|
+
links?: Link[];
|
|
11
|
+
text?: string;
|
|
12
|
+
}
|
|
13
|
+
interface SocialLink {
|
|
14
|
+
href: string;
|
|
15
|
+
iconName?: string;
|
|
16
|
+
language?: string;
|
|
17
|
+
openInNewTab?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface IPktFooter extends React.HTMLAttributes<HTMLDivElement> {
|
|
20
|
+
columnOne: Column;
|
|
21
|
+
columnTwo: Column;
|
|
22
|
+
socialLinks?: SocialLink[];
|
|
23
|
+
}
|
|
24
|
+
export declare const PktFooter: React.FC<IPktFooter>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IPktFooterSimple extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
links?: Array<{
|
|
4
|
+
href: string;
|
|
5
|
+
text: string;
|
|
6
|
+
external?: boolean;
|
|
7
|
+
openInNewTab?: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
}
|
|
10
|
+
export declare const PktFooterSimple: React.FC<IPktFooterSimple>;
|
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 { PktFooter } from './footer/Footer';
|
|
4
|
+
export { PktFooterSimple } from './footerSimple/FooterSimple';
|
|
3
5
|
export { PktHeader } from './header/Header';
|
|
4
6
|
export { PktInput } from './input/Input';
|
|
5
7
|
export { PktLinkCard } from './linkcard/LinkCard';
|