norma-library 0.6.89 → 0.6.91

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 (81) hide show
  1. package/dist/esm/components/Accordion.js +2 -3
  2. package/dist/esm/components/Accordion.js.map +1 -1
  3. package/dist/esm/components/ProgressBar.js +6 -7
  4. package/dist/esm/components/ProgressBar.js.map +1 -1
  5. package/dist/esm/components/StatusModal/StatusModal.d.ts +2 -2
  6. package/dist/esm/components/StatusModal/StatusModal.js.map +1 -1
  7. package/dist/esm/components/Svgs.js +3 -4
  8. package/dist/esm/components/Svgs.js.map +1 -1
  9. package/dist/esm/components/UncontrolledTable/UncontrolledTable.d.ts +4 -0
  10. package/dist/esm/components/UncontrolledTable/UncontrolledTable.js +120 -0
  11. package/dist/esm/components/UncontrolledTable/UncontrolledTable.js.map +1 -0
  12. package/dist/esm/components/UncontrolledTable/UncontrolledTable.style.d.ts +14 -0
  13. package/dist/esm/components/UncontrolledTable/UncontrolledTable.style.js +22 -0
  14. package/dist/esm/components/UncontrolledTable/UncontrolledTable.style.js.map +1 -0
  15. package/dist/esm/components/UncontrolledTable/components/TableButton/TableButton.d.ts +13 -0
  16. package/dist/esm/components/UncontrolledTable/components/TableButton/TableButton.js +43 -0
  17. package/dist/esm/components/UncontrolledTable/components/TableButton/TableButton.js.map +1 -0
  18. package/dist/esm/components/UncontrolledTable/components/TableButton/TableButton.style.d.ts +13 -0
  19. package/dist/esm/components/UncontrolledTable/components/TableButton/TableButton.style.js +9 -0
  20. package/dist/esm/components/UncontrolledTable/components/TableButton/TableButton.style.js.map +1 -0
  21. package/dist/esm/components/UncontrolledTable/components/header/header.d.ts +15 -0
  22. package/dist/esm/components/UncontrolledTable/components/header/header.js +49 -0
  23. package/dist/esm/components/UncontrolledTable/components/header/header.js.map +1 -0
  24. package/dist/esm/components/UncontrolledTable/components/header/header.styles.d.ts +4 -0
  25. package/dist/esm/components/UncontrolledTable/components/header/header.styles.js +8 -0
  26. package/dist/esm/components/UncontrolledTable/components/header/header.styles.js.map +1 -0
  27. package/dist/esm/components/UncontrolledTable/components/index.d.ts +4 -3
  28. package/dist/esm/components/UncontrolledTable/components/index.js +4 -3
  29. package/dist/esm/components/UncontrolledTable/components/index.js.map +1 -1
  30. package/dist/esm/components/UncontrolledTable/components/pagination/pagination.d.ts +11 -0
  31. package/dist/esm/components/UncontrolledTable/components/pagination/pagination.js +18 -0
  32. package/dist/esm/components/UncontrolledTable/components/pagination/pagination.js.map +1 -0
  33. package/dist/esm/components/UncontrolledTable/components/pagination/pagination.styles.d.ts +1 -0
  34. package/dist/esm/components/UncontrolledTable/components/pagination/pagination.styles.js +5 -0
  35. package/dist/esm/components/UncontrolledTable/components/pagination/pagination.styles.js.map +1 -0
  36. package/dist/esm/components/UncontrolledTable/components/row/DraggableRow.js +1 -1
  37. package/dist/esm/components/UncontrolledTable/components/row/DraggableRow.js.map +1 -1
  38. package/dist/esm/components/UncontrolledTable/components/row/SimpleRow.js +1 -1
  39. package/dist/esm/components/UncontrolledTable/components/row/SimpleRow.js.map +1 -1
  40. package/dist/esm/components/UncontrolledTable/components/row/styles.d.ts +1 -1
  41. package/dist/esm/components/UncontrolledTable/components/row/styles.js +2 -8
  42. package/dist/esm/components/UncontrolledTable/components/row/styles.js.map +1 -1
  43. package/dist/esm/components/UncontrolledTable/interface.d.ts +30 -13
  44. package/dist/esm/components/UncontrolledTabs/UncontrolledTabs.d.ts +1 -0
  45. package/dist/esm/components/UncontrolledTabs/UncontrolledTabs.js +3 -3
  46. package/dist/esm/components/UncontrolledTabs/UncontrolledTabs.js.map +1 -1
  47. package/dist/esm/hooks/useClickOutside.js.map +1 -1
  48. package/dist/esm/hooks/useOutsideScreen.d.ts +7 -0
  49. package/dist/esm/hooks/useOutsideScreen.js +30 -0
  50. package/dist/esm/hooks/useOutsideScreen.js.map +1 -0
  51. package/dist/esm/index.d.ts +1 -1
  52. package/dist/esm/index.js +1 -1
  53. package/dist/esm/index.js.map +1 -1
  54. package/package.json +3 -3
  55. package/src/components/Accordion.tsx +19 -15
  56. package/src/components/ProgressBar.tsx +28 -28
  57. package/src/components/StatusModal/StatusModal.tsx +2 -2
  58. package/src/components/Svgs.tsx +1 -5
  59. package/src/components/UncontrolledTable/{styles.tsx → UncontrolledTable.style.tsx} +2 -1
  60. package/src/components/UncontrolledTable/{index.tsx → UncontrolledTable.tsx} +76 -88
  61. package/src/components/UncontrolledTable/components/TableButton/TableButton.style.tsx +49 -0
  62. package/src/components/UncontrolledTable/components/TableButton/TableButton.tsx +83 -0
  63. package/src/components/UncontrolledTable/components/header/header.styles.tsx +26 -0
  64. package/src/components/UncontrolledTable/components/header/header.tsx +85 -0
  65. package/src/components/UncontrolledTable/components/index.tsx +6 -3
  66. package/src/components/UncontrolledTable/components/pagination/{index.tsx → pagination.tsx} +1 -1
  67. package/src/components/UncontrolledTable/components/row/DraggableRow.tsx +11 -11
  68. package/src/components/UncontrolledTable/components/row/SimpleRow.tsx +7 -8
  69. package/src/components/UncontrolledTable/components/row/styles.tsx +5 -15
  70. package/src/components/UncontrolledTable/interface.ts +58 -38
  71. package/src/components/UncontrolledTabs/UncontrolledTabs.tsx +5 -3
  72. package/src/hooks/useClickOutside.tsx +9 -9
  73. package/src/hooks/useOutsideScreen.tsx +35 -0
  74. package/src/index.ts +1 -1
  75. package/src/stories/ModalStatus.stories.tsx +8 -0
  76. package/src/stories/ProductCard.stories.tsx +1 -1
  77. package/src/stories/UncontrolledTable.stories.tsx +322 -20
  78. package/src/stories/UncontrolledTabs.stories.tsx +19 -1
  79. package/src/components/UncontrolledTable/components/header/index.tsx +0 -89
  80. package/src/components/UncontrolledTable/components/header/styles.tsx +0 -67
  81. /package/src/components/UncontrolledTable/components/pagination/{styles.tsx → pagination.styles.tsx} +0 -0
