@danske/sapphire-css 32.2.0 → 33.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/build/themes/cjs/default-dark.js +1 -1
- package/build/themes/cjs/default.js +2 -1
- package/build/themes/cjs/index.d.ts +2 -1
- package/build/themes/esm/default-dark.js +1 -1
- package/build/themes/esm/default.js +2 -1
- package/build/themes/esm/index.d.ts +2 -1
- package/components/accordion/accordion.module.css +38 -40
- package/components/avatar/avatar.module.css +61 -51
- package/components/avatar/avatar.module.css.d.ts +4 -4
- package/components/backdrop/backdrop.module.css +3 -3
- package/components/badge/badge.module.css +257 -135
- package/components/badge/badge.module.css.d.ts +3 -3
- package/components/button/button.module.css +200 -400
- package/components/button/button.module.css.d.ts +6 -7
- package/components/buttonGroup/buttonGroup.module.css +6 -6
- package/components/buttonGroup/buttonGroup.module.css.d.ts +2 -2
- package/components/calendar/calendar.module.css +90 -86
- package/components/checkbox/checkbox.module.css +59 -51
- package/components/checkbox/checkbox.module.css.d.ts +2 -2
- package/components/contextualHelp/contextualHelp.module.css +13 -10
- package/components/dateField/dateField.module.css +66 -64
- package/components/dateField/dateField.module.css.d.ts +1 -1
- package/components/dialog/dialog.module.css +13 -13
- package/components/dialog/dialog.module.css.d.ts +4 -4
- package/components/dropzone/dropzone.module.css +29 -23
- package/components/feedbackMessage/feedbackMessage.module.css +15 -15
- package/components/field/field.module.css +16 -16
- package/components/field/field.module.css.d.ts +1 -1
- package/components/fieldGroup/fieldGroup.module.css +4 -4
- package/components/fieldGroup/fieldGroup.module.css.d.ts +1 -1
- package/components/heading/heading.module.css +37 -85
- package/components/icon/icon.module.css +12 -12
- package/components/icon/icon.module.css.d.ts +4 -4
- package/components/iconButton/iconButton.module.css +130 -366
- package/components/iconButton/iconButton.module.css.d.ts +7 -8
- package/components/label/label.module.css +11 -11
- package/components/label/label.module.css.d.ts +1 -1
- package/components/labeledValue/labeledValue.module.css +7 -7
- package/components/labeledValue/labeledValue.module.css.d.ts +2 -2
- package/components/link/link.module.css +22 -22
- package/components/link/link.module.css.d.ts +2 -2
- package/components/list/list.module.css +41 -31
- package/components/listbox/listbox.module.css +80 -66
- package/components/listbox/listbox.module.css.d.ts +2 -2
- package/components/modalLayout/modalLayout.module.css +9 -11
- package/components/notificationBadge/notificationBadge.module.css +23 -25
- package/components/notificationBadge/notificationBadge.module.css.d.ts +3 -3
- package/components/pagination/pagination.module.css +16 -16
- package/components/panel/panel.module.css +4 -4
- package/components/panel/panel.module.css.d.ts +1 -1
- package/components/paragraph/paragraph.module.css +8 -8
- package/components/paragraph/paragraph.module.css.d.ts +2 -2
- package/components/popover/popover.module.css +6 -6
- package/components/radio/radio.module.css +32 -32
- package/components/radio/radio.module.css.d.ts +1 -1
- package/components/searchField/searchField.module.css +41 -45
- package/components/searchField/searchField.module.css.d.ts +1 -2
- package/components/segmentedControl/segmentedControl.module.css +33 -35
- package/components/segmentedControl/segmentedControl.module.css.d.ts +2 -2
- package/components/select/select.module.css +32 -32
- package/components/select/select.module.css.d.ts +1 -1
- package/components/skeleton/skeleton.module.css +6 -8
- package/components/spinner/spinner.module.css +22 -22
- package/components/spinner/spinner.module.css.d.ts +4 -4
- package/components/surface/surface.module.css +3 -7
- package/components/surface/surface.module.css.d.ts +0 -1
- package/components/switch/switch.module.css +47 -39
- package/components/switch/switch.module.css.d.ts +1 -1
- package/components/table/table.module.css +66 -54
- package/components/tabs/tabs.module.css +46 -45
- package/components/tabs/tabs.module.css.d.ts +2 -2
- package/components/tag/tag.module.css +32 -24
- package/components/text/text.module.css +48 -96
- package/components/textField/textField.module.css +78 -72
- package/components/textField/textField.module.css.d.ts +1 -1
- package/components/toast/toast.module.css +17 -19
- package/components/tooltip/tooltip.module.css +12 -12
- package/package.json +3 -3
- package/themes/default-dark.js +1 -1
- package/themes/default.js +2 -1
- package/themes/index.d.ts +2 -1
- package/build/themes/cjs/june-dark.d.ts +0 -5
- package/build/themes/cjs/june-dark.js +0 -13
- package/build/themes/cjs/june.d.ts +0 -5
- package/build/themes/cjs/june.js +0 -13
- package/build/themes/esm/june-dark.d.ts +0 -5
- package/build/themes/esm/june-dark.js +0 -8
- package/build/themes/esm/june.d.ts +0 -5
- package/build/themes/esm/june.js +0 -8
- package/themes/default-dark.css +0 -2
- package/themes/june-dark.css +0 -3
- package/themes/june-dark.d.ts +0 -5
- package/themes/june-dark.js +0 -13
- package/themes/june-dark.scss +0 -3
- package/themes/june.css +0 -3
- package/themes/june.d.ts +0 -5
- package/themes/june.js +0 -13
- package/themes/june.scss +0 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.sapphire-checkbox {
|
|
2
|
-
font-family: var(--sapphire-
|
|
2
|
+
font-family: var(--sapphire-semantic-font-name-default);
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
position: relative;
|
|
5
5
|
max-width: 100%;
|
|
@@ -38,42 +38,42 @@
|
|
|
38
38
|
-webkit-font-smoothing: antialiased;
|
|
39
39
|
-moz-osx-font-smoothing: grayscale;
|
|
40
40
|
|
|
41
|
-
margin-left: var(--sapphire-
|
|
42
|
-
font-size: var(--sapphire-
|
|
43
|
-
color: var(--sapphire-
|
|
44
|
-
line-height: var(--sapphire-
|
|
41
|
+
margin-left: var(--sapphire-semantic-size-spacing-20);
|
|
42
|
+
font-size: var(--sapphire-semantic-size-font-control-default);
|
|
43
|
+
color: var(--sapphire-semantic-color-content-default-primary);
|
|
44
|
+
line-height: var(--sapphire-semantic-size-height-control-xs);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.sapphire-checkbox__label:empty {
|
|
48
48
|
margin-left: 0;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
.sapphire-checkbox--
|
|
52
|
-
font-size: var(--sapphire-
|
|
53
|
-
line-height: var(--sapphire-
|
|
51
|
+
.sapphire-checkbox--md .sapphire-checkbox__label {
|
|
52
|
+
font-size: var(--sapphire-semantic-size-font-control-md);
|
|
53
|
+
line-height: var(--sapphire-semantic-size-height-control-2xs);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.sapphire-checkbox__error-text {
|
|
57
57
|
display: block;
|
|
58
|
-
font-family: var(--sapphire-
|
|
59
|
-
font-weight: var(--sapphire-
|
|
60
|
-
font-size: var(--sapphire-
|
|
61
|
-
line-height: var(--sapphire-
|
|
62
|
-
color: var(--sapphire-
|
|
63
|
-
margin-top: var(--sapphire-
|
|
58
|
+
font-family: var(--sapphire-semantic-font-name-default);
|
|
59
|
+
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
60
|
+
font-size: var(--sapphire-semantic-size-font-label-md);
|
|
61
|
+
line-height: var(--sapphire-semantic-size-line-height-md);
|
|
62
|
+
color: var(--sapphire-semantic-color-content-negative-secondary-default);
|
|
63
|
+
margin-top: var(--sapphire-semantic-size-spacing-20);
|
|
64
64
|
|
|
65
65
|
margin-left: calc(
|
|
66
|
-
var(--sapphire-
|
|
67
|
-
var(--sapphire-
|
|
66
|
+
var(--sapphire-semantic-size-spacing-20) +
|
|
67
|
+
var(--sapphire-semantic-size-height-box-lg)
|
|
68
68
|
);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
.sapphire-checkbox__error-text--
|
|
72
|
-
font-size: var(--sapphire-
|
|
73
|
-
line-height: var(--sapphire-
|
|
71
|
+
.sapphire-checkbox__error-text--md {
|
|
72
|
+
font-size: var(--sapphire-semantic-size-font-label-sm);
|
|
73
|
+
line-height: var(--sapphire-semantic-size-line-height-sm);
|
|
74
74
|
margin-left: calc(
|
|
75
|
-
var(--sapphire-
|
|
76
|
-
var(--sapphire-
|
|
75
|
+
var(--sapphire-semantic-size-spacing-20) +
|
|
76
|
+
var(--sapphire-semantic-size-height-box-md)
|
|
77
77
|
);
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -82,13 +82,13 @@
|
|
|
82
82
|
.sapphire-checkbox__box {
|
|
83
83
|
box-sizing: border-box;
|
|
84
84
|
position: relative;
|
|
85
|
-
width: var(--sapphire-
|
|
86
|
-
height: var(--sapphire-
|
|
87
|
-
border-radius: var(--sapphire-
|
|
88
|
-
border: var(--sapphire-
|
|
89
|
-
var(--sapphire-
|
|
90
|
-
background-color: var(--sapphire-
|
|
91
|
-
transition: all var(--sapphire-
|
|
85
|
+
width: var(--sapphire-semantic-size-height-box-lg);
|
|
86
|
+
height: var(--sapphire-semantic-size-height-box-lg);
|
|
87
|
+
border-radius: var(--sapphire-semantic-size-radius-sm);
|
|
88
|
+
border: var(--sapphire-semantic-size-border-md) solid
|
|
89
|
+
var(--sapphire-semantic-color-border-control-default);
|
|
90
|
+
background-color: var(--sapphire-semantic-color-background-control-default);
|
|
91
|
+
transition: all var(--sapphire-semantic-time-fade-quick);
|
|
92
92
|
flex-shrink: 0;
|
|
93
93
|
display: inline-flex;
|
|
94
94
|
justify-content: center;
|
|
@@ -96,45 +96,49 @@
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.sapphire-checkbox__box:has(~ .sapphire-checkbox__label:not(:empty)) {
|
|
99
|
-
margin-top: var(--sapphire-
|
|
99
|
+
margin-top: var(--sapphire-semantic-size-spacing-5);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
.sapphire-checkbox--
|
|
103
|
-
width: var(--sapphire-
|
|
104
|
-
height: var(--sapphire-
|
|
102
|
+
.sapphire-checkbox--md .sapphire-checkbox__box {
|
|
103
|
+
width: var(--sapphire-semantic-size-height-box-md);
|
|
104
|
+
height: var(--sapphire-semantic-size-height-box-md);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.sapphire-checkbox__box-icon {
|
|
108
108
|
display: inherit;
|
|
109
109
|
line-height: 0;
|
|
110
|
-
color: var(--sapphire-
|
|
111
|
-
margin: calc(var(--sapphire-
|
|
112
|
-
height: var(--sapphire-
|
|
113
|
-
width: var(--sapphire-
|
|
110
|
+
color: var(--sapphire-semantic-color-content-action-primary-default);
|
|
111
|
+
margin: calc(var(--sapphire-semantic-size-border-md) * -1);
|
|
112
|
+
height: var(--sapphire-semantic-size-height-box-lg);
|
|
113
|
+
width: var(--sapphire-semantic-size-height-box-lg);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
.sapphire-checkbox--
|
|
117
|
-
height: var(--sapphire-
|
|
118
|
-
width: var(--sapphire-
|
|
116
|
+
.sapphire-checkbox--md .sapphire-checkbox__box-icon {
|
|
117
|
+
height: var(--sapphire-semantic-size-height-box-md);
|
|
118
|
+
width: var(--sapphire-semantic-size-height-box-md);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
.sapphire-checkbox--error .sapphire-checkbox__box {
|
|
122
|
-
border-color: var(
|
|
122
|
+
border-color: var(
|
|
123
|
+
--sapphire-semantic-color-background-negative-primary-default
|
|
124
|
+
);
|
|
123
125
|
}
|
|
124
126
|
|
|
125
127
|
/* Checked (same UI as indeterminate) */
|
|
126
128
|
|
|
127
129
|
.sapphire-checkbox--checked .sapphire-checkbox__box,
|
|
128
130
|
.sapphire-checkbox--indeterminate .sapphire-checkbox__box {
|
|
129
|
-
border-width: var(--sapphire-
|
|
130
|
-
background-color: var(
|
|
131
|
+
border-width: var(--sapphire-global-size-generic-0);
|
|
132
|
+
background-color: var(
|
|
133
|
+
--sapphire-semantic-color-background-action-primary-default
|
|
134
|
+
);
|
|
131
135
|
}
|
|
132
136
|
|
|
133
137
|
.sapphire-checkbox--checked.sapphire-checkbox--error .sapphire-checkbox__box,
|
|
134
138
|
.sapphire-checkbox--indeterminate.sapphire-checkbox--error
|
|
135
139
|
.sapphire-checkbox__box {
|
|
136
140
|
background-color: var(
|
|
137
|
-
--sapphire-
|
|
141
|
+
--sapphire-semantic-color-background-negative-primary-default
|
|
138
142
|
);
|
|
139
143
|
}
|
|
140
144
|
|
|
@@ -151,7 +155,7 @@
|
|
|
151
155
|
):not(.js-hover):hover
|
|
152
156
|
.sapphire-checkbox__input:not(:disabled)
|
|
153
157
|
~ .sapphire-checkbox__box {
|
|
154
|
-
border-color: var(--sapphire-
|
|
158
|
+
border-color: var(--sapphire-semantic-color-border-control-hover);
|
|
155
159
|
}
|
|
156
160
|
|
|
157
161
|
.sapphire-checkbox--error:not(:active):not(.is-active):not(
|
|
@@ -163,7 +167,9 @@
|
|
|
163
167
|
):not(.js-hover):hover
|
|
164
168
|
.sapphire-checkbox__input:not(:disabled)
|
|
165
169
|
~ .sapphire-checkbox__box {
|
|
166
|
-
border-color: var(
|
|
170
|
+
border-color: var(
|
|
171
|
+
--sapphire-semantic-color-background-negative-primary-hover
|
|
172
|
+
);
|
|
167
173
|
}
|
|
168
174
|
|
|
169
175
|
/* Hover when checked (same UI as indeterminate) */
|
|
@@ -180,7 +186,9 @@
|
|
|
180
186
|
):hover
|
|
181
187
|
.sapphire-checkbox__input:not(:disabled)
|
|
182
188
|
~ .sapphire-checkbox__box {
|
|
183
|
-
background-color: var(
|
|
189
|
+
background-color: var(
|
|
190
|
+
--sapphire-semantic-color-background-action-primary-hover
|
|
191
|
+
);
|
|
184
192
|
}
|
|
185
193
|
|
|
186
194
|
.sapphire-checkbox--checked.sapphire-checkbox--error:not(:active):not(
|
|
@@ -202,7 +210,7 @@
|
|
|
202
210
|
.sapphire-checkbox__input:not(:disabled)
|
|
203
211
|
~ .sapphire-checkbox__box {
|
|
204
212
|
background-color: var(
|
|
205
|
-
--sapphire-
|
|
213
|
+
--sapphire-semantic-color-background-negative-primary-hover
|
|
206
214
|
);
|
|
207
215
|
}
|
|
208
216
|
|
|
@@ -212,9 +220,9 @@
|
|
|
212
220
|
.sapphire-checkbox:not(.js-focus)
|
|
213
221
|
.sapphire-checkbox__input:focus-visible
|
|
214
222
|
~ .sapphire-checkbox__box {
|
|
215
|
-
outline: var(--sapphire-
|
|
216
|
-
var(--sapphire-
|
|
217
|
-
outline-offset: var(--sapphire-
|
|
223
|
+
outline: var(--sapphire-semantic-size-focus-ring) solid
|
|
224
|
+
var(--sapphire-semantic-color-focus-ring);
|
|
225
|
+
outline-offset: var(--sapphire-semantic-size-focus-ring);
|
|
218
226
|
}
|
|
219
227
|
|
|
220
228
|
/* DISABLED */
|
|
@@ -229,5 +237,5 @@
|
|
|
229
237
|
.sapphire-checkbox:not(.sapphire-checkbox--no-disabled)
|
|
230
238
|
.sapphire-checkbox__input:disabled
|
|
231
239
|
~ .sapphire-checkbox__label {
|
|
232
|
-
opacity: var(--sapphire-
|
|
240
|
+
opacity: var(--sapphire-semantic-opacity-disabled);
|
|
233
241
|
}
|
|
@@ -2,9 +2,9 @@ declare const styles: {
|
|
|
2
2
|
readonly "sapphire-checkbox": string;
|
|
3
3
|
readonly "sapphire-checkbox__input": string;
|
|
4
4
|
readonly "sapphire-checkbox__label": string;
|
|
5
|
-
readonly "sapphire-checkbox--
|
|
5
|
+
readonly "sapphire-checkbox--md": string;
|
|
6
6
|
readonly "sapphire-checkbox__error-text": string;
|
|
7
|
-
readonly "sapphire-checkbox__error-text--
|
|
7
|
+
readonly "sapphire-checkbox__error-text--md": string;
|
|
8
8
|
readonly "sapphire-checkbox__box": string;
|
|
9
9
|
readonly "sapphire-checkbox__box-icon": string;
|
|
10
10
|
readonly "sapphire-checkbox--error": string;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TODO(v2): rename to help-button
|
|
3
|
+
*/
|
|
1
4
|
.sapphire-contextual-help {
|
|
2
|
-
color: var(--sapphire-
|
|
3
|
-
line-height: var(--sapphire-
|
|
4
|
-
max-width: var(--sapphire-
|
|
5
|
-
font-family: var(--sapphire-
|
|
6
|
-
font-weight: var(--sapphire-
|
|
7
|
-
font-size: var(--sapphire-
|
|
8
|
-
padding: var(--sapphire-
|
|
9
|
-
var(--sapphire-
|
|
5
|
+
color: var(--sapphire-semantic-color-content-default-primary);
|
|
6
|
+
line-height: var(--sapphire-global-size-line-height-sm);
|
|
7
|
+
max-width: var(--sapphire-global-size-generic-750);
|
|
8
|
+
font-family: var(--sapphire-semantic-font-name-default);
|
|
9
|
+
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
10
|
+
font-size: var(--sapphire-semantic-size-font-text-md);
|
|
11
|
+
padding: var(--sapphire-semantic-size-spacing-50)
|
|
12
|
+
var(--sapphire-semantic-size-spacing-50);
|
|
10
13
|
/* if implemented as focusable, we don't want the outline because this is not
|
|
11
14
|
* an an interactive element in itself */
|
|
12
15
|
outline: none;
|
|
@@ -27,11 +30,11 @@
|
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
.sapphire-contextual-help__header {
|
|
30
|
-
padding-bottom: var(--sapphire-
|
|
33
|
+
padding-bottom: var(--sapphire-semantic-size-spacing-30);
|
|
31
34
|
}
|
|
32
35
|
|
|
33
36
|
.sapphire-contextual-help__footer {
|
|
34
|
-
padding-top: var(--sapphire-
|
|
37
|
+
padding-top: var(--sapphire-semantic-size-spacing-20);
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
.sapphire-contextual-help--no-max-width {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
.sapphire-date-field {
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
display: grid;
|
|
4
|
-
font-family: var(--sapphire-
|
|
4
|
+
font-family: var(--sapphire-semantic-font-name-default);
|
|
5
5
|
grid-auto-flow: column;
|
|
6
6
|
align-items: center;
|
|
7
|
-
line-height: var(--sapphire-
|
|
8
|
-
gap: var(--sapphire-
|
|
7
|
+
line-height: var(--sapphire-semantic-size-line-height-md);
|
|
8
|
+
gap: var(--sapphire-semantic-size-spacing-20);
|
|
9
9
|
box-sizing: border-box;
|
|
10
|
-
width: var(--sapphire-
|
|
10
|
+
width: var(--sapphire-semantic-size-width-control-default);
|
|
11
11
|
|
|
12
12
|
/* The below is meant to address a font rendering quirk in OSX where the text
|
|
13
13
|
* looks bolder than intended due to subpixel rendering. This quirk generally
|
|
@@ -28,24 +28,24 @@
|
|
|
28
28
|
* "clear" button appears in the last column.
|
|
29
29
|
*/
|
|
30
30
|
grid-template-columns:
|
|
31
|
-
var(--sapphire-
|
|
32
|
-
var(--sapphire-
|
|
31
|
+
var(--sapphire-semantic-size-icon-lg) auto
|
|
32
|
+
var(--sapphire-semantic-size-icon-lg);
|
|
33
33
|
|
|
34
|
-
height: var(--sapphire-
|
|
35
|
-
border-radius: var(--sapphire-
|
|
36
|
-
padding: 0 var(--sapphire-
|
|
37
|
-
border: var(--sapphire-
|
|
38
|
-
var(--sapphire-
|
|
39
|
-
background-color: var(--sapphire-
|
|
34
|
+
height: var(--sapphire-semantic-size-height-input-lg);
|
|
35
|
+
border-radius: var(--sapphire-semantic-size-radius-sm);
|
|
36
|
+
padding: 0 var(--sapphire-semantic-size-spacing-control-horizontal-lg);
|
|
37
|
+
border: var(--sapphire-semantic-size-border-sm) solid
|
|
38
|
+
var(--sapphire-semantic-color-border-field-default);
|
|
39
|
+
background-color: var(--sapphire-semantic-color-background-field-default);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.sapphire-date-field--
|
|
42
|
+
.sapphire-date-field--md {
|
|
43
43
|
grid-template-columns:
|
|
44
|
-
var(--sapphire-
|
|
45
|
-
var(--sapphire-
|
|
44
|
+
var(--sapphire-semantic-size-icon-md) auto
|
|
45
|
+
var(--sapphire-semantic-size-icon-md);
|
|
46
46
|
|
|
47
|
-
height: var(--sapphire-
|
|
48
|
-
padding: 0 var(--sapphire-
|
|
47
|
+
height: var(--sapphire-semantic-size-height-input-md);
|
|
48
|
+
padding: 0 var(--sapphire-semantic-size-spacing-control-horizontal-md);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.sapphire-date-field--range {
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
|
|
55
55
|
.sapphire-date-field.sapphire-date-field--range {
|
|
56
56
|
grid-template-columns:
|
|
57
|
-
var(--sapphire-
|
|
58
|
-
var(--sapphire-
|
|
59
|
-
min-content var(--sapphire-
|
|
57
|
+
var(--sapphire-semantic-size-icon-lg) min-content
|
|
58
|
+
var(--sapphire-semantic-size-icon-lg)
|
|
59
|
+
min-content var(--sapphire-semantic-size-icon-lg);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
.sapphire-date-field--
|
|
62
|
+
.sapphire-date-field--md.sapphire-date-field--range {
|
|
63
63
|
grid-template-columns:
|
|
64
|
-
var(--sapphire-
|
|
65
|
-
var(--sapphire-
|
|
66
|
-
min-content var(--sapphire-
|
|
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);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.sapphire-date-field__input {
|
|
@@ -71,41 +71,41 @@
|
|
|
71
71
|
align-items: center;
|
|
72
72
|
height: 100%;
|
|
73
73
|
cursor: text;
|
|
74
|
-
font-size: var(--sapphire-
|
|
75
|
-
font-weight: var(--sapphire-
|
|
76
|
-
min-width: var(--sapphire-
|
|
74
|
+
font-size: var(--sapphire-semantic-size-font-control-default);
|
|
75
|
+
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
76
|
+
min-width: var(--sapphire-global-size-generic-340);
|
|
77
77
|
}
|
|
78
78
|
.sapphire-date-field__input:first-of-type {
|
|
79
|
-
margin-left: var(--sapphire-
|
|
79
|
+
margin-left: var(--sapphire-semantic-size-spacing-10);
|
|
80
80
|
}
|
|
81
81
|
.sapphire-date-field__input:last-of-type {
|
|
82
|
-
margin-right: var(--sapphire-
|
|
82
|
+
margin-right: var(--sapphire-semantic-size-spacing-10);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
.sapphire-date-field--
|
|
86
|
-
font-size: var(--sapphire-
|
|
87
|
-
min-width: var(--sapphire-
|
|
85
|
+
.sapphire-date-field--md .sapphire-date-field__input {
|
|
86
|
+
font-size: var(--sapphire-semantic-size-font-control-md);
|
|
87
|
+
min-width: var(--sapphire-global-size-generic-300);
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
.sapphire-date-field--
|
|
91
|
-
margin-left: var(--sapphire-
|
|
90
|
+
.sapphire-date-field--md .sapphire-date-field__input:first-of-type {
|
|
91
|
+
margin-left: var(--sapphire-global-size-generic-0);
|
|
92
92
|
}
|
|
93
|
-
.sapphire-date-field--
|
|
94
|
-
margin-right: var(--sapphire-
|
|
93
|
+
.sapphire-date-field--md .sapphire-date-field__input:last-of-type {
|
|
94
|
+
margin-right: var(--sapphire-global-size-generic-0);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
98
|
* Editable segments
|
|
99
99
|
*/
|
|
100
100
|
.sapphire-date-field__segment {
|
|
101
|
-
color: var(--sapphire-
|
|
102
|
-
border-radius: var(--sapphire-
|
|
101
|
+
color: var(--sapphire-semantic-color-content-default-secondary);
|
|
102
|
+
border-radius: var(--sapphire-semantic-size-radius-xs);
|
|
103
103
|
transition-property: color, background-color;
|
|
104
|
-
transition-duration: var(--sapphire-
|
|
104
|
+
transition-duration: var(--sapphire-semantic-time-fade-quick);
|
|
105
105
|
transition-timing-function: ease-in-out;
|
|
106
106
|
text-align: right;
|
|
107
107
|
text-transform: uppercase;
|
|
108
|
-
padding: 0 var(--sapphire-
|
|
108
|
+
padding: 0 var(--sapphire-semantic-size-spacing-5);
|
|
109
109
|
caret-color: transparent;
|
|
110
110
|
}
|
|
111
111
|
|
|
@@ -116,8 +116,10 @@
|
|
|
116
116
|
|
|
117
117
|
.sapphire-date-field__segment:not(:disabled):not(.is-disabled):focus,
|
|
118
118
|
.sapphire-date-field__segment:not(:disabled):not(.is-disabled).is-focus {
|
|
119
|
-
color: var(--sapphire-
|
|
120
|
-
background-color: var(
|
|
119
|
+
color: var(--sapphire-semantic-color-content-default-primary);
|
|
120
|
+
background-color: var(
|
|
121
|
+
--sapphire-semantic-color-background-action-secondary-hover
|
|
122
|
+
);
|
|
121
123
|
outline: none;
|
|
122
124
|
}
|
|
123
125
|
|
|
@@ -126,7 +128,7 @@
|
|
|
126
128
|
}
|
|
127
129
|
|
|
128
130
|
.sapphire-date-field__segment--filled {
|
|
129
|
-
color: var(--sapphire-
|
|
131
|
+
color: var(--sapphire-semantic-color-content-default-primary);
|
|
130
132
|
}
|
|
131
133
|
|
|
132
134
|
/**
|
|
@@ -139,16 +141,16 @@
|
|
|
139
141
|
*/
|
|
140
142
|
.sapphire-date-field:has(.sapphire-date-field__segment:focus),
|
|
141
143
|
.sapphire-date-field:has(.sapphire-date-field__segment.is-focus) {
|
|
142
|
-
outline: var(--sapphire-
|
|
143
|
-
var(--sapphire-
|
|
144
|
-
outline-offset: calc(-1 * var(--sapphire-
|
|
144
|
+
outline: var(--sapphire-semantic-size-focus-ring) solid
|
|
145
|
+
var(--sapphire-semantic-color-focus-ring);
|
|
146
|
+
outline-offset: calc(-1 * var(--sapphire-semantic-size-focus-ring));
|
|
145
147
|
}
|
|
146
148
|
|
|
147
149
|
/**
|
|
148
150
|
* Hover
|
|
149
151
|
*/
|
|
150
152
|
.sapphire-date-field--error {
|
|
151
|
-
border-color: var(--sapphire-
|
|
153
|
+
border-color: var(--sapphire-semantic-color-border-field-error);
|
|
152
154
|
}
|
|
153
155
|
|
|
154
156
|
/**
|
|
@@ -173,7 +175,7 @@
|
|
|
173
175
|
padding: 0;
|
|
174
176
|
|
|
175
177
|
/* shape */
|
|
176
|
-
border-radius: var(--sapphire-
|
|
178
|
+
border-radius: var(--sapphire-semantic-size-radius-xs);
|
|
177
179
|
border-style: solid;
|
|
178
180
|
border-width: 0;
|
|
179
181
|
border-color: transparent;
|
|
@@ -181,19 +183,19 @@
|
|
|
181
183
|
/* transition */
|
|
182
184
|
/* we don't want to transition outline-offset */
|
|
183
185
|
transition-property: color;
|
|
184
|
-
transition-duration: var(--sapphire-
|
|
186
|
+
transition-duration: var(--sapphire-semantic-time-fade-quick);
|
|
185
187
|
transition-timing-function: ease-in-out;
|
|
186
188
|
cursor: pointer;
|
|
187
189
|
|
|
188
|
-
height: var(--sapphire-
|
|
189
|
-
width: var(--sapphire-
|
|
190
|
+
height: var(--sapphire-semantic-size-icon-lg);
|
|
191
|
+
width: var(--sapphire-semantic-size-icon-lg);
|
|
190
192
|
background-color: transparent;
|
|
191
|
-
color: var(--sapphire-
|
|
193
|
+
color: var(--sapphire-semantic-color-content-default-secondary);
|
|
192
194
|
}
|
|
193
195
|
|
|
194
|
-
.sapphire-date-field--
|
|
195
|
-
height: var(--sapphire-
|
|
196
|
-
width: var(--sapphire-
|
|
196
|
+
.sapphire-date-field--md .sapphire-date-field__button {
|
|
197
|
+
height: var(--sapphire-semantic-size-icon-md);
|
|
198
|
+
width: var(--sapphire-semantic-size-icon-md);
|
|
197
199
|
}
|
|
198
200
|
|
|
199
201
|
.sapphire-date-field__button:disabled,
|
|
@@ -205,13 +207,13 @@
|
|
|
205
207
|
* Icon (button)
|
|
206
208
|
*/
|
|
207
209
|
.sapphire-date-field__icon {
|
|
208
|
-
height: var(--sapphire-
|
|
209
|
-
width: var(--sapphire-
|
|
210
|
+
height: var(--sapphire-semantic-size-icon-lg);
|
|
211
|
+
width: var(--sapphire-semantic-size-icon-lg);
|
|
210
212
|
}
|
|
211
213
|
|
|
212
|
-
.sapphire-date-field--
|
|
213
|
-
height: var(--sapphire-
|
|
214
|
-
width: var(--sapphire-
|
|
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);
|
|
215
217
|
}
|
|
216
218
|
|
|
217
219
|
/**
|
|
@@ -223,7 +225,7 @@
|
|
|
223
225
|
.sapphire-date-field__button:not(:disabled):not(.is-disabled):not(:active):not(
|
|
224
226
|
.is-active
|
|
225
227
|
).is-hover {
|
|
226
|
-
color: var(--sapphire-
|
|
228
|
+
color: var(--sapphire-semantic-color-content-default-primary);
|
|
227
229
|
}
|
|
228
230
|
|
|
229
231
|
/**
|
|
@@ -235,8 +237,8 @@
|
|
|
235
237
|
|
|
236
238
|
.sapphire-date-field__button.is-focus,
|
|
237
239
|
.sapphire-date-field__button:not(.js-focus):focus-visible {
|
|
238
|
-
outline: var(--sapphire-
|
|
239
|
-
var(--sapphire-
|
|
240
|
+
outline: var(--sapphire-semantic-size-focus-ring) solid
|
|
241
|
+
var(--sapphire-semantic-color-focus-ring);
|
|
240
242
|
}
|
|
241
243
|
|
|
242
244
|
/**
|
|
@@ -247,5 +249,5 @@
|
|
|
247
249
|
.sapphire-date-field__button:not(:disabled):not(
|
|
248
250
|
.is-disabled
|
|
249
251
|
):focus-visible:active {
|
|
250
|
-
color: var(--sapphire-
|
|
252
|
+
color: var(--sapphire-semantic-color-content-default-primary);
|
|
251
253
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const styles: {
|
|
2
2
|
readonly "sapphire-date-field": string;
|
|
3
|
-
readonly "sapphire-date-field--
|
|
3
|
+
readonly "sapphire-date-field--md": string;
|
|
4
4
|
readonly "sapphire-date-field--range": string;
|
|
5
5
|
readonly "sapphire-date-field__input": string;
|
|
6
6
|
readonly "sapphire-date-field__segment": string;
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.sapphire-dialog {
|
|
22
|
-
border-radius: var(--sapphire-
|
|
23
|
-
background-color: var(--sapphire-
|
|
24
|
-
font-family: var(--sapphire-
|
|
25
|
-
color: var(--sapphire-
|
|
22
|
+
border-radius: var(--sapphire-semantic-size-radius-lg);
|
|
23
|
+
background-color: var(--sapphire-semantic-color-background-surface);
|
|
24
|
+
font-family: var(--sapphire-semantic-font-name-default);
|
|
25
|
+
color: var(--sapphire-semantic-color-content-default-primary);
|
|
26
26
|
box-sizing: border-box;
|
|
27
27
|
overflow: hidden;
|
|
28
28
|
max-height: 90vh;
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
outline: none;
|
|
35
35
|
|
|
36
36
|
animation-name: fade-in;
|
|
37
|
-
animation-duration: var(--sapphire-
|
|
37
|
+
animation-duration: var(--sapphire-semantic-time-fade-default);
|
|
38
38
|
animation-timing-function: ease-in-out;
|
|
39
39
|
animation-fill-mode: forwards;
|
|
40
40
|
}
|
|
@@ -43,18 +43,18 @@
|
|
|
43
43
|
animation-name: fade-out;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.sapphire-dialog--
|
|
47
|
-
width: var(--sapphire-
|
|
46
|
+
.sapphire-dialog--xs {
|
|
47
|
+
width: var(--sapphire-global-size-generic-800);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
.sapphire-dialog--
|
|
51
|
-
width: var(--sapphire-
|
|
50
|
+
.sapphire-dialog--sm {
|
|
51
|
+
width: var(--sapphire-global-size-generic-1400);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.sapphire-dialog--
|
|
55
|
-
width: var(--sapphire-
|
|
54
|
+
.sapphire-dialog--md {
|
|
55
|
+
width: var(--sapphire-global-size-generic-1920);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.sapphire-dialog--
|
|
59
|
-
width: var(--sapphire-
|
|
58
|
+
.sapphire-dialog--lg {
|
|
59
|
+
width: var(--sapphire-global-size-generic-2560);
|
|
60
60
|
}
|
|
@@ -3,10 +3,10 @@ declare const styles: {
|
|
|
3
3
|
readonly "fade-in": string;
|
|
4
4
|
readonly "sapphire-dialog--exiting": string;
|
|
5
5
|
readonly "fade-out": string;
|
|
6
|
-
readonly "sapphire-dialog--
|
|
7
|
-
readonly "sapphire-dialog--
|
|
8
|
-
readonly "sapphire-dialog--
|
|
9
|
-
readonly "sapphire-dialog--
|
|
6
|
+
readonly "sapphire-dialog--xs": string;
|
|
7
|
+
readonly "sapphire-dialog--sm": string;
|
|
8
|
+
readonly "sapphire-dialog--md": string;
|
|
9
|
+
readonly "sapphire-dialog--lg": string;
|
|
10
10
|
};
|
|
11
11
|
export = styles;
|
|
12
12
|
|