@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
|
@@ -6,18 +6,18 @@ declare const styles: {
|
|
|
6
6
|
readonly "sapphire-table-sortedIcon": string;
|
|
7
7
|
readonly "sapphire-table-sortableIcon": string;
|
|
8
8
|
readonly "sapphire-table__head": string;
|
|
9
|
+
readonly "sapphire-table__cell": string;
|
|
10
|
+
readonly "sapphire-table__headCell": string;
|
|
11
|
+
readonly "sapphire-table__selectionCell": string;
|
|
9
12
|
readonly "sapphire-table__head--sticky": string;
|
|
10
13
|
readonly "sapphire-table__cell--alignLeft": string;
|
|
11
14
|
readonly "sapphire-table__cell--alignCenter": string;
|
|
12
15
|
readonly "sapphire-table__cell--alignRight": string;
|
|
13
|
-
readonly "sapphire-table__cell-wrapper": string;
|
|
14
|
-
readonly "sapphire-table__headCell": string;
|
|
15
16
|
readonly "sapphire-table__headCell_container": string;
|
|
16
17
|
readonly "sapphire-table__row": string;
|
|
17
|
-
readonly "sapphire-table__cell": string;
|
|
18
|
-
readonly "sapphire-table__selectionCell": string;
|
|
19
18
|
readonly "is-focus": string;
|
|
20
19
|
readonly "js-focus": string;
|
|
20
|
+
readonly "sapphire-table__row-expanded-view": string;
|
|
21
21
|
readonly "sapphire-table__headCell--sortable": string;
|
|
22
22
|
readonly "is-hover": string;
|
|
23
23
|
readonly "js-hover": string;
|
|
@@ -32,13 +32,12 @@ declare const styles: {
|
|
|
32
32
|
readonly "sapphire-table__table--spacing-lg": string;
|
|
33
33
|
readonly "sapphire-table__table--spacing-xl": string;
|
|
34
34
|
readonly "sapphire-table__tfoot": string;
|
|
35
|
+
readonly "sapphire-table--interactive": string;
|
|
35
36
|
readonly "sapphire-table__row--active": string;
|
|
36
37
|
readonly "sapphire-table__row--selected": string;
|
|
37
38
|
readonly "sapphire-table__row--expanded": string;
|
|
38
|
-
readonly "sapphire-table__row-expanded-view": string;
|
|
39
39
|
readonly "sapphire-table__row-expand-button": string;
|
|
40
40
|
readonly "sapphire-table--without-last-divider": string;
|
|
41
|
-
readonly "sapphire-table--interactive": string;
|
|
42
41
|
readonly "sapphire-table__row--interactive": string;
|
|
43
42
|
readonly "sapphire-table__row--highlighted": string;
|
|
44
43
|
readonly "sapphire-table__selection-action-bar": string;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
overflow-y: hidden;
|
|
6
6
|
white-space: nowrap;
|
|
7
7
|
position: relative;
|
|
8
|
-
scroll-padding: 0 calc(2 * var(--sapphire-
|
|
8
|
+
scroll-padding: 0 calc(2 * var(--sapphire-semantic-size-spacing-3xl) + 1px);
|
|
9
9
|
min-width: 0;
|
|
10
10
|
flex: 1;
|
|
11
11
|
|
|
@@ -37,23 +37,23 @@
|
|
|
37
37
|
|
|
38
38
|
.sapphire-tabs-overflow-arrows__arrow--left {
|
|
39
39
|
left: 0;
|
|
40
|
-
padding-right: var(--sapphire-
|
|
40
|
+
padding-right: var(--sapphire-semantic-size-spacing-3xl);
|
|
41
41
|
background: linear-gradient(
|
|
42
42
|
90deg,
|
|
43
|
-
var(--sapphire-global-color-
|
|
44
|
-
var(--sapphire-global-color-
|
|
45
|
-
var(--sapphire-global-color-
|
|
43
|
+
var(--sapphire-global-color-white) 0%,
|
|
44
|
+
var(--sapphire-global-color-white) 40%,
|
|
45
|
+
var(--sapphire-global-color-transparent) 100%
|
|
46
46
|
);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.sapphire-tabs-overflow-arrows__arrow--right {
|
|
50
50
|
right: 0;
|
|
51
|
-
padding-left: var(--sapphire-
|
|
51
|
+
padding-left: var(--sapphire-semantic-size-spacing-3xl);
|
|
52
52
|
background: linear-gradient(
|
|
53
53
|
90deg,
|
|
54
|
-
var(--sapphire-global-color-
|
|
55
|
-
var(--sapphire-global-color-
|
|
56
|
-
var(--sapphire-global-color-
|
|
54
|
+
var(--sapphire-global-color-transparent) 0%,
|
|
55
|
+
var(--sapphire-global-color-white) 60%,
|
|
56
|
+
var(--sapphire-global-color-white) 100%
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
display: inline-flex;
|
|
62
62
|
box-sizing: border-box;
|
|
63
63
|
height: var(--sapphire-semantic-size-height-control-lg);
|
|
64
|
-
gap: var(--sapphire-semantic-size-spacing-
|
|
64
|
+
gap: var(--sapphire-semantic-size-spacing-md);
|
|
65
65
|
position: relative;
|
|
66
66
|
overflow: hidden;
|
|
67
67
|
position: relative;
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
bottom: 0;
|
|
90
90
|
width: 100%;
|
|
91
91
|
height: var(--sapphire-semantic-size-border-md);
|
|
92
|
-
background
|
|
92
|
+
background: var(--sapphire-semantic-color-border-secondary);
|
|
93
93
|
border-radius: var(--sapphire-semantic-size-border-md);
|
|
94
94
|
}
|
|
95
95
|
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
text-decoration: none;
|
|
115
115
|
|
|
116
116
|
background: none;
|
|
117
|
-
color: var(--sapphire-semantic-color-
|
|
117
|
+
color: var(--sapphire-semantic-color-foreground-primary);
|
|
118
118
|
box-sizing: border-box;
|
|
119
119
|
white-space: nowrap;
|
|
120
120
|
border-width: 0;
|
|
@@ -144,7 +144,13 @@
|
|
|
144
144
|
.sapphire-tabs__tab:not(:disabled):not(.is-disabled):not(:active):not(
|
|
145
145
|
.is-active
|
|
146
146
|
).is-hover {
|
|
147
|
-
color: var(--sapphire-semantic-color-
|
|
147
|
+
color: var(--sapphire-semantic-color-foreground-action-select-hover);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.sapphire-tabs__tab:not(:disabled):not(.is-disabled):active,
|
|
151
|
+
.sapphire-tabs__tab:not(:disabled):not(.is-disabled):focus-visible:active,
|
|
152
|
+
.sapphire-tabs__tab:not(:disabled):not(.is-disabled).is-active {
|
|
153
|
+
color: var(--sapphire-semantic-color-foreground-action-select-active);
|
|
148
154
|
}
|
|
149
155
|
|
|
150
156
|
.sapphire-tabs__tab.js-focus.is-focus,
|
|
@@ -175,7 +181,7 @@
|
|
|
175
181
|
* Active tab
|
|
176
182
|
*/
|
|
177
183
|
.sapphire-tabs__tab--active {
|
|
178
|
-
color: var(--sapphire-semantic-color-
|
|
184
|
+
color: var(--sapphire-semantic-color-foreground-action-select-default);
|
|
179
185
|
}
|
|
180
186
|
|
|
181
187
|
.sapphire-tabs__tab--active.js-focus:not(.is-focus)::after,
|
|
@@ -187,9 +193,7 @@
|
|
|
187
193
|
bottom: calc(-1 * var(--sapphire-semantic-size-focus-ring));
|
|
188
194
|
width: 100%;
|
|
189
195
|
height: var(--sapphire-semantic-size-border-md);
|
|
190
|
-
background
|
|
191
|
-
--sapphire-semantic-color-content-action-secondary-default
|
|
192
|
-
);
|
|
196
|
+
background: var(--sapphire-semantic-color-foreground-action-select-default);
|
|
193
197
|
border-radius: var(--sapphire-semantic-size-border-md);
|
|
194
198
|
}
|
|
195
199
|
|
|
@@ -198,7 +202,7 @@
|
|
|
198
202
|
*/
|
|
199
203
|
.sapphire-tabs--sm {
|
|
200
204
|
height: var(--sapphire-semantic-size-height-control-md);
|
|
201
|
-
gap: var(--sapphire-semantic-size-spacing-
|
|
205
|
+
gap: var(--sapphire-semantic-size-spacing-md);
|
|
202
206
|
}
|
|
203
207
|
.sapphire-tabs--sm .sapphire-tabs__tab {
|
|
204
208
|
font-size: var(--sapphire-semantic-size-font-control-sm);
|
|
@@ -209,10 +213,10 @@
|
|
|
209
213
|
*/
|
|
210
214
|
.sapphire-tabs--lg {
|
|
211
215
|
height: var(--sapphire-semantic-size-height-control-xl);
|
|
212
|
-
gap: var(--sapphire-semantic-size-spacing-
|
|
216
|
+
gap: var(--sapphire-semantic-size-spacing-lg);
|
|
213
217
|
}
|
|
214
218
|
.sapphire-tabs--lg .sapphire-tabs__tab {
|
|
215
|
-
font-size: var(--sapphire-semantic-size-font-control-
|
|
219
|
+
font-size: var(--sapphire-semantic-size-font-control-lg);
|
|
216
220
|
}
|
|
217
221
|
|
|
218
222
|
.sapphire-tab-panel {
|
|
@@ -1,40 +1,35 @@
|
|
|
1
1
|
.sapphire-tag-group {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-wrap: wrap;
|
|
4
|
-
gap: var(--sapphire-semantic-size-spacing-
|
|
4
|
+
gap: var(--sapphire-semantic-size-spacing-xs);
|
|
5
5
|
outline: none;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.sapphire-tag {
|
|
9
9
|
display: inline-flex;
|
|
10
|
-
flex-direction: row;
|
|
11
10
|
height: var(--sapphire-semantic-size-height-control-sm);
|
|
12
|
-
padding: 0 var(--sapphire-semantic-size-spacing-
|
|
13
|
-
gap: var(--sapphire-semantic-size-spacing-20);
|
|
14
|
-
justify-content: center;
|
|
11
|
+
padding: 0 var(--sapphire-semantic-size-spacing-sm);
|
|
15
12
|
align-items: center;
|
|
16
|
-
white-space: nowrap;
|
|
17
13
|
border-radius: var(--sapphire-semantic-size-height-control-sm);
|
|
18
|
-
cursor: default;
|
|
19
14
|
|
|
20
15
|
/* typography */
|
|
21
16
|
font-size: var(--sapphire-semantic-size-font-control-md);
|
|
22
17
|
font-family: var(--sapphire-semantic-font-name-default);
|
|
23
|
-
font-weight: var(--sapphire-semantic-font-weight-default-
|
|
18
|
+
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
24
19
|
font-style: normal;
|
|
25
20
|
text-decoration: none;
|
|
26
21
|
|
|
27
22
|
/* color default */
|
|
28
|
-
background
|
|
23
|
+
background: var(
|
|
29
24
|
--sapphire-semantic-color-background-action-secondary-default
|
|
30
25
|
);
|
|
31
|
-
color: var(--sapphire-semantic-color-
|
|
26
|
+
color: var(--sapphire-semantic-color-foreground-primary);
|
|
32
27
|
outline: none;
|
|
33
28
|
|
|
34
29
|
/* transition */
|
|
35
30
|
transition-property: opacity, background-color, color;
|
|
36
31
|
transition-duration: var(--sapphire-semantic-time-fade-quick);
|
|
37
|
-
transition-timing-function:
|
|
32
|
+
transition-timing-function: var(--sapphire-semantic-transitions-fade);
|
|
38
33
|
|
|
39
34
|
/* The below is meant to address a font rendering quirk in OSX where the text
|
|
40
35
|
* looks bolder than intended due to subpixel rendering. This quirk generally
|
|
@@ -53,7 +48,7 @@
|
|
|
53
48
|
|
|
54
49
|
.sapphire-tag.is-focus,
|
|
55
50
|
.sapphire-tag:not(.js-focus):focus-visible {
|
|
56
|
-
background
|
|
51
|
+
background: var(
|
|
57
52
|
--sapphire-semantic-color-background-action-secondary-default
|
|
58
53
|
);
|
|
59
54
|
outline: var(--sapphire-semantic-size-focus-ring) solid
|
|
@@ -64,7 +59,7 @@
|
|
|
64
59
|
.sapphire-tag__content {
|
|
65
60
|
display: inline-flex;
|
|
66
61
|
align-items: center;
|
|
67
|
-
gap: var(--sapphire-semantic-size-spacing-
|
|
62
|
+
gap: var(--sapphire-semantic-size-spacing-xs);
|
|
68
63
|
}
|
|
69
64
|
|
|
70
65
|
/* Actionable */
|
|
@@ -74,16 +69,12 @@
|
|
|
74
69
|
.sapphire-tag--actionable:not(:disabled):not(.is-disabled):not(:active):not(
|
|
75
70
|
.is-active
|
|
76
71
|
).is-hover {
|
|
77
|
-
background
|
|
78
|
-
--sapphire-semantic-color-background-action-secondary-hover
|
|
79
|
-
);
|
|
72
|
+
background: var(--sapphire-semantic-color-background-action-secondary-hover);
|
|
80
73
|
cursor: pointer;
|
|
81
74
|
}
|
|
82
75
|
|
|
83
76
|
.sapphire-tag--actionable.is-active {
|
|
84
|
-
background
|
|
85
|
-
--sapphire-semantic-color-background-action-secondary-active
|
|
86
|
-
);
|
|
77
|
+
background: var(--sapphire-semantic-color-background-action-secondary-active);
|
|
87
78
|
cursor: pointer;
|
|
88
79
|
}
|
|
89
80
|
|
|
@@ -94,13 +85,8 @@
|
|
|
94
85
|
pointer-events: none;
|
|
95
86
|
}
|
|
96
87
|
|
|
97
|
-
/* Adjusts sizing when button or icon is present */
|
|
98
|
-
.sapphire-tag:has(.sapphire-tag__button) {
|
|
99
|
-
padding-right: var(--sapphire-semantic-size-spacing-20);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
88
|
.sapphire-tag:has(.sapphire-tag__error-icon) {
|
|
103
|
-
padding-left: var(--sapphire-semantic-size-spacing-
|
|
89
|
+
padding-left: var(--sapphire-semantic-size-spacing-xs);
|
|
104
90
|
}
|
|
105
91
|
|
|
106
92
|
/**
|
|
@@ -109,7 +95,7 @@
|
|
|
109
95
|
.sapphire-tag__error-icon {
|
|
110
96
|
display: flex;
|
|
111
97
|
align-items: center;
|
|
112
|
-
color: var(--sapphire-semantic-color-
|
|
98
|
+
color: var(--sapphire-semantic-color-foreground-on-negative-subtle);
|
|
113
99
|
}
|
|
114
100
|
|
|
115
101
|
/**
|
|
@@ -124,17 +110,17 @@
|
|
|
124
110
|
border: none;
|
|
125
111
|
margin: 0;
|
|
126
112
|
padding: 0;
|
|
127
|
-
background
|
|
113
|
+
background: transparent;
|
|
128
114
|
|
|
129
115
|
/* transition */
|
|
130
116
|
transition-property: color;
|
|
131
117
|
transition-duration: var(--sapphire-semantic-time-fade-quick);
|
|
132
|
-
transition-timing-function:
|
|
118
|
+
transition-timing-function: var(--sapphire-semantic-transitions-fade);
|
|
133
119
|
cursor: pointer;
|
|
134
120
|
|
|
135
121
|
/* style */
|
|
136
|
-
background
|
|
137
|
-
color: var(--sapphire-semantic-color-
|
|
122
|
+
background: transparent;
|
|
123
|
+
color: var(--sapphire-semantic-color-foreground-on-neutral-subtle);
|
|
138
124
|
}
|
|
139
125
|
|
|
140
126
|
.sapphire-tag__button:focus {
|
|
@@ -9,8 +9,8 @@ declare const styles: {
|
|
|
9
9
|
readonly "is-active": string;
|
|
10
10
|
readonly "js-hover": string;
|
|
11
11
|
readonly "is-hover": string;
|
|
12
|
-
readonly "sapphire-tag__button": string;
|
|
13
12
|
readonly "sapphire-tag__error-icon": string;
|
|
13
|
+
readonly "sapphire-tag__button": string;
|
|
14
14
|
};
|
|
15
15
|
export = styles;
|
|
16
16
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
.sapphire-text {
|
|
2
2
|
font-family: var(--sapphire-semantic-font-name-default);
|
|
3
|
+
color: var(--sapphire-semantic-color-foreground-primary);
|
|
4
|
+
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
3
5
|
|
|
4
6
|
/* The below is meant to address a font rendering quirk in OSX where the text
|
|
5
7
|
* looks bolder than intended due to subpixel rendering. This quirk generally
|
|
@@ -17,143 +19,128 @@
|
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
.sapphire-text--strong {
|
|
20
|
-
font-weight: var(--sapphire-semantic-font-weight-default-
|
|
22
|
+
font-weight: var(--sapphire-semantic-font-weight-default-bold);
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
.sapphire-text--underlined {
|
|
24
26
|
text-decoration: underline;
|
|
25
27
|
}
|
|
26
28
|
|
|
27
|
-
/*
|
|
28
|
-
.sapphire-text--
|
|
29
|
-
|
|
30
|
-
.sapphire-text--heading-3,
|
|
31
|
-
.sapphire-text--heading-4,
|
|
32
|
-
.sapphire-text--heading-5,
|
|
33
|
-
.sapphire-text--heading-6 {
|
|
34
|
-
margin-top: 0px;
|
|
35
|
-
margin-bottom: 0px;
|
|
36
|
-
color: var(--sapphire-semantic-color-content-default-primary);
|
|
37
|
-
line-height: var(--sapphire-global-size-line-height-sm);
|
|
29
|
+
/* Semantic Colors */
|
|
30
|
+
.sapphire-text--secondary {
|
|
31
|
+
color: var(--sapphire-semantic-color-foreground-secondary);
|
|
38
32
|
}
|
|
39
33
|
|
|
40
|
-
.sapphire-text--
|
|
41
|
-
|
|
42
|
-
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
43
|
-
font-size: var(--sapphire-global-size-font-220);
|
|
34
|
+
.sapphire-text--informative {
|
|
35
|
+
color: var(--sapphire-semantic-color-foreground-accent);
|
|
44
36
|
}
|
|
45
37
|
|
|
46
|
-
.sapphire-text--
|
|
47
|
-
|
|
48
|
-
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
49
|
-
font-size: var(--sapphire-global-size-font-150);
|
|
38
|
+
.sapphire-text--positive {
|
|
39
|
+
color: var(--sapphire-semantic-color-foreground-positive);
|
|
50
40
|
}
|
|
51
41
|
|
|
52
|
-
.sapphire-text--
|
|
53
|
-
|
|
54
|
-
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
55
|
-
font-size: var(--sapphire-global-size-font-130);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.sapphire-text--heading-4 {
|
|
59
|
-
font-family: var(--sapphire-semantic-font-name-default);
|
|
60
|
-
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
61
|
-
font-size: var(--sapphire-global-size-font-112);
|
|
42
|
+
.sapphire-text--warning {
|
|
43
|
+
color: var(--sapphire-semantic-color-foreground-warning);
|
|
62
44
|
}
|
|
63
45
|
|
|
64
|
-
.sapphire-text--
|
|
65
|
-
|
|
66
|
-
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
67
|
-
font-size: var(--sapphire-global-size-font-106);
|
|
46
|
+
.sapphire-text--negative {
|
|
47
|
+
color: var(--sapphire-semantic-color-foreground-negative);
|
|
68
48
|
}
|
|
69
49
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
50
|
+
/* Heading */
|
|
51
|
+
.sapphire-text--heading-2xl,
|
|
52
|
+
.sapphire-text--heading-xl,
|
|
53
|
+
.sapphire-text--heading-lg,
|
|
54
|
+
.sapphire-text--heading-md,
|
|
55
|
+
.sapphire-text--heading-sm,
|
|
56
|
+
.sapphire-text--heading-xs {
|
|
57
|
+
margin-top: 0px;
|
|
58
|
+
margin-bottom: 0px;
|
|
59
|
+
line-height: var(--sapphire-global-size-line-height-sm);
|
|
60
|
+
letter-spacing: -1%;
|
|
74
61
|
}
|
|
75
62
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
.sapphire-text--heading-1.sapphire-text--heading-alternative {
|
|
79
|
-
font-family: var(--sapphire-semantic-font-name-display);
|
|
63
|
+
.sapphire-text--heading-2xl {
|
|
80
64
|
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
65
|
+
font-size: var(--sapphire-semantic-size-font-heading-2xl);
|
|
81
66
|
}
|
|
82
67
|
|
|
83
|
-
.sapphire-text--heading-
|
|
84
|
-
font-
|
|
85
|
-
font-
|
|
68
|
+
.sapphire-text--heading-xl {
|
|
69
|
+
font-weight: var(--sapphire-semantic-font-weight-default-medium);
|
|
70
|
+
font-size: var(--sapphire-semantic-size-font-heading-xl);
|
|
86
71
|
}
|
|
87
72
|
|
|
88
|
-
.sapphire-text--heading-
|
|
89
|
-
font-
|
|
90
|
-
font-
|
|
73
|
+
.sapphire-text--heading-lg {
|
|
74
|
+
font-weight: var(--sapphire-semantic-font-weight-default-medium);
|
|
75
|
+
font-size: var(--sapphire-semantic-size-font-heading-lg);
|
|
91
76
|
}
|
|
92
77
|
|
|
93
|
-
.sapphire-text--heading-
|
|
94
|
-
font-
|
|
95
|
-
font-
|
|
78
|
+
.sapphire-text--heading-md {
|
|
79
|
+
font-weight: var(--sapphire-semantic-font-weight-default-medium);
|
|
80
|
+
font-size: var(--sapphire-semantic-size-font-heading-md);
|
|
96
81
|
}
|
|
97
82
|
|
|
98
|
-
.sapphire-text--heading-
|
|
99
|
-
font-
|
|
100
|
-
font-
|
|
83
|
+
.sapphire-text--heading-sm {
|
|
84
|
+
font-weight: var(--sapphire-semantic-font-weight-default-medium);
|
|
85
|
+
font-size: var(--sapphire-semantic-size-font-heading-sm);
|
|
101
86
|
}
|
|
102
87
|
|
|
103
|
-
.sapphire-text--heading-
|
|
104
|
-
font-
|
|
105
|
-
font-
|
|
88
|
+
.sapphire-text--heading-xs {
|
|
89
|
+
font-weight: var(--sapphire-semantic-font-weight-default-medium);
|
|
90
|
+
font-size: var(--sapphire-semantic-size-font-heading-xs);
|
|
106
91
|
}
|
|
107
92
|
|
|
108
93
|
/* Subheading */
|
|
109
|
-
.sapphire-text--subheading-
|
|
110
|
-
.sapphire-text--subheading-
|
|
111
|
-
color: var(--sapphire-semantic-color-content-default-primary);
|
|
94
|
+
.sapphire-text--subheading-md,
|
|
95
|
+
.sapphire-text--subheading-sm {
|
|
112
96
|
line-height: var(--sapphire-global-size-line-height-sm);
|
|
113
97
|
}
|
|
114
98
|
|
|
115
|
-
.sapphire-text--subheading-
|
|
116
|
-
font-size: var(--sapphire-
|
|
99
|
+
.sapphire-text--subheading-md {
|
|
100
|
+
font-size: var(--sapphire-semantic-size-font-body-sm);
|
|
117
101
|
}
|
|
118
102
|
|
|
119
|
-
.sapphire-text--subheading-
|
|
120
|
-
font-size: var(--sapphire-
|
|
103
|
+
.sapphire-text--subheading-sm {
|
|
104
|
+
font-size: var(--sapphire-semantic-size-font-body-xs);
|
|
121
105
|
}
|
|
122
106
|
|
|
123
107
|
/* Body text */
|
|
124
|
-
.sapphire-text--body-
|
|
125
|
-
.sapphire-text--body-
|
|
126
|
-
.sapphire-text--body-
|
|
127
|
-
|
|
108
|
+
.sapphire-text--body-lg,
|
|
109
|
+
.sapphire-text--body-md,
|
|
110
|
+
.sapphire-text--body-sm,
|
|
111
|
+
.sapphire-text--body-xs {
|
|
128
112
|
line-height: var(--sapphire-global-size-line-height-md);
|
|
129
113
|
margin-top: 0px;
|
|
130
114
|
margin-bottom: 0px;
|
|
131
115
|
}
|
|
132
116
|
|
|
133
|
-
.sapphire-text--body-
|
|
134
|
-
font-size: var(--sapphire-
|
|
117
|
+
.sapphire-text--body-lg {
|
|
118
|
+
font-size: var(--sapphire-semantic-size-font-body-lg);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.sapphire-text--body-md {
|
|
122
|
+
font-size: var(--sapphire-semantic-size-font-body-md);
|
|
135
123
|
}
|
|
136
124
|
|
|
137
|
-
.sapphire-text--body-
|
|
138
|
-
font-size: var(--sapphire-
|
|
125
|
+
.sapphire-text--body-sm {
|
|
126
|
+
font-size: var(--sapphire-semantic-size-font-body-sm);
|
|
139
127
|
}
|
|
140
128
|
|
|
141
|
-
.sapphire-text--body-
|
|
142
|
-
font-size: var(--sapphire-
|
|
129
|
+
.sapphire-text--body-xs {
|
|
130
|
+
font-size: var(--sapphire-semantic-size-font-body-xs);
|
|
143
131
|
}
|
|
144
132
|
|
|
145
133
|
/* Caption text */
|
|
146
|
-
.sapphire-text--caption-
|
|
147
|
-
.sapphire-text--caption-
|
|
148
|
-
|
|
149
|
-
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
134
|
+
.sapphire-text--caption-md,
|
|
135
|
+
.sapphire-text--caption-sm {
|
|
136
|
+
font-weight: var(--sapphire-semantic-font-weight-default-bold);
|
|
150
137
|
line-height: var(--sapphire-global-size-line-height-sm);
|
|
151
138
|
}
|
|
152
139
|
|
|
153
|
-
.sapphire-text--caption-
|
|
154
|
-
font-size: var(--sapphire-
|
|
140
|
+
.sapphire-text--caption-md {
|
|
141
|
+
font-size: var(--sapphire-semantic-size-font-body-sm);
|
|
155
142
|
}
|
|
156
143
|
|
|
157
|
-
.sapphire-text--caption-
|
|
158
|
-
font-size: var(--sapphire-
|
|
144
|
+
.sapphire-text--caption-sm {
|
|
145
|
+
font-size: var(--sapphire-semantic-size-font-body-xs);
|
|
159
146
|
}
|
|
@@ -2,20 +2,25 @@ declare const styles: {
|
|
|
2
2
|
readonly "sapphire-text": string;
|
|
3
3
|
readonly "sapphire-text--strong": string;
|
|
4
4
|
readonly "sapphire-text--underlined": string;
|
|
5
|
-
readonly "sapphire-text--
|
|
6
|
-
readonly "sapphire-text--
|
|
7
|
-
readonly "sapphire-text--
|
|
8
|
-
readonly "sapphire-text--
|
|
9
|
-
readonly "sapphire-text--
|
|
10
|
-
readonly "sapphire-text--heading-
|
|
11
|
-
readonly "sapphire-text--heading-
|
|
12
|
-
readonly "sapphire-text--
|
|
13
|
-
readonly "sapphire-text--
|
|
14
|
-
readonly "sapphire-text--
|
|
15
|
-
readonly "sapphire-text--
|
|
16
|
-
readonly "sapphire-text--
|
|
17
|
-
readonly "sapphire-text--
|
|
18
|
-
readonly "sapphire-text--
|
|
5
|
+
readonly "sapphire-text--secondary": string;
|
|
6
|
+
readonly "sapphire-text--informative": string;
|
|
7
|
+
readonly "sapphire-text--positive": string;
|
|
8
|
+
readonly "sapphire-text--warning": string;
|
|
9
|
+
readonly "sapphire-text--negative": string;
|
|
10
|
+
readonly "sapphire-text--heading-2xl": string;
|
|
11
|
+
readonly "sapphire-text--heading-xl": string;
|
|
12
|
+
readonly "sapphire-text--heading-lg": string;
|
|
13
|
+
readonly "sapphire-text--heading-md": string;
|
|
14
|
+
readonly "sapphire-text--heading-sm": string;
|
|
15
|
+
readonly "sapphire-text--heading-xs": string;
|
|
16
|
+
readonly "sapphire-text--subheading-md": string;
|
|
17
|
+
readonly "sapphire-text--subheading-sm": string;
|
|
18
|
+
readonly "sapphire-text--body-lg": string;
|
|
19
|
+
readonly "sapphire-text--body-md": string;
|
|
20
|
+
readonly "sapphire-text--body-sm": string;
|
|
21
|
+
readonly "sapphire-text--body-xs": string;
|
|
22
|
+
readonly "sapphire-text--caption-md": string;
|
|
23
|
+
readonly "sapphire-text--caption-sm": string;
|
|
19
24
|
};
|
|
20
25
|
export = styles;
|
|
21
26
|
|