@plexui/styles 0.8.0 → 0.8.1

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.
@@ -46,31 +46,31 @@
46
46
  border-end-end-radius: calc(var(--field-group-radius) - var(--field-group-border-width));
47
47
  }/* A full-row action's hover and press fill the row and keep the card's corners on the first and last rows: inside
48
48
  the card's border, so its radius less the border (owner 14.11: «hover/pressed должно иметь скругления фона»).
49
- The phone takes the card's own radius below. */.Body > [data-row]:first-child > button[data-block][data-variant="ghost"]::before,
50
- .Body > [data-sortable]:first-child > [data-row]:first-child > button[data-block][data-variant="ghost"]::before,
51
- .Body > [data-row]:first-child > [data-swipe-content] > button[data-block][data-variant="ghost"]::before {
49
+ The phone takes the card's own radius below. */.Body > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::before,
50
+ .Body > [data-sortable]:first-child > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::before,
51
+ .Body > [data-row]:first-child > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"]::before {
52
52
  border-start-start-radius: calc(var(--field-group-radius) - var(--field-group-border-width));
53
53
  border-start-end-radius: calc(var(--field-group-radius) - var(--field-group-border-width));
54
- }.Body > [data-row]:last-child > button[data-block][data-variant="ghost"]::before,
55
- .Body > [data-sortable]:last-child > [data-row]:last-child > button[data-block][data-variant="ghost"]::before,
56
- .Body > [data-row]:last-child > [data-swipe-content] > button[data-block][data-variant="ghost"]::before {
54
+ }.Body > [data-row]:last-child > :is(button, a)[data-block][data-variant="ghost"]::before,
55
+ .Body > [data-sortable]:last-child > [data-row]:last-child > :is(button, a)[data-block][data-variant="ghost"]::before,
56
+ .Body > [data-row]:last-child > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"]::before {
57
57
  border-end-start-radius: calc(var(--field-group-radius) - var(--field-group-border-width));
58
58
  border-end-end-radius: calc(var(--field-group-radius) - var(--field-group-border-width));
59
59
  }/* A full-row action is the cell itself: a press fills it to the cell's edges and does not shrink, on every width
60
- (owner 14.11: «уменьшается по ширине появляются просветы»). */.Body > [data-row] > button[data-block][data-variant="ghost"],
61
- .Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"],
62
- .Body > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"],
63
- .Body > [data-sortable] > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"] {
60
+ (owner 14.11: «уменьшается по ширине появляются просветы»). */.Body > [data-row] > :is(button, a)[data-block][data-variant="ghost"],
61
+ .Body > [data-sortable] > [data-row] > :is(button, a)[data-block][data-variant="ghost"],
62
+ .Body > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"],
63
+ .Body > [data-sortable] > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"] {
64
64
  --button-mobile-material-scale: 1;
65
65
  }/* A row that is an action is the row itself, as an iOS 27.2 List draws a Button (owner 14.11: «без шеврона кнопки»,
66
66
  «в PlexUI такого нет же?»): the row's height (52) and label type (17/22 on a phone), its words where a row's label
67
67
  starts (the row inset, 20 on a phone) and no chevron. The Button's color tints the words: info for the accent,
68
68
  danger for a destructive row, secondary for a row that opens a choice. An icon after the words stands at the row's
69
69
  trailing edge (arrow.up.right of a link that leaves the app, a 12pt glyph 20 from the edge). A row with
70
- data-align="center" centres its words, as Settings puts "Reset to Default" in a group of its own. */.Body > [data-row] > button[data-block][data-variant="ghost"],
71
- .Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"],
72
- .Body > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"],
73
- .Body > [data-sortable] > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"] {
70
+ data-align="center" centres its words, as Settings puts "Reset to Default" in a group of its own. */.Body > [data-row] > :is(button, a)[data-block][data-variant="ghost"],
71
+ .Body > [data-sortable] > [data-row] > :is(button, a)[data-block][data-variant="ghost"],
72
+ .Body > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"],
73
+ .Body > [data-sortable] > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"] {
74
74
  --button-size-md: var(--field-row-min-height);
