@radui/ui 0.0.45 → 0.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -8
- package/dist/components/Accordion.d.ts +53 -0
- package/dist/components/Accordion.js +1 -1
- package/dist/components/AlertDialog.d.ts +62 -0
- package/dist/components/AlertDialog.js +1 -5
- package/dist/components/AspectRatio.d.ts +16 -0
- package/dist/components/AspectRatio.js +1 -1
- package/dist/components/Avatar.d.ts +39 -0
- package/dist/components/Avatar.js +1 -1
- package/dist/components/AvatarGroup.d.ts +41 -0
- package/dist/components/AvatarGroup.js +1 -1
- package/dist/components/Badge.d.ts +15 -0
- package/dist/components/Badge.js +1 -1
- package/dist/components/BlockQuote.d.ts +18 -0
- package/dist/components/BlockQuote.js +1 -1
- package/dist/components/Button.d.ts +15 -0
- package/dist/components/Button.js +1 -1
- package/dist/components/Callout.d.ts +35 -0
- package/dist/components/Callout.js +1 -1
- package/dist/components/Card.d.ts +28 -0
- package/dist/components/Card.js +1 -1
- package/dist/components/Checkbox.d.ts +23 -0
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/CheckboxCards.d.ts +37 -0
- package/dist/components/CheckboxCards.js +1 -1
- package/dist/components/CheckboxGroup.d.ts +38 -0
- package/dist/components/CheckboxGroup.js +1 -1
- package/dist/components/Code.d.ts +13 -0
- package/dist/components/Code.js +1 -1
- package/dist/components/Collapsible.d.ts +30 -0
- package/dist/components/Collapsible.js +1 -1
- package/dist/components/ContextMenu.d.ts +52 -0
- package/dist/components/ContextMenu.js +1 -0
- package/dist/components/DataList.d.ts +24 -0
- package/dist/components/DataList.js +1 -1
- package/dist/components/Dialog.d.ts +51 -0
- package/dist/components/Dialog.js +1 -5
- package/dist/components/Disclosure.d.ts +41 -0
- package/dist/components/Disclosure.js +1 -1
- package/dist/components/DropdownMenu.d.ts +52 -0
- package/dist/components/DropdownMenu.js +1 -0
- package/dist/components/Em.d.ts +15 -0
- package/dist/components/Em.js +1 -1
- package/dist/components/Heading.d.ts +293 -0
- package/dist/components/Heading.js +1 -1
- package/dist/components/HoverCard.d.ts +37 -0
- package/dist/components/HoverCard.js +1 -5
- package/dist/components/Kbd.d.ts +13 -0
- package/dist/components/Kbd.js +1 -1
- package/dist/components/Link.d.ts +17 -0
- package/dist/components/Link.js +1 -1
- package/dist/components/Menubar.d.ts +60 -0
- package/dist/components/Menubar.js +1 -0
- package/dist/components/NumberField.d.ts +43 -0
- package/dist/components/NumberField.js +1 -0
- package/dist/components/Progress.d.ts +24 -0
- package/dist/components/Progress.js +1 -1
- package/dist/components/Quote.d.ts +15 -0
- package/dist/components/Quote.js +1 -1
- package/dist/components/Radio.d.ts +14 -0
- package/dist/components/Radio.js +1 -1
- package/dist/components/RadioCards.d.ts +41 -0
- package/dist/components/RadioCards.js +1 -1
- package/dist/components/RadioGroup.d.ts +54 -0
- package/dist/components/RadioGroup.js +1 -1
- package/dist/components/ScrollArea.d.ts +18 -0
- package/dist/components/ScrollArea.js +1 -1
- package/dist/components/Select.d.ts +37 -0
- package/dist/components/Select.js +1 -5
- package/dist/components/Separator.d.ts +18 -0
- package/dist/components/Separator.js +1 -1
- package/dist/components/Skeleton.d.ts +18 -0
- package/dist/components/Skeleton.js +1 -1
- package/dist/components/Slider.d.ts +29 -0
- package/dist/components/Slider.js +1 -1
- package/dist/components/Strong.d.ts +14 -0
- package/dist/components/Strong.js +1 -1
- package/dist/components/Switch.d.ts +35 -0
- package/dist/components/Switch.js +1 -1
- package/dist/components/TabNav.d.ts +31 -0
- package/dist/components/TabNav.js +1 -1
- package/dist/components/Table.d.ts +35 -0
- package/dist/components/Table.js +1 -1
- package/dist/components/Tabs.d.ts +64 -0
- package/dist/components/Tabs.js +1 -1
- package/dist/components/Text.d.ts +283 -0
- package/dist/components/Text.js +1 -1
- package/dist/components/TextArea.d.ts +24 -0
- package/dist/components/TextArea.js +1 -1
- package/dist/components/Theme.d.ts +13 -0
- package/dist/components/Theme.js +1 -1
- package/dist/components/Toggle.d.ts +45 -0
- package/dist/components/Toggle.js +1 -1
- package/dist/components/ToggleGroup.d.ts +42 -0
- package/dist/components/ToggleGroup.js +1 -1
- package/dist/components/Tooltip.d.ts +22 -0
- package/dist/components/Tooltip.js +1 -5
- package/dist/components/Tree.d.ts +20 -0
- package/dist/components/Tree.js +1 -1
- package/dist/components/VisuallyHidden.d.ts +16 -0
- package/dist/components/VisuallyHidden.js +1 -1
- package/dist/components/setupTests.d.ts +3 -0
- package/dist/themes/default.css +1 -1
- package/package.json +139 -47
- package/dist/components/Dropdown.js +0 -1
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
type TextProps = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
customRootClass?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
as?: string;
|
|
8
|
+
} & React.ComponentProps<'p'>;
|
|
9
|
+
declare const Text: {
|
|
10
|
+
({ children, customRootClass, className, as, ...props }: TextProps): React.DOMElement<{
|
|
11
|
+
ref?: React.LegacyRef<HTMLParagraphElement> | undefined;
|
|
12
|
+
key?: React.Key | null | undefined;
|
|
13
|
+
defaultChecked?: boolean | undefined;
|
|
14
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
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
|
+
};
|
|
281
|
+
|
|
282
|
+
export { Text as default };
|
|
283
|
+
export type { TextProps };
|
package/dist/components/Text.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use client';import
|
|
1
|
+
'use client';import{__rest as s,__assign as e}from"./node_modules/tslib/tslib.es6.js";import o from"react";import{customClassSwitcher as a}from"./src/core/customClassSwitcher/index.js";import{clsx as t}from"./node_modules/clsx/dist/clsx.js";var l="Text",r=["div","span","p","label"],i=function(i){var m=i.children,c=i.customRootClass,d=void 0===c?"":c,n=i.className,p=void 0===n?"":n,u=i.as,f=void 0===u?"p":u,v=s(i,["children","customRootClass","className","as"]),x=a(d,l);return r.includes(f)||(f="p"),o.createElement(f,e({className:t(x,p)},v),m)};i.displayName=l;export{i as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
type TextAreaProps$1 = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
customRootClass?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
type TextAreaProps = {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
customRootClass?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
14
|
+
declare const TextArea: {
|
|
15
|
+
({ customRootClass, className, children, ...props }: TextAreaProps): React.JSX.Element;
|
|
16
|
+
Input: ({ children, placeholder }: {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
}) => React.JSX.Element;
|
|
20
|
+
Root: ({ children, customRootClass, className }: TextAreaProps$1) => React.JSX.Element;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { TextArea as default };
|
|
24
|
+
export type { TextAreaProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use client';import e
|
|
1
|
+
'use client';import{__rest as e}from"./node_modules/tslib/tslib.es6.js";import t from"react";import{clsx as o}from"./node_modules/clsx/dist/clsx.js";import s from"./TextArea/fragments/TextAreaRoot.js";import r from"./TextArea/fragments/TextAreaInput.js";var a=function(a){var m=a.customRootClass,l=void 0===m?"":m,c=a.className,n=void 0===c?"":c,i=a.children;return e(a,["customRootClass","className","children"]),t.createElement(s,{customRootClass:l,className:o(n)},t.createElement(r,{placeholder:"enter text"},i),i)};a.Input=r,a.Root=s;export{a as default};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
type ThemeProps = {
|
|
4
|
+
appearance?: 'light' | 'dark' | 'system';
|
|
5
|
+
accentColor?: string;
|
|
6
|
+
radius?: string;
|
|
7
|
+
scaling?: string;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
id?: string;
|
|
10
|
+
};
|
|
11
|
+
declare const Theme: ({ appearance, id, accentColor, radius, scaling, children, ...props }: ThemeProps) => React.JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { Theme as default };
|
package/dist/components/Theme.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use client';import
|
|
1
|
+
'use client';import{__rest as a,__assign as i}from"./node_modules/tslib/tslib.es6.js";import e,{useState as r,useEffect as d}from"react";var t=function(t){var o=t.appearance,c=void 0===o?"light":o,n=t.id,s=void 0===n?"rad-ui-theme-container":n,l=t.accentColor,u=void 0===l?"":l,m=t.radius,f=void 0===m?"":m,h=t.scaling,p=void 0===h?"":h,v=t.children,g=a(t,["appearance","id","accentColor","radius","scaling","children"]),b=r(c),k=b[0],w=b[1],C=r(u),j=C[0],x=C[1],y=r(f),E=y[0],M=y[1],_=r(p),q=_[0],z=_[1];return d((function(){w("system"===c?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":c)}),[c]),d((function(){u&&x(u)}),[u]),d((function(){f&&M(f)}),[f]),d((function(){p&&z(p)}),[p]),e.createElement("div",i({id:s,"data-rad-ui-theme":k,"data-rad-ui-accent-color":j,"data-rad-ui-radius":E,"data-rad-ui-scaling":q},g),v)};export{t as default};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Toggle component
|
|
5
|
+
* @typedef ToggleProps
|
|
6
|
+
*/
|
|
7
|
+
type ToggleProps = {
|
|
8
|
+
/** Initial state when in uncontrolled mode */
|
|
9
|
+
defaultPressed?: boolean;
|
|
10
|
+
/** Current pressed state (for controlled mode) */
|
|
11
|
+
pressed?: boolean;
|
|
12
|
+
/** Optional custom root class name to override default styling */
|
|
13
|
+
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
|
+
/** Accent color for the toggle */
|
|
21
|
+
color?: string;
|
|
22
|
+
/** Callback fired when toggle state changes */
|
|
23
|
+
onPressedChange: (isPressed: boolean) => void;
|
|
24
|
+
/** Whether to render as a child element instead of a button */
|
|
25
|
+
asChild?: boolean;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Toggle component that can be used in either controlled or uncontrolled mode.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* // Controlled mode
|
|
32
|
+
* const [pressed, setPressed] = useState(false);
|
|
33
|
+
* <Toggle pressed={pressed} onChange={setPressed}>Toggle Me</Toggle>
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* // Uncontrolled mode
|
|
37
|
+
* <Toggle defaultPressed={false} onChange={(isPressed) => console.log(isPressed)}>Toggle Me</Toggle>
|
|
38
|
+
*
|
|
39
|
+
* @param {ToggleProps} props - The component props
|
|
40
|
+
* @returns {JSX.Element} The Toggle component
|
|
41
|
+
*/
|
|
42
|
+
declare const Toggle: React.FC<ToggleProps>;
|
|
43
|
+
|
|
44
|
+
export { Toggle as default };
|
|
45
|
+
export type { ToggleProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use client';import
|
|
1
|
+
'use client';import{__rest as s,__assign as e}from"./node_modules/tslib/tslib.es6.js";import o from"react";import{clsx as r}from"./node_modules/clsx/dist/clsx.js";import{customClassSwitcher as d}from"./src/core/customClassSwitcher/index.js";import{useControllableState as a}from"./src/core/hooks/useControllableState/index.js";import t from"./src/core/primitives/Toggle/index.js";var i="Toggle",l=function(l){var c=l.defaultPressed,m=void 0!==c&&c,n=l.customRootClass,f=void 0===n?"":n,p=l.children,u=l.className,h=void 0===u?"":u,C=l.color,v=void 0===C?"":C,g=l.pressed,x=l.onPressedChange,b=l.asChild,j=void 0!==b&&b,P=s(l,["defaultPressed","customRootClass","children","className","color","pressed","onPressedChange","asChild"]),N=a(g,m,x),R=N[0],S=N[1],T=d(f,i),_={};return v&&(_["data-rad-ui-accent-color"]=v),o.createElement(t,e({className:r(T,h),pressed:R,onPressedChange:S,"data-state":R?"on":"off","data-disabled":P.disabled?"":void 0,asChild:j},P,_),p)};l.displayName=i;export{l as default};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Props for the ToggleItem component
|
|
6
|
+
* @typedef ToggleItemProps
|
|
7
|
+
*/
|
|
8
|
+
type ToggleItemProps = {
|
|
9
|
+
/** Content to render inside the toggle item */
|
|
10
|
+
children?: React__default.ReactNode;
|
|
11
|
+
/** Value associated with this toggle item, used for selection state */
|
|
12
|
+
value?: any;
|
|
13
|
+
/** Whether the toggle item is disabled */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Whether to render as a child element instead of a button */
|
|
16
|
+
asChild?: boolean;
|
|
17
|
+
/** Additional props to pass to the underlying TogglePrimitive */
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
declare const ToggleGroup: {
|
|
22
|
+
(): null;
|
|
23
|
+
Root: React$1.FC<{
|
|
24
|
+
type?: "single" | "multiple";
|
|
25
|
+
className?: string;
|
|
26
|
+
loop?: boolean;
|
|
27
|
+
orientation?: "horizontal" | "vertical";
|
|
28
|
+
customRootClass?: string;
|
|
29
|
+
value?: any;
|
|
30
|
+
defaultValue?: any;
|
|
31
|
+
onValueChange?: (value: any) => void;
|
|
32
|
+
color?: string;
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
dir?: "ltr" | "rtl";
|
|
35
|
+
rovingFocus?: boolean;
|
|
36
|
+
asChild?: boolean;
|
|
37
|
+
children?: React.ReactNode;
|
|
38
|
+
}>;
|
|
39
|
+
Item: ({ children, className, value, disabled, asChild, ...props }: ToggleItemProps) => React$1.JSX.Element;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export { ToggleGroup as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use client';import
|
|
1
|
+
'use client';import o from"./ToggleGroup/fragments/ToggleGroupRoot.js";import e from"./ToggleGroup/fragments/ToggleItem.js";var r=function(){return console.warn("Direct usage of ToggleGroup is not supported. Please use ToggleGroup.Root, ToggleGroup.Item, etc. instead."),null};r.Root=o,r.Item=e;export{r as default};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
declare const Tooltip: {
|
|
4
|
+
(): null;
|
|
5
|
+
Root: {
|
|
6
|
+
({ children, placement }: {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
placement?: "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
9
|
+
} & JSX.IntrinsicElements["div"]): react.JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
Trigger: react.ForwardRefExoticComponent<Omit<{
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
asChild?: boolean;
|
|
15
|
+
} & react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
16
|
+
Content: react.ForwardRefExoticComponent<Omit<{
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
showArrow?: boolean;
|
|
19
|
+
} & react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { Tooltip as default };
|