@webority/theme 0.161.0 → 0.164.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.
Files changed (62) hide show
  1. package/README.md +23 -23
  2. package/dist/purge-safelist.json +10 -11
  3. package/dist/webority-theme.css +3 -3
  4. package/package.json +8 -7
  5. package/scss/_bootstrap.generated.scss +1 -1
  6. package/scss/_components.scss +38 -34
  7. package/scss/_flags.scss +3 -3
  8. package/scss/_marketing.scss +6 -6
  9. package/scss/_tokens.generated.scss +1 -1
  10. package/scss/_variables.scss +19 -19
  11. package/scss/_wui-components.scss +2 -0
  12. package/scss/_wui-core.scss +2 -0
  13. package/scss/wui/_card.scss +20 -12
  14. package/scss/wui/_choice.scss +4 -4
  15. package/scss/wui/_command-palette.scss +7 -2
  16. package/scss/wui/_comment-thread.scss +3 -3
  17. package/scss/wui/_context-menu.scss +14 -10
  18. package/scss/wui/_controls.scss +80 -74
  19. package/scss/wui/_data.scss +19 -33
  20. package/scss/wui/_dialog-motion.scss +14 -19
  21. package/scss/wui/_disclosure.scss +3 -3
  22. package/scss/wui/_display.scss +56 -56
  23. package/scss/wui/_dock.scss +4 -4
  24. package/scss/wui/_drawer.scss +18 -15
  25. package/scss/wui/_empty-state.scss +4 -4
  26. package/scss/wui/_file-viewer.scss +14 -2
  27. package/scss/wui/_filter-popover.scss +1 -1
  28. package/scss/wui/_floating.scss +1 -1
  29. package/scss/wui/_flow.scss +35 -35
  30. package/scss/wui/_hover-card.scss +6 -5
  31. package/scss/wui/_inline-edit.scss +1 -1
  32. package/scss/wui/_kanban.scss +1 -1
  33. package/scss/wui/_lightbox.scss +20 -9
  34. package/scss/wui/_media.scss +1 -1
  35. package/scss/wui/_mention-input.scss +3 -3
  36. package/scss/wui/_menu-motion.scss +23 -23
  37. package/scss/wui/_modal-remote.scss +3 -3
  38. package/scss/wui/_native-overlay.scss +76 -0
  39. package/scss/wui/_navigation-menu.scss +13 -17
  40. package/scss/wui/_navigation.scss +25 -1
  41. package/scss/wui/_notification-center.scss +6 -9
  42. package/scss/wui/_overlay-reset.scss +15 -0
  43. package/scss/wui/_overlays.scss +139 -99
  44. package/scss/wui/_page-header-bar.scss +24 -0
  45. package/scss/wui/_scrollbar.scss +1 -1
  46. package/scss/wui/_sections.scss +3 -3
  47. package/scss/wui/_select.scss +16 -10
  48. package/scss/wui/_shell-parts.scss +2 -2
  49. package/scss/wui/_shell.scss +131 -28
  50. package/scss/wui/_shortcuts.scss +3 -15
  51. package/scss/wui/_sortable.scss +1 -1
  52. package/scss/wui/_tone-pill.scss +2 -2
  53. package/scss/wui/_toolbar.scss +3 -3
  54. package/scss/wui/_truncate.scss +2 -2
  55. package/scss/wui/_typography.scss +8 -8
  56. package/scss/wui/_utilities.scss +4 -5
  57. package/scss/wui/_whats-new.scss +6 -7
  58. package/scss/wui/_workspace.scss +34 -9
  59. package/scss/wui/tour/_base.scss +11 -1
  60. package/scss/wui/tour/_end.scss +6 -0
  61. package/scss/wui/tour/_media.scss +1 -1
  62. package/scss/wui/tour/_placement.scss +6 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webority/theme",
3
- "version": "0.161.0",
4
- "description": "Webority shared design system — Bootstrap 5.3 SCSS overrides, --wui-* tokens, and shared component CSS. The single source of brand chrome for React portals and Razor sites.",
3
+ "version": "0.164.0",
4
+ "description": "Webority shared design system: Bootstrap 5.3 SCSS overrides, --wui-* tokens, and shared component CSS. The single source of brand chrome for React portals and Razor sites.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {
7
7
  "access": "public",
@@ -63,14 +63,15 @@
63
63
  "postcss-selector-parser": "^7.1.7"
64
64
  },
65
65
  "peerDependencies": {
66
- "bootstrap": "5.3.8",
66
+ "bootstrap": "5.3.9",
67
67
  "postcss": "^8.5.31"
68
68
  },
