@mccaskie-labs/workbench-fundraising 0.1.0 → 0.2.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @mccaskie-labs/workbench-fundraising
2
2
 
3
+ ## 0.2.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.1.0
4
10
 
5
11
  - First version (`docs/capabilities/31-fundraising.md`, block B12; the law in `docs/raffles.md`): `createFundraising` over the app's own database with `fundraisingMigration`. Campaigns with a goal, dates, a story and a picture; gifts of an amount the giver chooses, once or monthly, paid through workbench-payments (`startGift` gives the `source` for `payChosen` or `subscribe({ gift: true })`, `handlePayment` records each confirmed payment once); cash the owner adds; a total that counts confirmed payments only, less refunds; names on the supporters' list only when the giver ticks the box. Raffles: `checkRaffle` refuses what the place's law plainly doesn't allow (a missing permit for the size of the raffle, cash prizes in Victoria, prizes worth too little against the tickets, sales too long, banned prizes, under-18 buyers where they're barred) and warns about the rest, for every Australian state and territory and the Philippines (where a PCSO authority and a DSWD permit are always needed); tickets held, paid and numbered under one lock; a random draw recorded with its seed so `verifyDraw` gives the same winners again; results by ticket number, never name; redraws of unclaimed prizes after the place's holding period; cancelling answers the payments to refund. The thank-you says a gift is tax-deductible only for a deductible gift recipient with its ABN. Pages in `./ui` (`wb-fund-*`, `FUND_STYLES`, words in English, Tagalog and Taglish, money to 2 decimal places), and `npx workbench-fundraising init|generate|migration`.
package/dist/cli.js CHANGED
File without changes
package/dist/styles.js CHANGED
@@ -17,14 +17,14 @@ export const FUND_STYLES = {
17
17
  title: "Fundraising",
18
18
  prefix: "wb-fund-",
19
19
  variables: [
20
- { name: "--wb-fund-text", value: "#e8e8ec", about: "Text" },
21
- { name: "--wb-fund-muted", value: "#9a9aa6", about: "Quieter text: counts, dates, notes" },
22
- { name: "--wb-fund-surface", value: "#1b1b1f", about: "Background of the cards and forms" },
23
- { name: "--wb-fund-line", value: "#33333b", about: "Borders and the progress bar's track" },
24
- { name: "--wb-fund-accent", value: "#3fb37f", about: "The progress bar, the chosen amount and the button" },
25
- { name: "--wb-fund-on-accent", value: "#0b0b0d", about: "Text on the button" },
26
- { name: "--wb-fund-bad", value: "#d9822b", about: "The edge of a refusal and of the law check's problems" },
27
- { name: "--wb-fund-radius", value: "8px", about: "Corner rounding" },
20
+ { name: "--wb-fund-text", value: "var(--wb-text, #1f2937)", about: "Text" },
21
+ { name: "--wb-fund-muted", value: "var(--wb-muted, #5b6472)", about: "Quieter text: counts, dates, notes" },
22
+ { name: "--wb-fund-surface", value: "var(--wb-surface, #f7f8f8)", about: "Background of the cards and forms" },
23
+ { name: "--wb-fund-line", value: "var(--wb-line, #d7d8db)", about: "Borders and the progress bar's track" },
24
+ { name: "--wb-fund-accent", value: "var(--wb-accent, #2563eb)", about: "The progress bar, the chosen amount and the button" },
25
+ { name: "--wb-fund-on-accent", value: "var(--wb-on-accent, #ffffff)", about: "Text on the button" },
26
+ { name: "--wb-fund-bad", value: "var(--wb-danger, #b42318)", about: "The edge of a refusal and of the law check's problems" },
27
+ { name: "--wb-fund-radius", value: "var(--wb-radius, 8px)", about: "Corner rounding" },
28
28
  ],
29
29
  classes: [
30
30
  { name: "wb-fund-campaign", element: "section", about: "The campaign page", css: `max-width:40rem;padding:1.25rem;${box}` },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mccaskie-labs/workbench-fundraising",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Fundraising for Workbench apps: campaigns with a goal, gifts of an amount the giver chooses (once or monthly, through the payments tool), cash the owner adds, and raffles checked against Australian state and territory and Philippine raffle law, with tickets sold through payments and a recorded draw anyone can check.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",