@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.
@@ -4,24 +4,120 @@ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
4
4
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
5
5
  var React = require('react');
6
6
  var neetoCist = require('@bigbinary/neeto-cist');
7
+ var Icons = require('@bigbinary/neeto-icons/logos');
8
+ var Typography = require('@bigbinary/neetoui/Typography');
7
9
  var reactI18next = require('react-i18next');
10
+ var _commonjsHelpers = require('./_commonjsHelpers-BJu3ubxk.js');
8
11
  var injectCss = require('./inject-css-vQvjPR2x.js');
9
12
  var jsxRuntime = require('react/jsx-runtime');
10
13
 
11
- 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}";
14
+ function _interopNamespaceDefault(e) {
15
+ var n = Object.create(null);
16
+ if (e) {
17
+ Object.keys(e).forEach(function (k) {
18
+ if (k !== 'default') {
19
+ var d = Object.getOwnPropertyDescriptor(e, k);
20
+ Object.defineProperty(n, k, d.get ? d : {
21
+ enumerable: true,
22
+ get: function () { return e[k]; }
23
+ });
24
+ }
25
+ });
26
+ }
27
+ n.default = e;
28
+ return Object.freeze(n);
29
+ }
30
+
31
+ var Icons__namespace = /*#__PURE__*/_interopNamespaceDefault(Icons);
32
+
33
+ function preserveCamelCase(str) {
34
+ let isLastCharLower = false;
35
+ let isLastCharUpper = false;
36
+ let isLastLastCharUpper = false;
37
+
38
+ for (let i = 0; i < str.length; i++) {
39
+ const c = str[i];
40
+
41
+ if (isLastCharLower && /[a-zA-Z]/.test(c) && c.toUpperCase() === c) {
42
+ str = str.substr(0, i) + '-' + str.substr(i);
43
+ isLastCharLower = false;
44
+ isLastLastCharUpper = isLastCharUpper;
45
+ isLastCharUpper = true;
46
+ i++;
47
+ } else if (isLastCharUpper && isLastLastCharUpper && /[a-zA-Z]/.test(c) && c.toLowerCase() === c) {
48
+ str = str.substr(0, i - 1) + '-' + str.substr(i - 1);
49
+ isLastLastCharUpper = isLastCharUpper;
50
+ isLastCharUpper = false;
51
+ isLastCharLower = true;
52
+ } else {
53
+ isLastCharLower = c.toLowerCase() === c;
54
+ isLastLastCharUpper = isLastCharUpper;
55
+ isLastCharUpper = c.toUpperCase() === c;
56
+ }
57
+ }
58
+
59
+ return str;
60
+ }
61
+
62
+ var camelcase = function (str) {
63
+ if (arguments.length > 1) {
64
+ str = Array.from(arguments)
65
+ .map(x => x.trim())
66
+ .filter(x => x.length)
67
+ .join('-');
68
+ } else {
69
+ str = str.trim();
70
+ }
71
+
72
+ if (str.length === 0) {
73
+ return '';
74
+ }
75
+
76
+ if (str.length === 1) {
77
+ return str.toLowerCase();
78
+ }
79
+
80
+ if (/^[a-z0-9]+$/.test(str)) {
81
+ return str;
82
+ }
83
+
84
+ const hasUpperCase = str !== str.toLowerCase();
85
+
86
+ if (hasUpperCase) {
87
+ str = preserveCamelCase(str);
88
+ }
89
+
90
+ return str
91
+ .replace(/^[_.\- ]+/, '')
92
+ .toLowerCase()
93
+ .replace(/[_.\- ]+(\w|$)/g, (m, p1) => p1.toUpperCase());
94
+ };
95
+
96
+ const camelCase = camelcase;
97
+
98
+ var uppercamelcase = function () {
99
+ const cased = camelCase.apply(camelCase, arguments);
100
+ return cased.charAt(0).toUpperCase() + cased.slice(1);
101
+ };
102
+
103
+ var uppercamelcase$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(uppercamelcase);
104
+
105
+ 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}";
12
106
  injectCss.n(css,{});
13
107
 
14
- var _excluded = ["productName"];
108
+ var _excluded = ["productName", "productIcon"];
15
109
  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; }
16
110
  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; }
