@wpmoo/ui 1.0.0-rc.9 → 1.1.0-dev.1
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 +38 -3
- package/certification.json +3 -1
- package/dist/assets/css/moo-ui.css +436 -25
- package/dist/assets/css/moo-ui.min.css +10 -31
- package/dist/assets/css/moo.css +428 -24
- 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 +38 -21
- package/dist/js/datepicker.js +5 -4
- package/dist/js/datepicker.min.js +4 -3
- package/dist/js/moo-ui.js +350 -15402
- package/dist/js/moo-ui.min.js +3 -23
- package/dist/js/sheet.js +46 -0
- package/dist/js/sidebar.js +3 -2
- package/dist/js/slider.js +12 -47
- package/dist/js/state.js +15 -41
- package/dist/js/table-of-contents.js +195 -0
- package/dist/release-manifest.json +4 -4
- package/package.json +5 -1
- package/scss/_components.scss +3 -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 +1 -40
- 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/_toc.scss +48 -0
- 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 +15 -0
- package/scss/layouts/_app.scss +0 -6
- package/scss/layouts/_page_grid.scss +0 -3
- package/scss/layouts/app/sidebar/_base.scss +0 -37
- package/scss/layouts/app/sidebar/_default.scss +0 -6
- package/scss/layouts/app/sidebar/_floating.scss +0 -11
- package/scss/layouts/app/sidebar/_inset.scss +0 -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 +0 -37
- package/scss/settings/_palette.scss +0 -42
- package/scss/themes/_root.scss +3 -0
- package/scss/themes/_standalone.scss +0 -2
- package/scss/themes/_theme.scss +3 -2
- package/scss/utilities/_background_color.scss +18 -0
- package/scss/utilities/_border.scss +4 -0
- package/scss/utilities/_scroll_smooth.scss +9 -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
|
|
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
|
@@ -59,6 +59,9 @@ head before this stylesheet loads.
|
|
|
59
59
|
|
|
60
60
|
## Install
|
|
61
61
|
|
|
62
|
+
Local development candidates use separate tarballs. Public install and license
|
|
63
|
+
links refer to the published stable release.
|
|
64
|
+
|
|
62
65
|
```bash
|
|
63
66
|
npm install @wpmoo/ui bootstrap
|
|
64
67
|
```
|
|
@@ -121,7 +124,7 @@ when it needs independent browser persistence:
|
|
|
121
124
|
On a first visit, a static host without a known server preference can only
|
|
122
125
|
correct a browser-only preference after the external asset is fetched, so that
|
|
123
126
|
correction may be visible. The server value remains the deterministic fallback;
|
|
124
|
-
an external fetch cannot guarantee zero flash in this profile. RC9 exposes
|
|
127
|
+
an external fetch cannot guarantee zero flash in this profile. Since RC9, Moo UI exposes
|
|
125
128
|
this asset as `@wpmoo/ui/state.js`.
|
|
126
129
|
|
|
127
130
|
### Optional runtime
|
|
@@ -137,9 +140,34 @@ if (combobox) {
|
|
|
137
140
|
|
|
138
141
|
The runtime bundle is optional and side-effect-free. Import the aggregate
|
|
139
142
|
`@wpmoo/ui/moo-ui.js` entrypoint, or import only the component module you use.
|
|
143
|
+
The aggregate loads Chart.js only when `loadChart()` is called:
|
|
144
|
+
|
|
145
|
+
```js
|
|
146
|
+
const chartRoot = document.querySelector(".chart");
|
|
147
|
+
if (chartRoot) {
|
|
148
|
+
const Chart = await MooUI.loadChart();
|
|
149
|
+
Chart.getOrCreateInstance(chartRoot);
|
|
150
|
+
}
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
RC10 replaces the aggregate's synchronous `Chart` export with the asynchronous
|
|
154
|
+
`loadChart()` loader, also available as a named export. Both aggregate variants
|
|
155
|
+
resolve the adjacent `chart.js` asset, so keep that file beside the aggregate
|
|
156
|
+
when self-hosting. Repeated loader calls and direct `chart.js` imports share
|
|
157
|
+
the same constructor. The standalone `chart.js` and `chart.min.js` APIs remain
|
|
158
|
+
synchronous and unchanged.
|
|
159
|
+
|
|
140
160
|
See the [Installation guide](https://ui.wpmoo.org/installation/) for npm, CDN,
|
|
141
161
|
Sass, Bootstrap JavaScript, and ESM recipes.
|
|
142
162
|
|
|
163
|
+
For server-marked Sheets, call the explicit initializer after Bootstrap
|
|
164
|
+
Offcanvas is available on the document's window:
|
|
165
|
+
|
|
166
|
+
```js
|
|
167
|
+
import { initSheets } from "@wpmoo/ui/sheet.js";
|
|
168
|
+
initSheets(document);
|
|
169
|
+
```
|
|
170
|
+
|
|
143
171
|
## Why Teams Try It
|
|
144
172
|
|
|
145
173
|
- Keep server-rendered HTML, Bootstrap classes, and familiar plugin behavior.
|
|
@@ -166,7 +194,12 @@ calm.
|
|
|
166
194
|
|
|
167
195
|
## Status And Support
|
|
168
196
|
|
|
169
|
-
The current
|
|
197
|
+
The current development snapshot is `1.1.0-dev.1`. It adds a shared Table of
|
|
198
|
+
Contents component and is not published to npm; use the locally packed tarball
|
|
199
|
+
when evaluating this snapshot.
|
|
200
|
+
|
|
201
|
+
The stable public-contract release is `1.0.0`. Component certification remains
|
|
202
|
+
`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
203
|
Complete release notes are on
|
|
171
204
|
[GitHub Releases](https://github.com/wpmoo-org/ui/releases).
|
|
172
205
|
|
|
@@ -187,6 +220,8 @@ paths live in the [Installation guide](https://ui.wpmoo.org/installation/).
|
|
|
187
220
|
|
|
188
221
|
Moo UI source code is MIT licensed. License details live in
|
|
189
222
|
[LICENSE](LICENSE) and the [License page](https://ui.wpmoo.org/license/).
|
|
223
|
+
The published `LICENSE` also retains the full MIT notices for bundled
|
|
224
|
+
Chart.js and `@kurkle/color`.
|
|
190
225
|
Asset terms live in [ASSET_LICENSE.md](ASSET_LICENSE.md); dependency notices
|
|
191
226
|
live in the
|
|
192
|
-
[version-pinned third-party notices](https://github.com/wpmoo-org/ui/blob/v1.0.0
|
|
227
|
+
[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.
|
|
4
|
+
"coreVersion": "1.1.0-dev.1",
|
|
5
5
|
"bootstrap": {
|
|
6
6
|
"canonicalVersion": "5.3.3",
|
|
7
7
|
"targetRange": ">=5.3.0 <5.4",
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
"./context-menu.js",
|
|
29
29
|
"./datatable.js",
|
|
30
30
|
"./slider.js",
|
|
31
|
+
"./table-of-contents.js",
|
|
32
|
+
"./sheet.js",
|
|
31
33
|
"./chart.js",
|
|
32
34
|
"./chart.min.js",
|
|
33
35
|
"./datepicker.js",
|