techsbcn-storybook 0.7.3 → 0.8.0

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.
@@ -10,9 +10,9 @@ interface ChangePasswordFormProps {
10
10
  };
11
11
  valuesText: {
12
12
  buttonText: string;
13
- textPassword: string;
13
+ labelPassword: string;
14
14
  placeholderPassword?: string;
15
- textSamePassword: string;
15
+ labelSamePassword: string;
16
16
  placeholderSamePassword?: string;
17
17
  };
18
18
  }
@@ -10,9 +10,9 @@ interface LoginFormProps {
10
10
  };
11
11
  valuesText: {
12
12
  buttonText: string;
13
- textLogin: string;
13
+ labelLogin: string;
14
14
  placeholderLogin?: string;
15
- textPassword: string;
15
+ labelPassword: string;
16
16
  placeholderPassword?: string;
17
17
  };
18
18
  }
@@ -9,7 +9,7 @@ interface resetPasswordFormProps {
9
9
  };
10
10
  valuesText: {
11
11
  buttonText: string;
12
- text: string;
12
+ label: string;
13
13
  placeholder?: string;
14
14
  };
15
15
  }
@@ -5,3 +5,5 @@ export declare const Default: Story<import("@storybook/react").Args>;
5
5
  export declare const LoginButton: Story<import("@storybook/react").Args>;
6
6
  export declare const ModalCancel: Story<import("@storybook/react").Args>;
7
7
  export declare const Loading: Story<import("@storybook/react").Args>;
8
+ export declare const StartIcon: Story<import("@storybook/react").Args>;
9
+ export declare const EndIcon: Story<import("@storybook/react").Args>;
@@ -62,7 +62,7 @@ var PublicFormWrapper = function PublicFormWrapper(props) {
62
62
  }, props.children)));
63
63
  };
64
64
 
65
- var css_248z$1 = ".search-component .title {\n color: #000;\n font-size: calc(21px + (23 - 21) * calc(100vw - 300px)/1300) !important;\n font-weight: 400;\n position: relative;\n}\n.search-component .tune-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 50px;\n cursor: pointer;\n color: white;\n}\n.search-component .tune-btn:hover {\n box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12) !important;\n}\n.search-component .wrapper-actions .btn-action {\n cursor: pointer;\n}\n.search-component .wrapper-actions .btn-action .btn {\n width: max-content;\n}\n.search-component .wrapper-actions .btn-action svg {\n font-size: 40px !important;\n}\n\n.search-menu-actions .wrapper-actions .btn-action {\n cursor: pointer;\n}\n.search-menu-actions .wrapper-actions .btn-action .btn {\n width: max-content;\n}\n.search-menu-actions .wrapper-actions .btn-action svg {\n font-size: 40px !important;\n}";
65
+ var css_248z$1 = ".search-component .title {\n color: #000;\n font-size: calc(21px + (23 - 21) * calc(100vw - 300px)/1300) !important;\n font-weight: 400;\n position: relative;\n}\n.search-component .tune-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 50px;\n cursor: pointer;\n color: white;\n}\n.search-component .tune-btn:hover {\n box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12) !important;\n}\n.search-component .wrapper-actions .btn-action {\n cursor: pointer;\n}\n.search-component .wrapper-actions .btn-action .btn {\n width: max-content;\n}\n.search-component .wrapper-actions .btn-action svg {\n font-size: 40px;\n}\n\n.search-menu-actions .wrapper-actions .btn-action {\n cursor: pointer;\n}\n.search-menu-actions .wrapper-actions .btn-action .btn {\n width: max-content;\n}\n.search-menu-actions .wrapper-actions .btn-action svg {\n font-size: 40px;\n}";
66
66
  styleInject(css_248z$1);
67
67
 
68
68
  var ActionsList = function ActionsList(actions) {
@@ -137,7 +137,7 @@ var SearchComponent = function SearchComponent(props) {
137
137
  xs: 4
138
138
  }, React__default.createElement(material.Box, {
139
139
  pl: 1,
140
- className: "title main-background-color-after"
140
+ className: "main-background-color-after title"
141
141
  }, props.title)), props.actions && React__default.createElement(material.Grid, {
142
142
  item: true,
143
143
  xs: 8,
@@ -232,7 +232,7 @@ var SearchComponent = function SearchComponent(props) {
232
232
  })))));
