@bothub-chat/ui 2.50.1-feat-prompt-queue-2990fb0d-8410-4dd4-8b55-95da4922bfbd → 2.50.1-feat-prompt-queue-752a2161-7b7e-4a78-966f-75a62754c0b8

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 CHANGED
@@ -1,24 +1,24 @@
1
- <p align="center">
2
- <img src="https://bothub.chat/icon-144x144.png" />
3
- </p>
4
- <h1 align="center">Bothub Chat</h1>
5
- <p align="center">UI Components from Bothub.</p>
6
- <p align="center">
7
- <a href="https://bothub-docs.vercel.app/">Documentation</a>
8
- </p>
9
-
10
- <h2>Installing</h2>
11
- <p>Preliminary requirements:</p>
12
- <ul>
13
- <li><a href="https://nodejs.org/">Node.js</a> >= <code>18.12.1</code></li>
14
- <li><a href="https://www.npmjs.com/">npm</a> >= <code>9.1.2</code></li>
15
- <li><a href="https://yarnpkg.com/">yarn</a> >= <code>1.22.19</code></li>
16
- </ul>
17
- <p>Installing peer dependencies:</p>
18
- <pre>yarn add framer-motion@10.16.3 react@18.2.0 react-dom@18.2.0 styled-components@6.0.7 react-helmet@6.1.0 normalize.css@8.0.1 react-slider@2.0.6 react-markdown@8.0.5 highlight.js@11.9.0 react-highlight@0.15.0</pre>
19
- <p>Installing package:</p>
20
- <pre>yarn add @bothub-chat/ui</pre>
21
-
22
-
23
- <h2>License</h2>
1
+ <p align="center">
2
+ <img src="https://bothub.chat/icon-144x144.png" />
3
+ </p>
4
+ <h1 align="center">Bothub Chat</h1>
5
+ <p align="center">UI Components from Bothub.</p>
6
+ <p align="center">
7
+ <a href="https://bothub-docs.vercel.app/">Documentation</a>
8
+ </p>
9
+
10
+ <h2>Installing</h2>
11
+ <p>Preliminary requirements:</p>
12
+ <ul>
13
+ <li><a href="https://nodejs.org/">Node.js</a> >= <code>18.12.1</code></li>
14
+ <li><a href="https://www.npmjs.com/">npm</a> >= <code>9.1.2</code></li>
15
+ <li><a href="https://yarnpkg.com/">yarn</a> >= <code>1.22.19</code></li>
16
+ </ul>
17
+ <p>Installing peer dependencies:</p>
18
+ <pre>yarn add framer-motion@10.16.3 react@18.2.0 react-dom@18.2.0 styled-components@6.0.7 react-helmet@6.1.0 normalize.css@8.0.1 react-slider@2.0.6 react-markdown@8.0.5 highlight.js@11.9.0 react-highlight@0.15.0</pre>
19
+ <p>Installing package:</p>
20
+ <pre>yarn add @bothub-chat/ui</pre>
21
+
22
+
23
+ <h2>License</h2>
24
24
  <p><a href="https://github.com/matbea-dev/bothub/blob/main/LICENSE">MIT</a></p>
@@ -12,8 +12,9 @@ export type BadgeSelectDropdownProps = {
12
12
  search?: boolean;
13
13
  contentWidth?: number;
14
14
  searchPlaceholder?: string;
15
+ openedModel?: string;
15
16
  onChange?: SelectFieldChangeEventHandler;
16
17
  onValueChange?: SelectFieldValueChangeEventHandler;
17
18
  } & Omit<UseSelectFieldProps, 'onChange' | 'multiple' | 'onValueChange' | 'value'>;
18
- export declare const BadgeSelectDropdown: import("react").MemoExoticComponent<({ options, value: initialValue, variant, colorButtonOpened, className, compactWidth, modalStyles, size, search, contentWidth, searchPlaceholder, ...useSelectFieldProps }: BadgeSelectDropdownProps) => import("react/jsx-runtime").JSX.Element>;
19
+ export declare const BadgeSelectDropdown: import("react").MemoExoticComponent<({ options, value: initialValue, variant, colorButtonOpened, className, compactWidth, modalStyles, size, search, contentWidth, searchPlaceholder, openedModel, ...useSelectFieldProps }: BadgeSelectDropdownProps) => import("react/jsx-runtime").JSX.Element>;
19
20
  export * from './styled';
