@danske/sapphire-css 16.3.0 → 26.1.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/README.md +2 -12
- package/build/themes/cjs/default-dark.d.ts +3 -2
- package/build/themes/cjs/default-dark.js +5 -1
- package/build/themes/cjs/default.d.ts +3 -2
- package/build/themes/cjs/default.js +5 -1
- package/build/themes/cjs/index.d.ts +4 -0
- package/build/themes/cjs/june-dark.d.ts +3 -2
- package/build/themes/cjs/june-dark.js +5 -1
- package/build/themes/cjs/june.d.ts +3 -2
- package/build/themes/cjs/june.js +5 -1
- package/build/themes/esm/default-dark.d.ts +3 -2
- package/build/themes/esm/default-dark.js +5 -1
- package/build/themes/esm/default.d.ts +3 -2
- package/build/themes/esm/default.js +5 -1
- package/build/themes/esm/index.d.ts +4 -0
- package/build/themes/esm/june-dark.d.ts +3 -2
- package/build/themes/esm/june-dark.js +5 -1
- package/build/themes/esm/june.d.ts +3 -2
- package/build/themes/esm/june.js +5 -1
- package/components/accordion/accordion.module.css +163 -0
- package/components/avatar/avatar.module.css +137 -0
- package/components/badge/badge.module.css +246 -79
- package/components/badge/badge.module.css.d.ts +42 -10
- package/components/button/button.module.css +401 -74
- package/components/button/button.module.css.d.ts +11 -5
- package/components/buttonGroup/buttonGroup.module.css +20 -4
- package/components/buttonGroup/buttonGroup.module.css.d.ts +2 -1
- package/components/calendar/calendar.module.css +9 -2
- package/components/calendar/calendar.module.css.d.ts +1 -2
- package/components/checkbox/checkbox.module.css +44 -11
- package/components/checkbox/checkbox.module.css.d.ts +3 -0
- package/components/dateField/dateField.module.css +81 -86
- package/components/dateField/dateField.module.css.d.ts +3 -6
- package/components/dialog/dialog.module.css +34 -15
- package/components/dialog/dialog.module.css.d.ts +2 -2
- package/components/field/field.module.css +164 -0
- package/components/fieldGroup/fieldGroup.module.css +8 -54
- package/components/fieldGroup/fieldGroup.module.css.d.ts +4 -8
- package/components/icon/icon.module.css +11 -6
- package/components/icon/icon.module.css.d.ts +1 -0
- package/components/iconButton/iconButton.module.css +356 -70
- package/components/iconButton/iconButton.module.css.d.ts +8 -4
- package/components/label/label.module.css +29 -0
- package/components/link/link.module.css +71 -13
- package/components/link/link.module.css.d.ts +7 -2
- package/components/list/list.module.css +47 -21
- package/components/list/list.module.css.d.ts +1 -1
- package/components/listbox/listbox.module.css +53 -13
- package/components/listbox/listbox.module.css.d.ts +3 -1
- package/components/notificationBadge/notificationBadge.module.css +126 -0
- package/components/panel/panel.module.css +32 -14
- package/components/panel/panel.module.css.d.ts +3 -2
- package/components/paragraph/paragraph.module.css +4 -7
- package/components/paragraph/paragraph.module.css.d.ts +1 -2
- package/components/radio/radio.module.css +34 -9
- package/components/radio/radio.module.css.d.ts +2 -0
- package/components/searchField/searchField.module.css +43 -19
- package/components/searchField/searchField.module.css.d.ts +2 -0
- package/components/segmentedControl/segmentedControl.module.css +7 -7
- package/components/select/select.module.css +22 -63
- package/components/select/select.module.css.d.ts +1 -5
- package/components/spinner/spinner.module.css +64 -0
- package/components/surface/surface.module.css +5 -1
- package/components/surface/surface.module.css.d.ts +1 -0
- package/components/switch/switch.module.css +44 -44
- package/components/switch/switch.module.css.d.ts +1 -0
- package/components/table/table.module.css +22 -40
- package/components/tabs/tabs.module.css +155 -23
- package/components/tabs/tabs.module.css.d.ts +9 -2
- package/components/text/text.module.css +207 -0
- package/components/textField/textField.module.css +67 -89
- package/components/textField/textField.module.css.d.ts +3 -7
- package/components/toast/toast.module.css +101 -0
- package/components/tooltip/tooltip.module.css +13 -8
- package/components/tooltip/tooltip.module.css.d.ts +1 -0
- package/package.json +13 -9
- package/themes/default-dark.assets.css +1 -0
- package/themes/default-dark.d.ts +3 -2
- package/themes/default-dark.js +5 -1
- package/themes/default-dark.tokens.scss +1 -0
- package/themes/default.assets.css +1 -0
- package/themes/default.d.ts +3 -2
- package/themes/default.js +5 -1
- package/themes/default.tokens.scss +1 -0
- package/themes/index.d.ts +4 -0
- package/themes/june-dark.d.ts +3 -2
- package/themes/june-dark.js +5 -1
- package/themes/june-dark.scss +3 -0
- package/themes/june.d.ts +3 -2
- package/themes/june.js +5 -1
- package/themes/june.scss +3 -0
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
-moz-osx-font-smoothing: grayscale;
|
|
28
28
|
|
|
29
29
|
/* sizing */
|
|
30
|
-
height: var(--sapphire-icon-button-size-height-
|
|
31
|
-
width: var(--sapphire-icon-button-size-width-
|
|
30
|
+
height: var(--sapphire-icon-button-size-height-m);
|
|
31
|
+
width: var(--sapphire-icon-button-size-width-m);
|
|
32
32
|
flex-shrink: 0; /* When part of flex layout the button will otherwise be squashed */
|
|
33
33
|
|
|
34
34
|
/* shape */
|
|
35
|
-
border-radius: var(--sapphire-icon-button-size-radius-
|
|
35
|
+
border-radius: var(--sapphire-icon-button-size-radius-m);
|
|
36
36
|
border-style: solid;
|
|
37
37
|
border-width: 0;
|
|
38
38
|
border-color: transparent;
|
|
@@ -49,7 +49,7 @@ a.sapphire-icon-button {
|
|
|
49
49
|
text-decoration: none;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
/*
|
|
52
|
+
/* Disabled state for all variants */
|
|
53
53
|
.sapphire-icon-button:disabled,
|
|
54
54
|
.sapphire-icon-button.is-disabled {
|
|
55
55
|
opacity: var(--sapphire-icon-button-opacity-disabled);
|
|
@@ -70,106 +70,392 @@ a.sapphire-icon-button {
|
|
|
70
70
|
/**
|
|
71
71
|
* Skin rules
|
|
72
72
|
*/
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
|
|
74
|
+
/* ### Variant: Primary */
|
|
75
|
+
/* ## Style: Default */
|
|
76
|
+
.sapphire-icon-button--primary-fill {
|
|
75
77
|
background-color: var(
|
|
76
78
|
--sapphire-icon-button-color-background-primary-default
|
|
77
79
|
);
|
|
78
80
|
color: var(--sapphire-icon-button-color-content-primary-default);
|
|
79
81
|
}
|
|
80
|
-
.sapphire-icon-button--primary:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
|
|
81
|
-
.sapphire-icon-button--primary:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
|
|
82
|
+
.sapphire-icon-button--primary-fill:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
|
|
83
|
+
.sapphire-icon-button--primary-fill:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
|
|
82
84
|
background-color: var(--sapphire-icon-button-color-background-primary-hover);
|
|
83
|
-
color: var(--sapphire-icon-button-color-content-primary-hover);
|
|
84
85
|
}
|
|
85
|
-
.sapphire-icon-button--primary.is-focus,
|
|
86
|
-
.sapphire-icon-button--primary:not(.js-focus):focus-visible {
|
|
86
|
+
.sapphire-icon-button--primary-fill.is-focus,
|
|
87
|
+
.sapphire-icon-button--primary-fill:not(.js-focus):focus-visible {
|
|
87
88
|
background-color: var(--sapphire-icon-button-color-background-primary-focus);
|
|
88
|
-
color: var(--sapphire-icon-button-color-content-primary-focus);
|
|
89
89
|
}
|
|
90
|
-
.sapphire-icon-button--primary:not(:disabled):not(.is-disabled).is-active,
|
|
91
|
-
.sapphire-icon-button--primary:not(:disabled):not(.is-disabled):active,
|
|
92
|
-
.sapphire-icon-button--primary:not(:disabled):not(.is-disabled):focus-visible:active {
|
|
90
|
+
.sapphire-icon-button--primary-fill:not(:disabled):not(.is-disabled).is-active,
|
|
91
|
+
.sapphire-icon-button--primary-fill:not(:disabled):not(.is-disabled):active,
|
|
92
|
+
.sapphire-icon-button--primary-fill:not(:disabled):not(.is-disabled):focus-visible:active {
|
|
93
93
|
background-color: var(--sapphire-icon-button-color-background-primary-active);
|
|
94
|
-
color: var(--sapphire-icon-button-color-content-primary-active);
|
|
95
94
|
}
|
|
96
95
|
|
|
97
|
-
/*
|
|
98
|
-
|
|
96
|
+
/* ### Variant: Secondary */
|
|
97
|
+
/* ## Style: Default */
|
|
98
|
+
/* # Surface: Primary */
|
|
99
|
+
.sapphire-icon-button--secondary-fill {
|
|
99
100
|
background-color: var(
|
|
100
101
|
--sapphire-icon-button-color-background-secondary-default
|
|
101
102
|
);
|
|
102
103
|
color: var(--sapphire-icon-button-color-content-secondary-default);
|
|
103
104
|
}
|
|
104
|
-
|
|
105
|
-
.sapphire-icon-button--secondary:not(:disabled):not(.is-disabled):not(:active):not(.is-active).
|
|
105
|
+
|
|
106
|
+
.sapphire-icon-button--secondary-fill:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
|
|
107
|
+
.sapphire-icon-button--secondary-fill:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
|
|
106
108
|
background-color: var(
|
|
107
109
|
--sapphire-icon-button-color-background-secondary-hover
|
|
108
110
|
);
|
|
109
111
|
color: var(--sapphire-icon-button-color-content-secondary-hover);
|
|
110
112
|
}
|
|
111
|
-
|
|
112
|
-
.sapphire-icon-button--secondary
|
|
113
|
+
|
|
114
|
+
.sapphire-icon-button--secondary-fill.is-focus,
|
|
115
|
+
.sapphire-icon-button--secondary-fill:not(.js-focus):focus-visible {
|
|
113
116
|
background-color: var(
|
|
114
117
|
--sapphire-icon-button-color-background-secondary-focus
|
|
115
118
|
);
|
|
116
|
-
color: var(--sapphire-icon-button-color-content-secondary-focus);
|
|
117
119
|
}
|
|
118
|
-
|
|
119
|
-
.sapphire-icon-button--secondary:not(:disabled):not(.is-disabled)
|
|
120
|
-
.sapphire-icon-button--secondary:not(:disabled):not(.is-disabled):
|
|
120
|
+
|
|
121
|
+
.sapphire-icon-button--secondary-fill:not(:disabled):not(.is-disabled).is-active,
|
|
122
|
+
.sapphire-icon-button--secondary-fill:not(:disabled):not(.is-disabled):active,
|
|
123
|
+
.sapphire-icon-button--secondary-fill:not(:disabled):not(.is-disabled):focus-visible:active {
|
|
121
124
|
background-color: var(
|
|
122
125
|
--sapphire-icon-button-color-background-secondary-active
|
|
123
126
|
);
|
|
124
127
|
color: var(--sapphire-icon-button-color-content-secondary-active);
|
|
125
128
|
}
|
|
126
129
|
|
|
127
|
-
/*
|
|
128
|
-
.sapphire-icon-button--
|
|
130
|
+
/* # Surface: Secondary */
|
|
131
|
+
.sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface {
|
|
132
|
+
background-color: var(
|
|
133
|
+
--sapphire-icon-button-color-background-secondary-surface-secondary-default
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
|
|
138
|
+
.sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
|
|
139
|
+
background-color: var(
|
|
140
|
+
--sapphire-icon-button-color-background-secondary-surface-secondary-hover
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface.is-focus,
|
|
145
|
+
.sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface:not(.js-focus):focus-visible {
|
|
146
|
+
background-color: var(
|
|
147
|
+
--sapphire-icon-button-color-background-secondary-surface-secondary-focus
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled).is-active,
|
|
152
|
+
.sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):active,
|
|
153
|
+
.sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):focus-visible:active {
|
|
154
|
+
background-color: var(
|
|
155
|
+
--sapphire-icon-button-color-background-secondary-surface-secondary-active
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* ## Style: Ghost */
|
|
160
|
+
/* # Surface: Primary */
|
|
161
|
+
.sapphire-icon-button--secondary-ghost {
|
|
162
|
+
background-color: var(
|
|
163
|
+
--sapphire-icon-button-color-background-secondary-ghost-default
|
|
164
|
+
);
|
|
165
|
+
color: var(--sapphire-icon-button-color-content-secondary-default);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.sapphire-icon-button--secondary-ghost:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
|
|
169
|
+
.sapphire-icon-button--secondary-ghost:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
|
|
170
|
+
background-color: var(
|
|
171
|
+
--sapphire-icon-button-color-background-secondary-ghost-hover
|
|
172
|
+
);
|
|
173
|
+
color: var(--sapphire-icon-button-color-content-secondary-hover);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.sapphire-icon-button--secondary-ghost.is-focus,
|
|
177
|
+
.sapphire-icon-button--secondary-ghost:not(.js-focus):focus-visible {
|
|
178
|
+
background-color: var(
|
|
179
|
+
--sapphire-icon-button-color-background-secondary-ghost-focus
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.sapphire-icon-button--secondary-ghost:not(:disabled):not(.is-disabled).is-active,
|
|
184
|
+
.sapphire-icon-button--secondary-ghost:not(:disabled):not(.is-disabled):active,
|
|
185
|
+
.sapphire-icon-button--secondary-ghost:not(:disabled):not(.is-disabled):focus-visible:active {
|
|
186
|
+
background-color: var(
|
|
187
|
+
--sapphire-icon-button-color-background-secondary-ghost-active
|
|
188
|
+
);
|
|
189
|
+
color: var(--sapphire-icon-button-color-content-secondary-active);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* # Surface: Secondary */
|
|
193
|
+
.sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface {
|
|
194
|
+
background-color: var(
|
|
195
|
+
--sapphire-icon-button-color-background-secondary-ghost-surface-secondary-default
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
|
|
200
|
+
.sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
|
|
201
|
+
background-color: var(
|
|
202
|
+
--sapphire-icon-button-color-background-secondary-ghost-surface-secondary-hover
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface.is-focus,
|
|
207
|
+
.sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface:not(.js-focus):focus-visible {
|
|
208
|
+
background-color: var(
|
|
209
|
+
--sapphire-icon-button-color-background-secondary-ghost-surface-secondary-focus
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled).is-active,
|
|
214
|
+
.sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):active,
|
|
215
|
+
.sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):focus-visible:active {
|
|
216
|
+
background-color: var(
|
|
217
|
+
--sapphire-icon-button-color-background-secondary-ghost-surface-secondary-active
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/* ### Variant: Tertiary */
|
|
222
|
+
/* ## Style: Default */
|
|
223
|
+
/* # Surface: Primary */
|
|
224
|
+
.sapphire-icon-button--tertiary-fill {
|
|
225
|
+
background-color: var(
|
|
226
|
+
--sapphire-icon-button-color-background-tertiary-default
|
|
227
|
+
);
|
|
228
|
+
color: var(--sapphire-icon-button-color-content-tertiary-default);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.sapphire-icon-button--tertiary-fill:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
|
|
232
|
+
.sapphire-icon-button--tertiary-fill:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
|
|
233
|
+
background-color: var(--sapphire-icon-button-color-background-tertiary-hover);
|
|
234
|
+
color: var(--sapphire-icon-button-color-content-tertiary-hover);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.sapphire-icon-button--tertiary-fill.is-focus,
|
|
238
|
+
.sapphire-icon-button--tertiary-fill:not(.js-focus):focus-visible {
|
|
239
|
+
background-color: var(--sapphire-icon-button-color-background-tertiary-focus);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.sapphire-icon-button--tertiary-fill:not(:disabled):not(.is-disabled).is-active,
|
|
243
|
+
.sapphire-icon-button--tertiary-fill:not(:disabled):not(.is-disabled):active,
|
|
244
|
+
.sapphire-icon-button--tertiary-fill:not(:disabled):not(.is-disabled):focus-visible:active {
|
|
245
|
+
background-color: var(
|
|
246
|
+
--sapphire-icon-button-color-background-tertiary-active
|
|
247
|
+
);
|
|
248
|
+
color: var(--sapphire-icon-button-color-content-tertiary-active);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/* # Surface: Secondary */
|
|
252
|
+
.sapphire-icon-button--tertiary-fill.sapphire-icon-button--secondary-surface {
|
|
253
|
+
background-color: var(
|
|
254
|
+
--sapphire-icon-button-color-background-tertiary-surface-secondary-default
|
|
255
|
+
);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.sapphire-icon-button--tertiary-fill.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
|
|
259
|
+
.sapphire-icon-button--tertiary-fill.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
|
|
260
|
+
background-color: var(
|
|
261
|
+
--sapphire-icon-button-color-background-tertiary-surface-secondary-hover
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.sapphire-icon-button--tertiary-fill.sapphire-icon-button--secondary-surface.is-focus,
|
|
266
|
+
.sapphire-icon-button--tertiary-fill.sapphire-icon-button--secondary-surface:not(.js-focus):focus-visible {
|
|
267
|
+
background-color: var(
|
|
268
|
+
--sapphire-icon-button-color-background-tertiary-surface-secondary-focus
|
|
269
|
+
);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.sapphire-icon-button--tertiary-fill.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled).is-active,
|
|
273
|
+
.sapphire-icon-button--tertiary-fill.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):active,
|
|
274
|
+
.sapphire-icon-button--tertiary-fill.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):focus-visible:active {
|
|
275
|
+
background-color: var(
|
|
276
|
+
--sapphire-icon-button-color-background-tertiary-surface-secondary-active
|
|
277
|
+
);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/* ## Style: Ghost */
|
|
281
|
+
/* # Surface: Primary */
|
|
282
|
+
.sapphire-icon-button--tertiary-ghost {
|
|
129
283
|
background-color: var(
|
|
130
|
-
--sapphire-icon-button-color-background-
|
|
284
|
+
--sapphire-icon-button-color-background-tertiary-ghost-default
|
|
131
285
|
);
|
|
132
|
-
color: var(--sapphire-icon-button-color-content-
|
|
286
|
+
color: var(--sapphire-icon-button-color-content-tertiary-default);
|
|
133
287
|
}
|
|
134
|
-
|
|
135
|
-
.sapphire-icon-button--
|
|
136
|
-
|
|
137
|
-
color: var(
|
|
288
|
+
|
|
289
|
+
.sapphire-icon-button--tertiary-ghost:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
|
|
290
|
+
.sapphire-icon-button--tertiary-ghost:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
|
|
291
|
+
background-color: var(
|
|
292
|
+
--sapphire-icon-button-color-background-tertiary-ghost-hover
|
|
293
|
+
);
|
|
294
|
+
color: var(--sapphire-icon-button-color-content-tertiary-hover);
|
|
138
295
|
}
|
|
139
|
-
|
|
140
|
-
.sapphire-icon-button--
|
|
141
|
-
|
|
142
|
-
color: var(
|
|
296
|
+
|
|
297
|
+
.sapphire-icon-button--tertiary-ghost.is-focus,
|
|
298
|
+
.sapphire-icon-button--tertiary-ghost:not(.js-focus):focus-visible {
|
|
299
|
+
background-color: var(
|
|
300
|
+
--sapphire-icon-button-color-background-tertiary-ghost-focus
|
|
301
|
+
);
|
|
143
302
|
}
|
|
144
|
-
|
|
145
|
-
.sapphire-icon-button--
|
|
146
|
-
.sapphire-icon-button--
|
|
147
|
-
|
|
148
|
-
color: var(
|
|
303
|
+
|
|
304
|
+
.sapphire-icon-button--tertiary-ghost:not(:disabled):not(.is-disabled).is-active,
|
|
305
|
+
.sapphire-icon-button--tertiary-ghost:not(:disabled):not(.is-disabled):active,
|
|
306
|
+
.sapphire-icon-button--tertiary-ghost:not(:disabled):not(.is-disabled):focus-visible:active {
|
|
307
|
+
background-color: var(
|
|
308
|
+
--sapphire-icon-button-color-background-tertiary-ghost-active
|
|
309
|
+
);
|
|
310
|
+
color: var(--sapphire-icon-button-color-content-tertiary-active);
|
|
149
311
|
}
|
|
150
312
|
|
|
151
|
-
/*
|
|
152
|
-
.sapphire-icon-button--
|
|
313
|
+
/* # Surface: Secondary */
|
|
314
|
+
.sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface {
|
|
315
|
+
background-color: var(
|
|
316
|
+
--sapphire-icon-button-color-background-tertiary-ghost-surface-secondary-default
|
|
317
|
+
);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
|
|
321
|
+
.sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
|
|
322
|
+
background-color: var(
|
|
323
|
+
--sapphire-icon-button-color-background-tertiary-ghost-surface-secondary-hover
|
|
324
|
+
);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface.is-focus,
|
|
328
|
+
.sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface:not(.js-focus):focus-visible {
|
|
329
|
+
background-color: var(
|
|
330
|
+
--sapphire-icon-button-color-background-tertiary-ghost-surface-secondary-focus
|
|
331
|
+
);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled).is-active,
|
|
335
|
+
.sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):active,
|
|
336
|
+
.sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):focus-visible:active {
|
|
337
|
+
background-color: var(
|
|
338
|
+
--sapphire-icon-button-color-background-tertiary-ghost-surface-secondary-active
|
|
339
|
+
);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/* ### Variant: Danger */
|
|
343
|
+
/* ## Style: Default */
|
|
344
|
+
/* # Surface: Primary */
|
|
345
|
+
.sapphire-icon-button--danger-fill {
|
|
153
346
|
background-color: var(--sapphire-icon-button-color-background-danger-default);
|
|
154
347
|
color: var(--sapphire-icon-button-color-content-danger-default);
|
|
155
348
|
}
|
|
156
|
-
|
|
157
|
-
.sapphire-icon-button--danger:not(:disabled):not(.is-disabled):not(:active):not(.is-active).
|
|
349
|
+
|
|
350
|
+
.sapphire-icon-button--danger-fill:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
|
|
351
|
+
.sapphire-icon-button--danger-fill:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
|
|
158
352
|
background-color: var(--sapphire-icon-button-color-background-danger-hover);
|
|
159
353
|
color: var(--sapphire-icon-button-color-content-danger-hover);
|
|
160
354
|
}
|
|
161
|
-
|
|
162
|
-
.sapphire-icon-button--danger
|
|
355
|
+
|
|
356
|
+
.sapphire-icon-button--danger-fill.is-focus,
|
|
357
|
+
.sapphire-icon-button--danger-fill:not(.js-focus):focus-visible {
|
|
163
358
|
background-color: var(--sapphire-icon-button-color-background-danger-focus);
|
|
164
|
-
color: var(--sapphire-icon-button-color-content-danger-focus);
|
|
165
359
|
}
|
|
166
|
-
|
|
167
|
-
.sapphire-icon-button--danger:not(:disabled):not(.is-disabled)
|
|
168
|
-
.sapphire-icon-button--danger:not(:disabled):not(.is-disabled):active
|
|
360
|
+
|
|
361
|
+
.sapphire-icon-button--danger-fill:not(:disabled):not(.is-disabled).is-active,
|
|
362
|
+
.sapphire-icon-button--danger-fill:not(:disabled):not(.is-disabled):active,
|
|
363
|
+
.sapphire-icon-button--danger-fill:not(:disabled):not(.is-disabled):focus-visible:active {
|
|
169
364
|
background-color: var(--sapphire-icon-button-color-background-danger-active);
|
|
170
365
|
color: var(--sapphire-icon-button-color-content-danger-active);
|
|
171
366
|
}
|
|
172
367
|
|
|
368
|
+
/* # Surface: Secondary */
|
|
369
|
+
.sapphire-icon-button--danger-fill.sapphire-icon-button--secondary-surface {
|
|
370
|
+
background-color: var(
|
|
371
|
+
--sapphire-icon-button-color-background-danger-surface-secondary-default
|
|
372
|
+
);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.sapphire-icon-button--danger-fill.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
|
|
376
|
+
.sapphire-icon-button--danger-fill.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
|
|
377
|
+
background-color: var(
|
|
378
|
+
--sapphire-icon-button-color-background-danger-surface-secondary-hover
|
|
379
|
+
);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.sapphire-icon-button--danger-fill.sapphire-icon-button--secondary-surface.is-focus,
|
|
383
|
+
.sapphire-icon-button--danger-fill.sapphire-icon-button--secondary-surface:not(.js-focus):focus-visible {
|
|
384
|
+
background-color: var(
|
|
385
|
+
--sapphire-icon-button-color-background-danger-surface-secondary-focus
|
|
386
|
+
);
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.sapphire-icon-button--danger-fill.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled).is-active,
|
|
390
|
+
.sapphire-icon-button--danger-fill.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):active,
|
|
391
|
+
.sapphire-icon-button--danger-fill.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):focus-visible:active {
|
|
392
|
+
background-color: var(
|
|
393
|
+
--sapphire-icon-button-color-background-danger-surface-secondary-active
|
|
394
|
+
);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/* ## Style: Ghost */
|
|
398
|
+
/* # Surface: Primary */
|
|
399
|
+
.sapphire-icon-button--danger-ghost {
|
|
400
|
+
background-color: var(
|
|
401
|
+
--sapphire-icon-button-color-background-danger-ghost-default
|
|
402
|
+
);
|
|
403
|
+
color: var(--sapphire-icon-button-color-content-danger-default);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.sapphire-icon-button--danger-ghost:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
|
|
407
|
+
.sapphire-icon-button--danger-ghost:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
|
|
408
|
+
background-color: var(
|
|
409
|
+
--sapphire-icon-button-color-background-danger-ghost-hover
|
|
410
|
+
);
|
|
411
|
+
color: var(--sapphire-icon-button-color-content-danger-hover);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.sapphire-icon-button--danger-ghost.is-focus,
|
|
415
|
+
.sapphire-icon-button--danger-ghost:not(.js-focus):focus-visible {
|
|
416
|
+
background-color: var(
|
|
417
|
+
--sapphire-icon-button-color-background-danger-ghost-focus
|
|
418
|
+
);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.sapphire-icon-button--danger-ghost:not(:disabled):not(.is-disabled).is-active,
|
|
422
|
+
.sapphire-icon-button--danger-ghost:not(:disabled):not(.is-disabled):active,
|
|
423
|
+
.sapphire-icon-button--danger-ghost:not(:disabled):not(.is-disabled):focus-visible:active {
|
|
424
|
+
background-color: var(
|
|
425
|
+
--sapphire-icon-button-color-background-danger-ghost-active
|
|
426
|
+
);
|
|
427
|
+
color: var(--sapphire-icon-button-color-content-danger-active);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/* # Surface: Secondary */
|
|
431
|
+
.sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface {
|
|
432
|
+
background-color: var(
|
|
433
|
+
--sapphire-icon-button-color-background-danger-ghost-surface-secondary-default
|
|
434
|
+
);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
|
|
438
|
+
.sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
|
|
439
|
+
background-color: var(
|
|
440
|
+
--sapphire-icon-button-color-background-danger-ghost-surface-secondary-hover
|
|
441
|
+
);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface.is-focus,
|
|
445
|
+
.sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface:not(.js-focus):focus-visible {
|
|
446
|
+
background-color: var(
|
|
447
|
+
--sapphire-icon-button-color-background-danger-ghost-surface-secondary-focus
|
|
448
|
+
);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled).is-active,
|
|
452
|
+
.sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):active,
|
|
453
|
+
.sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface:not(:disabled):not(.is-disabled):focus-visible:active {
|
|
454
|
+
background-color: var(
|
|
455
|
+
--sapphire-button-color-background-danger-ghost-surface-secondary-active
|
|
456
|
+
);
|
|
457
|
+
}
|
|
458
|
+
|
|
173
459
|
/**
|
|
174
460
|
* Icon
|
|
175
461
|
*/
|
|
@@ -178,20 +464,20 @@ a.sapphire-icon-button {
|
|
|
178
464
|
flex-direction: column;
|
|
179
465
|
justify-content: center;
|
|
180
466
|
align-items: center;
|
|
181
|
-
height: var(--sapphire-icon-button-size-icon-
|
|
182
|
-
width: var(--sapphire-icon-button-size-icon-
|
|
467
|
+
height: var(--sapphire-icon-button-size-icon-m);
|
|
468
|
+
width: var(--sapphire-icon-button-size-icon-m);
|
|
183
469
|
}
|
|
184
470
|
.sapphire-icon-button--large .sapphire-icon-button__icon {
|
|
185
|
-
height: var(--sapphire-icon-button-size-icon-
|
|
186
|
-
width: var(--sapphire-icon-button-size-icon-
|
|
471
|
+
height: var(--sapphire-icon-button-size-icon-l);
|
|
472
|
+
width: var(--sapphire-icon-button-size-icon-l);
|
|
187
473
|
}
|
|
188
474
|
.sapphire-icon-button--small .sapphire-icon-button__icon {
|
|
189
|
-
height: var(--sapphire-icon-button-size-icon-
|
|
190
|
-
width: var(--sapphire-icon-button-size-icon-
|
|
475
|
+
height: var(--sapphire-icon-button-size-icon-s);
|
|
476
|
+
width: var(--sapphire-icon-button-size-icon-s);
|
|
191
477
|
}
|
|
192
478
|
.sapphire-icon-button--extra-small .sapphire-icon-button__icon {
|
|
193
|
-
height: var(--sapphire-icon-button-size-icon-
|
|
194
|
-
width: var(--sapphire-icon-button-size-icon-
|
|
479
|
+
height: var(--sapphire-icon-button-size-icon-xs);
|
|
480
|
+
width: var(--sapphire-icon-button-size-icon-xs);
|
|
195
481
|
}
|
|
196
482
|
|
|
197
483
|
/**
|
|
@@ -201,25 +487,25 @@ a.sapphire-icon-button {
|
|
|
201
487
|
* LARGE
|
|
202
488
|
*/
|
|
203
489
|
.sapphire-icon-button--large {
|
|
204
|
-
height: var(--sapphire-icon-button-size-height-
|
|
205
|
-
width: var(--sapphire-icon-button-size-width-
|
|
206
|
-
border-radius: var(--sapphire-icon-button-size-radius-
|
|
490
|
+
height: var(--sapphire-icon-button-size-height-l);
|
|
491
|
+
width: var(--sapphire-icon-button-size-width-l);
|
|
492
|
+
border-radius: var(--sapphire-icon-button-size-radius-l);
|
|
207
493
|
}
|
|
208
494
|
|
|
209
495
|
/**
|
|
210
496
|
* SMALL
|
|
211
497
|
*/
|
|
212
498
|
.sapphire-icon-button--small {
|
|
213
|
-
height: var(--sapphire-icon-button-size-height-
|
|
214
|
-
width: var(--sapphire-icon-button-size-width-
|
|
215
|
-
border-radius: var(--sapphire-icon-button-size-radius-
|
|
499
|
+
height: var(--sapphire-icon-button-size-height-s);
|
|
500
|
+
width: var(--sapphire-icon-button-size-width-s);
|
|
501
|
+
border-radius: var(--sapphire-icon-button-size-radius-s);
|
|
216
502
|
}
|
|
217
503
|
|
|
218
504
|
/**
|
|
219
505
|
* EXTRA SMALL
|
|
220
506
|
*/
|
|
221
507
|
.sapphire-icon-button--extra-small {
|
|
222
|
-
height: var(--sapphire-icon-button-size-height-
|
|
223
|
-
width: var(--sapphire-icon-button-size-width-
|
|
224
|
-
border-radius: var(--sapphire-icon-button-size-radius-
|
|
508
|
+
height: var(--sapphire-icon-button-size-height-xs);
|
|
509
|
+
width: var(--sapphire-icon-button-size-width-xs);
|
|
510
|
+
border-radius: var(--sapphire-icon-button-size-radius-xs);
|
|
225
511
|
}
|
|
@@ -3,13 +3,17 @@ declare const styles: {
|
|
|
3
3
|
readonly "is-disabled": string;
|
|
4
4
|
readonly "is-focus": string;
|
|
5
5
|
readonly "js-focus": string;
|
|
6
|
-
readonly "sapphire-icon-button--primary": string;
|
|
6
|
+
readonly "sapphire-icon-button--primary-fill": string;
|
|
7
7
|
readonly "is-active": string;
|
|
8
8
|
readonly "js-hover": string;
|
|
9
9
|
readonly "is-hover": string;
|
|
10
|
-
readonly "sapphire-icon-button--secondary": string;
|
|
11
|
-
readonly "sapphire-icon-button--
|
|
12
|
-
readonly "sapphire-icon-button--
|
|
10
|
+
readonly "sapphire-icon-button--secondary-fill": string;
|
|
11
|
+
readonly "sapphire-icon-button--secondary-surface": string;
|
|
12
|
+
readonly "sapphire-icon-button--secondary-ghost": string;
|
|
13
|
+
readonly "sapphire-icon-button--tertiary-fill": string;
|
|
14
|
+
readonly "sapphire-icon-button--tertiary-ghost": string;
|
|
15
|
+
readonly "sapphire-icon-button--danger-fill": string;
|
|
16
|
+
readonly "sapphire-icon-button--danger-ghost": string;
|
|
13
17
|
readonly "sapphire-icon-button__icon": string;
|
|
14
18
|
readonly "sapphire-icon-button--large": string;
|
|
15
19
|
readonly "sapphire-icon-button--small": string;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.sapphire-label {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
min-height: var(--sapphire-label-size-height-l);
|
|
5
|
+
line-height: var(--sapphire-label-size-line-height-l);
|
|
6
|
+
font-size: var(--sapphire-label-size-font-l);
|
|
7
|
+
gap: var(--sapphire-label-size-spacing-horizontal);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.sapphire-label--medium {
|
|
11
|
+
line-height: var(--sapphire-label-size-line-height-m);
|
|
12
|
+
font-size: var(--sapphire-label-size-font-m);
|
|
13
|
+
min-height: var(--sapphire-label-size-height-m);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.sapphire-label__text {
|
|
17
|
+
font-weight: var(--sapphire-label-size-font-weight);
|
|
18
|
+
color: var(--sapphire-label-color-text);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.sapphire-label__required-indicator {
|
|
22
|
+
background-image: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.99999 0.583344C4.41421 0.583344 4.74999 0.91913 4.74999 1.33334V3.22127L6.6017 2.62001C6.99567 2.49208 7.41874 2.70775 7.54666 3.10172C7.67459 3.49568 7.45892 3.91876 7.06495 4.04668L5.21363 4.64782L6.3601 6.22585C6.60356 6.56096 6.52927 7.02998 6.19416 7.27345C5.85905 7.51691 5.39002 7.44262 5.14656 7.10751L3.99999 5.52935L2.85343 7.10751C2.60996 7.44262 2.14094 7.51691 1.80583 7.27345C1.47072 7.02998 1.39642 6.56096 1.63989 6.22585L2.78636 4.64782L0.935036 4.04668C0.541071 3.91876 0.325401 3.49568 0.453323 3.10172C0.581246 2.70775 1.00432 2.49208 1.39829 2.62001L3.24999 3.22127V1.33334C3.24999 0.91913 3.58578 0.583344 3.99999 0.583344Z' fill='%23DD3254'/%3E%3C/svg%3E%0A");
|
|
23
|
+
width: 8px; /* Hard coded, since it's linked to the svg above */
|
|
24
|
+
height: 8px; /* Hard coded, since it's linked to the svg above */
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.sapphire-label__optional-indicator {
|
|
28
|
+
color: var(--sapphire-label-color-necessity-indicator);
|
|
29
|
+
}
|