infinity-forge 3.4.7 → 3.4.8

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 (133) hide show
  1. package/dist/sites/components/default-pages/blog/components/blog-item/index.d.ts +1 -1
  2. package/dist/sites/components/default-pages/blog/components/blog-item/index.js +1 -1
  3. package/dist/sites/components/default-pages/blog/components/categorias/index.js +1 -1
  4. package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.d.ts +4 -0
  5. package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.js +42 -0
  6. package/dist/sites/components/default-pages/blog/components/featured-blog/index.js +1 -1
  7. package/dist/sites/components/default-pages/blog/components/side-box-newsletter/index.js +1 -1
  8. package/dist/sites/components/default-pages/blog/components/side-box-search/index.js +1 -1
  9. package/dist/sites/components/default-pages/blog/components/title-blog/index.js +1 -1
  10. package/dist/system/presentation/components/data/buttons/sidebar-button/index.js +1 -1
  11. package/dist/system/presentation/components/data/chat/card-message/index.d.ts +1 -1
  12. package/dist/system/presentation/components/data/chat/card-message/index.js +1 -1
  13. package/dist/system/presentation/components/data/chat/loader/index.js +1 -1
  14. package/dist/system/presentation/components/data/menu/components/menu-item/index.js +78 -0
  15. package/dist/system/presentation/components/data/menu/modes/collapsed-menu/index.js +43 -0
  16. package/dist/system/presentation/components/data/menu/modes/collapsed-menu/styles.js +15 -0
  17. package/dist/system/presentation/components/data/menu/modes/opened/index.js +50 -0
  18. package/dist/system/presentation/components/data/menu/modes/opened/styles.js +15 -0
  19. package/dist/system/presentation/components/data/notifications/card/index.d.ts +1 -1
  20. package/dist/system/presentation/components/data/notifications/card/index.js +1 -1
  21. package/dist/system/presentation/components/data/profile-infos/profile/index.js +1 -1
  22. package/dist/system/presentation/components/data/tab/tab-item/index.js +1 -1
  23. package/dist/system/presentation/components/layout/header/components/menu-right/component.d.ts +5 -0
  24. package/dist/system/presentation/components/layout/header/components/menu-right/component.js +34 -0
  25. package/dist/system/presentation/components/layout/header/components/menu-right/index.d.ts +3 -0
  26. package/dist/system/presentation/components/layout/header/components/menu-right/index.js +20 -0
  27. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.d.ts +0 -2
  28. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.js +0 -47
  29. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.js +0 -92
  30. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/interfaces.d.ts +0 -6
  31. package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js +0 -36
  32. package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +0 -36
  33. package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +0 -38
  34. package/dist/system/presentation/components/layout/header/components/search-modal/index.js +40 -0
  35. package/dist/system/presentation/components/layout/header/components/search-modal/search-list/index.js +0 -52
  36. package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js +0 -45
  37. package/dist/system/presentation/components/layout/header/version-01/index.js +1 -1
  38. package/dist/system/presentation/components/pages/menus/table/columns.d.ts +1 -1
  39. package/dist/system/presentation/components/pages/menus/table/create.d.ts +1 -1
  40. package/dist/system/presentation/components/pages/menus/table/create.js +1 -1
  41. package/dist/system/presentation/components/pages/menus/table/delete.js +1 -1
  42. package/dist/system/presentation/components/pages/menus/table/edit.d.ts +1 -1
  43. package/dist/system/presentation/components/pages/menus/table/edit.js +1 -0
  44. package/dist/system/presentation/components/pages/menus/table/icon/index.js +34 -0
  45. package/dist/system/presentation/components/pages/users/table/columns.d.ts +1 -1
  46. package/dist/system/presentation/components/pages/users/table/create.d.ts +1 -1
  47. package/dist/system/presentation/components/pages/users/table/create.js +1 -1
  48. package/dist/system/presentation/components/pages/users/table/delete.js +1 -1
  49. package/dist/system/presentation/components/pages/users/table/edit.d.ts +1 -1
  50. package/dist/system/presentation/components/pages/users/table/edit.js +1 -0
  51. package/dist/system/presentation/context/auth/components/login/form-login/index.js +12 -0
  52. package/dist/system/presentation/context/auth/components/login/index.js +1 -1
  53. package/dist/system/presentation/context/auth/components/private-page/index.js +1 -1
  54. package/dist/system/presentation/hooks/locales/ibge/use-load-cities-by-uf/index.d.ts +1 -1
  55. package/dist/system/presentation/hooks/locales/ibge/use-load-cities-by-uf/index.js +1 -1
  56. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/delete/index.d.ts +0 -5
  57. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/delete/index.js +0 -80
  58. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.d.ts +0 -5
  59. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +0 -111
  60. package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.d.ts +0 -2
  61. package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.js +0 -78
  62. package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.d.ts +0 -4
  63. package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.js +0 -60
  64. package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.d.ts +0 -4
  65. package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.js +0 -35
  66. package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.d.ts +0 -2
  67. package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.js +0 -144
  68. package/dist/system/presentation/hooks/ui/use-table/components/table/index.d.ts +2 -0
  69. package/dist/system/presentation/hooks/ui/use-table/components/table/index.js +105 -0
  70. package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.d.ts +14 -0
  71. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.d.ts +0 -2
  72. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +0 -56
  73. package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/index.js +0 -34
  74. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.d.ts +0 -2
  75. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +0 -50
  76. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +0 -6
  77. package/dist/system/presentation/hooks/ui/use-table/query/hook.js +1 -1
  78. package/dist/ui/components/carousel/carousel-lib/core/modules/observer/observer.js +2 -2
  79. package/dist/ui/components/carousel/carousel-lib/core/modules/resize/resize.js +1 -1
  80. package/dist/ui/components/form/input-cep/use-cep/providers/ibge/hook.d.ts +1 -1
  81. package/dist/ui/components/form/input-cep/use-cep/providers/ibge/hook.js +1 -1
  82. package/dist/ui/components/form/input-cep/use-cep/providers/ibge/index.d.ts +3 -3
  83. package/dist/ui/components/form/input-cep/use-cep/providers/ibge/index.js +3 -3
  84. package/dist/ui/components/form/input-date-picker/calendar/calendar-header/index.js +62 -0
  85. package/dist/ui/components/form/input-date-picker/calendar/days/index.d.ts +2 -0
  86. package/dist/ui/components/form/input-date-picker/calendar/days/index.js +87 -0
  87. package/dist/ui/components/form/input-date-picker/calendar/months/index.d.ts +2 -0
  88. package/dist/ui/components/form/input-date-picker/calendar/months/index.js +66 -0
  89. package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.d.ts +0 -13
  90. package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.js +0 -18
  91. package/dist/ui/components/form/input-file/render-files/file-item/index.d.ts +3 -0
  92. package/dist/ui/components/form/input-file/render-files/file-item/index.js +49 -0
  93. package/dist/ui/components/form/input-mask/lib/core/errors/SyntheticChangeError.d.ts +0 -14
  94. package/dist/ui/components/form/input-mask/lib/core/hooks/useInput.d.ts +0 -10
  95. package/dist/ui/components/form/input-mask/lib/core/hooks/useInput.js +0 -204
  96. package/dist/ui/components/form/input-mask/lib/core/index.d.ts +5 -0
  97. package/dist/ui/components/form/input-mask/lib/core/index.js +15 -0
  98. package/dist/ui/components/form/input-mask/lib/core/utils/setInputAttributes.d.ts +0 -2
  99. package/dist/ui/components/form/input-mask/lib/mask/InputMask.d.ts +6 -0
  100. package/dist/ui/components/form/input-mask/lib/mask/InputMask.js +44 -0
  101. package/dist/ui/components/form/input-mask/lib/mask/index.d.ts +5 -0
  102. package/dist/ui/components/form/input-mask/lib/mask/index.js +26 -0
  103. package/dist/ui/components/form/input-mask/lib/mask/types.d.ts +61 -0
  104. package/dist/ui/components/form/input-mask/lib/mask/useMask.d.ts +3 -0
  105. package/dist/ui/components/form/input-mask/lib/mask/useMask.js +150 -0
  106. package/dist/ui/components/form/input-mask/lib/mask/utils/filter.d.ts +0 -14
  107. package/dist/ui/components/form/input-mask/lib/mask/utils/format.d.ts +0 -14
  108. package/dist/ui/components/form/input-mask/lib/mask/utils/formatToParts.d.ts +0 -17
  109. package/dist/ui/components/form/input-mask/lib/mask/utils/formatToReplacementObject.d.ts +0 -2
  110. package/dist/ui/components/form/input-mask/lib/mask/utils/resolveDetail.d.ts +0 -14
  111. package/dist/ui/components/form/input-mask/lib/mask/utils/resolveDetail.js +0 -25
  112. package/dist/ui/components/form/input-mask/lib/mask/utils/resolveSelection.d.ts +0 -18
  113. package/dist/ui/components/form/input-mask/lib/mask/utils/unformat.d.ts +0 -16
  114. package/dist/ui/components/form/input-mask/lib/mask/utils/validate.d.ts +0 -13
  115. package/dist/ui/components/form/input-mask/lib/mask/utils.d.ts +63 -0
  116. package/dist/ui/components/form/input-mask/lib/mask/utils.js +114 -0
  117. package/dist/ui/components/form/input-mask/lib/number-format/InputNumberFormat.d.ts +6 -0
  118. package/dist/ui/components/form/input-mask/lib/number-format/InputNumberFormat.js +58 -0
  119. package/dist/ui/components/form/input-mask/lib/number-format/index.d.ts +4 -0
  120. package/dist/ui/components/form/input-mask/lib/number-format/index.js +11 -0
  121. package/dist/ui/components/form/input-mask/lib/number-format/types.d.ts +26 -0
  122. package/dist/ui/components/form/input-mask/lib/number-format/useNumberFormat.d.ts +3 -0
  123. package/dist/ui/components/form/input-mask/lib/number-format/useNumberFormat.js +208 -0
  124. package/dist/ui/components/form/input-mask/lib/number-format/utils/localizeValues.d.ts +0 -7
  125. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveDetail.d.ts +0 -20
  126. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveDetail.js +0 -123
  127. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveMinimumFractionDigits.d.ts +0 -11
  128. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveOptions.d.ts +0 -5
  129. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveSelection.d.ts +0 -24
  130. package/dist/ui/components/form/input-seo/input-meta-image/index.d.ts +1 -1
  131. package/dist/ui/components/form/input-seo/input-meta-image/index.js +1 -1
  132. package/dist/ui/components/menu-mobile/components/nav-links/index.js +1 -1
  133. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
