@helsenorge/datepicker 7.0.0-beta.2 → 7.0.0-beta.5
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 +19 -0
- package/components/DatePicker/DatePicker.d.ts +6 -0
- package/components/DatePicker/DatePickerPopup.d.ts +1 -0
- package/components/DatePicker/DateTime.d.ts +4 -0
- package/components/DatePicker/index.js +916 -938
- package/components/DatePicker/index.js.map +1 -1
- package/package.json +3 -3
- package/style.css +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
## 7.0.0-beta.3 (2024-04-04)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- button arrow prop endres til aa stotte accessibility-character
|
|
6
|
+
([e516b86](https://github.com/helsenorge/designsystem/commit/e516b869cd48f301b3ab0242548ef33c07c0da1c)), closes
|
|
7
|
+
[#320171](https://github.com/helsenorge/designsystem/issues/320171)
|
|
8
|
+
- skjermleser leser oppsummerende feilmelding i validation automatisk
|
|
9
|
+
([0c9fc3a](https://github.com/helsenorge/designsystem/commit/0c9fc3aa1f9dd2d245a9037b568bce58d6d7455c)), closes
|
|
10
|
+
[#316622](https://github.com/helsenorge/designsystem/issues/316622)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- trigger har riktig avstand til andre elementer og større klikkflate i medium størrelse
|
|
15
|
+
([c9d566f](https://github.com/helsenorge/designsystem/commit/c9d566fefe6ff0797925e7c90ebfe17e48de041e)), closes
|
|
16
|
+
[#322394](https://github.com/helsenorge/designsystem/issues/322394)
|
|
17
|
+
|
|
18
|
+
## 7.0.0-beta.2 (2024-03-07)
|
|
19
|
+
|
|
1
20
|
## 7.0.0-beta.1 (2024-03-07)
|
|
2
21
|
|
|
3
22
|
## 7.0.0-beta.0 (2024-03-07)
|
|
@@ -21,10 +21,14 @@ export interface DatePickerProps extends Pick<React.InputHTMLAttributes<HTMLInpu
|
|
|
21
21
|
error?: boolean;
|
|
22
22
|
/** Error text to show above the component */
|
|
23
23
|
errorText?: string;
|
|
24
|
+
/** Error text id */
|
|
25
|
+
errorTextId?: string;
|
|
24
26
|
/** Content to be rendered in the footer of the datepicker popup */
|
|
25
27
|
footerContent?: React.ReactNode;
|
|
26
28
|
/** Label of the input */
|
|
27
29
|
label?: React.ReactNode;
|
|
30
|
+
/** Input element id */
|
|
31
|
+
inputId?: string;
|
|
28
32
|
/** Sets the locale of the datepicker */
|
|
29
33
|
locale?: Locale;
|
|
30
34
|
/** Maximum date allowed to be selected */
|
|
@@ -35,6 +39,8 @@ export interface DatePickerProps extends Pick<React.InputHTMLAttributes<HTMLInpu
|
|
|
35
39
|
onChange?: (event: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<Element, MouseEvent>, date: Date | string | undefined) => void;
|
|
36
40
|
/** Sets the data-testid attribute. */
|
|
37
41
|
testId?: string;
|
|
42
|
+
/** Overrides the default z-index of DatePicker */
|
|
43
|
+
zIndex?: number;
|
|
38
44
|
}
|
|
39
45
|
export declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLInputElement>>;
|
|
40
46
|
export default DatePicker;
|
|
@@ -4,6 +4,7 @@ interface DatePickerPopupProps extends Pick<DayPickerSingleProps, 'dir' | 'disab
|
|
|
4
4
|
datepickerWrapperRef: React.RefObject<HTMLDivElement>;
|
|
5
5
|
inputRef: React.RefObject<HTMLInputElement>;
|
|
6
6
|
testId?: string;
|
|
7
|
+
zIndex?: number;
|
|
7
8
|
}
|
|
8
9
|
declare const DatePickerPopup: React.FC<DatePickerPopupProps>;
|
|
9
10
|
export default DatePickerPopup;
|
|
@@ -6,10 +6,14 @@ export interface DateTimeProps extends Pick<React.InputHTMLAttributes<HTMLInputE
|
|
|
6
6
|
error?: boolean;
|
|
7
7
|
/** Error text to show above the component */
|
|
8
8
|
errorText?: string;
|
|
9
|
+
/** Error text id */
|
|
10
|
+
errorTextId?: string;
|
|
9
11
|
/** Label of the input */
|
|
10
12
|
label?: React.ReactNode;
|
|
11
13
|
/** Sets the unit of time for the input field */
|
|
12
14
|
timeUnit: TimeUnit;
|
|
15
|
+
/** input id of the checkbox */
|
|
16
|
+
inputId?: string;
|
|
13
17
|
/** Sets the data-testid attribute. */
|
|
14
18
|
testId?: string;
|
|
15
19
|
}
|