@mccaskie-labs/workbench-roster 0.2.0 → 0.3.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/CHANGELOG.md +6 -0
- package/dist/styles.js +12 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @mccaskie-labs/workbench-roster
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Every tool follows the project's look (docs/theming.md step 2, Robert, 24 November 2026). Each tool's colour, font and corner variables now default to the shared theme tokens with a Clean, light fallback (`--wb-booking-accent: var(--wb-accent, #2563eb)`), and tool colours with no token of their own (a recessed panel, a status mark, a tinted pill) are worked out from the tokens with `color-mix()`. So a page drawn with these tools takes the look in the project's workbench.css: light (Clean) by default, or whatever brand.json and project.css say. Breaking for a project page that relied on the old dark defaults: give brand.json the look you want, or set the tokens in project.css. Variable and class names are unchanged, so existing project.css overrides still win. workbench-ui: `styleProblems` refuses a tool's text, muted, surface, line, background, accent, focus, danger, success, warning, font or radius variable whose default doesn't read its token (email, PDF and image follow in step 3); the `wb-ui` class no longer forces dark, and Workbench's own pages (`STYLE`, `UI_CSS`) keep their dark values; `shell` with `stylesheets` (a project page) no longer says dark in its meta tag.
|
|
8
|
+
|
|
3
9
|
## 0.2.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/styles.js
CHANGED
|
@@ -22,18 +22,18 @@ export const ROSTER_STYLES = {
|
|
|
22
22
|
title: "Staff roster",
|
|
23
23
|
prefix: "wb-roster-",
|
|
24
24
|
variables: [
|
|
25
|
-
{ name: "--wb-roster-text", value: "#
|
|
26
|
-
{ name: "--wb-roster-muted", value: "#
|
|
27
|
-
{ name: "--wb-roster-surface", value: "#
|
|
28
|
-
{ name: "--wb-roster-sunk", value: "#
|
|
29
|
-
{ name: "--wb-roster-line", value: "#
|
|
30
|
-
{ name: "--wb-roster-accent", value: "#
|
|
31
|
-
{ name: "--wb-roster-on-accent", value: "#ffffff", about: "Text on a main button" },
|
|
32
|
-
{ name: "--wb-roster-good", value: "#
|
|
33
|
-
{ name: "--wb-roster-warn", value: "#
|
|
34
|
-
{ name: "--wb-roster-danger", value: "#
|
|
35
|
-
{ name: "--wb-roster-focus", value: "rgba(
|
|
36
|
-
{ name: "--wb-roster-radius", value: "8px", about: "Corner rounding" },
|
|
25
|
+
{ name: "--wb-roster-text", value: "var(--wb-text, #1f2937)", about: "Text: names, times, labels" },
|
|
26
|
+
{ name: "--wb-roster-muted", value: "var(--wb-muted, #5b6472)", about: "Quieter text: details, hints, an empty day" },
|
|
27
|
+
{ name: "--wb-roster-surface", value: "var(--wb-surface, #f7f8f8)", about: "Background of each day, shift, person and form" },
|
|
28
|
+
{ name: "--wb-roster-sunk", value: "color-mix(in srgb, var(--wb-background, #ffffff), var(--wb-text, #1f2937) 3%)", about: "Background of the page's panels and of inputs" },
|
|
29
|
+
{ name: "--wb-roster-line", value: "var(--wb-line, #d7d8db)", about: "Borders" },
|
|
30
|
+
{ name: "--wb-roster-accent", value: "var(--wb-accent, #2563eb)", about: "Main buttons and links: Add shift, Publish" },
|
|
31
|
+
{ name: "--wb-roster-on-accent", value: "var(--wb-on-accent, #ffffff)", about: "Text on a main button" },
|
|
32
|
+
{ name: "--wb-roster-good", value: "var(--wb-success, #15803d)", about: "Published, every time covered, a done message" },
|
|
33
|
+
{ name: "--wb-roster-warn", value: "var(--wb-warning, #a15c07)", about: "A draft week, a gap, unsent changes, a person on leave" },
|
|
34
|
+
{ name: "--wb-roster-danger", value: "var(--wb-danger, #b42318)", about: "Take off the roster, and the button that does it after \"Are you sure?\"" },
|
|
35
|
+
{ name: "--wb-roster-focus", value: "var(--wb-focus, rgba(37,99,235,0.4))", about: "The ring round a control with focus" },
|
|
36
|
+
{ name: "--wb-roster-radius", value: "var(--wb-radius, 8px)", about: "Corner rounding" },
|
|
37
37
|
],
|
|
38
38
|
classes: [
|
|
39
39
|
{ name: "wb-roster-week", element: "section", about: "The owner's week page", css: panel },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mccaskie-labs/workbench-roster",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "A staff roster for Workbench apps: staff, shifts and leave in the app's own database. The owner builds a week and publishes it; each person is emailed their shifts with a calendar file and has their own page and calendar feed, and later changes are emailed to the people they touch. A gaps check finds times with too few people on, hoursFor() keeps bookings inside rostered shifts, and the hours export goes to the owner's own payroll. No pay rates and no AI.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|