@blerp/design 1.3.16 → 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 +98 -52
  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 +39 -3
  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,26 +1,50 @@
1
- import _taggedTemplateLiteral from '@babel/runtime/helpers/taggedTemplateLiteral';
2
- import { PauseCircleOutlineRounded } from '@mui/icons-material';
3
- import BookmarkAddOutlinedIcon from '@mui/icons-material/BookmarkAddOutlined';
4
- import BookmarkOutlinedIcon from '@mui/icons-material/BookmarkOutlined';
5
- import '@mui/icons-material/MoreHorizRounded';
6
- import 'prop-types';
7
- import React, { useState, useContext } from 'react';
8
- import { usePalette } from 'react-palette';
9
- import styled, { keyframes, ThemeContext } from 'styled-components';
1
+ import _extends from '@babel/runtime/helpers/extends';
2
+ import _defineProperty from '@babel/runtime/helpers/defineProperty';
3
+ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
4
+ import React, { useState } from 'react';
10
5
  import { useWindowSize } from './ScreenSizeHook.js';
11
6
  import { PlayOutlineIcon, OpenLockIcon, DiamondIcon } from './Icons/Icons.js';
12
- import LockRoundedIcon from '@mui/icons-material/LockRounded';
13
7
  import { Box, Stack, Text, Tooltip, IconButton } from './index.js';
8
+ import { useCustomPalette } from './helpers.js';
9
+ import { useBlerpTheme } from './Theme.js';
14
10
 
