@quintoandar-tokko/containermenu 1.0.127

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 (2) hide show
  1. package/lib/index.js +65 -0
  2. package/package.json +21 -0
package/lib/index.js ADDED
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ContainerMenu = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _box = require("@quintoandar-tokko/box");
9
+ var _icons = require("@quintoandar-tokko/icons");
10
+ var _text = require("@quintoandar-tokko/text");
11
+ var _excluded = ["children", "variant", "titleText", "prefixIcon", "suffix", "width", "height"];
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
14
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
15
+ var ContainerMenu = exports.ContainerMenu = function ContainerMenu(_ref) {
16
+ var children = _ref.children,
17
+ _ref$variant = _ref.variant,
18
+ variant = _ref$variant === void 0 ? 'normal' : _ref$variant,
19
+ titleText = _ref.titleText,
20
+ prefixIcon = _ref.prefixIcon,
21
+ suffix = _ref.suffix,
22
+ width = _ref.width,
23
+ height = _ref.height,
24
+ props = _objectWithoutProperties(_ref, _excluded);
25
+ return /*#__PURE__*/_react["default"].createElement(_box.Box, {
26
+ tx: "containerMenu",
27
+ variant: variant,
28
+ __css: {
29
+ position: 'relative',
30
+ fontFamily: 'Nunito Sans',
31
+ display: 'flex',
32
+ flexDirection: 'column',
33
+ padding: '12px',
34
+ gap: '16px',
35
+ width: width,
36
+ height: height
37
+ }
38
+ }, /*#__PURE__*/_react["default"].createElement(_box.Box, {
39
+ __css: {
40
+ display: 'flex',
41
+ flexDirection: 'row',
42
+ alignItems: 'center',
43
+ gap: '10px'
44
+ }
45
+ }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
46
+ icon: prefixIcon,
47
+ fontSize: "18px",
48
+ style: {
49
+ color: '#DF1E02',
50
+ marginTop: '2px'
51
+ }
52
+ }), /*#__PURE__*/_react["default"].createElement(_text.Text, {
53
+ variant: "bodyBold.fontSize14",
54
+ style: {
55
+ color: '#384248',
56
+ marginTop: '6px'
57
+ }
58
+ }, titleText)), /*#__PURE__*/_react["default"].createElement(_box.Box, {
59
+ __css: {
60
+ position: 'absolute',
61
+ right: '13px',
62
+ top: '12px'
63
+ }
64
+ }, suffix), children);
65
+ };
package/package.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "@quintoandar-tokko/containermenu",
3
+ "version": "1.0.127",
4
+ "main": "lib/index.js",
5
+ "module": "src/index.js",
6
+ "files": [
7
+ "lib"
8
+ ],
9
+ "dependencies": {
10
+ "@quintoandar-tokko/box": "^1.2.286",
11
+ "@quintoandar-tokko/button": "^1.2.371",
12
+ "@quintoandar-tokko/text": "^1.2.287"
13
+ },
14
+ "peerDependencies": {
15
+ "react": "^16.8.0"
16
+ },
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "gitHead": "3c5995a3482c9cd1b428a69e135c934c37bce2ae"
21
+ }