@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.
Files changed (78) hide show
  1. package/build/themes/cjs/default-dark.js +1 -0
  2. package/build/themes/cjs/default.js +1 -0
  3. package/build/themes/cjs/index.d.ts +1 -0
  4. package/build/themes/esm/default-dark.js +1 -0
  5. package/build/themes/esm/default.js +1 -0
  6. package/build/themes/esm/index.d.ts +1 -0
  7. package/components/accordion/accordion.module.css +26 -26
  8. package/components/avatar/avatar.module.css +55 -78
  9. package/components/avatar/avatar.module.css.d.ts +16 -21
  10. package/components/backdrop/backdrop.module.css +5 -5
  11. package/components/badge/badge.module.css +76 -324
  12. package/components/badge/badge.module.css.d.ts +16 -34
  13. package/components/button/button.module.css +180 -263
  14. package/components/button/button.module.css.d.ts +4 -8
  15. package/components/buttonGroup/buttonGroup.module.css +39 -13
  16. package/components/calendar/calendar.module.css +64 -125
  17. package/components/calendar/calendar.module.css.d.ts +0 -7
  18. package/components/checkbox/checkbox.module.css +102 -69
  19. package/components/checkbox/checkbox.module.css.d.ts +1 -1
  20. package/components/contextualHelp/contextualHelp.module.css +7 -7
  21. package/components/dateField/dateField.module.css +42 -29
  22. package/components/dateField/dateField.module.css.d.ts +3 -2
  23. package/components/dialog/dialog.module.css +3 -3
  24. package/components/dropzone/dropzone.module.css +19 -21
  25. package/components/feedbackMessage/feedbackMessage.module.css +2 -40
  26. package/components/feedbackMessage/feedbackMessage.module.css.d.ts +0 -6
  27. package/components/field/field.module.css +22 -13
  28. package/components/field/field.module.css.d.ts +2 -2
  29. package/components/fieldGroup/fieldGroup.module.css +3 -3
  30. package/components/filterDropdown/filterDropdown.module.css +1 -1
  31. package/components/flag/flag.module.css +6 -6
  32. package/components/icon/icon.module.css +31 -4
  33. package/components/icon/icon.module.css.d.ts +6 -0
  34. package/components/iconButton/iconButton.module.css +237 -189
  35. package/components/iconButton/iconButton.module.css.d.ts +2 -3
  36. package/components/label/label.module.css +4 -5
  37. package/components/link/link.module.css +24 -54
  38. package/components/link/link.module.css.d.ts +1 -4
  39. package/components/list/list.module.css +20 -33
  40. package/components/listbox/listbox.module.css +109 -131
  41. package/components/listbox/listbox.module.css.d.ts +2 -4
  42. package/components/modalLayout/modalLayout.module.css +11 -12
  43. package/components/notificationBadge/notificationBadge.module.css +18 -15
  44. package/components/pagination/pagination.module.css +9 -9
  45. package/components/panel/panel.module.css +3 -1
  46. package/components/popover/popover.module.css +3 -2
  47. package/components/radio/radio.module.css +32 -9
  48. package/components/searchField/searchField.module.css +24 -25
  49. package/components/segmentedControl/segmentedControl.module.css +15 -17
  50. package/components/select/select.module.css +34 -18
  51. package/components/select/select.module.css.d.ts +2 -0
  52. package/components/skeleton/skeleton.module.css +5 -2
  53. package/components/spinner/spinner.module.css +3 -3
  54. package/components/surface/surface.module.css +2 -2
  55. package/components/switch/switch.module.css +49 -46
  56. package/components/switch/switch.module.css.d.ts +2 -2
  57. package/components/table/table.module.css +164 -136
  58. package/components/table/table.module.css.d.ts +5 -6
  59. package/components/tabs/tabs.module.css +24 -20
  60. package/components/tag/tag.module.css +16 -30
  61. package/components/tag/tag.module.css.d.ts +1 -1
  62. package/components/text/text.module.css +69 -82
  63. package/components/text/text.module.css.d.ts +19 -14
  64. package/components/textField/textField.module.css +45 -35
  65. package/components/textField/textField.module.css.d.ts +2 -2
  66. package/components/toast/toast.module.css +33 -153
  67. package/components/toast/toast.module.css.d.ts +2 -6
  68. package/components/tooltip/tooltip.module.css +7 -6
  69. package/package.json +4 -4
  70. package/themes/default-dark.js +1 -0
  71. package/themes/default.js +1 -0
  72. package/themes/index.d.ts +1 -0
  73. package/components/heading/heading.module.css +0 -95
  74. package/components/heading/heading.module.css.d.ts +0 -12
  75. package/components/labeledValue/labeledValue.module.css +0 -10
  76. package/components/labeledValue/labeledValue.module.css.d.ts +0 -7
  77. package/components/paragraph/paragraph.module.css +0 -32
  78. package/components/paragraph/paragraph.module.css.d.ts +0 -7
