@blerp/design 1.0.47 → 1.0.51
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/index.cjs.js +21 -11
- package/dist/index.esm.js +21 -12
- package/dist/index.umd.js +21 -11
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -881,6 +881,15 @@ var OpenLockIcon = function OpenLockIcon(_ref22) {
|
|
|
881
881
|
d: "M19.5,3.2c-0.7-0.7-1.7-1-2.9-1c-1.1,0-2,0.4-2.7,1.1c-1.4,1.5-1.4,4.1-1.3,6.7H6.5c-1.4,0-2.5,1.1-2.5,2.4v6.1 c0,1.4,1.1,2.4,2.5,2.4h7.4c1.4,0,2.5-1.1,2.5-2.4v-6.1c0-1.3-1-2.3-2.3-2.4C14,7.8,14,5.4,15,4.4c0.4-0.4,0.9-0.6,1.6-0.6 c0.8,0,1.4,0.2,1.8,0.6c0.8,0.7,0.7,2.2,0.7,3l0,0.2h1.5l0-0.2C20.7,6.3,20.7,4.4,19.5,3.2z M11,15.2l-0.2,0.2v2 c0,0.3-0.3,0.6-0.6,0.6c-0.3,0-0.6-0.3-0.6-0.6v-2l-0.2-0.2C9.1,15,9,14.7,9,14.3v0c0-0.7,0.6-1.2,1.2-1.2c0.3,0,0.6,0.1,0.9,0.4 c0.2,0.2,0.4,0.5,0.4,0.9C11.4,14.7,11.3,15,11,15.2z"
|
|
882
882
|
})));
|
|
883
883
|
};
|
|
884
|
+
var WindowsIcon = function WindowsIcon(_ref23) {
|
|
885
|
+
var sx = _ref23.sx;
|
|
886
|
+
return /*#__PURE__*/React__default['default'].createElement(material.SvgIcon, {
|
|
887
|
+
sx: sx
|
|
888
|
+
}, /*#__PURE__*/React__default['default'].createElement("path", {
|
|
889
|
+
id: "windows",
|
|
890
|
+
d: "M3,5.5l7.4-1v7.1H3V5.5z M3,18.5l7.4,1v-7H3V18.5L3,18.5z M11.2,19.6L21,21v-8.5h-9.8V19.6z M11.2,4.4v7.2H21 V3L11.2,4.4z"
|
|
891
|
+
}));
|
|
892
|
+
};
|
|
884
893
|
|
|
885
894
|
var BlerpTopRow = function BlerpTopRow(_ref) {
|
|
886
895
|
var _bite$topReactions, _bite$topReactions2, _bite$topReactions3;
|
|
@@ -3001,7 +3010,8 @@ var ImageUploadModal = function ImageUploadModal(_ref) {
|
|
|
3001
3010
|
case 5:
|
|
3002
3011
|
blob = _context.sent;
|
|
3003
3012
|
file = new File([blob], img, {
|
|
3004
|
-
type: blob.type
|
|
3013
|
+
type: blob.type,
|
|
3014
|
+
size: blob.type
|
|
3005
3015
|
});
|
|
3006
3016
|
setImage(file);
|
|
3007
3017
|
|
|
@@ -3101,8 +3111,9 @@ var ImageUploadModal = function ImageUploadModal(_ref) {
|
|
|
3101
3111
|
|
|
3102
3112
|
// create an image file using the data from the blob, assign the file a name, assign the file type
|
|
3103
3113
|
// Adding ".JPG" is totally janky, but since the database currently reads the file type from the name of the file (not the image.type), and since we are changing the image.name to match the url of the image, an error will be thrown if we do not declare a file type at the end.
|
|
3104
|
-
file = new File([blob], image.name
|
|
3105
|
-
type: image.type
|
|
3114
|
+
file = new File([blob], image.name, {
|
|
3115
|
+
type: image.type,
|
|
3116
|
+
size: image.size
|
|
3106
3117
|
});
|
|
3107
3118
|
});
|
|
3108
3119
|
|
|
@@ -8319,7 +8330,7 @@ var UserLibraryHeader = function UserLibraryHeader(_ref) {
|
|
|
8319
8330
|
sort = _ref.sort,
|
|
8320
8331
|
hideLayoutButtons = _ref.hideLayoutButtons;
|
|
8321
8332
|
var size = useWindowSize();
|
|
8322
|
-
|
|
8333
|
+
React.useContext(styled.ThemeContext);
|
|
8323
8334
|
return /*#__PURE__*/React__default['default'].createElement(Box, {
|
|
8324
8335
|
sx: _objectSpread({
|
|
8325
8336
|
backgroundColor: "grey2.main",
|
|
@@ -8347,7 +8358,6 @@ var UserLibraryHeader = function UserLibraryHeader(_ref) {
|
|
|
8347
8358
|
return /*#__PURE__*/React__default['default'].createElement(Button, {
|
|
8348
8359
|
key: "tab-".concat(tab),
|
|
8349
8360
|
onClick: function onClick() {
|
|
8350
|
-
setShowSearch(null);
|
|
8351
8361
|
setActiveBoard(null);
|
|
8352
8362
|
|
|
8353
8363
|
if (tabSelection.includes(tab)) {
|
|
@@ -8359,17 +8369,16 @@ var UserLibraryHeader = function UserLibraryHeader(_ref) {
|
|
|
8359
8369
|
setTabSelection([].concat(_toConsumableArray__default['default'](tabSelection), [tab]));
|
|
8360
8370
|
}
|
|
8361
8371
|
},
|
|
8362
|
-
variant: "outlined",
|
|
8372
|
+
variant: tabSelection.includes(tab) ? "contained" : "outlined",
|
|
8363
8373
|
size: "small",
|
|
8364
8374
|
endIcon: tabSelection.includes(tab) && /*#__PURE__*/React__default['default'].createElement(iconsMaterial.CancelRounded, null),
|
|
8365
8375
|
sx: {
|
|
8376
|
+
fontWeight: "normal",
|
|
8366
8377
|
marginRight: "10px",
|
|
8367
|
-
backgroundColor: tabSelection.includes(tab) && "
|
|
8368
|
-
":focus": {
|
|
8369
|
-
border: "2px solid ".concat(theme.colors.grey4, " !important")
|
|
8370
|
-
}
|
|
8378
|
+
backgroundColor: tabSelection.includes(tab) && "grey4.main"
|
|
8371
8379
|
},
|
|
8372
|
-
color: "
|
|
8380
|
+
color: tabSelection.includes(tab) ? "grey3" : "notBlack",
|
|
8381
|
+
disableElevation: true
|
|
8373
8382
|
}, tab);
|
|
8374
8383
|
})), /*#__PURE__*/React__default['default'].createElement(LibraryControls, {
|
|
8375
8384
|
currentSort: sort,
|
|
@@ -11149,6 +11158,7 @@ exports.UnsafeIcon = UnsafeIcon;
|
|
|
11149
11158
|
exports.UserLibraryHeader = UserLibraryHeader;
|
|
11150
11159
|
exports.UserProfileHeader = UserProfileHeader;
|
|
11151
11160
|
exports.WalkonIcon = WalkonIcon;
|
|
11161
|
+
exports.WindowsIcon = WindowsIcon;
|
|
11152
11162
|
exports.darkThemeV1 = darkThemeV1;
|
|
11153
11163
|
exports.lightThemeV1 = lightThemeV1;
|
|
11154
11164
|
exports.mainTheme = mainTheme;
|
package/dist/index.esm.js
CHANGED
|
@@ -834,6 +834,15 @@ var OpenLockIcon = function OpenLockIcon(_ref22) {
|
|
|
834
834
|
d: "M19.5,3.2c-0.7-0.7-1.7-1-2.9-1c-1.1,0-2,0.4-2.7,1.1c-1.4,1.5-1.4,4.1-1.3,6.7H6.5c-1.4,0-2.5,1.1-2.5,2.4v6.1 c0,1.4,1.1,2.4,2.5,2.4h7.4c1.4,0,2.5-1.1,2.5-2.4v-6.1c0-1.3-1-2.3-2.3-2.4C14,7.8,14,5.4,15,4.4c0.4-0.4,0.9-0.6,1.6-0.6 c0.8,0,1.4,0.2,1.8,0.6c0.8,0.7,0.7,2.2,0.7,3l0,0.2h1.5l0-0.2C20.7,6.3,20.7,4.4,19.5,3.2z M11,15.2l-0.2,0.2v2 c0,0.3-0.3,0.6-0.6,0.6c-0.3,0-0.6-0.3-0.6-0.6v-2l-0.2-0.2C9.1,15,9,14.7,9,14.3v0c0-0.7,0.6-1.2,1.2-1.2c0.3,0,0.6,0.1,0.9,0.4 c0.2,0.2,0.4,0.5,0.4,0.9C11.4,14.7,11.3,15,11,15.2z"
|
|
835
835
|
})));
|
|
836
836
|
};
|
|
837
|
+
var WindowsIcon = function WindowsIcon(_ref23) {
|
|
838
|
+
var sx = _ref23.sx;
|
|
839
|
+
return /*#__PURE__*/React.createElement(SvgIcon, {
|
|
840
|
+
sx: sx
|
|
841
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
842
|
+
id: "windows",
|
|
843
|
+
d: "M3,5.5l7.4-1v7.1H3V5.5z M3,18.5l7.4,1v-7H3V18.5L3,18.5z M11.2,19.6L21,21v-8.5h-9.8V19.6z M11.2,4.4v7.2H21 V3L11.2,4.4z"
|
|
844
|
+
}));
|
|
845
|
+
};
|
|
837
846
|
|
|
838
847
|
var BlerpTopRow = function BlerpTopRow(_ref) {
|
|
839
848
|
var _bite$topReactions, _bite$topReactions2, _bite$topReactions3;
|
|
@@ -2954,7 +2963,8 @@ var ImageUploadModal = function ImageUploadModal(_ref) {
|
|
|
2954
2963
|
case 5:
|
|
2955
2964
|
blob = _context.sent;
|
|
2956
2965
|
file = new File([blob], img, {
|
|
2957
|
-
type: blob.type
|
|
2966
|
+
type: blob.type,
|
|
2967
|
+
size: blob.type
|
|
2958
2968
|
});
|
|
2959
2969
|
setImage(file);
|
|
2960
2970
|
|
|
@@ -3054,8 +3064,9 @@ var ImageUploadModal = function ImageUploadModal(_ref) {
|
|
|
3054
3064
|
|
|
3055
3065
|
// create an image file using the data from the blob, assign the file a name, assign the file type
|
|
3056
3066
|
// Adding ".JPG" is totally janky, but since the database currently reads the file type from the name of the file (not the image.type), and since we are changing the image.name to match the url of the image, an error will be thrown if we do not declare a file type at the end.
|
|
3057
|
-
file = new File([blob], image.name
|
|
3058
|
-
type: image.type
|
|
3067
|
+
file = new File([blob], image.name, {
|
|
3068
|
+
type: image.type,
|
|
3069
|
+
size: image.size
|
|
3059
3070
|
});
|
|
3060
3071
|
});
|
|
3061
3072
|
|
|
@@ -8272,7 +8283,7 @@ var UserLibraryHeader = function UserLibraryHeader(_ref) {
|
|
|
8272
8283
|
sort = _ref.sort,
|
|
8273
8284
|
hideLayoutButtons = _ref.hideLayoutButtons;
|
|
8274
8285
|
var size = useWindowSize();
|
|
8275
|
-
|
|
8286
|
+
useContext(ThemeContext);
|
|
8276
8287
|
return /*#__PURE__*/React.createElement(Box, {
|
|
8277
8288
|
sx: _objectSpread({
|
|
8278
8289
|
backgroundColor: "grey2.main",
|
|
@@ -8300,7 +8311,6 @@ var UserLibraryHeader = function UserLibraryHeader(_ref) {
|
|
|
8300
8311
|
return /*#__PURE__*/React.createElement(Button, {
|
|
8301
8312
|
key: "tab-".concat(tab),
|
|
8302
8313
|
onClick: function onClick() {
|
|
8303
|
-
setShowSearch(null);
|
|
8304
8314
|
setActiveBoard(null);
|
|
8305
8315
|
|
|
8306
8316
|
if (tabSelection.includes(tab)) {
|
|
@@ -8312,17 +8322,16 @@ var UserLibraryHeader = function UserLibraryHeader(_ref) {
|
|
|
8312
8322
|
setTabSelection([].concat(_toConsumableArray(tabSelection), [tab]));
|
|
8313
8323
|
}
|
|
8314
8324
|
},
|
|
8315
|
-
variant: "outlined",
|
|
8325
|
+
variant: tabSelection.includes(tab) ? "contained" : "outlined",
|
|
8316
8326
|
size: "small",
|
|
8317
8327
|
endIcon: tabSelection.includes(tab) && /*#__PURE__*/React.createElement(CancelRounded, null),
|
|
8318
8328
|
sx: {
|
|
8329
|
+
fontWeight: "normal",
|
|
8319
8330
|
marginRight: "10px",
|
|
8320
|
-
backgroundColor: tabSelection.includes(tab) && "
|
|
8321
|
-
":focus": {
|
|
8322
|
-
border: "2px solid ".concat(theme.colors.grey4, " !important")
|
|
8323
|
-
}
|
|
8331
|
+
backgroundColor: tabSelection.includes(tab) && "grey4.main"
|
|
8324
8332
|
},
|
|
8325
|
-
color: "
|
|
8333
|
+
color: tabSelection.includes(tab) ? "grey3" : "notBlack",
|
|
8334
|
+
disableElevation: true
|
|
8326
8335
|
}, tab);
|
|
8327
8336
|
})), /*#__PURE__*/React.createElement(LibraryControls, {
|
|
8328
8337
|
currentSort: sort,
|
|
@@ -11011,4 +11020,4 @@ var Themes = {
|
|
|
11011
11020
|
// };
|
|
11012
11021
|
// export default returnLibrary();
|
|
11013
11022
|
|
|
11014
|
-
export { Accordion, Alert, AppBar, Autocomplete, Avatar, Backdrop, Badge, Blerp, BlerpCardIcon, BlerpCoinsIcon, BlerpListView, BlerpListViewPremium, BlerpListViewSkeleton, BlerpSkeleton, BlerpyIcon, BookmarkAddRounded, BottomNavigation, Box, Breadcrumbs, Button, ButtonGroup, Card, ChannelPointsIcon, Checkbox, CheckoutModal, Chip, ClockIcon, CogIcon, CollectionCard, CollectionListViewPremium, CollectionSkeleton, Container, CrownIcon, Dialog, DiamondIcon, DiscordIcon, Divider, Drawer, Dropdown, FloatingActionButton, GiftIcon, Grid, IconButton, ImageList, Input, InputAdornment, LightbulbIcon, LinearProgress, Link, List, Menu, MenuItem, Modal, NewCollectionModal, OpenLockIcon, Pagination, Paper, PlayOutlineIcon, PlaySolidIcon, PointerFingerIcon, Popover, PremiumBlerpCheckoutModal, PremiumCollectionCheckoutModal, PremiumSubscriptionCheckoutModal, RadarDishIcon, RadioButton, Rating, ReactionButtons, Select, ShortcutIcon, Skeleton, Slider, Snackbar, SpeedDial, Stack, Stepper, Switch, Table, Tabs, Text, Theme, Themes, Toggle, Toolbar, Tooltip, TwitchBitIcon, TwitchIcon, UnsafeIcon, UserLibraryHeader, UserProfileHeader, WalkonIcon, darkThemeV1, lightThemeV1, mainTheme };
|
|
11023
|
+
export { Accordion, Alert, AppBar, Autocomplete, Avatar, Backdrop, Badge, Blerp, BlerpCardIcon, BlerpCoinsIcon, BlerpListView, BlerpListViewPremium, BlerpListViewSkeleton, BlerpSkeleton, BlerpyIcon, BookmarkAddRounded, BottomNavigation, Box, Breadcrumbs, Button, ButtonGroup, Card, ChannelPointsIcon, Checkbox, CheckoutModal, Chip, ClockIcon, CogIcon, CollectionCard, CollectionListViewPremium, CollectionSkeleton, Container, CrownIcon, Dialog, DiamondIcon, DiscordIcon, Divider, Drawer, Dropdown, FloatingActionButton, GiftIcon, Grid, IconButton, ImageList, Input, InputAdornment, LightbulbIcon, LinearProgress, Link, List, Menu, MenuItem, Modal, NewCollectionModal, OpenLockIcon, Pagination, Paper, PlayOutlineIcon, PlaySolidIcon, PointerFingerIcon, Popover, PremiumBlerpCheckoutModal, PremiumCollectionCheckoutModal, PremiumSubscriptionCheckoutModal, RadarDishIcon, RadioButton, Rating, ReactionButtons, Select, ShortcutIcon, Skeleton, Slider, Snackbar, SpeedDial, Stack, Stepper, Switch, Table, Tabs, Text, Theme, Themes, Toggle, Toolbar, Tooltip, TwitchBitIcon, TwitchIcon, UnsafeIcon, UserLibraryHeader, UserProfileHeader, WalkonIcon, WindowsIcon, darkThemeV1, lightThemeV1, mainTheme };
|
package/dist/index.umd.js
CHANGED
|
@@ -835,6 +835,15 @@
|
|
|
835
835
|
d: "M19.5,3.2c-0.7-0.7-1.7-1-2.9-1c-1.1,0-2,0.4-2.7,1.1c-1.4,1.5-1.4,4.1-1.3,6.7H6.5c-1.4,0-2.5,1.1-2.5,2.4v6.1 c0,1.4,1.1,2.4,2.5,2.4h7.4c1.4,0,2.5-1.1,2.5-2.4v-6.1c0-1.3-1-2.3-2.3-2.4C14,7.8,14,5.4,15,4.4c0.4-0.4,0.9-0.6,1.6-0.6 c0.8,0,1.4,0.2,1.8,0.6c0.8,0.7,0.7,2.2,0.7,3l0,0.2h1.5l0-0.2C20.7,6.3,20.7,4.4,19.5,3.2z M11,15.2l-0.2,0.2v2 c0,0.3-0.3,0.6-0.6,0.6c-0.3,0-0.6-0.3-0.6-0.6v-2l-0.2-0.2C9.1,15,9,14.7,9,14.3v0c0-0.7,0.6-1.2,1.2-1.2c0.3,0,0.6,0.1,0.9,0.4 c0.2,0.2,0.4,0.5,0.4,0.9C11.4,14.7,11.3,15,11,15.2z"
|
|
836
836
|
})));
|
|
837
837
|
};
|
|
838
|
+
var WindowsIcon = function WindowsIcon(_ref23) {
|
|
839
|
+
var sx = _ref23.sx;
|
|
840
|
+
return /*#__PURE__*/React__default['default'].createElement(material.SvgIcon, {
|
|
841
|
+
sx: sx
|
|
842
|
+
}, /*#__PURE__*/React__default['default'].createElement("path", {
|
|
843
|
+
id: "windows",
|
|
844
|
+
d: "M3,5.5l7.4-1v7.1H3V5.5z M3,18.5l7.4,1v-7H3V18.5L3,18.5z M11.2,19.6L21,21v-8.5h-9.8V19.6z M11.2,4.4v7.2H21 V3L11.2,4.4z"
|
|
845
|
+
}));
|
|
846
|
+
};
|
|
838
847
|
|
|
839
848
|
var BlerpTopRow = function BlerpTopRow(_ref) {
|
|
840
849
|
var _bite$topReactions, _bite$topReactions2, _bite$topReactions3;
|
|
@@ -2955,7 +2964,8 @@
|
|
|
2955
2964
|
case 5:
|
|
2956
2965
|
blob = _context.sent;
|
|
2957
2966
|
file = new File([blob], img, {
|
|
2958
|
-
type: blob.type
|
|
2967
|
+
type: blob.type,
|
|
2968
|
+
size: blob.type
|
|
2959
2969
|
});
|
|
2960
2970
|
setImage(file);
|
|
2961
2971
|
|
|
@@ -3055,8 +3065,9 @@
|
|
|
3055
3065
|
|
|
3056
3066
|
// create an image file using the data from the blob, assign the file a name, assign the file type
|
|
3057
3067
|
// Adding ".JPG" is totally janky, but since the database currently reads the file type from the name of the file (not the image.type), and since we are changing the image.name to match the url of the image, an error will be thrown if we do not declare a file type at the end.
|
|
3058
|
-
file = new File([blob], image.name
|
|
3059
|
-
type: image.type
|
|
3068
|
+
file = new File([blob], image.name, {
|
|
3069
|
+
type: image.type,
|
|
3070
|
+
size: image.size
|
|
3060
3071
|
});
|
|
3061
3072
|
});
|
|
3062
3073
|
|
|
@@ -8273,7 +8284,7 @@
|
|
|
8273
8284
|
sort = _ref.sort,
|
|
8274
8285
|
hideLayoutButtons = _ref.hideLayoutButtons;
|
|
8275
8286
|
var size = useWindowSize();
|
|
8276
|
-
|
|
8287
|
+
React.useContext(styled.ThemeContext);
|
|
8277
8288
|
return /*#__PURE__*/React__default['default'].createElement(Box, {
|
|
8278
8289
|
sx: _objectSpread({
|
|
8279
8290
|
backgroundColor: "grey2.main",
|
|
@@ -8301,7 +8312,6 @@
|
|
|
8301
8312
|
return /*#__PURE__*/React__default['default'].createElement(Button, {
|
|
8302
8313
|
key: "tab-".concat(tab),
|
|
8303
8314
|
onClick: function onClick() {
|
|
8304
|
-
setShowSearch(null);
|
|
8305
8315
|
setActiveBoard(null);
|
|
8306
8316
|
|
|
8307
8317
|
if (tabSelection.includes(tab)) {
|
|
@@ -8313,17 +8323,16 @@
|
|
|
8313
8323
|
setTabSelection([].concat(_toConsumableArray__default['default'](tabSelection), [tab]));
|
|
8314
8324
|
}
|
|
8315
8325
|
},
|
|
8316
|
-
variant: "outlined",
|
|
8326
|
+
variant: tabSelection.includes(tab) ? "contained" : "outlined",
|
|
8317
8327
|
size: "small",
|
|
8318
8328
|
endIcon: tabSelection.includes(tab) && /*#__PURE__*/React__default['default'].createElement(iconsMaterial.CancelRounded, null),
|
|
8319
8329
|
sx: {
|
|
8330
|
+
fontWeight: "normal",
|
|
8320
8331
|
marginRight: "10px",
|
|
8321
|
-
backgroundColor: tabSelection.includes(tab) && "
|
|
8322
|
-
":focus": {
|
|
8323
|
-
border: "2px solid ".concat(theme.colors.grey4, " !important")
|
|
8324
|
-
}
|
|
8332
|
+
backgroundColor: tabSelection.includes(tab) && "grey4.main"
|
|
8325
8333
|
},
|
|
8326
|
-
color: "
|
|
8334
|
+
color: tabSelection.includes(tab) ? "grey3" : "notBlack",
|
|
8335
|
+
disableElevation: true
|
|
8327
8336
|
}, tab);
|
|
8328
8337
|
})), /*#__PURE__*/React__default['default'].createElement(LibraryControls, {
|
|
8329
8338
|
currentSort: sort,
|
|
@@ -11103,6 +11112,7 @@
|
|
|
11103
11112
|
exports.UserLibraryHeader = UserLibraryHeader;
|
|
11104
11113
|
exports.UserProfileHeader = UserProfileHeader;
|
|
11105
11114
|
exports.WalkonIcon = WalkonIcon;
|
|
11115
|
+
exports.WindowsIcon = WindowsIcon;
|
|
11106
11116
|
exports.darkThemeV1 = darkThemeV1;
|
|
11107
11117
|
exports.lightThemeV1 = lightThemeV1;
|
|
11108
11118
|
exports.mainTheme = mainTheme;
|