75
75
  --button-font-size-md: var(--field-row-label-font-size);
76
76
  --button-line-height-md: var(--field-row-label-line-height);
@@ -82,24 +82,21 @@
82
82
  text-align: start;
83
83
  }
84
84
 
85
- .Body > [data-row] > button[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-sortable] > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child) {
85
+ .Body > [data-row] > :is(button, a)[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-sortable] > [data-row] > :is(button, a)[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-sortable] > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child) {
86
86
  margin-inline-start: auto;
87
- }.Body > [data-row][data-align="center"] > button[data-block][data-variant="ghost"],
88
- .Body > [data-sortable] > [data-row][data-align="center"] > button[data-block][data-variant="ghost"],
89
- .Body > [data-row][data-align="center"] > [data-swipe-content] > button[data-block][data-variant="ghost"],
90
- .Body > [data-sortable] > [data-row][data-align="center"] > [data-swipe-content] > button[data-block][data-variant="ghost"] {
87
+ }.Body > [data-row][data-align="center"] > :is(button, a)[data-block][data-variant="ghost"],
88
+ .Body > [data-sortable] > [data-row][data-align="center"] > :is(button, a)[data-block][data-variant="ghost"],
89
+ .Body > [data-row][data-align="center"] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"],
90
+ .Body > [data-sortable] > [data-row][data-align="center"] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"] {
91
91
  --button-justify-content: center;
92
92
  text-align: center;
93
93
  }
94
94
 
95
95
  /* Centred words keep their icon beside them, not at the edge */
96
- .Body > [data-row][data-align="center"] > button[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-sortable] > [data-row][data-align="center"] > button[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-row][data-align="center"] > [data-swipe-content] > button[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-sortable] > [data-row][data-align="center"] > [data-swipe-content] > button[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child) {
96
+ .Body > [data-row][data-align="center"] > :is(button, a)[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-sortable] > [data-row][data-align="center"] > :is(button, a)[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-row][data-align="center"] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-sortable] > [data-row][data-align="center"] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child) {
97
97
  margin-inline-start: 0;
98
98
  }/* With a mouse a row action hovers as a choice row does, in the row's light fill */@media (hover: hover) and (min-width: 768px) {
99
- .Body > [data-row] > button[data-block][data-variant="ghost"]:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)),
100
- .Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"]:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)),
101
- .Body > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"]:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)),
102
- .Body > [data-sortable] > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"]:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
99
+ .Body > [data-row] > :is(button, a)[data-block][data-variant="ghost"]:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)), .Body > [data-sortable] > [data-row] > :is(button, a)[data-block][data-variant="ghost"]:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)), .Body > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"]:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)), .Body > [data-sortable] > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"]:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
103
100
  --color-background-secondary-ghost-hover: var(--field-row-hover-background);
104
101
  }
105
102
  }/* A row that fills on hover (a choice row with a mouse) keeps the card's corners too */.Body > [data-row]:first-child,
@@ -216,31 +213,31 @@
216
213
 
217
214
  /* Full-row actions share the cell's bounds. Only their text and accessories
218
215
  sit inside the row padding; the pressed surface must not shrink inward. */
219
- .Body > [data-row] > button[data-block][data-variant="ghost"],
220
- .Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"],
221
- .Body > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"],
222
- .Body > [data-sortable] > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"] {
216
+ .Body > [data-row] > :is(button, a)[data-block][data-variant="ghost"],
217
+ .Body > [data-sortable] > [data-row] > :is(button, a)[data-block][data-variant="ghost"],
218
+ .Body > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"],
219
+ .Body > [data-sortable] > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"] {
223
220
  --button-mobile-material-scale: 1;
224
221
  }
225
222
 
