@busiverse/ui 0.2.14 → 0.2.15

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.
@@ -0,0 +1,47 @@
1
+ export const busiverseAssets = {
2
+ logo: {
3
+ horizontal: {
4
+ white: new URL("./assets/logo/busiverse-horizontal---white.svg", import.meta.url).href,
5
+ black: new URL("./assets/logo/busiverse-horizontal---black.svg", import.meta.url).href,
6
+ color: new URL("./assets/logo/busiverse-horizontal---color.svg", import.meta.url).href,
7
+ },
8
+ full: {
9
+ white: new URL("./assets/logo/busiverse-primary-full-logo---white.svg", import.meta.url).href,
10
+ black: new URL("./assets/logo/busiverse-primary-full-logo---black.svg", import.meta.url).href,
11
+ color: new URL("./assets/logo/busiverse-primary-full-logo---color.svg", import.meta.url).href,
12
+ },
13
+ vertical: {
14
+ white: new URL("./assets/logo/busiverse-vertical---white.svg", import.meta.url).href,
15
+ black: new URL("./assets/logo/busiverse-vertical---black.svg", import.meta.url).href,
16
+ color: new URL("./assets/logo/busiverse-vertical---color.svg", import.meta.url).href,
17
+ },
18
+ icon: {
19
+ white: new URL("./assets/icon/busiverse-icon-only---white.svg", import.meta.url).href,
20
+ black: new URL("./assets/icon/busiverse-icon-only---black.svg", import.meta.url).href,
21
+ color: new URL("./assets/icon/busiverse-icon-only---color.svg", import.meta.url).href,
22
+ },
23
+ },
24
+ favicon: {
25
+ ico: new URL("./assets/favicon.io/favicon.ico", import.meta.url).href,
26
+ png16: new URL("./assets/favicon.io/favicon-16x16.png", import.meta.url).href,
27
+ png32: new URL("./assets/favicon.io/favicon-32x32.png", import.meta.url).href,
28
+ png96: new URL("./assets/favicon.io/favicon-96x96.png", import.meta.url).href,
29
+ appleTouchIcon: new URL("./assets/favicon.io/apple-touch-icon.png", import.meta.url).href,
30
+ androidChrome192: new URL("./assets/favicon.io/android-chrome-192x192.png", import.meta.url).href,
31
+ androidChrome512: new URL("./assets/favicon.io/android-chrome-512x512.png", import.meta.url).href,
32
+ androidIcon192: new URL("./assets/favicon.io/android-icon-192x192.png", import.meta.url).href,
33
+ msTile144: new URL("./assets/favicon.io/ms-icon-144x144.png", import.meta.url).href,
34
+ },
35
+ social: {
36
+ xHeader: new URL("./assets/social/busiverse-twitter_x-header-2.7777777777777777x-darkbg.png", import.meta.url).href,
37
+ xProfile: new URL("./assets/social/busiverse-twitter_x-profile-picture-2.2222222222222223x-darkbg.png", import.meta.url).href,
38
+ linkedInCover: new URL("./assets/social/busiverse-linkedin-cover-photo-2.64x-darkbg.png", import.meta.url).href,
39
+ linkedInProfile: new URL("./assets/social/busiverse-linkedin-profile-picture-2.2222222222222223x-darkbg.png", import.meta.url).href,
40
+ facebookCover: new URL("./assets/social/busiverse-facebook-cover-photo-1.7333333333333334x-darkbg.png", import.meta.url).href,
41
+ facebookProfile: new URL("./assets/social/busiverse-facebook-profile-picture-1x-darkbg.png", import.meta.url).href,
42
+ instagramPost: new URL("./assets/social/busiverse-instagram-post-6x-darkbg.png", import.meta.url).href,
43
+ instagramProfile: new URL("./assets/social/busiverse-instagram-profile-picture-1.7777777777777777x-darkbg.png", import.meta.url).href,
44
+ },
45
+ } as const;
46
+
47
+ export type BusiverseAssets = typeof busiverseAssets;
@@ -82,8 +82,47 @@ function ThemeModeSelect({ className, buttonClassName, label = "Theme", compact
82
82
  ] });
