@radui/ui 0.0.46 → 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/clsx-BaVHROc5.js +1 -0
- package/dist/components/floating-ui.react-CLbXmKZY.js +5 -0
- package/dist/components/index-BRmT6kl7.js +1 -0
- package/dist/components/index-BVxS3Ixi.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-DnCiOYxZ.js +1 -0
- package/dist/components/index-XqbKa2D2.js +1 -0
- package/dist/components/index-YgKcfT__.js +1 -0
- package/dist/components/index-fkj4Fdgt.js +1 -0
- package/dist/components/tslib.es6-BtVxab8e.js +1 -0
- package/dist/themes/default.css +1 -1
- package/package.json +21 -3
- package/dist/components/setupTests.d.ts +0 -3
|
@@ -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 e from"
|
|
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 t from"./
|
|
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 };
|
package/dist/components/Text.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use client';import{
|
|
1
|
+
'use client';import{_ as s,a}from"./tslib.es6-BtVxab8e.js";import e,{forwardRef as o}from"react";import{c as r}from"./index-BVxS3Ixi.js";import{c as t}from"./clsx-BaVHROc5.js";var i="Text",l=["div","span","p","label"],m=o((function(o,m){var c=o.children,d=o.customRootClass,p=void 0===d?"":d,n=o.className,f=void 0===n?"":n,u=o.as,v=void 0===u?"p":u,x=s(o,["children","customRootClass","className","as"]),N=r(p,i);return l.includes(v)||(v="p"),e.createElement(v,a({ref:m,className:t(N,f)},x),c)}));m.displayName=i;export{m as default};
|
|
@@ -1,24 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
children: React.ReactNode;
|
|
3
|
+
declare const TextAreaRoot: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
5
4
|
customRootClass?: string;
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
|
|
7
|
+
declare const TextAreaInput: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
8
8
|
|
|
9
|
-
type TextAreaProps = {
|
|
10
|
-
children: React.ReactNode;
|
|
9
|
+
type TextAreaProps = React.ComponentPropsWithoutRef<'div'> & {
|
|
11
10
|
customRootClass?: string;
|
|
12
|
-
className?: string;
|
|
13
11
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
children: React.ReactNode;
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
}) => React.JSX.Element;
|
|
20
|
-
Root: ({ children, customRootClass, className }: TextAreaProps$1) => React.JSX.Element;
|
|
12
|
+
type TextAreaComponent = React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<React.ElementRef<'div'>>> & {
|
|
13
|
+
Input: typeof TextAreaInput;
|
|
14
|
+
Root: typeof TextAreaRoot;
|
|
21
15
|
};
|
|
16
|
+
declare const TextArea: TextAreaComponent;
|
|
22
17
|
|
|
23
18
|
export { TextArea as default };
|
|
24
19
|
export type { TextAreaProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use client';import{
|
|
1
|
+
'use client';import{_ as e,a}from"./tslib.es6-BtVxab8e.js";import r from"react";import{c as t}from"./clsx-BaVHROc5.js";import{c as o}from"./index-BVxS3Ixi.js";var s="TextArea",l=r.forwardRef((function(l,c){var d=l.children,i=l.customRootClass,m=void 0===i?"":i,n=l.className,f=void 0===n?"":n,u=e(l,["children","customRootClass","className"]),p=o(m,s);return r.createElement("div",a({ref:c,className:t(p,f)},u),d)}));l.displayName=s;var c=r.forwardRef((function(t,o){var s=t.children,l=t.placeholder,c=void 0===l?"":l,d=e(t,["children","placeholder"]);return r.createElement("textarea",a({ref:o,placeholder:c,defaultValue:"string"==typeof s?s:void 0},d))}));c.displayName="TextAreaInput";var d=r.forwardRef((function(o,s){var d=o.customRootClass,i=void 0===d?"":d,m=o.className,n=void 0===m?"":m,f=o.children,u=e(o,["customRootClass","className","children"]);return r.createElement(l,a({ref:s,customRootClass:i,className:t(n)},u),r.createElement(c,{placeholder:"enter text"},f),f)}));d.displayName="TextArea",d.Input=c,d.Root=l;export{d as default};
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
|
|
3
|
-
type ThemeProps = {
|
|
3
|
+
type ThemeProps = ComponentPropsWithoutRef<'div'> & {
|
|
4
4
|
appearance?: 'light' | 'dark' | 'system';
|
|
5
5
|
accentColor?: string;
|
|
6
6
|
radius?: string;
|
|
7
7
|
scaling?: string;
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
id?: string;
|
|
10
8
|
};
|
|
11
|
-
declare const Theme:
|
|
9
|
+
declare const Theme: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
|
+
appearance?: "light" | "dark" | "system";
|
|
11
|
+
accentColor?: string;
|
|
12
|
+
radius?: string;
|
|
13
|
+
scaling?: string;
|
|
14
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
15
|
|
|
13
16
|
export { Theme as default };
|
|
17
|
+
export type { ThemeProps };
|
package/dist/components/Theme.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use client';import{
|
|
1
|
+
'use client';import{_ as a,a as e}from"./tslib.es6-BtVxab8e.js";import r,{forwardRef as i,useState as t,useEffect as n}from"react";var d=i((function(i,d){var c=i.appearance,o=void 0===c?"system":c,s=i.id,u=void 0===s?"rad-ui-theme-container":s,m=i.accentColor,l=void 0===m?"":m,h=i.radius,f=void 0===h?"":h,v=i.scaling,p=void 0===v?"":v,g=i.children,y=a(i,["appearance","id","accentColor","radius","scaling","children"]),k=t(o),E=k[0],w=k[1],C=t(l),L=C[0],b=C[1],j=t(f),x=j[0],M=j[1],N=t(p),T=N[0],_=N[1];return n((function(){var a=window.matchMedia("(prefers-color-scheme: dark)"),e=function(a){"system"===o&&w(a.matches?"dark":"light")};return"system"===o?(w(a.matches?"dark":"light"),a.addEventListener("change",e)):w(o),function(){return a.removeEventListener("change",e)}}),[o]),n((function(){l&&b(l)}),[l]),n((function(){f&&M(f)}),[f]),n((function(){p&&_(p)}),[p]),r.createElement("div",e({ref:d,id:u,"data-rad-ui-theme":E,"data-rad-ui-accent-color":L,"data-rad-ui-radius":x,"data-rad-ui-scaling":T},y),g)}));d.displayName="Theme";export{d as default};
|
|
@@ -1,45 +1,34 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import TogglePrimitive from '~/core/primitives/Toggle';
|
|
2
3
|
|
|
4
|
+
type ToggleElement = React.ElementRef<typeof TogglePrimitive>;
|
|
3
5
|
/**
|
|
4
6
|
* Props for the Toggle component
|
|
5
|
-
* @typedef ToggleProps
|
|
6
7
|
*/
|
|
7
|
-
|
|
8
|
-
/** Initial state when in uncontrolled mode */
|
|
9
|
-
defaultPressed?: boolean;
|
|
10
|
-
/** Current pressed state (for controlled mode) */
|
|
11
|
-
pressed?: boolean;
|
|
8
|
+
interface ToggleProps extends Omit<React.ComponentPropsWithoutRef<typeof TogglePrimitive>, 'onPressedChange'> {
|
|
12
9
|
/** Optional custom root class name to override default styling */
|
|
13
10
|
customRootClass?: string;
|
|
14
|
-
/** Whether the toggle is disabled */
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
/** Content to render inside the toggle */
|
|
17
|
-
children?: React.ReactNode;
|
|
18
|
-
/** Additional class names to apply */
|
|
19
|
-
className?: string;
|
|
20
11
|
/** Accent color for the toggle */
|
|
21
12
|
color?: string;
|
|
22
13
|
/** Callback fired when toggle state changes */
|
|
23
14
|
onPressedChange: (isPressed: boolean) => void;
|
|
24
|
-
|
|
25
|
-
asChild?: boolean;
|
|
26
|
-
};
|
|
15
|
+
}
|
|
27
16
|
/**
|
|
28
17
|
* Toggle component that can be used in either controlled or uncontrolled mode.
|
|
29
18
|
*
|
|
30
19
|
* @example
|
|
31
20
|
* // Controlled mode
|
|
32
21
|
* const [pressed, setPressed] = useState(false);
|
|
33
|
-
* <Toggle pressed={pressed}
|
|
22
|
+
* <Toggle pressed={pressed} onPressedChange={setPressed}>Toggle Me</Toggle>
|
|
34
23
|
*
|
|
35
24
|
* @example
|
|
36
25
|
* // Uncontrolled mode
|
|
37
|
-
* <Toggle defaultPressed={false}
|
|
26
|
+
* <Toggle defaultPressed={false} onPressedChange={(isPressed) => console.log(isPressed)}>Toggle Me</Toggle>
|
|
38
27
|
*
|
|
39
28
|
* @param {ToggleProps} props - The component props
|
|
40
29
|
* @returns {JSX.Element} The Toggle component
|
|
41
30
|
*/
|
|
42
|
-
declare const Toggle: React.
|
|
31
|
+
declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
43
32
|
|
|
44
33
|
export { Toggle as default };
|
|
45
|
-
export type { ToggleProps };
|
|
34
|
+
export type { ToggleElement, ToggleProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use client';import{
|
|
1
|
+
'use client';import{_ as s,a as e}from"./tslib.es6-BtVxab8e.js";import a,{forwardRef as o}from"react";import{c as d}from"./clsx-BaVHROc5.js";import{c as r}from"./index-BVxS3Ixi.js";import{u as i}from"./index-fkj4Fdgt.js";import{T as t}from"./index-YgKcfT__.js";import"./index-DnCiOYxZ.js";import"./index-Dc5Cm9z0.js";import"./index-DBZNt4Em.js";var l="Toggle",m=o((function(o,m){var n=o.defaultPressed,c=void 0!==n&&n,p=o.customRootClass,f=void 0===p?"":p,u=o.children,h=o.className,j=void 0===h?"":h,v=o.color,x=void 0===v?"":v,C=o.pressed,g=o.onPressedChange,P=o.asChild,N=void 0!==P&&P,b=s(o,["defaultPressed","customRootClass","children","className","color","pressed","onPressedChange","asChild"]),R=i(C,c,g),T=R[0],y=R[1],E=r(f,l),_={};return x&&(_["data-rad-ui-accent-color"]=x),a.createElement(t,e({ref:m,className:d(E,j),pressed:T,onPressedChange:y,"data-state":T?"on":"off","data-disabled":b.disabled?"":void 0,asChild:N},b,_),u)}));m.displayName=l;export{m as default};
|