@wpmoo/ui 1.0.0-rc.4 → 1.0.0-rc.5

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 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.4/THIRD_PARTY_NOTICES.md).
17
+ [version-pinned third-party notices](https://github.com/wpmoo-org/ui/blob/v1.0.0-rc.5/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,9 +40,10 @@ 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.4` for release. Until that
43
+ This branch prepares `@wpmoo/ui@1.0.0-rc.5` for release. Until that
44
44
  npm tag is published, use npm's current published package or the floating
45
- quick demo below.
45
+ quick demo below. Catalog CodePen exports remain pinned to the latest
46
+ published package until the RC5 npm tag exists.
46
47
 
47
48
  ## Try It in 30 Seconds
48
49
 
@@ -57,6 +58,9 @@ The quick demo intentionally follows the floating npm tag:
57
58
 
58
59
  `moo-ui.css` is a complete Bootstrap CSS build with Moo UI defaults. Use it
59
60
  instead of another Bootstrap stylesheet, not in addition to one.
61
+ It emits Moo UI's root/body theme tokens before Bootstrap's reboot body rules;
62
+ if you persist dark or system mode, set `data-bs-theme` synchronously in the
63
+ head before this stylesheet loads.
60
64
 
61
65
  ## Install
62
66
 
@@ -132,7 +136,7 @@ calm.
132
136
 
133
137
  ## Status And Support
134
138
 
135
- Moo UI is preparing the `1.0.0-rc.4` release candidate. Public exports, package boundaries, browser support, and release evidence live in [Support & Evidence](https://ui.wpmoo.org/support/).
139
+ Moo UI is preparing the `1.0.0-rc.5` release candidate. Public exports, package boundaries, browser support, and release evidence live in [Support & Evidence](https://ui.wpmoo.org/support/).
136
140
  Complete release notes are on
137
141
  [GitHub Releases](https://github.com/wpmoo-org/ui/releases).
138
142
 
@@ -155,4 +159,4 @@ Moo UI source code is MIT licensed. License details live in
155
159
  [LICENSE](LICENSE) and the [License page](https://ui.wpmoo.org/license/).
156
160
  Asset terms live in [ASSET_LICENSE.md](ASSET_LICENSE.md); dependency notices
157
161
  live in the
158
- [version-pinned third-party notices](https://github.com/wpmoo-org/ui/blob/v1.0.0-rc.4/THIRD_PARTY_NOTICES.md).
162
+ [version-pinned third-party notices](https://github.com/wpmoo-org/ui/blob/v1.0.0-rc.5/THIRD_PARTY_NOTICES.md).
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "0.1",
3
3
  "status": "preview",
4
- "coreVersion": "1.0.0-rc.4",
4
+ "coreVersion": "1.0.0-rc.5",
5
5
  "bootstrap": {
6
6
  "canonicalVersion": "5.3.3",
7
7
  "targetRange": ">=5.3.0 <5.4",
@@ -180,6 +180,114 @@
180
180
  --bs-form-invalid-border-color: #ea868f;
181
181
  }
182
182
 
183
+ :root {
184
+ --moo-overlay-backdrop-opacity: 1;
185
+ --moo-overlay-backdrop-bg: color-mix(in srgb, #0a0a0a 10%, transparent);
186
+ --moo-overlay-backdrop-filter: blur(8px);
187
+ --moo-input-group-border-radius: var(--bs-border-radius-lg);
188
+ --moo-disabled-control-opacity: 0.5;
189
+ --moo-sidebar-foreground: var(--moo-foreground);
190
+ --moo-sidebar-accent: var(--moo-muted-surface);
191
+ --moo-sidebar-border: var(--moo-border);
192
+ --moo-chart-1: #52525b;
193
+ --moo-chart-2: #71717a;
194
+ --moo-chart-3: #a1a1aa;
195
+ --moo-chart-4: #3f3f46;
196
+ --moo-chart-5: #27272a;
197
+ }
198
+
199
+ :root,
200
+ [data-bs-theme="light"] {
201
+ --moo-surface: #fff;
202
+ --moo-muted-surface: #f4f4f5;
203
+ --moo-border: #e4e4e7;
204
+ --moo-primary: #171717;
205
+ --moo-primary-foreground: #fafafa;
206
+ --moo-foreground: #18181b;
207
+ --moo-muted-foreground: #71717a;
208
+ --moo-disabled-foreground: #a1a1aa;
209
+ --moo-ring: color-mix(in srgb, #fff 60%, #171717);
210
+ --moo-destructive: #e7000b;
211
+ --moo-destructive-surface: color-mix(in srgb, #e7000b 3%, transparent);
212
+ --moo-destructive-surface-hover: color-mix(in srgb, #e7000b 6%, transparent);
213
+ --moo-destructive-foreground: #e7000b;
214
+ --moo-form-invalid-ring-color: color-mix(in srgb, #e7000b 20%, transparent);
215
+ --moo-warning: #b45309;
216
+ --moo-warning-surface: color-mix(in srgb, #b45309 10%, transparent);
217
+ --moo-warning-surface-hover: color-mix(in srgb, #b45309 20%, transparent);
218
+ --moo-warning-foreground: #b45309;
219
+ --moo-success: #047857;
220
+ --moo-success-surface: color-mix(in srgb, #047857 10%, transparent);
221
+ --moo-success-surface-hover: color-mix(in srgb, #047857 20%, transparent);
222
+ --moo-success-foreground: #047857;
223
+ --moo-info: #0369a1;
224
+ --moo-info-surface: color-mix(in srgb, #0369a1 10%, transparent);
225
+ --moo-info-surface-hover: color-mix(in srgb, #0369a1 20%, transparent);
226
+ --moo-info-foreground: #0369a1;
227
+ --moo-sidebar: #fafafa;
228
+ --bs-body-color: var(--moo-foreground);
229
+ --bs-body-color-rgb: 24, 24, 27;
230
+ --bs-heading-color: var(--moo-foreground);
231
+ --bs-secondary-color: var(--moo-muted-foreground);
232
+ --bs-body-bg: var(--moo-surface);
233
+ --bs-body-bg-rgb: 255, 255, 255;
234
+ --bs-secondary-bg: var(--moo-muted-surface);
235
+ --bs-secondary-bg-rgb: 244, 244, 245;
236
+ --bs-border-color: var(--moo-border);
237
+ --bs-tertiary-bg: #fafafa;
238
+ --bs-tertiary-bg-rgb: 250, 250, 250;
239
+ --bs-tertiary-color: #a1a1aa;
240
+ --bs-tertiary-color-rgb: 161, 161, 170;
241
+ --bs-form-invalid-color: var(--moo-destructive);
242
+ --bs-form-invalid-border-color: #e7000b;
243
+ }
244
+
245
+ [data-bs-theme="dark"] {
246
+ --moo-surface: #0a0a0a;
247
+ --moo-muted-surface: #27272a;
248
+ --moo-border: #3f3f46;
249
+ --moo-primary: #e4e4e7;
250
+ --moo-primary-foreground: #18181b;
251
+ --moo-foreground: #fafafa;
252
+ --moo-muted-foreground: #a1a1aa;
253
+ --moo-disabled-foreground: #71717a;
254
+ --moo-ring: color-mix(in srgb, #fff 40%, #171717);
255
+ --moo-destructive: #ff6467;
256
+ --moo-destructive-surface: color-mix(in srgb, #ff6467 20%, transparent);
257
+ --moo-destructive-surface-hover: color-mix(in srgb, #ff6467 30%, transparent);
258
+ --moo-destructive-foreground: #ff6467;
259
+ --moo-form-invalid-ring-color: color-mix(in srgb, #ff6467 40%, transparent);
260
+ --moo-warning: color-mix(in srgb, #fafafa 60%, #b45309);
261
+ --moo-warning-surface: color-mix(in srgb, color-mix(in srgb, #fafafa 60%, #b45309) 20%, transparent);
262
+ --moo-warning-surface-hover: color-mix(in srgb, color-mix(in srgb, #fafafa 60%, #b45309) 30%, transparent);
263
+ --moo-warning-foreground: color-mix(in srgb, #fafafa 60%, #b45309);
264
+ --moo-success: color-mix(in srgb, #fafafa 60%, #047857);
265
+ --moo-success-surface: color-mix(in srgb, color-mix(in srgb, #fafafa 60%, #047857) 20%, transparent);
266
+ --moo-success-surface-hover: color-mix(in srgb, color-mix(in srgb, #fafafa 60%, #047857) 30%, transparent);
267
+ --moo-success-foreground: color-mix(in srgb, #fafafa 60%, #047857);
268
+ --moo-info: color-mix(in srgb, #fafafa 60%, #0369a1);
269
+ --moo-info-surface: color-mix(in srgb, color-mix(in srgb, #fafafa 60%, #0369a1) 20%, transparent);
270
+ --moo-info-surface-hover: color-mix(in srgb, color-mix(in srgb, #fafafa 60%, #0369a1) 30%, transparent);
271
+ --moo-info-foreground: color-mix(in srgb, #fafafa 60%, #0369a1);
272
+ --moo-sidebar: #1c1c1f;
273
+ --moo-input-bg: color-mix(in srgb, #27272a 50%, #0a0a0a);
274
+ --bs-body-color: var(--moo-foreground);
275
+ --bs-body-color-rgb: 250, 250, 250;
276
+ --bs-heading-color: var(--moo-foreground);
277
+ --bs-secondary-color: var(--moo-muted-foreground);
278
+ --bs-body-bg: var(--moo-surface);
279
+ --bs-body-bg-rgb: 10, 10, 10;
280
+ --bs-secondary-bg: var(--moo-muted-surface);
281
+ --bs-secondary-bg-rgb: 39, 39, 42;
282
+ --bs-border-color: var(--moo-border);
283
+ --bs-tertiary-bg: #202024;
284
+ --bs-tertiary-bg-rgb: 32, 32, 36;
285
+ --bs-tertiary-color: #71717a;
286
+ --bs-tertiary-color-rgb: 113, 113, 122;
287
+ --bs-form-invalid-color: var(--moo-destructive);
288
+ --bs-form-invalid-border-color: color-mix(in srgb, #ff6467 50%, transparent);
289
+ }
290
+
183
291
  *,
184
292
  *::before,
185
293
  *::after {
@@ -8425,112 +8533,6 @@ progress {
8425
8533
  }
8426
8534
  }
8427
8535
 
8428
- :root {
8429
- --moo-overlay-backdrop-opacity: 1;
8430
- --moo-overlay-backdrop-bg: color-mix(in srgb, var(--bs-black) 10%, transparent);
8431
- --moo-overlay-backdrop-filter: blur(8px);
8432
- --moo-input-group-border-radius: var(--bs-border-radius-lg);
8433
- --moo-disabled-control-opacity: 0.5;
8434
- --moo-sidebar-foreground: var(--moo-foreground);
8435
- --moo-sidebar-accent: var(--moo-muted-surface);
8436
- --moo-sidebar-border: var(--moo-border);
8437
- --moo-chart-1: #52525b;
8438
- --moo-chart-2: #71717a;
8439
- --moo-chart-3: #a1a1aa;
8440
- --moo-chart-4: #3f3f46;
8441
- --moo-chart-5: #27272a;
8442
- }
8443
-
8444
- :root,
8445
- [data-bs-theme="light"] {
8446
- --moo-surface: #fff;
8447
- --moo-muted-surface: #f4f4f5;
8448
- --moo-border: #e4e4e7;
8449
- --moo-primary: #171717;
8450
- --moo-primary-foreground: #fafafa;
8451
- --moo-foreground: #18181b;
8452
- --moo-muted-foreground: #71717a;
8453
- --moo-disabled-foreground: #a1a1aa;
8454
- --moo-ring: color-mix(in srgb, #fff 60%, #171717);
8455
- --moo-destructive: #e7000b;
8456
- --moo-destructive-surface: color-mix(in srgb, #e7000b 3%, transparent);
8457
- --moo-destructive-surface-hover: color-mix(in srgb, #e7000b 6%, transparent);
8458
- --moo-destructive-foreground: #e7000b;
8459
- --moo-form-invalid-ring-color: color-mix(in srgb, #e7000b 20%, transparent);
8460
- --moo-warning: #b45309;
8461
- --moo-warning-surface: color-mix(in srgb, #b45309 10%, transparent);
8462
- --moo-warning-surface-hover: color-mix(in srgb, #b45309 20%, transparent);
8463
- --moo-warning-foreground: #b45309;
8464
- --moo-success: #047857;
8465
- --moo-success-surface: color-mix(in srgb, #047857 10%, transparent);
8466
- --moo-success-surface-hover: color-mix(in srgb, #047857 20%, transparent);
8467
- --moo-success-foreground: #047857;
8468
- --moo-info: #0369a1;
8469
- --moo-info-surface: color-mix(in srgb, #0369a1 10%, transparent);
8470
- --moo-info-surface-hover: color-mix(in srgb, #0369a1 20%, transparent);
8471
- --moo-info-foreground: #0369a1;
8472
- --moo-sidebar: #fafafa;
8473
- --bs-body-color: var(--moo-foreground);
8474
- --bs-body-color-rgb: 24, 24, 27;
8475
- --bs-heading-color: var(--moo-foreground);
8476
- --bs-secondary-color: var(--moo-muted-foreground);
8477
- --bs-body-bg: var(--moo-surface);
8478
- --bs-body-bg-rgb: 255, 255, 255;
8479
- --bs-secondary-bg: var(--moo-muted-surface);
8480
- --bs-secondary-bg-rgb: 244, 244, 245;
8481
- --bs-tertiary-bg: #fafafa;
8482
- --bs-tertiary-bg-rgb: 250, 250, 250;
8483
- --bs-tertiary-color: #a1a1aa;
8484
- --bs-tertiary-color-rgb: 161, 161, 170;
8485
- --bs-form-invalid-color: var(--moo-destructive);
8486
- --bs-form-invalid-border-color: #e7000b;
8487
- }
8488
-
8489
- [data-bs-theme="dark"] {
8490
- --moo-surface: #0a0a0a;
8491
- --moo-muted-surface: #27272a;
8492
- --moo-border: #3f3f46;
8493
- --moo-primary: #e4e4e7;
8494
- --moo-primary-foreground: #18181b;
8495
- --moo-foreground: #fafafa;
8496
- --moo-muted-foreground: #a1a1aa;
8497
- --moo-disabled-foreground: #71717a;
8498
- --moo-ring: color-mix(in srgb, #fff 40%, #171717);
8499
- --moo-destructive: #ff6467;
8500
- --moo-destructive-surface: color-mix(in srgb, #ff6467 20%, transparent);
8501
- --moo-destructive-surface-hover: color-mix(in srgb, #ff6467 30%, transparent);
8502
- --moo-destructive-foreground: #ff6467;
8503
- --moo-form-invalid-ring-color: color-mix(in srgb, #ff6467 40%, transparent);
8504
- --moo-warning: color-mix(in srgb, #fafafa 60%, #b45309);
8505
- --moo-warning-surface: color-mix(in srgb, color-mix(in srgb, #fafafa 60%, #b45309) 20%, transparent);
8506
- --moo-warning-surface-hover: color-mix(in srgb, color-mix(in srgb, #fafafa 60%, #b45309) 30%, transparent);
8507
- --moo-warning-foreground: color-mix(in srgb, #fafafa 60%, #b45309);
8508
- --moo-success: color-mix(in srgb, #fafafa 60%, #047857);
8509
- --moo-success-surface: color-mix(in srgb, color-mix(in srgb, #fafafa 60%, #047857) 20%, transparent);
8510
- --moo-success-surface-hover: color-mix(in srgb, color-mix(in srgb, #fafafa 60%, #047857) 30%, transparent);
8511
- --moo-success-foreground: color-mix(in srgb, #fafafa 60%, #047857);
8512
- --moo-info: color-mix(in srgb, #fafafa 60%, #0369a1);
8513
- --moo-info-surface: color-mix(in srgb, color-mix(in srgb, #fafafa 60%, #0369a1) 20%, transparent);
8514
- --moo-info-surface-hover: color-mix(in srgb, color-mix(in srgb, #fafafa 60%, #0369a1) 30%, transparent);
8515
- --moo-info-foreground: color-mix(in srgb, #fafafa 60%, #0369a1);
8516
- --moo-sidebar: #1c1c1f;
8517
- --moo-input-bg: color-mix(in srgb, #27272a 50%, #0a0a0a);
8518
- --bs-body-color: var(--moo-foreground);
8519
- --bs-body-color-rgb: 250, 250, 250;
8520
- --bs-heading-color: var(--moo-foreground);
8521
- --bs-secondary-color: var(--moo-muted-foreground);
8522
- --bs-body-bg: var(--moo-surface);
8523
- --bs-body-bg-rgb: 10, 10, 10;
8524
- --bs-secondary-bg: var(--moo-muted-surface);
8525
- --bs-secondary-bg-rgb: 39, 39, 42;
8526
- --bs-tertiary-bg: #202024;
8527
- --bs-tertiary-bg-rgb: 32, 32, 36;
8528
- --bs-tertiary-color: #71717a;
8529
- --bs-tertiary-color-rgb: 113, 113, 122;
8530
- --bs-form-invalid-color: var(--moo-destructive);
8531
- --bs-form-invalid-border-color: color-mix(in srgb, #ff6467 50%, transparent);
8532
- }
8533
-
8534
8536
  @property --moo-scroll-fade-t {
8535
8537
  syntax: "<length-percentage>";
8536
8538
  inherits: false;
@@ -12824,7 +12826,7 @@ textarea.form-control:disabled {
12824
12826
  border-radius: var(--moo-input-group-border-radius);
12825
12827
  background-color: var(--moo-muted-surface);
12826
12828
  opacity: 0;
12827
- transition: opacity opacity 0.15s linear;
12829
+ transition: opacity 0.15s linear;
12828
12830
  }
12829
12831
 
12830
12832
  .input-group > .btn-ghost:hover::before,
@@ -13176,6 +13178,27 @@ label.btn {
13176
13178
  unicode-bidi: plaintext;
13177
13179
  }
13178
13180
 
13181
+ .btn-group > .btn:hover:not(:focus-visible):not(.active),
13182
+ .btn-group > .btn:focus:not(:focus-visible):not(.active),
13183
+ .btn-group > .btn:active:not(:focus-visible):not(.active),
13184
+ .btn-group-vertical > .btn:hover:not(:focus-visible):not(.active),
13185
+ .btn-group-vertical > .btn:focus:not(:focus-visible):not(.active),
13186
+ .btn-group-vertical > .btn:active:not(:focus-visible):not(.active) {
13187
+ z-index: auto;
13188
+ }
13189
+
13190
+ .btn-group > .btn-check:checked + .btn:hover,
13191
+ .btn-group > .btn-check:focus + .btn:hover,
13192
+ .btn-group-vertical > .btn-check:checked + .btn:hover,
13193
+ .btn-group-vertical > .btn-check:focus + .btn:hover {
13194
+ z-index: 1;
13195
+ }
13196
+
13197
+ .btn-group > .btn:not(:disabled):not(.disabled):not([aria-disabled="true"]):active,
13198
+ .btn-group-vertical > .btn:not(:disabled):not(.disabled):not([aria-disabled="true"]):active {
13199
+ transform: none;
13200
+ }
13201
+
13179
13202
  .btn-group > .btn-icon,
13180
13203
  .btn-group > .btn-icon-xs,
13181
13204
  .btn-group > .btn-icon-sm,
@@ -13222,7 +13245,7 @@ label.btn {
13222
13245
  .card {
13223
13246
  --bs-card-bg: color-mix(in srgb, var(--bs-secondary-bg) 5%, var(--bs-body-bg));
13224
13247
  --bs-card-color: var(--moo-foreground);
13225
- --bs-card-border-color: color-mix(in srgb, var(--bs-body-color) 10%, transparent);
13248
+ --bs-card-border-color: var(--moo-border);
13226
13249
  --bs-card-border-radius: var(--bs-border-radius-xl);
13227
13250
  --bs-card-inner-border-radius: calc(var(--bs-card-border-radius) - var(--bs-card-border-width));
13228
13251
  --bs-card-box-shadow: var(--bs-box-shadow-sm);
@@ -15017,6 +15040,10 @@ hr {
15017
15040
  font-weight: 500;
15018
15041
  }
15019
15042
 
15043
+ .card .accordion {
15044
+ --bs-accordion-bg: transparent;
15045
+ }
15046
+
15020
15047
  .tabs-list {
15021
15048
  display: inline-flex;
15022
15049
  gap: 0.125rem;
@@ -17030,7 +17057,7 @@ ul.context-menu-menu:focus-visible {
17030
17057
  .modal-backdrop,
17031
17058
  .offcanvas-backdrop {
17032
17059
  --bs-backdrop-opacity: var(--moo-overlay-backdrop-opacity, 1);
17033
- background-color: var(--moo-overlay-backdrop-bg, color-mix(in srgb, var(--bs-black) 10%, transparent));
17060
+ background-color: var(--moo-overlay-backdrop-bg, color-mix(in srgb, #0a0a0a 10%, transparent));
17034
17061
  -webkit-backdrop-filter: var(--moo-overlay-backdrop-filter, blur(8px));
17035
17062
  backdrop-filter: var(--moo-overlay-backdrop-filter, blur(8px));
17036
17063
  }