@bigbinary/neeto-molecules 1.6.14 → 1.6.15

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.
@@ -1,6 +1,49 @@
1
1
  import React, { useRef } from 'react';
2
+ import classNames from 'classnames';
3
+ import { isNotPresent } from '@bigbinary/neeto-cist';
2
4
  import { Help } from '@bigbinary/neeto-icons';
3
- import { Popover, Button, Typography } from '@bigbinary/neetoui';
5
+ import { Popover, Button, Tooltip, Typography } from '@bigbinary/neetoui';
6
+
7
+ function _typeof(o) {
8
+ "@babel/helpers - typeof";
9
+
10
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
11
+ return typeof o;
12
+ } : function (o) {
13
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
14
+ }, _typeof(o);
15
+ }
16
+
17
+ function _toPrimitive(input, hint) {
18
+ if (_typeof(input) !== "object" || input === null) return input;
19
+ var prim = input[Symbol.toPrimitive];
20
+ if (prim !== undefined) {
21
+ var res = prim.call(input, hint || "default");
22
+ if (_typeof(res) !== "object") return res;
23
+ throw new TypeError("@@toPrimitive must return a primitive value.");
24
+ }
25
+ return (hint === "string" ? String : Number)(input);
26
+ }
27
+
28
+ function _toPropertyKey(arg) {
29
+ var key = _toPrimitive(arg, "string");
30
+ return _typeof(key) === "symbol" ? key : String(key);
31
+ }
32
+
33
+ function _defineProperty(obj, key, value) {
34
+ key = _toPropertyKey(key);
35
+ if (key in obj) {
36
+ Object.defineProperty(obj, key, {
37
+ value: value,
38
+ enumerable: true,
39
+ configurable: true,
40
+ writable: true
41
+ });
42
+ } else {
43
+ obj[key] = value;
44
+ }
45
+ return obj;
46
+ }
4
47
 
