@blerp/design 1.0.46 → 1.0.50

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 CHANGED
@@ -38,6 +38,7 @@ var PinterestIcon = require('@mui/icons-material/Pinterest');
38
38
  var TwitterIcon = require('@mui/icons-material/Twitter');
39
39
  var YouTubeIcon = require('@mui/icons-material/YouTube');
40
40
  var PersonRemoveRoundedIcon = require('@mui/icons-material/PersonRemoveRounded');
41
+ var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
41
42
  require('@mui/icons-material/FilterAltRounded');
42
43
  var MenuRoundedIcon = require('@mui/icons-material/MenuRounded');
43
44
  var ViewModuleRoundedIcon = require('@mui/icons-material/ViewModuleRounded');
@@ -82,6 +83,7 @@ var PinterestIcon__default = /*#__PURE__*/_interopDefaultLegacy(PinterestIcon);
82
83
  var TwitterIcon__default = /*#__PURE__*/_interopDefaultLegacy(TwitterIcon);
83
84
  var YouTubeIcon__default = /*#__PURE__*/_interopDefaultLegacy(YouTubeIcon);
84
85
  var PersonRemoveRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(PersonRemoveRoundedIcon);
86
+ var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
85
87
  var MenuRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(MenuRoundedIcon);
86
88
  var ViewModuleRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ViewModuleRoundedIcon);
87
89
  var SortRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(SortRoundedIcon);