1
  import { PageItem } from '../../../../../../system/index.js';
2
- export declare function BlogItem(props: PageItem): import("react/jsx-runtime
2
+ export declare function BlogItem(props: PageItem): import("react/jsx-runtime").JSX.Element;
@@ -41,4 +41,4 @@ function BlogItem(props) {
41
41
  return ((0, jsx_runtime_1.jsxs)(S.BlogItem, { href: redirect, className: 'blog-item', children: [(0, jsx_runtime_1.jsx)("div", { className: 'image', children: (props === null || props === void 0 ? void 0 : props.imagem) && ((0, jsx_runtime_1.jsx)("div", { className: 'image-link', children: (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: props.imagem }) })) }), (0, jsx_runtime_1.jsxs)("div", { className: 'text', children: [(props === null || props === void 0 ? void 0 : props.dataCriacao) && ((0, jsx_runtime_1.jsx)("time", { className: 'font-14-regular', children: (0, moment_1.default)(props.dataCriacao).format('DD/MM/YYYY HH:mm') })), (props === null || props === void 0 ? void 0 : props.titulo) && (0, jsx_runtime_1.jsx)("div", { className: 'font-24-bold title-post', children: props.titulo }), (props === null || props === void 0 ? void 0 : props.subtitulo) && (0, jsx_runtime_1.jsx)("div", { className: 'font-18-regular title-post', children: props.subtitulo }), (props === null || props === void 0 ? void 0 : props.descricao) && ((0, jsx_runtime_1.jsx)("div", { className: 'font-16 description', dangerouslySetInnerHTML: { __html: props.descricao || '' } }))] })] }));
42
42
  }
