@radui/ui 0.0.47 → 0.1.0
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 +12 -4
- package/dist/components/Accordion.d.ts +23 -40
- package/dist/components/Accordion.js +1 -1
- package/dist/components/AlertDialog.d.ts +79 -25
- package/dist/components/AlertDialog.js +1 -1
- package/dist/components/AspectRatio.d.ts +6 -9
- package/dist/components/AspectRatio.js +1 -1
- package/dist/components/Avatar.d.ts +9 -17
- package/dist/components/Avatar.js +1 -1
- package/dist/components/AvatarGroup.d.ts +21 -17
- package/dist/components/AvatarGroup.js +1 -1
- package/dist/components/AvatarPrimitiveFallback-BV0bK5Qg.js +1 -0
- package/dist/components/Badge.d.ts +7 -5
- package/dist/components/Badge.js +1 -1
- package/dist/components/BlockQuote.d.ts +7 -8
- package/dist/components/BlockQuote.js +1 -1
- package/dist/components/Button.d.ts +15 -6
- package/dist/components/Button.js +1 -1
- package/dist/components/Callout.d.ts +24 -29
- package/dist/components/Callout.js +1 -1
- package/dist/components/Card.d.ts +7 -15
- package/dist/components/Card.js +1 -1
- package/dist/components/Checkbox.d.ts +27 -17
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/CheckboxCards.d.ts +28 -31
- package/dist/components/CheckboxCards.js +1 -1
- package/dist/components/CheckboxGroup.d.ts +31 -31
- package/dist/components/CheckboxGroup.js +1 -1
- package/dist/components/CheckboxGroupPrimitive-DrGqSxi3.js +1 -0
- package/dist/components/Code.d.ts +7 -3
- package/dist/components/Code.js +1 -1
- package/dist/components/Collapsible.d.ts +16 -22
- package/dist/components/Collapsible.js +1 -1
- package/dist/components/ContextMenu.d.ts +78 -35
- package/dist/components/ContextMenu.js +1 -1
- package/dist/components/DataList.d.ts +9 -17
- package/dist/components/DataList.js +1 -1
- package/dist/components/Dialog.d.ts +78 -32
- package/dist/components/Dialog.js +1 -1
- package/dist/components/Disclosure.d.ts +20 -26
- package/dist/components/Disclosure.js +1 -1
- package/dist/components/DropdownMenu.d.ts +78 -35
- package/dist/components/DropdownMenu.js +1 -1
- package/dist/components/Em.d.ts +5 -9
- package/dist/components/Em.js +1 -1
- package/dist/components/Heading.d.ts +7 -275
- package/dist/components/Heading.js +1 -1
- package/dist/components/HoverCard.d.ts +34 -33
- package/dist/components/HoverCard.js +1 -1
- package/dist/components/Kbd.d.ts +6 -8
- package/dist/components/Kbd.js +1 -1
- package/dist/components/Link.d.ts +6 -12
- package/dist/components/Link.js +1 -1
- package/dist/components/MenuPrimitive-DuUPySFO.js +1 -0
- package/dist/components/Menubar.d.ts +68 -45
- package/dist/components/Menubar.js +1 -1
- package/dist/components/Minimap.d.ts +48 -0
- package/dist/components/Minimap.js +1 -0
- package/dist/components/NavigationMenu.d.ts +35 -0
- package/dist/components/NavigationMenu.js +1 -0
- package/dist/components/NumberField.d.ts +17 -37
- package/dist/components/NumberField.js +1 -1
- package/dist/components/Progress.d.ts +22 -19
- package/dist/components/Progress.js +1 -1
- package/dist/components/Quote.d.ts +4 -8
- package/dist/components/Quote.js +1 -1
- package/dist/components/Radio.d.ts +11 -4
- package/dist/components/Radio.js +1 -1
- package/dist/components/RadioCards.d.ts +32 -35
- package/dist/components/RadioCards.js +1 -1
- package/dist/components/RadioGroup.d.ts +34 -37
- package/dist/components/RadioGroup.js +1 -1
- package/dist/components/RadioGroupPrimitive-D9grAL7G.js +1 -0
- package/dist/components/ScrollArea.d.ts +22 -14
- package/dist/components/ScrollArea.js +1 -1
- package/dist/components/Select.d.ts +69 -16
- package/dist/components/Select.js +1 -1
- package/dist/components/Separator.d.ts +5 -9
- package/dist/components/Separator.js +1 -1
- package/dist/components/Skeleton.d.ts +8 -7
- package/dist/components/Skeleton.js +1 -1
- package/dist/components/Slider.d.ts +78 -26
- package/dist/components/Slider.js +1 -1
- package/dist/components/Splitter.d.ts +57 -0
- package/dist/components/Splitter.js +1 -0
- package/dist/components/Steps.d.ts +38 -0
- package/dist/components/Steps.js +1 -0
- package/dist/components/Strong.d.ts +6 -7
- package/dist/components/Strong.js +1 -1
- package/dist/components/Switch.d.ts +28 -6
- package/dist/components/Switch.js +1 -1
- package/dist/components/TabNav.d.ts +15 -25
- package/dist/components/TabNav.js +1 -1
- package/dist/components/Table.d.ts +23 -27
- package/dist/components/Table.js +1 -1
- package/dist/components/Tabs.d.ts +23 -44
- package/dist/components/Tabs.js +1 -1
- package/dist/components/Text.d.ts +8 -274
- package/dist/components/Text.js +1 -1
- package/dist/components/TextArea.d.ts +9 -14
- package/dist/components/TextArea.js +1 -1
- package/dist/components/Theme.d.ts +9 -5
- package/dist/components/Theme.js +1 -1
- package/dist/components/Toggle.d.ts +8 -19
- package/dist/components/Toggle.js +1 -1
- package/dist/components/ToggleGroup.d.ts +55 -34
- package/dist/components/ToggleGroup.js +1 -1
- package/dist/components/Tooltip.d.ts +31 -18
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/Tree.d.ts +31 -14
- package/dist/components/Tree.js +1 -1
- package/dist/components/VisuallyHidden.d.ts +6 -10
- package/dist/components/VisuallyHidden.js +1 -1
- package/dist/components/{floating-ui.react-jh3caJnc.js → floating-ui.react-CLbXmKZY.js} +2 -2
- package/dist/components/index-BRmT6kl7.js +1 -0
- package/dist/components/index-Bf4LVEjJ.js +1 -0
- package/dist/components/index-BtoPzkH9.js +1 -0
- package/dist/components/index-DBZNt4Em.js +1 -0
- package/dist/components/index-Dc5Cm9z0.js +1 -0
- package/dist/components/index-Di6TooPD.js +1 -0
- package/dist/components/{index-8D8A0ALD.js → index-DnCiOYxZ.js} +1 -1
- package/dist/components/index-XqbKa2D2.js +1 -0
- package/dist/components/index-YgKcfT__.js +1 -0
- package/dist/themes/default.css +1 -1
- package/package.json +21 -3
- package/dist/components/AvatarPrimitiveFallback-CSD78PQE.js +0 -1
- package/dist/components/CheckboxGroupPrimitive-PcT11bev.js +0 -1
- package/dist/components/MenuPrimitive-M690K2sI.js +0 -1
- package/dist/components/RadioGroupPrimitive-CUgW2PyL.js +0 -1
- package/dist/components/index-BNg6qXF-.js +0 -1
- package/dist/components/index-CaFVBHZz.js +0 -1
- package/dist/components/index-CyT0hgZn.js +0 -1
- package/dist/components/index-DAboJYKJ.js +0 -1
- package/dist/components/index-DIw4zyNG.js +0 -1
- package/dist/components/index-DpUtikes.js +0 -1
- package/dist/components/index-ZMIfeyHL.js +0 -1
- package/dist/components/setupTests.d.ts +0 -3
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import React__default from 'react';
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default, { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
import Primitive from '~/core/primitives/Primitive';
|
|
4
|
+
import ButtonPrimitive from '~/core/primitives/Button';
|
|
3
5
|
|
|
4
|
-
type SwitchThumbProps = {
|
|
6
|
+
type SwitchThumbProps = ComponentPropsWithoutRef<typeof Primitive.span> & {
|
|
5
7
|
asChild?: boolean;
|
|
6
8
|
className?: string;
|
|
7
9
|
children?: React__default.ReactNode;
|
|
8
10
|
};
|
|
9
11
|
|
|
10
|
-
type SwitchRootProps = {
|
|
12
|
+
type SwitchRootProps = ComponentPropsWithoutRef<typeof ButtonPrimitive> & {
|
|
11
13
|
children: React__default.ReactNode;
|
|
12
14
|
customRootClass?: string;
|
|
13
15
|
color?: string;
|
|
@@ -25,8 +27,28 @@ type SwitchRootProps = {
|
|
|
25
27
|
|
|
26
28
|
declare const Switch: {
|
|
27
29
|
(): null;
|
|
28
|
-
Root:
|
|
29
|
-
|
|
30
|
+
Root: React$1.ForwardRefExoticComponent<Omit<{
|
|
31
|
+
label?: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
asChild?: boolean;
|
|
34
|
+
required?: boolean;
|
|
35
|
+
onChange?: any;
|
|
36
|
+
} & Omit<React$1.DetailedHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
37
|
+
children: React.ReactNode;
|
|
38
|
+
customRootClass?: string;
|
|
39
|
+
color?: string;
|
|
40
|
+
variant?: string;
|
|
41
|
+
size?: string;
|
|
42
|
+
defaultChecked?: boolean;
|
|
43
|
+
checked?: boolean;
|
|
44
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
required?: boolean;
|
|
47
|
+
name?: string;
|
|
48
|
+
value?: string;
|
|
49
|
+
asChild?: boolean;
|
|
50
|
+
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
51
|
+
Thumb: React$1.ForwardRefExoticComponent<SwitchThumbProps & React$1.RefAttributes<HTMLElement>>;
|
|
30
52
|
};
|
|
31
53
|
declare namespace SwitchProps {
|
|
32
54
|
type Root = SwitchRootProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use client';import{_ as e,a}from"./tslib.es6-BtVxab8e.js";import s,{createContext as d,useContext as
|
|
1
|
+
'use client';import{_ as e,a}from"./tslib.es6-BtVxab8e.js";import s,{createContext as d,forwardRef as i,useContext as c}from"react";import{B as t}from"./index-DnCiOYxZ.js";import{c as o}from"./index-BVxS3Ixi.js";import{u as r,a as l,b as n}from"./index-Bf4LVEjJ.js";import{u as h}from"./index-fkj4Fdgt.js";import{P as m}from"./index-Dc5Cm9z0.js";var u=d({checked:!1,setChecked:function(){},rootClass:"",disabled:!1}),v="Switch",C=i((function(d,i){var c=d.children,m=d.customRootClass,C=d.color,f=void 0===C?"":C,k=d.variant,b=d.size,p=d.defaultChecked,w=void 0!==p&&p,j=d.checked,x=d.onCheckedChange,N=d.disabled,S=void 0!==N&&N,R=d.required,g=void 0!==R&&R,q=d.name,z=d.value,E=d.asChild,P=void 0!==E&&E,T=e(d,["children","customRootClass","color","variant","size","defaultChecked","checked","onCheckedChange","disabled","required","name","value","asChild"]),y=h(j,w,x),B=y[0],D=y[1],_=o(m,v),A=r("switch",{variant:k,size:b}),F=l(f),G=n(A(),F()),H={checked:B,setChecked:D,rootClass:_,disabled:S},I=a(a(a({},G()),{"data-state":B?"checked":"unchecked","data-disabled":S?"":void 0,role:"switch","aria-checked":B,"aria-required":g,disabled:S}),T);return q&&(I.name=q),z&&(I.value=z),s.createElement(u.Provider,{value:H},s.createElement(t,a({ref:i,onClick:function(){S||D(!B)},className:_,asChild:P},I),c))}));C.displayName=v;var f=i((function(d,i){var t=d.asChild,o=void 0!==t&&t,r=d.className,l=d.children,n=e(d,["asChild","className","children"]),h=c(u),v=h.checked,C=h.rootClass,f=h.disabled,k={};return k["data-state"]=v?"checked":"unchecked",f&&(k["data-disabled"]=""),s.createElement(m.span,a({ref:i,role:"switch",className:"".concat(C,"-indicator ").concat(r||""),asChild:o},k,n),l)}));f.displayName="SwitchThumb";var k=function(){return console.warn("Direct usage of Switch is not supported. Please use Switch.Root, Switch.Thumb, etc. instead."),null};k.Root=C,k.Thumb=f;export{k as default};
|
|
@@ -1,31 +1,21 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
|
|
4
|
-
type TabNavLinkProps = {
|
|
5
|
-
children: React__default.ReactNode;
|
|
6
|
-
className?: string;
|
|
7
|
-
href?: string;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
asChild?: boolean;
|
|
10
|
-
value?: string;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
type TabNavRootProps = {
|
|
14
|
-
className?: string;
|
|
15
|
-
loop?: boolean;
|
|
16
|
-
orientation?: 'horizontal' | 'vertical';
|
|
17
|
-
children: React__default.ReactNode;
|
|
18
|
-
customRootClass?: string;
|
|
19
|
-
color?: string;
|
|
20
|
-
value?: string;
|
|
21
|
-
defaultValue?: string;
|
|
22
|
-
onValueChange?: (value: string) => void;
|
|
23
|
-
};
|
|
1
|
+
import * as react from 'react';
|
|
24
2
|
|
|
25
3
|
declare const TabNav: {
|
|
26
4
|
(): null;
|
|
27
|
-
Root:
|
|
28
|
-
|
|
5
|
+
Root: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
|
+
loop?: boolean;
|
|
7
|
+
orientation?: "horizontal" | "vertical";
|
|
8
|
+
customRootClass?: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
value?: string;
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
onValueChange?: (value: string) => void;
|
|
13
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Link: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
asChild?: boolean;
|
|
17
|
+
value?: string;
|
|
18
|
+
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
29
19
|
};
|
|
30
20
|
|
|
31
21
|
export { TabNav as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use client';import{a,
|
|
1
|
+
'use client';import{_ as a,a as e}from"./tslib.es6-BtVxab8e.js";import o,{createContext as n,forwardRef as r,useContext as t,useRef as l,useCallback as i,useEffect as s}from"react";import{c}from"./clsx-BaVHROc5.js";import{R as u}from"./index-BRmT6kl7.js";import{P as d}from"./index-Dc5Cm9z0.js";import{c as m}from"./index-BVxS3Ixi.js";import{u as v}from"./index-fkj4Fdgt.js";import"./index-DnCiOYxZ.js";var f=n({rootClass:"",tabValue:"",handleTabChange:function(){}}),h=r((function(n,r){var s=n.value,m=n.className,v=void 0===m?"":m,h=n.href,p=void 0===h?"#":h,b=n.children,C=n.disabled,N=n.asChild,T=a(n,["value","className","href","children","disabled","asChild"]),j=t(f),x=j.rootClass,R=j.tabValue,V=j.handleTabChange;N&&(C=!1);var g=l(null),E=i((function(a){g.current=a,"function"==typeof r?r(a):r&&(r.current=a)}),[r]),k=s===R;return o.createElement(u.Item,{onFocus:function(){return s&&!C&&function(a){var e;C||(g.current&&(null===(e=g.current)||void 0===e||e.focus()),V(a))}(s)}},o.createElement(d.a,e({ref:E,className:c("".concat(x,"-link"),v),asChild:N,"aria-disabled":C,"aria-selected":k,disabled:C},C?{}:{href:p},T),b))}));h.displayName="TabNavLink";var p=r((function(n,r){var t=n.className,l=n.loop,i=void 0===l||l,d=n.orientation,h=void 0===d?"horizontal":d,p=n.children;n.color;var b=n.customRootClass,C=void 0===b?"":b,N=n.defaultValue,T=void 0===N?"":N,j=n.onValueChange,x=void 0===j?function(){}:j,R=n.value,V=a(n,["className","loop","orientation","children","color","customRootClass","defaultValue","onValueChange","value"]),g=m(C,"TabNav"),E=v(R,T||"",x),k=E[0],y=E[1],L=function(a){y(a)};s((function(){void 0===R&&T&&L(T)}),[T,R]);var P={rootClass:g,tabValue:k,handleTabChange:L};return o.createElement(f.Provider,{value:P},o.createElement(u.Root,{loop:i,orientation:h},o.createElement(u.Group,e({},{asChild:!0}),o.createElement("div",e({ref:r,className:c(g,t)},V),p))))}));p.displayName="TabNavRoot";var b=function(){return console.warn("Direct usage of TabNav is not supported. Please use TabNav.Root, TabNav.Link instead."),null};b.Root=p,b.Link=h;export{b as default};
|
|
@@ -1,35 +1,31 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
+
declare const TableRoot: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
customRootClass?: string;
|
|
5
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
|
|
7
|
+
declare const TableHead: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
8
|
+
|
|
9
|
+
declare const TableBody: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
10
|
+
|
|
11
|
+
declare const TableRow: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & React.RefAttributes<HTMLTableRowElement>>;
|
|
12
|
+
|
|
13
|
+
declare const TableColumnCellHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & React.RefAttributes<HTMLTableHeaderCellElement>>;
|
|
14
|
+
|
|
15
|
+
declare const TableCell: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref"> & React.RefAttributes<HTMLTableDataCellElement>>;
|
|
16
|
+
|
|
3
17
|
type TableProps = React.HTMLAttributes<HTMLTableElement> & {
|
|
4
18
|
children?: React.ReactNode;
|
|
5
19
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
Head: {
|
|
17
|
-
({ children, className, ...props }: any): React.JSX.Element;
|
|
18
|
-
displayName: string;
|
|
19
|
-
};
|
|
20
|
-
Row: {
|
|
21
|
-
({ children, className, ...props }: any): React.JSX.Element;
|
|
22
|
-
displayName: string;
|
|
23
|
-
};
|
|
24
|
-
Cell: {
|
|
25
|
-
({ children, className, ...props }: any): React.JSX.Element;
|
|
26
|
-
displayName: string;
|
|
27
|
-
};
|
|
28
|
-
ColumnCellHeader: {
|
|
29
|
-
({ children, className, ...props }: any): React.JSX.Element;
|
|
30
|
-
displayName: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
20
|
+
interface TableComponent extends React.ForwardRefExoticComponent<TableProps & React.RefAttributes<HTMLTableElement>> {
|
|
21
|
+
Root: typeof TableRoot;
|
|
22
|
+
Body: typeof TableBody;
|
|
23
|
+
Head: typeof TableHead;
|
|
24
|
+
Row: typeof TableRow;
|
|
25
|
+
Cell: typeof TableCell;
|
|
26
|
+
ColumnCellHeader: typeof TableColumnCellHeader;
|
|
27
|
+
}
|
|
28
|
+
declare const Table: TableComponent;
|
|
33
29
|
|
|
34
30
|
export { Table as default };
|
|
35
31
|
export type { TableProps };
|
package/dist/components/Table.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use client';import{_ as
|
|
1
|
+
'use client';import e from"react";import{_ as a,a as r}from"./tslib.es6-BtVxab8e.js";import{c as l}from"./clsx-BaVHROc5.js";import{c as s}from"./index-BVxS3Ixi.js";var c="Table",o=e.forwardRef((function(o,t){var d=o.children,n=o.className,m=void 0===n?"":n,i=o.customRootClass,f=void 0===i?"":i,N=a(o,["children","className","customRootClass"]),u=s(f,c);return e.createElement("div",r({ref:t,className:l("".concat(u,"-wrapper"),m)},N),e.createElement("table",{className:l(u)},d))}));o.displayName=c;var t=e.forwardRef((function(s,c){var o=s.children,t=s.className,d=void 0===t?"header":t,n=a(s,["children","className"]);return e.createElement("thead",r({ref:c,className:l(d)},n),o)}));t.displayName="TableHead";var d=e.forwardRef((function(s,c){var o=s.children,t=s.className,d=void 0===t?"":t,n=a(s,["children","className"]);return e.createElement("tbody",r({ref:c,className:l(d)},n),o)}));d.displayName="TableBody";var n=e.forwardRef((function(s,c){var o=s.children,t=s.className,d=void 0===t?"row":t,n=a(s,["children","className"]);return e.createElement("tr",r({ref:c,className:l(d)},n),o)}));n.displayName="TableRow";var m=e.forwardRef((function(s,c){var o=s.children,t=s.className,d=void 0===t?"cell-header":t,n=a(s,["children","className"]);return e.createElement("th",r({ref:c,className:l(d)},n),o)}));m.displayName="TableColumnCellHeader";var i=e.forwardRef((function(s,c){var o=s.children,t=s.className,d=void 0===t?"cell":t,n=a(s,["children","className"]);return e.createElement("td",r({ref:c,className:l(d)},n),o)}));i.displayName="TableCell";var f=e.forwardRef((function(e,a){return console.warn("Direct usage of Table is not supported. Please use Table.Root, Table.Head, etc. instead."),null}));f.displayName="Table",f.Root=o,f.Body=d,f.Head=t,f.Row=n,f.Cell=i,f.ColumnCellHeader=m;export{f as default};
|
|
@@ -1,64 +1,43 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
className?: string;
|
|
5
|
-
value?: string;
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
disabled?: boolean;
|
|
3
|
+
declare const TabList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
8
4
|
asChild?: boolean;
|
|
9
|
-
}
|
|
5
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
10
6
|
|
|
11
|
-
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
customRootClass?: string;
|
|
14
|
-
className?: string;
|
|
7
|
+
declare const TabTrigger: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
15
8
|
value?: string;
|
|
16
|
-
color?: string;
|
|
17
|
-
defaultValue?: string;
|
|
18
|
-
onValueChange?: (value: string) => void;
|
|
19
|
-
orientation?: 'horizontal' | 'vertical';
|
|
20
|
-
dir?: 'ltr' | 'rtl';
|
|
21
|
-
activationMode?: 'automatic' | 'manual';
|
|
22
9
|
asChild?: boolean;
|
|
23
|
-
}
|
|
10
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
24
11
|
|
|
25
|
-
|
|
26
|
-
className?: string;
|
|
12
|
+
declare const TabContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
27
13
|
customRootClass?: string;
|
|
28
14
|
value?: string;
|
|
29
|
-
children?: React.ReactNode;
|
|
30
15
|
asChild?: boolean;
|
|
31
16
|
forceMount?: boolean;
|
|
32
|
-
}
|
|
17
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
33
18
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
19
|
+
declare const TabRoot: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
20
|
+
customRootClass?: string;
|
|
21
|
+
value?: string;
|
|
22
|
+
color?: string;
|
|
23
|
+
defaultValue?: string;
|
|
24
|
+
onValueChange?: (value: string) => void;
|
|
25
|
+
orientation?: "horizontal" | "vertical";
|
|
26
|
+
dir?: "ltr" | "rtl";
|
|
27
|
+
activationMode?: "automatic" | "manual";
|
|
37
28
|
asChild?: boolean;
|
|
38
|
-
}
|
|
29
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
39
30
|
|
|
40
31
|
type TabsProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
41
32
|
children?: React.ReactNode;
|
|
42
33
|
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
({ className, value, children, customRootClass, asChild, forceMount }: TabContentProps): React.JSX.Element | null;
|
|
51
|
-
displayName: string;
|
|
52
|
-
};
|
|
53
|
-
Root: {
|
|
54
|
-
({ children, defaultValue, onValueChange, customRootClass, value, className, color, orientation, dir, activationMode, asChild, ...props }: TabRootProps): React.JSX.Element;
|
|
55
|
-
displayName: string;
|
|
56
|
-
};
|
|
57
|
-
Trigger: {
|
|
58
|
-
({ value, children, className, disabled, asChild, ...props }: TabTriggerProps): React.JSX.Element;
|
|
59
|
-
displayName: string;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
34
|
+
interface TabsComponent extends React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<HTMLDivElement>> {
|
|
35
|
+
List: typeof TabList;
|
|
36
|
+
Content: typeof TabContent;
|
|
37
|
+
Root: typeof TabRoot;
|
|
38
|
+
Trigger: typeof TabTrigger;
|
|
39
|
+
}
|
|
40
|
+
declare const Tabs: TabsComponent;
|
|
62
41
|
|
|
63
42
|
export { Tabs as default };
|
|
64
43
|
export type { TabsProps };
|
package/dist/components/Tabs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use client';import a,{createContext as
|
|
1
|
+
'use client';import a,{createContext as e,useContext as t,useRef as o,useCallback as i,useEffect as r}from"react";import{_ as n,a as s}from"./tslib.es6-BtVxab8e.js";import{c as l}from"./clsx-BaVHROc5.js";import{R as d}from"./index-BRmT6kl7.js";import{P as c}from"./index-Dc5Cm9z0.js";import{c as u}from"./index-BVxS3Ixi.js";import{u as v}from"./index-fkj4Fdgt.js";import"./index-DnCiOYxZ.js";var m=e(null),f=a.forwardRef((function(e,o){var i=e.className,r=void 0===i?"":i,u=e.children,v=e.asChild,f=void 0!==v&&v,h=n(e,["className","children","asChild"]),b=t(m);if(!b)throw new Error("TabList must be used within a TabRoot");var C=b.rootClass,p=b.orientation;return a.createElement(d.Group,null,a.createElement(c.div,s({ref:o,role:"tablist","aria-orientation":p,"aria-label":"todo",className:l("".concat(C,"-list"),r),asChild:f},h),u))}));f.displayName="TabList";var h=a.forwardRef((function(e,r){var u=e.value,v=e.children,f=e.className,h=void 0===f?"":f,b=e.disabled,C=e.asChild,p=void 0!==C&&C,T=n(e,["value","children","className","disabled","asChild"]),N=t(m);if(!N)throw new Error("TabTrigger must be used within a TabRoot");var R=N.tabValue,w=N.handleTabChange,g=N.rootClass,E=N.orientation,j=N.activationMode,x=o(null),V=i((function(a){x.current=a,"function"==typeof r?r(a):r&&(r.current=a)}),[r]),y=u===R,M={};return M["data-state"]=y?"active":"inactive",M["data-orientation"]=E||"horizontal",b&&(M["data-disabled"]=""),a.createElement(d.Item,{onFocus:function(){return u&&!b&&function(a){var e;b||(x.current&&(null===(e=x.current)||void 0===e||e.focus()),"automatic"===j&&w(a))}(u)}},a.createElement(c.button,s({ref:V,onClick:function(a){b||u&&w(u)},className:l("".concat(g,"-trigger"),y?"active":"",b?"disabled":"",h),role:"tab","aria-selected":y,"aria-disabled":b,disabled:b,asChild:p},M,T),v))}));h.displayName="TabTrigger";var b="TabContent",C=a.forwardRef((function(e,o){var i=e.className,r=void 0===i?"":i,d=e.value,v=e.children,f=e.customRootClass,h=e.asChild,C=void 0!==h&&h,p=e.forceMount,T=void 0!==p&&p,N=n(e,["className","value","children","customRootClass","asChild","forceMount"]),R=u(f,b),w=t(m);if(!w)throw new Error("TabContent must be used within a TabRoot");var g=w.tabValue,E=w.orientation,j=g===d;if(!(T||j))return null;var x={};return x["data-state"]=j?"active":"inactive",x["data-orientation"]=E||"horizontal",a.createElement(c.div,s({ref:o,className:l(R,r),role:"tabpanel","aria-hidden":!j,asChild:C},x,N),v)}));C.displayName=b;var p="Tabs",T=a.forwardRef((function(e,t){var o=e.children,i=e.defaultValue,f=void 0===i?"":i,h=e.onValueChange,b=void 0===h?function(){}:h,C=e.customRootClass,T=void 0===C?"":C,N=e.value,R=e.className,w=e.color,g=e.orientation,E=void 0===g?"horizontal":g,j=e.dir,x=void 0===j?"ltr":j,V=e.activationMode,y=void 0===V?"automatic":V,M=e.asChild,L=void 0!==M&&M,z=n(e,["children","defaultValue","onValueChange","customRootClass","value","className","color","orientation","dir","activationMode","asChild"]),P=u(T,p),k=v(N,f||"",b),D=k[0],F=k[1],G=function(a){F(a)};r((function(){void 0===N&&f&&G(f)}),[f,N]);var I={rootClass:P,tabValue:D,handleTabChange:G,orientation:E,activationMode:y},_={};return _["data-orientation"]=E,a.createElement(m.Provider,{value:I},a.createElement(d.Root,{orientation:E,loop:!0,dir:x,asChild:!0},a.createElement(c.div,s({ref:t,className:l(P,R),"data-rad-ui-accent-color":w,asChild:L},_,z),o)))}));T.displayName=p;var N=a.forwardRef((function(a,e){return console.warn("Direct usage of Tabs is not supported. Please use Tabs.Root, Tabs.List, etc. instead."),null}));N.displayName="Tabs",N.List=f,N.Content=C,N.Root=T,N.Trigger=h;export{N as default};
|
|
@@ -1,283 +1,17 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
|
|
3
3
|
type TextProps = {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
customRootClass?: string;
|
|
6
6
|
className?: string;
|
|
7
7
|
as?: string;
|
|
8
|
-
} &
|
|
9
|
-
declare const Text: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
suppressContentEditableWarning?: boolean | undefined;
|
|
16
|
-
suppressHydrationWarning?: boolean | undefined;
|
|
17
|
-
accessKey?: string | undefined;
|
|
18
|
-
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
19
|
-
autoFocus?: boolean | undefined;
|
|
20
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
21
|
-
contextMenu?: string | undefined;
|
|
22
|
-
dir?: string | undefined;
|
|
23
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
24
|
-
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
25
|
-
hidden?: boolean | undefined;
|
|
26
|
-
id?: string | undefined;
|
|
27
|
-
lang?: string | undefined;
|
|
28
|
-
nonce?: string | undefined;
|
|
29
|
-
slot?: string | undefined;
|
|
30
|
-
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
31
|
-
style?: React.CSSProperties | undefined;
|
|
32
|
-
tabIndex?: number | undefined;
|
|
33
|
-
title?: string | undefined;
|
|
34
|
-
translate?: "yes" | "no" | undefined;
|
|
35
|
-
radioGroup?: string | undefined;
|
|
36
|
-
role?: React.AriaRole | undefined;
|
|
37
|
-
about?: string | undefined;
|
|
38
|
-
content?: string | undefined;
|
|
39
|
-
datatype?: string | undefined;
|
|
40
|
-
inlist?: any;
|
|
41
|
-
prefix?: string | undefined;
|
|
42
|
-
property?: string | undefined;
|
|
43
|
-
rel?: string | undefined;
|
|
44
|
-
resource?: string | undefined;
|
|
45
|
-
rev?: string | undefined;
|
|
46
|
-
typeof?: string | undefined;
|
|
47
|
-
vocab?: string | undefined;
|
|
48
|
-
autoCorrect?: string | undefined;
|
|
49
|
-
autoSave?: string | undefined;
|
|
50
|
-
color?: string | undefined;
|
|
51
|
-
itemProp?: string | undefined;
|
|
52
|
-
itemScope?: boolean | undefined;
|
|
53
|
-
itemType?: string | undefined;
|
|
54
|
-
itemID?: string | undefined;
|
|
55
|
-
itemRef?: string | undefined;
|
|
56
|
-
results?: number | undefined;
|
|
57
|
-
security?: string | undefined;
|
|
58
|
-
unselectable?: "on" | "off" | undefined;
|
|
59
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
60
|
-
is?: string | undefined;
|
|
61
|
-
"aria-activedescendant"?: string | undefined;
|
|
62
|
-
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
63
|
-
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
64
|
-
"aria-braillelabel"?: string | undefined;
|
|
65
|
-
"aria-brailleroledescription"?: string | undefined;
|
|
66
|
-
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
67
|
-
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
68
|
-
"aria-colcount"?: number | undefined;
|
|
69
|
-
"aria-colindex"?: number | undefined;
|
|
70
|
-
"aria-colindextext"?: string | undefined;
|
|
71
|
-
"aria-colspan"?: number | undefined;
|
|
72
|
-
"aria-controls"?: string | undefined;
|
|
73
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
74
|
-
"aria-describedby"?: string | undefined;
|
|
75
|
-
"aria-description"?: string | undefined;
|
|
76
|
-
"aria-details"?: string | undefined;
|
|
77
|
-
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
78
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
79
|
-
"aria-errormessage"?: string | undefined;
|
|
80
|
-
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
81
|
-
"aria-flowto"?: string | undefined;
|
|
82
|
-
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
83
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
84
|
-
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
85
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
86
|
-
"aria-keyshortcuts"?: string | undefined;
|
|
87
|
-
"aria-label"?: string | undefined;
|
|
88
|
-
"aria-labelledby"?: string | undefined;
|
|
89
|
-
"aria-level"?: number | undefined;
|
|
90
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
91
|
-
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
92
|
-
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
93
|
-
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
94
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
95
|
-
"aria-owns"?: string | undefined;
|
|
96
|
-
"aria-placeholder"?: string | undefined;
|
|
97
|
-
"aria-posinset"?: number | undefined;
|
|
98
|
-
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
99
|
-
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
100
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
101
|
-
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
102
|
-
"aria-roledescription"?: string | undefined;
|
|
103
|
-
"aria-rowcount"?: number | undefined;
|
|
104
|
-
"aria-rowindex"?: number | undefined;
|
|
105
|
-
"aria-rowindextext"?: string | undefined;
|
|
106
|
-
"aria-rowspan"?: number | undefined;
|
|
107
|
-
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
108
|
-
"aria-setsize"?: number | undefined;
|
|
109
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
110
|
-
"aria-valuemax"?: number | undefined;
|
|
111
|
-
"aria-valuemin"?: number | undefined;
|
|
112
|
-
"aria-valuenow"?: number | undefined;
|
|
113
|
-
"aria-valuetext"?: string | undefined;
|
|
114
|
-
dangerouslySetInnerHTML?: {
|
|
115
|
-
__html: string | TrustedHTML;
|
|
116
|
-
} | undefined;
|
|
117
|
-
onCopy?: React.ClipboardEventHandler<HTMLParagraphElement> | undefined;
|
|
118
|
-
onCopyCapture?: React.ClipboardEventHandler<HTMLParagraphElement> | undefined;
|
|
119
|
-
onCut?: React.ClipboardEventHandler<HTMLParagraphElement> | undefined;
|
|
120
|
-
onCutCapture?: React.ClipboardEventHandler<HTMLParagraphElement> | undefined;
|
|
121
|
-
onPaste?: React.ClipboardEventHandler<HTMLParagraphElement> | undefined;
|
|
122
|
-
onPasteCapture?: React.ClipboardEventHandler<HTMLParagraphElement> | undefined;
|
|
123
|
-
onCompositionEnd?: React.CompositionEventHandler<HTMLParagraphElement> | undefined;
|
|
124
|
-
onCompositionEndCapture?: React.CompositionEventHandler<HTMLParagraphElement> | undefined;
|
|
125
|
-
onCompositionStart?: React.CompositionEventHandler<HTMLParagraphElement> | undefined;
|
|
126
|
-
onCompositionStartCapture?: React.CompositionEventHandler<HTMLParagraphElement> | undefined;
|
|
127
|
-
onCompositionUpdate?: React.CompositionEventHandler<HTMLParagraphElement> | undefined;
|
|
128
|
-
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLParagraphElement> | undefined;
|
|
129
|
-
onFocus?: React.FocusEventHandler<HTMLParagraphElement> | undefined;
|
|
130
|
-
onFocusCapture?: React.FocusEventHandler<HTMLParagraphElement> | undefined;
|
|
131
|
-
onBlur?: React.FocusEventHandler<HTMLParagraphElement> | undefined;
|
|
132
|
-
onBlurCapture?: React.FocusEventHandler<HTMLParagraphElement> | undefined;
|
|
133
|
-
onChange?: React.FormEventHandler<HTMLParagraphElement> | undefined;
|
|
134
|
-
onChangeCapture?: React.FormEventHandler<HTMLParagraphElement> | undefined;
|
|
135
|
-
onBeforeInput?: React.FormEventHandler<HTMLParagraphElement> | undefined;
|
|
136
|
-
onBeforeInputCapture?: React.FormEventHandler<HTMLParagraphElement> | undefined;
|
|
137
|
-
onInput?: React.FormEventHandler<HTMLParagraphElement> | undefined;
|
|
138
|
-
onInputCapture?: React.FormEventHandler<HTMLParagraphElement> | undefined;
|
|
139
|
-
onReset?: React.FormEventHandler<HTMLParagraphElement> | undefined;
|
|
140
|
-
onResetCapture?: React.FormEventHandler<HTMLParagraphElement> | undefined;
|
|
141
|
-
onSubmit?: React.FormEventHandler<HTMLParagraphElement> | undefined;
|
|
142
|
-
onSubmitCapture?: React.FormEventHandler<HTMLParagraphElement> | undefined;
|
|
143
|
-
onInvalid?: React.FormEventHandler<HTMLParagraphElement> | undefined;
|
|
144
|
-
onInvalidCapture?: React.FormEventHandler<HTMLParagraphElement> | undefined;
|
|
145
|
-
onLoad?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
146
|
-
onLoadCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
147
|
-
onError?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
148
|
-
onErrorCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
149
|
-
onKeyDown?: React.KeyboardEventHandler<HTMLParagraphElement> | undefined;
|
|
150
|
-
onKeyDownCapture?: React.KeyboardEventHandler<HTMLParagraphElement> | undefined;
|
|
151
|
-
onKeyPress?: React.KeyboardEventHandler<HTMLParagraphElement> | undefined;
|
|
152
|
-
onKeyPressCapture?: React.KeyboardEventHandler<HTMLParagraphElement> | undefined;
|
|
153
|
-
onKeyUp?: React.KeyboardEventHandler<HTMLParagraphElement> | undefined;
|
|
154
|
-
onKeyUpCapture?: React.KeyboardEventHandler<HTMLParagraphElement> | undefined;
|
|
155
|
-
onAbort?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
156
|
-
onAbortCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
157
|
-
onCanPlay?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
158
|
-
onCanPlayCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
159
|
-
onCanPlayThrough?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
160
|
-
onCanPlayThroughCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
161
|
-
onDurationChange?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
162
|
-
onDurationChangeCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
163
|
-
onEmptied?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
164
|
-
onEmptiedCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
165
|
-
onEncrypted?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
166
|
-
onEncryptedCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
167
|
-
onEnded?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
168
|
-
onEndedCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
169
|
-
onLoadedData?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
170
|
-
onLoadedDataCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
171
|
-
onLoadedMetadata?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
172
|
-
onLoadedMetadataCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
173
|
-
onLoadStart?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
174
|
-
onLoadStartCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
175
|
-
onPause?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
176
|
-
onPauseCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
177
|
-
onPlay?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
178
|
-
onPlayCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
179
|
-
onPlaying?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
180
|
-
onPlayingCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
181
|
-
onProgress?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
182
|
-
onProgressCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
183
|
-
onRateChange?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
184
|
-
onRateChangeCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
185
|
-
onResize?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
186
|
-
onResizeCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
187
|
-
onSeeked?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
188
|
-
onSeekedCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
189
|
-
onSeeking?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
190
|
-
onSeekingCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
191
|
-
onStalled?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
192
|
-
onStalledCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
193
|
-
onSuspend?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
194
|
-
onSuspendCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
195
|
-
onTimeUpdate?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
196
|
-
onTimeUpdateCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
197
|
-
onVolumeChange?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
198
|
-
onVolumeChangeCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
199
|
-
onWaiting?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
200
|
-
onWaitingCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
201
|
-
onAuxClick?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
|
|
202
|
-
onAuxClickCapture?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
|
|
203
|
-
onClick?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
|
|
204
|
-
onClickCapture?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
|
|
205
|
-
onContextMenu?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
|
|
206
|
-
onContextMenuCapture?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
|
|
207
|
-
onDoubleClick?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
|
|
208
|
-
onDoubleClickCapture?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
|
|
209
|
-
onDrag?: React.DragEventHandler<HTMLParagraphElement> | undefined;
|
|
210
|
-
onDragCapture?: React.DragEventHandler<HTMLParagraphElement> | undefined;
|
|
211
|
-
onDragEnd?: React.DragEventHandler<HTMLParagraphElement> | undefined;
|
|
212
|
-
onDragEndCapture?: React.DragEventHandler<HTMLParagraphElement> | undefined;
|
|
213
|
-
onDragEnter?: React.DragEventHandler<HTMLParagraphElement> | undefined;
|
|
214
|
-
onDragEnterCapture?: React.DragEventHandler<HTMLParagraphElement> | undefined;
|
|
215
|
-
onDragExit?: React.DragEventHandler<HTMLParagraphElement> | undefined;
|
|
216
|
-
onDragExitCapture?: React.DragEventHandler<HTMLParagraphElement> | undefined;
|
|
217
|
-
onDragLeave?: React.DragEventHandler<HTMLParagraphElement> | undefined;
|
|
218
|
-
onDragLeaveCapture?: React.DragEventHandler<HTMLParagraphElement> | undefined;
|
|
219
|
-
onDragOver?: React.DragEventHandler<HTMLParagraphElement> | undefined;
|
|
220
|
-
onDragOverCapture?: React.DragEventHandler<HTMLParagraphElement> | undefined;
|
|
221
|
-
onDragStart?: React.DragEventHandler<HTMLParagraphElement> | undefined;
|
|
222
|
-
onDragStartCapture?: React.DragEventHandler<HTMLParagraphElement> | undefined;
|
|
223
|
-
onDrop?: React.DragEventHandler<HTMLParagraphElement> | undefined;
|
|
224
|
-
onDropCapture?: React.DragEventHandler<HTMLParagraphElement> | undefined;
|
|
225
|
-
onMouseDown?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
|
|
226
|
-
onMouseDownCapture?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
|
|
227
|
-
onMouseEnter?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
|
|
228
|
-
onMouseLeave?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
|
|
229
|
-
onMouseMove?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
|
|
230
|
-
onMouseMoveCapture?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
|
|
231
|
-
onMouseOut?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
|
|
232
|
-
onMouseOutCapture?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
|
|
233
|
-
onMouseOver?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
|
|
234
|
-
onMouseOverCapture?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
|
|
235
|
-
onMouseUp?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
|
|
236
|
-
onMouseUpCapture?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
|
|
237
|
-
onSelect?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
238
|
-
onSelectCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
239
|
-
onTouchCancel?: React.TouchEventHandler<HTMLParagraphElement> | undefined;
|
|
240
|
-
onTouchCancelCapture?: React.TouchEventHandler<HTMLParagraphElement> | undefined;
|
|
241
|
-
onTouchEnd?: React.TouchEventHandler<HTMLParagraphElement> | undefined;
|
|
242
|
-
onTouchEndCapture?: React.TouchEventHandler<HTMLParagraphElement> | undefined;
|
|
243
|
-
onTouchMove?: React.TouchEventHandler<HTMLParagraphElement> | undefined;
|
|
244
|
-
onTouchMoveCapture?: React.TouchEventHandler<HTMLParagraphElement> | undefined;
|
|
245
|
-
onTouchStart?: React.TouchEventHandler<HTMLParagraphElement> | undefined;
|
|
246
|
-
onTouchStartCapture?: React.TouchEventHandler<HTMLParagraphElement> | undefined;
|
|
247
|
-
onPointerDown?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
|
|
248
|
-
onPointerDownCapture?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
|
|
249
|
-
onPointerMove?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
|
|
250
|
-
onPointerMoveCapture?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
|
|
251
|
-
onPointerUp?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
|
|
252
|
-
onPointerUpCapture?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
|
|
253
|
-
onPointerCancel?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
|
|
254
|
-
onPointerCancelCapture?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
|
|
255
|
-
onPointerEnter?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
|
|
256
|
-
onPointerLeave?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
|
|
257
|
-
onPointerOver?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
|
|
258
|
-
onPointerOverCapture?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
|
|
259
|
-
onPointerOut?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
|
|
260
|
-
onPointerOutCapture?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
|
|
261
|
-
onGotPointerCapture?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
|
|
262
|
-
onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
|
|
263
|
-
onLostPointerCapture?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
|
|
264
|
-
onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
|
|
265
|
-
onScroll?: React.UIEventHandler<HTMLParagraphElement> | undefined;
|
|
266
|
-
onScrollCapture?: React.UIEventHandler<HTMLParagraphElement> | undefined;
|
|
267
|
-
onWheel?: React.WheelEventHandler<HTMLParagraphElement> | undefined;
|
|
268
|
-
onWheelCapture?: React.WheelEventHandler<HTMLParagraphElement> | undefined;
|
|
269
|
-
onAnimationStart?: React.AnimationEventHandler<HTMLParagraphElement> | undefined;
|
|
270
|
-
onAnimationStartCapture?: React.AnimationEventHandler<HTMLParagraphElement> | undefined;
|
|
271
|
-
onAnimationEnd?: React.AnimationEventHandler<HTMLParagraphElement> | undefined;
|
|
272
|
-
onAnimationEndCapture?: React.AnimationEventHandler<HTMLParagraphElement> | undefined;
|
|
273
|
-
onAnimationIteration?: React.AnimationEventHandler<HTMLParagraphElement> | undefined;
|
|
274
|
-
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLParagraphElement> | undefined;
|
|
275
|
-
onTransitionEnd?: React.TransitionEventHandler<HTMLParagraphElement> | undefined;
|
|
276
|
-
onTransitionEndCapture?: React.TransitionEventHandler<HTMLParagraphElement> | undefined;
|
|
277
|
-
className: string;
|
|
278
|
-
}, HTMLParagraphElement>;
|
|
279
|
-
displayName: string;
|
|
280
|
-
};
|
|
8
|
+
} & ComponentPropsWithoutRef<'p'>;
|
|
9
|
+
declare const Text: React.ForwardRefExoticComponent<{
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
customRootClass?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
as?: string;
|
|
14
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
281
15
|
|
|
282
16
|
export { Text as default };
|
|
283
17
|
export type { TextProps };
|