@codezee/sixtify-brahma 0.2.57 → 0.2.58
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/package.json +1 -1
- package/packages/shared-components/dist/Button/ButtonGroup.d.ts +1 -0
- package/packages/shared-components/dist/Button/ButtonGroup.d.ts.map +1 -1
- package/packages/shared-components/dist/Button/ButtonGroup.js +2 -2
- package/packages/shared-components/dist/Svgs/SvgColumn.js +1 -1
- package/packages/shared-components/dist/Tooltip/Tooltip.js +1 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonGroup.d.ts","sourceRoot":"","sources":["../../src/Button/ButtonGroup.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"ButtonGroup.d.ts","sourceRoot":"","sources":["../../src/Button/ButtonGroup.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;CACrC,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,aAAa,EAAE,YAAY,EAAE,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,mBAAmB,gBAAgB,4CAsB9D,CAAC"}
|
|
@@ -6,10 +6,10 @@ const material_1 = require("@mui/material");
|
|
|
6
6
|
const lodash_1 = require("lodash");
|
|
7
7
|
const Button_1 = require("./Button");
|
|
8
8
|
const ButtonGroup = ({ renderButtons }) => {
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(material_1.ButtonGroup, { sx: { boxShadow: "none" }, "aria-label": "Basic button group", children: renderButtons?.map(({ icon, value, label, selected, onClick }) => ((0, jsx_runtime_1.jsx)(Button_1.Button, { variant: !selected ? "outlined" : "contained", onClick: () => {
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)(material_1.ButtonGroup, { sx: { boxShadow: "none" }, "aria-label": "Basic button group", children: renderButtons?.map(({ icon, value, label, selected, onClick, size = "medium" }) => ((0, jsx_runtime_1.jsx)(Button_1.Button, { variant: !selected ? "outlined" : "contained", onClick: () => {
|
|
10
10
|
if ((0, lodash_1.isFunction)(onClick)) {
|
|
11
11
|
onClick(value);
|
|
12
12
|
}
|
|
13
|
-
}, startIcon: icon, children: label }, value))) }));
|
|
13
|
+
}, startIcon: icon, size: size, children: label }, value))) }));
|
|
14
14
|
};
|
|
15
15
|
exports.ButtonGroup = ButtonGroup;
|
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SvgColumn = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const SvgColumn = (props) => {
|
|
6
|
-
return ((0, jsx_runtime_1.jsxs)("svg", { width:
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { width: 41, height: 45, viewBox: "0 0 44 45", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [(0, jsx_runtime_1.jsx)("rect", { x: 0.5, y: 1, width: 41, height: 41, rx: 3.5, fill: "white" }), (0, jsx_runtime_1.jsx)("rect", { x: 0.5, y: 1, width: 41, height: 41, rx: 3.5, stroke: "#BCBFC2" }), (0, jsx_runtime_1.jsx)("g", { clipPath: "url(#clip0_38460_84386)", children: (0, jsx_runtime_1.jsx)("path", { d: "M18 12.5V30.5M24 12.5V30.5M16.8 12.5H25.2C26.8802 12.5 27.7202 12.5 28.362 12.827C28.9265 13.1146 29.3854 13.5735 29.673 14.138C30 14.7798 30 15.6198 30 17.3V25.7C30 27.3802 30 28.2202 29.673 28.862C29.3854 29.4265 28.9265 29.8854 28.362 30.173C27.7202 30.5 26.8802 30.5 25.2 30.5H16.8C15.1198 30.5 14.2798 30.5 13.638 30.173C13.0735 29.8854 12.6146 29.4265 12.327 28.862C12 28.2202 12 27.3802 12 25.7V17.3C12 15.6198 12 14.7798 12.327 14.138C12.6146 13.5735 13.0735 13.1146 13.638 12.827C14.2798 12.5 15.1198 12.5 16.8 12.5Z", stroke: "#151E28", strokeWidth: 1, strokeLinecap: "round", strokeLinejoin: "round" }) }), (0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsx)("clipPath", { id: "clip0_38460_84386", children: (0, jsx_runtime_1.jsx)("rect", { width: 20, height: 20, fill: "white", transform: "translate(11 11.5)" }) }) })] }));
|
|
7
7
|
};
|
|
8
8
|
exports.SvgColumn = SvgColumn;
|
|
@@ -9,6 +9,6 @@ const Tooltip = ({ toolTipLabel, children, placement = "top-start", ...rest }) =
|
|
|
9
9
|
overflow: "hidden",
|
|
10
10
|
textOverflow: "ellipsis",
|
|
11
11
|
whiteSpace: "nowrap",
|
|
12
|
-
}, children: children })) : ((0, jsx_runtime_1.jsx)(material_1.Box, { children: children })) }));
|
|
12
|
+
}, children: children })) : ((0, jsx_runtime_1.jsx)(material_1.Box, { display: "inline-flex", children: children })) }));
|
|
13
13
|
};
|
|
14
14
|
exports.Tooltip = Tooltip;
|