@bigbinary/neeto-molecules 3.13.6 → 3.13.7
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.
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import classnames from 'classnames';
|
|
2
|
+
import { n } from './inject-css-DmrvuTKK.js';
|
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var css = ".neeto-molecules-browser-preview{background-color:rgb(var(--neeto-ui-white));border:1px solid rgb(var(--neeto-ui-gray-300));border-radius:var(--neeto-ui-rounded-lg);overflow:hidden;position:relative;width:100%}.neeto-molecules-browser-preview .neeto-molecules-browser-preview__header{border-bottom:1px solid rgb(var(--neeto-ui-gray-300));flex-shrink:0;padding:12px}.neeto-molecules-browser-preview .neeto-molecules-browser-preview__body{display:flex;flex-direction:column;flex-grow:1;min-height:0;overflow-y:auto}";
|
|
6
|
+
n(css,{});
|
|
7
|
+
|
|
8
|
+
var BrowserIcon = function BrowserIcon() {
|
|
9
|
+
return /*#__PURE__*/jsxs("svg", {
|
|
10
|
+
fill: "none",
|
|
11
|
+
height: "12",
|
|
12
|
+
viewBox: "0 0 52 12",
|
|
13
|
+
width: "52",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
+
children: [/*#__PURE__*/jsx("path", {
|
|
16
|
+
d: "M11.5 6a5.5 5.5 0 11-11 0 5.5 5.5 0 0111 0z",
|
|
17
|
+
fill: "#FF5F57",
|
|
18
|
+
stroke: "#E14640"
|
|
19
|
+
}), /*#__PURE__*/jsx("path", {
|
|
20
|
+
d: "M31.5 6a5.5 5.5 0 11-11 0 5.5 5.5 0 0111 0z",
|
|
21
|
+
fill: "#FFBD2E",
|
|
22
|
+
stroke: "#DFA123"
|
|
23
|
+
}), /*#__PURE__*/jsx("path", {
|
|
24
|
+
d: "M51.5 6a5.5 5.5 0 11-11 0 5.5 5.5 0 0111 0z",
|
|
25
|
+
fill: "#28CA42",
|
|
26
|
+
stroke: "#1DAD2C"
|
|
27
|
+
})]
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
var BrowserPreview = function BrowserPreview(_ref) {
|
|
32
|
+
var className = _ref.className,
|
|
33
|
+
children = _ref.children;
|
|
34
|
+
return /*#__PURE__*/jsxs("div", {
|
|
35
|
+
className: "neeto-molecules-browser-preview",
|
|
36
|
+
"data-testid": "browser-preview",
|
|
37
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
38
|
+
className: "neeto-molecules-browser-preview__header",
|
|
39
|
+
children: /*#__PURE__*/jsx(BrowserIcon, {})
|
|
40
|
+
}), /*#__PURE__*/jsx("div", {
|
|
41
|
+
className: classnames("neeto-molecules-browser-preview__body", className),
|
|
42
|
+
"data-testid": "browser-preview-body",
|
|
43
|
+
children: children
|
|
44
|
+
})]
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export { BrowserPreview as default };
|
|
49
|
+
//# sourceMappingURL=BrowserPreview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserPreview.js","sources":["../src/components/BrowserPreview/BrowserIcon.jsx","../src/components/BrowserPreview/index.jsx"],"sourcesContent":["const BrowserIcon = () => (\n <svg\n fill=\"none\"\n height=\"12\"\n viewBox=\"0 0 52 12\"\n width=\"52\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M11.5 6a5.5 5.5 0 11-11 0 5.5 5.5 0 0111 0z\"\n fill=\"#FF5F57\"\n stroke=\"#E14640\"\n />\n <path\n d=\"M31.5 6a5.5 5.5 0 11-11 0 5.5 5.5 0 0111 0z\"\n fill=\"#FFBD2E\"\n stroke=\"#DFA123\"\n />\n <path\n d=\"M51.5 6a5.5 5.5 0 11-11 0 5.5 5.5 0 0111 0z\"\n fill=\"#28CA42\"\n stroke=\"#1DAD2C\"\n />\n </svg>\n);\n\nexport default BrowserIcon;\n","import classNames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nimport \"./browser-preview.scss\";\nimport BrowserIcon from \"./BrowserIcon.jsx\";\n\nconst BrowserPreview = ({ className, children }) => (\n <div\n className=\"neeto-molecules-browser-preview\"\n data-testid=\"browser-preview\"\n >\n <div className=\"neeto-molecules-browser-preview__header\">\n <BrowserIcon />\n </div>\n <div\n className={classNames(\"neeto-molecules-browser-preview__body\", className)}\n data-testid=\"browser-preview-body\"\n >\n {children}\n </div>\n </div>\n);\n\nBrowserPreview.propTypes = {\n /**\n * The content to be rendered inside the browser preview body.\n */\n children: PropTypes.node,\n /*\n * To provide additional classes to the browser preview body.\n */\n className: PropTypes.string,\n};\n\nexport default BrowserPreview;\n"],"names":["BrowserIcon","_jsxs","fill","height","viewBox","width","xmlns","children","_jsx","d","stroke","BrowserPreview","_ref","className","classNames"],"mappings":";;;;;;;AAAA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,GAAA;AAAA,EAAA,oBACfC,IAAA,CAAA,KAAA,EAAA;AACEC,IAAAA,IAAI,EAAC,MAAM;AACXC,IAAAA,MAAM,EAAC,IAAI;AACXC,IAAAA,OAAO,EAAC,WAAW;AACnBC,IAAAA,KAAK,EAAC,IAAI;AACVC,IAAAA,KAAK,EAAC,4BAA4B;AAAAC,IAAAA,QAAA,gBAElCC,GAAA,CAAA,MAAA,EAAA;AACEC,MAAAA,CAAC,EAAC,6CAA6C;AAC/CP,MAAAA,IAAI,EAAC,SAAS;AACdQ,MAAAA,MAAM,EAAC,SAAA;KACR,CAAC,eACFF,GAAA,CAAA,MAAA,EAAA;AACEC,MAAAA,CAAC,EAAC,6CAA6C;AAC/CP,MAAAA,IAAI,EAAC,SAAS;AACdQ,MAAAA,MAAM,EAAC,SAAA;KACR,CAAC,eACFF,GAAA,CAAA,MAAA,EAAA;AACEC,MAAAA,CAAC,EAAC,6CAA6C;AAC/CP,MAAAA,IAAI,EAAC,SAAS;AACdQ,MAAAA,MAAM,EAAC,SAAA;AAAS,KACjB,CAAC,CAAA;AAAA,GACC,CAAC,CAAA;AAAA,CACP;;AClBD,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,SAAS,GAAAD,IAAA,CAATC,SAAS;IAAEN,QAAQ,GAAAK,IAAA,CAARL,QAAQ,CAAA;AAAA,EAAA,oBAC3CN,IAAA,CAAA,KAAA,EAAA;AACEY,IAAAA,SAAS,EAAC,iCAAiC;AAC3C,IAAA,aAAA,EAAY,iBAAiB;AAAAN,IAAAA,QAAA,gBAE7BC,GAAA,CAAA,KAAA,EAAA;AAAKK,MAAAA,SAAS,EAAC,yCAAyC;AAAAN,MAAAA,QAAA,eACtDC,GAAA,CAACR,WAAW,EAAE,EAAA,CAAA;KACX,CAAC,eACNQ,GAAA,CAAA,KAAA,EAAA;AACEK,MAAAA,SAAS,EAAEC,UAAU,CAAC,uCAAuC,EAAED,SAAS,CAAE;AAC1E,MAAA,aAAA,EAAY,sBAAsB;AAAAN,MAAAA,QAAA,EAEjCA,QAAAA;AAAQ,KACN,CAAC,CAAA;AAAA,GACH,CAAC,CAAA;AAAA;;;;"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var classnames = require('classnames');
|
|
4
|
+
var injectCss = require('./inject-css-vQvjPR2x.js');
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
|
|
7
|
+
var css = ".neeto-molecules-browser-preview{background-color:rgb(var(--neeto-ui-white));border:1px solid rgb(var(--neeto-ui-gray-300));border-radius:var(--neeto-ui-rounded-lg);overflow:hidden;position:relative;width:100%}.neeto-molecules-browser-preview .neeto-molecules-browser-preview__header{border-bottom:1px solid rgb(var(--neeto-ui-gray-300));flex-shrink:0;padding:12px}.neeto-molecules-browser-preview .neeto-molecules-browser-preview__body{display:flex;flex-direction:column;flex-grow:1;min-height:0;overflow-y:auto}";
|
|
8
|
+
injectCss.n(css,{});
|
|
9
|
+
|
|
10
|
+
var BrowserIcon = function BrowserIcon() {
|
|
11
|
+
return /*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
12
|
+
fill: "none",
|
|
13
|
+
height: "12",
|
|
14
|
+
viewBox: "0 0 52 12",
|
|
15
|
+
width: "52",
|
|
16
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
18
|
+
d: "M11.5 6a5.5 5.5 0 11-11 0 5.5 5.5 0 0111 0z",
|
|
19
|
+
fill: "#FF5F57",
|
|
20
|
+
stroke: "#E14640"
|
|
21
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
22
|
+
d: "M31.5 6a5.5 5.5 0 11-11 0 5.5 5.5 0 0111 0z",
|
|
23
|
+
fill: "#FFBD2E",
|
|
24
|
+
stroke: "#DFA123"
|
|
25
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
26
|
+
d: "M51.5 6a5.5 5.5 0 11-11 0 5.5 5.5 0 0111 0z",
|
|
27
|
+
fill: "#28CA42",
|
|
28
|
+
stroke: "#1DAD2C"
|
|
29
|
+
})]
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
var BrowserPreview = function BrowserPreview(_ref) {
|
|
34
|
+
var className = _ref.className,
|
|
35
|
+
children = _ref.children;
|
|
36
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
37
|
+
className: "neeto-molecules-browser-preview",
|
|
38
|
+
"data-testid": "browser-preview",
|
|
39
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
40
|
+
className: "neeto-molecules-browser-preview__header",
|
|
41
|
+
children: /*#__PURE__*/jsxRuntime.jsx(BrowserIcon, {})
|
|
42
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
43
|
+
className: classnames("neeto-molecules-browser-preview__body", className),
|
|
44
|
+
"data-testid": "browser-preview-body",
|
|
45
|
+
children: children
|
|
46
|
+
})]
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
module.exports = BrowserPreview;
|
|
51
|
+
//# sourceMappingURL=BrowserPreview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserPreview.js","sources":["../../src/components/BrowserPreview/BrowserIcon.jsx","../../src/components/BrowserPreview/index.jsx"],"sourcesContent":["const BrowserIcon = () => (\n <svg\n fill=\"none\"\n height=\"12\"\n viewBox=\"0 0 52 12\"\n width=\"52\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M11.5 6a5.5 5.5 0 11-11 0 5.5 5.5 0 0111 0z\"\n fill=\"#FF5F57\"\n stroke=\"#E14640\"\n />\n <path\n d=\"M31.5 6a5.5 5.5 0 11-11 0 5.5 5.5 0 0111 0z\"\n fill=\"#FFBD2E\"\n stroke=\"#DFA123\"\n />\n <path\n d=\"M51.5 6a5.5 5.5 0 11-11 0 5.5 5.5 0 0111 0z\"\n fill=\"#28CA42\"\n stroke=\"#1DAD2C\"\n />\n </svg>\n);\n\nexport default BrowserIcon;\n","import classNames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nimport \"./browser-preview.scss\";\nimport BrowserIcon from \"./BrowserIcon.jsx\";\n\nconst BrowserPreview = ({ className, children }) => (\n <div\n className=\"neeto-molecules-browser-preview\"\n data-testid=\"browser-preview\"\n >\n <div className=\"neeto-molecules-browser-preview__header\">\n <BrowserIcon />\n </div>\n <div\n className={classNames(\"neeto-molecules-browser-preview__body\", className)}\n data-testid=\"browser-preview-body\"\n >\n {children}\n </div>\n </div>\n);\n\nBrowserPreview.propTypes = {\n /**\n * The content to be rendered inside the browser preview body.\n */\n children: PropTypes.node,\n /*\n * To provide additional classes to the browser preview body.\n */\n className: PropTypes.string,\n};\n\nexport default BrowserPreview;\n"],"names":["BrowserIcon","_jsxs","fill","height","viewBox","width","xmlns","children","_jsx","d","stroke","BrowserPreview","_ref","className","classNames"],"mappings":";;;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S,EAAEC,UAAU,CAAC,uCAAuC,EAAED,SAAS,CAAE;AAC1E,MAAA,aAAA,EAAY,sBAAsB;AAAAN,MAAAA,QAAA,EAEjCA,QAAAA;AAAQ,KACN,CAAC,CAAA;AAAA,GACH,CAAC,CAAA;AAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-molecules",
|
|
3
|
-
"version": "3.13.
|
|
3
|
+
"version": "3.13.7",
|
|
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>",
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* The BrowserPreview component is used to render the content wrapped in the
|
|
6
|
+
*
|
|
7
|
+
* browser frame for preview purposes.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
*
|
|
11
|
+
* import BrowserPreview from "@bigbinary/neeto-molecules/BrowserPreview";
|
|
12
|
+
*
|
|
13
|
+
* const Component = () => (
|
|
14
|
+
* <BrowserPreview>
|
|
15
|
+
* <div className="flex h-full items-center justify-center">
|
|
16
|
+
* <Typography className="text-center" style="body2">
|
|
17
|
+
* This is the body of the browser preview
|
|
18
|
+
* </Typography>
|
|
19
|
+
* </div>
|
|
20
|
+
* </BrowserPreview>
|
|
21
|
+
* );
|
|
22
|
+
* @endexample
|
|
23
|
+
*/
|
|
24
|
+
declare const BrowserPreview: React.FC<{
|
|
25
|
+
className?: string;
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
}>;
|
|
28
|
+
|
|
29
|
+
export { BrowserPreview as default };
|