@bigbinary/neeto-molecules 1.0.21 → 1.0.23

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.
Files changed (45) hide show
  1. package/README.md +1 -0
  2. package/dist/CustomDomain.cjs.js +1867 -225
  3. package/dist/CustomDomain.cjs.js.map +1 -1
  4. package/dist/CustomDomain.js +1874 -233
  5. package/dist/CustomDomain.js.map +1 -1
  6. package/dist/Header.cjs.js +218 -51
  7. package/dist/Header.cjs.js.map +1 -1
  8. package/dist/Header.js +220 -53
  9. package/dist/Header.js.map +1 -1
  10. package/dist/IpRestriction.cjs.js +77 -57
  11. package/dist/IpRestriction.cjs.js.map +1 -1
  12. package/dist/IpRestriction.js +79 -59
  13. package/dist/IpRestriction.js.map +1 -1
  14. package/dist/NeetoWidget.cjs.js +130 -144
  15. package/dist/NeetoWidget.cjs.js.map +1 -1
  16. package/dist/NeetoWidget.js +130 -144
  17. package/dist/NeetoWidget.js.map +1 -1
  18. package/dist/Rename.cjs.js +1314 -0
  19. package/dist/Rename.cjs.js.map +1 -0
  20. package/dist/Rename.js +1308 -0
  21. package/dist/Rename.js.map +1 -0
  22. package/dist/ResponsiveDevicePicker.cjs.js +547 -0
  23. package/dist/ResponsiveDevicePicker.cjs.js.map +1 -0
  24. package/dist/ResponsiveDevicePicker.js +541 -0
  25. package/dist/ResponsiveDevicePicker.js.map +1 -0
  26. package/dist/ShareViaEmail.cjs.js +155 -98
  27. package/dist/ShareViaEmail.cjs.js.map +1 -1
  28. package/dist/ShareViaEmail.js +155 -98
  29. package/dist/ShareViaEmail.js.map +1 -1
  30. package/dist/Sidebar.cjs.js +51 -35
  31. package/dist/Sidebar.cjs.js.map +1 -1
  32. package/dist/Sidebar.js +53 -37
  33. package/dist/Sidebar.js.map +1 -1
  34. package/dist/SubHeader.cjs.js +1683 -32
  35. package/dist/SubHeader.cjs.js.map +1 -1
  36. package/dist/SubHeader.js +1683 -33
  37. package/dist/SubHeader.js.map +1 -1
  38. package/package.json +5 -3
  39. package/src/translations/en.json +40 -33
  40. package/types/Header.d.ts +2 -0
  41. package/types/Rename.d.ts +59 -0
  42. package/types/ResponsiveDevicePicker.d.ts +30 -0
  43. package/types/ShareViaEmail.d.ts +1 -0
  44. package/types/SubHeader.d.ts +31 -1
  45. package/types/TableWrapper.d.ts +13 -5
@@ -1,5 +1,5 @@
1
1
  import React, { useState } from 'react';
2
- import { Typography, Button as Button$1, Alert, Switch } from '@bigbinary/neetoui';
2
+ import { Typography, Button as Button$1, Tooltip, Alert, Switch } from '@bigbinary/neetoui';
3
3
  import { useTranslation } from 'react-i18next';
4
4
  import { Neeto } from '@bigbinary/neeto-icons/logos';
5
5
  import { Check, Close, Delete, Edit, Plus } from '@bigbinary/neeto-icons';
@@ -7,7 +7,7 @@ import { Form, Input, Button } from '@bigbinary/neetoui/formik';
7
7
  import { useQuery, useQueryClient, useMutation } from 'react-query';
8
8
  import axios from 'axios';
9
9
  import { t as t$1 } from 'i18next';
10
- import { isNotNil } from '@bigbinary/neeto-commons-frontend/pure';
10
+ import { isNotNil, truncate } from '@bigbinary/neeto-commons-frontend/pure';
11
11
  import { isNil } from 'ramda';
12
12
  import * as yup from 'yup';
13
13
 