@@ -4,9 +4,6 @@ declare const styles: {
4
4
  readonly "is-disabled": string;
5
5
  readonly "is-focus": string;
6
6
  readonly "js-focus": string;
7
- readonly "sapphire-button--with-left-icon": string;
8
- readonly "sapphire-button--with-right-icon": string;
9
- readonly "sapphire-button__icon": string;
10
7
  readonly "sapphire-button--loading": string;
11
8
  readonly "sapphire-button__spinner": string;
12
9
  readonly "sapphire-button--primary": string;
@@ -14,16 +11,15 @@ declare const styles: {
14
11
  readonly "js-hover": string;
15
12
  readonly "is-hover": string;
16
13
  readonly "sapphire-button--secondary": string;
17
- readonly "sapphire-button--secondary-ghost": string;
18
- readonly "sapphire-button--secondary-text": string;
19
14
  readonly "sapphire-button--tertiary": string;
20
- readonly "sapphire-button--tertiary-ghost": string;
21
- readonly "sapphire-button--tertiary-text": string;
15
+ readonly "sapphire-button--text": string;
22
16
  readonly "sapphire-button--danger": string;
23
- readonly "sapphire-button--danger-ghost": string;
17
+ readonly "sapphire-button--danger-secondary": string;
18
+ readonly "sapphire-button--danger-tertiary": string;
24
19
  readonly "sapphire-button--danger-text": string;
25
20
  readonly "sapphire-button--selected": string;
26
21
  readonly "sapphire-button--unselected": string;
22
+ readonly "sapphire-button__icon": string;
27
23
  readonly "sapphire-button--lg": string;
28
24
  readonly "sapphire-button--sm": string;
29
25
  };
@@ -3,16 +3,28 @@
3
3
  flex-direction: row;
4
4
  flex-wrap: wrap;
5
5
  justify-content: stretch;
6
- gap: var(--sapphire-semantic-size-spacing-40);
6
+ gap: var(--sapphire-semantic-size-spacing-md);
7
7
  }
8
8
 
9
- /*
10
- The initial idea of buttons that stack on top of each other if the container width is too small was to use @container queries.
11
- There was an attempt to make use of the query based on ".sapphire-button-group" when it was under 320px, but we encountered certain limitations.
12
- For the query to work, the CSS property `container-type: inline-size;` should be set, but due to how the container query works, the width of the button group would always collapse (read more: https://developer.mozilla.org/en-US/docs/Web/CSS/container-type)
13
- It was decided that, in order to fulfill the requirements, a new modifier (--stretch) needs to be added.
14
- This enables, if desired, conditional rendering of button group as stretch, overcoming the limitations of container queries.
15
- */
9
+ /**
10
+ * The initial idea of buttons that stack on top of each other if the container
11
+ * width is too small was to use @container queries.
12
+ *
13
+ * There was an attempt to make use of the query based on
14
+ * ".sapphire-button-group" when it was under 320px, but we encountered certain
15
+ * limitations.
16
+ *
17
+ * For the query to work, the CSS property `container-type: inline-size;`
18
+ * should be set, but due to how the container query works, the width of the
19
+ * button group would always collapse (read more:
20
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/container-type)
21
+ *
22
+ * It was decided that, in order to fulfill the requirements, a new modifier
23
+ * (--stretch) needs to be added.
24
+ *
25
+ * This enables, if desired, conditional rendering of button group as stretch,
26
+ * overcoming the limitations of container queries.
27
+ */
16
28
  .sapphire-button-group--stretch {
17
29
  flex-wrap: wrap-reverse;
18
30
  justify-content: normal;
@@ -20,8 +32,13 @@ This enables, if desired, conditional rendering of button group as stretch, over
20
32
  }
