@oslokommune/punkt-react 8.0.12 → 9.0.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 +22 -0
- package/dist/checkbox/Checkbox.d.ts +12 -0
- package/dist/index.d.ts +2 -2
- package/dist/inputwrapper/InputWrapper.d.ts +1 -0
- package/dist/punkt-react.es.js +650 -580
- package/dist/punkt-react.umd.js +14 -14
- package/dist/radio/RadioButton.d.ts +12 -0
- package/package.json +4 -4
- package/src/components/checkbox/Checkbox.test.tsx +65 -0
- package/src/components/checkbox/Checkbox.tsx +60 -0
- package/src/components/index.ts +2 -2
- package/src/components/inputwrapper/InputWrapper.tsx +42 -39
- package/src/components/radio/RadioButton.test.tsx +53 -0
- package/src/components/radio/RadioButton.tsx +61 -0
- package/dist/radio/Radio.d.ts +0 -9
- package/dist/radioGroup/RadioGroup.d.ts +0 -8
- package/src/components/radio/Radio.tsx +0 -23
- package/src/components/radioGroup/RadioGroup.tsx +0 -17
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,28 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [9.0.0](https://github.com/oslokommune/punkt/compare/8.0.12...9.0.0) (2023-10-04)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
* Checkbox and radiobutton #1126. BREAKING CHANGE:
|
|
12
|
+
* CSS: Checkbox og radiobuttons har fått ny struktur og nye klassenavn
|
|
13
|
+
* React: Radiogroup er fjernet og vi bruker Inputwrapper for å lage grupper av checkbox og radiobuttons
|
|
14
|
+
|
|
15
|
+
Les mer om ny Checkbox og radiobuttons i vår dokumentasjon
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
Ingen
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
Ingen
|
|
23
|
+
|
|
24
|
+
### Chores
|
|
25
|
+
Ingen
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
|
|
8
30
|
## [8.0.12](https://github.com/oslokommune/punkt/compare/8.0.11...8.0.12) (2023-10-03)
|
|
9
31
|
|
|
10
32
|
### ⚠ BREAKING CHANGES
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IPktCheckbox extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
+
id: string;
|
|
4
|
+
hasTile?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
label?: string;
|
|
7
|
+
checkHelptext?: string;
|
|
8
|
+
hasError?: boolean;
|
|
9
|
+
defaultChecked?: boolean;
|
|
10
|
+
value?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const PktCheckbox: React.ForwardRefExoticComponent<IPktCheckbox & React.RefAttributes<HTMLInputElement>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { PktAlert } from './alert/Alert';
|
|
|
2
2
|
export { PktBackLink } from './backlink/BackLink';
|
|
3
3
|
export { PktBreadcrumbs } from './breadcrumbs/Breadcrumbs';
|
|
4
4
|
export { PktButton } from './button/Button';
|
|
5
|
+
export { PktCheckbox } from './checkbox/Checkbox';
|
|
5
6
|
export { PktFooter } from './footer/Footer';
|
|
6
7
|
export { PktFooterSimple } from './footerSimple/FooterSimple';
|
|
7
8
|
export { PktHeader } from './header/Header';
|
|
@@ -10,8 +11,7 @@ export { PktInput } from './input/Input';
|
|
|
10
11
|
export { PktInputWrapper } from './inputwrapper/InputWrapper';
|
|
11
12
|
export { PktLinkCard } from './linkcard/LinkCard';
|
|
12
13
|
export { PktMessagebox } from './messagebox/Messagebox';
|
|
13
|
-
export {
|
|
14
|
-
export { PktRadioGroup } from './radioGroup/RadioGroup';
|
|
14
|
+
export { PktRadioButton } from './radio/RadioButton';
|
|
15
15
|
export { PktTable } from './table/Table';
|
|
16
16
|
export { PktTableData } from './table/TableData';
|
|
17
17
|
export { PktTableHeader } from './table/TableHeader';
|
|
@@ -17,5 +17,6 @@ export interface IPktInputWrapper extends RefAttributes<HTMLElement> {
|
|
|
17
17
|
useWrapper?: boolean;
|
|
18
18
|
children?: ReactNode;
|
|
19
19
|
className?: string;
|
|
20
|
+
hasFieldset?: boolean;
|
|
20
21
|
}
|
|
21
22
|
export declare const PktInputWrapper: React.ForwardRefExoticComponent<Omit<IPktInputWrapper, "ref"> & React.RefAttributes<HTMLDivElement>>;
|