@@ -306,7 +306,7 @@ function _slicedToArray(arr, i) {
306
306
 
307
307
  function cov_1cujarweav() {
308
308
  var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/constants.js";
309
- var hash = "0b8756e4b8928dd48505dca1e544ef83bab6cbdf";
309
+ var hash = "ebde9f194323d82d4c6984fbf00d33175b3c14e2";
310
310
  var global = new Function("return this")();
311
311
  var gcv = "__coverage__";
312
312
  var coverageData = {
@@ -341,6 +341,16 @@ function cov_1cujarweav() {
341
341
  line: 12,
342
342
  column: 1
343
343
  }
344
+ },
345
+ "3": {
346
+ start: {
347
+ line: 14,
348
+ column: 31
349
+ },
350
+ end: {
351
+ line: 14,
352
+ column: 33
353
+ }
344
354
  }
345
355
  },
346
356
  fnMap: {},
@@ -348,12 +358,13 @@ function cov_1cujarweav() {
348
358
  s: {
349
359
  "0": 0,
350
360
  "1": 0,
351
- "2": 0
361
+ "2": 0,
362
+ "3": 0
352
363
  },
353
364
  f: {},
354
365
  b: {},
355
366
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
356
- hash: "0b8756e4b8928dd48505dca1e544ef83bab6cbdf"
367
+ hash: "ebde9f194323d82d4c6984fbf00d33175b3c14e2"
357
368
  };
358
369
  var coverage = global[gcv] || (global[gcv] = {});
359
370
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -379,6 +390,7 @@ var QUERY_KEYS = (cov_1cujarweav().s[2]++, {
379
390
  ALLOWED_IP_RANGES: "ALLOWED_IP_RANGES",
380
391
  CURRENT_IP: "CURRENT_IP"
381
392
  });
393
+ var TRUNCATE_LENGTH = (cov_1cujarweav().s[3]++, 18);
382
394
 
383
395
  function cov_xk0z0bw2i() {
384
396
  var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/apis/allowed_ip_ranges.js";
@@ -5806,7 +5818,7 @@ var FormRow = function FormRow(_ref) {
5806
5818
 
5807
5819
  function cov_l7fpuvaq6() {
5808
5820
  var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/Row.jsx";
5809
- var hash = "0b42a2c717b80817fb83fe17a29e273da1efced9";
5821
+ var hash = "7aa78bc3a3cecfa7aaeda9ea5cb1611d30c5a57a";
5810
5822
  var global = new Function("return this")();
5811
5823
  var gcv = "__coverage__";
5812
5824
  var coverageData = {
@@ -5814,111 +5826,111 @@ function cov_l7fpuvaq6() {
5814
5826
  statementMap: {
5815
5827
  "0": {
5816
5828
  start: {
5817
- line: 9,
5829
+ line: 11,
5818
5830
  column: 12
5819
5831
  },
5820
5832
  end: {
5821
- line: 71,
5833
+ line: 85,
5822
5834
  column: 1
5823
5835
  }
5824
5836
  },
5825
5837
  "1": {
5826
5838
  start: {
5827
- line: 11,
5839
+ line: 13,
5828
5840
  column: 4
5829
5841
  },
5830
5842
  end: {
5831
- line: 11,
5843
+ line: 13,
5832
5844
  column: 19
5833
5845
  }
5834
5846
  },
5835
5847
  "2": {
5836
5848
  start: {
5837
- line: 13,
5849
+ line: 15,
5838
5850
  column: 44
5839
5851
  },
5840
5852
  end: {
5841
- line: 13,
5853
+ line: 15,
5842
5854
  column: 71
5843
5855
  }
5844
5856
  },
5845
5857
  "3": {
5846
5858
  start: {
5847
- line: 14,
5859
+ line: 16,
5848
5860
  column: 16
5849
5861
  },
5850
5862
  end: {
5851
- line: 14,
5863
+ line: 16,
5852
5864
  column: 32
5853
5865
  }
5854
5866
  },
5855
5867
  "4": {
5856
5868
  start: {
5857
- line: 16,
5869
+ line: 18,
5858
5870
  column: 23
5859
5871
  },
5860
5872
  end: {
5861
- line: 19,
5873
+ line: 21,
5862
5874
  column: 3
5863
5875
  }
5864
5876
  },
5865
5877
  "5": {
5866
5878
  start: {
5867
- line: 17,
5879
+ line: 19,
5868
5880
  column: 4
5869
5881
  },
5870
5882
  end: {
5871
- line: 17,
5883
+ line: 19,
5872
5884
  column: 35
5873
5885
  }
5874
5886
  },
5875
5887
  "6": {
5876
5888
  start: {
5877
- line: 18,
5889
+ line: 20,
5878
5890
  column: 4
5879
5891
  },
5880
5892
  end: {
5881
- line: 18,
5893
+ line: 20,
5882
5894
  column: 39
5883
5895
  }
5884
5896
  },
5885
5897
  "7": {
5886
5898
  start: {
5887
- line: 21,
5899
+ line: 23,
5888
5900
  column: 2
5889
5901
  },
5890
5902
  end: {
5891
- line: 70,
5903
+ line: 84,
5892
5904
  column: 4
5893
5905
  }
5894
5906
  },
5895
5907
  "8": {
5896
5908
  start: {
5897
- line: 43,
5909
+ line: 57,
5898
5910
  column: 25
5899
5911
  },
5900
5912
  end: {
5901
- line: 43,
5913
+ line: 57,
5902
5914
  column: 58
5903
5915
  }
5904
5916
  },
5905
5917
  "9": {
5906
5918
  start: {
5907
- line: 56,
5919
+ line: 70,
5908
5920
  column: 25
5909
5921
  },
5910
5922
  end: {
5911
- line: 56,
5923
+ line: 70,
5912
5924
  column: 59
5913
5925
  }
5914
5926
  },
5915
5927
  "10": {
5916
5928
  start: {
5917
- line: 66,
5929
+ line: 80,
5918
5930
  column: 25
5919
5931
  },
5920
5932
  end: {
5921
- line: 66,
5933
+ line: 80,
5922
5934
  column: 47
5923
5935
  }
5924
5936
  }
@@ -5928,121 +5940,121 @@ function cov_l7fpuvaq6() {
5928
5940
  name: "(anonymous_0)",
5929
5941
  decl: {
5930
5942
  start: {
5931
- line: 9,
5943
+ line: 11,
5932
5944
  column: 12
5933
5945
  },
5934
5946
  end: {
5935
- line: 9,
5947
+ line: 11,
5936
5948
  column: 13
5937
5949
  }
5938
5950
  },
5939
5951
  loc: {
5940
5952
  start: {
5941
- line: 9,
5953
+ line: 11,
5942
5954
  column: 41
5943
5955
  },
5944
5956
  end: {
5945
- line: 71,
5957
+ line: 85,
5946
5958
  column: 1
5947
5959
  }
5948
5960
  },
5949
- line: 9
5961
+ line: 11
5950
5962
  },
5951
5963
  "1": {
5952
5964
  name: "(anonymous_1)",
5953
5965
  decl: {
5954
5966
  start: {
5955
- line: 16,
5967
+ line: 18,
5956
5968
  column: 23
5957
5969
  },
5958
5970
  end: {
5959
- line: 16,
5971
+ line: 18,
5960
5972
  column: 24
5961
5973
  }
5962
5974
  },
5963
5975
  loc: {
5964
5976
  start: {
5965
- line: 16,
5977
+ line: 18,
5966
5978
  column: 29
5967
5979
  },
5968
5980
  end: {
5969
- line: 19,
5981
+ line: 21,
5970
5982
  column: 3
5971
5983
  }
5972
5984
  },
5973
- line: 16
5985
+ line: 18
5974
5986
  },
5975
5987
  "2": {
5976
5988
  name: "(anonymous_2)",
5977
5989
  decl: {
5978
5990
  start: {
5979
- line: 43,
5991
+ line: 57,
5980
5992
  column: 19
5981
5993
  },
5982
5994
  end: {
5983
- line: 43,
5995
+ line: 57,
5984
5996
  column: 20
5985
5997
  }
5986
5998
  },
5987
5999
  loc: {
5988
6000
  start: {
5989
- line: 43,
6001
+ line: 57,
5990
6002
  column: 25
5991
6003
  },
5992
6004
  end: {
5993
- line: 43,
6005
+ line: 57,
5994
6006
  column: 58
5995
6007
  }
5996
6008
  },
5997
- line: 43
6009
+ line: 57
5998
6010
  },
5999
6011
  "3": {
6000
6012
  name: "(anonymous_3)",
6001
6013
  decl: {
6002
6014
  start: {
6003
- line: 56,
6015
+ line: 70,
6004
6016
  column: 19
6005
6017
  },
6006
6018
  end: {
6007
- line: 56,
6019
+ line: 70,
6008
6020
  column: 20
6009
6021
  }
6010
6022
  },
6011
6023
  loc: {
6012
6024
  start: {
6013
- line: 56,
6025
+ line: 70,
6014
6026
  column: 25
6015
6027
  },
6016
6028
  end: {
6017
- line: 56,
6029
+ line: 70,
6018
6030
  column: 59
6019
6031
  }
6020
6032
  },
6021
- line: 56
6033
+ line: 70
6022
6034
  },
6023
6035
  "4": {
6024
6036
  name: "(anonymous_4)",
6025
6037
  decl: {
6026
6038
  start: {
6027
- line: 66,
6039
+ line: 80,
6028
6040
  column: 19
6029
6041
  },
6030
6042
  end: {
6031
- line: 66,
6043
+ line: 80,
6032
6044
  column: 20
6033
6045
  }
6034
6046
  },
6035
6047
  loc: {
6036
6048
  start: {
6037
- line: 66,
6049
+ line: 80,
6038
6050
  column: 25
6039
6051
  },
6040
6052
  end: {
6041
- line: 66,
6053
+ line: 80,
6042
6054
  column: 47
6043
6055
  }
6044
6056
  },
6045
- line: 66
6057
+ line: 80
6046
6058
  }
6047
6059
  },
6048
6060
  branchMap: {},
@@ -6068,7 +6080,7 @@ function cov_l7fpuvaq6() {
6068
6080
  },
6069
6081
  b: {},
6070
6082
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
6071
- hash: "0b42a2c717b80817fb83fe17a29e273da1efced9"
6083
+ hash: "7aa78bc3a3cecfa7aaeda9ea5cb1611d30c5a57a"
6072
6084
  };
6073
6085
  var coverage = global[gcv] || (global[gcv] = {});
6074
6086
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -6108,13 +6120,21 @@ var Row = function Row(_ref) {
6108
6120
  cov_l7fpuvaq6().s[7]++;
6109
6121
  return /*#__PURE__*/React.createElement("div", {
6110
6122
  className: "neeto-ui-bg-white flex w-full flex-row justify-between px-1 py-2"
6123
+ }, /*#__PURE__*/React.createElement(Tooltip, {
6124
+ content: data.ipStart,
6125
+ disabled: data.ipStart.length < TRUNCATE_LENGTH,
6126
+ position: "top"
6111
6127
  }, /*#__PURE__*/React.createElement(Typography, {
6112
- className: "w-4/12 flex-grow px-3 py-2 text-left",
6128
+ className: "flex w-4/12 flex-grow items-center px-3 py-2 text-left",
6113
6129
  style: "body2"
6114
- }, data.ipStart), /*#__PURE__*/React.createElement(Typography, {
6115
- className: "w-4/12 flex-grow px-3 py-2 text-left",
6130
+ }, truncate(data.ipStart, TRUNCATE_LENGTH))), /*#__PURE__*/React.createElement(Tooltip, {
6131
+ content: data.ipEnd,
6132
+ disabled: data.ipEnd.length < TRUNCATE_LENGTH,
6133
+ position: "top"
6134
+ }, /*#__PURE__*/React.createElement(Typography, {
6135
+ className: "flex w-4/12 flex-grow items-center px-3 py-2 text-left",
6116
6136
  style: "body2"
6117
- }, data.ipEnd), /*#__PURE__*/React.createElement("div", {
6137
+ }, truncate(data.ipEnd, TRUNCATE_LENGTH))), /*#__PURE__*/React.createElement("div", {
6118
6138
  className: "w-4/12 flex-grow px-3 py-2 text-center"
6119
6139
  }, /*#__PURE__*/React.createElement(Button$1, {
6120
6140
  icon: Delete,
@@ -7723,7 +7743,7 @@ var IpRestriction = function IpRestriction() {
7723
7743
  /*#__PURE__*/
7724
7744
  // eslint-disable-next-line @bigbinary/neeto/use-neetoui-classes
7725
7745
  React.createElement("div", {
7726
- className: "neeto-ui-bg-white neeto-ui-border-gray-200 mx-auto mb-4 w-full space-y-4 rounded-sm border sm:max-w-sm md:max-w-md lg:max-w-3xl"
7746
+ className: "neeto-ui-bg-white neeto-ui-border-gray-200 mx-auto mb-4 w-full space-y-4 rounded-sm border sm:max-w-screen-sm md:max-w-screen-md lg:max-w-3xl"
7727
7747
  }, /*#__PURE__*/React.createElement("div", {
7728
7748
  className: "space-y-1 p-4"
7729
7749
  }, /*#__PURE__*/React.createElement(Switch, {