233
233
  };
234
234
 
235
- var css_248z$2 = ".main-wrapper-component {\n background-color: white;\n box-shadow: 0 1px 20px 0 rgba(69, 90, 100, 0.08);\n}\n.main-wrapper-component .title {\n color: #000;\n font-size: calc(21px + (23 - 21) * calc(100vw - 300px)/1300) !important;\n font-weight: 400;\n position: relative;\n}\n.main-wrapper-component .title:after {\n content: \"\";\n position: absolute;\n left: -17px;\n top: 0;\n width: 4px;\n height: 30px;\n}\n.main-wrapper-component .wrapper-actions .btn-action {\n cursor: pointer;\n}\n.main-wrapper-component .wrapper-actions .btn-action .MuiButton-root {\n width: max-content;\n}\n.main-wrapper-component .wrapper-actions .btn-action svg {\n font-size: 40px !important;\n}";
235
+ var css_248z$2 = ".main-wrapper-component {\n background-color: white;\n box-shadow: 0 1px 20px 0 rgba(69, 90, 100, 0.08);\n}\n.main-wrapper-component .title.main-background-color-after {\n color: #000;\n font-size: calc(21px + (23 - 21) * calc(100vw - 300px)/1300) !important;\n font-weight: 400;\n position: relative;\n}\n.main-wrapper-component .title.main-background-color-after:after {\n content: \"\";\n position: absolute;\n left: -17px;\n top: 0;\n width: 4px;\n height: 30px;\n}\n.main-wrapper-component .wrapper-actions .btn-action {\n cursor: pointer;\n}\n.main-wrapper-component .wrapper-actions .btn-action .MuiButton-root {\n width: max-content;\n}\n.main-wrapper-component .wrapper-actions .btn-action svg {\n font-size: 40px;\n}";
236
236
  styleInject(css_248z$2);
237
237
 
238
238
  var MainWrapperComponent = function MainWrapperComponent(props) {
@@ -776,7 +776,7 @@ var UserInfo = function UserInfo(props) {
776
776
  }, React__default.createElement(material.Box, {
777
777
  display: "flex",
778
778
  alignItems: "center"
779
- }, props.photoURL ? React__default.createElement(material.Avatar, {
779
+ }, props.photoURL && props.photoURL !== undefined ? React__default.createElement(material.Avatar, {
780
780
  className: "avatar-user",
781
781
  src: props.photoURL
782
782
  }) : React__default.createElement(material.Avatar, {
@@ -893,7 +893,7 @@ var DrawerSidebar = function DrawerSidebar(props) {
893
893
  }, props.footerComponents))));
894
894
  };
895
895
 
896
- var css_248z$9 = ".app-bar {\n background-color: white !important;\n border-bottom: 1px solid rgba(0, 0, 0, 0.12);\n color: black !important;\n}\n.app-bar .header-logo {\n max-height: 64px;\n height: 100%;\n min-height: 56px;\n width: 100%;\n}\n.app-bar img {\n max-height: 64px;\n height: 100%;\n min-height: 56px;\n width: 100%;\n}";
896
+ var css_248z$9 = ".app-bar {\n background-color: white !important;\n border-bottom: 1px solid rgba(0, 0, 0, 0.12);\n color: black !important;\n}\n.app-bar .header-logo {\n max-height: 59px;\n height: 100%;\n min-height: 56px;\n width: 100%;\n}\n.app-bar img {\n max-height: 59px;\n height: 100%;\n min-height: 56px;\n width: 100%;\n}";
897
897
  styleInject(css_248z$9);
898
898
 
899
899
  var AppHeader = function AppHeader(props) {
@@ -916,7 +916,7 @@ var AppHeader = function AppHeader(props) {
916
916
  }, React__default.createElement(MenuIcon, null)), props.children));
917
917
  };
918
918
 
919
- var css_248z$a = ".MuiButton-root {\n width: auto;\n padding: 0.8rem 1rem !important;\n text-transform: inherit !important;\n line-height: inherit !important;\n box-shadow: none !important;\n font-size: 1rem !important;\n background-color: #3299C7;\n}\n.MuiButton-root.btn-login {\n width: 100%;\n}\n.MuiButton-root.btn-modal-cancel {\n background-color: #666666 !important;\n}\n.MuiButton-root.btn-modal-cancel.Mui-disabled {\n background-color: #666666c4 !important;\n color: #030303b4 !important;\n}\n.MuiButton-root:hover {\n box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12) !important;\n}\n.MuiButton-root .MuiCircularProgress-root {\n color: white !important;\n}\n.MuiButton-root .MuiButton-label .MuiCircularProgress-root {\n color: white !important;\n}";
919
+ var css_248z$a = ".MuiButton-root {\n width: auto;\n padding: 0.8rem 1rem !important;\n text-transform: inherit !important;\n line-height: inherit !important;\n box-shadow: none !important;\n font-size: 1rem !important;\n background-color: #3299C7;\n}\n.MuiButton-root.btn-login {\n width: 100%;\n}\n.MuiButton-root.btn-modal-cancel {\n background-color: #666666 !important;\n}\n.MuiButton-root.btn-modal-cancel.Mui-disabled {\n background-color: #666666c4 !important;\n color: #030303b4 !important;\n}\n.MuiButton-root:hover {\n box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12) !important;\n}\n.MuiButton-root .MuiCircularProgress-root {\n color: white !important;\n}\n.MuiButton-root .MuiButton-label .MuiCircularProgress-root {\n color: white !important;\n}\n.MuiButton-root .MuiButton-startIcon svg {\n font-size: 20px !important;\n}\n.MuiButton-root .MuiButton-endIcon svg {\n font-size: 20px !important;\n}";
920
920
  styleInject(css_248z$a);
921
921
 
922
922
  var ButtonComponent = function ButtonComponent(props) {
@@ -1964,7 +1964,7 @@ var LoginForm = function LoginForm(props) {
1964
1964
  name = _ref$field.name,
1965
1965
  ref = _ref$field.ref;
1966
1966
  return React__default.createElement(TextFieldComponent, {
1967
- label: props.valuesText.textLogin,
1967
+ label: props.valuesText.labelLogin,
1968
1968
  placeholder: props.valuesText.placeholderLogin,
1969
1969
  autoComplete: "login",
1970
1970
  error: !!errors.login,
@@ -1989,7 +1989,7 @@ var LoginForm = function LoginForm(props) {
1989
1989
  name = _ref2$field.name,
1990
1990
  ref = _ref2$field.ref;
1991
1991
  return React__default.createElement(TextFieldComponent, {
1992
- label: props.valuesText.textPassword,
1992
+ label: props.valuesText.labelPassword,
1993
1993
  placeholder: props.valuesText.placeholderPassword,
1994
1994
  type: showPassword ? 'text' : 'password',
1995
1995
  error: !!errors.password,
@@ -2066,7 +2066,7 @@ var ChangePasswordForm = function ChangePasswordForm(props) {
2066
2066
  name = _ref$field.name,
2067
2067
  ref = _ref$field.ref;
2068
2068
  return React__default.createElement(TextFieldComponent, {
2069
- label: props.valuesText.textPassword,
2069
+ label: props.valuesText.labelPassword,
2070
2070
  type: showPassword ? 'text' : 'password',
2071
2071
  error: !!errors.password,
2072
2072
  placeholder: props.valuesText.placeholderPassword,
@@ -2097,7 +2097,7 @@ var ChangePasswordForm = function ChangePasswordForm(props) {
2097
2097
  name = _ref2$field.name,
2098
2098
  ref = _ref2$field.ref;
2099
2099
  return React__default.createElement(TextFieldComponent, {
2100
- label: props.valuesText.textSamePassword,
2100
+ label: props.valuesText.labelSamePassword,
2101
2101
  placeholder: props.valuesText.placeholderSamePassword,
2102
2102
  type: showPassword ? 'text' : 'password',
2103
2103
  error: !!errors.passwordConfirmation,
@@ -2157,7 +2157,7 @@ var ResetPasswordForm = function ResetPasswordForm(props) {
2157
2157
  name = _ref$field.name,
2158
2158
  ref = _ref$field.ref;
2159
2159
  return React__default.createElement(TextFieldComponent, {
2160
- label: props.valuesText.text,
2160
+ label: props.valuesText.label,
2161
2161
  placeholder: props.valuesText.placeholder,
2162
2162
  autoComplete: "email",
2163
2163
  error: !!errors.email,