@sb1/ffe-datepicker 100.5.0 → 100.5.2
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 +12 -22
- package/less/dateinput.less +9 -25
- package/package.json +5 -5
package/css/datepicker.css
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
.ffe-input-group > .ffe-form-label {
|
|
2
|
-
color: var(--ffe-color-foreground-default) !important;
|
|
3
|
-
}
|
|
4
1
|
.ffe-datepicker {
|
|
5
2
|
position: relative;
|
|
3
|
+
height: 2.8125rem;
|
|
6
4
|
display: grid;
|
|
7
5
|
grid-template-columns: 1fr auto;
|
|
6
|
+
background-color: var(--ffe-color-surface-primary-default);
|
|
8
7
|
width: -webkit-fit-content;
|
|
9
8
|
width: -moz-fit-content;
|
|
10
9
|
width: fit-content;
|
|
@@ -69,6 +68,15 @@
|
|
|
69
68
|
}
|
|
70
69
|
}
|
|
71
70
|
.ffe-datepicker .ffe-dateinput {
|
|
71
|
+
display: -webkit-box;
|
|
72
|
+
display: -ms-flexbox;
|
|
73
|
+
display: flex;
|
|
74
|
+
-webkit-box-align: center;
|
|
75
|
+
-ms-flex-align: center;
|
|
76
|
+
align-items: center;
|
|
77
|
+
height: 2.7495rem;
|
|
78
|
+
border: none;
|
|
79
|
+
padding: var(--ffe-spacing-2xs) var(--ffe-spacing-sm);
|
|
72
80
|
position: relative;
|
|
73
81
|
grid-column: 1 / 3;
|
|
74
82
|
grid-row: 1 / -1;
|
|
@@ -78,15 +86,6 @@
|
|
|
78
86
|
.ffe-datepicker .ffe-dateinput--full-width {
|
|
79
87
|
display: block;
|
|
80
88
|
}
|
|
81
|
-
.ffe-datepicker .ffe-dateinput.ffe-input-field {
|
|
82
|
-
display: -webkit-box;
|
|
83
|
-
display: -ms-flexbox;
|
|
84
|
-
display: flex;
|
|
85
|
-
-webkit-box-align: center;
|
|
86
|
-
-ms-flex-align: center;
|
|
87
|
-
align-items: center;
|
|
88
|
-
border: none;
|
|
89
|
-
}
|
|
90
89
|
.ffe-datepicker .ffe-dateinput__field {
|
|
91
90
|
padding-block: var(--ffe-spacing-2xs);
|
|
92
91
|
color: var(--ffe-color-foreground-default);
|
|
@@ -123,23 +122,14 @@
|
|
|
123
122
|
}
|
|
124
123
|
}
|
|
125
124
|
.ffe-datepicker--invalid:focus-within {
|
|
126
|
-
outline: none;
|
|
127
|
-
-webkit-box-shadow: var(--ffe-g-border-focus-box-shadow) var(--ffe-color-border-feedback-critical);
|
|
128
|
-
box-shadow: var(--ffe-g-border-focus-box-shadow) var(--ffe-color-border-feedback-critical);
|
|
129
|
-
}
|
|
130
|
-
.ffe-datepicker--invalid .ffe-input-field:focus-within {
|
|
131
|
-
border-color: var(--ffe-color-border-feedback-critical);
|
|
132
125
|
-webkit-box-shadow: var(--ffe-g-border-focus-box-shadow) var(--ffe-color-border-feedback-critical);
|
|
133
126
|
box-shadow: var(--ffe-g-border-focus-box-shadow) var(--ffe-color-border-feedback-critical);
|
|
134
|
-
|
|
127
|
+
border: var(--ffe-g-border-width) solid var(--ffe-color-border-feedback-critical);
|
|
135
128
|
}
|
|
136
129
|
.ffe-datepicker--invalid .ffe-dateinput,
|
|
137
130
|
.ffe-datepicker--invalid .ffe-dateinput__field {
|
|
138
131
|
color: var(--ffe-color-foreground-feedback-critical);
|
|
139
132
|
}
|
|
140
|
-
.ffe-datepicker--invalid .ffe-input-field:has(~ .ffe-datepicker__button:hover) {
|
|
141
|
-
background-color: var(--ffe-color-surface-primary-default);
|
|
142
|
-
}
|
|
143
133
|
.ffe-calendar {
|
|
144
134
|
border: var(--ffe-g-border-width) solid var(--ffe-color-border-primary-default);
|
|
145
135
|
border-radius: var(--ffe-g-border-radius);
|
package/less/dateinput.less
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
.ffe-input-group {
|
|
2
|
-
> .ffe-form-label {
|
|
3
|
-
color: var(--ffe-color-foreground-default) !important;
|
|
4
|
-
}
|
|
5
|
-
}
|
|
6
1
|
.ffe-datepicker {
|
|
7
2
|
position: relative;
|
|
3
|
+
height: 2.8125rem; //Etterlikner ffe-input-field
|
|
8
4
|
display: grid;
|
|
9
5
|
grid-template-columns: 1fr auto;
|
|
6
|
+
background-color: var(--ffe-color-surface-primary-default);
|
|
10
7
|
width: fit-content;
|
|
11
8
|
border: var(--ffe-g-border-width) solid
|
|
12
9
|
var(--ffe-color-border-primary-default);
|
|
@@ -74,6 +71,11 @@
|
|
|
74
71
|
}
|
|
75
72
|
|
|
76
73
|
.ffe-dateinput {
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
height: 2.7495rem; //Litt mindre enn parent for å unngå hopping ved åpning av kalenderen
|
|
77
|
+
border: none;
|
|
78
|
+
padding: var(--ffe-spacing-2xs) var(--ffe-spacing-sm);
|
|
77
79
|
position: relative;
|
|
78
80
|
grid-column: 1 e('/') 3;
|
|
79
81
|
grid-row: 1 e('/') -1;
|
|
@@ -84,12 +86,6 @@
|
|
|
84
86
|
display: block;
|
|
85
87
|
}
|
|
86
88
|
|
|
87
|
-
&.ffe-input-field {
|
|
88
|
-
display: flex;
|
|
89
|
-
align-items: center;
|
|
90
|
-
border: none;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
89
|
&__field {
|
|
94
90
|
padding-block: var(--ffe-spacing-2xs);
|
|
95
91
|
color: var(--ffe-color-foreground-default);
|
|
@@ -135,27 +131,15 @@
|
|
|
135
131
|
}
|
|
136
132
|
|
|
137
133
|
&:focus-within {
|
|
138
|
-
outline: none;
|
|
139
134
|
box-shadow: var(--ffe-g-border-focus-box-shadow)
|
|
140
135
|
var(--ffe-color-border-feedback-critical);
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
.ffe-input-field {
|
|
144
|
-
&:focus-within {
|
|
145
|
-
border-color: var(--ffe-color-border-feedback-critical);
|
|
146
|
-
box-shadow: var(--ffe-g-border-focus-box-shadow)
|
|
147
|
-
var(--ffe-color-border-feedback-critical);
|
|
148
|
-
background-color: var(--ffe-color-surface-primary-default);
|
|
149
|
-
}
|
|
136
|
+
border: var(--ffe-g-border-width) solid
|
|
137
|
+
var(--ffe-color-border-feedback-critical);
|
|
150
138
|
}
|
|
151
139
|
|
|
152
140
|
.ffe-dateinput,
|
|
153
141
|
.ffe-dateinput__field {
|
|
154
142
|
color: var(--ffe-color-foreground-feedback-critical);
|
|
155
143
|
}
|
|
156
|
-
|
|
157
|
-
.ffe-input-field:has(~ .ffe-datepicker__button:hover) {
|
|
158
|
-
background-color: var(--ffe-color-surface-primary-default);
|
|
159
|
-
}
|
|
160
144
|
}
|
|
161
145
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-datepicker",
|
|
3
|
-
"version": "100.5.
|
|
3
|
+
"version": "100.5.2",
|
|
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": "^100.5.
|
|
24
|
-
"@sb1/ffe-form": "^100.5.
|
|
23
|
+
"@sb1/ffe-core": "^100.5.2",
|
|
24
|
+
"@sb1/ffe-form": "^100.5.2"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@sb1/ffe-buildtool": "^100.5.
|
|
27
|
+
"@sb1/ffe-buildtool": "^100.5.2"
|
|
28
28
|
},
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "a5f4873cd292e0c01f7c1e11e6a74b77140333bf"
|
|
33
33
|
}
|