@helsenorge/datepicker 10.2.0 → 10.3.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 +25 -0
- package/components/DatePicker/styles.module.scss +56 -56
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
## [10.2.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv10.1.0&targetVersion=GTv10.2.0) (2025-02-18)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- nytt komponent drawer ([563a44e](https://github.com/helsenorge/designsystem/commit/563a44ee979ec777cdaea4a02134e3187000b3b9)), closes
|
|
6
|
+
[#339100](https://github.com/helsenorge/designsystem/issues/339100)
|
|
7
|
+
- oppdatering på fontstack spesifikasjon
|
|
8
|
+
([07f2f01](https://github.com/helsenorge/designsystem/commit/07f2f0197099c5d820d0c6caf727b898c86a2c6d)), closes
|
|
9
|
+
[#344729](https://github.com/helsenorge/designsystem/issues/344729)
|
|
10
|
+
- **illustration:** nye illustrasjoner
|
|
11
|
+
([e3bc97d](https://github.com/helsenorge/designsystem/commit/e3bc97d4b9e0cbf4e4d5a38afd587e4da5a29b22)), closes
|
|
12
|
+
[#339457](https://github.com/helsenorge/designsystem/issues/339457)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- usebreakpoint oppdateres live igjen
|
|
17
|
+
([fb93380](https://github.com/helsenorge/designsystem/commit/fb93380c21fa31f974224b977cfd82e7077d9f87)), closes
|
|
18
|
+
[#345242](https://github.com/helsenorge/designsystem/issues/345242)
|
|
19
|
+
- **highlightpanel:** ikke rendre tittel to ganger og fiks bakgrunnsfarge i large size
|
|
20
|
+
([73e0a71](https://github.com/helsenorge/designsystem/commit/73e0a7182f9473ddce3ff6db8cf5ad758d517d86)), closes
|
|
21
|
+
[#337117](https://github.com/helsenorge/designsystem/issues/337117) [#340928](https://github.com/helsenorge/designsystem/issues/340928)
|
|
22
|
+
- **modal:** returnerer fokus ved lukk og 400 prosent zoom fiks for høyde
|
|
23
|
+
([7695152](https://github.com/helsenorge/designsystem/commit/7695152fc6ce8a995ec61636b5de8b47ad0dd6ef)), closes
|
|
24
|
+
[#344549](https://github.com/helsenorge/designsystem/issues/344549)
|
|
25
|
+
|
|
1
26
|
## [10.1.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv10.0.3&targetVersion=GTv10.1.0) (2025-02-11)
|
|
2
27
|
|
|
3
28
|
### Features
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
2
|
+
@use '@helsenorge/designsystem-react/scss/spacers' as spacers;
|
|
3
|
+
@use '@helsenorge/designsystem-react/scss/palette' as palette;
|
|
4
|
+
@use '@helsenorge/designsystem-react/scss/font-settings' as font-settings;
|
|
5
|
+
@use '@helsenorge/designsystem-react/scss/font-mixins' as fonts;
|
|
6
|
+
@use '@helsenorge/designsystem-react/scss/breakpoints' as *;
|
|
7
7
|
|
|
8
8
|
.date-time-picker-wrapper {
|
|
9
9
|
display: flex;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
&__date-picker {
|
|
21
21
|
flex: 100%;
|
|
22
|
-
margin-right: getSpacer(l);
|
|
22
|
+
margin-right: spacers.getSpacer(l);
|
|
23
23
|
|
|
24
24
|
@media (min-width: map.get($grid-breakpoints, sm)) {
|
|
25
25
|
flex: unset;
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&__legend {
|
|
30
|
-
margin-bottom: getSpacer(m);
|
|
30
|
+
margin-bottom: spacers.getSpacer(m);
|
|
31
31
|
margin-top: 0;
|
|
32
32
|
|
|
33
|
-
@include legend;
|
|
33
|
+
@include fonts.legend;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.time-separator {
|
|
38
38
|
display: flex;
|
|
39
39
|
align-items: center;
|
|
40
|
-
padding: 0 getSpacer(2xs);
|
|
40
|
+
padding: 0 spacers.getSpacer(2xs);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.datepicker-popup-container {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.datepicker-popup-arrow {
|
|
54
|
-
--drop-shadow-color: #{
|
|
54
|
+
--drop-shadow-color: #{palette.$blueberry500};
|
|
55
55
|
|
|
56
56
|
width: 0;
|
|
57
57
|
height: 0;
|
|
@@ -67,14 +67,14 @@
|
|
|
67
67
|
|
|
68
68
|
&--over {
|
|
69
69
|
border-width: 0.625rem;
|
|
70
|
-
border-bottom-color:
|
|
70
|
+
border-bottom-color: palette.$white;
|
|
71
71
|
filter: drop-shadow(var(--drop-shadow-color) 0 0.125rem 0.375rem 0.125rem);
|
|
72
72
|
filter: drop-shadow(0 -0.185rem 0 var(--drop-shadow-color));
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
&--under {
|
|
76
76
|
border-width: 0.625rem;
|
|
77
|
-
border-top-color:
|
|
77
|
+
border-top-color: palette.$white;
|
|
78
78
|
filter: drop-shadow(var(--drop-shadow-color) 0 0.125rem 0.375rem 0.125rem);
|
|
79
79
|
filter: drop-shadow(0 0.2rem 0 var(--drop-shadow-color));
|
|
80
80
|
}
|
|
@@ -108,9 +108,9 @@
|
|
|
108
108
|
--rdp-dropdown-gap: 0.25rem;
|
|
109
109
|
--rdp-nav-height: 2.375rem;
|
|
110
110
|
|
|
111
|
-
background-color:
|
|
112
|
-
padding: getSpacer(s) getSpacer(s) getSpacer(xs);
|
|
113
|
-
border: 2px solid
|
|
111
|
+
background-color: palette.$white;
|
|
112
|
+
padding: spacers.getSpacer(s) spacers.getSpacer(s) spacers.getSpacer(xs);
|
|
113
|
+
border: 2px solid palette.$blueberry500;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
.month {
|
|
@@ -119,39 +119,39 @@
|
|
|
119
119
|
|
|
120
120
|
.month_grid {
|
|
121
121
|
width: 100%;
|
|
122
|
-
margin: 0 getSpacer(3xs) * -1 getSpacer(4xs) * -1;
|
|
123
|
-
border-spacing: getSpacer(3xs) getSpacer(4xs);
|
|
122
|
+
margin: 0 spacers.getSpacer(3xs) * -1 spacers.getSpacer(4xs) * -1;
|
|
123
|
+
border-spacing: spacers.getSpacer(3xs) spacers.getSpacer(4xs);
|
|
124
124
|
border-collapse: separate;
|
|
125
125
|
|
|
126
126
|
@media (min-width: map.get($grid-breakpoints, sm)) {
|
|
127
|
-
margin: 0 getSpacer(xs) * -1 getSpacer(3xs) * -1;
|
|
128
|
-
border-spacing: getSpacer(xs) getSpacer(3xs);
|
|
127
|
+
margin: 0 spacers.getSpacer(xs) * -1 spacers.getSpacer(3xs) * -1;
|
|
128
|
+
border-spacing: spacers.getSpacer(xs) spacers.getSpacer(3xs);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
.weekday {
|
|
133
|
-
color:
|
|
133
|
+
color: palette.$neutral700;
|
|
134
134
|
font-family: 'Source Sans Pro', sans-serif;
|
|
135
|
-
font-size:
|
|
135
|
+
font-size: font-settings.$font-size-sm;
|
|
136
136
|
font-weight: 400;
|
|
137
137
|
text-transform: capitalize;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
.day {
|
|
141
|
-
width: getSpacer(l);
|
|
142
|
-
height: getSpacer(l);
|
|
141
|
+
width: spacers.getSpacer(l);
|
|
142
|
+
height: spacers.getSpacer(l);
|
|
143
143
|
padding: 0;
|
|
144
144
|
|
|
145
145
|
.day_button {
|
|
146
|
-
font-size:
|
|
146
|
+
font-size: font-settings.$font-size-sm;
|
|
147
147
|
font-weight: 600;
|
|
148
148
|
font-family: 'Source Sans Pro', sans-serif;
|
|
149
|
-
color:
|
|
149
|
+
color: palette.$blueberry600;
|
|
150
150
|
overflow: hidden;
|
|
151
151
|
box-sizing: border-box;
|
|
152
|
-
width: getSpacer(l);
|
|
153
|
-
max-width: getSpacer(l);
|
|
154
|
-
height: getSpacer(l);
|
|
152
|
+
width: spacers.getSpacer(l);
|
|
153
|
+
max-width: spacers.getSpacer(l);
|
|
154
|
+
height: spacers.getSpacer(l);
|
|
155
155
|
margin: 0;
|
|
156
156
|
border: 2px solid transparent;
|
|
157
157
|
border-radius: 0;
|
|
@@ -162,30 +162,30 @@
|
|
|
162
162
|
|
|
163
163
|
&:focus-visible:not([disabled]),
|
|
164
164
|
&:focus:not([disabled]) {
|
|
165
|
-
background-color:
|
|
166
|
-
color:
|
|
167
|
-
text-decoration: underline 2px
|
|
165
|
+
background-color: palette.$neutral100;
|
|
166
|
+
color: palette.$blueberry600;
|
|
167
|
+
text-decoration: underline 2px palette.$blueberry600;
|
|
168
168
|
outline: none;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
&:hover:not([disabled]):not(._day--selected) {
|
|
172
|
-
background-color:
|
|
172
|
+
background-color: palette.$neutral100;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
&--today {
|
|
177
177
|
.day_button {
|
|
178
|
-
background-color:
|
|
179
|
-
color:
|
|
178
|
+
background-color: palette.$blueberry100;
|
|
179
|
+
color: palette.$blueberry600;
|
|
180
180
|
|
|
181
181
|
&:hover:not([disabled]):not(._day--selected) {
|
|
182
|
-
background-color:
|
|
182
|
+
background-color: palette.$blueberry200;
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
&:focus-visible:not([disabled]),
|
|
186
186
|
&:focus:not([disabled]) {
|
|
187
|
-
background-color:
|
|
188
|
-
text-decoration: underline 2px
|
|
187
|
+
background-color: palette.$blueberry200;
|
|
188
|
+
text-decoration: underline 2px palette.$blueberry600;
|
|
189
189
|
outline: none;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
@@ -195,10 +195,10 @@
|
|
|
195
195
|
.day_button {
|
|
196
196
|
cursor: default;
|
|
197
197
|
opacity: 1 !important;
|
|
198
|
-
color:
|
|
198
|
+
color: palette.$neutral400;
|
|
199
199
|
|
|
200
200
|
&:hover {
|
|
201
|
-
background-color:
|
|
201
|
+
background-color: palette.$white;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
}
|
|
@@ -206,18 +206,18 @@
|
|
|
206
206
|
|
|
207
207
|
.day--selected {
|
|
208
208
|
.day_button {
|
|
209
|
-
background-color:
|
|
210
|
-
color:
|
|
209
|
+
background-color: palette.$blueberry500;
|
|
210
|
+
color: palette.$white;
|
|
211
211
|
|
|
212
212
|
&:hover:not([disabled]):not(._day--selected) {
|
|
213
|
-
background-color:
|
|
213
|
+
background-color: palette.$blueberry700;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
&:focus-visible:not([disabled]),
|
|
217
217
|
&:focus:not([disabled]) {
|
|
218
|
-
background-color:
|
|
219
|
-
color:
|
|
220
|
-
text-decoration: underline 2px
|
|
218
|
+
background-color: palette.$blueberry700;
|
|
219
|
+
color: palette.$white;
|
|
220
|
+
text-decoration: underline 2px palette.$white;
|
|
221
221
|
outline: none;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
opacity: 0;
|
|
238
238
|
border: none;
|
|
239
239
|
background-color: transparent;
|
|
240
|
-
font-size:
|
|
240
|
+
font-size: font-settings.$font-size-sm;
|
|
241
241
|
line-height: inherit;
|
|
242
242
|
text-transform: capitalize;
|
|
243
243
|
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
&:focus-visible:not([disabled]) + .caption_label {
|
|
250
|
-
box-shadow: 0 0 0 4px
|
|
250
|
+
box-shadow: 0 0 0 4px palette.$neutral900;
|
|
251
251
|
border-radius: 0;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
@@ -259,20 +259,20 @@
|
|
|
259
259
|
align-items: center;
|
|
260
260
|
margin: 0;
|
|
261
261
|
white-space: nowrap;
|
|
262
|
-
color:
|
|
262
|
+
color: palette.$blueberry600;
|
|
263
263
|
border: 2px solid transparent;
|
|
264
264
|
text-transform: capitalize;
|
|
265
|
-
font-size:
|
|
265
|
+
font-size: font-settings.$font-size-sm;
|
|
266
266
|
font-family: 'Source Sans Pro', sans-serif;
|
|
267
267
|
font-weight: 600;
|
|
268
268
|
|
|
269
269
|
.chevron {
|
|
270
|
-
fill:
|
|
270
|
+
fill: palette.$blueberry600;
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
.dropdown_month {
|
|
275
|
-
margin-right: getSpacer(2xs);
|
|
275
|
+
margin-right: spacers.getSpacer(2xs);
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
.button_previous,
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
cursor: pointer;
|
|
281
281
|
background: transparent;
|
|
282
282
|
display: inline-flex;
|
|
283
|
-
margin-left: getSpacer(2xs);
|
|
283
|
+
margin-left: spacers.getSpacer(2xs);
|
|
284
284
|
align-items: center;
|
|
285
285
|
justify-content: center;
|
|
286
286
|
width: 2.375rem;
|
|
@@ -291,16 +291,16 @@
|
|
|
291
291
|
|
|
292
292
|
&[disabled] {
|
|
293
293
|
cursor: default;
|
|
294
|
-
fill:
|
|
294
|
+
fill: palette.$neutral300;
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
&:focus-visible:not([disabled]) {
|
|
298
|
-
box-shadow: 0 0 0 4px
|
|
299
|
-
background-color:
|
|
298
|
+
box-shadow: 0 0 0 4px palette.$neutral900;
|
|
299
|
+
background-color: palette.$neutral100;
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
&:hover:not([disabled]):not(.day--selected) {
|
|
303
|
-
background-color:
|
|
303
|
+
background-color: palette.$neutral100;
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
/* stylelint-enable */
|