5
48
  function _extends() {
6
49
  _extends = Object.assign ? Object.assign.bind() : function (target) {
@@ -17,11 +60,41 @@ function _extends() {
17
60
  return _extends.apply(this, arguments);
18
61
  }
19
62
 
63
+ function _objectWithoutPropertiesLoose(source, excluded) {
64
+ if (source == null) return {};
65
+ var target = {};
66
+ var sourceKeys = Object.keys(source);
67
+ var key, i;
68
+ for (i = 0; i < sourceKeys.length; i++) {
69
+ key = sourceKeys[i];
70
+ if (excluded.indexOf(key) >= 0) continue;
71
+ target[key] = source[key];
72
+ }
73
+ return target;
74
+ }
75
+
76
+ function _objectWithoutProperties(source, excluded) {
77
+ if (source == null) return {};
78
+ var target = _objectWithoutPropertiesLoose(source, excluded);
79
+ var key, i;
80
+ if (Object.getOwnPropertySymbols) {
81
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
82
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
83
+ key = sourceSymbolKeys[i];
84
+ if (excluded.indexOf(key) >= 0) continue;
85
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
86
+ target[key] = source[key];
87
+ }
88
+ }
89
+ return target;
90
+ }
91
+
20
92
  var SIZE = {
21
93
  "default": 16,
22
94
  large: 20
23
95
  };
24
96
 
97
+ var _excluded = ["title", "size", "description", "helpLinkProps", "popoverProps", "className"];
25
98
  var Title = Popover.Title;
26
99
  var HelpPopover = function HelpPopover(_ref) {
27
100
  var title = _ref.title,
@@ -29,10 +102,12 @@ var HelpPopover = function HelpPopover(_ref) {
29
102
  size = _ref$size === void 0 ? "default" : _ref$size,
30
103
  description = _ref.description,
31
104
  helpLinkProps = _ref.helpLinkProps,
32
- popoverProps = _ref.popoverProps;
105
+ popoverProps = _ref.popoverProps,
106
+ className = _ref.className,
107
+ otherProps = _objectWithoutProperties(_ref, _excluded);
33
108
  var helpIconRef = useRef();
34
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
35
- className: "neeto-molecule-help-popover-trigger neeto-ui-rounded-full bg-transparent p-0",
109
+ var isCompact = isNotPresent(title) && isNotPresent(helpLinkProps);
110
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, _extends({}, otherProps, {
36
111
  "data-cy": "help-popover-button",
37
112
  "data-testid": "help-popover-button",
38
113
  icon: function icon() {
@@ -41,33 +116,39 @@ var HelpPopover = function HelpPopover(_ref) {
41
116
  });
42
117
  },
43
118
  ref: helpIconRef,
44
- style: "text"
45
- }), /*#__PURE__*/React.createElement(Popover, _extends({
119
+ style: "text",
120
+ className: classNames("neeto-molecule-help-popover-trigger neeto-ui-rounded-full bg-transparent p-0", className)
121
+ })), /*#__PURE__*/React.createElement(Tooltip, _extends({}, popoverProps, {
46
122
  interactive: true,
47
123
  appendTo: function appendTo() {
48
124
  return document.body;
49
- }
50
- }, popoverProps, {
51
- reference: helpIconRef
52
- }), /*#__PURE__*/React.createElement("div", {
53
- className: "flex flex-col"
54
- }, title && /*#__PURE__*/React.createElement(Title, {
55
- "data-cy": "help-popover-title",
56
- "data-testid": "help-popover-title"
57
- }, title), typeof description === "string" ? /*#__PURE__*/React.createElement(Typography, {
58
- "data-cy": "help-popover-description",
59
- "data-testid": "help-popover-description",
60
- lineHeight: "normal",
61
- style: "body2"
62
- }, description) : description, helpLinkProps && /*#__PURE__*/React.createElement(Button, _extends({
63
- className: "neeto-ui-mt-3",
64
- size: "small"
65
- }, helpLinkProps, {
66
- "data-cy": "help-popover-link-button",
67
- "data-testid": "help-popover-link-button",
68
- style: "link",
69
- target: "_blank"
70
- })))));
125
+ },
126
+ arrow: isCompact ? undefined : true,
127
+ className: classNames(_defineProperty({}, "neeto-ui-popover", !isCompact)),
128
+ reference: helpIconRef,
129
+ role: "tooltip",
130
+ theme: isCompact ? "dark" : "light",
131
+ content: /*#__PURE__*/React.createElement("div", {
132
+ className: "flex flex-col"
133
+ }, title && /*#__PURE__*/React.createElement(Title, {
134
+ "data-cy": "help-popover-title",
135
+ "data-testid": "help-popover-title"
136
+ }, title), typeof description === "string" && !isCompact ? /*#__PURE__*/React.createElement(Typography, {
137
+ "data-cy": "help-popover-description",
138
+ "data-testid": "help-popover-description",
139
+ lineHeight: "normal",
140
+ style: "body2"
141
+ }, description) : description, helpLinkProps && /*#__PURE__*/React.createElement(Button, _extends({
142
+ className: "neeto-ui-mt-3",
143
+ label: "View help article",
144
+ size: "small"
145
+ }, helpLinkProps, {
146
+ "data-cy": "help-popover-link-button",
147
+ "data-testid": "help-popover-link-button",
148
+ style: "link",
149
+ target: "_blank"
150
+ })))
151
+ })));
71
152
  };
72
153
 
73
154
  export { HelpPopover as default };
