@oslokommune/punkt-react 11.3.0 → 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,31 @@ 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
+
8
33
  ## [11.3.0](https://github.com/oslokommune/punkt/compare/11.2.2...11.3.0) (2024-01-26)
9
34
 
10
35
  ### ⚠ BREAKING CHANGES
@@ -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.3/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;