@birdycom/omniaui 0.15.1 → 0.16.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.
Files changed (89) hide show
  1. package/bin/lib/copy-js.mjs +3 -0
  2. package/bin/lib/webicons.mjs +120 -0
  3. package/bin/omniaui.mjs +10 -1
  4. package/dist/carousel.d.ts +2 -0
  5. package/dist/carousel.js +38 -2
  6. package/dist/combobox.d.ts +13 -0
  7. package/dist/combobox.js +143 -0
  8. package/dist/components-extra.css +7 -3
  9. package/dist/components.css +1260 -153
  10. package/dist/components.min.css +1 -1
  11. package/dist/docs-ui.css +1 -1
  12. package/dist/fly.js +13 -2
  13. package/dist/logo.d.ts +14 -0
  14. package/dist/logo.js +98 -0
  15. package/dist/oc-theme.css +1 -1
  16. package/dist/parts/app-0160-apps.css +141 -0
  17. package/dist/parts/app-accordion-accent.css +1 -1
  18. package/dist/parts/app-busy-overlay.css +1 -1
  19. package/dist/parts/app-confirm-dialog.css +4 -18
  20. package/dist/parts/app-cookie-consent.css +1 -1
  21. package/dist/parts/app-data-table-rich.css +1 -1
  22. package/dist/parts/app-mode-badge.css +130 -0
  23. package/dist/parts/app-name-card.css +10 -0
  24. package/dist/parts/app-severity-card.css +4 -3
  25. package/dist/parts/app-sheet-options.css +70 -0
  26. package/dist/parts/app-sidebar-dark.css +1 -1
  27. package/dist/parts/app-sidebar-meta.css +40 -0
  28. package/dist/parts/app-stat-card.css +2 -2
  29. package/dist/parts/app-upgrade-banner.css +1 -1
  30. package/dist/parts/data-chart-line.css +5 -2
  31. package/dist/parts/data-reading.css +2 -1
  32. package/dist/parts/data-stock.css +1 -1
  33. package/dist/parts/forms-affix-input.css +7 -0
  34. package/dist/parts/forms-barcode-input.css +2 -1
  35. package/dist/parts/forms-combobox-icons.css +78 -0
  36. package/dist/parts/forms-language-menu.css +89 -0
  37. package/dist/parts/forms-language-select.css +3 -2
  38. package/dist/parts/forms-phone-input.css +3 -0
  39. package/dist/parts/media-art.css +7 -5
  40. package/dist/parts/media-doc-viewer.css +1 -1
  41. package/dist/parts/media-flip-card.css +1 -1
  42. package/dist/parts/media-glass-liquid.css +14 -0
  43. package/dist/parts/media-glass.css +8 -0
  44. package/dist/parts/media-live-frame.css +58 -0
  45. package/dist/parts/media-logo.css +48 -0
  46. package/dist/parts/media-terminal-log.css +4 -3
  47. package/dist/parts/media-thumb.css +1 -1
  48. package/dist/parts/site-backgrounds.css +1 -1
  49. package/dist/parts/site-base.css +14 -7
  50. package/dist/parts/site-brand-mark.css +1 -1
  51. package/dist/parts/site-cards.css +4 -1
  52. package/dist/parts/site-fact-list.css +1 -1
  53. package/dist/parts/site-fly.css +1 -0
  54. package/dist/parts/site-header-variants.css +6 -1
  55. package/dist/parts/site-layout.css +1 -1
  56. package/dist/parts/site-link-arrow.css +1 -1
  57. package/dist/parts/site-link-row.css +1 -1
  58. package/dist/parts/site-next-teaser.css +2 -2
  59. package/dist/parts/site-paper.css +189 -0
  60. package/dist/parts/site-price-card.css +4 -3
  61. package/dist/parts/site-product-mark.css +1 -1
  62. package/dist/parts/site-project-card.css +13 -8
  63. package/dist/parts/site-stack-list.css +1 -1
  64. package/dist/parts/site-timeline.css +1 -1
  65. package/dist/parts/utility-hover.css +4 -3
  66. package/dist/showcase.css +74 -28
  67. package/dist/theme.js +130 -0
  68. package/manifest.json +40 -0
  69. package/package.json +5 -2
  70. package/snippets/card.html +4 -1
  71. package/snippets/code-plate.html +10 -0
  72. package/snippets/collapsible.html +2 -2
  73. package/snippets/combobox.html +19 -0
  74. package/snippets/context-menu.html +5 -2
  75. package/snippets/definition-list.html +1 -1
  76. package/snippets/dropdown-menu.html +1 -0
  77. package/snippets/language-select.html +15 -0
  78. package/snippets/live-frame.html +3 -1
  79. package/snippets/logo.html +10 -0
  80. package/snippets/mode-badge.html +12 -0
  81. package/snippets/next-teaser.html +1 -1
  82. package/snippets/page-sections.html +1 -1
  83. package/snippets/paper.html +32 -0
  84. package/snippets/project-card.html +4 -4
  85. package/snippets/sheet.html +4 -0
  86. package/snippets/shot-grid.html +2 -2
  87. package/snippets/sidebar.html +2 -0
  88. package/snippets/timeline.html +1 -1
  89. package/snippets/webicon.html +11 -0