@@ -1 +1 @@
1
- {"version":3,"file":"HelpPopover.js","sources":["../node_modules/@babel/runtime/helpers/esm/extends.js","../src/components/HelpPopover/constants.js","../src/components/HelpPopover/index.jsx"],"sourcesContent":["export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export const SIZE = { default: 16, large: 20 };\n","import React, { useRef } from \"react\";\n\nimport { Help } from \"neetoicons\";\nimport { Button, Popover, Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nimport { SIZE } from \"./constants\";\n\nconst { Title } = Popover;\n\nconst HelpPopover = ({\n title,\n size = \"default\",\n description,\n helpLinkProps,\n popoverProps,\n}) => {\n const helpIconRef = useRef();\n\n return (\n <>\n <Button\n className=\"neeto-molecule-help-popover-trigger neeto-ui-rounded-full bg-transparent p-0\"\n data-cy=\"help-popover-button\"\n data-testid=\"help-popover-button\"\n icon={() => <Help size={SIZE[size]} />}\n ref={helpIconRef}\n style=\"text\"\n />\n <Popover\n interactive\n appendTo={() => document.body}\n {...popoverProps}\n reference={helpIconRef}\n >\n <div className=\"flex flex-col\">\n {title && (\n <Title\n data-cy=\"help-popover-title\"\n data-testid=\"help-popover-title\"\n >\n {title}\n </Title>\n )}\n {typeof description === \"string\" ? (\n <Typography\n data-cy=\"help-popover-description\"\n data-testid=\"help-popover-description\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {description}\n </Typography>\n ) : (\n description\n )}\n {helpLinkProps && (\n <Button\n className=\"neeto-ui-mt-3\"\n size=\"small\"\n {...helpLinkProps}\n data-cy=\"help-popover-link-button\"\n data-testid=\"help-popover-link-button\"\n style=\"link\"\n target=\"_blank\"\n />\n )}\n </div>\n </Popover>\n </>\n );\n};\n\nHelpPopover.propTypes = {\n /**\n * To set the title of the help popover.\n */\n title: PropTypes.string,\n /**\n * To set the size of the popover help icon.\n */\n size: PropTypes.oneOf([\"default\", \"large\"]),\n /**\n * To set the description of the popover, this can be a string or a custom component.\n */\n description: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n /**\n * To set the props of the help link which is displayed below the description.\n */\n helpLinkProps: PropTypes.object,\n /**\n * To set the props of the popover to customize it further.\n */\n popoverProps: PropTypes.object,\n};\n\nexport default HelpPopover;\n"],"names":["SIZE","large","Title","Popover","HelpPopover","_ref","title","_ref$size","size","description","helpLinkProps","popoverProps","helpIconRef","useRef","React","createElement","Fragment","Button","className","icon","Help","ref","style","_extends","interactive","appendTo","document","body","reference","Typography","lineHeight","target"],"mappings":";;;;AAAe,SAAS,QAAQ,GAAG;AACnC,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,UAAU,MAAM,EAAE;AACtE,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC/C,MAAM,IAAI,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,KAAK,IAAI,GAAG,IAAI,MAAM,EAAE;AAC9B,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE;AAC/D,UAAU,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AACpC,SAAS;AACT,OAAO;AACP,KAA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AA;IACXC,QAAQ,EAAE,SAAAA,QAAA,GAAA;MAAA,OAAMC,QAAQ,CAACC,IAAI,CAAA;AAAA,KAAA;AAAC,GAAA,EAC1BhB,YAAY,EAAA;AAChBiB,IAAAA,SAAS,EAAEhB,WAAAA;GAEXE,CAAAA,eAAAA,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKG,IAAAA,SAAS,EAAC,eAAA;AAAe,GAAA,EAC3BZ,KAAK,iBACJQ,KAAA,CAAAC,aAAA,CAACb,KAAK,EAAA;AACJ,IAAA,SAAA,EAAQ,oBAAoB;IAC5B,aAAY,EAAA,oBAAA;AAAoB,GAAA,EAE/BI,KACI,CACR,EACA,OAAOG,WAAW,KAAK,QAAQ,gBAC9BK,KAAA,CAAAC,aAAA,CAACc,UAAU,EAAA;AACT,IAAA,SAAA,EAAQ,0BAA0B;AAClC,IAAA,aAAA,EAAY,0BAA0B;AACtCC,IAAAA,UAAU,EAAC,QAAQ;AACnBR,IAAAA,KAAK,EAAC,OAAA;AAAO,GAAA,EAEZb,WACS,CAAC,GAEbA,WACD,EACAC,aAAa,iBACZI,KAAA,CAAAC,aAAA,CAACE,MAAM,EAAAM,QAAA,CAAA;AACLL,IAAAA,SAAS,EAAC,eAAe;AACzBV,IAAAA,IAAI,EAAC,OAAA;AAAO,GAAA,EACRE,aAAa,EAAA;AACjB,IAAA,SAAA,EAAQ,0BAA0B;AAClC,IAAA,aAAA,EAAY,0BAA0B;AACtCY,IAAAA,KAAK,EAAC,MAAM;AACZS,IAAAA,MAAM,EAAC,QAAA;GACR,CAAA,CAEA,CACE,CACT,CAAC,CAAA;AAEP;;;;"}
1
+ {"version":3,"file":"HelpPopover.js","sources":["../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../src/components/HelpPopover/constants.js","../src/components/HelpPopover/index.jsx"],"sourcesContent":["export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","export const SIZE = { default: 16, large: 20 };\n","import React, { useRef } from \"react\";\n\nimport classNames from \"classnames\";\nimport { isNotPresent } from \"neetocist\";\nimport { Help } from \"neetoicons\";\nimport { Button, Popover, Tooltip, Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nimport { SIZE } from \"./constants\";\n\nconst { Title } = Popover;\n\nconst HelpPopover = ({\n title,\n size = \"default\",\n description,\n helpLinkProps,\n popoverProps,\n className,\n ...otherProps\n}) => {\n const helpIconRef = useRef();\n\n const isCompact = isNotPresent(title) && isNotPresent(helpLinkProps);\n\n return (\n <>\n <Button\n {...otherProps}\n data-cy=\"help-popover-button\"\n data-testid=\"help-popover-button\"\n icon={() => <Help size={SIZE[size]} />}\n ref={helpIconRef}\n style=\"text\"\n className={classNames(\n \"neeto-molecule-help-popover-trigger neeto-ui-rounded-full bg-transparent p-0\",\n className\n )}\n />\n <Tooltip\n {...popoverProps}\n interactive\n appendTo={() => document.body}\n arrow={isCompact ? undefined : true}\n className={classNames({ [\"neeto-ui-popover\"]: !isCompact })}\n reference={helpIconRef}\n role=\"tooltip\"\n theme={isCompact ? \"dark\" : \"light\"}\n content={\n <div className=\"flex flex-col\">\n {title && (\n <Title\n data-cy=\"help-popover-title\"\n data-testid=\"help-popover-title\"\n >\n {title}\n </Title>\n )}\n {typeof description === \"string\" && !isCompact ? (\n <Typography\n data-cy=\"help-popover-description\"\n data-testid=\"help-popover-description\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {description}\n </Typography>\n ) : (\n description\n )}\n {helpLinkProps && (\n <Button\n className=\"neeto-ui-mt-3\"\n label=\"View help article\"\n size=\"small\"\n {...helpLinkProps}\n data-cy=\"help-popover-link-button\"\n data-testid=\"help-popover-link-button\"\n style=\"link\"\n target=\"_blank\"\n />\n )}\n </div>\n }\n />\n </>\n );\n};\n\nHelpPopover.propTypes = {\n /**\n * To set the title of the help popover.\n */\n title: PropTypes.string,\n /**\n * To set the size of the popover help icon.\n */\n size: PropTypes.oneOf([\"default\", \"large\"]),\n /**\n * To set the description of the popover, this can be a string or a custom component.\n */\n description: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n /**\n * To set the props of the help link which is displayed below the description.\n */\n helpLinkProps: PropTypes.object,\n /**\n * To set the props of the popover to customize it further.\n */\n popoverProps: PropTypes.object,\n /**\n * Additional classes passed on to the help button element.\n */\n className: PropTypes.string,\n};\n\nexport default HelpPopover;\n"],"names":["toPrimitive","toPropertyKey","objectWithoutPropertiesLoose","SIZE","large","Title","Popover","HelpPopover","_ref","title","_ref$size","size","description","helpLinkProps","popoverProps","className","otherProps","_objectWithoutProperties","_excluded","helpIconRef","useRef","isCompact","isNotPresent","React","createElement","Fragment","Button","_extends","icon","Help","ref","style","classNames","Tooltip","interactive","appendTo","document","body","arrow","undefined","_defineProperty","reference","role","theme","content","Typography","lineHeight","label","target"],"mappings":";;;;;;AAAe,SAAS,OAAO,CAAC,CAAC,EAAE;AACnC,EAAE,yBAAyB,CAAC;AAC5B;AACA,EAAE,OAAO,OAAO,GAAG,UAAU,IAAI,OAAO,MAAM,IAAI,QAAQ,IAAI,OAAO,MAAM,CAAC,QAAQ,GAAG,UAAU,CAAC,EAAE;AACpG,IAAI,OAAO,OAAO,CAAC,CAAC;AACpB,GAAG,GAAG,UAAU,CAAC,EAAE;AACnB,IAAI,OAAO,CAAC,IAAI,UAAU,IAAI,OAAO,MAAM,IAAI,CAAC,CAAC,WAAW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AAAA,KAAK,EAAC,MAAM;AACZiB,MAAAA,MAAM,EAAC,QAAA;AAAQ,KAAA,CAChB,CAEA,CAAA;AACN,GAAA,CACF,CACD,CAAC,CAAA;AAEP;;;;"}
@@ -1,12 +1,56 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
+ var classNames = require('classnames');
5
+ var neetoCist = require('@bigbinary/neeto-cist');
4
6
  var neetoIcons = require('@bigbinary/neeto-icons');
