@webority/theme 0.152.0 → 0.153.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 (111) hide show
  1. package/README.md +43 -17
  2. package/index.scss +11 -13
  3. package/package.json +3 -3
  4. package/scss/_bootstrap-css.scss +40 -0
  5. package/scss/_bootstrap.generated.scss +1 -2
  6. package/scss/_components.scss +19 -3
  7. package/scss/_config.scss +16 -0
  8. package/scss/_marketing.scss +5 -5
  9. package/scss/_tokens.generated.scss +1 -1
  10. package/scss/_tokens.scss +3 -3
  11. package/scss/_variables.scss +13 -35
  12. package/scss/_wui-components.scss +91 -95
  13. package/scss/_wui-core.scss +80 -84
  14. package/scss/wui/_account-switcher.scss +2 -0
  15. package/scss/wui/_auth-layout.scss +2 -0
  16. package/scss/wui/_avatar-picker.scss +2 -0
  17. package/scss/wui/_calendar.scss +2 -0
  18. package/scss/wui/_card-options.scss +2 -0
  19. package/scss/wui/_card.scss +3 -1
  20. package/scss/wui/_carousel.scss +2 -0
  21. package/scss/wui/_cell.scss +2 -0
  22. package/scss/wui/_chart-card.scss +2 -0
  23. package/scss/wui/_chart.scss +2 -0
  24. package/scss/wui/_choice.scss +2 -0
  25. package/scss/wui/_code-block.scss +2 -0
  26. package/scss/wui/_command-palette.scss +2 -0
  27. package/scss/wui/_comment-thread.scss +2 -0
  28. package/scss/wui/_compare-table.scss +2 -0
  29. package/scss/wui/_consent-banner.scss +2 -0
  30. package/scss/wui/_context-menu.scss +2 -0
  31. package/scss/wui/_controls.scss +3 -3
  32. package/scss/wui/_data.scss +2 -0
  33. package/scss/wui/_detail-pane.scss +2 -0
  34. package/scss/wui/_dialog-motion.scss +2 -0
  35. package/scss/wui/_disclosure.scss +2 -0
  36. package/scss/wui/_display.scss +2 -0
  37. package/scss/wui/_dock.scss +2 -0
  38. package/scss/wui/_drawer.scss +2 -0
  39. package/scss/wui/_due-date.scss +2 -0
  40. package/scss/wui/_empty-state.scss +2 -0
  41. package/scss/wui/_field-busy.scss +2 -0
  42. package/scss/wui/_field-floor.scss +2 -0
  43. package/scss/wui/_field-sizes.scss +2 -0
  44. package/scss/wui/_file-tiles.scss +2 -0
  45. package/scss/wui/_file-viewer.scss +6 -2
  46. package/scss/wui/_filter-popover.scss +2 -0
  47. package/scss/wui/_floating.scss +2 -0
  48. package/scss/wui/_flow.scss +2 -0
  49. package/scss/wui/_groups.scss +2 -0
  50. package/scss/wui/_hover-card.scss +2 -0
  51. package/scss/wui/_illustration.scss +2 -0
  52. package/scss/wui/_image-crop.scss +2 -0
  53. package/scss/wui/_inline-edit.scss +2 -0
  54. package/scss/wui/_interaction.scss +2 -0
  55. package/scss/wui/_kanban.scss +2 -0
  56. package/scss/wui/_lightbox.scss +2 -0
  57. package/scss/wui/_list-card.scss +2 -0
  58. package/scss/wui/_markdown.scss +4 -1
  59. package/scss/wui/_media.scss +2 -0
  60. package/scss/wui/_mention-input.scss +2 -0
  61. package/scss/wui/_menu-motion.scss +2 -0
  62. package/scss/wui/_metric-strip.scss +2 -0
  63. package/scss/wui/_modal-remote.scss +2 -0
  64. package/scss/wui/_money.scss +2 -0
  65. package/scss/wui/_nav-list.scss +2 -0
  66. package/scss/wui/_navigation-menu.scss +2 -0
  67. package/scss/wui/_navigation.scss +2 -0
  68. package/scss/wui/_notification-center.scss +2 -0
  69. package/scss/wui/_onboarding-checklist.scss +2 -0
  70. package/scss/wui/_org-tree.scss +2 -0
  71. package/scss/wui/_overlays.scss +2 -0
  72. package/scss/wui/_page-header-bar.scss +2 -0
  73. package/scss/wui/_pagination.scss +2 -0
  74. package/scss/wui/_pending.scss +2 -0
  75. package/scss/wui/_period-picker.scss +2 -0
  76. package/scss/wui/_rating.scss +2 -0
  77. package/scss/wui/_record-pager.scss +2 -0
  78. package/scss/wui/_relative-time.scss +2 -0
  79. package/scss/wui/_resizable.scss +2 -0
  80. package/scss/wui/_rich-text.scss +9 -3
  81. package/scss/wui/_rolling-number.scss +2 -0
  82. package/scss/wui/_score-scale.scss +2 -0
  83. package/scss/wui/_scrollbar.scss +2 -0
  84. package/scss/wui/_section-lead-capture.scss +2 -0
  85. package/scss/wui/_sections.scss +3 -0
  86. package/scss/wui/_select.scss +2 -0
  87. package/scss/wui/_shell-parts.scss +2 -0
  88. package/scss/wui/_shell.scss +2 -0
  89. package/scss/wui/_shortcuts.scss +2 -0
  90. package/scss/wui/_show-more.scss +2 -0
  91. package/scss/wui/_sortable.scss +2 -0
  92. package/scss/wui/_split-view.scss +2 -0
  93. package/scss/wui/_support.scss +2 -0
  94. package/scss/wui/_table-server.scss +2 -0
  95. package/scss/wui/_theme-toggle.scss +2 -0
  96. package/scss/wui/_tone-pill.scss +2 -0
  97. package/scss/wui/_toolbar.scss +2 -0
  98. package/scss/wui/_tour.scss +9 -9
  99. package/scss/wui/_tree.scss +2 -0
  100. package/scss/wui/_truncate.scss +2 -0
  101. package/scss/wui/_typography.scss +3 -0
  102. package/scss/wui/_utilities.scss +2 -0
  103. package/scss/wui/_whats-new.scss +2 -0
  104. package/scss/wui/_workspace.scss +2 -0
  105. package/scss/wui/tour/_advance.scss +2 -0
  106. package/scss/wui/tour/_base.scss +2 -0
  107. package/scss/wui/tour/_end.scss +2 -0
  108. package/scss/wui/tour/_media.scss +2 -0
  109. package/scss/wui/tour/_motion.scss +2 -0
  110. package/scss/wui/tour/_placement.scss +2 -0
  111. package/scss/wui/tour/_progress.scss +2 -0
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Notification centre ──
2
4
  // AppNotificationCenter / <app-notification-center> (a <wui-notification-center> element): a bell
