@helsenorge/datepicker 7.7.0 → 7.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
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## [7.7.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv7.6.0&targetVersion=GTv7.7.0) (2024-05-28)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- ny type notification Badge og tillates flere badges i ListHeader
|
|
6
|
+
([0768e0a](https://github.com/helsenorge/designsystem/commit/0768e0ae1d137f17ecfa92aa2b708ca52862e6b2)), closes
|
|
7
|
+
[#325119](https://github.com/helsenorge/designsystem/issues/325119)
|
|
8
|
+
- **expander:** bruk token på bakgrunn for liten expander
|
|
9
|
+
([73d8531](https://github.com/helsenorge/designsystem/commit/73d8531a52ed5a6387af8fa84045a0afd620eb38)), closes
|
|
10
|
+
[#324989](https://github.com/helsenorge/designsystem/issues/324989)
|
|
11
|
+
- **notificationpanel:** bruk Expander-komponent i NotificationPanel
|
|
12
|
+
([e8d4e8d](https://github.com/helsenorge/designsystem/commit/e8d4e8d776333f243cddba8f15742dd6f271bb3d)), closes
|
|
13
|
+
[#324989](https://github.com/helsenorge/designsystem/issues/324989)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
- **expander:** manglende import av supernova stylesheet
|
|
18
|
+
([077ec2d](https://github.com/helsenorge/designsystem/commit/077ec2d1f59ce80076deeae5bc7911f7a9a2e431)), closes
|
|
19
|
+
[#324989](https://github.com/helsenorge/designsystem/issues/324989)
|
|
20
|
+
|
|
1
21
|
## [7.6.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv7.5.0&targetVersion=GTv7.6.0) (2024-05-15)
|
|
2
22
|
|
|
3
23
|
### Features
|
|
@@ -1448,12 +1468,12 @@ Dette er fordi vi skal kunne dynamisk importere alt som ligger i Icons, så da b
|
|
|
1448
1468
|
|
|
1449
1469
|
### Bug Fixes
|
|
1450
1470
|
|
|
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
1471
|
- økt kontrast på understreking av lenker
|
|
1455
1472
|
([50b7fa4](https://github.com/helsenorge/designsystem/commit/50b7fa47fb44cb7d75fb877bd53e2309b35e1e21)), closes
|
|
1456
1473
|
[#229049](https://github.com/helsenorge/designsystem/issues/229049)
|
|
1474
|
+
- panel har avstand fra tittel til badge
|
|
1475
|
+
([09034c4](https://github.com/helsenorge/designsystem/commit/09034c4844408c7cfe8f65d7a1a0d82a7828c2ef)), closes
|
|
1476
|
+
[#282359](https://github.com/helsenorge/designsystem/issues/282359)
|
|
1457
1477
|
|
|
1458
1478
|
## [1.2.2](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv1.2.1&targetVersion=GTv1.2.2) (2022-08-31)
|
|
1459
1479
|
|
|
@@ -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
|
}, [_]);
|