sag_components 1.0.370 → 1.0.372

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 (96) hide show
  1. package/.history/.env_20231001120549 +0 -0
  2. package/.history/.env_20231001120613 +1 -0
  3. package/.history/.env_20231003143620 +1 -0
  4. package/.history/.eslintrc_20230928112617.js +26 -0
  5. package/.history/.eslintrc_20230928130534.js +27 -0
  6. package/.history/.eslintrc_20230928133400.js +28 -0
  7. package/.history/.eslintrc_20230928133404.js +28 -0
  8. package/.history/.eslintrc_20230928133416.js +28 -0
  9. package/.history/.eslintrc_20230928133419.js +28 -0
  10. package/.history/.eslintrc_20230928133432.js +28 -0
  11. package/.history/.eslintrc_20230928133439.js +28 -0
  12. package/.history/.eslintrc_20230928133458.js +29 -0
  13. package/.history/.eslintrc_20230928133500.js +28 -0
  14. package/.history/.eslintrc_20230928134009.js +28 -0
  15. package/.history/.eslintrc_20230928135318.js +34 -0
  16. package/.history/.eslintrc_20230928135321.js +34 -0
  17. package/.history/.eslintrc_20230928135323.js +34 -0
  18. package/.history/.eslintrc_20230928135332.js +34 -0
  19. package/.history/.eslintrc_20230928135333.js +34 -0
  20. package/.history/.eslintrc_20230928135352.js +29 -0
  21. package/.history/.eslintrc_20230928135353.js +29 -0
  22. package/.history/.eslintrc_20230928135355.js +29 -0
  23. package/.history/.eslintrc_20230928135408.js +29 -0
  24. package/.history/.eslintrc_20230928135538.js +30 -0
  25. package/.history/.eslintrc_20230928135539.js +30 -0
  26. package/.history/.eslintrc_20230928135543.js +30 -0
  27. package/.history/.gitignore_20230921093332 +119 -0
  28. package/.history/.gitignore_20230921111638 +120 -0
  29. package/.history/.gitignore_20230921111650 +120 -0
  30. package/.history/.gitignore_20230921111810 +121 -0
  31. package/.history/package-lock_20231114111138.json +47810 -0
  32. package/.history/package-lock_20231114111158.json +47802 -0
  33. package/.history/package_20231029152422.json +82 -0
  34. package/.history/package_20231029153420.json +82 -0
  35. package/.history/package_20231029154416.json +82 -0
  36. package/.history/package_20231030094127.json +82 -0
  37. package/.history/package_20231030114707.json +82 -0
  38. package/.history/package_20231030130704.json +82 -0
  39. package/.history/package_20231030132422.json +82 -0
  40. package/.history/package_20231030134051.json +82 -0
  41. package/.history/package_20231030142913.json +82 -0
  42. package/.history/package_20231030143556.json +82 -0
  43. package/.history/package_20231030144210.json +82 -0
  44. package/.history/package_20231101113942.json +82 -0
  45. package/.history/package_20231101114544.json +82 -0
  46. package/.history/package_20231101151518.json +82 -0
  47. package/.history/package_20231101154501.json +82 -0
  48. package/.history/package_20231101155811.json +82 -0
  49. package/.history/package_20231101160235.json +82 -0
  50. package/.history/package_20231101160406.json +82 -0
  51. package/.history/package_20231101161325.json +82 -0
  52. package/.history/package_20231101161333.json +82 -0
  53. package/.history/package_20231102123623.json +82 -0
  54. package/.history/package_20231102125741.json +82 -0
  55. package/.history/package_20231102130857.json +82 -0
  56. package/.history/package_20231102132227.json +82 -0
  57. package/.history/package_20231102142340.json +82 -0
  58. package/.history/package_20231102143256.json +82 -0
  59. package/.history/package_20231105153539.json +82 -0
  60. package/.history/package_20231105154332.json +82 -0
  61. package/.history/package_20231105171201.json +82 -0
  62. package/.history/package_20231106123849.json +82 -0
  63. package/.history/package_20231107170638.json +82 -0
  64. package/.history/package_20231109103647.json +82 -0
  65. package/.history/package_20231109103911.json +82 -0
  66. package/.history/package_20231109105426.json +82 -0
  67. package/.history/package_20231109132014.json +82 -0
  68. package/.history/package_20231109132115.json +82 -0
  69. package/.history/package_20231114100517.json +82 -0
  70. package/.history/package_20231114100859.json +82 -0
  71. package/.history/package_20231114101553.json +82 -0
  72. package/.history/package_20231114102545.json +82 -0
  73. package/.history/package_20231114111208.json +83 -0
  74. package/.history/package_20231114111515.json +83 -0
  75. package/.history/package_20231114112931.json +83 -0
  76. package/.history/package_20231114113014.json +83 -0
  77. package/.history/package_20231114113155.json +83 -0
  78. package/.history/package_20231114124318.json +83 -0
  79. package/.history/package_20231114125107.json +83 -0
  80. package/.history/package_20231114125510.json +83 -0
  81. package/.history/package_20231114132634.json +83 -0
  82. package/.history/package_20231116165815.json +83 -0
  83. package/.history/package_20231116165916.json +83 -0
  84. package/.history/package_20231119113637.json +83 -0
  85. package/.history/package_20231120100907.json +83 -0
  86. package/.history/package_20231121151523.json +77 -0
  87. package/.history/package_20231121155513.json +77 -0
  88. package/.history/package_20231121162434.json +77 -0
  89. package/.history/package_20231122100718.json +77 -0
  90. package/.history/package_20231128125149.json +82 -0
  91. package/.history/package_20231128125208.json +82 -0
  92. package/dist/stories/components/Dropdown.js +83 -126
  93. package/dist/stories/components/ReportTable.js +42 -2
  94. package/dist/stories/components/ReportTable.style.js +11 -8
  95. package/dist/stories/components/TotalDoughnutChart.js +1 -1
  96. package/package.json +1 -1
