@busiverse/ui 0.2.14 → 0.2.16
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/assets/assets.ts +47 -0
- package/dist/assets/brand-fonts.css +193 -0
- package/dist/assets/fonts/inter-400-latin-ext.woff2 +0 -0
- package/dist/assets/fonts/inter-400-latin.woff2 +0 -0
- package/dist/assets/fonts/inter-500-latin-ext.woff2 +0 -0
- package/dist/assets/fonts/inter-500-latin.woff2 +0 -0
- package/dist/assets/fonts/inter-600-latin-ext.woff2 +0 -0
- package/dist/assets/fonts/inter-600-latin.woff2 +0 -0
- package/dist/assets/fonts/inter-700-latin-ext.woff2 +0 -0
- package/dist/assets/fonts/inter-700-latin.woff2 +0 -0
- package/dist/assets/fonts/jetbrains-mono-400-latin-ext.woff2 +0 -0
- package/dist/assets/fonts/jetbrains-mono-400-latin.woff2 +0 -0
- package/dist/assets/fonts/jetbrains-mono-500-latin-ext.woff2 +0 -0
- package/dist/assets/fonts/jetbrains-mono-500-latin.woff2 +0 -0
- package/dist/assets/fonts/jetbrains-mono-600-latin-ext.woff2 +0 -0
- package/dist/assets/fonts/jetbrains-mono-600-latin.woff2 +0 -0
- package/dist/assets/fonts/space-grotesk-500-latin-ext.woff2 +0 -0
- package/dist/assets/fonts/space-grotesk-500-latin.woff2 +0 -0
- package/dist/assets/fonts/space-grotesk-600-latin-ext.woff2 +0 -0
- package/dist/assets/fonts/space-grotesk-600-latin.woff2 +0 -0
- package/dist/assets/fonts/space-grotesk-700-latin-ext.woff2 +0 -0
- package/dist/assets/fonts/space-grotesk-700-latin.woff2 +0 -0
- package/dist/{chunk-UWSNRCQW.js → chunk-HXWXIXU3.js} +40 -1
- package/dist/index.js +10 -2
- package/dist/styles.css +54 -26
- package/dist/theme/brandColor.d.ts +71 -0
- package/dist/theme/brandColor.d.ts.map +1 -0
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme-public.js +11 -3
- package/package.json +127 -126
|
@@ -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;
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
/* Busiverse brand fonts, self-hosted.
|
|
2
|
+
*
|
|
3
|
+
* Space Grotesk, Inter and JetBrains Mono are the three families
|
|
4
|
+
* BUSIVERSE_Brand_Identity_and_Design_System.md section 18 specifies. This file is why they
|
|
5
|
+
* actually render: the design system's stylesheet named them and declared loading 'app-owned',
|
|
6
|
+
* and no application owned it -- the monorepo held no font file and no @font-face rule, so every
|
|
7
|
+
* interface fell back to a system face and nothing failed loudly enough to notice.
|
|
8
|
+
*
|
|
9
|
+
* All three are SIL Open Font License 1.1; redistribution is permitted. Latin and latin-ext
|
|
10
|
+
* subsets only: the product is en-NG, and the other subsets are payload for glyphs nothing draws.
|
|
11
|
+
*
|
|
12
|
+
* font-display: swap so text is readable during the fetch rather than invisible.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
@font-face {
|
|
16
|
+
font-family: 'Inter';
|
|
17
|
+
font-style: normal;
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
font-display: swap;
|
|
20
|
+
src: url("./fonts/inter-400-latin-ext.woff2") format("woff2");
|
|
21
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@font-face {
|
|
25
|
+
font-family: 'Inter';
|
|
26
|
+
font-style: normal;
|
|
27
|
+
font-weight: 400;
|
|
28
|
+
font-display: swap;
|
|
29
|
+
src: url("./fonts/inter-400-latin.woff2") format("woff2");
|
|
30
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@font-face {
|
|
34
|
+
font-family: 'Inter';
|
|
35
|
+
font-style: normal;
|
|
36
|
+
font-weight: 500;
|
|
37
|
+
font-display: swap;
|
|
38
|
+
src: url("./fonts/inter-500-latin-ext.woff2") format("woff2");
|
|
39
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@font-face {
|
|
43
|
+
font-family: 'Inter';
|
|
44
|
+
font-style: normal;
|
|
45
|
+
font-weight: 500;
|
|
46
|
+
font-display: swap;
|
|
47
|
+
src: url("./fonts/inter-500-latin.woff2") format("woff2");
|
|
48
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@font-face {
|
|
52
|
+
font-family: 'Inter';
|
|
53
|
+
font-style: normal;
|
|
54
|
+
font-weight: 600;
|
|
55
|
+
font-display: swap;
|
|
56
|
+
src: url("./fonts/inter-600-latin-ext.woff2") format("woff2");
|
|
57
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@font-face {
|
|
61
|
+
font-family: 'Inter';
|
|
62
|
+
font-style: normal;
|
|
63
|
+
font-weight: 600;
|
|
64
|
+
font-display: swap;
|
|
65
|
+
src: url("./fonts/inter-600-latin.woff2") format("woff2");
|
|
66
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@font-face {
|
|
70
|
+
font-family: 'Inter';
|
|
71
|
+
font-style: normal;
|
|
72
|
+
font-weight: 700;
|
|
73
|
+
font-display: swap;
|
|
74
|
+
src: url("./fonts/inter-700-latin-ext.woff2") format("woff2");
|
|
75
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@font-face {
|
|
79
|
+
font-family: 'Inter';
|
|
80
|
+
font-style: normal;
|
|
81
|
+
font-weight: 700;
|
|
82
|
+
font-display: swap;
|
|
83
|
+
src: url("./fonts/inter-700-latin.woff2") format("woff2");
|
|
84
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@font-face {
|
|
88
|
+
font-family: 'JetBrains Mono';
|
|
89
|
+
font-style: normal;
|
|
90
|
+
font-weight: 400;
|
|
91
|
+
font-display: swap;
|
|
92
|
+
src: url("./fonts/jetbrains-mono-400-latin-ext.woff2") format("woff2");
|
|
93
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@font-face {
|
|
97
|
+
font-family: 'JetBrains Mono';
|
|
98
|
+
font-style: normal;
|
|
99
|
+
font-weight: 400;
|
|
100
|
+
font-display: swap;
|
|
101
|
+
src: url("./fonts/jetbrains-mono-400-latin.woff2") format("woff2");
|
|
102
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@font-face {
|
|
106
|
+
font-family: 'JetBrains Mono';
|
|
107
|
+
font-style: normal;
|
|
108
|
+
font-weight: 500;
|
|
109
|
+
font-display: swap;
|
|
110
|
+
src: url("./fonts/jetbrains-mono-500-latin-ext.woff2") format("woff2");
|
|
111
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@font-face {
|
|
115
|
+
font-family: 'JetBrains Mono';
|
|
116
|
+
font-style: normal;
|
|
117
|
+
font-weight: 500;
|
|
118
|
+
font-display: swap;
|
|
119
|
+
src: url("./fonts/jetbrains-mono-500-latin.woff2") format("woff2");
|
|
120
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@font-face {
|
|
124
|
+
font-family: 'JetBrains Mono';
|
|
125
|
+
font-style: normal;
|
|
126
|
+
font-weight: 600;
|
|
127
|
+
font-display: swap;
|
|
128
|
+
src: url("./fonts/jetbrains-mono-600-latin-ext.woff2") format("woff2");
|
|
129
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@font-face {
|
|
133
|
+
font-family: 'JetBrains Mono';
|
|
134
|
+
font-style: normal;
|
|
135
|
+
font-weight: 600;
|
|
136
|
+
font-display: swap;
|
|
137
|
+
src: url("./fonts/jetbrains-mono-600-latin.woff2") format("woff2");
|
|
138
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@font-face {
|
|
142
|
+
font-family: 'Space Grotesk';
|
|
143
|
+
font-style: normal;
|
|
144
|
+
font-weight: 500;
|
|
145
|
+
font-display: swap;
|
|
146
|
+
src: url("./fonts/space-grotesk-500-latin-ext.woff2") format("woff2");
|
|
147
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@font-face {
|
|
151
|
+
font-family: 'Space Grotesk';
|
|
152
|
+
font-style: normal;
|
|
153
|
+
font-weight: 500;
|
|
154
|
+
font-display: swap;
|
|
155
|
+
src: url("./fonts/space-grotesk-500-latin.woff2") format("woff2");
|
|
156
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@font-face {
|
|
160
|
+
font-family: 'Space Grotesk';
|
|
161
|
+
font-style: normal;
|
|
162
|
+
font-weight: 600;
|
|
163
|
+
font-display: swap;
|
|
164
|
+
src: url("./fonts/space-grotesk-600-latin-ext.woff2") format("woff2");
|
|
165
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
@font-face {
|
|
169
|
+
font-family: 'Space Grotesk';
|
|
170
|
+
font-style: normal;
|
|
171
|
+
font-weight: 600;
|
|
172
|
+
font-display: swap;
|
|
173
|
+
src: url("./fonts/space-grotesk-600-latin.woff2") format("woff2");
|
|
174
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@font-face {
|
|
178
|
+
font-family: 'Space Grotesk';
|
|
179
|
+
font-style: normal;
|
|
180
|
+
font-weight: 700;
|
|
181
|
+
font-display: swap;
|
|
182
|
+
src: url("./fonts/space-grotesk-700-latin-ext.woff2") format("woff2");
|
|
183
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
@font-face {
|
|
187
|
+
font-family: 'Space Grotesk';
|
|
188
|
+
font-style: normal;
|
|
189
|
+
font-weight: 700;
|
|
190
|
+
font-display: swap;
|
|
191
|
+
src: url("./fonts/space-grotesk-700-latin.woff2") format("woff2");
|
|
192
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
193
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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
|
-
|
|
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,30 @@
|
|
|
37
37
|
--card-foreground: 222 47% 11%;
|
|
38
38
|
--popover: 0 0% 100%;
|
|
39
39
|
--popover-foreground: 222 47% 11%;
|
|
40
|
-
|
|
40
|
+
/* Surfaces carrying white text use the brand's ACCESSIBLE variants (section 15.2), never the brand
|
|
41
|
+
* accents: section 15.1 states the accents are not safe behind small white text, and section 17.3
|
|
42
|
+
* restricts white-on-accent to large text. Section 17.1 requires 4.5:1 for normal text.
|
|
43
|
+
*
|
|
44
|
+
* --primary and --accent are Accessible Blue #2563EB (5.17:1 on white). --destructive is red-600
|
|
45
|
+
* #DC2626 (4.83:1); the brand system names no destructive colour, so this is the nearest
|
|
46
|
+
* palette-consistent value that clears 17.1.
|
|
47
|
+
*
|
|
48
|
+
* --ring keeps a brand accent: it outlines a UI component, which section 17.1 holds to 3:1.
|
|
49
|
+
*
|
|
50
|
+
* The .dark block does not redefine these, so each value applies in both themes. */
|
|
51
|
+
--primary: 221 83% 53%;
|
|
41
52
|
--primary-foreground: 0 0% 100%;
|
|
42
|
-
--secondary: 210
|
|
53
|
+
--secondary: 210 40% 96%; /* Slate 100 #F1F5F9, section 15.4 */
|
|
43
54
|
--secondary-foreground: 222 47% 11%;
|
|
44
|
-
--muted: 210
|
|
45
|
-
|
|
46
|
-
|
|
55
|
+
--muted: 210 40% 96%;
|
|
56
|
+
/* Slate 600 #475569, not the Slate 500 that section 15.6 names for muted text: 15.6 states no
|
|
57
|
+
* surface, and on the Slate 100 muted surface Slate 500 measures 4.34:1, under the 4.5:1 section
|
|
58
|
+
* 17.1 requires. Slate 600 stays in the brand's Slate ramp and clears both surfaces this token is
|
|
59
|
+
* used on -- 6.92:1 on muted, 7.58:1 on white. */
|
|
60
|
+
--muted-foreground: 215 19% 35%;
|
|
61
|
+
--accent: 221 83% 53%;
|
|
47
62
|
--accent-foreground: 0 0% 100%;
|
|
48
|
-
--destructive: 0
|
|
63
|
+
--destructive: 0 72% 51%;
|
|
49
64
|
--destructive-foreground: 0 0% 100%;
|
|
50
65
|
--border: 214 32% 91%;
|
|
51
66
|
--input: 214 32% 91%;
|
|
@@ -53,10 +68,12 @@
|
|
|
53
68
|
--base-bg: 210 40% 98%;
|
|
54
69
|
--surface-bg: 0 0% 100%;
|
|
55
70
|
--surface-elevated: 210 33% 96%;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
--text-
|
|
59
|
-
--text-
|
|
71
|
+
/* Text on light backgrounds, section 15.6: Slate 900 heading, Slate 700 body, Slate 500 muted,
|
|
72
|
+
* Slate 400 disabled. */
|
|
73
|
+
--text-heading: 222 47% 11%; /* Slate 900 #0F172A */
|
|
74
|
+
--text-body: 215 25% 27%; /* Slate 700 #334155 */
|
|
75
|
+
--text-muted: 215 16% 47%; /* Slate 500 #64748B */
|
|
76
|
+
--text-disabled: 215 20% 65%; /* Slate 400 #94A3B8 */
|
|
60
77
|
|
|
61
78
|
--font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
|
|
62
79
|
--font-body: "Inter", system-ui, sans-serif;
|
|
@@ -87,7 +104,9 @@
|
|
|
87
104
|
--color-border-dark-medium: rgba(255,255,255,.20);
|
|
88
105
|
--color-border-dark-strong: rgba(255,255,255,.32);
|
|
89
106
|
|
|
90
|
-
|
|
107
|
+
/* Slate 950 #020617, the dark theme's primary surface (section 15.3). White on it measures
|
|
108
|
+
* 20.17:1, matching the pair section 17.2 records. */
|
|
109
|
+
--background: 229 84% 5%;
|
|
91
110
|
--foreground: 0 0% 100%;
|
|
92
111
|
--card: 222 47% 7%;
|
|
93
112
|
--card-foreground: 0 0% 100%;
|
|
@@ -109,23 +128,32 @@
|
|
|
109
128
|
color-scheme: dark;
|
|
110
129
|
}
|
|
111
130
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
-
|
|
121
|
-
}
|
|
131
|
+
/* The element resets sit in @layer base so an application's own styles outrank them.
|
|
132
|
+
*
|
|
133
|
+
* Consuming apps emit their utilities into @layer utilities, and an UNLAYERED declaration beats a
|
|
134
|
+
* layered one whatever its specificity. A bare `a { color: inherit }` shipped outside a layer
|
|
135
|
+
* therefore wins over `.text-primary-foreground` on every anchor, which is most of the buttons in a
|
|
136
|
+
* shadcn codebase — `<Button asChild><a>` renders the button as an anchor. Layering these keeps the
|
|
137
|
+
* reset doing its job while leaving the application in control of what it styles. */
|
|
138
|
+
@layer base {
|
|
139
|
+
* { box-sizing: border-box; }
|
|
140
|
+
html { scroll-behavior: smooth; }
|
|
141
|
+
body {
|
|
142
|
+
margin: 0;
|
|
143
|
+
font-family: var(--font-body);
|
|
144
|
+
background: hsl(var(--background));
|
|
145
|
+
color: hsl(var(--foreground));
|
|
146
|
+
text-rendering: optimizeLegibility;
|
|
147
|
+
-webkit-font-smoothing: antialiased;
|
|
148
|
+
}
|
|
122
149
|
|
|
123
|
-
html.dark body {
|
|
124
|
-
|
|
150
|
+
html.dark body {
|
|
151
|
+
background: linear-gradient(135deg,#020617 0%,#172554 45%,#0F172A 100%);
|
|
152
|
+
}
|
|
153
|
+
button, input, textarea, select { font: inherit; }
|
|
154
|
+
a { color: inherit; text-decoration: none; }
|
|
155
|
+
img, svg { max-width: 100%; display: block; }
|
|
125
156
|
}
|
|
126
|
-
button, input, textarea, select { font: inherit; }
|
|
127
|
-
a { color: inherit; text-decoration: none; }
|
|
128
|
-
img, svg { max-width: 100%; display: block; }
|
|
129
157
|
|
|
130
158
|
.busiverse-focus-ring:focus-visible,
|
|
131
159
|
.busiverse-focus-ring[data-focus-visible="true"] {
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves a brand colour token to a concrete colour string, for the APIs that cannot take one.
|
|
3
|
+
*
|
|
4
|
+
* <h2>What it is for</h2>
|
|
5
|
+
*
|
|
6
|
+
* Charting libraries, canvas drawing and anything handing a colour to a non-DOM renderer need a real
|
|
7
|
+
* value — `var(--color-brand-blue)` is meaningless to Recharts. Use this wherever a token cannot be
|
|
8
|
+
* written as CSS:
|
|
9
|
+
*
|
|
10
|
+
* ```tsx
|
|
11
|
+
* renderChart(revenueData, brandColor("--color-brand-violet"), ...)
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* A hex literal in that position renders the same but stops tracking the brand the moment the token
|
|
15
|
+
* moves, and nothing fails when it diverges — a colour is never an error.
|
|
16
|
+
* `ops/check-brand-tokens.sh` reports literals that a token already covers.
|
|
17
|
+
*
|
|
18
|
+
* <h2>Why it reads the live value rather than returning a constant</h2>
|
|
19
|
+
*
|
|
20
|
+
* Reading the computed custom property means the answer follows the active theme and any override an
|
|
21
|
+
* app has applied, which a hardcoded hex cannot. The documented fallback is used only where there is
|
|
22
|
+
* no document to read — server rendering, unit tests, a thumbnail capture — so callers always get a
|
|
23
|
+
* usable colour and never an empty string.
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* The brand colour tokens this module can resolve, each with the value the brand system specifies.
|
|
27
|
+
*
|
|
28
|
+
* The fallbacks are duplicated from the stylesheet deliberately: this module must work with no DOM,
|
|
29
|
+
* and a fallback that guesses would be worse than one that is wrong loudly.
|
|
30
|
+
* `busiverse-ui/tests/brand-compliance.test.mjs` holds both copies to the brand document, so they
|
|
31
|
+
* cannot drift apart silently.
|
|
32
|
+
*/
|
|
33
|
+
export declare const BRAND_COLOR_FALLBACKS: {
|
|
34
|
+
readonly "--color-brand-blue": "#3B82F6";
|
|
35
|
+
readonly "--color-brand-violet": "#8B5CF6";
|
|
36
|
+
readonly "--color-brand-cyan": "#06B6D4";
|
|
37
|
+
readonly "--color-action-blue": "#2563EB";
|
|
38
|
+
readonly "--color-action-blue-hover": "#1D4ED8";
|
|
39
|
+
readonly "--color-action-violet": "#7C3AED";
|
|
40
|
+
readonly "--color-action-violet-hover": "#6D28D9";
|
|
41
|
+
readonly "--color-action-cyan": "#0E7490";
|
|
42
|
+
readonly "--color-action-cyan-hover": "#155E75";
|
|
43
|
+
};
|
|
44
|
+
export type BrandColorToken = keyof typeof BRAND_COLOR_FALLBACKS;
|
|
45
|
+
/**
|
|
46
|
+
* The default order for chart series.
|
|
47
|
+
*
|
|
48
|
+
* Blue, violet, cyan — the order section 15.1 lists them in, and the order the charts already use, so
|
|
49
|
+
* adopting this changes no existing chart's appearance. Ordering it here means a fourth series gets a
|
|
50
|
+
* decided colour instead of an invented one.
|
|
51
|
+
*/
|
|
52
|
+
export declare const BRAND_CHART_SERIES: readonly BrandColorToken[];
|
|
53
|
+
/**
|
|
54
|
+
* The resolved colour for one brand token.
|
|
55
|
+
*
|
|
56
|
+
* Returns the documented value when there is no document, when the property is unset, or when
|
|
57
|
+
* reading it throws — some embedding contexts refuse `getComputedStyle`. A chart with a fallback
|
|
58
|
+
* colour is a working chart; a chart with `""` is an invisible series.
|
|
59
|
+
*/
|
|
60
|
+
export declare function brandColor(token: BrandColorToken, element?: Element): string;
|
|
61
|
+
/**
|
|
62
|
+
* Resolved colours for a chart's series, in brand order, cycling when there are more series than
|
|
63
|
+
* brand accents.
|
|
64
|
+
*
|
|
65
|
+
* Cycling rather than generating: an invented fourth colour is off-brand by definition, and a
|
|
66
|
+
* repeated accent is at least a decision somebody can see and correct. If a chart genuinely needs
|
|
67
|
+
* more than three distinguishable series, that is a brand question — section 34 governance — not one
|
|
68
|
+
* a helper should answer by interpolating.
|
|
69
|
+
*/
|
|
70
|
+
export declare function brandChartColors(count: number, element?: Element): string[];
|
|
71
|
+
//# sourceMappingURL=brandColor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brandColor.d.ts","sourceRoot":"","sources":["../../src/theme/brandColor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;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"}
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -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"}
|
package/dist/theme-public.js
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
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
|
-
"
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"react
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
"@types/react
|
|
87
|
-
"react": "19.2.
|
|
88
|
-
"react
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
"
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
"
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
"
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@busiverse/ui",
|
|
3
|
+
"version": "0.2.16",
|
|
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
|
+
}
|