@blerp/design 1.4.6 → 1.4.7
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/cjs/Blerp/BlerpImageRow.js +2 -2
- package/dist/cjs/Blerp/BlerpTitleRow.js +3 -3
- package/dist/cjs/Blerp/BlerpTopRow.js +16 -5
- package/dist/cjs/Blerp.js +0 -13
- package/dist/cjs/BlerpListViewPremium.js +5 -5
- package/dist/cjs/CollectionCard.js +4 -17
- package/dist/cjs/CollectionListViewPremium.js +4 -4
- package/dist/cjs/Dropdown.js +6 -6
- package/dist/cjs/GroupCard.js +2 -2
- package/dist/cjs/ImageUpload.js +4 -4
- package/dist/cjs/NewBlerp.js +9 -9
- package/dist/cjs/NewCollectionModal.js +10 -10
- package/dist/cjs/Theme.js +4 -201
- package/dist/cjs/Toggle.js +1 -0
- package/dist/cjs/UserCard.js +5 -5
- package/dist/cjs/UserPage/UserLibraryHeader.js +5 -100
- package/dist/cjs/UserPage/UserProfileHeader.js +3 -297
- package/dist/cjs/UsernameWithPopout.js +1 -1
- package/dist/cjs/colors.js +1 -2
- package/dist/esm/Blerp/BlerpImageRow.js +3 -3
- package/dist/esm/Blerp/BlerpTitleRow.js +4 -4
- package/dist/esm/Blerp/BlerpTopRow.js +16 -5
- package/dist/esm/Blerp.js +1 -13
- package/dist/esm/BlerpListViewPremium.js +6 -6
- package/dist/esm/CollectionCard.js +5 -18
- package/dist/esm/CollectionListViewPremium.js +5 -5
- package/dist/esm/Dropdown.js +7 -7
- package/dist/esm/GroupCard.js +3 -3
- package/dist/esm/ImageUpload.js +5 -5
- package/dist/esm/NewBlerp.js +10 -10
- package/dist/esm/NewCollectionModal.js +12 -12
- package/dist/esm/Theme.js +6 -202
- package/dist/esm/Toggle.js +1 -1
- package/dist/esm/UserCard.js +6 -6
- package/dist/esm/UserPage/UserLibraryHeader.js +5 -95
- package/dist/esm/UserPage/UserProfileHeader.js +3 -290
- package/dist/esm/UsernameWithPopout.js +2 -2
- package/dist/esm/colors.js +1 -2
- package/package.json +1 -4
package/dist/esm/Dropdown.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import React, { useState, useRef, useEffect, useCallback } from 'react';
|
|
3
3
|
import { Button } from './neo-components/Button.js';
|
|
4
|
-
import {
|
|
4
|
+
import { Text } from './neo-components/Text.js';
|
|
5
5
|
import { Stack } from './neo-components/Stack.js';
|
|
6
6
|
import { Menu, MenuItem } from './neo-components/Navigation.js';
|
|
7
7
|
|
|
@@ -149,7 +149,7 @@ const NewDropdown = _ref2 => {
|
|
|
149
149
|
backgroundColor: "rgba(250, 250, 250, 1)"
|
|
150
150
|
}
|
|
151
151
|
}, buttonStyle)
|
|
152
|
-
}, buttonLabel && /*#__PURE__*/React.createElement(
|
|
152
|
+
}, buttonLabel && /*#__PURE__*/React.createElement(Text, {
|
|
153
153
|
noWrap: true,
|
|
154
154
|
fontSize: "11px",
|
|
155
155
|
color: "whiteOverride.main",
|
|
@@ -175,7 +175,7 @@ const NewDropdown = _ref2 => {
|
|
|
175
175
|
gap: 1,
|
|
176
176
|
overflow: "hidden",
|
|
177
177
|
flex: 1
|
|
178
|
-
}, startIcon, /*#__PURE__*/React.createElement(
|
|
178
|
+
}, startIcon, /*#__PURE__*/React.createElement(Text, {
|
|
179
179
|
noWrap: true,
|
|
180
180
|
fontSize: "14px",
|
|
181
181
|
color: "darkscale2.main",
|
|
@@ -218,7 +218,7 @@ const NewDropdown = _ref2 => {
|
|
|
218
218
|
mr: 1,
|
|
219
219
|
alignItems: "center",
|
|
220
220
|
justifyContent: "center"
|
|
221
|
-
}, option.startImageIcon), /*#__PURE__*/React.createElement(
|
|
221
|
+
}, option.startImageIcon), /*#__PURE__*/React.createElement(Text, {
|
|
222
222
|
noWrap: true,
|
|
223
223
|
className: "dropdown-item-text",
|
|
224
224
|
sx: {
|
|
@@ -305,7 +305,7 @@ const Dropdown = _ref3 => {
|
|
|
305
305
|
}, startIcon, /*#__PURE__*/React.createElement(Stack, {
|
|
306
306
|
alignItems: "flex-start",
|
|
307
307
|
overflow: "hidden"
|
|
308
|
-
}, buttonLabel && /*#__PURE__*/React.createElement(
|
|
308
|
+
}, buttonLabel && /*#__PURE__*/React.createElement(Text, {
|
|
309
309
|
noWrap: true,
|
|
310
310
|
fontSize: "10px",
|
|
311
311
|
color: "grey4.main",
|
|
@@ -315,7 +315,7 @@ const Dropdown = _ref3 => {
|
|
|
315
315
|
textTransform: "uppercase",
|
|
316
316
|
marginBottom: "-2px"
|
|
317
317
|
}
|
|
318
|
-
}, buttonLabel), /*#__PURE__*/React.createElement(
|
|
318
|
+
}, buttonLabel), /*#__PURE__*/React.createElement(Text, {
|
|
319
319
|
noWrap: true,
|
|
320
320
|
fontSize: "14px",
|
|
321
321
|
color: "grey5.main",
|
|
@@ -358,7 +358,7 @@ const Dropdown = _ref3 => {
|
|
|
358
358
|
mr: 1,
|
|
359
359
|
alignItems: "center",
|
|
360
360
|
justifyContent: "center"
|
|
361
|
-
}, option.startImageIcon), /*#__PURE__*/React.createElement(
|
|
361
|
+
}, option.startImageIcon), /*#__PURE__*/React.createElement(Text, {
|
|
362
362
|
noWrap: true,
|
|
363
363
|
className: "dropdown-item-text",
|
|
364
364
|
sx: {
|
package/dist/esm/GroupCard.js
CHANGED
|
@@ -2,7 +2,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import { AddedToIcons, FavoriteIconWithCounter } from './NewBlerp.js';
|
|
4
4
|
import { Stack } from './neo-components/Stack.js';
|
|
5
|
-
import {
|
|
5
|
+
import { Text } from './neo-components/Text.js';
|
|
6
6
|
|
|
7
7
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
8
8
|
|
|
@@ -117,13 +117,13 @@ const GroupCard = _ref2 => {
|
|
|
117
117
|
onMouseLeave: () => setHovering(false)
|
|
118
118
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
119
119
|
height: "100%"
|
|
120
|
-
}, /*#__PURE__*/React.createElement(
|
|
120
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
121
121
|
sx: {
|
|
122
122
|
color: "grey5.main",
|
|
123
123
|
fontSize: "12px",
|
|
124
124
|
fontWeight: "300"
|
|
125
125
|
}
|
|
126
|
-
}, (group === null || group === void 0 ? void 0 : group.biteCount) || 0, " Sounds"), /*#__PURE__*/React.createElement(
|
|
126
|
+
}, (group === null || group === void 0 ? void 0 : group.biteCount) || 0, " Sounds"), /*#__PURE__*/React.createElement(Text, {
|
|
127
127
|
sx: {
|
|
128
128
|
whiteSpace: "nowrap",
|
|
129
129
|
overflowX: "hidden",
|
package/dist/esm/ImageUpload.js
CHANGED
|
@@ -6,7 +6,7 @@ import ImageEditor from './ImageEditor.js';
|
|
|
6
6
|
import { useWindowSize } from './ScreenSizeHook.js';
|
|
7
7
|
import { useBlerpTheme } from './Theme.js';
|
|
8
8
|
import { Stack } from './neo-components/Stack.js';
|
|
9
|
-
import {
|
|
9
|
+
import { Text } from './neo-components/Text.js';
|
|
10
10
|
import { Box } from './neo-components/Box.js';
|
|
11
11
|
import { Button } from './neo-components/Button.js';
|
|
12
12
|
|
|
@@ -121,13 +121,13 @@ const ImageUploadModal = _ref2 => {
|
|
|
121
121
|
}
|
|
122
122
|
}), /*#__PURE__*/React.createElement(Stack, {
|
|
123
123
|
alignItems: "center"
|
|
124
|
-
}, /*#__PURE__*/React.createElement(
|
|
124
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
125
125
|
sx: {
|
|
126
126
|
fontSize: "32px"
|
|
127
127
|
}
|
|
128
|
-
}, title), /*#__PURE__*/React.createElement(
|
|
128
|
+
}, title), /*#__PURE__*/React.createElement(Text, {
|
|
129
129
|
color: "grey4"
|
|
130
|
-
}, "Adjust your image below."), /*#__PURE__*/React.createElement(
|
|
130
|
+
}, "Adjust your image below."), /*#__PURE__*/React.createElement(Text, {
|
|
131
131
|
color: "grey4"
|
|
132
132
|
}, sizeInfo)), /*#__PURE__*/React.createElement(Stack, {
|
|
133
133
|
sx: {
|
|
@@ -172,7 +172,7 @@ const ImageUploadModal = _ref2 => {
|
|
|
172
172
|
sx: {
|
|
173
173
|
color: "white"
|
|
174
174
|
}
|
|
175
|
-
}) : /*#__PURE__*/React.createElement(
|
|
175
|
+
}) : /*#__PURE__*/React.createElement(Text, {
|
|
176
176
|
sx: {
|
|
177
177
|
textAlign: "center",
|
|
178
178
|
width: "80%"
|
package/dist/esm/NewBlerp.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import React, { useState, useRef } from 'react';
|
|
3
3
|
import { UsernameWithPopout } from './UsernameWithPopout.js';
|
|
4
|
+
import { DiamondIcon, ChannelPointsIcon, TwitchBitIcon, WalkonIcon } from './Icons/Icons.js';
|
|
4
5
|
import { Box } from './neo-components/Box.js';
|
|
5
6
|
import { Stack } from './neo-components/Stack.js';
|
|
6
|
-
import {
|
|
7
|
-
import { DiamondIcon, ChannelPointsIcon, TwitchBitIcon, WalkonIcon } from './Icons/Icons.js';
|
|
7
|
+
import { Text } from './neo-components/Text.js';
|
|
8
8
|
import { Tooltip } from './neo-components/Misc.js';
|
|
9
9
|
import { Button } from './neo-components/Button.js';
|
|
10
10
|
|
|
@@ -254,7 +254,7 @@ const FavoriteIconWithCounter = _ref10 => {
|
|
|
254
254
|
opacity: 0.5,
|
|
255
255
|
color: "#ffffff"
|
|
256
256
|
}
|
|
257
|
-
}), /*#__PURE__*/React.createElement(
|
|
257
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
258
258
|
sx: {
|
|
259
259
|
fontSize: "12px",
|
|
260
260
|
fontWeight: "400"
|
|
@@ -325,7 +325,7 @@ const RatingInfoItem = _ref12 => {
|
|
|
325
325
|
} = _ref12;
|
|
326
326
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
327
327
|
title: tooltipText
|
|
328
|
-
}, /*#__PURE__*/React.createElement(
|
|
328
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
329
329
|
sx: {
|
|
330
330
|
fontSize: "9px",
|
|
331
331
|
fontWeight: "600",
|
|
@@ -451,7 +451,7 @@ const ReportedWarning = _ref14 => {
|
|
|
451
451
|
sx: {
|
|
452
452
|
marginBottom: "20px"
|
|
453
453
|
}
|
|
454
|
-
}), /*#__PURE__*/React.createElement(
|
|
454
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
455
455
|
sx: {
|
|
456
456
|
fontSize: "18px",
|
|
457
457
|
fontWeight: "600",
|
|
@@ -473,14 +473,14 @@ const ReportedWarning = _ref14 => {
|
|
|
473
473
|
sx: {
|
|
474
474
|
marginBottom: "20px"
|
|
475
475
|
}
|
|
476
|
-
}), /*#__PURE__*/React.createElement(
|
|
476
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
477
477
|
sx: {
|
|
478
478
|
fontSize: "18px",
|
|
479
479
|
fontWeight: "600",
|
|
480
480
|
color: "white.override",
|
|
481
481
|
marginBottom: "10px"
|
|
482
482
|
}
|
|
483
|
-
}, "Hold Up"), /*#__PURE__*/React.createElement(
|
|
483
|
+
}, "Hold Up"), /*#__PURE__*/React.createElement(Text, {
|
|
484
484
|
sx: {
|
|
485
485
|
fontSize: "14px",
|
|
486
486
|
fontWeight: "400",
|
|
@@ -730,7 +730,7 @@ const NewBlerp = _ref16 => {
|
|
|
730
730
|
alignItems: "center",
|
|
731
731
|
justifyContent: "center"
|
|
732
732
|
}
|
|
733
|
-
}, /*#__PURE__*/React.createElement(LockIcon, null), /*#__PURE__*/React.createElement(
|
|
733
|
+
}, /*#__PURE__*/React.createElement(LockIcon, null), /*#__PURE__*/React.createElement(Text, null, "Private Blerp"))));
|
|
734
734
|
}
|
|
735
735
|
|
|
736
736
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
@@ -822,7 +822,7 @@ const NewBlerp = _ref16 => {
|
|
|
822
822
|
style: {
|
|
823
823
|
textDecoration: "none"
|
|
824
824
|
}
|
|
825
|
-
}, /*#__PURE__*/React.createElement(
|
|
825
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
826
826
|
ref: titleRef,
|
|
827
827
|
sx: {
|
|
828
828
|
fontSize: "16px",
|
|
@@ -916,7 +916,7 @@ const NewBlerp = _ref16 => {
|
|
|
916
916
|
onUsernameClick: onUsernameClick,
|
|
917
917
|
user: bite === null || bite === void 0 ? void 0 : bite.ownerObject,
|
|
918
918
|
collapsed: false
|
|
919
|
-
}), /*#__PURE__*/React.createElement(
|
|
919
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
920
920
|
sx: {
|
|
921
921
|
fontWeight: "300",
|
|
922
922
|
fontSize: "12px",
|
|
@@ -3,12 +3,12 @@ import React, { useState, cloneElement, useEffect } from 'react';
|
|
|
3
3
|
import ReactDOM from 'react-dom';
|
|
4
4
|
import ImageUpload from './ImageUpload.js';
|
|
5
5
|
import { useWindowSize } from './ScreenSizeHook.js';
|
|
6
|
-
import { Button } from './neo-components/Button.js';
|
|
7
|
-
import { Stack } from './neo-components/Stack.js';
|
|
8
|
-
import { Typography } from './neo-components/Text.js';
|
|
9
|
-
import { TextField } from './neo-components/Input.js';
|
|
10
6
|
import { Dropdown } from './Dropdown.js';
|
|
11
7
|
import { Toggle } from './Toggle.js';
|
|
8
|
+
import { Button } from './neo-components/Button.js';
|
|
9
|
+
import { Stack } from './neo-components/Stack.js';
|
|
10
|
+
import { Text } from './neo-components/Text.js';
|
|
11
|
+
import { Input } from './neo-components/Input.js';
|
|
12
12
|
|
|
13
13
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
14
14
|
|
|
@@ -178,7 +178,7 @@ const NewCollectionModal = _ref4 => {
|
|
|
178
178
|
}
|
|
179
179
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
180
180
|
path: paths.close
|
|
181
|
-
})), /*#__PURE__*/React.createElement(
|
|
181
|
+
})), /*#__PURE__*/React.createElement(Text, {
|
|
182
182
|
fontSize: "28px",
|
|
183
183
|
fontWeight: "700",
|
|
184
184
|
fontColor: COLORS.textMain,
|
|
@@ -218,7 +218,7 @@ const NewCollectionModal = _ref4 => {
|
|
|
218
218
|
style: {
|
|
219
219
|
color: COLORS.textMuted
|
|
220
220
|
}
|
|
221
|
-
}), /*#__PURE__*/React.createElement(
|
|
221
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
222
222
|
fontSize: "12px",
|
|
223
223
|
fontColor: COLORS.textMuted,
|
|
224
224
|
sx: {
|
|
@@ -230,7 +230,7 @@ const NewCollectionModal = _ref4 => {
|
|
|
230
230
|
flex: 1,
|
|
231
231
|
width: "100%"
|
|
232
232
|
}
|
|
233
|
-
}, /*#__PURE__*/React.createElement(
|
|
233
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
234
234
|
label: "Name",
|
|
235
235
|
value: titleInput,
|
|
236
236
|
onChange: e => setTitleInput(e.target.value),
|
|
@@ -247,7 +247,7 @@ const NewCollectionModal = _ref4 => {
|
|
|
247
247
|
backgroundColor: COLORS.bgInput
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
}), /*#__PURE__*/React.createElement(
|
|
250
|
+
}), /*#__PURE__*/React.createElement(Input, {
|
|
251
251
|
label: "Description",
|
|
252
252
|
value: descriptionInput,
|
|
253
253
|
onChange: e => setDescriptionInput(e.target.value),
|
|
@@ -270,7 +270,7 @@ const NewCollectionModal = _ref4 => {
|
|
|
270
270
|
spacing: 2,
|
|
271
271
|
justifyContent: "space-between",
|
|
272
272
|
flexWrap: "wrap"
|
|
273
|
-
}, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(
|
|
273
|
+
}, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Text, {
|
|
274
274
|
fontSize: "12px",
|
|
275
275
|
fontColor: COLORS.textMuted,
|
|
276
276
|
sx: {
|
|
@@ -292,7 +292,7 @@ const NewCollectionModal = _ref4 => {
|
|
|
292
292
|
}, {
|
|
293
293
|
name: "UNLISTED"
|
|
294
294
|
}]
|
|
295
|
-
})), isAdmin && /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(
|
|
295
|
+
})), isAdmin && /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Text, {
|
|
296
296
|
fontSize: "12px",
|
|
297
297
|
fontColor: COLORS.textMuted,
|
|
298
298
|
sx: {
|
|
@@ -301,13 +301,13 @@ const NewCollectionModal = _ref4 => {
|
|
|
301
301
|
}, "PREMIUM"), /*#__PURE__*/React.createElement(Toggle, {
|
|
302
302
|
checked: collectionToBeEdited === null || collectionToBeEdited === void 0 ? void 0 : collectionToBeEdited.isPremium,
|
|
303
303
|
onClick: () => handleChangePremium(!(collectionToBeEdited !== null && collectionToBeEdited !== void 0 && collectionToBeEdited.isPremium))
|
|
304
|
-
})), (collectionToBeEdited === null || collectionToBeEdited === void 0 ? void 0 : collectionToBeEdited.isPremium) && /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(
|
|
304
|
+
})), (collectionToBeEdited === null || collectionToBeEdited === void 0 ? void 0 : collectionToBeEdited.isPremium) && /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Text, {
|
|
305
305
|
fontSize: "12px",
|
|
306
306
|
fontColor: COLORS.textMuted,
|
|
307
307
|
sx: {
|
|
308
308
|
mb: 1
|
|
309
309
|
}
|
|
310
|
-
}, "PRICE"), /*#__PURE__*/React.createElement(
|
|
310
|
+
}, "PRICE"), /*#__PURE__*/React.createElement(Input, {
|
|
311
311
|
value: price,
|
|
312
312
|
onChange: e => setPrice(e.target.value),
|
|
313
313
|
size: "small",
|
package/dist/esm/Theme.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import React, { useMemo, useContext, createContext } from 'react';
|
|
3
3
|
import icons from './icons.js';
|
|
4
|
-
import
|
|
4
|
+
import { lightColors, lightPalette, darkColors, darkPalette } from './colors.js';
|
|
5
5
|
import { SnackbarProvider } from './SnackbarContextProvider.js';
|
|
6
6
|
import { ThemeProvider } from './neo-components/ThemeProvider.js';
|
|
7
7
|
|
|
@@ -67,20 +67,6 @@ const mainTheme = {
|
|
|
67
67
|
bitsFourIcon: "https://cdn.blerp.com/blerp_products/Twitch/Assets/Variable%20Pricing/Blue%20bits%20icon%20white%20stroke.svg",
|
|
68
68
|
bitsFiveIcon: "https://cdn.blerp.com/blerp_products/Twitch/Assets/Variable%20Pricing/Red%20bits%20icon%20white%20stroke.svg"
|
|
69
69
|
};
|
|
70
|
-
const fonts = "@font-face {\n font-family: \"Odudo\";\n font-weight: normal;\n font-display: swap;\n src: url(\"https://cdn.blerp.com/blerp-web-images/fonts/web/Odudo-Regular.eot\");\n src: url(\"https://cdn.blerp.com/blerp-web-images/fonts/web/Odudo-Regular.woff2\")\n format(\"woff2\"),\n url(\"https://cdn.blerp.com/blerp-web-images/fonts/web/Odudo-Regular.woff\")\n format(\"woff\");\n}\n\n@font-face {\n font-family: \"Odudo\";\n font-weight: lighter;\n font-display: swap;\n src: url(\"https://cdn.blerp.com/blerp-web-images/fonts/web/Odudo-Light.eot\");\n src: url(\"https://cdn.blerp.com/blerp-web-images/fonts/web/Odudo-Light.woff2\")\n format(\"woff2\"),\n url(\"https://cdn.blerp.com/blerp-web-images/fonts/web/Odudo-Light.woff\")\n format(\"woff\");\n}\n\n@font-face {\n font-family: \"Odudo\";\n font-weight: 300;\n font-display: swap;\n src: url(\"https://cdn.blerp.com/blerp-web-images/fonts/web/Odudo-Light.eot\");\n src: url(\"https://cdn.blerp.com/blerp-web-images/fonts/web/Odudo-Light.woff2\")\n format(\"woff2\"),\n url(\"https://cdn.blerp.com/blerp-web-images/fonts/web/Odudo-Light.woff\")\n format(\"woff\");\n}\n\n@font-face {\n font-family: \"Odudo\";\n font-weight: 400;\n font-display: swap;\n src: url(\"https://cdn.blerp.com/blerp-web-images/fonts/web/Odudo-Regular.eot\");\n src: url(\"https://cdn.blerp.com/blerp-web-images/fonts/web/Odudo-Regular.woff2\")\n format(\"woff2\"),\n url(\"https://cdn.blerp.com/blerp-web-images/fonts/web/Odudo-Regular.woff\")\n format(\"woff\");\n}\n\n@font-face {\n font-family: \"Odudo\";\n font-weight: bolder;\n font-display: swap;\n src: url(\"https://cdn.blerp.com/blerp-web-images/fonts/Odudo%20V1.3/WEB/odudo-semibold-webfont.eot\");\n src: url(\"https://cdn.blerp.com/blerp-web-images/fonts/Odudo%20V1.3/WEB/odudo-semibold-webfont.woff2\")\n format(\"woff2\"),\n url(\"https://cdn.blerp.com/blerp-web-images/fonts/Odudo%20V1.3/WEB/odudo-semibold-webfont.woff\")\n format(\"woff\");\n}\n\n@font-face {\n font-family: \"Odudo\";\n font-weight: 600;\n font-display: swap;\n src: url(\"https://cdn.blerp.com/blerp-web-images/fonts/Odudo%20V1.3/WEB/odudo-semibold-webfont.eot\");\n src: url(\"https://cdn.blerp.com/blerp-web-images/fonts/Odudo%20V1.3/WEB/odudo-semibold-webfont.woff2\")\n format(\"woff2\"),\n url(\"https://cdn.blerp.com/blerp-web-images/fonts/Odudo%20V1.3/WEB/odudo-semibold-webfont.woff\")\n format(\"woff\");\n}\n\n@font-face {\n font-family: \"Odudo\";\n font-weight: bold;\n font-display: swap;\n src: url(\"https://cdn.blerp.com/blerp-web-images/fonts/web/Odudo-Bold.eot\");\n src: url(\"https://cdn.blerp.com/blerp-web-images/fonts/web/Odudo-Bold.woff2\")\n format(\"woff2\"),\n url(\"https://cdn.blerp.com/blerp-web-images/fonts/web/Odudo-Bold.woff\")\n format(\"woff\");\n}\n\n@font-face {\n font-family: \"Odudo\";\n font-weight: 700;\n font-display: swap;\n src: url(\"https://cdn.blerp.com/blerp-web-images/fonts/web/Odudo-Bold.eot\");\n src: url(\"https://cdn.blerp.com/blerp-web-images/fonts/web/Odudo-Bold.woff2\")\n format(\"woff2\"),\n url(\"https://cdn.blerp.com/blerp-web-images/fonts/web/Odudo-Bold.woff\")\n format(\"woff\");\n}"; // Try to load MUI dynamically, but don't fail if it's not installed
|
|
71
|
-
|
|
72
|
-
let createTheme = null;
|
|
73
|
-
let MuiThemeProvider = null;
|
|
74
|
-
|
|
75
|
-
try {
|
|
76
|
-
const mui = require("@mui/material/styles");
|
|
77
|
-
|
|
78
|
-
createTheme = mui.createTheme;
|
|
79
|
-
MuiThemeProvider = mui.ThemeProvider;
|
|
80
|
-
} catch (e) {// MUI not installed, that's fine
|
|
81
|
-
// console.log("MUI not detected - using lightweight theme mode");
|
|
82
|
-
} // Try to load styled-components, but don't fail if it's not installed
|
|
83
|
-
|
|
84
70
|
|
|
85
71
|
let StyledThemeProvider = null;
|
|
86
72
|
|
|
@@ -110,188 +96,8 @@ const darkThemeConfig = _objectSpread({
|
|
|
110
96
|
icons: icons,
|
|
111
97
|
palette: darkPalette
|
|
112
98
|
}, mainTheme); // MUI themes (only created if MUI is available)
|
|
113
|
-
|
|
114
|
-
const
|
|
115
|
-
typography: {
|
|
116
|
-
fontFamily: "Odudo, Arial"
|
|
117
|
-
},
|
|
118
|
-
components: {
|
|
119
|
-
MuiPopover: {
|
|
120
|
-
defaultProps: {
|
|
121
|
-
BackdropProps: {
|
|
122
|
-
sx: {
|
|
123
|
-
backgroundColor: "transparent",
|
|
124
|
-
backdropFilter: "none"
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
MuiBackdrop: {
|
|
130
|
-
styleOverrides: {
|
|
131
|
-
root: {
|
|
132
|
-
backgroundColor: "".concat(colors.grey6, "70"),
|
|
133
|
-
backdropFilter: "blur(4px)"
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
MuiSvgIcon: {
|
|
138
|
-
styleOverrides: {
|
|
139
|
-
root: {
|
|
140
|
-
color: colors.notBlack
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
MuiFilledInput: {
|
|
145
|
-
styleOverrides: {
|
|
146
|
-
root: {
|
|
147
|
-
color: colors.notBlack,
|
|
148
|
-
backgroundColor: colors.grey2,
|
|
149
|
-
"& textarea": {
|
|
150
|
-
color: colors.notBlack
|
|
151
|
-
},
|
|
152
|
-
":hover": {
|
|
153
|
-
backgroundColor: colors.grey2
|
|
154
|
-
},
|
|
155
|
-
":before": {
|
|
156
|
-
borderColor: colors.notBlack
|
|
157
|
-
},
|
|
158
|
-
":hover:before": {
|
|
159
|
-
borderColor: "".concat(colors.notBlack, " !important")
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
MuiInput: {
|
|
165
|
-
styleOverrides: {
|
|
166
|
-
root: {
|
|
167
|
-
color: colors.notBlack,
|
|
168
|
-
borderColor: colors.notBlack,
|
|
169
|
-
":before": {
|
|
170
|
-
borderColor: colors.notBlack
|
|
171
|
-
},
|
|
172
|
-
":hover:before": {
|
|
173
|
-
borderColor: "".concat(colors.notBlack, " !important")
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
MuiInputLabel: {
|
|
179
|
-
styleOverrides: {
|
|
180
|
-
root: {
|
|
181
|
-
color: colors.notBlack
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
MuiTypography: {
|
|
186
|
-
styleOverrides: {
|
|
187
|
-
root: {
|
|
188
|
-
color: colors.notBlack
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
MuiButton: {
|
|
193
|
-
styleOverrides: {
|
|
194
|
-
root: {
|
|
195
|
-
borderRadius: "30px",
|
|
196
|
-
fontWeight: "600",
|
|
197
|
-
letterSpacing: "0.05rem",
|
|
198
|
-
textTransform: "capitalize"
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
variants: [{
|
|
202
|
-
props: {
|
|
203
|
-
variant: "outlined"
|
|
204
|
-
},
|
|
205
|
-
style: {
|
|
206
|
-
borderWidth: "2px",
|
|
207
|
-
"&:hover": {
|
|
208
|
-
borderWidth: "2px"
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}]
|
|
212
|
-
},
|
|
213
|
-
MuiCssBaseline: {
|
|
214
|
-
styleOverrides: fonts
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
};
|
|
218
|
-
const theme = createTheme ? createTheme(_objectSpread(_objectSpread({}, muiThemeConfig), {}, {
|
|
219
|
-
mode: "light",
|
|
220
|
-
colors: lightColors,
|
|
221
|
-
icons: icons,
|
|
222
|
-
palette: lightPalette
|
|
223
|
-
})) : lightThemeConfig;
|
|
224
|
-
const darkTheme = createTheme ? createTheme(_objectSpread(_objectSpread({}, muiThemeConfig), {}, {
|
|
225
|
-
components: _objectSpread(_objectSpread({}, muiThemeConfig.components), {}, {
|
|
226
|
-
MuiTypography: {
|
|
227
|
-
styleOverrides: {
|
|
228
|
-
root: {
|
|
229
|
-
color: colors.white
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
MuiFilledInput: {
|
|
234
|
-
styleOverrides: {
|
|
235
|
-
root: {
|
|
236
|
-
color: colors.white,
|
|
237
|
-
backgroundColor: colors.grey7,
|
|
238
|
-
"& textarea": {
|
|
239
|
-
color: colors.white
|
|
240
|
-
},
|
|
241
|
-
":hover": {
|
|
242
|
-
backgroundColor: colors.grey7
|
|
243
|
-
},
|
|
244
|
-
":before": {
|
|
245
|
-
borderColor: colors.waxwing
|
|
246
|
-
},
|
|
247
|
-
":hover:before": {
|
|
248
|
-
borderColor: "".concat(colors.white, " !important")
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
MuiInput: {
|
|
254
|
-
styleOverrides: {
|
|
255
|
-
root: {
|
|
256
|
-
color: colors.white,
|
|
257
|
-
borderColor: colors.white,
|
|
258
|
-
":before": {
|
|
259
|
-
borderColor: colors.waxwing
|
|
260
|
-
},
|
|
261
|
-
":hover:before": {
|
|
262
|
-
borderColor: "".concat(colors.white, " !important")
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
},
|
|
267
|
-
MuiInputLabel: {
|
|
268
|
-
styleOverrides: {
|
|
269
|
-
root: {
|
|
270
|
-
color: colors.white
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
},
|
|
274
|
-
MuiSvgIcon: {
|
|
275
|
-
styleOverrides: {
|
|
276
|
-
root: {
|
|
277
|
-
color: colors.white
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
},
|
|
281
|
-
MuiBackdrop: {
|
|
282
|
-
styleOverrides: {
|
|
283
|
-
root: {
|
|
284
|
-
backgroundColor: "".concat(colors.grey5, "70"),
|
|
285
|
-
backdropFilter: "blur(4px)"
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
}),
|
|
290
|
-
mode: "dark",
|
|
291
|
-
colors: darkColors,
|
|
292
|
-
icons: icons,
|
|
293
|
-
palette: darkPalette
|
|
294
|
-
})) : darkThemeConfig; // Create a context for theme access (legacy - for styled-components)
|
|
99
|
+
const theme = lightThemeConfig;
|
|
100
|
+
const darkTheme = darkThemeConfig; // Create a context for theme access (legacy - for styled-components)
|
|
295
101
|
|
|
296
102
|
const BlerpThemeContext = /*#__PURE__*/createContext(null);
|
|
297
103
|
const useBlerpTheme = () => {
|
|
@@ -305,7 +111,7 @@ const useBlerpTheme = () => {
|
|
|
305
111
|
};
|
|
306
112
|
/**
|
|
307
113
|
* BlerpTheme - Main theme provider
|
|
308
|
-
*
|
|
114
|
+
*
|
|
309
115
|
* FIXED: Now accepts and passes through customColors to NewThemeProvider
|
|
310
116
|
* This allows ExtensionTheme and other consumers to override extension colors
|
|
311
117
|
*/
|
|
@@ -332,9 +138,7 @@ const BlerpTheme = _ref => {
|
|
|
332
138
|
theme: themeValue
|
|
333
139
|
}, innerContent) : innerContent; // Wrap with MUI ThemeProvider if available
|
|
334
140
|
|
|
335
|
-
const withMuiTheme =
|
|
336
|
-
theme: currentTheme
|
|
337
|
-
}, withStyledTheme) : withStyledTheme; // CRITICAL FIX: Pass customColors through to NewThemeProvider
|
|
141
|
+
const withMuiTheme = withStyledTheme; // CRITICAL FIX: Pass customColors through to NewThemeProvider
|
|
338
142
|
// This ensures neo-components get the extension color overrides
|
|
339
143
|
|
|
340
144
|
return /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
@@ -345,4 +149,4 @@ const BlerpTheme = _ref => {
|
|
|
345
149
|
|
|
346
150
|
var BlerpTheme$1 = BlerpTheme; // Export fonts for manual injection if needed
|
|
347
151
|
|
|
348
|
-
export { darkTheme, darkThemeConfig, BlerpTheme$1 as default,
|
|
152
|
+
export { darkTheme, darkThemeConfig, BlerpTheme$1 as default, lightThemeConfig, theme, useBlerpTheme };
|
package/dist/esm/Toggle.js
CHANGED
package/dist/esm/UserCard.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Stack } from './neo-components/Stack.js';
|
|
3
|
-
import {
|
|
3
|
+
import { Text } from './neo-components/Text.js';
|
|
4
4
|
|
|
5
5
|
const UserCard = _ref => {
|
|
6
6
|
var _user$twitchChannelIn, _user$profileImage, _user$profileImage$or;
|
|
@@ -58,7 +58,7 @@ const UserCard = _ref => {
|
|
|
58
58
|
flex: 1,
|
|
59
59
|
marginLeft: "20px"
|
|
60
60
|
}
|
|
61
|
-
}, /*#__PURE__*/React.createElement(
|
|
61
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
62
62
|
sx: {
|
|
63
63
|
fontSize: "18px",
|
|
64
64
|
fontWeight: "300",
|
|
@@ -86,12 +86,12 @@ const UserCard = _ref => {
|
|
|
86
86
|
cursor: "pointer"
|
|
87
87
|
},
|
|
88
88
|
onClick: onFollowerClick
|
|
89
|
-
}, /*#__PURE__*/React.createElement(
|
|
89
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
90
90
|
sx: {
|
|
91
91
|
fontSize: "14px",
|
|
92
92
|
fontWeight: "400"
|
|
93
93
|
}
|
|
94
|
-
}, followerCount), /*#__PURE__*/React.createElement(
|
|
94
|
+
}, followerCount), /*#__PURE__*/React.createElement(Text, {
|
|
95
95
|
sx: {
|
|
96
96
|
fontSize: "12px",
|
|
97
97
|
fontWeight: "300",
|
|
@@ -103,12 +103,12 @@ const UserCard = _ref => {
|
|
|
103
103
|
cursor: "pointer"
|
|
104
104
|
},
|
|
105
105
|
onClick: onCreatedClick
|
|
106
|
-
}, /*#__PURE__*/React.createElement(
|
|
106
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
107
107
|
sx: {
|
|
108
108
|
fontSize: "14px",
|
|
109
109
|
fontWeight: "400"
|
|
110
110
|
}
|
|
111
|
-
}, createdCount), /*#__PURE__*/React.createElement(
|
|
111
|
+
}, createdCount), /*#__PURE__*/React.createElement(Text, {
|
|
112
112
|
sx: {
|
|
113
113
|
fontSize: "12px",
|
|
114
114
|
fontWeight: "300",
|