@oslokommune/punkt-react 12.11.5 → 12.11.6

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,24 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [12.11.6](https://github.com/oslokommune/punkt/compare/12.11.5...12.11.6) (2024-12-02)
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+ Ingen
12
+
13
+ ### Features
14
+ Ingen
15
+
16
+ ### Bug Fixes
17
+ * Utvid PktElType med HTMLAttributes<HTMLElement> (#2071). Bonus: Fiksa Messagebox-skins i Elements
18
+
19
+
20
+ ### Chores
21
+ Ingen
22
+
23
+ ---
24
+
25
+
8
26
  ## [12.11.0](https://github.com/oslokommune/punkt/compare/12.10.4...12.11.0) (2024-11-26)
9
27
 
10
28
  ### ⚠ BREAKING CHANGES
package/dist/index.d.ts CHANGED
@@ -131,7 +131,7 @@ declare interface IPktCheckbox extends default_2.InputHTMLAttributes<HTMLInputEl
131
131
  value?: string;
132
132
  }
133
133
 
134
- declare interface IPktDatepicker extends PktElType {
134
+ declare interface IPktDatepicker extends Omit<PktElType, 'onChange' | 'onInput' | 'onBlur' | 'onFocus'> {
135
135
  value?: string | string[];
136
136
  label?: string;
137
137
  id?: string;
@@ -240,7 +240,7 @@ declare interface IPktInputWrapper extends RefAttributes<HTMLElement> {
240
240
  hasFieldset?: boolean;
241
241
  }
242
242
 
243
- declare interface IPktLink extends PktElType {
243
+ declare interface IPktLink extends Omit<PktElType, 'onClick'> {
244
244
  href?: string;
245
245
  iconName?: string | undefined;
246
246
  iconPosition?: string | undefined;
@@ -564,7 +564,7 @@ export declare const PktCheckbox: default_2.ForwardRefExoticComponent<IPktCheckb
564
564
 
565
565
  export declare const PktDatepicker: FC<IPktDatepicker>;
566
566
 
567
- declare interface PktElType {
567
+ declare interface PktElType extends default_2.HTMLAttributes<HTMLElement> {
568
568
  className?: string;
569
569
  style?: default_2.CSSProperties;
570
570
  children?: default_2.ReactNode | default_2.ReactNode[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-react",
3
- "version": "12.11.5",
3
+ "version": "12.11.6",
4
4
  "description": "React komponentbibliotek til Punkt, et designsystem laget av Oslo Origo",
5
5
  "homepage": "https://punkt.oslo.kommune.no",
6
6
  "author": "Team Designsystem, Oslo Origo",
@@ -48,7 +48,7 @@
48
48
  "devDependencies": {
49
49
  "@oslokommune/punkt-assets": "^12.7.3",
50
50
  "@oslokommune/punkt-css": "^12.11.5",
51
- "@oslokommune/punkt-elements": "^12.11.5",
51
+ "@oslokommune/punkt-elements": "^12.11.6",
52
52
  "@testing-library/jest-dom": "^6.5.0",
53
53
  "@testing-library/react": "^16.0.1",
54
54
  "@testing-library/user-event": "^14.5.2",
@@ -111,5 +111,5 @@
111
111
  "url": "https://github.com/oslokommune/punkt/issues"
112
112
  },
113
113
  "license": "MIT",
114
- "gitHead": "1ac7645d35560a308696609a4d6743ed5f183452"
114
+ "gitHead": "1f2843f20720079501fe7cff70d009fdbf1b013a"
115
115
  }
@@ -3,7 +3,7 @@ import { createComponent, EventName } from '@lit/react'
3
3
  import { PktDatepicker as PktEl } from '@oslokommune/punkt-elements'
4
4
  import type { PktElType, PktElConstructor, PktEventWithTarget } from '@/interfaces/IPktElements'
5
5
 
6
- interface IPktDatepicker extends PktElType {
6
+ interface IPktDatepicker extends Omit<PktElType, 'onChange' | 'onInput' | 'onBlur' | 'onFocus'> {
7
7
  value?: string | string[]
8
8
  label?: string
9
9
  id?: string
@@ -3,7 +3,7 @@ import { createComponent, EventName } from '@lit/react'
3
3
  import { PktLink as PktElLink } from '@oslokommune/punkt-elements'
4
4
  import type { PktElType, PktElConstructor } from '@/interfaces/IPktElements'
5
5
 
6
- interface IPktLink extends PktElType {
6
+ interface IPktLink extends Omit<PktElType, 'onClick'> {
7
7
  href?: string
8
8
  iconName?: string | undefined
9
9
  iconPosition?: string | undefined