@wpmoo/ui 0.8.1 → 0.9.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 +5 -4
- package/certification.json +2 -2
- package/package.json +4 -1
- package/scss/_facade-settings.scss +51 -0
- package/scss/settings/_facade_public.scss +23 -0
package/README.md
CHANGED
|
@@ -140,13 +140,14 @@ recipes, load order, and troubleshooting.
|
|
|
140
140
|
| `@wpmoo/ui/context-menu.js` | Optional Context Menu ESM lifecycle |
|
|
141
141
|
| `@wpmoo/ui/datatable.js` | Optional DataTable ESM lifecycle |
|
|
142
142
|
| `@wpmoo/ui/sidebar.js` | Optional Sidebar ESM lifecycle |
|
|
143
|
+
| `@wpmoo/ui/scss/facade-settings` | Public Sass variable allow-list (LibSass `@import`) |
|
|
143
144
|
| `@wpmoo/ui/certification.json` | Versioned support/evidence manifest |
|
|
144
145
|
| `@wpmoo/ui/package.json` | Package metadata |
|
|
145
146
|
|
|
146
147
|
The tarball also contains `README.md`, `LICENSE`, and `ASSET_LICENSE.md`. It
|
|
147
|
-
does not publish catalog templates, preview artwork, catalog JavaScript,
|
|
148
|
-
|
|
149
|
-
Jinja macros are repository build tools, not npm APIs.
|
|
148
|
+
does not publish catalog templates, preview artwork, catalog JavaScript, or
|
|
149
|
+
internal SCSS partials beyond the facade's required settings import. Internal
|
|
150
|
+
Sass partials and Jinja macros are repository build tools, not npm APIs.
|
|
150
151
|
|
|
151
152
|
## Why Bootstrap Teams Try It
|
|
152
153
|
|
|
@@ -174,7 +175,7 @@ are not part of the npm package.
|
|
|
174
175
|
|
|
175
176
|
## Status And Support
|
|
176
177
|
|
|
177
|
-
Moo UI is in the `0.x` series. Current package: `@wpmoo/ui@0.
|
|
178
|
+
Moo UI is in the `0.x` series. Current package: `@wpmoo/ui@0.9.0`. The
|
|
178
179
|
package's certification manifest currently has `preview` status; catalog
|
|
179
180
|
availability is WPMoo-maintained preview evidence, not independent or
|
|
180
181
|
accredited certification. Read [Support & Evidence](https://ui.wpmoo.org/support/)
|
package/certification.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "0.1",
|
|
3
3
|
"status": "preview",
|
|
4
|
-
"coreVersion": "0.
|
|
4
|
+
"coreVersion": "0.9.0",
|
|
5
5
|
"bootstrap": {
|
|
6
6
|
"canonicalVersion": "5.3.3",
|
|
7
7
|
"targetRange": ">=5.3.0 <5.4",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"./context-menu.js",
|
|
27
27
|
"./datatable.js"
|
|
28
28
|
],
|
|
29
|
-
"sass": []
|
|
29
|
+
"sass": ["./scss/facade-settings"]
|
|
30
30
|
},
|
|
31
31
|
"supportPolicy": "https://github.com/wpmoo-org/ui/blob/main/SUPPORT.md"
|
|
32
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wpmoo/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Bootstrap markup. shadcn feel. A frontend-framework-free component system for server-rendered apps.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "WPMoo (https://wpmoo.org)",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"./sidebar.js": "./dist/js/sidebar.js",
|
|
32
32
|
"./context-menu.js": "./dist/js/context-menu.js",
|
|
33
33
|
"./datatable.js": "./dist/js/datatable.js",
|
|
34
|
+
"./scss/facade-settings": "./scss/_facade-settings.scss",
|
|
34
35
|
"./certification.json": "./certification.json",
|
|
35
36
|
"./package.json": "./package.json"
|
|
36
37
|
},
|
|
@@ -43,6 +44,8 @@
|
|
|
43
44
|
"dist/js/sidebar.js",
|
|
44
45
|
"dist/js/context-menu.js",
|
|
45
46
|
"dist/js/datatable.js",
|
|
47
|
+
"scss/_facade-settings.scss",
|
|
48
|
+
"scss/settings/_facade_public.scss",
|
|
46
49
|
"certification.json",
|
|
47
50
|
"README.md",
|
|
48
51
|
"LICENSE",
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// Moo UI — Public Sass Facade: Settings
|
|
2
|
+
//
|
|
3
|
+
// This is the consumer-facing subset of Moo UI's Sass variables.
|
|
4
|
+
// Import this file BEFORE Bootstrap's _variables.scss so your overrides
|
|
5
|
+
// take precedence over Bootstrap's own !default values.
|
|
6
|
+
//
|
|
7
|
+
// Usage (relative-path, Bootstrap Option B pattern):
|
|
8
|
+
// @import "../node_modules/bootstrap/scss/functions";
|
|
9
|
+
// @import "../node_modules/@wpmoo/ui/scss/facade-settings";
|
|
10
|
+
// $primary: #your-brand-color;
|
|
11
|
+
// @import "../node_modules/bootstrap/scss/variables";
|
|
12
|
+
// ...
|
|
13
|
+
//
|
|
14
|
+
// Usage (include_paths-based, bundler-configured):
|
|
15
|
+
// @import "bootstrap/scss/functions";
|
|
16
|
+
// @import "@wpmoo/ui/scss/facade-settings";
|
|
17
|
+
// $primary: #your-brand-color;
|
|
18
|
+
// @import "bootstrap/scss/variables";
|
|
19
|
+
// ...
|
|
20
|
+
//
|
|
21
|
+
// Public variable allow-list (0.9.0):
|
|
22
|
+
//
|
|
23
|
+
// Brand colors — any valid Sass color value:
|
|
24
|
+
// $primary Default: #171717
|
|
25
|
+
// $secondary Default: #f4f4f5
|
|
26
|
+
// $success Default: #16803c
|
|
27
|
+
// $info Default: #0f6e8c
|
|
28
|
+
// $warning Default: #a15c00
|
|
29
|
+
// $danger Default: #dc2626
|
|
30
|
+
// $light Default: #fafafa
|
|
31
|
+
// $dark Default: #18181b
|
|
32
|
+
//
|
|
33
|
+
// Body — any valid Sass color value:
|
|
34
|
+
// $body-color Default: #18181b
|
|
35
|
+
// $body-bg Default: #fff
|
|
36
|
+
//
|
|
37
|
+
// Borders — any valid Sass color (border-color) or CSS <length> (radius):
|
|
38
|
+
// $border-color Default: #e4e4e7
|
|
39
|
+
// $border-radius Default: 0.5rem
|
|
40
|
+
// $border-radius-sm Default: 0.375rem
|
|
41
|
+
// $border-radius-lg Default: 0.625rem
|
|
42
|
+
//
|
|
43
|
+
// Typography — rem/em/unitless ratio (same constraint as Bootstrap's
|
|
44
|
+
// $font-size-base; see vendor/bootstrap/scss/_variables.scss):
|
|
45
|
+
// $font-size-base Default: 0.875rem
|
|
46
|
+
//
|
|
47
|
+
// Derived tokens ($moo-*) are computed from the above and are not part of
|
|
48
|
+
// the public facade. Component-level knobs ($moo-*-dark, $moo-sidebar,
|
|
49
|
+
// etc.) are internal and may change without notice.
|
|
50
|
+
|
|
51
|
+
@import "settings/facade_public";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Public Sass facade allow-list — the only variables a facade consumer can
|
|
2
|
+
// override. This file is the source of truth for the public Sass surface.
|
|
3
|
+
// _palette.scss imports this first, then declares its own internal additions.
|
|
4
|
+
// Do NOT add variables here without updating the freeze document
|
|
5
|
+
// (src/certification/api-freeze-0.9.0.json) and getting explicit approval.
|
|
6
|
+
|
|
7
|
+
$primary: #171717 !default;
|
|
8
|
+
$secondary: #f4f4f5 !default;
|
|
9
|
+
$success: #16803c !default;
|
|
10
|
+
$info: #0f6e8c !default;
|
|
11
|
+
$warning: #a15c00 !default;
|
|
12
|
+
$danger: #dc2626 !default;
|
|
13
|
+
$light: #fafafa !default;
|
|
14
|
+
$dark: #18181b !default;
|
|
15
|
+
|
|
16
|
+
$body-color: #18181b !default;
|
|
17
|
+
$body-bg: #fff !default;
|
|
18
|
+
$font-size-base: 0.875rem !default;
|
|
19
|
+
|
|
20
|
+
$border-color: #e4e4e7 !default;
|
|
21
|
+
$border-radius: 0.5rem !default;
|
|
22
|
+
$border-radius-sm: 0.375rem !default;
|
|
23
|
+
$border-radius-lg: 0.625rem !default;
|