@@ -0,0 +1,32 @@
1
+ <!-- OmniaUI component: paper - An off-white paper surface with a fine grain: tones, writing paper with lines, squares or dots, and paper edges. Needs @birdycom/omniaui CSS.
2
+ File: packages/ui/snippets/paper.html | Map: sheet of lined paper with a margin -> torn sheet in a lift wrapper -> section with the paper theme
3
+ Class API (modifiers are extra classes / attributes on the same element):
4
+ .oc-paper: Off-white background with a fine grain and a matching ink color. Modifier: --smooth (no grain)
5
+ .oc-paper--bright / --ivory / --gray / --kraft: Tones. Own tone: --oc-paper-tint, --oc-paper-l, --oc-paper-c. The same color in light and dark mode
6
+ .oc-paper--sheet: A single sheet with padding (--oc-paper-pad) and a soft shadow
7
+ .oc-paper-lift: Wrapper that gives a sheet with a cut edge a shadow that follows the edge
8
+ .oc-paper--lined: Ruled writing paper; --oc-paper-line (1.75rem) is the rule distance and the line height
9
+ .oc-paper--margin: Red margin line on the start side (--oc-paper-margin-at)
10
+ .oc-paper--grid / --dots: Squared paper and a dot grid (--oc-paper-grid)
11
+ .oc-paper--mm: Millimeter paper, lines every 1, 5 and 10 mm (--oc-paper-mm, --oc-paper-mm-color)
12
+ .oc-paper--torn / --torn-top / --torn-both: Torn edge (--oc-paper-tear, --oc-paper-tear-width)
13
+ .oc-paper--zigzag: Zigzag cut of a receipt at the bottom (--oc-paper-tooth)
14
+ .oc-paper--holes: Punched holes on the start side. .oc-paper--fold: folded corner. .oc-paper--stack: two more sheets under it
15
+ .oc-paper-theme: Sets --oc-background, --oc-card and --oc-popover to off-white for everything inside (on <body> or a section)
16
+ One cut edge at a time: torn, zigzag and holes each use the CSS mask.
17
+ -->
18
+ <div class="oc-paper oc-paper--sheet oc-paper--lined oc-paper--margin">
19
+ <h4>Meeting notes</h4>
20
+ <p>Customer 1 wants the quote before Friday. Ask Company 1 for the delivery time of the screens.</p>
21
+ <p>Next meeting: Tuesday at 10:00.</p>
22
+ </div>
23
+
24
+ <div class="oc-paper-lift">
25
+ <div class="oc-paper oc-paper--sheet oc-paper--torn">
26
+ <p>A sheet with a torn edge at the bottom.</p>
27
+ </div>
28
+ </div>
29
+
30
+ <section class="oc-paper-theme oc-paper">
31
+ <article class="oc-card"><div class="oc-card-content"><p>A card on an off-white page.</p></div></article>
32
+ </section>
@@ -1,9 +1,9 @@
1
1
  <!-- OmniaUI component: project-card - Portfolio card with a browser-like preview, type badge, name, meta and an arrow link. Needs @birdycom/omniaui CSS.
2
2
  File: packages/ui/snippets/project-card.html | Map: a.oc-project-card -> __frame (__bar + __shot) -> __body (type, name, meta, more)
3
3
  Class API (modifiers are extra classes / attributes on the same element):
