@bikdotai/bik-component-library 0.0.176 → 0.0.177

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,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("styled-components"),s=require("../../../../checkBox/CheckBox.js"),n=require("../../../../list-item/ListItem.js"),r=require("../../../../TypographyStyle.js"),i=require("../../../../../constants/Theme.js"),o=require("./FreeFormMenu.styled.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const c=l(t).default(n.ListItem)`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("styled-components"),n=require("../../../../checkBox/CheckBox.js"),s=require("../../../../list-item/ListItem.js"),r=require("../../../../TypographyStyle.js"),i=require("../../../../../constants/Theme.js"),o=require("./FreeFormMenu.styled.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const c=l(t).default(s.ListItem)`
2
2
  padding: 14px 16px !important;
3
- cursor: default;
4
- `;exports.MenuItem=t=>{let{option:n,isMultiSelect:l,showDescription:a,onSelect:u,last:d}=t;var m;function p(e){n.disabled||u(Object.assign(Object.assign({},n),{selected:e}))}return e.jsx(c,{style:d?{borderBottom:0}:{},onClick:e=>{e.preventDefault(),p(!n.selected)},onMouseOver:function(){n.description?a(n.label,n.description):a()},listItem:{value:n.value,label:n.label},subText:n.subText,leadingIcon:l?e.jsx(s.CheckBox,{isDisabled:null!==(m=n.disabled)&&void 0!==m&&m,isChecked:!!n.selected,onValueChange:p}):e.jsx(e.Fragment,{}),customComponent:n.customComponent,trailingIcon:n.isFreeForm?e.jsx(o.FreeFormContainer,{children:e.jsx(r.BodyCaption,Object.assign({style:{color:i.COLORS.content.secondary}},{children:"Freeform"}))}):n.trailingIcon?e.jsx(e.Fragment,{children:n.trailingIcon}):e.jsx(e.Fragment,{}),variant:n.disabled?"inactive":n.selected?"selected":"default"})};
3
+ cursor: pointer;
4
+ `;exports.MenuItem=t=>{let{option:s,isMultiSelect:l,showDescription:a,onSelect:u,last:d}=t;var m;function p(e){s.disabled||u(Object.assign(Object.assign({},s),{selected:e}))}return e.jsx(c,{style:d?{borderBottom:0}:{},onClick:e=>{e.preventDefault(),p(!s.selected)},onMouseOver:function(){s.description?a(s.label,s.description):a()},listItem:{value:s.value,label:s.label},subText:s.subText,leadingIcon:l?e.jsx(n.CheckBox,{isDisabled:null!==(m=s.disabled)&&void 0!==m&&m,isChecked:!!s.selected,onValueChange:p}):e.jsx(e.Fragment,{}),customComponent:s.customComponent,trailingIcon:s.isFreeForm?e.jsx(o.FreeFormContainer,{children:e.jsx(r.BodyCaption,Object.assign({style:{color:i.COLORS.content.secondary}},{children:"Freeform"}))}):s.trailingIcon?e.jsx(e.Fragment,{children:s.trailingIcon}):e.jsx(e.Fragment,{}),variant:s.disabled?"inactive":s.selected?"selected":"default"})};
@@ -1,4 +1,4 @@
1
1
  import{jsx as e,Fragment as t}from"react/jsx-runtime";import o from"styled-components";import{CheckBox as i}from"../../../../checkBox/CheckBox.js";import{ListItem as n}from"../../../../list-item/ListItem.js";import{BodyCaption as s}from"../../../../TypographyStyle.js";import{COLORS as r}from"../../../../../constants/Theme.js";import{FreeFormContainer as l}from"./FreeFormMenu.styled.js";const c=o(n)`
2
2
  padding: 14px 16px !important;
3
- cursor: default;
3
+ cursor: pointer;
4
4
  `,a=o=>{let{option:n,isMultiSelect:a,showDescription:m,onSelect:d,last:p}=o;var u;function b(e){n.disabled||d(Object.assign(Object.assign({},n),{selected:e}))}return e(c,{style:p?{borderBottom:0}:{},onClick:e=>{e.preventDefault(),b(!n.selected)},onMouseOver:function(){n.description?m(n.label,n.description):m()},listItem:{value:n.value,label:n.label},subText:n.subText,leadingIcon:a?e(i,{isDisabled:null!==(u=n.disabled)&&void 0!==u&&u,isChecked:!!n.selected,onValueChange:b}):e(t,{}),customComponent:n.customComponent,trailingIcon:n.isFreeForm?e(l,{children:e(s,Object.assign({style:{color:r.content.secondary}},{children:"Freeform"}))}):n.trailingIcon?e(t,{children:n.trailingIcon}):e(t,{}),variant:n.disabled?"inactive":n.selected?"selected":"default"})};export{a as MenuItem};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bikdotai/bik-component-library",
3
- "version": "0.0.176",
3
+ "version": "0.0.177",
4
4
  "description": "Bik Component Library",
5
5
  "repository": {
6
6
  "type": "git",