@uncinq/css-components 1.9.0 → 1.10.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.
@@ -351,28 +351,19 @@
351
351
 
352
352
  /* ── Trigger ───────────────────────────────────────────────────────
353
353
  * Once the panel has gone inline there is nothing left to open, so its
354
- * trigger goes with it. Kept here rather than restated by every host.
354
+ * trigger goes with it.
355
355
  *
356
- * Only reaches a trigger that is the panel's own previous sibling: adjacency
357
- * is what proves intent, so any button there qualifies. A trigger placed
358
- * further away — inside the heading that precedes the panel, as the filters
359
- * do — is not covered and stays visible. */
360
-
361
- @media (--sm) {
362
- button:has(+ .panel-inline-sm) { display: none; }
363
- }
364
-
365
- @media (--md) {
366
- button:has(+ .panel-inline-md) { display: none; }
367
- }
368
-
369
- @media (--lg) {
370
- button:has(+ .panel-inline-lg) { display: none; }
371
- }
372
-
373
- @media (--xl) {
374
- button:has(+ .panel-inline-xl) { display: none; }
375
- }
356
+ * The trigger carries its own breakpoint rather than being reached from the
357
+ * panel: the only reliable link between the two is data-target matching the
358
+ * id, and no selector can compare two values. Any positional rule would work
359
+ * only as long as nobody moves the markup — and a filter button lives in the
360
+ * page heading, not beside the panel. Both classes come from one site param,
361
+ * so the pair cannot disagree. */
362
+
363
+ @media (--sm) { .panel-trigger-sm { display: none; } }
364
+ @media (--md) { .panel-trigger-md { display: none; } }
365
+ @media (--lg) { .panel-trigger-lg { display: none; } }
366
+ @media (--xl) { .panel-trigger-xl { display: none; } }
376
367
 
377
368
  /* ── Entry transition ──────────────────────────────────────────────
378
369
  * Opening is a discrete display change, so the start state has to be
@@ -0,0 +1,27 @@
1
+ /* components/surtitle.css */
2
+ /*
3
+ * .surtitle — eyebrow label displayed above a heading.
4
+ *
5
+ * Expected HTML:
6
+ * <p class="surtitle">Category</p>
7
+ * <h2>Main title</h2>
8
+ */
9
+ @layer components {
10
+ .surtitle {
11
+ background-color: var(--surtitle-color-background);
12
+ border-color: var(--surtitle-border-color);
13
+ border-radius: var(--surtitle-border-radius);
14
+ border-style: var(--surtitle-border-style);
15
+ border-width: var(--surtitle-border-width);
16
+ color: var(--surtitle-color-text);
17
+ font-size: var(--surtitle-font-size);
18
+ font-weight: var(--surtitle-font-weight);
19
+ letter-spacing: var(--surtitle-letter-spacing);
20
+ line-height: var(--surtitle-line-height);
21
+ margin-block-end: var(--surtitle-margin-block-end);
22
+ margin-block-start: var(--surtitle-margin-block-start);
23
+ padding-block: var(--surtitle-padding-block);
24
+ padding-inline: var(--surtitle-padding-inline);
25
+ text-transform: var(--surtitle-text-transform);
26
+ }
27
+ }
package/css/index.css CHANGED
@@ -25,3 +25,4 @@
25
25
  @import 'components/nav-title.css';
26
26
  @import 'components/pagination.css';
27
27
  @import 'components/panel.css';
28
+ @import 'components/surtitle.css';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uncinq/css-components",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "Framework-agnostic CSS component implementations.",
5
5
  "license": "MIT",
6
6
  "repository": {