@oslokommune/punkt-react 11.5.3 → 11.6.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
+ ## [11.6.0](https://github.com/oslokommune/punkt/compare/11.5.4...11.6.0) (2024-02-16)
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+ Ingen
12
+
13
+ ### Features
14
+ * PktLoader kan utsette visning (#1520). * feat(vue,react): PktLoader kan utsette visning
15
+
16
+ * Fjern ReactNode
17
+
18
+ * className
19
+
20
+
21
+ ### Bug Fixes
22
+ Ingen
23
+
24
+ ### Chores
25
+ Ingen
26
+
27
+ ---
28
+
29
+
30
+ ## [11.5.4](https://github.com/oslokommune/punkt/compare/11.5.3...11.5.4) (2024-02-16)
31
+
32
+ ### ⚠ BREAKING CHANGES
33
+ Ingen
34
+
35
+ ### Features
36
+ Ingen
37
+
38
+ ### Bug Fixes
39
+ * oppdatere onClick med event i PktBacklink (#1521).
40
+
41
+
42
+ ### Chores
43
+ Ingen
44
+
45
+ ---
46
+
47
+
8
48
  ## [11.5.0](https://github.com/oslokommune/punkt/compare/11.4.9...11.5.0) (2024-02-14)
9
49
 
10
50
  ### ⚠ BREAKING CHANGES
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  export interface IPktBackLink extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
3
3
  href?: string;
4
4
  text?: string;
5
- onClick?: () => void;
6
5
  className?: string;
7
6
  }
8
7
  export declare const PktBackLink: React.ForwardRefExoticComponent<IPktBackLink & React.RefAttributes<HTMLAnchorElement>>;
@@ -1,4 +1,4 @@
1
1
  import { IconFetcher } from "./IconContext";
2
- export declare const defaultSvgPath = "https://punkt-cdn.oslo.kommune.no/11.5/icons/";
2
+ export declare const defaultSvgPath = "https://punkt-cdn.oslo.kommune.no/11.6/icons/";
3
3
  declare const defaultIconFetcher: IconFetcher;
4
4
  export default defaultIconFetcher;
@@ -16,5 +16,11 @@ export interface IPktLoader extends HTMLAttributes<HTMLDivElement> {
16
16
  * "shapes" oslo wave loader. Default is rainbow.
17
17
  */
18
18
  variant?: 'blue' | 'rainbow' | 'shapes';
19
+ /**
20
+ * The `delay` prop controls how much time the loading should be given before the loader is displayed.
21
+ * This is handy for situations where the load time might be so short that loader is not necessary.
22
+ * Delay time is in milliseconds.
23
+ */
24
+ delay?: number;
19
25
  }
20
26
  export declare const PktLoader: React.ForwardRefExoticComponent<IPktLoader & React.RefAttributes<HTMLDivElement>>;