@oslokommune/punkt-react 11.2.2 → 11.4.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,60 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [11.4.0](https://github.com/oslokommune/punkt/compare/11.3.0...11.4.0) (2024-01-31)
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+ Ingen
12
+
13
+ ### Features
14
+ * Switch-variant av Checkbox (#1448). * feat(css): Switch (#1444)
15
+ * docs:#1417 dokumentasjon switch toggle (#1446)
16
+ * feat(react,vue): Switch added to Checkbox and test sites (#1447)
17
+ * Kodedokumentasjon Switch og Checkbox
18
+
19
+ ---------
20
+
21
+ Co-authored-by: Victoria Nerem <118815886+vicnerem@users.noreply.github.com>
22
+
23
+
24
+ ### Bug Fixes
25
+ Ingen
26
+
27
+ ### Chores
28
+ Ingen
29
+
30
+ ---
31
+
32
+
33
+ ## [11.3.0](https://github.com/oslokommune/punkt/compare/11.2.2...11.3.0) (2024-01-26)
34
+
35
+ ### ⚠ BREAKING CHANGES
36
+ Ingen
37
+
38
+ ### Features
39
+ * new variant &quot;compact&quot; of Alert and Messagebox (#1438). * feat(css,docs): compact/slim alert
40
+
41
+ - Oppdaterer local dev eksempel med slim/kompakt
42
+ - Justerer css for 'lukk'-knapp i slim versjon av alert
43
+ - Legg til slim alert i kode dokumentasjonen
44
+
45
+ * feat(docs,css): slim->compact, messagebox
46
+
47
+ - Lagt inn MessageBox slim kode i css
48
+ - Lagt inn eksempel i dev pure css & html
49
+ - Endre fra slim til compact (da det er denne betegnelsen vi bruker i docs og høres litt finere ut)
50
+ - Legg til compact props i react, vue og vue2 komponenten og oppdater dev eksempel
51
+
52
+
53
+ ### Bug Fixes
54
+ Ingen
55
+
56
+ ### Chores
57
+ Ingen
58
+
59
+ ---
60
+
61
+
8
62
  ## [11.2.0](https://github.com/oslokommune/punkt/compare/11.1.1...11.2.0) (2024-01-25)
9
63
 
10
64
  ### ⚠ BREAKING CHANGES
@@ -6,6 +6,6 @@ export interface IPktAlert extends React.HTMLAttributes<HTMLDivElement> {
6
6
  title?: string;
7
7
  date?: string;
8
8
  ariaLive?: 'off' | 'polite' | 'assertive';
9
- slim?: boolean;
9
+ compact?: boolean;
10
10
  }
11
11
  export declare const PktAlert: React.ForwardRefExoticComponent<IPktAlert & React.RefAttributes<HTMLDivElement>>;
@@ -4,9 +4,12 @@ export interface IPktCheckbox extends React.InputHTMLAttributes<HTMLInputElement
4
4
  hasTile?: boolean;
5
5
  disabled?: boolean;
6
6
  label?: string;
7
+ labelPosition?: 'right' | 'left';
8
+ hideLabel?: boolean;
7
9
  checkHelptext?: string;
8
10
  hasError?: boolean;
9
11
  defaultChecked?: boolean;
12
+ isSwitch?: boolean;
10
13
  value?: string;
11
14
  }
12
15
  export declare const PktCheckbox: React.ForwardRefExoticComponent<IPktCheckbox & React.RefAttributes<HTMLInputElement>>;
@@ -1,4 +1,4 @@
1
1
  import { IconFetcher } from "./IconContext";
2
- export declare const defaultSvgPath = "https://punkt-cdn.oslo.kommune.no/11.2/icons/";
2
+ export declare const defaultSvgPath = "https://punkt-cdn.oslo.kommune.no/11.4/icons/";
3
3
  declare const defaultIconFetcher: IconFetcher;
4
4
  export default defaultIconFetcher;
@@ -2,5 +2,6 @@ import React from 'react';
2
2
  export interface IPktMessagebox extends React.HTMLAttributes<HTMLDivElement> {
3
3
  skin?: 'beige' | 'red' | 'green' | 'blue';
4
4
  title?: string;
5
+ compact?: boolean;
5
6
  }
6
7
  export declare const PktMessagebox: React.FC<IPktMessagebox>;