@meith/plugin-dues 0.24.0 → 0.25.1
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/package.json +3 -3
- package/src/definition.tsx +1 -1
- package/src/ui/admin.tsx +3 -5
- package/src/ui/pages.tsx +3 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meith/plugin-dues",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.1",
|
|
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.
|
|
24
|
-
"@meith/theme-kit": "^0.
|
|
23
|
+
"@meith/plugin-kit": "^0.25.1",
|
|
24
|
+
"@meith/theme-kit": "^0.25.1"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "^19.2.0"
|
package/src/definition.tsx
CHANGED
|
@@ -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.
|
|
60
|
+
version: '0.25.1',
|
|
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
|
|
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 =
|
|
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
|
|
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 =
|
|
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'
|