@plexui/styles 0.1.31 → 0.1.33

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 (50) hide show
  1. package/dist/es/components/Accordion/Accordion.module.css +16 -0
  2. package/dist/es/components/Badge/Badge.module.css +41 -8
  3. package/dist/es/components/Breadcrumb/Breadcrumb.module.css +1 -1
  4. package/dist/es/components/Button/Button.module.css +117 -64
  5. package/dist/es/components/Button/NavigationButton.module.css +27 -0
  6. package/dist/es/components/Card/Card.module.css +5 -3
  7. package/dist/es/components/Checkbox/Checkbox.module.css +80 -41
  8. package/dist/es/components/DataTable/DataTable.module.css +31 -5
  9. package/dist/es/components/DatePicker/Calendar.module.css +267 -3
  10. package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +20 -0
  11. package/dist/es/components/DateRangePicker/Calendar.module.css +205 -3
  12. package/dist/es/components/Dialog/Dialog.module.css +227 -50
  13. package/dist/es/components/EmptyMessage/EmptyMessage.module.css +58 -14
  14. package/dist/es/components/Field/Field.module.css +164 -2
  15. package/dist/es/components/FieldError/FieldError.module.css +13 -10
  16. package/dist/es/components/FieldGroup/FieldGroup.module.css +64 -5
  17. package/dist/es/components/FileUpload/FileUpload.module.css +103 -10
  18. package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +25 -14
  19. package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +20 -14
  20. package/dist/es/components/Indicator/LoadingIndicator.module.css +41 -6
  21. package/dist/es/components/Input/Input.module.css +126 -25
  22. package/dist/es/components/InputGroup/InputGroup.module.css +1 -1
  23. package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +27 -147
  24. package/dist/es/components/Menu/Menu.module.css +162 -20
  25. package/dist/es/components/OTPInput/OTPInput.module.css +11 -3
  26. package/dist/es/components/Page/Page.module.css +140 -11
  27. package/dist/es/components/RadioGroup/RadioGroup.module.css +17 -11
  28. package/dist/es/components/Select/Select.module.css +118 -13
  29. package/dist/es/components/SelectControl/SelectControl.module.css +83 -11
  30. package/dist/es/components/ShimmerText/ShimmerText.module.css +7 -0
  31. package/dist/es/components/Sidebar/Sidebar.module.css +74 -18
  32. package/dist/es/components/Skeleton/Skeleton.module.css +4 -0
  33. package/dist/es/components/Slider/Slider.module.css +53 -16
  34. package/dist/es/components/Sortable/Sortable.module.css +13 -4
  35. package/dist/es/components/Switch/Switch.module.css +16 -7
  36. package/dist/es/components/Table/Table.module.css +4 -2
  37. package/dist/es/components/Tabs/Tabs.module.css +39 -6
  38. package/dist/es/components/TagInput/TagInput.module.css +64 -19
  39. package/dist/es/components/TextLink/TextLink.module.css +4 -4
  40. package/dist/es/components/Textarea/Textarea.module.css +1 -1
  41. package/dist/es/components/Toast/Toast.module.css +72 -2
  42. package/dist/es/components/Toolbar/Toolbar.module.css +389 -0
  43. package/dist/es/components/Tooltip/Tooltip.module.css +1 -1
  44. package/dist/es/styles/base.css +1 -1
  45. package/dist/es/styles/mobile-materials.css +27 -0
  46. package/dist/es/styles/mobile-surfaces.css +39 -0
  47. package/dist/es/styles/touch.css +287 -54
  48. package/dist/es/styles/variables-components.css +61 -0
  49. package/package.json +1 -1
  50. package/postcss/mixins.mjs +1 -1
@@ -25,34 +25,34 @@
25
25
  height: 1px !important;
26
26
  transform: none !important;
