@plexui/styles 0.1.31 → 0.1.32

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.
@@ -362,10 +362,11 @@
362
362
 
363
363
  .Content[data-mobile-variant="alert"] .Title,
364
364
  .Content[data-mobile-variant="alert"] .Description,
365
- .Content[data-mobile-variant="sheet"] .Title {
365
+ .Content[data-mobile-variant="sheet"] .Title,
366
+ .Content[data-mobile-variant="sheet"] .Description {
366
367
  font-size: var(--dialog-mobile-type-size);
367
368
  line-height: var(--dialog-mobile-type-leading);
368
- letter-spacing: -0.43px;
369
+ /* System SF already applies optical tracking. Do not double the Figma adjustment. */
369
370
  overflow-wrap: anywhere;
370
371
  }
371
372
 
@@ -462,6 +463,11 @@
462
463
  padding-inline-end: 0;
463
464
  }
464
465
 
466
+ /* The reference title sits 13px into the 44px toolbar, 2px below its geometric center. */
467
+ .Content[data-mobile-variant="sheet"] .Title {
468
+ transform: translateY(2px);
469
+ }
470
+
465
471
  .Content[data-mobile-variant="sheet"] .CloseButton {
466
472
  z-index: 1;
467
473
  top: 16px;
@@ -500,7 +506,13 @@
500
506
  }
501
507
 
502
508
  .Content[data-mobile-variant="sheet"] .Footer {
503
- padding: 16px 16px max(16px, env(safe-area-inset-bottom, 0px));
509
+ padding: 16px 24px max(24px, env(safe-area-inset-bottom, 0px));
510
+ }
511
+
512
+ .Content[data-mobile-variant="sheet"] .Footer > * {
513
+ --button-size: var(--dialog-sheet-action-height);
514
+ min-height: var(--dialog-sheet-action-height);
515
+ padding-block: 14px;
504
516
  }
505
517
 
506
518
  .Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .Header {
@@ -30,8 +30,27 @@
30
30
  border: var(--field-group-border-width) solid var(--color-border);
31
31
  border-radius: var(--field-group-radius);
32
32
  background: var(--field-group-background);
33
- }.Body > [data-row] + [data-row],
33
+ }/* Desktop separators remain part of the row border. */.Body > [data-row] + [data-row],
34
34
  .Body > [data-sortable] > [data-row] + [data-row] {
35
35
  border-top: 1px solid var(--color-border);
36
+ }@media (max-width: 767px) {
37
+ .Body > [data-row] + [data-row],
38
+ .Body > [data-sortable] > [data-row] + [data-row] {
39
+ position: relative;
40
+ border-top-width: 0;
41
+ }
42
+
43
+ /* Draw inside the row: 44px controls + 4px padding on each side stay 52px.
44
+ Sortable owns ::before for its drag placeholder, so use ::after here. */
45
+ .Body > [data-row] + [data-row]::after,
46
+ .Body > [data-sortable] > [data-row] + [data-row]::after {
47
+ content: "";
48
+ position: absolute;
49
+ inset-inline: var(--field-group-separator-inset, 0px);
50
+ top: 0;
51
+ height: 1px;
52
+ background: var(--color-border);
53
+ pointer-events: none;
54
+ }
36
55
  }
37
56
  }
@@ -22,7 +22,7 @@
22
22
  margin-inline: auto;
23
23
  }.Footer {
24
24
  flex: none;
25
- padding: 16px var(--page-gutter) max(16px, env(safe-area-inset-bottom, 0px));
25
+ padding: 16px var(--page-footer-gutter, var(--page-gutter)) var(--page-footer-padding-bottom, max(16px, env(safe-area-inset-bottom, 0px)));
26
26
  background: var(--page-background);
27
27
  }.Header {
28
28
  flex: none;
@@ -82,14 +82,14 @@
82
82
  border: none;
83
83
  border-radius: var(--radius-full);
84
84
  background-color: transparent;
85
- box-shadow: 0 0 0 1px var(--radio-group-indicator-border-color) inset;
85
+ box-shadow: var(--radio-group-ring, 0 0 0 1px var(--radio-group-indicator-border-color) inset);
86
86
  cursor: pointer;
87
87
  transition-duration: var(--transition-duration-basic);
88
88
  transition-property: box-shadow;
89
89
  transition-timing-function: var(--transition-ease-basic);
90
90
  }