5
7
  var neetoui = require('@bigbinary/neetoui');
6
8
 
7
9
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
10
 
9
11
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
12
+ var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
13
+
14
+ function _typeof(o) {
15
+ "@babel/helpers - typeof";
16
+
17
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
18
+ return typeof o;
19
+ } : function (o) {
20
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
21
+ }, _typeof(o);
22
+ }
23
+
24
+ function _toPrimitive(input, hint) {
25
+ if (_typeof(input) !== "object" || input === null) return input;
26
+ var prim = input[Symbol.toPrimitive];
27
+ if (prim !== undefined) {
28
+ var res = prim.call(input, hint || "default");
29
+ if (_typeof(res) !== "object") return res;
30
+ throw new TypeError("@@toPrimitive must return a primitive value.");
31
+ }
32
+ return (hint === "string" ? String : Number)(input);
33
+ }
34
+
35
+ function _toPropertyKey(arg) {
36
+ var key = _toPrimitive(arg, "string");
37
+ return _typeof(key) === "symbol" ? key : String(key);
38
+ }
39
+
40
+ function _defineProperty(obj, key, value) {
41
+ key = _toPropertyKey(key);
42
+ if (key in obj) {
43
+ Object.defineProperty(obj, key, {
44
+ value: value,
45
+ enumerable: true,
46
+ configurable: true,
47
+ writable: true
48
+ });
49
+ } else {
50
+ obj[key] = value;
51
+ }
52
+ return obj;
53
+ }
10
54
 