83
83
  }
84
84
 
85
+ // src/theme/brandColor.ts
86
+ var BRAND_COLOR_FALLBACKS = {
87
+ "--color-brand-blue": "#3B82F6",
88
+ "--color-brand-violet": "#8B5CF6",
89
+ "--color-brand-cyan": "#06B6D4",
90
+ "--color-action-blue": "#2563EB",
91
+ "--color-action-blue-hover": "#1D4ED8",
92
+ "--color-action-violet": "#7C3AED",
93
+ "--color-action-violet-hover": "#6D28D9",
94
+ "--color-action-cyan": "#0E7490",
95
+ "--color-action-cyan-hover": "#155E75"
96
+ };
97
+ var BRAND_CHART_SERIES = [
98
+ "--color-brand-blue",
99
+ "--color-brand-violet",
100
+ "--color-brand-cyan"
101
+ ];
102
+ function brandColor(token, element) {
103
+ const fallback = BRAND_COLOR_FALLBACKS[token];
104
+ if (typeof document === "undefined") return fallback;
105
+ try {
106
+ const target = element ?? document.documentElement;
107
+ const value = getComputedStyle(target).getPropertyValue(token).trim();
108
+ return value === "" ? fallback : value;
109
+ } catch {
110
+ return fallback;
111
+ }
112
+ }
113
+ function brandChartColors(count, element) {
114
+ if (!Number.isInteger(count) || count < 0) {
115
+ throw new RangeError(`brandChartColors expects a non-negative integer, received ${count}`);
116
+ }
117
+ return Array.from({ length: count }, (_, index) => brandColor(BRAND_CHART_SERIES[index % BRAND_CHART_SERIES.length], element));
118
+ }
119
+
85
120
  export {
86
121
  BUSIVERSE_THEME_STORAGE_KEY,
87
122
  BusiverseThemeProvider,
88
- ThemeModeSelect
123
+ ThemeModeSelect,
124
+ BRAND_COLOR_FALLBACKS,
125
+ BRAND_CHART_SERIES,
126
+ brandColor,
127
+ brandChartColors
89
128
  };
package/dist/index.js CHANGED
@@ -6,10 +6,14 @@ import {
6
6
  busiverseTypography
7
7
  } from "./chunk-SXD6EH2C.js";
