@radui/ui 0.0.45 → 0.0.47
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 +2 -8
- package/dist/components/Accordion.d.ts +53 -0
- package/dist/components/Accordion.js +1 -1
- package/dist/components/AlertDialog.d.ts +62 -0
- package/dist/components/AlertDialog.js +1 -5
- package/dist/components/AspectRatio.d.ts +16 -0
- package/dist/components/AspectRatio.js +1 -1
- package/dist/components/Avatar.d.ts +39 -0
- package/dist/components/Avatar.js +1 -1
- package/dist/components/AvatarGroup.d.ts +41 -0
- package/dist/components/AvatarGroup.js +1 -1
- package/dist/components/AvatarPrimitiveFallback-CSD78PQE.js +1 -0
- package/dist/components/Badge.d.ts +15 -0
- package/dist/components/Badge.js +1 -1
- package/dist/components/BlockQuote.d.ts +18 -0
- package/dist/components/BlockQuote.js +1 -1
- package/dist/components/Button.d.ts +15 -0
- package/dist/components/Button.js +1 -1
- package/dist/components/Callout.d.ts +35 -0
- package/dist/components/Callout.js +1 -1
- package/dist/components/Card.d.ts +28 -0
- package/dist/components/Card.js +1 -1
- package/dist/components/Checkbox.d.ts +23 -0
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/CheckboxCards.d.ts +37 -0
- package/dist/components/CheckboxCards.js +1 -1
- package/dist/components/CheckboxGroup.d.ts +38 -0
- package/dist/components/CheckboxGroup.js +1 -1
- package/dist/components/CheckboxGroupPrimitive-PcT11bev.js +1 -0
- package/dist/components/Code.d.ts +13 -0
- package/dist/components/Code.js +1 -1
- package/dist/components/Collapsible.d.ts +30 -0
- package/dist/components/Collapsible.js +1 -1
- package/dist/components/ContextMenu.d.ts +52 -0
- package/dist/components/ContextMenu.js +1 -0
- package/dist/components/DataList.d.ts +24 -0
- package/dist/components/DataList.js +1 -1
- package/dist/components/Dialog.d.ts +51 -0
- package/dist/components/Dialog.js +1 -5
- package/dist/components/Disclosure.d.ts +41 -0
- package/dist/components/Disclosure.js +1 -1
- package/dist/components/DropdownMenu.d.ts +52 -0
- package/dist/components/DropdownMenu.js +1 -0
- package/dist/components/Em.d.ts +15 -0
- package/dist/components/Em.js +1 -1
- package/dist/components/Heading.d.ts +293 -0
- package/dist/components/Heading.js +1 -1
- package/dist/components/HoverCard.d.ts +37 -0
- package/dist/components/HoverCard.js +1 -5
- package/dist/components/Kbd.d.ts +13 -0
- package/dist/components/Kbd.js +1 -1
- package/dist/components/Link.d.ts +17 -0
- package/dist/components/Link.js +1 -1
- package/dist/components/MenuPrimitive-M690K2sI.js +1 -0
- package/dist/components/Menubar.d.ts +60 -0
- package/dist/components/Menubar.js +1 -0
- package/dist/components/NumberField.d.ts +43 -0
- package/dist/components/NumberField.js +1 -0
- package/dist/components/Progress.d.ts +24 -0
- package/dist/components/Progress.js +1 -1
- package/dist/components/Quote.d.ts +15 -0
- package/dist/components/Quote.js +1 -1
- package/dist/components/Radio.d.ts +14 -0
- package/dist/components/Radio.js +1 -1
- package/dist/components/RadioCards.d.ts +41 -0
- package/dist/components/RadioCards.js +1 -1
- package/dist/components/RadioGroup.d.ts +54 -0
- package/dist/components/RadioGroup.js +1 -1
- package/dist/components/RadioGroupPrimitive-CUgW2PyL.js +1 -0
- package/dist/components/ScrollArea.d.ts +18 -0
- package/dist/components/ScrollArea.js +1 -1
- package/dist/components/Select.d.ts +37 -0
- package/dist/components/Select.js +1 -5
- package/dist/components/Separator.d.ts +18 -0
- package/dist/components/Separator.js +1 -1
- package/dist/components/Skeleton.d.ts +18 -0
- package/dist/components/Skeleton.js +1 -1
- package/dist/components/Slider.d.ts +29 -0
- package/dist/components/Slider.js +1 -1
- package/dist/components/Strong.d.ts +14 -0
- package/dist/components/Strong.js +1 -1
- package/dist/components/Switch.d.ts +35 -0
- package/dist/components/Switch.js +1 -1
- package/dist/components/TabNav.d.ts +31 -0
- package/dist/components/TabNav.js +1 -1
- package/dist/components/Table.d.ts +35 -0
- package/dist/components/Table.js +1 -1
- package/dist/components/Tabs.d.ts +64 -0
- package/dist/components/Tabs.js +1 -1
- package/dist/components/Text.d.ts +283 -0
- package/dist/components/Text.js +1 -1
- package/dist/components/TextArea.d.ts +24 -0
- package/dist/components/TextArea.js +1 -1
- package/dist/components/Theme.d.ts +13 -0
- package/dist/components/Theme.js +1 -1
- package/dist/components/Toggle.d.ts +45 -0
- package/dist/components/Toggle.js +1 -1
- package/dist/components/ToggleGroup.d.ts +42 -0
- package/dist/components/ToggleGroup.js +1 -1
- package/dist/components/Tooltip.d.ts +22 -0
- package/dist/components/Tooltip.js +1 -5
- package/dist/components/Tree.d.ts +20 -0
- package/dist/components/Tree.js +1 -1
- package/dist/components/VisuallyHidden.d.ts +16 -0
- package/dist/components/VisuallyHidden.js +1 -1
- package/dist/components/clsx-BaVHROc5.js +1 -0
- package/dist/components/floating-ui.react-jh3caJnc.js +5 -0
- package/dist/components/index-8D8A0ALD.js +1 -0
- package/dist/components/index-BNg6qXF-.js +1 -0
- package/dist/components/index-BVxS3Ixi.js +1 -0
- package/dist/components/index-CaFVBHZz.js +1 -0
- package/dist/components/index-CyT0hgZn.js +1 -0
- package/dist/components/index-DAboJYKJ.js +1 -0
- package/dist/components/index-DIw4zyNG.js +1 -0
- package/dist/components/index-DpUtikes.js +1 -0
- package/dist/components/index-ZMIfeyHL.js +1 -0
- package/dist/components/index-fkj4Fdgt.js +1 -0
- package/dist/components/setupTests.d.ts +3 -0
- package/dist/components/tslib.es6-BtVxab8e.js +1 -0
- package/dist/themes/default.css +1 -1
- package/package.json +139 -47
- package/dist/components/Dropdown.js +0 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { MenuPrimitiveProps } from '~/core/primitives/Menu/MenuPrimitive';
|
|
4
|
+
|
|
5
|
+
type MenubarSubTriggerProps = {
|
|
6
|
+
children: React__default.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
} & MenuPrimitiveProps.Trigger;
|
|
9
|
+
|
|
10
|
+
type MenubarSubProps = {
|
|
11
|
+
children: React__default.ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
} & MenuPrimitiveProps.Sub;
|
|
14
|
+
|
|
15
|
+
type MenubarItemProps = {
|
|
16
|
+
children: React__default.ReactNode;
|
|
17
|
+
className?: string;
|
|
18
|
+
label?: string;
|
|
19
|
+
} & MenuPrimitiveProps.Item;
|
|
20
|
+
|
|
21
|
+
type MenubarPortalProps = {
|
|
22
|
+
children: React__default.ReactNode;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
type MenubarContentProps = {
|
|
26
|
+
children: React__default.ReactNode;
|
|
27
|
+
className?: string;
|
|
28
|
+
} & MenuPrimitiveProps.Content;
|
|
29
|
+
|
|
30
|
+
type MenubarTriggerProps = {
|
|
31
|
+
children: React__default.ReactNode;
|
|
32
|
+
className?: string;
|
|
33
|
+
} & MenuPrimitiveProps.Trigger;
|
|
34
|
+
|
|
35
|
+
type MenubarMenuProps = {
|
|
36
|
+
children: React__default.ReactNode;
|
|
37
|
+
className?: string;
|
|
38
|
+
} & MenuPrimitiveProps.Root;
|
|
39
|
+
|
|
40
|
+
type MenubarRootProps = {
|
|
41
|
+
children: React__default.ReactNode;
|
|
42
|
+
customRootClass?: string;
|
|
43
|
+
className?: string;
|
|
44
|
+
dir?: 'ltr' | 'rtl';
|
|
45
|
+
loop?: boolean;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
declare const Menubar: {
|
|
49
|
+
(): null;
|
|
50
|
+
Root: ({ children, customRootClass, className, dir, loop, ...props }: MenubarRootProps) => React.JSX.Element;
|
|
51
|
+
Menu: ({ children, className, ...props }: MenubarMenuProps) => React.JSX.Element | null;
|
|
52
|
+
Trigger: ({ children, className, ...props }: MenubarTriggerProps) => React.JSX.Element | null;
|
|
53
|
+
Content: ({ children, className, ...props }: MenubarContentProps) => React.JSX.Element | null;
|
|
54
|
+
Portal: ({ children }: MenubarPortalProps) => React.JSX.Element | null;
|
|
55
|
+
Item: ({ children, className, label, ...props }: MenubarItemProps) => React.JSX.Element | null;
|
|
56
|
+
Sub: ({ children, className, ...props }: MenubarSubProps) => React.JSX.Element | null;
|
|
57
|
+
SubTrigger: ({ children, className, ...props }: MenubarSubTriggerProps) => React.JSX.Element | null;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export { Menubar as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use client';import{_ as e,a as t,b as n}from"./tslib.es6-BtVxab8e.js";import r from"react";import{c as o}from"./index-BVxS3Ixi.js";import{c as a}from"./clsx-BaVHROc5.js";import{F as s}from"./index-DAboJYKJ.js";import{M as l}from"./MenuPrimitive-M690K2sI.js";import"./floating-ui.react-jh3caJnc.js";import"react/jsx-runtime";import"react-dom";import"./index-fkj4Fdgt.js";import"./index-8D8A0ALD.js";import"./index-DIw4zyNG.js";var u=r.createContext(null),i=r.createContext(null),c=function(){return console.warn("Direct usage of Menubar is not supported. Please use Menubar.Root, Menubar.Item instead."),null};c.Root=function(l){var i=l.children,c=l.customRootClass,m=l.className,d=l.dir,f=l.loop,b=e(l,["children","customRootClass","className","dir","loop"]),g=o(c,"Menubar"),h=r.useState([]),p=h[0],v=h[1],C=r.useState(0),M=C[0],N=C[1],x=function(e,n){v((function(r){return r.map((function(r){return r.id===e?t(t({},r),{state:n}):r}))}))};return r.createElement(u.Provider,{value:{rootClass:g,registerItem:function(e,r){void 0===r&&(r="closed"),v((function(o){return o.find((function(t){return t.id===e}))?o.map((function(n){return n.id===e?t(t({},n),{state:r}):n})):n(n([],o,!0),[{id:e,state:r}],!1)}))},items:p,updateItemState:x}},r.createElement(s.Composite,t({className:a("".concat(g,"-root"),m),dir:d,loop:f},b,{activeIndex:M,onNavigate:function(e){var t=p[M],n=p[e];if(t&&x(t.id,"closed"),n){var r="open"===(null==t?void 0:t.state);x(n.id,r?"open":"closed")}N(e)}}),i))},c.Menu=function(n){var o,c=n.children,m=n.className,d=e(n,["children","className"]),f=r.useContext(u),b=s.useId();if(!f)return console.log("MenubarMenu should be used in the MenubarRoot"),null;var g=f.rootClass,h=f.registerItem,p=f.items,v=f.updateItemState;r.useEffect((function(){b&&h(b)}),[b]);var C="open"===(null===(o=p.find((function(e){return e.id===b})))||void 0===o?void 0:o.state);return r.createElement(l.Root,t({className:a("".concat(g,"-menu"),m),"data-id":b,"data-active":C,open:C,onOpenChange:function(e){return b&&v(b,e?"open":"closed")}},d),r.createElement(i.Provider,{value:{isOpen:C}},c))},c.Trigger=function(n){var o=n.children,c=n.className,m=e(n,["children","className"]),d=r.useContext(u),f=r.useContext(i);if(!d)return console.log("MenubarTrigger should be used in the MenubarRoot"),null;var b=d.rootClass;if(!f)return console.log("MenubarTrigger should be used in the MenubarMenu"),null;var g=f.isOpen;return r.createElement(s.CompositeItem,{render:function(){return r.createElement(l.Trigger,t({className:a("".concat(b,"-trigger"),c),"data-active":g},m),o)}})},c.Content=function(n){var o=n.children,s=n.className,i=e(n,["children","className"]),c=r.useContext(u);if(!c)return console.log("MenubarContent should be used in the MenubarRoot"),null;var m=c.rootClass;return r.createElement(l.Content,t({className:a("".concat(m,"-content"),s)},i),o)},c.Portal=function(e){var t=e.children,n=r.useContext(u);return n?(n.rootClass,r.createElement(l.Portal,null,t)):(console.log("MenubarPortal should be used in the MenubarRoot"),null)},c.Item=function(n){var o=n.children,s=n.className,i=n.label,c=e(n,["children","className","label"]),m=r.useContext(u);if(!m)return console.log("MenubarItem should be used in the MenubarRoot"),null;var d=m.rootClass;return r.createElement(l.Item,t({className:a("".concat(d,"-item"),s),label:i},c),o)},c.Sub=function(n){var o=n.children,s=n.className,i=e(n,["children","className"]),c=r.useContext(u);if(!c)return console.log("MenubarSub should be used in the MenubarRoot"),null;var m=c.rootClass;return r.createElement(l.Sub,t({className:a("".concat(m,"-sub"),s)},i),o)},c.SubTrigger=function(n){var o=n.children,s=n.className,i=e(n,["children","className"]),c=r.useContext(u);if(!c)return console.log("MenubarSubTrigger should be used in the MenubarRoot"),null;var m=c.rootClass;return r.createElement(l.Trigger,t({className:a("".concat(m,"-sub-trigger"),s)},i),o)};export{c as default};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
type NumberFieldDecrementProps = {
|
|
5
|
+
className?: string;
|
|
6
|
+
children?: React__default.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
type NumberFieldIncrementProps = {
|
|
10
|
+
className?: string;
|
|
11
|
+
children?: React__default.ReactNode;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
type NumberFieldInputProps = {
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
type NumberFieldRootProps = {
|
|
19
|
+
name?: string;
|
|
20
|
+
defaultValue?: number | '';
|
|
21
|
+
value?: number | '';
|
|
22
|
+
onValueChange?: (value: number | '') => void;
|
|
23
|
+
step?: number;
|
|
24
|
+
largeStep?: number;
|
|
25
|
+
min?: number;
|
|
26
|
+
max?: number;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
readOnly?: boolean;
|
|
29
|
+
required?: boolean;
|
|
30
|
+
id?: string;
|
|
31
|
+
className?: string;
|
|
32
|
+
children?: React__default.ReactNode;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
declare const NumberField: {
|
|
36
|
+
(): null;
|
|
37
|
+
Root: ({ children, name, defaultValue, value, onValueChange, largeStep, step, min, max, disabled, readOnly, required, id, className, ...props }: NumberFieldRootProps) => React.JSX.Element;
|
|
38
|
+
Input: ({ className, ...props }: NumberFieldInputProps) => React.JSX.Element | null;
|
|
39
|
+
Increment: ({ children, className, ...props }: NumberFieldIncrementProps) => React.JSX.Element | null;
|
|
40
|
+
Decrement: ({ children, className, ...props }: NumberFieldDecrementProps) => React.JSX.Element | null;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export { NumberField as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use client';import{_ as e,a as n}from"./tslib.es6-BtVxab8e.js";import r,{useContext as t}from"react";import{u as a}from"./index-fkj4Fdgt.js";import{c as l}from"./index-BVxS3Ixi.js";import{c as i}from"./clsx-BaVHROc5.js";var o=r.createContext(null),d=function(){return console.warn("Direct usage of NumberField is not supported. Please use NumberField.Root, NumberField.Item instead."),null};d.Root=function(t){var d=t.children,u=t.name,s=t.defaultValue,c=void 0===s?"":s,m=t.value,p=t.onValueChange,f=t.largeStep,b=t.step,v=t.min,y=t.max,h=t.disabled,N=t.readOnly,g=t.required,w=t.id,C=t.className,D=e(t,["children","name","defaultValue","value","onValueChange","largeStep","step","min","max","disabled","readOnly","required","id","className"]),F=l(C,"NumberField"),O=a(m,c,p),k=O[0],x=O[1],S={inputValue:k,handleOnChange:function(e){x(""!==e?void 0!==y&&e>y?y:void 0!==v&&e<v?v:e:"")},handleStep:function(e){var n=e.type,r=e.direction,t=0;switch(n){case"small":if(!b)return;t=b;break;case"large":if(!f)return;t=f}"decrement"===r&&(t*=-1),function(e){x((function(n){var r=n;""===r&&(r=void 0!==v?v:-1);var t=r+e;return void 0!==y&&t>y?y:void 0!==v&&t<v?v:t}))}(t)},id:w,name:u,disabled:h,readOnly:N,required:g,rootClass:F};return r.createElement("div",n({className:i("".concat(F,"-root"),C)},D),r.createElement(o.Provider,{value:S},d))},d.Input=function(a){var l=a.className,d=e(a,["className"]),u=t(o);if(!u)return console.error("NumberFieldInput must be used within a NumberField"),null;var s=u.inputValue,c=u.handleOnChange,m=u.handleStep,p=u.id,f=u.name,b=u.disabled,v=u.readOnly,y=u.required,h=u.rootClass;return r.createElement("input",n({type:"number",onKeyDown:function(e){"ArrowUp"!==e.key||e.shiftKey||(e.preventDefault(),m({direction:"increment",type:"small"})),"ArrowDown"!==e.key||e.shiftKey||(e.preventDefault(),m({direction:"decrement",type:"small"})),"ArrowUp"===e.key&&e.shiftKey&&(e.preventDefault(),m({direction:"increment",type:"large"})),"ArrowDown"===e.key&&e.shiftKey&&(e.preventDefault(),m({direction:"decrement",type:"large"}))},value:""===s?"":s,onChange:function(e){var n=e.target.value;c(""===n?"":Number(n))},id:p,name:f,disabled:b,readOnly:v,required:y,className:i("".concat(h,"-input"),l)},d))},d.Increment=function(a){var l=a.children,d=a.className,u=e(a,["children","className"]),s=t(o);if(!s)return console.error("NumberFieldIncrement must be used within a NumberField"),null;var c=s.handleStep,m=s.rootClass,p=s.disabled,f=s.readOnly;return r.createElement("button",n({onClick:function(){return c({direction:"increment",type:"small"})},className:i("".concat(m,"-increment"),d),disabled:p||f,type:"button"},u),l)},d.Decrement=function(a){var l=a.children,d=a.className,u=e(a,["children","className"]),s=t(o);if(!s)return console.error("NumberFieldDecrement must be used within a NumberField"),null;var c=s.handleStep,m=s.rootClass,p=s.disabled,f=s.readOnly;return r.createElement("button",n({onClick:function(){return c({direction:"decrement",type:"small"})},className:i("".concat(m,"-decrement"),d),disabled:p||f,type:"button"},u),l)};export{d as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
interface IndicatorProps {
|
|
5
|
+
asChild?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare function ProgressIndicator({ asChild }: IndicatorProps): React__default.JSX.Element;
|
|
8
|
+
|
|
9
|
+
declare const COMPONENT_NAME = "Progress";
|
|
10
|
+
declare function Progress(): null;
|
|
11
|
+
declare namespace Progress {
|
|
12
|
+
var Root: ({ value, minValue, maxValue, children, customRootClass, asChild, getValueLabel }: {
|
|
13
|
+
asChild?: boolean;
|
|
14
|
+
value: number | null;
|
|
15
|
+
minValue: number;
|
|
16
|
+
maxValue: number;
|
|
17
|
+
getValueLabel?: (value: number, minValue: number, maxValue: number) => string;
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
customRootClass?: string;
|
|
20
|
+
}) => React$1.JSX.Element;
|
|
21
|
+
var Indicator: typeof ProgressIndicator;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { COMPONENT_NAME, Progress as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use client';import
|
|
1
|
+
'use client';import a,{createContext as e,useState as l,useEffect as r,useContext as t}from"react";import{c as o}from"./clsx-BaVHROc5.js";import{c as s}from"./index-BVxS3Ixi.js";import{P as i}from"./index-DIw4zyNG.js";import{a as n}from"./tslib.es6-BtVxab8e.js";var u=e({value:0,minValue:0,maxValue:100,rootClass:"",ariaLabel:"",state:"loading"}),m="loading",d="complete",v="indeterminate";var c="Progress";function x(){return console.warn("Direct usage of Progress is not supported. Please use Progress.Root, Progress.Indicator, etc. instead."),null}x.Root=function(e){var t,n=e.value,c=void 0===n?0:n,x=e.minValue,f=void 0===x?0:x,g=e.maxValue,p=void 0===g?100:g,V=e.children,b=e.customRootClass,C=e.asChild,P=e.getValueLabel,h=l(m),j=h[0],L=h[1],w=s(b,"Progress"),E=null!==(t=null==P?void 0:P(null!=c?c:0,f,p))&&void 0!==t?t:"";r((function(){L(null===c?v:c===p?d:m)}),[c,p]);var R={value:c,minValue:f,maxValue:p,rootClass:w,getValueLabel:P,ariaLabel:E,state:j};return a.createElement(u.Provider,{value:R},a.createElement(i.div,{role:"progressbar","aria-label":E,"aria-valuetext":E,"aria-valuenow":null!=c?c:0,"aria-valuemin":f,"aria-valuemax":p,"data-state":j,"data-value":null!=c?c:0,"data-max":p,"data-min":f,className:o(w),asChild:C},V))},x.Indicator=function(e){var l=e.asChild,r=t(u),s=r.value,m=r.minValue,d=r.maxValue,v=r.rootClass,c=r.state,x=Math.min(Math.max(null!=s?s:0,m),d),f=(x-m)/(d-m)*100;return a.createElement(i.div,n({role:"progressbar",className:o("".concat(v,"-indicator")),style:{transform:"translateX(-".concat(100-f,"%)")},"aria-valuenow":x,"aria-valuemax":d,"aria-valuemin":m,"data-state":c,"data-value":x,"data-max":d,"data-min":m,asChild:l},{}))};export{c as COMPONENT_NAME,x as default};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
type QuoteProps = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
customRootClass?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
props?: Record<string, any>[];
|
|
8
|
+
};
|
|
9
|
+
declare const Quote: {
|
|
10
|
+
({ children, customRootClass, className, ...props }: QuoteProps): React.JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { Quote as default };
|
|
15
|
+
export type { QuoteProps };
|
package/dist/components/Quote.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use client';import
|
|
1
|
+
'use client';import{_ as s,a}from"./tslib.es6-BtVxab8e.js";import e from"react";import{c as o}from"./index-BVxS3Ixi.js";import{c as r}from"./clsx-BaVHROc5.js";var t="Quote",m=function(m){var c=m.children,l=m.customRootClass,i=m.className,n=s(m,["children","customRootClass","className"]),f=o(l,t);return e.createElement("q",a({className:r(f,i)},n),c)};m.displayName=t;export{m as default};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RadioPrimitiveProps } from '~/core/primitives/Radio';
|
|
3
|
+
|
|
4
|
+
type RadioProps = RadioPrimitiveProps & {
|
|
5
|
+
customRootClass?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
size?: string;
|
|
8
|
+
color?: string;
|
|
9
|
+
variant?: string;
|
|
10
|
+
};
|
|
11
|
+
declare function Radio({ name, value, id, checked, required, onChange, disabled, asChild, className, customRootClass, variant, size, color, ...props }: RadioProps): React.JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { Radio as default };
|
|
14
|
+
export type { RadioProps };
|
package/dist/components/Radio.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use client';import
|
|
1
|
+
'use client';import{_ as e,a}from"./tslib.es6-BtVxab8e.js";import i from"react";import{P as d}from"./index-DIw4zyNG.js";import{c as s}from"./clsx-BaVHROc5.js";import{c as r}from"./index-BVxS3Ixi.js";import{u as o,a as n,b as l}from"./index-DpUtikes.js";function t(s){var r=s.name,o=s.value,n=s.id,l=s.checked,t=s.required,c=s.onChange,m=s.disabled,u=s.asChild,h=s.className,v=e(s,["name","value","id","checked","required","onChange","disabled","asChild","className"]);return i.createElement(d.input,a({type:"radio",checked:l,name:r,tabIndex:-1,value:o,onChange:c,id:n,"aria-disabled":m,disabled:m,required:t,"aria-required":t,asChild:u,className:h},v))}function c(d){var c=d.name,m=d.value,u=d.id,h=d.checked,v=void 0!==h&&h,C=d.required,b=d.onChange,f=d.disabled,p=d.asChild,k=d.className,q=d.customRootClass,g=d.variant,x=void 0===g?"":g,N=d.size,j=void 0===N?"":N,z=d.color,R=void 0===z?"":z,E=e(d,["name","value","id","checked","required","onChange","disabled","asChild","className","customRootClass","variant","size","color"]),y=r(q,"Radio"),I=i.useState(v),P=I[0],S=I[1],_=o("button",{variant:x,size:j}),w=n(R),A=l(_(),w());return i.createElement(t,a({name:c,id:u,value:m,checked:P,required:C,onChange:function(){b&&b(),S(!P)},disabled:f,asChild:p,className:s(y,k),"data-checked":P},A(),E))}export{c as default};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RadioGroupPrimitiveProps } from '~/core/primitives/RadioGroup/RadioGroupPrimitive';
|
|
3
|
+
|
|
4
|
+
type RadioCardsItemProps = {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
value: string;
|
|
8
|
+
} & RadioGroupPrimitiveProps.Item;
|
|
9
|
+
|
|
10
|
+
type RadioCardsProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
};
|
|
13
|
+
declare const RadioCards: {
|
|
14
|
+
(): null;
|
|
15
|
+
Root: ({ children, className, customRootClass, variant, size, color, ...props }: {
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
className?: string;
|
|
18
|
+
customRootClass?: string;
|
|
19
|
+
variant?: string;
|
|
20
|
+
size?: string;
|
|
21
|
+
color?: string;
|
|
22
|
+
} & {
|
|
23
|
+
className?: string;
|
|
24
|
+
customRootClass?: string;
|
|
25
|
+
value?: string;
|
|
26
|
+
defaultValue?: string;
|
|
27
|
+
onValueChange?: (value: string) => void;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
required?: boolean;
|
|
30
|
+
name?: string;
|
|
31
|
+
orientation?: "horizontal" | "vertical" | "both";
|
|
32
|
+
loop?: boolean;
|
|
33
|
+
dir?: "ltr" | "rtl";
|
|
34
|
+
} & {
|
|
35
|
+
children?: React.ReactNode | undefined;
|
|
36
|
+
}) => React.JSX.Element;
|
|
37
|
+
Item: ({ children, className, value, ...props }: RadioCardsItemProps) => React.JSX.Element;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export { RadioCards as default };
|
|
41
|
+
export type { RadioCardsProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use client';import
|
|
1
|
+
'use client';import{_ as a,a as o}from"./tslib.es6-BtVxab8e.js";import s,{createContext as e,useContext as r}from"react";import{R as i}from"./RadioGroupPrimitive-CUgW2PyL.js";import{c as t}from"./clsx-BaVHROc5.js";import{c as d}from"./index-BVxS3Ixi.js";import{u as m,a as n,b as l}from"./index-DpUtikes.js";import"./index-DIw4zyNG.js";import"./index-BNg6qXF-.js";import"./index-8D8A0ALD.js";import"./index-fkj4Fdgt.js";var c=e({rootClass:""}),u=function(){return console.warn("Direct usage of RadioCards is not supported. Please use RadioCards.Root and RadioCards.Item instead."),null};u.Root=function(e){var r=e.children,u=e.className,v=void 0===u?"":u,p=e.customRootClass,f=void 0===p?"":p,R=e.variant,j=void 0===R?"":R,C=e.size,x=void 0===C?"":C,N=e.color,h=void 0===N?"":N,z=a(e,["children","className","customRootClass","variant","size","color"]),E=d(f,"RadioCards"),I=m("radio-cards",{variant:j,size:x}),P=n(h),b=l(I(),P());return s.createElement(c.Provider,{value:{rootClass:E}},s.createElement(i.Root,o({className:t(E,v)},b,z),r))},u.Item=function(e){var d=e.children,m=e.className,n=void 0===m?"":m,l=e.value,u=a(e,["children","className","value"]),v=r(c).rootClass;return s.createElement(i.Item,o({className:t("".concat(v,"-item"),n)},u,{value:l}),d)};export{u as default};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RadioGroupPrimitiveProps } from '~/core/primitives/RadioGroup/RadioGroupPrimitive';
|
|
3
|
+
|
|
4
|
+
type RadioGroupLabelProps = {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
type RadioGroupIndicatorProps = {
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
} & RadioGroupPrimitiveProps.Indicator;
|
|
14
|
+
|
|
15
|
+
type RadioGroupItemProps = {
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
className?: string;
|
|
18
|
+
value: string;
|
|
19
|
+
} & RadioGroupPrimitiveProps.Item;
|
|
20
|
+
|
|
21
|
+
type RadioGroupProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
};
|
|
24
|
+
declare const RadioGroup: {
|
|
25
|
+
(): null;
|
|
26
|
+
Root: ({ children, className, customRootClass, variant, size, color, ...props }: {
|
|
27
|
+
children: React.ReactNode;
|
|
28
|
+
className?: string;
|
|
29
|
+
customRootClass?: string;
|
|
30
|
+
variant?: string;
|
|
31
|
+
size?: string;
|
|
32
|
+
color?: string;
|
|
33
|
+
} & {
|
|
34
|
+
className?: string;
|
|
35
|
+
customRootClass?: string;
|
|
36
|
+
value?: string;
|
|
37
|
+
defaultValue?: string;
|
|
38
|
+
onValueChange?: (value: string) => void;
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
required?: boolean;
|
|
41
|
+
name?: string;
|
|
42
|
+
orientation?: "horizontal" | "vertical" | "both";
|
|
43
|
+
loop?: boolean;
|
|
44
|
+
dir?: "ltr" | "rtl";
|
|
45
|
+
} & {
|
|
46
|
+
children?: React.ReactNode | undefined;
|
|
47
|
+
}) => React.JSX.Element;
|
|
48
|
+
Item: ({ children, className, value, ...props }: RadioGroupItemProps) => React.JSX.Element;
|
|
49
|
+
Indicator: ({ className, children, ...props }: RadioGroupIndicatorProps) => React.JSX.Element;
|
|
50
|
+
Label: ({ className, asChild, children, ...props }: RadioGroupLabelProps) => React.JSX.Element;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export { RadioGroup as default };
|
|
54
|
+
export type { RadioGroupProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use client';import
|
|
1
|
+
'use client';import{_ as a,a as o}from"./tslib.es6-BtVxab8e.js";import e,{createContext as s,useContext as r}from"react";import{R as t}from"./RadioGroupPrimitive-CUgW2PyL.js";import{c as i}from"./clsx-BaVHROc5.js";import{c as l}from"./index-BVxS3Ixi.js";import{u as n,a as c,b as d}from"./index-DpUtikes.js";import{P as m}from"./index-DIw4zyNG.js";import"./index-BNg6qXF-.js";import"./index-8D8A0ALD.js";import"./index-fkj4Fdgt.js";var u=s({rootClass:""}),v=function(){return console.warn("Direct usage of RadioGroup is not supported. Please use RadioGroup.Root and RadioGroup.Item instead."),null};v.Root=function(s){var r=s.children,m=s.className,v=void 0===m?"":m,p=s.customRootClass,f=void 0===p?"":p,C=s.variant,N=void 0===C?"":C,h=s.size,R=void 0===h?"":h,x=s.color,j=void 0===x?"":x,b=a(s,["children","className","customRootClass","variant","size","color"]),E=l(f,"RadioGroup"),G=n("radio-group",{variant:N,size:R}),I=c(j),P=d(G(),I());return e.createElement(u.Provider,{value:{rootClass:E}},e.createElement(t.Root,o({className:i("".concat(E,"-root"),v)},P(),b)," ",r," "))},v.Item=function(s){var l=s.children,n=s.className,c=void 0===n?"":n,d=s.value,m=a(s,["children","className","value"]),v=r(u).rootClass;return e.createElement(t.Item,o({className:i("".concat(v,"-item"),c),value:d},m),l)},v.Indicator=function(s){var r=s.className,l=void 0===r?"":r,n=s.children,c=a(s,["className","children"]),d=e.useContext(u).rootClass;return e.createElement(t.Indicator,o({className:i("".concat(d,"-indicator"),l)},c),n)},v.Label=function(s){var r=s.className,t=void 0===r?"":r,l=s.asChild,n=void 0!==l&&l,c=s.children,d=a(s,["className","asChild","children"]),v=e.useContext(u).rootClass;return e.createElement(m.label,o({},d,{className:i("".concat(v,"-label"),t),asChild:n})," ",c," ")};export{v as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use client';import{_ as e,a}from"./tslib.es6-BtVxab8e.js";import r,{useContext as i}from"react";import{P as t}from"./index-DIw4zyNG.js";import{R as o}from"./index-BNg6qXF-.js";import{u as d}from"./index-fkj4Fdgt.js";import{B as l}from"./index-8D8A0ALD.js";var n=r.createContext(null),u=r.createContext({itemSelected:!1}),s=function(){return console.warn("Direct usage of RadioGroup is not supported. Please use RadioGroup.Root, RadioGroup.Item, etc. instead."),null};s.Root=function(i){var l=i.value,u=i.defaultValue,s=void 0===u?"":u,c=i.onValueChange,m=i.children,v=i.disabled,p=void 0!==v&&v,h=i.required,f=void 0!==h&&h,b=i.name,C=void 0===b?"":b,R=i.orientation,E=void 0===R?"horizontal":R,x=i.loop,V=void 0!==x&&x,q=i.dir,g=void 0===q?"ltr":q,G=e(i,["value","defaultValue","onValueChange","children","disabled","required","name","orientation","loop","dir"]),N=d(l,s,c),j=N[0],I={selectedValue:j,setSelectedValue:N[1],groupDisabled:p};return r.createElement(t.div,a({},G,{"aria-required":f,role:"radiogroup","aria-disabled":p}),r.createElement(o.Root,{dir:g,orientation:E,loop:V},r.createElement(n.Provider,{value:I},r.createElement(o.Group,null,m))),r.createElement("input",{type:"radio",hidden:!0,name:C,value:j,disabled:p,required:f}))},s.Item=function(t){var d=t.value,s=t.children,c=t.disabled,m=t.required,v=void 0!==m&&m,p=t.className,h=void 0===p?"":p,f=t.asChild,b=void 0!==f&&f,C=e(t,["value","children","disabled","required","className","asChild"]),R=i(n);if(!R)throw new Error("RadioGroup.Item must be used within a RadioGroup.Root");var E=R.groupDisabled,x=R.selectedValue,V=R.setSelectedValue,q=d===x;return r.createElement(o.Item,null,r.createElement(l,a({role:"radio",type:"button",disabled:E||c,onClick:function(){return V(d)},onFocus:function(){return V(d)},"aria-disabled":E||c,"aria-checked":d===x,"data-checked":d===x,"aria-required":v,asChild:b,className:h},C),r.createElement(u.Provider,{value:{itemSelected:q}},s)))},s.Indicator=function(i){var o=i.children,d=i.className,l=i.asChild,n=void 0!==l&&l,s=e(i,["children","className","asChild"]);return r.useContext(u).itemSelected?r.createElement(t.span,a({className:d,asChild:n},s),o):null};export{s as R};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
declare const ScrollArea: {
|
|
4
|
+
(): null;
|
|
5
|
+
Root: ({ children, className, customRootClass, ...props }: {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
customRootClass?: string;
|
|
9
|
+
}) => react.JSX.Element;
|
|
10
|
+
Viewport: ({ children, className, ...props }: React.HTMLAttributes<HTMLDivElement>) => react.JSX.Element;
|
|
11
|
+
Scrollbar: ({ children, className, orientation, ...props }: react.HTMLAttributes<HTMLDivElement> & {
|
|
12
|
+
orientation?: "horizontal" | "vertical";
|
|
13
|
+
}) => react.JSX.Element;
|
|
14
|
+
Thumb: ({ children, className, ...props }: React.HTMLAttributes<HTMLDivElement>) => react.JSX.Element;
|
|
15
|
+
Corner: ({ children, ...props }: React.HTMLAttributes<HTMLDivElement>) => react.JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { ScrollArea as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use client';import e,{createContext as
|
|
1
|
+
'use client';import{_ as e,a as r}from"./tslib.es6-BtVxab8e.js";import n,{createContext as t,useRef as o,useEffect as c,useContext as l,useCallback as u}from"react";import{c as i}from"./clsx-BaVHROc5.js";import{c as a}from"./index-BVxS3Ixi.js";var s=t({rootClass:""}),d=function(){return console.warn("Direct usage of ScrollArea is not supported. Please use ScrollArea.Root and ScrollArea.Viewport instead."),null};d.Root=function(t){var l=t.children,u=t.className,d=void 0===u?"":u,v=t.customRootClass,m=void 0===v?"":v,f=e(t,["children","className","customRootClass"]),h=a(m,"ScrollArea"),p=o(null),E=o(null);c((function(){g()}),[p,E]),c((function(){var e=E.current;if(e){var r=function(){g()},n=new ResizeObserver((function(n){for(var t=0,o=n;t<o.length;t++){var c=o[t];(c.target===e||e.contains(c.target))&&r()}}));n.observe(e);var t=function(e){n.observe(e),Array.from(e.children).forEach((function(e){t(e)}))};Array.from(e.children).forEach((function(e){t(e)}));var o=new MutationObserver((function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){e.nodeType===Node.ELEMENT_NODE&&t(e)}))})),r()}));return o.observe(e,{childList:!0,subtree:!0}),window.addEventListener("resize",r),function(){n.disconnect(),o.disconnect(),window.removeEventListener("resize",r)}}}),[]);var g=function(){var e,r,n=(null===(e=null==E?void 0:E.current)||void 0===e?void 0:e.clientHeight)||0,t=n/(((null===(r=null==E?void 0:E.current)||void 0===r?void 0:r.scrollHeight)||0)/n);t<24&&(t=24),p.current&&(p.current.style.height="".concat(t,"px"))},b=function(e){if(E.current){var r=E.current.scrollTop,n=e-r,t=performance.now(),o=function(e){var c=e-t,l=Math.min(c/150,1),u=1-Math.pow(1-l,3),i=r+n*u;E.current&&(E.current.scrollTop=i),l<1&&requestAnimationFrame(o)};requestAnimationFrame(o)}};return n.createElement(s.Provider,{value:{rootClass:h,scrollXThumbRef:p,scrollAreaViewportRef:E,handleScroll:function(){var e,r,n,t,o=(null===(e=E.current)||void 0===e?void 0:e.clientHeight)||0,c=(null===(r=E.current)||void 0===r?void 0:r.scrollHeight)||0,l=((null===(n=E.current)||void 0===n?void 0:n.scrollTop)||0)/(c-o)*(o-((null===(t=p.current)||void 0===t?void 0:t.clientHeight)||0));p.current&&(p.current.style.top="".concat(l,"px"))},handleScrollbarClick:function(e){!function(e){var r,n,t,o=(null===(r=null==E?void 0:E.current)||void 0===r?void 0:r.clientHeight)||0,c=((null===(n=null==E?void 0:E.current)||void 0===n?void 0:n.scrollHeight)||0)/o;if(p.current){var l=p.current.getBoundingClientRect().top,u=l+p.current.clientHeight,i=(null===(t=p.current)||void 0===t?void 0:t.clientHeight)||0;if(e>l&&e<u)return;if(e<l){var a=E.current.scrollTop-i*c;b(a)}e>u&&(a=E.current.scrollTop+i*c,b(a))}}(e.clientY)}}},n.createElement("div",r({className:i(h,d)},f),l))},d.Viewport=function(t){var o=t.children,c=t.className,u=void 0===c?"":c,a=e(t,["children","className"]),d=l(s),v=d.rootClass,m=d.scrollAreaViewportRef,f=d.handleScroll;return n.createElement("div",r({ref:m,className:i(v+"-viewport",u),onScroll:f},a),o)},d.Scrollbar=function(t){var c=t.children,a=t.className,d=void 0===a?"":a,v=t.orientation,m=e(t,["children","className","orientation"]),f=l(s),h=f.rootClass,p=f.handleScrollbarClick,E=f.scrollXThumbRef,g=o(null),b=o(!1),w=o(0),T=u((function(e){if(!(null==E?void 0:E.current))return!1;var r=E.current.getBoundingClientRect(),n=r.top,t=r.bottom;return!(e>=n&&e<=t)}),[E]),N=u((function(e){p&&(e.preventDefault(),w.current=e.clientY,p({clientY:e.clientY}),setTimeout((function(){b.current&&(g.current=setInterval((function(){b.current&&T(w.current)?p({clientY:w.current}):L()}),50))}),300),b.current=!0)}),[p,T]),L=u((function(){b.current=!1,g.current&&(clearInterval(g.current),g.current=null)}),[]);return n.useEffect((function(){var e=function(){return L()},r=function(){return L()};return document.addEventListener("mouseup",e),document.addEventListener("mouseleave",r),function(){document.removeEventListener("mouseup",e),document.removeEventListener("mouseleave",r),L()}}),[L]),n.createElement("div",r({className:i(h+"-scrollbar",d),"data-orientation":v,onMouseDown:N,onMouseUp:L,onMouseLeave:L},m),c)},d.Thumb=function(t){var c=t.children,a=t.className,d=void 0===a?"":a,v=e(t,["children","className"]),m=l(s),f=m.rootClass,h=m.scrollXThumbRef,p=m.scrollAreaViewportRef,E=o(!1),g=o({y:0,scrollTop:0}),b=u((function(e){(null==p?void 0:p.current)&&(null==h?void 0:h.current)&&(e.preventDefault(),e.stopPropagation(),E.current=!0,g.current={y:e.clientY,scrollTop:p.current.scrollTop},document.body.style.userSelect="none")}),[p,h]),w=u((function(e){var r;if(E.current&&(null==p?void 0:p.current)&&(null==h?void 0:h.current)){e.preventDefault();var n=e.clientY-g.current.y,t=null===(r=h.current.parentElement)||void 0===r?void 0:r.getBoundingClientRect();if(t){var o=p.current.clientHeight,c=p.current.scrollHeight,l=h.current.clientHeight,u=n/(t.height-l),i=c-o,a=g.current.scrollTop+u*i,s=Math.max(0,Math.min(a,i));p.current.scrollTop=s}}}),[p,h]),T=u((function(){E.current=!1,document.body.style.cursor="",document.body.style.userSelect=""}),[]);return n.useEffect((function(){var e=function(e){return w(e)},r=function(){return T()};return E.current&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",r)),document.addEventListener("mousemove",e),document.addEventListener("mouseup",r),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",r),T()}}),[w,T]),n.createElement("div",r({ref:h,className:i(f+"-thumb",d),onMouseDown:b},v),c)},d.Corner=function(t){var o=t.children,c=e(t,["children"]);return n.createElement("div",r({},c),o)};export{d as default};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
type SelectPortalProps = {
|
|
5
|
+
children: React__default.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
declare function SelectContent({ customRootClass, children, position, ...props }: any): React__default.JSX.Element;
|
|
9
|
+
|
|
10
|
+
declare function SelectItem({ customRootClass, children, value, disabled, ...props }: any): React__default.JSX.Element;
|
|
11
|
+
|
|
12
|
+
declare function SelectTrigger({ customRootClass, children, disabled, placeholder, ...props }: any): React__default.JSX.Element;
|
|
13
|
+
|
|
14
|
+
declare function SelectRoot({ customRootClass, children, defaultValue, value, onValueChange, shift, ...props }: any): React__default.JSX.Element;
|
|
15
|
+
|
|
16
|
+
declare function SelectIndicator(): React__default.JSX.Element;
|
|
17
|
+
|
|
18
|
+
type SelectGroupProps = {
|
|
19
|
+
children: React__default.ReactNode;
|
|
20
|
+
};
|
|
21
|
+
declare function SelectGroup({ children }: SelectGroupProps): React__default.JSX.Element;
|
|
22
|
+
|
|
23
|
+
declare function SelectSearch(): React__default.JSX.Element;
|
|
24
|
+
|
|
25
|
+
declare const Select: {
|
|
26
|
+
(): null;
|
|
27
|
+
Root: typeof SelectRoot;
|
|
28
|
+
Content: typeof SelectContent;
|
|
29
|
+
Item: typeof SelectItem;
|
|
30
|
+
Trigger: typeof SelectTrigger;
|
|
31
|
+
Portal: ({ children }: SelectPortalProps) => React.JSX.Element;
|
|
32
|
+
Group: typeof SelectGroup;
|
|
33
|
+
Indicator: typeof SelectIndicator;
|
|
34
|
+
Search: typeof SelectSearch;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export { Select as default };
|