11
55
  function _extends() {
12
56
  _extends = Object.assign ? Object.assign.bind() : function (target) {
@@ -23,11 +67,41 @@ function _extends() {
23
67
  return _extends.apply(this, arguments);
24
68
  }
25
69
 
70
+ function _objectWithoutPropertiesLoose(source, excluded) {
71
+ if (source == null) return {};
72
+ var target = {};
73
+ var sourceKeys = Object.keys(source);
74
+ var key, i;
75
+ for (i = 0; i < sourceKeys.length; i++) {
76
+ key = sourceKeys[i];
77
+ if (excluded.indexOf(key) >= 0) continue;
78
+ target[key] = source[key];
79
+ }
80
+ return target;
81
+ }
82
+
83
+ function _objectWithoutProperties(source, excluded) {
84
+ if (source == null) return {};
85
+ var target = _objectWithoutPropertiesLoose(source, excluded);
86
+ var key, i;
87
+ if (Object.getOwnPropertySymbols) {
88
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
89
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
90
+ key = sourceSymbolKeys[i];
91
+ if (excluded.indexOf(key) >= 0) continue;
92
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
93
+ target[key] = source[key];
94
+ }
95
+ }
96
+ return target;
97
+ }
98
+
26
99
  var SIZE = {
27
100
  "default": 16,
28
101
  large: 20
29
102
  };
30
103
 
104
+ var _excluded = ["title", "size", "description", "helpLinkProps", "popoverProps", "className"];
31
105
  var Title = neetoui.Popover.Title;
32
106
  var HelpPopover = function HelpPopover(_ref) {
33
107
  var title = _ref.title,
@@ -35,10 +109,12 @@ var HelpPopover = function HelpPopover(_ref) {
35
109
  size = _ref$size === void 0 ? "default" : _ref$size,
36
110
  description = _ref.description,
37
111
  helpLinkProps = _ref.helpLinkProps,
38
- popoverProps = _ref.popoverProps;
112
+ popoverProps = _ref.popoverProps,
113
+ className = _ref.className,
114
+ otherProps = _objectWithoutProperties(_ref, _excluded);
39
115
  var helpIconRef = React.useRef();
40
- return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
41
- className: "neeto-molecule-help-popover-trigger neeto-ui-rounded-full bg-transparent p-0",
116
+ var isCompact = neetoCist.isNotPresent(title) && neetoCist.isNotPresent(helpLinkProps);
117
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, _extends({}, otherProps, {
42
118
  "data-cy": "help-popover-button",
43
119
  "data-testid": "help-popover-button",
44
120
  icon: function icon() {
@@ -47,33 +123,39 @@ var HelpPopover = function HelpPopover(_ref) {
47
123
  });
48
124
  },
49
125
  ref: helpIconRef,
50
- style: "text"
51
- }), /*#__PURE__*/React__default["default"].createElement(neetoui.Popover, _extends({
126
+ style: "text",
127
+ className: classNames__default["default"]("neeto-molecule-help-popover-trigger neeto-ui-rounded-full bg-transparent p-0", className)
128
+ })), /*#__PURE__*/React__default["default"].createElement(neetoui.Tooltip, _extends({}, popoverProps, {
52
129
  interactive: true,
53
130
  appendTo: function appendTo() {
54
131
  return document.body;
55
- }
56
- }, popoverProps, {
57
- reference: helpIconRef
58
- }), /*#__PURE__*/React__default["default"].createElement("div", {
59
- className: "flex flex-col"
60
- }, title && /*#__PURE__*/React__default["default"].createElement(Title, {
61
- "data-cy": "help-popover-title",
62
- "data-testid": "help-popover-title"
63
- }, title), typeof description === "string" ? /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
64
- "data-cy": "help-popover-description",
65
- "data-testid": "help-popover-description",
66
- lineHeight: "normal",
67
- style: "body2"
68
- }, description) : description, helpLinkProps && /*#__PURE__*/React__default["default"].createElement(neetoui.Button, _extends({
69
- className: "neeto-ui-mt-3",
70
- size: "small"
71
- }, helpLinkProps, {
72
- "data-cy": "help-popover-link-button",
73
- "data-testid": "help-popover-link-button",
74
- style: "link",
75
- target: "_blank"
76
- })))));
132
+ },
133
+ arrow: isCompact ? undefined : true,
134
+ className: classNames__default["default"](_defineProperty({}, "neeto-ui-popover", !isCompact)),
135
+ reference: helpIconRef,
136
+ role: "tooltip",
137
+ theme: isCompact ? "dark" : "light",
138
+ content: /*#__PURE__*/React__default["default"].createElement("div", {
139
+ className: "flex flex-col"
140
+ }, title && /*#__PURE__*/React__default["default"].createElement(Title, {
141
+ "data-cy": "help-popover-title",
142
+ "data-testid": "help-popover-title"
143
+ }, title), typeof description === "string" && !isCompact ? /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
144
+ "data-cy": "help-popover-description",
145
+ "data-testid": "help-popover-description",
146
+ lineHeight: "normal",
147
+ style: "body2"
148
+ }, description) : description, helpLinkProps && /*#__PURE__*/React__default["default"].createElement(neetoui.Button, _extends({
149
+ className: "neeto-ui-mt-3",
150
+ label: "View help article",
151
+ size: "small"
152
+ }, helpLinkProps, {
153
+ "data-cy": "help-popover-link-button",
154
+ "data-testid": "help-popover-link-button",
155
+ style: "link",
156
+ target: "_blank"
157
+ })))
158
+ })));
77
159
  };