69
69
  "devDependencies": {
70
+ "@popperjs/core": "2.11.8",
70
71
  "@types/node": "25.6.0",
71
- "@webority/biome-config": "0.161.0",
72
- "@webority/tokens": "0.161.0",
73
- "bootstrap": "5.3.8",
72
+ "@webority/biome-config": "0.164.0",
73
+ "@webority/tokens": "0.164.0",
74
+ "bootstrap": "5.3.9",
74
75
  "country-flag-icons": "^1.6.20",
75
76
  "sass-embedded": "^1.108.0",
76
77
  "typescript": "^7.0.2",
@@ -81,6 +82,6 @@
81
82
  "typecheck": "tsc -p tsconfig.json",
82
83
  "tokens": "node ../../scripts/ensure-tokens-built.mjs && node ../tokens/dist/webority.js brand --library --out ../tokens/dist --web scss/_tokens.generated.scss",
83
84
  "tokens:check": "node ../tokens/dist/webority.js brand --library --out ../tokens/dist --web scss/_tokens.generated.scss --check",
84
- "build": "tsc -p tsconfig.json && corepack pnpm run tokens && sass index.scss dist/webority-theme.css --load-path=node_modules --style=compressed --no-source-map --quiet-deps --silence-deprecation=if-function && sass scss/_flags.scss dist/webority-flags.css --style=compressed --no-source-map --quiet && sass scss/_runtime-brand.scss dist/webority-runtime-brand.css --style=compressed --no-source-map --quiet && node ../../scripts/force-state-selectors.mjs dist/webority-theme.css && node ../../scripts/build-tokens-css.mjs dist/webority-theme.css dist/webority-tokens.css && node ../../scripts/gen-purge-safelist.mjs && node ../../scripts/sync-rcl-assets.mjs theme && vite build --config vite.cli.config.mts && tsc -p tsconfig.build.json && node scripts/exportCanvasTheme.mts"
85
+ "build": "tsc -p tsconfig.json && corepack pnpm run tokens && sass index.scss dist/webority-theme.css --load-path=node_modules --style=compressed --no-source-map --quiet-deps --silence-deprecation=if-function && sass scss/_flags.scss dist/webority-flags.css --style=compressed --no-source-map --quiet && sass scss/_runtime-brand.scss dist/webority-runtime-brand.css --style=compressed --no-source-map --quiet && node ../../scripts/force-state-selectors.mjs dist/webority-theme.css && node ../../scripts/build-tokens-css.mjs dist/webority-theme.css dist/webority-tokens.css && node ../../scripts/gen-purge-safelist.mjs && vite build --config vite.bootstrap.config.mts && node ../../scripts/sync-rcl-assets.mjs theme && vite build --config vite.cli.config.mts && tsc -p tsconfig.build.json && node scripts/exportCanvasTheme.mts"
85
86
  }
86
87
  }
@@ -1,4 +1,4 @@
1
- // Generated by @webority/tokens 0.161.0 from its token source. Do not edit; run webority brand --library.
1
+ // Generated by @webority/tokens 0.164.0 from its token source. Do not edit; run webority brand --library.
2
2
  $body-color: #252f4a !default;
3
3
  $body-secondary-color: #4b5675 !default;
4
4
  $body-tertiary-color: #626a82 !default;
@@ -1,12 +1,12 @@
1
1
  @use "config" as *;
2
2
 
3
3
  // =====================================================================
4
- // Webority UI — shared portal / control CSS (AFTER Bootstrap).
4
+ // Webority UI: shared portal / control CSS (AFTER Bootstrap).
5
5
  // Marketing section/hero/motion helpers: scss/_marketing.scss (opt-in).
6
6
  // =====================================================================
7
7
 
8
8
  // ---- Button polish (used by both Razor + React) ---------------------
9
- // Flat buttons — no drop shadow. Active-press feedback (1px nudge) is
9
+ // Flat buttons: no drop shadow. Active-press feedback (1px nudge) is
10
10
  // retained because it's a tactile signal, not a depth cue.
11
11
  // A button is exactly as tall as a field of the same size (the --wui-control-md ladder, 32/36/44px), so a
12
12
  // button beside an input lines up in every form row. Heights are min-height with the label flex-centred; sm/lg
@@ -23,7 +23,7 @@
23
23
  min-height: var(--wui-control-md);
24
24
  }
25
25
 
26
- // Tactile press feedback — every variant AND every size (sm/md/lg/xl). Kept
26
+ // Tactile press feedback: every variant AND every size (sm/md/lg/xl). Kept
27
27
  // separate from the height rule above so sm/lg (which opt out of the shared
28
28
  // control height) still get the nudge. A signal, not a depth cue.
29
29
  .btn:not(.btn-pill):not(.btn-pill-sm):not(.u-action):not(.btn-icon):active:not(:disabled) {
@@ -72,10 +72,10 @@
72
72
  background-color: color-mix(in srgb, var(--color-primary) calc(var(--bs-bg-opacity, 1) * 100%), transparent) !important;
73
73
  }
74
74
 
75
- // Secondary — a soft brand tint (matches the design reference's secondary): a
75
+ // Secondary: a soft brand tint (matches the design reference's secondary): a
76
76
  // low-alpha wash of the brand rather than an opaque fill, so it reads as a
77
77
  // quieter companion to the solid primary. Colour comes from the brand token;
78
- // only the TRANSPARENCY is taken from the reference — the tint deepens on hover
78
+ // only the TRANSPARENCY is taken from the reference; the tint deepens on hover
79
79
  // then press. No border (the tint carries the shape). Disabled is the shared
80
80
  // neutral-grey state below, like every other variant.
81
81
  .btn-soft-primary {
@@ -145,7 +145,7 @@
145
145
  --bs-btn-active-border-color: var(--wui-warning-strong-hover);
146
146
  }
147
147
 
148
- // Outline variants — tokenized like the solid buttons above so they follow a product's
148
+ // Outline variants, tokenized like the solid buttons above, so they follow a product's
149
149
  // RUNTIME --wui-* brand instead of Bootstrap's compile-time colours. Resting = brand outline
150
150
  // on a transparent fill; hover fills with the brand and flips the label to the on-brand text
151
151
  // token; active deepens to the pressed fill.
@@ -197,7 +197,7 @@
197
197
  // Secondary-danger, the destructive counterpart of .btn-soft-primary: a soft red wash
198
198
  // instead of a solid red fill, for a quieter destructive action (e.g. a "Remove" that
199
199
  // shouldn't shout like a solid .btn-danger). Mirrors .btn-soft-primary exactly: low-alpha
200
- // tint deepening on hover/press, no border — but keyed off the danger tokens. The label
200
+ // tint deepening on hover/press, no border; but keyed off the danger tokens. The label
201
201
  // uses --color-danger-text (the AA-safe error red, lifted in dark mode to read on a dark surface),
