@blerp/design 1.3.17 → 1.4.1

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.
Files changed (128) hide show
  1. package/dist/cjs/Blerp/BlerpImageRow.js +176 -57
  2. package/dist/cjs/Blerp/BlerpSavePopup.js +44 -40
  3. package/dist/cjs/Blerp/BlerpTitleRow.js +36 -19
  4. package/dist/cjs/Blerp/BlerpTopRow.js +110 -44
  5. package/dist/cjs/Blerp.js +9 -16
  6. package/dist/cjs/BlerpAudioContextProvider.js +2 -2
  7. package/dist/cjs/BlerpListView.js +318 -168
  8. package/dist/cjs/BlerpListViewPremium.js +155 -130
  9. package/dist/cjs/BlerpListViewSkeleton.js +60 -13
  10. package/dist/cjs/BlerpSkeleton.js +32 -9
  11. package/dist/cjs/CollectionCard.js +139 -60
  12. package/dist/cjs/CollectionListViewPremium.js +368 -297
  13. package/dist/cjs/CollectionSkeleton.js +74 -13
  14. package/dist/cjs/Dropdown.js +272 -172
  15. package/dist/cjs/EllipsisLoader.js +66 -21
  16. package/dist/cjs/GroupCard.js +64 -57
  17. package/dist/cjs/Icons/Icons.js +288 -426
  18. package/dist/cjs/ImageEditor.js +247 -0
  19. package/dist/cjs/ImageUpload.js +226 -0
  20. package/dist/cjs/NewBlerp.js +354 -160
  21. package/dist/cjs/NewBlerpTest.js +10 -792
  22. package/dist/cjs/NewCollectionModal.js +294 -310
  23. package/dist/cjs/PremiumCollectionCard.js +191 -454
  24. package/dist/cjs/PurchaseModals/CheckoutModal.js +1 -1
  25. package/dist/cjs/PurchaseModals/PremiumBlerpCheckoutModal.js +1 -1
  26. package/dist/cjs/PurchaseModals/PremiumCollectionCheckoutModal.js +1 -1
  27. package/dist/cjs/PurchaseModals/PremiumSubscriptionCheckoutModal.js +1 -1
  28. package/dist/cjs/ReactionButtons.js +26 -13
  29. package/dist/cjs/SnackbarContextProvider.js +200 -116
  30. package/dist/cjs/Theme.js +217 -90
  31. package/dist/cjs/Toggle.js +86 -32
  32. package/dist/cjs/UserCard.js +13 -32
  33. package/dist/cjs/UserPage/LibraryControls.js +180 -93
  34. package/dist/cjs/UserPage/UserLibraryHeader.js +23 -14
  35. package/dist/cjs/UserPage/UserProfileHeader.js +120 -105
  36. package/dist/cjs/UsernameWithPopout.js +12 -8
  37. package/dist/cjs/colors.js +15 -8
  38. package/dist/cjs/helpers.js +131 -0
  39. package/dist/cjs/index.js +92 -58
  40. package/dist/cjs/neo-components/Autocomplete.js +280 -0
  41. package/dist/cjs/neo-components/BottomNavigation.js +120 -0
  42. package/dist/cjs/neo-components/Box.js +48 -0
  43. package/dist/cjs/neo-components/Button.js +206 -0
  44. package/dist/cjs/neo-components/CircularProgress.js +92 -0
  45. package/dist/cjs/neo-components/Container.js +75 -0
  46. package/dist/cjs/neo-components/Dialog.js +441 -0
  47. package/dist/cjs/neo-components/Fab.js +237 -0
  48. package/dist/cjs/neo-components/FormControls.js +1057 -0
  49. package/dist/cjs/neo-components/Grid.js +256 -0
  50. package/dist/cjs/neo-components/IconButton.js +111 -0
  51. package/dist/cjs/neo-components/Input.js +493 -0
  52. package/dist/cjs/neo-components/Layout.js +1213 -0
  53. package/dist/cjs/neo-components/Misc.js +858 -0
  54. package/dist/cjs/neo-components/Navigation.js +1578 -0
  55. package/dist/cjs/neo-components/Paper.js +256 -0
  56. package/dist/cjs/neo-components/Stack.js +194 -0
  57. package/dist/cjs/neo-components/Stepper.js +291 -0
  58. package/dist/cjs/neo-components/Text.js +290 -0
  59. package/dist/cjs/neo-components/ThemeProvider.js +731 -0
  60. package/dist/cjs/neo-components/ToggleButton.js +223 -0
  61. package/dist/cjs/neo-components/createTheme.js +306 -0
  62. package/dist/cjs/neo-components/withSx.js +164 -0
  63. package/dist/cjs/neo-utils/sxToStyle.js +508 -0
  64. package/dist/esm/Blerp/BlerpImageRow.js +166 -46
  65. package/dist/esm/Blerp/BlerpSavePopup.js +35 -27
  66. package/dist/esm/Blerp/BlerpTitleRow.js +32 -13
  67. package/dist/esm/Blerp/BlerpTopRow.js +85 -16
  68. package/dist/esm/Blerp.js +4 -12
  69. package/dist/esm/BlerpAudioContextProvider.js +1 -2
  70. package/dist/esm/BlerpListView.js +313 -160
  71. package/dist/esm/BlerpListViewPremium.js +135 -109
  72. package/dist/esm/BlerpListViewSkeleton.js +60 -11
  73. package/dist/esm/BlerpSkeleton.js +32 -7
  74. package/dist/esm/CollectionCard.js +118 -38
  75. package/dist/esm/CollectionListViewPremium.js +367 -294
  76. package/dist/esm/CollectionSkeleton.js +73 -11
  77. package/dist/esm/Dropdown.js +260 -161
  78. package/dist/esm/EllipsisLoader.js +63 -18
  79. package/dist/esm/GroupCard.js +54 -46
  80. package/dist/esm/Icons/Icons.js +226 -367
  81. package/dist/esm/ImageEditor.js +240 -0
  82. package/dist/esm/ImageUpload.js +217 -0
  83. package/dist/esm/NewBlerp.js +282 -79
  84. package/dist/esm/NewBlerpTest.js +11 -781
  85. package/dist/esm/NewCollectionModal.js +289 -304
  86. package/dist/esm/PremiumCollectionCard.js +192 -451
  87. package/dist/esm/PurchaseModals/CheckoutModal.js +1 -1
  88. package/dist/esm/PurchaseModals/PremiumBlerpCheckoutModal.js +1 -1
  89. package/dist/esm/PurchaseModals/PremiumCollectionCheckoutModal.js +1 -1
  90. package/dist/esm/PurchaseModals/PremiumSubscriptionCheckoutModal.js +1 -1
  91. package/dist/esm/ReactionButtons.js +23 -8
  92. package/dist/esm/SnackbarContextProvider.js +196 -110
  93. package/dist/esm/Theme.js +187 -66
  94. package/dist/esm/Toggle.js +84 -29
  95. package/dist/esm/UserCard.js +1 -20
  96. package/dist/esm/UserPage/LibraryControls.js +159 -65
  97. package/dist/esm/UserPage/UserLibraryHeader.js +18 -10
  98. package/dist/esm/UserPage/UserProfileHeader.js +100 -79
  99. package/dist/esm/UsernameWithPopout.js +7 -4
  100. package/dist/esm/colors.js +11 -9
  101. package/dist/esm/helpers.js +122 -0
  102. package/dist/esm/icons.js +1 -1
  103. package/dist/esm/index.js +32 -2
  104. package/dist/esm/neo-components/Autocomplete.js +269 -0
  105. package/dist/esm/neo-components/BottomNavigation.js +109 -0
  106. package/dist/esm/neo-components/Box.js +36 -0
  107. package/dist/esm/neo-components/Button.js +194 -0
  108. package/dist/esm/neo-components/CircularProgress.js +81 -0
  109. package/dist/esm/neo-components/Container.js +63 -0
  110. package/dist/esm/neo-components/Dialog.js +423 -0
  111. package/dist/esm/neo-components/Fab.js +225 -0
  112. package/dist/esm/neo-components/FormControls.js +1041 -0
  113. package/dist/esm/neo-components/Grid.js +244 -0
  114. package/dist/esm/neo-components/IconButton.js +99 -0
  115. package/dist/esm/neo-components/Input.js +478 -0
  116. package/dist/esm/neo-components/Layout.js +1179 -0
  117. package/dist/esm/neo-components/Misc.js +840 -0
  118. package/dist/esm/neo-components/Navigation.js +1556 -0
  119. package/dist/esm/neo-components/Paper.js +243 -0
  120. package/dist/esm/neo-components/Stack.js +182 -0
  121. package/dist/esm/neo-components/Stepper.js +278 -0
  122. package/dist/esm/neo-components/Text.js +277 -0
  123. package/dist/esm/neo-components/ThemeProvider.js +718 -0
  124. package/dist/esm/neo-components/ToggleButton.js +214 -0
  125. package/dist/esm/neo-components/createTheme.js +297 -0
  126. package/dist/esm/neo-components/withSx.js +153 -0
  127. package/dist/esm/neo-utils/sxToStyle.js +502 -0
  128. package/package.json +19 -15
@@ -1,29 +1,229 @@
1
- import _taggedTemplateLiteral from '@babel/runtime/helpers/taggedTemplateLiteral';
2
- import DoNotDisturbRoundedIcon from '@mui/icons-material/DoNotDisturbRounded';
3
- import ExtensionRoundedIcon from '@mui/icons-material/ExtensionRounded';
4
- import FavoriteIcon from '@mui/icons-material/Favorite';
5
- import FavoriteBorderIcon from '@mui/icons-material/FavoriteBorder';
6
- import LayersRoundedIcon from '@mui/icons-material/LayersRounded';
7
- import PauseRoundedIcon from '@mui/icons-material/PauseRounded';
8
- import PlayArrowRoundedIcon from '@mui/icons-material/PlayArrowRounded';
9
- import WarningRoundedIcon from '@mui/icons-material/WarningRounded';
1
+ import _defineProperty from '@babel/runtime/helpers/defineProperty';
10
2
  import React, { useState, useRef } from 'react';
11
- import styled from 'styled-components';
12
3
  import { UsernameWithPopout } from './UsernameWithPopout.js';
13
- import { Stack, Text, Tooltip, Button } from './index.js';
14
- import LockRoundedIcon from '@mui/icons-material/LockRounded';
4
+ import { Box, Stack, Text, Tooltip, Button } from './index.js';
15
5
  import { DiamondIcon, ChannelPointsIcon, TwitchBitIcon, WalkonIcon } from './Icons/Icons.js';