3
5
  // with an unread count that opens a panel of notifications grouped by day. The element shows the
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Onboarding checklist ──
2
4
  // AppOnboardingChecklist / <app-onboarding-checklist> / <wui-onboarding-checklist>: a first-run
3
5
  // setup card. A heading that collapses the steps, a close icon, a bar of one segment per step and
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Org tree ──
2
4
  // AppOrgTree / <app-org-tree> over <wui-org-tree>. Each surface draws the markup; this partial draws
3
5
  // it as an inverted org chart: root on top, reports in a row below, connector lines in the border
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // Prefer .wui-* for new chrome; legacy bare names here are frozen until a BREAKING rename.
2
4
  // Modal, confirm dialog.
3
5
  //
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Bar ── (`size="bar"`): one 40px header row. The breadcrumbs lead as an inline prefix. The
2
4
  // title keeps its content width and a spacer takes the spare width, so the views follow the title
3
5
  // and the tools and actions sit at the far end. Below md the row wraps, so the actions drop under
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // Pager: the table-footer and standalone page controls.
2
4
  //
3
5
  // Part of the wui-components layer; imported right after _data.scss. Order within the layer is load-bearing (see _wui-components.scss).
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // A field element is undefined until its script runs: wui-select until the page script at the end of
2
4
  // the body, an on-demand element (packages/elements src/global/chunks.js) one request after that. Until