202
202
  // not the brighter --color-danger. Disabled fades its own colours (the shared
203
203
  // disabled rule below). A product sets another label
@@ -333,8 +333,8 @@
333
333
  opacity: 1;
334
334
  cursor: progress;
335
335
  }
336
- // Transparent-fill variants (secondary/ghost/text/neutral/outline-*) have no fill to tint from —
337
- // key the wash and the label off the accent (text) colour so the hue still shows.
336
+ // Transparent-fill variants (secondary/ghost/text/neutral/outline-*) have no fill to tint from.
337
+ // Key the wash and the label off the accent (text) colour so the hue still shows.
338
338
  .btn-soft-primary.is-loading:disabled,
339
339
  .btn-soft-primary.is-loading.disabled,
340
340
  .btn-soft-danger.is-loading:disabled,
@@ -393,13 +393,13 @@
393
393
  // ---- Component radii from tokens ------------------------------------
394
394
  // .btn/.card/.input capture Bootstrap's compiled $*-border-radius (the library
395
395
  // ladder) before a product loads, so a product's --wui-radius-md* override never
396
- // reached them. Re-drive the radius from the tokens — the way the dropdown above
397
- // already does — so overriding the radius tokens once flows to every control.
396
+ // reached them. Re-drive the radius from the tokens, the way the dropdown above
397
+ // already does, so overriding the radius tokens once flows to every control.
398
398
  // sm/lg are re-asserted so they keep their own rung instead of the base value.
399
399
  // Per-size type + padding scale, matched to the design reference: the three
400
400
  // sizes step font-size, horizontal padding and radius together (vertical size
401
401
  // comes from --wui-control-md, so a button lines up with an input). Weight
402
- // is 600 on every rung — buttons read as a deliberate action, not body text.
402
+ // is 600 on every rung; buttons read as a deliberate action, not body text.
403
403
  // Medium (default): 13px (--wui-fs-xs) / 600, about 12px side padding, the --wui-button-md-radius squircle radius, --wui-control-md tall.
404
404
  // Side padding is always twice the vertical padding. A button is its field's height with the label
405
405
  // line centred, so its vertical padding is (height - both borders - one line) / 2 and its side
@@ -411,7 +411,7 @@
411
411
  --bs-btn-font-weight: 600;
412
412
  --bs-btn-padding-x: calc(var(--wui-btn-height) - 2 * var(--bs-btn-border-width) - var(--bs-btn-font-size) * var(--bs-btn-line-height));
413
413
  // Progressive enhancement only (Chrome/Safari recent). Unsupported engines
414
- // keep a plain border-radius arc — not a cross-browser design contract.
414
+ // keep a plain border-radius arc, not a cross-browser design contract.
415
415
  corner-shape: squircle;
416
416
  }
417
417
  // Small: 12px, about 11px side padding, --wui-button-sm-radius squircle radius (proportional to md), as tall as a small field.
@@ -476,7 +476,7 @@
476
476
  // ---- Hover animation options (opt-in modifiers) ---------------------
477
477
  // Every .btn animates on hover. The DEFAULT is the royal sheen sweep; switch a
478
478
  // button to a different feel with a .btn-anim-* modifier, or turn motion off
479
- // with .btn-anim-none. Every option reads on EVERY variant — the moving layer
479
+ // with .btn-anim-none. Every option reads on EVERY variant; the moving layer
480
480
  // is tinted from the button's OWN colour (color-mix on currentColor / the
481
481
  // resolved --bs-btn fill), so it's a pale sheen on solid fills, a brand shimmer
482
482
  // on outline/ghost, a neutral gloss on neutral/light. All snap off under
@@ -491,16 +491,16 @@
491
491
  // .btn-anim-roll the label rolls up and a trailing icon slides through a round well
492
492
  // (AppButton animation="roll" renders the copies it needs)
493
493
  //
494
- // Shared plumbing — a clipped, isolated box so a z-index:-1 layer can sit above
494
+ // Shared plumbing: a clipped, isolated box so a z-index:-1 layer can sit above
495
495
  // the fill but below the label; overflow clips it to the squircle corners.
496
- .btn:not(.btn-icon):not(.u-action) {
496
+ .btn:where(:not(.btn-icon):not(.u-action)) {
497
497
  position: relative;
498
498
  overflow: hidden;
499
499
  isolation: isolate;
500
500
  }
501
501
 
502
502
  // --- Sheen (default + .btn-anim-sheen): slim angled glossy band sweeps across.
503
- .btn:not(.btn-icon):not(.u-action):not([class*="btn-anim-"])::before,
503
+ .btn:where(:not(.btn-icon):not(.u-action):not([class*="btn-anim-"]))::before,
504
504
  .btn-anim-sheen::before {
505
505
  content: "";
506
506
  position: absolute;
@@ -519,7 +519,7 @@
519
519
  transition: transform calc(var(--wui-duration-slow) * 2) var(--wui-ease-out);
520
520
  pointer-events: none;
521
521
  }
522
- .btn:not(.btn-icon):not(.u-action):not([class*="btn-anim-"]):hover:not(:disabled)::before,
522
+ .btn:where(:not(.btn-icon):not(.u-action):not([class*="btn-anim-"])):hover:not(:disabled)::before,
523
523
  .btn-anim-sheen:hover:not(:disabled)::before {
524
524
  transform: translateX(320%) skewX(-18deg);
525
525
  }
@@ -733,7 +733,7 @@
733
733
 
734
734
  // ---- Dropdown menu (AppDropdown / <app-dropdown>) -------------------
735
735
  // Bootstrap ships a bare .dropdown-item; the design system gives the menu real
736
- // padding, an icon–label gap, a rounded hover highlight tinted with the brand,
736
+ // padding, an icon-label gap, a rounded hover highlight tinted with the brand,
737
737
  // and a danger variant so a row-action menu reads as one considered control.
738
738
  .dropdown-menu {
739
739
  // Elevated surface (like .card), not Bootstrap's default page --bs-body-bg: otherwise the
@@ -759,12 +759,16 @@
759
759
  box-shadow: var(--wui-shadow-popover);
760
760
  // A long menu (account / workspace lists) must never spill past the screen and clip its
761
761
  // last rows: cap the panel to the viewport and scroll INSIDE it. The room subtracted
762
- // leaves space for a topbar-height trigger + margin — the common anchor for these long
763
- // lists — so a top-anchored menu fits; Popper flips/shifts the panel for other anchors.
762
+ // leaves space for a topbar-height trigger + margin, the common anchor for these long
763
+ // lists, so a top-anchored menu fits; Popper flips/shifts the panel for other anchors.
764
764
  // The thin thumb matches the shared rail (--wui-scrollbar*), like .wui-scroll.
765
765
  max-height: calc(100vh - 5rem);
766
766
  overflow-y: auto;
767
767
  }
768
+ // Open is the popover's state; Bootstrap's `.show` display no longer applies.
769
+ .dropdown-menu:popover-open {
770
+ display: block;
771
+ }
768
772
  .dropdown-menu::-webkit-scrollbar {
769
773
  width: 8px;
770
774
  }
@@ -822,7 +826,7 @@
822
826
  color: var(--color-primary-text);
823
827
  }
