@plexui/styles 0.17.6 → 0.17.8

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.
@@ -102,8 +102,8 @@
102
102
  opacity: 1;
103
103
  transform: var(--dialog-panel-drag-transform, scale(1) translateY(0));
104
104
  transition:
105
- opacity var(--dialog-enter-duration) var(--cubic-enter),
106
- transform var(--dialog-enter-duration) var(--cubic-enter);
105
+ opacity var(--dialog-enter-duration) var(--dialog-enter-easing, var(--cubic-enter)),
106
+ transform var(--dialog-enter-duration) var(--dialog-enter-easing, var(--cubic-enter));
107
107
  }
108
108
 
109
109
  .Transition[data-exiting] .Panel {
@@ -253,31 +253,25 @@
253
253
  translate: 0 -10px;
254
254
  }
255
255
 
256
- /* A sheet opened by a button grows out of it and shrinks back into it as it closes, as an iOS 27.2 sheet presented
257
- with a zoom transition from its source does: from the button's frame (the dialog sets the transform that lays the
258
- panel over it) on SwiftUI's spring(duration: 0.33, bounce: 0.2), --spring-sheet. It shows as it leaves the
259
- button and fades at the end of its way back, so the move reads, not a fade. With reduced motion it fades in
260
- place, as every dialog does. */
256
+ /* A phone sheet slides up from the bottom of the screen and back down, opaque, as an iOS 27.2 sheet does, never out
257
+ of the button that opened it: on iOS's spring with no bounce (--spring-sheet, spring(duration: 0.34, bounce: 0),
258
+ 500ms both ways), the scrim on the same curve and time, so it dims as the sheet rises. The dialog sets
259
+ data-sheet-motion where it times the sheet so: a phone bottom sheet, not in the Plex Android look nor with reduced
260
+ motion. A sheet pulled down sets its own exit time and curve (sheetDrag.ts), which win over these. */
261
261
  @media (prefers-reduced-motion: no-preference) {
262
- .Content[data-mobile-placement="bottom"] .Panel[data-presented-from] {
263
- --dialog-panel-hidden-transform: var(--dialog-panel-source-transform);
264
- --dialog-panel-hidden-opacity: 0;
262
+ .Content[data-mobile-placement="bottom"] .Panel[data-sheet-motion] {
263
+ --dialog-enter-duration: var(--spring-sheet-duration);
264
+ --dialog-enter-easing: var(--spring-sheet);
265
+ --dialog-exit-duration: var(--spring-sheet-duration);
266
+ --dialog-exit-easing: var(--spring-sheet);
265
267
  }
266
268
 
267
- .Transition:is([data-entering-active], [data-entering][data-interrupted])
268
- .Content[data-mobile-placement="bottom"]
269
- .Panel[data-presented-from] {
270
- transition:
271
- opacity var(--motion-exit) var(--cubic-enter),
272
- transform var(--spring-sheet-duration) var(--spring-sheet);
269
+ .Transition:is([data-entering-active], [data-entering][data-interrupted]):has(.Panel[data-sheet-motion]) .Overlay {
270
+ transition: opacity var(--spring-sheet-duration) var(--spring-sheet);
273
271
  }
274
272
 
275
- .Transition:is([data-exiting-active], [data-exiting][data-interrupted])
276
- .Content[data-mobile-placement="bottom"]
277
- .Panel[data-presented-from] {
278
- transition:
279
- opacity var(--motion-exit) var(--cubic-exit) calc(var(--spring-sheet-duration) * 0.3),
280
- transform var(--spring-sheet-duration) var(--spring-sheet);
273
+ .Transition:is([data-exiting-active], [data-exiting][data-interrupted]):has(.Panel[data-sheet-motion]) .Overlay {
274
+ transition: opacity var(--spring-sheet-duration) var(--spring-sheet);
281
275
  }
282
276
  }
283
277
  }
@@ -359,31 +353,25 @@
359
353
  translate: 0 -10px;
360
354
  }
361
355
 
362
- /* A sheet opened by a button grows out of it and shrinks back into it as it closes, as an iOS 27.2 sheet presented
363
- with a zoom transition from its source does: from the button's frame (the dialog sets the transform that lays the
364
- panel over it) on SwiftUI's spring(duration: 0.33, bounce: 0.2), --spring-sheet. It shows as it leaves the
365
- button and fades at the end of its way back, so the move reads, not a fade. With reduced motion it fades in
366
- place, as every dialog does. */
356
+ /* A phone sheet slides up from the bottom of the screen and back down, opaque, as an iOS 27.2 sheet does, never out
357
+ of the button that opened it: on iOS's spring with no bounce (--spring-sheet, spring(duration: 0.34, bounce: 0),
358
+ 500ms both ways), the scrim on the same curve and time, so it dims as the sheet rises. The dialog sets
359
+ data-sheet-motion where it times the sheet so: a phone bottom sheet, not in the Plex Android look nor with reduced
360
+ motion. A sheet pulled down sets its own exit time and curve (sheetDrag.ts), which win over these. */
367
361
  @media (prefers-reduced-motion: no-preference) {
368
- :where([data-plex-layout="phone"]) .Content[data-mobile-placement="bottom"] .Panel[data-presented-from] {
369
- --dialog-panel-hidden-transform: var(--dialog-panel-source-transform);
370
- --dialog-panel-hidden-opacity: 0;
362
+ :where([data-plex-layout="phone"]) .Content[data-mobile-placement="bottom"] .Panel[data-sheet-motion] {
363
+ --dialog-enter-duration: var(--spring-sheet-duration);
364
+ --dialog-enter-easing: var(--spring-sheet);
365
+ --dialog-exit-duration: var(--spring-sheet-duration);
366
+ --dialog-exit-easing: var(--spring-sheet);
371
367
  }
372
368
 
373
- :where([data-plex-layout="phone"]) .Transition:is([data-entering-active], [data-entering][data-interrupted])
374
- .Content[data-mobile-placement="bottom"]
375
- .Panel[data-presented-from] {
376
- transition:
377
- opacity var(--motion-exit) var(--cubic-enter),
378
- transform var(--spring-sheet-duration) var(--spring-sheet);
369
+ :where([data-plex-layout="phone"]) .Transition:is([data-entering-active], [data-entering][data-interrupted]):has(.Panel[data-sheet-motion]) .Overlay {
370
+ transition: opacity var(--spring-sheet-duration) var(--spring-sheet);
379
371
  }
380
372
 
381
- :where([data-plex-layout="phone"]) .Transition:is([data-exiting-active], [data-exiting][data-interrupted])
382
- .Content[data-mobile-placement="bottom"]
383
- .Panel[data-presented-from] {
384
- transition:
385
- opacity var(--motion-exit) var(--cubic-exit) calc(var(--spring-sheet-duration) * 0.3),
386
- transform var(--spring-sheet-duration) var(--spring-sheet);
373
+ :where([data-plex-layout="phone"]) .Transition:is([data-exiting-active], [data-exiting][data-interrupted]):has(.Panel[data-sheet-motion]) .Overlay {
374
+ transition: opacity var(--spring-sheet-duration) var(--spring-sheet);
387
375
  }
388
376
  }/* With reduced motion the dialog fades in place, the scrim with it, as a sheet does on iOS with Reduce Motion: no
389
377
  slide or scale, a fade on iOS's time and curve (--motion-reduced-enter-dialog), which its timer holds it entering
@@ -440,6 +440,21 @@
440
440
  /* Can't be focused here anyway */
441
441
  .RadioIndicator:focus {
442
442
  outline: none;
443
+ }/* A checkmark marks the chosen option (RadioGroup indicatorVariant="check"), as a desktop's menus do (Finder's View
444
+ and Sort By): no circle on the others, whose place stays empty so the labels line up. */.RadioGroup[data-indicator-variant="check"] .RadioIndicator {
445
+ width: var(--menu-checkbox-indicator-size);
446
+ height: var(--menu-checkbox-indicator-size);
447
+ border-radius: 0;
448
+ box-shadow: none;
449
+ }
450
+
451
+ .RadioGroup[data-indicator-variant="check"] .RadioIndicator .RadioIndicatorActive::before,
452
+ .RadioGroup[data-indicator-variant="check"] .RadioIndicator .RadioIndicatorActive::after {
453
+ display: none;
454
+ }
455
+
456
+ .RadioGroup[data-indicator-variant="check"] .RadioIndicator .SelectionCheck {
457
+ display: block;
443
458
  }@keyframes scale-in {
444
459
  0% {
445
460
  transform: scale(0);
@@ -418,17 +418,19 @@
418
418
  --motion-reduced-enter-menu: 500ms;
419
419
  --cubic-reduced-enter-menu: cubic-bezier(0.4, 1, 0.7, 1);
420
420
  /* Springs, as SwiftUI's spring(duration:bounce:) with mass 1: smooth (0.5s, bounce 0) and snappy (0.5s, bounce 0.15)
421
- are SwiftUI's presets; sheet (0.33s, bounce 0.2) and menu (0.21s, bounce 0.2) are an iOS 27.2 sheet and menu
422
- growing from the button that opens them. Each is a cubic Bézier close to the spring here, for a browser without
423
- linear() (Safari before 17.2); under @supports below it is the spring itself, sampled to within 0.004. The
421
+ are SwiftUI's presets; sheet (0.34s, bounce 0) is an iOS 27.2 sheet sliding up from the bottom and back down,
422
+ its scrim on the same curve, and menu (0.21s, bounce 0.2) an iOS 27.2 menu growing from its button. Each is a
423
+ cubic Bézier close to the spring here, for a browser without linear() (Safari before 17.2); under @supports below
424
+ it is the spring itself, sampled (the sheet's every 1/120s). The
424
425
  duration is the time the spring takes to settle within 0.001 of its end, longer than the duration it is named
425
426
  for, as a spring's tail is. */
426
427
  --spring-smooth: cubic-bezier(0.3, 0.6, 0.1, 1);
427
428
  --spring-smooth-duration: 750ms;
428
429
  --spring-snappy: cubic-bezier(0.35, 0.8, 0.1, 1.02);
429
430
  --spring-snappy-duration: 725ms;
430
- --spring-sheet: cubic-bezier(0.35, 0.9, 0.1, 1.02);
431
- --spring-sheet-duration: 495ms;
431
+ /* The sheet's spring is cut at 500ms, 0.1% short of its rest (half its way at 91ms, 90% at 210ms) */
432
+ --spring-sheet: cubic-bezier(0.3, 0.6, 0.1, 1);
433
+ --spring-sheet-duration: 500ms;
432
434
  --spring-menu: cubic-bezier(0.35, 0.9, 0.1, 1.05);
433
435
  --spring-menu-duration: 325ms;
434
436
 
@@ -690,7 +692,7 @@
690
692
  :where([data-theme]) {
691
693
  --spring-smooth: linear(0, 0.005 1.1%, 0.02 2.3%, 0.081 4.9%, 0.159 7.5%, 0.463 16.6%, 0.558 19.8%, 0.639 23%, 0.709 26.3%, 0.769 29.7%, 0.82 33.2%, 0.863 37%, 0.901 41.5%, 0.932 46.4%, 0.955 51.9%, 0.972 58.1%, 0.992 73.4%, 1);
692
694
  --spring-snappy: linear(0, 0.006 1.2%, 0.023 2.5%, 0.052 3.9%, 0.094 5.5%, 0.187 8.3%, 0.516 17.4%, 0.615 20.6%, 0.698 23.6%, 0.768 26.6%, 0.828 29.8%, 0.877 33.1%, 0.917 36.5%, 0.949 40.3%, 0.973 44.4%, 0.99 49.1%, 1 54.4%, 1.006 65.8%, 1);
693
- --spring-sheet: linear(0, 0.007 1.2%, 0.024 2.4%, 0.055 3.9%, 0.099 5.4%, 0.195 8.1%, 0.434 14.2%, 0.54 17%, 0.638 20%, 0.724 22.9%, 0.795 25.8%, 0.856 28.9%, 0.905 32%, 0.943 35.3%, 0.971 38.6%, 0.991 42.2%, 1.013 51.1%, 1);
695
+ --spring-sheet: linear(0, 0.012 1.7%, 0.041 3.4%, 0.081 5%, 0.131 6.7%, 0.185 8.4%, 0.239 10%, 0.297 11.7%, 0.354 13.4%, 0.406 15%, 0.459 16.7%, 0.509 18.4%, 0.554 20%, 0.597 21.7%, 0.638 23.4%, 0.673 25%, 0.707 26.7%, 0.738 28.4%, 0.765 30%, 0.791 31.7%, 0.814 33.4%, 0.834 35%, 0.852 36.7%, 0.869 38.4%, 0.883 40%, 0.897 41.7%, 0.909 43.4%, 0.919 45%, 0.929 46.7%, 0.937 48.4%, 0.944 50%, 0.951 51.7%, 0.957 53.4%, 0.962 55%, 0.967 56.7%, 0.971 58.4%, 0.974 60%, 0.977 61.7%, 0.98 63.4%, 0.982 65%, 0.985 66.7%, 0.987 68.4%, 0.988 70%, 0.99 71.7%, 0.991 73.4%, 0.992 75%, 0.993 76.7%, 0.994 78.4%, 0.995 80%, 0.995 81.7%, 0.996 83.4%, 0.996 85%, 0.997 86.7%, 0.997 88.4%, 0.998 90%, 0.998 91.7%, 0.998 93.4%, 0.998 95%, 0.999 96.7%, 0.999 98.4%, 1);
694
696
  --spring-menu: linear(0, 0.008 1.2%, 0.027 2.5%, 0.06 3.9%, 0.102 5.3%, 0.197 7.9%, 0.536 16.4%, 0.638 19.4%, 0.726 22.3%, 0.799 25.3%, 0.858 28.2%, 0.907 31.3%, 0.945 34.6%, 0.972 37.8%, 0.992 41.4%, 1.012 49.9%, 1);
695
697
  }
696
698
  }
@@ -741,8 +741,8 @@ export const tokenLayers = [
741
741
  "--spring-smooth-duration": "750ms",
742
742
  "--spring-snappy": "cubic-bezier(0.35, 0.8, 0.1, 1.02)",
743
743
  "--spring-snappy-duration": "725ms",
744
- "--spring-sheet": "cubic-bezier(0.35, 0.9, 0.1, 1.02)",
745
- "--spring-sheet-duration": "495ms",
744
+ "--spring-sheet": "cubic-bezier(0.3, 0.6, 0.1, 1)",
745
+ "--spring-sheet-duration": "500ms",
746
746
  "--spring-menu": "cubic-bezier(0.35, 0.9, 0.1, 1.05)",
747
747
  "--spring-menu-duration": "325ms",
748
748
  "--scrollbar-color": "var(--alpha-30)",
@@ -783,7 +783,7 @@ export const tokenLayers = [
783
783
  "tokens": {
784
784
  "--spring-smooth": "linear(0, 0.005 1.1%, 0.02 2.3%, 0.081 4.9%, 0.159 7.5%, 0.463 16.6%, 0.558 19.8%, 0.639 23%, 0.709 26.3%, 0.769 29.7%, 0.82 33.2%, 0.863 37%, 0.901 41.5%, 0.932 46.4%, 0.955 51.9%, 0.972 58.1%, 0.992 73.4%, 1)",
785
785
  "--spring-snappy": "linear(0, 0.006 1.2%, 0.023 2.5%, 0.052 3.9%, 0.094 5.5%, 0.187 8.3%, 0.516 17.4%, 0.615 20.6%, 0.698 23.6%, 0.768 26.6%, 0.828 29.8%, 0.877 33.1%, 0.917 36.5%, 0.949 40.3%, 0.973 44.4%, 0.99 49.1%, 1 54.4%, 1.006 65.8%, 1)",
786
- "--spring-sheet": "linear(0, 0.007 1.2%, 0.024 2.4%, 0.055 3.9%, 0.099 5.4%, 0.195 8.1%, 0.434 14.2%, 0.54 17%, 0.638 20%, 0.724 22.9%, 0.795 25.8%, 0.856 28.9%, 0.905 32%, 0.943 35.3%, 0.971 38.6%, 0.991 42.2%, 1.013 51.1%, 1)",
786
+ "--spring-sheet": "linear(0, 0.012 1.7%, 0.041 3.4%, 0.081 5%, 0.131 6.7%, 0.185 8.4%, 0.239 10%, 0.297 11.7%, 0.354 13.4%, 0.406 15%, 0.459 16.7%, 0.509 18.4%, 0.554 20%, 0.597 21.7%, 0.638 23.4%, 0.673 25%, 0.707 26.7%, 0.738 28.4%, 0.765 30%, 0.791 31.7%, 0.814 33.4%, 0.834 35%, 0.852 36.7%, 0.869 38.4%, 0.883 40%, 0.897 41.7%, 0.909 43.4%, 0.919 45%, 0.929 46.7%, 0.937 48.4%, 0.944 50%, 0.951 51.7%, 0.957 53.4%, 0.962 55%, 0.967 56.7%, 0.971 58.4%, 0.974 60%, 0.977 61.7%, 0.98 63.4%, 0.982 65%, 0.985 66.7%, 0.987 68.4%, 0.988 70%, 0.99 71.7%, 0.991 73.4%, 0.992 75%, 0.993 76.7%, 0.994 78.4%, 0.995 80%, 0.995 81.7%, 0.996 83.4%, 0.996 85%, 0.997 86.7%, 0.997 88.4%, 0.998 90%, 0.998 91.7%, 0.998 93.4%, 0.998 95%, 0.999 96.7%, 0.999 98.4%, 1)",
787
787
  "--spring-menu": "linear(0, 0.008 1.2%, 0.027 2.5%, 0.06 3.9%, 0.102 5.3%, 0.197 7.9%, 0.536 16.4%, 0.638 19.4%, 0.726 22.3%, 0.799 25.3%, 0.858 28.2%, 0.907 31.3%, 0.945 34.6%, 0.972 37.8%, 0.992 41.4%, 1.012 49.9%, 1)"
788
788
  }
789
789
  },
@@ -3798,8 +3798,8 @@ export const resolvedTokens = {
3798
3798
  "--spacing": 4,
3799
3799
  "--spring-menu": "cubic-bezier(0.35, 0.9, 0.1, 1.05)",
3800
3800
  "--spring-menu-duration": 325,
3801
- "--spring-sheet": "cubic-bezier(0.35, 0.9, 0.1, 1.02)",
3802
- "--spring-sheet-duration": 495,
3801
+ "--spring-sheet": "cubic-bezier(0.3, 0.6, 0.1, 1)",
3802
+ "--spring-sheet-duration": 500,
3803
3803
  "--spring-smooth": "cubic-bezier(0.3, 0.6, 0.1, 1)",
3804
3804
  "--spring-smooth-duration": 750,
3805
3805
  "--spring-snappy": "cubic-bezier(0.35, 0.8, 0.1, 1.02)",
@@ -5581,8 +5581,8 @@ export const resolvedTokens = {
5581
5581
  "--spacing": 4,
5582
5582
  "--spring-menu": "cubic-bezier(0.35, 0.9, 0.1, 1.05)",
5583
5583
  "--spring-menu-duration": 325,
5584
- "--spring-sheet": "cubic-bezier(0.35, 0.9, 0.1, 1.02)",
5585
- "--spring-sheet-duration": 495,
5584
+ "--spring-sheet": "cubic-bezier(0.3, 0.6, 0.1, 1)",
5585
+ "--spring-sheet-duration": 500,
5586
5586
  "--spring-smooth": "cubic-bezier(0.3, 0.6, 0.1, 1)",
5587
5587
  "--spring-smooth-duration": 750,
5588
5588
  "--spring-snappy": "cubic-bezier(0.35, 0.8, 0.1, 1.02)",