@danske/sapphire-css 33.1.0 → 34.0.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.
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
grid-auto-flow: column;
|
|
6
6
|
align-items: center;
|
|
7
7
|
line-height: var(--sapphire-semantic-size-line-height-md);
|
|
8
|
-
gap: var(--sapphire-semantic-size-spacing-
|
|
8
|
+
gap: var(--sapphire-semantic-size-spacing-30);
|
|
9
9
|
box-sizing: border-box;
|
|
10
10
|
width: var(--sapphire-semantic-size-width-control-default);
|
|
11
11
|
|
|
12
|
+
--sapphire-dateField-icon-size: var(--sapphire-semantic-size-icon-lg);
|
|
13
|
+
|
|
12
14
|
/* The below is meant to address a font rendering quirk in OSX where the text
|
|
13
15
|
* looks bolder than intended due to subpixel rendering. This quirk generally
|
|
14
16
|
* occurs for bold fonts on dark backgrounds but depending on the font, it
|
|
@@ -28,8 +30,8 @@
|
|
|
28
30
|
* "clear" button appears in the last column.
|
|
29
31
|
*/
|
|
30
32
|
grid-template-columns:
|
|
31
|
-
var(--sapphire-
|
|
32
|
-
var(--sapphire-
|
|
33
|
+
var(--sapphire-dateField-icon-size) 1fr
|
|
34
|
+
var(--sapphire-dateField-icon-size);
|
|
33
35
|
|
|
34
36
|
height: var(--sapphire-semantic-size-height-input-lg);
|
|
35
37
|
border-radius: var(--sapphire-semantic-size-radius-sm);
|
|
@@ -39,31 +41,42 @@
|
|
|
39
41
|
background-color: var(--sapphire-semantic-color-background-field-default);
|
|
40
42
|
}
|
|
41
43
|
|
|
42
|
-
.sapphire-date-field--
|
|
44
|
+
.sapphire-date-field--no-calendar {
|
|
43
45
|
grid-template-columns:
|
|
44
|
-
|
|
45
|
-
var(--sapphire-
|
|
46
|
+
auto
|
|
47
|
+
var(--sapphire-dateField-icon-size);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.sapphire-date-field--no-clear-button {
|
|
51
|
+
grid-template-columns:
|
|
52
|
+
var(--sapphire-dateField-icon-size)
|
|
53
|
+
auto;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.sapphire-date-field--no-clear-button.sapphire-date-field--no-calendar {
|
|
57
|
+
grid-template-columns: 1fr;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.sapphire-date-field--md {
|
|
61
|
+
--sapphire-dateField-icon-size: var(--sapphire-semantic-size-icon-md);
|
|
46
62
|
|
|
47
63
|
height: var(--sapphire-semantic-size-height-input-md);
|
|
48
64
|
padding: 0 var(--sapphire-semantic-size-spacing-control-horizontal-md);
|
|
65
|
+
gap: var(--sapphire-semantic-size-spacing-20);
|
|
49
66
|
}
|
|
50
67
|
|
|
51
68
|
.sapphire-date-field--range {
|
|
52
|
-
width:
|
|
69
|
+
width: var(--sapphire-global-size-generic-960);
|
|
53
70
|
}
|
|
54
71
|
|
|
55
|
-
.sapphire-date-
|
|
56
|
-
grid
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
min-content var(--sapphire-semantic-size-icon-lg);
|
|
72
|
+
.sapphire-date-field__input-group {
|
|
73
|
+
display: grid;
|
|
74
|
+
grid-template-columns: min-content var(--sapphire-dateField-icon-size) min-content;
|
|
75
|
+
gap: var(--sapphire-semantic-size-spacing-10);
|
|
60
76
|
}
|
|
61
77
|
|
|
62
|
-
.sapphire-date-field--md.sapphire-date-
|
|
63
|
-
|
|
64
|
-
var(--sapphire-semantic-size-icon-md) min-content
|
|
65
|
-
var(--sapphire-semantic-size-icon-md)
|
|
66
|
-
min-content var(--sapphire-semantic-size-icon-md);
|
|
78
|
+
.sapphire-date-field--md .sapphire-date-field__input-group {
|
|
79
|
+
gap: var(--sapphire-semantic-size-spacing-5);
|
|
67
80
|
}
|
|
68
81
|
|
|
69
82
|
.sapphire-date-field__input {
|
|
@@ -73,25 +86,10 @@
|
|
|
73
86
|
cursor: text;
|
|
74
87
|
font-size: var(--sapphire-semantic-size-font-control-default);
|
|
75
88
|
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
76
|
-
min-width: var(--sapphire-global-size-generic-340);
|
|
77
|
-
}
|
|
78
|
-
.sapphire-date-field__input:first-of-type {
|
|
79
|
-
margin-left: var(--sapphire-semantic-size-spacing-10);
|
|
80
|
-
}
|
|
81
|
-
.sapphire-date-field__input:last-of-type {
|
|
82
|
-
margin-right: var(--sapphire-semantic-size-spacing-10);
|
|
83
89
|
}
|
|
84
90
|
|
|
85
91
|
.sapphire-date-field--md .sapphire-date-field__input {
|
|
86
92
|
font-size: var(--sapphire-semantic-size-font-control-md);
|
|
87
|
-
min-width: var(--sapphire-global-size-generic-300);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.sapphire-date-field--md .sapphire-date-field__input:first-of-type {
|
|
91
|
-
margin-left: var(--sapphire-global-size-generic-0);
|
|
92
|
-
}
|
|
93
|
-
.sapphire-date-field--md .sapphire-date-field__input:last-of-type {
|
|
94
|
-
margin-right: var(--sapphire-global-size-generic-0);
|
|
95
93
|
}
|
|
96
94
|
|
|
97
95
|
/**
|
|
@@ -131,6 +129,13 @@
|
|
|
131
129
|
color: var(--sapphire-semantic-color-content-default-primary);
|
|
132
130
|
}
|
|
133
131
|
|
|
132
|
+
/**
|
|
133
|
+
* Separator segments
|
|
134
|
+
*/
|
|
135
|
+
.sapphire-date-field__segment--separator {
|
|
136
|
+
padding: 0;
|
|
137
|
+
}
|
|
138
|
+
|
|
134
139
|
/**
|
|
135
140
|
* Focus
|
|
136
141
|
*
|
|
@@ -187,15 +192,14 @@
|
|
|
187
192
|
transition-timing-function: ease-in-out;
|
|
188
193
|
cursor: pointer;
|
|
189
194
|
|
|
190
|
-
height: var(--sapphire-
|
|
191
|
-
width: var(--sapphire-
|
|
195
|
+
height: var(--sapphire-dateField-icon-size);
|
|
196
|
+
width: var(--sapphire-dateField-icon-size);
|
|
192
197
|
background-color: transparent;
|
|
193
198
|
color: var(--sapphire-semantic-color-content-default-secondary);
|
|
194
199
|
}
|
|
195
200
|
|
|
196
|
-
.sapphire-date-
|
|
197
|
-
|
|
198
|
-
width: var(--sapphire-semantic-size-icon-md);
|
|
201
|
+
.sapphire-date-field__button--clear {
|
|
202
|
+
border-radius: 50%;
|
|
199
203
|
}
|
|
200
204
|
|
|
201
205
|
.sapphire-date-field__button:disabled,
|
|
@@ -207,13 +211,8 @@
|
|
|
207
211
|
* Icon (button)
|
|
208
212
|
*/
|
|
209
213
|
.sapphire-date-field__icon {
|
|
210
|
-
height: var(--sapphire-
|
|
211
|
-
width: var(--sapphire-
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.sapphire-date-field--md .sapphire-date-field__icon {
|
|
215
|
-
height: var(--sapphire-semantic-size-icon-md);
|
|
216
|
-
width: var(--sapphire-semantic-size-icon-md);
|
|
214
|
+
height: var(--sapphire-dateField-icon-size);
|
|
215
|
+
width: var(--sapphire-dateField-icon-size);
|
|
217
216
|
}
|
|
218
217
|
|
|
219
218
|
/**
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
declare const styles: {
|
|
2
2
|
readonly "sapphire-date-field": string;
|
|
3
|
+
readonly "sapphire-date-field--no-calendar": string;
|
|
4
|
+
readonly "sapphire-date-field--no-clear-button": string;
|
|
3
5
|
readonly "sapphire-date-field--md": string;
|
|
4
6
|
readonly "sapphire-date-field--range": string;
|
|
7
|
+
readonly "sapphire-date-field__input-group": string;
|
|
5
8
|
readonly "sapphire-date-field__input": string;
|
|
6
9
|
readonly "sapphire-date-field__segment": string;
|
|
7
10
|
readonly "is-disabled": string;
|
|
8
11
|
readonly "is-focus": string;
|
|
9
12
|
readonly "sapphire-date-field__segment--filled": string;
|
|
13
|
+
readonly "sapphire-date-field__segment--separator": string;
|
|
10
14
|
readonly "sapphire-date-field--error": string;
|
|
11
15
|
readonly "sapphire-date-field__button": string;
|
|
16
|
+
readonly "sapphire-date-field__button--clear": string;
|
|
12
17
|
readonly "sapphire-date-field__icon": string;
|
|
13
18
|
readonly "is-active": string;
|
|
14
19
|
readonly "js-hover": string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danske/sapphire-css",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "34.0.0",
|
|
4
4
|
"description": "CSS implementation of the Sapphire Design System from Danske Bank A/S",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"typescript": "~4.6.4"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@danske/sapphire-design-tokens": "^41.
|
|
69
|
+
"@danske/sapphire-design-tokens": "^41.1.0"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "038080059449e1550c0283e6ee617f11437cbeb6"
|
|
72
72
|
}
|