17
111
  var MadeWith = function MadeWith(_ref) {
18
112
  var _globalProps$organiza;
19
113
  var productName = _ref.productName,
114
+ ProductIcon = _ref.productIcon,
20
115
  otherProps = _objectWithoutProperties(_ref, _excluded);
21
- var name = neetoCist.capitalize(productName || globalProps.appName);
116
+ var name = neetoCist.capitalize(productName || globalProps.appName || "Neeto");
22
117
  var subdomain = (_globalProps$organiza = globalProps.organization) === null || _globalProps$organiza === void 0 ? void 0 : _globalProps$organiza.subdomain;
23
118
  var utmParams = "utm_source=madewith".concat(subdomain ? "&utm_campaign=".concat(subdomain) : "");
24
- return /*#__PURE__*/jsxRuntime.jsx("a", _objectSpread(_objectSpread({
119
+ var IconComponent = ProductIcon || Icons__namespace[uppercamelcase$1(name)];
120
+ return /*#__PURE__*/jsxRuntime.jsxs("a", _objectSpread(_objectSpread({
25
121
  className: "neeto-molecules-made-with__wrapper",
26
122
  "data-cy": "made-with-".concat(name.toLowerCase()),
27
123
  "data-testid": "made-with-".concat(name.toLowerCase()),
@@ -29,12 +125,21 @@ var MadeWith = function MadeWith(_ref) {
29
125
  rel: "noreferrer",
30
126
  target: "_blank"
31
127
  }, otherProps), {}, {
32
- children: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
33
- i18nKey: "neetoMolecules.common.madeWith",
34
- values: {
35
- productName: name
36
- }
37
- })
128
+ children: [IconComponent && /*#__PURE__*/jsxRuntime.jsx("span", {
129
+ "data-testid": "made-with-".concat(name.toLowerCase(), "-icon"),
130
+ children: /*#__PURE__*/jsxRuntime.jsx(IconComponent, {
131
+ size: 14
132
+ })
133
+ }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
134
+ className: "leading-snug",
135
+ style: "body2",
136
+ children: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
137
+ i18nKey: "neetoMolecules.common.madeWith",
138
+ values: {
139
+ productName: name
140
+ }
141
+ })
142
+ })]
38
143
  }));
39
144
  };
40
145
  var index = /*#__PURE__*/React.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,oBAAU,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,cAAA,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,cAAA,CAACQ,kBAAK,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,UAAI,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,GA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,MAAA,EAAA;AAAM,MAAA,aAAA,EAAA,YAAA,CAAAZ,MAAA,CAA0BP,IAAI,CAACc,WAAW,EAAE,EAAQ,OAAA,CAAA;MAAAI,QAAA,eACxDC,cAAA,CAACX,aAAa,EAAA;AAACY,QAAAA,IAAI,EAAE,EAAA;OAAK,CAAA;AAAC,KACvB,CACP,eACDD,cAAA,CAACE,UAAU,EAAA;AAACR,MAAAA,SAAS,EAAC,cAAc;AAACS,MAAAA,KAAK,EAAC,OAAO;MAAAJ,QAAA,eAChDC,cAAA,CAACI,kBAAK,EAAA;AACJC,QAAAA,OAAO,EAAC,gCAAgC;AACxCC,QAAAA,MAAM,EAAE;AAAE/B,UAAAA,WAAW,EAAEM,IAAAA;AAAK,SAAA;OAC7B,CAAA;AAAC,KACQ,CAAC,CAAA;AAAA,GAAA,CACZ,CAAC,CAAA;AAER,CAAC,CAAA;AAcD,YAAe0B,aAAAA,UAAI,CAACnC,QAAQ,CAAC;;;;","x_google_ignoreList":[0,1]}
@@ -416,7 +416,7 @@ var prism = {exports: {}};
416
416
  if (typeof document === 'undefined') {
417
417
  return null;
418
418
  }
419
- if ('currentScript' in document && 1 < 2 /* hack to trip TS' flow analysis */) {
419
+ if (document.currentScript && document.currentScript.tagName === 'SCRIPT' && 1 < 2 /* hack to trip TS' flow analysis */) {
420
420
  return /** @type {any} */ (document.currentScript);
421
421
  }
422
422