@blerp/design 1.4.5 → 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 +22 -15
- package/dist/cjs/Blerp/BlerpSavePopup.js +20 -11
- package/dist/cjs/Blerp/BlerpTitleRow.js +16 -10
- package/dist/cjs/Blerp/BlerpTopRow.js +45 -27
- package/dist/cjs/Blerp.js +8 -20
- package/dist/cjs/BlerpListViewPremium.js +25 -21
- package/dist/cjs/BlerpListViewSkeleton.js +6 -6
- package/dist/cjs/CollectionCard.js +27 -36
- package/dist/cjs/CollectionListViewPremium.js +17 -14
- package/dist/cjs/CollectionSkeleton.js +5 -5
- package/dist/cjs/Dropdown.js +27 -24
- package/dist/cjs/EllipsisLoader.js +4 -3
- package/dist/cjs/GroupCard.js +8 -7
- package/dist/cjs/ImageEditor.js +4 -1
- package/dist/cjs/ImageUpload.js +23 -16
- package/dist/cjs/NewBlerp.js +41 -37
- package/dist/cjs/NewCollectionModal.js +27 -22
- package/dist/cjs/PremiumCollectionCard.js +10 -8
- package/dist/cjs/PurchaseModals/CheckoutModal.js +7 -3
- package/dist/cjs/PurchaseModals/PremiumBlerpCheckoutModal.js +7 -3
- package/dist/cjs/PurchaseModals/PremiumCollectionCheckoutModal.js +7 -3
- package/dist/cjs/PurchaseModals/PremiumSubscriptionCheckoutModal.js +7 -3
- package/dist/cjs/ReactionButtons.js +10 -5
- package/dist/cjs/Theme.js +6 -132
- package/dist/cjs/Toggle.js +2 -1
- package/dist/cjs/UserCard.js +13 -12
- package/dist/cjs/UserPage/LibraryControls.js +40 -29
- package/dist/cjs/UserPage/UserLibraryHeader.js +7 -96
- package/dist/cjs/UserPage/UserProfileHeader.js +6 -291
- package/dist/cjs/UsernameWithPopout.js +6 -4
- package/dist/cjs/icons.js +4 -1
- package/dist/cjs/index.js +135 -216
- package/dist/cjs/neo-components/Navigation.js +0 -2
- package/dist/cjs/neo-components/withSx.js +0 -1
- package/dist/cjs/neo-utils/sxToStyle.js +0 -2
- package/dist/esm/Blerp/BlerpImageRow.js +7 -2
- package/dist/esm/Blerp/BlerpSavePopup.js +9 -2
- package/dist/esm/Blerp/BlerpTitleRow.js +6 -2
- package/dist/esm/Blerp/BlerpTopRow.js +19 -3
- package/dist/esm/Blerp.js +3 -14
- package/dist/esm/BlerpListViewPremium.js +6 -2
- package/dist/esm/BlerpListViewSkeleton.js +1 -1
- package/dist/esm/CollectionCard.js +8 -17
- package/dist/esm/CollectionListViewPremium.js +5 -2
- package/dist/esm/CollectionSkeleton.js +1 -1
- package/dist/esm/Dropdown.js +4 -1
- package/dist/esm/EllipsisLoader.js +3 -2
- package/dist/esm/GroupCard.js +2 -1
- package/dist/esm/ImageEditor.js +2 -1
- package/dist/esm/ImageUpload.js +7 -2
- package/dist/esm/NewBlerp.js +5 -1
- package/dist/esm/NewCollectionModal.js +8 -3
- package/dist/esm/PremiumCollectionCard.js +4 -2
- package/dist/esm/PurchaseModals/CheckoutModal.js +4 -2
- package/dist/esm/PurchaseModals/PremiumBlerpCheckoutModal.js +4 -2
- package/dist/esm/PurchaseModals/PremiumCollectionCheckoutModal.js +4 -2
- package/dist/esm/PurchaseModals/PremiumSubscriptionCheckoutModal.js +4 -2
- package/dist/esm/ReactionButtons.js +5 -2
- package/dist/esm/Theme.js +5 -130
- package/dist/esm/Toggle.js +2 -2
- package/dist/esm/UserCard.js +2 -1
- package/dist/esm/UserPage/LibraryControls.js +20 -11
- package/dist/esm/UserPage/UserLibraryHeader.js +6 -92
- package/dist/esm/UserPage/UserProfileHeader.js +5 -285
- package/dist/esm/UsernameWithPopout.js +3 -1
- package/dist/esm/icons.js +2 -1
- package/dist/esm/index.js +44 -129
- package/dist/esm/neo-components/Navigation.js +0 -2
- package/dist/esm/neo-components/ThemeProvider.js +1 -1
- package/dist/esm/neo-components/withSx.js +0 -1
- package/dist/esm/neo-utils/sxToStyle.js +0 -2
- package/package.json +31 -9
package/dist/esm/Dropdown.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import React, { useState, useRef, useEffect, useCallback } from 'react';
|
|
3
|
-
import { Button
|
|
3
|
+
import { Button } from './neo-components/Button.js';
|
|
4
|
+
import { Text } from './neo-components/Text.js';
|
|
5
|
+
import { Stack } from './neo-components/Stack.js';
|
|
6
|
+
import { Menu, MenuItem } from './neo-components/Navigation.js';
|
|
4
7
|
|
|
5
8
|
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; }
|
|
6
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Box } from './index.js';
|
|
4
3
|
import colors from './colors.js';
|
|
4
|
+
import { Box } from './neo-components/Box.js';
|
|
5
5
|
|
|
6
6
|
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; }
|
|
7
7
|
|
|
@@ -82,5 +82,6 @@ EllipsisLoader.defaultProps = {
|
|
|
82
82
|
height: "20px"
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
|
+
var EllipsisLoader$1 = EllipsisLoader;
|
|
85
86
|
|
|
86
|
-
export { EllipsisLoader, EllipsisLoader as default };
|
|
87
|
+
export { EllipsisLoader, EllipsisLoader$1 as default };
|
package/dist/esm/GroupCard.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
|
-
import { Stack, Text } from './index.js';
|
|
4
3
|
import { AddedToIcons, FavoriteIconWithCounter } from './NewBlerp.js';
|
|
4
|
+
import { Stack } from './neo-components/Stack.js';
|
|
5
|
+
import { Text } from './neo-components/Text.js';
|
|
5
6
|
|
|
6
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; }
|
|
7
8
|
|
package/dist/esm/ImageEditor.js
CHANGED
|
@@ -236,5 +236,6 @@ const ImageEditor = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
236
236
|
}, "Failed to load image"));
|
|
237
237
|
});
|
|
238
238
|
ImageEditor.displayName = 'ImageEditor';
|
|
239
|
+
var ImageEditor$1 = ImageEditor;
|
|
239
240
|
|
|
240
|
-
export { ImageEditor as default };
|
|
241
|
+
export { ImageEditor$1 as default };
|
package/dist/esm/ImageUpload.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import _extends from '@babel/runtime/helpers/extends';
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
3
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
4
|
-
import { Stack, Text, Box, Button } from './index.js';
|
|
5
4
|
import React, { useState, useRef, useEffect, createRef } from 'react';
|
|
6
5
|
import ImageEditor from './ImageEditor.js';
|
|
7
6
|
import { useWindowSize } from './ScreenSizeHook.js';
|
|
8
7
|
import { useBlerpTheme } from './Theme.js';
|
|
8
|
+
import { Stack } from './neo-components/Stack.js';
|
|
9
|
+
import { Text } from './neo-components/Text.js';
|
|
10
|
+
import { Box } from './neo-components/Box.js';
|
|
11
|
+
import { Button } from './neo-components/Button.js';
|
|
9
12
|
|
|
10
13
|
const _excluded = ["path", "sx", "size"];
|
|
11
14
|
|
|
@@ -214,4 +217,6 @@ const ImageUploadModal = _ref2 => {
|
|
|
214
217
|
}, "Save Image")));
|
|
215
218
|
};
|
|
216
219
|
|
|
217
|
-
|
|
220
|
+
var ImageUpload = ImageUploadModal;
|
|
221
|
+
|
|
222
|
+
export { ImageUpload as default };
|
package/dist/esm/NewBlerp.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
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 { Box, Stack, Text, Tooltip, Button } from './index.js';
|
|
5
4
|
import { DiamondIcon, ChannelPointsIcon, TwitchBitIcon, WalkonIcon } from './Icons/Icons.js';
|
|
5
|
+
import { Box } from './neo-components/Box.js';
|
|
6
|
+
import { Stack } from './neo-components/Stack.js';
|
|
7
|
+
import { Text } from './neo-components/Text.js';
|
|
8
|
+
import { Tooltip } from './neo-components/Misc.js';
|
|
9
|
+
import { Button } from './neo-components/Button.js';
|
|
6
10
|
|
|
7
11
|
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
12
|
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import React, { useState, cloneElement, useEffect } from 'react';
|
|
3
3
|
import ReactDOM from 'react-dom';
|
|
4
|
-
import
|
|
5
|
-
import { Button, Stack, Text, Input, Dropdown, Toggle } from './index.js';
|
|
4
|
+
import ImageUpload from './ImageUpload.js';
|
|
6
5
|
import { useWindowSize } from './ScreenSizeHook.js';
|
|
6
|
+
import { Dropdown } from './Dropdown.js';
|
|
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';
|
|
7
12
|
|
|
8
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; }
|
|
9
14
|
|
|
@@ -358,7 +363,7 @@ const NewCollectionModal = _ref4 => {
|
|
|
358
363
|
width: isMobile ? "100vw" : "340px",
|
|
359
364
|
border: "1px solid ".concat(COLORS.border)
|
|
360
365
|
}
|
|
361
|
-
}, /*#__PURE__*/React.createElement(
|
|
366
|
+
}, /*#__PURE__*/React.createElement(ImageUpload, {
|
|
362
367
|
prevImage: collectionToBeEdited ? imageURL : undefined,
|
|
363
368
|
updateImage: newImage => {
|
|
364
369
|
setImageURL(URL.createObjectURL(newImage));
|
|
@@ -3,10 +3,11 @@ import BlerpImageRow from './Blerp/BlerpImageRow.js';
|
|
|
3
3
|
import BlerpSavePopup from './Blerp/BlerpSavePopup.js';
|
|
4
4
|
import BlerpTitleRow from './Blerp/BlerpTitleRow.js';
|
|
5
5
|
import BlerpTopRow from './Blerp/BlerpTopRow.js';
|
|
6
|
-
import { Box, Stack } from './index.js';
|
|
7
6
|
import { useWindowSize } from './ScreenSizeHook.js';
|
|
8
7
|
import { extractDominantColor } from './helpers.js';
|
|
9
8
|
import { useBlerpTheme } from './Theme.js';
|
|
9
|
+
import { Box } from './neo-components/Box.js';
|
|
10
|
+
import { Stack } from './neo-components/Stack.js';
|
|
10
11
|
|
|
11
12
|
const Blerp = _ref => {
|
|
12
13
|
var _bite$image2, _bite$image2$original;
|
|
@@ -221,5 +222,6 @@ const Blerp = _ref => {
|
|
|
221
222
|
handleClickOrganize: handleClickOrganize
|
|
222
223
|
})));
|
|
223
224
|
};
|
|
225
|
+
var PremiumCollectionCard = Blerp;
|
|
224
226
|
|
|
225
|
-
export { Blerp,
|
|
227
|
+
export { Blerp, PremiumCollectionCard as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Stack } from '../index.js';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import { Stack } from '../neo-components/Stack.js';
|
|
3
3
|
|
|
4
4
|
const NeedToReplace = props => {
|
|
5
5
|
return /*#__PURE__*/React.createElement(Stack, {
|
|
@@ -30,4 +30,6 @@ const NeedToReplace = props => {
|
|
|
30
30
|
}, "Need to replace to remove payment dependencies");
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
var NeedToReplace$1 = NeedToReplace;
|
|
34
|
+
|
|
35
|
+
export { NeedToReplace$1 as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Stack } from '../index.js';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import { Stack } from '../neo-components/Stack.js';
|
|
3
3
|
|
|
4
4
|
const NeedToReplace = props => {
|
|
5
5
|
return /*#__PURE__*/React.createElement(Stack, {
|
|
@@ -30,4 +30,6 @@ const NeedToReplace = props => {
|
|
|
30
30
|
}, "Need to replace to remove payment dependencies");
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
var NeedToReplace$1 = NeedToReplace;
|
|
34
|
+
|
|
35
|
+
export { NeedToReplace$1 as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Stack } from '../index.js';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import { Stack } from '../neo-components/Stack.js';
|
|
3
3
|
|
|
4
4
|
const NeedToReplace = props => {
|
|
5
5
|
return /*#__PURE__*/React.createElement(Stack, {
|
|
@@ -30,4 +30,6 @@ const NeedToReplace = props => {
|
|
|
30
30
|
}, "Need to replace to remove payment dependencies");
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
var NeedToReplace$1 = NeedToReplace;
|
|
34
|
+
|
|
35
|
+
export { NeedToReplace$1 as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Stack } from '../index.js';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import { Stack } from '../neo-components/Stack.js';
|
|
3
3
|
|
|
4
4
|
const NeedToReplace = props => {
|
|
5
5
|
return /*#__PURE__*/React.createElement(Stack, {
|
|
@@ -30,4 +30,6 @@ const NeedToReplace = props => {
|
|
|
30
30
|
}, "Need to replace to remove payment dependencies");
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
var NeedToReplace$1 = NeedToReplace;
|
|
34
|
+
|
|
35
|
+
export { NeedToReplace$1 as default };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Grid, Tooltip } from './index.js';
|
|
3
2
|
import { useBlerpTheme } from './Theme.js';
|
|
3
|
+
import { Grid } from './neo-components/Grid.js';
|
|
4
|
+
import { Tooltip } from './neo-components/Misc.js';
|
|
4
5
|
|
|
5
6
|
const reactionIconUrls = {
|
|
6
7
|
FUNNY: "https://cdn.blerp.com/blerp_products/Icons/Funny%403x.svg",
|
|
@@ -69,4 +70,6 @@ const ReactionButtons = _ref => {
|
|
|
69
70
|
}));
|
|
70
71
|
};
|
|
71
72
|
|
|
72
|
-
|
|
73
|
+
var ReactionButtons$1 = ReactionButtons;
|
|
74
|
+
|
|
75
|
+
export { ReactionButtons$1 as default };
|
package/dist/esm/Theme.js
CHANGED
|
@@ -1,30 +1,9 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
|
-
import React, {
|
|
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
|
-
import '@babel/runtime/helpers/extends';
|
|
8
|
-
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
9
|
-
import './neo-components/Box.js';
|
|
10
|
-
import './neo-components/Stack.js';
|
|
11
|
-
import './neo-components/Grid.js';
|
|
12
|
-
import './neo-components/Container.js';
|
|
13
|
-
import './neo-components/Text.js';
|
|
14
|
-
import './neo-components/Button.js';
|
|
15
|
-
import './neo-components/IconButton.js';
|
|
16
|
-
import './neo-components/Fab.js';
|
|
17
|
-
import './neo-components/ToggleButton.js';
|
|
18
|
-
import './neo-components/Input.js';
|
|
19
|
-
import './neo-components/FormControls.js';
|
|
20
|
-
import './neo-components/Autocomplete.js';
|
|
21
|
-
import './neo-components/Paper.js';
|
|
22
|
-
import './neo-components/Dialog.js';
|
|
23
|
-
import './neo-components/Navigation.js';
|
|
24
|
-
import './neo-components/BottomNavigation.js';
|
|
25
|
-
import './neo-components/Stepper.js';
|
|
26
|
-
import './neo-components/Misc.js';
|
|
27
|
-
import './neo-components/Layout.js';
|
|
28
7
|
|
|
29
8
|
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; }
|
|
30
9
|
|
|
@@ -88,7 +67,6 @@ const mainTheme = {
|
|
|
88
67
|
bitsFourIcon: "https://cdn.blerp.com/blerp_products/Twitch/Assets/Variable%20Pricing/Blue%20bits%20icon%20white%20stroke.svg",
|
|
89
68
|
bitsFiveIcon: "https://cdn.blerp.com/blerp_products/Twitch/Assets/Variable%20Pricing/Red%20bits%20icon%20white%20stroke.svg"
|
|
90
69
|
};
|
|
91
|
-
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
|
|
92
70
|
|
|
93
71
|
let StyledThemeProvider = null;
|
|
94
72
|
|
|
@@ -118,111 +96,6 @@ const darkThemeConfig = _objectSpread({
|
|
|
118
96
|
icons: icons,
|
|
119
97
|
palette: darkPalette
|
|
120
98
|
}, mainTheme); // MUI themes (only created if MUI is available)
|
|
121
|
-
|
|
122
|
-
({
|
|
123
|
-
typography: {
|
|
124
|
-
fontFamily: "Odudo, Arial"
|
|
125
|
-
},
|
|
126
|
-
components: {
|
|
127
|
-
MuiPopover: {
|
|
128
|
-
defaultProps: {
|
|
129
|
-
BackdropProps: {
|
|
130
|
-
sx: {
|
|
131
|
-
backgroundColor: "transparent",
|
|
132
|
-
backdropFilter: "none"
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
MuiBackdrop: {
|
|
138
|
-
styleOverrides: {
|
|
139
|
-
root: {
|
|
140
|
-
backgroundColor: "".concat(colors.grey6, "70"),
|
|
141
|
-
backdropFilter: "blur(4px)"
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
MuiSvgIcon: {
|
|
146
|
-
styleOverrides: {
|
|
147
|
-
root: {
|
|
148
|
-
color: colors.notBlack
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
MuiFilledInput: {
|
|
153
|
-
styleOverrides: {
|
|
154
|
-
root: {
|
|
155
|
-
color: colors.notBlack,
|
|
156
|
-
backgroundColor: colors.grey2,
|
|
157
|
-
"& textarea": {
|
|
158
|
-
color: colors.notBlack
|
|
159
|
-
},
|
|
160
|
-
":hover": {
|
|
161
|
-
backgroundColor: colors.grey2
|
|
162
|
-
},
|
|
163
|
-
":before": {
|
|
164
|
-
borderColor: colors.notBlack
|
|
165
|
-
},
|
|
166
|
-
":hover:before": {
|
|
167
|
-
borderColor: "".concat(colors.notBlack, " !important")
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
MuiInput: {
|
|
173
|
-
styleOverrides: {
|
|
174
|
-
root: {
|
|
175
|
-
color: colors.notBlack,
|
|
176
|
-
borderColor: colors.notBlack,
|
|
177
|
-
":before": {
|
|
178
|
-
borderColor: colors.notBlack
|
|
179
|
-
},
|
|
180
|
-
":hover:before": {
|
|
181
|
-
borderColor: "".concat(colors.notBlack, " !important")
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
MuiInputLabel: {
|
|
187
|
-
styleOverrides: {
|
|
188
|
-
root: {
|
|
189
|
-
color: colors.notBlack
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
MuiTypography: {
|
|
194
|
-
styleOverrides: {
|
|
195
|
-
root: {
|
|
196
|
-
color: colors.notBlack
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
MuiButton: {
|
|
201
|
-
styleOverrides: {
|
|
202
|
-
root: {
|
|
203
|
-
borderRadius: "30px",
|
|
204
|
-
fontWeight: "600",
|
|
205
|
-
letterSpacing: "0.05rem",
|
|
206
|
-
textTransform: "capitalize"
|
|
207
|
-
}
|
|
208
|
-
},
|
|
209
|
-
variants: [{
|
|
210
|
-
props: {
|
|
211
|
-
variant: "outlined"
|
|
212
|
-
},
|
|
213
|
-
style: {
|
|
214
|
-
borderWidth: "2px",
|
|
215
|
-
"&:hover": {
|
|
216
|
-
borderWidth: "2px"
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}]
|
|
220
|
-
},
|
|
221
|
-
MuiCssBaseline: {
|
|
222
|
-
styleOverrides: fonts
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
});
|
|
226
99
|
const theme = lightThemeConfig;
|
|
227
100
|
const darkTheme = darkThemeConfig; // Create a context for theme access (legacy - for styled-components)
|
|
228
101
|
|
|
@@ -274,4 +147,6 @@ const BlerpTheme = _ref => {
|
|
|
274
147
|
}, withMuiTheme);
|
|
275
148
|
};
|
|
276
149
|
|
|
277
|
-
|
|
150
|
+
var BlerpTheme$1 = BlerpTheme; // Export fonts for manual injection if needed
|
|
151
|
+
|
|
152
|
+
export { darkTheme, darkThemeConfig, BlerpTheme$1 as default, lightThemeConfig, theme, useBlerpTheme };
|
package/dist/esm/Toggle.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import EllipsisLoader from './EllipsisLoader.js';
|
|
4
4
|
|
|
5
5
|
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; }
|
|
6
6
|
|
|
@@ -101,4 +101,4 @@ const Toggle = _ref2 => {
|
|
|
101
101
|
}))));
|
|
102
102
|
};
|
|
103
103
|
|
|
104
|
-
export { Toggle };
|
|
104
|
+
export { Toggle, Toggle as default };
|
package/dist/esm/UserCard.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Stack
|
|
2
|
+
import { Stack } from './neo-components/Stack.js';
|
|
3
|
+
import { Text } from './neo-components/Text.js';
|
|
3
4
|
|
|
4
5
|
const UserCard = _ref => {
|
|
5
6
|
var _user$twitchChannelIn, _user$profileImage, _user$profileImage$or;
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
|
-
import { Stack, Text, Box, Input, Button, Popover, IconButton, Divider } from '../index.js';
|
|
3
2
|
import React, { useState, useRef } from 'react';
|
|
4
3
|
import { useWindowSize } from '../ScreenSizeHook.js';
|
|
4
|
+
import { Stack } from '../neo-components/Stack.js';
|
|
5
|
+
import { Typography } from '../neo-components/Text.js';
|
|
6
|
+
import { Box } from '../neo-components/Box.js';
|
|
7
|
+
import { TextField } from '../neo-components/Input.js';
|
|
8
|
+
import { Button } from '../neo-components/Button.js';
|
|
9
|
+
import { Popover } from '../neo-components/Navigation.js';
|
|
10
|
+
import { IconButton } from '../neo-components/IconButton.js';
|
|
11
|
+
import { Divider } from '../neo-components/Misc.js';
|
|
5
12
|
|
|
6
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; }
|
|
7
14
|
|
|
@@ -159,12 +166,12 @@ const LibraryControls = _ref9 => {
|
|
|
159
166
|
marginTop: size.width <= 675 && "20px"
|
|
160
167
|
}, activeBoard && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconPerson, {
|
|
161
168
|
color: iconColor
|
|
162
|
-
}), /*#__PURE__*/React.createElement(
|
|
169
|
+
}), /*#__PURE__*/React.createElement(Typography, null, activeBoard === null || activeBoard === void 0 ? void 0 : (_activeBoard$ownerObj = activeBoard.ownerObject) === null || _activeBoard$ownerObj === void 0 ? void 0 : _activeBoard$ownerObj.username)), !hideSearch && /*#__PURE__*/React.createElement(Box, {
|
|
163
170
|
sx: {
|
|
164
171
|
display: "flex",
|
|
165
172
|
alignItems: "flex-end"
|
|
166
173
|
}
|
|
167
|
-
}, /*#__PURE__*/React.createElement(
|
|
174
|
+
}, /*#__PURE__*/React.createElement(TextField, {
|
|
168
175
|
id: "user-library-search-input",
|
|
169
176
|
placeholder: "Search User Library",
|
|
170
177
|
variant: "standard",
|
|
@@ -255,7 +262,7 @@ const LibraryControls = _ref9 => {
|
|
|
255
262
|
color: "white.override"
|
|
256
263
|
}
|
|
257
264
|
}
|
|
258
|
-
}, /*#__PURE__*/React.createElement(
|
|
265
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
259
266
|
margin: "0 15px",
|
|
260
267
|
fontSize: "18px"
|
|
261
268
|
}, "Alphabetical")), /*#__PURE__*/React.createElement(Stack, {
|
|
@@ -269,7 +276,7 @@ const LibraryControls = _ref9 => {
|
|
|
269
276
|
color: "white.override"
|
|
270
277
|
}
|
|
271
278
|
}
|
|
272
|
-
}, /*#__PURE__*/React.createElement(
|
|
279
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
273
280
|
margin: "0 15px",
|
|
274
281
|
fontSize: "18px"
|
|
275
282
|
}, "Newest")), /*#__PURE__*/React.createElement(Stack, {
|
|
@@ -283,14 +290,14 @@ const LibraryControls = _ref9 => {
|
|
|
283
290
|
color: "white.override"
|
|
284
291
|
}
|
|
285
292
|
}
|
|
286
|
-
}, /*#__PURE__*/React.createElement(
|
|
293
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
287
294
|
margin: "0 15px",
|
|
288
295
|
fontSize: "18px"
|
|
289
296
|
}, "Oldest"))), !hideLayoutButtons && /*#__PURE__*/React.createElement(React.Fragment, null, size.width >= 1000 ? /*#__PURE__*/React.createElement(React.Fragment, null, !activeBoard && /*#__PURE__*/React.createElement(Button, {
|
|
290
297
|
color: "notBlack",
|
|
291
298
|
ref: filterRef,
|
|
292
299
|
onClick: () => setFilterAnchor(filterRef.current)
|
|
293
|
-
}, /*#__PURE__*/React.createElement(
|
|
300
|
+
}, /*#__PURE__*/React.createElement(Typography, null, "Sort"), /*#__PURE__*/React.createElement(IconSort, {
|
|
294
301
|
color: iconColor
|
|
295
302
|
})), /*#__PURE__*/React.createElement(IconButton, null, /*#__PURE__*/React.createElement(IconMenu, {
|
|
296
303
|
color: iconColor
|
|
@@ -342,7 +349,7 @@ const LibraryControls = _ref9 => {
|
|
|
342
349
|
}
|
|
343
350
|
}, /*#__PURE__*/React.createElement(IconMenu, {
|
|
344
351
|
color: iconColor
|
|
345
|
-
}), /*#__PURE__*/React.createElement(
|
|
352
|
+
}), /*#__PURE__*/React.createElement(Typography, {
|
|
346
353
|
color: "notBlack.main",
|
|
347
354
|
margin: "0 15px",
|
|
348
355
|
fontSize: "18px"
|
|
@@ -359,7 +366,7 @@ const LibraryControls = _ref9 => {
|
|
|
359
366
|
}
|
|
360
367
|
}, /*#__PURE__*/React.createElement(IconGrid, {
|
|
361
368
|
color: iconColor
|
|
362
|
-
}), /*#__PURE__*/React.createElement(
|
|
369
|
+
}), /*#__PURE__*/React.createElement(Typography, {
|
|
363
370
|
color: "notBlack.main",
|
|
364
371
|
margin: "0 15px",
|
|
365
372
|
fontSize: "18px"
|
|
@@ -383,7 +390,7 @@ const LibraryControls = _ref9 => {
|
|
|
383
390
|
direction: "row"
|
|
384
391
|
}, /*#__PURE__*/React.createElement(IconSort, {
|
|
385
392
|
color: iconColor
|
|
386
|
-
}), /*#__PURE__*/React.createElement(
|
|
393
|
+
}), /*#__PURE__*/React.createElement(Typography, {
|
|
387
394
|
fontSize: "18px",
|
|
388
395
|
color: "notBlack.main",
|
|
389
396
|
margin: "0 15px"
|
|
@@ -392,4 +399,6 @@ const LibraryControls = _ref9 => {
|
|
|
392
399
|
}))))));
|
|
393
400
|
};
|
|
394
401
|
|
|
395
|
-
|
|
402
|
+
var LibraryControls$1 = LibraryControls;
|
|
403
|
+
|
|
404
|
+
export { LibraryControls$1 as default };
|
|
@@ -1,95 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { Box, Stack, Button } from '../index.js';
|
|
4
|
-
import { useWindowSize } from '../ScreenSizeHook.js';
|
|
5
|
-
import LibraryControls from './LibraryControls.js';
|
|
1
|
+
// TODO: If this component is needed, import dependencies directly (not from ../index)
|
|
6
2
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
10
|
-
|
|
11
|
-
const UserLibraryHeader = _ref => {
|
|
12
|
-
let {
|
|
13
|
-
sx,
|
|
14
|
-
tabs,
|
|
15
|
-
tabSelection,
|
|
16
|
-
setTabSelection,
|
|
17
|
-
setShowSearch,
|
|
18
|
-
setSearchTerm,
|
|
19
|
-
searchTerm,
|
|
20
|
-
setActiveBoard,
|
|
21
|
-
hideSearch,
|
|
22
|
-
setSort,
|
|
23
|
-
sort,
|
|
24
|
-
hideLayoutButtons
|
|
25
|
-
} = _ref;
|
|
26
|
-
const size = useWindowSize();
|
|
27
|
-
return /*#__PURE__*/React.createElement(Box, {
|
|
28
|
-
sx: _objectSpread({
|
|
29
|
-
backgroundColor: "grey2.main",
|
|
30
|
-
position: "sticky",
|
|
31
|
-
top: size.width >= 1000 ? "80px" : "110px",
|
|
32
|
-
zIndex: "5"
|
|
33
|
-
}, sx)
|
|
34
|
-
}, /*#__PURE__*/React.createElement(Stack, {
|
|
35
|
-
direction: "row",
|
|
36
|
-
style: {
|
|
37
|
-
padding: "20px 10px",
|
|
38
|
-
maxWidth: "1300px",
|
|
39
|
-
margin: "0 auto",
|
|
40
|
-
width: "95%"
|
|
41
|
-
}
|
|
42
|
-
}, /*#__PURE__*/React.createElement(Stack, {
|
|
43
|
-
direction: "row",
|
|
44
|
-
width: "100%",
|
|
45
|
-
justifyContent: size.width <= 675 ? "center" : "space-between",
|
|
46
|
-
alignItems: "center",
|
|
47
|
-
flexWrap: "wrap"
|
|
48
|
-
}, /*#__PURE__*/React.createElement(Stack, {
|
|
49
|
-
direction: "row",
|
|
50
|
-
flexWrap: "inherit"
|
|
51
|
-
}, tabs === null || tabs === void 0 ? void 0 : tabs.map(tab => /*#__PURE__*/React.createElement(Button, {
|
|
52
|
-
key: "tab-".concat(tab),
|
|
53
|
-
onClick: () => {
|
|
54
|
-
setActiveBoard(null);
|
|
55
|
-
|
|
56
|
-
if (tabSelection.includes(tab)) {
|
|
57
|
-
let newTabs = tabSelection.filter(item => item !== tab);
|
|
58
|
-
setTabSelection(newTabs);
|
|
59
|
-
} else {
|
|
60
|
-
setTabSelection([...tabSelection, tab]);
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
variant: tabSelection.includes(tab) ? "contained" : "outlined",
|
|
64
|
-
size: "small",
|
|
65
|
-
endIcon: tabSelection.includes(tab) && /*#__PURE__*/React.createElement("svg", {
|
|
66
|
-
width: "18",
|
|
67
|
-
height: "18",
|
|
68
|
-
viewBox: "0 0 24 24",
|
|
69
|
-
fill: "currentColor"
|
|
70
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
71
|
-
d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"
|
|
72
|
-
})),
|
|
73
|
-
sx: {
|
|
74
|
-
fontWeight: "normal",
|
|
75
|
-
marginRight: "10px",
|
|
76
|
-
marginBottom: "10px",
|
|
77
|
-
backgroundColor: tabSelection.includes(tab) && "grey4.main"
|
|
78
|
-
},
|
|
79
|
-
color: tabSelection.includes(tab) ? "grey3" : "notBlack",
|
|
80
|
-
disableElevation: true
|
|
81
|
-
}, tab))), /*#__PURE__*/React.createElement(LibraryControls, {
|
|
82
|
-
currentSort: sort,
|
|
83
|
-
setActiveBoard: setActiveBoard,
|
|
84
|
-
setSort: value => {
|
|
85
|
-
setSort(value); // refetch({ variables: options });
|
|
86
|
-
},
|
|
87
|
-
searchTerm: searchTerm,
|
|
88
|
-
hideSearch: hideSearch,
|
|
89
|
-
setSearchTerm: setSearchTerm,
|
|
90
|
-
setShowSearch: setShowSearch,
|
|
91
|
-
hideLayoutButtons: hideLayoutButtons
|
|
92
|
-
}))));
|
|
3
|
+
const UserProfileHeader = () => {
|
|
4
|
+
return null;
|
|
93
5
|
};
|
|
94
6
|
|
|
95
|
-
|
|
7
|
+
var UserProfileHeader$1 = UserProfileHeader;
|
|
8
|
+
|
|
9
|
+
export { UserProfileHeader$1 as default };
|