@bikdotai/bik-component-library 0.0.716 → 0.0.717

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("../../_virtual/_tslib.js"),r=require("../../node_modules/react/jsx-runtime.js"),t=require("react"),o=require("styled-components"),n=require("../tag/Tag.js"),i=require("../../constants/Theme.js"),s=require("../../assets/icons/chevronDown.svg.js"),l=require("../../assets/icons/chevronDownOutline.svg.js"),a=require("../../assets/icons/chevronUpOutline.svg.js"),d=require("../TypographyStyle.js"),u=require("./DropdownPopover/index.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=c(o);const g=o=>{var{placeHolder:c,onSelect:p,backgroundColor:g}=o,x=e.__rest(o,["placeHolder","onSelect","backgroundColor"]);const[j,v]=t.useState(!1),f=t.useRef();return r.jsxRuntimeExports.jsx(u.DropdownPopover,Object.assign({ref:f,onDropdownVisbilityChange:e=>v(e),onSelect:function(e){null==p||p(e)}},x,{children:"default"==x.inputType?r.jsxRuntimeExports.jsxs(h,Object.assign({width:null==x?void 0:x.width,height:null==x?void 0:x.height,backgroundColor:g},{children:[r.jsxRuntimeExports.jsx(d.BodySecondary,Object.assign({color:i.COLORS.content.placeholder},{children:c})),r.jsxRuntimeExports.jsx(s.default,{style:{transform:j?"rotate(180deg)":"rotate(0deg)"},width:20,height:20,color:i.COLORS.content.primary})]})):r.jsxRuntimeExports.jsx(n.Tag,{tagText:null!=c?c:"",theme:"light",type:"neutral",variant:"regular",TrailingIcon:j?a.default:l.default})}))};g.displayName="ChipDropdown";const h=p.default.div`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),r=require("../../node_modules/react/jsx-runtime.js"),t=require("react"),o=require("styled-components"),n=require("../tag/Tag.js"),i=require("../../constants/Theme.js"),s=require("../../assets/icons/chevronDown.svg.js"),l=require("../../assets/icons/chevronDownOutline.svg.js"),d=require("../../assets/icons/chevronUpOutline.svg.js"),u=require("../TypographyStyle.js"),a=require("./DropdownPopover/index.js");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=p(o);const g=o=>{var p,c,{placeHolder:g,onSelect:x,backgroundColor:j}=o,v=e.__rest(o,["placeHolder","onSelect","backgroundColor"]);const[y,f]=t.useState(!1),b=t.useRef();return r.jsxRuntimeExports.jsx(a.DropdownPopover,Object.assign({ref:b,onDropdownVisbilityChange:e=>f(e),onSelect:function(e){null==x||x(e)}},v,{children:"default"==v.inputType?r.jsxRuntimeExports.jsxs(h,Object.assign({width:null===(p=null==v?void 0:v.inputStyle)||void 0===p?void 0:p.width,height:null===(c=null==v?void 0:v.inputStyle)||void 0===c?void 0:c.height,backgroundColor:j},{children:[r.jsxRuntimeExports.jsx(u.BodySecondary,Object.assign({color:i.COLORS.content.placeholder},{children:g})),r.jsxRuntimeExports.jsx(s.default,{style:{transform:y?"rotate(180deg)":"rotate(0deg)"},width:20,height:20,color:i.COLORS.content.primary})]})):r.jsxRuntimeExports.jsx(n.Tag,{tagText:null!=g?g:"",theme:"light",type:"neutral",variant:"regular",TrailingIcon:y?d.default:l.default})}))};g.displayName="ChipDropdown";const h=c.default.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  width: ${e=>(null==e?void 0:e.width)?e.width:"240px"};
@@ -1,4 +1,4 @@
1
- import{__rest as o}from"../../_virtual/_tslib.js";import{j as r}from"../../node_modules/react/jsx-runtime.js";import{useState as t,useRef as e}from"react";import i from"styled-components";import{Tag as n}from"../tag/Tag.js";import{COLORS as s}from"../../constants/Theme.js";import l from"../../assets/icons/chevronDown.svg.js";import a from"../../assets/icons/chevronDownOutline.svg.js";import d from"../../assets/icons/chevronUpOutline.svg.js";import{BodySecondary as c}from"../TypographyStyle.js";import{DropdownPopover as p}from"./DropdownPopover/index.js";const g=i=>{var{placeHolder:g,onSelect:m,backgroundColor:u}=i,j=o(i,["placeHolder","onSelect","backgroundColor"]);const[f,x]=t(!1),v=e();return r.jsx(p,Object.assign({ref:v,onDropdownVisbilityChange:o=>x(o),onSelect:function(o){null==m||m(o)}},j,{children:"default"==j.inputType?r.jsxs(h,Object.assign({width:null==j?void 0:j.width,height:null==j?void 0:j.height,backgroundColor:u},{children:[r.jsx(c,Object.assign({color:s.content.placeholder},{children:g})),r.jsx(l,{style:{transform:f?"rotate(180deg)":"rotate(0deg)"},width:20,height:20,color:s.content.primary})]})):r.jsx(n,{tagText:null!=g?g:"",theme:"light",type:"neutral",variant:"regular",TrailingIcon:f?d:a})}))};g.displayName="ChipDropdown";const h=i.div`
1
+ import{__rest as o}from"../../_virtual/_tslib.js";import{j as t}from"../../node_modules/react/jsx-runtime.js";import{useState as r,useRef as e}from"react";import i from"styled-components";import{Tag as n}from"../tag/Tag.js";import{COLORS as l}from"../../constants/Theme.js";import s from"../../assets/icons/chevronDown.svg.js";import d from"../../assets/icons/chevronDownOutline.svg.js";import a from"../../assets/icons/chevronUpOutline.svg.js";import{BodySecondary as p}from"../TypographyStyle.js";import{DropdownPopover as c}from"./DropdownPopover/index.js";const g=i=>{var g,m,{placeHolder:u,onSelect:j,backgroundColor:f}=i,v=o(i,["placeHolder","onSelect","backgroundColor"]);const[x,y]=r(!1),b=e();return t.jsx(c,Object.assign({ref:b,onDropdownVisbilityChange:o=>y(o),onSelect:function(o){null==j||j(o)}},v,{children:"default"==v.inputType?t.jsxs(h,Object.assign({width:null===(g=null==v?void 0:v.inputStyle)||void 0===g?void 0:g.width,height:null===(m=null==v?void 0:v.inputStyle)||void 0===m?void 0:m.height,backgroundColor:f},{children:[t.jsx(p,Object.assign({color:l.content.placeholder},{children:u})),t.jsx(s,{style:{transform:x?"rotate(180deg)":"rotate(0deg)"},width:20,height:20,color:l.content.primary})]})):t.jsx(n,{tagText:null!=u?u:"",theme:"light",type:"neutral",variant:"regular",TrailingIcon:x?a:d})}))};g.displayName="ChipDropdown";const h=i.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  width: ${o=>(null==o?void 0:o.width)?o.width:"240px"};
@@ -6,7 +6,7 @@ import{__rest as o}from"../../_virtual/_tslib.js";import{j as r}from"../../node_
6
6
  gap: 8px;
7
7
  justify-content: space-between;
8
8
  align-items: center;
9
- border: 1px solid ${s.stroke.primary};
9
+ border: 1px solid ${l.stroke.primary};
10
10
  border-radius: 4px;
11
11
  padding-left: 8px;
12
12
  padding-right: 8px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bikdotai/bik-component-library",
3
- "version": "0.0.716",
3
+ "version": "0.0.717",
4
4
  "description": "Bik Component Library",
5
5
  "repository": {
6
6
  "type": "git",