@wpmoo/ui 1.0.0-rc.8 → 1.0.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/ASSET_LICENSE.md +1 -1
- package/LICENSE +28 -0
- package/README.md +34 -6
- package/certification.json +3 -2
- package/dist/assets/css/moo-ui.css +634 -33
- package/dist/assets/css/moo-ui.min.css +10 -31
- package/dist/assets/css/moo.css +624 -30
- package/dist/assets/css/moo.min.css +10 -32
- package/dist/js/chart.js +23 -21
- package/dist/js/chart.min.js +5 -5
- package/dist/js/combobox.js +18 -65
- package/dist/js/context-menu.js +16 -68
- package/dist/js/datatable.js +39 -22
- package/dist/js/datepicker.js +4 -3
- package/dist/js/datepicker.min.js +4 -3
- package/dist/js/moo-ui.js +160 -15402
- package/dist/js/moo-ui.min.js +3 -23
- package/dist/js/sheet.js +46 -0
- package/dist/js/sidebar.js +5 -4
- package/dist/js/slider.js +12 -47
- package/dist/js/state.js +76 -0
- package/dist/release-manifest.json +6 -6
- package/package.json +5 -3
- package/scss/_components.scss +2 -2
- package/scss/_config.scss +15 -21
- package/scss/_settings.scss +0 -3
- package/scss/components/_accordion.scss +1 -12
- package/scss/components/_alert.scss +1 -12
- package/scss/components/_avatar.scss +1 -16
- package/scss/components/_badge.scss +1 -0
- package/scss/components/_breadcrumb.scss +1 -12
- package/scss/components/_button.scss +1 -29
- package/scss/components/_button_group.scss +1 -25
- package/scss/components/_card.scss +1 -29
- package/scss/components/_checkbox.scss +1 -38
- package/scss/components/_close_button.scss +1 -9
- package/scss/components/_collapsible.scss +1 -0
- package/scss/components/_combobox.scss +1 -6
- package/scss/components/_context-menu.scss +1 -11
- package/scss/components/_datatable.scss +46 -85
- package/scss/components/_datepicker.scss +1 -0
- package/scss/components/_dialog.scss +1 -14
- package/scss/components/_dropdown.scss +5 -51
- package/scss/components/_field.scss +6 -37
- package/scss/components/_input.scss +1 -5
- package/scss/components/_input_group.scss +1 -51
- package/scss/components/_kbd.scss +1 -0
- package/scss/components/_menubar.scss +1 -0
- package/scss/components/_navigation.scss +76 -6
- package/scss/components/_pagination.scss +1 -13
- package/scss/components/_popover.scss +1 -22
- package/scss/components/_progress.scss +1 -3
- package/scss/components/_radio_group.scss +105 -6
- package/scss/components/_search_trigger.scss +1 -2
- package/scss/components/_select.scss +1 -0
- package/scss/components/_separator.scss +1 -6
- package/scss/components/_sheet.scss +1 -17
- package/scss/components/_sidebar.scss +1 -2
- package/scss/components/_skeleton.scss +1 -8
- package/scss/components/_slider.scss +1 -2
- package/scss/components/_spinner.scss +1 -7
- package/scss/components/_switch.scss +1 -4
- package/scss/components/_table.scss +1 -2
- package/scss/components/_tabs.scss +1 -24
- package/scss/components/_textarea.scss +1 -0
- package/scss/components/_toast.scss +1 -4
- package/scss/components/_toggle_group.scss +1 -3
- package/scss/components/_tooltip.scss +1 -20
- package/scss/components/sidebar/_base.scss +0 -7
- package/scss/components/sidebar/_collapsed.scss +0 -6
- package/scss/components/sidebar/_identity.scss +0 -1
- package/scss/components/sidebar/_menus.scss +0 -17
- package/scss/foundations/_backdrop.scss +0 -26
- package/scss/foundations/_focus.scss +0 -56
- package/scss/foundations/_scope.scss +19 -0
- package/scss/layouts/_app.scss +5 -7
- package/scss/layouts/_page_grid.scss +27 -0
- package/scss/layouts/app/sidebar/_base.scss +0 -33
- package/scss/layouts/app/sidebar/_default.scss +2 -8
- package/scss/layouts/app/sidebar/_floating.scss +1 -9
- package/scss/layouts/app/sidebar/_inset.scss +5 -2
- package/scss/mixins/_banner.scss +9 -3
- package/scss/moo-core.scss +3 -6
- package/scss/moo-ui.scss +9 -5
- package/scss/settings/_bootstrap_overrides.scss +0 -8
- package/scss/settings/_component_variables.scss +4 -266
- package/scss/settings/_forms.scss +1 -38
- package/scss/settings/_palette.scss +0 -42
- package/scss/themes/_root.scss +4 -0
- package/scss/themes/_standalone.scss +1 -3
- package/scss/themes/_theme.scss +4 -0
- package/scss/utilities/_background_color.scss +18 -0
- package/scss/utilities/_border.scss +4 -0
- package/dist/js/theme-prepaint.js +0 -91
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
|
|
17
|
+
[version-pinned third-party notices](https://github.com/wpmoo-org/ui/blob/v1.0.0/THIRD_PARTY_NOTICES.md).
|
|
18
18
|
Those notices are repository-only and are intentionally not shipped in the npm
|
|
19
19
|
package.
|
package/LICENSE
CHANGED
|
@@ -19,3 +19,31 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
Chart.js v4.5.1
|
|
26
|
+
|
|
27
|
+
The MIT License (MIT)
|
|
28
|
+
|
|
29
|
+
Copyright (c) 2014-2024 Chart.js Contributors
|
|
30
|
+
|
|
31
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
32
|
+
|
|
33
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
34
|
+
|
|
35
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
@kurkle/color v0.3.4
|
|
40
|
+
|
|
41
|
+
The MIT License (MIT)
|
|
42
|
+
|
|
43
|
+
Copyright (c) 2018-2024 Jukka Kurkela
|
|
44
|
+
|
|
45
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
46
|
+
|
|
47
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
48
|
+
|
|
49
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -96,7 +96,7 @@ knows the request or session preference. Put it on the first application owner;
|
|
|
96
96
|
keep `lang` and the document's default `dir` on `html`:
|
|
97
97
|
|
|
98
98
|
```html
|
|
99
|
-
<!-- Server-resolved document: no
|
|
99
|
+
<!-- Server-resolved document: no state bootstrap required. -->
|
|
100
100
|
<html lang="en" dir="ltr">
|
|
101
101
|
<body>
|
|
102
102
|
<div class="moo-ui" data-bs-theme="dark" data-moo-document-owner="true">
|
|
@@ -113,7 +113,7 @@ when it needs independent browser persistence:
|
|
|
113
113
|
```html
|
|
114
114
|
<!-- Static or strict-CSP fallback: classic script is the root's first child. -->
|
|
115
115
|
<div class="moo-ui" data-bs-theme="light" data-moo-theme-key="portal:theme">
|
|
116
|
-
<script src="/vendor/@wpmoo/ui/
|
|
116
|
+
<script src="/vendor/@wpmoo/ui/state.js"></script>
|
|
117
117
|
<!-- embedded Moo UI fragment -->
|
|
118
118
|
</div>
|
|
119
119
|
```
|
|
@@ -121,8 +121,8 @@ when it needs independent browser persistence:
|
|
|
121
121
|
On a first visit, a static host without a known server preference can only
|
|
122
122
|
correct a browser-only preference after the external asset is fetched, so that
|
|
123
123
|
correction may be visible. The server value remains the deterministic fallback;
|
|
124
|
-
an external fetch cannot guarantee zero flash in this profile.
|
|
125
|
-
asset
|
|
124
|
+
an external fetch cannot guarantee zero flash in this profile. Since RC9, Moo UI exposes
|
|
125
|
+
this asset as `@wpmoo/ui/state.js`.
|
|
126
126
|
|
|
127
127
|
### Optional runtime
|
|
128
128
|
|
|
@@ -137,9 +137,34 @@ if (combobox) {
|
|
|
137
137
|
|
|
138
138
|
The runtime bundle is optional and side-effect-free. Import the aggregate
|
|
139
139
|
`@wpmoo/ui/moo-ui.js` entrypoint, or import only the component module you use.
|
|
140
|
+
The aggregate loads Chart.js only when `loadChart()` is called:
|
|
141
|
+
|
|
142
|
+
```js
|
|
143
|
+
const chartRoot = document.querySelector(".chart");
|
|
144
|
+
if (chartRoot) {
|
|
145
|
+
const Chart = await MooUI.loadChart();
|
|
146
|
+
Chart.getOrCreateInstance(chartRoot);
|
|
147
|
+
}
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
RC10 replaces the aggregate's synchronous `Chart` export with the asynchronous
|
|
151
|
+
`loadChart()` loader, also available as a named export. Both aggregate variants
|
|
152
|
+
resolve the adjacent `chart.js` asset, so keep that file beside the aggregate
|
|
153
|
+
when self-hosting. Repeated loader calls and direct `chart.js` imports share
|
|
154
|
+
the same constructor. The standalone `chart.js` and `chart.min.js` APIs remain
|
|
155
|
+
synchronous and unchanged.
|
|
156
|
+
|
|
140
157
|
See the [Installation guide](https://ui.wpmoo.org/installation/) for npm, CDN,
|
|
141
158
|
Sass, Bootstrap JavaScript, and ESM recipes.
|
|
142
159
|
|
|
160
|
+
For server-marked Sheets, call the explicit initializer after Bootstrap
|
|
161
|
+
Offcanvas is available on the document's window:
|
|
162
|
+
|
|
163
|
+
```js
|
|
164
|
+
import { initSheets } from "@wpmoo/ui/sheet.js";
|
|
165
|
+
initSheets(document);
|
|
166
|
+
```
|
|
167
|
+
|
|
143
168
|
## Why Teams Try It
|
|
144
169
|
|
|
145
170
|
- Keep server-rendered HTML, Bootstrap classes, and familiar plugin behavior.
|
|
@@ -166,7 +191,8 @@ calm.
|
|
|
166
191
|
|
|
167
192
|
## Status And Support
|
|
168
193
|
|
|
169
|
-
|
|
194
|
+
The stable public-contract release is `1.0.0`. Component certification remains
|
|
195
|
+
`preview`, with its documented manual and browser/device limits. Public exports, package boundaries, browser support, and release evidence live in [Support & Evidence](https://ui.wpmoo.org/support/).
|
|
170
196
|
Complete release notes are on
|
|
171
197
|
[GitHub Releases](https://github.com/wpmoo-org/ui/releases).
|
|
172
198
|
|
|
@@ -187,6 +213,8 @@ paths live in the [Installation guide](https://ui.wpmoo.org/installation/).
|
|
|
187
213
|
|
|
188
214
|
Moo UI source code is MIT licensed. License details live in
|
|
189
215
|
[LICENSE](LICENSE) and the [License page](https://ui.wpmoo.org/license/).
|
|
216
|
+
The published `LICENSE` also retains the full MIT notices for bundled
|
|
217
|
+
Chart.js and `@kurkle/color`.
|
|
190
218
|
Asset terms live in [ASSET_LICENSE.md](ASSET_LICENSE.md); dependency notices
|
|
191
219
|
live in the
|
|
192
|
-
[version-pinned third-party notices](https://github.com/wpmoo-org/ui/blob/v1.0.0
|
|
220
|
+
[version-pinned third-party notices](https://github.com/wpmoo-org/ui/blob/v1.0.0/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
|
|
4
|
+
"coreVersion": "1.0.0",
|
|
5
5
|
"bootstrap": {
|
|
6
6
|
"canonicalVersion": "5.3.3",
|
|
7
7
|
"targetRange": ">=5.3.0 <5.4",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"./context-menu.js",
|
|
29
29
|
"./datatable.js",
|
|
30
30
|
"./slider.js",
|
|
31
|
+
"./sheet.js",
|
|
31
32
|
"./chart.js",
|
|
32
33
|
"./chart.min.js",
|
|
33
34
|
"./datepicker.js",
|
|
@@ -41,7 +42,7 @@
|
|
|
41
42
|
"./scss/settings"
|
|
42
43
|
],
|
|
43
44
|
"browser": [
|
|
44
|
-
"./
|
|
45
|
+
"./state.js"
|
|
45
46
|
],
|
|
46
47
|
"metadata": [
|
|
47
48
|
"./certification.json",
|