43
43
  exports.BlogItem = BlogItem;
44
- //# sourceMapping
44
+ //# sourceMappingURL=index.js.map
@@ -43,4 +43,4 @@ function Categorias() {
43
43
  })] }));
44
44
  }
45
45
  exports.Categorias = Categorias;
46
- //# sourceMapping
46
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,4 @@
1
+ import { PageItem } from '../../../../../../../system/index.js';
2
+ export declare function FeaturedBlogItem({ pageItem }: {
3
+ pageItem: PageItem;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.FeaturedBlogItem = void 0;
27
+ var jsx_runtime_1 = require("react/jsx-runtime");
28
+ var ui_1 = require("../../../../../../../ui/index.js");
29
+ var format_date_1 = require("./format-date.js");
30
+ var S = __importStar(require("./styles.js"));
31
+ function FeaturedBlogItem(_a) {
32
+ var pageItem = _a.pageItem;
33
+ var redirect = {
34
+ pathname: '/post/[url]',
35
+ query: {
36
+ url: pageItem.url,
37
+ },
38
+ };
39
+ return ((0, jsx_runtime_1.jsxs)(S.FeaturedBlogItem, { href: redirect, children: [pageItem.imagem && ((0, jsx_runtime_1.jsx)("div", { className: 'image', children: (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: pageItem.imagem }) })), (0, jsx_runtime_1.jsxs)("div", { className: 'text', children: [pageItem.titulo && (0, jsx_runtime_1.jsx)("h2", { className: 'font-16-bold title-link', children: pageItem.titulo }), pageItem.dataCriacao && (0, jsx_runtime_1.jsx)("p", { className: 'date', children: (0, format_date_1.FormatDate)(pageItem.dataCriacao) })] })] }));
40
+ }
41
+ exports.FeaturedBlogItem = FeaturedBlogItem;
42
+ //# sourceMappingURL=index.js.map
@@ -37,4 +37,4 @@ function FeaturedBlogList() {
37
37
  }) })] }));
38
38
  }
39
39
  exports.FeaturedBlogList = FeaturedBlogList;
40
- //# sourceMapping
40
+ //# sourceMappingURL=index.js.map
@@ -90,4 +90,4 @@ function NewsLetterBlog() {
90
90
  return ((0, jsx_runtime_1.jsxs)(S.Box, { className: 'newsletter', children: [(0, jsx_runtime_1.jsx)("h4", { className: 'font-24-bold', children: "Newsletter" }), (0, jsx_runtime_1.jsx)("p", { className: 'font-16-bold', children: "Cadastre-se para receber lan\u00E7amentos e not\u00EDcias" }), (0, jsx_runtime_1.jsx)(ui_1.FormHandler, { button: { text: "Cadastrar", className: 'font-18-bold' }, onSucess: handleSucess, defaultSchemas: { email: true }, children: (0, jsx_runtime_1.jsx)(ui_1.Input, { className: 'font-18-regular', name: 'email', placeholder: "Digite seu e-mail", type: 'email' }) })] }));
91
91
  }
92
92
  exports.NewsLetterBlog = NewsLetterBlog;