8
8
  import {
9
+ BRAND_CHART_SERIES,
10
+ BRAND_COLOR_FALLBACKS,
9
11
  BUSIVERSE_THEME_STORAGE_KEY,
10
12
  BusiverseThemeProvider,
11
- ThemeModeSelect
12
- } from "./chunk-UWSNRCQW.js";
13
+ ThemeModeSelect,
14
+ brandChartColors,
15
+ brandColor
16
+ } from "./chunk-HXWXIXU3.js";
13
17
  import {
14
18
  Badge,
15
19
  Card,
@@ -350,6 +354,8 @@ function UserMenu() {
350
354
  export {
351
355
  AppShell,
352
356
  AuthSessionProvider,
357
+ BRAND_CHART_SERIES,
358
+ BRAND_COLOR_FALLBACKS,
353
359
  BUSIVERSE_THEME_STORAGE_KEY,
354
360
  Badge,
355
361
  BusiverseBrandHead,
@@ -395,6 +401,8 @@ export {
395
401
  UsageQuotaBar,
396
402
  UserMenu,
397
403
  applyBusiverseBrandHead,
404
+ brandChartColors,
405
+ brandColor,
398
406
  busiverseAssets,
399
407
  busiverseColors,
400
408
  busiverseContainers,
package/dist/styles.css CHANGED
@@ -37,15 +37,45 @@
37
37
  --card-foreground: 222 47% 11%;
38
38
  --popover: 0 0% 100%;
39
39
  --popover-foreground: 222 47% 11%;
40
- --primary: 217 91% 60%;
40
+ /* Surfaces that carry white text use the brand's ACCESSIBLE variants, not the brand accents.
41
+ *
42
+ * These were the brand accent colours -- --primary and --accent were both `217 91% 60%`, which is
43
+ * #3B82F6, and --destructive was `0 84% 60%`. Each is paired with a white foreground here, and the
44
+ * brand system restricts exactly that pairing: section 15.1 warns the accents "are not always safe
45
+ * as backgrounds for small white text", and section 17.3 lists #FFFFFF on #3B82F6 at 3.7:1 as
46
+ * "large text only". Measured, the three shipped pairs were 3.64:1, 3.64:1 and 3.78:1 against the
47
+ * 4.5:1 that section 17.1 requires for normal text -- so every default button in every frontend
48
+ * failed AA for its label.
49
+ *
50
+ * Section 15.2 exists to solve this and the hex token block above already carried the right values;
51
+ * only this shadcn bridge had missed them. --primary and --accent are now Accessible Blue #2563EB
52
+ * (5.17:1) and --destructive is red-600 #DC2626 (4.83:1) -- the brand system names no destructive
53
+ * colour, so the closest palette-consistent value that clears 17.1 is used and recorded here.
54
+ *
55
+ * --ring keeps the brand accent deliberately: it is a UI component outline, which section 17.1
56
+ * holds to 3:1, and #3B82F6 meets that at 3.68:1.
57
+ *
58
+ * The .dark block does not redefine these, so this is the value in both themes. */
59
+ --primary: 221 83% 53%;
41
60
  --primary-foreground: 0 0% 100%;
42
- --secondary: 210 33% 96%;
61
+ --secondary: 210 40% 96%; /* Slate 100 #F1F5F9, section 15.4 */
43
62
  --secondary-foreground: 222 47% 11%;
44
- --muted: 210 33% 96%;
45
- --muted-foreground: 215 14% 42%;
46
- --accent: 217 91% 60%;
63
+ --muted: 210 40% 96%;
64
+ /* Slate 600 #475569, and deliberately NOT the Slate 500 that section 15.6 names for muted text.
65
+ *
66
+ * Section 15.6 assigns Slate 500 #64748B to muted text but never states which surface it sits on,
67
+ * and section 17.2 never verifies that pair. Measured, Slate 500 on the Slate 100 muted surface is
68
+ * 4.34:1 -- under the 4.5:1 section 17.1 requires. So the brand document's own two rules disagree
69
+ * here, and the accessibility rule is the binding one: section 17.4 says to test contrast before
70
+ * release and not to use low-contrast text.
71
+ *
72
+ * Slate 600 stays inside the brand's Slate ramp and clears both surfaces it is used on: 6.92:1 on
73
+ * muted, 7.58:1 on white. Worth raising with brand governance (section 34) so 15.6 records a
74
+ * surface for muted text rather than leaving it to be inferred. */
75
+ --muted-foreground: 215 19% 35%;
76
+ --accent: 221 83% 53%;
47
77
  --accent-foreground: 0 0% 100%;
48
- --destructive: 0 84% 60%;
78
+ --destructive: 0 72% 51%;
49
79
  --destructive-foreground: 0 0% 100%;
50
80
  --border: 214 32% 91%;
51
81
  --input: 214 32% 91%;
@@ -53,10 +83,13 @@
53
83
  --base-bg: 210 40% 98%;
54
84
  --surface-bg: 0 0% 100%;
55
85
  --surface-elevated: 210 33% 96%;
56
- --text-heading: 222 47% 11%;
57
- --text-body: 215 16% 28%;
58
- --text-muted: 215 14% 42%;
59
- --text-disabled: 215 10% 60%;
86
+ /* Section 15.6, text on light backgrounds: Slate 900 body, Slate 700 secondary, Slate 500 muted;
87
+ * Slate 400 for disabled. These were approximations (`215 16% 28%`, `215 14% 42%`, `215 10% 60%`)
88
+ * that each rendered a slightly different colour from the brand's. */
89
+ --text-heading: 222 47% 11%; /* Slate 900 #0F172A */
90
+ --text-body: 215 25% 27%; /* Slate 700 #334155 */
91
+ --text-muted: 215 16% 47%; /* Slate 500 #64748B */
92
+ --text-disabled: 215 20% 65%; /* Slate 400 #94A3B8 */
60
93
 
61
94
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
62
95
  --font-body: "Inter", system-ui, sans-serif;
@@ -87,7 +120,11 @@
87
120
  --color-border-dark-medium: rgba(255,255,255,.20);
88
121
  --color-border-dark-strong: rgba(255,255,255,.32);
89
122
 
90
- --background: 222 47% 4%;
123
+ /* Slate 950 #020617, section 15.3. Was `222 47% 4%`, which renders #05080F -- eight units off in a
124
+ * channel and desaturated, so the dark theme's primary surface was a slightly different colour from
125
+ * the one the brand specifies. White on the corrected value measures 20.17:1, matching the 20.3:1
126
+ * section 17.2 records for this pair. */
127
+ --background: 229 84% 5%;
91
128
  --foreground: 0 0% 100%;
92
129
  --card: 222 47% 7%;
93
130
  --card-foreground: 0 0% 100%;
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Resolves a brand colour token to a concrete colour string, for the APIs that cannot take one.
3
+ *
4
+ * <h2>Why this exists</h2>
5
+ *
6
+ * Charting libraries, canvas drawing and anything that hands a colour to a non-DOM renderer need a
7
+ * real value — `var(--color-brand-blue)` is meaningless to Recharts, so every chart in the estate
8
+ * wrote the hex literally instead:
9
+ *
10
+ * ```tsx
11
+ * renderChart(revenueData, "#8B5CF6", ...)
12
+ * ```
13
+ *
14
+ * That renders correctly and is still wrong: 97 literals across 14 frontends duplicate a token the
15
+ * design system already publishes, so each one stops tracking the brand the moment the token moves.
16
+ * Nothing fails when they diverge — a colour is never an error — which is why they accumulated
17
+ * unnoticed. `ops/check-brand-tokens.sh` reports them; this is what they should become.
18
+ *
19
+ * <h2>Why it reads the live value rather than returning a constant</h2>
20
+ *
21
+ * Reading the computed custom property means the answer follows the active theme and any override an
22
+ * app has applied, which a hardcoded hex cannot. The documented fallback is used only where there is
23
+ * no document to read — server rendering, unit tests, a thumbnail capture — so callers always get a
24
+ * usable colour and never an empty string.
25
+ */
26
+ /**
27
+ * The brand colour tokens this module can resolve, each with the value the brand system specifies.
28
+ *
29
+ * The fallbacks are duplicated from the stylesheet deliberately: this module must work with no DOM,
30
+ * and a fallback that guesses would be worse than one that is wrong loudly.
31
+ * `busiverse-ui/tests/brand-compliance.test.mjs` holds both copies to the brand document, so they
32
+ * cannot drift apart silently.
33
+ */
34
+ export declare const BRAND_COLOR_FALLBACKS: {
35
+ readonly "--color-brand-blue": "#3B82F6";
36
+ readonly "--color-brand-violet": "#8B5CF6";
37
+ readonly "--color-brand-cyan": "#06B6D4";
38
+ readonly "--color-action-blue": "#2563EB";
39
+ readonly "--color-action-blue-hover": "#1D4ED8";
40
+ readonly "--color-action-violet": "#7C3AED";
41
+ readonly "--color-action-violet-hover": "#6D28D9";
42
+ readonly "--color-action-cyan": "#0E7490";
43
+ readonly "--color-action-cyan-hover": "#155E75";
44
+ };
45
+ export type BrandColorToken = keyof typeof BRAND_COLOR_FALLBACKS;
46
+ /**
47
+ * The default order for chart series.
48
+ *
49
+ * Blue, violet, cyan — the order section 15.1 lists them in, and the order the charts already use, so
50
+ * adopting this changes no existing chart's appearance. Ordering it here means a fourth series gets a
51
+ * decided colour instead of an invented one.
52
+ */
53
+ export declare const BRAND_CHART_SERIES: readonly BrandColorToken[];
54
+ /**
55
+ * The resolved colour for one brand token.
56
+ *
57
+ * Returns the documented value when there is no document, when the property is unset, or when
58
+ * reading it throws — some embedding contexts refuse `getComputedStyle`. A chart with a fallback
59
+ * colour is a working chart; a chart with `""` is an invisible series.
60
+ */
61
+ export declare function brandColor(token: BrandColorToken, element?: Element): string;
62
+ /**
63
+ * Resolved colours for a chart's series, in brand order, cycling when there are more series than
64
+ * brand accents.
65
+ *
66
+ * Cycling rather than generating: an invented fourth colour is off-brand by definition, and a
67
+ * repeated accent is at least a decision somebody can see and correct. If a chart genuinely needs
68
+ * more than three distinguishable series, that is a brand question — section 34 governance — not one
69
+ * a helper should answer by interpolating.
70
+ */
71
+ export declare function brandChartColors(count: number, element?: Element): string[];
72
+ //# sourceMappingURL=brandColor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brandColor.d.ts","sourceRoot":"","sources":["../../src/theme/brandColor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;CAUxB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,qBAAqB,CAAC;AAEjE;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,EAAE,SAAS,eAAe,EAIxD,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAW5E;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAM3E"}
@@ -1,3 +1,4 @@
1
1
  export * from "./BusiverseThemeProvider";
2
2
  export { ThemeModeSelect } from "./ThemeModeSelect";
3
+ export { BRAND_CHART_SERIES, BRAND_COLOR_FALLBACKS, brandChartColors, brandColor, type BrandColorToken, } from "./brandColor";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,UAAU,EACV,KAAK,eAAe,GACrB,MAAM,cAAc,CAAC"}
@@ -1,11 +1,19 @@
1
1
  import {
2
+ BRAND_CHART_SERIES,
3
+ BRAND_COLOR_FALLBACKS,
2
4
  BUSIVERSE_THEME_STORAGE_KEY,
3
5
  BusiverseThemeProvider,
4
- ThemeModeSelect
5
- } from "./chunk-UWSNRCQW.js";
6
+ ThemeModeSelect,
7
+ brandChartColors,
8
+ brandColor
9
+ } from "./chunk-HXWXIXU3.js";
6
10
  import "./chunk-PYZVP4NI.js";
7
11
  export {
12
+ BRAND_CHART_SERIES,
13
+ BRAND_COLOR_FALLBACKS,
8
14
  BUSIVERSE_THEME_STORAGE_KEY,
9
15
  BusiverseThemeProvider,
10
- ThemeModeSelect
16
+ ThemeModeSelect,
17
+ brandChartColors,
18
+ brandColor
11
19
  };
package/package.json CHANGED
@@ -1,126 +1,127 @@
1
- {
2
- "name": "@busiverse/ui",
3
- "version": "0.2.14",
4
- "author": "Joel Julius Okoromi <okmarq@gmail.com> (https://busiversehq.com)",
5
- "description": "BUSIVERSE shared React UI, design tokens, pricing, i18n, auth helpers, and product shell. Network-neutral core; Gateway transport is app-injected.",
6
- "type": "module",
7
- "sideEffects": [
8
- "./dist/styles.css"
9
- ],
10
- "files": [
11
- "dist",
12
- "README.md"
13
- ],
14
- "main": "./dist/index.js",
15
- "types": "./dist/index.d.ts",
16
- "exports": {
17
- ".": {
18
- "types": "./dist/index.d.ts",
19
- "import": "./dist/index.js",
20
- "default": "./dist/index.js"
21
- },
22
- "./styles.css": "./dist/styles.css",
23
- "./tailwind": {
24
- "types": "./dist/tailwind-public.d.ts",
25
- "import": "./dist/tailwind-public.js",
26
- "default": "./dist/tailwind-public.js"
27
- },
28
- "./assets/*": "./dist/assets/*",
29
- "./package.json": "./package.json",
30
- "./brand": {
31
- "types": "./dist/brand.d.ts",
32
- "import": "./dist/brand.js",
33
- "default": "./dist/brand.js"
34
- },
35
- "./i18n": {
36
- "types": "./dist/i18n-public.d.ts",
37
- "import": "./dist/i18n-public.js",
38
- "default": "./dist/i18n-public.js"
39
- },
40
- "./billing": {
41
- "types": "./dist/billing.d.ts",
42
- "import": "./dist/billing.js",
43
- "default": "./dist/billing.js"
44
- },
45
- "./social": {
46
- "types": "./dist/social.d.ts",
47
- "import": "./dist/social.js",
48
- "default": "./dist/social.js"
49
- },
50
- "./marketing": {
51
- "types": "./dist/marketing.d.ts",
52
- "import": "./dist/marketing.js",
53
- "default": "./dist/marketing.js"
54
- },
55
- "./assets": {
56
- "types": "./dist/assets-public.d.ts",
57
- "import": "./dist/assets-public.js",
58
- "default": "./dist/assets-public.js"
59
- },
60
- "./theme": {
61
- "types": "./dist/theme-public.d.ts",
62
- "import": "./dist/theme-public.js",
63
- "default": "./dist/theme-public.js"
64
- },
65
- "./sandbox": {
66
- "types": "./dist/sandbox.d.ts",
67
- "import": "./dist/sandbox.js",
68
- "default": "./dist/sandbox.js"
69
- }
70
- },
71
- "scripts": {
72
- "clean": "node scripts/clean.mjs",
73
- "build": "npm run clean && tsup src/index.ts src/tailwind-public.ts src/brand.ts src/i18n-public.ts src/billing.ts src/social.ts src/marketing.ts src/assets-public.ts src/theme-public.ts src/sandbox.ts --format esm --target es2022 && tsc -p tsconfig.build.json && node scripts/copy-static.mjs",
74
- "typecheck": "tsc --noEmit",
75
- "pack:local": "npm pack",
76
- "prepublishOnly": "npm run typecheck && npm run build && npm pack --dry-run"
77
- },
78
- "peerDependencies": {
79
- "react": "^19.2.7",
80
- "react-dom": "^19.2.7",
81
- "tailwindcss": "^4.3.1",
82
- "next-themes": "^0.4.6"
83
- },
84
- "devDependencies": {
85
- "@types/react": "19.2.17",
86
- "@types/react-dom": "19.2.3",
87
- "react": "19.2.7",
88
- "react-dom": "19.2.7",
89
- "tailwindcss": "4.3.1",
90
- "tsup": "8.5.1",
91
- "typescript": "6.0.3",
92
- "next-themes": "0.4.6"
93
- },
94
- "publishConfig": {
95
- "registry": "https://registry.npmjs.org/",
96
- "access": "public"
97
- },
98
- "repository": {
99
- "type": "git",
100
- "url": "git+https://okmarq@github.com/Busiverse/ui-package.git"
101
- },
102
- "keywords": [
103
- "Busiverse",
104
- "Ecosystem",
105
- "Business",
106
- "Technology",
107
- "Intelligence"
108
- ],
109
- "license": "ISC",
110
- "bugs": {
111
- "url": "https://github.com/Busiverse/ui-package/issues"
112
- },
113
- "homepage": "https://github.com/Busiverse/ui-package#readme",
114
- "peerDependenciesMeta": {
115
- "tailwindcss": {
116
- "optional": true
117
- }
118
- },
119
- "engines": {
120
- "node": ">=22.12.0",
121
- "npm": ">=10.9.0"
122
- },
123
- "overrides": {
124
- "esbuild": "0.28.1"
125
- }
126
- }
1
+ {
2
+ "name": "@busiverse/ui",
3
+ "version": "0.2.15",
4
+ "author": "Joel Julius Okoromi <okmarq@gmail.com> (https://busiversehq.com)",
5
+ "description": "BUSIVERSE shared React UI, design tokens, pricing, i18n, auth helpers, and product shell. Network-neutral core; Gateway transport is app-injected.",
6
+ "type": "module",
7
+ "sideEffects": [
8
+ "./dist/styles.css"
9
+ ],
10
+ "files": [
11
+ "dist",
12
+ "README.md"
13
+ ],
14
+ "main": "./dist/index.js",
15
+ "types": "./dist/index.d.ts",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "import": "./dist/index.js",
20
+ "default": "./dist/index.js"
21
+ },
22
+ "./styles.css": "./dist/styles.css",
23
+ "./tailwind": {
24
+ "types": "./dist/tailwind-public.d.ts",
25
+ "import": "./dist/tailwind-public.js",
26
+ "default": "./dist/tailwind-public.js"
27
+ },
28
+ "./assets/*": "./dist/assets/*",
29
+ "./package.json": "./package.json",
30
+ "./brand": {
31
+ "types": "./dist/brand.d.ts",
32
+ "import": "./dist/brand.js",
33
+ "default": "./dist/brand.js"
34
+ },
35
+ "./i18n": {
36
+ "types": "./dist/i18n-public.d.ts",
37
+ "import": "./dist/i18n-public.js",
38
+ "default": "./dist/i18n-public.js"
39
+ },
40
+ "./billing": {
41
+ "types": "./dist/billing.d.ts",
42
+ "import": "./dist/billing.js",
43
+ "default": "./dist/billing.js"
44
+ },
45
+ "./social": {
46
+ "types": "./dist/social.d.ts",
47
+ "import": "./dist/social.js",
48
+ "default": "./dist/social.js"
49
+ },
50
+ "./marketing": {
51
+ "types": "./dist/marketing.d.ts",
52
+ "import": "./dist/marketing.js",
53
+ "default": "./dist/marketing.js"
54
+ },
55
+ "./assets": {
56
+ "types": "./dist/assets-public.d.ts",
57
+ "import": "./dist/assets-public.js",
58
+ "default": "./dist/assets-public.js"
59
+ },
60
+ "./theme": {
61
+ "types": "./dist/theme-public.d.ts",
62
+ "import": "./dist/theme-public.js",
63
+ "default": "./dist/theme-public.js"
64
+ },
65
+ "./sandbox": {
66
+ "types": "./dist/sandbox.d.ts",
67
+ "import": "./dist/sandbox.js",
68
+ "default": "./dist/sandbox.js"
69
+ }
70
+ },
71
+ "scripts": {
72
+ "clean": "node scripts/clean.mjs",
73
+ "build": "npm run clean && tsup src/index.ts src/tailwind-public.ts src/brand.ts src/i18n-public.ts src/billing.ts src/social.ts src/marketing.ts src/assets-public.ts src/theme-public.ts src/sandbox.ts --format esm --target es2022 && tsc -p tsconfig.build.json && node scripts/copy-static.mjs",
74
+ "typecheck": "tsc --noEmit",
75
+ "test": "node --test tests/*.test.mjs",
76
+ "pack:local": "npm pack",
77
+ "prepublishOnly": "npm run typecheck && npm run build && npm pack --dry-run"
78
+ },
79
+ "peerDependencies": {
80
+ "react": "^19.2.7",
81
+ "react-dom": "^19.2.7",
82
+ "tailwindcss": "^4.3.1",
83
+ "next-themes": "^0.4.6"
84
+ },
85
+ "devDependencies": {
86
+ "@types/react": "19.2.17",
87
+ "@types/react-dom": "19.2.3",
88
+ "react": "19.2.7",
89
+ "react-dom": "19.2.7",
90
+ "tailwindcss": "4.3.1",
91
+ "tsup": "8.5.1",
92
+ "typescript": "6.0.3",
93
+ "next-themes": "0.4.6"
94
+ },
95
+ "publishConfig": {
96
+ "registry": "https://registry.npmjs.org/",
97
+ "access": "public"
98
+ },
99
+ "repository": {
100
+ "type": "git",
101
+ "url": "git+https://okmarq@github.com/Busiverse/ui-package.git"
102
+ },
103
+ "keywords": [
104
+ "Busiverse",
105
+ "Ecosystem",
106
+ "Business",
107
+ "Technology",
108
+ "Intelligence"
109
+ ],
110
+ "license": "ISC",
111
+ "bugs": {
112
+ "url": "https://github.com/Busiverse/ui-package/issues"
113
+ },
114
+ "homepage": "https://github.com/Busiverse/ui-package#readme",
115
+ "peerDependenciesMeta": {
116
+ "tailwindcss": {
117
+ "optional": true
118
+ }
119
+ },
120
+ "engines": {
121
+ "node": ">=22.12.0",
122
+ "npm": ">=10.9.0"
123
+ },
124
+ "overrides": {
125
+ "esbuild": "0.28.1"
126
+ }
127
+ }