@plexui/styles 0.1.46 → 0.3.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/dist/es/components/Accordion/Accordion.module.css +54 -1
- package/dist/es/components/Alert/Alert.module.css +75 -37
- package/dist/es/components/Button/Button.module.css +36 -28
- package/dist/es/components/ButtonGroup/ButtonGroup.module.css +15 -3
- package/dist/es/components/ColorPicker/ColorPicker.module.css +42 -70
- package/dist/es/components/ContextMenu/ContextMenu.module.css +1 -1
- package/dist/es/components/DatePicker/Calendar.module.css +17 -15
- package/dist/es/components/DateRangePicker/Calendar.module.css +17 -69
- package/dist/es/components/Dialog/Dialog.module.css +169 -70
- package/dist/es/components/EmptyMessage/EmptyMessage.module.css +12 -8
- package/dist/es/components/Field/Field.module.css +56 -22
- package/dist/es/components/FieldGroup/FieldGroup.module.css +5 -5
- package/dist/es/components/FileUpload/FileUpload.module.css +2 -2
- package/dist/es/components/Input/Input.module.css +100 -18
- package/dist/es/components/Menu/Menu.module.css +38 -42
- package/dist/es/components/Page/Page.module.css +38 -0
- package/dist/es/components/Popover/Popover.module.css +10 -11
- package/dist/es/components/ProgressSteps/ProgressSteps.module.css +17 -0
- package/dist/es/components/RadioGroup/RadioGroup.module.css +7 -3
- package/dist/es/components/Select/Select.module.css +304 -42
- package/dist/es/components/SelectControl/SelectControl.module.css +34 -10
- package/dist/es/components/Sidebar/Sidebar.module.css +6 -4
- package/dist/es/components/Slider/Slider.module.css +46 -2
- package/dist/es/components/Sortable/Sortable.module.css +3 -2
- package/dist/es/components/StatsCard/StatsCard.module.css +269 -0
- package/dist/es/components/Stepper/Stepper.module.css +7 -4
- package/dist/es/components/SwipeActions/SwipeActions.module.css +32 -17
- package/dist/es/components/Switch/Switch.module.css +6 -5
- package/dist/es/components/TabBar/TabBar.module.css +128 -12
- package/dist/es/components/Tabs/Tabs.module.css +240 -45
- package/dist/es/components/Toast/Toast.module.css +47 -24
- package/dist/es/components/Toolbar/Toolbar.module.css +120 -62
- package/dist/es/styles/geist-mono-fonts/LICENSE +93 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-ext-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-latin-ext-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-latin-ext-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-latin-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-latin-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-symbols2-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-symbols2-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-vietnamese-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-vietnamese-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono.css +124 -0
- package/dist/es/styles/index.css +3 -0
- package/dist/es/styles/inter-fonts/LICENSE +93 -0
- package/dist/es/styles/inter-fonts/inter-cyrillic-ext-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-cyrillic-ext-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-cyrillic-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-cyrillic-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-greek-ext-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-greek-ext-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-greek-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-greek-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-latin-ext-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-latin-ext-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-latin-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-latin-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-vietnamese-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-vietnamese-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter.css +142 -0
- package/dist/es/styles/mobile-materials.css +65 -24
- package/dist/es/styles/tailwind-utilities.css +8 -0
- package/dist/es/styles/touch.css +357 -169
- package/dist/es/styles/variables-components.css +255 -138
- package/dist/es/styles/variables-semantic.css +30 -5
- package/dist/es/styles/variables-tailwind-theme.css +2 -4
- package/dist/es/styles/variables-tokens-root.css +70 -4
- package/package.json +1 -1
- package/dist/es/components/StatCard/StatCard.module.css +0 -234
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
@layer components {/* The system color picker,
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
@layer components {/* The system color picker, as iOS 27.2 lays out UIColorPickerViewController (iPhone 17; the iOS 26 kit's Color
|
|
2
|
+
Picker - iPhone 0:5275 before it): a segmented control over the grid, spectrum or sliders, the Opacity slider, a
|
|
3
|
+
separator, then the current color and the saved colors. On a phone the sizes are the native ones (touch.css); on a
|
|
4
|
+
desktop the same layout in PlexUI sizes. */.ColorPicker {
|
|
4
5
|
display: flex;
|
|
5
6
|
flex-direction: column;
|
|
6
7
|
width: var(--color-picker-width);
|
|
@@ -8,48 +9,9 @@
|
|
|
8
9
|
color: var(--color-text);
|
|
9
10
|
}.Modes {
|
|
10
11
|
margin-bottom: var(--color-picker-modes-gap);
|
|
11
|
-
}/* On a phone the Mode control
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
selected and Medium otherwise. The class with both attributes outranks the touch.css tokens on the same
|
|
15
|
-
element (both in the kit's layer). */@media (max-width: 767px) {
|
|
16
|
-
.Modes[data-variant="segmented"][data-orientation="horizontal"] {
|
|
17
|
-
--segmented-control-size: 32px;
|
|
18
|
-
--segmented-control-gutter: 2px;
|
|
19
|
-
--segmented-control-gap: 4px;
|
|
20
|
-
--segmented-control-thumb-outset: 0px;
|
|
21
|
-
--segmented-control-option-gutter: 6px;
|
|
22
|
-
--segmented-control-font-size: 13.333px;
|
|
23
|
-
--segmented-control-line-height: 18px;
|
|
24
|
-
--segmented-control-font-weight: 510;
|
|
25
|
-
--segmented-control-active-font-weight: 590;
|
|
26
|
-
--segmented-control-background: var(--color-picker-mobile-mode-background);
|
|
27
|
-
--segmented-control-sheen: none;
|
|
28
|
-
--segmented-control-shadow: none;
|
|
29
|
-
--segmented-control-backdrop-filter: none;
|
|
30
|
-
--segmented-control-thumb-background: var(--color-picker-mobile-mode-thumb-background);
|
|
31
|
-
/* Every label of the plain control is primary; the weight marks the selection. */
|
|
32
|
-
--color-text-secondary: var(--color-text);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
:where([data-plex-layout="phone"]) .Modes[data-variant="segmented"][data-orientation="horizontal"] {
|
|
36
|
-
--segmented-control-size: 32px;
|
|
37
|
-
--segmented-control-gutter: 2px;
|
|
38
|
-
--segmented-control-gap: 4px;
|
|
39
|
-
--segmented-control-thumb-outset: 0px;
|
|
40
|
-
--segmented-control-option-gutter: 6px;
|
|
41
|
-
--segmented-control-font-size: 13.333px;
|
|
42
|
-
--segmented-control-line-height: 18px;
|
|
43
|
-
--segmented-control-font-weight: 510;
|
|
44
|
-
--segmented-control-active-font-weight: 590;
|
|
45
|
-
--segmented-control-background: var(--color-picker-mobile-mode-background);
|
|
46
|
-
--segmented-control-sheen: none;
|
|
47
|
-
--segmented-control-shadow: none;
|
|
48
|
-
--segmented-control-backdrop-filter: none;
|
|
49
|
-
--segmented-control-thumb-background: var(--color-picker-mobile-mode-thumb-background);
|
|
50
|
-
/* Every label of the plain control is primary; the weight marks the selection. */
|
|
51
|
-
--color-text-secondary: var(--color-text);
|
|
52
|
-
}.Body {
|
|
12
|
+
}/* On a phone the Mode control is the small plain segmented control (touch.css): the iOS 27 kit Color Picker - iPhone
|
|
13
|
+
(0:5275) draws it as Segmented Control Size=Small, 32px. The control keeps its desktop size and asks for the small
|
|
14
|
+
one there with data-mobile-size="small", since md and larger are the large phone control. */.Body {
|
|
53
15
|
position: relative;
|
|
54
16
|
aspect-ratio: var(--color-picker-body-aspect-ratio);
|
|
55
17
|
}/* ===== Grid ===== */.Grid {
|
|
@@ -113,7 +75,8 @@
|
|
|
113
75
|
}/* ===== Sliders ===== */.Sliders {
|
|
114
76
|
display: flex;
|
|
115
77
|
flex-direction: column;
|
|
116
|
-
justify-content:
|
|
78
|
+
justify-content: var(--color-picker-sliders-justify);
|
|
79
|
+
gap: var(--color-picker-channel-gap);
|
|
117
80
|
height: 100%;
|
|
118
81
|
}.Channel {
|
|
119
82
|
display: flex;
|
|
@@ -122,8 +85,13 @@
|
|
|
122
85
|
}.Hex {
|
|
123
86
|
display: flex;
|
|
124
87
|
align-items: center;
|
|
125
|
-
justify-content:
|
|
88
|
+
justify-content: var(--color-picker-hex-justify);
|
|
126
89
|
gap: var(--color-picker-field-gap);
|
|
90
|
+
margin-block: var(--color-picker-hex-margin-block);
|
|
91
|
+
}.HexLabel {
|
|
92
|
+
font-size: var(--color-picker-hex-label-font-size);
|
|
93
|
+
font-weight: var(--color-picker-hex-label-font-weight);
|
|
94
|
+
line-height: var(--color-picker-hex-label-line-height);
|
|
127
95
|
}/* ===== Opacity ===== */.Opacity {
|
|
128
96
|
display: flex;
|
|
129
97
|
flex-direction: column;
|
|
@@ -132,9 +100,11 @@
|
|
|
132
100
|
padding-bottom: var(--color-picker-opacity-padding-bottom);
|
|
133
101
|
border-bottom: 1px solid var(--color-picker-separator-color);
|
|
134
102
|
}.Label {
|
|
103
|
+
color: var(--color-picker-label-color);
|
|
135
104
|
font-size: var(--color-picker-label-font-size);
|
|
136
|
-
font-weight: var(--font-weight
|
|
105
|
+
font-weight: var(--color-picker-label-font-weight);
|
|
137
106
|
line-height: var(--color-picker-label-line-height);
|
|
107
|
+
text-transform: var(--color-picker-label-text-transform);
|
|
138
108
|
}.Row {
|
|
139
109
|
display: flex;
|
|
140
110
|
align-items: center;
|
|
@@ -148,7 +118,7 @@
|
|
|
148
118
|
border-radius: var(--radius-full);
|
|
149
119
|
background:
|
|
150
120
|
var(--color-picker-track),
|
|
151
|
-
|
|
121
|
+
var(--color-picker-checker) 0 0 / calc(2 * var(--color-picker-checker-size)) calc(2 * var(--color-picker-checker-size));
|
|
152
122
|
}.SliderRoot {
|
|
153
123
|
position: relative;
|
|
154
124
|
display: flex;
|
|
@@ -194,7 +164,7 @@
|
|
|
194
164
|
color: var(--color-text);
|
|
195
165
|
font: inherit;
|
|
196
166
|
font-size: var(--color-picker-field-font-size);
|
|
197
|
-
font-weight: var(--font-weight
|
|
167
|
+
font-weight: var(--color-picker-field-font-weight);
|
|
198
168
|
line-height: var(--color-picker-field-line-height);
|
|
199
169
|
font-variant-numeric: tabular-nums;
|
|
200
170
|
text-align: center;
|
|
@@ -215,15 +185,18 @@
|
|
|
215
185
|
display: flex;
|
|
216
186
|
align-items: flex-start;
|
|
217
187
|
gap: var(--color-picker-current-gap);
|
|
218
|
-
padding-top: var(--color-picker-
|
|
219
|
-
}/* The current color, over a checkerboard when it is not opaque.
|
|
188
|
+
padding-top: var(--color-picker-swatches-padding-top);
|
|
189
|
+
}/* The current color, over a checkerboard when it is not opaque. The checkerboard stops half a pixel inside the edge,
|
|
190
|
+
so it does not show around an opaque color where the rounded edge is smoothed. */.Current {
|
|
220
191
|
position: relative;
|
|
221
192
|
flex-shrink: 0;
|
|
222
193
|
width: var(--color-picker-current-size);
|
|
223
194
|
height: var(--color-picker-current-size);
|
|
195
|
+
padding: 0.5px;
|
|
196
|
+
box-sizing: border-box;
|
|
224
197
|
overflow: hidden;
|
|
225
198
|
border-radius: var(--color-picker-current-radius);
|
|
226
|
-
background:
|
|
199
|
+
background: var(--color-picker-checker) 0 0 / calc(2 * var(--color-picker-checker-size)) calc(2 * var(--color-picker-checker-size)) content-box;
|
|
227
200
|
}.CurrentFill,
|
|
228
201
|
.SwatchFill {
|
|
229
202
|
position: absolute;
|
|
@@ -235,7 +208,7 @@
|
|
|
235
208
|
flex-direction: column;
|
|
236
209
|
gap: var(--color-picker-swatch-row-gap);
|
|
237
210
|
min-width: 0;
|
|
238
|
-
}/* Pages of
|
|
211
|
+
}/* Pages of twelve that scroll sideways, a page at a time. */.Pages {
|
|
239
212
|
display: flex;
|
|
240
213
|
overflow-x: auto;
|
|
241
214
|
overscroll-behavior-x: contain;
|
|
@@ -248,7 +221,7 @@
|
|
|
248
221
|
}.Page {
|
|
249
222
|
display: grid;
|
|
250
223
|
flex: 0 0 100%;
|
|
251
|
-
grid-template-columns: repeat(
|
|
224
|
+
grid-template-columns: repeat(6, var(--color-picker-swatch-size));
|
|
252
225
|
grid-auto-rows: var(--color-picker-swatch-size);
|
|
253
226
|
align-content: start;
|
|
254
227
|
justify-content: space-between;
|
|
@@ -276,8 +249,11 @@
|
|
|
276
249
|
outline: 2px solid var(--color-ring);
|
|
277
250
|
outline-offset: 2px;
|
|
278
251
|
}.Swatch {
|
|
252
|
+
padding: 0.5px;
|
|
253
|
+
box-sizing: border-box;
|
|
279
254
|
overflow: hidden;
|
|
280
|
-
|
|
255
|
+
/* As under the current color, the checkerboard stops half a pixel inside the round edge. */
|
|
256
|
+
background: var(--color-picker-checker) 0 0 / calc(var(--color-picker-swatch-size) / 3) calc(var(--color-picker-swatch-size) / 3) content-box;
|
|
281
257
|
}
|
|
282
258
|
|
|
283
259
|
.Swatch[aria-checked="true"]::after {
|
|
@@ -289,8 +265,8 @@
|
|
|
289
265
|
}.Add {
|
|
290
266
|
display: grid;
|
|
291
267
|
place-items: center;
|
|
292
|
-
background: var(--color-picker-
|
|
293
|
-
color: var(--color-
|
|
268
|
+
background: var(--color-picker-add-background);
|
|
269
|
+
color: var(--color-picker-add-color);
|
|
294
270
|
|
|
295
271
|
}
|
|
296
272
|
|
|
@@ -384,18 +360,14 @@
|
|
|
384
360
|
font-size: var(--font-text-sm-size);
|
|
385
361
|
font-weight: var(--font-weight-semibold);
|
|
386
362
|
line-height: var(--font-text-sm-line-height);
|
|
387
|
-
}/*
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
backdrop-filter: var(--mobile-glass-backdrop-filter);
|
|
396
|
-
}/* One glass surface: the bar is clear (it is solid, so no scroll edge blurs the segmented control), and the picker
|
|
397
|
-
starts right under it, as the kit's 70px Toolbar keeps its own 10px bottom padding. The body does not run under
|
|
398
|
-
the bar, so on a short screen the picker scrolls below it. This outranks the Dialog's
|
|
363
|
+
}/* iOS 27.2 opens the picker in a large sheet, flush with the screen's sides and opaque (UIColorPickerViewController on
|
|
364
|
+
an iPhone 17: 243 in light, 20 in dark, where the iOS 26 kit drew a glass Inspector sheet 6px in from the sides):
|
|
365
|
+
the Dialog's own phone sheet with surface="grouped" (ColorWell), so the light gray Add button and checkerboard
|
|
366
|
+
read on it as in iOS.
|
|
367
|
+
|
|
368
|
+
One surface: the bar is clear (it is solid, so no scroll edge blurs the segmented control), and the picker starts
|
|
369
|
+
right under it, as the bar keeps its own 10px bottom padding. The body does not run under the bar, so on a short
|
|
370
|
+
screen the picker scrolls below it. This outranks the Dialog's
|
|
399
371
|
`.Content[data-mobile-variant="sheet"] .Panel > .Body`. */.Sheet > [data-toolbar] {
|
|
400
372
|
--dialog-panel-background: transparent;
|
|
401
373
|
}[data-mobile-variant="sheet"] .Sheet.Sheet > .SheetBody.SheetBody {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
visibility: hidden;
|
|
10
10
|
}.Dimming {
|
|
11
11
|
/* Top-level selector needs to exist */
|
|
12
|
-
}/* Context Menu - Dimming Overlay: black
|
|
12
|
+
}/* Context Menu - Dimming Overlay: black (20% in light) over a 30px background blur, with the element cut out so it stays
|
|
13
13
|
clear, as iOS lifts its preview. A press on the dimming closes the menu and reaches nothing under it; a press on
|
|
14
14
|
the element, through the cut, closes it and reaches the element, whose action runs, as a tap on an iOS preview
|
|
15
15
|
commits it (the clip path takes the cut out of the dimming's hit area too, which the mask does not). It shares
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
height: var(--cell-size);
|
|
114
114
|
color: var(--color-text-secondary);
|
|
115
115
|
font-size: 12px;
|
|
116
|
-
letter-spacing:
|
|
116
|
+
letter-spacing: var(--font-sans-tracking);
|
|
117
117
|
text-align: center;
|
|
118
118
|
}.MonthLabel {
|
|
119
119
|
display: flex;
|
|
@@ -294,17 +294,19 @@ background-color: var(--alpha-08);
|
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
.CalendarWrapper {
|
|
297
|
-
/*
|
|
298
|
-
|
|
297
|
+
/* The compact date picker's calendar of iOS 27.2 is a 321pt panel of seven 42.7pt columns and 38pt rows
|
|
298
|
+
(UIKit and Calendar on an iPhone 17). PlexUI keeps its seven 44px targets (owner 06.11), side by side
|
|
299
|
+
and row on row as native's, with the corner's 10px inset: 328px. Narrower screens keep the outer
|
|
300
|
+
collision gutter; the inner inset follows the corner geometry while seven 44px targets fit at 320px. */
|
|
299
301
|
box-sizing: border-box;
|
|
300
|
-
width: min(
|
|
302
|
+
width: min(328px, calc(100vw - 2 * var(--calendar-gutter)), var(--radix-popover-content-available-width, 328px));
|
|
301
303
|
padding: 0 var(--calendar-inner-padding);
|
|
302
304
|
}
|
|
303
305
|
|
|
304
306
|
.CalendarContainer {
|
|
305
307
|
--cell-size: 44px;
|
|
306
|
-
--cell-vertical-gutter:
|
|
307
|
-
--calendar-width: min(
|
|
308
|
+
--cell-vertical-gutter: 0px;
|
|
309
|
+
--calendar-width: min(308px, calc(100vw - 2 * var(--calendar-gutter) - 2 * var(--calendar-inner-padding)), calc(var(--radix-popover-content-available-width, 328px) - 2 * var(--calendar-inner-padding)));
|
|
308
310
|
|
|
309
311
|
width: var(--calendar-width);
|
|
310
312
|
}
|
|
@@ -327,7 +329,7 @@ background-color: var(--alpha-08);
|
|
|
327
329
|
|
|
328
330
|
.Calendar {
|
|
329
331
|
--cell-size: 44px;
|
|
330
|
-
--cell-vertical-gutter:
|
|
332
|
+
--cell-vertical-gutter: 0px;
|
|
331
333
|
|
|
332
334
|
box-sizing: border-box;
|
|
333
335
|
padding-bottom: var(--calendar-inner-padding);
|
|
@@ -398,7 +400,6 @@ background-color: var(--alpha-08);
|
|
|
398
400
|
.Week {
|
|
399
401
|
display: grid;
|
|
400
402
|
grid-template-columns: repeat(7, var(--cell-size));
|
|
401
|
-
justify-content: space-between;
|
|
402
403
|
}
|
|
403
404
|
|
|
404
405
|
.WeekdayHeader {
|
|
@@ -460,17 +461,19 @@ background-color: var(--alpha-08);
|
|
|
460
461
|
}
|
|
461
462
|
|
|
462
463
|
:where([data-plex-layout="phone"]) .CalendarWrapper {
|
|
463
|
-
/*
|
|
464
|
-
|
|
464
|
+
/* The compact date picker's calendar of iOS 27.2 is a 321pt panel of seven 42.7pt columns and 38pt rows
|
|
465
|
+
(UIKit and Calendar on an iPhone 17). PlexUI keeps its seven 44px targets (owner 06.11), side by side
|
|
466
|
+
and row on row as native's, with the corner's 10px inset: 328px. Narrower screens keep the outer
|
|
467
|
+
collision gutter; the inner inset follows the corner geometry while seven 44px targets fit at 320px. */
|
|
465
468
|
box-sizing: border-box;
|
|
466
|
-
width: min(
|
|
469
|
+
width: min(328px, calc(100vw - 2 * var(--calendar-gutter)), var(--radix-popover-content-available-width, 328px));
|
|
467
470
|
padding: 0 var(--calendar-inner-padding);
|
|
468
471
|
}
|
|
469
472
|
|
|
470
473
|
:where([data-plex-layout="phone"]) .CalendarContainer {
|
|
471
474
|
--cell-size: 44px;
|
|
472
|
-
--cell-vertical-gutter:
|
|
473
|
-
--calendar-width: min(
|
|
475
|
+
--cell-vertical-gutter: 0px;
|
|
476
|
+
--calendar-width: min(308px, calc(100vw - 2 * var(--calendar-gutter) - 2 * var(--calendar-inner-padding)), calc(var(--radix-popover-content-available-width, 328px) - 2 * var(--calendar-inner-padding)));
|
|
474
477
|
|
|
475
478
|
width: var(--calendar-width);
|
|
476
479
|
}
|
|
@@ -493,7 +496,7 @@ background-color: var(--alpha-08);
|
|
|
493
496
|
|
|
494
497
|
:where([data-plex-layout="phone"]) .Calendar {
|
|
495
498
|
--cell-size: 44px;
|
|
496
|
-
--cell-vertical-gutter:
|
|
499
|
+
--cell-vertical-gutter: 0px;
|
|
497
500
|
|
|
498
501
|
box-sizing: border-box;
|
|
499
502
|
padding-bottom: var(--calendar-inner-padding);
|
|
@@ -564,7 +567,6 @@ background-color: var(--alpha-08);
|
|
|
564
567
|
:where([data-plex-layout="phone"]) .Week {
|
|
565
568
|
display: grid;
|
|
566
569
|
grid-template-columns: repeat(7, var(--cell-size));
|
|
567
|
-
justify-content: space-between;
|
|
568
570
|
}
|
|
569
571
|
|
|
570
572
|
:where([data-plex-layout="phone"]) .WeekdayHeader {
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
height: var(--cell-size);
|
|
121
121
|
color: var(--color-text-secondary);
|
|
122
122
|
font-size: 12px;
|
|
123
|
-
letter-spacing:
|
|
123
|
+
letter-spacing: var(--font-sans-tracking);
|
|
124
124
|
text-align: center;
|
|
125
125
|
}.MonthLabel {
|
|
126
126
|
display: flex;
|
|
@@ -320,17 +320,19 @@ background-color: var(--alpha-08);
|
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
.CalendarWrapper {
|
|
323
|
-
/*
|
|
324
|
-
|
|
323
|
+
/* The compact date picker's calendar of iOS 27.2 is a 321pt panel of seven 42.7pt columns and 38pt rows
|
|
324
|
+
(UIKit and Calendar on an iPhone 17). PlexUI keeps its seven 44px targets (owner 06.11), side by side
|
|
325
|
+
and row on row as native's, with the corner's 10px inset: 328px. Narrower screens keep the outer
|
|
326
|
+
collision gutter; the inner inset follows the corner geometry while seven 44px targets fit at 320px. */
|
|
325
327
|
box-sizing: border-box;
|
|
326
|
-
width: min(
|
|
328
|
+
width: min(328px, calc(100vw - 2 * var(--calendar-gutter)), var(--radix-popover-content-available-width, 328px));
|
|
327
329
|
padding: 0 var(--calendar-inner-padding);
|
|
328
330
|
}
|
|
329
331
|
|
|
330
332
|
.CalendarContainer {
|
|
331
333
|
--cell-size: 44px;
|
|
332
|
-
--cell-vertical-gutter:
|
|
333
|
-
--calendar-width: min(
|
|
334
|
+
--cell-vertical-gutter: 0px;
|
|
335
|
+
--calendar-width: min(308px, calc(100vw - 2 * var(--calendar-gutter) - 2 * var(--calendar-inner-padding)), calc(var(--radix-popover-content-available-width, 328px) - 2 * var(--calendar-inner-padding)));
|
|
334
336
|
|
|
335
337
|
width: var(--calendar-width);
|
|
336
338
|
}
|
|
@@ -353,7 +355,7 @@ background-color: var(--alpha-08);
|
|
|
353
355
|
|
|
354
356
|
.Calendar {
|
|
355
357
|
--cell-size: 44px;
|
|
356
|
-
--cell-vertical-gutter:
|
|
358
|
+
--cell-vertical-gutter: 0px;
|
|
357
359
|
|
|
358
360
|
box-sizing: border-box;
|
|
359
361
|
padding-bottom: var(--calendar-inner-padding);
|
|
@@ -424,7 +426,6 @@ background-color: var(--alpha-08);
|
|
|
424
426
|
.Week {
|
|
425
427
|
display: grid;
|
|
426
428
|
grid-template-columns: repeat(7, var(--cell-size));
|
|
427
|
-
justify-content: space-between;
|
|
428
429
|
}
|
|
429
430
|
|
|
430
431
|
.WeekdayHeader {
|
|
@@ -486,17 +487,19 @@ background-color: var(--alpha-08);
|
|
|
486
487
|
}
|
|
487
488
|
|
|
488
489
|
:where([data-plex-layout="phone"]) .CalendarWrapper {
|
|
489
|
-
/*
|
|
490
|
-
|
|
490
|
+
/* The compact date picker's calendar of iOS 27.2 is a 321pt panel of seven 42.7pt columns and 38pt rows
|
|
491
|
+
(UIKit and Calendar on an iPhone 17). PlexUI keeps its seven 44px targets (owner 06.11), side by side
|
|
492
|
+
and row on row as native's, with the corner's 10px inset: 328px. Narrower screens keep the outer
|
|
493
|
+
collision gutter; the inner inset follows the corner geometry while seven 44px targets fit at 320px. */
|
|
491
494
|
box-sizing: border-box;
|
|
492
|
-
width: min(
|
|
495
|
+
width: min(328px, calc(100vw - 2 * var(--calendar-gutter)), var(--radix-popover-content-available-width, 328px));
|
|
493
496
|
padding: 0 var(--calendar-inner-padding);
|
|
494
497
|
}
|
|
495
498
|
|
|
496
499
|
:where([data-plex-layout="phone"]) .CalendarContainer {
|
|
497
500
|
--cell-size: 44px;
|
|
498
|
-
--cell-vertical-gutter:
|
|
499
|
-
--calendar-width: min(
|
|
501
|
+
--cell-vertical-gutter: 0px;
|
|
502
|
+
--calendar-width: min(308px, calc(100vw - 2 * var(--calendar-gutter) - 2 * var(--calendar-inner-padding)), calc(var(--radix-popover-content-available-width, 328px) - 2 * var(--calendar-inner-padding)));
|
|
500
503
|
|
|
501
504
|
width: var(--calendar-width);
|
|
502
505
|
}
|
|
@@ -519,7 +522,7 @@ background-color: var(--alpha-08);
|
|
|
519
522
|
|
|
520
523
|
:where([data-plex-layout="phone"]) .Calendar {
|
|
521
524
|
--cell-size: 44px;
|
|
522
|
-
--cell-vertical-gutter:
|
|
525
|
+
--cell-vertical-gutter: 0px;
|
|
523
526
|
|
|
524
527
|
box-sizing: border-box;
|
|
525
528
|
padding-bottom: var(--calendar-inner-padding);
|
|
@@ -590,7 +593,6 @@ background-color: var(--alpha-08);
|
|
|
590
593
|
:where([data-plex-layout="phone"]) .Week {
|
|
591
594
|
display: grid;
|
|
592
595
|
grid-template-columns: repeat(7, var(--cell-size));
|
|
593
|
-
justify-content: space-between;
|
|
594
596
|
}
|
|
595
597
|
|
|
596
598
|
:where([data-plex-layout="phone"]) .WeekdayHeader {
|
|
@@ -632,33 +634,6 @@ background-color: var(--alpha-08);
|
|
|
632
634
|
height: 4px;
|
|
633
635
|
margin-left: -2px;
|
|
634
636
|
}@media (max-width: 767px) {
|
|
635
|
-
.CalendarContainer {
|
|
636
|
-
--calendar-day-gap: max(0px, calc((var(--calendar-width) - 7 * var(--cell-size)) / 6));
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
/* Keep the same 44px columns as DatePicker. Paint only the gap between
|
|
640
|
-
cells, so the translucent range fill never stacks over a day. */
|
|
641
|
-
.Day::after {
|
|
642
|
-
position: absolute;
|
|
643
|
-
top: 0;
|
|
644
|
-
bottom: 0;
|
|
645
|
-
left: 100%;
|
|
646
|
-
width: var(--calendar-day-gap);
|
|
647
|
-
background-color: transparent;
|
|
648
|
-
content: "";
|
|
649
|
-
pointer-events: none;
|
|
650
|
-
transition: background-color 0.15s var(--cubic-enter);
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
/* A first-month trail fades to the left and still needs its right bridge.
|
|
654
|
-
The last-month trail already paints a right fade, so do not overlap it. */
|
|
655
|
-
.Day[data-is-in-range]:not([data-is-end]):not([data-is-last-range-trail]):not(:last-child)::after, :where([data-theme="light"]) .Day[data-is-in-range]:not([data-is-end]):not([data-is-last-range-trail]):not(:last-child)::after {
|
|
656
|
-
background-color: var(--alpha-06);
|
|
657
|
-
}
|
|
658
|
-
:where([data-theme="dark"]) .Day[data-is-in-range]:not([data-is-end]):not([data-is-last-range-trail]):not(:last-child)::after {
|
|
659
|
-
background-color: var(--alpha-08);
|
|
660
|
-
}
|
|
661
|
-
|
|
662
637
|
/* The range is a capsule on every week: where a week starts or ends inside the range, the band rounds
|
|
663
638
|
fully, as its start and end days do. A month trail sits inside a week and keeps its fade; when the
|
|
664
639
|
month's last day opens a week, or its first day closes one, that week edge rounds too. */
|
|
@@ -672,33 +647,6 @@ background-color: var(--alpha-08);
|
|
|
672
647
|
border-bottom-right-radius: var(--radius-full);
|
|
673
648
|
}
|
|
674
649
|
}
|
|
675
|
-
:where([data-plex-layout="phone"]) .CalendarContainer {
|
|
676
|
-
--calendar-day-gap: max(0px, calc((var(--calendar-width) - 7 * var(--cell-size)) / 6));
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
/* Keep the same 44px columns as DatePicker. Paint only the gap between
|
|
680
|
-
cells, so the translucent range fill never stacks over a day. */
|
|
681
|
-
:where([data-plex-layout="phone"]) .Day::after {
|
|
682
|
-
position: absolute;
|
|
683
|
-
top: 0;
|
|
684
|
-
bottom: 0;
|
|
685
|
-
left: 100%;
|
|
686
|
-
width: var(--calendar-day-gap);
|
|
687
|
-
background-color: transparent;
|
|
688
|
-
content: "";
|
|
689
|
-
pointer-events: none;
|
|
690
|
-
transition: background-color 0.15s var(--cubic-enter);
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
/* A first-month trail fades to the left and still needs its right bridge.
|
|
694
|
-
The last-month trail already paints a right fade, so do not overlap it. */
|
|
695
|
-
:where([data-plex-layout="phone"]) .Day[data-is-in-range]:not([data-is-end]):not([data-is-last-range-trail]):not(:last-child)::after, :where([data-theme="light"]) :where([data-plex-layout="phone"]) .Day[data-is-in-range]:not([data-is-end]):not([data-is-last-range-trail]):not(:last-child)::after {
|
|
696
|
-
background-color: var(--alpha-06);
|
|
697
|
-
}
|
|
698
|
-
:where([data-theme="dark"]) :where([data-plex-layout="phone"]) .Day[data-is-in-range]:not([data-is-end]):not([data-is-last-range-trail]):not(:last-child)::after {
|
|
699
|
-
background-color: var(--alpha-08);
|
|
700
|
-
}
|
|
701
|
-
|
|
702
650
|
/* The range is a capsule on every week: where a week starts or ends inside the range, the band rounds
|
|
703
651
|
fully, as its start and end days do. A month trail sits inside a week and keeps its fade; when the
|
|
704
652
|
month's last day opens a week, or its first day closes one, that week edge rounds too. */
|