@webority/theme 0.152.0 → 0.154.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/README.md +45 -17
- package/dist/purge-safelist.json +2 -0
- package/dist/webority-theme.css +1 -1
- package/dist/webority-tokens.css +1 -1
- package/index.scss +11 -13
- package/package.json +3 -3
- package/scss/_bootstrap-css.scss +40 -0
- package/scss/_bootstrap.generated.scss +1 -2
- package/scss/_components.scss +19 -3
- package/scss/_config.scss +16 -0
- package/scss/_marketing.scss +5 -5
- package/scss/_tokens.generated.scss +7 -6
- package/scss/_tokens.scss +3 -3
- package/scss/_variables.scss +14 -36
- package/scss/_wui-components.scss +91 -95
- package/scss/_wui-core.scss +80 -84
- package/scss/wui/_account-switcher.scss +2 -0
- package/scss/wui/_auth-layout.scss +2 -0
- package/scss/wui/_avatar-picker.scss +2 -0
- package/scss/wui/_calendar.scss +2 -0
- package/scss/wui/_card-options.scss +2 -0
- package/scss/wui/_card.scss +3 -1
- package/scss/wui/_carousel.scss +2 -0
- package/scss/wui/_cell.scss +2 -0
- package/scss/wui/_chart-card.scss +2 -0
- package/scss/wui/_chart.scss +2 -0
- package/scss/wui/_choice.scss +2 -0
- package/scss/wui/_code-block.scss +2 -0
- package/scss/wui/_command-palette.scss +2 -0
- package/scss/wui/_comment-thread.scss +2 -0
- package/scss/wui/_compare-table.scss +2 -0
- package/scss/wui/_consent-banner.scss +2 -0
- package/scss/wui/_context-menu.scss +2 -0
- package/scss/wui/_controls.scss +3 -3
- package/scss/wui/_data.scss +2 -0
- package/scss/wui/_detail-pane.scss +2 -0
- package/scss/wui/_dialog-motion.scss +2 -0
- package/scss/wui/_disclosure.scss +2 -0
- package/scss/wui/_display.scss +44 -0
- package/scss/wui/_dock.scss +2 -0
- package/scss/wui/_drawer.scss +2 -0
- package/scss/wui/_due-date.scss +2 -0
- package/scss/wui/_empty-state.scss +2 -0
- package/scss/wui/_field-busy.scss +2 -0
- package/scss/wui/_field-floor.scss +2 -0
- package/scss/wui/_field-sizes.scss +2 -0
- package/scss/wui/_file-tiles.scss +2 -0
- package/scss/wui/_file-viewer.scss +6 -2
- package/scss/wui/_filter-popover.scss +2 -0
- package/scss/wui/_floating.scss +2 -0
- package/scss/wui/_flow.scss +2 -0
- package/scss/wui/_groups.scss +2 -0
- package/scss/wui/_hover-card.scss +2 -0
- package/scss/wui/_illustration.scss +2 -0
- package/scss/wui/_image-crop.scss +2 -0
- package/scss/wui/_inline-edit.scss +2 -0
- package/scss/wui/_interaction.scss +2 -0
- package/scss/wui/_kanban.scss +2 -0
- package/scss/wui/_lightbox.scss +2 -0
- package/scss/wui/_list-card.scss +2 -0
- package/scss/wui/_markdown.scss +4 -1
- package/scss/wui/_media.scss +2 -0
- package/scss/wui/_mention-input.scss +2 -0
- package/scss/wui/_menu-motion.scss +2 -0
- package/scss/wui/_metric-strip.scss +2 -0
- package/scss/wui/_modal-remote.scss +2 -0
- package/scss/wui/_money.scss +2 -0
- package/scss/wui/_nav-list.scss +2 -0
- package/scss/wui/_navigation-menu.scss +2 -0
- package/scss/wui/_navigation.scss +2 -0
- package/scss/wui/_notification-center.scss +2 -0
- package/scss/wui/_onboarding-checklist.scss +2 -0
- package/scss/wui/_org-tree.scss +2 -0
- package/scss/wui/_overlays.scss +2 -0
- package/scss/wui/_page-header-bar.scss +2 -0
- package/scss/wui/_pagination.scss +2 -0
- package/scss/wui/_pending.scss +2 -0
- package/scss/wui/_period-picker.scss +2 -0
- package/scss/wui/_rating.scss +2 -0
- package/scss/wui/_record-pager.scss +2 -0
- package/scss/wui/_relative-time.scss +2 -0
- package/scss/wui/_resizable.scss +2 -0
- package/scss/wui/_rich-text.scss +9 -3
- package/scss/wui/_rolling-number.scss +2 -0
- package/scss/wui/_score-scale.scss +2 -0
- package/scss/wui/_scrollbar.scss +2 -0
- package/scss/wui/_section-lead-capture.scss +2 -0
- package/scss/wui/_sections.scss +3 -0
- package/scss/wui/_select.scss +2 -0
- package/scss/wui/_shell-parts.scss +2 -0
- package/scss/wui/_shell.scss +2 -0
- package/scss/wui/_shortcuts.scss +2 -0
- package/scss/wui/_show-more.scss +2 -0
- package/scss/wui/_sortable.scss +2 -0
- package/scss/wui/_split-view.scss +2 -0
- package/scss/wui/_support.scss +2 -0
- package/scss/wui/_table-server.scss +2 -0
- package/scss/wui/_theme-toggle.scss +2 -0
- package/scss/wui/_tone-pill.scss +2 -0
- package/scss/wui/_toolbar.scss +2 -0
- package/scss/wui/_tour.scss +9 -9
- package/scss/wui/_tree.scss +2 -0
- package/scss/wui/_truncate.scss +2 -0
- package/scss/wui/_typography.scss +3 -0
- package/scss/wui/_utilities.scss +2 -0
- package/scss/wui/_whats-new.scss +2 -0
- package/scss/wui/_workspace.scss +2 -0
- package/scss/wui/tour/_advance.scss +2 -0
- package/scss/wui/tour/_base.scss +2 -0
- package/scss/wui/tour/_end.scss +2 -0
- package/scss/wui/tour/_media.scss +2 -0
- package/scss/wui/tour/_motion.scss +2 -0
- package/scss/wui/tour/_placement.scss +2 -0
- package/scss/wui/tour/_progress.scss +2 -0
package/scss/wui/_data.scss
CHANGED
package/scss/wui/_display.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../config" as *;
|
|
2
|
+
|
|
1
3
|
// KPI tile, info list, segmented, colour field, timeline, compare table, resource card.
|
|
2
4
|
//
|
|
3
5
|
// Part of the wui-components layer — see _wui-components.scss for the whole
|
|
@@ -464,6 +466,7 @@ a.kpi:focus-visible {
|
|
|
464
466
|
column-gap: 16px;
|
|
465
467
|
row-gap: 2px;
|
|
466
468
|
align-items: center;
|
|
469
|
+
position: relative;
|
|
467
470
|
padding: 16px 0;
|
|
468
471
|
border-top: none;
|
|
469
472
|
border-bottom: 1px solid var(--color-border);
|
|
@@ -494,6 +497,23 @@ a.kpi:focus-visible {
|
|
|
494
497
|
white-space: nowrap;
|
|
495
498
|
word-break: normal;
|
|
496
499
|
}
|
|
500
|
+
// The row's one link stretches over the whole row (icon, label, value) and stays a single focus stop. An anchor cannot wrap dt and dd inside a dl, so the link stays in the value.
|
|
501
|
+
.wui-descs-list .wui-descs-link::after {
|
|
502
|
+
content: "";
|
|
503
|
+
position: absolute;
|
|
504
|
+
inset: 0;
|
|
505
|
+
}
|
|
506
|
+
.wui-descs-list .wui-descs-link:focus-visible {
|
|
507
|
+
outline: none;
|
|
508
|
+
}
|
|
509
|
+
.wui-descs-list .wui-descs-link:focus-visible::after {
|
|
510
|
+
outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
|
|
511
|
+
outline-offset: var(--wui-focus-ring-offset);
|
|
512
|
+
}
|
|
513
|
+
.wui-descs-list .descs-item:has(.wui-descs-link):hover .wui-descs-link {
|
|
514
|
+
color: var(--color-primary-text);
|
|
515
|
+
text-decoration: underline;
|
|
516
|
+
}
|
|
497
517
|
|
|
498
518
|
// ============================================================================
|
|
499
519
|
// Segmented control: 2 to 4 mutually exclusive options shown side by side.
|
|
@@ -670,6 +690,30 @@ a.kpi:focus-visible {
|
|
|
670
690
|
padding: 4px 16px;
|
|
671
691
|
font-size: 14px;
|
|
672
692
|
}
|
|
693
|
+
// An option with a phone label (the period picker's "30d") shows it below sm, where the full
|
|
694
|
+
// labels would overflow; the full label stays in the accessibility tree at every width.
|
|
695
|
+
.wui-segmented-label-full {
|
|
696
|
+
position: absolute;
|
|
697
|
+
width: 1px;
|
|
698
|
+
height: 1px;
|
|
699
|
+
margin: -1px;
|
|
700
|
+
overflow: hidden;
|
|
701
|
+
clip-path: inset(50%);
|
|
702
|
+
white-space: nowrap;
|
|
703
|
+
}
|
|
704
|
+
@include media-breakpoint-up(sm) {
|
|
705
|
+
.wui-segmented-label-full {
|
|
706
|
+
position: static;
|
|
707
|
+
width: auto;
|
|
708
|
+
height: auto;
|
|
709
|
+
margin: 0;
|
|
710
|
+
overflow: visible;
|
|
711
|
+
clip-path: none;
|
|
712
|
+
}
|
|
713
|
+
.wui-segmented-label-short {
|
|
714
|
+
display: none;
|
|
715
|
+
}
|
|
716
|
+
}
|
|
673
717
|
// Full width — segments share the row equally (a toggle spanning a card or toolbar).
|
|
674
718
|
.segmented-full {
|
|
675
719
|
display: flex;
|
package/scss/wui/_dock.scss
CHANGED
package/scss/wui/_drawer.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../config" as *;
|
|
2
|
+
|
|
1
3
|
// ── Drawer ──
|
|
2
4
|
// AppDrawer / <app-drawer> (a <wui-drawer> element): a side drawer from md up, a bottom sheet
|
|
3
5
|
// below it, or a side drawer at every width when it is `no-sheet`. The sheet is as tall as its highest snap point (`--wui-drawer-max`, percent of the
|
package/scss/wui/_due-date.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../config" as *;
|
|
2
|
+
|
|
1
3
|
// Empty state: the card look, the table-body look and the sibling placement under a data table.
|
|
2
4
|
//
|
|
3
5
|
// Part of the wui-components layer; imported right before _data.scss, where these rules sat. Order within the layer is load-bearing (see _wui-components.scss).
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../config" as *;
|
|
2
|
+
|
|
1
3
|
// Size steps for fields that had none: textarea, checkbox, switch, OTP. Part of the wui-components layer, see _wui-components.scss for load order.
|
|
2
4
|
|
|
3
5
|
// .textarea sets its own padding and height after .input-sm/.input-lg, so the shared step classes
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../config" as *;
|
|
2
|
+
|
|
1
3
|
// ── File viewer ──
|
|
2
4
|
// AppFileViewer / <app-file-viewer> / <wui-file-viewer>: a file shown inside the page, with a
|
|
3
5
|
// toolbar above it. The element builds the markup and the PDF pages; everything visual is here.
|
|
@@ -369,7 +371,8 @@ wui-file-viewer:fullscreen {
|
|
|
369
371
|
// A search hit inside a text run sits in the run's flow, not positioned like the runs themselves.
|
|
370
372
|
// The text is transparent over the drawing, so the hit is a see-through tint: an opaque one
|
|
371
373
|
// would hide the words it marks.
|
|
372
|
-
.wui-file-viewer-text mark.wui-file-viewer-hit
|
|
374
|
+
.wui-file-viewer-text mark.wui-file-viewer-hit,
|
|
375
|
+
.wui-file-viewer-text .wui-file-viewer-hit.mark {
|
|
373
376
|
position: static;
|
|
374
377
|
margin: -1px;
|
|
375
378
|
padding: 1px;
|
|
@@ -377,7 +380,8 @@ wui-file-viewer:fullscreen {
|
|
|
377
380
|
color: transparent;
|
|
378
381
|
background: color-mix(in srgb, var(--color-warning) 40%, transparent);
|
|
379
382
|
}
|
|
380
|
-
.wui-file-viewer-text mark.wui-file-viewer-hit-current
|
|
383
|
+
.wui-file-viewer-text mark.wui-file-viewer-hit-current,
|
|
384
|
+
.wui-file-viewer-text .wui-file-viewer-hit-current.mark {
|
|
381
385
|
background: color-mix(in srgb, var(--color-primary) 45%, transparent);
|
|
382
386
|
box-shadow: 0 0 0 1px var(--color-primary);
|
|
383
387
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../config" as *;
|
|
2
|
+
|
|
1
3
|
// The floating filter panel: <wui-filter-popover> with its Filters button, drawn by AppFilterBar
|
|
2
4
|
// `floating` and <app-filter-bar floating>. The element places the panel (anchorOverlay, fixed), so
|
|
3
5
|
// this partial only draws it: a panel sized to its facets with a head (title and the Keep open switch),
|
package/scss/wui/_floating.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../config" as *;
|
|
2
|
+
|
|
1
3
|
// ── Floating stack ──
|
|
2
4
|
// The one fixed corner container the compact floating buttons (AppFloatingButton: the chat launcher, the report-an-issue
|
|
3
5
|
// button) portal into, so they stack with a gap and never overlap or need a hand-set offset. React's
|
package/scss/wui/_flow.scss
CHANGED
package/scss/wui/_groups.scss
CHANGED
package/scss/wui/_kanban.scss
CHANGED
package/scss/wui/_lightbox.scss
CHANGED
package/scss/wui/_list-card.scss
CHANGED
package/scss/wui/_markdown.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../config" as *;
|
|
2
|
+
|
|
1
3
|
// Markdown: the <wui-markdown class="wui-markdown"> element that draws a brief, a comment or a work-item
|
|
2
4
|
// text. The root is the element, not a div: Razor <app-markdown> writes it, and the element draws the
|
|
3
5
|
// blocks inside it.
|
|
@@ -31,7 +33,8 @@
|
|
|
31
33
|
.wui-markdown p {
|
|
32
34
|
margin: 0 0 0.75em;
|
|
33
35
|
}
|
|
34
|
-
.wui-markdown h2
|
|
36
|
+
.wui-markdown h2,
|
|
37
|
+
.wui-markdown .h2 {
|
|
35
38
|
margin: 1em 0 0.5em;
|
|
36
39
|
color: var(--color-text);
|
|
37
40
|
font-size: 1.25em;
|
package/scss/wui/_media.scss
CHANGED
package/scss/wui/_money.scss
CHANGED
package/scss/wui/_nav-list.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../config" as *;
|
|
2
|
+
|
|
1
3
|
// AppNavList / <app-nav-list>: a page-level rail of links with icons or dots, counts and a tinted current row.
|
|
2
4
|
// The current row is tinted by the primary soft fill and its text takes the AA primary text colour. Every colour is a theme token.
|
|
3
5
|
//
|
package/scss/wui/_org-tree.scss
CHANGED
package/scss/wui/_overlays.scss
CHANGED
|
@@ -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
|
package/scss/wui/_pending.scss
CHANGED
|
@@ -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
|
package/scss/wui/_rating.scss
CHANGED
package/scss/wui/_resizable.scss
CHANGED
package/scss/wui/_rich-text.scss
CHANGED
|
@@ -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
|
|
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
|
// ── 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.
|
package/scss/wui/_scrollbar.scss
CHANGED
package/scss/wui/_sections.scss
CHANGED
package/scss/wui/_select.scss
CHANGED
package/scss/wui/_shell.scss
CHANGED
package/scss/wui/_shortcuts.scss
CHANGED
package/scss/wui/_show-more.scss
CHANGED
package/scss/wui/_sortable.scss
CHANGED
package/scss/wui/_support.scss
CHANGED
|
@@ -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
|
package/scss/wui/_tone-pill.scss
CHANGED
package/scss/wui/_toolbar.scss
CHANGED
package/scss/wui/_tour.scss
CHANGED
|
@@ -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
|
|
5
|
-
// tour's styles move as a whole by moving this one
|
|
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
|
-
@
|
|
13
|
-
@
|
|
14
|
-
@
|
|
15
|
-
@
|
|
16
|
-
@
|
|
17
|
-
@
|
|
18
|
-
@
|
|
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";
|
package/scss/wui/_tree.scss
CHANGED