4
- .oc-project-card: The card (usually an <a>, the whole card is clickable). Modifier: --flat (edge-to-edge preview)
4
+ .oc-project-card: The card (usually an <a>, the whole card is clickable). Modifiers: --flat (edge-to-edge preview), --glow (shadow under the preview in the accent color)
5
5
  .oc-project-card__frame: Preview window. .oc-project-card__bar: title bar with three <i> dots
6
- .oc-project-card__shot: Screenshot <img>, or an empty <span> for a gradient placeholder
6
+ .oc-project-card__shot: Screenshot <img>, or an empty <span> for a tinted placeholder
7
7
  .oc-project-card__body: Text column
8
8
  .oc-project-card__type / __name / __meta / __more: Badge, title, sector line, "View" link with arrow
9
9
  .oc-accent--*: Accent preset for the badge, dot, border and placeholder
@@ -12,11 +12,11 @@
12
12
  <a class="oc-project-card oc-accent--green" href="#project">
13
13
  <span class="oc-project-card__frame">
14
14
  <span class="oc-project-card__bar" aria-hidden="true"><i></i><i></i><i></i></span>
15
- <span class="oc-project-card__shot" role="img" aria-label="Northwind Bakery website, screenshot"></span>
15
+ <span class="oc-project-card__shot" role="img" aria-label="Customer 1 website, screenshot"></span>
16
16
  </span>
17
17
  <span class="oc-project-card__body">
18
18
  <span class="oc-project-card__type">Website</span>
19
- <span class="oc-project-card__name">Northwind Bakery</span>
19
+ <span class="oc-project-card__name">Customer 1</span>
20
20
  <span class="oc-project-card__meta">Food &amp; retail &middot; Antwerp</span>
21
21
  <span class="oc-project-card__more">View project</span>
22
22
  </span>
@@ -6,6 +6,10 @@
6
6
  .oc-sheet-body: Scrolling content
7
7
  .oc-sheet-footer: Action row
8
8
  .oc-sheet-close: Close button (command="close")
9
+ Options (0.16.0): dialog.oc-sheet--glass (see-through panel over a live view, light scrim without blur; tokens
10
+ --oc-sheet-bg, --oc-sheet-blur, --oc-sheet-scrim; opaque with prefers-reduced-transparency or without backdrop-filter),
11
+ dialog.oc-sheet--inset (a strip of the page stays free beside the panel; --oc-sheet-gap),
12
+ .oc-sheet-footer--panel (the footer is a block of content on its own background, --oc-sheet-footer-bg)
9
13
  Slots: header (title, description), body (default), footer, trigger button outside the dialog
10
14
  -->
11
15
  <button class="oc-btn oc-btn--outline" type="button" command="show-modal" commandfor="oc-sheet-demo">Open sheet</button>
@@ -3,7 +3,7 @@
3
3
  Class API (modifiers are extra classes / attributes on the same element):
4
4
  .oc-shot-grid: Auto-fit grid; --oc-shot-min is the minimum column width (18rem).
5
5
  .oc-shot: Figure: image (or picture) with object-fit: contain, --oc-shot-ratio (16 / 10), caption under it; a link or button around the image shows a zoom cursor.
6
- .oc-browser-frame--glow: Browser frame with a shadow in --oc-accent-from; the screenshot zooms in a little on hover.
6
+ .oc-browser-frame--glow: Option on .oc-browser-frame: the shadow takes --oc-accent-from and the screenshot zooms in a little on hover.
7
7
  .oc-browser-frame__mark: A product mark or tile on the bottom end corner of the frame.
8
8
  -->
9
9
  <div class="oc-shot-grid" style="inline-size:100%">
@@ -20,7 +20,7 @@
20
20
  <figcaption>Product page with stock and documents</figcaption>
21
21
  </figure>
22
22
  </div>
23
- <div class="oc-browser-frame oc-browser-frame--glow oc-accent--green" style="inline-size:min(100%, 34rem)">
23
+ <div class="oc-browser-frame oc-accent--green" style="inline-size:min(100%, 34rem)">
24
24
  <div class="oc-browser-frame__bar"><i></i><i></i><i></i></div>
25
25
  <img class="oc-browser-frame__body" src="/img/blocks/dashboard-01.jpg" alt="Dashboard of Product 1" width="640" height="400">
26
26
  <span class="oc-browser-frame__mark oc-icon-tile oc-icon-tile--lg oc-accent--green" aria-hidden="true"><iconify-icon icon="mdi:chart-box-outline"></iconify-icon></span>