78
160
 
79
161
  module.exports = HelpPopover;
@@ -1 +1 @@
1
- {"version":3,"file":"HelpPopover.js","sources":["../../node_modules/@babel/runtime/helpers/esm/extends.js","../../src/components/HelpPopover/constants.js","../../src/components/HelpPopover/index.jsx"],"sourcesContent":["export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export const SIZE = { default: 16, large: 20 };\n","import React, { useRef } from \"react\";\n\nimport { Help } from \"neetoicons\";\nimport { Button, Popover, Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nimport { SIZE } from \"./constants\";\n\nconst { Title } = Popover;\n\nconst HelpPopover = ({\n title,\n size = \"default\",\n description,\n helpLinkProps,\n popoverProps,\n}) => {\n const helpIconRef = useRef();\n\n return (\n <>\n <Button\n className=\"neeto-molecule-help-popover-trigger neeto-ui-rounded-full bg-transparent p-0\"\n data-cy=\"help-popover-button\"\n data-testid=\"help-popover-button\"\n icon={() => <Help size={SIZE[size]} />}\n ref={helpIconRef}\n style=\"text\"\n />\n <Popover\n interactive\n appendTo={() => document.body}\n {...popoverProps}\n reference={helpIconRef}\n >\n <div className=\"flex flex-col\">\n {title && (\n <Title\n data-cy=\"help-popover-title\"\n data-testid=\"help-popover-title\"\n >\n {title}\n </Title>\n )}\n {typeof description === \"string\" ? (\n <Typography\n data-cy=\"help-popover-description\"\n data-testid=\"help-popover-description\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {description}\n </Typography>\n ) : (\n description\n )}\n {helpLinkProps && (\n <Button\n className=\"neeto-ui-mt-3\"\n size=\"small\"\n {...helpLinkProps}\n data-cy=\"help-popover-link-button\"\n data-testid=\"help-popover-link-button\"\n style=\"link\"\n target=\"_blank\"\n />\n )}\n </div>\n </Popover>\n </>\n );\n};\n\nHelpPopover.propTypes = {\n /**\n * To set the title of the help popover.\n */\n title: PropTypes.string,\n /**\n * To set the size of the popover help icon.\n */\n size: PropTypes.oneOf([\"default\", \"large\"]),\n /**\n * To set the description of the popover, this can be a string or a custom component.\n */\n description: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n /**\n * To set the props of the help link which is displayed below the description.\n */\n helpLinkProps: PropTypes.object,\n /**\n * To set the props of the popover to customize it further.\n */\n popoverProps: PropTypes.object,\n};\n\nexport default HelpPopover;\n"],"names":["SIZE","large","Title","Popover","HelpPopover","_ref","title","_ref$size","size","description","helpLinkProps","popoverProps","helpIconRef","useRef","React","createElement","Fragment","Button","className","icon","Help","ref","style","_extends","interactive","appendTo","document","body","reference","Typography","lineHeight","target"],"mappings":";;;;;;;;;;AAAe,SAAS,QAAQ,GAAG;AACnC,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,UAAU,MAAM,EAAE;AACtE,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM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AAA,EAAY,0BAA0B;AACtCY,IAAAA,KAAK,EAAC,MAAM;AACZS,IAAAA,MAAM,EAAC,QAAA;GACR,CAAA,CAEA,CACE,CACT,CAAC,CAAA;AAEP;;;;"}
1
+ {"version":3,"file":"HelpPopover.js","sources":["../../node_modules/@babel/runtime/helpers/esm/typeof.js","../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../../node_modules/@babel/runtime/helpers/esm/extends.js","../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../../src/components/HelpPopover/constants.js","../../src/components/HelpPopover/index.jsx"],"sourcesContent":["export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","export const SIZE = { default: 16, large: 20 };\n","import React, { useRef } from \"react\";\n\nimport classNames from \"classnames\";\nimport { isNotPresent } from \"neetocist\";\nimport { Help } from \"neetoicons\";\nimport { Button, Popover, Tooltip, Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nimport { SIZE } from \"./constants\";\n\nconst { Title } = Popover;\n\nconst HelpPopover = ({\n title,\n size = \"default\",\n description,\n helpLinkProps,\n popoverProps,\n className,\n ...otherProps\n}) => {\n const helpIconRef = useRef();\n\n const isCompact = isNotPresent(title) && isNotPresent(helpLinkProps);\n\n return (\n <>\n <Button\n {...otherProps}\n data-cy=\"help-popover-button\"\n data-testid=\"help-popover-button\"\n icon={() => <Help size={SIZE[size]} />}\n ref={helpIconRef}\n style=\"text\"\n className={classNames(\n \"neeto-molecule-help-popover-trigger neeto-ui-rounded-full bg-transparent p-0\",\n className\n )}\n />\n <Tooltip\n {...popoverProps}\n interactive\n appendTo={() => document.body}\n arrow={isCompact ? undefined : true}\n className={classNames({ [\"neeto-ui-popover\"]: !isCompact })}\n reference={helpIconRef}\n role=\"tooltip\"\n theme={isCompact ? \"dark\" : \"light\"}\n content={\n <div className=\"flex flex-col\">\n {title && (\n <Title\n data-cy=\"help-popover-title\"\n data-testid=\"help-popover-title\"\n >\n {title}\n </Title>\n )}\n {typeof description === \"string\" && !isCompact ? (\n <Typography\n data-cy=\"help-popover-description\"\n data-testid=\"help-popover-description\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {description}\n </Typography>\n ) : (\n description\n )}\n {helpLinkProps && (\n <Button\n className=\"neeto-ui-mt-3\"\n label=\"View help article\"\n size=\"small\"\n {...helpLinkProps}\n data-cy=\"help-popover-link-button\"\n data-testid=\"help-popover-link-button\"\n style=\"link\"\n target=\"_blank\"\n />\n )}\n </div>\n }\n />\n </>\n );\n};\n\nHelpPopover.propTypes = {\n /**\n * To set the title of the help popover.\n */\n title: PropTypes.string,\n /**\n * To set the size of the popover help icon.\n */\n size: PropTypes.oneOf([\"default\", \"large\"]),\n /**\n * To set the description of the popover, this can be a string or a custom component.\n */\n description: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n /**\n * To set the props of the help link which is displayed below the description.\n */\n helpLinkProps: PropTypes.object,\n /**\n * To set the props of the popover to customize it further.\n */\n popoverProps: PropTypes.object,\n /**\n * Additional classes passed on to the help button element.\n */\n className: PropTypes.string,\n};\n\nexport default HelpPopover;\n"],"names":["toPrimitive","toPropertyKey","objectWithoutPropertiesLoose","SIZE","large","Title","Popover","HelpPopover","_ref","title","_ref$size","size","description","helpLinkProps","popoverProps","className","otherProps","_objectWithoutProperties","_excluded","helpIconRef","useRef","isCompact","isNotPresent","React","createElement","Fragment","Button","_extends","icon","Help","ref","style","classNames","Tooltip","interactive","appendTo","document","body","arrow","undefined","_defineProperty","reference","role","theme","content","Typography","lineHeight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tCC,MAAAA,UAAU,EAAC,QAAQ;AACnBf,MAAAA,KAAK,EAAC,OAAA;AAAO,KAAA,EAEZnB,WACS,CAAC,GAEbA,WACD,EACAC,aAAa,iBACZU,yBAAA,CAAAC,aAAA,CAACE,cAAM,EAAAC,QAAA,CAAA;AACLZ,MAAAA,SAAS,EAAC,eAAe;AACzBgC,MAAAA,KAAK,EAAC,mBAAmB;AACzBpC,MAAAA,IAAI,EAAC,OAAA;AAAO,KAAA,EACRE,aAAa,EAAA;AACjB,MAAA,SAAA,EAAQ,0BAA0B;AAClC,MAAA,aAAA,EAAY,0BAA0B;AACtCkB,MAAAA,KAAK,EAAC,MAAM;AACZiB,MAAAA,MAAM,EAAC,QAAA;AAAQ,KAAA,CAChB,CAEA,CAAA;AACN,GAAA,CACF,CACD,CAAC,CAAA;AAEP;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-molecules",
3
- "version": "1.6.14",
3
+ "version": "1.6.15",
4
4
  "description": "A package of reusable molecular components for neeto products.",
5
5
  "repository": "git@github.com:bigbinary/neeto-molecules.git",
6
6
  "author": "Amaljith K <amaljith.k@bigbinary.com>",
@@ -35,5 +35,6 @@ const HelpPopover: React.FC<{
35
35
  helpLinkProps?: ButtonProps;
36
36
  popoverProps?: PopoverProps;
37
37
  size?: "default" | "large";
38
+ className?: string;
38
39
  }>;
39
40
  export default HelpPopover;