@@ -2999,7 +3001,8 @@ var ImageUploadModal = function ImageUploadModal(_ref) {
2999
3001
  case 5:
3000
3002
  blob = _context.sent;
3001
3003
  file = new File([blob], img, {
3002
- type: blob.type
3004
+ type: blob.type,
3005
+ size: blob.type
3003
3006
  });
3004
3007
  setImage(file);
3005
3008
 
@@ -3099,8 +3102,9 @@ var ImageUploadModal = function ImageUploadModal(_ref) {
3099
3102
 
3100
3103
  // create an image file using the data from the blob, assign the file a name, assign the file type
3101
3104
  // 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.
3102
- file = new File([blob], image.name + ".JPG", {
3103
- type: image.type
3105
+ file = new File([blob], image.name, {
3106
+ type: image.type,
3107
+ size: image.size
3104
3108
  });
3105
3109
  });
3106
3110
 
@@ -8317,7 +8321,7 @@ var UserLibraryHeader = function UserLibraryHeader(_ref) {
8317
8321
  sort = _ref.sort,
8318
8322
  hideLayoutButtons = _ref.hideLayoutButtons;
8319
8323
  var size = useWindowSize();
8320
- var theme = React.useContext(styled.ThemeContext);
8324
+ React.useContext(styled.ThemeContext);
8321
8325
  return /*#__PURE__*/React__default['default'].createElement(Box, {
8322
8326
  sx: _objectSpread({
8323
8327
  backgroundColor: "grey2.main",
@@ -8345,20 +8349,27 @@ var UserLibraryHeader = function UserLibraryHeader(_ref) {
8345
8349
  return /*#__PURE__*/React__default['default'].createElement(Button, {
8346
8350
  key: "tab-".concat(tab),
8347
8351
  onClick: function onClick() {
8348
- setShowSearch(null);
8349
8352
  setActiveBoard(null);
8350
- setTabSelection(tab);
8353
+
8354
+ if (tabSelection.includes(tab)) {
8355
+ var newTabs = tabSelection.filter(function (item) {
8356
+ return item !== tab;
8357
+ });
8358
+ setTabSelection(newTabs);
8359
+ } else {
8360
+ setTabSelection([].concat(_toConsumableArray__default['default'](tabSelection), [tab]));
8361
+ }
8351
8362
  },
8352
- variant: "outlined",
8363
+ variant: tabSelection.includes(tab) ? "contained" : "outlined",
8353
8364
  size: "small",
8365
+ endIcon: tabSelection.includes(tab) && /*#__PURE__*/React__default['default'].createElement(iconsMaterial.CancelRounded, null),
8354
8366
  sx: {
8367
+ fontWeight: "normal",
8355
8368
  marginRight: "10px",
8356
- backgroundColor: tabSelection === tab && "grey3.main",
8357
- ":focus": {
8358
- border: "2px solid ".concat(theme.colors.grey4, " !important")
8359
- }
8369
+ backgroundColor: tabSelection.includes(tab) && "grey4.main"
8360
8370
  },
8361
- color: "grey6"
8371
+ color: tabSelection.includes(tab) ? "grey3" : "notBlack",
8372
+ disableElevation: true
8362
8373
  }, tab);
8363
8374
  })), /*#__PURE__*/React__default['default'].createElement(LibraryControls, {
8364
8375
  currentSort: sort,
package/dist/index.esm.js CHANGED
@@ -5,7 +5,7 @@ import React, { useState, useEffect, useContext, useRef, createRef, cloneElement
5
5
  import { ColorExtractor } from 'react-color-extractor';
6
6
  import styled, { ThemeContext, keyframes, ThemeProvider as ThemeProvider$1 } from 'styled-components';
7
7
  import _taggedTemplateLiteral from '@babel/runtime/helpers/taggedTemplateLiteral';
8
- import { PauseCircleOutlineRounded, LockRounded, BookmarkRounded, BookmarkAddOutlined, AccountCircleRounded, VisibilityOffRounded } from '@mui/icons-material';
8
+ import { PauseCircleOutlineRounded, LockRounded, BookmarkRounded, BookmarkAddOutlined, AccountCircleRounded, VisibilityOffRounded, CancelRounded } from '@mui/icons-material';
9
9
  import BookmarkOutlinedIcon from '@mui/icons-material/BookmarkOutlined';
10
10
  import LockRoundedIcon from '@mui/icons-material/LockRounded';
11
11
  import BookmarkAddOutlinedIcon from '@mui/icons-material/BookmarkAddOutlined';
@@ -34,6 +34,7 @@ import PinterestIcon from '@mui/icons-material/Pinterest';
34
34
  import TwitterIcon from '@mui/icons-material/Twitter';
35
35
  import YouTubeIcon from '@mui/icons-material/YouTube';
36
36
  import PersonRemoveRoundedIcon from '@mui/icons-material/PersonRemoveRounded';
37
+ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
37
38
  import '@mui/icons-material/FilterAltRounded';
38
39
  import MenuRoundedIcon from '@mui/icons-material/MenuRounded';
39
40
  import ViewModuleRoundedIcon from '@mui/icons-material/ViewModuleRounded';
@@ -2953,7 +2954,8 @@ var ImageUploadModal = function ImageUploadModal(_ref) {
2953
2954
  case 5:
2954
2955
  blob = _context.sent;
2955
2956
  file = new File([blob], img, {
2956
- type: blob.type
2957
+ type: blob.type,
2958
+ size: blob.type
2957
2959
  });
2958
2960
  setImage(file);
2959
2961
 
@@ -3053,8 +3055,9 @@ var ImageUploadModal = function ImageUploadModal(_ref) {
3053
3055
 
3054
3056
  // create an image file using the data from the blob, assign the file a name, assign the file type
3055
3057
  // 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.
3056
- file = new File([blob], image.name + ".JPG", {
3057
- type: image.type
3058
+ file = new File([blob], image.name, {
3059
+ type: image.type,
3060
+ size: image.size
3058
3061
  });
3059
3062
  });
3060
3063
 
@@ -8271,7 +8274,7 @@ var UserLibraryHeader = function UserLibraryHeader(_ref) {
8271
8274
  sort = _ref.sort,
8272
8275
  hideLayoutButtons = _ref.hideLayoutButtons;
8273
8276
  var size = useWindowSize();
8274
- var theme = useContext(ThemeContext);
8277
+ useContext(ThemeContext);
8275
8278
  return /*#__PURE__*/React.createElement(Box, {
8276
8279
  sx: _objectSpread({
8277
8280
  backgroundColor: "grey2.main",
@@ -8299,20 +8302,27 @@ var UserLibraryHeader = function UserLibraryHeader(_ref) {
8299
8302
  return /*#__PURE__*/React.createElement(Button, {
8300
8303
  key: "tab-".concat(tab),
8301
8304
  onClick: function onClick() {
8302
- setShowSearch(null);
8303
8305
  setActiveBoard(null);
8304
- setTabSelection(tab);
8306
+
8307
+ if (tabSelection.includes(tab)) {
8308
+ var newTabs = tabSelection.filter(function (item) {
8309
+ return item !== tab;
8310
+ });
8311
+ setTabSelection(newTabs);
8312
+ } else {
8313
+ setTabSelection([].concat(_toConsumableArray(tabSelection), [tab]));
8314
+ }
8305
8315
  },
8306
- variant: "outlined",
8316
+ variant: tabSelection.includes(tab) ? "contained" : "outlined",
8307
8317
  size: "small",
8318
+ endIcon: tabSelection.includes(tab) && /*#__PURE__*/React.createElement(CancelRounded, null),
8308
8319
  sx: {
8320
+ fontWeight: "normal",
8309
8321
  marginRight: "10px",
8310
- backgroundColor: tabSelection === tab && "grey3.main",
8311
- ":focus": {
8312
- border: "2px solid ".concat(theme.colors.grey4, " !important")
8313
- }
8322
+ backgroundColor: tabSelection.includes(tab) && "grey4.main"
8314
8323
  },
8315
- color: "grey6"
8324
+ color: tabSelection.includes(tab) ? "grey3" : "notBlack",
8325
+ disableElevation: true
8316
8326
  }, tab);
8317
8327
  })), /*#__PURE__*/React.createElement(LibraryControls, {
8318
8328
  currentSort: sort,
package/dist/index.umd.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@mui/material'), require('@babel/runtime/helpers/slicedToArray'), require('prop-types'), require('react'), require('react-color-extractor'), require('styled-components'), require('@babel/runtime/helpers/taggedTemplateLiteral'), require('@mui/icons-material'), require('@mui/icons-material/BookmarkOutlined'), require('@mui/icons-material/LockRounded'), require('@mui/icons-material/BookmarkAddOutlined'), require('@mui/icons-material/MoreHorizRounded'), require('react-palette'), require('@babel/runtime/helpers/typeof'), require('@mui/icons-material/KeyboardArrowRightRounded'), require('@babel/runtime/helpers/defineProperty'), require('@mui/icons-material/KeyboardArrowDownRounded'), require('@mui/icons-material/CloseRounded'), require('@mui/icons-material/FileUploadRounded'), require('@babel/runtime/helpers/extends'), require('@babel/runtime/helpers/asyncToGenerator'), require('@babel/runtime/regenerator'), require('react-avatar-editor'), require('react-dropzone'), require('@mui/icons-material/InsertPhotoRounded'), require('@mui/material/styles'), require('react-lottie'), require('@mui/icons-material/AddRounded'), require('@mui/icons-material/Facebook'), require('@mui/icons-material/Instagram'), require('@mui/icons-material/ModeEditRounded'), require('@mui/icons-material/PersonAddRounded'), require('@mui/icons-material/Pinterest'), require('@mui/icons-material/Twitter'), require('@mui/icons-material/YouTube'), require('@mui/icons-material/PersonRemoveRounded'), require('@mui/icons-material/FilterAltRounded'), require('@mui/icons-material/MenuRounded'), require('@mui/icons-material/ViewModuleRounded'), require('@mui/icons-material/SettingsRounded'), require('@mui/icons-material/SortRounded'), require('@mui/icons-material/ChevronRightRounded'), require('@mui/icons-material/PersonRounded'), require('@mui/icons-material/SearchRounded'), require('@mui/icons-material/BookmarkRemoveOutlined'), require('@mui/icons-material/VisibilityOffRounded')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@mui/material', '@babel/runtime/helpers/slicedToArray', 'prop-types', 'react', 'react-color-extractor', 'styled-components', '@babel/runtime/helpers/taggedTemplateLiteral', '@mui/icons-material', '@mui/icons-material/BookmarkOutlined', '@mui/icons-material/LockRounded', '@mui/icons-material/BookmarkAddOutlined', '@mui/icons-material/MoreHorizRounded', 'react-palette', '@babel/runtime/helpers/typeof', '@mui/icons-material/KeyboardArrowRightRounded', '@babel/runtime/helpers/defineProperty', '@mui/icons-material/KeyboardArrowDownRounded', '@mui/icons-material/CloseRounded', '@mui/icons-material/FileUploadRounded', '@babel/runtime/helpers/extends', '@babel/runtime/helpers/asyncToGenerator', '@babel/runtime/regenerator', 'react-avatar-editor', 'react-dropzone', '@mui/icons-material/InsertPhotoRounded', '@mui/material/styles', 'react-lottie', '@mui/icons-material/AddRounded', '@mui/icons-material/Facebook', '@mui/icons-material/Instagram', '@mui/icons-material/ModeEditRounded', '@mui/icons-material/PersonAddRounded', '@mui/icons-material/Pinterest', '@mui/icons-material/Twitter', '@mui/icons-material/YouTube', '@mui/icons-material/PersonRemoveRounded', '@mui/icons-material/FilterAltRounded', '@mui/icons-material/MenuRounded', '@mui/icons-material/ViewModuleRounded', '@mui/icons-material/SettingsRounded', '@mui/icons-material/SortRounded', '@mui/icons-material/ChevronRightRounded', '@mui/icons-material/PersonRounded', '@mui/icons-material/SearchRounded', '@mui/icons-material/BookmarkRemoveOutlined', '@mui/icons-material/VisibilityOffRounded'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['react-awesome-buttons'] = {}, global.material, global._slicedToArray, global.PropTypes, global.React, global.reactColorExtractor, global.styled, global._taggedTemplateLiteral, global.iconsMaterial, global.BookmarkOutlinedIcon, global.LockRoundedIcon, global.BookmarkAddOutlinedIcon, global.MoreHorizRoundedIcon, global.reactPalette, global._typeof, global.KeyboardArrowRightRoundedIcon, global._defineProperty, global.KeyboardArrowDownRoundedIcon, global.CloseRoundedIcon, global.FileUploadRoundedIcon, global._extends, global._asyncToGenerator, global._regeneratorRuntime, global.AvatarEditor, global.Dropzone, global.InsertPhotoRoundedIcon, global.styles, global.Lottie, global.AddRoundedIcon, global.FacebookIcon, global.InstagramIcon, global.ModeEditRoundedIcon, global.PersonAddRoundedIcon, global.PinterestIcon, global.TwitterIcon, global.YouTubeIcon, global.PersonRemoveRoundedIcon, null, global.MenuRoundedIcon, global.ViewModuleRoundedIcon, null, global.SortRoundedIcon, global.ChevronRightRoundedIcon, global.PersonRoundedIcon, global.SearchRoundedIcon, global.BookmarkRemoveOutlinedIcon, global.VisibilityOffRoundedIcon));
5
- }(this, (function (exports, material, _slicedToArray, PropTypes, React, reactColorExtractor, styled, _taggedTemplateLiteral, iconsMaterial, BookmarkOutlinedIcon, LockRoundedIcon, BookmarkAddOutlinedIcon, MoreHorizRoundedIcon, reactPalette, _typeof, KeyboardArrowRightRoundedIcon, _defineProperty, KeyboardArrowDownRoundedIcon, CloseRoundedIcon, FileUploadRoundedIcon, _extends, _asyncToGenerator, _regeneratorRuntime, AvatarEditor, Dropzone, InsertPhotoRoundedIcon, styles, Lottie, AddRoundedIcon, FacebookIcon, InstagramIcon, ModeEditRoundedIcon, PersonAddRoundedIcon, PinterestIcon, TwitterIcon, YouTubeIcon, PersonRemoveRoundedIcon, FilterAltRounded, MenuRoundedIcon, ViewModuleRoundedIcon, SettingsRounded, SortRoundedIcon, ChevronRightRoundedIcon, PersonRoundedIcon, SearchRoundedIcon, BookmarkRemoveOutlinedIcon, VisibilityOffRoundedIcon) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@mui/material'), require('@babel/runtime/helpers/slicedToArray'), require('prop-types'), require('react'), require('react-color-extractor'), require('styled-components'), require('@babel/runtime/helpers/taggedTemplateLiteral'), require('@mui/icons-material'), require('@mui/icons-material/BookmarkOutlined'), require('@mui/icons-material/LockRounded'), require('@mui/icons-material/BookmarkAddOutlined'), require('@mui/icons-material/MoreHorizRounded'), require('react-palette'), require('@babel/runtime/helpers/typeof'), require('@mui/icons-material/KeyboardArrowRightRounded'), require('@babel/runtime/helpers/defineProperty'), require('@mui/icons-material/KeyboardArrowDownRounded'), require('@mui/icons-material/CloseRounded'), require('@mui/icons-material/FileUploadRounded'), require('@babel/runtime/helpers/extends'), require('@babel/runtime/helpers/asyncToGenerator'), require('@babel/runtime/regenerator'), require('react-avatar-editor'), require('react-dropzone'), require('@mui/icons-material/InsertPhotoRounded'), require('@mui/material/styles'), require('react-lottie'), require('@mui/icons-material/AddRounded'), require('@mui/icons-material/Facebook'), require('@mui/icons-material/Instagram'), require('@mui/icons-material/ModeEditRounded'), require('@mui/icons-material/PersonAddRounded'), require('@mui/icons-material/Pinterest'), require('@mui/icons-material/Twitter'), require('@mui/icons-material/YouTube'), require('@mui/icons-material/PersonRemoveRounded'), require('@babel/runtime/helpers/toConsumableArray'), require('@mui/icons-material/FilterAltRounded'), require('@mui/icons-material/MenuRounded'), require('@mui/icons-material/ViewModuleRounded'), require('@mui/icons-material/SettingsRounded'), require('@mui/icons-material/SortRounded'), require('@mui/icons-material/ChevronRightRounded'), require('@mui/icons-material/PersonRounded'), require('@mui/icons-material/SearchRounded'), require('@mui/icons-material/BookmarkRemoveOutlined'), require('@mui/icons-material/VisibilityOffRounded')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@mui/material', '@babel/runtime/helpers/slicedToArray', 'prop-types', 'react', 'react-color-extractor', 'styled-components', '@babel/runtime/helpers/taggedTemplateLiteral', '@mui/icons-material', '@mui/icons-material/BookmarkOutlined', '@mui/icons-material/LockRounded', '@mui/icons-material/BookmarkAddOutlined', '@mui/icons-material/MoreHorizRounded', 'react-palette', '@babel/runtime/helpers/typeof', '@mui/icons-material/KeyboardArrowRightRounded', '@babel/runtime/helpers/defineProperty', '@mui/icons-material/KeyboardArrowDownRounded', '@mui/icons-material/CloseRounded', '@mui/icons-material/FileUploadRounded', '@babel/runtime/helpers/extends', '@babel/runtime/helpers/asyncToGenerator', '@babel/runtime/regenerator', 'react-avatar-editor', 'react-dropzone', '@mui/icons-material/InsertPhotoRounded', '@mui/material/styles', 'react-lottie', '@mui/icons-material/AddRounded', '@mui/icons-material/Facebook', '@mui/icons-material/Instagram', '@mui/icons-material/ModeEditRounded', '@mui/icons-material/PersonAddRounded', '@mui/icons-material/Pinterest', '@mui/icons-material/Twitter', '@mui/icons-material/YouTube', '@mui/icons-material/PersonRemoveRounded', '@babel/runtime/helpers/toConsumableArray', '@mui/icons-material/FilterAltRounded', '@mui/icons-material/MenuRounded', '@mui/icons-material/ViewModuleRounded', '@mui/icons-material/SettingsRounded', '@mui/icons-material/SortRounded', '@mui/icons-material/ChevronRightRounded', '@mui/icons-material/PersonRounded', '@mui/icons-material/SearchRounded', '@mui/icons-material/BookmarkRemoveOutlined', '@mui/icons-material/VisibilityOffRounded'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['react-awesome-buttons'] = {}, global.material, global._slicedToArray, global.PropTypes, global.React, global.reactColorExtractor, global.styled, global._taggedTemplateLiteral, global.iconsMaterial, global.BookmarkOutlinedIcon, global.LockRoundedIcon, global.BookmarkAddOutlinedIcon, global.MoreHorizRoundedIcon, global.reactPalette, global._typeof, global.KeyboardArrowRightRoundedIcon, global._defineProperty, global.KeyboardArrowDownRoundedIcon, global.CloseRoundedIcon, global.FileUploadRoundedIcon, global._extends, global._asyncToGenerator, global._regeneratorRuntime, global.AvatarEditor, global.Dropzone, global.InsertPhotoRoundedIcon, global.styles, global.Lottie, global.AddRoundedIcon, global.FacebookIcon, global.InstagramIcon, global.ModeEditRoundedIcon, global.PersonAddRoundedIcon, global.PinterestIcon, global.TwitterIcon, global.YouTubeIcon, global.PersonRemoveRoundedIcon, global._toConsumableArray, null, global.MenuRoundedIcon, global.ViewModuleRoundedIcon, null, global.SortRoundedIcon, global.ChevronRightRoundedIcon, global.PersonRoundedIcon, global.SearchRoundedIcon, global.BookmarkRemoveOutlinedIcon, global.VisibilityOffRoundedIcon));
5
+ }(this, (function (exports, material, _slicedToArray, PropTypes, React, reactColorExtractor, styled, _taggedTemplateLiteral, iconsMaterial, BookmarkOutlinedIcon, LockRoundedIcon, BookmarkAddOutlinedIcon, MoreHorizRoundedIcon, reactPalette, _typeof, KeyboardArrowRightRoundedIcon, _defineProperty, KeyboardArrowDownRoundedIcon, CloseRoundedIcon, FileUploadRoundedIcon, _extends, _asyncToGenerator, _regeneratorRuntime, AvatarEditor, Dropzone, InsertPhotoRoundedIcon, styles, Lottie, AddRoundedIcon, FacebookIcon, InstagramIcon, ModeEditRoundedIcon, PersonAddRoundedIcon, PinterestIcon, TwitterIcon, YouTubeIcon, PersonRemoveRoundedIcon, _toConsumableArray, FilterAltRounded, MenuRoundedIcon, ViewModuleRoundedIcon, SettingsRounded, SortRoundedIcon, ChevronRightRoundedIcon, PersonRoundedIcon, SearchRoundedIcon, BookmarkRemoveOutlinedIcon, VisibilityOffRoundedIcon) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -37,6 +37,7 @@
37
37
  var TwitterIcon__default = /*#__PURE__*/_interopDefaultLegacy(TwitterIcon);
38
38
  var YouTubeIcon__default = /*#__PURE__*/_interopDefaultLegacy(YouTubeIcon);
39
39
  var PersonRemoveRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(PersonRemoveRoundedIcon);
40
+ var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
40
41
  var MenuRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(MenuRoundedIcon);
41
42
  var ViewModuleRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ViewModuleRoundedIcon);
42
43
  var SortRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(SortRoundedIcon);
@@ -2954,7 +2955,8 @@
2954
2955
  case 5:
2955
2956
  blob = _context.sent;
2956
2957
  file = new File([blob], img, {
2957
- type: blob.type
2958
+ type: blob.type,
2959
+ size: blob.type
2958
2960
  });
2959
2961
  setImage(file);
2960
2962
 
@@ -3054,8 +3056,9 @@
3054
3056
 
3055
3057
  // create an image file using the data from the blob, assign the file a name, assign the file type
3056
3058
  // 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 + ".JPG", {
3058
- type: image.type
3059
+ file = new File([blob], image.name, {
3060
+ type: image.type,
3061
+ size: image.size
3059
3062
  });
3060
3063
  });
3061
3064
 
@@ -8272,7 +8275,7 @@
8272
8275
  sort = _ref.sort,
8273
8276
  hideLayoutButtons = _ref.hideLayoutButtons;
8274
8277
  var size = useWindowSize();
8275
- var theme = React.useContext(styled.ThemeContext);
8278
+ React.useContext(styled.ThemeContext);
8276
8279
  return /*#__PURE__*/React__default['default'].createElement(Box, {
8277
8280
  sx: _objectSpread({
8278
8281
  backgroundColor: "grey2.main",
@@ -8300,20 +8303,27 @@
8300
8303
  return /*#__PURE__*/React__default['default'].createElement(Button, {
8301
8304
  key: "tab-".concat(tab),
8302
8305
  onClick: function onClick() {
8303
- setShowSearch(null);
8304
8306
  setActiveBoard(null);
8305
- setTabSelection(tab);
8307
+
8308
+ if (tabSelection.includes(tab)) {
8309
+ var newTabs = tabSelection.filter(function (item) {
8310
+ return item !== tab;
8311
+ });
8312
+ setTabSelection(newTabs);
8313
+ } else {
8314
+ setTabSelection([].concat(_toConsumableArray__default['default'](tabSelection), [tab]));
8315
+ }
8306
8316
  },
8307
- variant: "outlined",
8317
+ variant: tabSelection.includes(tab) ? "contained" : "outlined",
8308
8318
  size: "small",
8319
+ endIcon: tabSelection.includes(tab) && /*#__PURE__*/React__default['default'].createElement(iconsMaterial.CancelRounded, null),
8309
8320
  sx: {
8321
+ fontWeight: "normal",
8310
8322
  marginRight: "10px",
8311
- backgroundColor: tabSelection === tab && "grey3.main",
8312
- ":focus": {
8313
- border: "2px solid ".concat(theme.colors.grey4, " !important")
8314
- }
8323
+ backgroundColor: tabSelection.includes(tab) && "grey4.main"
8315
8324
  },
8316
- color: "grey6"
8325
+ color: tabSelection.includes(tab) ? "grey3" : "notBlack",
8326
+ disableElevation: true
8317
8327
  }, tab);
8318
8328
  })), /*#__PURE__*/React__default['default'].createElement(LibraryControls, {
8319
8329
  currentSort: sort,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blerp/design",
3
- "version": "1.0.46",
3
+ "version": "1.0.50",
4
4
  "description": "Blerp UI",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {