@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 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
@@ -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.FC<IPktAlert>;
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 {};
@@ -0,0 +1,9 @@
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
+ }>;
8
+ }
9
+ 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 { 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';