@bigbinary/neeto-molecules 3.16.8 → 3.16.10

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/MadeWith.js CHANGED
@@ -2,24 +2,101 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
3
  import { memo } from 'react';
4
4
  import { capitalize } from '@bigbinary/neeto-cist';
5
+ import * as Icons from '@bigbinary/neeto-icons/logos';
6
+ import Typography from '@bigbinary/neetoui/Typography';
5
7
  import { Trans } from 'react-i18next';
8
+ import { g as getDefaultExportFromCjs } from './_commonjsHelpers-BFTU3MAI.js';
6
9
  import { n } from './inject-css-DmrvuTKK.js';
7
- import { jsx } from 'react/jsx-runtime';
10
+ import { jsxs, jsx } from 'react/jsx-runtime';
8
11
 
9
- var css = ".neeto-molecules-made-with__wrapper{background:#fff;border:1px solid #dfdfde;border-radius:.25rem;color:#000;font-family:-apple-system,BlinkMacSystemFont,Inter,Arial,Segoe UI,Roboto,Oxygen,Ubuntu,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:.875rem;font-weight:400;padding:.25rem .375rem;transition:all;transition-duration:.3s;-webkit-user-select:none;-moz-user-select:none;user-select:none}.neeto-molecules-made-with__wrapper strong{font-weight:700}.neeto-molecules-made-with__wrapper:hover{box-shadow:inset 0 0 0 1px #dfdfde}";
12
+ function preserveCamelCase(str) {
13
+ let isLastCharLower = false;
14
+ let isLastCharUpper = false;
15
+ let isLastLastCharUpper = false;
16
+
17
+ for (let i = 0; i < str.length; i++) {
18
+ const c = str[i];
19
+
20
+ if (isLastCharLower && /[a-zA-Z]/.test(c) && c.toUpperCase() === c) {
21
+ str = str.substr(0, i) + '-' + str.substr(i);
22
+ isLastCharLower = false;
23
+ isLastLastCharUpper = isLastCharUpper;
24
+ isLastCharUpper = true;
25
+ i++;
26
+ } else if (isLastCharUpper && isLastLastCharUpper && /[a-zA-Z]/.test(c) && c.toLowerCase() === c) {
27
+ str = str.substr(0, i - 1) + '-' + str.substr(i - 1);
28
+ isLastLastCharUpper = isLastCharUpper;
29
+ isLastCharUpper = false;
30
+ isLastCharLower = true;
31
+ } else {
32
+ isLastCharLower = c.toLowerCase() === c;
33
+ isLastLastCharUpper = isLastCharUpper;
34
+ isLastCharUpper = c.toUpperCase() === c;
35
+ }
36
+ }
37
+
38
+ return str;
39
+ }
40
+
41
+ var camelcase = function (str) {
42
+ if (arguments.length > 1) {
43
+ str = Array.from(arguments)
44
+ .map(x => x.trim())
45
+ .filter(x => x.length)
46
+ .join('-');
47
+ } else {
48
+ str = str.trim();
49
+ }
50
+
51
+ if (str.length === 0) {
52
+ return '';
53
+ }
54
+
55
+ if (str.length === 1) {
56
+ return str.toLowerCase();
57
+ }
58
+
59
+ if (/^[a-z0-9]+$/.test(str)) {
60
+ return str;
61
+ }
62
+
63
+ const hasUpperCase = str !== str.toLowerCase();
64
+
65
+ if (hasUpperCase) {
66
+ str = preserveCamelCase(str);
67
+ }
68
+
69
+ return str
70
+ .replace(/^[_.\- ]+/, '')
71
+ .toLowerCase()
72
+ .replace(/[_.\- ]+(\w|$)/g, (m, p1) => p1.toUpperCase());
73
+ };
74
+
75
+ const camelCase = camelcase;
76
+
77
+ var uppercamelcase = function () {
78
+ const cased = camelCase.apply(camelCase, arguments);
79
+ return cased.charAt(0).toUpperCase() + cased.slice(1);
80
+ };
81
+
82
+ var uppercamelcase$1 = /*@__PURE__*/getDefaultExportFromCjs(uppercamelcase);
83
+
84
+ var css = ".neeto-molecules-made-with__wrapper{align-items:center;background:#fff;border:.5px solid #dfdfde;border-radius:.375rem;color:#000;display:inline-flex;font-family:-apple-system,BlinkMacSystemFont,Inter,Arial,Segoe UI,Roboto,Oxygen,Ubuntu,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:.875rem;font-weight:400;gap:.375rem;padding:.375rem .5rem;transition:all;transition-duration:.3s;-webkit-user-select:none;-moz-user-select:none;user-select:none}.neeto-molecules-made-with__wrapper strong{font-weight:700}.neeto-molecules-made-with__wrapper:hover{box-shadow:inset 0 0 0 1px #dfdfde}";
10
85
  n(css,{});