27
27
  }.Checkbox {
28
+ --checkbox-paint-border-color: var(--alpha-16);
29
+ --checkbox-paint-background: transparent;
30
+
28
31
  position: relative;
29
32
  display: inline-flex;
30
33
  align-items: center;
31
34
  justify-content: center;
32
35
  flex-shrink: 0;
33
- width: var(--checkbox-indicator-size);
34
- max-width: var(--checkbox-indicator-size);
35
- height: var(--checkbox-indicator-size);
36
+ width: var(--checkbox-target-size, var(--checkbox-indicator-size));
37
+ max-width: var(--checkbox-target-size, var(--checkbox-indicator-size));
38
+ height: var(--checkbox-target-size, var(--checkbox-indicator-size));
36
39
  /* Center indicator with first line of label text (mirrors RadioGroup's RadioIndicatorWrapper approach) */
37
- margin-top: calc((var(--checkbox-label-line-height) - var(--checkbox-indicator-size)) / 2);
40
+ margin-top: var(--checkbox-target-offset, calc((var(--checkbox-label-line-height) - var(--checkbox-indicator-size)) / 2));
38
41
  padding: 0;
39
- border: 1px solid var(--alpha-16);
40
- border-radius: var(--radius-xs);
42
+ border: 0;
43
+ border-radius: var(--checkbox-radius, var(--radius-xs));
41
44
  background-color: transparent;
42
45
  cursor: pointer;
43
- transition:
44
- border-color 150ms ease,
45
- background-color 150ms ease;
46
46
  }
