@volksverpetzer/ui-web 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/dist/Button.css CHANGED
@@ -62,3 +62,17 @@
62
62
  .vvp-ui-btn--ghost:hover:not(:disabled) {
63
63
  background: var(--vvp-surface, #e2f0f5);
64
64
  }
65
+
66
+ /*
67
+ * For donation/campaign CTAs, where the pink brand accent (not primary
68
+ * blue) is the call-to-action color — e.g. vvp_divi5_extensions's
69
+ * campaign-donate module and the crowdfunding site's donate button.
70
+ */
71
+ .vvp-ui-btn--accent {
72
+ background: var(--vvp-accent, #db2685);
73
+ color: var(--vvp-on-primary, #fff);
74
+ }
75
+
76
+ .vvp-ui-btn--accent:hover:not(:disabled) {
77
+ background: color-mix(in srgb, var(--vvp-accent, #db2685) 85%, black);
78
+ }
package/dist/Button.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { ButtonHTMLAttributes, ReactNode } from "react";
2
2
  import "./Button.css";
3
- export type ButtonVariant = "primary" | "secondary" | "ghost";
3
+ export type ButtonVariant = "primary" | "secondary" | "ghost" | "accent";
4
4
  export type ButtonSize = "sm" | "md" | "lg";
5
5
  export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
6
6
  variant?: ButtonVariant;
package/dist/styles.css CHANGED
@@ -93,6 +93,20 @@
93
93
  background: var(--vvp-surface, #e2f0f5);
94
94
  }
95
95
 
96
+ /*
97
+ * For donation/campaign CTAs, where the pink brand accent (not primary
98
+ * blue) is the call-to-action color — e.g. vvp_divi5_extensions's
99
+ * campaign-donate module and the crowdfunding site's donate button.
100
+ */
101
+ .vvp-ui-btn--accent {
102
+ background: var(--vvp-accent, #db2685);
103
+ color: var(--vvp-on-primary, #fff);
104
+ }
105
+
106
+ .vvp-ui-btn--accent:hover:not(:disabled) {
107
+ background: color-mix(in srgb, var(--vvp-accent, #db2685) 85%, black);
108
+ }
109
+
96
110
  .vvp-ui-card {
97
111
  background: var(--vvp-background, #fff);
98
112
  border-radius: var(--vvp-radius-md, 12px);
package/package.json CHANGED
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "name": "@volksverpetzer/ui-web",
3
- "version": "0.1.0",
4
- "description": "Shared brand-visible React components (Button, Badge, Card) for vvp_link_shortener and vvp_divi5_extensions. Plain, hand-scoped CSS (vvp-ui-* class prefix) consuming the --vvp-* custom properties emitted by @volksverpetzer/design-tokens — no Tailwind classes, so it drops into a Tailwind app and Divi's WordPress-embedded CSS alike.",
3
+ "version": "0.2.0",
4
+ "description": "Shared brand-visible React components (Button, Badge, Card) for vvp_link_shortener, vvp_divi5_extensions, and crowdfunding. Plain, hand-scoped CSS (vvp-ui-* class prefix) consuming the --vvp-* custom properties emitted by @volksverpetzer/design-tokens — no Tailwind classes, so it drops into a Tailwind app and Divi's WordPress-embedded CSS alike.",
5
5
  "type": "module",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/Volksverpetzer/vvp_design_system.git",
9
+ "directory": "packages/ui-web"
10
+ },
6
11
  "publishConfig": {
7
12
  "access": "public",
8
13
  "registry": "https://registry.npmjs.org"
@@ -20,13 +25,13 @@
20
25
  "peerDependencies": {
21
26
  "react": ">=19"
22
27
  },
23
- "scripts": {
24
- "build": "tsc -p tsconfig.json && node scripts/bundle-css.mjs",
25
- "check:ts": "tsc --noEmit -p tsconfig.json"
26
- },
27
28
  "devDependencies": {
28
29
  "@types/react": "^19.2.18",
29
30
  "react": "^19.2.3",
30
31
  "typescript": "^5.9.3"
32
+ },
33
+ "scripts": {
34
+ "build": "tsc -p tsconfig.json && node scripts/bundle-css.mjs",
35
+ "check:ts": "tsc --noEmit -p tsconfig.json"
31
36
  }
32
- }
37
+ }