21
33
 
22
34
  /**
23
- TODO: note - this used to work without !important. Worth checking later if that can be removed.
24
- Added !important because of Angular implementation, and how the extra attribute selector that's added for emulated style encapsulation increases the default button styles priority.
35
+ * # Note
36
+ * This used to work without !important. Worth checking later if that can be
37
+ * removed.
38
+ *
39
+ * Added !important because of Angular implementation, and how the extra
40
+ * attribute selector that's added for emulated style encapsulation increases
41
+ * the default button styles priority.
25
42
  */
26
43
  .sapphire-button-group--stretch > * {
27
44
  min-width: fit-content !important;
@@ -41,15 +58,15 @@ Added !important because of Angular implementation, and how the extra attribute
41
58
  }
42
59
 
43
60
  .sapphire-button-group--spacing-lg {
44
- gap: var(--sapphire-semantic-size-spacing-50);
61
+ gap: var(--sapphire-semantic-size-spacing-lg);
45
62
  }
46
63
 
47
64
  .sapphire-button-group--spacing-sm {
48
- gap: var(--sapphire-semantic-size-spacing-30);
65
+ gap: var(--sapphire-semantic-size-spacing-sm);
49
66
  }
50
67
 
51
68
  .sapphire-button-group--spacing-xs {
52
- gap: var(--sapphire-semantic-size-spacing-5);
69
+ gap: var(--sapphire-semantic-size-spacing-4xs);
53
70
  }
54
71
 
