@busiverse/ui 0.2.7 → 0.2.9
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 +251 -16
- package/dist/assets-public.d.ts +2 -0
- package/dist/assets-public.d.ts.map +1 -0
- package/dist/assets-public.js +6 -0
- package/dist/billing.d.ts +3 -0
- package/dist/billing.d.ts.map +1 -0
- package/dist/billing.js +46 -0
- package/dist/brand.d.ts +2 -0
- package/dist/brand.d.ts.map +1 -0
- package/dist/{components/brand/index.js → brand.js} +4 -3
- package/dist/{chunk-SZVGFEJG.js → chunk-FMJ6TFBB.js} +14 -20
- package/dist/{chunk-GRZVAWCA.js → chunk-IVTESKF4.js} +1 -24
- package/dist/{chunk-ARMZUHU7.js → chunk-MPBOCUY4.js} +98 -76
- package/dist/chunk-NUGBTLBK.js +72 -0
- package/dist/chunk-UN2VM6WK.js +50 -0
- package/dist/components/brand/BusiverseBrandHead.d.ts.map +1 -1
- package/dist/components/marketing/MarketingFeatureCard.d.ts +4 -4
- package/dist/components/marketing/MarketingFeatureCard.d.ts.map +1 -1
- package/dist/components/marketing/MarketingPricingCard.d.ts +5 -7
- package/dist/components/marketing/MarketingPricingCard.d.ts.map +1 -1
- package/dist/components/marketing/MarketingSectionHeader.d.ts.map +1 -1
- package/dist/i18n-public.d.ts +2 -0
- package/dist/i18n-public.d.ts.map +1 -0
- package/dist/{i18n/index.js → i18n-public.js} +2 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +32 -29
- package/dist/marketing.d.ts +2 -0
- package/dist/marketing.d.ts.map +1 -0
- package/dist/{components/marketing/index.js → marketing.js} +4 -4
- package/dist/social.d.ts +2 -0
- package/dist/social.d.ts.map +1 -0
- package/dist/{components/social/index.js → social.js} +2 -2
- package/dist/styles.css +51 -81
- package/dist/tailwind-public.d.ts +2 -0
- package/dist/tailwind-public.d.ts.map +1 -0
- package/dist/{tailwind/index.js → tailwind-public.js} +1 -1
- package/package.json +29 -29
- package/dist/assets/assets.js +0 -49
- package/dist/chunk-3XY5ZSTX.js +0 -94
- package/dist/chunk-NZ65VTKR.js +0 -0
- package/dist/components/billing/index.js +0 -13
package/README.md
CHANGED
|
@@ -1,39 +1,274 @@
|
|
|
1
1
|
# @busiverse/ui
|
|
2
2
|
|
|
3
|
-
Shared BUSIVERSE frontend
|
|
3
|
+
Shared BUSIVERSE frontend package for separately deployed React/Vercel applications.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
It contains:
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- Official BUSIVERSE brand asset wrappers.
|
|
8
|
+
- Design tokens and Tailwind 4-compatible theme helpers.
|
|
9
|
+
- Global CSS, fonts, reduced-motion, focus states, glass cards, buttons, tables, forms, and app shell.
|
|
10
|
+
- Gateway-only API client foundation.
|
|
11
|
+
- OIDC/auth UI helpers for signin and user-frontend-only signup routing.
|
|
12
|
+
- Internationalization, country/region/currency, timezone, and locale utilities.
|
|
13
|
+
- CRUD and time-series-ready table components.
|
|
14
|
+
- Dashboard, billing, feedback, and marketing primitives.
|
|
8
15
|
|
|
9
|
-
|
|
16
|
+
## Requirements
|
|
10
17
|
|
|
11
|
-
|
|
18
|
+
- Node.js `>=22.12.0`
|
|
19
|
+
- npm `>=10.9.0`
|
|
20
|
+
- React `19.2.7` compatible frontend applications
|
|
12
21
|
|
|
13
|
-
|
|
22
|
+
This package is ESM-only. It does not publish CommonJS output.
|
|
14
23
|
|
|
15
|
-
|
|
24
|
+
## Tailwind 4 note
|
|
16
25
|
|
|
17
|
-
|
|
18
|
-
- `@busiverse/ui/billing`: internal/admin pricing explorer for operation-level tariffs, costs, margins, and chargeback visibility.
|
|
26
|
+
`@busiverse/ui` does not require PostCSS.
|
|
19
27
|
|
|
20
|
-
|
|
28
|
+
The package ships its own compiled/global CSS as `@busiverse/ui/styles.css` and exports a plain Tailwind-compatible preset object from `@busiverse/ui/tailwind`. Consuming applications may use Tailwind through Vite, PostCSS, or another supported integration. The UI package itself does not force `@tailwindcss/postcss` or `@tailwindcss/vite` on consumers.
|
|
21
29
|
|
|
22
|
-
##
|
|
30
|
+
## Install in separately deployed Vercel frontends
|
|
31
|
+
|
|
32
|
+
Recommended production option: publish to a private npm registry package.
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm install @busiverse/ui
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Local package test option:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
cd packages/busiverse-ui
|
|
42
|
+
npm install
|
|
43
|
+
npm run build
|
|
44
|
+
npm pack
|
|
45
|
+
# then in each frontend
|
|
46
|
+
npm install ../packages/busiverse-ui/busiverse-ui-0.1.0.tgz
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Add CSS once per frontend
|
|
50
|
+
|
|
51
|
+
In `src/main.tsx` or `src/App.tsx`:
|
|
23
52
|
|
|
24
53
|
```tsx
|
|
25
54
|
import "@busiverse/ui/styles.css";
|
|
26
|
-
import { BusiverseBrandHead, BusiverseLogo } from "@busiverse/ui/brand";
|
|
27
|
-
import { BusiverseI18nProvider } from "@busiverse/ui/i18n";
|
|
28
|
-
import { MarketingPricingCard } from "@busiverse/ui/marketing";
|
|
29
|
-
import { BusiverseGithubIcon } from "@busiverse/ui/social";
|
|
30
55
|
```
|
|
31
56
|
|
|
32
|
-
##
|
|
57
|
+
## Configure env per Vercel frontend
|
|
58
|
+
|
|
59
|
+
```env
|
|
60
|
+
VITE_GATEWAY_API_URL=https://api.busiversehq.com
|
|
61
|
+
VITE_SIGNUP_URL=https://user.busiversehq.com/signup
|
|
62
|
+
VITE_SERVICE_KEY=communication
|
|
63
|
+
VITE_DEFAULT_LOCALE=en-NG
|
|
64
|
+
VITE_DEFAULT_COUNTRY=NG
|
|
65
|
+
VITE_DEFAULT_REGION=NG-LA
|
|
66
|
+
VITE_DEFAULT_CURRENCY=NGN
|
|
67
|
+
VITE_DEFAULT_TIME_ZONE=Africa/Lagos
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Use AppShell
|
|
71
|
+
|
|
72
|
+
```tsx
|
|
73
|
+
import { AppShell, PageHeader, Button } from "@busiverse/ui";
|
|
74
|
+
|
|
75
|
+
export function Dashboard() {
|
|
76
|
+
return (
|
|
77
|
+
<AppShell service="communication">
|
|
78
|
+
<PageHeader
|
|
79
|
+
title="Communication"
|
|
80
|
+
description="Send, automate, and track messages across Busiverse."
|
|
81
|
+
action={<Button>New message</Button>}
|
|
82
|
+
/>
|
|
83
|
+
</AppShell>
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Use Gateway client
|
|
89
|
+
|
|
90
|
+
```tsx
|
|
91
|
+
import { createGatewayClient } from "@busiverse/ui";
|
|
92
|
+
|
|
93
|
+
const gateway = createGatewayClient({
|
|
94
|
+
baseUrl: import.meta.env.VITE_GATEWAY_API_URL,
|
|
95
|
+
getAccessToken: async () => token,
|
|
96
|
+
region: {
|
|
97
|
+
locale: "en-NG",
|
|
98
|
+
countryCode: "NG",
|
|
99
|
+
regionCode: "NG-LA",
|
|
100
|
+
currencyCode: "NGN",
|
|
101
|
+
timeZone: "Africa/Lagos"
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
await gateway.get("/communication/api/v1/messages");
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## Use the Tailwind preset only when needed
|
|
109
|
+
|
|
110
|
+
If a consuming app uses Tailwind and wants Busiverse tokens:
|
|
111
|
+
|
|
112
|
+
```ts
|
|
113
|
+
import { busiverseTailwindPreset } from "@busiverse/ui/tailwind";
|
|
114
|
+
|
|
115
|
+
export default {
|
|
116
|
+
presets: [busiverseTailwindPreset],
|
|
117
|
+
content: ["./index.html", "./src/**/*.{ts,tsx}"]
|
|
118
|
+
};
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
For Busiverse Vite frontends, Tailwind itself should be configured in the frontend app, not inside this UI package.
|
|
122
|
+
|
|
123
|
+
## Timeseries table
|
|
124
|
+
|
|
125
|
+
```tsx
|
|
126
|
+
import { TimeSeriesTable } from "@busiverse/ui";
|
|
127
|
+
|
|
128
|
+
<TimeSeriesTable
|
|
129
|
+
rows={metrics}
|
|
130
|
+
timestampKey="createdAt"
|
|
131
|
+
valueColumns={["requestCount", "p95LatencyMs", "errorRate"]}
|
|
132
|
+
/>
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## Signup rule
|
|
136
|
+
|
|
137
|
+
Only `user-frontend` should own real signup. Other frontends should use `<SignUpLink />` and route users to `https://user.busiversehq.com/signup`.
|
|
138
|
+
|
|
139
|
+
## Build and publish
|
|
33
140
|
|
|
34
141
|
```bash
|
|
35
142
|
npm install
|
|
36
143
|
npm run typecheck
|
|
37
144
|
npm run build
|
|
145
|
+
npm audit --audit-level=low
|
|
146
|
+
npm pack --dry-run
|
|
38
147
|
npm publish --access public
|
|
39
148
|
```
|
|
149
|
+
|
|
150
|
+
## Version 0.2.0 additions
|
|
151
|
+
|
|
152
|
+
This release adds the BUSIVERSE standardized service pricing system used by `busiverse-landing` and reusable by every separately deployed Vercel frontend.
|
|
153
|
+
|
|
154
|
+
### Added
|
|
155
|
+
|
|
156
|
+
- `busiverseServicePricingCatalog` with 257 Account-rated operation rows.
|
|
157
|
+
- `ServicePricingExplorer` for external pricing, internal Busiverse chargeback, estimated direct cost, margin, and standardized equivalents.
|
|
158
|
+
- `RegionSelector` and supported pricing regions.
|
|
159
|
+
- Country/region/currency/time-zone aware pricing display helpers.
|
|
160
|
+
- Time-series aware service metadata for services that surface metrics, decision history, request metering, blockchain events, model jobs, and market data.
|
|
161
|
+
|
|
162
|
+
### Vercel frontend usage
|
|
163
|
+
|
|
164
|
+
Install from public npm after publishing this version:
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
npm install @busiverse/ui@^0.2.0
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
Import shared styles once in each Vite frontend entrypoint:
|
|
171
|
+
|
|
172
|
+
```tsx
|
|
173
|
+
import "@busiverse/ui/styles.css";
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
Wrap the frontend with the i18n provider:
|
|
177
|
+
|
|
178
|
+
```tsx
|
|
179
|
+
import { BusiverseI18nProvider } from "@busiverse/ui";
|
|
180
|
+
|
|
181
|
+
<BusiverseI18nProvider
|
|
182
|
+
initialRegion={{
|
|
183
|
+
locale: import.meta.env.VITE_DEFAULT_LOCALE ?? "en-NG",
|
|
184
|
+
countryCode: import.meta.env.VITE_DEFAULT_COUNTRY ?? "NG",
|
|
185
|
+
regionCode: import.meta.env.VITE_DEFAULT_REGION ?? "NG-LA",
|
|
186
|
+
currencyCode: import.meta.env.VITE_DEFAULT_CURRENCY ?? "NGN",
|
|
187
|
+
timeZone: import.meta.env.VITE_DEFAULT_TIME_ZONE ?? "Africa/Lagos",
|
|
188
|
+
}}
|
|
189
|
+
>
|
|
190
|
+
<App />
|
|
191
|
+
</BusiverseI18nProvider>
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Use the standardized pricing explorer anywhere pricing must be shown:
|
|
195
|
+
|
|
196
|
+
```tsx
|
|
197
|
+
import { ServicePricingExplorer } from "@busiverse/ui";
|
|
198
|
+
|
|
199
|
+
<ServicePricingExplorer />
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
The current currency conversion rates are display fallbacks only. Final production charging still belongs to Account, with Location and Mint resolving region, currency, taxes, pass-through cost, and local pricing rules.
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
## v0.2.1 network-neutral security patch
|
|
206
|
+
|
|
207
|
+
`@busiverse/ui` no longer performs direct network access from inside the package. The previous `createGatewayClient` implementation used the browser `fetch` global directly, which can be flagged by npm/package scanners as “network access”. The package now requires the consuming frontend to inject a transport function.
|
|
208
|
+
|
|
209
|
+
```ts
|
|
210
|
+
import { createGatewayClient } from "@busiverse/ui";
|
|
211
|
+
|
|
212
|
+
export const gateway = createGatewayClient({
|
|
213
|
+
baseUrl: import.meta.env.VITE_GATEWAY_API_URL,
|
|
214
|
+
transport: window.fetch.bind(window),
|
|
215
|
+
getAccessToken: async () => accessToken,
|
|
216
|
+
});
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
Font loading is also app-owned. The shared CSS does not import Google Fonts or any remote stylesheet. Each separately deployed Vercel frontend should self-host the BUSIVERSE fonts or load them explicitly at the app level.
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
## v0.2.2 brand asset ownership
|
|
223
|
+
|
|
224
|
+
`@busiverse/ui` is now the owner of BUSIVERSE favicons, platform icons, social preview defaults, and logo assets. Consuming frontends should not duplicate BUSIVERSE favicon/logo assets in their own `public/` folders unless a deployment platform explicitly requires a static file before JavaScript loads.
|
|
225
|
+
|
|
226
|
+
Use `BusiverseBrandHead` once near the root of each frontend to inject the shared favicons, app manifest, Open Graph metadata, Twitter card metadata, and Microsoft tile metadata from package-owned assets.
|
|
227
|
+
|
|
228
|
+
```tsx
|
|
229
|
+
import { BusiverseBrandHead } from "@busiverse/ui";
|
|
230
|
+
|
|
231
|
+
<BusiverseBrandHead
|
|
232
|
+
title="BUSIVERSE — Turn Ideas Into Operating Businesses"
|
|
233
|
+
description="BUSIVERSE combines AI automation, blockchain-backed trust, and modular business services to help teams launch and operate ventures faster."
|
|
234
|
+
/>
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
The package remains network-neutral: it does not call `fetch`, open sockets, or import remote fonts.
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
## v0.2.4 social icon ownership
|
|
241
|
+
|
|
242
|
+
`@busiverse/ui` owns BUSIVERSE-approved social icon wrappers so separately deployed frontends do not import brand icons from `lucide-react`. Lucide is an outline UI-icon library and newer builds do not export brand icons such as `Github`, `Twitter`, or `Linkedin`. Use:
|
|
243
|
+
|
|
244
|
+
```tsx
|
|
245
|
+
import { BusiverseGithubIcon, BusiverseXIcon, BusiverseLinkedInIcon, BusiverseMailIcon } from "@busiverse/ui";
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
The package remains network-neutral. The icons are inline SVG React components and do not fetch remote assets.
|
|
249
|
+
|
|
250
|
+
## v0.2.8 export and BusiLand marketing patch
|
|
251
|
+
|
|
252
|
+
This release fixes public subpath exports required by Vite/Rolldown:
|
|
253
|
+
|
|
254
|
+
```ts
|
|
255
|
+
import { BusiverseBrandHead } from "@busiverse/ui/brand";
|
|
256
|
+
import { BusiverseI18nProvider } from "@busiverse/ui/i18n";
|
|
257
|
+
import { BusiverseGithubIcon } from "@busiverse/ui/social";
|
|
258
|
+
import { MarketingFeatureCard } from "@busiverse/ui/marketing";
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
It also corrects brand asset URL paths so packaged favicon, icon, logo, and social assets resolve at build time.
|
|
262
|
+
|
|
263
|
+
Public marketing pages should not expose internal chargeback, operation codes, direct costs, margin, Account ledger mechanics, or outbox/saga details. Those remain internal/admin concerns. BusiLand should use customer-facing plans and bundles.
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
## v0.2.9 — asset-manifest build warning fix
|
|
267
|
+
|
|
268
|
+
This release fixes Vite/Rolldown warnings caused by social asset URLs resolving against the published package root. The `busiverseAssets` manifest now points to `dist/assets/...` paths at package-consumer build time. No frontend content changes are required.
|
|
269
|
+
|
|
270
|
+
```bash
|
|
271
|
+
npm install @busiverse/ui@0.2.9 --save-exact
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
The frontend should not duplicate BUSIVERSE brand assets in `public/`; brand assets remain owned by `@busiverse/ui`.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets-public.d.ts","sourceRoot":"","sources":["../src/assets-public.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing.d.ts","sourceRoot":"","sources":["../src/billing.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC"}
|
package/dist/billing.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CurrencyAmount,
|
|
3
|
+
ServicePricingExplorer,
|
|
4
|
+
UsageQuotaBar,
|
|
5
|
+
busiverseServicePricingCatalog,
|
|
6
|
+
cadenceLabels,
|
|
7
|
+
convertUsdToRegionCurrency,
|
|
8
|
+
describeTimeEquivalents,
|
|
9
|
+
formatMargin,
|
|
10
|
+
formatPricingValue,
|
|
11
|
+
formatUsdAsRegionCurrency,
|
|
12
|
+
getPricingRowsByService,
|
|
13
|
+
getRowDirectCostUsd,
|
|
14
|
+
getRowGrossMargin,
|
|
15
|
+
getRowPriceUsd,
|
|
16
|
+
getServicePricingSummaries,
|
|
17
|
+
getServicePricingSummary,
|
|
18
|
+
labelCadence
|
|
19
|
+
} from "./chunk-MPBOCUY4.js";
|
|
20
|
+
import {
|
|
21
|
+
busiverseSupportedRegions,
|
|
22
|
+
getSupportedRegion
|
|
23
|
+
} from "./chunk-WDOMYE77.js";
|
|
24
|
+
import "./chunk-IVTESKF4.js";
|
|
25
|
+
import "./chunk-PYZVP4NI.js";
|
|
26
|
+
export {
|
|
27
|
+
CurrencyAmount,
|
|
28
|
+
ServicePricingExplorer,
|
|
29
|
+
UsageQuotaBar,
|
|
30
|
+
busiverseServicePricingCatalog,
|
|
31
|
+
busiverseSupportedRegions,
|
|
32
|
+
cadenceLabels,
|
|
33
|
+
convertUsdToRegionCurrency,
|
|
34
|
+
describeTimeEquivalents,
|
|
35
|
+
formatMargin,
|
|
36
|
+
formatPricingValue,
|
|
37
|
+
formatUsdAsRegionCurrency,
|
|
38
|
+
getPricingRowsByService,
|
|
39
|
+
getRowDirectCostUsd,
|
|
40
|
+
getRowGrossMargin,
|
|
41
|
+
getRowPriceUsd,
|
|
42
|
+
getServicePricingSummaries,
|
|
43
|
+
getServicePricingSummary,
|
|
44
|
+
getSupportedRegion,
|
|
45
|
+
labelCadence
|
|
46
|
+
};
|
package/dist/brand.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brand.d.ts","sourceRoot":"","sources":["../src/brand.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BusiverseBrandHead,
|
|
3
3
|
applyBusiverseBrandHead
|
|
4
|
-
} from "
|
|
4
|
+
} from "./chunk-FMJ6TFBB.js";
|
|
5
|
+
import "./chunk-UN2VM6WK.js";
|
|
5
6
|
import {
|
|
6
7
|
BusiverseLogo
|
|
7
|
-
} from "
|
|
8
|
-
import "
|
|
8
|
+
} from "./chunk-32FPZZH2.js";
|
|
9
|
+
import "./chunk-PYZVP4NI.js";
|
|
9
10
|
export {
|
|
10
11
|
BusiverseBrandHead,
|
|
11
12
|
BusiverseLogo,
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
busiverseAssets
|
|
3
|
+
} from "./chunk-UN2VM6WK.js";
|
|
4
|
+
|
|
1
5
|
// src/components/brand/BusiverseBrandHead.tsx
|
|
2
6
|
import * as React from "react";
|
|
3
|
-
var faviconIco = new URL("../../assets/favicon.io/favicon.ico", import.meta.url).href;
|
|
4
|
-
var favicon16 = new URL("../../assets/favicon.io/favicon-16x16.png", import.meta.url).href;
|
|
5
|
-
var favicon32 = new URL("../../assets/favicon.io/favicon-32x32.png", import.meta.url).href;
|
|
6
|
-
var favicon96 = new URL("../../assets/favicon.io/favicon-96x96.png", import.meta.url).href;
|
|
7
|
-
var appleTouchIcon = new URL("../../assets/favicon.io/apple-touch-icon.png", import.meta.url).href;
|
|
8
|
-
var androidChrome192 = new URL("../../assets/favicon.io/android-chrome-192x192.png", import.meta.url).href;
|
|
9
|
-
var androidChrome512 = new URL("../../assets/favicon.io/android-chrome-512x512.png", import.meta.url).href;
|
|
10
|
-
var androidIcon192 = new URL("../../assets/favicon.io/android-icon-192x192.png", import.meta.url).href;
|
|
11
|
-
var msTile144 = new URL("../../assets/favicon.io/ms-icon-144x144.png", import.meta.url).href;
|
|
12
|
-
var defaultSocialImage = new URL("../../assets/social/busiverse-twitter_x-header-2.7777777777777777x-darkbg.png", import.meta.url).href;
|
|
13
7
|
var DEFAULT_TITLE = "BUSIVERSE \u2014 Turn Ideas Into Operating Businesses";
|
|
14
8
|
var DEFAULT_DESCRIPTION = "BUSIVERSE combines AI automation, blockchain-backed trust, and modular business services to help teams launch and operate ventures faster.";
|
|
15
9
|
var DEFAULT_THEME_COLOR = "#020617";
|
|
@@ -43,8 +37,8 @@ function createManifestDataUrl(title, description, themeColor) {
|
|
|
43
37
|
background_color: themeColor,
|
|
44
38
|
theme_color: themeColor,
|
|
45
39
|
icons: [
|
|
46
|
-
{ src: androidChrome192, sizes: "192x192", type: "image/png" },
|
|
47
|
-
{ src: androidChrome512, sizes: "512x512", type: "image/png" }
|
|
40
|
+
{ src: busiverseAssets.favicon.androidChrome192, sizes: "192x192", type: "image/png" },
|
|
41
|
+
{ src: busiverseAssets.favicon.androidChrome512, sizes: "512x512", type: "image/png" }
|
|
48
42
|
]
|
|
49
43
|
};
|
|
50
44
|
return `data:application/manifest+json,${encodeURIComponent(JSON.stringify(manifest))}`;
|
|
@@ -54,7 +48,7 @@ function applyBusiverseBrandHead({
|
|
|
54
48
|
description = DEFAULT_DESCRIPTION,
|
|
55
49
|
siteName = "Busiverse",
|
|
56
50
|
url,
|
|
57
|
-
image =
|
|
51
|
+
image = busiverseAssets.social.xHeader,
|
|
58
52
|
twitterSite = "@busiverse1",
|
|
59
53
|
keywords = "Busiverse, AI automation, blockchain-backed trust, modular business services, distributed business infrastructure",
|
|
60
54
|
locale = "en_NG",
|
|
@@ -69,13 +63,13 @@ function applyBusiverseBrandHead({
|
|
|
69
63
|
ensureMeta('meta[name="application-name"]', { name: "application-name", content: applicationName });
|
|
70
64
|
ensureMeta('meta[name="apple-mobile-web-app-title"]', { name: "apple-mobile-web-app-title", content: appleMobileWebAppTitle });
|
|
71
65
|
ensureMeta('meta[name="msapplication-TileColor"]', { name: "msapplication-TileColor", content: themeColor });
|
|
72
|
-
ensureMeta('meta[name="msapplication-TileImage"]', { name: "msapplication-TileImage", content: msTile144 });
|
|
73
|
-
ensureLink('link[data-busiverse-ui-head="icon-ico"]', { rel: "icon", type: "image/x-icon", href:
|
|
74
|
-
ensureLink('link[data-busiverse-ui-head="icon-16"]', { rel: "icon", type: "image/png", sizes: "16x16", href:
|
|
75
|
-
ensureLink('link[data-busiverse-ui-head="icon-32"]', { rel: "icon", type: "image/png", sizes: "32x32", href:
|
|
76
|
-
ensureLink('link[data-busiverse-ui-head="icon-96"]', { rel: "icon", type: "image/png", sizes: "96x96", href:
|
|
77
|
-
ensureLink('link[data-busiverse-ui-head="icon-192"]', { rel: "icon", type: "image/png", sizes: "192x192", href: androidIcon192, "data-busiverse-ui-head": "icon-192" });
|
|
78
|
-
ensureLink('link[data-busiverse-ui-head="apple-touch-icon"]', { rel: "apple-touch-icon", sizes: "180x180", href: appleTouchIcon, "data-busiverse-ui-head": "apple-touch-icon" });
|
|
66
|
+
ensureMeta('meta[name="msapplication-TileImage"]', { name: "msapplication-TileImage", content: busiverseAssets.favicon.msTile144 });
|
|
67
|
+
ensureLink('link[data-busiverse-ui-head="icon-ico"]', { rel: "icon", type: "image/x-icon", href: busiverseAssets.favicon.ico, "data-busiverse-ui-head": "icon-ico" });
|
|
68
|
+
ensureLink('link[data-busiverse-ui-head="icon-16"]', { rel: "icon", type: "image/png", sizes: "16x16", href: busiverseAssets.favicon.png16, "data-busiverse-ui-head": "icon-16" });
|
|
69
|
+
ensureLink('link[data-busiverse-ui-head="icon-32"]', { rel: "icon", type: "image/png", sizes: "32x32", href: busiverseAssets.favicon.png32, "data-busiverse-ui-head": "icon-32" });
|
|
70
|
+
ensureLink('link[data-busiverse-ui-head="icon-96"]', { rel: "icon", type: "image/png", sizes: "96x96", href: busiverseAssets.favicon.png96, "data-busiverse-ui-head": "icon-96" });
|
|
71
|
+
ensureLink('link[data-busiverse-ui-head="icon-192"]', { rel: "icon", type: "image/png", sizes: "192x192", href: busiverseAssets.favicon.androidIcon192, "data-busiverse-ui-head": "icon-192" });
|
|
72
|
+
ensureLink('link[data-busiverse-ui-head="apple-touch-icon"]', { rel: "apple-touch-icon", sizes: "180x180", href: busiverseAssets.favicon.appleTouchIcon, "data-busiverse-ui-head": "apple-touch-icon" });
|
|
79
73
|
ensureLink('link[data-busiverse-ui-head="manifest"]', { rel: "manifest", href: createManifestDataUrl(title, description, themeColor), "data-busiverse-ui-head": "manifest" });
|
|
80
74
|
ensureMeta('meta[property="og:title"]', { property: "og:title", content: title });
|
|
81
75
|
ensureMeta('meta[property="og:description"]', { property: "og:description", content: description });
|
|
@@ -35,29 +35,6 @@ var Button = React.forwardRef(function Button2({ className, variant = "primary",
|
|
|
35
35
|
);
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
// src/components/primitives/Card.tsx
|
|
39
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
40
|
-
function Card({ className, interactive, ...props }) {
|
|
41
|
-
return /* @__PURE__ */ jsx2("div", { className: cn("busiverse-card", interactive && "busiverse-card-interactive", className), ...props });
|
|
42
|
-
}
|
|
43
|
-
function CardHeader({ className, ...props }) {
|
|
44
|
-
return /* @__PURE__ */ jsx2("div", { className: cn("busiverse-card-header", className), ...props });
|
|
45
|
-
}
|
|
46
|
-
function CardTitle({ className, ...props }) {
|
|
47
|
-
return /* @__PURE__ */ jsx2("h3", { className: cn("busiverse-card-title", className), ...props });
|
|
48
|
-
}
|
|
49
|
-
function CardDescription({ className, ...props }) {
|
|
50
|
-
return /* @__PURE__ */ jsx2("p", { className: cn("busiverse-card-description", className), ...props });
|
|
51
|
-
}
|
|
52
|
-
function CardContent({ className, ...props }) {
|
|
53
|
-
return /* @__PURE__ */ jsx2("div", { className: cn("busiverse-card-content", className), ...props });
|
|
54
|
-
}
|
|
55
|
-
|
|
56
38
|
export {
|
|
57
|
-
Button
|
|
58
|
-
Card,
|
|
59
|
-
CardHeader,
|
|
60
|
-
CardTitle,
|
|
61
|
-
CardDescription,
|
|
62
|
-
CardContent
|
|
39
|
+
Button
|
|
63
40
|
};
|