@oslokommune/punkt-react 4.0.0 → 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 CHANGED
@@ -5,6 +5,25 @@ 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
+
8
27
  ## [4.0.0](https://github.com/oslokommune/punkt/compare/3.4.2...4.0.0) (2023-05-08)
9
28
 
10
29
  ### ⚠ BREAKING CHANGES
@@ -3,6 +3,7 @@ interface Link {
3
3
  href: string;
4
4
  text: string;
5
5
  external?: boolean;
6
+ openInNewTab?: boolean;
6
7
  }
7
8
  interface Column {
8
9
  title: string;
@@ -13,6 +14,7 @@ interface SocialLink {
13
14
  href: string;
14
15
  iconName?: string;
15
16
  language?: string;
17
+ openInNewTab?: boolean;
16
18
  }
17
19
  export interface IPktFooter extends React.HTMLAttributes<HTMLDivElement> {
18
20
  columnOne: Column;
@@ -4,6 +4,7 @@ export interface IPktFooterSimple extends React.HTMLAttributes<HTMLDivElement> {
4
4
  href: string;
5
5
  text: string;
6
6
  external?: boolean;
7
+ openInNewTab?: boolean;
7
8
  }>;
8
9
  }
9
10
  export declare const PktFooterSimple: React.FC<IPktFooterSimple>;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { PktAlert } from './alert/Alert';
2
2
  export { PktButton } from './button/Button';
3
- export { PktFooterSimple } from './footerSimple/FooterSimple';
4
3
  export { PktFooter } from './footer/Footer';
4
+ export { PktFooterSimple } from './footerSimple/FooterSimple';
5
5
  export { PktHeader } from './header/Header';
6
6
  export { PktInput } from './input/Input';
7
7
  export { PktLinkCard } from './linkcard/LinkCard';