3
5
  // then it keeps its field height and hides its option children, so the field does not jump or flash
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Period picker ──
2
4
  // <app-period-picker>: the period filter of a report or list page. The month kind is two arrows
3
5
  // around a fixed-width label, so the arrows stay put as the month name changes.
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Rating ──
2
4
  // AppRating / <app-rating>: a 1 to N star input (a <wui-rating> radiogroup) or a read-only display.
3
5
  // Each star is an outline glyph with a bold copy on top, clipped to the filled share of its width.
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Record pager ──
2
4
  // AppRecordPager / <app-record-pager> (a <wui-record-pager> element): "12 of 47" and the
3
5
  // previous and next action icons, in a detail page's header actions or a split view's pane header.
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Relative time ──
2
4
  // AppRelativeTime / <app-relative-time> (a <wui-relative-time> element): "5 minutes ago" with the
3
5
  // exact IST time as the tooltip.
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Resizable panels ──
2
4
  // AppResizable / <app-resizable> (a <wui-resizable> element): panels side by side or stacked with a
3
5
  // handle between each pair. The element writes each panel's `flex` (a share of the room the panels
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // Rich text: the <wui-rich-text> element behind AppRichText / <app-rich-text>.
2
4
  //
3
5
  // Part of the wui-components layer; see _wui-components.scss for the load order. The shell wears the
@@ -237,16 +239,20 @@ wui-rich-text[readonly] .wui-rich-text-prose {
237
239
  margin: 0 0 0.75em;
238
240
  }
239
241
  .wui-rich-text-prose h2,
