@helsenorge/datepicker 7.7.0 → 7.8.1
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
|
@@ -1,3 +1,47 @@
|
|
|
1
|
+
## [7.8.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv7.7.0&targetVersion=GTv7.8.0) (2024-06-04)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **anchorlink:** sett underline med text decoration istedenfor border
|
|
6
|
+
([d3a8a53](https://github.com/helsenorge/designsystem/commit/d3a8a532094fec1187770beb570336edad0f47d0)), closes
|
|
7
|
+
[#324794](https://github.com/helsenorge/designsystem/issues/324794)
|
|
8
|
+
- **button:** ny prop textposition ([fb5fdba](https://github.com/helsenorge/designsystem/commit/fb5fdba4cd5390fdb8e9dd2a4c21c4180b282e50)),
|
|
9
|
+
closes [#325052](https://github.com/helsenorge/designsystem/issues/325052)
|
|
10
|
+
- **tabs:** ny komponent ([50eae16](https://github.com/helsenorge/designsystem/commit/50eae16394ccf26eff226563940fb18f5f84728b)), closes
|
|
11
|
+
[#297427](https://github.com/helsenorge/designsystem/issues/297427)
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
- **button:** ikke hover effekt på ikon ved disabled
|
|
16
|
+
([ea79c60](https://github.com/helsenorge/designsystem/commit/ea79c605adcf77d6bfa4cb6ad9ab8ba88fba9166)), closes
|
|
17
|
+
[#325454](https://github.com/helsenorge/designsystem/issues/325454)
|
|
18
|
+
- **datepicker:** datevalue valideres riktig før den settes
|
|
19
|
+
([ec5422e](https://github.com/helsenorge/designsystem/commit/ec5422e1e744af6b4315e16edc5dfa2c066df54a)), closes
|
|
20
|
+
[#325330](https://github.com/helsenorge/designsystem/issues/325330)
|
|
21
|
+
- **expander:** cursor pointer på expander large
|
|
22
|
+
([2239314](https://github.com/helsenorge/designsystem/commit/2239314c0c582680f9bba0e19562433f534a202b)), closes
|
|
23
|
+
[#325072](https://github.com/helsenorge/designsystem/issues/325072)
|
|
24
|
+
|
|
25
|
+
## [7.7.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv7.6.0&targetVersion=GTv7.7.0) (2024-05-28)
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
- ny type notification Badge og tillates flere badges i ListHeader
|
|
30
|
+
([0768e0a](https://github.com/helsenorge/designsystem/commit/0768e0ae1d137f17ecfa92aa2b708ca52862e6b2)), closes
|
|
31
|
+
[#325119](https://github.com/helsenorge/designsystem/issues/325119)
|
|
32
|
+
- **expander:** bruk token på bakgrunn for liten expander
|
|
33
|
+
([73d8531](https://github.com/helsenorge/designsystem/commit/73d8531a52ed5a6387af8fa84045a0afd620eb38)), closes
|
|
34
|
+
[#324989](https://github.com/helsenorge/designsystem/issues/324989)
|
|
35
|
+
- **notificationpanel:** bruk Expander-komponent i NotificationPanel
|
|
36
|
+
([e8d4e8d](https://github.com/helsenorge/designsystem/commit/e8d4e8d776333f243cddba8f15742dd6f271bb3d)), closes
|
|
37
|
+
[#324989](https://github.com/helsenorge/designsystem/issues/324989)
|
|
38
|
+
|
|
39
|
+
### Bug Fixes
|
|
40
|
+
|
|
41
|
+
- **expander:** manglende import av supernova stylesheet
|
|
42
|
+
([077ec2d](https://github.com/helsenorge/designsystem/commit/077ec2d1f59ce80076deeae5bc7911f7a9a2e431)), closes
|
|
43
|
+
[#324989](https://github.com/helsenorge/designsystem/issues/324989)
|
|
44
|
+
|
|
1
45
|
## [7.6.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv7.5.0&targetVersion=GTv7.6.0) (2024-05-15)
|
|
2
46
|
|
|
3
47
|
### Features
|
|
@@ -1448,12 +1492,12 @@ Dette er fordi vi skal kunne dynamisk importere alt som ligger i Icons, så da b
|
|
|
1448
1492
|
|
|
1449
1493
|
### Bug Fixes
|
|
1450
1494
|
|
|
1451
|
-
- panel har avstand fra tittel til badge
|
|
1452
|
-
([09034c4](https://github.com/helsenorge/designsystem/commit/09034c4844408c7cfe8f65d7a1a0d82a7828c2ef)), closes
|
|
1453
|
-
[#282359](https://github.com/helsenorge/designsystem/issues/282359)
|
|
1454
1495
|
- økt kontrast på understreking av lenker
|
|
1455
1496
|
([50b7fa4](https://github.com/helsenorge/designsystem/commit/50b7fa47fb44cb7d75fb877bd53e2309b35e1e21)), closes
|
|
1456
1497
|
[#229049](https://github.com/helsenorge/designsystem/issues/229049)
|
|
1498
|
+
- panel har avstand fra tittel til badge
|
|
1499
|
+
([09034c4](https://github.com/helsenorge/designsystem/commit/09034c4844408c7cfe8f65d7a1a0d82a7828c2ef)), closes
|
|
1500
|
+
[#282359](https://github.com/helsenorge/designsystem/issues/282359)
|
|
1457
1501
|
|
|
1458
1502
|
## [1.2.2](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv1.2.1&targetVersion=GTv1.2.2) (2022-08-31)
|
|
1459
1503
|
|
|
@@ -35,7 +35,7 @@ export interface DatePickerProps extends Pick<React.InputHTMLAttributes<HTMLInpu
|
|
|
35
35
|
maxDate?: Date;
|
|
36
36
|
/** Minimum date allowed to be selected */
|
|
37
37
|
minDate?: Date;
|
|
38
|
-
/** onChange callback
|
|
38
|
+
/** onChange callback triggered by change in chosen date */
|
|
39
39
|
onChange?: (event: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<Element, MouseEvent>, date: Date | string | undefined) => void;
|
|
40
40
|
/** Sets the data-testid attribute. */
|
|
41
41
|
testId?: string;
|
|
@@ -10,44 +10,99 @@ declare const meta: {
|
|
|
10
10
|
description: {
|
|
11
11
|
component: string;
|
|
12
12
|
};
|
|
13
|
+
story: {
|
|
14
|
+
inline: boolean;
|
|
15
|
+
iframeHeight: string;
|
|
16
|
+
};
|
|
13
17
|
};
|
|
14
18
|
};
|
|
15
19
|
args: {
|
|
16
20
|
dateButtonAriaLabel: string;
|
|
17
21
|
dateFormat: "dd.MM.yyyy";
|
|
18
22
|
disableWeekends: false;
|
|
23
|
+
disableDays: never[];
|
|
24
|
+
locale: import("date-fns").Locale;
|
|
19
25
|
error: false;
|
|
20
26
|
errorText: string;
|
|
21
27
|
autoComplete: string;
|
|
22
28
|
};
|
|
23
29
|
argTypes: {
|
|
30
|
+
className: {
|
|
31
|
+
control: string;
|
|
32
|
+
description: string;
|
|
33
|
+
};
|
|
24
34
|
dateButtonAriaLabel: {
|
|
25
35
|
control: string;
|
|
36
|
+
description: string;
|
|
26
37
|
};
|
|
27
38
|
dateFormat: {
|
|
28
39
|
control: string;
|
|
29
40
|
options: string[];
|
|
41
|
+
description: string;
|
|
30
42
|
};
|
|
31
43
|
dateValue: {
|
|
32
44
|
control: string;
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
defaultMonth: {
|
|
48
|
+
control: string;
|
|
49
|
+
description: string;
|
|
33
50
|
};
|
|
34
51
|
disableDays: {
|
|
35
52
|
control: string;
|
|
53
|
+
description: string;
|
|
36
54
|
};
|
|
37
55
|
disableWeekends: {
|
|
38
56
|
control: string;
|
|
57
|
+
description: string;
|
|
39
58
|
};
|
|
40
59
|
error: {
|
|
41
60
|
control: string;
|
|
61
|
+
description: string;
|
|
42
62
|
};
|
|
43
63
|
errorText: {
|
|
44
64
|
control: string;
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
errorTextId: {
|
|
68
|
+
control: string;
|
|
69
|
+
description: string;
|
|
70
|
+
};
|
|
71
|
+
footerContent: {
|
|
72
|
+
control: string;
|
|
73
|
+
description: string;
|
|
74
|
+
};
|
|
75
|
+
label: {
|
|
76
|
+
control: string;
|
|
77
|
+
description: string;
|
|
78
|
+
};
|
|
79
|
+
inputId: {
|
|
80
|
+
control: string;
|
|
81
|
+
description: string;
|
|
82
|
+
};
|
|
83
|
+
locale: {
|
|
84
|
+
control: string;
|
|
85
|
+
description: string;
|
|
45
86
|
};
|
|
46
87
|
maxDate: {
|
|
47
88
|
control: string;
|
|
89
|
+
description: string;
|
|
48
90
|
};
|
|
49
91
|
minDate: {
|
|
50
92
|
control: string;
|
|
93
|
+
description: string;
|
|
94
|
+
};
|
|
95
|
+
onChange: {
|
|
96
|
+
action: string;
|
|
97
|
+
description: string;
|
|
98
|
+
};
|
|
99
|
+
testId: {
|
|
100
|
+
control: string;
|
|
101
|
+
description: string;
|
|
102
|
+
};
|
|
103
|
+
zIndex: {
|
|
104
|
+
control: string;
|
|
105
|
+
description: string;
|
|
51
106
|
};
|
|
52
107
|
autoComplete: {
|
|
53
108
|
control: string;
|
|
@@ -1695,7 +1695,7 @@ const Xa = 329, ve = 12, Ge = 26, mr = 20, ft = 9, qt = 12, hr = (e, r) => e.top
|
|
|
1695
1695
|
const ne = O.target;
|
|
1696
1696
|
(J = X == null ? void 0 : X.current) != null && J.contains(ne) || G(!1);
|
|
1697
1697
|
}), P.useEffect(() => {
|
|
1698
|
-
ce(i ? z(i, a) : ""),
|
|
1698
|
+
Se(i) && (ce(i ? z(i, a) : ""), ue(i), H(i));
|
|
1699
1699
|
}, [i]), P.useEffect(() => {
|
|
1700
1700
|
_ && q.current && q.current.focus();
|
|
1701
1701
|
}, [_]);
|