@learningpool/ui 1.10.2 → 1.10.4

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.
@@ -7,7 +7,7 @@ import { getNavigationBackground, getNavigationContrastText, getOffsetNavigation
7
7
  import { Drawer } from '@mui/material';
8
8
  import { styled } from '@mui/material/styles';
9
9
  import { animated } from '@react-spring/web';
10
- export var StyledSwipeableAvatar = styled(Drawer)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n // Override the MUI default z-index of the Drawer component\n // to ensure that the drawer is always below the AppBar.\n z-index: ", ";\n\n .MuiPaper-root {\n height: 100vh;\n border: none;\n z-index: 1;\n }\n"], ["\n // Override the MUI default z-index of the Drawer component\n // to ensure that the drawer is always below the AppBar.\n z-index: ", ";\n\n .MuiPaper-root {\n height: 100vh;\n border: none;\n z-index: 1;\n }\n"])), function (props) { return props.theme.zIndex.appBar - 1; });
10
+ export var StyledSwipeableAvatar = styled(Drawer)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* Override the MUI default z-index of the Drawer component\n to ensure that the drawer is always below the AppBar. */\n z-index: ", ";\n\n .MuiPaper-root {\n height: 100vh;\n border: none;\n z-index: 1;\n }\n"], ["\n /* Override the MUI default z-index of the Drawer component\n to ensure that the drawer is always below the AppBar. */\n z-index: ", ";\n\n .MuiPaper-root {\n height: 100vh;\n border: none;\n z-index: 1;\n }\n"])), function (props) { return props.theme.zIndex.appBar - 1; });
11
11
  export var StyledBox = styled(animated.div)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n height: 100%;\n overflow: auto;\n padding: 15vh ", ";\n position: relative;\n"], ["\n background-color: ", ";\n color: ", ";\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n height: 100%;\n overflow: auto;\n padding: 15vh ", ";\n position: relative;\n"])), function (props) { return getOffsetNavigationBackground(props.theme); }, function (props) { return getOffsetNavigationContrastText(props.theme); }, function (props) { return props.theme.spacing(2); });
12
12
  export var StyledBoxProfile = styled(animated.div)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: center;\n margin-bottom: 2rem\n"], ["\n display: flex;\n flex-direction: row;\n align-items: center;\n margin-bottom: 2rem\n"])));
13
13
  export var StyledBoxProfileEdit = styled(animated.div)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
@@ -7,7 +7,7 @@ import { getNavigationBackground, getOffsetNavigationBackground, getOffsetNaviga
7
7
  import { Drawer } from '@mui/material';
8
8
  import { styled } from '@mui/material/styles';
9
9
  import { animated } from '@react-spring/web';
10
- export var StyledSwipeableDrawer = styled(Drawer)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n // Override the MUI default z-index of the Drawer component\n // to ensure that the drawer is always below the AppBar.\n z-index: ", ";\n\n .MuiPaper-root {\n background-color: ", ";\n height: 100vh;\n border: none;\n z-index: 1;\n }\n"], ["\n // Override the MUI default z-index of the Drawer component\n // to ensure that the drawer is always below the AppBar.\n z-index: ", ";\n\n .MuiPaper-root {\n background-color: ", ";\n height: 100vh;\n border: none;\n z-index: 1;\n }\n"])), function (props) { return props.theme.zIndex.appBar - 1; }, function (props) { return getOffsetNavigationBackground(props.theme); });
10
+ export var StyledSwipeableDrawer = styled(Drawer)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* Override the MUI default z-index of the Drawer component\n to ensure that the drawer is always below the AppBar. */\n z-index: ", ";\n\n .MuiPaper-root {\n background-color: ", ";\n height: 100vh;\n border: none;\n z-index: 1;\n }\n"], ["\n /* Override the MUI default z-index of the Drawer component\n to ensure that the drawer is always below the AppBar. */\n z-index: ", ";\n\n .MuiPaper-root {\n background-color: ", ";\n height: 100vh;\n border: none;\n z-index: 1;\n }\n"])), function (props) { return props.theme.zIndex.appBar - 1; }, function (props) { return getOffsetNavigationBackground(props.theme); });
11
11
  export var StyledBox = styled(Box)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 100%;\n overflow: auto;\n padding-bottom: 6rem;\n"], ["\n height: 100%;\n overflow: auto;\n padding-bottom: 6rem;\n"])));
12
12
  export var StyledDrawerLogo = styled(animated.div)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: transparent;\n display: flex;\n align-items: center;\n margin: 1.5rem 0 2.5rem 1.5rem;\n\n .MuiSvgIcon-root {\n width: 2rem;\n height: 2rem;\n }\n"], ["\n background-color: transparent;\n display: flex;\n align-items: center;\n margin: 1.5rem 0 2.5rem 1.5rem;\n\n .MuiSvgIcon-root {\n width: 2rem;\n height: 2rem;\n }\n"])));
13
13
  export var StyledDrawerLogoText = styled(Typography)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-size: 1.2rem;\n margin-left: .5rem;\n color: ", ";\n"], ["\n font-size: 1.2rem;\n margin-left: .5rem;\n color: ", ";\n"])), function (props) { return getOffsetNavigationContrastText(props.theme); });
@@ -3,11 +3,11 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
3
3
  return cooked;
4
4
  };
5
5
  import { SwipeableDrawer, OutlinedInput, InputLabel } from '../../../index';
6
- import { getNavigationContrastText, getOffsetNavigationBackground, getOffsetNavigationContrastText } from '../helpers';
6
+ import { getOffsetNavigationBackground, getOffsetNavigationContrastText } from '../helpers';
7
7
  import { styled } from '@mui/material/styles';
8
8
  import { animated } from '@react-spring/web';
9
- export var StyledSwipeableSearch = styled(SwipeableDrawer)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n // Override the MUI default z-index of the Drawer component\n // to ensure that the drawer is always below the AppBar.\n z-index: ", ";\n\n .MuiPaper-root {\n box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),\n 0px 5px 8px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 14px 0px rgba(0, 0, 0, 0.12);\n border: none;\n border-radius: 20px 20px 0 0;\n z-index: 1;\n }\n"], ["\n // Override the MUI default z-index of the Drawer component\n // to ensure that the drawer is always below the AppBar.\n z-index: ", ";\n\n .MuiPaper-root {\n box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),\n 0px 5px 8px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 14px 0px rgba(0, 0, 0, 0.12);\n border: none;\n border-radius: 20px 20px 0 0;\n z-index: 1;\n }\n"])), function (props) { return props.theme.zIndex.appBar - 1; });
9
+ export var StyledSwipeableSearch = styled(SwipeableDrawer)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* Override the MUI default z-index of the Drawer component\n to ensure that the drawer is always below the AppBar. */\n z-index: ", ";\n\n .MuiPaper-root {\n box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),\n 0px 5px 8px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 14px 0px rgba(0, 0, 0, 0.12);\n border: none;\n border-radius: 20px 20px 0 0;\n z-index: 1;\n }\n"], ["\n /* Override the MUI default z-index of the Drawer component\n to ensure that the drawer is always below the AppBar. */\n z-index: ", ";\n\n .MuiPaper-root {\n box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),\n 0px 5px 8px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 14px 0px rgba(0, 0, 0, 0.12);\n border: none;\n border-radius: 20px 20px 0 0;\n z-index: 1;\n }\n"])), function (props) { return props.theme.zIndex.appBar - 1; });
10
10
  export var StyledBox = styled(animated.div)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n padding: ", ";\n height: 100%;\n"], ["\n background-color: ", ";\n padding: ", ";\n height: 100%;\n"])), function (props) { return getOffsetNavigationBackground(props.theme); }, function (props) { return props.theme.spacing(3, 2.5, '80px', 2.5); });
11
11
  export var StyledOutlinedInputLabel = styled(InputLabel)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n\n &.MuiInputLabel-root.Mui-focused {\n background-color: ", ";\n color: ", ";\n }\n"], ["\n background-color: ", ";\n color: ", ";\n\n &.MuiInputLabel-root.Mui-focused {\n background-color: ", ";\n color: ", ";\n }\n"])), function (props) { return getOffsetNavigationBackground(props.theme); }, function (props) { return getOffsetNavigationContrastText(props.theme); }, function (props) { return getOffsetNavigationBackground(props.theme); }, function (props) { return getOffsetNavigationContrastText(props.theme); });
12
- export var StyledOutlinedInput = styled(OutlinedInput)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n .MuiInputBase-input {\n color: ", ";\n }\n\n fieldset {\n border-color: ", " !important;\n transition: all 0.2s ease;\n }\n\n &.MuiOutlinedInput-root:hover fieldset,\n &.MuiOutlinedInput-root:focus fieldset {\n border-width: 2px;\n }\n\n .MuiIconButton-root {\n color: ", ";\n }\n"], ["\n .MuiInputBase-input {\n color: ", ";\n }\n\n fieldset {\n border-color: ", " !important;\n transition: all 0.2s ease;\n }\n\n &.MuiOutlinedInput-root:hover fieldset,\n &.MuiOutlinedInput-root:focus fieldset {\n border-width: 2px;\n }\n\n .MuiIconButton-root {\n color: ", ";\n }\n"])), function (props) { return getNavigationContrastText(props.theme); }, function (props) { return getOffsetNavigationContrastText(props.theme); }, function (props) { return getOffsetNavigationContrastText(props.theme); });
12
+ export var StyledOutlinedInput = styled(OutlinedInput)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n .MuiInputBase-input {\n color: ", ";\n }\n\n fieldset {\n border-color: ", " !important;\n transition: all 0.2s ease;\n }\n\n &.MuiOutlinedInput-root:hover fieldset,\n &.MuiOutlinedInput-root:focus fieldset {\n border-width: 2px;\n }\n\n .MuiIconButton-root {\n color: ", ";\n }\n"], ["\n .MuiInputBase-input {\n color: ", ";\n }\n\n fieldset {\n border-color: ", " !important;\n transition: all 0.2s ease;\n }\n\n &.MuiOutlinedInput-root:hover fieldset,\n &.MuiOutlinedInput-root:focus fieldset {\n border-width: 2px;\n }\n\n .MuiIconButton-root {\n color: ", ";\n }\n"])), function (props) { return getOffsetNavigationContrastText(props.theme); }, function (props) { return getOffsetNavigationContrastText(props.theme); }, function (props) { return getOffsetNavigationContrastText(props.theme); });
13
13
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "components",
10
10
  "ui"
11
11
  ],
12
- "version": "1.10.2",
12
+ "version": "1.10.4",
13
13
  "private": false,
14
14
  "main": "index.js",
15
15
  "module": "index.js",
package/utils/theme.js CHANGED
@@ -33,7 +33,7 @@ export var defaultTheme = {
33
33
  export var lightTheme = {
34
34
  palette: {
35
35
  primary: {
36
- main: '#0069b4'
36
+ main: '#0077cc'
37
37
  },
38
38
  secondary: {
39
39
  main: blue[500]