@birdycom/omniaui 0.13.0 → 0.14.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.
- package/bin/lib/copy-js.mjs +3 -1
- package/dist/components.css +476 -6
- package/dist/components.min.css +1 -1
- package/dist/form-extras.d.ts +3 -1
- package/dist/form-extras.js +21 -3
- package/dist/oc-theme.css +1 -1
- package/dist/particles.d.ts +14 -0
- package/dist/particles.js +133 -0
- package/dist/parts/app-accordion-accent.css +18 -1
- package/dist/parts/app-callout.css +20 -0
- package/dist/parts/app-group.css +36 -0
- package/dist/parts/data-graph.css +132 -0
- package/dist/parts/data-meter-row.css +56 -3
- package/dist/parts/data-reading.css +26 -0
- package/dist/parts/forms-language-select.css +18 -0
- package/dist/parts/nav-menu-static.css +50 -0
- package/dist/parts/site-backgrounds.css +68 -0
- package/dist/parts/site-cards.css +2 -1
- package/dist/parts/site-neon.css +33 -0
- package/dist/showcase.css +2 -0
- package/manifest.json +64 -0
- package/package.json +3 -2
- package/snippets/accordion-accent.html +22 -0
- package/snippets/backgrounds.html +18 -0
- package/snippets/callout.html +17 -0
- package/snippets/graph.html +41 -0
- package/snippets/group.html +34 -0
- package/snippets/language-select.html +11 -0
- package/snippets/menu-static.html +36 -0
- package/snippets/meter-row.html +22 -0
- package/snippets/neon.html +18 -0
- package/snippets/particle-field.html +14 -0
- package/snippets/reading.html +25 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* File: packages/ui/src/parts/site-backgrounds.css | Map: grid (--fixed, --fade) -> orb (--sm, --drift) -> scan lines -> particle canvas -> reduced motion */
|
|
2
|
+
/* Background pack: decorative layers behind (or over) a page or a section. All are aria-hidden, ignore the pointer and
|
|
3
|
+
follow the theme tokens; put them in a positioned parent (scan lines and the particle canvas cover the viewport unless --local).
|
|
4
|
+
<div class="oc-bg-grid" aria-hidden="true"></div> <div class="oc-orb" aria-hidden="true"></div>
|
|
5
|
+
<div class="oc-scanlines" aria-hidden="true"></div> <canvas class="oc-particles" aria-hidden="true"></canvas> (+ particles.js) */
|
|
6
|
+
|
|
7
|
+
/* Grid: thin lines in the primary color. --oc-bg-grid-size (60px) and --oc-bg-grid-line set the size and the color. */
|
|
8
|
+
.oc-bg-grid {
|
|
9
|
+
position: absolute;
|
|
10
|
+
inset: 0;
|
|
11
|
+
z-index: -1;
|
|
12
|
+
pointer-events: none;
|
|
13
|
+
background-image:
|
|
14
|
+
linear-gradient(var(--oc-bg-grid-line, oklch(from var(--oc-primary) l c h / 0.04)) 1px, transparent 1px),
|
|
15
|
+
linear-gradient(90deg, var(--oc-bg-grid-line, oklch(from var(--oc-primary) l c h / 0.04)) 1px, transparent 1px);
|
|
16
|
+
background-size: var(--oc-bg-grid-size, 60px) var(--oc-bg-grid-size, 60px);
|
|
17
|
+
}
|
|
18
|
+
.oc-bg-grid--fixed { position: fixed; --oc-bg-grid-size: 40px; }
|
|
19
|
+
/* Fade: the lines disappear towards the edges. */
|
|
20
|
+
.oc-bg-grid--fade { mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%); }
|
|
21
|
+
|
|
22
|
+
/* Orb: a soft round glow in the accent color (.oc-accent--violet for another color). Place it with inset-* or translate. */
|
|
23
|
+
.oc-orb {
|
|
24
|
+
position: absolute;
|
|
25
|
+
z-index: -1;
|
|
26
|
+
inline-size: var(--oc-orb-size, min(500px, 90vw));
|
|
27
|
+
aspect-ratio: 1;
|
|
28
|
+
pointer-events: none;
|
|
29
|
+
background: radial-gradient(circle, oklch(from var(--oc-accent-from) l c h / var(--oc-orb-strength, 0.15)) 0%, transparent 70%);
|
|
30
|
+
border-radius: 50%;
|
|
31
|
+
filter: blur(var(--oc-orb-blur, 50px));
|
|
32
|
+
}
|
|
33
|
+
.oc-orb--sm { --oc-orb-size: 18rem; --oc-orb-blur: 35px; }
|
|
34
|
+
.oc-orb--drift { animation: oc-orb-drift 18s ease-in-out infinite alternate; }
|
|
35
|
+
@keyframes oc-orb-drift { to { translate: 3rem 2rem; scale: 1.1; } }
|
|
36
|
+
|
|
37
|
+
/* Scan lines: a fine horizontal raster over the page (2% primary). --local keeps it inside a positioned parent. */
|
|
38
|
+
.oc-scanlines {
|
|
39
|
+
position: fixed;
|
|
40
|
+
inset: 0;
|
|
41
|
+
z-index: var(--oc-scanlines-z, 9999);
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
background: repeating-linear-gradient(
|
|
44
|
+
0deg,
|
|
45
|
+
transparent 0 2px,
|
|
46
|
+
var(--oc-scanlines-color, oklch(from var(--oc-primary) l c h / 0.02)) 2px 4px
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
.oc-scanlines--local { position: absolute; z-index: 1; }
|
|
50
|
+
|
|
51
|
+
/* Particle canvas: particles.js draws drifting points with thin lines between neighbours. It reads two colors from
|
|
52
|
+
this element: color (points and lines) and border-color (a second point color). --local fills a positioned parent. */
|
|
53
|
+
.oc-particles {
|
|
54
|
+
position: fixed;
|
|
55
|
+
inset: 0;
|
|
56
|
+
z-index: -1;
|
|
57
|
+
display: block;
|
|
58
|
+
inline-size: 100%;
|
|
59
|
+
block-size: 100%;
|
|
60
|
+
pointer-events: none;
|
|
61
|
+
color: var(--oc-accent-from);
|
|
62
|
+
border: 0 solid var(--oc-accent-to);
|
|
63
|
+
}
|
|
64
|
+
.oc-particles--local { position: absolute; }
|
|
65
|
+
|
|
66
|
+
@media (prefers-reduced-motion: reduce) {
|
|
67
|
+
.oc-orb--drift { animation: none; }
|
|
68
|
+
}
|
|
@@ -120,7 +120,8 @@
|
|
|
120
120
|
}
|
|
121
121
|
.oc-note--md {
|
|
122
122
|
max-inline-size: 60rem;
|
|
123
|
-
|
|
123
|
+
/* The size of the running text around it (the body size of the page). */
|
|
124
|
+
font-size: inherit;
|
|
124
125
|
}
|
|
125
126
|
|
|
126
127
|
/* Row of badges or pills above a title, and a tagline in the accent color (lighter, so it reads on a dark page). */
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* File: packages/ui/src/parts/site-neon.css | Map: glowing border (animated) -> neon button -> reduced motion */
|
|
2
|
+
/* Neon: a border that slowly glows from one accent color to the other, and a button with a neon gradient.
|
|
3
|
+
Colors: --oc-accent-from and --oc-accent-to (brand-1 and brand-2, or an .oc-accent--* preset).
|
|
4
|
+
.oc-glow-border goes on anything with a border: <form class="oc-glass oc-glow-border">, an .oc-card, a panel. */
|
|
5
|
+
|
|
6
|
+
.oc-glow-border {
|
|
7
|
+
border-color: var(--oc-accent-from);
|
|
8
|
+
box-shadow: 0 0 10px oklch(from var(--oc-accent-from) l c h / 0.35), var(--oc-glow-extra, 0 0 transparent);
|
|
9
|
+
animation: oc-glow-border var(--oc-glow-border-duration, 3s) ease-in-out infinite;
|
|
10
|
+
}
|
|
11
|
+
/* Glass keeps its light top edge and drop shadow under the glow. */
|
|
12
|
+
.oc-glass.oc-glow-border { --oc-glow-extra: var(--oc-glass-shadow), inset 0 1px 0 var(--oc-glass-edge-hi); }
|
|
13
|
+
@keyframes oc-glow-border {
|
|
14
|
+
0%, 100% { border-color: var(--oc-accent-from); box-shadow: 0 0 10px oklch(from var(--oc-accent-from) l c h / 0.35), var(--oc-glow-extra, 0 0 transparent); }
|
|
15
|
+
50% { border-color: var(--oc-accent-to); box-shadow: 0 0 20px oklch(from var(--oc-accent-to) l c h / 0.35), var(--oc-glow-extra, 0 0 transparent); }
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Neon button: gradient from one accent to the other, with a glow. --oc-btn-neon-ink sets the text color. */
|
|
19
|
+
.oc-btn--neon {
|
|
20
|
+
font-weight: 700;
|
|
21
|
+
letter-spacing: 0.08em;
|
|
22
|
+
color: var(--oc-btn-neon-ink, light-dark(var(--color-white-50), var(--color-black-40)));
|
|
23
|
+
background: linear-gradient(135deg, var(--oc-accent-from), var(--oc-accent-to)) border-box;
|
|
24
|
+
border-color: transparent;
|
|
25
|
+
box-shadow: 0 0 24px oklch(from var(--oc-accent-from) l c h / 0.4);
|
|
26
|
+
transition: filter var(--oc-transition-fast), box-shadow var(--oc-transition-fast);
|
|
27
|
+
}
|
|
28
|
+
.oc-btn--neon:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 0 32px oklch(from var(--oc-accent-from) l c h / 0.55); opacity: 1; }
|
|
29
|
+
.oc-btn--neon:disabled { color: var(--oc-muted-foreground); background: var(--oc-muted); box-shadow: none; }
|
|
30
|
+
|
|
31
|
+
@media (prefers-reduced-motion: reduce) {
|
|
32
|
+
.oc-glow-border { animation: none; }
|
|
33
|
+
}
|
package/dist/showcase.css
CHANGED
|
@@ -138,6 +138,8 @@
|
|
|
138
138
|
.oc-lead { margin: 0 0 1rem; color: var(--oc-muted-foreground); font-size: 1.15rem; line-height: 1.65; max-inline-size: 42rem; text-wrap: pretty; }
|
|
139
139
|
/* Larger and narrower, for a home hero. */
|
|
140
140
|
.oc-lead--lg { font-size: 1.2rem; max-inline-size: 36rem; }
|
|
141
|
+
/* Plain: the lead size in the text color and the full width (the intro of a product page). */
|
|
142
|
+
.oc-lead--plain { color: var(--oc-foreground); max-inline-size: none; }
|
|
141
143
|
.oc-split { display: grid; grid-template-columns: var(--oc-split-cols, repeat(auto-fit, minmax(min(100%, 24rem), 1fr))); gap: var(--oc-split-gap, 3rem); align-items: center; }
|
|
142
144
|
/* Ratio presets (one column up to 960px): --lead makes the text column wider, --media the image column.
|
|
143
145
|
Your own ratio: set --oc-split-cols in a class (and to 1fr in a media query for small screens). */
|
package/manifest.json
CHANGED
|
@@ -1343,6 +1343,70 @@
|
|
|
1343
1343
|
"requires": [
|
|
1344
1344
|
"@birdycom/omniaui"
|
|
1345
1345
|
]
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
"name": "reading",
|
|
1349
|
+
"file": "snippets/reading.html",
|
|
1350
|
+
"description": "A small measured value next to another value, such as a temperature, with a cool, warm or hot level",
|
|
1351
|
+
"requires": [
|
|
1352
|
+
"@birdycom/omniaui"
|
|
1353
|
+
]
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
"name": "callout",
|
|
1357
|
+
"file": "snippets/callout.html",
|
|
1358
|
+
"description": "A small card with a text on the left and one action on the right; the action moves under the text when the card is narrow",
|
|
1359
|
+
"requires": [
|
|
1360
|
+
"@birdycom/omniaui"
|
|
1361
|
+
]
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
"name": "menu-static",
|
|
1365
|
+
"file": "snippets/menu-static.html",
|
|
1366
|
+
"description": "The dropdown menu as a surface of its own, with a check column and hints, for a tray menu or a menu inside a panel",
|
|
1367
|
+
"requires": [
|
|
1368
|
+
"@birdycom/omniaui"
|
|
1369
|
+
]
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
"name": "group",
|
|
1373
|
+
"file": "snippets/group.html",
|
|
1374
|
+
"description": "One section inside a panel or widget, with a title, a colored status on the right and a muted line, and a hairline between groups",
|
|
1375
|
+
"requires": [
|
|
1376
|
+
"@birdycom/omniaui"
|
|
1377
|
+
]
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
"name": "neon",
|
|
1381
|
+
"file": "snippets/neon.html",
|
|
1382
|
+
"description": "A border that glows from one accent color to the other, and a button with a neon gradient",
|
|
1383
|
+
"requires": [
|
|
1384
|
+
"@birdycom/omniaui"
|
|
1385
|
+
]
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
"name": "backgrounds",
|
|
1389
|
+
"file": "snippets/backgrounds.html",
|
|
1390
|
+
"description": "Decorative layers behind a page or a section: a line grid, a soft glowing orb and fine scan lines",
|
|
1391
|
+
"requires": [
|
|
1392
|
+
"@birdycom/omniaui"
|
|
1393
|
+
]
|
|
1394
|
+
},
|
|
1395
|
+
{
|
|
1396
|
+
"name": "particle-field",
|
|
1397
|
+
"file": "snippets/particle-field.html",
|
|
1398
|
+
"description": "A background canvas with slowly drifting points and thin lines between points that are close together",
|
|
1399
|
+
"requires": [
|
|
1400
|
+
"@birdycom/omniaui"
|
|
1401
|
+
]
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
"name": "graph",
|
|
1405
|
+
"file": "snippets/graph.html",
|
|
1406
|
+
"description": "The look of a small network graph in SVG: a center with linked nodes, colored by level, moving edges and a pulse",
|
|
1407
|
+
"requires": [
|
|
1408
|
+
"@birdycom/omniaui"
|
|
1409
|
+
]
|
|
1346
1410
|
}
|
|
1347
1411
|
]
|
|
1348
1412
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@birdycom/omniaui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
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",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"./lazy.js": "./dist/lazy.js",
|
|
36
36
|
"./contact-form.js": "./dist/contact-form.js",
|
|
37
37
|
"./fly.js": "./dist/fly.js",
|
|
38
|
+
"./particles.js": "./dist/particles.js",
|
|
38
39
|
"./manifest.json": "./manifest.json",
|
|
39
40
|
"./package.json": "./package.json"
|
|
40
41
|
},
|
|
@@ -62,7 +63,7 @@
|
|
|
62
63
|
"omniaui": "./bin/omniaui.mjs"
|
|
63
64
|
},
|
|
64
65
|
"peerDependencies": {
|
|
65
|
-
"@birdycom/omniacss": "^0.
|
|
66
|
+
"@birdycom/omniacss": "^0.14.0"
|
|
66
67
|
},
|
|
67
68
|
"peerDependenciesMeta": {
|
|
68
69
|
"@birdycom/omniacss": {
|
|
@@ -22,3 +22,25 @@
|
|
|
22
22
|
<div class="oc-accordion-content">Pick a start date with the customer.</div>
|
|
23
23
|
</details>
|
|
24
24
|
</div>
|
|
25
|
+
<div class="oc-accordion oc-accordion--accent" style="inline-size:min(100%,32rem)">
|
|
26
|
+
<details class="oc-accordion-item" data-status="error" open>
|
|
27
|
+
<summary class="oc-accordion-trigger"><span class="oc-accordion-accent-dot"></span>Password found in a leak<span class="oc-accordion-accent-meta">2 sources</span></summary>
|
|
28
|
+
<div class="oc-accordion-content">Change the password on every site where you used it.</div>
|
|
29
|
+
</details>
|
|
30
|
+
<details class="oc-accordion-item" data-status="warn">
|
|
31
|
+
<summary class="oc-accordion-trigger"><span class="oc-accordion-accent-dot"></span>Email address public<span class="oc-accordion-accent-meta">1 source</span></summary>
|
|
32
|
+
<div class="oc-accordion-content">Found on a public profile page.</div>
|
|
33
|
+
</details>
|
|
34
|
+
<details class="oc-accordion-item" data-status="ok">
|
|
35
|
+
<summary class="oc-accordion-trigger"><span class="oc-accordion-accent-dot"></span>Phone number<span class="oc-accordion-accent-meta">not found</span></summary>
|
|
36
|
+
<div class="oc-accordion-content">Nothing found.</div>
|
|
37
|
+
</details>
|
|
38
|
+
<details class="oc-accordion-item" data-status="pending">
|
|
39
|
+
<summary class="oc-accordion-trigger"><span class="oc-accordion-accent-dot"></span>Data brokers<span class="oc-accordion-accent-meta">checking…</span></summary>
|
|
40
|
+
<div class="oc-accordion-content">Still running.</div>
|
|
41
|
+
</details>
|
|
42
|
+
<details class="oc-accordion-item" data-status="skip">
|
|
43
|
+
<summary class="oc-accordion-trigger"><span class="oc-accordion-accent-dot"></span>Dark web<span class="oc-accordion-accent-meta">not checked</span></summary>
|
|
44
|
+
<div class="oc-accordion-content">Needs a paid plan.</div>
|
|
45
|
+
</details>
|
|
46
|
+
</div>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!-- OmniaUI component: backgrounds - Decorative layers behind a page or a section: a line grid, a soft glowing orb and fine scan lines. Needs @birdycom/omniaui CSS.
|
|
2
|
+
File: packages/ui/snippets/backgrounds.html | Map: grid, orbs and scan lines.
|
|
3
|
+
Class API (modifiers are extra classes / attributes on the same element):
|
|
4
|
+
.oc-bg-grid: Thin lines (4% primary) in a 60px grid, behind the content of a positioned parent.
|
|
5
|
+
.oc-bg-grid--fixed / --fade: Fixed to the viewport (40px); lines that fade out towards the edges.
|
|
6
|
+
--oc-bg-grid-size / --oc-bg-grid-line: Size and color of the grid.
|
|
7
|
+
.oc-orb: A soft round glow in --oc-accent-from; place it with inset-*. Another color: .oc-accent--violet …
|
|
8
|
+
.oc-orb--sm / --drift: A smaller orb (18rem); a slow drift.
|
|
9
|
+
--oc-orb-size / --oc-orb-strength / --oc-orb-blur: Size, strength (0.15) and blur (50px) of the orb.
|
|
10
|
+
.oc-scanlines: Fine horizontal lines over the whole page (fixed, on top, ignores the pointer). --local: inside a positioned parent.
|
|
11
|
+
-->
|
|
12
|
+
<div style="position:relative;isolation:isolate;overflow:hidden;display:grid;place-items:center;min-block-size:16rem;inline-size:100%;border-radius:var(--oc-radius)">
|
|
13
|
+
<div class="oc-bg-grid oc-bg-grid--fade" aria-hidden="true"></div>
|
|
14
|
+
<div class="oc-orb oc-orb--drift" aria-hidden="true" style="inset-block-start:-6rem;inset-inline-start:-4rem;--oc-orb-strength:0.3"></div>
|
|
15
|
+
<div class="oc-orb oc-orb--sm oc-accent--violet" aria-hidden="true" style="inset-block-end:-3rem;inset-inline-end:2rem;--oc-orb-strength:0.3"></div>
|
|
16
|
+
<div class="oc-scanlines oc-scanlines--local" aria-hidden="true"></div>
|
|
17
|
+
<p style="margin:0;font-size:1.5rem;font-weight:700">Your content</p>
|
|
18
|
+
</div>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- OmniaUI component: callout - A small card with a text on the left and one action on the right; the action moves under the text when the card is narrow. Needs @birdycom/omniaui CSS.
|
|
2
|
+
File: packages/ui/snippets/callout.html | Map: text and a button.
|
|
3
|
+
Class API (modifiers are extra classes / attributes on the same element):
|
|
4
|
+
.oc-callout: The card: flex row, wraps, card colors and the padding of a small card (11px 13px).
|
|
5
|
+
.oc-callout__text: The text; a <strong> is the title on its own line, the rest is muted.
|
|
6
|
+
.oc-callout__action: One or more buttons; never shrinks. Under the text below about 300px.
|
|
7
|
+
-->
|
|
8
|
+
<div style="display:grid;gap:1rem;inline-size:100%">
|
|
9
|
+
<div class="oc-callout" style="max-inline-size:26rem">
|
|
10
|
+
<div class="oc-callout__text"><strong>Like the app?</strong><span>A small gift keeps it free for everyone.</span></div>
|
|
11
|
+
<div class="oc-callout__action"><button type="button" class="oc-btn oc-btn--sm">Support</button></div>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="oc-callout" style="max-inline-size:17rem">
|
|
14
|
+
<div class="oc-callout__text"><strong>Update 2.4 is ready</strong><span>Restart to install it.</span></div>
|
|
15
|
+
<div class="oc-callout__action"><button type="button" class="oc-btn oc-btn--sm oc-btn--outline">Later</button><button type="button" class="oc-btn oc-btn--sm">Restart</button></div>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<!-- OmniaUI component: graph - The look of a small network graph in SVG: a center with linked nodes, colored by level, moving edges and a pulse. Needs @birdycom/omniaui CSS.
|
|
2
|
+
File: packages/ui/snippets/graph.html | Map: drawn by hand -> one node lit.
|
|
3
|
+
Class API (modifiers are extra classes / attributes on the same element):
|
|
4
|
+
.oc-graph / .oc-graph__svg: The frame (accent color --oc-graph-accent) and the SVG, which scales with its width.
|
|
5
|
+
.oc-graph__edge: A dashed line in the accent color that flows outwards.
|
|
6
|
+
.oc-graph__node[data-level]: A node group: low, medium, high or critical sets --oc-graph-color.
|
|
7
|
+
.oc-graph__halo / __dot / __mark / __label: Soft ring, dot, sign inside and the name under it.
|
|
8
|
+
.oc-graph__node--center + .oc-graph__pulse: The center in the accent color with a ring that grows and fades.
|
|
9
|
+
.is-focused / .is-active: On the graph and one node (and its edge): that node lights up, the rest dims.
|
|
10
|
+
.oc-graph__tip (+ -level, -title, -meta): Tooltip for the node under the pointer; data-level colors its first line.
|
|
11
|
+
-->
|
|
12
|
+
<div class="oc-graph" style="inline-size:min(100%,26rem)">
|
|
13
|
+
<svg class="oc-graph__svg" viewBox="-170 -170 340 340" role="img" aria-label="Customer 1 and 5 sources">
|
|
14
|
+
<line class="oc-graph__edge" x1="0" y1="0" x2="0" y2="-120"/>
|
|
15
|
+
<line class="oc-graph__edge" x1="0" y1="0" x2="114.1" y2="-37.1"/>
|
|
16
|
+
<line class="oc-graph__edge" x1="0" y1="0" x2="70.5" y2="97.1"/>
|
|
17
|
+
<line class="oc-graph__edge" x1="0" y1="0" x2="-70.5" y2="97.1"/>
|
|
18
|
+
<line class="oc-graph__edge" x1="0" y1="0" x2="-114.1" y2="-37.1"/>
|
|
19
|
+
<g class="oc-graph__node oc-graph__node--center"><circle class="oc-graph__pulse" r="21"/><circle class="oc-graph__halo" r="30"/><circle class="oc-graph__dot" r="21"/><text class="oc-graph__mark">◉</text><text class="oc-graph__label" y="35">Customer 1</text></g>
|
|
20
|
+
<g class="oc-graph__node" data-level="critical" transform="translate(0 -120)"><circle class="oc-graph__halo" r="21"/><circle class="oc-graph__dot" r="14"/><text class="oc-graph__mark">!</text><text class="oc-graph__label" y="27">Forum 1</text></g>
|
|
21
|
+
<g class="oc-graph__node" data-level="high" transform="translate(114.1 -37.1)"><circle class="oc-graph__halo" r="21"/><circle class="oc-graph__dot" r="14"/><text class="oc-graph__mark">▲</text><text class="oc-graph__label" y="27">Shop 2</text></g>
|
|
22
|
+
<g class="oc-graph__node" data-level="medium" transform="translate(70.5 97.1)"><circle class="oc-graph__halo" r="21"/><circle class="oc-graph__dot" r="14"/><text class="oc-graph__mark">●</text><text class="oc-graph__label" y="27">People finder 1</text></g>
|
|
23
|
+
<g class="oc-graph__node" data-level="low" transform="translate(-70.5 97.1)"><circle class="oc-graph__halo" r="21"/><circle class="oc-graph__dot" r="14"/><text class="oc-graph__mark">○</text><text class="oc-graph__label" y="27">Register 1</text></g>
|
|
24
|
+
<g class="oc-graph__node" data-level="low" transform="translate(-114.1 -37.1)"><circle class="oc-graph__halo" r="21"/><circle class="oc-graph__dot" r="14"/><text class="oc-graph__mark">○</text><text class="oc-graph__label" y="27">Image search 1</text></g>
|
|
25
|
+
</svg>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="oc-graph is-focused" style="inline-size:min(100%,26rem)">
|
|
28
|
+
<svg class="oc-graph__svg" viewBox="-170 -170 340 340" role="img" aria-label="Customer 1 and 5 sources">
|
|
29
|
+
<line class="oc-graph__edge" x1="0" y1="0" x2="0" y2="-120"/>
|
|
30
|
+
<line class="oc-graph__edge is-active" x1="0" y1="0" x2="114.1" y2="-37.1"/>
|
|
31
|
+
<line class="oc-graph__edge" x1="0" y1="0" x2="70.5" y2="97.1"/>
|
|
32
|
+
<line class="oc-graph__edge" x1="0" y1="0" x2="-70.5" y2="97.1"/>
|
|
33
|
+
<line class="oc-graph__edge" x1="0" y1="0" x2="-114.1" y2="-37.1"/>
|
|
34
|
+
<g class="oc-graph__node oc-graph__node--center"><circle class="oc-graph__pulse" r="21"/><circle class="oc-graph__halo" r="30"/><circle class="oc-graph__dot" r="21"/><text class="oc-graph__mark">◉</text><text class="oc-graph__label" y="35">Customer 1</text></g>
|
|
35
|
+
<g class="oc-graph__node" data-level="critical" transform="translate(0 -120)"><circle class="oc-graph__halo" r="21"/><circle class="oc-graph__dot" r="14"/><text class="oc-graph__mark">!</text><text class="oc-graph__label" y="27">Forum 1</text></g>
|
|
36
|
+
<g class="oc-graph__node is-active" data-level="high" transform="translate(114.1 -37.1)"><circle class="oc-graph__halo" r="21"/><circle class="oc-graph__dot" r="14"/><text class="oc-graph__mark">▲</text><text class="oc-graph__label" y="27">Shop 2</text></g>
|
|
37
|
+
<g class="oc-graph__node" data-level="medium" transform="translate(70.5 97.1)"><circle class="oc-graph__halo" r="21"/><circle class="oc-graph__dot" r="14"/><text class="oc-graph__mark">●</text><text class="oc-graph__label" y="27">People finder 1</text></g>
|
|
38
|
+
<g class="oc-graph__node" data-level="low" transform="translate(-70.5 97.1)"><circle class="oc-graph__halo" r="21"/><circle class="oc-graph__dot" r="14"/><text class="oc-graph__mark">○</text><text class="oc-graph__label" y="27">Register 1</text></g>
|
|
39
|
+
<g class="oc-graph__node" data-level="low" transform="translate(-114.1 -37.1)"><circle class="oc-graph__halo" r="21"/><circle class="oc-graph__dot" r="14"/><text class="oc-graph__mark">○</text><text class="oc-graph__label" y="27">Image search 1</text></g>
|
|
40
|
+
</svg>
|
|
41
|
+
</div>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<!-- OmniaUI component: group - One section inside a panel or widget, with a title, a colored status on the right and a muted line, and a hairline between groups. Needs @birdycom/omniaui CSS.
|
|
2
|
+
File: packages/ui/snippets/group.html | Map: groups in a panel.
|
|
3
|
+
Class API (modifiers are extra classes / attributes on the same element):
|
|
4
|
+
.oc-group: One section: padding 14px 0 6px; a hairline above every group that follows another.
|
|
5
|
+
.oc-group__head: Title and status on one line.
|
|
6
|
+
.oc-group__title: The title (an h2 or h3); cut with an ellipsis when it is too long.
|
|
7
|
+
.oc-group__aside[data-tone]: Status on the right; data-tone="busy|ok|warn|error" colors it.
|
|
8
|
+
.oc-group__meta: Muted line under the title.
|
|
9
|
+
--oc-group-line: Color of the hairline (glass hairline or border by default).
|
|
10
|
+
-->
|
|
11
|
+
<div class="oc-card" style="padding:0 1rem 0.5rem;inline-size:min(100%,26rem)">
|
|
12
|
+
<section class="oc-group">
|
|
13
|
+
<header class="oc-group__head"><h2 class="oc-group__title">Service 1</h2><span class="oc-group__aside" data-tone="busy">2 busy</span></header>
|
|
14
|
+
<p class="oc-group__meta">Plan Team · resets Monday</p>
|
|
15
|
+
<div class="oc-meter-list oc-meter-list--dense">
|
|
16
|
+
<div class="oc-meter-row" style="--oc-meter: 46%"><span class="oc-meter-row__label">Session</span><span class="oc-meter-row__value"><strong>46%</strong> · 23k / 50k</span><span class="oc-meter-row__bar" role="meter" aria-label="Session" aria-valuemin="0" aria-valuemax="100" aria-valuenow="46"></span></div>
|
|
17
|
+
<div class="oc-meter-row" data-level="warn" style="--oc-meter: 78%"><span class="oc-meter-row__label">Week</span><span class="oc-meter-row__value"><strong>78%</strong> · 1.6M / 2M</span><span class="oc-meter-row__bar" role="meter" aria-label="Week" aria-valuemin="0" aria-valuemax="100" aria-valuenow="78"></span></div>
|
|
18
|
+
</div>
|
|
19
|
+
</section>
|
|
20
|
+
<section class="oc-group">
|
|
21
|
+
<header class="oc-group__head"><h2 class="oc-group__title">Service 2</h2><span class="oc-group__aside">idle</span></header>
|
|
22
|
+
<p class="oc-group__meta">Plan Free</p>
|
|
23
|
+
<div class="oc-meter-list oc-meter-list--dense">
|
|
24
|
+
<div class="oc-meter-row" style="--oc-meter: 12%"><span class="oc-meter-row__label">Day</span><span class="oc-meter-row__value"><strong>12%</strong> · 6 / 50 requests</span><span class="oc-meter-row__bar" role="meter" aria-label="Day" aria-valuemin="0" aria-valuemax="100" aria-valuenow="12"></span></div>
|
|
25
|
+
</div>
|
|
26
|
+
</section>
|
|
27
|
+
<section class="oc-group">
|
|
28
|
+
<header class="oc-group__head"><h2 class="oc-group__title">Service 3</h2><span class="oc-group__aside" data-tone="error">limit reached</span></header>
|
|
29
|
+
<p class="oc-group__meta">Plan Free · resets in 3 h</p>
|
|
30
|
+
<div class="oc-meter-list oc-meter-list--dense">
|
|
31
|
+
<div class="oc-meter-row" data-level="critical" style="--oc-meter: 100%"><span class="oc-meter-row__label">Day</span><span class="oc-meter-row__value"><strong>100%</strong> · 50 / 50 requests</span><span class="oc-meter-row__bar" role="meter" aria-label="Day" aria-valuemin="0" aria-valuemax="100" aria-valuenow="100"></span></div>
|
|
32
|
+
</div>
|
|
33
|
+
</section>
|
|
34
|
+
</div>
|
|
@@ -24,3 +24,14 @@
|
|
|
24
24
|
<option value="GBP">GBP</option>
|
|
25
25
|
</select>
|
|
26
26
|
</label>
|
|
27
|
+
<div style="display:flex;justify-content:space-between;align-items:center;inline-size:min(100%,20rem);padding:0.25rem 0.25rem 0.25rem 0.75rem;border:1px solid var(--oc-border);border-radius:var(--oc-radius)">
|
|
28
|
+
<strong>App 1</strong>
|
|
29
|
+
<label class="oc-language-select oc-language-select--ghost oc-language-select--code" data-code="NL">
|
|
30
|
+
<select class="oc-language-select-control" aria-label="Language">
|
|
31
|
+
<option value="en">English</option>
|
|
32
|
+
<option value="nl" selected>Nederlands</option>
|
|
33
|
+
<option value="fr">Français</option>
|
|
34
|
+
<option value="de">Deutsch</option>
|
|
35
|
+
</select>
|
|
36
|
+
</label>
|
|
37
|
+
</div>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<!-- OmniaUI component: menu-static - The dropdown menu as a surface of its own, with a check column and hints, for a tray menu or a menu inside a panel. Needs @birdycom/omniaui CSS.
|
|
2
|
+
File: packages/ui/snippets/menu-static.html | Map: tray menu -> flat, in a glass window.
|
|
3
|
+
Class API (modifiers are extra classes / attributes on the same element):
|
|
4
|
+
.oc-dropdown-menu--static: No popover or position: the menu is shown and fills its container.
|
|
5
|
+
.oc-dropdown-menu--flat: No border, radius, shadow or background: the window around it is the frame.
|
|
6
|
+
.oc-dropdown-check: A 20px check column at the start of an item; shows ✓ when the item has aria-checked="true".
|
|
7
|
+
.oc-dropdown-hint: Muted text on the right (a shortcut, a time).
|
|
8
|
+
.oc-dropdown-label: Group title; small capitals in a static menu.
|
|
9
|
+
.oc-dropdown-item--destructive: Red item (Quit, Delete).
|
|
10
|
+
-->
|
|
11
|
+
<div class="oc-dropdown-menu oc-dropdown-menu--static" role="menu" aria-label="App 1" style="max-inline-size:17rem">
|
|
12
|
+
<div class="oc-dropdown-label">View</div>
|
|
13
|
+
<button type="button" class="oc-dropdown-item" role="menuitemcheckbox" aria-checked="true"><span class="oc-dropdown-check" aria-hidden="true"></span>Always on top<span class="oc-dropdown-hint">Ctrl+T</span></button>
|
|
14
|
+
<button type="button" class="oc-dropdown-item" role="menuitemcheckbox" aria-checked="false"><span class="oc-dropdown-check" aria-hidden="true"></span>Compact mode</button>
|
|
15
|
+
<button type="button" class="oc-dropdown-item" role="menuitemcheckbox" aria-checked="true"><span class="oc-dropdown-check" aria-hidden="true"></span>Start with Windows</button>
|
|
16
|
+
<div class="oc-dropdown-separator"></div>
|
|
17
|
+
<div class="oc-dropdown-label">Refresh</div>
|
|
18
|
+
<button type="button" class="oc-dropdown-item" role="menuitemcheckbox" aria-checked="false"><span class="oc-dropdown-check" aria-hidden="true"></span>Every minute</button>
|
|
19
|
+
<button type="button" class="oc-dropdown-item" role="menuitemcheckbox" aria-checked="true"><span class="oc-dropdown-check" aria-hidden="true"></span>Every 5 minutes<span class="oc-dropdown-hint">now</span></button>
|
|
20
|
+
<div class="oc-dropdown-separator"></div>
|
|
21
|
+
<button type="button" class="oc-dropdown-item oc-dropdown-item--destructive">Quit<span class="oc-dropdown-hint">Ctrl+Q</span></button>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="oc-glass" style="padding:4px;inline-size:min(100%,17rem)">
|
|
24
|
+
<div class="oc-dropdown-menu oc-dropdown-menu--static oc-dropdown-menu--flat" role="menu" aria-label="App 1">
|
|
25
|
+
<div class="oc-dropdown-label">View</div>
|
|
26
|
+
<button type="button" class="oc-dropdown-item" role="menuitemcheckbox" aria-checked="true"><span class="oc-dropdown-check" aria-hidden="true"></span>Always on top<span class="oc-dropdown-hint">Ctrl+T</span></button>
|
|
27
|
+
<button type="button" class="oc-dropdown-item" role="menuitemcheckbox" aria-checked="false"><span class="oc-dropdown-check" aria-hidden="true"></span>Compact mode</button>
|
|
28
|
+
<button type="button" class="oc-dropdown-item" role="menuitemcheckbox" aria-checked="true"><span class="oc-dropdown-check" aria-hidden="true"></span>Start with Windows</button>
|
|
29
|
+
<div class="oc-dropdown-separator"></div>
|
|
30
|
+
<div class="oc-dropdown-label">Refresh</div>
|
|
31
|
+
<button type="button" class="oc-dropdown-item" role="menuitemcheckbox" aria-checked="false"><span class="oc-dropdown-check" aria-hidden="true"></span>Every minute</button>
|
|
32
|
+
<button type="button" class="oc-dropdown-item" role="menuitemcheckbox" aria-checked="true"><span class="oc-dropdown-check" aria-hidden="true"></span>Every 5 minutes<span class="oc-dropdown-hint">now</span></button>
|
|
33
|
+
<div class="oc-dropdown-separator"></div>
|
|
34
|
+
<button type="button" class="oc-dropdown-item oc-dropdown-item--destructive">Quit<span class="oc-dropdown-hint">Ctrl+Q</span></button>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
package/snippets/meter-row.html
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
data-level="warn" / "critical": Orange / red bar (and a red value at critical). Without it the bar is green.
|
|
7
7
|
.oc-meter-row__bar[role=meter]: The bar; give it aria-valuenow and a label for screen readers.
|
|
8
8
|
.oc-meter-list (--compact): A stack of rows; --compact for a small widget.
|
|
9
|
+
.oc-meter-list--dense: Tighter rows with a 5px bar and a 0.8rem label, for a tray window.
|
|
10
|
+
.oc-meter-row__sub: Muted second line under the bar; .oc-meter-row__subbar: its thin bar (--oc-meter, data-level).
|
|
11
|
+
.oc-meter-row__fill: Optional fill element inside a bar or sub-bar; patch its inline inline-size in place.
|
|
9
12
|
-->
|
|
10
13
|
<div class="oc-meter-list" style="inline-size:min(100%,28rem)">
|
|
11
14
|
<div class="oc-meter-row" style="--oc-meter: 62%">
|
|
@@ -27,3 +30,22 @@
|
|
|
27
30
|
<span class="oc-meter-row__reset"><iconify-icon icon="mdi:timer-sand" aria-hidden="true"></iconify-icon>Upgrade or clean up to keep syncing</span>
|
|
28
31
|
</div>
|
|
29
32
|
</div>
|
|
33
|
+
<div class="oc-meter-list oc-meter-list--dense" style="inline-size:min(100%,24rem)">
|
|
34
|
+
<div class="oc-meter-row" style="--oc-meter: 34%">
|
|
35
|
+
<span class="oc-meter-row__label">CPU</span>
|
|
36
|
+
<span class="oc-meter-row__value"><strong>34%</strong><span class="oc-reading">52 °C</span></span>
|
|
37
|
+
<span class="oc-meter-row__bar" role="meter" aria-label="CPU" aria-valuemin="0" aria-valuemax="100" aria-valuenow="34"></span>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="oc-meter-row" data-level="warn" style="--oc-meter: 81%">
|
|
40
|
+
<span class="oc-meter-row__label">GPU</span>
|
|
41
|
+
<span class="oc-meter-row__value"><strong>81%</strong><span class="oc-reading oc-reading--warm">74 °C</span></span>
|
|
42
|
+
<span class="oc-meter-row__bar" role="meter" aria-label="GPU" aria-valuemin="0" aria-valuemax="100" aria-valuenow="81"></span>
|
|
43
|
+
<span class="oc-meter-row__sub">VRAM 2.7 / 8.0 GB<span class="oc-meter-row__subbar" style="--oc-meter: 34%"></span></span>
|
|
44
|
+
</div>
|
|
45
|
+
<div class="oc-meter-row" style="--oc-meter: 58%">
|
|
46
|
+
<span class="oc-meter-row__label">Memory</span>
|
|
47
|
+
<span class="oc-meter-row__value"><strong>58%</strong> · 18.6 / 32 GB</span>
|
|
48
|
+
<span class="oc-meter-row__bar" role="meter" aria-label="Memory" aria-valuemin="0" aria-valuemax="100" aria-valuenow="58"><span class="oc-meter-row__fill" style="inline-size: 58%"></span></span>
|
|
49
|
+
<span class="oc-meter-row__sub">Swap 1.2 / 4 GB<span class="oc-meter-row__subbar"><span class="oc-meter-row__fill" style="inline-size: 30%"></span></span></span>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!-- OmniaUI component: neon - A border that glows from one accent color to the other, and a button with a neon gradient. Needs @birdycom/omniaui CSS.
|
|
2
|
+
File: packages/ui/snippets/neon.html | Map: glowing form -> other colors.
|
|
3
|
+
Class API (modifiers are extra classes / attributes on the same element):
|
|
4
|
+
.oc-glow-border: Border and glow move from --oc-accent-from to --oc-accent-to and back (3s); works on any element with a border, glass included.
|
|
5
|
+
--oc-glow-border-duration: Length of one round (3s).
|
|
6
|
+
.oc-btn--neon: Gradient from one accent to the other with a glow, bold with a little letter spacing; muted when disabled.
|
|
7
|
+
--oc-btn-neon-ink: Text color on the gradient (white in light mode, near black in dark mode).
|
|
8
|
+
-->
|
|
9
|
+
<form class="oc-card oc-glow-border" style="display:grid;gap:0.75rem;padding:1.25rem;inline-size:min(100%,24rem)" onsubmit="return false">
|
|
10
|
+
<label class="oc-field"><span class="oc-field-label">Email address</span><input class="oc-input" type="email" placeholder="info@company1.example"></label>
|
|
11
|
+
<button type="submit" class="oc-btn oc-btn--neon">START SCAN</button>
|
|
12
|
+
</form>
|
|
13
|
+
<div style="display:flex;flex-wrap:wrap;gap:1rem;align-items:center">
|
|
14
|
+
<button type="button" class="oc-btn oc-btn--neon oc-accent--green">Green</button>
|
|
15
|
+
<button type="button" class="oc-btn oc-btn--neon oc-accent--orange">Orange</button>
|
|
16
|
+
<button type="button" class="oc-btn oc-btn--neon" disabled>Disabled</button>
|
|
17
|
+
<div class="oc-card oc-glow-border oc-accent--violet" style="padding:1rem 1.25rem">Violet border</div>
|
|
18
|
+
</div>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- OmniaUI component: particle-field - A background canvas with slowly drifting points and thin lines between points that are close together. Needs @birdycom/omniaui CSS.
|
|
2
|
+
File: packages/ui/snippets/particle-field.html | Map: behind a hero.
|
|
3
|
+
Behaviour: particles.js (npx omniaui copy-js particles); works without it.
|
|
4
|
+
Class API (modifiers are extra classes / attributes on the same element):
|
|
5
|
+
canvas.oc-particles: Fixed behind the page (z-index -1). color = points and lines, border-color = a second point color.
|
|
6
|
+
.oc-particles--local: Fills a positioned parent instead of the viewport.
|
|
7
|
+
data-count / data-speed / data-link: Number of points (110), drift speed (0.35) and the line distance in px (115).
|
|
8
|
+
initParticles(canvas, options): From @birdycom/omniaui/particles.js; returns a stop function.
|
|
9
|
+
-->
|
|
10
|
+
<div style="position:relative;isolation:isolate;overflow:hidden;display:grid;place-items:center;align-content:center;gap:0.5rem;min-block-size:18rem;inline-size:100%;border-radius:var(--oc-radius);background:var(--oc-card)">
|
|
11
|
+
<canvas class="oc-particles oc-particles--local" data-count="70" aria-hidden="true"></canvas>
|
|
12
|
+
<p style="margin:0;font-size:1.6rem;font-weight:800">See what is out there</p>
|
|
13
|
+
<p style="margin:0;color:var(--oc-muted-foreground)">Points and lines in the accent colors.</p>
|
|
14
|
+
</div>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!-- OmniaUI component: reading - A small measured value next to another value, such as a temperature, with a cool, warm or hot level. Needs @birdycom/omniaui CSS.
|
|
2
|
+
File: packages/ui/snippets/reading.html | Map: three levels -> in a meter row.
|
|
3
|
+
Class API (modifiers are extra classes / attributes on the same element):
|
|
4
|
+
.oc-reading: The pill: small, bold, tabular numbers, muted by default.
|
|
5
|
+
.oc-reading--cool / --warm / --hot: Muted, warning or destructive color.
|
|
6
|
+
--oc-reading-color: Any other color token.
|
|
7
|
+
.oc-meter-row__value .oc-reading: Inside the value of a meter row it gets a little room on its left.
|
|
8
|
+
-->
|
|
9
|
+
<div style="display:flex;flex-wrap:wrap;gap:0.75rem;align-items:center">
|
|
10
|
+
<span class="oc-reading">41 °C</span>
|
|
11
|
+
<span class="oc-reading oc-reading--warm">72 °C</span>
|
|
12
|
+
<span class="oc-reading oc-reading--hot">88 °C</span>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="oc-meter-list" style="inline-size:min(100%,26rem)">
|
|
15
|
+
<div class="oc-meter-row" style="--oc-meter: 38%">
|
|
16
|
+
<span class="oc-meter-row__label">CPU</span>
|
|
17
|
+
<span class="oc-meter-row__value"><strong>38%</strong><span class="oc-reading">57 °C</span></span>
|
|
18
|
+
<span class="oc-meter-row__bar" role="meter" aria-label="CPU" aria-valuemin="0" aria-valuemax="100" aria-valuenow="38"></span>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="oc-meter-row" data-level="warn" style="--oc-meter: 84%">
|
|
21
|
+
<span class="oc-meter-row__label">GPU</span>
|
|
22
|
+
<span class="oc-meter-row__value"><strong>84%</strong><span class="oc-reading oc-reading--hot">86 °C</span></span>
|
|
23
|
+
<span class="oc-meter-row__bar" role="meter" aria-label="GPU" aria-valuemin="0" aria-valuemax="100" aria-valuenow="84"></span>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|