240
- .wui-rich-text-prose h3 {
242
+ .wui-rich-text-prose .h2,
243
+ .wui-rich-text-prose h3,
244
+ .wui-rich-text-prose .h3 {
241
245
  margin: 1em 0 0.5em;
242
246
  font-weight: 600;
243
247
  line-height: 1.3;
244
248
  color: var(--color-text);
245
249
  }
246
- .wui-rich-text-prose h2 {
250
+ .wui-rich-text-prose h2,
251
+ .wui-rich-text-prose .h2 {
247
252
  font-size: 1.25em;
248
253
  }
249
- .wui-rich-text-prose h3 {
254
+ .wui-rich-text-prose h3,
255
+ .wui-rich-text-prose .h3 {
250
256
  font-size: 1.1em;
251
257
  }
252
258
  .wui-rich-text-prose ul,
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Rolling number ──
2
4
  // AppRollingNumber / <app-rolling-number> (a <wui-rolling-number> element): a figure whose digits
3
5
  // roll to a new value. The element draws one reel (digits 0 to 9, stacked) per digit in the
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Score scale ──
2
4
  // AppScoreScale / <app-score-scale>: one value per radio on a row of equal-width items that wraps on narrow screens.
3
5
  // Each value is a label around a visually hidden native radio, so the arrow keys and the checked state come from the browser.
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // AppScrollbar / opt-in internal scrollers — same tokens as the document rail
2
4
  // (--wui-scrollbar*). Document chrome lives on html/body only; use this class
3
5
  // for panels, drawers, and modal bodies that need a matching thin thumb.
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // Lead capture section of a marketing page (AppSectionLeadCapture).
2
4
  //
3
5
  // Part of the wui-components layer; imported after _sections.scss. Order within the layer is load-bearing (see _wui-components.scss).
@@ -1,3 +1,6 @@
1
+ @use "../config" as *;
2
+ @use "tone-pill" as *;
3
+
1
4
  // ── Section kit ──
2
5
  // AppSection* / <app-section-*>: the hero, features, logos, testimonials, pricing, FAQ and call to
3
6
  // action sections of a public page. One frame for all seven:
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // The select family: <wui-select> in every mode (single, multiple, search, tag, country),
2
4
  // its menu and its parts (chips, draft input, option rows).
3
5
 
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // Shell parts: notification bell, topbar search, phone tab bar, user menu.
2
4
  //
3
5
  // Part of the wui-components layer; imported after its base partial (see _wui-components.scss).
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // Splash / boot loader, persistent app shell.
2
4
  //
3
5
  // Part of the wui-components layer — see _wui-components.scss for the whole
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Keyboard shortcuts ──
2
4
  // `.wui-kbd` is the key chip of a shortcut: the `shortcut` prop on AppButton, AppTooltip and
3
5
  // AppDropdown items (and their Razor `shortcut` attribute), and every row of a legend.
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Show more ──
2
4
  // AppShowMore / <app-show-more> (a <wui-show-more> element): a long text block clamped to a few
3
5
  // lines with a Show more toggle. The clamp is visual only, so the full text stays readable by
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Sortable list ──
2
4
  // AppSortableList / <app-sortable-list> / <wui-sortable>. The element moves the real items
3
5
  // while the person drags and shows a `.wui-sortable-ghost` copy under the pointer; everything
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Split view ──
2
4
  // AppSplitView / <app-split-view>: a list beside a reading pane. Mobile-first: one screen at a
3
5
  // time (the list, or the pane once an item is open, `.wui-split-reading`) until the tier in
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ============================================================================
2
4
  // Help desk (@webority/support-react): the ticket list toolbar and subject cell,
3
5
  // and the ticket page's reply rows and composer. Everything else on those pages
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // Server-paged data table: loading, empty and error states, the busy dim and the server sort affordance.
2
4
  //
3
5
  // Part of the wui-components layer; imported after its base partial (see _wui-components.scss).
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // AppThemeToggle / <app-theme-toggle>: the light/dark switch and its page-wide transition.
2
4
  //
3
5
  // The button is the .u-action disc (see _data.scss). While a switch runs, the page is a View
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Shared tone-pill color mixin ──
2
4
  // Consolidates the tone→color mapping used by .badge, .status-label, and .chip:
3
5
  // background: var(--color-{tone}-soft)
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Toolbar ──
2
4
  // AppToolbar / <app-toolbar> — a Figma-style tool strip: a pill of icon tools where
3
5
  // the active tool expands to reveal its label. Radio-backed (no JS needed on Razor);
@@ -1,18 +1,18 @@
1
1
  // ── Product tour ──
2
2
  // AppTour / <app-tour> / <wui-tour>. The one entry for every tour rule: the partials under
3
3
  // wui/tour/ hold one concern each, matching the element's modules (tourMotion.js, tourProgress.js,
4
- // tourPlacement.js, tourMedia.js, tourAdvance.js, tourEnd.js). Nothing else imports them, so the
5
- // tour's styles move as a whole by moving this one import.
4
+ // tourPlacement.js, tourMedia.js, tourAdvance.js, tourEnd.js). Nothing else loads them, so the
5
+ // tour's styles move as a whole by moving this one @use.
6
6
  //
7
7
  // Isolated tours carry a sealed copy of every .wui-tour-* rule (packages/elements/src/tourIsolated.js),
8
8
  // and a test pins that copy to the compiled theme.
9
9
  //
10
10
  // Part of the wui-components layer, see _wui-components.scss for load order.
11
11
 
12
- @import "tour/base";
13
- @import "tour/motion";
14
- @import "tour/progress";
15
- @import "tour/placement";
16
- @import "tour/media";
17
- @import "tour/advance";
18
- @import "tour/end";
12
+ @use "tour/base";
13
+ @use "tour/motion";
14
+ @use "tour/progress";
15
+ @use "tour/placement";
16
+ @use "tour/media";
17
+ @use "tour/advance";
18
+ @use "tour/end";
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Tree view ──
2
4
  // AppTreeView / <app-tree-view> / <wui-tree>: a hierarchy in the WAI-ARIA tree pattern. The element
3
5
  // draws the markup and keeps the state on ARIA attributes (aria-expanded on an item,
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Truncate ──
2
4
  // AppTruncate / <app-truncate> (a <wui-truncate> element): text cut with an ellipsis by width or by
3
5
  // line count. The element sets data-wui-tip (drawn by the CSS tooltip in _overlays.scss) on itself,
@@ -1,3 +1,6 @@
1
+ @use "../config" as *;
2
+ @use "tone-pill" as *;
3
+
1
4
  // Prefer .wui-* for new chrome; legacy bare names here are frozen until a BREAKING rename.
2
5
  // Text-scale utilities.
3
6
  //
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // Prefer .wui-* for new chrome; legacy bare names here are frozen until a BREAKING rename.
2
4
  // Grid utils, info tip, page header, row actions, spinner.
3
5
  //
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── What's new ──
2
4
  // AppWhatsNew / <app-whats-new> (a <wui-whats-new> element): a gift icon with an unread dot and a
3
5
  // panel of dated release notes under it. The element shows the dot through [data-wui-unread] on the
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // Every class here is namespaced `.workspace-switcher*`, and the rules that have to beat
2
4
  // Bootstrap's own .dropdown-item/.dropdown-menu specificity are additionally scoped under
3
5
  // the .workspace-switcher root — so this file cannot reach anything a product owns unless
@@ -1,3 +1,5 @@
1
+ @use "../../config" as *;
2
+
1
3
  // ── Product tour: click-to-advance steps ──
2
4
  // A step with `advance-on="click"` lets clicks through the spotlight to its target, and the
3
5
  // tour moves on when the target is used (tourAdvance.js). The cue is the looping tapping pointer
@@ -1,3 +1,5 @@
1
+ @use "../../config" as *;
2
+
1
3
  // ── Product tour: layer, spotlight and card ──
2
4
  // AppTour / <app-tour> / <wui-tour>: a dimmed page with one highlighted element and a card
3
5
  // holding the step text and Back / Next / Skip. The element appends .wui-tour-layer to <body>;
@@ -1,3 +1,5 @@
1
+ @use "../../config" as *;
2
+
1
3
  // ── Product tour: closing dialog ──
2
4
  // The "You're all set" dialog after the last step (.wui-tour-end), shown by tourEnd.js. It is a
3
5
  // .wui-tour-card too, so it takes the card's look and its entrance from _motion.scss (a fade under
@@ -1,3 +1,5 @@
1
+ @use "../../config" as *;
2
+
1
3
  // ── Product tour: step media ──
2
4
  // A step's optional image or short loop, full-bleed at the card top (.wui-tour-media), rendered
3
5
  // by tourMedia.js. The frame is 16:9 before the file loads, so the card keeps its size. Its
@@ -1,3 +1,5 @@
1
+ @use "../../config" as *;
2
+
1
3
  // ── Product tour: motion ──
2
4
  // The dim fading in and out, the spotlight's glide between targets, and the card's entrance and
3
5
  // exit (its `data-state`: entering | shown | leaving, and the layer's `data-state="leaving"`, both
@@ -1,3 +1,5 @@
1
+ @use "../../config" as *;
2
+
1
3
  // ── Product tour: placement ──
2
4
  // Where the card sits against its target: the card's `data-placement` (top | bottom | left |
3
5
  // right | center | overlap) and the .wui-tour-arrow pointing at the target, set by tourPlacement.js.
@@ -1,3 +1,5 @@
1
+ @use "../../config" as *;
2
+
1
3
  // ── Product tour: progress ──
2
4
  // The step count above the title: a thin segmented bar (.wui-tour-progress holds
3
5
  // .wui-tour-progress-bar, which holds one .wui-tour-progress-segment per counted step) and the