@oslokommune/punkt-react 6.0.6 → 7.1.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 +36 -0
- package/dist/backlink/BackLink.d.ts +9 -0
- package/dist/index.d.ts +2 -0
- package/dist/inputwrapper/InputWrapper.d.ts +19 -0
- package/dist/punkt-react.es.js +811 -682
- package/dist/punkt-react.umd.js +11 -11
- package/dist/textarea/Textarea.d.ts +20 -3
- package/dist/textinput/Textinput.d.ts +16 -16
- package/package.json +4 -4
- package/src/components/backlink/BackLink.test.tsx +50 -0
- package/src/components/backlink/BackLink.tsx +42 -0
- package/src/components/index.ts +2 -0
- package/src/components/inputwrapper/InputWrapper.tsx +160 -0
- package/src/components/textarea/Textarea.test.tsx +62 -0
- package/src/components/textarea/Textarea.tsx +91 -10
- package/src/components/textinput/Textinput.test.tsx +5 -3
- package/src/components/textinput/Textinput.tsx +105 -172
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,42 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [7.1.0](https://github.com/oslokommune/punkt/compare/7.0.0...7.1.0) (2023-09-08)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
* [1093](https://github.com/oslokommune/punkt/issues/1093) Backlink. Se dokumentasjonsnettstedet om Backlink
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
Ingen
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
Ingen
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [7.0.0](https://github.com/oslokommune/punkt/compare/6.0.6...7.0.0) (2023-09-07)
|
|
27
|
+
|
|
28
|
+
### ⚠ BREAKING CHANGES
|
|
29
|
+
* PktTextarea #1058, PktInputwrapper, og endringer PktTextinput. BREAKING CHANGE: Textarea er helt ny og erstatter funksjonaliteten til den gamle. Det må regnes med litt endring i implementasjon.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Features
|
|
33
|
+
Ingen
|
|
34
|
+
|
|
35
|
+
### Bug Fixes
|
|
36
|
+
Ingen
|
|
37
|
+
|
|
38
|
+
### Chores
|
|
39
|
+
Ingen
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
|
|
8
44
|
## [6.0.6](https://github.com/oslokommune/punkt/compare/6.0.5...6.0.6) (2023-09-05)
|
|
9
45
|
|
|
10
46
|
### ⚠ BREAKING CHANGES
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IPktBackLink extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
3
|
+
href?: string;
|
|
4
|
+
text?: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const PktBackLink: React.ForwardRefExoticComponent<IPktBackLink & React.RefAttributes<HTMLAnchorElement>>;
|
|
9
|
+
export default PktBackLink;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export { PktAlert } from './alert/Alert';
|
|
2
|
+
export { PktBackLink } from './backlink/BackLink';
|
|
2
3
|
export { PktButton } from './button/Button';
|
|
3
4
|
export { PktFooter } from './footer/Footer';
|
|
4
5
|
export { PktFooterSimple } from './footerSimple/FooterSimple';
|
|
5
6
|
export { PktHeader } from './header/Header';
|
|
6
7
|
export { PktIcon } from './icon/Icon';
|
|
7
8
|
export { PktInput } from './input/Input';
|
|
9
|
+
export { PktInputWrapper } from './inputwrapper/InputWrapper';
|
|
8
10
|
export { PktLinkCard } from './linkcard/LinkCard';
|
|
9
11
|
export { PktMessagebox } from './messagebox/Messagebox';
|
|
10
12
|
export { PktRadio } from './radio/Radio';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { ReactNode, RefAttributes } from 'react';
|
|
2
|
+
export interface IPktInputWrapper extends RefAttributes<HTMLElement> {
|
|
3
|
+
forId: string;
|
|
4
|
+
label: string;
|
|
5
|
+
helptext?: string;
|
|
6
|
+
helptextDropdown?: string;
|
|
7
|
+
helptextDropdownButton?: string;
|
|
8
|
+
optional?: boolean;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
hasError?: boolean;
|
|
11
|
+
errorMessage?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
inline?: boolean;
|
|
14
|
+
ariaDescribedby?: string;
|
|
15
|
+
useWrapper?: boolean;
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const PktInputWrapper: React.ForwardRefExoticComponent<Omit<IPktInputWrapper, "ref"> & React.RefAttributes<HTMLDivElement>>;
|