@oslokommune/punkt-react 12.18.5 → 12.18.6
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 +17 -0
- package/dist/index.d.ts +10 -1
- package/dist/punkt-react.es.js +7907 -7860
- package/dist/punkt-react.umd.js +252 -213
- package/package.json +3 -3
- package/src/components/preview/PreviewPropEditor.tsx +1 -1
- package/src/components/select/Select.test.tsx +15 -9
- package/src/components/select/Select.tsx +33 -64
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
|
+
## [12.18.6](https://github.com/oslokommune/punkt/compare/12.18.5...12.18.6) (2025-01-29)
|
|
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
|
## [12.18.0](https://github.com/oslokommune/punkt/compare/12.17.3...12.18.0) (2025-01-17)
|
|
9
26
|
|
|
10
27
|
### ⚠ BREAKING CHANGES
|
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ import { ReactNode } from 'react';
|
|
|
18
18
|
import { RefAttributes } from 'react';
|
|
19
19
|
import { SelectHTMLAttributes } from 'react';
|
|
20
20
|
import { TextareaHTMLAttributes } from 'react';
|
|
21
|
+
import { TSelectOption } from '@oslokommune/punkt-elements';
|
|
21
22
|
|
|
22
23
|
declare type Booleanish = boolean | 'true' | 'false';
|
|
23
24
|
|
|
@@ -318,10 +319,18 @@ declare interface IPktSelectProps extends SelectHTMLAttributes<HTMLSelectElement
|
|
|
318
319
|
fullwidth?: boolean;
|
|
319
320
|
label: string;
|
|
320
321
|
name?: string;
|
|
322
|
+
options?: TSelectOption[];
|
|
321
323
|
optionalTag?: boolean;
|
|
322
324
|
optionalText?: string;
|
|
323
325
|
requiredTag?: boolean;
|
|
324
326
|
requiredText?: string;
|
|
327
|
+
ref?: LegacyRef<HTMLSelectElement>;
|
|
328
|
+
onChange?: ChangeEventHandler<HTMLSelectElement>;
|
|
329
|
+
onInput?: ChangeEventHandler<HTMLSelectElement>;
|
|
330
|
+
onBlur?: FocusEventHandler<HTMLSelectElement>;
|
|
331
|
+
onFocus?: FocusEventHandler<HTMLSelectElement>;
|
|
332
|
+
onValueChange?: (e: CustomEvent) => void;
|
|
333
|
+
onToggleHelpText?: (e: CustomEvent) => void;
|
|
325
334
|
}
|
|
326
335
|
|
|
327
336
|
declare interface IPktStep {
|
|
@@ -609,7 +618,7 @@ export declare const PktRadioButton: default_2.ForwardRefExoticComponent<IRadio
|
|
|
609
618
|
|
|
610
619
|
export declare const PktSearchInput: default_2.ForwardRefExoticComponent<(Omit<ISearchForm, "ref"> | Omit<ISearchInput, "ref">) & default_2.RefAttributes<HTMLInputElement>>;
|
|
611
620
|
|
|
612
|
-
export declare const PktSelect: default_2.ForwardRefExoticComponent<IPktSelectProps
|
|
621
|
+
export declare const PktSelect: default_2.ForwardRefExoticComponent<IPktSelectProps>;
|
|
613
622
|
|
|
614
623
|
export declare const PktStep: ({ children, className, status, title }: IPktStep) => JSX_2.Element;
|
|
615
624
|
|