@bigbinary/neeto-molecules 1.0.14 → 1.0.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.
- package/README.md +2 -0
- package/dist/Header.cjs.js +6 -0
- package/dist/Header.js +6 -0
- package/dist/NeetoWidget.cjs.js +2 -2
- package/dist/NeetoWidget.js +2 -2
- package/dist/SubHeader.cjs.js +7 -0
- package/dist/SubHeader.js +6 -0
- package/package.json +1 -1
- package/types/Header.d.ts +15 -0
- package/types/SubHeader.d.ts +9 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=e(require("react")),n={exports:{}};
|
|
2
|
+
/*!
|
|
3
|
+
Copyright (c) 2018 Jed Watson.
|
|
4
|
+
Licensed under the MIT License (MIT), see
|
|
5
|
+
http://jedwatson.github.io/classnames
|
|
6
|
+
*/
|
|
7
|
+
!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],l=0;l<arguments.length;l++){var r=arguments[l];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var a=n.apply(null,r);a&&e.push(a)}}else if("object"===o){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var s in r)t.call(r,s)&&r[s]&&e.push(s)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(n);var l=n.exports,r=[],o=[];function a(){var e="/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/index.jsx",t=new Function("return this")(),n="__coverage__",l=t[n]||(t[n]={});l[e]&&"add11ac729f682ff4016960d57fa604d2fbbbcaa"===l[e].hash||(l[e]={path:"/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/index.jsx",statementMap:{0:{start:{line:7,column:18},end:{line:21,column:1}},1:{start:{line:8,column:2},end:{line:20,column:8}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:7,column:18},end:{line:7,column:19}},loc:{start:{line:8,column:2},end:{line:20,column:8}},line:8}},branchMap:{0:{loc:{start:{line:7,column:21},end:{line:7,column:35}},type:"default-arg",locations:[{start:{line:7,column:33},end:{line:7,column:35}}],line:7},1:{loc:{start:{line:13,column:7},end:{line:15,column:7}},type:"binary-expr",locations:[{start:{line:13,column:7},end:{line:13,column:22}},{start:{line:14,column:8},end:{line:14,column:80}}],line:13},2:{loc:{start:{line:17,column:5},end:{line:19,column:5}},type:"binary-expr",locations:[{start:{line:17,column:5},end:{line:17,column:21}},{start:{line:18,column:6},end:{line:18,column:80}}],line:17}},s:{0:0,1:0},f:{0:0},b:{0:[0],1:[0,0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"add11ac729f682ff4016960d57fa604d2fbbbcaa"});var r=l[e];return a=function(){return r},r}!function(e,t){if(e&&"undefined"!=typeof document){var n,l=!0===t.prepend?"prepend":"append",a=!0===t.singleTag,s="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(a){var i=r.indexOf(s);-1===i&&(i=r.push(s)-1,o[i]={}),n=o[i]&&o[i][l]?o[i][l]:o[i][l]=c()}else n=c();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),r=0;r<n.length;r++)e.setAttribute(n[r],t.attributes[n[r]]);var o="prepend"===l?"afterbegin":"beforeend";return s.insertAdjacentElement(o,e),e}}(".neeto-molecules-subheader{align-items:center;background-color:rgb(var(--neeto-ui-white));display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--neeto-ui-sub-header-bottom-margin);min-height:var(--neeto-ui-sub-header-height);width:100%}.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper{display:flex;flex-grow:1}.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper .neeto-molecules-subheader__left{align-items:center;display:flex;flex-direction:row;justify-content:flex-start}.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper .neeto-molecules-subheader__left .neeto-molecules-input__prefix{color:rgb(var(--neeto-ui-gray-400))}.neeto-molecules-subheader .neeto-molecules-subheader__right{align-items:center;display:flex;flex-direction:row;gap:12px;justify-content:flex-end}",{}),a(),a().s[0]++;module.exports=function(e){var n=e.className,r=void 0===n?(a().b[0][0]++,""):n,o=e.leftActionBlock,s=e.rightActionBlock;return a().f[0]++,a().s[1]++,t.default.createElement("div",{className:l(["neeto-molecules-subheader",r]),"data-testid":"subheader"},t.default.createElement("div",{className:"neeto-molecules-subheader__left-wrapper"},(a().b[1][0]++,o&&(a().b[1][1]++,t.default.createElement("div",{className:"neeto-molecules-subheader__left"},o)))),(a().b[2][0]++,s&&(a().b[2][1]++,t.default.createElement("div",{className:"neeto-molecules-subheader__right"},s))))};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import e from"react";var t,n={exports:{}};
|
|
2
|
+
/*!
|
|
3
|
+
Copyright (c) 2018 Jed Watson.
|
|
4
|
+
Licensed under the MIT License (MIT), see
|
|
5
|
+
http://jedwatson.github.io/classnames
|
|
6
|
+
*/t=n,function(){var e={}.hasOwnProperty;function n(){for(var t=[],l=0;l<arguments.length;l++){var r=arguments[l];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)){if(r.length){var a=n.apply(null,r);a&&t.push(a)}}else if("object"===o){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){t.push(r.toString());continue}for(var s in r)e.call(r,s)&&r[s]&&t.push(s)}}}return t.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n}();var l=n.exports,r=[],o=[];function a(){var e="/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/index.jsx",t=new Function("return this")(),n="__coverage__",l=t[n]||(t[n]={});l[e]&&"add11ac729f682ff4016960d57fa604d2fbbbcaa"===l[e].hash||(l[e]={path:"/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/index.jsx",statementMap:{0:{start:{line:7,column:18},end:{line:21,column:1}},1:{start:{line:8,column:2},end:{line:20,column:8}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:7,column:18},end:{line:7,column:19}},loc:{start:{line:8,column:2},end:{line:20,column:8}},line:8}},branchMap:{0:{loc:{start:{line:7,column:21},end:{line:7,column:35}},type:"default-arg",locations:[{start:{line:7,column:33},end:{line:7,column:35}}],line:7},1:{loc:{start:{line:13,column:7},end:{line:15,column:7}},type:"binary-expr",locations:[{start:{line:13,column:7},end:{line:13,column:22}},{start:{line:14,column:8},end:{line:14,column:80}}],line:13},2:{loc:{start:{line:17,column:5},end:{line:19,column:5}},type:"binary-expr",locations:[{start:{line:17,column:5},end:{line:17,column:21}},{start:{line:18,column:6},end:{line:18,column:80}}],line:17}},s:{0:0,1:0},f:{0:0},b:{0:[0],1:[0,0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"add11ac729f682ff4016960d57fa604d2fbbbcaa"});var r=l[e];return a=function(){return r},r}!function(e,t){if(e&&"undefined"!=typeof document){var n,l=!0===t.prepend?"prepend":"append",a=!0===t.singleTag,s="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(a){var i=r.indexOf(s);-1===i&&(i=r.push(s)-1,o[i]={}),n=o[i]&&o[i][l]?o[i][l]:o[i][l]=c()}else n=c();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),r=0;r<n.length;r++)e.setAttribute(n[r],t.attributes[n[r]]);var o="prepend"===l?"afterbegin":"beforeend";return s.insertAdjacentElement(o,e),e}}(".neeto-molecules-subheader{align-items:center;background-color:rgb(var(--neeto-ui-white));display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--neeto-ui-sub-header-bottom-margin);min-height:var(--neeto-ui-sub-header-height);width:100%}.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper{display:flex;flex-grow:1}.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper .neeto-molecules-subheader__left{align-items:center;display:flex;flex-direction:row;justify-content:flex-start}.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper .neeto-molecules-subheader__left .neeto-molecules-input__prefix{color:rgb(var(--neeto-ui-gray-400))}.neeto-molecules-subheader .neeto-molecules-subheader__right{align-items:center;display:flex;flex-direction:row;gap:12px;justify-content:flex-end}",{}),a(),a().s[0]++;var s=function(t){var n=t.className,r=void 0===n?(a().b[0][0]++,""):n,o=t.leftActionBlock,s=t.rightActionBlock;return a().f[0]++,a().s[1]++,e.createElement("div",{className:l(["neeto-molecules-subheader",r]),"data-testid":"subheader"},e.createElement("div",{className:"neeto-molecules-subheader__left-wrapper"},(a().b[1][0]++,o&&(a().b[1][1]++,e.createElement("div",{className:"neeto-molecules-subheader__left"},o)))),(a().b[2][0]++,s&&(a().b[2][1]++,e.createElement("div",{className:"neeto-molecules-subheader__right"},s))))};export{s as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-molecules",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.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>",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
const Header: React.FC<{
|
|
4
|
+
title?: React.ReactNode;
|
|
5
|
+
className?: string,
|
|
6
|
+
actionBlock?: React.ReactNode,
|
|
7
|
+
searchProps?: object,
|
|
8
|
+
breadcrumbs?: {
|
|
9
|
+
text: string,
|
|
10
|
+
link: string,
|
|
11
|
+
}[],
|
|
12
|
+
menuBarToggle?: (...args: any[]) => any,
|
|
13
|
+
}>;
|
|
14
|
+
|
|
15
|
+
export default Header;
|