@danske/sapphire-css 32.2.1 → 33.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 -1
- package/build/themes/cjs/default.js +2 -1
- package/build/themes/cjs/index.d.ts +2 -1
- package/build/themes/esm/default-dark.js +1 -1
- package/build/themes/esm/default.js +2 -1
- package/build/themes/esm/index.d.ts +2 -1
- package/components/accordion/accordion.module.css +38 -40
- package/components/avatar/avatar.module.css +61 -51
- package/components/avatar/avatar.module.css.d.ts +4 -4
- package/components/backdrop/backdrop.module.css +3 -3
- package/components/badge/badge.module.css +257 -135
- package/components/badge/badge.module.css.d.ts +3 -3
- package/components/button/button.module.css +200 -400
- package/components/button/button.module.css.d.ts +6 -7
- package/components/buttonGroup/buttonGroup.module.css +6 -6
- package/components/buttonGroup/buttonGroup.module.css.d.ts +2 -2
- package/components/calendar/calendar.module.css +90 -86
- package/components/checkbox/checkbox.module.css +59 -51
- package/components/checkbox/checkbox.module.css.d.ts +2 -2
- package/components/contextualHelp/contextualHelp.module.css +13 -10
- package/components/dateField/dateField.module.css +66 -64
- package/components/dateField/dateField.module.css.d.ts +1 -1
- package/components/dialog/dialog.module.css +13 -13
- package/components/dialog/dialog.module.css.d.ts +4 -4
- package/components/dropzone/dropzone.module.css +29 -23
- package/components/feedbackMessage/feedbackMessage.module.css +15 -15
- package/components/field/field.module.css +16 -16
- package/components/field/field.module.css.d.ts +1 -1
- package/components/fieldGroup/fieldGroup.module.css +4 -4
- package/components/fieldGroup/fieldGroup.module.css.d.ts +1 -1
- package/components/heading/heading.module.css +37 -85
- package/components/icon/icon.module.css +12 -12
- package/components/icon/icon.module.css.d.ts +4 -4
- package/components/iconButton/iconButton.module.css +130 -366
- package/components/iconButton/iconButton.module.css.d.ts +7 -8
- package/components/label/label.module.css +11 -11
- package/components/label/label.module.css.d.ts +1 -1
- package/components/labeledValue/labeledValue.module.css +7 -7
- package/components/labeledValue/labeledValue.module.css.d.ts +2 -2
- package/components/link/link.module.css +22 -22
- package/components/link/link.module.css.d.ts +2 -2
- package/components/list/list.module.css +41 -31
- package/components/listbox/listbox.module.css +80 -66
- package/components/listbox/listbox.module.css.d.ts +2 -2
- package/components/modalLayout/modalLayout.module.css +9 -11
- package/components/notificationBadge/notificationBadge.module.css +23 -25
- package/components/notificationBadge/notificationBadge.module.css.d.ts +3 -3
- package/components/pagination/pagination.module.css +16 -16
- package/components/panel/panel.module.css +4 -4
- package/components/panel/panel.module.css.d.ts +1 -1
- package/components/paragraph/paragraph.module.css +8 -8
- package/components/paragraph/paragraph.module.css.d.ts +2 -2
- package/components/popover/popover.module.css +6 -6
- package/components/radio/radio.module.css +32 -32
- package/components/radio/radio.module.css.d.ts +1 -1
- package/components/searchField/searchField.module.css +41 -45
- package/components/searchField/searchField.module.css.d.ts +1 -2
- package/components/segmentedControl/segmentedControl.module.css +33 -35
- package/components/segmentedControl/segmentedControl.module.css.d.ts +2 -2
- package/components/select/select.module.css +32 -32
- package/components/select/select.module.css.d.ts +1 -1
- package/components/skeleton/skeleton.module.css +6 -8
- package/components/spinner/spinner.module.css +22 -22
- package/components/spinner/spinner.module.css.d.ts +4 -4
- package/components/surface/surface.module.css +3 -7
- package/components/surface/surface.module.css.d.ts +0 -1
- package/components/switch/switch.module.css +45 -39
- package/components/switch/switch.module.css.d.ts +1 -1
- package/components/table/table.module.css +61 -50
- package/components/tabs/tabs.module.css +46 -45
- package/components/tabs/tabs.module.css.d.ts +2 -2
- package/components/tag/tag.module.css +32 -24
- package/components/text/text.module.css +48 -96
- package/components/textField/textField.module.css +78 -72
- package/components/textField/textField.module.css.d.ts +1 -1
- package/components/toast/toast.module.css +17 -19
- package/components/tooltip/tooltip.module.css +12 -12
- package/package.json +3 -3
- package/themes/default-dark.js +1 -1
- package/themes/default.js +2 -1
- package/themes/index.d.ts +2 -1
- package/build/themes/cjs/june-dark.d.ts +0 -5
- package/build/themes/cjs/june-dark.js +0 -13
- package/build/themes/cjs/june.d.ts +0 -5
- package/build/themes/cjs/june.js +0 -13
- package/build/themes/esm/june-dark.d.ts +0 -5
- package/build/themes/esm/june-dark.js +0 -8
- package/build/themes/esm/june.d.ts +0 -5
- package/build/themes/esm/june.js +0 -8
- package/themes/default-dark.css +0 -2
- package/themes/june-dark.css +0 -3
- package/themes/june-dark.d.ts +0 -5
- package/themes/june-dark.js +0 -13
- package/themes/june-dark.scss +0 -3
- package/themes/june.css +0 -3
- package/themes/june.d.ts +0 -5
- package/themes/june.js +0 -13
- package/themes/june.scss +0 -3
|
@@ -9,24 +9,23 @@ declare const styles: {
|
|
|
9
9
|
readonly "sapphire-button__icon": string;
|
|
10
10
|
readonly "sapphire-button--loading": string;
|
|
11
11
|
readonly "sapphire-button__spinner": string;
|
|
12
|
-
readonly "sapphire-button--primary
|
|
12
|
+
readonly "sapphire-button--primary": string;
|
|
13
13
|
readonly "is-active": string;
|
|
14
14
|
readonly "js-hover": string;
|
|
15
15
|
readonly "is-hover": string;
|
|
16
|
-
readonly "sapphire-button--secondary
|
|
17
|
-
readonly "sapphire-button--secondary-surface": string;
|
|
16
|
+
readonly "sapphire-button--secondary": string;
|
|
18
17
|
readonly "sapphire-button--secondary-ghost": string;
|
|
19
18
|
readonly "sapphire-button--secondary-text": string;
|
|
20
|
-
readonly "sapphire-button--tertiary
|
|
19
|
+
readonly "sapphire-button--tertiary": string;
|
|
21
20
|
readonly "sapphire-button--tertiary-ghost": string;
|
|
22
21
|
readonly "sapphire-button--tertiary-text": string;
|
|
23
|
-
readonly "sapphire-button--danger
|
|
22
|
+
readonly "sapphire-button--danger": string;
|
|
24
23
|
readonly "sapphire-button--danger-ghost": string;
|
|
25
24
|
readonly "sapphire-button--danger-text": string;
|
|
26
25
|
readonly "sapphire-button--selected": string;
|
|
27
26
|
readonly "sapphire-button--unselected": string;
|
|
28
|
-
readonly "sapphire-button--
|
|
29
|
-
readonly "sapphire-button--
|
|
27
|
+
readonly "sapphire-button--lg": string;
|
|
28
|
+
readonly "sapphire-button--sm": string;
|
|
30
29
|
};
|
|
31
30
|
export = styles;
|
|
32
31
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
flex-wrap: wrap;
|
|
5
5
|
justify-content: stretch;
|
|
6
|
-
gap: var(--sapphire-
|
|
6
|
+
gap: var(--sapphire-semantic-size-spacing-40);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
/*
|
|
@@ -40,16 +40,16 @@ Added !important because of Angular implementation, and how the extra attribute
|
|
|
40
40
|
flex-direction: column-reverse;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.sapphire-button-group--spacing-
|
|
44
|
-
gap: var(--sapphire-
|
|
43
|
+
.sapphire-button-group--spacing-lg {
|
|
44
|
+
gap: var(--sapphire-semantic-size-spacing-50);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
.sapphire-button-group--spacing-
|
|
48
|
-
gap: var(--sapphire-
|
|
47
|
+
.sapphire-button-group--spacing-sm {
|
|
48
|
+
gap: var(--sapphire-semantic-size-spacing-30);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.sapphire-button-group--spacing-xs {
|
|
52
|
-
gap: var(--sapphire-
|
|
52
|
+
gap: var(--sapphire-semantic-size-spacing-5);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.sapphire-button-group--align-center {
|
|
@@ -3,8 +3,8 @@ declare const styles: {
|
|
|
3
3
|
readonly "sapphire-button-group--stretch": string;
|
|
4
4
|
readonly "sapphire-button-group--vertical": string;
|
|
5
5
|
readonly "sapphire-button-group--stretch-auto-vertical": string;
|
|
6
|
-
readonly "sapphire-button-group--spacing-
|
|
7
|
-
readonly "sapphire-button-group--spacing-
|
|
6
|
+
readonly "sapphire-button-group--spacing-lg": string;
|
|
7
|
+
readonly "sapphire-button-group--spacing-sm": string;
|
|
8
8
|
readonly "sapphire-button-group--spacing-xs": string;
|
|
9
9
|
readonly "sapphire-button-group--align-center": string;
|
|
10
10
|
readonly "sapphire-button-group--align-right": string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.sapphire-calendar {
|
|
2
|
-
font-family: var(--sapphire-
|
|
2
|
+
font-family: var(--sapphire-semantic-font-name-default);
|
|
3
3
|
display: inline-flex;
|
|
4
|
-
background-color: var(--sapphire-
|
|
4
|
+
background-color: var(--sapphire-semantic-color-background-popover-default);
|
|
5
5
|
box-sizing: border-box;
|
|
6
6
|
}
|
|
7
7
|
.sapphire-calendar__table-container {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
min-width needed for months and years view. Otherwise the calendar's width changes as view is
|
|
10
10
|
switched
|
|
11
11
|
*/
|
|
12
|
-
min-width: calc(7 * var(--sapphire-
|
|
12
|
+
min-width: calc(7 * var(--sapphire-global-size-generic-120));
|
|
13
13
|
/*
|
|
14
14
|
For now we have decided to not support flexible width for the calendar grid.
|
|
15
15
|
If we want that, we only need to add a `flex: 1` here. The width of Months/Years table is
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
display: flex;
|
|
22
22
|
align-items: center;
|
|
23
23
|
justify-content: space-between;
|
|
24
|
-
padding-bottom: var(--sapphire-
|
|
24
|
+
padding-bottom: var(--sapphire-semantic-size-spacing-40);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.sapphire-calendar__header--left .sapphire-calendar__header-next-month {
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
|
|
35
35
|
.sapphire-calendar__header-title {
|
|
36
36
|
margin: 0 auto;
|
|
37
|
-
color: var(--sapphire-
|
|
37
|
+
color: var(--sapphire-semantic-color-content-default-primary);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.sapphire-calendar__tables-row {
|
|
41
41
|
display: flex;
|
|
42
|
-
gap: var(--sapphire-
|
|
42
|
+
gap: var(--sapphire-semantic-size-spacing-60);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.sapphire-calendar__table {
|
|
@@ -48,44 +48,40 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.sapphire-calendar__table--month-year {
|
|
51
|
-
width: calc(7 * var(--sapphire-
|
|
51
|
+
width: calc(7 * var(--sapphire-global-size-generic-120));
|
|
52
52
|
table-layout: fixed;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.sapphire-calendar__table
|
|
56
56
|
.sapphire-calendar__table-body-row:not(:last-child)
|
|
57
57
|
.sapphire-calendar__table-body-cell {
|
|
58
|
-
padding-bottom: var(
|
|
59
|
-
--sapphire-calendar-size-spacing-body-cell-bottom-default
|
|
60
|
-
);
|
|
58
|
+
padding-bottom: var(--sapphire-global-size-static-5);
|
|
61
59
|
}
|
|
62
60
|
|
|
63
61
|
.sapphire-calendar__table--month-year
|
|
64
62
|
.sapphire-calendar__table-body-row:not(:last-child)
|
|
65
63
|
.sapphire-calendar__table-body-cell {
|
|
66
|
-
padding-bottom: var(
|
|
67
|
-
--sapphire-calendar-size-spacing-body-cell-bottom-month-year
|
|
68
|
-
);
|
|
64
|
+
padding-bottom: var(--sapphire-semantic-size-spacing-20);
|
|
69
65
|
}
|
|
70
66
|
|
|
71
67
|
.sapphire-calendar__table--with-week-numbers th:first-child {
|
|
72
|
-
padding-right: var(--sapphire-
|
|
73
|
-
border-right: var(--sapphire-
|
|
74
|
-
var(--sapphire-
|
|
68
|
+
padding-right: var(--sapphire-semantic-size-spacing-20);
|
|
69
|
+
border-right: var(--sapphire-semantic-size-border-sm) solid
|
|
70
|
+
var(--sapphire-semantic-color-border-separator-default);
|
|
75
71
|
}
|
|
76
72
|
|
|
77
73
|
.sapphire-calendar__table--with-week-numbers th:first-child + td {
|
|
78
|
-
padding-left: var(--sapphire-
|
|
74
|
+
padding-left: var(--sapphire-semantic-size-spacing-20);
|
|
79
75
|
}
|
|
80
76
|
|
|
81
77
|
.sapphire-calendar__table-head-cell {
|
|
82
|
-
height: var(--sapphire-
|
|
78
|
+
height: var(--sapphire-semantic-size-height-control-sm);
|
|
83
79
|
text-align: center;
|
|
84
80
|
padding: 0;
|
|
85
81
|
}
|
|
86
82
|
|
|
87
83
|
.sapphire-calendar__table-body-cell {
|
|
88
|
-
height: var(--sapphire-
|
|
84
|
+
height: var(--sapphire-semantic-size-height-control-lg);
|
|
89
85
|
text-align: center;
|
|
90
86
|
padding: 0;
|
|
91
87
|
}
|
|
@@ -94,38 +90,34 @@
|
|
|
94
90
|
position: relative;
|
|
95
91
|
display: flex;
|
|
96
92
|
flex-direction: column;
|
|
97
|
-
gap: var(--sapphire-
|
|
98
|
-
border-left: var(--sapphire-
|
|
99
|
-
var(--sapphire-
|
|
100
|
-
margin-left: var(--sapphire-
|
|
101
|
-
padding-left: var(
|
|
102
|
-
|
|
103
|
-
);
|
|
104
|
-
padding-right: var(
|
|
105
|
-
--sapphire-calendar-size-spacing-custom-ranges-padding-right
|
|
106
|
-
);
|
|
93
|
+
gap: var(--sapphire-semantic-size-spacing-40);
|
|
94
|
+
border-left: var(--sapphire-semantic-size-border-sm) solid
|
|
95
|
+
var(--sapphire-semantic-color-border-separator-default);
|
|
96
|
+
margin-left: var(--sapphire-semantic-size-spacing-40);
|
|
97
|
+
padding-left: var(--sapphire-semantic-size-spacing-40);
|
|
98
|
+
padding-right: var(--sapphire-semantic-size-spacing-5);
|
|
107
99
|
}
|
|
108
100
|
|
|
109
101
|
.sapphire-calendar__day-of-week {
|
|
110
102
|
text-decoration: none;
|
|
111
|
-
color: var(--sapphire-
|
|
112
|
-
font-weight: var(--sapphire-
|
|
113
|
-
font-size: var(--sapphire-
|
|
103
|
+
color: var(--sapphire-semantic-color-content-default-secondary);
|
|
104
|
+
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
105
|
+
font-size: var(--sapphire-semantic-size-font-text-md);
|
|
114
106
|
}
|
|
115
107
|
|
|
116
108
|
.sapphire-calendar__week-number {
|
|
117
109
|
display: block;
|
|
118
110
|
text-decoration: none;
|
|
119
|
-
color: var(--sapphire-
|
|
120
|
-
font-weight: var(--sapphire-
|
|
121
|
-
font-size: var(--sapphire-
|
|
122
|
-
width: var(--sapphire-
|
|
111
|
+
color: var(--sapphire-semantic-color-content-default-secondary);
|
|
112
|
+
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
113
|
+
font-size: var(--sapphire-semantic-size-font-text-md);
|
|
114
|
+
width: var(--sapphire-global-size-generic-120);
|
|
123
115
|
}
|
|
124
116
|
|
|
125
117
|
.sapphire-calendar__button {
|
|
126
118
|
all: unset;
|
|
127
119
|
display: flex;
|
|
128
|
-
height: var(--sapphire-
|
|
120
|
+
height: var(--sapphire-semantic-size-height-control-lg);
|
|
129
121
|
align-items: center;
|
|
130
122
|
justify-content: center;
|
|
131
123
|
cursor: pointer;
|
|
@@ -134,61 +126,61 @@
|
|
|
134
126
|
box-sizing: border-box;
|
|
135
127
|
|
|
136
128
|
/* to prevent focus rings from overlapping with the neighbor button*/
|
|
137
|
-
padding: var(--sapphire-
|
|
129
|
+
padding: var(--sapphire-semantic-size-focus-ring);
|
|
138
130
|
|
|
139
131
|
width: 100%;
|
|
140
132
|
}
|
|
141
133
|
|
|
142
134
|
.sapphire-calendar__button .sapphire-calendar__button-text {
|
|
143
|
-
font-size: var(--sapphire-
|
|
144
|
-
color: var(--sapphire-
|
|
145
|
-
font-weight: var(--sapphire-
|
|
146
|
-
background-color: var(--sapphire-
|
|
135
|
+
font-size: var(--sapphire-semantic-size-font-text-md);
|
|
136
|
+
color: var(--sapphire-semantic-color-content-default-primary);
|
|
137
|
+
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
138
|
+
background-color: var(--sapphire-global-color-neutral-transparent);
|
|
147
139
|
display: flex;
|
|
148
140
|
justify-content: center;
|
|
149
141
|
align-items: center;
|
|
150
142
|
width: 100%;
|
|
151
143
|
height: 100%;
|
|
152
|
-
border-radius: var(--sapphire-
|
|
144
|
+
border-radius: var(--sapphire-semantic-size-height-control-lg);
|
|
153
145
|
transition-property: opacity, background-color, color;
|
|
154
146
|
transition-duration: 0s;
|
|
155
147
|
transition-timing-function: ease-in-out;
|
|
156
|
-
padding: 0 var(--sapphire-
|
|
148
|
+
padding: 0 var(--sapphire-semantic-size-spacing-50);
|
|
157
149
|
}
|
|
158
150
|
|
|
159
151
|
.sapphire-calendar__header-title {
|
|
160
|
-
font-weight: var(--sapphire-
|
|
161
|
-
font-size: var(--sapphire-
|
|
152
|
+
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
153
|
+
font-size: var(--sapphire-semantic-size-font-text-lg);
|
|
162
154
|
}
|
|
163
155
|
|
|
164
156
|
/* Customizations for day buttons */
|
|
165
157
|
.sapphire-calendar__button--day .sapphire-calendar__button-text {
|
|
166
158
|
width: calc(
|
|
167
|
-
var(--sapphire-
|
|
168
|
-
var(--sapphire-
|
|
159
|
+
var(--sapphire-global-size-generic-120) - 2 *
|
|
160
|
+
var(--sapphire-semantic-size-focus-ring)
|
|
169
161
|
);
|
|
170
162
|
height: calc(
|
|
171
|
-
var(--sapphire-
|
|
172
|
-
var(--sapphire-
|
|
163
|
+
var(--sapphire-global-size-generic-120) - 2 *
|
|
164
|
+
var(--sapphire-semantic-size-focus-ring)
|
|
173
165
|
);
|
|
174
166
|
padding: 0;
|
|
175
167
|
}
|
|
176
168
|
|
|
177
169
|
.sapphire-calendar__button:disabled,
|
|
178
170
|
.sapphire-calendar__button.is-disabled {
|
|
179
|
-
opacity: var(--sapphire-
|
|
171
|
+
opacity: var(--sapphire-semantic-opacity-disabled);
|
|
180
172
|
cursor: not-allowed;
|
|
181
173
|
}
|
|
182
174
|
|
|
183
175
|
.sapphire-calendar__button.is-focus .sapphire-calendar__button-text,
|
|
184
176
|
.sapphire-calendar__button:not(.js-focus):focus-visible
|
|
185
177
|
.sapphire-calendar__button-text {
|
|
186
|
-
outline: var(--sapphire-
|
|
187
|
-
var(--sapphire-
|
|
188
|
-
outline-offset: var(--sapphire-
|
|
178
|
+
outline: var(--sapphire-semantic-size-focus-ring) solid
|
|
179
|
+
var(--sapphire-semantic-color-focus-ring);
|
|
180
|
+
outline-offset: var(--sapphire-semantic-size-focus-ring);
|
|
189
181
|
z-index: 2;
|
|
190
|
-
background-color: var(--sapphire-
|
|
191
|
-
transition-duration: var(--sapphire-
|
|
182
|
+
background-color: var(--sapphire-global-color-neutral-transparent);
|
|
183
|
+
transition-duration: var(--sapphire-semantic-time-fade-quick);
|
|
192
184
|
}
|
|
193
185
|
|
|
194
186
|
.sapphire-calendar__button:not(:disabled):not(.is-disabled):not(:active):not(
|
|
@@ -199,8 +191,10 @@
|
|
|
199
191
|
.is-active
|
|
200
192
|
).is-hover
|
|
201
193
|
.sapphire-calendar__button-text {
|
|
202
|
-
background-color: var(
|
|
203
|
-
|
|
194
|
+
background-color: var(
|
|
195
|
+
--sapphire-semantic-color-background-action-secondary-hover
|
|
196
|
+
);
|
|
197
|
+
transition-duration: var(--sapphire-semantic-time-fade-quick);
|
|
204
198
|
}
|
|
205
199
|
|
|
206
200
|
.sapphire-calendar__button:not(:disabled):not(.is-disabled).is-active
|
|
@@ -209,8 +203,10 @@
|
|
|
209
203
|
.sapphire-calendar__button-text,
|
|
210
204
|
.sapphire-calendar__button:not(:disabled):not(.is-disabled):focus-visible:active
|
|
211
205
|
.sapphire-calendar__button-text {
|
|
212
|
-
background-color: var(
|
|
213
|
-
|
|
206
|
+
background-color: var(
|
|
207
|
+
--sapphire-semantic-color-background-action-secondary-active
|
|
208
|
+
);
|
|
209
|
+
transition-duration: var(--sapphire-semantic-time-fade-quick);
|
|
214
210
|
}
|
|
215
211
|
|
|
216
212
|
.sapphire-calendar__table[aria-readonly='true'] .sapphire-calendar__button {
|
|
@@ -219,15 +215,15 @@
|
|
|
219
215
|
|
|
220
216
|
.sapphire-calendar__button.sapphire-calendar__button--range-selection
|
|
221
217
|
.sapphire-calendar__button-text {
|
|
222
|
-
color: var(--sapphire-
|
|
218
|
+
color: var(--sapphire-semantic-color-content-selection-selected-default);
|
|
223
219
|
background-color: var(
|
|
224
|
-
--sapphire-
|
|
220
|
+
--sapphire-semantic-color-background-selection-selected-default
|
|
225
221
|
);
|
|
226
222
|
}
|
|
227
223
|
|
|
228
224
|
.sapphire-calendar__button.sapphire-calendar__button--range-selection {
|
|
229
225
|
background-color: var(
|
|
230
|
-
--sapphire-
|
|
226
|
+
--sapphire-semantic-color-background-selection-selected-default
|
|
231
227
|
);
|
|
232
228
|
}
|
|
233
229
|
|
|
@@ -240,7 +236,7 @@
|
|
|
240
236
|
):not(.is-disabled):not(:active):not(.is-active).is-hover
|
|
241
237
|
.sapphire-calendar__button-text {
|
|
242
238
|
background-color: var(
|
|
243
|
-
--sapphire-
|
|
239
|
+
--sapphire-semantic-color-background-selection-selected-hover
|
|
244
240
|
);
|
|
245
241
|
}
|
|
246
242
|
|
|
@@ -257,7 +253,7 @@
|
|
|
257
253
|
):not(.is-disabled):focus-visible:active
|
|
258
254
|
.sapphire-calendar__button-text {
|
|
259
255
|
background-color: var(
|
|
260
|
-
--sapphire-
|
|
256
|
+
--sapphire-semantic-color-background-selection-selected-active
|
|
261
257
|
);
|
|
262
258
|
}
|
|
263
259
|
|
|
@@ -268,7 +264,7 @@
|
|
|
268
264
|
):focus-visible
|
|
269
265
|
.sapphire-calendar__button-text {
|
|
270
266
|
background-color: var(
|
|
271
|
-
--sapphire-
|
|
267
|
+
--sapphire-semantic-color-background-selection-selected-default
|
|
272
268
|
);
|
|
273
269
|
}
|
|
274
270
|
|
|
@@ -280,9 +276,11 @@
|
|
|
280
276
|
.sapphire-calendar__button-text,
|
|
281
277
|
.sapphire-calendar__button.sapphire-calendar__button--range-selection.sapphire-calendar__button--selection-end
|
|
282
278
|
.sapphire-calendar__button-text {
|
|
283
|
-
background-color: var(
|
|
284
|
-
|
|
285
|
-
|
|
279
|
+
background-color: var(
|
|
280
|
+
--sapphire-semantic-color-background-action-primary-default
|
|
281
|
+
);
|
|
282
|
+
color: var(--sapphire-semantic-color-content-action-primary-default);
|
|
283
|
+
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
286
284
|
}
|
|
287
285
|
|
|
288
286
|
.sapphire-calendar__button:focus {
|
|
@@ -315,7 +313,9 @@
|
|
|
315
313
|
:disabled
|
|
316
314
|
):not(.is-disabled):not(:active):not(.is-active).is-hover
|
|
317
315
|
.sapphire-calendar__button-text {
|
|
318
|
-
background-color: var(
|
|
316
|
+
background-color: var(
|
|
317
|
+
--sapphire-semantic-color-background-action-primary-hover
|
|
318
|
+
);
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
.sapphire-calendar__button.sapphire-calendar__button--selected:not(
|
|
@@ -354,7 +354,9 @@
|
|
|
354
354
|
:disabled
|
|
355
355
|
):not(.is-disabled):focus-visible:active
|
|
356
356
|
.sapphire-calendar__button-text {
|
|
357
|
-
background-color: var(
|
|
357
|
+
background-color: var(
|
|
358
|
+
--sapphire-semantic-color-background-action-primary-active
|
|
359
|
+
);
|
|
358
360
|
}
|
|
359
361
|
|
|
360
362
|
.sapphire-calendar__button.sapphire-calendar__button--selected:not(
|
|
@@ -377,32 +379,34 @@
|
|
|
377
379
|
.js-focus
|
|
378
380
|
):focus-visible
|
|
379
381
|
.sapphire-calendar__button-text {
|
|
380
|
-
background-color: var(
|
|
382
|
+
background-color: var(
|
|
383
|
+
--sapphire-semantic-color-background-action-primary-default
|
|
384
|
+
);
|
|
381
385
|
}
|
|
382
386
|
|
|
383
387
|
.sapphire-calendar__button.sapphire-calendar__button--range-selection.sapphire-calendar__button--selection-start,
|
|
384
388
|
.sapphire-calendar__button.sapphire-calendar__button--range-selection.sapphire-calendar__button--range-start {
|
|
385
|
-
border-bottom-left-radius: var(--sapphire-
|
|
386
|
-
border-top-left-radius: var(--sapphire-
|
|
389
|
+
border-bottom-left-radius: var(--sapphire-semantic-size-height-control-lg);
|
|
390
|
+
border-top-left-radius: var(--sapphire-semantic-size-height-control-lg);
|
|
387
391
|
}
|
|
388
392
|
|
|
389
393
|
.sapphire-calendar__button.sapphire-calendar__button--range-selection.sapphire-calendar__button--selection-end,
|
|
390
394
|
.sapphire-calendar__button.sapphire-calendar__button--range-selection.sapphire-calendar__button--range-end {
|
|
391
|
-
border-bottom-right-radius: var(--sapphire-
|
|
392
|
-
border-top-right-radius: var(--sapphire-
|
|
395
|
+
border-bottom-right-radius: var(--sapphire-semantic-size-height-control-lg);
|
|
396
|
+
border-top-right-radius: var(--sapphire-semantic-size-height-control-lg);
|
|
393
397
|
}
|
|
394
398
|
|
|
395
399
|
.sapphire-calendar__button.sapphire-calendar__button--current::after {
|
|
396
400
|
content: '';
|
|
397
401
|
position: absolute;
|
|
398
402
|
z-index: 2;
|
|
399
|
-
height: var(--sapphire-
|
|
400
|
-
width: var(--sapphire-
|
|
401
|
-
border-radius: var(--sapphire-
|
|
403
|
+
height: var(--sapphire-global-size-static-10);
|
|
404
|
+
width: var(--sapphire-global-size-static-10);
|
|
405
|
+
border-radius: var(--sapphire-semantic-size-height-control-lg);
|
|
402
406
|
background-color: var(
|
|
403
|
-
--sapphire-
|
|
407
|
+
--sapphire-semantic-color-background-action-primary-default
|
|
404
408
|
);
|
|
405
|
-
bottom: var(--sapphire-
|
|
409
|
+
bottom: var(--sapphire-global-size-generic-20);
|
|
406
410
|
}
|
|
407
411
|
|
|
408
412
|
.sapphire-calendar__button.sapphire-calendar__button--selected:not(
|
|
@@ -411,7 +415,7 @@
|
|
|
411
415
|
.sapphire-calendar__button.sapphire-calendar__button--range-selection.sapphire-calendar__button--selection-start.sapphire-calendar__button--current::after,
|
|
412
416
|
.sapphire-calendar__button.sapphire-calendar__button--range-selection.sapphire-calendar__button--selection-end.sapphire-calendar__button--current::after {
|
|
413
417
|
background-color: var(
|
|
414
|
-
--sapphire-
|
|
418
|
+
--sapphire-semantic-color-content-action-primary-default
|
|
415
419
|
);
|
|
416
420
|
}
|
|
417
421
|
|
|
@@ -444,7 +448,7 @@
|
|
|
444
448
|
}
|
|
445
449
|
.sapphire-calendar__grid-page-animation--next .enter-active {
|
|
446
450
|
transform: translateX(0%);
|
|
447
|
-
transition: transform var(--sapphire-
|
|
451
|
+
transition: transform var(--sapphire-semantic-time-motion-slow) ease-in-out;
|
|
448
452
|
}
|
|
449
453
|
.sapphire-calendar__grid-page-animation--next .exit {
|
|
450
454
|
transform: translateX(0%);
|
|
@@ -452,7 +456,7 @@
|
|
|
452
456
|
}
|
|
453
457
|
.sapphire-calendar__grid-page-animation--next .exit-active {
|
|
454
458
|
transform: translateX(-100%);
|
|
455
|
-
transition: transform var(--sapphire-
|
|
459
|
+
transition: transform var(--sapphire-semantic-time-motion-slow) ease-in-out;
|
|
456
460
|
}
|
|
457
461
|
|
|
458
462
|
/* Previous page animation, applied on the wrapper, when previous grid(s) are animating in */
|
|
@@ -461,7 +465,7 @@
|
|
|
461
465
|
}
|
|
462
466
|
.sapphire-calendar__grid-page-animation--prev .enter-active {
|
|
463
467
|
transform: translateX(0%);
|
|
464
|
-
transition: transform var(--sapphire-
|
|
468
|
+
transition: transform var(--sapphire-semantic-time-motion-slow) ease-in-out;
|
|
465
469
|
}
|
|
466
470
|
.sapphire-calendar__grid-page-animation--prev .exit {
|
|
467
471
|
transform: translateX(0%);
|
|
@@ -469,5 +473,5 @@
|
|
|
469
473
|
}
|
|
470
474
|
.sapphire-calendar__grid-page-animation--prev .exit-active {
|
|
471
475
|
transform: translateX(100%);
|
|
472
|
-
transition: transform var(--sapphire-
|
|
476
|
+
transition: transform var(--sapphire-semantic-time-motion-slow) ease-in-out;
|
|
473
477
|
}
|