@webority/theme 0.163.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.
- package/README.md +21 -21
- package/dist/purge-safelist.json +10 -11
- package/dist/webority-theme.css +1 -1
- package/package.json +6 -5
- package/scss/_bootstrap.generated.scss +1 -1
- package/scss/_components.scss +38 -34
- package/scss/_flags.scss +3 -3
- package/scss/_marketing.scss +6 -6
- package/scss/_tokens.generated.scss +1 -1
- package/scss/_variables.scss +19 -19
- package/scss/_wui-components.scss +2 -0
- package/scss/_wui-core.scss +2 -0
- package/scss/wui/_card.scss +8 -8
- package/scss/wui/_choice.scss +4 -4
- package/scss/wui/_command-palette.scss +7 -2
- package/scss/wui/_comment-thread.scss +3 -3
- package/scss/wui/_context-menu.scss +14 -10
- package/scss/wui/_controls.scss +74 -73
- package/scss/wui/_data.scss +19 -33
- package/scss/wui/_dialog-motion.scss +14 -19
- package/scss/wui/_disclosure.scss +3 -3
- package/scss/wui/_display.scss +56 -56
- package/scss/wui/_dock.scss +4 -4
- package/scss/wui/_drawer.scss +18 -15
- package/scss/wui/_empty-state.scss +4 -4
- package/scss/wui/_file-viewer.scss +14 -2
- package/scss/wui/_filter-popover.scss +1 -1
- package/scss/wui/_floating.scss +1 -1
- package/scss/wui/_flow.scss +33 -33
- package/scss/wui/_hover-card.scss +6 -5
- package/scss/wui/_inline-edit.scss +1 -1
- package/scss/wui/_kanban.scss +1 -1
- package/scss/wui/_lightbox.scss +20 -9
- package/scss/wui/_media.scss +1 -1
- package/scss/wui/_mention-input.scss +3 -3
- package/scss/wui/_menu-motion.scss +23 -23
- package/scss/wui/_modal-remote.scss +3 -3
- package/scss/wui/_native-overlay.scss +76 -0
- package/scss/wui/_navigation-menu.scss +13 -17
- package/scss/wui/_navigation.scss +25 -1
- package/scss/wui/_notification-center.scss +6 -9
- package/scss/wui/_overlay-reset.scss +15 -0
- package/scss/wui/_overlays.scss +139 -99
- package/scss/wui/_page-header-bar.scss +24 -0
- package/scss/wui/_scrollbar.scss +1 -1
- package/scss/wui/_sections.scss +3 -3
- package/scss/wui/_select.scss +16 -10
- package/scss/wui/_shell-parts.scss +2 -2
- package/scss/wui/_shell.scss +131 -28
- package/scss/wui/_shortcuts.scss +3 -15
- package/scss/wui/_sortable.scss +1 -1
- package/scss/wui/_tone-pill.scss +2 -2
- package/scss/wui/_toolbar.scss +3 -3
- package/scss/wui/_truncate.scss +2 -2
- package/scss/wui/_typography.scss +8 -8
- package/scss/wui/_utilities.scss +4 -5
- package/scss/wui/_whats-new.scss +6 -7
- package/scss/wui/_workspace.scss +34 -9
- package/scss/wui/tour/_base.scss +11 -1
- package/scss/wui/tour/_end.scss +6 -0
- package/scss/wui/tour/_media.scss +1 -1
- package/scss/wui/tour/_placement.scss +6 -0
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# @webority/theme
|
|
2
2
|
|
|
3
|
-
Webority's internal design system
|
|
3
|
+
Webority's internal design system: Bootstrap 5.3 SCSS overrides, `--wui-*` tokens, and
|
|
4
4
|
shared component CSS. Consumed by `@webority/ui-react` and `Webority.Ui.Razor`.
|
|
5
5
|
|
|
6
6
|
Published publicly so `npm install` needs no private registry. Built for Webority
|
|
7
7
|
products; no support commitment outside them.
|
|
8
8
|
|
|
9
|
-
**Bias:** thin layer on Bootstrap. Shared identity + control language + hard gaps
|
|
9
|
+
**Bias:** thin layer on Bootstrap. Shared identity + control language + hard gaps, not a
|
|
10
10
|
second framework and not every product's marketing site.
|
|
11
11
|
|
|
12
12
|
## Use
|
|
@@ -112,7 +112,7 @@ Add your own safelist entries for classes your page scripts add. PurgeCSS failur
|
|
|
112
112
|
compare every page before and after a purge.
|
|
113
113
|
|
|
114
114
|
**`$secondary`** is quiet grey (de-emphasised text/buttons), not a second brand
|
|
115
|
-
colour
|
|
115
|
+
colour: intentional shared semantics (see `_variables.scss`).
|
|
116
116
|
|
|
117
117
|
`dist/webority-theme.css` is a precompiled default-brand **portal** build (no
|
|
118
118
|
marketing partial). Prefer the SCSS chain above for brand-exact output.
|
|
@@ -197,7 +197,7 @@ The theme ships with two built-in dark-mode support patterns:
|
|
|
197
197
|
Set `data-theme="dark"` and `data-bs-theme="dark"` on `<html>` to flip both WUI and Bootstrap
|
|
198
198
|
native components together. The dark token remap maps all `--color-*` aliases onto dark hexes,
|
|
199
199
|
and Bootstrap's utility classes (`.text-body`, `.bg-secondary`) and components respond via
|
|
200
|
-
the `[data-bs-theme="dark"]` selector that Bootstrap provides. **Pair the attributes
|
|
200
|
+
the `[data-bs-theme="dark"]` selector that Bootstrap provides. **Pair the attributes**: setting
|
|
201
201
|
one without the other leaves part of the system on the wrong palette.
|
|
202
202
|
|
|
203
203
|
Use `AppThemeToggle` (React) or `<app-theme-toggle>` (Razor) rather than wiring the attributes
|
|
@@ -225,11 +225,11 @@ so the compiled dark CSS is byte-identical whether toggled manually or via syste
|
|
|
225
225
|
The dark mapping also carries the Bootstrap heading, primary, link and secondary values, derived from the dark tokens, so a product needs no dark block of its own for them.
|
|
226
226
|
|
|
227
227
|
Token remap includes:
|
|
228
|
-
- **Surfaces & text
|
|
229
|
-
- **Bootstrap RGB triplets
|
|
230
|
-
- **Brand & status colors
|
|
231
|
-
- **Scrim
|
|
232
|
-
- **Component shadows
|
|
228
|
+
- **Surfaces & text**: `--color-bg`, `--color-border`, `--color-text*`
|
|
229
|
+
- **Bootstrap RGB triplets**: `--bs-body-bg-rgb`, `--bs-body-color-rgb`, etc., so `.bg-body` / `.text-body` utilities flip
|
|
230
|
+
- **Brand & status colors**: primary, success, danger, warning, info (mapped to readable values on dark surfaces)
|
|
231
|
+
- **Scrim**: overlay dimming adjusted for dark backgrounds
|
|
232
|
+
- **Component shadows**: slider thumbs, badge accents, etc. re-mapped for visibility
|
|
233
233
|
|
|
234
234
|
Marketing sites ship light-only (the `scss/_marketing.scss` partial is opt-in on portals
|
|
235
235
|
and omitted on marketing); dark mode is a **portal feature**, not a marketing requirement.
|
|
@@ -241,8 +241,8 @@ Theme-owned class names follow one rule going forward. Enforced by
|
|
|
241
241
|
|
|
242
242
|
| Class kind | Allowed for **new** chrome? | Notes |
|
|
243
243
|
|---|---|---|
|
|
244
|
-
| Bootstrap public classes (`.btn`, `.form-control`, `.card`, …) | **Yes** | Restyle Layer A only
|
|
245
|
-
| `.wui-*` | **Yes
|
|
244
|
+
| Bootstrap public classes (`.btn`, `.form-control`, `.card`, …) | **Yes** | Restyle Layer A only; do not fork a second kit |
|
|
245
|
+
| `.wui-*` | **Yes (default)** | All new library chrome |
|
|
246
246
|
| `.app-*` | Legacy only | Shell / host wrappers already shipped; prefer `.wui-*` for anything new |
|
|
247
247
|
| Bare generics (`.input`, `.datepicker`, `.tbl-*`, …) | Legacy only | Frozen allowlist; no new top-level bare selectors |
|
|
248
248
|
| Marketing bare (`.section-y`, `.btn-pill`, …) | Opt-in `_marketing.scss` only | Documented marketing vocabulary; portals omit the import |
|
|
@@ -256,15 +256,15 @@ Three layers. Do not collapse product art direction into the shared package.
|
|
|
256
256
|
|
|
257
257
|
| Layer | Owner | What |
|
|
258
258
|
|---|---|---|
|
|
259
|
-
| **A
|
|
260
|
-
| **B
|
|
261
|
-
| **C
|
|
259
|
+
| **A: Bootstrap** | Bootstrap | Grid, utilities, reboot, structure of `.btn` / `.form-control` / `.modal` / offcanvas |
|
|
260
|
+
| **B: Shared UI system** | **this package + App\*** | Brandable tokens, one field/selection skin, portal shell/table/modal, hard interactive, React↔Razor parity |
|
|
261
|
+
| **C: Product / marketing** | **Each product** | Brand hexes, page layouts, heroes/motion, domain components, router/auth/content |
|
|
262
262
|
|
|
263
263
|
### Products own (do not re-implement in the library)
|
|
264
264
|
|
|
265
|
-
- **Brand values
|
|
266
|
-
- **Marketing art direction
|
|
267
|
-
- **Screens and domain UI
|
|
265
|
+
- **Brand values**: `$primary` / `--wui-primary*` (and related) via pre-bootstrap variables or runtime CSS; use `wui-brand-primary` when setting primary once
|
|
266
|
+
- **Marketing art direction**: heroes, section rhythm, marquee, scroll reveals, page entry fades, marketing-only button shapes (pill / ghost-dark), wide marketing canvas
|
|
267
|
+
- **Screens and domain UI**: feature layouts, status→label maps, RoleBadge-style domain components
|
|
268
268
|
- **App infrastructure**: routing, auth, i18n copy, rich text, API (charts are the library's `AppChart`)
|
|
269
269
|
|
|
270
270
|
### Products must not own (deviation)
|
|
@@ -309,7 +309,7 @@ Anti-over-correction checklist. When thinning the package (e.g. marketing extrac
|
|
|
309
309
|
- Portal: `AppShell`, `AppDataTable` / ledger, `AppModal` / `AppConfirmDialog` / `AppCommandPalette`, toast contract, `AppDrawer`, `AppThemeToggle`
|
|
310
310
|
- React↔Razor parity gates and unit tests for catalogue components
|
|
311
311
|
|
|
312
|
-
### Marketing (opt-in
|
|
312
|
+
### Marketing (opt-in, not default)
|
|
313
313
|
|
|
314
314
|
Editorial helpers live in **`scss/_marketing.scss`**, imported as
|
|
315
315
|
`@webority/theme/scss/marketing` **after** the core chain. Includes section-y,
|
|
@@ -324,9 +324,9 @@ Keep shipping all of these; classify for **when to use**, not for removal:
|
|
|
324
324
|
|
|
325
325
|
| Tier | Components | Library? | Notes |
|
|
326
326
|
|---|---|---|---|
|
|
327
|
-
| **Portal core** | Shell, DataTable, fields/selects, Modal, Confirm, Tabs, Card, Alert, Badge, StatusBadge, Stepper, File*, Date*, Phone, OTP, Toast, Empty/Skeleton/Spinner | **Yes
|
|
327
|
+
| **Portal core** | Shell, DataTable, fields/selects, Modal, Confirm, Tabs, Card, Alert, Badge, StatusBadge, Stepper, File*, Date*, Phone, OTP, Toast, Empty/Skeleton/Spinner | **Yes, never product-fork** | Daily product UI |
|
|
328
328
|
| **Portal display** | `AppKpiTile`, `AppDescriptions`, `AppTimeline`, `AppSplash`, `AppBanner`, `AppBreadcrumbs`, `AppProgress`, `AppMeter`, `AppChart` | **Yes** | Shared across portals |
|
|
329
|
-
| **Commercial / plan UI** | `AppPricingCard`, `AppCompareTable`, `AppResourceCard` | **Yes
|
|
329
|
+
| **Commercial / plan UI** | `AppPricingCard`, `AppCompareTable`, `AppResourceCard` | **Yes, keep** | Pricing pages **and** in-app plan/billing. Editorial shape, not a second design system. Moving them to products would break React↔Razor parity. |
|
|
330
330
|
| **CSS marketing only** | section-y, btn-pill, reveal, marquee, … | **Opt-in partial** | Not App*; see marketing import above |
|
|
331
331
|
|
|
332
332
|
**Do not remove** PricingCard / CompareTable / ResourceCard without a multi-product usage audit **outside** this monorepo. Inventory conclusion: **keep in library**, document tier.
|
|
@@ -338,6 +338,6 @@ Keep shipping all of these; classify for **when to use**, not for removal:
|
|
|
338
338
|
- Supporting browsers get slightly smoother corners; others keep plain `border-radius`.
|
|
339
339
|
- Missing squircle is **not** a bug.
|
|
340
340
|
|
|
341
|
-
**Policy:** keep on shared control surfaces for consistent geometry; do **not** strip globally. Optional `.rounded-squircle` remains an opt-in utility. Products that want pure arcs only override locally
|
|
341
|
+
**Policy:** keep on shared control surfaces for consistent geometry; do **not** strip globally. Optional `.rounded-squircle` remains an opt-in utility. Products that want pure arcs only override locally; do not fork App*.
|
|
342
342
|
|
|
343
343
|
|
package/dist/purge-safelist.json
CHANGED
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
"app-nav-trailing",
|
|
40
40
|
"app-phone-number-input",
|
|
41
41
|
"app-popover",
|
|
42
|
-
"app-scrim",
|
|
43
42
|
"app-shell",
|
|
44
43
|
"app-sidebar",
|
|
45
44
|
"app-sidebar-brand",
|
|
@@ -109,6 +108,7 @@
|
|
|
109
108
|
"breadcrumb",
|
|
110
109
|
"breadcrumb-item",
|
|
111
110
|
"browse",
|
|
111
|
+
"bs-popover-auto",
|
|
112
112
|
"btn",
|
|
113
113
|
"btn-close",
|
|
114
114
|
"btn-danger",
|
|
@@ -246,7 +246,6 @@
|
|
|
246
246
|
"dropdown-search-icon",
|
|
247
247
|
"dropdown-search-input",
|
|
248
248
|
"dropdown-search-wrapper",
|
|
249
|
-
"dropdown-toggle",
|
|
250
249
|
"empty-state",
|
|
251
250
|
"empty-state-action",
|
|
252
251
|
"empty-state-icon",
|
|
@@ -394,7 +393,6 @@
|
|
|
394
393
|
"min-w-0",
|
|
395
394
|
"mobile-open",
|
|
396
395
|
"modal",
|
|
397
|
-
"modal-backdrop",
|
|
398
396
|
"modal-content",
|
|
399
397
|
"modal-dialog",
|
|
400
398
|
"modal-dialog-centered",
|
|
@@ -415,7 +413,6 @@
|
|
|
415
413
|
"num-wrap",
|
|
416
414
|
"num-wrap-lg",
|
|
417
415
|
"num-wrap-sm",
|
|
418
|
-
"offcanvas",
|
|
419
416
|
"open",
|
|
420
417
|
"org",
|
|
421
418
|
"otp",
|
|
@@ -466,6 +463,9 @@
|
|
|
466
463
|
"plan-price-unit",
|
|
467
464
|
"plan-tagline",
|
|
468
465
|
"popover",
|
|
466
|
+
"popover-arrow",
|
|
467
|
+
"popover-body",
|
|
468
|
+
"popover-header",
|
|
469
469
|
"position-fixed",
|
|
470
470
|
"prev",
|
|
471
471
|
"primary",
|
|
@@ -641,6 +641,8 @@
|
|
|
641
641
|
"toolbar-item-label",
|
|
642
642
|
"toolbar-sep",
|
|
643
643
|
"tooltip",
|
|
644
|
+
"tooltip-arrow",
|
|
645
|
+
"tooltip-inner",
|
|
644
646
|
"top-0",
|
|
645
647
|
"top-50",
|
|
646
648
|
"topbar-icon-btn",
|
|
@@ -759,6 +761,7 @@
|
|
|
759
761
|
"wui-breadcrumb-collapsible",
|
|
760
762
|
"wui-breadcrumb-more",
|
|
761
763
|
"wui-breadcrumb-more-toggle",
|
|
764
|
+
"wui-breadcrumb-nowrap",
|
|
762
765
|
"wui-btn-group",
|
|
763
766
|
"wui-btn-group-full",
|
|
764
767
|
"wui-btn-pin-end",
|
|
@@ -977,7 +980,6 @@
|
|
|
977
980
|
"wui-descs-summary",
|
|
978
981
|
"wui-detail-pane",
|
|
979
982
|
"wui-drawer",
|
|
980
|
-
"wui-drawer-backdrop",
|
|
981
983
|
"wui-drawer-body",
|
|
982
984
|
"wui-drawer-close",
|
|
983
985
|
"wui-drawer-discarding",
|
|
@@ -986,7 +988,6 @@
|
|
|
986
988
|
"wui-drawer-handle",
|
|
987
989
|
"wui-drawer-header",
|
|
988
990
|
"wui-drawer-headtext",
|
|
989
|
-
"wui-drawer-locked",
|
|
990
991
|
"wui-drawer-panel",
|
|
991
992
|
"wui-drawer-subtitle",
|
|
992
993
|
"wui-drawer-title",
|
|
@@ -1234,10 +1235,8 @@
|
|
|
1234
1235
|
"wui-metric-value",
|
|
1235
1236
|
"wui-modal",
|
|
1236
1237
|
"wui-modal-back",
|
|
1237
|
-
"wui-modal-backdrop-stacked",
|
|
1238
1238
|
"wui-modal-body",
|
|
1239
1239
|
"wui-modal-close",
|
|
1240
|
-
"wui-modal-dim",
|
|
1241
1240
|
"wui-modal-eyebrow",
|
|
1242
1241
|
"wui-modal-footer",
|
|
1243
1242
|
"wui-modal-fullscreen",
|
|
@@ -1247,7 +1246,6 @@
|
|
|
1247
1246
|
"wui-modal-heading",
|
|
1248
1247
|
"wui-modal-headtext",
|
|
1249
1248
|
"wui-modal-shell",
|
|
1250
|
-
"wui-modal-stacked",
|
|
1251
1249
|
"wui-modal-subtitle",
|
|
1252
1250
|
"wui-modal-title",
|
|
1253
1251
|
"wui-money",
|
|
@@ -1344,6 +1342,7 @@
|
|
|
1344
1342
|
"wui-overflow-item",
|
|
1345
1343
|
"wui-overflow-menu",
|
|
1346
1344
|
"wui-overflow-more",
|
|
1345
|
+
"wui-page-header-actions",
|
|
1347
1346
|
"wui-page-header-meta-below",
|
|
1348
1347
|
"wui-page-header-subtitle-inline",
|
|
1349
1348
|
"wui-page-title-slot",
|
|
@@ -1422,6 +1421,7 @@
|
|
|
1422
1421
|
"wui-score-scale__item",
|
|
1423
1422
|
"wui-score-scale__item--selected",
|
|
1424
1423
|
"wui-scroll",
|
|
1424
|
+
"wui-scrolled",
|
|
1425
1425
|
"wui-search-collapsible",
|
|
1426
1426
|
"wui-search-toggle",
|
|
1427
1427
|
"wui-section",
|
|
@@ -1499,9 +1499,7 @@
|
|
|
1499
1499
|
"wui-shortcut-keys",
|
|
1500
1500
|
"wui-shortcut-legend",
|
|
1501
1501
|
"wui-shortcut-sheet",
|
|
1502
|
-
"wui-shortcut-sheet-below",
|
|
1503
1502
|
"wui-shortcut-sheet-head",
|
|
1504
|
-
"wui-shortcut-sheet-start",
|
|
1505
1503
|
"wui-shortcut-sheet-title",
|
|
1506
1504
|
"wui-shortcut-toggle",
|
|
1507
1505
|
"wui-show-more",
|
|
@@ -1719,6 +1717,7 @@
|
|
|
1719
1717
|
"^avatar-status-",
|
|
1720
1718
|
"^badge-",
|
|
1721
1719
|
"^border-",
|
|
1720
|
+
"^bs-tooltip-",
|
|
1722
1721
|
"^btn-",
|
|
1723
1722
|
"^btn-anim-",
|
|
1724
1723
|
"^btn-ghost-",
|