@danske/sapphire-css 39.0.1 → 40.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.
- package/build/themes/cjs/default-dark.js +1 -0
- package/build/themes/cjs/default.js +1 -0
- package/build/themes/cjs/index.d.ts +1 -0
- package/build/themes/esm/default-dark.js +1 -0
- package/build/themes/esm/default.js +1 -0
- package/build/themes/esm/index.d.ts +1 -0
- package/components/accordion/accordion.module.css +26 -26
- package/components/avatar/avatar.module.css +55 -78
- package/components/avatar/avatar.module.css.d.ts +16 -21
- package/components/backdrop/backdrop.module.css +5 -5
- package/components/badge/badge.module.css +76 -324
- package/components/badge/badge.module.css.d.ts +16 -34
- package/components/button/button.module.css +180 -263
- package/components/button/button.module.css.d.ts +4 -8
- package/components/buttonGroup/buttonGroup.module.css +39 -13
- package/components/calendar/calendar.module.css +64 -125
- package/components/calendar/calendar.module.css.d.ts +0 -7
- package/components/checkbox/checkbox.module.css +102 -69
- package/components/checkbox/checkbox.module.css.d.ts +1 -1
- package/components/contextualHelp/contextualHelp.module.css +7 -7
- package/components/dateField/dateField.module.css +42 -29
- package/components/dateField/dateField.module.css.d.ts +3 -2
- package/components/dialog/dialog.module.css +3 -3
- package/components/dropzone/dropzone.module.css +19 -21
- package/components/feedbackMessage/feedbackMessage.module.css +2 -40
- package/components/feedbackMessage/feedbackMessage.module.css.d.ts +0 -6
- package/components/field/field.module.css +22 -13
- package/components/field/field.module.css.d.ts +2 -2
- package/components/fieldGroup/fieldGroup.module.css +3 -3
- package/components/filterDropdown/filterDropdown.module.css +1 -1
- package/components/flag/flag.module.css +6 -6
- package/components/icon/icon.module.css +31 -4
- package/components/icon/icon.module.css.d.ts +6 -0
- package/components/iconButton/iconButton.module.css +237 -189
- package/components/iconButton/iconButton.module.css.d.ts +2 -3
- package/components/label/label.module.css +4 -5
- package/components/link/link.module.css +24 -54
- package/components/link/link.module.css.d.ts +1 -4
- package/components/list/list.module.css +20 -33
- package/components/listbox/listbox.module.css +109 -131
- package/components/listbox/listbox.module.css.d.ts +2 -4
- package/components/modalLayout/modalLayout.module.css +11 -12
- package/components/notificationBadge/notificationBadge.module.css +18 -15
- package/components/pagination/pagination.module.css +9 -9
- package/components/panel/panel.module.css +3 -1
- package/components/popover/popover.module.css +3 -2
- package/components/radio/radio.module.css +32 -9
- package/components/searchField/searchField.module.css +24 -25
- package/components/segmentedControl/segmentedControl.module.css +15 -17
- package/components/select/select.module.css +34 -18
- package/components/select/select.module.css.d.ts +2 -0
- package/components/skeleton/skeleton.module.css +5 -2
- package/components/spinner/spinner.module.css +3 -3
- package/components/surface/surface.module.css +2 -2
- package/components/switch/switch.module.css +49 -46
- package/components/switch/switch.module.css.d.ts +2 -2
- package/components/table/table.module.css +164 -136
- package/components/table/table.module.css.d.ts +5 -6
- package/components/tabs/tabs.module.css +24 -20
- package/components/tag/tag.module.css +16 -30
- package/components/tag/tag.module.css.d.ts +1 -1
- package/components/text/text.module.css +69 -82
- package/components/text/text.module.css.d.ts +19 -14
- package/components/textField/textField.module.css +45 -35
- package/components/textField/textField.module.css.d.ts +2 -2
- package/components/toast/toast.module.css +33 -153
- package/components/toast/toast.module.css.d.ts +2 -6
- package/components/tooltip/tooltip.module.css +7 -6
- package/package.json +4 -4
- package/themes/default-dark.js +1 -0
- package/themes/default.js +1 -0
- package/themes/index.d.ts +1 -0
- package/components/heading/heading.module.css +0 -95
- package/components/heading/heading.module.css.d.ts +0 -12
- package/components/labeledValue/labeledValue.module.css +0 -10
- package/components/labeledValue/labeledValue.module.css.d.ts +0 -7
- package/components/paragraph/paragraph.module.css +0 -32
- package/components/paragraph/paragraph.module.css.d.ts +0 -7
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
height: 100%;
|
|
5
5
|
min-height: 0;
|
|
6
|
-
background-color: var(--sapphire-semantic-color-background-surface);
|
|
7
6
|
font-family: var(--sapphire-semantic-font-name-default);
|
|
8
|
-
color: var(--sapphire-semantic-color-
|
|
7
|
+
color: var(--sapphire-semantic-color-foreground-primary);
|
|
9
8
|
}
|
|
10
9
|
|
|
11
10
|
.sapphire-modal-layout__header-container {
|
|
@@ -15,9 +14,9 @@
|
|
|
15
14
|
.sapphire-modal-layout__header {
|
|
16
15
|
display: flex;
|
|
17
16
|
justify-content: space-between;
|
|
18
|
-
padding: var(--sapphire-semantic-size-spacing-
|
|
17
|
+
padding: var(--sapphire-semantic-size-spacing-lg)
|
|
19
18
|
var(--sapphire-semantic-size-spacing-container-horizontal-md);
|
|
20
|
-
gap: var(--sapphire-semantic-size-spacing-
|
|
19
|
+
gap: var(--sapphire-semantic-size-spacing-sm);
|
|
21
20
|
}
|
|
22
21
|
|
|
23
22
|
.sapphire-modal-layout__body {
|
|
@@ -36,16 +35,16 @@
|
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
.sapphire-modal-layout__footer {
|
|
39
|
-
padding: var(--sapphire-semantic-size-spacing-
|
|
38
|
+
padding: var(--sapphire-semantic-size-spacing-2xl)
|
|
40
39
|
var(--sapphire-semantic-size-spacing-container-horizontal-md)
|
|
41
|
-
var(--sapphire-semantic-size-spacing-
|
|
40
|
+
var(--sapphire-semantic-size-spacing-2xl)
|
|
42
41
|
var(--sapphire-semantic-size-spacing-container-horizontal-md);
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
/** Container for heading and subheading **/
|
|
46
45
|
.sapphire-modal-layout__heading-container {
|
|
47
46
|
flex: 1;
|
|
48
|
-
padding: var(--sapphire-semantic-size-spacing-
|
|
47
|
+
padding: var(--sapphire-semantic-size-spacing-3xs) 0;
|
|
49
48
|
display: flex;
|
|
50
49
|
flex-direction: column;
|
|
51
50
|
justify-content: center;
|
|
@@ -53,8 +52,8 @@
|
|
|
53
52
|
}
|
|
54
53
|
|
|
55
54
|
.sapphire-modal-layout__subheading {
|
|
56
|
-
color: var(--sapphire-semantic-color-
|
|
57
|
-
margin-top: var(--sapphire-semantic-size-spacing-
|
|
55
|
+
color: var(--sapphire-semantic-color-foreground-secondary);
|
|
56
|
+
margin-top: var(--sapphire-semantic-size-spacing-2xs);
|
|
58
57
|
}
|
|
59
58
|
|
|
60
59
|
.sapphire-modal-layout__header-container + .sapphire-modal-layout__body {
|
|
@@ -65,12 +64,12 @@
|
|
|
65
64
|
.sapphire-modal-layout__header-container
|
|
66
65
|
+ .sapphire-modal-layout__body.sapphire-modal-layout__body--scrolled {
|
|
67
66
|
border-top: var(--sapphire-semantic-size-border-sm) solid
|
|
68
|
-
var(--sapphire-semantic-color-border-
|
|
67
|
+
var(--sapphire-semantic-color-border-secondary);
|
|
69
68
|
}
|
|
70
69
|
|
|
71
70
|
.sapphire-modal-layout:not(:has(.sapphire-modal-layout__footer))
|
|
72
71
|
.sapphire-modal-layout__body:not(.sapphire-modal-layout__body--no-padding) {
|
|
73
|
-
padding-bottom: var(--sapphire-semantic-size-spacing-
|
|
72
|
+
padding-bottom: var(--sapphire-semantic-size-spacing-lg);
|
|
74
73
|
}
|
|
75
74
|
.sapphire-modal-layout__body + .sapphire-modal-layout__footer-container {
|
|
76
75
|
/** invisible line wrap attached only for visual consistency, once we get attached border-bottom with scrolled content **/
|
|
@@ -80,5 +79,5 @@
|
|
|
80
79
|
.sapphire-modal-layout__body.sapphire-modal-layout__body--scrollable
|
|
81
80
|
+ .sapphire-modal-layout__footer-container {
|
|
82
81
|
border-top: var(--sapphire-semantic-size-border-sm) solid
|
|
83
|
-
var(--sapphire-semantic-color-border-
|
|
82
|
+
var(--sapphire-semantic-color-border-secondary);
|
|
84
83
|
}
|
|
@@ -34,9 +34,8 @@
|
|
|
34
34
|
flex-direction: column;
|
|
35
35
|
justify-content: center;
|
|
36
36
|
align-items: center;
|
|
37
|
-
color: var(--sapphire-semantic-color-content-action-primary-default);
|
|
38
37
|
font-family: var(--sapphire-semantic-font-name-default);
|
|
39
|
-
font-weight: var(--sapphire-semantic-font-weight-default-
|
|
38
|
+
font-weight: var(--sapphire-semantic-font-weight-default-medium);
|
|
40
39
|
box-sizing: border-box;
|
|
41
40
|
font-style: normal;
|
|
42
41
|
/* The below is meant to address a font rendering quirk in OSX where the text
|
|
@@ -56,28 +55,30 @@
|
|
|
56
55
|
|
|
57
56
|
.sapphire-notification-badge--pop-in {
|
|
58
57
|
animation: pop-in var(--sapphire-semantic-time-fade-default)
|
|
59
|
-
|
|
58
|
+
var(--sapphire-semantic-transitions-fade);
|
|
60
59
|
}
|
|
61
60
|
|
|
62
61
|
.sapphire-notification-badge--pop-out {
|
|
63
|
-
animation: pop-out var(--sapphire-semantic-time-fade-default)
|
|
62
|
+
animation: pop-out var(--sapphire-semantic-time-fade-default)
|
|
63
|
+
var(--sapphire-semantic-transitions-fade) forwards;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/* Sizes */
|
|
67
67
|
.sapphire-notification-badge--lg {
|
|
68
|
-
height: var(--sapphire-
|
|
69
|
-
border-radius: var(--sapphire-
|
|
70
|
-
padding: var(--sapphire-semantic-size-spacing-
|
|
71
|
-
var(--sapphire-semantic-size-spacing-
|
|
72
|
-
font-size: var(--sapphire-semantic-size-font-
|
|
68
|
+
height: var(--sapphire-semantic-size-icon-lg);
|
|
69
|
+
border-radius: var(--sapphire-semantic-size-icon-lg);
|
|
70
|
+
padding: var(--sapphire-semantic-size-spacing-2xs)
|
|
71
|
+
var(--sapphire-semantic-size-spacing-xs);
|
|
72
|
+
font-size: var(--sapphire-semantic-size-font-body-xs);
|
|
73
|
+
min-width: var(--sapphire-semantic-size-icon-lg);
|
|
73
74
|
}
|
|
74
75
|
|
|
75
76
|
.sapphire-notification-badge--md {
|
|
76
|
-
height: var(--sapphire-
|
|
77
|
-
border-radius: var(--sapphire-
|
|
78
|
-
padding: 0 var(--sapphire-semantic-size-spacing-
|
|
77
|
+
height: var(--sapphire-semantic-size-icon-md);
|
|
78
|
+
border-radius: var(--sapphire-semantic-size-icon-md);
|
|
79
|
+
padding: 0 var(--sapphire-semantic-size-spacing-3xs);
|
|
79
80
|
font-size: var(--sapphire-global-size-font-60);
|
|
80
|
-
min-width: var(--sapphire-
|
|
81
|
+
min-width: var(--sapphire-semantic-size-icon-md);
|
|
81
82
|
box-sizing: border-box;
|
|
82
83
|
}
|
|
83
84
|
|
|
@@ -89,11 +90,13 @@
|
|
|
89
90
|
|
|
90
91
|
/* Variants */
|
|
91
92
|
.sapphire-notification-badge--primary {
|
|
92
|
-
background
|
|
93
|
+
background: var(--sapphire-semantic-color-background-negative);
|
|
94
|
+
color: var(--sapphire-semantic-color-foreground-on-negative);
|
|
93
95
|
}
|
|
94
96
|
|
|
95
97
|
.sapphire-notification-badge--secondary {
|
|
96
|
-
background
|
|
98
|
+
background: var(--sapphire-semantic-color-background-accent);
|
|
99
|
+
color: var(--sapphire-semantic-color-foreground-on-accent);
|
|
97
100
|
}
|
|
98
101
|
|
|
99
102
|
/* Positioned */
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: flex-end;
|
|
4
4
|
align-items: center;
|
|
5
|
-
padding: var(--sapphire-semantic-size-spacing-
|
|
6
|
-
var(--sapphire-semantic-size-spacing-
|
|
7
|
-
background-color: var(--sapphire-semantic-color-background-surface);
|
|
5
|
+
padding: var(--sapphire-semantic-size-spacing-2xs)
|
|
6
|
+
var(--sapphire-semantic-size-spacing-lg);
|
|
8
7
|
font-family: var(--sapphire-semantic-font-name-default);
|
|
9
8
|
font-size: var(--sapphire-semantic-size-font-control-sm);
|
|
10
9
|
height: var(--sapphire-semantic-size-height-control-md);
|
|
10
|
+
background: var(--sapphire-semantic-color-background-surface);
|
|
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
|
|
@@ -29,18 +29,18 @@
|
|
|
29
29
|
align-items: center;
|
|
30
30
|
justify-content: flex-end;
|
|
31
31
|
flex-grow: 1;
|
|
32
|
-
color: var(--sapphire-semantic-color-
|
|
33
|
-
gap: var(--sapphire-semantic-size-spacing-
|
|
32
|
+
color: var(--sapphire-semantic-color-foreground-primary);
|
|
33
|
+
gap: var(--sapphire-semantic-size-spacing-sm);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.sapphire-pagination__text {
|
|
37
37
|
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
38
|
-
padding-left: var(--sapphire-semantic-size-spacing-
|
|
39
|
-
padding-right: var(--sapphire-semantic-size-spacing-
|
|
38
|
+
padding-left: var(--sapphire-semantic-size-spacing-2xs);
|
|
39
|
+
padding-right: var(--sapphire-semantic-size-spacing-2xs);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.sapphire-pagination__text--emphasized {
|
|
43
|
-
font-weight: var(--sapphire-semantic-font-weight-default-
|
|
43
|
+
font-weight: var(--sapphire-semantic-font-weight-default-medium);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.sapphire-pagination__ellipsis {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
height: var(--sapphire-semantic-size-height-control-sm);
|
|
51
51
|
width: var(--sapphire-semantic-size-height-control-sm);
|
|
52
52
|
font-size: var(--sapphire-semantic-size-font-control-sm);
|
|
53
|
-
font-weight: var(--sapphire-semantic-font-weight-default-
|
|
53
|
+
font-weight: var(--sapphire-semantic-font-weight-default-medium);
|
|
54
54
|
}
|
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
display: block;
|
|
6
6
|
height: 100%;
|
|
7
7
|
outline: 0;
|
|
8
|
-
transition: transform var(--sapphire-semantic-time-motion-default)
|
|
8
|
+
transition: transform var(--sapphire-semantic-time-motion-default)
|
|
9
|
+
var(--sapphire-semantic-transitions-standard);
|
|
9
10
|
transform: translateX(100%);
|
|
10
11
|
width: var(--sapphire-semantic-size-width-panel-lg);
|
|
12
|
+
background: var(--sapphire-semantic-color-background-surface);
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
.sapphire-panel--visible {
|
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
|
|
10
10
|
.sapphire-popover {
|
|
11
11
|
box-sizing: border-box;
|
|
12
|
-
background
|
|
12
|
+
background: var(--sapphire-semantic-color-background-popover);
|
|
13
13
|
box-shadow: var(--sapphire-semantic-shadow-popover);
|
|
14
|
-
animation: fade-in var(--sapphire-semantic-time-fade-quick)
|
|
14
|
+
animation: fade-in var(--sapphire-semantic-time-fade-quick)
|
|
15
|
+
var(--sapphire-semantic-transitions-fade);
|
|
15
16
|
border-radius: var(--sapphire-semantic-size-radius-popover);
|
|
16
17
|
overflow: auto;
|
|
17
18
|
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.sapphire-radio__label {
|
|
22
|
-
margin-left: var(--sapphire-semantic-size-spacing-
|
|
23
|
-
font-size: var(--sapphire-semantic-size-font-control-
|
|
22
|
+
margin-left: var(--sapphire-semantic-size-spacing-sm);
|
|
23
|
+
font-size: var(--sapphire-semantic-size-font-control-lg);
|
|
24
24
|
line-height: var(--sapphire-semantic-size-height-control-xs);
|
|
25
|
-
color: var(--sapphire-semantic-color-
|
|
25
|
+
color: var(--sapphire-semantic-color-foreground-primary);
|
|
26
26
|
|
|
27
27
|
/* The below is meant to address a font rendering quirk in OSX where the text
|
|
28
28
|
* looks bolder than intended due to subpixel rendering. This quirk generally
|
|
@@ -48,19 +48,19 @@
|
|
|
48
48
|
|
|
49
49
|
.sapphire-radio__box {
|
|
50
50
|
box-sizing: border-box;
|
|
51
|
-
background-color: var(--sapphire-semantic-color-background-
|
|
51
|
+
background-color: var(--sapphire-semantic-color-background-field);
|
|
52
52
|
width: var(--sapphire-semantic-size-height-box-lg);
|
|
53
53
|
height: var(--sapphire-semantic-size-height-box-lg);
|
|
54
54
|
flex-shrink: 0;
|
|
55
55
|
border-radius: 50%;
|
|
56
|
-
border: var(--sapphire-semantic-size-border-
|
|
57
|
-
var(--sapphire-semantic-color-border-
|
|
56
|
+
border: var(--sapphire-semantic-size-border-sm) solid
|
|
57
|
+
var(--sapphire-semantic-color-border-field-default);
|
|
58
58
|
position: relative;
|
|
59
|
-
margin-top: var(--sapphire-semantic-size-spacing-
|
|
59
|
+
margin-top: var(--sapphire-semantic-size-spacing-4xs);
|
|
60
60
|
|
|
61
61
|
transition-property: background-color, border-color, border-width;
|
|
62
62
|
transition-duration: var(--sapphire-semantic-time-fade-quick);
|
|
63
|
-
transition-timing-function:
|
|
63
|
+
transition-timing-function: var(--sapphire-semantic-transitions-fade);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
.sapphire-radio--md .sapphire-radio__box {
|
|
@@ -78,6 +78,9 @@
|
|
|
78
78
|
var(--sapphire-global-size-generic-20)
|
|
79
79
|
) / 2
|
|
80
80
|
);
|
|
81
|
+
background-color: var(
|
|
82
|
+
--sapphire-semantic-color-foreground-action-on-select-default
|
|
83
|
+
);
|
|
81
84
|
}
|
|
82
85
|
|
|
83
86
|
.sapphire-radio--md.sapphire-radio--checked .sapphire-radio__box {
|
|
@@ -106,7 +109,7 @@
|
|
|
106
109
|
):hover
|
|
107
110
|
.sapphire-radio__input:not(:disabled)
|
|
108
111
|
~ .sapphire-radio__box {
|
|
109
|
-
border-color: var(--sapphire-semantic-color-border-
|
|
112
|
+
border-color: var(--sapphire-semantic-color-border-field-hover);
|
|
110
113
|
}
|
|
111
114
|
|
|
112
115
|
/* Hover when checked */
|
|
@@ -119,6 +122,26 @@
|
|
|
119
122
|
border-color: var(--sapphire-semantic-color-background-action-primary-hover);
|
|
120
123
|
}
|
|
121
124
|
|
|
125
|
+
/* ACTIVE */
|
|
126
|
+
|
|
127
|
+
/* Active when not checked */
|
|
128
|
+
|
|
129
|
+
.sapphire-radio:not(.sapphire-radio--checked).is-active .sapphire-radio__box,
|
|
130
|
+
.sapphire-radio:not(.sapphire-radio--checked):active
|
|
131
|
+
.sapphire-radio__input:not(:disabled)
|
|
132
|
+
~ .sapphire-radio__box {
|
|
133
|
+
border-color: var(--sapphire-semantic-color-border-field-active);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* Active when checked */
|
|
137
|
+
|
|
138
|
+
.sapphire-radio--checked.is-active .sapphire-radio__box,
|
|
139
|
+
.sapphire-radio--checked:active
|
|
140
|
+
.sapphire-radio__input:not(:disabled)
|
|
141
|
+
~ .sapphire-radio__box {
|
|
142
|
+
border-color: var(--sapphire-semantic-color-background-action-primary-active);
|
|
143
|
+
}
|
|
144
|
+
|
|
122
145
|
/* FOCUS */
|
|
123
146
|
|
|
124
147
|
.sapphire-radio.is-focus .sapphire-radio__input ~ .sapphire-radio__box,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.sapphire-search-field {
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
font-family: var(--sapphire-semantic-font-name-default);
|
|
4
|
-
width: var(--sapphire-semantic-size-width-
|
|
4
|
+
width: var(--sapphire-semantic-size-width-field);
|
|
5
5
|
/* The below is meant to address a font rendering quirk in OSX where the text
|
|
6
6
|
* looks bolder than intended due to subpixel rendering. This quirk generally
|
|
7
7
|
* occurs for bold fonts on dark backgrounds but depending on the font, it
|
|
@@ -17,19 +17,19 @@
|
|
|
17
17
|
-moz-osx-font-smoothing: grayscale;
|
|
18
18
|
display: inline-flex;
|
|
19
19
|
align-items: center;
|
|
20
|
-
gap: var(--sapphire-semantic-size-spacing-
|
|
21
|
-
border-radius: var(--sapphire-semantic-size-height-
|
|
20
|
+
gap: var(--sapphire-semantic-size-spacing-2xs);
|
|
21
|
+
border-radius: var(--sapphire-semantic-size-height-control-lg);
|
|
22
22
|
cursor: text;
|
|
23
|
-
color: var(--sapphire-semantic-color-
|
|
24
|
-
font-size: var(--sapphire-semantic-size-font-control-
|
|
25
|
-
height: var(--sapphire-semantic-size-height-
|
|
26
|
-
background
|
|
23
|
+
color: var(--sapphire-semantic-color-foreground-primary);
|
|
24
|
+
font-size: var(--sapphire-semantic-size-font-control-lg);
|
|
25
|
+
height: var(--sapphire-semantic-size-height-control-lg);
|
|
26
|
+
background: var(
|
|
27
27
|
--sapphire-semantic-color-background-action-secondary-default
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.sapphire-search-field .sapphire-search-field__input:last-child {
|
|
32
|
-
padding-right: var(--sapphire-semantic-size-spacing-
|
|
32
|
+
padding-right: var(--sapphire-semantic-size-spacing-md);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.sapphire-search-field__input {
|
|
@@ -38,9 +38,8 @@
|
|
|
38
38
|
height: 100%;
|
|
39
39
|
min-width: 0;
|
|
40
40
|
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
41
|
-
caret-color: var(--sapphire-semantic-color-cursor-default);
|
|
42
41
|
position: relative;
|
|
43
|
-
padding-left: var(--sapphire-semantic-size-height-
|
|
42
|
+
padding-left: var(--sapphire-semantic-size-height-control-lg);
|
|
44
43
|
}
|
|
45
44
|
|
|
46
45
|
/**
|
|
@@ -48,7 +47,7 @@
|
|
|
48
47
|
*/
|
|
49
48
|
.sapphire-search-field__input::placeholder {
|
|
50
49
|
opacity: 1; /* some browsers set a lower than 1 opacity */
|
|
51
|
-
color: var(--sapphire-semantic-color-
|
|
50
|
+
color: var(--sapphire-semantic-color-foreground-secondary);
|
|
52
51
|
}
|
|
53
52
|
|
|
54
53
|
/**
|
|
@@ -84,9 +83,9 @@
|
|
|
84
83
|
display: flex;
|
|
85
84
|
justify-content: center;
|
|
86
85
|
align-items: center;
|
|
87
|
-
height: var(--sapphire-semantic-size-height-
|
|
88
|
-
width: var(--sapphire-semantic-size-height-
|
|
89
|
-
color: var(--sapphire-semantic-color-
|
|
86
|
+
height: var(--sapphire-semantic-size-height-control-lg);
|
|
87
|
+
width: var(--sapphire-semantic-size-height-control-lg);
|
|
88
|
+
color: var(--sapphire-semantic-color-foreground-secondary);
|
|
90
89
|
cursor: default;
|
|
91
90
|
flex-shrink: 0;
|
|
92
91
|
|
|
@@ -96,13 +95,13 @@
|
|
|
96
95
|
|
|
97
96
|
.sapphire-search-field__button:not(.js-hover):hover,
|
|
98
97
|
.sapphire-search-field__button.is-hover {
|
|
99
|
-
color: var(--sapphire-
|
|
98
|
+
color: var(--sapphire-semantic-color-foreground-primary);
|
|
100
99
|
}
|
|
101
100
|
|
|
102
101
|
.sapphire-search-field__button:active,
|
|
103
102
|
.sapphire-search-field__button:not(.js-hover):active,
|
|
104
103
|
.sapphire-search-field__button.is-active {
|
|
105
|
-
color: var(--sapphire-semantic-color-
|
|
104
|
+
color: var(--sapphire-semantic-color-foreground-primary);
|
|
106
105
|
}
|
|
107
106
|
|
|
108
107
|
.sapphire-search-field.is-disabled .sapphire-search-field__button,
|
|
@@ -136,10 +135,10 @@
|
|
|
136
135
|
* Search icon
|
|
137
136
|
*/
|
|
138
137
|
.sapphire-search-field__icon {
|
|
139
|
-
color: var(--sapphire-semantic-color-
|
|
138
|
+
color: var(--sapphire-semantic-color-foreground-secondary);
|
|
140
139
|
display: inline-flex; /* Not to take more height than the icon */
|
|
141
140
|
position: absolute;
|
|
142
|
-
margin-left: var(--sapphire-semantic-size-spacing-
|
|
141
|
+
margin-left: var(--sapphire-semantic-size-spacing-md);
|
|
143
142
|
}
|
|
144
143
|
|
|
145
144
|
/**
|
|
@@ -147,23 +146,23 @@
|
|
|
147
146
|
*/
|
|
148
147
|
.sapphire-search-field--md {
|
|
149
148
|
font-size: var(--sapphire-semantic-size-font-control-md);
|
|
150
|
-
height: var(--sapphire-semantic-size-height-
|
|
151
|
-
border-radius: var(--sapphire-semantic-size-height-
|
|
149
|
+
height: var(--sapphire-semantic-size-height-control-md);
|
|
150
|
+
border-radius: var(--sapphire-semantic-size-height-control-md);
|
|
152
151
|
}
|
|
153
152
|
|
|
154
153
|
.sapphire-search-field--md .sapphire-search-field__input {
|
|
155
|
-
padding-left: var(--sapphire-semantic-size-height-
|
|
154
|
+
padding-left: var(--sapphire-semantic-size-height-control-md);
|
|
156
155
|
}
|
|
157
156
|
|
|
158
157
|
.sapphire-search-field--md .sapphire-search-field__button {
|
|
159
|
-
height: var(--sapphire-semantic-size-height-
|
|
160
|
-
width: var(--sapphire-semantic-size-height-
|
|
158
|
+
height: var(--sapphire-semantic-size-height-control-md);
|
|
159
|
+
width: var(--sapphire-semantic-size-height-control-md);
|
|
161
160
|
}
|
|
162
161
|
|
|
163
162
|
.sapphire-search-field--md .sapphire-search-field__input:last-child {
|
|
164
|
-
padding-right: var(--sapphire-semantic-size-spacing-
|
|
163
|
+
padding-right: var(--sapphire-semantic-size-spacing-sm);
|
|
165
164
|
}
|
|
166
165
|
|
|
167
166
|
.sapphire-search-field--md .sapphire-search-field__icon {
|
|
168
|
-
margin-left: var(--sapphire-semantic-size-spacing-
|
|
167
|
+
margin-left: var(--sapphire-semantic-size-spacing-sm);
|
|
169
168
|
}
|
|
@@ -24,9 +24,7 @@
|
|
|
24
24
|
display: inline-flex;
|
|
25
25
|
position: relative;
|
|
26
26
|
height: 100%;
|
|
27
|
-
background
|
|
28
|
-
--sapphire-semantic-color-background-control-special-secondary-default
|
|
29
|
-
);
|
|
27
|
+
background: var(--sapphire-semantic-color-background-segmented-control-track);
|
|
30
28
|
border-radius: var(--sapphire-semantic-size-height-control-lg);
|
|
31
29
|
padding: var(--sapphire-global-size-static-5);
|
|
32
30
|
box-sizing: border-box;
|
|
@@ -35,26 +33,25 @@
|
|
|
35
33
|
.sapphire-segmented-control__glider {
|
|
36
34
|
position: absolute;
|
|
37
35
|
top: var(--sapphire-global-size-static-5);
|
|
38
|
-
left:
|
|
36
|
+
left: var(--sapphire-global-size-static-5);
|
|
39
37
|
height: calc(100% - var(--sapphire-global-size-static-5) * 2);
|
|
40
38
|
display: block;
|
|
41
|
-
background
|
|
42
|
-
--sapphire-semantic-color-background-control-special-primary-default
|
|
43
|
-
);
|
|
44
|
-
box-shadow: var(--sapphire-global-shadow-sm);
|
|
39
|
+
background: var(--sapphire-semantic-color-background-segmented-control-knob);
|
|
45
40
|
box-sizing: border-box;
|
|
46
41
|
z-index: 1;
|
|
47
42
|
border-radius: var(--sapphire-semantic-size-height-control-lg);
|
|
48
43
|
}
|
|
49
44
|
|
|
50
45
|
.sapphire-segmented-control__glider--with-transition {
|
|
51
|
-
transition: width var(--sapphire-semantic-time-motion-quick)
|
|
52
|
-
|
|
46
|
+
transition: width var(--sapphire-semantic-time-motion-quick)
|
|
47
|
+
var(--sapphire-semantic-transitions-dynamic),
|
|
48
|
+
left var(--sapphire-semantic-time-motion-quick)
|
|
49
|
+
var(--sapphire-semantic-transitions-dynamic);
|
|
53
50
|
}
|
|
54
51
|
|
|
55
52
|
.sapphire-segmented-control__button {
|
|
56
53
|
font-family: var(--sapphire-semantic-font-name-default);
|
|
57
|
-
font-weight: var(--sapphire-semantic-font-weight-default-
|
|
54
|
+
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
58
55
|
font-size: var(--sapphire-semantic-size-font-control-md);
|
|
59
56
|
/* The below is meant to address a font rendering quirk in OSX where the text
|
|
60
57
|
* looks bolder than intended due to subpixel rendering. This quirk generally
|
|
@@ -75,9 +72,9 @@
|
|
|
75
72
|
border: 0;
|
|
76
73
|
height: 100%;
|
|
77
74
|
min-width: var(--sapphire-global-size-generic-120);
|
|
78
|
-
padding: 0 var(--sapphire-semantic-size-spacing-
|
|
79
|
-
background
|
|
80
|
-
color: var(--sapphire-semantic-color-
|
|
75
|
+
padding: 0 var(--sapphire-semantic-size-spacing-lg);
|
|
76
|
+
background: transparent;
|
|
77
|
+
color: var(--sapphire-semantic-color-foreground-primary);
|
|
81
78
|
cursor: pointer;
|
|
82
79
|
outline: none;
|
|
83
80
|
z-index: 2;
|
|
@@ -85,11 +82,12 @@
|
|
|
85
82
|
align-items: center;
|
|
86
83
|
justify-content: center;
|
|
87
84
|
position: relative;
|
|
88
|
-
transition: color var(--sapphire-semantic-time-motion-quick)
|
|
85
|
+
transition: color var(--sapphire-semantic-time-motion-quick)
|
|
86
|
+
var(--sapphire-semantic-transitions-dynamic);
|
|
89
87
|
}
|
|
90
88
|
|
|
91
89
|
.sapphire-segmented-control__button--active {
|
|
92
|
-
color: var(--sapphire-semantic-color-
|
|
90
|
+
color: var(--sapphire-semantic-color-foreground-primary);
|
|
93
91
|
}
|
|
94
92
|
|
|
95
93
|
.sapphire-segmented-control__button--disabled {
|
|
@@ -127,7 +125,7 @@
|
|
|
127
125
|
}
|
|
128
126
|
|
|
129
127
|
.sapphire-segmented-control--lg .sapphire-segmented-control__button {
|
|
130
|
-
font-size: var(--sapphire-semantic-size-font-control-
|
|
128
|
+
font-size: var(--sapphire-semantic-size-font-control-lg);
|
|
131
129
|
}
|
|
132
130
|
|
|
133
131
|
.sapphire-segmented-control--sm {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.sapphire-select {
|
|
2
2
|
position: relative;
|
|
3
3
|
display: block;
|
|
4
|
-
color: var(--sapphire-semantic-color-
|
|
4
|
+
color: var(--sapphire-semantic-color-foreground-primary);
|
|
5
5
|
font-family: var(--sapphire-semantic-font-name-default);
|
|
6
6
|
/* The below is meant to address a font rendering quirk in OSX where the text
|
|
7
7
|
* looks bolder than intended due to subpixel rendering. This quirk generally
|
|
@@ -21,33 +21,33 @@
|
|
|
21
21
|
.sapphire-select__button {
|
|
22
22
|
display: flex;
|
|
23
23
|
align-items: center;
|
|
24
|
-
height: var(--sapphire-semantic-size-height-
|
|
24
|
+
height: var(--sapphire-semantic-size-height-control-lg);
|
|
25
25
|
box-sizing: border-box;
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
padding: 0 var(--sapphire-semantic-size-spacing-control-horizontal-lg);
|
|
28
28
|
border: none;
|
|
29
|
-
background
|
|
29
|
+
background: var(--sapphire-semantic-color-background-field);
|
|
30
30
|
width: 100%;
|
|
31
31
|
outline: 0;
|
|
32
32
|
text-align: left;
|
|
33
33
|
color: inherit;
|
|
34
34
|
font-family: inherit;
|
|
35
|
-
box-shadow: inset 0px 0px 0px
|
|
35
|
+
box-shadow: inset 0px 0px 0px var(--sapphire-semantic-size-border-sm)
|
|
36
36
|
var(--sapphire-semantic-color-border-field-default);
|
|
37
37
|
border-radius: var(--sapphire-semantic-size-radius-sm);
|
|
38
|
-
gap: var(--sapphire-semantic-size-spacing-
|
|
38
|
+
gap: var(--sapphire-semantic-size-spacing-sm);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.sapphire-select--md .sapphire-select__button {
|
|
42
|
-
height: var(--sapphire-semantic-size-height-
|
|
42
|
+
height: var(--sapphire-semantic-size-height-control-md);
|
|
43
43
|
padding: 0 var(--sapphire-semantic-size-spacing-control-horizontal-md);
|
|
44
|
-
gap: var(--sapphire-semantic-size-spacing-
|
|
44
|
+
gap: var(--sapphire-semantic-size-spacing-xs);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.sapphire-select__value {
|
|
48
48
|
flex: 1 0 0;
|
|
49
49
|
min-width: 0;
|
|
50
|
-
font-size: var(--sapphire-semantic-size-font-control-
|
|
50
|
+
font-size: var(--sapphire-semantic-size-font-control-lg);
|
|
51
51
|
width: 100%;
|
|
52
52
|
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
53
53
|
overflow: hidden;
|
|
@@ -63,19 +63,19 @@
|
|
|
63
63
|
overflow: hidden;
|
|
64
64
|
text-overflow: ellipsis;
|
|
65
65
|
white-space: nowrap;
|
|
66
|
-
color: var(--sapphire-semantic-color-
|
|
66
|
+
color: var(--sapphire-semantic-color-foreground-secondary);
|
|
67
67
|
pointer-events: none;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.sapphire-select__icon-container {
|
|
71
71
|
line-height: 0;
|
|
72
|
-
width: var(--sapphire-semantic-size-icon-
|
|
73
|
-
height: var(--sapphire-semantic-size-icon-
|
|
72
|
+
width: var(--sapphire-semantic-size-icon-md);
|
|
73
|
+
height: var(--sapphire-semantic-size-icon-md);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.sapphire-select--md .sapphire-select__icon-container {
|
|
77
|
-
width: var(--sapphire-semantic-size-icon-
|
|
78
|
-
height: var(--sapphire-semantic-size-icon-
|
|
77
|
+
width: var(--sapphire-semantic-size-icon-sm);
|
|
78
|
+
height: var(--sapphire-semantic-size-icon-sm);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
/**
|
|
@@ -84,7 +84,8 @@
|
|
|
84
84
|
|
|
85
85
|
.sapphire-select__prefix {
|
|
86
86
|
display: inherit; /* because this will not be a div */
|
|
87
|
-
font-size: var(--sapphire-semantic-size-font-control-
|
|
87
|
+
font-size: var(--sapphire-semantic-size-font-control-lg);
|
|
88
|
+
color: var(--sapphire-semantic-color-foreground-secondary);
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
.sapphire-select--md .sapphire-select__prefix {
|
|
@@ -100,7 +101,7 @@
|
|
|
100
101
|
all: inherit;
|
|
101
102
|
}
|
|
102
103
|
.sapphire-select__search-input::placeholder {
|
|
103
|
-
color: var(--sapphire-semantic-color-
|
|
104
|
+
color: var(--sapphire-semantic-color-foreground-secondary);
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
.sapphire-select__native-select {
|
|
@@ -119,10 +120,25 @@
|
|
|
119
120
|
*/
|
|
120
121
|
.sapphire-select--error:not(.is-disabled) .sapphire-select__button {
|
|
121
122
|
box-shadow: inset 0px 0px 0px 1px
|
|
122
|
-
var(--sapphire-semantic-color-border-
|
|
123
|
+
var(--sapphire-semantic-color-border-negative-default);
|
|
123
124
|
}
|
|
124
125
|
|
|
125
|
-
|
|
126
|
+
/**
|
|
127
|
+
* Hover
|
|
128
|
+
*/
|
|
129
|
+
.sapphire-select:not(.sapphire-select--error):not(.is-focus):not(
|
|
130
|
+
.is-disabled
|
|
131
|
+
).is-hover
|
|
132
|
+
.sapphire-select__button,
|
|
133
|
+
.sapphire-select:not(.sapphire-select--error):not(.is-focus):not(
|
|
134
|
+
.is-disabled
|
|
135
|
+
):not(.js-hover):hover
|
|
136
|
+
.sapphire-select__button {
|
|
137
|
+
box-shadow: inset 0px 0px 0px var(--sapphire-semantic-size-border-sm)
|
|
138
|
+
var(--sapphire-semantic-color-border-field-hover);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
126
142
|
* Focus
|
|
127
143
|
*/
|
|
128
144
|
.sapphire-select:not(.is-disabled).is-focus .sapphire-select__button {
|
|
@@ -132,7 +148,7 @@
|
|
|
132
148
|
|
|
133
149
|
.sapphire-select--error:not(.is-disabled).is-focus .sapphire-select__button {
|
|
134
150
|
box-shadow: inset 0px 0px 0px var(--sapphire-semantic-size-focus-ring)
|
|
135
|
-
var(--sapphire-semantic-color-border-
|
|
151
|
+
var(--sapphire-semantic-color-border-negative-default);
|
|
136
152
|
}
|
|
137
153
|
|
|
138
154
|
.sapphire-select.is-disabled .sapphire-select__button {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
}
|
|
6
6
|
60%,
|
|
7
7
|
65% {
|
|
8
|
-
opacity: var(--sapphire-
|
|
8
|
+
opacity: var(--sapphire-semantic-opacity-disabled);
|
|
9
9
|
}
|
|
10
10
|
100% {
|
|
11
11
|
opacity: 1;
|
|
@@ -15,8 +15,11 @@
|
|
|
15
15
|
.sapphire-skeleton {
|
|
16
16
|
width: 100%;
|
|
17
17
|
|
|
18
|
-
background
|
|
18
|
+
background: var(--sapphire-semantic-color-background-skeleton);
|
|
19
19
|
|
|
20
|
+
/* This is special value of animation timing function
|
|
21
|
+
* used only for skeletons.
|
|
22
|
+
*/
|
|
20
23
|
animation: skeletonPulse infinite cubic-bezier(0.25, 0, 0.25, 1);
|
|
21
24
|
animation-duration: var(--sapphire-semantic-time-fade-slow);
|
|
22
25
|
}
|