91
91
  @media (hover: hover) and (pointer: fine) {.RadioItem:where(:not([data-disabled])):hover {
92
- box-shadow: 0 0 0 1px var(--radio-group-indicator-border-color-hover) inset;
92
+ box-shadow: var(--radio-group-ring, 0 0 0 1px var(--radio-group-indicator-border-color-hover) inset);
93
93
  }
94
94
  }
95
95
 
@@ -115,7 +115,7 @@
115
115
 
116
116
  .RadioIndicator::before,
117
117
  .RadioIndicator::after {
118
- display: block;
118
+ display: var(--radio-group-dot-display, block);
119
119
  content: "";
120
120
  grid-column-start: 1;
121
121
  grid-row-start: 1;
@@ -155,5 +155,11 @@
155
155
  100% {
156
156
  opacity: 1;
157
157
  }
158
+ }/* The touch stylesheet reveals this only in grouped Field rows. */.Checkmark {
159
+ display: var(--radio-group-checkmark-display, none);
160
+ grid-area: 1 / 1;
161
+ width: 22px;
162
+ height: 22px;
163
+ color: var(--color-text);
158
164
  }
159
165
  }
@@ -73,11 +73,11 @@
73
73
  --floating-input-inside-value-shift: 18px;
74
74
  --floating-input-inside-line-height: 22px;
75
75
 
76
- --field-row-min-height: 60px;
77
- --field-row-padding-block: 8px;
76
+ --field-row-min-height: 52px;
77
+ --field-row-padding-block: 4px;
78
78
  --field-row-text-padding-block: 12px;
79
79
  --field-row-gap: 16px;
80
- --field-row-text-display: contents;
80
+ --field-row-text-display: flex;
81
81
  --field-row-label-font-size: 17px;
82
82
  --field-row-label-line-height: 22px;
83
83
  --field-row-label-font-weight: var(--font-weight-normal);
@@ -86,7 +86,7 @@
86
86
  --field-row-above-font-size: 15px;
87
87
  --field-row-above-line-height: 20px;
88
88
  --field-row-above-font-weight: var(--font-weight-normal);
89
- --field-row-above-gap: 8px;
89
+ --field-row-above-gap: 4px;
90
90
  --field-row-above-padding-block: 12px;
91
91
  --field-row-list-padding-block: 12px;
92
92
  --field-row-list-row-gap: 6px;
@@ -97,7 +97,8 @@
97
97
  --badge-size-xl: 36px;
98
98
 
99
99
  --field-group-radius: 26px;
100
- --field-group-border-width: 0;
100
+ --field-group-separator-inset: 16px;
101
+ --field-group-border-width: 1px;
101
102
  --field-group-background: var(--color-surface);
102
103
  --field-group-title-color: var(--color-text-secondary);
103
104
  --field-group-title-font-size: 17px;
@@ -108,16 +109,25 @@
108
109
  --field-group-description-line-height: 18px;
109
110
  }
110
111
 
111
- html [data-mobile-placement="bottom"] {
112
+ html [data-mobile-placement="bottom"]:not([data-mobile-variant]) {
112
113
  --dialog-panel-radius: 38px 38px 0 0;
113
114
  --dialog-panel-max-height: calc(100dvh - 10px);
114
115
  }
115
116
 
116
- html [data-mobile-placement="center"] {
117
+ html [data-mobile-placement="center"]:not([data-mobile-variant]) {
117
118
  --dialog-panel-width: 300px;
118
119
  --dialog-panel-radius: 34px;
119
120
  }
120
121
 
122
+ /* List choices keep their radio semantics and keyboard behavior, with the
123
+ trailing checkmark used by iOS lists instead of the desktop radio dot. */
124
+ html [data-row] {
125
+ --radio-group-indicator-size: 22px;
126
+ --radio-group-ring: none;
127
+ --radio-group-dot-display: none;
128
+ --radio-group-checkmark-display: block;
129
+ }
130
+
121
131
  html [role="radiogroup"] {
122
132
  --segmented-control-font-size: 15px;
123
133
  }
@@ -366,6 +366,7 @@
366
366
  --dialog-alert-radius: 34px;
367
367
  --dialog-alert-padding: 14px;
368
368
  --dialog-alert-action-height: 48px;
369
+ --dialog-sheet-action-height: 50px;
369
370
  --dialog-sheet-radius: 38px;
370
371
  --dialog-sheet-close-size: var(--control-size-2xl);
371
372
  --dialog-sheet-close-icon-size: 34px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexui/styles",
3
- "version": "0.1.31",
3
+ "version": "0.1.32",
4
4
  "description": "Framework-agnostic CSS for Plex UI: design tokens, globals and component styles",
5
5
  "type": "module",
6
6
  "license": "MIT",