@sb1/ffe-datepicker 100.12.4 → 101.0.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/css/datepicker.css +13 -22
- package/less/calendar.less +1 -0
- package/less/dateinput.less +5 -0
- package/package.json +5 -5
package/css/datepicker.css
CHANGED
|
@@ -2,10 +2,8 @@
|
|
|
2
2
|
font-family: var(--ffe-g-font);
|
|
3
3
|
position: relative;
|
|
4
4
|
height: 2.8125rem;
|
|
5
|
-
display: -ms-grid;
|
|
6
5
|
display: grid;
|
|
7
|
-
-
|
|
8
|
-
grid-template-columns: 1fr auto;
|
|
6
|
+
grid-template-columns: 1fr auto;
|
|
9
7
|
background-color: var(--ffe-color-surface-primary-default);
|
|
10
8
|
width: fit-content;
|
|
11
9
|
border: var(--ffe-g-border-width) solid var(--ffe-color-border-primary-default);
|
|
@@ -24,6 +22,7 @@
|
|
|
24
22
|
}
|
|
25
23
|
}
|
|
26
24
|
.ffe-datepicker__button {
|
|
25
|
+
height: calc(2.8125rem - var(--ffe-g-border-width) * 2);
|
|
27
26
|
background: transparent;
|
|
28
27
|
border: none;
|
|
29
28
|
grid-column: 2 / 3;
|
|
@@ -35,6 +34,9 @@
|
|
|
35
34
|
cursor: pointer;
|
|
36
35
|
isolation: isolate;
|
|
37
36
|
}
|
|
37
|
+
.ffe-datepicker__button:focus-visible {
|
|
38
|
+
background-color: var(--ffe-color-fill-primary-subtle);
|
|
39
|
+
}
|
|
38
40
|
.ffe-datepicker .ffe-input-field:focus {
|
|
39
41
|
border: none;
|
|
40
42
|
}
|
|
@@ -59,10 +61,8 @@
|
|
|
59
61
|
}
|
|
60
62
|
}
|
|
61
63
|
.ffe-datepicker .ffe-dateinput {
|
|
62
|
-
display: -ms-flexbox;
|
|
63
64
|
display: flex;
|
|
64
|
-
-
|
|
65
|
-
align-items: center;
|
|
65
|
+
align-items: center;
|
|
66
66
|
height: 2.7495rem;
|
|
67
67
|
border: none;
|
|
68
68
|
padding: var(--ffe-spacing-2xs) var(--ffe-spacing-sm);
|
|
@@ -143,14 +143,12 @@
|
|
|
143
143
|
margin-bottom: var(--ffe-spacing-xs);
|
|
144
144
|
}
|
|
145
145
|
.ffe-calendar__header-inner-wrapper {
|
|
146
|
-
display: -ms-flexbox;
|
|
147
146
|
display: flex;
|
|
148
|
-
-
|
|
149
|
-
|
|
150
|
-
-ms-flex-align: center;
|
|
151
|
-
align-items: center;
|
|
147
|
+
justify-content: space-between;
|
|
148
|
+
align-items: center;
|
|
152
149
|
}
|
|
153
150
|
.ffe-calendar__month,
|
|
151
|
+
.ffe-calendar__year,
|
|
154
152
|
.ffe-calendar__title {
|
|
155
153
|
padding-right: var(--ffe-spacing-xs);
|
|
156
154
|
color: var(--ffe-color-foreground-emphasis);
|
|
@@ -166,7 +164,6 @@
|
|
|
166
164
|
cursor: pointer;
|
|
167
165
|
outline: none;
|
|
168
166
|
border-radius: 4px;
|
|
169
|
-
display: -ms-grid;
|
|
170
167
|
display: grid;
|
|
171
168
|
place-items: center;
|
|
172
169
|
padding: 4px;
|
|
@@ -218,15 +215,12 @@
|
|
|
218
215
|
padding-bottom: var(--ffe-spacing-sm);
|
|
219
216
|
}
|
|
220
217
|
.ffe-calendar tr {
|
|
221
|
-
display: -ms-flexbox;
|
|
222
218
|
display: flex;
|
|
223
|
-
-
|
|
224
|
-
justify-content: space-between;
|
|
219
|
+
justify-content: space-between;
|
|
225
220
|
}
|
|
226
221
|
.ffe-calendar td,
|
|
227
222
|
.ffe-calendar th {
|
|
228
|
-
|
|
229
|
-
flex: 1;
|
|
223
|
+
flex: 1;
|
|
230
224
|
text-align: center;
|
|
231
225
|
}
|
|
232
226
|
.ffe-calendar__day {
|
|
@@ -300,12 +294,9 @@
|
|
|
300
294
|
}
|
|
301
295
|
}
|
|
302
296
|
.ffe-calendar__dropdown-container {
|
|
303
|
-
display: -ms-flexbox;
|
|
304
297
|
display: flex;
|
|
305
|
-
-
|
|
306
|
-
|
|
307
|
-
-ms-flex-pack: center;
|
|
308
|
-
justify-content: center;
|
|
298
|
+
align-items: center;
|
|
299
|
+
justify-content: center;
|
|
309
300
|
gap: var(--ffe-spacing-sm);
|
|
310
301
|
padding: var(--ffe-spacing-2xs) 0;
|
|
311
302
|
}
|
package/less/calendar.less
CHANGED
package/less/dateinput.less
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
&__button {
|
|
33
|
+
height: calc(2.8125rem - var(--ffe-g-border-width) * 2);
|
|
33
34
|
background: transparent;
|
|
34
35
|
border: none;
|
|
35
36
|
grid-column: 2 e('/') 3;
|
|
@@ -40,6 +41,10 @@
|
|
|
40
41
|
width: 56px;
|
|
41
42
|
cursor: pointer;
|
|
42
43
|
isolation: isolate;
|
|
44
|
+
|
|
45
|
+
&:focus-visible {
|
|
46
|
+
background-color: var(--ffe-color-fill-primary-subtle);
|
|
47
|
+
}
|
|
43
48
|
}
|
|
44
49
|
|
|
45
50
|
.ffe-input-field:focus {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-datepicker",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "101.0.1",
|
|
4
4
|
"description": "FFE Datepicker",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "SpareBank 1",
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"build": "lessc less/datepicker.less css/datepicker.css --autoprefix"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@sb1/ffe-core": "^
|
|
24
|
-
"@sb1/ffe-form": "^
|
|
23
|
+
"@sb1/ffe-core": "^101.0.1",
|
|
24
|
+
"@sb1/ffe-form": "^101.0.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@sb1/ffe-buildtool": "^
|
|
27
|
+
"@sb1/ffe-buildtool": "^101.0.1"
|
|
28
28
|
},
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "2f1f2f2f93e52a5fc5429cbe29538f6016702cf3"
|
|
33
33
|
}
|