@wpmoo/ui 1.0.0-rc.6 → 1.0.0-rc.8
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/ASSET_LICENSE.md +1 -1
- package/README.md +37 -6
- package/certification.json +6 -2
- package/dist/assets/css/moo-ui.css +7799 -8113
- package/dist/assets/css/moo-ui.min.css +5 -5
- package/dist/assets/css/moo.css +707 -685
- package/dist/assets/css/moo.min.css +5 -5
- package/dist/js/chart.js +57 -5
- package/dist/js/chart.min.js +3 -3
- package/dist/js/combobox.js +1 -1
- package/dist/js/context-menu.js +1 -1
- package/dist/js/datatable.js +114 -213
- package/dist/js/datepicker.js +79 -37
- package/dist/js/datepicker.min.js +2 -2
- package/dist/js/moo-ui.js +169 -52
- package/dist/js/moo-ui.min.js +3 -3
- package/dist/js/sidebar.js +122 -175
- package/dist/js/slider.js +1 -1
- package/dist/js/theme-prepaint.js +91 -0
- package/dist/release-manifest.json +24 -0
- package/package.json +12 -8
- package/scss/_components.scss +1 -4
- package/scss/components/_alert.scss +1 -2
- package/scss/components/_card.scss +5 -5
- package/scss/components/_close_button.scss +8 -3
- package/scss/components/_dialog.scss +16 -0
- package/scss/components/_dropdown.scss +12 -7
- package/scss/components/_search_trigger.scss +62 -0
- package/scss/components/_sidebar.scss +1 -2
- package/scss/components/_switch.scss +13 -5
- package/scss/components/_tabs.scss +1 -1
- package/scss/components/sidebar/_base.scss +93 -0
- package/scss/components/sidebar/_collapsed.scss +9 -90
- package/scss/foundations/_backdrop.scss +128 -0
- package/scss/foundations/_scope.scss +8 -0
- package/scss/layouts/_app.scss +77 -0
- package/scss/layouts/app/sidebar/_base.scss +117 -0
- package/scss/layouts/app/sidebar/_default.scss +26 -0
- package/scss/layouts/app/sidebar/_floating.scss +44 -0
- package/scss/layouts/app/sidebar/_inset.scss +29 -0
- package/scss/mixins/_banner.scss +3 -0
- package/scss/moo-core.scss +6 -34
- package/scss/moo-ui.scss +6 -6
- package/scss/settings/_bootstrap_overrides.scss +4 -0
- package/scss/settings/_component_variables.scss +20 -1
- package/scss/settings/_options.scss +2 -0
- package/scss/settings/_palette.scss +1 -1
- package/scss/themes/_forms.scss +15 -0
- package/scss/themes/_root.scss +16 -0
- package/scss/themes/_standalone.scss +5 -0
- package/scss/themes/{_scoped_core.scss → _theme.scss} +1 -0
- package/scss/components/sidebar/_inset.scss +0 -59
- package/scss/components/sidebar/_layout.scss +0 -176
- package/scss/foundations/_core_state_layer.scss +0 -25
- package/scss/foundations/_overlay_backdrop.scss +0 -19
- package/scss/themes/_standalone_root.scss +0 -119
- /package/scss/foundations/{_core_global_primitives.scss → _globals.scss} +0 -0
package/ASSET_LICENSE.md
CHANGED
|
@@ -14,6 +14,6 @@ product, site, template, library, training dataset, or marketing asset without
|
|
|
14
14
|
prior written permission from WPMoo.
|
|
15
15
|
|
|
16
16
|
Third-party assets remain under their own licenses. See the
|
|
17
|
-
[version-pinned third-party notices](https://github.com/wpmoo-org/ui/blob/v1.0.0-rc.
|
|
17
|
+
[version-pinned third-party notices](https://github.com/wpmoo-org/ui/blob/v1.0.0-rc.8/THIRD_PARTY_NOTICES.md).
|
|
18
18
|
Those notices are repository-only and are intentionally not shipped in the npm
|
|
19
19
|
package.
|
package/README.md
CHANGED
|
@@ -40,10 +40,6 @@ language needs to feel more current.
|
|
|
40
40
|
- **Explicit runtime.** Optional Moo UI behavior loads through ESM entrypoints
|
|
41
41
|
only when a component needs behavior Bootstrap does not provide.
|
|
42
42
|
|
|
43
|
-
This branch prepares `@wpmoo/ui@1.0.0-rc.6` for release. The published RC5
|
|
44
|
-
package remains the CDN baseline for catalog CodePen exports until the RC6 npm
|
|
45
|
-
tag exists.
|
|
46
|
-
|
|
47
43
|
## Try It in 30 Seconds
|
|
48
44
|
|
|
49
45
|
The quick demo intentionally follows the floating npm tag:
|
|
@@ -93,6 +89,41 @@ import "bootstrap/dist/js/bootstrap.bundle.min.js"; // only when plugins are use
|
|
|
93
89
|
</div>
|
|
94
90
|
```
|
|
95
91
|
|
|
92
|
+
### Theme ownership and first paint
|
|
93
|
+
|
|
94
|
+
Resolve the initial `light` or `dark` value on the server whenever the host
|
|
95
|
+
knows the request or session preference. Put it on the first application owner;
|
|
96
|
+
keep `lang` and the document's default `dir` on `html`:
|
|
97
|
+
|
|
98
|
+
```html
|
|
99
|
+
<!-- Server-resolved document: no prepaint required. -->
|
|
100
|
+
<html lang="en" dir="ltr">
|
|
101
|
+
<body>
|
|
102
|
+
<div class="moo-ui" data-bs-theme="dark" data-moo-document-owner="true">
|
|
103
|
+
<!-- Moo UI application -->
|
|
104
|
+
</div>
|
|
105
|
+
</body>
|
|
106
|
+
</html>
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
For a static or strict-CSP host without an inline bootstrap, keep the classic
|
|
110
|
+
external asset as the root's first child. An embedded owner uses explicit keys
|
|
111
|
+
when it needs independent browser persistence:
|
|
112
|
+
|
|
113
|
+
```html
|
|
114
|
+
<!-- Static or strict-CSP fallback: classic script is the root's first child. -->
|
|
115
|
+
<div class="moo-ui" data-bs-theme="light" data-moo-theme-key="portal:theme">
|
|
116
|
+
<script src="/vendor/@wpmoo/ui/theme-prepaint.js"></script>
|
|
117
|
+
<!-- embedded Moo UI fragment -->
|
|
118
|
+
</div>
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
On a first visit, a static host without a known server preference can only
|
|
122
|
+
correct a browser-only preference after the external asset is fetched, so that
|
|
123
|
+
correction may be visible. The server value remains the deterministic fallback;
|
|
124
|
+
an external fetch cannot guarantee zero flash in this profile. The published
|
|
125
|
+
asset is available as `@wpmoo/ui/theme-prepaint.js`.
|
|
126
|
+
|
|
96
127
|
### Optional runtime
|
|
97
128
|
|
|
98
129
|
```js
|
|
@@ -135,7 +166,7 @@ calm.
|
|
|
135
166
|
|
|
136
167
|
## Status And Support
|
|
137
168
|
|
|
138
|
-
Moo UI is preparing the `1.0.0-rc.
|
|
169
|
+
Moo UI is preparing the `1.0.0-rc.8` release candidate. Public exports, package boundaries, browser support, and release evidence live in [Support & Evidence](https://ui.wpmoo.org/support/).
|
|
139
170
|
Complete release notes are on
|
|
140
171
|
[GitHub Releases](https://github.com/wpmoo-org/ui/releases).
|
|
141
172
|
|
|
@@ -158,4 +189,4 @@ Moo UI source code is MIT licensed. License details live in
|
|
|
158
189
|
[LICENSE](LICENSE) and the [License page](https://ui.wpmoo.org/license/).
|
|
159
190
|
Asset terms live in [ASSET_LICENSE.md](ASSET_LICENSE.md); dependency notices
|
|
160
191
|
live in the
|
|
161
|
-
[version-pinned third-party notices](https://github.com/wpmoo-org/ui/blob/v1.0.0-rc.
|
|
192
|
+
[version-pinned third-party notices](https://github.com/wpmoo-org/ui/blob/v1.0.0-rc.8/THIRD_PARTY_NOTICES.md).
|
package/certification.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "0.1",
|
|
3
3
|
"status": "preview",
|
|
4
|
-
"coreVersion": "1.0.0-rc.
|
|
4
|
+
"coreVersion": "1.0.0-rc.8",
|
|
5
5
|
"bootstrap": {
|
|
6
6
|
"canonicalVersion": "5.3.3",
|
|
7
7
|
"targetRange": ">=5.3.0 <5.4",
|
|
@@ -40,9 +40,13 @@
|
|
|
40
40
|
"./scss/components",
|
|
41
41
|
"./scss/settings"
|
|
42
42
|
],
|
|
43
|
+
"browser": [
|
|
44
|
+
"./theme-prepaint.js"
|
|
45
|
+
],
|
|
43
46
|
"metadata": [
|
|
44
47
|
"./certification.json",
|
|
45
|
-
"./package.json"
|
|
48
|
+
"./package.json",
|
|
49
|
+
"./release-manifest.json"
|
|
46
50
|
]
|
|
47
51
|
},
|
|
48
52
|
"supportPolicy": "https://github.com/wpmoo-org/ui/blob/main/SUPPORT.md"
|