@bikdotai/bik-component-library 0.0.536-beta.tp-1 → 0.0.536-beta.tp-2

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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const Menus: ({
2
3
  displayName: string;
3
4
  key: number;
@@ -8,4 +8,4 @@
8
8
  justify-content: center;
9
9
  padding: 10px;
10
10
  }
11
- `;exports.QueryParamsComponent=o=>{const{params:c,onChange:p}=o,[x,h]=s.useState(c.length>0),[j,y]=s.useState(c);return e.jsxs(d,{children:[e.jsx(a.CheckBox,{isChecked:x,label:"Add custom query params",onValueChange:e=>{y([]),p([]),h(e)}}),x&&j.map(((n,s)=>e.jsxs("div",Object.assign({style:{display:"flex",gap:"4px"}},{children:[e.jsx(i.Input,{placeholder:"Key",value:n.key,onChangeText:e=>{j[s].key=e,p([...j])}}),e.jsx(i.Input,{placeholder:"Value",value:n.value,onChangeText:e=>{j[s].value=e,p([...j])}}),e.jsx(u.IconButton,{Icon:t.default,width:20,height:20,onClick:()=>{const e=j.filter(((e,t)=>t!=s));y(e),p(e)}})]}),s))),x&&c.length<10&&e.jsx(r.Button,{buttonText:"Add Params",buttonType:"dashRegular",style:{display:"flex",alignItems:"center",justifyContent:"center"},IconComponent:()=>e.jsx("div",Object.assign({style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px"}},{children:e.jsx(n.default,{width:16,height:16,color:l.COLORS.content.primary})})),onClick:()=>{const e=[...j,{key:"",value:""}];y(e),p(e)}})]})};
11
+ `;exports.QueryParamsComponent=o=>{const{params:c,onChange:p}=o,[x,h]=s.useState(c.length>0),[j,y]=s.useState(c);return e.jsxs(d,{children:[e.jsx(a.CheckBox,{isChecked:x,label:"Add custom query params",onValueChange:e=>{y([]),p([]),h(e)}}),x&&j.map(((n,s)=>e.jsxs("div",Object.assign({style:{display:"flex",gap:"4px"}},{children:[e.jsx(i.Input,{placeholder:"Key",value:n.key,onChangeText:e=>{n.key=e,p([...j])}}),e.jsx(i.Input,{placeholder:"Value",value:n.value,onChangeText:e=>{n.value=e,p([...j])}}),e.jsx(u.IconButton,{Icon:t.default,width:20,height:20,onClick:()=>{const e=j.filter(((e,t)=>t!=s));y(e),p(e)}})]}),s))),x&&c.length<10&&e.jsx(r.Button,{buttonText:"Add Params",buttonType:"dashRegular",style:{display:"flex",alignItems:"center",justifyContent:"center"},IconComponent:()=>e.jsx("div",Object.assign({style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px"}},{children:e.jsx(n.default,{width:16,height:16,color:l.COLORS.content.primary})})),onClick:()=>{const e=[...j,{key:"",value:""}];y(e),p(e)}})]})};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const Menus: ({
2
3
  displayName: string;
3
4
  key: number;
@@ -1,4 +1,4 @@
1
- import{jsxs as e,jsx as t}from"react/jsx-runtime";import n from"../../../assets/icons/delete.svg.js";import o from"../../../assets/icons/PlusIcon.js";import{useState as s}from"react";import i from"styled-components";import{Button as r}from"../../button/Button.js";import{CheckBox as l}from"../../checkBox/CheckBox.js";import{IconButton as a}from"../../icon-button/IconButton.js";import{Input as c}from"../../input/Input.js";import{COLORS as p}from"../../../constants/Theme.js";const m=i=>{const{params:m,onChange:u}=i,[h,f]=s(m.length>0),[y,g]=s(m);return e(d,{children:[t(l,{isChecked:h,label:"Add custom query params",onValueChange:e=>{g([]),u([]),f(e)}}),h&&y.map(((o,s)=>e("div",Object.assign({style:{display:"flex",gap:"4px"}},{children:[t(c,{placeholder:"Key",value:o.key,onChangeText:e=>{y[s].key=e,u([...y])}}),t(c,{placeholder:"Value",value:o.value,onChangeText:e=>{y[s].value=e,u([...y])}}),t(a,{Icon:n,width:20,height:20,onClick:()=>{const e=y.filter(((e,t)=>t!=s));g(e),u(e)}})]}),s))),h&&m.length<10&&t(r,{buttonText:"Add Params",buttonType:"dashRegular",style:{display:"flex",alignItems:"center",justifyContent:"center"},IconComponent:()=>t("div",Object.assign({style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px"}},{children:t(o,{width:16,height:16,color:p.content.primary})})),onClick:()=>{const e=[...y,{key:"",value:""}];g(e),u(e)}})]})},d=i.div`
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import n from"../../../assets/icons/delete.svg.js";import o from"../../../assets/icons/PlusIcon.js";import{useState as s}from"react";import i from"styled-components";import{Button as r}from"../../button/Button.js";import{CheckBox as l}from"../../checkBox/CheckBox.js";import{IconButton as a}from"../../icon-button/IconButton.js";import{Input as c}from"../../input/Input.js";import{COLORS as p}from"../../../constants/Theme.js";const m=i=>{const{params:m,onChange:u}=i,[h,f]=s(m.length>0),[y,g]=s(m);return e(d,{children:[t(l,{isChecked:h,label:"Add custom query params",onValueChange:e=>{g([]),u([]),f(e)}}),h&&y.map(((o,s)=>e("div",Object.assign({style:{display:"flex",gap:"4px"}},{children:[t(c,{placeholder:"Key",value:o.key,onChangeText:e=>{o.key=e,u([...y])}}),t(c,{placeholder:"Value",value:o.value,onChangeText:e=>{o.value=e,u([...y])}}),t(a,{Icon:n,width:20,height:20,onClick:()=>{const e=y.filter(((e,t)=>t!=s));g(e),u(e)}})]}),s))),h&&m.length<10&&t(r,{buttonText:"Add Params",buttonType:"dashRegular",style:{display:"flex",alignItems:"center",justifyContent:"center"},IconComponent:()=>t("div",Object.assign({style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px"}},{children:t(o,{width:16,height:16,color:p.content.primary})})),onClick:()=>{const e=[...y,{key:"",value:""}];g(e),u(e)}})]})},d=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 12px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bikdotai/bik-component-library",
3
- "version": "0.0.536-beta.tp-1",
3
+ "version": "0.0.536-beta.tp-2",
4
4
  "description": "Bik Component Library",
5
5
  "repository": {
6
6
  "type": "git",