takeat-design-system-ui-kit 0.5.13 → 0.5.14
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.
- package/dist/cjs/components/CollapsableMenu/MenuHeader/index.js +2 -1
- package/dist/cjs/components/CollapsableMenu/MenuHeader/index.js.map +1 -1
- package/dist/cjs/components/Tooltip/index.d.ts +1 -0
- package/dist/cjs/components/Tooltip/index.js +2 -2
- package/dist/cjs/components/Tooltip/index.js.map +1 -1
- package/dist/esm/components/CollapsableMenu/MenuHeader/index.js +2 -1
- package/dist/esm/components/CollapsableMenu/MenuHeader/index.js.map +1 -1
- package/dist/esm/components/Tooltip/index.d.ts +1 -0
- package/dist/esm/components/Tooltip/index.js +2 -2
- package/dist/esm/components/Tooltip/index.js.map +1 -1
- package/package.json +14 -7
- package/scripts/postinstall.js +0 -20
|
@@ -7,10 +7,11 @@ var styles_1 = require("../styles");
|
|
|
7
7
|
var MenuModal_1 = require("../MenuModal");
|
|
8
8
|
var Tooltip_1 = require("../../Tooltip");
|
|
9
9
|
var react_1 = require("react");
|
|
10
|
+
var react_dom_1 = require("react-dom");
|
|
10
11
|
var MenuHeader = function (_a) {
|
|
11
12
|
var sideBarOpen = _a.sideBarOpen, profile = _a.profile, onToggleSidebar = _a.onToggleSidebar;
|
|
12
13
|
var _b = (0, react_1.useState)(false), profileModalOpen = _b[0], setProfileModalOpen = _b[1];
|
|
13
|
-
return ((0, jsx_runtime_1.jsxs)(styles_1.MenuHeader, { "$sideBarOpen": sideBarOpen, children: [(0, jsx_runtime_1.jsxs)(styles_1.MenuHeaderIconContainer, { onClick: onToggleSidebar, role: "button", "aria-label": sideBarOpen ? "Fechar menu" : "Abrir menu", children: [sideBarOpen ? ((0, jsx_runtime_1.jsx)(icons_1.IconCloseMenu, { id: "icon-menu" })) : ((0, jsx_runtime_1.jsx)(icons_1.IconMenu, { id: "icon-menu" })), (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { anchorSelect: "#icon-menu", place: "right", children: "
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.MenuHeader, { "$sideBarOpen": sideBarOpen, children: [(0, jsx_runtime_1.jsxs)(styles_1.MenuHeaderIconContainer, { onClick: onToggleSidebar, role: "button", "aria-label": sideBarOpen ? "Fechar menu" : "Abrir menu", children: [sideBarOpen ? ((0, jsx_runtime_1.jsx)(icons_1.IconCloseMenu, { id: "icon-menu" })) : ((0, jsx_runtime_1.jsx)(icons_1.IconMenu, { id: "icon-menu" })), (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { anchorSelect: "#icon-menu", place: "right", children: sideBarOpen ? "Fechar menu" : "Abrir menu" }), document.body)] }), sideBarOpen && (0, jsx_runtime_1.jsx)("span", { children: profile.name }), (0, jsx_runtime_1.jsxs)("div", { style: { height: 48 }, onMouseLeave: function () { return setProfileModalOpen(false); }, children: [(0, jsx_runtime_1.jsx)(styles_1.ProfileImage, { id: "menu-item/profile", src: profile.image, alt: "Foto do perfil", onMouseEnter: function () { return setProfileModalOpen(true); } }), profileModalOpen && (0, jsx_runtime_1.jsx)(MenuModal_1.MenuModal, { item: profile })] })] }));
|
|
14
15
|
};
|
|
15
16
|
exports.MenuHeader = MenuHeader;
|
|
16
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/CollapsableMenu/MenuHeader/index.tsx"],"names":[],"mappings":";;;;AAAA,qCAAsD;AACtD,oCAImB;AACnB,0CAAyC;AAEzC,yCAAwC;AACxC,+BAAiC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/CollapsableMenu/MenuHeader/index.tsx"],"names":[],"mappings":";;;;AAAA,qCAAsD;AACtD,oCAImB;AACnB,0CAAyC;AAEzC,yCAAwC;AACxC,+BAAiC;AACjC,uCAAyC;AAQlC,IAAM,UAAU,GAAG,UAAC,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ITooltip, TooltipRefProps } from "react-tooltip";
|
|
2
2
|
interface TooltipProps extends ITooltip {
|
|
3
3
|
dark?: boolean;
|
|
4
|
+
opacity?: number;
|
|
4
5
|
}
|
|
5
6
|
export declare const Tooltip: import("react").ForwardRefExoticComponent<TooltipProps & import("react").RefAttributes<TooltipRefProps>>;
|
|
6
7
|
export {};
|
|
@@ -7,9 +7,9 @@ var react_1 = require("react");
|
|
|
7
7
|
var react_tooltip_1 = require("react-tooltip");
|
|
8
8
|
var styled_components_1 = require("styled-components");
|
|
9
9
|
exports.Tooltip = (0, react_1.forwardRef)(function Tooltip(_a, ref) {
|
|
10
|
-
var dark = _a.dark, children = _a.children, props = tslib_1.__rest(_a, ["dark", "children"]);
|
|
10
|
+
var dark = _a.dark, children = _a.children, _b = _a.opacity, opacity = _b === void 0 ? 1 : _b, props = tslib_1.__rest(_a, ["dark", "children", "opacity"]);
|
|
11
11
|
var theme = (0, styled_components_1.useTheme)();
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(react_tooltip_1.Tooltip, tslib_1.__assign({ opacity:
|
|
12
|
+
return ((0, jsx_runtime_1.jsx)(react_tooltip_1.Tooltip, tslib_1.__assign({ opacity: opacity, ref: ref }, props, { style: tslib_1.__assign({ backgroundColor: dark
|
|
13
13
|
? theme.colors.neutral.darker
|
|
14
14
|
: theme.colors.neutral.white, padding: "".concat(theme.spacing.xs, " ").concat(theme.spacing.s), borderRadius: theme.radius.s, color: dark ? theme.colors.neutral.lightest : theme.colors.neutral.dark, fontSize: 12, fontWeight: 500, zIndex: 999, filter: "drop-shadow(0px 0px 1px #0000001F) drop-shadow(0px 1px 2px #00000024)" }, props.style), children: children })));
|
|
15
15
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Tooltip/index.tsx"],"names":[],"mappings":";;;;;AAAA,+BAA8C;AAC9C,+CAIuB;AACvB,uDAA6C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Tooltip/index.tsx"],"names":[],"mappings":";;;;;AAAA,+BAA8C;AAC9C,+CAIuB;AACvB,uDAA6C;AAOhC,QAAA,OAAO,GAAG,IAAA,kBAAU,EAAC,SAAS,OAAO,CAChD,EAAuD,EACvD,GAA+B;IAD7B,IAAA,IAAI,UAAA,EAAE,QAAQ,cAAA,EAAE,eAAW,EAAX,OAAO,mBAAG,CAAC,KAAA,EAAK,KAAK,sBAAvC,+BAAyC,CAAF;IAGvC,IAAM,KAAK,GAAG,IAAA,4BAAQ,GAAE,CAAC;IAEzB,OAAO,CACL,uBAAC,uBAAY,qBACX,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,GAAG,IACJ,KAAK,IACT,KAAK,qBACH,eAAe,EAAE,IAAI;gBACnB,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM;gBAC7B,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAC9B,OAAO,EAAE,UAAG,KAAK,CAAC,OAAO,CAAC,EAAE,cAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAE,EACjD,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,EAC5B,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,EACvE,QAAQ,EAAE,EAAE,EACZ,UAAU,EAAE,GAAG,EACf,MAAM,EAAE,GAAG,EACX,MAAM,EACJ,uEAAuE,IACtE,KAAK,CAAC,KAAK,aAGf,QAAQ,IACI,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -4,9 +4,10 @@ import { MenuHeader as StyledMenuHeader, MenuHeaderIconContainer, ProfileImage,
|
|
|
4
4
|
import { MenuModal } from "../MenuModal";
|
|
5
5
|
import { Tooltip } from "../../Tooltip";
|
|
6
6
|
import { useState } from "react";
|
|
7
|
+
import { createPortal } from "react-dom";
|
|
7
8
|
export var MenuHeader = function (_a) {
|
|
8
9
|
var sideBarOpen = _a.sideBarOpen, profile = _a.profile, onToggleSidebar = _a.onToggleSidebar;
|
|
9
10
|
var _b = useState(false), profileModalOpen = _b[0], setProfileModalOpen = _b[1];
|
|
10
|
-
return (_jsxs(StyledMenuHeader, { "$sideBarOpen": sideBarOpen, children: [_jsxs(MenuHeaderIconContainer, { onClick: onToggleSidebar, role: "button", "aria-label": sideBarOpen ? "Fechar menu" : "Abrir menu", children: [sideBarOpen ? (_jsx(IconCloseMenu, { id: "icon-menu" })) : (_jsx(IconMenu, { id: "icon-menu" })), _jsx(Tooltip, { anchorSelect: "#icon-menu", place: "right", children: "
|
|
11
|
+
return (_jsxs(StyledMenuHeader, { "$sideBarOpen": sideBarOpen, children: [_jsxs(MenuHeaderIconContainer, { onClick: onToggleSidebar, role: "button", "aria-label": sideBarOpen ? "Fechar menu" : "Abrir menu", children: [sideBarOpen ? (_jsx(IconCloseMenu, { id: "icon-menu" })) : (_jsx(IconMenu, { id: "icon-menu" })), createPortal(_jsx(Tooltip, { anchorSelect: "#icon-menu", place: "right", children: sideBarOpen ? "Fechar menu" : "Abrir menu" }), document.body)] }), sideBarOpen && _jsx("span", { children: profile.name }), _jsxs("div", { style: { height: 48 }, onMouseLeave: function () { return setProfileModalOpen(false); }, children: [_jsx(ProfileImage, { id: "menu-item/profile", src: profile.image, alt: "Foto do perfil", onMouseEnter: function () { return setProfileModalOpen(true); } }), profileModalOpen && _jsx(MenuModal, { item: profile })] })] }));
|
|
11
12
|
};
|
|
12
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/CollapsableMenu/MenuHeader/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACtD,OAA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AAY,EAAC,YAAY,EAAC,KAAK,EAAC,OAAO,YAC7C,WAAW,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,GACnC,EACV,QAAQ,CAAC,IAAI,CACd,IACuB,EAEzB,WAAW,IAAI,yBAAO,OAAO,CAAC,IAAI,GAAQ,EAE3C,eACE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EACrB,YAAY,EAAE,cAAM,OAAA,mBAAmB,CAAC,KAAK,CAAC,EAA1B,CAA0B,aAE9C,KAAC,YAAY,IACX,EAAE,EAAC,mBAAmB,EACtB,GAAG,EAAE,OAAO,CAAC,KAAK,EAClB,GAAG,EAAC,gBAAgB,EACpB,YAAY,EAAE,cAAM,OAAA,mBAAmB,CAAC,IAAI,CAAC,EAAzB,CAAyB,GAC7C,EAED,gBAAgB,IAAI,KAAC,SAAS,IAAC,IAAI,EAAE,OAAO,GAAI,IAC7C,IACW,CACpB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ITooltip, TooltipRefProps } from "react-tooltip";
|
|
2
2
|
interface TooltipProps extends ITooltip {
|
|
3
3
|
dark?: boolean;
|
|
4
|
+
opacity?: number;
|
|
4
5
|
}
|
|
5
6
|
export declare const Tooltip: import("react").ForwardRefExoticComponent<TooltipProps & import("react").RefAttributes<TooltipRefProps>>;
|
|
6
7
|
export {};
|
|
@@ -4,9 +4,9 @@ import { forwardRef } from "react";
|
|
|
4
4
|
import { Tooltip as ReactTooltip, } from "react-tooltip";
|
|
5
5
|
import { useTheme } from "styled-components";
|
|
6
6
|
export var Tooltip = forwardRef(function Tooltip(_a, ref) {
|
|
7
|
-
var dark = _a.dark, children = _a.children, props = __rest(_a, ["dark", "children"]);
|
|
7
|
+
var dark = _a.dark, children = _a.children, _b = _a.opacity, opacity = _b === void 0 ? 1 : _b, props = __rest(_a, ["dark", "children", "opacity"]);
|
|
8
8
|
var theme = useTheme();
|
|
9
|
-
return (_jsx(ReactTooltip, __assign({ opacity:
|
|
9
|
+
return (_jsx(ReactTooltip, __assign({ opacity: opacity, ref: ref }, props, { style: __assign({ backgroundColor: dark
|
|
10
10
|
? theme.colors.neutral.darker
|
|
11
11
|
: theme.colors.neutral.white, padding: "".concat(theme.spacing.xs, " ").concat(theme.spacing.s), borderRadius: theme.radius.s, color: dark ? theme.colors.neutral.lightest : theme.colors.neutral.dark, fontSize: 12, fontWeight: 500, zIndex: 999, filter: "drop-shadow(0px 0px 1px #0000001F) drop-shadow(0px 1px 2px #00000024)" }, props.style), children: children })));
|
|
12
12
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Tooltip/index.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,OAAO,CAAC;AAC9C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Tooltip/index.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,OAAO,CAAC;AAC9C,OAAO,EACL,OAAO,IAAI,YAAY,GAGxB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAO7C,MAAM,CAAC,IAAM,OAAO,GAAG,UAAU,CAAC,SAAS,OAAO,CAChD,EAAuD,EACvD,GAA+B;IAD7B,IAAA,IAAI,UAAA,EAAE,QAAQ,cAAA,EAAE,eAAW,EAAX,OAAO,mBAAG,CAAC,KAAA,EAAK,KAAK,cAAvC,+BAAyC,CAAF;IAGvC,IAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IAEzB,OAAO,CACL,KAAC,YAAY,aACX,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,GAAG,IACJ,KAAK,IACT,KAAK,aACH,eAAe,EAAE,IAAI;gBACnB,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM;gBAC7B,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAC9B,OAAO,EAAE,UAAG,KAAK,CAAC,OAAO,CAAC,EAAE,cAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAE,EACjD,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,EAC5B,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,EACvE,QAAQ,EAAE,EAAE,EACZ,UAAU,EAAE,GAAG,EACf,MAAM,EAAE,GAAG,EACX,MAAM,EACJ,uEAAuE,IACtE,KAAK,CAAC,KAAK,aAGf,QAAQ,IACI,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "takeat-design-system-ui-kit",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
@@ -15,15 +15,13 @@
|
|
|
15
15
|
"create-story": "node ./cli/create-story.js",
|
|
16
16
|
"build-storybook-docs": "storybook build --docs",
|
|
17
17
|
"patch": "npm version patch && npm publish",
|
|
18
|
-
"create-icons": "npx @svgr/cli --icon --typescript --out-dir src/components/icons --template iconTemplate.ts src/assets/icons && node generateIconIndex.js"
|
|
19
|
-
"postinstall": "node ./scripts/postinstall.js"
|
|
18
|
+
"create-icons": "npx @svgr/cli --icon --typescript --out-dir src/components/icons --template iconTemplate.ts src/assets/icons && node generateIconIndex.js"
|
|
20
19
|
},
|
|
21
20
|
"dependencies": {
|
|
22
21
|
"primereact": "^10.9.3",
|
|
23
22
|
"react-number-format": "^5.4.2",
|
|
24
23
|
"react-select": "^5.8.1",
|
|
25
|
-
"react-simple-keyboard": "^3.8.24"
|
|
26
|
-
"react-tooltip": "^5.28.0"
|
|
24
|
+
"react-simple-keyboard": "^3.8.24"
|
|
27
25
|
},
|
|
28
26
|
"peerDependencies": {
|
|
29
27
|
"axios": "^1.7.5",
|
|
@@ -33,9 +31,19 @@
|
|
|
33
31
|
"react-dom": "^18.3.1",
|
|
34
32
|
"react-hook-form": "^7.53.0",
|
|
35
33
|
"react-router-dom": "^6.28.0",
|
|
34
|
+
"react-tooltip": "^5.28.1",
|
|
36
35
|
"styled-components": "^6.1.12"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
38
|
+
"axios": "^1.7.5",
|
|
39
|
+
"date-fns": "^4.1.0",
|
|
40
|
+
"framer-motion": "^11.11.17",
|
|
41
|
+
"react": "^18.3.1",
|
|
42
|
+
"react-dom": "^18.3.1",
|
|
43
|
+
"react-hook-form": "^7.53.0",
|
|
44
|
+
"react-router-dom": "^6.28.0",
|
|
45
|
+
"react-tooltip": "^5.28.1",
|
|
46
|
+
"styled-components": "^6.1.12",
|
|
39
47
|
"@chromatic-com/storybook": "^1.6.1",
|
|
40
48
|
"@eslint/js": "^9.8.0",
|
|
41
49
|
"@rollup/plugin-babel": "^6.0.4",
|
|
@@ -87,8 +95,7 @@
|
|
|
87
95
|
"files": [
|
|
88
96
|
"dist",
|
|
89
97
|
"LICENSE",
|
|
90
|
-
"README.md"
|
|
91
|
-
"scripts"
|
|
98
|
+
"README.md"
|
|
92
99
|
],
|
|
93
100
|
"author": "David Avanci <david.avanci@gmail.com>",
|
|
94
101
|
"license": "MIT"
|
package/scripts/postinstall.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// scripts/postinstall.js
|
|
2
|
-
|
|
3
|
-
import { readFile } from "fs/promises";
|
|
4
|
-
import path from "path";
|
|
5
|
-
import { fileURLToPath } from "url";
|
|
6
|
-
|
|
7
|
-
// Corrigir __dirname e __filename em ESM
|
|
8
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
9
|
-
const __dirname = path.dirname(__filename);
|
|
10
|
-
|
|
11
|
-
// Lê o package.json dinamicamente (opcional)
|
|
12
|
-
const packageJsonPath = path.resolve(__dirname, "../package.json");
|
|
13
|
-
const packageJson = JSON.parse(await readFile(packageJsonPath, "utf-8"));
|
|
14
|
-
|
|
15
|
-
console.log(`
|
|
16
|
-
📦 Obrigado por instalar a versão ${packageJson.version} da biblioteca ${packageJson.name}!
|
|
17
|
-
|
|
18
|
-
🆕 Novidades:
|
|
19
|
-
- Adicionado o componente CollapsableMenu
|
|
20
|
-
`);
|