@oslokommune/punkt-react 16.7.7 → 16.8.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,31 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [16.8.0](https://github.com/oslokommune/punkt/compare/16.7.7...16.8.0) (2026-04-16)
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+ Ingen
12
+
13
+ ### Features
14
+ * Legg til required-støtte i React FileUpload (#3422). * feat: Legg til required-støtte i React FileUpload
15
+
16
+ - la til `required` på native file input i `uploadStrategy="form"`
17
+ - la til `aria-required`, `aria-invalid` og `aria-describedby`
18
+ - la til validering for `required` i `uploadStrategy="custom"`
19
+ - sørget for riktig kobling mellom label, helptext og feilmelding
20
+ - fikset at feilmeldings-alerten bruker full bredde
21
+ - la til tester, og oppdaterte demo.
22
+
23
+
24
+ ### Bug Fixes
25
+ Ingen
26
+
27
+ ### Chores
28
+ Ingen
29
+
30
+ ---
31
+
32
+
8
33
  ## [16.7.4](https://github.com/oslokommune/punkt/compare/16.7.3...16.7.4) (2026-04-14)
9
34
 
10
35
  ### ⚠ BREAKING CHANGES
package/dist/index.d.ts CHANGED
@@ -147,6 +147,8 @@ declare interface IBaseFileUploadProps extends Omit<InputHTMLAttributes<HTMLInpu
147
147
  optionalTag?: boolean;
148
148
  /** Show "Må fylles ut" tag in wrapper. */
149
149
  requiredTag?: boolean;
150
+ /** Marks the upload as required. Native validation is used in `form`; submit validation in `custom`. */
151
+ required?: boolean;
150
152
  /** Enable image preview modal (only applies to thumbnail renderer). */
151
153
  enableImagePreview?: boolean;
152
154
  }