@oslokommune/punkt-react 11.4.8 → 11.5.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,87 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [11.5.0](https://github.com/oslokommune/punkt/compare/11.4.9...11.5.0) (2024-02-14)
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+ Ingen
12
+
13
+ ### Features
14
+ * Loader, tre varianter (#1490). * feat(react): loader with variants (#1489)
15
+ - add react loader
16
+ - add size options: "small", "medium" and "large"
17
+ - add text option
18
+ - add accessibility labels
19
+ - add variants
20
+ - Note to self: always re-run the server when changing css (no hot reloading on the css)
21
+
22
+ * feat(react): loader
23
+ - Fix svg fetching
24
+
25
+ * feat(react): add tests and specs
26
+ - NB! Consider adding some test for checking if the svg is fetched properly if that is relevant
27
+
28
+ * La til inline, ryddet litt, fikset tester
29
+
30
+ * Branch heter "react" men jeg legger med Vue-versjonen også…
31
+
32
+ * Laget CSS-testview og ryddet litt i Vue-komponent
33
+
34
+ ---------
35
+
36
+ Co-authored-by: Jan Schjetne <jan.schjetne@origo.oslo.kommune.no>
37
+
38
+ * Oppdatere Loader-specs
39
+
40
+ * Dokumentasjon-ressurser
41
+
42
+ * Fjernet innhold
43
+
44
+ * Aria-live burde ikke forsvinne selv om det ikke loades
45
+
46
+ * docs:#1473 loader dokumentasjon (#1492)
47
+
48
+ * docs:#1473 Lagt til bilder
49
+
50
+ * docs:#1473 Lagt til innhold
51
+
52
+ * docs:#1473 Oppdatert bildenavn
53
+
54
+ * docs:#1473 Tester GIF
55
+
56
+ * docs:#1473 Lagt til GIF
57
+
58
+ * docs:#1473 Oppdaterte bilder
59
+
60
+ * chore(docs): legg til kode dokumentasjon
61
+
62
+ * chore(docs): svg importering og UU docs
63
+
64
+ - Importerer spinner og loader SVGene slik at vi kan bruke de med <use>
65
+ - Oppdaterer UU docs
66
+ - Legger til CodeExample i loader index docs
67
+
68
+ * chore(docs): add doc about comp usage as wrapper
69
+
70
+ ---------
71
+
72
+ Co-authored-by: My Thao Nguyen <my.nguyen@origo.oslo.kommune.no>
73
+
74
+ ---------
75
+
76
+ Co-authored-by: My T. Nguyen <my.nguyen@origo.oslo.kommune.no>
77
+ Co-authored-by: Victoria Nerem <118815886+vicnerem@users.noreply.github.com>
78
+
79
+
80
+ ### Bug Fixes
81
+ Ingen
82
+
83
+ ### Chores
84
+ Ingen
85
+
86
+ ---
87
+
88
+
8
89
  ## [11.4.2](https://github.com/oslokommune/punkt/compare/11.4.1...11.4.2) (2024-02-01)
9
90
 
10
91
  ### ⚠ BREAKING CHANGES
@@ -1,4 +1,4 @@
1
1
  import { IconFetcher } from "./IconContext";
2
- export declare const defaultSvgPath = "https://punkt-cdn.oslo.kommune.no/11.4/icons/";
2
+ export declare const defaultSvgPath = "https://punkt-cdn.oslo.kommune.no/11.5/icons/";
3
3
  declare const defaultIconFetcher: IconFetcher;
4
4
  export default defaultIconFetcher;
@@ -11,6 +11,7 @@ export { PktIconContext } from './icon/IconContext';
11
11
  export { PktInput } from './input/Input';
12
12
  export { PktInputWrapper } from './inputwrapper/InputWrapper';
13
13
  export { PktLinkCard } from './linkcard/LinkCard';
14
+ export { PktLoader } from './loader/Loader';
14
15
  export { PktMessagebox } from './messagebox/Messagebox';
15
16
  export { PktRadioButton } from './radio/RadioButton';
16
17
  export { PktSearchInput } from './searchinput/SearchInput';
@@ -0,0 +1,20 @@
1
+ import React, { HTMLAttributes } from 'react';
2
+ export interface IPktLoader extends HTMLAttributes<HTMLDivElement> {
3
+ message?: string;
4
+ inline?: boolean;
5
+ /**
6
+ * The boolean 'isLoading' decides whether the loader or the children will be displayed.
7
+ * If set to false, the children will be displayed.
8
+ */
9
+ isLoading?: boolean;
10
+ /**
11
+ * Default size is set to "medium"
12
+ */
13
+ size?: 'small' | 'medium' | 'large';
14
+ /**
15
+ * Variants available are "blue" spinner, "rainbow" spinner and
16
+ * "shapes" oslo wave loader. Default is rainbow.
17
+ */
18
+ variant?: 'blue' | 'rainbow' | 'shapes';
19
+ }
20
+ export declare const PktLoader: React.ForwardRefExoticComponent<IPktLoader & React.RefAttributes<HTMLDivElement>>;
File without changes