824
828
 
825
- // A leading picture instead of a glyph — an external logo/avatar, a brand mark.
829
+ // A leading picture instead of a glyph: an external logo/avatar, a brand mark.
826
830
  // Sized to sit optically with the 1rem glyph so mixed menus still line up.
827
831
  img {
828
832
  flex-shrink: 0;
@@ -832,7 +836,7 @@
832
836
  object-fit: cover;
833
837
  }
834
838
 
835
- // Destructive row action — red label, red glyph, red-tinted hover.
839
+ // Destructive row action: red label, red glyph, red-tinted hover.
836
840
  &.danger {
837
841
  --bs-dropdown-link-color: var(--color-danger-text);
838
842
  --bs-dropdown-link-hover-color: var(--color-danger-text);
@@ -1335,7 +1339,7 @@
1335
1339
  }
1336
1340
 
1337
1341
  // ---- Card hover-lift (name is historical) -----------------------------
1338
- // `.card-lifted` does NOT cast a shadow — in-page cards stay flat. It only
1342
+ // `.card-lifted` does NOT cast a shadow; in-page cards stay flat. It only
1339
1343
  // nudges 1px on hover (tactile signal). API prop stays `lifted` / class
1340
1344
  // `card-lifted` so call sites don't break.
1341
1345
  .card-lifted {
@@ -1348,7 +1352,7 @@
1348
1352
  // ---- Card surface + radius (token-driven) ---------------------------
1349
1353
  // Radius follows the token ladder (see component-radii note) instead of the
1350
1354
  // compiled $card-border-radius. Background is an ELEVATED surface, not the page
1351
- // colour — so a card stays visible on a tinted page, and flips correctly in dark
1355
+ // colour, so a card stays visible on a tinted page, and flips correctly in dark
1352
1356
  // mode because --color-surface is themed in the alias layer.
1353
1357
  // The card radius is the --wui-card-radius token; a brand that draws rounder cards sets it in its token file,
1354
1358
  // and one whose card text should follow the page text sets --wui-card-color (such as var(--color-text)).
@@ -1424,7 +1428,7 @@
1424
1428
 
1425
1429
  // ---- Inputs ---------------------------------------------------------
1426
1430
  // Field chrome (height, hover, focus, invalid) lives in wui/_controls.scss on
1427
- // `.form-control` / `.form-select` with `.input` as an alias — one skin, not two
1431
+ // `.form-control` / `.form-select` with `.input` as an alias: one skin, not two
1428
1432
  // This partial only keeps the marketing-side input-group shell.
1429
1433
 
1430
1434
  // ---- Input group (leading / trailing slots) ------------------------
@@ -1470,7 +1474,7 @@
1470
1474
  border-color: color-mix(in srgb, var(--color-danger) 45%, var(--color-surface));
1471
1475
  }
1472
1476
 
1473
- // Strip the bare input's own chrome — the wrapper carries it all.
1477
+ // Strip the bare input's own chrome. The wrapper carries it all.
1474
1478
  .wui-input-group > .form-control,
1475
1479
  .wui-input-group > .input {
1476
1480
  flex: 1 1 auto;
@@ -1492,7 +1496,7 @@
1492
1496
  background: transparent;
1493
1497
  }
1494
1498
 
1495
- // Leading + trailing slots — flex children that hold icons or buttons.
1499
+ // Leading + trailing slots: flex children that hold icons or buttons.
1496
1500
  // Default muted color, inherits hover/focus state from the wrapper.
1497
1501
  .wui-input-leading,
