@bikdotai/bik-component-library 0.0.245-beta.5 → 0.0.245-beta.6

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 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("./modal.styled.js"),t=require("../../constants/Theme.js"),n=require("../../assets/icons/cross.svg.js");exports.Modal=o=>{var r;return e.jsx(e.Fragment,{children:o.open&&e.jsx(s.RootContainer,Object.assign({"data-test":o["data-test"],zIndex:o.zIndex||1,onClick:e=>{o.closeOnOutsideClick&&o.onClose?o.onClose():e.stopPropagation()}},{children:e.jsx(s.CentralContainer,Object.assign({style:Object.assign({},null!==(r=o.centralContainerStyles)&&void 0!==r?r:{}),onClick:e=>{e.stopPropagation()},width:o.width},{children:e.jsxs(e.Fragment,{children:[!(null==o?void 0:o.hideCrossButton)&&e.jsx(s.CloseButtonContainer,Object.assign({onClick:()=>o.onClose&&o.onClose()},{children:e.jsx(n.default,{height:20,width:20,color:t.COLORS.content.secondary})})),o.children]})}))}))})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("./modal.styled.js"),s=require("../../constants/Theme.js"),n=require("../../assets/icons/cross.svg.js");exports.Modal=o=>{var r;return e.jsx(e.Fragment,{children:o.open&&e.jsx(t.RootContainer,Object.assign({"data-test":o["data-test"],zIndex:o.zIndex||1,onClick:e=>{o.closeOnOutsideClick&&o.onClose?o.onClose():e.stopPropagation()}},{children:e.jsx(t.CentralContainer,Object.assign({style:Object.assign({},null!==(r=o.centralContainerStyles)&&void 0!==r?r:{}),onClick:e=>{e.stopPropagation()},width:o.width},{children:e.jsxs(e.Fragment,{children:[!(null==o?void 0:o.hideCrossButton)&&e.jsx(t.CloseButtonContainer,Object.assign({"data-test":"modal-close-button",onClick:()=>o.onClose&&o.onClose()},{children:e.jsx(n.default,{height:20,width:20,color:s.COLORS.content.secondary})})),o.children]})}))}))})};
@@ -1 +1 @@
1
- import{jsx as o,Fragment as t,jsxs as n}from"react/jsx-runtime";import{RootContainer as s,CentralContainer as e,CloseButtonContainer as i}from"./modal.styled.js";import{COLORS as r}from"../../constants/Theme.js";import l from"../../assets/icons/cross.svg.js";const c=c=>{var a;return o(t,{children:c.open&&o(s,Object.assign({"data-test":c["data-test"],zIndex:c.zIndex||1,onClick:o=>{c.closeOnOutsideClick&&c.onClose?c.onClose():o.stopPropagation()}},{children:o(e,Object.assign({style:Object.assign({},null!==(a=c.centralContainerStyles)&&void 0!==a?a:{}),onClick:o=>{o.stopPropagation()},width:c.width},{children:n(t,{children:[!(null==c?void 0:c.hideCrossButton)&&o(i,Object.assign({onClick:()=>c.onClose&&c.onClose()},{children:o(l,{height:20,width:20,color:r.content.secondary})})),c.children]})}))}))})};export{c as Modal};
1
+ import{jsx as o,Fragment as t,jsxs as s}from"react/jsx-runtime";import{RootContainer as e,CentralContainer as n,CloseButtonContainer as i}from"./modal.styled.js";import{COLORS as r}from"../../constants/Theme.js";import l from"../../assets/icons/cross.svg.js";const c=c=>{var a;return o(t,{children:c.open&&o(e,Object.assign({"data-test":c["data-test"],zIndex:c.zIndex||1,onClick:o=>{c.closeOnOutsideClick&&c.onClose?c.onClose():o.stopPropagation()}},{children:o(n,Object.assign({style:Object.assign({},null!==(a=c.centralContainerStyles)&&void 0!==a?a:{}),onClick:o=>{o.stopPropagation()},width:c.width},{children:s(t,{children:[!(null==c?void 0:c.hideCrossButton)&&o(i,Object.assign({"data-test":"modal-close-button",onClick:()=>c.onClose&&c.onClose()},{children:o(l,{height:20,width:20,color:r.content.secondary})})),c.children]})}))}))})};export{c as Modal};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bikdotai/bik-component-library",
3
- "version": "0.0.245-beta.5",
3
+ "version": "0.0.245-beta.6",
4
4
  "description": "Bik Component Library",
5
5
  "repository": {
6
6
  "type": "git",