47
- @media (hover: hover) and (pointer: fine) {.Checkbox:where(:not([data-disabled], [data-state="checked"])):hover {
48
- border-color: var(--alpha-20);
47
+ @media (hover: hover) and (pointer: fine) {.Checkbox:where(:not([data-disabled], [data-state="checked"])):hover:where(:not(:root[data-input="touch"] *)) {
48
+ --checkbox-paint-border-color: var(--alpha-20);
49
49
  }
50
50
  }
51
51
 
52
52
  .Checkbox[data-state="indeterminate"],
53
53
  .Checkbox[data-state="checked"] {
54
- border-color: var(--gray-900);
55
- background-color: var(--gray-900);
54
+ --checkbox-paint-border-color: var(--checkbox-checked-background, var(--gray-900));
55
+ --checkbox-paint-background: var(--checkbox-checked-background, var(--gray-900));
56
56
  }
57
57
 
58
58
  .Checkbox:focus {
@@ -68,13 +68,13 @@
68
68
  Invalid
69
69
  ============================================= */
70
70
  .Checkbox[aria-invalid="true"] {
71
- border-color: var(--input-border-color-invalid);
71
+ --checkbox-paint-border-color: var(--input-border-color-invalid);
72
72
  }
73
73
 
74
74
  .Checkbox[aria-invalid="true"][data-state="indeterminate"],
75
75
  .Checkbox[aria-invalid="true"][data-state="checked"] {
76
- border-color: var(--input-border-color-invalid);
77
- background-color: var(--input-border-color-invalid);
76
+ --checkbox-paint-border-color: var(--input-border-color-invalid);
77
+ --checkbox-paint-background: var(--input-border-color-invalid);
78
78
  }
79
79
 
80
80
  .Checkbox[data-disabled] {
@@ -92,24 +92,37 @@
92
92
  Ghost variant
93
93
  ============================================= */
94
94
  .Checkbox[data-variant="ghost"] {
95
- border-color: transparent;
96
- background-color: transparent;
95
+ --checkbox-paint-border-color: transparent;
96
+ --checkbox-paint-background: transparent;
97
97
 
98
98
  }
99
- @media (hover: hover) and (pointer: fine) {.Checkbox[data-variant="ghost"]:where(:not([data-disabled], [data-state="checked"])):hover {
100
- border-color: transparent;
101
- }.Checkbox[data-variant="ghost"]:where(:not([data-disabled], [data-state="checked"])):hover, :where([data-theme="light"]) .Checkbox[data-variant="ghost"]:where(:not([data-disabled], [data-state="checked"])):hover {
102
- background-color: var(--gray-50);
103
- }:where([data-theme="dark"]) .Checkbox[data-variant="ghost"]:where(:not([data-disabled], [data-state="checked"])):hover {
104
- background-color: var(--gray-800);
99
+ @media (hover: hover) and (pointer: fine) {.Checkbox[data-variant="ghost"]:where(:not([data-disabled], [data-state="checked"])):hover:where(:not(:root[data-input="touch"] *)) {
100
+ --checkbox-paint-border-color: transparent;
101
+ }.Checkbox[data-variant="ghost"]:where(:not([data-disabled], [data-state="checked"])):hover:where(:not(:root[data-input="touch"] *)), :where([data-theme="light"]) .Checkbox[data-variant="ghost"]:where(:not([data-disabled], [data-state="checked"])):hover:where(:not(:root[data-input="touch"] *)) {
102
+ --checkbox-paint-background: var(--gray-50);
103
+ }:where([data-theme="dark"]) .Checkbox[data-variant="ghost"]:where(:not([data-disabled], [data-state="checked"])):hover:where(:not(:root[data-input="touch"] *)) {
104
+ --checkbox-paint-background: var(--gray-800);
105
105
  }
106
106
  }
107
107
 
108
108
  .Checkbox[data-variant="ghost"][data-state="indeterminate"],
109
109
  .Checkbox[data-variant="ghost"][data-state="checked"] {
110
- border-color: transparent;
111
- background-color: transparent;
112
- }.CheckMark {
110
+ --checkbox-paint-border-color: transparent;
111
+ --checkbox-paint-background: transparent;
112
+ }/* The interaction slot can grow independently of the indicator's paint. */.IndicatorBox {
113
+ position: relative;
114
+ box-sizing: border-box;
115
+ flex-shrink: 0;
116
+ width: var(--checkbox-indicator-size);
117
+ height: var(--checkbox-indicator-size);
118
+ border: var(--checkbox-border-width, 1px) solid var(--checkbox-paint-border-color);
119
+ border-radius: inherit;
120
+ background-color: var(--checkbox-paint-background);
121
+ pointer-events: none;
122
+ transition:
123
+ border-color 150ms ease,
124
+ background-color 150ms ease;
125
+ }.CheckMark {
113
126
  position: absolute;
114
127
  top: 0;
115
128
  left: 0;
@@ -120,11 +133,13 @@ background-color: var(--gray-800);
120
133
  transition:
121
134
  opacity 150ms ease,
122
135
  transform 150ms ease;
136
+
137
+ /* CheckMark arms */
123
138
  }
124
139
 
125
140
  /* The indicator stays mounted, so a long list of boxes cleared at once costs
126
141
  no style pass per box and first render plays no animation. */
127
- [data-state="unchecked"] > .CheckMark {
142
+ .Checkbox[data-state="unchecked"] .CheckMark {
128
143
  opacity: 0;
129
144
  }
130
145
 
@@ -135,28 +150,30 @@ background-color: var(--gray-800);
135
150
  [data-state="indeterminate"] .CheckMark::before {
136
151
  opacity: 0;
137
152
  }
138
-
139
- /* CheckMark arms */
140
153
  .CheckMark::before,
141
154
  .CheckMark::after {
142
155
  position: absolute;
143
156
  display: block;
144
- background: var(--gray-0);
157
+ background: var(--checkbox-checkmark-color, var(--gray-0));
145
158
  content: "";
146
159
  will-change: transform;
147
160
  }
148
161
  @starting-style {
149
162
 
150
- .Container:is(:hover, :focus-within) .CheckMark::before, .Container:is(:hover, :focus-within) .CheckMark::after {
163
+ .Container:focus-within .CheckMark::before,
164
+ .Container:focus-within .CheckMark::after {
151
165
  transform: scale(0)
152
166
  }
153
167
  }
154
168
 
155
- /* Ghost variant — checkmark uses text color instead of white */
156
- .Checkbox[data-variant="ghost"] .CheckMark::before,
157
- .Checkbox[data-variant="ghost"] .CheckMark::after {
158
- background: var(--gray-900);
169
+ @media (hover: hover) and (pointer: fine) {
170
+ @starting-style {
171
+ .Container:hover:where(:not(:root[data-input="touch"] *)) .CheckMark::before,
172
+ .Container:hover:where(:not(:root[data-input="touch"] *)) .CheckMark::after {
173
+ transform: scale(0)
159
174
  }
175
+ }
176
+ }
160
177
 
161
178
  .CheckMark::before {
162
179
  top: 0;
@@ -180,11 +197,32 @@ background-color: var(--gray-800);
180
197
  height: 2px;
181
198
  transform-origin: 0 100%;
182
199
  transition: transform 100ms ease 160ms;
183
- }.Label {
200
+ }/* Ghost: the PlexUI Check icon, and Minus when indeterminate, in the text color. */.GhostMark {
201
+ position: absolute;
202
+ inset: 0;
203
+ display: flex;
204
+ align-items: center;
205
+ justify-content: center;
206
+ color: var(--checkbox-ghost-check-color, var(--gray-900));
207
+ transition: opacity 150ms ease;
208
+ }
209
+
210
+ .Checkbox[data-state="unchecked"] .GhostMark {
211
+ opacity: 0;
212
+ }.GhostCheck,
213
+ .GhostDash {
214
+ flex-shrink: 0;
215
+ width: var(--checkbox-ghost-icon-size, var(--checkbox-indicator-size));
216
+ height: var(--checkbox-ghost-icon-size, var(--checkbox-indicator-size));
217
+ }.Checkbox[data-state="indeterminate"] .GhostCheck,
218
+ .Checkbox:not([data-state="indeterminate"]) .GhostDash {
219
+ display: none;
220
+ }.Label {
184
221
  display: block;
222
+ padding-block: var(--checkbox-label-inset, 0px);
185
223
  min-height: var(--checkbox-label-line-height);
186
224
  cursor: pointer;
187
- font-size: 14px;
225
+ font-size: var(--checkbox-label-font-size, 14px);
188
226
  line-height: var(--checkbox-label-line-height);
189
227
  }
190
228
 
@@ -196,6 +234,7 @@ background-color: var(--gray-800);
196
234
  padding-right: calc(var(--spacing) * 3);
197
235
  }/* Label with a second line: the group carries the gap, the label inside it does not */.LabelGroup {
198
236
  display: flex;
237
+ padding-block: var(--checkbox-label-inset, 0px);
199
238
  flex-direction: column;
200
239
  }
201
240
 
@@ -208,11 +247,11 @@ background-color: var(--gray-800);
208
247
  }
209
248
 
210
249
  .LabelGroup > .Label {
211
- padding-inline: 0;
250
+ padding: 0;
212
251
  }.Description {
213
252
  color: var(--color-text-secondary);
214
- font-size: var(--font-text-xs-size);
215
- line-height: var(--font-text-xs-line-height);
253
+ font-size: var(--checkbox-description-font-size, var(--font-text-xs-size));
254
+ line-height: var(--checkbox-description-line-height, var(--font-text-xs-line-height));
216
255
  }
217
256
 
218
257
  [data-disabled] .Description {
@@ -3,11 +3,16 @@
3
3
  flex: 1;
4
4
  flex-direction: column;
5
5
  width: 100%;
6
+ min-width: 0;
6
7
  min-height: 0;
7
8
  }.TableContainer {
8
9
  flex: 1;
10
+ min-width: 0;
9
11
  min-height: 0;
10
12
  overflow: auto;
13
+ }/* Dense Phone tables keep their columns inside Table's horizontal scroller. */.DataTable .TableContainer :where(table) {
14
+ table-layout: var(--data-table-layout, fixed);
15
+ min-width: var(--data-table-min-width, auto);
11
16
  }.EmptyCell {
12
17
  height: 200px;
13
18
  vertical-align: middle;
@@ -37,9 +42,11 @@
37
42
  }/* The row selection column: as wide as its checkboxes (the table's fixed
38
43
  layout takes column widths from the header row) */.SelectColumn {
39
44
  box-sizing: content-box;
40
- width: var(--checkbox-indicator-size);
45
+ width: var(--checkbox-target-size, var(--checkbox-indicator-size));
41
46
  }.Pagination {
42
47
  display: flex;
48
+ flex-wrap: var(--data-table-pagination-wrap, nowrap);
49
+ gap: var(--data-table-pagination-gap, 0px);
43
50
  align-items: center;
44
51
  justify-content: space-between;
45
52
  padding: calc(var(--spacing) * 3) 0;
@@ -50,6 +57,7 @@
50
57
  gap: calc(var(--spacing) * 2);
51
58
  }.PaginationRight {
52
59
  display: flex;
60
+ flex-wrap: var(--data-table-pagination-wrap, nowrap);
53
61
  align-items: center;
54
62
  gap: calc(var(--spacing) * 3);
55
63
  }.PaginationLabel {
@@ -59,6 +67,10 @@
59
67
  color: var(--color-text-secondary);
60
68
  font-size: var(--font-text-sm-size);
61
69
  }.PaginationSelect {
70
+ box-sizing: border-box;
71
+ flex-shrink: 0;
72
+ min-width: var(--data-table-control-target, auto);
73
+ min-height: var(--data-table-control-target, auto);
62
74
  -webkit-appearance: none;
63
75
  -moz-appearance: none;
64
76
  appearance: none;
@@ -81,11 +93,15 @@
81
93
  outline-offset: -1px;
82
94
  }.PaginationButtons {
83
95
  display: flex;
96
+ flex-shrink: 0;
84
97
  align-items: center;
85
98
  gap: calc(var(--spacing) * 1);
86
99
  }.ColumnHeaderButton {
87
100
  all: unset;
101
+ box-sizing: border-box;
88
102
  display: inline-flex;
103
+ min-width: var(--data-table-control-target, auto);
104
+ min-height: var(--data-table-control-target, auto);
89
105
  align-items: center;
90
106
  gap: calc(var(--spacing) * 1);
91
107
  color: inherit;
@@ -97,15 +113,25 @@
97
113
  cursor: pointer;
98
114
  }
99
115
 
100
- .ColumnHeaderButton:hover {
101
- color: var(--color-text);
116
+ .ColumnHeaderButton:focus-visible {
117
+ outline: 2px solid var(--color-ring);
118
+ outline-offset: 2px;
119
+ }
120
+
121
+ @media (hover: hover) and (pointer: fine) {
122
+ .ColumnHeaderButton:hover:where(:not(:root[data-input="touch"] *)) {
123
+ color: var(--color-text);
124
+ }
102
125
  }.SortIcon {
103
126
  display: inline-flex;
127
+ flex-shrink: 0;
104
128
  opacity: 0.4;
105
129
  }
106
130
 
107
- :where(.ColumnHeaderButton:hover) .SortIcon {
108
- opacity: 0.7;
131
+ @media (hover: hover) and (pointer: fine) {
132
+ :where(.ColumnHeaderButton:hover:where(:not(:root[data-input="touch"] *))) .SortIcon {
133
+ opacity: 0.7;
134
+ }
109
135
  }
110
136
 
111
137
  .SortIcon svg {
@@ -1,6 +1,9 @@
1
1
  @layer components {.CalendarContainer {
2
+ --calendar-width: 210px;
3
+ --calendar-step: calc(var(--calendar-width) + 32px);
4
+
2
5
  position: relative;
3
- width: 210px;
6
+ width: var(--calendar-width);
4
7
  /* Default size of the calendar is assumed to be 224px */
5
8
  /* and then is dynamically set via JS measuring */
6
9
  height: 224px;
@@ -79,6 +82,8 @@
79
82
  }.CalendarWrapper {
80
83
  overflow: hidden;
81
84
  padding: 10px 12px 12px;
85
+ }.CalendarViewport {
86
+ display: contents;
82
87
  }.CalendarRange {
83
88
  transition: transform 0.25s var(--cubic-move);
84
89
  }.Calendar {
@@ -87,7 +92,7 @@
87
92
 
88
93
  position: absolute;
89
94
  top: 0;
90
- width: 210px;
95
+ width: var(--calendar-width);
91
96
  font-size: 14px;
92
97
  }
93
98
 
@@ -168,7 +173,7 @@ background-color: var(--alpha-08);
168
173
  }
169
174
 
170
175
  @media (hover: hover) and (pointer: fine) {
171
- .InteractiveDay:hover::before {
176
+ .InteractiveDay:hover:where(:not(:root[data-input="touch"] *))::before {
172
177
  opacity: 1;
173
178
  }
174
179
  }
@@ -267,5 +272,264 @@ background-color: var(--alpha-08);
267
272
  font-size: 13px;
268
273
  font-weight: var(--font-weight-semibold);
269
274
  line-height: 1;
275
+ }/* The caption keeps its compact desktop abbreviations. */.LongDayLabel {
276
+ display: none;
277
+ }/* Keep 44px edge circles concentric with the popup corners. */@media (max-width: 767px) {
278
+ .Popover[role="dialog"],
279
+ .CalendarWrapper {
280
+ --calendar-gutter: clamp(3px, calc((100vw - 308px) / 4), 16px);
281
+ --calendar-inner-padding: min(max(0px, calc(var(--menu-radius, 32px) - 22px)), var(--calendar-gutter));
282
+ --calendar-header-height: calc(44px + 2 * var(--calendar-inner-padding));
283
+ --calendar-caption-inset: 96px;
284
+ }
285
+
286
+ .Popover[role="dialog"] {
287
+ /* The narrow-screen radius follows the available inset; it is a fit
288
+ constraint, not a separate measured native corner radius. */
289
+ --popover-radius: calc(22px + var(--calendar-inner-padding));
290
+
291
+ background: color-mix(in srgb, var(--color-surface-elevated) 70%, transparent);
292
+ box-shadow: var(--menu-shadow, var(--shadow), var(--shadow-hairline));
293
+ backdrop-filter: blur(50px);
294
+ }
295
+
296
+ .CalendarWrapper {
297
+ /* Preserve the outer collision gutter; the inner inset follows the
298
+ corner geometry while seven 44px targets still fit at 320px. */
299
+ box-sizing: border-box;
300
+ width: min(370px, calc(100vw - 2 * var(--calendar-gutter)), var(--radix-popover-content-available-width, 370px));
301
+ padding: 0 var(--calendar-inner-padding);
302
+ }
303
+
304
+ .CalendarContainer {
305
+ --cell-size: 44px;
306
+ --cell-vertical-gutter: 7px;
307
+ --calendar-width: min(350px, calc(100vw - 2 * var(--calendar-gutter) - 2 * var(--calendar-inner-padding)), calc(var(--radix-popover-content-available-width, 370px) - 2 * var(--calendar-inner-padding)));
308
+
309
+ width: var(--calendar-width);
310
+ }
311
+
312
+ /* The month slides inside a stationary viewport. Only the title band
313
+ reserves the navigation area; weekday labels and days keep the full width. */
314
+ .CalendarViewport {
315
+ position: absolute;
316
+ inset: 0;
317
+ display: block;
318
+ clip-path: polygon(
319
+ 0 0,
320
+ calc(100% - var(--calendar-caption-inset)) 0,
321
+ calc(100% - var(--calendar-caption-inset)) var(--calendar-header-height),
322
+ 100% var(--calendar-header-height),
323
+ 100% 100%,
324
+ 0 100%
325
+ );
326
+ }
327
+
328
+ .Calendar {
329
+ --cell-size: 44px;
330
+ --cell-vertical-gutter: 7px;
331
+
332
+ box-sizing: border-box;
333
+ padding-bottom: var(--calendar-inner-padding);
334
+ }
335
+
336
+ .Previous,
337
+ .Next {
338
+ top: var(--calendar-inner-padding);
339
+ left: auto;
340
+ background: none;
341
+ }
342
+
343
+ .Previous {
344
+ right: 44px;
345
+ }
346
+
347
+ .Next {
348
+ right: 0;
349
+ }
350
+
351
+ .Previous::before,
352
+ .Previous::after,
353
+ .Next::before,
354
+ .Next::after {
355
+ display: none;
356
+ }
357
+
358
+ /* Base Button supplies the active circle. Idle and hover remain
359
+ transparent; the navigation target stays 44px throughout. */
360
+ .Previous button[type="button"],
361
+ .Next button[type="button"] {
362
+ --button-size: 44px;
363
+ --button-gutter: 0px;
364
+ --button-icon-size: 24px;
365
+ --button-text-color: var(--color-text-primary);
366
+ --button-text-color-hover: var(--color-text-primary);
367
+ --button-radius: var(--radius-full);
368
+ --button-mobile-material-background: transparent;
369
+ --button-mobile-material-hover: transparent;
370
+ --button-mobile-material-active: var(--button-background-color-active);
371
+ --button-mobile-material-shadow: none;
372
+ --button-mobile-material-backdrop-filter: none;
373
+ --button-mobile-material-opacity: 0;
374
+ --button-mobile-material-scale: 1;
375
+
376
+ width: 44px;
377
+ padding: 0;
378
+ }
379
+
380
+ /* Keep the agreed Phone focus treatment: real keyboard focus, no drawn ring. */
381
+ .Previous button[type="button"]::after,
382
+ .Next button[type="button"]::after {
383
+ display: none;
384
+ }
385
+
386
+ /* Equal insets above and below the 44px navigation targets. */
387
+ .MonthLabel {
388
+ box-sizing: border-box;
389
+ justify-content: flex-start;
390
+ height: var(--calendar-header-height);
391
+ padding: 0 var(--calendar-caption-inset) 0 max(0px, calc(var(--field-row-padding-inline, 16px) - var(--calendar-inner-padding)));
392
+ margin: 0;
393
+ font-size: 17px;
394
+ font-weight: 590;
395
+ line-height: 22px;
396
+ letter-spacing: -0.43px;
397
+ }
398
+
399
+ .Week {
400
+ display: grid;
401
+ grid-template-columns: repeat(7, var(--cell-size));
402
+ justify-content: space-between;
403
+ }
404
+
405
+ .WeekdayHeader {
406
+ align-items: center;
407
+ height: 20px;
408
+ margin-bottom: 3px;
409
+ }
410
+
411
+ .DayLabel {
412
+ width: var(--cell-size);
413
+ height: 18px;
414
+ color: var(--color-text-tertiary);
415
+ font-size: 13px;
416
+ font-weight: 590;
417
+ line-height: 18px;
418
+ text-transform: uppercase;
419
+ }
420
+
421
+ .ShortDayLabel {
422
+ display: none;
423
+ }
424
+
425
+ .LongDayLabel {
426
+ display: inline;
427
+ }
428
+
429
+ .InteractiveDay {
430
+ padding: 0;
431
+ font-size: 17px;
432
+ line-height: 22px;
433
+ }
434
+
435
+ .TodayDot {
436
+ display: none;
437
+ }
438
+ }@media (max-width: 767px) {
439
+ .MonthLabelSpacer {
440
+ height: var(--calendar-header-height);
441
+ margin: 0;
442
+ }
443
+
444
+ .DropdownCaption {
445
+ right: var(--calendar-caption-inset);
446
+ justify-content: flex-start;
447
+ height: var(--calendar-header-height);
448
+ padding-top: 0;
449
+ }
450
+
451
+ .DropdownCaption > * {
452
+ --select-control-size: 28px;
453
+ --select-control-font-size: 17px;
454
+ --select-control-gap: 4px;
455
+ }
456
+
457
+ .TimeFooter {
458
+ box-sizing: border-box;
459
+ height: 52px;
460
+ padding-top: 0;
461
+ border-top-width: 0.5px;
462
+ margin-top: 0;
463
+ }
464
+
465
+ .TimeLabel {
466
+ color: var(--color-text);
467
+ font-size: 17px;
468
+ line-height: 22px;
469
+ }
470
+
471
+ .TimeInputGroup {
472
+ position: relative;
473
+ box-sizing: border-box;
474
+ justify-content: center;
475
+ gap: 0;
476
+ width: 88px;
477
+ height: 44px;
478
+ padding: 0;
479
+ border-radius: var(--radius-full);
480
+ background: none;
481
+ }
482
+
483
+ /* Keep the compact pill separate from the two adjacent touch targets. */
484
+ .TimeInputGroup::before {
485
+ position: absolute;
486
+ top: 50%;
487
+ left: 50%;
488
+ width: 86px;
489
+ height: 34px;
490
+ border-radius: inherit;
491
+ background: var(--color-background-secondary-soft-alpha);
492
+ content: "";
493
+ pointer-events: none;
494
+ transform: translate(-50%, -50%);
495
+ }
496
+
497
+ .TimeField {
498
+ position: relative;
499
+ box-sizing: border-box;
500
+ flex: 0 0 44px;
501
+ width: 44px;
502
+ height: 44px;
503
+ border-radius: 4px;
504
+ background: none;
505
+ font-size: 17px;
506
+ font-weight: var(--font-weight-normal);
507
+ line-height: 22px;
508
+ }
509
+
510
+ .TimeField:focus {
511
+ background: none;
512
+ outline-offset: -6px;
513
+ }
514
+
515
+ .TimeSeparator {
516
+ position: absolute;
517
+ top: 50%;
518
+ left: 50%;
519
+ color: var(--color-text);
520
+ pointer-events: none;
521
+ transform: translate(-50%, -50%);
522
+ font-size: 17px;
523
+ font-weight: var(--font-weight-normal);
524
+ line-height: 22px;
525
+ }
526
+ }@media (prefers-reduced-motion: reduce) {
527
+ .CalendarContainer {
528
+ --calendar-height-duration: 0ms;
529
+ }
530
+
531
+ .CalendarRange {
532
+ transition: none;
533
+ }
270
534
  }
271
535
  }
@@ -0,0 +1,20 @@
1
+ @layer components {.DesktopIcon {
2
+ display: block;
3
+ flex-shrink: 0;
4
+ width: var(--button-icon-size);
5
+ height: var(--button-icon-size);
6
+ }.PhoneIcon {
7
+ display: none;
8
+ }@media (max-width: 767px) {
9
+ .DesktopIcon {
10
+ display: none;
11
+ }
12
+
13
+ .PhoneIcon {
14
+ display: block;
15
+ flex-shrink: 0;
16
+ width: 15px;
17
+ height: 24px;
18
+ }
19
+ }
20
+ }