@7365admin1/layer-common 3.2.2-staging.172 → 3.2.2-staging.174

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.
@@ -387,6 +387,62 @@
387
387
  filter: brightness(1.06);
388
388
  }
389
389
 
390
+ /*
391
+ * THE `type="button"` TIE, AND WHY THIS BLOCK EXISTS.
392
+ *
393
+ * Vuetify ships `[type="button"] { color: inherit }`. That is an ATTRIBUTE
394
+ * selector at (0,1,0) - an exact tie with every `.app-btn` rule above, which is
395
+ * also (0,1,0). A tie is broken by INJECTION ORDER, so in a document where
396
+ * Vuetify's stylesheet lands after this one, the background from the rules above
397
+ * still applies and the `color` does not: the button keeps its accent fill and
398
+ * takes the page ink instead of its own.
399
+ *
400
+ * `AppButton` renders `<button :type="type">` with `type` defaulting to
401
+ * "button", so EVERY variant carries the attribute the tie needs.
402
+ *
403
+ * MEASURED, 2026-08-16. Injecting `[type="button"] { color: inherit }` last, on
404
+ * a real primary in the harness:
405
+ *
406
+ * before fill rgb(75,116,196) ink rgb(255,255,255) 4.57:1
407
+ * after fill rgb(75,116,196) ink rgb(25,27,31) 3.77:1
408
+ *
409
+ * `rgb(25,27,31)` is `--text` on the light theme - the button had stopped
410
+ * choosing its own ink at all.
411
+ *
412
+ * Naming the ELEMENT makes each of these (0,1,1), which beats an attribute
413
+ * selector WHATEVER the order. No `!important`: a screen that wants a different
414
+ * label colour must still be able to say so.
415
+ *
416
+ * This is an ADDITIONAL block rather than an edit to the rules above, and
417
+ * deliberately so: `AppButton` renders a `NuxtLink` when `to` is given, which is
418
+ * an `<a>` with no `type` attribute. Putting `button` on the original selectors
419
+ * would have taken the colour away from that path entirely. The values below are
420
+ * copied verbatim from the rules above; if one changes, change both.
421
+ */
422
+ button.app-btn {
423
+ color: var(--on-accent-strong);
424
+ }
425
+
426
+ button.app-btn--ghost {
427
+ color: var(--text2);
428
+ }
429
+
430
+ button.app-btn--icon {
431
+ color: var(--text2);
432
+ }
433
+
434
+ button.app-btn--row {
435
+ color: var(--muted);
436
+ }
437
+
438
+ button.app-btn--ok {
439
+ color: var(--on-ok);
440
+ }
441
+
442
+ button.app-btn--err {
443
+ color: var(--err);
444
+ }
445
+
390
446
  .app-btn:disabled {
391
447
  opacity: 0.5;
392
448
  cursor: default;
@@ -200,31 +200,6 @@ watch(getAnnouncementReq, (newVal) => {
200
200
  });
201
201
 
202
202
 
203
- function eventStatusFormat(status: any) {
204
- switch (status) {
205
- case 'In Progress':
206
- return {
207
- color: 'orange',
208
- text: 'In Progress'
209
- };
210
- case 'Active':
211
- return {
212
- color: 'green',
213
- text: status
214
- }
215
- case 'Scheduled':
216
- return {
217
- color: 'blue',
218
- text: status
219
- }
220
- default:
221
- return {
222
- color: 'grey',
223
- text: status
224
- }
225
- }
226
- }
227
-
228
203
  const tabOptions = [
229
204
  { name: "Active", status: "active" },
230
205
  { name: "Upcoming", status: "upcoming" },
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@7365admin1/layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "3.2.2-staging.172",
5
+ "version": "3.2.2-staging.174",
6
6
  "author": "7365admin1",
7
7
  "main": "./nuxt.config.ts",
8
8
  "//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",