11
86
 
12
- var _excluded = ["productName"];
87
+ var _excluded = ["productName", "productIcon"];
13
88
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14
89
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15
90
  var MadeWith = function MadeWith(_ref) {
16
91
  var _globalProps$organiza;
17
92
  var productName = _ref.productName,
93
+ ProductIcon = _ref.productIcon,
18
94
  otherProps = _objectWithoutProperties(_ref, _excluded);
19
- var name = capitalize(productName || globalProps.appName);
95
+ var name = capitalize(productName || globalProps.appName || "Neeto");
20
96
  var subdomain = (_globalProps$organiza = globalProps.organization) === null || _globalProps$organiza === void 0 ? void 0 : _globalProps$organiza.subdomain;
21
97
  var utmParams = "utm_source=madewith".concat(subdomain ? "&utm_campaign=".concat(subdomain) : "");
22
- return /*#__PURE__*/jsx("a", _objectSpread(_objectSpread({
98
+ var IconComponent = ProductIcon || Icons[uppercamelcase$1(name)];
99
+ return /*#__PURE__*/jsxs("a", _objectSpread(_objectSpread({
23
100
  className: "neeto-molecules-made-with__wrapper",
24
101
  "data-cy": "made-with-".concat(name.toLowerCase()),
25
102
  "data-testid": "made-with-".concat(name.toLowerCase()),
@@ -27,12 +104,21 @@ var MadeWith = function MadeWith(_ref) {
27
104
  rel: "noreferrer",
28
105
  target: "_blank"
29
106
  }, otherProps), {}, {
30
- children: /*#__PURE__*/jsx(Trans, {
31
- i18nKey: "neetoMolecules.common.madeWith",
32
- values: {
33
- productName: name
34
- }
35
- })
107
+ children: [IconComponent && /*#__PURE__*/jsx("span", {
108
+ "data-testid": "made-with-".concat(name.toLowerCase(), "-icon"),
109
+ children: /*#__PURE__*/jsx(IconComponent, {
110
+ size: 14
111
+ })
112
+ }), /*#__PURE__*/jsx(Typography, {
113
+ className: "leading-snug",
114
+ style: "body2",
115
+ children: /*#__PURE__*/jsx(Trans, {
116
+ i18nKey: "neetoMolecules.common.madeWith",
117
+ values: {
118
+ productName: name
119
+ }
120
+ })
121
+ })]
36
122
  }));
37
123
  };
38
124
  var index = /*#__PURE__*/memo(MadeWith);
@@ -1 +1 @@
1
- {"version":3,"file":"MadeWith.js","sources":["../src/components/MadeWith/index.jsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport { capitalize } from \"neetocist\";\nimport PropTypes from \"prop-types\";\nimport { Trans } from \"react-i18next\";\n\nimport \"./made-with.scss\";\n\nconst MadeWith = ({ productName, ...otherProps }) => {\n const name = capitalize(productName || globalProps.appName);\n const subdomain = globalProps.organization?.subdomain;\n const utmParams = `utm_source=madewith${\n subdomain ? `&utm_campaign=${subdomain}` : \"\"\n }`;\n\n return (\n <a\n className=\"neeto-molecules-made-with__wrapper\"\n data-cy={`made-with-${name.toLowerCase()}`}\n data-testid={`made-with-${name.toLowerCase()}`}\n href={`https://www.neeto.com/${name.toLowerCase()}?${utmParams}`}\n rel=\"noreferrer\"\n target=\"_blank\"\n {...otherProps}\n >\n <Trans\n i18nKey=\"neetoMolecules.common.madeWith\"\n values={{ productName: name }}\n />\n </a>\n );\n};\n\nMadeWith.propTypes = {\n /**\n * Product name to be displayed on the component (optional).\n */\n productName: PropTypes.string,\n};\n\nexport default memo(MadeWith);\n"],"names":["MadeWith","_ref","_globalProps$organiza","productName","otherProps","_objectWithoutProperties","_excluded","name","capitalize","globalProps","appName","subdomain","organization","utmParams","concat","_jsx","_objectSpread","className","toLowerCase","href","rel","target","children","Trans","i18nKey","values","memo"],"mappings":";;;;;;;;;;;;;;AAQA,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAAC,IAAA,EAAuC;AAAA,EAAA,IAAAC,qBAAA,CAAA;AAAA,EAAA,IAAjCC,WAAW,GAAAF,IAAA,CAAXE,WAAW;AAAKC,IAAAA,UAAU,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,SAAA,CAAA,CAAA;EAC5C,IAAMC,IAAI,GAAGC,UAAU,CAACL,WAAW,IAAIM,WAAW,CAACC,OAAO,CAAC,CAAA;AAC3D,EAAA,IAAMC,SAAS,GAAA,CAAAT,qBAAA,GAAGO,WAAW,CAACG,YAAY,MAAA,IAAA,IAAAV,qBAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAxBA,qBAAA,CAA0BS,SAAS,CAAA;EACrD,IAAME,SAAS,GAAAC,qBAAAA,CAAAA,MAAA,CACbH,SAAS,GAAAG,gBAAAA,CAAAA,MAAA,CAAoBH,SAAS,CAAK,GAAA,EAAE,CAC7C,CAAA;AAEF,EAAA,oBACEI,GAAA,CAAA,GAAA,EAAAC,aAAA,CAAAA,aAAA,CAAA;AACEC,IAAAA,SAAS,EAAC,oCAAoC;AAC9C,IAAA,SAAA,EAAA,YAAA,CAAAH,MAAA,CAAsBP,IAAI,CAACW,WAAW,EAAE,CAAG;AAC3C,IAAA,aAAA,EAAA,YAAA,CAAAJ,MAAA,CAA0BP,IAAI,CAACW,WAAW,EAAE,CAAG;AAC/CC,IAAAA,IAAI,EAAAL,wBAAAA,CAAAA,MAAA,CAA2BP,IAAI,CAACW,WAAW,EAAE,EAAAJ,GAAAA,CAAAA,CAAAA,MAAA,CAAID,SAAS,CAAG;AACjEO,IAAAA,GAAG,EAAC,YAAY;AAChBC,IAAAA,MAAM,EAAC,QAAA;AAAQ,GAAA,EACXjB,UAAU,CAAA,EAAA,EAAA,EAAA;IAAAkB,QAAA,eAEdP,GAAA,CAACQ,KAAK,EAAA;AACJC,MAAAA,OAAO,EAAC,gCAAgC;AACxCC,MAAAA,MAAM,EAAE;AAAEtB,QAAAA,WAAW,EAAEI,IAAAA;AAAK,OAAA;KAC7B,CAAA;AAAC,GAAA,CACD,CAAC,CAAA;AAER,CAAC,CAAA;AASD,YAAemB,aAAAA,IAAI,CAAC1B,QAAQ,CAAC;;;;"}
1
+ {"version":3,"file":"MadeWith.js","sources":["../node_modules/uppercamelcase/node_modules/camelcase/index.js","../node_modules/uppercamelcase/index.js","../src/components/MadeWith/index.jsx"],"sourcesContent":["'use strict';\n\nfunction preserveCamelCase(str) {\n\tlet isLastCharLower = false;\n\tlet isLastCharUpper = false;\n\tlet isLastLastCharUpper = false;\n\n\tfor (let i = 0; i < str.length; i++) {\n\t\tconst c = str[i];\n\n\t\tif (isLastCharLower && /[a-zA-Z]/.test(c) && c.toUpperCase() === c) {\n\t\t\tstr = str.substr(0, i) + '-' + str.substr(i);\n\t\t\tisLastCharLower = false;\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = true;\n\t\t\ti++;\n\t\t} else if (isLastCharUpper && isLastLastCharUpper && /[a-zA-Z]/.test(c) && c.toLowerCase() === c) {\n\t\t\tstr = str.substr(0, i - 1) + '-' + str.substr(i - 1);\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = false;\n\t\t\tisLastCharLower = true;\n\t\t} else {\n\t\t\tisLastCharLower = c.toLowerCase() === c;\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = c.toUpperCase() === c;\n\t\t}\n\t}\n\n\treturn str;\n}\n\nmodule.exports = function (str) {\n\tif (arguments.length > 1) {\n\t\tstr = Array.from(arguments)\n\t\t\t.map(x => x.trim())\n\t\t\t.filter(x => x.length)\n\t\t\t.join('-');\n\t} else {\n\t\tstr = str.trim();\n\t}\n\n\tif (str.length === 0) {\n\t\treturn '';\n\t}\n\n\tif (str.length === 1) {\n\t\treturn str.toLowerCase();\n\t}\n\n\tif (/^[a-z0-9]+$/.test(str)) {\n\t\treturn str;\n\t}\n\n\tconst hasUpperCase = str !== str.toLowerCase();\n\n\tif (hasUpperCase) {\n\t\tstr = preserveCamelCase(str);\n\t}\n\n\treturn str\n\t\t.replace(/^[_.\\- ]+/, '')\n\t\t.toLowerCase()\n\t\t.replace(/[_.\\- ]+(\\w|$)/g, (m, p1) => p1.toUpperCase());\n};\n","'use strict';\nconst camelCase = require('camelcase');\n\nmodule.exports = function () {\n\tconst cased = camelCase.apply(camelCase, arguments);\n\treturn cased.charAt(0).toUpperCase() + cased.slice(1);\n};\n","import { memo } from \"react\";\n\nimport { capitalize } from \"neetocist\";\nimport * as Icons from \"neetoicons/logos\";\nimport { Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { Trans } from \"react-i18next\";\nimport uppercamelcase from \"uppercamelcase\";\n\nimport \"./made-with.scss\";\n\nconst MadeWith = ({ productName, productIcon: ProductIcon, ...otherProps }) => {\n const name = capitalize(productName || globalProps.appName || \"Neeto\");\n const subdomain = globalProps.organization?.subdomain;\n const utmParams = `utm_source=madewith${\n subdomain ? `&utm_campaign=${subdomain}` : \"\"\n }`;\n\n const IconComponent = ProductIcon || Icons[uppercamelcase(name)];\n\n return (\n <a\n className=\"neeto-molecules-made-with__wrapper\"\n data-cy={`made-with-${name.toLowerCase()}`}\n data-testid={`made-with-${name.toLowerCase()}`}\n href={`https://www.neeto.com/${name.toLowerCase()}?${utmParams}`}\n rel=\"noreferrer\"\n target=\"_blank\"\n {...otherProps}\n >\n {IconComponent && (\n <span data-testid={`made-with-${name.toLowerCase()}-icon`}>\n <IconComponent size={14} />\n </span>\n )}\n <Typography className=\"leading-snug\" style=\"body2\">\n <Trans\n i18nKey=\"neetoMolecules.common.madeWith\"\n values={{ productName: name }}\n />\n </Typography>\n </a>\n );\n};\n\nMadeWith.propTypes = {\n /**\n * Product name to be displayed on the component (optional).\n */\n productName: PropTypes.string,\n\n /**\n * Product icon component to be displayed on the badge (optional).\n */\n productIcon: PropTypes.elementType,\n};\n\nexport default memo(MadeWith);\n"],"names":["require$$0","MadeWith","_ref","_globalProps$organiza","productName","ProductIcon","productIcon","otherProps","_objectWithoutProperties","_excluded","name","capitalize","globalProps","appName","subdomain","organization","utmParams","concat","IconComponent","Icons","uppercamelcase","_jsxs","_objectSpread","className","toLowerCase","href","rel","target","children","_jsx","size","Typography","style","Trans","i18nKey","values","memo"],"mappings":";;;;;;;;;;;AAEA,SAAS,iBAAiB,CAAC,GAAG,EAAE;AAChC,CAAC,IAAI,eAAe,GAAG,KAAK,CAAC;AAC7B,CAAC,IAAI,eAAe,GAAG,KAAK,CAAC;AAC7B,CAAC,IAAI,mBAAmB,GAAG,KAAK,CAAC;AACjC;AACA,CAAC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AACtC,EAAE,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;AACnB;AACA,EAAE,IAAI,eAAe,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,KAAK,CAAC,EAAE;AACtE,GAAG,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAChD,GAAG,eAAe,GAAG,KAAK,CAAC;AAC3B,GAAG,mBAAmB,GAAG,eAAe,CAAC;AACzC,GAAG,eAAe,GAAG,IAAI,CAAC;AAC1B,GAAG,CAAC,EAAE,CAAC;AACP,GAAG,MAAM,IAAI,eAAe,IAAI,mBAAmB,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,KAAK,CAAC,EAAE;AACpG,GAAG,GAAG,GAAG,GA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AAW,EAAEM,IAAAA;AAAK,SAAA;OAC7B,CAAA;AAAC,KACQ,CAAC,CAAA;AAAA,GAAA,CACZ,CAAC,CAAA;AAER,CAAC,CAAA;AAcD,YAAe0B,aAAAA,IAAI,CAACnC,QAAQ,CAAC;;;;","x_google_ignoreList":[0,1]}
@@ -395,7 +395,7 @@ var prism = {exports: {}};
395
395
  if (typeof document === 'undefined') {
396
396
  return null;
397
397
  }
398
- if ('currentScript' in document && 1 < 2 /* hack to trip TS' flow analysis */) {
398
+ if (document.currentScript && document.currentScript.tagName === 'SCRIPT' && 1 < 2 /* hack to trip TS' flow analysis */) {
399
399
  return /** @type {any} */ (document.currentScript);
400
400
  }
401
401