@@ -1,7 +1,8 @@
1
- import Pagination from "./pagination";
2
- import Header from "./header";
1
+ import Pagination from "./pagination/pagination";
2
+ import Header from "./header/header";
3
3
  import SimpleRow from "./row/SimpleRow";
4
4
  import DraggableRow from "./row/DraggableRow";
5
5
  import RowDragHandleCell from "./row/RowDragHandleCell";
6
- export { Pagination, Header, SimpleRow, DraggableRow, RowDragHandleCell };
6
+ import TableButton from "./TableButton/TableButton";
7
+ export { Pagination, Header, SimpleRow, DraggableRow, RowDragHandleCell, TableButton };
7
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/UncontrolledTable/components/index.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,MAAM,MAAM,UAAU,CAAA;AAC7B,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,iBAAiB,MAAM,yBAAyB,CAAC;AAExD,OAAO,EACL,UAAU,EACV,MAAM,EACN,SAAS,EACT,YAAY,EACZ,iBAAiB,EAClB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/UncontrolledTable/components/index.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,iBAAiB,MAAM,yBAAyB,CAAC;AACxD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AAGpD,OAAO,EACL,UAAU,EACV,MAAM,EACN,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,WAAW,EACZ,CAAA"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ interface PaginationProps {
3
+ count: number;
4
+ pagination: {
5
+ pageIndex: number;
6
+ pageSize: number;
7
+ };
8
+ onChangePage: (page: number) => void;
9
+ }
10
+ declare const Pagination: (props: PaginationProps) => React.JSX.Element;
11
+ export default Pagination;
@@ -0,0 +1,18 @@
1
+ import { __assign } from "tslib";
2
+ import React from 'react';
3
+ import { Pagination as MuiPagination, PaginationItem } from '@mui/material';
4
+ import * as S from './pagination.styles';
5
+ var Pagination = function (props) {
6
+ var count = props.count, pagination = props.pagination, onChangePage = props.onChangePage;
7
+ var PreviousPagination = function () {
8
+ return React.createElement("span", null, '<');
9
+ };
10
+ var NextPagination = function () {
11
+ return React.createElement("span", null, '>');
12
+ };
13
+ return (React.createElement(S.Pagination, null,
14
+ React.createElement("div", { className: "content" },
15
+ React.createElement(MuiPagination, { onChange: function (_event, page) { return onChangePage(page); }, page: pagination.pageIndex, count: count, renderItem: function (item) { return (React.createElement(PaginationItem, __assign({ classes: { root: 'button', selected: 'button-active' }, slots: { previous: PreviousPagination, next: NextPagination }, sx: { height: '35px', minWidth: '35px' } }, item))); } }))));
16
+ };
17
+ export default Pagination;
18
+ //# sourceMappingURL=pagination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../../../../../src/components/UncontrolledTable/components/pagination/pagination.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,IAAI,aAAa,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,KAAK,CAAC,MAAM,qBAAqB,CAAC;AAQzC,IAAM,UAAU,GAAG,UAAC,KAAsB;IAChC,IAAA,KAAK,GAA+B,KAAK,MAApC,EAAE,UAAU,GAAmB,KAAK,WAAxB,EAAE,YAAY,GAAK,KAAK,aAAV,CAAW;IAElD,IAAM,kBAAkB,GAAkB;QACxC,OAAO,kCAAO,GAAG,CAAQ,CAAC;IAC5B,CAAC,CAAC;IAEF,IAAM,cAAc,GAAkB;QACpC,OAAO,kCAAO,GAAG,CAAQ,CAAC;IAC5B,CAAC,CAAC;IAEF,OAAO,CACL,oBAAC,CAAC,CAAC,UAAU;QACX,6BAAK,SAAS,EAAC,SAAS;YACtB,oBAAC,aAAa,IACZ,QAAQ,EAAE,UAAC,MAAkC,EAAE,IAAY,IAAK,OAAA,YAAY,CAAC,IAAI,CAAC,EAAlB,CAAkB,EAClF,IAAI,EAAE,UAAU,CAAC,SAAS,EAC1B,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAC,IAAS,IAAK,OAAA,CACzB,oBAAC,cAAc,aACb,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,EACtD,KAAK,EAAE,EAAE,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,cAAc,EAAE,EAC7D,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IACpC,IAAI,EACR,CACH,EAP0B,CAO1B,GACD,CACE,CACO,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const Pagination: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,5 @@
1
+ import { __makeTemplateObject } from "tslib";
2
+ import styled from "styled-components";
3
+ export var Pagination = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n margin: 24px 0 0 0;\n display: flex;\n justify-content: center;\n .content {\n display: flex;\n gap: 8px;\n .button {\n border: 1px solid #E8E9EC;\n background: #fff;\n border-radius: 4px;\n color: #4D4F5C;\n cursor: pointer;\n &:disabled {\n opacity: 0.4;\n }\n }\n .button-active {\n border: 1px solid #FFDB9F;\n background: #FFDB9F;\n color: #B74616;\n border-radius: 4px;\n cursor: pointer;\n }\n }\n"], ["\n width: 100%;\n margin: 24px 0 0 0;\n display: flex;\n justify-content: center;\n .content {\n display: flex;\n gap: 8px;\n .button {\n border: 1px solid #E8E9EC;\n background: #fff;\n border-radius: 4px;\n color: #4D4F5C;\n cursor: pointer;\n &:disabled {\n opacity: 0.4;\n }\n }\n .button-active {\n border: 1px solid #FFDB9F;\n background: #FFDB9F;\n color: #B74616;\n border-radius: 4px;\n cursor: pointer;\n }\n }\n"])));
4
+ var templateObject_1;
5
+ //# sourceMappingURL=pagination.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.styles.js","sourceRoot":"","sources":["../../../../../../src/components/UncontrolledTable/components/pagination/pagination.styles.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,CAAC,IAAM,UAAU,GAAG,MAAM,CAAC,GAAG,skBAAA,mgBA0BnC,IAAA,CAAA"}
@@ -15,7 +15,7 @@ var DraggableRow = function (_a) {
15
15
  zIndex: isDragging ? 1 : 0,
16
16
  position: 'relative',
17
17
  };
18
- return (React.createElement(S.Tr, { "$hasAction": !!onClick || !!onMouseOver || !!onMouseOut, ref: setNodeRef, style: style }, row.getVisibleCells().map(function (cell) { return (React.createElement(S.Td, { key: cell.id, onClick: onClick, onMouseOver: onMouseOver, onMouseOut: onMouseOut }, cell.column.columnDef.type == 'action'
18
+ return (React.createElement(S.Tr, { ref: setNodeRef, style: style }, row.getVisibleCells().map(function (cell) { return (React.createElement(S.Td, { key: cell.id, onClick: onClick, onMouseOver: onMouseOver, onMouseOut: onMouseOut }, cell.column.columnDef.type == 'action'
19
19
  ? cell.getValue()
20
20
  : flexRender(cell.column.columnDef.cell, cell.getContext()))); })));
21
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DraggableRow.js","sourceRoot":"","sources":["../../../../../../src/components/UncontrolledTable/components/row/DraggableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAC7C,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAE9B,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,GAAG,EAAE,MAAM,o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,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"DraggableRow.js","sourceRoot":"","sources":["../../../../../../src/components/UncontrolledTable/components/row/DraggableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAA;AAC5C,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAA;AAExC,IAAM,YAAY,GAAkB,UAAC,EAAyC;QAAvC,GAAG,SAAA,EAAE,OAAO,aAAA,EAAE,WAAW,iBAAA,EAAE,UAAU,gBAAA;IACpE,IAAA,KAAoD,WAAW,CAAC;QACpE,EAAE,EAAE,GAAG,CAAC,EAAE;KACX,CAAC,EAFM,SAAS,eAAA,EAAE,UAAU,gBAAA,EAAE,UAAU,gBAAA,EAAE,UAAU,gBAEnD,CAAA;IAEF,IAAM,KAAK,GAAkB;QAC3B,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC;QAC5C,UAAU,EAAE,UAAU;QACtB,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1B,QAAQ,EAAE,UAAU;KACrB,CAAA;IAED,OAAO,CACL,oBAAC,CAAC,CAAC,EAAE,IAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,IAChC,GAAG,CAAC,eAAe,EAAE,CAAC,GAAG,CAAC,UAAC,IAAS,IAAK,OAAA,CACxC,oBAAC,CAAC,CAAC,EAAE,IAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,IACnF,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,IAAI,QAAQ;QACrC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE;QACjB,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CACxD,CACR,EANyC,CAMzC,CAAC,CACG,CACR,CAAA;AACH,CAAC,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -3,7 +3,7 @@ import { flexRender } from '@tanstack/react-table';
3
3
  import * as S from './styles';
4
4
  var SimpleRow = function (_a) {
5
5
  var row = _a.row, onClick = _a.onClick, onMouseOver = _a.onMouseOver, onMouseOut = _a.onMouseOut;
6
- return (React.createElement(S.Tr, { "$hasAction": !!onClick || !!onMouseOver || !!onMouseOut, onClick: function () { return (onClick ? onClick(row.original) : null); }, onMouseOver: function () { return (onMouseOver ? onMouseOver(row.original) : null); }, onMouseOut: function () { return (onMouseOut ? onMouseOut(row.original) : null); } }, row.getVisibleCells().map(function (cell, index) {
6
+ return (React.createElement(S.Tr, { onClick: function () { return (onClick ? onClick(row.original) : null); }, onMouseOver: function () { return (onMouseOver ? onMouseOver(row.original) : null); }, onMouseOut: function () { return (onMouseOut ? onMouseOut(row.original) : null); } }, row.getVisibleCells().map(function (cell, index) {
7
7
  return (React.createElement(S.Td, { key: index }, cell.column.columnDef.type == 'action'
8
8
  ? cell.getValue()
9
9
  : flexRender(cell.column.columnDef.cell, cell.getContext())));
@@ -1 +1 @@
1
- {"version":3,"file":"SimpleRow.js","sourceRoot":"","sources":["../../../../../../src/components/UncontrolledTable/components/row/SimpleRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAE9B,IAAM,SAAS,GAAkB,UAAC,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E,MAAM,uBAAuB,CAAA;AAClD,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,IAAM,SAAS,GAAkB,UAAC,EAAyC;QAAvC,GAAG,SAAA,EAAE,OAAO,aAAA,EAAE,WAAW,iBAAA,EAAE,UAAU,gBAAA;IACvE,OAAO,CACL,oBAAC,CAAC,CAAC,EAAE,IACH,OAAO,EAAE,cAAM,OAAA,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAxC,CAAwC,EACvD,WAAW,EAAE,cAAM,OAAA,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAhD,CAAgD,EACnE,UAAU,EAAE,cAAM,OAAA,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAA9C,CAA8C,IAE/D,GAAG,CAAC,eAAe,EAAE,CAAC,GAAG,CAAC,UAAC,IAAS,EAAE,KAAa;QAClD,OAAO,CACL,oBAAC,CAAC,CAAC,EAAE,IAAC,GAAG,EAAE,KAAK,IACb,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,IAAI,QAAQ;YACrC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE;YACjB,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CACxD,CACR,CAAA;IACH,CAAC,CAAC,CACG,CACR,CAAA;AACH,CAAC,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -1,2 +1,2 @@
1
- export declare const Tr: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string;
1
+ export declare const Tr: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, never>> & string;
2
2
  export declare const Td: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, never>> & string;
@@ -1,12 +1,6 @@
1
1
  import { __makeTemplateObject } from "tslib";
2
- import { breakpoints } from '../../../../utils/styledBreakpoints';
3
2
  import styled from 'styled-components';
4
- export var Tr = styled.tr(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: inherit;\n display: table-row;\n vertical-align: middle;\n outline: 0;\n &:nth-of-type(even) {\n background-color: #fafafa;\n }\n"], ["\n color: inherit;\n display: table-row;\n vertical-align: middle;\n outline: 0;\n &:nth-of-type(even) {\n background-color: #fafafa;\n }\n"])));
5
- export var Td = styled.td(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n font-weight: 500;\n font-size: 0.875rem;\n line-height: 1.5rem;\n letter-spacing: 0.01071em;\n display: table-cell;\n vertical-align: inherit;\n border-bottom: 1px solid rgba(224, 224, 224, 1);\n text-align: left;\n padding: 16px;\n ", ";\n color: #666666;\n font-size: 0.875rem;\n"], ["\n font-weight: 500;\n font-size: 0.875rem;\n line-height: 1.5rem;\n letter-spacing: 0.01071em;\n display: table-cell;\n vertical-align: inherit;\n border-bottom: 1px solid rgba(224, 224, 224, 1);\n text-align: left;\n padding: 16px;\n ", ";\n color: #666666;\n font-size: 0.875rem;\n"])), breakpoints({
6
- cssProp: 'padding',
7
- cssPropUnits: 'px',
8
- values: [{ 1440: 8 }],
9
- mediaQueryType: 'max-width',
10
- }));
3
+ export var Tr = styled.tr(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: inherit;\n display: table-row;\n vertical-align: middle;\n outline: 0;\n"], ["\n color: inherit;\n display: table-row;\n vertical-align: middle;\n outline: 0;\n"])));
4
+ export var Td = styled.td(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n font-weight: 500;\n font-size: 0.875rem;\n line-height: 1.5rem;\n letter-spacing: 0.01071em;\n display: table-cell;\n vertical-align: inherit;\n border-bottom: 1px solid rgba(224, 224, 224, 1);\n text-align: left;\n padding: 8px;\n color: #666666;\n font-size: 0.875rem;\n"], ["\n font-weight: 500;\n font-size: 0.875rem;\n line-height: 1.5rem;\n letter-spacing: 0.01071em;\n display: table-cell;\n vertical-align: inherit;\n border-bottom: 1px solid rgba(224, 224, 224, 1);\n text-align: left;\n padding: 8px;\n color: #666666;\n font-size: 0.875rem;\n"])));
11
5
  var templateObject_1, templateObject_2;
12
6
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/components/UncontrolledTable/components/row/styles.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAClE,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,CAAC,IAAM,EAAE,GAAG,MAAM,CAAC,EAAE,yNAAK,sJAQ/B,IAAA,CAAC;AAEF,MAAM,CAAC,IAAM,EAAE,GAAG,MAAM,CAAC,EAAE,6WAAA,wPAUvB,EAKA,gDAGH,KARG,WAAW,CAAC;IACZ,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;IACrB,cAAc,EAAE,WAAW;CAC5B,CAAC,CAGH,CAAC"}
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/components/UncontrolledTable/components/row/styles.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,MAAM,CAAC,IAAM,EAAE,GAAG,MAAM,CAAC,EAAE,2JAAA,wFAK1B,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,EAAE,GAAG,MAAM,CAAC,EAAE,mWAAA,gSAY1B,IAAA,CAAA"}
@@ -1,38 +1,55 @@
1
1
  import { ColumnDef } from '@tanstack/react-table';
2
+ import { JSX } from 'react';
2
3
  type Labels = {
3
4
  orderAsc: string;
4
5
  orderDesc: string;
5
6
  filter: string;
6
7
  clearFilter: string;
8
+ columns: string;
7
9
  };
8
10
  interface Pagination {
9
11
  pageIndex: number;
10
12
  pageSize: number;
11
13
  }
14
+ interface Sticky {
15
+ enabled: boolean;
16
+ top: number;
17
+ }
18
+ export interface TableList {
19
+ id: string;
20
+ label: string;
21
+ onClick?: (id: string) => void;
22
+ checked?: () => boolean | boolean;
23
+ disabled?: boolean;
24
+ }
25
+ export interface TableButton {
26
+ render: () => JSX.Element;
27
+ list?: {
28
+ options: TableList[];
29
+ toggleableList?: boolean;
30
+ };
31
+ toggleableList?: boolean;
32
+ onClick?: () => void;
33
+ }
12
34
  export interface UncontrolledTableProps {
13
35
  data: any;
14
36
  columns: ColumnDef<ColumnsTable>[];
15
- onClick: any;
16
- onMouseOver: any;
17
- onMouseOut: any;
18
- showTotalResults: boolean;
19
- showSettings: boolean;
20
37
  pagination?: Pagination;
21
38
  totalPages: number;
22
- showClearFields?: boolean;
23
- customTotalResults?: string;
24
39
  labels?: Labels;
25
40
  tableClassName?: string;
26
- stickyHeader?: boolean;
27
- stickyHeaderP?: number;
28
- customIcons?: React.ReactNode[];
29
- hideColumns?: string[];
41
+ sticky?: Sticky;
30
42
  draggable?: boolean;
43
+ buttons?: TableButton[];
44
+ configs?: TableButton[];
45
+ hideColumns?: string[];
46
+ onClick?: () => void;
47
+ onMouseOver?: () => void;
48
+ onMouseOut?: () => void;
49
+ onColumnVisibilityChange?: (column: string, value: boolean) => void;
31
50
  onChangePage: (pagination: Pagination) => void;
32
- onClearFieldsClick?: () => void;
33
51
  onFilterClick?: (column: string) => void;
34
52
  onSortClick?: (column: string, direction: string) => void;
35
- onColumnVisibilityChange?: (columnId: string, isVisible: boolean) => void;
36
53
  onDragEnd?: (data: any[]) => void;
37
54
  }
38
55
  export interface ColumnsTable {
@@ -10,6 +10,7 @@ interface Props extends MuiTabsBaseProps {
10
10
  color?: ColorVariant;
11
11
  variant?: TabsVariant;
12
12
  info?: React.ReactNode;
13
+ tabPanelSx?: SxProps<Theme>;
13
14
  }
14
15
  declare const UncontrolledTabs: ({ tabs, tab, color, onTabChange, info, ...props }: Props) => React.JSX.Element;
15
16
  export default UncontrolledTabs;
@@ -4,8 +4,8 @@ import { Box } from '@mui/material';
4
4
  import { NormaTab, NormaTabs } from './UncontrolledTabs.style';
5
5
  import { NormaTabInfo } from './UncontrolledTabsInfo.style';
6
6
  function TabPanel(props) {
7
- var children = props.children, value = props.value, index = props.index, other = __rest(props, ["children", "value", "index"]);
8
- return (React.createElement("div", __assign({ role: "tabpanel", hidden: value !== index, id: "simple-tabpanel-".concat(index), "aria-labelledby": "simple-tab-".concat(index) }, other), value === index && React.createElement(Box, { sx: { p: 3 } }, children)));
7
+ var children = props.children, value = props.value, index = props.index, sx = props.sx, other = __rest(props, ["children", "value", "index", "sx"]);
8
+ return (React.createElement("div", __assign({ role: "tabpanel", hidden: value !== index, id: "simple-tabpanel-".concat(index), "aria-labelledby": "simple-tab-".concat(index) }, other), value === index && React.createElement(Box, { sx: __assign({ p: 3 }, sx) }, children)));
9
9
  }
10
10
  function a11yProps(index) {
11
11
  return {
@@ -25,7 +25,7 @@ var UncontrolledTabs = function (_a) {
25
25
  info && React.createElement(NormaTabInfo, null, info))),
26
26
  tabs.map(function (item, key) {
27
27
  var _a;
28
- return (React.createElement(TabPanel, __assign({}, (_a = item.tabPanel) === null || _a === void 0 ? void 0 : _a.props, { key: key, value: tab, index: key }), item.children));
28
+ return (React.createElement(TabPanel, __assign({}, (_a = item.tabPanel) === null || _a === void 0 ? void 0 : _a.props, { key: key, value: tab, index: key, sx: props.tabPanelSx }), item.children));
29
29
  })));
30
30
  };
31
31
  export default UncontrolledTabs;
@@ -1 +1 @@
1
- {"version":3,"file":"UncontrolledTabs.js","sourceRoot":"","sources":["../../../../src/components/UncontrolledTab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G,CAAC,EAAI,CAC5E,EAFwB,CAExB,CAAC;gBACD,IAAI,IAAI,oBAAC,YAAY,QAAE,IAAI,CAAgB,CAClC,CACR;QACL,IAAI,CAAC,GAAG,CAAC,UAAC,IAAI,EAAE,GAAG;;YAAK,OAAA,CACvB,oBAAC,QAAQ,eAAK,MAAA,IAAI,CAAC,QAAQ,0CAAE,KAAK,IAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,KAAK,CAAC,UAAU,KACvF,IAAI,CAAC,QAAQ,CACL,CACZ,CAAA;SAAA,CAAC,CACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useClickOutside.js","sourceRoot":"","sources":["../../../src/hooks/useClickOutside.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,IAAM,eAAe,GAAG,UAAC,GAAwC,EAAE,QAAoB;IACrF,IAAM,kBAAkB,GAAG,UAAC,KAAiB;QAC3C,IAAI,GAAG,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAc,CAAC,EAAE,CAAC;YAC/D,QAAQ,EAAE,CAAC;QACb,CAAC;IACH,CAAC,CAAC;IAEF,SAAS,CAAC;QACR,QAAQ,CAAC,gBAAgB,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAAC;QAC3D,OAAO;YACL,QAAQ,CAAC,mBAAmB,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAAC;QAChE,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;AACtB,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"useClickOutside.js","sourceRoot":"","sources":["../../../src/hooks/useClickOutside.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,IAAM,eAAe,GAAG,UAAC,GAAwC,EAAE,QAAoB;IACrF,IAAM,kBAAkB,GAAG,UAAC,KAAiB;QAC3C,IAAI,GAAG,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAc,CAAC,EAAE,CAAC;YAC/D,QAAQ,EAAE,CAAA;QACZ,CAAC;IACH,CAAC,CAAA;IAED,SAAS,CAAC;QACR,QAAQ,CAAC,gBAAgB,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAAA;QAC1D,OAAO;YACL,QAAQ,CAAC,mBAAmB,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAAA;QAC/D,CAAC,CAAA;IACH,CAAC,EAAE,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAA;AACrB,CAAC,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { RefObject } from 'react';
2
+ /**
3
+ * Hook that detects when an element is partially visible in the viewport
4
+ * @param elementRef - Reference to the DOM element to observe
5
+ * @returns boolean indicating if the element is partially visible in the viewport
6
+ */
7
+ export declare const usePartiallyVisible: (elementRef: RefObject<HTMLElement | null>) => boolean;
@@ -0,0 +1,30 @@
1
+ import { useState, useEffect } from 'react';
2
+ /**
3
+ * Hook that detects when an element is partially visible in the viewport
4
+ * @param elementRef - Reference to the DOM element to observe
5
+ * @returns boolean indicating if the element is partially visible in the viewport
6
+ */
7
+ export var usePartiallyVisible = function (elementRef) {
8
+ var _a = useState(false), isPartiallyVisible = _a[0], setIsPartiallyVisible = _a[1];
9
+ useEffect(function () {
10
+ var element = elementRef.current;
11
+ if (!element)
12
+ return;
13
+ var observer = new IntersectionObserver(function (_a) {
14
+ var entry = _a[0];
15
+ // Element is partially visible if it's intersecting but not completely visible
16
+ var isPartial = entry.isIntersecting && entry.intersectionRatio < 1.0;
17
+ setIsPartiallyVisible(isPartial);
18
+ }, {
19
+ root: null, // Use the viewport as the root
20
+ threshold: [0, 1.0], // Check at these thresholds to determine partial visibility
21
+ });
22
+ observer.observe(element);
23
+ return function () {
24
+ if (element)
25
+ observer.unobserve(element);
26
+ };
27
+ }, [elementRef]);
28
+ return isPartiallyVisible;
29
+ };
30
+ //# sourceMappingURL=useOutsideScreen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOutsideScreen.js","sourceRoot":"","sources":["../../../src/hooks/useOutsideScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAa,MAAM,OAAO,CAAA;AAEtD;;;;GAIG;AACH,MAAM,CAAC,IAAM,mBAAmB,GAAG,UAAC,UAAyC;IACnE,IAAA,KAA8C,QAAQ,CAAU,KAAK,CAAC,EAArE,kBAAkB,QAAA,EAAE,qBAAqB,QAA4B,CAAA;IAE5E,SAAS,CAAC;QACN,IAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAA;QAClC,IAAI,CAAC,OAAO;YAAE,OAAM;QAEpB,IAAM,QAAQ,GAAG,IAAI,oBAAoB,CACrC,UAAC,EAAO;gBAAN,KAAK,QAAA;YACH,+EAA+E;YAC/E,IAAM,SAAS,GAAG,KAAK,CAAC,cAAc,IAAI,KAAK,CAAC,iBAAiB,GAAG,GAAG,CAAA;YACvE,qBAAqB,CAAC,SAAS,CAAC,CAAA;QACpC,CAAC,EACD;YACI,IAAI,EAAE,IAAI,EAAE,+BAA+B;YAC3C,SAAS,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,4DAA4D;SACpF,CACJ,CAAA;QAED,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;QAEzB,OAAO;YACH,IAAI,OAAO;gBAAE,QAAQ,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;QAC5C,CAAC,CAAA;IACL,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAA;IAEhB,OAAO,kBAAkB,CAAA;AAC7B,CAAC,CAAA"}
@@ -25,7 +25,7 @@ import MultiSelectInput from './components/MultiSelectInput';
25
25
  import { Title, Text } from './components/Typography';
26
26
  import TextInput from './components/TextInput';
27
27
  import Table from './components/Table';
28
- import UncontrolledTable from './components/UncontrolledTable';
28
+ import UncontrolledTable from './components/UncontrolledTable/UncontrolledTable';
29
29
  import UncontrolledTabs from './components/UncontrolledTabs/UncontrolledTabs';
30
30
  import { TimeLine, TimeLineData } from './components/TimeLine/TimeLine';
31
31
  import { ModalStatus } from './components/StatusModal/StatusModal';
package/dist/esm/index.js CHANGED
@@ -25,7 +25,7 @@ import MultiSelectInput from './components/MultiSelectInput';
25
25
  import { Title, Text } from './components/Typography';
26
26
  import TextInput from './components/TextInput';
27
27
  import Table from './components/Table';
28
- import UncontrolledTable from './components/UncontrolledTable';
28
+ import UncontrolledTable from './components/UncontrolledTable/UncontrolledTable';
29
29
  import UncontrolledTabs from './components/UncontrolledTabs/UncontrolledTabs';
30
30
  import { TimeLine } from './components/TimeLine/TimeLine';
31
31
  import { ModalStatus } from './components/StatusModal/StatusModal';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,UAAU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,uBAAuB,EACvB,IAAI,EACJ,KAAK,EACL,SAAS,EACT,KAAK,EACL,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,QAAQ,EACR,QAAQ,GAET,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "norma-library",
3
- "version": "0.6.89",
3
+ "version": "0.6.91",
4
4
  "private": false,
5
5
  "description": "Olos/Norma-DS. Design System based on Material UI, developed with TypeScript and Styled Components to create reusable and consistent components in web applications.",
6
6
  "scripts": {
@@ -93,7 +93,7 @@
93
93
  "@dnd-kit/modifiers": "^9.0.0",
94
94
  "@dnd-kit/sortable": "^10.0.0",
95
95
  "@emotion/react": "^11.14.0",
96
- "@emotion/styled": "^11.11.0",
96
+ "@emotion/styled": "^11.14.0",
97
97
  "@mui/icons-material": "^5.14.9",
98
98
  "@mui/lab": "^5.0.0-alpha.152",
99
99
  "@mui/material": "^5.16.7",
@@ -104,7 +104,7 @@
104
104
  "react-datepicker": "^7.5.0",
105
105
  "react-i18next": "^15.4.0",
106
106
  "react-select": "^5.8.0",
107
- "styled-components": "^6.1.0",
107
+ "styled-components": "^6.1.18",
108
108
  "tslib": "^2.6.2"
109
109
  },
110
110
  "peerDependencies": {
@@ -1,29 +1,33 @@
1
- import React from 'react';
1
+ import React from 'react'
2
2
  import {
3
3
  AccordionDetails,
4
4
  AccordionSummary,
5
5
  Accordion as MuiAccordion,
6
- Typography
7
- } from '@mui/material';
8
- import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
9
- import { AccordionBaseProps } from '../interfaces';
10
- import { styled } from '@mui/material/styles';
6
+ Typography,
7
+ } from '@mui/material'
8
+ import ExpandMoreIcon from '@mui/icons-material/ExpandMore'
9
+ import { AccordionBaseProps } from '../interfaces'
10
+ import { styled } from '@mui/material/styles'
11
11
 
12
- const AccordionStyled = styled(MuiAccordion)({});
12
+ const AccordionStyled = styled(MuiAccordion)({})
13
13
 
14
14
  export const Accordion = ({ data = [], defaultExpanded = false, ...props }: AccordionBaseProps) => {
15
- const [expanded, setExpanded] = React.useState<boolean | string>(defaultExpanded);
15
+ const [expanded, setExpanded] = React.useState<boolean | string>(defaultExpanded)
16
16
 
17
- const handleChange = (panel: string) => (event: React.SyntheticEvent, isExpanded: boolean) => {
18
- console.log('Event ==> ', event);
19
- setExpanded(isExpanded ? panel : false);
20
- };
17
+ const handleChange = (panel: string) => (_: any, isExpanded: boolean) => {
18
+ setExpanded(isExpanded ? panel : false)
19
+ }
21
20
 
22
21
  return (
23
22
  <>
24
23
  {data &&
25
24
  data.map((item, key) => (
26
- <AccordionStyled expanded={expanded === item.id} onChange={handleChange(item.id)} key={key} {...props}>
25
+ <AccordionStyled
26
+ expanded={expanded === item.id}
27
+ onChange={handleChange(item.id)}
28
+ key={key}
29
+ {...props}
30
+ >
27
31
  <AccordionSummary
28
32
  expandIcon={<ExpandMoreIcon />}
29
33
  aria-controls={`panel-${key}-content`}
@@ -35,5 +39,5 @@ export const Accordion = ({ data = [], defaultExpanded = false, ...props }: Acco
35
39
  </AccordionStyled>
36
40
  ))}
37
41
  </>
38
- );
39
- };
42
+ )
43
+ }
@@ -1,22 +1,24 @@
1
- import React from 'react';
2
- import styled from 'styled-components';
1
+ import React from 'react'
2
+ import styled from 'styled-components'
3
3
 
4
- import { LinearProgress as MuiProgressBar, linearProgressClasses, Typography } from '@mui/material';
5
- import { ProgressBarBaseProps, CustomColor } from '../interfaces';
4
+ import { LinearProgress as MuiProgressBar, linearProgressClasses, Typography } from '@mui/material'
5
+ import { ProgressBarBaseProps, CustomColor } from '../interfaces'
6
6
 
7
- const ProgressBarStyled = styled(MuiProgressBar)<{ colorCustom?: CustomColor; $h?: number }>(({ colorCustom, $h }) => ({
8
- width: '100%',
9
- height: $h ? `${$h}px` : '10px',
10
- borderRadius: '10px',
11
- position: 'relative',
12
- backgroundColor: colorCustom ? colorCustom.root : undefined,
13
- [`&.${linearProgressClasses.determinate}`]: {
7
+ const ProgressBarStyled = styled(MuiProgressBar)<{ colorCustom?: CustomColor; $h?: number }>(
8
+ ({ colorCustom, $h }) => ({
9
+ width: '100%',
10
+ height: $h ? `${$h}px` : '10px',
11
+ borderRadius: '10px',
12
+ position: 'relative',
14
13
  backgroundColor: colorCustom ? colorCustom.root : undefined,
15
- },
16
- [`& .${linearProgressClasses.bar}`]: {
17
- backgroundColor: colorCustom ? colorCustom.bar : undefined,
18
- },
19
- }));
14
+ [`&.${linearProgressClasses.determinate}`]: {
15
+ backgroundColor: colorCustom ? colorCustom.root : undefined,
16
+ },
17
+ [`& .${linearProgressClasses.bar}`]: {
18
+ backgroundColor: colorCustom ? colorCustom.bar : undefined,
19
+ },
20
+ }),
21
+ )
20
22
 
21
23
  const ProgressBarLabelStyled = styled(Typography)<{ $fSize?: string }>`
22
24
  display: flex;
@@ -26,7 +28,7 @@ const ProgressBarLabelStyled = styled(Typography)<{ $fSize?: string }>`
26
28
  position: relative;
27
29
  text-align: left;
28
30
  font-size: ${({ $fSize }) => $fSize || '1rem'};
29
- `;
31
+ `
30
32
 
31
33
  export const ProgressBar = ({
32
34
  value = 0,
@@ -40,20 +42,18 @@ export const ProgressBar = ({
40
42
  htmlLabel,
41
43
  ...props
42
44
  }: ProgressBarBaseProps) => {
43
- const percentage = value && total ? (value / total) * 100 : 0;
45
+ const percentage = value && total ? (value / total) * 100 : 0
44
46
 
45
47
  return (
46
48
  <div className={className} style={{ minWidth: '100px' }}>
47
49
  {label ? (
48
50
  <ProgressBarLabelStyled $fSize={props.fSize} className="ProgressBarLabel">
49
- <>
50
- {label}
51
- {!props.hideValue && (
52
- <span style={{ right: 0 }}>
53
- {localeString ? value.toLocaleString() : value} ({percentage.toFixed(2)}%)
54
- </span>
55
- )}
56
- </>
51
+ {label}
52
+ {!props.hideValue && (
53
+ <span style={{ right: 0 }}>
54
+ {localeString ? value.toLocaleString() : value} ({percentage.toFixed(2)}%)
55
+ </span>
56
+ )}
57
57
  </ProgressBarLabelStyled>
58
58
  ) : (
59
59
  htmlLabel
@@ -68,5 +68,5 @@ export const ProgressBar = ({
68
68
  {...props}
69
69
  />
70
70
  </div>
71
- );
72
- };
71
+ )
72
+ }
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { ReactElement } from 'react';
2
2
 
3
3
  import { WarningRounded, CheckCircleRounded, InfoRounded } from '@mui/icons-material';
4
4
 
@@ -8,7 +8,7 @@ import { OnAction } from '@/types';
8
8
 
9
9
  interface ModalStatusProps {
10
10
  title: string;
11
- text: string;
11
+ text: string | ReactElement;
12
12
  type: 'success' | 'info' | 'warning';
13
13
  actions: OnAction[];
14
14
  w?: string;
@@ -681,17 +681,14 @@ export const iconsSVG = {
681
681
  </svg>
682
682
  ),
683
683
  olosJourneyX: (
684
- <>
685
- <svg xmlns="http://www.w3.org/2000/svg" width="26.052" height="22.796" viewBox="0 0 26.052 22.796">
684
+ <svg xmlns="http://www.w3.org/2000/svg" width="" height="" viewBox="0 0 26.052 22.796">
686
685
  <path
687
686
  id="Icon_metro-table"
688
687
  data-name="Icon metro-table"
689
688
  d="M2.571,3.856v22.8H28.623V3.856H2.571Zm9.77,14.654V13.626h6.513v4.885Zm6.513,1.628v4.885H12.34V20.139Zm0-13.026V12H12.34V7.113h6.513Zm-8.141,0V12H4.2V7.113h6.513ZM4.2,13.626h6.513v4.885H4.2V13.626Zm16.283,0h6.513v4.885H20.482V13.626Zm0-1.628V7.113h6.513V12ZM4.2,20.139h6.513v4.885H4.2V20.139Zm16.283,4.885V20.139h6.513v4.885Z"
690
689
  transform="translate(-2.571 -3.856)"
691
- fill=""
692
690
  />
693
691
  </svg>
694
- </>
695
692
  ),
696
693
  olosAnywhere: (
697
694
  <svg xmlns="http://www.w3.org/2000/svg" width="" height="" viewBox="0 0 21.917 30.298">
@@ -701,7 +698,6 @@ export const iconsSVG = {
701
698
  data-name="Icon material-phonelink-erase"
702
699
  d="M27.026,1.5H13.254A2.762,2.762,0,0,0,10.5,4.254V8.386h2.754V5.631H27.026V27.666H13.254V24.912H10.5v4.131A2.762,2.762,0,0,0,13.254,31.8H27.026a2.762,2.762,0,0,0,2.754-2.754V4.254A2.762,2.762,0,0,0,27.026,1.5Z"
703
700
  transform="translate(-4.5 -0.461)"
704
- fill=""
705
701
  />
706
702
  <path
707
703
  id="Icon_awesome-map-marker-alt"
@@ -3,6 +3,7 @@ import styled from 'styled-components';
3
3
 
4
4
  export const Container = styled.div`
5
5
  background-color: #fff;
6
+ padding: 15px;
6
7
  `;
7
8
 
8
9
  export const Table = styled.table`
@@ -18,11 +19,11 @@ const StickyStyles = (top: number) => `
18
19
  position: sticky;
19
20
  top: ${top}px;
20
21
  z-index: 1;
21
- background: #fff;
22
22
  `;
23
23
 
24
24
  export const Thead = styled.thead<{ $sticky?: boolean, $stickyTopP?: number}>`
25
25
  display: table-header-group;
26
+ background-color: #fafafa;
26
27
  ${props => props.$sticky && StickyStyles(props.$stickyTopP || 0)};
27
28
  `;
28
29