@@ -1 +1 @@
1
- import{__rest as e}from"tslib";import{jsxs as t,Fragment as o,jsx as r}from"react/jsx-runtime";import{memo as l}from"react";import{BadgeSelectDropdownTrigger as s,BadgeSelectDropdownSpanStyled as i,BadgeSelectDropdownTogglerArrow as a}from"./styled.js";import"../select-field/styled.js";import"../skeleton/index.js";import{SelectModal as c}from"../select-field/select-modal/index.js";import"../icon/styled.js";import"@react-spring/web";import"react-markdown";import"react-dom";import"../portal/styled.js";import"../tooltip/styled.js";import"../tooltip/arrow/styled.js";import"../../theme/index.js";import"../tooltip/context.js";import"../select-field/context.js";import{useSelectField as n}from"../select-field/useSelectField.js";import{useTheme as m}from"../../theme/hook.js";const p=l(l=>{var{options:p,value:d,variant:h="primary",colorButtonOpened:u,className:j,compactWidth:y,modalStyles:f,size:g="small",search:v,contentWidth:O,searchPlaceholder:b}=l,x=e(l,["options","value","variant","colorButtonOpened","className","compactWidth","modalStyles","size","search","contentWidth","searchPlaceholder"]);const k=m(),W=n(Object.assign(Object.assign({},x),{value:d,multiple:!1})),{isOpen:S,triggerRef:C,value:$,setValue:w,handleInputClick:z}=W,B=e(W,["isOpen","triggerRef","value","setValue","handleInputClick"]);let N="";return"string"==typeof $&&(N=$),$&&"string"!=typeof $&&!Array.isArray($)&&$.label&&(N=$.label),t(o,{children:[t(s,{ref:C,$active:S,$variant:h,$colorButtonOpened:u,type:"button",onClick:e=>z(!1,e),className:j,children:[r(i,{children:N}),r(a,{$open:S})]}),r(c,Object.assign({data:p,isOpen:S,setValue:w,value:$,compactWidth:y,selectedColor:k.colors.grayScale.gray2,modalStyles:f,size:g,search:v,contentWidth:O,searchPlaceholder:b},B))]})});export{p as BadgeSelectDropdown,i as BadgeSelectDropdownSpanStyled,a as BadgeSelectDropdownTogglerArrow,s as BadgeSelectDropdownTrigger};
1
+ import{__rest as e}from"tslib";import{jsxs as t,Fragment as o,jsx as r}from"react/jsx-runtime";import{memo as l}from"react";import{BadgeSelectDropdownTrigger as s,BadgeSelectDropdownSpanStyled as i,BadgeSelectDropdownTogglerArrow as a}from"./styled.js";import"../select-field/styled.js";import"../skeleton/index.js";import{SelectModal as c}from"../select-field/select-modal/index.js";import"../icon/styled.js";import"@react-spring/web";import"react-markdown";import"react-dom";import"../portal/styled.js";import"../tooltip/styled.js";import"../tooltip/arrow/styled.js";import"../../theme/index.js";import"../tooltip/context.js";import"../select-field/context.js";import{useSelectField as n}from"../select-field/useSelectField.js";import{useTheme as p}from"../../theme/hook.js";const d=l(l=>{var{options:d,value:m,variant:h="primary",colorButtonOpened:u,className:j,compactWidth:y,modalStyles:f,size:g="small",search:v,contentWidth:O,searchPlaceholder:b,openedModel:x}=l,k=e(l,["options","value","variant","colorButtonOpened","className","compactWidth","modalStyles","size","search","contentWidth","searchPlaceholder","openedModel"]);const W=p(),S=n(Object.assign(Object.assign({},k),{value:m,multiple:!1})),{isOpen:C,triggerRef:$,value:w,setValue:z,handleInputClick:B}=S,M=e(S,["isOpen","triggerRef","value","setValue","handleInputClick"]);let N="";return"string"==typeof w&&(N=w),w&&"string"!=typeof w&&!Array.isArray(w)&&w.label&&(N=w.label),t(o,{children:[t(s,{ref:$,$active:C,$variant:h,$colorButtonOpened:u,type:"button",onClick:e=>B(!1,e),className:j,children:[r(i,{children:N}),r(a,{$open:C})]}),r(c,Object.assign({data:d,isOpen:C,setValue:z,value:w,compactWidth:y,selectedColor:W.colors.grayScale.gray2,modalStyles:f,size:g,search:v,contentWidth:O,searchPlaceholder:b,openedModel:x},M))]})});export{d as BadgeSelectDropdown,i as BadgeSelectDropdownSpanStyled,a as BadgeSelectDropdownTogglerArrow,s as BadgeSelectDropdownTrigger};