@oslokommune/punkt-react 11.12.0 → 11.12.3

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/components/accordion/Accordion.d.ts +2 -1
  3. package/dist/components/accordion/Accordion.test.d.ts +1 -0
  4. package/dist/components/accordion/AccordionItem.d.ts +2 -1
  5. package/dist/components/alert/Alert.d.ts +2 -1
  6. package/dist/components/backlink/BackLink.d.ts +2 -1
  7. package/dist/components/breadcrumbs/Breadcrumbs.d.ts +2 -1
  8. package/dist/components/button/Button.d.ts +2 -1
  9. package/dist/components/checkbox/Checkbox.d.ts +2 -1
  10. package/dist/components/checkbox/Checkbox.test.d.ts +1 -0
  11. package/dist/components/footer/Footer.d.ts +2 -1
  12. package/dist/components/footer/Footer.test.d.ts +1 -0
  13. package/dist/components/footerSimple/FooterSimple.d.ts +2 -1
  14. package/dist/components/footerSimple/FooterSimple.test.d.ts +1 -0
  15. package/dist/components/header/Header.d.ts +2 -1
  16. package/dist/components/header/Header.test.d.ts +1 -0
  17. package/dist/components/icon/DefaultIconFetcher.d.ts +1 -0
  18. package/dist/components/icon/Icon.d.ts +2 -1
  19. package/dist/components/icon/Icon.test.d.ts +1 -0
  20. package/dist/components/icon/IconContext.d.ts +1 -1
  21. package/dist/components/input/Input.d.ts +2 -1
  22. package/dist/components/inputwrapper/InputWrapper.d.ts +2 -1
  23. package/dist/components/linkcard/LinkCard.d.ts +2 -1
  24. package/dist/components/linkcard/LinkCard.test.d.ts +1 -0
  25. package/dist/components/loader/Loader.d.ts +2 -1
  26. package/dist/components/loader/Loader.test.d.ts +1 -0
  27. package/dist/components/messagebox/Messagebox.d.ts +2 -1
  28. package/dist/components/radio/RadioButton.d.ts +2 -1
  29. package/dist/components/radio/RadioButton.test.d.ts +1 -0
  30. package/dist/components/searchinput/SearchInput.d.ts +2 -1
  31. package/dist/components/searchinput/SearchInput.test.d.ts +1 -0
  32. package/dist/components/select/Select.d.ts +2 -1
  33. package/dist/components/select/Select.test.d.ts +1 -0
  34. package/dist/components/tabs/Tabs.d.ts +2 -1
  35. package/dist/components/tabs/Tabs.test.d.ts +1 -0
  36. package/dist/components/tag/Tag.d.ts +2 -1
  37. package/dist/components/tag/Tag.test.d.ts +1 -0
  38. package/dist/components/textarea/Textarea.d.ts +2 -1
  39. package/dist/components/textarea/Textarea.test.d.ts +1 -0
  40. package/dist/components/textinput/Textinput.d.ts +2 -1
  41. package/dist/components/textinput/Textinput.test.d.ts +1 -0
  42. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -5,6 +5,23 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [11.12.1](https://github.com/oslokommune/punkt/compare/11.12.0...11.12.1) (2024-05-06)
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+ Ingen
12
+
13
+ ### Features
14
+ Ingen
15
+
16
+ ### Bug Fixes
17
+ Ingen
18
+
19
+ ### Chores
20
+ Ingen
21
+
22
+ ---
23
+
24
+
8
25
  ## [11.12.0](https://github.com/oslokommune/punkt/compare/11.11.0...11.12.0) (2024-04-29)
9
26
 
10
27
  ### ⚠ BREAKING CHANGES
@@ -1,4 +1,5 @@
1
- import React, { ReactNode } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
+
2
3
  export interface IPktAccordion {
3
4
  ariaLabelledById?: string;
4
5
  className?: string;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  /**
3
4
  * @param toggleProps
4
5
  *
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  export interface IPktAlert extends React.HTMLAttributes<HTMLDivElement> {
3
4
  skin?: 'error' | 'success' | 'warning' | 'info';
4
5
  closeAlert?: boolean;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  export interface IPktBackLink extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
3
4
  href?: string;
4
5
  text?: string;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  export interface IBreadcrumbs {
3
4
  text: string;
4
5
  href: string;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  export interface IPktButton extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
4
  iconName?: string;
4
5
  secondIconName?: string;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  export interface IPktCheckbox extends React.InputHTMLAttributes<HTMLInputElement> {
3
4
  id: string;
4
5
  hasTile?: boolean;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  interface Link {
3
4
  href: string;
4
5
  text: string;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  export interface IPktFooterSimple extends React.HTMLAttributes<HTMLDivElement> {
3
4
  links?: Array<{
4
5
  href: string;
@@ -1,4 +1,5 @@
1
- import React, { HTMLAttributes } from 'react';
1
+ import { default as React, HTMLAttributes } from 'react';
2
+
2
3
  export interface User {
3
4
  name?: string;
4
5
  shortname?: string;
@@ -1,4 +1,5 @@
1
1
  import { IconFetcher } from './IconContext';
2
+
2
3
  export declare const defaultSvgPath = "https://punkt-cdn.oslo.kommune.no/11.12/icons/";
3
4
  declare const defaultIconFetcher: IconFetcher;
4
5
  export default defaultIconFetcher;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  interface PktIconProps extends React.HTMLAttributes<HTMLSpanElement> {
3
4
  name?: string;
4
5
  path?: string;
@@ -0,0 +1 @@
1
+
@@ -2,4 +2,4 @@
2
2
  export type IconFetcher = {
3
3
  fetchIcon: (name: string, path: string | undefined) => Promise<string | null>;
4
4
  };
5
- export declare const PktIconContext: import("react").Context<IconFetcher>;
5
+ export declare const PktIconContext: import('react').Context<IconFetcher>;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
4
  /** The input's label */
4
5
  label?: string;
@@ -1,4 +1,5 @@
1
- import React, { ReactNode, RefAttributes } from 'react';
1
+ import { default as React, ReactNode, RefAttributes } from 'react';
2
+
2
3
  export interface IPktInputWrapper extends RefAttributes<HTMLElement> {
3
4
  forId: string;
4
5
  label: string;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  export interface IPktLinkCard extends React.HTMLAttributes<HTMLAnchorElement> {
3
4
  skin?: 'normal' | 'blue' | 'beige' | 'beige-outline' | 'grey-outline';
4
5
  title?: string;
@@ -1,4 +1,5 @@
1
- import React, { HTMLAttributes } from 'react';
1
+ import { default as React, HTMLAttributes } from 'react';
2
+
2
3
  export interface IPktLoader extends HTMLAttributes<HTMLDivElement> {
3
4
  message?: string;
4
5
  inline?: boolean;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  export interface IPktMessagebox extends React.HTMLAttributes<HTMLDivElement> {
3
4
  skin?: 'beige' | 'red' | 'green' | 'blue';
4
5
  title?: string;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  export interface IRadio extends React.InputHTMLAttributes<HTMLInputElement> {
3
4
  id: string;
4
5
  name: string;
@@ -1,4 +1,5 @@
1
- import React, { HTMLProps } from 'react';
1
+ import { default as React, HTMLProps } from 'react';
2
+
2
3
  interface SearchSuggestion {
3
4
  title?: string;
4
5
  text?: string;
@@ -1,4 +1,5 @@
1
- import React, { ReactNode, SelectHTMLAttributes } from 'react';
1
+ import { default as React, ReactNode, SelectHTMLAttributes } from 'react';
2
+
2
3
  export interface IPktSelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
3
4
  ariaDescribedby?: string;
4
5
  ariaLabelledby?: string;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  export type TSkin = 'blue' | 'green' | 'red' | 'beige' | 'yellow' | 'grey' | 'blue-light';
3
4
  export interface Tab {
4
5
  text: string;
@@ -0,0 +1 @@
1
+
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  export interface IPktTag extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
4
  skin?: 'blue' | 'green' | 'red' | 'beige' | 'yellow' | 'grey' | 'blue-light';
4
5
  textStyle?: 'normal-text' | 'thin-text';
@@ -0,0 +1 @@
1
+
@@ -1,4 +1,5 @@
1
1
  import { TextareaHTMLAttributes } from 'react';
2
+
2
3
  export interface IPktTextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
3
4
  id: string;
4
5
  ariaDescribedby?: string;
@@ -23,4 +24,4 @@ export interface IPktTextareaProps extends TextareaHTMLAttributes<HTMLTextAreaEl
23
24
  rows?: number;
24
25
  useWrapper?: boolean;
25
26
  }
26
- export declare const PktTextarea: import("react").ForwardRefExoticComponent<IPktTextareaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
27
+ export declare const PktTextarea: import('react').ForwardRefExoticComponent<IPktTextareaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
@@ -1,4 +1,5 @@
1
- import React, { InputHTMLAttributes } from 'react';
1
+ import { default as React, InputHTMLAttributes } from 'react';
2
+
2
3
  export interface IPktTextinput extends InputHTMLAttributes<HTMLInputElement> {
3
4
  id: string;
4
5
  ariaDescribedby?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-react",
3
- "version": "11.12.0",
3
+ "version": "11.12.3",
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",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@oslokommune/punkt-assets": "^11.9.4",
36
- "@oslokommune/punkt-css": "^11.11.0",
36
+ "@oslokommune/punkt-css": "^11.12.3",
37
37
  "@testing-library/jest-dom": "^5.16.5",
38
38
  "@testing-library/react": "^14.0.0",
39
39
  "@testing-library/user-event": "^14.4.3",
@@ -57,7 +57,7 @@
57
57
  "react-scripts": "^5.0.1",
58
58
  "sass": "^1.63.6",
59
59
  "typescript": "^4.9.3",
60
- "vite": "^4.4.12",
60
+ "vite": "^4.5.3",
61
61
  "vite-plugin-dts": "^3.6.4"
62
62
  },
63
63
  "peerDependencies": {
@@ -91,5 +91,5 @@
91
91
  "url": "https://github.com/oslokommune/punkt/issues"
92
92
  },
93
93
  "license": "MIT",
94
- "gitHead": "8e1ff1163c7fffe2c39e627ad774e3b71fb3b8f3"
94
+ "gitHead": "3d1c0ec4fee5ae98b0e26d1068b76faec73406b0"
95
95
  }