93
- /
93
+ //# sourceMappingURL=index.js.map
@@ -36,4 +36,4 @@ function SearchBlog() {
36
36
  return ((0, jsx_runtime_1.jsx)(S.Box, { className: 'search', style: { border: 0, padding: 0 }, children: (0, jsx_runtime_1.jsx)(ui_1.FormHandler, { button: { svg: 'LupaIcon' }, onSucess: handleSucess, initialData: { search: router.query.search }, cleanFieldsOnSubmit: false, children: (0, jsx_runtime_1.jsx)(ui_1.Input, { className: 'font-16-regular', name: 'search', placeholder: 'Buscar...', type: 'text', value: router.query.search }) }) }));
37
37
  }
38
38
  exports.SearchBlog = SearchBlog;
39
- //# sourceMapping
39
+ //# sourceMappingURL=index.js.map
@@ -32,4 +32,4 @@ function TitleBlog(_a) {
32
32
  return ((0, jsx_runtime_1.jsx)(S.TitleBlog, { children: title && ((0, jsx_runtime_1.jsx)(ui_1.Container, { children: (0, jsx_runtime_1.jsx)("h1", { className: 'font-80 title', children: title }) })) }));
33
33
  }
34
34
  exports.TitleBlog = TitleBlog;
35
- //# sourceMapping
35
+ //# sourceMappingURL=index.js.map
@@ -32,4 +32,4 @@ function SideBarButton() {
32
32
  return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: '', children: (0, jsx_runtime_1.jsx)(S.SideBarButton, { onClick: utils_1.openSidebar, type: 'button', children: (0, jsx_runtime_1.jsx)("svg", { xmlns: 'http://www.w3.org/2000/svg', fill: 'none', viewBox: '0 0 24 24', strokeWidth: '2', stroke: 'currentColor', children: (0, jsx_runtime_1.jsx)("path", { strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M3.75 6.75h16.5M3.75 12H12m-8.25 5.25h16.5' }) }) }) }));
33
33
  }
34
34
  exports.SideBarButton = SideBarButton;
35
- /
35
+ //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
1
  import { Message } from '../../../../../../system/index.js';
2
2
  export declare function CardMessage({ message }: {
3
3
  message: Message;
4
- }): import("react/jsx-runtime
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -33,4 +33,4 @@ function CardMessage(_a) {
33
33
  return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'card_message_error', children: (0, jsx_runtime_1.jsxs)(S.CardMessage, { children: [(0, jsx_runtime_1.jsxs)("div", { className: 'message-header ', children: [(0, jsx_runtime_1.jsx)(system_1.Avatar, { image: message.avatar, className: 'avatar-image' }), message.userName && (0, jsx_runtime_1.jsx)("h4", { children: message === null || message === void 0 ? void 0 : message.userName }), message.dataCriacaoText && (0, jsx_runtime_1.jsx)("p", { className: 'font-12', children: message === null || message === void 0 ? void 0 : message.dataCriacaoText })] }), message.message && ((0, jsx_runtime_1.jsx)("div", { className: 'message-body', children: (0, jsx_runtime_1.jsx)("p", { className: 'font-16', children: message === null || message === void 0 ? void 0 : message.message }) }))] }) }));
34
34
  }
35
35
  exports.CardMessage = CardMessage;
36
- /
36
+ //# sourceMappingURL=index.js.map
@@ -7,4 +7,4 @@ function ChatLoader() {
7
7
  return ((0, jsx_runtime_1.jsxs)("ul", { children: [(0, jsx_runtime_1.jsxs)("li", { style: { marginBottom: 20 }, children: [(0, jsx_runtime_1.jsxs)("div", { style: { display: 'flex', gap: 8, marginBottom: 5 }, children: [(0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'square' }), (0, jsx_runtime_1.jsxs)("div", { style: { width: '100%' }, children: [(0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line' }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line' })] })] }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line' }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line' })] }), (0, jsx_runtime_1.jsxs)("li", { style: { marginBottom: 20 }, children: [(0, jsx_runtime_1.jsxs)("div", { style: { display: 'flex', gap: 8, marginBottom: 5 }, children: [(0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'square' }), (0, jsx_runtime_1.jsxs)("div", { style: { width: '100%' }, children: [(0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line' }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line' })] })] }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line' }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line' })] }), (0, jsx_runtime_1.jsxs)("li", { style: { marginBottom: 20 }, children: [(0, jsx_runtime_1.jsxs)("div", { style: { display: 'flex', gap: 8, marginBottom: 5 }, children: [(0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'square' }), (0, jsx_runtime_1.jsxs)("div", { style: { width: '100%' }, children: [(0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line' }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line' })] })] }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line' }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line' })] })] }));
8
8
  }
9
9
  exports.ChatLoader = ChatLoader;
