acsi-core 0.1.16 → 0.1.18

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.
@@ -20,6 +20,7 @@ var setUser = createAction("common/setUser");
20
20
  var setLanguage = createAction("common/setLanguage");
21
21
  var reset = createAction("common/reset");
22
22
  var setMenuCollapse = createAction("common/setMenuCollapse");
23
+ var setIsRefetchSidebar = createAction("common/setIsRefetchSidebar");
23
24
 
24
25
  var GOOGLE_RECAPTCHA_KEY = process.env.REACT_APP_GOOGLE_RECAPTCHA_KEY || "";
25
26
  var GOOGLE_CLIENT_ID = process.env.REACT_APP_GOOGLE_CLIENT_ID || "";
@@ -556,7 +557,8 @@ var initialState = {
556
557
  },
557
558
  user: null,
558
559
  academy: null,
559
- menuCollapse: false
560
+ menuCollapse: false,
561
+ isRefetchSidebar: false
560
562
  };
561
563
  var commonReducer = createReducer(initialState, function (builder) {
562
564
  builder.addCase(setLoading, function (state, action) {
@@ -571,6 +573,8 @@ var commonReducer = createReducer(initialState, function (builder) {
571
573
  return initialState;
572
574
  }).addCase(setMenuCollapse, function (state, action) {
573
575
  state.menuCollapse = action.payload;
576
+ }).addCase(setIsRefetchSidebar, function (state) {
577
+ state.isRefetchSidebar = !state.isRefetchSidebar;
574
578
  });
575
579
  });
576
580
 
@@ -1451,8 +1455,8 @@ var Close = function Close(props) {
1451
1455
 
1452
1456
  var Info = function Info() {
1453
1457
  return React.createElement("svg", {
1454
- width: "12",
1455
- height: "12",
1458
+ width: "16",
1459
+ height: "16",
1456
1460
  viewBox: "0 0 12 12",
1457
1461
  fill: "none",
1458
1462
  xmlns: "http://www.w3.org/2000/svg"
@@ -1770,7 +1774,7 @@ var CoreSelectCompact = function CoreSelectCompact(props) {
1770
1774
  }));
1771
1775
  };
1772
1776
 
1773
- var styles$b = {"core-input-compact":"_1qmXW","label":"_1argp"};
1777
+ var styles$b = {"core-input-compact":"_1qmXW","label":"_1argp","icon":"_3DPRG"};
1774
1778
 
1775
1779
  var CoreInputCompact = function CoreInputCompact(props) {
1776
1780
  var _props$name = props.name,
@@ -1783,7 +1787,14 @@ var CoreInputCompact = function CoreInputCompact(props) {
1783
1787
  width = props.width,
1784
1788
  _props$placeholder = props.placeholder,
1785
1789
  placeholder = _props$placeholder === void 0 ? "Type here" : _props$placeholder,
1786
- error = props.error;
1790
+ error = props.error,
1791
+ tooltip = props.tooltip;
1792
+ var _useState = useState(false),
1793
+ isOpenTooltip = _useState[0],
1794
+ setIsOpenTooltip = _useState[1];
1795
+ var toggleTooltip = function toggleTooltip() {
1796
+ return setIsOpenTooltip(!isOpenTooltip);
1797
+ };
1787
1798
  return React.createElement("div", {
1788
1799
  className: "" + styles$b["core-input-compact"],
1789
1800
  style: {
@@ -1791,7 +1802,10 @@ var CoreInputCompact = function CoreInputCompact(props) {
1791
1802
  }
1792
1803
  }, label && React.createElement("div", {
1793
1804
  className: styles$b["label"]
1794
- }, React.createElement("label", null, label), React.createElement(Info, null)), React.createElement("input", {
1805
+ }, React.createElement("label", null, label), tooltip ? React.createElement("div", {
1806
+ id: name,
1807
+ className: styles$b["icon"]
1808
+ }, React.createElement(Info, null)) : null), React.createElement("input", {
1795
1809
  style: {
1796
1810
  backgroundColor: error ? COLORS.lightYellow : "transparent"
1797
1811
  },
@@ -1802,7 +1816,11 @@ var CoreInputCompact = function CoreInputCompact(props) {
1802
1816
  },
1803
1817
  disabled: disabled,
1804
1818
  placeholder: placeholder
1805
- }));
1819
+ }), tooltip && React.createElement(Tooltip, {
1820
+ target: name,
1821
+ isOpen: isOpenTooltip,
1822
+ toggle: toggleTooltip
1823
+ }, tooltip));
1806
1824
  };
1807
1825
 
1808
1826
  var styles$c = {"core-label-input":"_2YqZu","size-h1":"_23-uu","size-h2":"_16lQL"};
@@ -2042,5 +2060,5 @@ var CustomSelectOption = function CustomSelectOption(_ref) {
2042
2060
 
2043
2061
  var historyCore = createBrowserHistory();
2044
2062
 
2045
- export { ACCESS_TOKEN, BASE_URL, CommonDialog, ConfirmDialog, CoreButton, CoreInput$1 as CoreCheckbox, CoreError, CoreInput, CoreInputCompact, CoreModal, CoreRadio, CoreRange, CoreSearch, CoreSelect, CoreSelectCompact, CoreTextArea, CoreTitleInput, CustomAsyncSelect, CustomCreatable, CustomPagination, CustomSelect, CustomSelectOption, DATE_TIME_MIN_VALUE, LayoutContext, Loading, Login, NotFound, Role, api$1 as api, apiUpload$1 as apiUpload, getErrorMessage, historyCore, setAlert, setLoading, setMenuCollapse, setUser, store, useGoogleSignOut };
2063
+ export { ACCESS_TOKEN, BASE_URL, CommonDialog, ConfirmDialog, CoreButton, CoreInput$1 as CoreCheckbox, CoreError, CoreInput, CoreInputCompact, CoreModal, CoreRadio, CoreRange, CoreSearch, CoreSelect, CoreSelectCompact, CoreTextArea, CoreTitleInput, CustomAsyncSelect, CustomCreatable, CustomPagination, CustomSelect, CustomSelectOption, DATE_TIME_MIN_VALUE, LayoutContext, Loading, Login, NotFound, Role, api$1 as api, apiUpload$1 as apiUpload, getErrorMessage, historyCore, setAlert, setIsRefetchSidebar, setLoading, setMenuCollapse, setUser, store, useGoogleSignOut };
2046
2064
  //# sourceMappingURL=index.modern.js.map