16
6
 
17
- var _templateObject, _templateObject2, _templateObject3;
18
- const PremiumContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n overflow: hidden;\n min-width: 210px;\n max-width: 260px;\n width: 100%;\n max-height: 322px;\n flex: 1;\n min-height: 272px;\n aspect-ratio: 260 / 322;\n gap: 10px;\n border-radius: 18px;\n box-sizing: border-box;\n padding: 2px;\n position: relative;\n transition: 0.3s;\n"])), props => props.theme.colors.grey7);
19
- const Container = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-color: ", ";\n background: ", ";\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n position: relative;\n height: 100%;\n padding: 10px;\n border-radius: 17px;\n box-sizing: border-box;\n transition: 0.3s;\n"])), props => props.addToOpen ? props.theme.colors.grey5 : props.theme.colors.grey7, props => props.isPremium && "linear-gradient(308.34deg, rgba(83, 195, 219, 0.1) 6.23%, rgba(168, 57, 255, 0.1) 87.91%), linear-gradient(147.84deg, #2C3233 18.52%, #8A9193 27.81%, #1A1E1F 39.67%, #202425 62.87%, #414545 80.4%, #1A1E1F 93.3%), #2C3233");
20
- const HoverScrollText = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 100%;\n max-width: 280px;\n min-width: 190px;\n height: 23px;\n overflow: hidden;\n line-height: 30px;\n box-sizing: border-box;\n position: relative;\n margin: 10px 0 5px 0;\n cursor: pointer;\n & p {\n cursor: default;\n position: absolute;\n white-space: nowrap;\n transform: translateX(0);\n transition: 1s;\n }\n\n &:hover p {\n ", "\n text-decoration: underline;\n cursor: pointer;\n }\n"])), props => props.hover && "transform: translateX(calc(180px - 100%));");
21
- const FavoriteIconWithCounter = _ref => {
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
+
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 DoNotDisturbIcon = _ref => {
12
+ let {
13
+ sx
14
+ } = _ref;
15
+ return /*#__PURE__*/React.createElement("svg", {
16
+ width: "24",
17
+ height: "24",
18
+ viewBox: "0 0 24 24",
19
+ fill: "none",
20
+ xmlns: "http://www.w3.org/2000/svg",
21
+ style: sx
22
+ }, /*#__PURE__*/React.createElement("path", {
23
+ d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",
24
+ fill: "currentColor"
25
+ }));
26
+ };
27
+
28
+ const ExtensionIcon = _ref2 => {
29
+ let {
30
+ sx
31
+ } = _ref2;
32
+ return /*#__PURE__*/React.createElement("svg", {
33
+ width: "20",
34
+ height: "20",
35
+ viewBox: "0 0 24 24",
36
+ fill: "none",
37
+ xmlns: "http://www.w3.org/2000/svg",
38
+ style: sx
39
+ }, /*#__PURE__*/React.createElement("path", {
40
+ d: "M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z",
41
+ fill: "currentColor"
42
+ }));
43
+ };
44
+
45
+ const FavoriteIcon = _ref3 => {
46
+ let {
47
+ sx
48
+ } = _ref3;
49
+ return /*#__PURE__*/React.createElement("svg", {
50
+ width: "17",
51
+ height: "17",
52
+ viewBox: "0 0 24 24",
53
+ fill: "none",
54
+ xmlns: "http://www.w3.org/2000/svg",
55
+ style: sx
56
+ }, /*#__PURE__*/React.createElement("path", {
57
+ d: "M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",
58
+ fill: "currentColor"
59
+ }));
60
+ };
61
+
62
+ const FavoriteBorderIcon = _ref4 => {
63
+ let {
64
+ sx
65
+ } = _ref4;
66
+ return /*#__PURE__*/React.createElement("svg", {
67
+ width: "17",
68
+ height: "17",
69
+ viewBox: "0 0 24 24",
70
+ fill: "none",
71
+ xmlns: "http://www.w3.org/2000/svg",
72
+ style: sx
73
+ }, /*#__PURE__*/React.createElement("path", {
74
+ d: "M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z",
75
+ fill: "currentColor"
76
+ }));
77
+ };
78
+
79
+ const LayersIcon = _ref5 => {
80
+ let {
81
+ sx
82
+ } = _ref5;
83
+ return /*#__PURE__*/React.createElement("svg", {
84
+ width: "20",
85
+ height: "20",
86
+ viewBox: "0 0 24 24",
87
+ fill: "none",
88
+ xmlns: "http://www.w3.org/2000/svg",
89
+ style: sx
90
+ }, /*#__PURE__*/React.createElement("path", {
91
+ d: "M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z",
92
+ fill: "currentColor"
93
+ }));
94
+ };
95
+
96
+ const PauseIcon = _ref6 => {
97
+ let {
98
+ sx
99
+ } = _ref6;
100
+ return /*#__PURE__*/React.createElement("svg", {
101
+ width: "84",
102
+ height: "84",
103
+ viewBox: "0 0 24 24",
104
+ fill: "none",
105
+ xmlns: "http://www.w3.org/2000/svg",
106
+ style: sx
107
+ }, /*#__PURE__*/React.createElement("path", {
108
+ d: "M6 19h4V5H6v14zm8-14v14h4V5h-4z",
109
+ fill: "currentColor"
110
+ }));
111
+ };
112
+
113
+ const PlayArrowIcon = _ref7 => {
114
+ let {
115
+ sx
116
+ } = _ref7;
117
+ return /*#__PURE__*/React.createElement("svg", {
118
+ width: "84",
119
+ height: "84",
120
+ viewBox: "0 0 24 24",
121
+ fill: "none",
122
+ xmlns: "http://www.w3.org/2000/svg",
123
+ style: sx
124
+ }, /*#__PURE__*/React.createElement("path", {
125
+ d: "M8 5v14l11-7z",
126
+ fill: "currentColor"
127
+ }));
128
+ };
129
+
130
+ const WarningIcon = _ref8 => {
131
+ let {
132
+ sx
133
+ } = _ref8;
134
+ return /*#__PURE__*/React.createElement("svg", {
135
+ width: "24",
136
+ height: "24",
137
+ viewBox: "0 0 24 24",
138
+ fill: "none",
139
+ xmlns: "http://www.w3.org/2000/svg",
140
+ style: sx
141
+ }, /*#__PURE__*/React.createElement("path", {
142
+ d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z",
143
+ fill: "currentColor"
144
+ }));
145
+ };
146
+
147
+ const LockIcon = _ref9 => {
148
+ let {
149
+ sx
150
+ } = _ref9;
151
+ return /*#__PURE__*/React.createElement("svg", {
152
+ width: "24",
153
+ height: "24",
154
+ viewBox: "0 0 24 24",
155
+ fill: "none",
156
+ xmlns: "http://www.w3.org/2000/svg",
157
+ style: sx
158
+ }, /*#__PURE__*/React.createElement("path", {
159
+ d: "M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z",
160
+ fill: "currentColor"
161
+ }));
162
+ }; // Styles converted from styled-components to sx prop objects
163
+
164
+
165
+ const premiumContainerStyles = {
166
+ overflow: "hidden",
167
+ minWidth: "210px",
168
+ maxWidth: "260px",
169
+ width: "100%",
170
+ maxHeight: "322px",
171
+ flex: 1,
172
+ minHeight: "272px",
173
+ aspectRatio: "260 / 322",
174
+ gap: "10px",
175
+ borderRadius: "18px",
176
+ boxSizing: "border-box",
177
+ padding: "2px",
178
+ position: "relative",
179
+ transition: "0.3s"
180
+ };
181
+
182
+ const getContainerStyles = (addToOpen, isPremium) => ({
183
+ backgroundColor: addToOpen ? "grey5.main" : "grey7.main",
184
+ background: isPremium ? "linear-gradient(308.34deg, rgba(83, 195, 219, 0.1) 6.23%, rgba(168, 57, 255, 0.1) 87.91%), linear-gradient(147.84deg, #2C3233 18.52%, #8A9193 27.81%, #1A1E1F 39.67%, #202425 62.87%, #414545 80.4%, #1A1E1F 93.3%), #2C3233" : undefined,
185
+ display: "flex",
186
+ flexDirection: "column",
187
+ alignItems: "flex-start",
188
+ position: "relative",
189
+ height: "100%",
190
+ padding: "10px",
191
+ borderRadius: "17px",
192
+ boxSizing: "border-box",
193
+ transition: "0.3s"
194
+ });
195
+
196
+ const getHoverScrollTextStyles = shouldScroll => ({
197
+ width: "100%",
198
+ maxWidth: "280px",
199
+ minWidth: "190px",
200
+ height: "23px",
201
+ overflow: "hidden",
202
+ lineHeight: "30px",
203
+ boxSizing: "border-box",
204
+ position: "relative",
205
+ margin: "10px 0 5px 0",
206
+ cursor: "pointer",
207
+ "& p, & span": {
208
+ cursor: "default",
209
+ position: "absolute",
210
+ whiteSpace: "nowrap",
211
+ transform: "translateX(0)",
212
+ transition: "1s"
213
+ },
214
+ "&:hover p, &:hover span": {
215
+ transform: shouldScroll ? "translateX(calc(180px - 100%))" : undefined,
216
+ textDecoration: "underline",
217
+ cursor: "pointer"
218
+ }
219
+ });
220
+
221
+ const FavoriteIconWithCounter = _ref10 => {
22
222
  let {
23
223
  saved,
24
224
  count,
25
225
  onClick
26
- } = _ref;
226
+ } = _ref10;
27
227
  const formatter = Intl.NumberFormat("en", {
28
228
  notation: "compact"
29
229
  });
@@ -39,9 +239,7 @@ const FavoriteIconWithCounter = _ref => {
39
239
  transition: "0.3s",
40
240
  cursor: "pointer",
41
241
  opacity: 0.5,
42
- "&:hover": {
43
- opacity: 1
44
- }
242
+ color: "#ffffff"
45
243
  }
46
244
  }) : /*#__PURE__*/React.createElement(FavoriteBorderIcon, {
47
245
  sx: {
@@ -50,9 +248,7 @@ const FavoriteIconWithCounter = _ref => {
50
248
  transition: "0.3s",
51
249
  cursor: "pointer",
52
250
  opacity: 0.5,
53
- "&:hover": {
54
- opacity: 1
55
- }
251
+ color: "#ffffff"
56
252
  }
57
253
  }), /*#__PURE__*/React.createElement(Text, {
58
254
  sx: {
@@ -61,14 +257,14 @@ const FavoriteIconWithCounter = _ref => {
61
257
  }
62
258
  }, savedCount));
63
259
  };
