acsi-core 0.1.71 → 0.1.73

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.
@@ -5,6 +5,7 @@ interface IProps {
5
5
  onChange: (name: string, value: string) => void;
6
6
  width?: number;
7
7
  onPressEnter?: (value: string) => void;
8
+ placeholder?: string;
8
9
  }
9
10
  declare const CoreSearch: (props: IProps) => React.JSX.Element;
10
11
  export default CoreSearch;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const PDFViewer: () => import("react").JSX.Element;
3
+ export default PDFViewer;
package/dist/index.css CHANGED
@@ -127,6 +127,9 @@
127
127
  ._2HB5r {
128
128
  padding-right: 30px !important; }
129
129
 
130
+ ._4ehXP {
131
+ width: 400px !important; }
132
+
130
133
  ._xvNBN {
131
134
  border-radius: 8px;
132
135
  font-size: 14px;
package/dist/index.js CHANGED
@@ -93,7 +93,7 @@ var COLORS = {
93
93
  var ORGANIZATION_TENANT = "ORGANIZATION_TENANT";
94
94
  var ORGANIZATION_TEAM = "ORGANIZATION_TEAM";
95
95
 
96
- var styleGlobal = {"signup_wrap":"_1KLz9","box-signin":"_2Jo1o","signin_title":"_3egBO","signup_link":"_1DoIT","google_button":"_34hK_","box-field":"_2e9xO","box-input":"_3zXRp","box-text":"_8NJga","box-button-email":"_21FPk","box-signin-container":"_1QERu","box-signin-text":"_2-znH","box-signin-logo":"_1aB2m","box-right":"_3qndF","box-right-body":"_JzdCr","box-right-footer":"_19aCA","pr-30":"_2HB5r"};
96
+ var styleGlobal = {"signup_wrap":"_1KLz9","box-signin":"_2Jo1o","signin_title":"_3egBO","signup_link":"_1DoIT","google_button":"_34hK_","box-field":"_2e9xO","box-input":"_3zXRp","box-text":"_8NJga","box-button-email":"_21FPk","box-signin-container":"_1QERu","box-signin-text":"_2-znH","box-signin-logo":"_1aB2m","box-right":"_3qndF","box-right-body":"_JzdCr","box-right-footer":"_19aCA","pr-30":"_2HB5r","width-400":"_4ehXP"};
97
97
 
98
98
  var api = axios.create({
99
99
  baseURL: BASE_URL,
@@ -823,7 +823,9 @@ var CoreSearch = function CoreSearch(props) {
823
823
  value = props.value,
824
824
  _onChange = props.onChange,
825
825
  width = props.width,
826
- onPressEnter = props.onPressEnter;
826
+ onPressEnter = props.onPressEnter,
827
+ _props$placeholder = props.placeholder,
828
+ placeholder = _props$placeholder === void 0 ? "Search..." : _props$placeholder;
827
829
  var handleClear = function handleClear() {
828
830
  _onChange(name, "");
829
831
  onPressEnter && onPressEnter("");
@@ -842,9 +844,10 @@ var CoreSearch = function CoreSearch(props) {
842
844
  onChange: function onChange(e) {
843
845
  return _onChange(name, e.target.value);
844
846
  },
845
- placeholder: "Search...",
847
+ placeholder: placeholder,
846
848
  onKeyDown: function onKeyDown(e) {
847
849
  if (e.key === "Enter") {
850
+ e.preventDefault();
848
851
  onPressEnter && onPressEnter(value);
849
852
  }
850
853
  }
@@ -1543,8 +1546,8 @@ var BlockLogin = function BlockLogin(_ref) {
1543
1546
  name: "otpCode",
1544
1547
  value: code,
1545
1548
  onChange: function onChange(_, value) {
1546
- setCode(value);
1547
- setOtpCode(value);
1549
+ setCode(value.trim());
1550
+ setOtpCode(value.trim());
1548
1551
  },
1549
1552
  placeholder: "Code OTP",
1550
1553
  onKeyDown: function onKeyDown(event) {
@@ -1672,6 +1675,7 @@ var useLogin = function useLogin(onNavigate, trackEvent) {
1672
1675
  }
1673
1676
  });
1674
1677
  }, function (e) {
1678
+ reactToastify.toast.error("An error occurred while sending the code. Please try again later.");
1675
1679
  console.log(e);
1676
1680
  });
1677
1681
  return Promise.resolve(_temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp));