@meith/plugin-dues 0.25.0 → 0.26.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/README.md CHANGED
@@ -40,7 +40,7 @@ history behind it, and a checkout a visitor can actually go through. See
40
40
  1. **Register the plugin** where plugins are registered:
41
41
 
42
42
  ```ts
43
- // apps/community/community.plugins.ts
43
+ // apps/community/meith.plugins.ts
44
44
  import { dues } from '@meith/plugin-dues'
45
45
 
46
46
  export const INSTALLED_PLUGINS = [{ key: 'dues', plugin: dues }]
@@ -55,7 +55,7 @@ history behind it, and a checkout a visitor can actually go through. See
55
55
  or code-declared seed plans for a demo or test board — calls `createDues`
56
56
  instead: `createDues({ extraRedirectHosts: ['proxy.example'] })`. This
57
57
  repository's own demo and test boards do exactly that, in
58
- `community.demo.plugins.ts`, behind `DEMO_MODE` and `DUES_TEST_BOARD`. A
58
+ `meith.demo.plugins.ts`, behind `DEMO_MODE` and `DUES_TEST_BOARD`. A
59
59
  seed plan populates the plan table on the board's first run and is
60
60
  ignored once it has rows — after that, the panel owns the plans, exactly
61
61
  as for a board that never declared any.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meith/plugin-dues",
3
- "version": "0.25.0",
3
+ "version": "0.26.0",
4
4
  "description": "Membership dues for a Meith board: Stripe-backed subscriptions as a contained plugin.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -20,8 +20,8 @@
20
20
  "access": "public"
21
21
  },
22
22
  "dependencies": {
23
- "@meith/plugin-kit": "^0.25.0",
24
- "@meith/theme-kit": "^0.25.0"
23
+ "@meith/plugin-kit": "^0.26.0",
24
+ "@meith/theme-kit": "^0.26.0"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": "^19.2.0"
@@ -57,7 +57,7 @@ export function createDues(input: DuesConfigInput = {}): PluginDefinition {
57
57
  return definePlugin({
58
58
  key: 'dues',
59
59
  name: 'Dues',
60
- version: '0.25.0',
60
+ version: '0.26.0',
61
61
  description: en['dues.definition.description'].replace(
62
62
  '{label}',
63
63
  staticConfig.label.toLowerCase(),
package/src/ui/admin.tsx CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from 'react'
2
2
 
3
- import type { PluginAdminPageContext } from '@meith/plugin-kit'
3
+ import { PLUGIN_CARD, PLUGIN_NOTE, type PluginAdminPageContext } from '@meith/plugin-kit'
4
4
 
5
5
  import { type DuesConfig, MAX_GRACE_DAYS } from '../config'
6
6
  import { formatMinor } from '../money'
@@ -19,11 +19,9 @@ import {
19
19
  } from '../store'
20
20
  import { SUBSCRIBED_EVENT_TYPES } from '../stripe/events'
21
21
 
22
- const QUIET_PANEL = 'rounded-lg border border-border bg-card p-4 text-sm text-muted-foreground'
22
+ const QUIET_PANEL = PLUGIN_NOTE
23
23
 
24
- const CARD =
25
- 'flex flex-col gap-3 rounded-lg border border-border bg-card p-4 text-card-foreground ' +
26
- 'shadow-elevation'
24
+ const CARD = PLUGIN_CARD
27
25
  const TH = 'px-2 py-1.5 text-left text-xs font-medium text-muted-foreground'
28
26
  const TD = 'px-2 py-1.5 align-top'
29
27
  const INPUT =
package/src/ui/pages.tsx CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from 'react'
2
2
 
3
- import type { PluginPageContext } from '@meith/plugin-kit'
3
+ import { PLUGIN_CARD, PLUGIN_NOTE, type PluginPageContext } from '@meith/plugin-kit'
4
4
  import type { Translator } from '@meith/theme-kit'
5
5
 
6
6
  import type { DuesConfig } from '../config'
@@ -15,11 +15,9 @@ import {
15
15
  type PlanRow,
16
16
  } from '../store'
17
17
 
18
- const QUIET_PANEL = 'rounded-lg border border-border bg-card p-4 text-sm text-muted-foreground'
18
+ const QUIET_PANEL = PLUGIN_NOTE
19
19
 
20
- const CARD =
21
- 'flex flex-col gap-3 rounded-lg border border-border bg-card p-4 text-card-foreground ' +
22
- 'shadow-elevation'
20
+ const CARD = PLUGIN_CARD
23
21
  const INPUT =
24
22
  'w-full rounded-md border border-border bg-background px-3 py-2 text-sm ' +
25
23
  'focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring'