@oslokommune/punkt-react 19.5.0 → 19.6.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,34 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [19.6.0](https://github.com/oslokommune/punkt/compare/19.5.2...19.6.0) (2026-10-01)
9
+
10
+ ### Features
11
+ * Kompakte størrelser for radio, checkbox og switch (#3687). - Checkbox, radio og switch får tre størrelser: medium, small, xsmall
12
+ - Om elementene er i input-wrapper arver de størrelsen til input-wrapper
13
+ - Selve input-elementet forandrer aldri størrelse, kun alt rundt
14
+ - Tile-varianter får høyde 56, 48 og 40 px
15
+ - Støtte for horisontal layout i input-wrapper
16
+ - I grupper skaleres også mellomrom med størrelsen
17
+ - Oppdatert docs med størrelse-seksjon
18
+ - Oppdatert alle relevante skills
19
+
20
+ Synlige _endringer_ (ikke nye ting) for brukere:
21
+ - Tile i størrelse medium er nå 56px istedenfor 60px
22
+ - Label i tile er nå fontvekt medium istedenfor light, for å stemme med Figma
23
+ - I input-wrapper har nå grupper med inputs noe romsligere mellomrom
24
+
25
+ ---
26
+
27
+
28
+ ## [19.5.2](https://github.com/oslokommune/punkt/compare/19.5.1...19.5.2) (2026-09-30)
29
+
30
+ ### Bug Fixes
31
+ * Radio+check mer som native, pluss aria-fiks i fieldset (#3686).
32
+
33
+ ---
34
+
35
+
8
36
  ## [19.5.0](https://github.com/oslokommune/punkt/compare/19.4.0...19.5.0) (2026-09-30)
9
37
 
10
38
  ---
@@ -1,5 +1,6 @@
1
1
  import { ReactNode, RefAttributes } from 'react';
2
2
  import { IPktStringsProps } from '../../shared-strings';
3
+ import { TLayout } from '../../shared-types';
3
4
  export interface IPktInputWrapper extends RefAttributes<HTMLElement>, IPktStringsProps<'forms' | 'validation'> {
4
5
  forId: string;
5
6
  label: string;
@@ -26,6 +27,7 @@ export interface IPktInputWrapper extends RefAttributes<HTMLElement>, IPktString
26
27
  children?: ReactNode;
27
28
  className?: string;
28
29
  hasFieldset?: boolean;
30
+ layout?: TLayout;
29
31
  role?: string;
30
32
  counterPosition?: 'top' | 'bottom';
31
33
  size?: 'small' | 'medium' | 'xsmall';
@@ -1,10 +1,12 @@
1
1
  import { ChangeEventHandler, InputHTMLAttributes, ReactNode } from 'react';
2
2
  import { IPktStringsProps } from '../../shared-strings';
3
+ import { TPktInputSize } from '../../shared-types';
3
4
  export interface IPktRadioButton extends InputHTMLAttributes<HTMLInputElement>, IPktStringsProps<'forms'> {
4
5
  id: string;
5
6
  name: string;
6
7
  label: string;
7
8
  hasTile?: boolean;
9
+ inputSize?: TPktInputSize;
8
10
  disabled?: boolean;
9
11
  checkHelptext?: ReactNode | ReactNode[] | string;
10
12
  defaultChecked?: boolean;
@@ -1,11 +1,10 @@
1
1
  import { KeyboardEvent } from 'react';
2
2
  import { IPktTimepicker } from './types';
3
- import { TPktInputSize } from '../../shared-types/size';
4
3
  export declare function useTimepickerState(props: IPktTimepicker, ref: React.ForwardedRef<HTMLDivElement>): {
5
4
  id: string;
6
5
  containerRef: import('react').RefObject<HTMLDivElement | null>;
7
6
  outerClasses: string;
8
- inputSize: TPktInputSize;
7
+ inputSize: "medium" | "small" | "xsmall";
9
8
  strings: {
10
9
  hours: string;
11
10
  minutes: string;