@webority/theme 0.9.16 → 0.9.18

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 CHANGED
@@ -87,6 +87,22 @@ Token remap includes:
87
87
  Marketing sites ship light-only (the `scss/_marketing.scss` partial is opt-in on portals
88
88
  and omitted on marketing); dark mode is a **portal feature**, not a marketing requirement.
89
89
 
90
+ ## Public CSS class vocabulary
91
+
92
+ Theme-owned class names follow one rule going forward. Enforced by
93
+ `scripts/check-scss-class-prefix.mjs` (frozen legacy allowlist + fail on new bare names).
94
+
95
+ | Class kind | Allowed for **new** chrome? | Notes |
96
+ |---|---|---|
97
+ | Bootstrap public classes (`.btn`, `.form-control`, `.card`, …) | **Yes** | Restyle Layer A only — do not fork a second kit |
98
+ | `.wui-*` | **Yes — default** | All new library chrome |
99
+ | `.app-*` | Legacy only | Shell / host wrappers already shipped; prefer `.wui-*` for anything new |
100
+ | Bare generics (`.input`, `.search-select`, `.datepicker`, `.tbl-*`, …) | Legacy only | Frozen allowlist; no new top-level bare selectors |
101
+ | Marketing bare (`.section-y`, `.btn-pill`, …) | Opt-in `_marketing.scss` only | Documented marketing vocabulary; portals omit the import |
102
+
103
+ Renames of legacy bare names are **BREAKING**: remove the old class, list the new name in
104
+ `CHANGELOG.md`, no dual-class shim. Consumers update markup on the bump.
105
+
90
106
  ## Library vs product ownership
91
107
 
92
108
  Three layers. Do not collapse product art direction into the shared package.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/theme",
3
- "version": "0.9.16",
3
+ "version": "0.9.18",
4
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": {
@@ -33,6 +33,6 @@
33
33
  "sass-embedded": "^1.97.0"
34
34
  },
35
35
  "scripts": {
36
- "build": "sass index.scss dist/webority-theme.css --load-path=node_modules --style=compressed --no-source-map --quiet-deps && node ../../scripts/sync-rcl-assets.mjs theme"
36
+ "build": "sass index.scss dist/webority-theme.css --load-path=node_modules --style=compressed --no-source-map --quiet-deps --silence-deprecation=if-function && node ../../scripts/sync-rcl-assets.mjs theme"
37
37
  }
38
38
  }
@@ -1,4 +1,4 @@
1
- // Component classes use the .wui-* prefix.
1
+ // Prefer .wui-* for new chrome; legacy bare names here are frozen until a BREAKING rename.
2
2
  // Checkbox & radio, field/input, status badge, choice chip.
3
3
  //
4
4
  // Part of the wui-components layer — see _wui-components.scss for the whole
@@ -1,4 +1,4 @@
1
- // Component classes use the .wui-* prefix.
1
+ // Prefer .wui-* for new chrome; legacy bare names here are frozen until a BREAKING rename.
2
2
  // Empty state, base table, ledger table + pagination.
3
3
  //
4
4
  // Part of the wui-components layer — see _wui-components.scss for the whole
@@ -1,4 +1,4 @@
1
- // Component classes use the .wui-* prefix.
1
+ // Prefer .wui-* for new chrome; legacy bare names here are frozen until a BREAKING rename.
2
2
  // Modal, confirm dialog.
3
3
  //
4
4
  // Part of the wui-components layer — see _wui-components.scss for the whole
@@ -1,4 +1,4 @@
1
- // Component classes use the .wui-* prefix.
1
+ // Prefer .wui-* for new chrome; legacy bare names here are frozen until a BREAKING rename.
2
2
  // Text-scale utilities.
3
3
  //
4
4
  // Part of the wui-components layer — see _wui-components.scss for the whole
@@ -1,4 +1,4 @@
1
- // Component classes use the .wui-* prefix.
1
+ // Prefer .wui-* for new chrome; legacy bare names here are frozen until a BREAKING rename.
2
2
  // Grid utils, info tip, page header, row actions, spinner.
3
3
  //
4
4
  // Part of the wui-components layer — see _wui-components.scss for the whole