15
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
16
- const BlerpImage = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 150px;\n width: 150px;\n background-image: url(", ");\n background-size: cover;\n border-radius: 50%;\n position: relative;\n transition: 0.2s;\n\n &:hover {\n transform: scale(1.1);\n }\n"])), props => props.url);
17
- keyframes(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n 0% {\n transform: scale(0);\n }\n\n 100%{\n transform: scale(1);\n }\n"])));
18
- const SaveContainer = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n /* position: absolute; */\n top: 0;\n right: 0;\n width: 25px;\n height: 25px;\n opacity: 1;\n border-radius: 50%;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 5px;\n transition: 0.3s;\n background-color: ", ";\n\n &:hover {\n background-color: ", ";\n cursor: pointer;\n }\n\n &:hover svg {\n color: ", ";\n }\n"])), props => "".concat(props.theme.colors.notBlack, "8a"), props => props.theme.colors.seafoam, props => props.theme.colors.override);
19
- const BlerpImageScrim = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n height: 150px;\n width: 150px;\n background-color: ", "10;\n /* position: absolute; */\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n transition: 0.4s;\n\n &:hover {\n background-color: ", "98;\n }\n"])), props => props.theme.colors.notBlackOverride, props => props.theme.colors.notBlackOverride);
20
- const PremiumPill = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n border-radius: 20px;\n height: 25px;\n width: 75px;\n padding: 0 4px;\n margin: 0 0 0 8px;\n cursor: pointer;\n\n background-color: ", ";\n\n &:hover {\n background-color: ", ";\n cursor: pointer;\n }\n"])), props => props.isLocked ? "".concat(props.theme.colors.notBlack, "8a") : "".concat(props.theme.colors.notBlack, "9a"), props => props.theme.colors.seafoam);
21
- styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n border-radius: 50%;\n width: 30px;\n height: 30px;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 8px;\n transition: 0.2s;\n margin-right: 0;\n cursor: pointer;\n background-color: ", ";\n\n &:hover {\n background-color: ", ";\n }\n"])), props => props.active ? props.theme.colors.ibisRed : props.theme.colors.grey5, props => props.theme.colors.ibisRed);
22
- styled.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n margin: 5px 0;\n"])));
23
- const BlerpListViewPremium = _ref => {
11
+ const _excluded = ["path", "sx", "size"];
12
+
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
+
15
+ 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; }
16
+
17
+ const Icon = _ref => {
18
+ let {
19
+ path,
20
+ sx,
21
+ size = "24px"
22
+ } = _ref,
23
+ props = _objectWithoutProperties(_ref, _excluded);
24
+
25
+ return /*#__PURE__*/React.createElement(Box, _extends({
26
+ component: "svg",
27
+ viewBox: "0 0 24 24",
28
+ width: size,
29
+ height: size,
30
+ fill: "currentColor",
31
+ sx: _objectSpread({
32
+ display: 'inline-block',
33
+ flexShrink: 0
34
+ }, sx)
35
+ }, props), /*#__PURE__*/React.createElement("path", {
36
+ d: path
37
+ }));
38
+ };
39
+
40
+ const paths = {
41
+ pauseCircle: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 14.5c-.83 0-1.5-.67-1.5-1.5v-6c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v6c0 .83-.67 1.5-1.5 1.5zm-4 0c-.83 0-1.5-.67-1.5-1.5v-6c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v6c0 .83-.67 1.5-1.5 1.5zm8 0c-.83 0-1.5-.67-1.5-1.5v-6c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v6c0 .83-.67 1.5-1.5 1.5z",
42
+ bookmark: "M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z",
43
+ bookmarkAdd: "M17 11V3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V11h-2zm4-2h-2v2h-2V9h-2V7h2V5h2v2h2v2z",
44
+ lock: "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-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z",
45
+ more: "M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"
46
+ };
47
+ const BlerpListViewPremium = _ref2 => {
24
48
  var _bite$image, _bite$image$original, _bite$image2, _bite$image2$original;
25
49
 
26
50
  let {
@@ -42,24 +66,19 @@ const BlerpListViewPremium = _ref => {
42
66
  isLinkTitle,
43
67
  isLocked,
44
68
  fluid,
45
- props,
46
69
  backgroundColor,
47
70
  hoverColor,
48
71
  isPremium,
49
72
  handleClickLock,
50
73
  handleClickPremium
51
- } = _ref;
52
- const [openSave, setOpenSave] = useState(false);
74
+ } = _ref2;
53
75
  const {
54
- loading,
55
- data,
56
- error
57
- } = usePalette(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);
58
- const theme = useContext(ThemeContext);
76
+ data
77
+ } = useCustomPalette(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);
78
+ const theme = useBlerpTheme();
59
79
  const size = useWindowSize();
60
80
  const [isBlerpHovered, setIsBlerpHovered] = useState(false);
61
81
  const [actionButtonHovered, setActionButtonHovered] = useState(false);
62
-
63
82
  let sizeParams;
64
83
  const smallSize = {
65
84
  width: 300,
@@ -67,9 +86,6 @@ const BlerpListViewPremium = _ref => {
67
86
  smallFontSize: "12px",
68
87
  fontSize: "16px",
69
88
  imageSize: "40px",
70
- reactionSpacing: 1,
71
- reactionPadding: "3px",
72
- reactionSize: "20px",
73
89
  buttonSize: "small"
74
90
  };
75
91
  const mediumSize = {
@@ -78,9 +94,6 @@ const BlerpListViewPremium = _ref => {
78
94
  smallFontSize: "14px",
79
95
  fontSize: "18px",
80
96
  imageSize: "48px",
81
- reactionSpacing: 1,
82
- reactionPadding: "3px",
83
- reactionSize: "23px",
84
97
  buttonSize: "medium"
85
98
  };
86
99
  const largeSize = {
@@ -89,9 +102,6 @@ const BlerpListViewPremium = _ref => {
89
102
  smallFontSize: "26px",
90
103
  fontSize: "20px",
91
104
  imageSize: "56px",
92
- reactionSpacing: 1,
93
- reactionPadding: "5px",
94
- reactionSize: "30px",
95
105
  buttonFontSize: "large"
96
106
  };
97
107
 
@@ -103,42 +113,28 @@ const BlerpListViewPremium = _ref => {
103
113
  smallFontSize: "14px",
104
114
  fontSize: "18px",
105
115
  imageSize: "48px",
106
- reactionSpacing: 1,
107
- reactionPadding: "3px",
108
- reactionSize: "23px",
109
116
  buttonSize: "medium"
110
117
  };
111
118
  } else if (size.width <= 400) {
112
119
  sizeParams = smallSize;
113
120
  } else if (size.width <= 900) {
114
121
  sizeParams = mediumSize;
115
- } else if (size.width > 900) {
122
+ } else {
116
123
  sizeParams = largeSize;
117
124
  }
118
125
  } else {
119
- if (variantSize === "small") {
120
- sizeParams = smallSize;
121
- } else if (variantSize === "medium") {
122
- sizeParams = mediumSize;
123
- } else if (variantSize === "large") {
124
- sizeParams = largeSize;
125
- }
126
+ sizeParams = variantSize === "small" ? smallSize : variantSize === "medium" ? mediumSize : largeSize;
126
127
  }
127
128
 
128
129
  return /*#__PURE__*/React.createElement(Box, {
129
- onMouseEnter: e => setIsBlerpHovered(true),
130
- onMouseLeave: e => setIsBlerpHovered(false),
130
+ onMouseEnter: () => setIsBlerpHovered(true),
131
+ onMouseLeave: () => setIsBlerpHovered(false),
131
132
  sx: {
132
133
  width: sizeParams.width,
133
134
  position: "relative",
134
135
  minWidth: fluid && "300px",
135
136
  borderRadius: "8px",
136
- border: "2px transparent",
137
- backgroundImage: "white",
138
- backgroundOrigin: "border-box",
139
- backgroundClip: "content-box, border-box",
140
137
  boxShadow: "2px 2px 4px 0px #999999a1;",
141
- // overflow: "hidden",
142
138
  "&:hover": {
143
139
  transition: "0.3s",
144
140
  bgcolor: hoverColor ? hoverColor : "grey2.main"
@@ -147,10 +143,10 @@ const BlerpListViewPremium = _ref => {
147
143
  }, /*#__PURE__*/React.createElement(Stack, {
148
144
  sx: {
149
145
  position: "absolute",
150
- top: "0",
151
- bottom: "0",
152
- left: "0",
153
- right: "0",
146
+ top: 0,
147
+ bottom: 0,
148
+ left: 0,
149
+ right: 0,
154
150
  borderRadius: "8px",
155
151
  background: backgroundColor ? backgroundColor : data ? "linear-gradient(90deg, ".concat(data.vibrant, ", ").concat(theme.colors.grey5Override, ")") : "notBlack.main",
156
152
  transition: "opacity .15s ease-in-out",
@@ -165,15 +161,11 @@ const BlerpListViewPremium = _ref => {
165
161
  width: "calc(100% - 4px)",
166
162
  height: sizeParams.height,
167
163
  display: "flex",
168
- flexDirection: "row",
169
164
  alignItems: "center",
170
165
  justifyContent: "space-between",
171
166
  borderRadius: "8px",
172
- border: "2px solid transparent",
173
- borderRightWidth: "0px",
174
- borderLeftWidth: "0px",
175
167
  margin: "0 auto",
176
- borderBottomColor: extraInfoComponent && theme.colors.grey3,
168
+ borderBottom: extraInfoComponent ? "1px solid ".concat(theme.colors.grey3) : "none",
177
169
  transition: "0.3s",
178
170
  position: "relative"
179
171
  }
@@ -185,27 +177,43 @@ const BlerpListViewPremium = _ref => {
185
177
  cursor: "pointer",
186
178
  minWidth: "30%"
187
179
  }
188
- }, /*#__PURE__*/React.createElement(BlerpImage, {
189
- style: {
190
- width: sizeParams.imageSize,
191
- height: sizeParams.imageSize
192
- },
193
- url: bite === null || bite === void 0 ? void 0 : (_bite$image2 = bite.image) === null || _bite$image2 === void 0 ? void 0 : (_bite$image2$original = _bite$image2.original) === null || _bite$image2$original === void 0 ? void 0 : _bite$image2$original.url
194
- }, /*#__PURE__*/React.createElement(BlerpImageScrim, {
195
- style: {
180
+ }, /*#__PURE__*/React.createElement(Box, {
181
+ sx: {
182
+ height: sizeParams.imageSize,
196
183
  width: sizeParams.imageSize,
197
- height: sizeParams.imageSize
198
- },
184
+ backgroundImage: "url(".concat(bite === null || bite === void 0 ? void 0 : (_bite$image2 = bite.image) === null || _bite$image2 === void 0 ? void 0 : (_bite$image2$original = _bite$image2.original) === null || _bite$image2$original === void 0 ? void 0 : _bite$image2$original.url, ")"),
185
+ backgroundSize: "cover",
186
+ borderRadius: "50%",
187
+ position: "relative",
188
+ transition: "0.2s",
189
+ "&:hover": {
190
+ transform: "scale(1.1)"
191
+ }
192
+ }
193
+ }, /*#__PURE__*/React.createElement(Box, {
199
194
  onClick: e => {
200
195
  if (handleClickPlay) {
201
196
  e.stopPropagation();
202
197
  handleClickPlay();
203
198
  }
199
+ },
200
+ sx: {
201
+ height: sizeParams.imageSize,
202
+ width: sizeParams.imageSize,
203
+ backgroundColor: "".concat(theme.colors.notBlackOverride, "10"),
204
+ display: "flex",
205
+ justifyContent: "center",
206
+ alignItems: "center",
207
+ borderRadius: "50%",
208
+ transition: "0.4s",
209
+ "&:hover": {
210
+ backgroundColor: "".concat(theme.colors.notBlackOverride, "98")
211
+ }
204
212
  }
205
- }, playingState === "playing" ? /*#__PURE__*/React.createElement(PauseCircleOutlineRounded, {
213
+ }, playingState === "playing" ? /*#__PURE__*/React.createElement(Icon, {
214
+ path: paths.pauseCircle,
215
+ size: "30px",
206
216
  sx: {
207
- width: "30px",
208
- height: "30px",
209
217
  color: "white.override"
210
218
  }
211
219
  }) : /*#__PURE__*/React.createElement(PlayOutlineIcon, {
@@ -269,7 +277,6 @@ const BlerpListViewPremium = _ref => {
269
277
  marginLeft: "10px",
270
278
  width: "100%",
271
279
  color: "white.override",
272
- sx: {},
273
280
  onClick: e => {
274
281
  if (handleSubtitleClick) {
275
282
  e.stopPropagation();
@@ -279,18 +286,31 @@ const BlerpListViewPremium = _ref => {
279
286
  }, biteSubtitle))), /*#__PURE__*/React.createElement(Stack, {
280
287
  direction: "row",
281
288
  alignItems: "center"
282
- }, primaryActionButton ? primaryActionButton : isLocked ? /*#__PURE__*/React.createElement(SaveContainer, {
283
- isLocked: isLocked,
284
- isBlerpHovered: isBlerpHovered,
289
+ }, primaryActionButton ? primaryActionButton : isLocked ? /*#__PURE__*/React.createElement(Box, {
285
290
  onClick: e => {
286
291
  e.stopPropagation();
287
-
288
- if (handleClickLock) {
289
- handleClickLock();
290
- }
292
+ if (handleClickLock) handleClickLock();
291
293
  },
292
294
  onMouseEnter: () => setActionButtonHovered(true),
293
- onMouseLeave: () => setActionButtonHovered(false)
295
+ onMouseLeave: () => setActionButtonHovered(false),
296
+ sx: {
297
+ width: "25px",
298
+ height: "25px",
299
+ borderRadius: "50%",
300
+ display: "flex",
301
+ justifyContent: "center",
302
+ alignItems: "center",
303
+ padding: "5px",
304
+ transition: "0.3s",
305
+ backgroundColor: "".concat(theme.colors.notBlack, "8a"),
306
+ "&:hover": {
307
+ backgroundColor: theme.colors.seafoam,
308
+ cursor: "pointer"
309
+ },
310
+ "&:hover svg": {
311
+ color: theme.colors.override
312
+ }
313
+ }
294
314
  }, /*#__PURE__*/React.createElement(Stack, {
295
315
  sx: {
296
316
  position: "relative",
@@ -305,21 +325,34 @@ const BlerpListViewPremium = _ref => {
305
325
  sx: {
306
326
  fontSize: "22px",
307
327
  position: "relative",
308
- bottom: "2px",
309
- left: "0px"
328
+ bottom: "2px"
310
329
  }
311
- }) : /*#__PURE__*/React.createElement(LockRoundedIcon, {
330
+ }) : /*#__PURE__*/React.createElement(Icon, {
331
+ path: paths.lock,
332
+ size: "16px",
312
333
  sx: {
313
- fontSize: "16px",
314
334
  position: "relative",
315
335
  bottom: "1px"
316
336
  }
317
- })))) : /*#__PURE__*/React.createElement(React.Fragment, null), !!handleClickPremium && /*#__PURE__*/React.createElement(PremiumPill, {
318
- isLocked: isLocked,
319
- isBlerpHovered: isBlerpHovered,
337
+ })))) : null, !!handleClickPremium && /*#__PURE__*/React.createElement(Box, {
320
338
  onClick: e => {
321
339
  e.stopPropagation();
322
340
  handleClickPremium();
341
+ },
342
+ sx: {
343
+ display: "flex",
344
+ alignItems: "center",
345
+ justifyContent: "center",
346
+ borderRadius: "20px",
347
+ height: "25px",
348
+ width: "75px",
349
+ padding: "0 4px",
350
+ margin: "0 0 0 8px",
351
+ cursor: "pointer",
352
+ backgroundColor: isLocked ? "".concat(theme.colors.notBlack, "8a") : "".concat(theme.colors.notBlack, "9a"),
353
+ "&:hover": {
354
+ backgroundColor: theme.colors.seafoam
355
+ }
323
356
  }
324
357
  }, /*#__PURE__*/React.createElement(DiamondIcon, {
325
358
  sx: {
@@ -336,12 +369,7 @@ const BlerpListViewPremium = _ref => {
336
369
  }, "Premium")), secondaryActionButton || bite !== null && bite !== void 0 && bite.saved ? /*#__PURE__*/React.createElement(IconButton, {
337
370
  onClick: e => {
338
371
  e.stopPropagation();
339
-
340
- if (handleClickUnsave) {
341
- handleClickUnsave();
342
- }
343
-
344
- setOpenSave(true);
372
+ if (handleClickUnsave) handleClickUnsave();
345
373
  },
346
374
  sx: {
347
375
  backgroundColor: "white.override",
@@ -355,19 +383,16 @@ const BlerpListViewPremium = _ref => {
355
383
  color: "white.override"
356
384
  }
357
385
  }
358
- }, /*#__PURE__*/React.createElement(BookmarkOutlinedIcon, {
386
+ }, /*#__PURE__*/React.createElement(Icon, {
387
+ path: paths.bookmark,
388
+ size: "24px",
359
389
  sx: {
360
390
  color: "starling.main"
361
391
  }
362
392
  })) : /*#__PURE__*/React.createElement(IconButton, {
363
393
  onClick: e => {
364
394
  e.stopPropagation();
365
-
366
- if (handleClickSave) {
367
- handleClickSave();
368
- }
369
-
370
- setOpenSave(true);
395
+ if (handleClickSave) handleClickSave();
371
396
  },
372
397
  sx: {
373
398
  backgroundColor: "white.override",
@@ -380,12 +405,13 @@ const BlerpListViewPremium = _ref => {
380
405
  color: "white.override"
381
406
  }
382
407
  }
383
- }, /*#__PURE__*/React.createElement(BookmarkAddOutlinedIcon, {
408
+ }, /*#__PURE__*/React.createElement(Icon, {
409
+ path: paths.bookmarkAdd,
410
+ size: "24px",
384
411
  sx: {
385
412
  color: "starling.main"
386
413
  }
387
414
  })))), extraInfoComponent && extraInfoComponent);
388
415
  };
389
416
 
390
- export default BlerpListViewPremium;
391
- export { BlerpListViewPremium };
417
+ export { BlerpListViewPremium, BlerpListViewPremium as default };
@@ -1,17 +1,66 @@
1
- import _taggedTemplateLiteral from '@babel/runtime/helpers/taggedTemplateLiteral';
2
1
  import React from 'react';
3
- import styled from 'styled-components';
2
+ import { Box } from './index.js';
3
+ import { useBlerpTheme } from './Theme.js';
4
4
 
5
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
6
- const NewBlerpsSkeleton = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n width: 300px;\n height: 44px;\n background: ", ";\n border-radius: 8px;\n animation: pulse 3s ease-in-out infinite;\n @keyframes pulse {\n 0% {\n opacity: 0.5;\n }\n 50% {\n opacity: 1;\n }\n 100% {\n opacity: 0.5;\n }\n }\n"])), props => props.theme.colors.grey4);
7
- const LeftNewBlerpsBox = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n height: 38px;\n width: 38px;\n background-color: ", ";\n border-radius: 8px;\n margin-left: 4px;\n"])), props => props.theme.colors.white);
8
- const RightNewBlerpsBox = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n width: 80px;\n margin-right: 10px;\n"])));
9
- const NewBlerpsCircle = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n height: 34px;\n width: 34px;\n background-color: ", ";\n border-radius: 50%;\n"])), props => props.theme.colors.white);
10
5
  const BlerpListViewSkeleton = () => {
11
- return /*#__PURE__*/React.createElement(NewBlerpsSkeleton, {
12
- md: 6,
13
- lg: 4
14
- }, /*#__PURE__*/React.createElement(LeftNewBlerpsBox, null), /*#__PURE__*/React.createElement(RightNewBlerpsBox, null, /*#__PURE__*/React.createElement(NewBlerpsCircle, null), /*#__PURE__*/React.createElement(NewBlerpsCircle, null)));
6
+ const theme = useBlerpTheme();
7
+ return /*#__PURE__*/React.createElement(Box, {
8
+ sx: {
9
+ display: "flex",
10
+ flexDirection: "row",
11
+ alignItems: "center",
12
+ justifyContent: "space-between",
13
+ width: "300px",
14
+ height: "44px",
15
+ background: theme.colors.grey4,
16
+ borderRadius: "8px",
17
+ animation: "pulse 3s ease-in-out infinite",
18
+ "@keyframes pulse": {
19
+ "0%": {
20
+ opacity: 0.5
21
+ },
22
+ "50%": {
23
+ opacity: 1
24
+ },
25
+ "100%": {
26
+ opacity: 0.5
27
+ }
28
+ }
29
+ }
30
+ }, /*#__PURE__*/React.createElement(Box, {
31
+ sx: {
32
+ height: "38px",
33
+ width: "38px",
34
+ backgroundColor: theme.colors.white,
35
+ borderRadius: "8px",
36
+ marginLeft: "4px"
37
+ }
38
+ }), /*#__PURE__*/React.createElement(Box, {
39
+ sx: {
40
+ display: "flex",
41
+ flexDirection: "row",
42
+ alignItems: "center",
43
+ justifyContent: "space-between",
44
+ width: "80px",
45
+ marginRight: "10px"
46
+ }
47
+ }, /*#__PURE__*/React.createElement(Box, {
48
+ sx: {
49
+ display: "flex",
50
+ height: "34px",
51
+ width: "34px",
52
+ backgroundColor: theme.colors.white,
53
+ borderRadius: "50%"
54
+ }
55
+ }), /*#__PURE__*/React.createElement(Box, {
56
+ sx: {
57
+ display: "flex",
58
+ height: "34px",
59
+ width: "34px",
60
+ backgroundColor: theme.colors.white,
61
+ borderRadius: "50%"
62
+ }
63
+ })));
15
64
  };
16
65
 
17
66
  export { BlerpListViewSkeleton };
@@ -1,13 +1,38 @@
1
- import _taggedTemplateLiteral from '@babel/runtime/helpers/taggedTemplateLiteral';
2
1
  import React from 'react';
3
- import styled from 'styled-components';
2
+ import { useBlerpTheme } from './Theme.js';
4
3
 
5
- var _templateObject, _templateObject2, _templateObject3;
6
- const FeaturedBlerpSkeleton = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: space-between;\n height: 234px;\n width: 220px;\n border: 2px solid ", ";\n border-radius: 8px;\n\n @media (max-width: 900px) {\n height: 190px;\n width: 180px;\n border: 2px solid ", ";\n border-radius: 8px;\n }\n\n animation: pulse 3s ease-in-out infinite;\n @keyframes pulse {\n 0% {\n opacity: 0.5;\n }\n 50% {\n opacity: 1;\n }\n 100% {\n opacity: 0.5;\n }\n }\n"])), props => props.theme.colors.grey2, props => props.theme.colors.grey2);
7
- const FeaturedBlerpCircle = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n height: 135px;\n width: 135px;\n border-radius: 50%;\n margin-top: 30px;\n background: ", ";\n\n @media (max-width: 900px) {\n height: 100px;\n width: 100px;\n margin-top: 30px;\n }\n"])), props => props.theme.colors.grey2);
8
- const FeaturedBlerpTitle = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 80%;\n height: 24px;\n background: ", ";\n margin-bottom: 20px;\n"])), props => props.theme.colors.grey2);
9
4
  const BlerpSkeleton = () => {
10
- return /*#__PURE__*/React.createElement(FeaturedBlerpSkeleton, null, /*#__PURE__*/React.createElement(FeaturedBlerpCircle, null), /*#__PURE__*/React.createElement(FeaturedBlerpTitle, null));
5
+ var _theme$colors, _theme$colors2, _theme$colors3;
6
+
7
+ const theme = useBlerpTheme();
8
+ return /*#__PURE__*/React.createElement("div", {
9
+ style: {
10
+ display: "flex",
11
+ flexDirection: "column",
12
+ alignItems: "center",
13
+ justifyContent: "space-between",
14
+ height: window.innerWidth <= 900 ? "190px" : "234px",
15
+ width: window.innerWidth <= 900 ? "180px" : "220px",
16
+ border: "2px solid ".concat((theme === null || theme === void 0 ? void 0 : (_theme$colors = theme.colors) === null || _theme$colors === void 0 ? void 0 : _theme$colors.grey7) || "#313131ff"),
17
+ borderRadius: "8px",
18
+ animation: "pulse 3s ease-in-out infinite"
19
+ }
20
+ }, /*#__PURE__*/React.createElement("style", null, "\n @keyframes pulse {\n 0% {\n opacity: 0.5;\n }\n 50% {\n opacity: 1;\n }\n 100% {\n opacity: 0.5;\n }\n }\n "), /*#__PURE__*/React.createElement("div", {
21
+ style: {
22
+ height: window.innerWidth <= 900 ? "100px" : "135px",
23
+ width: window.innerWidth <= 900 ? "100px" : "135px",
24
+ borderRadius: "50%",
25
+ marginTop: "30px",
26
+ background: (theme === null || theme === void 0 ? void 0 : (_theme$colors2 = theme.colors) === null || _theme$colors2 === void 0 ? void 0 : _theme$colors2.grey7) || "#313131ff"
27
+ }
28
+ }), /*#__PURE__*/React.createElement("div", {
29
+ style: {
30
+ width: "80%",
31
+ height: "24px",
32
+ background: (theme === null || theme === void 0 ? void 0 : (_theme$colors3 = theme.colors) === null || _theme$colors3 === void 0 ? void 0 : _theme$colors3.grey7) || "#313131ff",
33
+ marginBottom: "20px"
34
+ }
35
+ }));
11
36
  };
12
37
 
13
38
  export { BlerpSkeleton };