@birdycom/omniaui 0.14.1 → 0.14.2

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/oc-theme.css CHANGED
@@ -1,4 +1,4 @@
1
- /* File: oc-theme.css — generated from tokens/semantic.json by @birdycom/omniacss 0.14.1. Do not edit. */
1
+ /* File: oc-theme.css — generated from tokens/semantic.json by @birdycom/omniacss 0.14.2. Do not edit. */
2
2
  /* Semantic theme tokens: every color is light-dark() of an Omnia palette token (oc-colors.css). */
3
3
  /* Same source as the desktop export: npx omniacss tokens --format json|dtcg|python */
4
4
  :root {
@@ -15,6 +15,8 @@
15
15
  interpolate-size: allow-keywords;
16
16
  }
17
17
  .oc-severity-card + .oc-severity-card { margin-block-start: 0.5rem; }
18
+ /* In a stack the gap of the stack is the space between the cards; the margin would add to it. */
19
+ .oc-stack > .oc-severity-card + .oc-severity-card { margin-block-start: 0; }
18
20
 
19
21
  /* Head row (summary): icon, title + tags, level badge, chevron. */
20
22
  .oc-severity-card-head {
@@ -72,6 +74,8 @@
72
74
  .oc-severity-card[open]::details-content { block-size: auto; }
73
75
  .oc-severity-card-body { padding: 0 1rem 1rem 3rem; font-size: 0.875rem; line-height: 1.6; color: var(--oc-muted-foreground); }
74
76
  .oc-severity-card-body > :first-child { margin-block-start: 0; }
77
+ /* Without an icon in the head the text lines up with the title instead of the icon column. */
78
+ .oc-severity-card:not(:has(> .oc-severity-card-head .oc-severity-card-icon)) .oc-severity-card-body { padding-inline-start: 1rem; }
75
79
  .oc-severity-card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-start: 0.75rem; }
76
80
 
77
81
  /* Levels (theme tokens; critical is a deeper red). */
@@ -9,3 +9,14 @@
9
9
  @media (min-width: 40rem) {
10
10
  .oc-dl--glossary .oc-dl-row { grid-template-columns: minmax(8rem, var(--oc-dl-term-width, 30%)) minmax(0, 1fr); }
11
11
  }
12
+
13
+ /* A definition list inside .oc-prose (a glossary in a privacy policy): the rows keep their own rhythm, not the flow
14
+ margin of the prose (1.1em on every element), and the dd does not get the indent and top margin of a prose dd. */
15
+ .oc-prose .oc-dl > .oc-dl-row { margin-block: 0; }
16
+ .oc-prose .oc-dl :is(.oc-dl-term, .oc-dl-detail) { margin: 0; padding-inline-start: 0; }
17
+ /* Long terms ("Verwerkingsverantwoordelijke") hyphenate in the language of the page; where the browser has no hyphenation for it, they still break instead of running into the explanation. */
18
+ .oc-dl--glossary .oc-dl-term { hyphens: auto; overflow-wrap: break-word; }
19
+
20
+ /* Flush: no margin and no line above the list (a list with no .oc-dl-title above it). */
21
+ .oc-dl--flush { margin-block-start: 0; border-block-start: 0; }
22
+ .oc-dl--flush > .oc-dl-row:first-child { padding-block-start: 0; }
@@ -12,6 +12,8 @@
12
12
  margin: 0;
13
13
  padding: 0;
14
14
  list-style: none;
15
+ /* One column that never grows with its widest step (a <pre> or a long URL stays inside the card). */
16
+ grid-template-columns: minmax(0, 1fr);
15
17
  counter-reset: oc-step-list;
16
18
  font-size: 0.875rem;
17
19
  line-height: 1.5;
@@ -19,7 +21,9 @@
19
21
  /* The text flows as normal text (bold words and links stay inline); the number hangs in the indent on the first line. */
20
22
  .oc-step-list > li {
21
23
  position: relative;
24
+ min-inline-size: 0;
22
25
  padding-inline-start: 1.85rem;
26
+ overflow-wrap: anywhere;
23
27
  counter-increment: oc-step-list;
24
28
  }
25
29
  .oc-step-list > li::before {
@@ -37,6 +41,8 @@
37
41
  .oc-step-list > li > :first-child { margin-block-start: 0; }
38
42
  .oc-step-list > li > :last-child { margin-block-end: 0; }
39
43
  .oc-step-list a { text-underline-offset: 2px; }
44
+ /* A code block in a step scrolls inside the step. */
45
+ .oc-step-list pre { max-inline-size: 100%; overflow-x: auto; overflow-wrap: normal; }
40
46
 
41
47
  /* Small: tighter rows and a smaller text, for a dense panel. */
42
48
  .oc-step-list--sm { gap: 0.4rem; font-size: 0.8125rem; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@birdycom/omniaui",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
4
4
  "description": "OmniaUI components: CSS-first UI built on native HTML (dialog, popover, details) with light-dark() theming — no JavaScript required. Includes the omniaui CLI (add/list).",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -65,7 +65,7 @@
65
65
  "omniaui": "./bin/omniaui.mjs"
66
66
  },
67
67
  "peerDependencies": {
68
- "@birdycom/omniacss": "^0.14.1"
68
+ "@birdycom/omniacss": "^0.14.2"
69
69
  },
70
70
  "peerDependenciesMeta": {
71
71
  "@birdycom/omniacss": {
@@ -4,6 +4,7 @@
4
4
  .oc-dl-title / -description: Panel heading and note
5
5
  .oc-dl: The dl
6
6
  .oc-dl--glossary: Term + explanation: the term bold, the explanation normal, first lines on one line
7
+ .oc-dl--flush: No margin and no line above the list (no title above it)
7
8
  .oc-dl-row: div grouping one term and detail
8
9
  .oc-dl-term / .oc-dl-detail: dt / dd
9
10
  .oc-dl-footer: Optional footer (actions)