226
- .Body > [data-row]:first-child > button[data-block][data-variant="ghost"]::before,
227
- .Body > [data-sortable]:first-child > [data-row]:first-child > button[data-block][data-variant="ghost"]::before {
223
+ .Body > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::before,
224
+ .Body > [data-sortable]:first-child > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::before {
228
225
  border-start-start-radius: var(--field-group-radius);
229
226
  border-start-end-radius: var(--field-group-radius);
230
227
  }
231
228
 
232
- .Body > [data-row]:last-child > button[data-block][data-variant="ghost"]::before,
233
- .Body > [data-sortable]:last-child > [data-row]:last-child > button[data-block][data-variant="ghost"]::before {
229
+ .Body > [data-row]:last-child > :is(button, a)[data-block][data-variant="ghost"]::before,
230
+ .Body > [data-sortable]:last-child > [data-row]:last-child > :is(button, a)[data-block][data-variant="ghost"]::before {
234
231
  border-end-start-radius: var(--field-group-radius);
235
232
  border-end-end-radius: var(--field-group-radius);
236
233
  }
237
234
 
238
235
  /* An open popup is not a held press. Keep selection and explicit glass
239
236
  surfaces independent; the trigger remains focusable and expanded. */
240
- .Body > [data-row] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before,
241
- .Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before,
242
- .Body > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before,
243
- .Body > [data-sortable] > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before {
237
+ .Body > [data-row] > :is(button, a)[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before,
238
+ .Body > [data-sortable] > [data-row] > :is(button, a)[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before,
239
+ .Body > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before,
240
+ .Body > [data-sortable] > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before {
244
241
  opacity: 0;
245
242
  }
246
243
 
@@ -371,28 +368,23 @@
371
368
 
372
369
  /* Full-row actions share the cell's bounds. Only their text and accessories
373
370
  sit inside the row padding; the pressed surface must not shrink inward. */
374
- :where([data-plex-layout="phone"]) .Body > [data-row] > button[data-block][data-variant="ghost"],
375
- :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"],
376
- :where([data-plex-layout="phone"]) .Body > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"],
377
- :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"] {
371
+ :where([data-plex-layout="phone"]) .Body > [data-row] > :is(button, a)[data-block][data-variant="ghost"], :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > :is(button, a)[data-block][data-variant="ghost"], :where([data-plex-layout="phone"]) .Body > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"], :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"] {
378
372
  --button-mobile-material-scale: 1;
379
373
  }
380
374
 
381
- :where([data-plex-layout="phone"]) .Body > [data-row]:first-child > button[data-block][data-variant="ghost"]::before,
382
- :where([data-plex-layout="phone"]) .Body > [data-sortable]:first-child > [data-row]:first-child > button[data-block][data-variant="ghost"]::before {
375
+ :where([data-plex-layout="phone"]) .Body > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::before, :where([data-plex-layout="phone"]) .Body > [data-sortable]:first-child > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::before {
383
376
  border-start-start-radius: var(--field-group-radius);
384
377
  border-start-end-radius: var(--field-group-radius);
385
378
  }
386
379
 
387
- :where([data-plex-layout="phone"]) .Body > [data-row]:last-child > button[data-block][data-variant="ghost"]::before,
388
- :where([data-plex-layout="phone"]) .Body > [data-sortable]:last-child > [data-row]:last-child > button[data-block][data-variant="ghost"]::before {
380
+ :where([data-plex-layout="phone"]) .Body > [data-row]:last-child > :is(button, a)[data-block][data-variant="ghost"]::before, :where([data-plex-layout="phone"]) .Body > [data-sortable]:last-child > [data-row]:last-child > :is(button, a)[data-block][data-variant="ghost"]::before {
389
381
  border-end-start-radius: var(--field-group-radius);
390
382
  border-end-end-radius: var(--field-group-radius);
391
383
  }
392
384
 
393
385
  /* An open popup is not a held press. Keep selection and explicit glass
394
386
  surfaces independent; the trigger remains focusable and expanded. */
395
- :where([data-plex-layout="phone"]) .Body > [data-row] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before, :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before, :where([data-plex-layout="phone"]) .Body > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before, :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before {
387
+ :where([data-plex-layout="phone"]) .Body > [data-row] > :is(button, a)[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before, :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > :is(button, a)[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before, :where([data-plex-layout="phone"]) .Body > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before, :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before {
396
388
  opacity: 0;
397
389
  }
398
390
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexui/styles",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Framework-agnostic CSS for Plex UI: design tokens, globals and component styles",
5
5
  "type": "module",
6
6
  "license": "MIT",