@radui/ui 0.0.45 → 0.0.46
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/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/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/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/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/setupTests.d.ts +3 -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 r from"./Menubar/fragments/MenubarRoot.js";import e from"./Menubar/fragments/MenubarTrigger.js";import n from"./Menubar/fragments/MenubarContent.js";import a from"./Menubar/fragments/MenubarPortal.js";import t from"./Menubar/fragments/MenubarItem.js";import o from"./Menubar/fragments/MenubarSub.js";import u from"./Menubar/fragments/MenubarSubTrigger.js";import m from"./Menubar/fragments/MenubarMenu.js";var s=function(){return console.warn("Direct usage of Menubar is not supported. Please use Menubar.Root, Menubar.Item instead."),null};s.Root=r,s.Menu=m,s.Trigger=e,s.Content=n,s.Portal=a,s.Item=t,s.Sub=o,s.SubTrigger=u;export{s 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 e from"./NumberField/fragments/NumberFieldRoot.js";import r from"./NumberField/fragments/NumberFieldInput.js";import m from"./NumberField/fragments/NumberFieldIncrement.js";import t from"./NumberField/fragments/NumberFieldDecrement.js";var o=function(){return console.warn("Direct usage of NumberField is not supported. Please use NumberField.Root, NumberField.Item instead."),null};o.Root=e,o.Input=r,o.Increment=m,o.Decrement=t;export{o 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 r from"./Progress/fragments/ProgressRoot.js";import o from"./Progress/fragments/ProgressIndicator.js";var s="Progress";function e(){return console.warn("Direct usage of Progress is not supported. Please use Progress.Root, Progress.Indicator, etc. instead."),null}e.Root=r,e.Indicator=o;export{s as COMPONENT_NAME,e 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{__rest as s,__assign as e}from"./node_modules/tslib/tslib.es6.js";import o from"react";import{customClassSwitcher as t}from"./src/core/customClassSwitcher/index.js";import{clsx as r}from"./node_modules/clsx/dist/clsx.js";var m="Quote",a=function(a){var l=a.children,c=a.customRootClass,i=a.className,d=s(a,["children","customRootClass","className"]),n=t(c,m);return o.createElement("q",e({className:r(n,i)},d),l)};a.displayName=m;export{a 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{__rest as e,__assign as o}from"./node_modules/tslib/tslib.es6.js";import s from"react";import a from"./src/core/primitives/Radio/index.js";import{clsx as i}from"./node_modules/clsx/dist/clsx.js";import{customClassSwitcher as r}from"./src/core/customClassSwitcher/index.js";import{useCreateDataAttribute as t,useCreateDataAccentColorAttribute as d,useComposeAttributes as c}from"./src/core/hooks/createDataAttribute/index.js";function l(l){var m=l.name,n=l.value,u=l.id,h=l.checked,v=void 0!==h&&h,f=l.required,C=l.onChange,p=l.disabled,b=l.asChild,x=l.className,j=l.customRootClass,k=l.variant,R=void 0===k?"":k,g=l.size,q=void 0===g?"":g,z=l.color,N=void 0===z?"":z,S=e(l,["name","value","id","checked","required","onChange","disabled","asChild","className","customRootClass","variant","size","color"]),_=r(j,"Radio"),w=s.useState(v),A=w[0],D=w[1],E=t("button",{variant:R,size:q}),y=d(N),B=c(E(),y());return s.createElement(a,o({name:m,id:u,value:n,checked:A,required:f,onChange:function(){C&&C(),D(!A)},disabled:p,asChild:b,className:i(_,x),"data-checked":A},B(),S))}export{l 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 a from"./RadioCards/fragments/RadioCardsRoot.js";import o from"./RadioCards/fragments/RadioCardsItem.js";var r=function(){return console.warn("Direct usage of RadioCards is not supported. Please use RadioCards.Root and RadioCards.Item instead."),null};r.Root=a,r.Item=o;export{r 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 o from"./RadioGroup/fragments/RadioGroupRoot.js";import r from"./RadioGroup/fragments/RadioGroupItem.js";import a from"./RadioGroup/fragments/RadioGroupIndicator.js";import t from"./RadioGroup/fragments/RadioGroupLabel.js";var i=function(){return console.warn("Direct usage of RadioGroup is not supported. Please use RadioGroup.Root and RadioGroup.Item instead."),null};i.Root=o,i.Item=r,i.Indicator=a,i.Label=t;export{i as default};
|
|
@@ -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
|
|
1
|
+
'use client';import r from"./ScrollArea/fragments/ScrollAreaRoot.js";import o from"./ScrollArea/fragments/ScrollAreaViewport.js";import l from"./ScrollArea/fragments/ScrollAreaScrollbar.js";import e from"./ScrollArea/fragments/ScrollAreaThumb.js";import a from"./ScrollArea/fragments/ScrollAreaCorner.js";var t=function(){return console.warn("Direct usage of ScrollArea is not supported. Please use ScrollArea.Root and ScrollArea.Viewport instead."),null};t.Root=r,t.Viewport=o,t.Scrollbar=l,t.Thumb=e,t.Corner=a;export{t 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 };
|