@@ -4,18 +4,21 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.Tr = exports.Th = exports.TestDiv = exports.Td = exports.Table = exports.InfoText = exports.InfoBlock = void 0;
7
+ exports.Tr = exports.Th = exports.Td = exports.TableWrapper = exports.Table = exports.InfoText = exports.InfoBlock = void 0;
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
9
9
  var _styledComponents = _interopRequireDefault(require("styled-components"));
10
10
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
11
- var TestDiv = exports.TestDiv = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n white-space: nowrap;\n overflow-x: ", ";\n"])), function (props) {
12
- return props.columnsNumber > props.maxColumnsNumber ? "auto" : "hidden";
13
- });
14
- var Table = exports.Table = _styledComponents.default.table(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n width:", ";\n table-layout: fixed;\n th,\n td {\n text-align: left;\n }\n position: relative;\n background-color: white;\n"])), function (props) {
11
+ var scrollableStyles = "\n overflow-y: auto;\n\n &::-webkit-scrollbar {\n height: 10px;\n }\n\n &::-webkit-scrollbar-track {\n background: #E8E8E8;\n border-radius: 5px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: #D0D0D0;\n border-radius: 5px;\n }\n";
12
+ var TableWrapper = exports.TableWrapper = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n white-space: nowrap;\n border: 1px solid #dddddd;\n border-radius: ", ";\n overflow-x: ", ";\n ", "\n\n"])), function (props) {
13
+ return props.columnsNumber > props.maxColumnsNumber ? ' 12px 12px 6px 6px' : '12px';
14
+ }, function (props) {
15
+ return props.columnsNumber > props.maxColumnsNumber ? 'auto' : 'hidden';
16
+ }, scrollableStyles);
17
+ var Table = exports.Table = _styledComponents.default.table(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n width: ", ";\n table-layout: fixed;\n position: relative;\n background-color: white;\n border-collapse: collapse; \n th,\n td {\n text-align: left;\n width: 100%;\n }\n"])), function (props) {
15
18
  return "".concat(props.tableWidthSize, "%");
16
19
  });
17
- var Th = exports.Th = _styledComponents.default.th(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 600;\n font-size: 14px;\n font-family: \"poppins\";\n color: #212121;\n"])));
18
- var Td = exports.Td = _styledComponents.default.td(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 400;\n font-size: 14px;\n font-family: \"poppins\";\n padding-top: 20px;\n padding-bottom: 20px;\n"])));
19
- var Tr = exports.Tr = _styledComponents.default.tr(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n &:last-of-type {\n ::after {\n content: \"\";\n position: absolute;\n pointer-events: none;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(transparent 50%, white);\n z-index: 2;\n }\n }\n"])));
20
+ var Th = exports.Th = _styledComponents.default.th(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 600;\n font-size: 12px;\n font-family: \"poppins\";\n color: #212121;\n padding-top: 16px;\n padding-left: 40px;\n"])));
21
+ var Td = exports.Td = _styledComponents.default.td(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 400;\n font-size: 12px;\n font-family: \"poppins\";\n padding-top: 20px;\n padding-bottom: 20px;\n padding-top: 16px;\n padding-left: 40px;\n"])));
22
+ var Tr = exports.Tr = _styledComponents.default.tr(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n border-bottom: 1px solid #F3F4F6;\n &:last-of-type {\n ::after {\n content: \"\";\n position: absolute;\n pointer-events: none;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(transparent 50%, white);\n z-index: 2;\n }\n }\n"])));
20
23
  var InfoText = exports.InfoText = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 400;\n font-size: 14px;\n font-family: \"poppins\";\n color: #212121;\n padding-top: 20px;\n padding-bottom: 20px;\n"])));
21
24
  var InfoBlock = exports.InfoBlock = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 8px;\n background-color: white;\n"])));
@@ -115,7 +115,7 @@ var TotalDoughnutChart = exports.TotalDoughnutChart = function TotalDoughnutChar
115
115
  style: {
116
116
  fontWeight: itemsBoldedValues ? '700' : '500'
117
117
  }
118
- }, row.value !== undefined && row.value !== null ? dotCutTrenty(row) : 'No Data', row.value !== undefined && row.value !== null && dotCut ? (0, _CommonFunctions.getFormattedUnits)(row.value) : '', itemsPercentagesValueAside && " (".concat(Math.round(row.value / value * 100), "%)")))));
118
+ }, currencySign ? (0, _CommonFunctions.getCurrencySign)(currencyType, row.value) : '', row.value !== undefined && row.value !== null ? dotCutTrenty(row) : 'No Data', row.value !== undefined && row.value !== null && dotCut ? (0, _CommonFunctions.getFormattedUnits)(row.value) : '', itemsPercentagesValueAside && " (".concat(Math.round(row.value / value * 100), "%)")))));
119
119
  })))) : /*#__PURE__*/_react.default.createElement(_NoDataFoundMessage.NoDataFoundMessage, {
120
120
  noDataText: noDataText
121
121
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.370",
3
+ "version": "1.0.372",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {