@bothub-chat/ui 2.28.3-develop-e1b6ebcc-ecf7-49cb-b671-68a17f2df554 → 2.28.3-develop-bec4cbb1-e1ac-43b0-b9f4-32a093d73239
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 +23 -23
- package/dist/components/scrollable-tabs/index.d.ts +8 -10
- package/dist/components/scrollable-tabs/index.js +1 -1
- package/dist/components/scrollable-tabs/styled.d.ts +9 -2
- package/dist/components/scrollable-tabs/styled.js +28 -5
- package/dist/components/scrollable-tabs/types.d.ts +8 -0
- package/dist/components/select-field/filterData.d.ts +2 -0
- package/dist/components/select-field/filterData.js +1 -0
- package/dist/components/select-field/index.d.ts +8 -0
- package/dist/components/select-field/index.js +1 -1
- package/dist/components/select-field/option/collapse/index.js +1 -1
- package/dist/components/select-field/option/collapse/styled.d.ts +7 -275
- package/dist/components/select-field/option/collapse/styled.js +4 -4
- package/dist/components/select-field/option/list/index.js +1 -1
- package/dist/components/select-field/option/list/styled.d.ts +827 -0
- package/dist/components/select-field/option/list/styled.js +1 -1
- package/dist/components/select-field/styled.js +3 -3
- package/dist/components/select-field/types.d.ts +5 -2
- package/dist/components/sidebar/styled.d.ts +2 -1
- package/dist/components/slider/index.d.ts +3 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/styled.d.ts +5 -273
- package/dist/components/slider/styled.js +1 -1
- package/dist/components/slider/types.d.ts +1 -0
- package/dist/components/slider/useSlider.js +1 -1
- package/dist/components/text-field/index.d.ts +4 -2
- package/dist/components/text-field/index.js +1 -1
- package/dist/components/text-field/styled.d.ts +6 -301
- package/dist/components/text-field/styled.js +18 -16
- package/dist/components/text-field/types.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/utils/hasSubstring/index.d.ts +1 -0
- package/dist/utils/hasSubstring/index.js +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +68 -68
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>
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ITab, Variant } from './types';
|
|
2
2
|
type ScrollableTabsProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}[];
|
|
9
|
-
selectedTabId?: string;
|
|
3
|
+
variant?: Variant;
|
|
4
|
+
component: 'a' | 'button';
|
|
5
|
+
tabs: ITab[];
|
|
6
|
+
defaultTabId?: string;
|
|
7
|
+
onClick?(id: string | null): void;
|
|
10
8
|
};
|
|
11
|
-
export declare const ScrollableTabs: ({ tabs,
|
|
12
|
-
export {};
|
|
9
|
+
export declare const ScrollableTabs: ({ tabs, variant, component, defaultTabId, onClick }: ScrollableTabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export type { ITab } from './types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as r,jsxs as i}from"react/jsx-runtime";import{useState as a}from"react";import{ScrollableTabsTab as e,ScrollableTabsTabLabel as t}from"./styled.js";import{Slider as n}from"../slider/index.js";const o=({tabs:o,variant:m="primary",component:l="a",defaultTabId:c,onClick:s})=>{const[d,p]=a(c||null);return r(n,{arrowsSize:"primary"===m?"md":"sm",gap:"primary"===m?20:8,children:o.map((({id:a,label:n,icon:o,href:c})=>i(e,{as:l,$variant:m,$selected:a===d,onClick:()=>(r=>{const i=r===d?null:r;p(i),s&&s(i)})(a),href:"a"===l?c:void 0,children:[o,r(t,{$variant:m,children:n})]},a)))})};export{o as ScrollableTabs};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { Variant } from './types';
|
|
2
|
+
type VariantProps = {
|
|
3
|
+
$variant: Variant;
|
|
4
|
+
};
|
|
5
|
+
type ScrollableTabsTabProps = {
|
|
2
6
|
$selected?: boolean;
|
|
3
|
-
}
|
|
7
|
+
} & VariantProps;
|
|
8
|
+
export declare const ScrollableTabsTab: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, ScrollableTabsTabProps>>;
|
|
4
9
|
export declare const ScrollableTabsTabLabel: import("styled-components").IStyledComponent<"web", {
|
|
5
10
|
children?: import("react").ReactNode;
|
|
6
11
|
variant?: import("../typography").TypographyVariant | undefined;
|
|
@@ -276,4 +281,6 @@ export declare const ScrollableTabsTabLabel: import("styled-components").IStyled
|
|
|
276
281
|
component?: import("../typography").TypographyComponent | undefined;
|
|
277
282
|
fullWidth?: boolean | undefined;
|
|
278
283
|
ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
284
|
+
$variant: Variant;
|
|
279
285
|
}>;
|
|
286
|
+
export {};
|
|
@@ -1,5 +1,28 @@
|
|
|
1
|
-
import{styled as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import{styled as r,css as e}from"styled-components";import{Typography as a}from"../typography/index.js";const o=r.a.withConfig({displayName:"styled__ScrollableTabsTab",componentId:"sc-mv61cj-0"})(["all:unset;cursor:pointer;display:flex;align-items:center;flex-shrink:0;position:relative;",";&:before{content:'';display:block;position:absolute;inset:0;transition:background 0.2s;",";}&:hover:before{background-color:","33;}svg path{stroke:",";}& > *{position:relative;z-index:1;}"],(({$variant:r})=>"primary"===r?e`
|
|
2
|
+
padding: 12.5px 16px;
|
|
3
|
+
gap: 16px;
|
|
4
|
+
|
|
5
|
+
svg {
|
|
6
|
+
width: 24px;
|
|
7
|
+
height: 24px;
|
|
8
|
+
}
|
|
9
|
+
`:e`
|
|
10
|
+
padding: 10px 18px;
|
|
11
|
+
gap: 10px;
|
|
12
|
+
|
|
13
|
+
svg {
|
|
14
|
+
width: 18px;
|
|
15
|
+
height: 18px;
|
|
16
|
+
}
|
|
17
|
+
`),(({$variant:r,$selected:a})=>a?e`
|
|
18
|
+
border-radius: ${()=>"primary"===r?16:8}px;
|
|
19
|
+
background: linear-gradient(90deg, #1c64f2 0%, #d41cf2 100%);
|
|
20
|
+
opacity: 0.2;
|
|
21
|
+
`:"primary"===r?e`
|
|
22
|
+
border-radius: 16px;
|
|
23
|
+
border: 1px solid ${({theme:r})=>r.colors.grayScale.gray3};
|
|
24
|
+
background-color: ${({theme:r})=>r.colors.base.black};
|
|
25
|
+
`:"secondary"===r?e`
|
|
26
|
+
border-radius: 8px;
|
|
27
|
+
background-color: ${({theme:r})=>r.colors.grayScale.gray7};
|
|
28
|
+
`:void 0),(({theme:r})=>r.colors.accent.primary),(({theme:r})=>"light"===r.mode?r.default.colors.base.black:r.default.colors.base.white)),t=r(a).attrs((r=>({variant:"primary"===r.$variant?"body-l-regular":"button-sm"}))).withConfig({displayName:"styled__ScrollableTabsTabLabel",componentId:"sc-mv61cj-1"})([""]);export{o as ScrollableTabsTab,t as ScrollableTabsTabLabel};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"react";import"unified";import"remark-parse";import"remark-gfm";import"mdast-util-to-markdown";import{hasSubstring as r}from"../../utils/hasSubstring/index.js";const t=(t,i)=>t.filter((t=>"string"==typeof t?r(t,i):!("label"in t)||!t.label||r(t.label,i)));export{t as filterData};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SelectFieldChangeEventHandler, SelectFieldData, SelectFieldDataItem, SelectFieldInputChangeEventHandler, SelectFieldInputType, SelectFieldMultiChangeEventHandler, SelectFieldMultiValueChangeEventHandler, SelectFieldOptionClickEventHandler, SelectFieldPlacement, SelectFieldSize, SelectFieldValueChangeEventHandler } from './types';
|
|
3
|
+
import { ITab } from '../scrollable-tabs/types';
|
|
3
4
|
export interface SelectFieldDefaultProps {
|
|
4
5
|
multiple?: false;
|
|
5
6
|
value?: SelectFieldDataItem | null;
|
|
@@ -37,6 +38,13 @@ export type SelectFieldProps = (SelectFieldDefaultProps | SelectFieldMultiProps)
|
|
|
37
38
|
clearable?: boolean;
|
|
38
39
|
loading?: boolean;
|
|
39
40
|
padding?: [number, number];
|
|
41
|
+
tabs?: {
|
|
42
|
+
tabs: ITab[];
|
|
43
|
+
onTabClick?: (id: string) => void;
|
|
44
|
+
defaultTabId?: string;
|
|
45
|
+
};
|
|
46
|
+
search?: boolean;
|
|
47
|
+
searchPlaceholder?: string;
|
|
40
48
|
onOptionClick?: SelectFieldOptionClickEventHandler;
|
|
41
49
|
onInputChange?: SelectFieldInputChangeEventHandler;
|
|
42
50
|
onSelectClick?: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsx as l,jsxs as t,Fragment as n}from"react/jsx-runtime";import{useCallback as o,useState as i,useRef as r,useEffect as a}from"react";import{SelectFieldStyled as c,SelectFieldLabel as s,SelectFieldInput as d,SelectFieldInputLeftSide as u,SelectFieldSearchIcon as p,SelectFieldInputNative as h,SelectFieldPlaceholder as b,SelectFieldValue as m,SelectFieldValueText as f,SelectFieldValueColor as g,SelectFieldColorValueText as v,SelectFieldValues as y,SelectFieldValueList as $,SelectFieldValueListItem as C,SelectFieldInputSide as j,SelectFieldClearButton as x,SelectFieldLoader as k,SelectFieldArrow as w,SelectFieldSkeleton as S,SelectFieldBlock as A,SelectFieldBlockPositionWrapper as O,SelectFieldBlockContent as z,SelectFieldGroups as L,SelectFieldGroup as E,SelectFieldErrorText as V}from"./styled.js";import"../../theme/index.js";import{Skeleton as W}from"../skeleton/index.js";import{Portal as P}from"../portal/index.js";import{IconProvider as T}from"../icon/context.js";import"../icon/styled.js";import{Tooltip as F}from"../tooltip/index.js";import{SelectFieldProvider as I}from"./context.js";export{SelectFieldConsumer,SelectFieldContext,useSelectField}from"./context.js";import{SelectFieldOptions as M}from"./option/list/index.js";import"./option/collapse/styled.js";import{useTheme as N}from"../../theme/hook.js";import{TooltipConsumer as X}from"../tooltip/context.js";const Y=Y=>{var{className:B,label:D,value:H,placeholder:R,data:Z=[],fullWidth:q=!1,contentWidth:G,error:J,disabled:K=!1,skeleton:Q=!1,blur:U=!1,size:_="small",disableSelect:ee=!1,placement:le="bottom-left",disableScrollbar:te=!1,before:ne,after:oe,loading:ie=!1,enableInput:re=!1,inputType:ae="text",inputValue:ce,clearable:se=!1,onOptionClick:de,onInputChange:ue,onSelectClick:pe,onClose:he,onPointerLeave:be,children:me}=Y,fe=e(Y,["className","label","value","placeholder","data","fullWidth","contentWidth","error","disabled","skeleton","blur","size","disableSelect","placement","disableScrollbar","before","after","loading","enableInput","inputType","inputValue","clearable","onOptionClick","onInputChange","onSelectClick","onClose","onPointerLeave","children"]);const ge=N(),{multiple:ve=!1}=fe,ye=o((e=>{var l,t,n,o,i,r;if(fe.multiple&&Array.isArray(e)){const n=e;null===(l=fe.onChange)||void 0===l||l.call(fe,n),null===(t=fe.onValueChange)||void 0===t||t.call(fe,n.map((e=>"string"==typeof e?e:"string"==typeof e.value?e.value:"")).filter((e=>!!e)))}else fe.multiple||Array.isArray(e)||(null===(n=fe.onChange)||void 0===n||n.call(fe,e),e?"string"==typeof e?null===(o=fe.onValueChange)||void 0===o||o.call(fe,e):"string"==typeof e.value&&(null===(i=fe.onValueChange)||void 0===i||i.call(fe,e.value)):null===(r=fe.onValueChange)||void 0===r||r.call(fe,null))}),[fe.multiple,fe.onChange,fe.onValueChange]),$e=o((e=>{null==ue||ue(e)}),[ue]);let[Ce,je]=i(ve?[]:null);void 0!==H&&([Ce,je]=[H,ye]);let[xe,ke]=i("");void 0!==ce&&([xe,ke]=[ce,$e]);const[we,Se]=i(!1),[Ae,Oe]=i(!1),[ze,Le]=i(0),[Ee,Ve]=i(0),[We,Pe]=i(0),[Te,Fe]=i(le),Ie=o((()=>{Oe(!1),null==he||he()}),[]),Me=o((e=>{var l;"object"==typeof e&&e.disabled||("object"==typeof e&&e.noSelect?null===(l=null==e?void 0:e.onClick)||void 0===l||l.call(e,e):(null==de||de(e),ee||(ve&&Array.isArray(Ce)?je([...new Set([...Ce,e])]):je(e)),Ie()))}),[Ce,je,ve,de,ee]),Ne=o(((e,l)=>{l.stopPropagation(),Array.isArray(Ce)&&je("string"==typeof e?Ce.filter((l=>"string"==typeof l?l!==e:l.value!==e)):Ce.filter((l=>"string"==typeof l?l!==e.value:l.value!==e.value))),Ie()}),[Ce]),Xe=o(((e,l)=>{null==pe||pe();const t=De.current;if(!t||K)return;e&&l.stopPropagation();const n=window.innerHeight||document.documentElement.clientHeight,o=t.getBoundingClientRect(),{width:i,height:r}=o;let a=Te;a=o.top-186<0?"bottom-left":o.bottom+186>n?"top-right"===le?"top-right":"top-left":le;let c=0,s=0;switch(a){case"bottom-left":c=o.left+window.scrollX,s=o.top+window.scrollY+r;break;case"top-left":c=o.left+window.scrollX,s=o.top+window.scrollY;break;case"top-right":c=o.left+window.scrollX+i,s=o.top+window.scrollY}Le(c),Ve(s),Pe(i),Fe(a),Oe(!!e||!Ae)}),[K,Ae,Te,le,pe]),Ye=o((e=>{ke(e.currentTarget.value)}),[ke]),Be=o((()=>{je(null),ke("")}),[je,ke]),De=r(null),He=r(null);return a((()=>{if(Ae){const e=e=>{const l=De.current,t=He.current;null!==l&&null!==t&&(l.contains(e.target)||t.contains(e.target)||Ie())};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}}),[Ae]),a((()=>{if(Ae){const e=()=>{Ie()};return document.addEventListener("scroll",e),()=>{document.removeEventListener("scroll",e)}}}),[Ae]),l(I,{selectRef:De,handleSelectClick:Xe.bind(null,!1),children:t(c,{$fullWidth:q,$disabled:K,className:B,onPointerLeave:be,children:[D&&Q&&l(s,{children:l(W,{width:100})}),"string"==typeof D&&!Q&&l(s,{children:D}),"string"!=typeof D&&!Q&&D,me&&me,!me&&t(n,{children:[!Q&&t(d,{$open:Ae,$error:!!J,$disabled:K,$skeleton:!1,$blur:U,$loading:ie,$multiple:ve&&Array.isArray(Ce)&&Ce.length>0,ref:De,onClick:Xe.bind(null,!1),children:[t(u,{children:[(!Ce||Array.isArray(Ce)&&0===Ce.length)&&t(n,{children:[re&&"search"===ae&&l(p,{$focus:we}),re&&l(h,{type:ae,value:xe,placeholder:R,disabled:K,onClick:Xe.bind(null,!0),onChange:Ye,onFocus:Se.bind(null,!0),onBlur:Se.bind(null,!1)}),!re&&l(b,{$open:Ae,children:R})]}),"string"==typeof Ce&&""!==Ce&&l(m,{children:l(f,{children:Ce})}),Ce&&"object"==typeof Ce&&!Array.isArray(Ce)&&t(m,{children:[Ce.icon&&l(T,{fill:ge.colors.base.white,size:18,children:Ce.icon}),Ce.color&&l(g,{$color:Ce.color}),Ce.label&&l(F,{label:Ce.label,placement:"top-left",disabled:Ce.label.length<=128,children:l(X,{children:({handleTooltipMouseEnter:e,handleTooltipMouseLeave:l})=>t(v,{onMouseEnter:e,onMouseLeave:l,children:[Ce.label&&Ce.label.slice(0,64),Ce.label&&Ce.label.length>64&&"..."]})})}),!Ce.label&&Ce.value&&l(v,{children:Ce.value})]}),Array.isArray(Ce)&&Ce.length>0&&l(y,{children:l($,{children:Ce.map(((e,t)=>{var n,o,i;return"string"==typeof e?l(C,{onDelete:Ne.bind(null,e),children:e},e):l(C,{onDelete:Ne.bind(null,e),children:null!==(n=e.label)&&void 0!==n?n:e.value},null!==(i=null!==(o=e.id)&&void 0!==o?o:e.value)&&void 0!==i?i:t)}))})})]}),t(j,{children:[(se&&Ce||re&&"search"===ae&&!ie&&xe||re&&Ce)&&l(x,{onClick:Be}),ie&&l(k,{}),l(w,{style:{transform:Ae?"rotateZ(180deg)":"rotateZ(0deg)"}})]})]}),Q&&l(d,{$open:!1,$error:!1,$disabled:!1,$skeleton:!0,$loading:!1,$blur:U,$multiple:!1,ref:De,children:l(S,{})})]}),Ae&&l(P,{children:l(A,{$contentWidth:G,ref:He,style:Object.assign(Object.assign(Object.assign(Object.assign({},0!==ze&&Object.assign(Object.assign({},"top-right"!==Te&&{left:`${ze}px`}),"top-right"===Te&&Object.assign(Object.assign({},void 0===G&&{left:`calc(${ze}px - ${We})`}),"number"==typeof G&&{left:`calc(${ze}px - ${G>We?`calc(var(--bothub-scale, 1) * ${G}px)`:`${We}px`})`}))),0!==Ee&&{top:`${Ee}px`}),void 0===G&&{width:`${We}px`}),"number"==typeof G&&{width:""+(G>We?`calc(var(--bothub-scale, 1) * ${G}px)`:`${We}px`)}),children:l(O,{$blur:U,$placement:Te,children:l(z,{children:t(L,{$size:_,children:[ne&&l(E,{$size:_,$disableScrollbar:te,children:l(M,{value:Ce,data:ne,size:_,disableSelect:ee,onOptionClick:Me})}),l(E,{$size:_,$disableScrollbar:te,children:l(M,{value:Ce,data:Z,size:_,disableSelect:ee,onOptionClick:Me})}),oe&&l(E,{$size:_,$disableScrollbar:te,children:l(M,{value:Ce,data:oe,size:_,disableSelect:ee,onOptionClick:Me})})]})})})})}),J&&l(V,{children:J})]})})};export{Y as SelectField,w as SelectFieldArrow,A as SelectFieldBlock,z as SelectFieldBlockContent,O as SelectFieldBlockPositionWrapper,x as SelectFieldClearButton,v as SelectFieldColorValueText,V as SelectFieldErrorText,E as SelectFieldGroup,L as SelectFieldGroups,d as SelectFieldInput,u as SelectFieldInputLeftSide,h as SelectFieldInputNative,j as SelectFieldInputSide,s as SelectFieldLabel,k as SelectFieldLoader,b as SelectFieldPlaceholder,I as SelectFieldProvider,p as SelectFieldSearchIcon,S as SelectFieldSkeleton,c as SelectFieldStyled,m as SelectFieldValue,g as SelectFieldValueColor,$ as SelectFieldValueList,C as SelectFieldValueListItem,f as SelectFieldValueText,y as SelectFieldValues};
|
|
1
|
+
import{__rest as i}from"tslib";import{jsx as o,jsxs as e,Fragment as n}from"react/jsx-runtime";import{useCallback as s,useState as t,useRef as r,useEffect as c}from"react";import{SelectFieldStyled as d,SelectFieldLabel as l,SelectFieldInput as a,SelectFieldInputLeftSide as p,SelectFieldSearchIcon as m,SelectFieldInputNative as x,SelectFieldPlaceholder as j,SelectFieldValue as u,SelectFieldValueText as h,SelectFieldValueColor as b,SelectFieldColorValueText as g,SelectFieldValues as f,SelectFieldValueList as v,SelectFieldValueListItem as y,SelectFieldInputSide as w,SelectFieldClearButton as $,SelectFieldLoader as k,SelectFieldArrow as C,SelectFieldSkeleton as S,SelectFieldBlock as A,SelectFieldBlockPositionWrapper as z,SelectFieldBlockContent as O,SelectFieldGroups as L,SelectFieldGroup as T,SelectFieldErrorText as I}from"./styled.js";import"../../theme/index.js";import{Skeleton as E}from"../skeleton/index.js";import{Portal as P}from"../portal/index.js";import{IconProvider as V}from"../icon/context.js";import"../icon/styled.js";import{Tooltip as W}from"../tooltip/index.js";import{SelectFieldProvider as F}from"./context.js";export{SelectFieldConsumer,SelectFieldContext,useSelectField}from"./context.js";import{SelectFieldOptions as q}from"./option/list/index.js";import"./option/collapse/styled.js";import{ScrollableTabs as M}from"../scrollable-tabs/index.js";import{TextField as D}from"../text-field/index.js";import"../../icons/arrow-down/index.js";import"../../icons/arrow-narrow-left/index.js";import"../../icons/arrow-narrow-right/index.js";import"../../icons/arrow-up/index.js";import"../../icons/bitcoin/index.js";import"../../icons/bot-circle/index.js";import"../../icons/bothub-agg/index.js";import"../../icons/business-colored/index.js";import"../../icons/check-circle/index.js";import"../../icons/close/index.js";import"../../icons/email-circle/index.js";import"../../icons/language/index.js";import"../../icons/lock-circle/index.js";import"../../icons/menu/index.js";import"../../icons/medium-circle/index.js";import"../../icons/tg-circle/index.js";import"../../icons/tg-colored/index.js";import"../../icons/youcassa/index.js";import"../../icons/dashboard/index.js";import"../../icons/user-profile/index.js";import"../../icons/logout/index.js";import"../../icons/habr-2/index.js";import"../../icons/arrow-2-down/index.js";import"../../icons/links/index.js";import"../../icons/free/index.js";import"../../icons/hotness/index.js";import"../../icons/checked/index.js";import"../../icons/ai/index.js";import"../../icons/bookmarks/index.js";import"../../icons/bookmarks-big/index.js";import"../../icons/chat/index.js";import"../../icons/chats/index.js";import"../../icons/coder/index.js";import"../../icons/copy/index.js";import"../../icons/edit/index.js";import"../../icons/minimize/index.js";import"../../icons/presets-big/index.js";import"../../icons/referal/index.js";import"../../icons/restore/index.js";import"../../icons/tariff/index.js";import"../../icons/trash/index.js";import"../../icons/unminimize/index.js";import"../../icons/update/index.js";import"../../icons/menu-dot/index.js";import"../../icons/plus-2/index.js";import"../../icons/plus-1/index.js";import"../../icons/send/index.js";import"../../icons/settings/index.js";import"../../icons/habr/index.js";import"../../icons/check-small/index.js";import"../../icons/stop/index.js";import"../../icons/thumb-up/index.js";import"../../icons/thumb-down/index.js";import"../../icons/star/index.js";import"../../icons/info-big/index.js";import"../../icons/warning-big/index.js";import"../../icons/error-big/index.js";import"../../icons/success-big/index.js";import"../../icons/mj/index.js";import"../../icons/card/index.js";import"../../icons/arrow-narrow-up/index.js";import"../../icons/arrow-narrow-down/index.js";import"../../icons/filters/index.js";import"../../icons/info/index.js";import"../../icons/search-circle/index.js";import"../../icons/save/index.js";import"../../icons/light/index.js";import"../../icons/dark/index.js";import"../../icons/email-colored/index.js";import"../../icons/action-chat/index.js";import"../../icons/attach/index.js";import"../../icons/avatar-add/index.js";import"../../icons/brush/index.js";import"../../icons/calendar/index.js";import"../../icons/claude/index.js";import"../../icons/cookie/index.js";import"../../icons/dalle/index.js";import"../../icons/download-img/index.js";import"../../icons/error/index.js";import"../../icons/expand/index.js";import"../../icons/eye/index.js";import"../../icons/face/index.js";import"../../icons/gear/index.js";import"../../icons/gear-min/index.js";import"../../icons/generation/index.js";import"../../icons/gpt-3_5/index.js";import"../../icons/gpt-4/index.js";import"../../icons/imagine/index.js";import"../../icons/imagine-2/index.js";import"../../icons/loader/index.js";import"../../icons/loader-circular/index.js";import"../../icons/loader-circular-gradient/index.js";import"../../icons/loader-circular-gradient-2/index.js";import"../../icons/minus/index.js";import"../../icons/mj-white/index.js";import"../../icons/prompt/index.js";import"../../icons/rabbit/index.js";import"../../icons/ratio-1x1/index.js";import"../../icons/ratio-2x3/index.js";import"../../icons/ratio-3x2/index.js";import"../../icons/ratio-4x5/index.js";import"../../icons/ratio-4x7/index.js";import"../../icons/ratio-5x4/index.js";import"../../icons/ratio-7x4/index.js";import"../../icons/ratio-16x9/index.js";import"../../icons/ratio-9x16/index.js";import"../../icons/ratio-21x9/index.js";import"../../icons/ratio-9x21/index.js";import"../../icons/refferal-min/index.js";import"../../icons/search-data/index.js";import"../../icons/square/index.js";import"../../icons/turtle/index.js";import"../../icons/upscale/index.js";import"../../icons/withdraw/index.js";import"../../icons/search-plus/index.js";import"../../icons/lightning/index.js";import"../../icons/blog-circle/index.js";import"../../icons/stripe/index.js";import"../../icons/corporate/index.js";import"../../icons/public/index.js";import"../../icons/private/index.js";import"../../icons/mistral/index.js";import"../../icons/gemini/index.js";import{SearchSimpleIcon as N}from"../../icons/search-simple/index.js";import"../../icons/sad-robot/index.js";import"../../icons/model/index.js";import"../../icons/phone-colored/index.js";import"../../icons/questions/index.js";import"../../icons/pdf-big/index.js";import"../../icons/xls-big/index.js";import"../../icons/word-big/index.js";import"../../icons/txt-big/index.js";import"../../icons/pdf/index.js";import"../../icons/xls/index.js";import"../../icons/word/index.js";import"../../icons/txt/index.js";import"../../icons/bothub-logo-gradient/index.js";import"../../icons/telegram-logo-gradient/index.js";import"../../icons/decline-circle/index.js";import"../../icons/simple-gear-bg/index.js";import"../../icons/advanced-filter/index.js";import"../../icons/big-corporate/index.js";import"../../icons/big-mj/index.js";import"../../icons/big-models/index.js";import"../../icons/big-stats/index.js";import"../../icons/big-success/index.js";import"../../icons/big-users/index.js";import"../../icons/optional-presets/index.js";import"../../icons/wallet-withdraw/index.js";import"../../icons/big-presets/index.js";import"../../icons/big-favorite/index.js";import"../../icons/big-referal/index.js";import"../../icons/attach-file/index.js";import"../../icons/attach-file-big/index.js";import"../../icons/voice/index.js";import"../../icons/play-button/index.js";import"../../icons/pause-button/index.js";import"../../icons/text-read/index.js";import"../../icons/text-hide/index.js";import"../../icons/best-chat-bots/index.js";import"../../icons/upload/index.js";import"../../icons/enter/index.js";import"../../icons/discord/index.js";import"../../icons/discord-circle/index.js";import"../../icons/black-forest-labs/index.js";import"../../icons/flux/index.js";import"../../icons/stable-diffusion/index.js";import"../../icons/stability-ai/index.js";import"../../icons/article-generator/index.js";import"../../icons/success/index.js";import"../../icons/google/index.js";import"../../icons/yandex/index.js";import"../../icons/vk/index.js";import"../../icons/resend/index.js";import"../../icons/big-article/index.js";import"../../icons/add-chat/index.js";import"../../icons/add-group/index.js";import"../../icons/drag-dot/index.js";import"../../icons/add-folder/index.js";import"../../icons/temp-chat/index.js";import"../../icons/delete-chat/index.js";import"../../icons/sidebar-chat/index.js";import"../../icons/organization/index.js";import"../../icons/simple-gear/index.js";import"../../icons/text-bold/index.js";import"../../icons/text-italic/index.js";import"../../icons/text-underline/index.js";import"../../icons/text-strikethrough/index.js";import"../../icons/refresh/index.js";import"../../icons/copy-variants/index.js";import"../../icons/sort-ascending/index.js";import"../../icons/sort-descending/index.js";import"../../icons/quote/index.js";import"../../icons/url-circle/index.js";import"../../icons/show-ui/index.js";import"../../icons/hide-ui/index.js";import"../../icons/sort-user/index.js";import"../../icons/happy-robot/index.js";import"../../icons/happy-robot-gradient/index.js";import"../../icons/min-window/index.js";import"../../icons/max-window/index.js";import"../../icons/manage-chat/index.js";import"../../icons/analyze-urls/index.js";import"../../icons/web-search/index.js";import"../../icons/include-context/index.js";import"../../icons/queue/index.js";import"../../icons/sort-alphabet-ascending/index.js";import"../../icons/sort-alphabet-descending/index.js";import"../../icons/sort-date-ascending/index.js";import"../../icons/sort-date-descending/index.js";import"../../icons/cot-r1/index.js";import"../../icons/news/index.js";import"../../icons/volume/index.js";import"../../icons/flag-ru/index.js";import"../../icons/flag-kz/index.js";import"../../icons/print/index.js";import"../../icons/pc-icon-1/index.js";import"../../icons/pc-icon-2/index.js";import"../../icons/pc-icon-3/index.js";import"../../icons/star-unfilled/index.js";import"../../icons/image-generation/index.js";import"../../icons/speech-synthesys/index.js";import"../../icons/transcription/index.js";import"../../icons/text-rewrite/index.js";import"../../icons/code-generation/index.js";import"../../icons/essay-generation/index.js";import"../../icons/spelling/index.js";import"../../icons/text-generation/index.js";import"../../icons/traffic-analisys/index.js";import"../../icons/fav-profile/index.js";import"../../icons/exclamation/index.js";import{filterData as X}from"./filterData.js";import{useTheme as Y}from"../../theme/hook.js";import{TooltipConsumer as B}from"../tooltip/context.js";const H=H=>{var{className:R,label:Z,value:_,placeholder:G,data:J=[],fullWidth:K=!1,contentWidth:Q,error:U,disabled:ii=!1,skeleton:oi=!1,blur:ei=!1,size:ni="small",disableSelect:si=!1,placement:ti="bottom-left",disableScrollbar:ri=!1,before:ci,after:di,loading:li=!1,enableInput:ai=!1,inputType:pi="text",inputValue:mi,clearable:xi=!1,tabs:ji,search:ui,searchPlaceholder:hi,onOptionClick:bi,onInputChange:gi,onSelectClick:fi,onClose:vi,onPointerLeave:yi,children:wi}=H,$i=i(H,["className","label","value","placeholder","data","fullWidth","contentWidth","error","disabled","skeleton","blur","size","disableSelect","placement","disableScrollbar","before","after","loading","enableInput","inputType","inputValue","clearable","tabs","search","searchPlaceholder","onOptionClick","onInputChange","onSelectClick","onClose","onPointerLeave","children"]);const ki=Y(),{multiple:Ci=!1}=$i,Si=s((i=>{var o,e,n,s,t,r;if($i.multiple&&Array.isArray(i)){const n=i;null===(o=$i.onChange)||void 0===o||o.call($i,n),null===(e=$i.onValueChange)||void 0===e||e.call($i,n.map((i=>"string"==typeof i?i:"string"==typeof i.value?i.value:"")).filter((i=>!!i)))}else $i.multiple||Array.isArray(i)||(null===(n=$i.onChange)||void 0===n||n.call($i,i),i?"string"==typeof i?null===(s=$i.onValueChange)||void 0===s||s.call($i,i):"string"==typeof i.value&&(null===(t=$i.onValueChange)||void 0===t||t.call($i,i.value)):null===(r=$i.onValueChange)||void 0===r||r.call($i,null))}),[$i.multiple,$i.onChange,$i.onValueChange]),Ai=s((i=>{null==gi||gi(i)}),[gi]);let[zi,Oi]=t(Ci?[]:null);void 0!==_&&([zi,Oi]=[_,Si]);let[Li,Ti]=t("");void 0!==mi&&([Li,Ti]=[mi,Ai]);const[Ii,Ei]=t(!1),[Pi,Vi]=t(!1),[Wi,Fi]=t(0),[qi,Mi]=t(0),[Di,Ni]=t(0),[Xi,Yi]=t(ti),[Bi,Hi]=t(""),Ri=s((i=>{Hi(i.currentTarget.value)}),[Hi]),Zi=s((()=>{Vi(!1),null==vi||vi()}),[]),_i=s((i=>{var o;"object"==typeof i&&i.disabled||("object"==typeof i&&i.noSelect?null===(o=null==i?void 0:i.onClick)||void 0===o||o.call(i,i):(null==bi||bi(i),si||(Ci&&Array.isArray(zi)?Oi([...new Set([...zi,i])]):Oi(i)),Zi()))}),[zi,Oi,Ci,bi,si]),Gi=s(((i,o)=>{o.stopPropagation(),Array.isArray(zi)&&Oi("string"==typeof i?zi.filter((o=>"string"==typeof o?o!==i:o.value!==i)):zi.filter((o=>"string"==typeof o?o!==i.value:o.value!==i.value))),Zi()}),[zi]),Ji=s(((i,o)=>{null==fi||fi();const e=Ui.current;if(!e||ii)return;i&&o.stopPropagation();const n=window.innerHeight||document.documentElement.clientHeight,s=e.getBoundingClientRect(),{width:t,height:r}=s;let c=Xi;c=s.top-186<0?"bottom-left":s.bottom+186>n?"top-right"===ti?"top-right":"top-left":ti;let d=0,l=0;switch(c){case"bottom-left":d=s.left+window.scrollX,l=s.top+window.scrollY+r;break;case"top-left":d=s.left+window.scrollX,l=s.top+window.scrollY;break;case"top-right":d=s.left+window.scrollX+t,l=s.top+window.scrollY}Fi(d),Mi(l),Ni(t),Yi(c),Vi(!!i||!Pi)}),[ii,Pi,Xi,ti,fi]),Ki=s((i=>{Ti(i.currentTarget.value)}),[Ti]),Qi=s((()=>{Oi(null),Ti("")}),[Oi,Ti]),Ui=r(null),io=r(null),[oo,eo]=t(null);if(io.current&&!oo){const{height:i}=getComputedStyle(io.current.children[0]);eo(parseInt(i))}return c((()=>{if(Pi){const i=i=>{const o=Ui.current,e=io.current;null!==o&&null!==e&&(o.contains(i.target)||e.contains(i.target)||Zi())};return document.addEventListener("click",i),()=>{document.removeEventListener("click",i)}}}),[Pi]),c((()=>{if(Pi){const i=()=>{Zi()};return document.addEventListener("scroll",i),()=>{document.removeEventListener("scroll",i)}}}),[Pi]),o(F,{selectRef:Ui,handleSelectClick:Ji.bind(null,!1),children:e(d,{$fullWidth:K,$disabled:ii,className:R,onPointerLeave:yi,children:[Z&&oi&&o(l,{children:o(E,{width:100})}),"string"==typeof Z&&!oi&&o(l,{children:Z}),"string"!=typeof Z&&!oi&&Z,wi&&wi,!wi&&e(n,{children:[!oi&&e(a,{$open:Pi,$error:!!U,$disabled:ii,$skeleton:!1,$blur:ei,$loading:li,$multiple:Ci&&Array.isArray(zi)&&zi.length>0,ref:Ui,onClick:Ji.bind(null,!1),children:[e(p,{children:[(!zi||Array.isArray(zi)&&0===zi.length)&&e(n,{children:[ai&&"search"===pi&&o(m,{$focus:Ii}),ai&&o(x,{type:pi,value:Li,placeholder:G,disabled:ii,onClick:Ji.bind(null,!0),onChange:Ki,onFocus:Ei.bind(null,!0),onBlur:Ei.bind(null,!1)}),!ai&&o(j,{$open:Pi,children:G})]}),"string"==typeof zi&&""!==zi&&o(u,{children:o(h,{children:zi})}),zi&&"object"==typeof zi&&!Array.isArray(zi)&&e(u,{children:[zi.icon&&o(V,{fill:ki.colors.base.white,size:18,children:zi.icon}),zi.color&&o(b,{$color:zi.color}),zi.label&&o(W,{label:zi.label,placement:"top-left",disabled:zi.label.length<=128,children:o(B,{children:({handleTooltipMouseEnter:i,handleTooltipMouseLeave:o})=>e(g,{onMouseEnter:i,onMouseLeave:o,children:[zi.label&&zi.label.slice(0,64),zi.label&&zi.label.length>64&&"..."]})})}),!zi.label&&zi.value&&o(g,{children:zi.value})]}),Array.isArray(zi)&&zi.length>0&&o(f,{children:o(v,{children:zi.map(((i,e)=>{var n,s,t;return"string"==typeof i?o(y,{onDelete:Gi.bind(null,i),children:i},i):o(y,{onDelete:Gi.bind(null,i),children:null!==(n=i.label)&&void 0!==n?n:i.value},null!==(t=null!==(s=i.id)&&void 0!==s?s:i.value)&&void 0!==t?t:e)}))})})]}),e(w,{children:[(xi&&zi||ai&&"search"===pi&&!li&&Li||ai&&zi)&&o($,{onClick:Qi}),li&&o(k,{}),o(C,{style:{transform:Pi?"rotateZ(180deg)":"rotateZ(0deg)"}})]})]}),oi&&o(a,{$open:!1,$error:!1,$disabled:!1,$skeleton:!0,$loading:!1,$blur:ei,$multiple:!1,ref:Ui,children:o(S,{})})]}),Pi&&o(P,{children:o(A,{$contentWidth:Q,ref:io,style:Object.assign(Object.assign(Object.assign(Object.assign({},0!==Wi&&Object.assign(Object.assign({},"top-right"!==Xi&&{left:`${Wi}px`}),"top-right"===Xi&&Object.assign(Object.assign({},void 0===Q&&{left:`calc(${Wi}px - ${Di})`}),"number"==typeof Q&&{left:`calc(${Wi}px - ${Q>Di?`calc(var(--bothub-scale, 1) * ${Q}px)`:`${Di}px`})`}))),0!==qi&&{top:`${qi}px`}),void 0===Q&&{width:`${Di}px`}),"number"==typeof Q&&{width:""+(Q>Di?`calc(var(--bothub-scale, 1) * ${Q}px)`:`${Di}px`)}),children:o(z,{$blur:ei,$placement:Xi,style:oo?{height:`${oo}px`}:void 0,children:o(O,{children:e(L,{$size:ni,children:[!!ji&&o(M,{tabs:ji.tabs,variant:"secondary",component:"button",onClick:ji.onTabClick,defaultTabId:ji.defaultTabId}),ui&&o(D,{fullWidth:!0,startIcon:o(N,{}),placeholder:hi,value:Bi,onChange:Ri,variant:"secondary",autoFocus:!0}),ci&&o(T,{$size:ni,$disableScrollbar:ri,children:o(q,{value:zi,data:X(ci,Bi),size:ni,disableSelect:si,onOptionClick:_i})}),o(T,{$size:ni,$disableScrollbar:ri,children:o(q,{value:zi,data:X(J,Bi),size:ni,disableSelect:si,onOptionClick:_i})}),di&&o(T,{$size:ni,$disableScrollbar:ri,children:o(q,{value:zi,data:X(di,Bi),size:ni,disableSelect:si,onOptionClick:_i})})]})})})})}),U&&o(I,{children:U})]})})};export{H as SelectField,C as SelectFieldArrow,A as SelectFieldBlock,O as SelectFieldBlockContent,z as SelectFieldBlockPositionWrapper,$ as SelectFieldClearButton,g as SelectFieldColorValueText,I as SelectFieldErrorText,T as SelectFieldGroup,L as SelectFieldGroups,a as SelectFieldInput,p as SelectFieldInputLeftSide,x as SelectFieldInputNative,w as SelectFieldInputSide,l as SelectFieldLabel,k as SelectFieldLoader,j as SelectFieldPlaceholder,F as SelectFieldProvider,m as SelectFieldSearchIcon,S as SelectFieldSkeleton,d as SelectFieldStyled,u as SelectFieldValue,b as SelectFieldValueColor,v as SelectFieldValueList,y as SelectFieldValueListItem,h as SelectFieldValueText,f as SelectFieldValues};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as t,jsx as
|
|
1
|
+
import{jsxs as t,jsx as e}from"react/jsx-runtime";import{useState as o,useLayoutEffect as i}from"react";import{SelectFieldCollapseOptionStyled as r,SelectFieldCollapseOptionHead as l,SelectFieldCollapseOptionHeadSide as s,SelectFieldCollapseOptionText as n,SelectFieldCollapseOptionArrow as d,SelectFieldCollapseOptionBody as p}from"./styled.js";import"tslib";import{IconProvider as c}from"../../../icon/context.js";import"../../../icon/styled.js";import"@react-spring/web";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{useTheme as m}from"../../../../theme/hook.js";const a=({size:a,item:f,children:y})=>{var j,b;const h=m(),[g,u]=o("string"!=typeof f&&(null!==(j=f.open)&&void 0!==j&&j));let z;return z="string"!=typeof f&&!!f.disabled,"undefined"!=typeof window&&i((()=>{var t;u("string"!=typeof f&&(null!==(t=f.open)&&void 0!==t&&t))}),[f]),t(r,{$size:a,children:[t(l,Object.assign({$disabled:z,$size:a},!z&&{onClick:u.bind(null,(t=>!t))},{children:[t(s,{$size:a,children:["object"==typeof f&&f.icon&&e(c,{size:"large"===a?24:16,fill:h.colors.base.white,children:f.icon}),t(n,{$size:a,$bold:"object"==typeof f&&f.bold,children:["string"==typeof f&&f,"string"!=typeof f&&(null!==(b=f.label)&&void 0!==b?b:f.value)]})]}),e(s,{$size:a,children:e(d,{style:{transform:g?"rotateZ(180deg)":"rotateZ(0deg)"}})})]})),g&&e(p,{children:y})]})};export{a as SelectFieldCollapseOption};
|
|
@@ -12,285 +12,17 @@ export interface SelectFieldCollapseOptionHeadSideProps {
|
|
|
12
12
|
$size: SelectFieldSize;
|
|
13
13
|
}
|
|
14
14
|
export declare const SelectFieldCollapseOptionHeadSide: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SelectFieldCollapseOptionHeadSideProps>>;
|
|
15
|
+
export interface SelectFieldCollapseOptionTextAttrsProps {
|
|
16
|
+
$size: SelectFieldSize;
|
|
17
|
+
}
|
|
15
18
|
export interface SelectFieldCollapseOptionTextProps {
|
|
16
19
|
$bold?: boolean;
|
|
17
20
|
}
|
|
18
|
-
export declare const SelectFieldCollapseOptionText: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
hidden?: boolean | undefined | undefined;
|
|
22
|
-
color?: string | undefined | undefined;
|
|
23
|
-
content?: string | undefined | undefined;
|
|
24
|
-
style?: import("react").CSSProperties | undefined;
|
|
25
|
-
key?: import("react").Key | null | undefined;
|
|
26
|
-
defaultChecked?: boolean | undefined | undefined;
|
|
27
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
28
|
-
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
29
|
-
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
30
|
-
accessKey?: string | undefined | undefined;
|
|
31
|
-
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
32
|
-
autoFocus?: boolean | undefined | undefined;
|
|
33
|
-
className?: string | undefined | undefined;
|
|
34
|
-
contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
|
|
35
|
-
contextMenu?: string | undefined | undefined;
|
|
36
|
-
dir?: string | undefined | undefined;
|
|
37
|
-
draggable?: (boolean | "false" | "true") | undefined;
|
|
38
|
-
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
39
|
-
id?: string | undefined | undefined;
|
|
40
|
-
lang?: string | undefined | undefined;
|
|
41
|
-
nonce?: string | undefined | undefined;
|
|
42
|
-
slot?: string | undefined | undefined;
|
|
43
|
-
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
44
|
-
tabIndex?: number | undefined | undefined;
|
|
45
|
-
title?: string | undefined | undefined;
|
|
46
|
-
translate?: "yes" | "no" | undefined | undefined;
|
|
47
|
-
radioGroup?: string | undefined | undefined;
|
|
48
|
-
role?: import("react").AriaRole | undefined;
|
|
49
|
-
about?: string | undefined | undefined;
|
|
50
|
-
datatype?: string | undefined | undefined;
|
|
51
|
-
inlist?: any;
|
|
52
|
-
prefix?: string | undefined | undefined;
|
|
53
|
-
property?: string | undefined | undefined;
|
|
54
|
-
rel?: string | undefined | undefined;
|
|
55
|
-
resource?: string | undefined | undefined;
|
|
56
|
-
rev?: string | undefined | undefined;
|
|
57
|
-
typeof?: string | undefined | undefined;
|
|
58
|
-
vocab?: string | undefined | undefined;
|
|
59
|
-
autoCorrect?: string | undefined | undefined;
|
|
60
|
-
autoSave?: string | undefined | undefined;
|
|
61
|
-
itemProp?: string | undefined | undefined;
|
|
62
|
-
itemScope?: boolean | undefined | undefined;
|
|
63
|
-
itemType?: string | undefined | undefined;
|
|
64
|
-
itemID?: string | undefined | undefined;
|
|
65
|
-
itemRef?: string | undefined | undefined;
|
|
66
|
-
results?: number | undefined | undefined;
|
|
67
|
-
security?: string | undefined | undefined;
|
|
68
|
-
unselectable?: "on" | "off" | undefined | undefined;
|
|
69
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
70
|
-
is?: string | undefined | undefined;
|
|
71
|
-
"aria-activedescendant"?: string | undefined | undefined;
|
|
72
|
-
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
73
|
-
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
74
|
-
"aria-braillelabel"?: string | undefined | undefined;
|
|
75
|
-
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
76
|
-
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
77
|
-
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
78
|
-
"aria-colcount"?: number | undefined | undefined;
|
|
79
|
-
"aria-colindex"?: number | undefined | undefined;
|
|
80
|
-
"aria-colindextext"?: string | undefined | undefined;
|
|
81
|
-
"aria-colspan"?: number | undefined | undefined;
|
|
82
|
-
"aria-controls"?: string | undefined | undefined;
|
|
83
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
84
|
-
"aria-describedby"?: string | undefined | undefined;
|
|
85
|
-
"aria-description"?: string | undefined | undefined;
|
|
86
|
-
"aria-details"?: string | undefined | undefined;
|
|
87
|
-
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
88
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
89
|
-
"aria-errormessage"?: string | undefined | undefined;
|
|
90
|
-
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
91
|
-
"aria-flowto"?: string | undefined | undefined;
|
|
92
|
-
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
93
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
94
|
-
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
95
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
96
|
-
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
97
|
-
"aria-label"?: string | undefined | undefined;
|
|
98
|
-
"aria-labelledby"?: string | undefined | undefined;
|
|
99
|
-
"aria-level"?: number | undefined | undefined;
|
|
100
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
101
|
-
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
102
|
-
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
103
|
-
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
104
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
105
|
-
"aria-owns"?: string | undefined | undefined;
|
|
106
|
-
"aria-placeholder"?: string | undefined | undefined;
|
|
107
|
-
"aria-posinset"?: number | undefined | undefined;
|
|
108
|
-
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
109
|
-
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
110
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
111
|
-
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
112
|
-
"aria-roledescription"?: string | undefined | undefined;
|
|
113
|
-
"aria-rowcount"?: number | undefined | undefined;
|
|
114
|
-
"aria-rowindex"?: number | undefined | undefined;
|
|
115
|
-
"aria-rowindextext"?: string | undefined | undefined;
|
|
116
|
-
"aria-rowspan"?: number | undefined | undefined;
|
|
117
|
-
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
118
|
-
"aria-setsize"?: number | undefined | undefined;
|
|
119
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
120
|
-
"aria-valuemax"?: number | undefined | undefined;
|
|
121
|
-
"aria-valuemin"?: number | undefined | undefined;
|
|
122
|
-
"aria-valuenow"?: number | undefined | undefined;
|
|
123
|
-
"aria-valuetext"?: string | undefined | undefined;
|
|
124
|
-
dangerouslySetInnerHTML?: {
|
|
125
|
-
__html: string | TrustedHTML;
|
|
126
|
-
} | undefined | undefined;
|
|
127
|
-
onCopy?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
|
|
128
|
-
onCopyCapture?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
|
|
129
|
-
onCut?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
|
|
130
|
-
onCutCapture?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
|
|
131
|
-
onPaste?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
|
|
132
|
-
onPasteCapture?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
|
|
133
|
-
onCompositionEnd?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
|
|
134
|
-
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
|
|
135
|
-
onCompositionStart?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
|
|
136
|
-
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
|
|
137
|
-
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
|
|
138
|
-
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
|
|
139
|
-
onFocus?: import("react").FocusEventHandler<HTMLSpanElement> | undefined;
|
|
140
|
-
onFocusCapture?: import("react").FocusEventHandler<HTMLSpanElement> | undefined;
|
|
141
|
-
onBlur?: import("react").FocusEventHandler<HTMLSpanElement> | undefined;
|
|
142
|
-
onBlurCapture?: import("react").FocusEventHandler<HTMLSpanElement> | undefined;
|
|
143
|
-
onChange?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
144
|
-
onChangeCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
145
|
-
onBeforeInput?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
146
|
-
onBeforeInputCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
147
|
-
onInput?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
148
|
-
onInputCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
149
|
-
onReset?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
150
|
-
onResetCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
151
|
-
onSubmit?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
152
|
-
onSubmitCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
153
|
-
onInvalid?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
154
|
-
onInvalidCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
155
|
-
onLoad?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
156
|
-
onLoadCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
157
|
-
onError?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
158
|
-
onErrorCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
159
|
-
onKeyDown?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
|
|
160
|
-
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
|
|
161
|
-
onKeyPress?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
|
|
162
|
-
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
|
|
163
|
-
onKeyUp?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
|
|
164
|
-
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
|
|
165
|
-
onAbort?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
166
|
-
onAbortCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
167
|
-
onCanPlay?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
168
|
-
onCanPlayCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
169
|
-
onCanPlayThrough?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
170
|
-
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
171
|
-
onDurationChange?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
172
|
-
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
173
|
-
onEmptied?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
174
|
-
onEmptiedCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
175
|
-
onEncrypted?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
176
|
-
onEncryptedCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
177
|
-
onEnded?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
178
|
-
onEndedCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
179
|
-
onLoadedData?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
180
|
-
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
181
|
-
onLoadedMetadata?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
182
|
-
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
183
|
-
onLoadStart?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
184
|
-
onLoadStartCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
185
|
-
onPause?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
186
|
-
onPauseCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
187
|
-
onPlay?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
188
|
-
onPlayCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
189
|
-
onPlaying?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
190
|
-
onPlayingCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
191
|
-
onProgress?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
192
|
-
onProgressCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
193
|
-
onRateChange?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
194
|
-
onRateChangeCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
195
|
-
onResize?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
196
|
-
onResizeCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
197
|
-
onSeeked?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
198
|
-
onSeekedCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
199
|
-
onSeeking?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
200
|
-
onSeekingCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
201
|
-
onStalled?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
202
|
-
onStalledCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
203
|
-
onSuspend?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
204
|
-
onSuspendCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
205
|
-
onTimeUpdate?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
206
|
-
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
207
|
-
onVolumeChange?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
208
|
-
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
209
|
-
onWaiting?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
210
|
-
onWaitingCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
211
|
-
onAuxClick?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
212
|
-
onAuxClickCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
213
|
-
onClick?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
214
|
-
onClickCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
215
|
-
onContextMenu?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
216
|
-
onContextMenuCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
217
|
-
onDoubleClick?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
218
|
-
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
219
|
-
onDrag?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
220
|
-
onDragCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
221
|
-
onDragEnd?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
222
|
-
onDragEndCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
223
|
-
onDragEnter?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
224
|
-
onDragEnterCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
225
|
-
onDragExit?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
226
|
-
onDragExitCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
227
|
-
onDragLeave?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
228
|
-
onDragLeaveCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
229
|
-
onDragOver?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
230
|
-
onDragOverCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
231
|
-
onDragStart?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
232
|
-
onDragStartCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
233
|
-
onDrop?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
234
|
-
onDropCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
235
|
-
onMouseDown?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
236
|
-
onMouseDownCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
237
|
-
onMouseEnter?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
238
|
-
onMouseLeave?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
239
|
-
onMouseMove?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
240
|
-
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
241
|
-
onMouseOut?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
242
|
-
onMouseOutCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
243
|
-
onMouseOver?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
244
|
-
onMouseOverCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
245
|
-
onMouseUp?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
246
|
-
onMouseUpCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
247
|
-
onSelect?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
248
|
-
onSelectCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
249
|
-
onTouchCancel?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
250
|
-
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
251
|
-
onTouchEnd?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
252
|
-
onTouchEndCapture?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
253
|
-
onTouchMove?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
254
|
-
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
255
|
-
onTouchStart?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
256
|
-
onTouchStartCapture?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
257
|
-
onPointerDown?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
258
|
-
onPointerDownCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
259
|
-
onPointerMove?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
260
|
-
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
261
|
-
onPointerUp?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
262
|
-
onPointerUpCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
263
|
-
onPointerCancel?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
264
|
-
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
265
|
-
onPointerEnter?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
266
|
-
onPointerLeave?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
267
|
-
onPointerOver?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
268
|
-
onPointerOverCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
269
|
-
onPointerOut?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
270
|
-
onPointerOutCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
271
|
-
onGotPointerCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
272
|
-
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
273
|
-
onLostPointerCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
274
|
-
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
275
|
-
onScroll?: import("react").UIEventHandler<HTMLSpanElement> | undefined;
|
|
276
|
-
onScrollCapture?: import("react").UIEventHandler<HTMLSpanElement> | undefined;
|
|
277
|
-
onWheel?: import("react").WheelEventHandler<HTMLSpanElement> | undefined;
|
|
278
|
-
onWheelCapture?: import("react").WheelEventHandler<HTMLSpanElement> | undefined;
|
|
279
|
-
onAnimationStart?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
|
|
280
|
-
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
|
|
281
|
-
onAnimationEnd?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
|
|
282
|
-
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
|
|
283
|
-
onAnimationIteration?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
|
|
284
|
-
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
|
|
285
|
-
onTransitionEnd?: import("react").TransitionEventHandler<HTMLSpanElement> | undefined;
|
|
286
|
-
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLSpanElement> | undefined;
|
|
287
|
-
target?: import("react").HTMLAttributeAnchorTarget | undefined;
|
|
288
|
-
href?: string | undefined;
|
|
289
|
-
align?: import("@/ui/components/typography").TypographyAlign | undefined;
|
|
290
|
-
component?: import("@/ui/components/typography").TypographyComponent | undefined;
|
|
291
|
-
fullWidth?: boolean | undefined;
|
|
21
|
+
export declare const SelectFieldCollapseOptionText: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<Omit<import("@/ui/components/typography").TypographyProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
22
|
+
ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
23
|
+
}, Omit<import("@/ui/components/typography").TypographyProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
292
24
|
ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
293
|
-
}
|
|
25
|
+
}>, SelectFieldCollapseOptionTextAttrsProps>, SelectFieldCollapseOptionTextProps>>;
|
|
294
26
|
export declare const SelectFieldCollapseOptionArrow: import("styled-components").IStyledComponent<"web", {
|
|
295
27
|
size?: number | undefined;
|
|
296
28
|
fill?: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{styled as e,css as t}from"styled-components";import{Typography as
|
|
1
|
+
import{styled as e,css as t}from"styled-components";import{Typography as s}from"../../../typography/index.js";import{ArrowDownIcon as i}from"../../../../icons/arrow-down/index.js";const o=e.div.withConfig({displayName:"styled__SelectFieldCollapseOptionStyled",componentId:"sc-qnvtt4-0"})(["display:flex;flex-direction:column;width:100%;gap:","px;"],(({$size:e})=>{switch(e){case"small":return 4;case"md":return 6;case"large":return 8}})),l=e.div.withConfig({displayName:"styled__SelectFieldCollapseOptionHead",componentId:"sc-qnvtt4-1"})(["display:flex;justify-content:space-between;align-items:center;padding:","px;border-radius:6px;gap:","px;"," user-select:none;"],(({$size:e})=>{switch(e){case"small":return 8;case"md":return 12;case"large":return 10}}),(({$size:e})=>{switch(e){case"small":case"large":return 8;case"md":return 10}}),(({theme:e,$disabled:s})=>s?t`
|
|
2
2
|
cursor: not-allowed;
|
|
3
3
|
opacity: 0.5;
|
|
4
4
|
&:hover {
|
|
@@ -7,8 +7,8 @@ import{styled as e,css as t}from"styled-components";import{Typography as i}from"
|
|
|
7
7
|
`:t`
|
|
8
8
|
cursor: pointer;
|
|
9
9
|
&:hover {
|
|
10
|
-
background: ${
|
|
10
|
+
background: ${e.colors.accent.primary}33;
|
|
11
11
|
}
|
|
12
|
-
`)),
|
|
12
|
+
`)),a=e.div.withConfig({displayName:"styled__SelectFieldCollapseOptionHeadSide",componentId:"sc-qnvtt4-2"})(["display:flex;align-items:center;gap:","px;"],(({$size:e})=>{switch(e){case"small":case"large":return 8;case"md":return 10}})),n=e(s).attrs((e=>({variant:"large"===e.$size?"body-m-semibold":"input-sm"}))).withConfig({displayName:"styled__SelectFieldCollapseOptionText",componentId:"sc-qnvtt4-3"})(["",""],(({$bold:e})=>e&&t`
|
|
13
13
|
font-weight: 500;
|
|
14
|
-
`)),
|
|
14
|
+
`)),r=e(i).attrs((({theme:e})=>({size:16,fill:e.colors.base.white}))).withConfig({displayName:"styled__SelectFieldCollapseOptionArrow",componentId:"sc-qnvtt4-4"})(["transition:transform 0.2s ease-in-out;"]),d=e.div.withConfig({displayName:"styled__SelectFieldCollapseOptionBody",componentId:"sc-qnvtt4-5"})([""]);export{r as SelectFieldCollapseOptionArrow,d as SelectFieldCollapseOptionBody,l as SelectFieldCollapseOptionHead,a as SelectFieldCollapseOptionHeadSide,o as SelectFieldCollapseOptionStyled,n as SelectFieldCollapseOptionText};
|