1498
1502
  .wui-input-trailing {
@@ -1534,14 +1538,14 @@ button.wui-input-leading:focus-visible {
1534
1538
 
1535
1539
  // ---- Radius step utilities ------------------------------------------
1536
1540
  // Every .btn is already a squircle (see base .btn above), so a button that
1537
- // wants a larger corner only needs a bigger radius — hence .btn-radius-xl,
1541
+ // wants a larger corner only needs a bigger radius; hence .btn-radius-xl,
1538
1542
  // named for what it does (an xl radius step) rather than the corner shape.
1539
1543
  .btn-radius-xl {
1540
1544
  --bs-btn-border-radius: var(--wui-radius-xl); // 16px
1541
1545
  }
1542
1546
 
1543
1547
  // Generic (non-button) squircle rounding. Progressive enhancement only
1544
- //: unsupported engines keep a plain 32px arc — not a contract.
1548
+ //: unsupported engines keep a plain 32px arc, not a contract.
1545
1549
  .rounded-squircle {
1546
1550
  border-radius: 32px;
1547
1551
  corner-shape: squircle;
@@ -1567,7 +1571,7 @@ button.wui-input-leading:focus-visible {
1567
1571
  }
1568
1572
 
1569
1573
  // ---- Native scrollbars (document + opt-in) --------------------------
1570
- // Scoped to html/body and `.wui-scroll` — never `*`. Global
1574
+ // Scoped to html/body and `.wui-scroll`, never `*`. Global
1571
1575
  // `*` restyled every nested scroller (modals, tiny panels) and fought
1572
1576
  // component-local rails. AppScrollbar uses `.wui-scroll` (see wui/_scrollbar).
1573
1577
  //
@@ -1660,10 +1664,10 @@ html.is-scrolling body::-webkit-scrollbar-thumb {
1660
1664
  }
1661
1665
  // Hover animation options: hide the moving layer and drop lift/glow so no
1662
1666
  // option animates, regardless of which .btn-anim-* is applied.
1663
- .btn:not(.btn-icon):not(.u-action)::before {
1667
+ .btn:where(:not(.btn-icon):not(.u-action))::before {
1664
1668
  display: none;
1665
1669
  }
1666
- .btn:not(.btn-icon):not(.u-action):hover:not(:disabled) {
1670
+ .btn:where(:not(.btn-icon):not(.u-action)):hover:not(:disabled) {
1667
1671
  transform: none;
1668
1672
  box-shadow: none;
1669
1673
  }
@@ -1683,7 +1687,7 @@ html.is-scrolling body::-webkit-scrollbar-thumb {
1683
1687
  }
1684
1688
 
1685
1689
  // ---- Theme-flipped typography utilities ------------------------------------
1686
- // Bootstrap builds `.text-body` as `rgba(var(--bs-body-color-rgb), …)` — an RGB
1690
+ // Bootstrap builds `.text-body` as `rgba(var(--bs-body-color-rgb), …)`, an RGB
1687
1691
  // TRIPLET baked in at compile time (37, 47, 74). Bridging `--bs-body-color`
1688
1692
  // cannot reach it, so the utility keeps the light-mode colour under
1689
1693
  // [data-theme="dark"]. Redefined against the token, with !important to match
package/scss/_flags.scss CHANGED
@@ -1,13 +1,13 @@
1
- // GENERATED FILE — DO NOT EDIT BY HAND.
1
+ // GENERATED FILE: DO NOT EDIT BY HAND.
2
2
  // Regenerate with: node scripts/gen-countries.mjs
3
3
  //
4
4
  // Country flags as inlined SVG data URIs, one class per ISO code. Both surfaces
5
5
  // render <span class="wui-flag wui-flag-in"></span>, so flags look identical on
6
- // every OS — unlike emoji flags, which Windows cannot render at all.
6
+ // every OS, unlike emoji flags, which Windows cannot render at all.
7
7
  //
8
8
  // Sized in em so a flag scales with its surrounding text.
9
9
  //
10
- // Flag artwork: country-flag-icons — (The MIT License)
10
+ // Flag artwork: country-flag-icons ((The MIT License))
11
11
 
12
12
  .wui-flag {
13
13
  display: inline-block;
@@ -1,5 +1,5 @@
1
1
  // =====================================================================
2
- // Webority UI — marketing / editorial surface helpers (OPT-IN).
2
+ // Webority UI: marketing / editorial surface helpers (OPT-IN).
3
3
  // Not part of the default theme chain. Load it after the core theme when a
4
4
  // marketing site needs section rhythm, hero chrome, pill CTAs, or scroll
5
5
  // motion; portals omit this file.
@@ -71,7 +71,7 @@
71
71
  // ---- Marketing pill buttons (locked design parity) -------------------
72
72
  // Pixel-locked to the standalone reference's `btn-squircle inline-flex
73
73
  // h-12 items-center text-sm font-medium` pattern. Each marketing CTA
74
- // layers .btn-pill on a Bootstrap variant — these classes only override
74
+ // layers .btn-pill on a Bootstrap variant; these classes only override
75
75
  // Bootstrap's btn CSS vars (height / padding / radius / font), so
76
76
  // every variant inherits the right size without redefining colors.
77
77
  //
@@ -79,7 +79,7 @@
79
79
  // - height : 48px (h-12 = 3rem)
80
80
  // - radius : 16px (--wui-radius-xl)
81
81
  // - font : 14px / 500 (text-sm font-medium)
82
- // - padding-x : 20px (px-5) default — Watch demo / outline-dark
82
+ // - padding-x : 20px (px-5) default for Watch demo / outline-dark
83
83
  // Primary CTA overrides to 24px (px-6) inline
84
84
  // - corner-shape : squircle (iOS-style smooth curve)
85
85
  //
@@ -98,7 +98,7 @@
98
98
 
99
99
  display: inline-flex;
100
100
  align-items: center;
101
- gap: 0.375rem; // 6px — matches primary arrow's ml-1.5
101
+ gap: 0.375rem; // 6px, matches primary arrow's ml-1.5
102
102
  }
103
103
  .btn-pill-sm {
104
104
  --bs-btn-padding-y: 0;
@@ -107,7 +107,7 @@
107
107
  --bs-btn-font-weight: 500;
108
108
  --bs-btn-line-height: 1.25;
109
109
  --bs-btn-border-radius: 12px;
110
- min-height: 2.5rem; // 40px (h-10) — reference "Learn more" CTA
110
+ min-height: 2.5rem; // 40px (h-10), reference "Learn more" CTA
111
111
 
112
112
 
113
113
  display: inline-flex;
@@ -173,7 +173,7 @@
173
173
  }
174
174
 
175
175
  // ---- Hero radial wash ------------------------------------------------
176
- // Soft tinted glow over an elevated surface — sits behind hero copy.
176
+ // Soft tinted glow over an elevated surface; it sits behind hero copy.
177
177
  .hero-wash {
178
178
  background:
179
179
  radial-gradient(80% 50% at 50% 0%,
@@ -1,4 +1,4 @@
1
- // Generated by @webority/tokens 0.161.0 from its token source. Do not edit; run webority brand --library.
1
+ // Generated by @webority/tokens 0.164.0 from its token source. Do not edit; run webority brand --library.
2
2
 
3
3
  :root {
4
4
  --wui-primary: #4F46E5;
@@ -9,7 +9,7 @@
9
9
  @use "bootstrap.generated" as *;
10
10
 
11
11
  // =====================================================================
12
- // Webority UI — Bootstrap variable overrides.
12
+ // Webority UI: Bootstrap variable overrides.
13
13
  // Loaded through _config.scss BEFORE Bootstrap's own variables, so Bootstrap derives every
14
14
  // utility class (.btn-primary, .bg-info, .text-success, etc.) from these
15
15
  // values. Shared by every product's Razor marketing site and React portal
@@ -27,7 +27,7 @@ $primary: #4F46E5 !default;
27
27
  // $secondary is intentional quiet grey (text-2 / foreground-3), NOT a second
28
28
  // brand hue. `.btn-soft-primary`, `.text-secondary`, `.bg-secondary` mean "quiet /
29
29
  // de-emphasised" across products (Metronic-like). Products that need a true
30
- // second brand colour should use a custom utility or token — do not repurpose
30
+ // second brand colour should use a custom utility or token; do not repurpose
31
31
  // $secondary without a coordinated migration.
32
32
  $secondary: #4B5675 !default;
33
33
  // The status colours match the base --wui-success/-info/-warning/-danger tokens, so a
@@ -163,7 +163,7 @@ $link-color: $wui-primary-ink !default;
163
163
 
164
164
 
165
165
  // ---- Body / text ----------------------------------------------------
166
- // $body-bg left at Bootstrap's $white — do not restate pure defaults here.
166
+ // $body-bg left at Bootstrap's $white; do not restate pure defaults here.
167
167
  // $body-color comes from bootstrap.generated (color.text-body).
168
168
 
169
169
 
@@ -171,7 +171,7 @@ $link-color: $wui-primary-ink !default;
171
171
  // $border-color comes from bootstrap.generated (token source).
172
172
 
173
173
  // One ladder; every component derives from it (Bootstrap's own model). Set a
174
- // component's radius by pointing it at a rung, never by hardcoding a px value —
174
+ // component's radius by pointing it at a rung, never by hardcoding a px value;
175
175
  // that is what let buttons drift to ~3x Bootstrap's.
176
176
  // $border-radius, -sm, -lg and -pill come from bootstrap.generated (token source radius.md, sm, lg, pill);
177
177
  // only $border-radius-2xl is set here.
@@ -179,9 +179,9 @@ $border-radius-2xl: 1.5rem; // 24px (BS 2rem via $border-radius-xxl)
179
179
 
180
180
 
181
181
  // ---- Typography -----------------------------------------------------
182
- // Font-size base (1rem) and font-weight 300–700 match Bootstrap — not restated.
183
- // h1/h2/h6 match Bootstrap's $font-size-base multipliers at 1rem — not restated;
184
- // only h3–h5 are tighter than Bootstrap's scale.
182
+ // Font-size base (1rem) and font-weight 300-700 match Bootstrap; not restated.
183
+ // h1/h2/h6 match Bootstrap's $font-size-base multipliers at 1rem; not restated;
184
+ // only h3-h5 are tighter than Bootstrap's scale.
185
185
  $font-family-sans-serif: 'Webority Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
186
186
  $font-family-display: 'Webority Serif', Cambria, Georgia, 'Times New Roman', 'Noto Serif', serif;
187
187
  $font-family-monospace: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
@@ -200,7 +200,7 @@ $h5-font-size: 1.125rem; // 18px (BS 1.25rem)
200
200
 
201
201
  // ---- Spacing --------------------------------------------------------
202
202
  // Bootstrap ladder is 0/.25/.5/1/1.5/3rem ($spacer = 1rem). We replace the map
203
- // with the same 0–5 rungs plus 6/7/8/10/12 for hero / section padding so
203
+ // with the same 0-5 rungs plus 6/7/8/10/12 for hero / section padding so
204
204
  // utilities like `py-8` exist. No need to restate $spacer itself.
205
205
  $spacers: (
206
206
  0: 0,
@@ -216,7 +216,7 @@ $spacers: (
216
216
  12: 10rem, // 160px
217
217
  );
218
218
 
219
- // $container-max-widths is intentionally NOT overridden — Bootstrap's
219
+ // $container-max-widths is intentionally NOT overridden; Bootstrap's
220
220
  // 540/720/960/1140/1320 map is already what we want. The wider marketing
221
221
  // canvas (1512px) is `.container-cloves` + `--wui-container-max` in tokens,
222
222
  // not Bootstrap's stepped `.container`.
@@ -272,7 +272,7 @@ $wui-field-error-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
272
272
  // ---- Cards ----------------------------------------------------------
273
273
  $card-border-color: $border-color;
274
274
  $card-border-radius: $border-radius-lg;
275
- // Flat surfaces — no drop shadow on default .card. Depth is border + tint.
275
+ // Flat surfaces: no drop shadow on default .card. Depth is border + tint.
276
276
  // `.card-lifted` is a 1px hover translate only (not a shadow).
277
277
  $card-box-shadow: none;
278
278
  $card-spacer-y: 1.5rem;
@@ -288,7 +288,7 @@ $dropdown-box-shadow: $wui-shadow-overlay;
288
288
 
289
289
  // ---- Modals + toasts ------------------------------------------------
290
290
  $modal-content-border-color: $border-color;
291
- $modal-content-border-radius: 1rem; // BS $border-radius-xl (1rem) — literal because we do not restate that rung
291
+ $modal-content-border-radius: 1rem; // BS $border-radius-xl (1rem), kept literal because we do not restate that rung
292
292
  $modal-content-box-shadow-xs: $wui-shadow-overlay-lg;
293
293
 
294
294
  $toast-border-color: $border-color;
@@ -298,7 +298,7 @@ $toast-box-shadow: $wui-shadow-overlay-lg;
298
298
 
299
299
  // ---- Links ----------------------------------------------------------
300
300
  // $link-color is the primary ink (above), so a link clears AA whatever the brand.
301
- // Hover is a darkened mix of the ink — never a hard-coded indigo — so a product
301
+ // Hover is a darkened mix of the ink, never a hard-coded indigo, so a product
302
302
  // that configures $primary gets a matching hover. Approximate
303
303
  // of Bootstrap's shift-color($link-color, 20%) without importing BS functions here.
304
304
  $link-hover-color: mix(black, $wui-primary-ink, 12%) !default;
@@ -311,15 +311,15 @@ $link-hover-decoration: underline;
311
311
  // points at the runtime ring token instead, so every Bootstrap control that keeps a box-shadow
312
312
  // ring (close button, nav link, pagination, accordion, .focus-ring) draws the solid, brand-tracking
313
313
  // colour. A runtime var also avoids capturing the library's compile-time $primary.
314
- // $focus-ring-blur matches BS (0) — not restated.
314
+ // $focus-ring-blur matches BS (0); not restated.
315
315
  $focus-ring-color: var(--color-focus-ring);
316
316
  $focus-ring-width: 2px; // matches --wui-focus-ring-width; Bootstrap builds box-shadow strings from it at compile time
317
317
 
318
318
 
319
319
  // ---- Z-index ----------------------------------------------------------
320
320
  // Mirrors the --wui-z-* ladder in _tokens.scss (full rationale there). Our modal is
321
- // elevated to 1505 via a CSS custom property set directly in wui/_overlays.scss —
322
- // Bootstrap's own $zindex-modal SCSS var is unused by it — but Bootstrap's stock
321
+ // elevated to 1505 via a CSS custom property set directly in wui/_overlays.scss;
322
+ // Bootstrap's own $zindex-modal SCSS var is unused by it, but Bootstrap's stock
323
323
  // popover/tooltip/toast (1070/1080/1090) are still miles below that, so any of
324
324
  // those fired from inside an <AppModal> painted UNDER the dialog. Bring them onto
325
325
  // the ladder's -menu/-tooltip/-toast rungs. Dropdown/sticky/fixed/offcanvas already
@@ -327,7 +327,7 @@ $focus-ring-width: 2px; // matches --wui-focus-ring-width; Bootstrap builds box-
327
327
  // rungs, so those are left at Bootstrap's defaults.
328
328
  //
329
329
  // SCSS variables are compile-time and can't reference the runtime custom
330
- // properties above — keep these numbers in sync with _tokens.scss by hand.
330
+ // properties above; keep these numbers in sync with _tokens.scss by hand.
331
331
  $zindex-tour: 1550;
332
332
  $zindex-popover: 1600;
333
333
  $zindex-tooltip: 1650;
@@ -337,14 +337,14 @@ $zindex-toast: 1700;
337
337
  // ---- Table ----------------------------------------------------------
338
338
  // Set HERE, not in the component layer, and the reason is specificity.
339
339
  // Bootstrap emits `.table > :not(caption) > * > * { padding: … }` at (0,1,1).
340
- // The base table rules are wrapped in `:where()` — deliberately, so variants like
341
- // `.table-ledger` (0,1,2) can override them — which makes them (0,0,3). A class
340
+ // The base table rules are wrapped in `:where()`, deliberately, so variants like
341
+ // `.table-ledger` (0,1,2) can override them, which makes them (0,0,3). A class
342
342
  // beats three type selectors, so a `padding` declared there loses to Bootstrap's
343
343
  // and never applies.
344
344
  //
345
345
  // Overriding the SCSS variable makes Bootstrap's own high-specificity rule emit our
346
346
  // value, so the base table is styled without the component layer having to outrank
347
- // Bootstrap. Variants that set their own padding are unaffected — theirs still wins.
347
+ // Bootstrap. Variants that set their own padding are unaffected; theirs still wins.
348
348
  // (Cell colour and header background take the same approach one level down, through
349
349
  // `--bs-table-color` / `--bs-table-bg`; see the base `.table` rules.)
350
350
  $table-cell-padding-y: 0.75rem; // 12px
@@ -127,3 +127,5 @@
127
127
  @use "wui/menu-motion";
128
128
  // After menu-motion: reuses its zoom keyframes and must win over the overlay partials' modal rules.
129
129
  @use "wui/dialog-motion";
130
+ // After dialog-motion: the native dialog and popover surfaces take the same zoom and must win over its modal rules.
131
+ @use "wui/native-overlay";
@@ -106,3 +106,5 @@
106
106
  @use "wui/menu-motion";
107
107
  // After menu-motion: reuses its zoom keyframes and must win over the overlay partials' modal rules.
108
108
  @use "wui/dialog-motion";
109
+ // After dialog-motion: the native dialog and popover surfaces take the same zoom and must win over its modal rules.
110
+ @use "wui/native-overlay";
@@ -1,18 +1,18 @@
1
1
  @use "../config" as *;
2
2
 
3
- // Card chrome — the header row, its title/subtitle, and the compact variant.
3
+ // Card chrome: the header row, its title/subtitle, and the compact variant.
4
4
  //
5
5
  // Bootstrap supplies `.card`, `.card-header` and `.card-body`, and the brand
6
6
  // `$card-*` overrides supply the border, radius and flat (shadowless) surface.
7
7
  // Only what Bootstrap has no equivalent for lives here.
8
8
  //
9
- // Part of the wui-components layer — see _wui-components.scss for the load
9
+ // Part of the wui-components layer: see _wui-components.scss for the load
10
10
  // order. Order within the layer is LOAD-BEARING; never reorder the imports.
11
11
 
12
- // Default (md) card inset — a uniform 20px on the header, body and footer, driven by one
12
+ // Default (md) card inset: a uniform 20px on the header, body and footer, driven by one
13
13
  // friendly token. A consumer class can retune the padding by setting --wui-card-pad (e.g.
14
14
  // `.tight-card { --wui-card-pad: 12px }` with `className`/`class` on the card) without
15
- // overriding a selector. The padding-scale classes (.card-compact, .card-pad-*) still win —
15
+ // overriding a selector. The padding-scale classes (.card-compact, .card-pad-*) still win;
16
16
  // they set `padding` directly on the header/body/footer.
17
17
  .card {
18
18
  --wui-card-pad: 20px;
@@ -32,26 +32,34 @@
32
32
  // Derive it from the live radius and border width instead.
33
33
  --bs-card-inner-border-radius: calc(var(--bs-card-border-radius) - var(--bs-card-border-width));
34
34
  }
35
+ // A card nested in another card takes its border width from --wui-card-nested-border-width, so a
36
+ // product can draw inner cards flatter or heavier than the outer one. Unset, it matches the outer card.
37
+ // :where keeps the rule at one class, so the elevated and outlined variants below still set their width.
38
+ :where(.card) .card {
39
+ --bs-card-border-width: var(--wui-card-nested-border-width, var(--wui-card-border-width));
40
+ }
35
41
 
36
- // A card header that carries a title on the left and controls on the right — the
42
+ // A card header that carries a title on the left and controls on the right; the
37
43
  // pattern nearly every panel header uses, so it belongs here rather than being
38
44
  // re-flexed with utilities on each one.
39
45
  // The header and footer share the card's own fill (a muted card stays muted to its top edge),
40
46
  // and the header carries no rule of its own: Bootstrap's divider followed the card's border
41
47
  // width, so only the elevated variant drew one. A brand that fills its headers sets
42
48
  // --wui-card-header-bg in its token file, and one that draws a line under every header sets
43
- // --wui-card-header-divider to its width (such as 1px).
49
+ // --wui-card-header-divider to its width (such as 1px). It sets --wui-card-header-divider-color
50
+ // to colour that line.
44
51
  .card-header {
45
52
  --bs-card-cap-bg: var(--wui-card-header-bg, transparent);
46
- border-bottom: var(--wui-card-header-divider, 0px) solid var(--color-border-subtle);
53
+ border-bottom: var(--wui-card-header-divider, 0px) solid var(--wui-card-header-divider-color, var(--color-border-subtle));
47
54
  display: flex;
48
55
  align-items: center;
49
56
  justify-content: space-between;
50
57
  gap: 12px;
51
58
  }
52
- // Bootstrap has its own `.card-title` (a bare margin-bottom) — these override it,
59
+ // Bootstrap has its own `.card-title` (a bare margin-bottom); these override it,
53
60
  // so they must stay in the layer that loads after Bootstrap.
54
- // A product sets its title type with --wui-card-title-font-family, -fs, -fw and -lh.
61
+ // A product sets its title type with --wui-card-title-font-family, -fs, -fw and -lh, and its
62
+ // colour with --wui-card-title-color.
55
63
  .card-title,
56
64
  .result-title {
57
65
  margin: 0;
@@ -59,7 +67,7 @@
59
67
  font-size: var(--wui-card-title-fs, 16px);
60
68
  font-weight: var(--wui-card-title-fw, 600);
61
69
  line-height: var(--wui-card-title-lh, 1.3);
62
- color: var(--color-text);
70
+ color: var(--wui-card-title-color, var(--color-text));
63
71
  }
64
72
  // A title passed as a heading stays a heading for screen readers but takes the title's type.
65
73
  .card-title > :is(h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6) {
@@ -82,7 +90,7 @@
82
90
  // ── Variants ──────────────────────────────────────────────────────────────────
83
91
  // `default` is the flat surface above. The rest are opt-in visual treatments,
84
92
  // chosen by the `variant` prop (React) / attribute (Razor).
85
- // Flat elevation: no in-page drop shadow — stronger border is the edge cue. The default card
93
+ // Flat elevation: no in-page drop shadow; a stronger border is the edge cue. The default card
86
94
  // is borderless, so re-assert a width here (this variant's whole cue is that border).
87
95
  .card-elevated {
88
96
  --bs-card-border-width: 1px;
@@ -96,7 +104,7 @@
96
104
  .card-muted {
97
105
  --bs-card-bg: var(--color-bg-muted);
98
106
  }
99
- // Accent — a coloured left stripe, tinted by `tone` (default primary).
107
+ // Accent: a coloured left stripe, tinted by `tone` (default primary).
100
108
  .card-accent {
101
109
  --card-accent: var(--color-primary);
102
110
  position: relative;