64
- const AddedToIcons = _ref2 => {
260
+ const AddedToIcons = _ref11 => {
65
261
  var _item$soundEmotesCont, _item$channelPointsCo, _item$channelPointsBu, _item$whitelistContex, _item$walkOnChannelCo, _item$organizationalG;
66
262
 
67
263
  let {
68
264
  item,
69
265
  hovering,
70
266
  hide = false
71
- } = _ref2;
267
+ } = _ref11;
72
268
  return /*#__PURE__*/React.createElement(Stack, {
73
269
  direction: "row",
74
270
  sx: {
@@ -81,7 +277,7 @@ const AddedToIcons = _ref2 => {
81
277
  }
82
278
  }, (item === null || item === void 0 ? void 0 : (_item$soundEmotesCont = item.soundEmotesContext) === null || _item$soundEmotesCont === void 0 ? void 0 : _item$soundEmotesCont.hasAdded) && /*#__PURE__*/React.createElement(Tooltip, {
83
279
  title: "Added to Universal Extension"
84
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(ExtensionRoundedIcon, {
280
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(ExtensionIcon, {
85
281
  sx: {
86
282
  fontSize: "20px",
87
283
  filter: "drop-shadow(0px 0.972222px 1.35px rgba(0,0,0,0.8))"
@@ -109,7 +305,7 @@ const AddedToIcons = _ref2 => {
109
305
  }
110
306
  }))), (item === null || item === void 0 ? void 0 : (_item$organizationalG = item.organizationalGroupEdgesContext) === null || _item$organizationalG === void 0 ? void 0 : _item$organizationalG.length) > 0 && /*#__PURE__*/React.createElement(Tooltip, {
111
307
  title: "Added to Group"
112
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LayersRoundedIcon, {
308
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LayersIcon, {
113
309
  sx: {
114
310
  fontSize: "20px",
115
311
  filter: "drop-shadow(0px 0.972222px 1.35px rgba(0,0,0,0.8))"
@@ -117,12 +313,12 @@ const AddedToIcons = _ref2 => {
117
313
  }))));
118
314
  };
119
315
 
120
- const RatingInfoItem = _ref3 => {
316
+ const RatingInfoItem = _ref12 => {
121
317
  let {
122
318
  hovering,
123
319
  tooltipText,
124
320
  displayText
125
- } = _ref3;
321
+ } = _ref12;
126
322
  return /*#__PURE__*/React.createElement(Tooltip, {
127
323
  title: tooltipText
128
324
  }, /*#__PURE__*/React.createElement(Text, {
@@ -142,11 +338,11 @@ const RatingInfoItem = _ref3 => {
142
338
  }, displayText));
143
339
  };
144
340
 
145
- const RatingInfo = _ref4 => {
341
+ const RatingInfo = _ref13 => {
146
342
  let {
147
343
  bite,
148
344
  hovering
149
- } = _ref4;
345
+ } = _ref13;
150
346
  let ratingText = {
151
347
  tooltipText: "",
152
348
  text: ""
@@ -156,7 +352,6 @@ const RatingInfo = _ref4 => {
156
352
  var _bite$newAudienceRati, _bite$newAudienceRati2;
157
353
 
158
354
  if (!(bite !== null && bite !== void 0 && (_bite$newAudienceRati = bite.newAudienceRating) !== null && _bite$newAudienceRati !== void 0 && _bite$newAudienceRati.length)) {
159
- // unrated
160
355
  ratingText.tooltipText = "Hasn't Been Reviewed";
161
356
  ratingText.text = "UNRATED";
162
357
  }
@@ -170,34 +365,34 @@ const RatingInfo = _ref4 => {
170
365
  flexWrap: "wrap",
171
366
  marginTop: hovering ? "35px" : "0"
172
367
  }
173
- }, bite === null || bite === void 0 ? void 0 : (_bite$newAudienceRati2 = bite.newAudienceRating) === null || _bite$newAudienceRati2 === void 0 ? void 0 : _bite$newAudienceRati2.map(rating => {
368
+ }, bite === null || bite === void 0 ? void 0 : (_bite$newAudienceRati2 = bite.newAudienceRating) === null || _bite$newAudienceRati2 === void 0 ? void 0 : _bite$newAudienceRati2.map((rating, index) => {
174
369
  if (rating === "SAFE") {
175
- // nothing
176
- return /*#__PURE__*/React.createElement(React.Fragment, null);
370
+ return /*#__PURE__*/React.createElement(React.Fragment, {
371
+ key: index
372
+ });
177
373
  } else if (rating === "NSFW") {
178
- // NSFW
179
374
  ratingText.tooltipText = "Not Safe For Work";
180
375
  ratingText.text = "NSFW";
181
376
  } else if (rating === "EXPLICIT") {
182
- // EXPLICIT
183
377
  ratingText.tooltipText = "Explicit";
184
378
  ratingText.text = "EXPLICIT";
185
379
  } else if (rating === "DMCA") {
186
- // DMCA
187
380
  ratingText.tooltipText = "DMCA";
188
381
  ratingText.text = "DMCA";
189
382
  } else {
190
- return /*#__PURE__*/React.createElement(React.Fragment, null);
383
+ return /*#__PURE__*/React.createElement(React.Fragment, {
384
+ key: index
385
+ });
191
386
  }
192
387
 
193
388
  return /*#__PURE__*/React.createElement(RatingInfoItem, {
389
+ key: index,
194
390
  tooltipText: ratingText.tooltipText,
195
391
  displayText: ratingText.text,
196
392
  hovering: hovering
197
393
  });
198
394
  }));
199
395
  } else if (bite !== null && bite !== void 0 && bite.audienceRating) {
200
- // what you have now
201
396
  if ((bite === null || bite === void 0 ? void 0 : bite.audienceRating) === "UR") {
202
397
  ratingText.tooltipText = "Hasn't Been Reviewed";
203
398
  ratingText.text = "UNRATED";
@@ -209,7 +404,6 @@ const RatingInfo = _ref4 => {
209
404
  ratingText.text = null;
210
405
  }
211
406
  } else {
212
- // unrated
213
407
  ratingText.tooltipText = "Hasn't Been Reviewed";
214
408
  ratingText.text = "UNRATED";
215
409
  }
@@ -236,20 +430,20 @@ const RatingInfo = _ref4 => {
236
430
  }));
237
431
  };
238
432
 
239
- const ReportedWarning = _ref5 => {
433
+ const ReportedWarning = _ref14 => {
240
434
  let {
241
435
  showWarning,
242
436
  blacklisted,
243
437
  saved,
244
438
  count,
245
439
  onClick
246
- } = _ref5;
440
+ } = _ref14;
247
441
  const [show, setShow] = useState(showWarning);
248
442
  const [hovering, setHovering] = useState(false);
249
443
 
250
444
  const renderInfo = () => {
251
445
  if (blacklisted) {
252
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DoNotDisturbRoundedIcon, {
446
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DoNotDisturbIcon, {
253
447
  sx: {
254
448
  marginBottom: "20px"
255
449
  }
@@ -271,7 +465,7 @@ const ReportedWarning = _ref5 => {
271
465
  }, "View"));
272
466
  }
273
467
 
274
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(WarningRoundedIcon, {
468
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(WarningIcon, {
275
469
  sx: {
276
470
  marginBottom: "20px"
277
471
  }
@@ -338,7 +532,7 @@ const ReportedWarning = _ref5 => {
338
532
  })), renderInfo());
339
533
  };
340
534
 
341
- const BlerpTopRow = _ref6 => {
535
+ const BlerpTopRow = _ref15 => {
342
536
  let {
343
537
  bite,
344
538
  hovering,
@@ -350,7 +544,7 @@ const BlerpTopRow = _ref6 => {
350
544
  renderAddContentButton,
351
545
  hoveringAddTo,
352
546
  setHovering
353
- } = _ref6;
547
+ } = _ref15;
354
548
  return /*#__PURE__*/React.createElement(Stack, {
355
549
  direction: "row",
356
550
  justifyContent: "space-between",
@@ -391,8 +585,8 @@ const BlerpTopRow = _ref6 => {
391
585
  }));
392
586
  };
393
587
 
394
- const NewBlerp = _ref7 => {
395
- var _bite$whitelistContex, _bite$channelPointsCo, _bite$walkOnChannelCo, _bite$soundEmotesCont, _bite$channelPointsBu, _bite$blacklistContex, _bite$blacklistContex2, _bite$image, _bite$image$original, _titleRef$current, _titleRef$current$get;
588
+ const NewBlerp = _ref16 => {
589
+ var _bite$whitelistContex, _bite$channelPointsCo, _bite$walkOnChannelCo, _bite$soundEmotesCont, _bite$channelPointsBu, _bite$blacklistContex, _titleRef$current, _titleRef$current$get, _bite$blacklistContex2, _bite$image, _bite$image$original;
396
590
 
397
591
  let {
398
592
  Waveform,
@@ -420,7 +614,7 @@ const NewBlerp = _ref7 => {
420
614
  renderThreeDot,
421
615
  isOwner,
422
616
  defaultHovering = false
423
- } = _ref7;
617
+ } = _ref16;
424
618
  const [previewed, setPreviewed] = useState(false);
425
619
  const [hovering, setHovering] = useState(defaultHovering);
426
620
  const [hoveringAddTo, setHoveringAddTo] = useState(defaultHovering);
@@ -449,9 +643,9 @@ const NewBlerp = _ref7 => {
449
643
  width: "94.3661",
450
644
  height: "86.3455",
451
645
  filterUnits: "userSpaceOnUse",
452
- "color-interpolation-filters": "sRGB"
646
+ colorInterpolationFilters: "sRGB"
453
647
  }, /*#__PURE__*/React.createElement("feFlood", {
454
- "flood-opacity": "0",
648
+ floodOpacity: "0",
455
649
  result: "BackgroundImageFix"
456
650
  }), /*#__PURE__*/React.createElement("feColorMatrix", {
457
651
  in: "SourceAlpha",
@@ -481,14 +675,14 @@ const NewBlerp = _ref7 => {
481
675
  }
482
676
 
483
677
  if (playState === "playing") {
484
- return /*#__PURE__*/React.createElement(PauseRoundedIcon, {
678
+ return /*#__PURE__*/React.createElement(PauseIcon, {
485
679
  sx: {
486
680
  fontSize: "84px"
487
681
  }
488
682
  });
489
683
  }
490
684
 
491
- return /*#__PURE__*/React.createElement(PlayArrowRoundedIcon, {
685
+ return /*#__PURE__*/React.createElement(PlayArrowIcon, {
492
686
  sx: {
493
687
  fontSize: "84px"
494
688
  }
@@ -501,14 +695,25 @@ const NewBlerp = _ref7 => {
501
695
 
502
696
  if (!bite) {
503
697
  return /*#__PURE__*/React.createElement(React.Fragment, null);
504
- }
698
+ } // Calculate if title should scroll on hover
699
+
700
+
701
+ const shouldScrollTitle = ((_titleRef$current = titleRef.current) === null || _titleRef$current === void 0 ? void 0 : (_titleRef$current$get = _titleRef$current.getBoundingClientRect()) === null || _titleRef$current$get === void 0 ? void 0 : _titleRef$current$get.width) > 190; // Calculate premium container background
702
+
703
+ const getPremiumContainerBackground = () => {
704
+ if (addedToPlace) return "white";
705
+ if (bite !== null && bite !== void 0 && bite.isPremium) return "linear-gradient(315deg, #a839ff 0%, #53c3db 100%)";
706
+ return "grey7.main";
707
+ };
505
708
 
506
709
  if (!isOwner && ((bite === null || bite === void 0 ? void 0 : bite.visibility) === "PRIVATE" || (bite === null || bite === void 0 ? void 0 : bite.redactionType) === "PRIVATE")) {
507
- return /*#__PURE__*/React.createElement(PremiumContainer, {
508
- style: {
509
- background: addedToPlace ? "white" : (bite === null || bite === void 0 ? void 0 : bite.isPremium) && "linear-gradient(315deg, #a839ff 0%, #53c3db 100%)"
510
- }
511
- }, /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(Stack, {
710
+ return /*#__PURE__*/React.createElement(Box, {
711
+ sx: _objectSpread(_objectSpread({}, premiumContainerStyles), {}, {
712
+ background: getPremiumContainerBackground()
713
+ })
714
+ }, /*#__PURE__*/React.createElement(Box, {
715
+ sx: getContainerStyles(false, false)
716
+ }, /*#__PURE__*/React.createElement(Stack, {
512
717
  sx: {
513
718
  backgroundColor: "grey4.main",
514
719
  width: "100%",
@@ -521,13 +726,13 @@ const NewBlerp = _ref7 => {
521
726
  alignItems: "center",
522
727
  justifyContent: "center"
523
728
  }
524
- }, /*#__PURE__*/React.createElement(LockRoundedIcon, null), /*#__PURE__*/React.createElement(Text, null, "Private Blerp"))));
729
+ }, /*#__PURE__*/React.createElement(LockIcon, null), /*#__PURE__*/React.createElement(Text, null, "Private Blerp"))));
525
730
  }
526
731
 
527
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PremiumContainer, {
528
- style: {
529
- background: addedToPlace ? "white" : (bite === null || bite === void 0 ? void 0 : bite.isPremium) && "linear-gradient(315deg, #a839ff 0%, #53c3db 100%)"
530
- }
732
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
733
+ sx: _objectSpread(_objectSpread({}, premiumContainerStyles), {}, {
734
+ background: getPremiumContainerBackground()
735
+ })
531
736
  }, /*#__PURE__*/React.createElement(ReportedWarning, {
532
737
  showWarning: showWarning,
533
738
  bite: bite,
@@ -535,9 +740,8 @@ const NewBlerp = _ref7 => {
535
740
  saved: bite === null || bite === void 0 ? void 0 : bite.saved,
536
741
  count: bite === null || bite === void 0 ? void 0 : bite.totalSaveCount,
537
742
  onClick: onFavoriteClick
538
- }), /*#__PURE__*/React.createElement(Container, {
539
- isPremium: bite === null || bite === void 0 ? void 0 : bite.isPremium,
540
- addToOpen: addToOpen
743
+ }), /*#__PURE__*/React.createElement(Box, {
744
+ sx: getContainerStyles(addToOpen, bite === null || bite === void 0 ? void 0 : bite.isPremium)
541
745
  }, /*#__PURE__*/React.createElement(Stack, {
542
746
  sx: {
543
747
  backgroundImage: "url(".concat(bite === null || bite === void 0 ? void 0 : (_bite$image = bite.image) === null || _bite$image === void 0 ? void 0 : (_bite$image$original = _bite$image.original) === null || _bite$image$original === void 0 ? void 0 : _bite$image$original.url, ")"),
@@ -571,7 +775,7 @@ const NewBlerp = _ref7 => {
571
775
  play({
572
776
  bite
573
777
  });
574
- setPreviewed(true); // play({ bite });
778
+ setPreviewed(true);
575
779
  },
576
780
  sx: {
577
781
  width: "100%",
@@ -606,8 +810,8 @@ const NewBlerp = _ref7 => {
606
810
  }
607
811
  }, renderPlayStateIcon()), Waveform({
608
812
  hovering: hovering
609
- })), /*#__PURE__*/React.createElement(HoverScrollText, {
610
- hover: ((_titleRef$current = titleRef.current) === null || _titleRef$current === void 0 ? void 0 : (_titleRef$current$get = _titleRef$current.getBoundingClientRect()) === null || _titleRef$current$get === void 0 ? void 0 : _titleRef$current$get.width) > 190,
813
+ })), /*#__PURE__*/React.createElement(Box, {
814
+ sx: getHoverScrollTextStyles(shouldScrollTitle),
611
815
  onClick: onTitleClick
612
816
  }, /*#__PURE__*/React.createElement("a", {
613
817
  href: "/soundbites/".concat(bite._id),
@@ -639,7 +843,7 @@ const NewBlerp = _ref7 => {
639
843
  sx: {
640
844
  width: "100%",
641
845
  justifyContent: "start",
642
- postion: "relative"
846
+ position: "relative"
643
847
  }
644
848
  }, (bite === null || bite === void 0 ? void 0 : bite.isPremium) && /*#__PURE__*/React.createElement(DiamondIcon, {
645
849
  sx: {
@@ -664,7 +868,7 @@ const NewBlerp = _ref7 => {
664
868
  }), /*#__PURE__*/React.createElement("path", {
665
869
  d: "M24.0435 17.3064C22.6698 13.7364 17.7785 13.5439 18.9598 8.35512C19.0473 7.97012 18.636 7.67262 18.3035 7.87387C15.1273 9.74637 12.8435 13.5001 14.7598 18.4176C14.9173 18.8201 14.4448 19.1964 14.1035 18.9339C12.5198 17.7351 12.3535 16.0114 12.4935 14.7776C12.546 14.3226 11.951 14.1039 11.6973 14.4801C11.1023 15.3901 10.4985 16.8601 10.4985 19.0739C10.831 23.9739 14.9698 25.4789 16.4573 25.6714C18.5835 25.9426 20.8848 25.5489 22.5385 24.0351C24.3585 22.3464 25.0235 19.6514 24.0435 17.3064ZM15.9235 21.7076C17.1835 21.4014 17.831 20.4914 18.006 19.6864C18.2948 18.4351 17.166 17.2101 17.9273 15.2326C18.216 16.8689 20.8885 17.8926 20.8885 19.6776C20.8585 21.8914 18.461 23.7901 15.9235 21.7076Z",
666
870
  fill: "#FD295C",
667
- "fill-opacity": "0.5"
871
+ fillOpacity: "0.5"
668
872
  })), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("filter", {
669
873
  id: "filter0_d_808_2472",
670
874
  x: "0.498536",
@@ -672,9 +876,9 @@ const NewBlerp = _ref7 => {
672
876
  width: "33.9966",
673
877
  height: "37.9418",
674
878
  filterUnits: "userSpaceOnUse",
675
- "color-interpolation-filters": "sRGB"
879
+ colorInterpolationFilters: "sRGB"
676
880
  }, /*#__PURE__*/React.createElement("feFlood", {
677
- "flood-opacity": "0",
881
+ floodOpacity: "0",
678
882
  result: "BackgroundImageFix"
679
883
  }), /*#__PURE__*/React.createElement("feColorMatrix", {
680
884
  in: "SourceAlpha",
@@ -702,7 +906,7 @@ const NewBlerp = _ref7 => {
702
906
  result: "shape"
703
907
  })))), /*#__PURE__*/React.createElement(FavoriteIconWithCounter, {
704
908
  saved: bite === null || bite === void 0 ? void 0 : bite.saved,
705
- count: bite === null || bite === void 0 ? void 0 : bite.totalSaveCount,
909
+ count: (bite === null || bite === void 0 ? void 0 : bite.totalSaveCount) || 0,
706
910
  onClick: onFavoriteClick
707
911
  }), /*#__PURE__*/React.createElement(UsernameWithPopout, {
708
912
  onUsernameClick: onUsernameClick,
@@ -719,5 +923,4 @@ const NewBlerp = _ref7 => {
719
923
  }, (((bite === null || bite === void 0 ? void 0 : bite.audioDuration) || 1) / 1000).toFixed(0), "s")))));
720
924
  };
721
925
 
722
- export default NewBlerp;
723
- export { AddedToIcons, FavoriteIconWithCounter, NewBlerp };
926
+ export { AddedToIcons, FavoriteIconWithCounter, NewBlerp, NewBlerp as default };