10
- //# sourceMapping
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.MenuItem = void 0;
30
+ var jsx_runtime_1 = require("react/jsx-runtime");
31
+ var react_1 = require("react");
32
+ var link_1 = __importDefault(require("next/link"));
33
+ var router_1 = require("next/router");
34
+ var ui_1 = require("../../../../../../../ui/index.js");
35
+ var system_1 = require("../../../../../../../system/index.js");
36
+ var S = __importStar(require("../../styles.js"));
37
+ function MenuItem(_a) {
38
+ var _b;
39
+ var item = _a.item, index = _a.index;
40
+ var _c = (0, react_1.useState)(false), open = _c[0], setOpen = _c[1];
41
+ var router = (0, router_1.useRouter)();
42
+ var window = (0, ui_1.useWindow)();
43
+ var _d = (0, system_1.useMenu)(), openMenu = _d.openMenu, setOpenMenu = _d.setOpenMenu;
44
+ var path = router === null || router === void 0 ? void 0 : router.asPath.replace(/\/$/, '');
45
+ var isActivePage = path === (item === null || item === void 0 ? void 0 : item.route);
46
+ var hasMenuItems = (item === null || item === void 0 ? void 0 : item.items) && ((_b = item.items) === null || _b === void 0 ? void 0 : _b.length) > 0;
47
+ var roleUser = (0, system_1.useAuthAdmin)().roleUser;
48
+ var isEnableToShowMenuItem = !(item === null || item === void 0 ? void 0 : item.roles) ? true : item.roles.includes(roleUser);
49
+ if (!isEnableToShowMenuItem) {
50
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
51
+ }
52
+ function toggleMenuItem() {
53
+ if (openMenu) {
54
+ setOpen(false);
55
+ setOpenMenu(false);
56
+ return;
57
+ }
58
+ if (window.innerHeight <= 1024) {
59
+ setOpen(!open);
60
+ return;
61
+ }
62
+ }
63
+ function ItemContent(_a) {
64
+ var _b;
65
+ var href = _a.href;
66
+ return ((0, jsx_runtime_1.jsxs)("span", { className: 'font-13-regular', children: [(0, jsx_runtime_1.jsxs)("div", { onClick: toggleMenuItem, children: [(item === null || item === void 0 ? void 0 : item.icon) && (0, jsx_runtime_1.jsx)("div", { className: 'icon', dangerouslySetInnerHTML: { __html: item.icon } }), (0, jsx_runtime_1.jsx)(link_1.default, { href: href || '', className: 'content-title', target: item.target, children: item === null || item === void 0 ? void 0 : item.title })] }), ((_b = item === null || item === void 0 ? void 0 : item.items) === null || _b === void 0 ? void 0 : _b.length) > 0 && ((0, jsx_runtime_1.jsx)("div", { onClick: toggleMenuItem, className: 'arrow', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconKeyboardRightArrow' }) }))] }));
67
+ }
68
+ return ((0, jsx_runtime_1.jsxs)("li", { className: (open ? ' open' : '') + (isActivePage ? ' active-page' : ''), children: [item.route ? (0, jsx_runtime_1.jsx)(ItemContent, { href: item.route }) : (0, jsx_runtime_1.jsx)(ItemContent, { href: item.route }), hasMenuItems && (0, jsx_runtime_1.jsx)(SubMenu, { index: index, item: item === null || item === void 0 ? void 0 : item.items }, 'submenu' + item.title)] }));
69
+ }
70
+ exports.MenuItem = MenuItem;
71
+ function SubMenu(_a) {
72
+ var item = _a.item, index = _a.index;
73
+ var openAtTopLimit = index >= 7;
74
+ var openTopStyle = {
75
+ top: 'auto',
76
+ bottom: 0,
77
+ };
78
+ return ((0, jsx_runtime_1.jsx)(S.SubMenu, { style: openAtTopLimit ? openTopStyle : {}, className: 'submenu', "$index": index, children: item.map(function (subitem) { return ((0, jsx_runtime_1.jsx)(MenuItem, { item: subitem, index: index }, 'submenu-item' + subitem.title)); }) })
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.CollapsedMenu = void 0;
27
+ var jsx_runtime_1 = require("react/jsx-runtime");
28
+ var context_1 = require("../../../../../../../system/presentation/context/index.js");
29
+ var hooks_1 = require("../../../../../../../system/presentation/hooks/index.js");
30
+ var ui_1 = require("../../../../../../../ui/index.js");
31
+ var menu_item_1 = require("../../components/menu-item/index.js");
32
+ var S = __importStar(require("./styles.js"));
33
+ function CollapsedMenu() {
34
+ var _a;
35
+ var data = (0, hooks_1.useLoadMenu)().data;
36
+ var _b = (0, context_1.useMenu)(), openMenu = _b.openMenu, setOpenMenu = _b.setOpenMenu;
37
+ var header = (0, ui_1.useElementId)({ id: 'header' });
38
+ var window = (0, ui_1.useWindow)();
39
+ var isMobile = (window === null || window === void 0 ? void 0 : window.innerWidth) <= 1024;
40
+ // const data = MENU_MOCK
41
+ return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'CollapsedMenu', children: (0, jsx_runtime_1.jsx)("div", { style: { width: isMobile ? 0 : 65, position: 'relative' }, id: 'ghost', className: 'ghost', children: (0, jsx_runtime_1.jsxs)(S.CollapsedMenu, { style: { height: "calc(100vh - ".concat((header === null || header === void 0 ? void 0 : header.offsetHeight) + 'px', ")") }, id: 'sidebar', className: openMenu ? 'menu open' : 'menu', children: [(0, jsx_runtime_1.jsx)("button", { type: 'button', className: 'expand', onClick: function () { return setOpenMenu(function (s) { return !s; }); }, children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconArrowRight' }) }), (_a = data === null || data === void 0 ? void 0 : data.items) === null || _a === void 0 ? void 0 : _a.map(function (item, index) { return ((0, jsx_runtime_1.jsx)("ul", { children: (0, jsx_runtime_1.jsx)(ui_1.Error, { name: item.id + item.title + 'erro_menu_item', children: (0, jsx_runtime_1.jsx)(menu_item_1.MenuItem, { item: item, index: index }, 'menu-item' + index + item.title) }) }, item.id + item.route)); })] }) }) }));
42
+ }
43
+ exports.Collaps
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.CollapsedMenu = void 0;
11
+ var styled_components_1 = __importDefault(require("styled-components"));
12
+ var styles_1 = require("../../styles.js");
13
+ exports.CollapsedMenu = (0, styled_components_1.default)(styles_1.DefaultMenuStyle)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 41px 0 15px 0;\n z-index: 99;\n width: 65px;\n min-width: 65px;\n position: absolute;\n z-index: 2;\n left: 0;\n top: 0;\n\n .ghost {\n width: 65px;\n }\n\n &.open {\n width: 240px !important;\n transition: 0.3s;\n\n .expand {\n svg {\n transform: rotate(180deg);\n }\n }\n }\n\n .expand {\n position: absolute;\n top: 10px;\n right: -12px;\n width: 24px;\n height: 24px;\n border-radius: 100%;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n border: 0;\n z-index: 56;\n\n svg {\n width: 5px;\n fill: #fff;\n height: auto;\n }\n }\n\n &:not(.open) > ul {\n > li {\n > span {\n grid-template-columns: 1fr !important;\n\n > div {\n width: fit-content;\n margin: auto;\n }\n\n a,\n .arrow {\n display: none;\n }\n }\n }\n\n ul {\n min-width: max-content;\n width: 240px;\n }\n }\n"], ["\n padding: 41px 0 15px 0;\n z-index: 99;\n width: 65px;\n min-width: 65px;\n position: absolute;\n z-index: 2;\n left: 0;\n top: 0;\n\n .ghost {\n width: 65px;\n }\n\n &.open {\n width: 240px !important;\n transition: 0.3s;\n\n .expand {\n svg {\n transform: rotate(180deg);\n }\n }\n }\n\n .expand {\n position: absolute;\n top: 10px;\n right: -12px;\n width: 24px;\n height: 24px;\n border-radius: 100%;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n border: 0;\n z-index: 56;\n\n svg {\n width: 5px;\n fill: #fff;\n height: auto;\n }\n }\n\n &:not(.open) > ul {\n > li {\n > span {\n grid-template-columns: 1fr !important;\n\n > div {\n width: fit-content;\n margin: auto;\n }\n\n a,\n .arrow {\n display: none;\n }\n }\n }\n\n ul {\n min-width: max-content;\n width: 240px;\n }\n }\n"])), function (props) { return props.theme.primaryColor; });
14
+ var templateObject_1;
15
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
+ if (k2 === undefined) k2 = k;
8
+ var desc = Object.getOwnPropertyDescriptor(m, k);
9
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
+ desc = { enumerable: true, get: function() { return m[k]; } };
11
+ }
12
+ Object.defineProperty(o, k2, desc);
13
+ }) : (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ o[k2] = m[k];
16
+ }));
17
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
18
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
19
+ }) : function(o, v) {
20
+ o["default"] = v;
21
+ });
22
+ var __importStar = (this && this.__importStar) || function (mod) {
23
+ if (mod && mod.__esModule) return mod;
24
+ var result = {};
25
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
26
+ __setModuleDefault(result, mod);
27
+ return result;
28
+ };
29
+ var __importDefault = (this && this.__importDefault) || function (mod) {
30
+ return (mod && mod.__esModule) ? mod : { "default": mod };
31
+ };
32
+ Object.defineProperty(exports, "__esModule", { value: true });
33
+ exports.Overlay = exports.OpenedMenu = void 0;
34
+ var jsx_runtime_1 = require("react/jsx-runtime");
35
+ var styled_components_1 = __importDefault(require("styled-components"));
36
+ var ui_1 = require("../../../../../../../ui/index.js");
37
+ var system_1 = require("../../../../../../../system/index.js");
38
+ var S = __importStar(require("./styles.js"));
39
+ function OpenedMenu() {
40
+ var _a;
41
+ var data = (0, system_1.useLoadMenu)().data;
42
+ var header = (0, ui_1.useElementId)({ id: 'header' });
43
+ var window = (0, ui_1.useWindow)();
44
+ var _b = (0, system_1.useMenu)(), openMenu = _b.openMenu, setOpenMenu = _b.setOpenMenu;
45
+ var isMobile = (window === null || window === void 0 ? void 0 : window.innerWidth) <= 1024;
46
+ return ((0, jsx_runtime_1.jsxs)(ui_1.Error, { name: 'OpenedMenu', children: [openMenu && isMobile && (0, jsx_runtime_1.jsx)(exports.Overlay, { onClick: function () { return setOpenMenu(false); } }), (0, jsx_runtime_1.jsx)(S.OpenedMenu, { className: isMobile && openMenu ? 'open' : '', style: { height: "calc(100dvh - ".concat((header === null || header === void 0 ? void 0 : header.offsetHeight) + 30, "px)") }, children: (_a = data === null || data === void 0 ? void 0 : data.items) === null || _a === void 0 ? void 0 : _a.map(function (item, index) { return ((0, jsx_runtime_1.jsx)("ul", { children: (0, jsx_runtime_1.jsx)(system_1.MenuItem, { item: item, index: index }, 'menu-item' + index + item.title) })); }) })] }));
47
+ }
48
+ exports.OpenedMenu = OpenedMenu;
49
+ exports.Overlay = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100dvh;\n background: rgba(0, 0, 0, 0.4);\n z-index: 7;\n"], ["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100dvh;\n background: rgba(0, 0, 0, 0.4);\n z-index: 7;\n"])));
50
+ var templateObjec
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.OpenedMenu = void 0;
11
+ var styled_components_1 = __importDefault(require("styled-components"));
12
+ var styles_1 = require("../../styles.js");
13
+ exports.OpenedMenu = (0, styled_components_1.default)(styles_1.DefaultMenuStyle)(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
14
+ var templateObject_1;
15
+ //# sourceMappingURL=styles.js.map
@@ -1,2 +1,2 @@
1
1
  import { INotification } from '../../../../../../system/domain/index.js';
2
- export declare function NotificationCard({ title, createdAtText, message }: INotification): import("react/jsx-runtime
2
+ export declare function NotificationCard({ title, createdAtText, message }: INotification): import("react/jsx-runtime").JSX.Element;
@@ -32,4 +32,4 @@ function NotificationCard(_a) {
32
32
  return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'NotificationCard', children: (0, jsx_runtime_1.jsxs)(S.NotificationCard, { children: [(0, jsx_runtime_1.jsxs)("div", { className: 'top', children: [title && (0, jsx_runtime_1.jsx)("h4", { className: 'font-16-bold', children: title }), createdAtText && (0, jsx_runtime_1.jsx)("span", { className: 'font-12-regular', children: createdAtText })] }), message && (0, jsx_runtime_1.jsx)("div", { className: 'description font-16-regular', dangerouslySetInnerHTML: { __html: message } })] }) }));
33
33
  }
34
34
  exports.NotificationCard = NotificationCard;
35
- //# sourceMapping
35
+ //# sourceMappingURL=index.js.map
@@ -33,4 +33,4 @@ function Profile(_a) {
33
33
  return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Profile', children: (0, jsx_runtime_1.jsxs)(S.Profile, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'avatar', children: (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: image || '/images/profile-default.png' }) }), (0, jsx_runtime_1.jsxs)("div", { children: [name && (0, jsx_runtime_1.jsx)("h1", { children: name }), status && ((0, jsx_runtime_1.jsx)("span", { className: 'status', children: (0, jsx_runtime_1.jsx)(highlight_text_1.HighlightText, { text: status === null || status === void 0 ? void 0 : status.text, color: status === null || status === void 0 ? void 0 : status.color }) })), (0, jsx_runtime_1.jsxs)("div", { className: 'infos', children: [tag && (0, jsx_runtime_1.jsxs)("span", { children: ["RG ", tag] }), tags && (0, jsx_runtime_1.jsx)("div", { dangerouslySetInnerHTML: { __html: tags } })] })] })] }) }));
34
34
  }
35
35
  exports.Profile = Profile;
36
- //# sourceMapping
36
+ //# sourceMappingURL=index.js.map
@@ -43,4 +43,4 @@ function TabItemComponent(_a) {
43
43
  return ((0, jsx_runtime_1.jsxs)(S.TabItemComponent, { type: 'button', id: tabKey, onClick: function () { return changeTab(tabKey); }, "$icon": icon, "$image": image, children: [(image === null || image === void 0 ? void 0 : image.url) && ((0, jsx_runtime_1.jsx)("div", { className: 'image', children: (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: image.url }) })), (icon === null || icon === void 0 ? void 0 : icon.name) && (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: icon.name }), hasTitle && (0, jsx_runtime_1.jsx)("span", { children: tabItem.title })] }));
44
44
  }
45
45
  exports.TabItemComponent = TabItemComponent;
46
- //# sourceMapping
46
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,5 @@
1
+ import { WorkSpace } from '../../../../../../../system/index.js';
2
+ interface IMenuRight {
3
+ workspaces: WorkSpace;
4
+ }
5
+ export declare function MenuRight(props: IMenuRight): import("react/jsx-runtime").JSX.E
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.MenuRight = void 0;
27
+ var jsx_runtime_1 = require("react/jsx-runtime");
28
+ var ui_1 = require("../../../../../../../ui/index.js");
29
+ var system_1 = require("../../../../../../../system/index.js");
30
+ var S = __importStar(require("./styles.js"));
31
+ function MenuRight(props) {
32
+ return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'MenuRight', children: (0, jsx_runtime_1.jsxs)(S.MenuRight, { children: [props.workspaces && (0, jsx_runtime_1.jsx)(system_1.SelectWorkSpace, { workspaces: props.workspaces }), (0, jsx_runtime_1.jsx)(system_1.Notifications, {}), (0, jsx_runtime_1.jsx)(system_1.Profile, {})] }) }));
33
+ }
34
+ exports.MenuRight = MenuRight;
@@ -0,0 +1,3 @@
1
+ export * from "./profile/index.js";
2
+ export * from "./messages/index.js";
3
+ export * from "./component.js";
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./profile/index.js"), exports);
18
+ __exportStar(require("./messages/index.js"), exports);
19
+ __exportStar(require("./component.js"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -1,2 +0,0 @@
1
- import { IMessage } from './interfaces';
2
- export declare function MessageCard({ title, status, date, name, description, url }: IMessage): import("react/jsx-runtime").JSX.Element;
@@ -1,47 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- var desc = Object.getOwnPropertyDescriptor(m, k);
16
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
- desc = { enumerable: true, get: function() { return m[k]; } };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }) : (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- o[k2] = m[k];
23
- }));
24
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
- Object.defineProperty(o, "default", { enumerable: true, value: v });
26
- }) : function(o, v) {
27
- o["default"] = v;
28
- });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
36
- Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.MessageCard = void 0;
38
- var jsx_runtime_1 = require("react/jsx-runtime");
39
- var ui_1 = require("../../../../../../../../../../ui");
40
- var system_1 = require("../../../../../../../../../../system");
41
- var S = __importStar(require("./styles"));
42
- function MessageCard(_a) {
43
- var title = _a.title, status = _a.status, date = _a.date, name = _a.name, description = _a.description, url = _a.url;
44
- return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'MessageCard', children: (0, jsx_runtime_1.jsxs)(S.MessageCard, { href: url, children: [(0, jsx_runtime_1.jsxs)("div", { className: 'top', children: [(0, jsx_runtime_1.jsx)("h5", { className: 'title font-16-bold', children: title }), (0, jsx_runtime_1.jsx)(system_1.HighlightText, __assign({}, status)), (0, jsx_runtime_1.jsx)("span", { className: 'days font-12-regular', children: date })] }), (0, jsx_runtime_1.jsxs)("p", { className: 'description font-16-regular', children: [(0, jsx_runtime_1.jsxs)("strong", { className: '-bold', children: [name, ": "] }), " ", description] })] }) }));
45
- }
46
- exports.MessageCard = MessageCard;
47
- //# sourceMappingURL=index.js.map
@@ -1,92 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- var desc = Object.getOwnPropertyDescriptor(m, k);
16
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
- desc = { enumerable: true, get: function() { return m[k]; } };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }) : (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- o[k2] = m[k];
23
- }));
24
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
- Object.defineProperty(o, "default", { enumerable: true, value: v });
26
- }) : function(o, v) {
27
- o["default"] = v;
28
- });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
36
- Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.Content = void 0;
38
- var jsx_runtime_1 = require("react/jsx-runtime");
39
- var ui_1 = require("../../../../../../../../../ui");
40
- var card_1 = require("./card");
41
- var S = __importStar(require("./styles"));
42
- function Content() {
43
- var messages = [
44
- {
45
- title: 'Edital 88/2023',
46
- url: '#',
47
- status: {
48
- text: 'Em análise',
49
- color: '#F4A100',
50
- },
51
- date: 'há 6 dias',
52
- name: 'Camila',
53
- description: 'Lorem ipsum dolor sit amet, consectetur adip elit, sed do eiusmod tempor incididunt ut labore este...',
54
- },
55
- {
56
- title: 'Edital 88/2023',
57
- url: '#',
58
- status: {
59
- text: 'Em análise',
60
- color: '#F4A100',
61
- },
62
- date: 'há 6 dias',
63
- name: 'Camila',
64
- description: 'Lorem ipsum dolor sit amet, consectetur adip elit, sed do eiusmod tempor incididunt ut labore este...',
65
- },
66
- {
67
- title: 'Edital 88/2023',
68
- url: '#',
69
- status: {
70
- text: 'Em análise',
71
- color: '#F4A100',
72
- },
73
- date: 'há 6 dias',
74
- name: 'Camila',
75
- description: 'Lorem ipsum dolor sit amet, consectetur adip elit, sed do eiusmod tempor incididunt ut labore este...',
76
- },
77
- {
78
- title: 'Edital 88/2023',
79
- url: '#',
80
- status: {
81
- text: 'Em análise',
82
- color: '#F4A100',
83
- },
84
- date: 'há 6 dias',
85
- name: 'Camila',
86
- description: 'Lorem ipsum dolor sit amet, consectetur adip elit, sed do eiusmod tempor incididunt ut labore este...',
87
- },
88
- ];
89
- return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Content', children: (0, jsx_runtime_1.jsx)(S.Content, { children: (0, jsx_runtime_1.jsx)("div", { className: 'cards-box', children: messages.map(function (item) { return ((0, jsx_runtime_1.jsx)(card_1.MessageCard, __assign({}, item), 'message-card' + item.title)); }) }) }) }));
90
- }
91
- exports.Content = Content;
92
- //# sourceMappingURL=index.js.map
@@ -1,6 +0,0 @@
1
- import { Dispatch, SetStateAction } from 'react';
2
- import { IMessage } from './card/interfaces';
3
- export interface IMessageContentProps {
4
- messages: IMessage[];
5
- setVisible: Dispatch<SetStateAction<boolean>>;
6
- }