@@ -2,6 +2,8 @@
2
2
  Class API (modifiers are extra classes / attributes on the same element):
3
3
  .oc-sidebar: Root (aside/nav). Modifiers: --collapsed (icon only), --right, --floating. Width via --oc-sidebar-width / --oc-sidebar-width-icon.
4
4
  .oc-sidebar-header / -footer: Fixed top / bottom area (logo, workspace switcher / user)
5
+ .oc-sidebar-meta (0.16.0): brand + version + copyright line in the footer; collapsed: only the version, the line as a
6
+ tooltip (data-tooltip, oc-tooltip oc-tooltip--right). Parts: __brand, __version, __copy
5
7
  .oc-sidebar-content: Scrolling middle area
6
8
  .oc-sidebar-group: Group of items; optional .oc-sidebar-group-label heading
7
9
  .oc-sidebar-separator: Divider line
@@ -12,7 +12,7 @@
12
12
  <ol class="oc-timeline">
13
13
  <li class="oc-timeline__item">
14
14
  <time class="oc-timeline__date" datetime="2012">2012</time>
15
- <h3 class="oc-timeline__title">Acme is founded</h3>
15
+ <h3 class="oc-timeline__title">Company 1 is founded</h3>
16
16
  <p class="oc-timeline__text">Two developers start building websites for local shops.</p>
17
17
  </li>
18
18
  <li class="oc-timeline__item">
@@ -0,0 +1,11 @@
1
+ <!-- OmniaUI component: webicon - An icon by name from the six webicon sets as inline SVG in currentColor, from icon data the app bundles (no network). Needs @birdycom/omniaui CSS.
2
+ Class API: .oc-icon (1.25em; 1.1em in a button) + .oc-icon--xs | --sm | --md | --lg | --xl (0.875, 1, 1.25, 1.5, 2rem).
3
+ --oc-icon-ratio: width / height of a wide icon (a 4:3 flag). svg[data-webicon]: inline-block on the text line.
4
+ Decorative: aria-hidden="true". With meaning: role="img" aria-label="…" and a <title>.
5
+ React <Webicon name size label>, Vue <OcWebicon>, Blade <x-oc::webicon> write this SVG from the name; register the
6
+ icons with addWebicons / registerWebicons, or make a small file with: npx omniaui webicons --scan src --out src/webicons.json
7
+ -->
8
+ <svg class="oc-icon" viewBox="0 0 24 24" width="1em" height="1em" fill="currentColor" data-webicon="mdi:home-outline" aria-hidden="true"><path fill="currentColor" d="m12 5.69l5 4.5V18h-2v-6H9v6H7v-7.81zM12 3L2 12h3v8h6v-6h2v6h6v-8h3"/></svg>
9
+ <svg class="oc-icon oc-icon--lg" viewBox="0 0 24 24" width="1em" height="1em" fill="currentColor" data-webicon="mdi:bell-outline" aria-hidden="true"><path fill="currentColor" d="M10 21h4c0 1.1-.9 2-2 2s-2-.9-2-2m11-2v1H3v-1l2-2v-6c0-3.1 2-5.8 5-6.7V4c0-1.1.9-2 2-2s2 .9 2 2v.3c3 .9 5 3.6 5 6.7v6zm-4-8c0-2.8-2.2-5-5-5s-5 2.2-5 5v7h10z"/></svg>
10
+ <svg class="oc-icon oc-icon--md" viewBox="0 0 24 24" width="1em" height="1em" fill="currentColor" style="color: var(--oc-success)" data-webicon="mdi:check-circle" role="img" aria-label="Paid"><title>Paid</title><path fill="currentColor" d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10s10-4.5 10-10S17.5 2 12 2m-2 15l-5-5l1.41-1.41L10 14.17l7.59-7.59L19 8z"/></svg>
11
+ <svg class="oc-icon oc-icon--md" viewBox="0 0 640 480" width="1.3333em" height="1em" fill="currentColor" style="--oc-icon-ratio: 1.3333" data-webicon="flag:be-4x3" aria-hidden="true"><g fill-rule="evenodd" stroke-width="1pt"><path fill="#000001" d="M0 0h213.3v480H0z"/><path fill="#ffd90c" d="M213.3 0h213.4v480H213.3z"/><path fill="#f31830" d="M426.7 0H640v480H426.7z"/></g></svg>