55
72
  .sapphire-button-group--align-center {
@@ -66,6 +83,15 @@ Added !important because of Angular implementation, and how the extra attribute
66
83
 
67
84
  .sapphire-button-group--vertical {
68
85
  flex-direction: column;
86
+ gap: var(--sapphire-semantic-size-spacing-sm);
87
+ }
88
+
89
+ .sapphire-button-group--vertical.sapphire-button-group--spacing-lg {
90
+ gap: var(--sapphire-semantic-size-spacing-md);
91
+ }
92
+
93
+ .sapphire-button-group--vertical.sapphire-button-group--spacing-sm {
94
+ gap: var(--sapphire-semantic-size-spacing-xs);
69
95
  }
70
96
 
71
97
  .sapphire-button-group--vertical.sapphire-button-group--align-center {
@@ -1,7 +1,6 @@
1
1
  .sapphire-calendar {
2
2
  font-family: var(--sapphire-semantic-font-name-default);
3
3
  display: inline-flex;
4
- background-color: var(--sapphire-semantic-color-background-popover-default);
5
4
  box-sizing: border-box;
6
5
  }
7
6
  .sapphire-calendar__table-container {
@@ -32,7 +31,7 @@
32
31
  display: flex;
33
32
  align-items: center;
34
33
  justify-content: space-between;
35
- padding-bottom: var(--sapphire-semantic-size-spacing-40);
34
+ padding-bottom: var(--sapphire-semantic-size-spacing-xs);
36
35
  }
37
36
 
38
37
  .sapphire-calendar__header--left .sapphire-calendar__header-next-month {
@@ -45,12 +44,29 @@
45
44
 
46
45
  .sapphire-calendar__header-title {
47
46
  margin: 0 auto;
48
- color: var(--sapphire-semantic-color-content-default-primary);
47
+ color: var(--sapphire-semantic-color-foreground-primary);
48
+ font-weight: var(--sapphire-semantic-font-weight-default-medium);
49
+ font-size: var(--sapphire-semantic-size-font-body-md);
50
+ }
51
+
52
+ /* Hacky css ahead.
53
+ * Special style for this which may contain a button and should be bolder */
54
+ .sapphire-calendar__table-container .sapphire-calendar__header-title,
55
+ .sapphire-calendar__table-container .sapphire-calendar__header-title button {
56
+ font-size: var(--sapphire-semantic-size-font-body-md) !important;
57
+ font-weight: var(--sapphire-semantic-font-weight-default-medium) !important;
58
+ }
59
+
60
+ .sapphire-calendar__table-container--md .sapphire-calendar__header-title,
61
+ .sapphire-calendar__table-container--md
62
+ .sapphire-calendar__header-title
63
+ button {
64
+ font-size: var(--sapphire-semantic-size-font-body-sm) !important;
49
65
  }
50
66
 
51
67
  .sapphire-calendar__tables-row {
52
68
  display: flex;
53
- gap: var(--sapphire-semantic-size-spacing-60);
69
+ gap: var(--sapphire-semantic-size-spacing-xl);
54
70
  }
55
71
 
56
72
  .sapphire-calendar__table {
@@ -72,17 +88,17 @@
72
88
  .sapphire-calendar__table--month-year
73
89
  .sapphire-calendar__table-body-row:not(:last-child)
74
90
  .sapphire-calendar__table-body-cell {
75
- padding-bottom: var(--sapphire-semantic-size-spacing-20);
91
+ padding-bottom: var(--sapphire-semantic-size-spacing-2xs);
76
92
  }
77
93
 
78
94
  .sapphire-calendar__table--with-week-numbers th:first-child {
79
- padding-right: var(--sapphire-semantic-size-spacing-20);
95
+ padding-right: var(--sapphire-semantic-size-spacing-2xs);
80
96
  border-right: var(--sapphire-semantic-size-border-sm) solid
81
- var(--sapphire-semantic-color-border-separator-default);
97
+ var(--sapphire-semantic-color-border-secondary);
82
98
  }
83
99
 
84
100
  .sapphire-calendar__table--with-week-numbers th:first-child + td {
85
- padding-left: var(--sapphire-semantic-size-spacing-20);
101
+ padding-left: var(--sapphire-semantic-size-spacing-2xs);
86
102
  }
87
103
 
88
104
  .sapphire-calendar__table-head-cell {
@@ -101,27 +117,28 @@
101
117
  position: relative;
102
118
  display: flex;
103
119
  flex-direction: column;
104
- gap: var(--sapphire-semantic-size-spacing-40);
120
+ gap: var(--sapphire-semantic-size-spacing-md);
105
121
  border-left: var(--sapphire-semantic-size-border-sm) solid
106
- var(--sapphire-semantic-color-border-separator-default);
107
- margin-left: var(--sapphire-semantic-size-spacing-40);
108
- padding-left: var(--sapphire-semantic-size-spacing-40);
109
- padding-right: var(--sapphire-semantic-size-spacing-5);
122
+ var(--sapphire-semantic-color-border-secondary);
123
+ margin-left: var(--sapphire-semantic-size-spacing-md);
124
+ padding-top: var(--sapphire-semantic-size-spacing-2xs);
125
+ padding-left: var(--sapphire-semantic-size-spacing-xl);
126
+ padding-right: var(--sapphire-semantic-size-spacing-4xs);
110
127
  }
111
128
 
112
129
  .sapphire-calendar__day-of-week {
113
130
  text-decoration: none;
114
- color: var(--sapphire-semantic-color-content-default-secondary);
115
- font-weight: var(--sapphire-semantic-font-weight-default-semibold);
116
- font-size: var(--sapphire-semantic-size-font-text-md);
131
+ color: var(--sapphire-semantic-color-foreground-secondary);
132
+ font-weight: var(--sapphire-semantic-font-weight-default-medium);
133
+ font-size: var(--sapphire-semantic-size-font-body-sm);
117
134
  }
118
135
 
119
136
  .sapphire-calendar__week-number {
120
137
  display: block;
121
138
  text-decoration: none;
122
- color: var(--sapphire-semantic-color-content-default-secondary);
123
- font-weight: var(--sapphire-semantic-font-weight-default-semibold);
124
- font-size: var(--sapphire-semantic-size-font-text-md);
139
+ color: var(--sapphire-semantic-color-foreground-secondary);
140
+ font-weight: var(--sapphire-semantic-font-weight-default-medium);
141
+ font-size: var(--sapphire-semantic-size-font-body-sm);
125
142
  width: var(--sapphire-calendar-cell-size);
126
143
  }
127
144
 
@@ -143,10 +160,10 @@
143
160
  }
144
161
 
145
162
  .sapphire-calendar__button .sapphire-calendar__button-text {
146
- font-size: var(--sapphire-semantic-size-font-text-md);
147
- color: var(--sapphire-semantic-color-content-default-primary);
163
+ font-size: var(--sapphire-semantic-size-font-body-sm);
164
+ color: var(--sapphire-semantic-color-foreground-primary);
148
165
  font-weight: var(--sapphire-semantic-font-weight-default-regular);
149
- background-color: var(--sapphire-global-color-neutral-transparent);
166
+ background: var(--sapphire-semantic-color-background-action-tertiary-default);
150
167
  display: flex;
151
168
  justify-content: center;
152
169
  align-items: center;
@@ -155,13 +172,13 @@
155
172
  border-radius: var(--sapphire-semantic-size-height-control-lg);
156
173
  transition-property: opacity, background-color, color;
157
174
  transition-duration: 0s;
158
- transition-timing-function: ease-in-out;
159
- padding: 0 var(--sapphire-semantic-size-spacing-50);
175
+ transition-timing-function: var(--sapphire-semantic-transitions-fade);
176
+ padding: 0 var(--sapphire-semantic-size-spacing-lg);
160
177
  }
161
178
 
162
179
  .sapphire-calendar__header-title {
163
- font-weight: var(--sapphire-semantic-font-weight-default-semibold);
164
- font-size: var(--sapphire-semantic-size-font-text-lg);
180
+ font-weight: var(--sapphire-semantic-font-weight-default-medium);
181
+ font-size: var(--sapphire-semantic-size-font-body-md);
165
182
  }
166
183
 
167
184
  /* Customizations for day buttons */
@@ -190,7 +207,7 @@
190
207
  var(--sapphire-semantic-color-focus-ring);
191
208
  outline-offset: var(--sapphire-semantic-size-focus-ring);
192
209
  z-index: 2;
193
- background-color: var(--sapphire-global-color-neutral-transparent);
210
+ background: var(--sapphire-semantic-color-background-action-tertiary-default);
194
211
  transition-duration: var(--sapphire-semantic-time-fade-quick);
195
212
  }
196
213
 
@@ -202,9 +219,7 @@
202
219
  .is-active
203
220
  ).is-hover
204
221
  .sapphire-calendar__button-text {
205
- background-color: var(
206
- --sapphire-semantic-color-background-action-secondary-hover
207
- );
222
+ background: var(--sapphire-semantic-color-background-action-tertiary-hover);
208
223
  transition-duration: var(--sapphire-semantic-time-fade-quick);
209
224
  }
210
225
 
@@ -214,9 +229,7 @@
214
229
  .sapphire-calendar__button-text,
215
230
  .sapphire-calendar__button:not(:disabled):not(.is-disabled):focus-visible:active
216
231
  .sapphire-calendar__button-text {
217
- background-color: var(
218
- --sapphire-semantic-color-background-action-secondary-active
219
- );
232
+ background: var(--sapphire-semantic-color-background-action-tertiary-active);
220
233
  transition-duration: var(--sapphire-semantic-time-fade-quick);
221
234
  }
222
235
 
@@ -226,15 +239,15 @@
226
239
 
227
240
  .sapphire-calendar__button.sapphire-calendar__button--range-selection
228
241
  .sapphire-calendar__button-text {
229
- color: var(--sapphire-semantic-color-content-selection-selected-default);
230
- background-color: var(
231
- --sapphire-semantic-color-background-selection-selected-default
242
+ color: var(
243
+ --sapphire-semantic-color-foreground-action-on-select-secondary-default
232
244
  );
245
+ background: transparent;
233
246
  }
234
247
 
235
248
  .sapphire-calendar__button.sapphire-calendar__button--range-selection {
236
- background-color: var(
237
- --sapphire-semantic-color-background-selection-selected-default
249
+ background: var(
250
+ --sapphire-semantic-color-background-action-select-secondary-default
238
251
  );
239
252
  }
240
253
 
@@ -246,8 +259,8 @@
246
259
  :disabled
247
260
  ):not(.is-disabled):not(:active):not(.is-active).is-hover
248
261
  .sapphire-calendar__button-text {
249
- background-color: var(
250
- --sapphire-semantic-color-background-selection-selected-hover
262
+ background: var(
263
+ --sapphire-semantic-color-background-action-select-secondary-hover
251
264
  );
252
265
  }
253
266
 
@@ -263,19 +276,8 @@
263
276
  :disabled
264
277
  ):not(.is-disabled):focus-visible:active
265
278
  .sapphire-calendar__button-text {
266
- background-color: var(
267
- --sapphire-semantic-color-background-selection-selected-active
268
- );
269
- }
270
-
271
- .sapphire-calendar__button.sapphire-calendar__button--range-selection.is-focus
272
- .sapphire-calendar__button-text,
273
- .sapphire-calendar__button.sapphire-calendar__button--range-selection:not(
274
- .js-focus
275
- ):focus-visible
276
- .sapphire-calendar__button-text {
277
- background-color: var(
278
- --sapphire-semantic-color-background-selection-selected-default
279
+ background: var(
280
+ --sapphire-semantic-color-background-action-select-secondary-active
279
281
  );
280
282
  }
281
283
 
@@ -287,11 +289,9 @@
287
289
  .sapphire-calendar__button-text,
288
290
  .sapphire-calendar__button.sapphire-calendar__button--range-selection.sapphire-calendar__button--selection-end
289
291
  .sapphire-calendar__button-text {
290
- background-color: var(
291
- --sapphire-semantic-color-background-action-primary-default
292
- );
293
- color: var(--sapphire-semantic-color-content-action-primary-default);
294
- font-weight: var(--sapphire-semantic-font-weight-default-semibold);
292
+ background: var(--sapphire-semantic-color-background-action-select-default);
293
+ color: var(--sapphire-semantic-color-foreground-action-on-select-default);
294
+ font-weight: var(--sapphire-semantic-font-weight-default-medium);
295
295
  }
296
296
 
297
297
  .sapphire-calendar__button:focus {
@@ -324,9 +324,7 @@
324
324
  :disabled
325
325
  ):not(.is-disabled):not(:active):not(.is-active).is-hover
326
326
  .sapphire-calendar__button-text {
327
- background-color: var(
328
- --sapphire-semantic-color-background-action-primary-hover
329
- );
327
+ background: var(--sapphire-semantic-color-background-action-select-hover);
330
328
  }
331
329
 
332
330
  .sapphire-calendar__button.sapphire-calendar__button--selected:not(
@@ -365,9 +363,7 @@
365
363
  :disabled
366
364
  ):not(.is-disabled):focus-visible:active
367
365
  .sapphire-calendar__button-text {
368
- background-color: var(
369
- --sapphire-semantic-color-background-action-primary-active
370
- );
366
+ background: var(--sapphire-semantic-color-background-action-select-active);
371
367
  }
372
368
 
373
369
  .sapphire-calendar__button.sapphire-calendar__button--selected:not(
@@ -390,9 +386,7 @@
390
386
  .js-focus
391
387
  ):focus-visible
392
388
  .sapphire-calendar__button-text {
393
- background-color: var(
394
- --sapphire-semantic-color-background-action-primary-default
395
- );
389
+ background: var(--sapphire-semantic-color-background-action-select-default);
396
390
  }
397
391
 
398
392
  .sapphire-calendar__button.sapphire-calendar__button--range-selection.sapphire-calendar__button--selection-start,
@@ -414,9 +408,7 @@
414
408
  height: var(--sapphire-global-size-static-10);
415
409
  width: var(--sapphire-global-size-static-10);
416
410
  border-radius: var(--sapphire-semantic-size-height-control-lg);
417
- background-color: var(
418
- --sapphire-semantic-color-background-action-primary-default
419
- );
411
+ background: var(--sapphire-semantic-color-background-action-select-default);
420
412
  bottom: var(--sapphire-global-size-generic-20);
421
413
  }
422
414
 
@@ -430,64 +422,11 @@
430
422
  ).sapphire-calendar__button--current::after,
431
423
  .sapphire-calendar__button.sapphire-calendar__button--range-selection.sapphire-calendar__button--selection-start.sapphire-calendar__button--current::after,
432
424
  .sapphire-calendar__button.sapphire-calendar__button--range-selection.sapphire-calendar__button--selection-end.sapphire-calendar__button--current::after {
433
- background-color: var(
434
- --sapphire-semantic-color-content-action-primary-default
425
+ background: var(
426
+ --sapphire-semantic-color-foreground-action-on-select-default
435
427
  );
436
428
  }
437
429
 
438
430
  .sapphire-calendar__button.sapphire-calendar__button--outside-month {
439
431
  visibility: hidden;
440
432
  }
441
-
442
- /* Wrapper element for the grid(s) that animate */
443
- .sapphire-calendar__grid-page-animation {
444
- display: flex;
445
- position: relative;
446
- overflow: hidden;
447
- }
448
- .sapphire-calendar__grid-page-animation:not(:has(.enter, .exit)) {
449
- /* Minor improvement for browsers that support :has selector, to let focus ring on calendar cells
450
- be visible, while not animating */
451
- overflow: initial;
452
- }
453
-
454
- .sapphire-calendar__grid-page-animation .exit-active {
455
- /* The calendar page that's transitioning out should not accept any pointer event. Otherwise
456
- there can be edge cases where quickly hovering over the grid area while page is being changed
457
- can move focus to the page that's about to be removed from dom, which causes focus to get lost */
458
- pointer-events: none;
459
- }
460
-
461
- /* Next page animation, applied on the wrapper, when next grid(s) are animating in */
462
- .sapphire-calendar__grid-page-animation--next .enter {
463
- transform: translateX(100%);
464
- }
465
- .sapphire-calendar__grid-page-animation--next .enter-active {
466
- transform: translateX(0%);
467
- transition: transform var(--sapphire-semantic-time-motion-slow) ease-in-out;
468
- }
469
- .sapphire-calendar__grid-page-animation--next .exit {
470
- transform: translateX(0%);
471
- position: absolute;
472
- }
473
- .sapphire-calendar__grid-page-animation--next .exit-active {
474
- transform: translateX(-100%);
475
- transition: transform var(--sapphire-semantic-time-motion-slow) ease-in-out;
476
- }
477
-
478
- /* Previous page animation, applied on the wrapper, when previous grid(s) are animating in */
479
- .sapphire-calendar__grid-page-animation--prev .enter {
480
- transform: translateX(-100%);
481
- }
482
- .sapphire-calendar__grid-page-animation--prev .enter-active {
483
- transform: translateX(0%);
484
- transition: transform var(--sapphire-semantic-time-motion-slow) ease-in-out;
485
- }
486
- .sapphire-calendar__grid-page-animation--prev .exit {
487
- transform: translateX(0%);
488
- position: absolute;
489
- }
490
- .sapphire-calendar__grid-page-animation--prev .exit-active {
491
- transform: translateX(100%);
492
- transition: transform var(--sapphire-semantic-time-motion-slow) ease-in-out;
493
- }
@@ -35,13 +35,6 @@ declare const styles: {
35
35
  readonly "sapphire-calendar__button--range-end": string;
36
36
  readonly "sapphire-calendar__button--current": string;
37
37
  readonly "sapphire-calendar__button--outside-month": string;
38
- readonly "sapphire-calendar__grid-page-animation": string;
39
- readonly "enter": string;
40
- readonly "exit": string;
41
- readonly "exit-active": string;
42
- readonly "sapphire-calendar__grid-page-animation--next": string;
43
- readonly "enter-active": string;
44
- readonly "sapphire-calendar__grid-page-animation--prev": string;
45
38
  };
46
39
  export = styles;
47
40