@noxickon/onyx 0.0.4-dev.8 → 1.0.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/dist/chunks/hooks-DiKvsNs-.js +48 -0
- package/dist/chunks/hooks-bJFfbTks.js +8624 -0
- package/dist/chunks/query-BhvXa-m6.js +10 -0
- package/dist/chunks/query-iDn3qBGF.js +14 -0
- package/dist/chunks/ui-ChsTPgui.js +41 -0
- package/dist/chunks/ui-DxsSYHCv.js +20634 -0
- package/dist/chunks/useAuth-BFgXzu6Q.js +12 -0
- package/dist/chunks/useAuth-DxoDe3YA.js +1 -0
- package/dist/contexts/contexts.cjs.js +5 -0
- package/dist/contexts/contexts.es.js +156 -0
- package/dist/contexts.d.ts +117 -0
- package/dist/hooks/hooks.cjs.js +1 -6
- package/dist/hooks/hooks.es.js +11 -1916
- package/dist/hooks.d.ts +84 -22
- package/dist/index.d.ts +1782 -268
- package/dist/layouts/layouts.cjs.js +1 -0
- package/dist/layouts/layouts.es.js +688 -0
- package/dist/layouts.d.ts +430 -0
- package/dist/onyx.cjs.js +1 -1
- package/dist/onyx.es.js +53 -1395
- package/dist/pages/pages.cjs.js +2 -2
- package/dist/pages/pages.es.js +72 -70
- package/dist/pages.d.ts +4 -4
- package/dist/routes/routes.cjs.js +1 -0
- package/dist/routes/routes.es.js +31 -0
- package/dist/routes.d.ts +28 -0
- package/dist/shared.css +77 -48
- package/dist/ui.css +1 -0
- package/dist/utils/utils.cjs.js +1 -1
- package/dist/utils/utils.es.js +20 -6
- package/dist/utils.d.ts +109 -5
- package/package.json +39 -28
- package/dist/chunks/AuthContext-CaZKJMxQ.js +0 -2149
- package/dist/chunks/AuthContext-uU1aP9gj.js +0 -31
- package/dist/chunks/Button-D-v4l8ZE.js +0 -20
- package/dist/chunks/Button-bARrxYyo.js +0 -11053
- package/dist/chunks/Input-CLi1H63d.js +0 -1
- package/dist/chunks/Input-dfvmdIHi.js +0 -138
- package/dist/chunks/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/chunks/_commonjsHelpers-DwGv2jUC.js +0 -1
- package/dist/chunks/constants-B1_n9ezb.js +0 -1
- package/dist/chunks/constants-CDXq37n6.js +0 -4
- package/dist/chunks/errorHelper--G-SWQzN.js +0 -18
- package/dist/chunks/errorHelper-DaP_XxEx.js +0 -1
- package/dist/chunks/formatTimestamp-CMxOnPo1.js +0 -12
- package/dist/chunks/formatTimestamp-TTsNcy7u.js +0 -1
- package/dist/chunks/index-CPwC_oqh.js +0 -561
- package/dist/chunks/index-DY808_YF.js +0 -2
- package/dist/chunks/isObject-BDHKUJKN.js +0 -1
- package/dist/chunks/isObject-vmP43YLW.js +0 -6
- package/dist/chunks/jsx-runtime--oOP9f8K.js +0 -284
- package/dist/chunks/jsx-runtime-CITbqOLs.js +0 -22
- package/dist/chunks/tslib.es6-ci7D5hcx.js +0 -44
- package/dist/chunks/tslib.es6-nRfFZWHa.js +0 -1
- package/dist/chunks/useAuth-BsWbsZD5.js +0 -1
- package/dist/chunks/useAuth-CkaMowHd.js +0 -11
- package/dist/chunks/useForm-DfmfCtGn.js +0 -3070
- package/dist/chunks/useForm-OVVxm4qZ.js +0 -18
- package/dist/chunks/useQuery-Dh3SZN5S.js +0 -1482
- package/dist/chunks/useQuery-y4De9xeL.js +0 -2
- package/dist/context/context.cjs.js +0 -1
- package/dist/context/context.es.js +0 -39
- package/dist/context.d.ts +0 -47
- package/dist/index.css +0 -1
- package/dist/layout/layout.cjs.js +0 -1
- package/dist/layout/layout.es.js +0 -265
- package/dist/layout.d.ts +0 -90
package/dist/index.d.ts
CHANGED
|
@@ -1,406 +1,1920 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AnchorHTMLAttributes } from 'react';
|
|
2
|
+
import { AnimationEventHandler } from 'react';
|
|
3
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
4
|
+
import { ClipboardEventHandler } from 'react';
|
|
5
|
+
import { CompositionEventHandler } from 'react';
|
|
6
|
+
import { CSSProperties } from 'react';
|
|
7
|
+
import { DetailedReactHTMLElement } from 'react';
|
|
8
|
+
import { DialogHTMLAttributes } from 'react';
|
|
9
|
+
import { DragEventHandler } from 'react';
|
|
10
|
+
import { FocusEventHandler } from 'react';
|
|
11
|
+
import { FormEventHandler } from 'react';
|
|
12
|
+
import { FormHTMLAttributes } from 'react';
|
|
2
13
|
import { HTMLAttributes } from 'react';
|
|
14
|
+
import { IconProps } from '@mdi/react/dist/IconProps';
|
|
15
|
+
import { InputEventHandler } from 'react';
|
|
16
|
+
import { InputHTMLAttributes } from 'react';
|
|
17
|
+
import { JSX } from 'react/jsx-runtime';
|
|
18
|
+
import { KeyboardEventHandler } from 'react';
|
|
19
|
+
import { LabelHTMLAttributes } from 'react';
|
|
20
|
+
import { LiHTMLAttributes } from 'react';
|
|
21
|
+
import { MouseEventHandler } from 'react';
|
|
22
|
+
import { OlHTMLAttributes } from 'react';
|
|
23
|
+
import { PointerEventHandler } from 'react';
|
|
24
|
+
import { ReactEventHandler } from 'react';
|
|
3
25
|
import { ReactNode } from 'react';
|
|
26
|
+
import { ReactPortal } from 'react';
|
|
27
|
+
import { Ref } from 'react';
|
|
28
|
+
import { TableHTMLAttributes } from 'react';
|
|
29
|
+
import { TdHTMLAttributes } from 'react';
|
|
30
|
+
import { TextareaHTMLAttributes } from 'react';
|
|
31
|
+
import { ThHTMLAttributes } from 'react';
|
|
32
|
+
import { ToggleEventHandler } from 'react';
|
|
33
|
+
import { TouchEventHandler } from 'react';
|
|
34
|
+
import { TransitionEventHandler } from 'react';
|
|
35
|
+
import { UIEventHandler } from 'react';
|
|
36
|
+
import { WheelEventHandler } from 'react';
|
|
37
|
+
|
|
38
|
+
export declare type AccordionType = 'single' | 'multiple';
|
|
39
|
+
|
|
40
|
+
declare interface BaseInputButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type' | 'children'> {
|
|
41
|
+
children?: React.ReactNode;
|
|
42
|
+
path?: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare interface BaseInputCounterProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
46
|
+
currentLength?: number;
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
maxLength: number;
|
|
49
|
+
size?: 'sm' | 'md';
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare interface BaseInputIconProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'type' | 'children'> {
|
|
53
|
+
children?: React.ReactNode;
|
|
54
|
+
path?: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
declare interface BaseNotificationItemProps {
|
|
58
|
+
children?: ReactNode;
|
|
59
|
+
icon?: string;
|
|
60
|
+
img?: string;
|
|
61
|
+
message?: string;
|
|
62
|
+
timestamp?: Date;
|
|
63
|
+
title?: string;
|
|
64
|
+
type?: 'default' | 'info' | 'success' | 'warning' | 'error';
|
|
65
|
+
unread?: boolean;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
declare const COLOR_STYLES: {
|
|
69
|
+
readonly purple: {
|
|
70
|
+
readonly background: "bg-purple-500/10";
|
|
71
|
+
readonly backgroundSolid: "bg-purple-500";
|
|
72
|
+
readonly text: "text-purple-400";
|
|
73
|
+
readonly border: "border border-purple-500/20";
|
|
74
|
+
readonly stroke: "stroke-purple-500";
|
|
75
|
+
};
|
|
76
|
+
readonly lime: {
|
|
77
|
+
readonly background: "bg-lime-400/10";
|
|
78
|
+
readonly backgroundSolid: "bg-lime-400";
|
|
79
|
+
readonly text: "text-lime-300";
|
|
80
|
+
readonly border: "border border-lime-400/20";
|
|
81
|
+
readonly stroke: "stroke-lime-400";
|
|
82
|
+
};
|
|
83
|
+
readonly red: {
|
|
84
|
+
readonly background: "bg-red-500/10";
|
|
85
|
+
readonly backgroundSolid: "bg-red-500";
|
|
86
|
+
readonly text: "text-red-400";
|
|
87
|
+
readonly border: "border border-red-500/20";
|
|
88
|
+
readonly stroke: "stroke-red-500";
|
|
89
|
+
};
|
|
90
|
+
readonly yellow: {
|
|
91
|
+
readonly background: "bg-yellow-500/10";
|
|
92
|
+
readonly backgroundSolid: "bg-yellow-500";
|
|
93
|
+
readonly text: "text-yellow-400";
|
|
94
|
+
readonly border: "border border-yellow-500/20";
|
|
95
|
+
readonly stroke: "stroke-yellow-500";
|
|
96
|
+
};
|
|
97
|
+
readonly green: {
|
|
98
|
+
readonly background: "bg-green-500/10";
|
|
99
|
+
readonly backgroundSolid: "bg-green-500";
|
|
100
|
+
readonly text: "text-green-400";
|
|
101
|
+
readonly border: "border border-green-500/20";
|
|
102
|
+
readonly stroke: "stroke-green-500";
|
|
103
|
+
};
|
|
104
|
+
readonly blue: {
|
|
105
|
+
readonly background: "bg-blue-500/10";
|
|
106
|
+
readonly backgroundSolid: "bg-blue-500";
|
|
107
|
+
readonly text: "text-blue-400";
|
|
108
|
+
readonly border: "border border-blue-500/20";
|
|
109
|
+
readonly stroke: "stroke-blue-500";
|
|
110
|
+
};
|
|
111
|
+
readonly indigo: {
|
|
112
|
+
readonly background: "bg-indigo-500/10";
|
|
113
|
+
readonly backgroundSolid: "bg-indigo-500";
|
|
114
|
+
readonly text: "text-indigo-400";
|
|
115
|
+
readonly border: "border border-indigo-500/20";
|
|
116
|
+
readonly stroke: "stroke-indigo-500";
|
|
117
|
+
};
|
|
118
|
+
readonly pink: {
|
|
119
|
+
readonly background: "bg-pink-500/10";
|
|
120
|
+
readonly backgroundSolid: "bg-pink-500";
|
|
121
|
+
readonly text: "text-pink-400";
|
|
122
|
+
readonly border: "border border-pink-500/20";
|
|
123
|
+
readonly stroke: "stroke-pink-500";
|
|
124
|
+
};
|
|
125
|
+
readonly amber: {
|
|
126
|
+
readonly background: "bg-amber-500/10";
|
|
127
|
+
readonly backgroundSolid: "bg-amber-500";
|
|
128
|
+
readonly text: "text-amber-400";
|
|
129
|
+
readonly border: "border border-amber-500/20";
|
|
130
|
+
readonly stroke: "stroke-amber-500";
|
|
131
|
+
};
|
|
132
|
+
readonly emerald: {
|
|
133
|
+
readonly background: "bg-emerald-500/10";
|
|
134
|
+
readonly backgroundSolid: "bg-emerald-500";
|
|
135
|
+
readonly text: "text-emerald-400";
|
|
136
|
+
readonly border: "border border-emerald-500/20";
|
|
137
|
+
readonly stroke: "stroke-emerald-500";
|
|
138
|
+
};
|
|
139
|
+
readonly teal: {
|
|
140
|
+
readonly background: "bg-teal-500/10";
|
|
141
|
+
readonly backgroundSolid: "bg-teal-500";
|
|
142
|
+
readonly text: "text-teal-400";
|
|
143
|
+
readonly border: "border border-teal-500/20";
|
|
144
|
+
readonly stroke: "stroke-teal-500";
|
|
145
|
+
};
|
|
146
|
+
readonly cyan: {
|
|
147
|
+
readonly background: "bg-cyan-500/10";
|
|
148
|
+
readonly backgroundSolid: "bg-cyan-500";
|
|
149
|
+
readonly text: "text-cyan-400";
|
|
150
|
+
readonly border: "border border-cyan-500/20";
|
|
151
|
+
readonly stroke: "stroke-cyan-500";
|
|
152
|
+
};
|
|
153
|
+
readonly sky: {
|
|
154
|
+
readonly background: "bg-sky-500/10";
|
|
155
|
+
readonly backgroundSolid: "bg-sky-500";
|
|
156
|
+
readonly text: "text-sky-400";
|
|
157
|
+
readonly border: "border border-sky-500/20";
|
|
158
|
+
readonly stroke: "stroke-sky-500";
|
|
159
|
+
};
|
|
160
|
+
readonly violet: {
|
|
161
|
+
readonly background: "bg-violet-500/10";
|
|
162
|
+
readonly backgroundSolid: "bg-violet-500";
|
|
163
|
+
readonly text: "text-violet-400";
|
|
164
|
+
readonly border: "border border-violet-500/20";
|
|
165
|
+
readonly stroke: "stroke-violet-500";
|
|
166
|
+
};
|
|
167
|
+
readonly fuchsia: {
|
|
168
|
+
readonly background: "bg-fuchsia-500/10";
|
|
169
|
+
readonly backgroundSolid: "bg-fuchsia-500";
|
|
170
|
+
readonly text: "text-fuchsia-400";
|
|
171
|
+
readonly border: "border border-fuchsia-500/20";
|
|
172
|
+
readonly stroke: "stroke-fuchsia-500";
|
|
173
|
+
};
|
|
174
|
+
readonly orange: {
|
|
175
|
+
readonly background: "bg-orange-500/10";
|
|
176
|
+
readonly backgroundSolid: "bg-orange-500";
|
|
177
|
+
readonly text: "text-orange-400";
|
|
178
|
+
readonly border: "border border-orange-500/20";
|
|
179
|
+
readonly stroke: "stroke-orange-500";
|
|
180
|
+
};
|
|
181
|
+
readonly rose: {
|
|
182
|
+
readonly background: "bg-rose-500/10";
|
|
183
|
+
readonly backgroundSolid: "bg-rose-500";
|
|
184
|
+
readonly text: "text-rose-400";
|
|
185
|
+
readonly border: "border border-rose-500/20";
|
|
186
|
+
readonly stroke: "stroke-rose-500";
|
|
187
|
+
};
|
|
188
|
+
readonly gray: {
|
|
189
|
+
readonly background: "bg-gray-1100/10";
|
|
190
|
+
readonly backgroundSolid: "bg-gray-1100";
|
|
191
|
+
readonly text: "text-gray-1100";
|
|
192
|
+
readonly border: "border border-gray-1100/20";
|
|
193
|
+
readonly stroke: "stroke-gray-1100";
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
declare type ColorStyleName = keyof typeof COLOR_STYLES;
|
|
198
|
+
|
|
199
|
+
export declare type DrawerSide = 'left' | 'right' | 'top' | 'bottom';
|
|
200
|
+
|
|
201
|
+
declare const FormField: ({ children, className, ...domProps }: FormFieldProps) => JSX.Element;
|
|
202
|
+
|
|
203
|
+
export declare interface FormFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
204
|
+
children: ReactNode;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
declare const FormFields: ({ children, className, ...domProps }: FormFieldsProps) => JSX.Element;
|
|
208
|
+
|
|
209
|
+
export declare interface FormFieldsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
210
|
+
children: ReactNode;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
declare const FormGroup: ({ children, className, ...domProps }: FormGroupProps) => JSX.Element;
|
|
214
|
+
|
|
215
|
+
export declare interface FormGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
216
|
+
children: ReactNode;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
declare type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
|
220
|
+
|
|
221
|
+
declare type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
222
|
+
|
|
223
|
+
export declare const OxAccordion: typeof OxAccordion_2 & {
|
|
224
|
+
Content: typeof OxAccordionContent;
|
|
225
|
+
Header: typeof OxAccordionHeader;
|
|
226
|
+
Item: typeof OxAccordionItem;
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
declare const OxAccordion_2: ({ children, className, defaultValue, onValueChange, type, value: controlledValue, ...domProps }: OxAccordionProps) => JSX.Element;
|
|
230
|
+
|
|
231
|
+
declare const OxAccordionContent: ({ children, className, ...domProps }: OxAccordionContentProps) => JSX.Element;
|
|
232
|
+
|
|
233
|
+
export declare interface OxAccordionContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
234
|
+
children: ReactNode;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
declare const OxAccordionHeader: ({ children, className, ...domProps }: OxAccordionHeaderProps) => JSX.Element;
|
|
238
|
+
|
|
239
|
+
export declare interface OxAccordionHeaderProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
240
|
+
children: ReactNode;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
declare const OxAccordionItem: ({ children, className, disabled, value, ...domProps }: OxAccordionItemProps) => JSX.Element;
|
|
244
|
+
|
|
245
|
+
export declare interface OxAccordionItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
246
|
+
children: ReactNode;
|
|
247
|
+
disabled?: boolean;
|
|
248
|
+
value: string;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export declare interface OxAccordionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
252
|
+
children: ReactNode;
|
|
253
|
+
defaultValue?: string | string[];
|
|
254
|
+
onValueChange?: (value: string | string[]) => void;
|
|
255
|
+
type?: AccordionType;
|
|
256
|
+
value?: string | string[];
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export declare const OxAlert: typeof OxAlert_2 & {
|
|
260
|
+
Icon: typeof OxAlertIcon;
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
declare const OxAlert_2: ({ "aria-live": ariaLive, children, className, role, type, ...domProps }: OxAlertProps) => JSX.Element;
|
|
264
|
+
|
|
265
|
+
declare const OxAlertIcon: ({ className, iconClass, iconDivClass, path, size, ...props }: OxAlertIconProps) => JSX.Element;
|
|
266
|
+
|
|
267
|
+
export declare interface OxAlertIconProps extends Omit<OxIconProps, 'path'> {
|
|
268
|
+
iconClass?: string;
|
|
269
|
+
iconDivClass?: string;
|
|
270
|
+
path?: string;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export declare interface OxAlertProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
274
|
+
children: ReactNode;
|
|
275
|
+
icon?: string;
|
|
276
|
+
iconClass?: string;
|
|
277
|
+
iconDivClass?: string;
|
|
278
|
+
type?: OxAlertType;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export declare type OxAlertType = 'success' | 'error' | 'warning' | 'info' | 'default';
|
|
282
|
+
|
|
283
|
+
export declare const OxAvatar: typeof OxAvatar_2 & {
|
|
284
|
+
Field: typeof OxAvatarField;
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
declare const OxAvatar_2: ({ alt, className, fallback, isLoading: externalIsLoading, shape, showStatus, size, skeleton, src, status, ...domProps }: OxAvatarProps) => JSX.Element;
|
|
288
|
+
|
|
289
|
+
declare const OxAvatarField: ({ children, className, ...domProps }: OxAvatarFieldProps) => JSX.Element;
|
|
290
|
+
|
|
291
|
+
export declare interface OxAvatarFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
292
|
+
children: ReactNode;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export declare interface OxAvatarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
296
|
+
alt: string;
|
|
297
|
+
fallback?: string | ReactNode;
|
|
298
|
+
isLoading?: boolean;
|
|
299
|
+
shape?: 'rectangle' | 'circle';
|
|
300
|
+
showStatus?: boolean;
|
|
301
|
+
size?: OxAvatarSize;
|
|
302
|
+
skeleton?: boolean;
|
|
303
|
+
src?: string;
|
|
304
|
+
status?: 'online' | 'offline' | 'away' | 'busy';
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export declare type OxAvatarSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
308
|
+
|
|
309
|
+
export declare const OxBadge: ({ bgColor, children, className, color, size, style: styleProp, textColor, ...domProps }: OxBadgeProps) => JSX.Element;
|
|
310
|
+
|
|
311
|
+
export declare interface OxBadgeProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
312
|
+
bgColor?: string;
|
|
313
|
+
children: ReactNode;
|
|
314
|
+
color?: ColorStyleName;
|
|
315
|
+
size?: 'sm' | 'md';
|
|
316
|
+
textColor?: string;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export declare const OxBreadcrumb: typeof OxBreadcrumb_2 & {
|
|
320
|
+
Item: typeof OxBreadcrumbItem;
|
|
321
|
+
Link: typeof OxBreadcrumbLink;
|
|
322
|
+
Separator: typeof OxBreadcrumbSeparator;
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
declare const OxBreadcrumb_2: ({ children, className, ...domProps }: OxBreadcrumbProps) => JSX.Element;
|
|
326
|
+
|
|
327
|
+
declare const OxBreadcrumbItem: ({ children, className, current, ...domProps }: OxBreadcrumbItemProps) => JSX.Element;
|
|
328
|
+
|
|
329
|
+
export declare interface OxBreadcrumbItemProps extends Omit<HTMLAttributes<HTMLLIElement>, 'children'> {
|
|
330
|
+
children: ReactNode;
|
|
331
|
+
current?: boolean;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
declare const OxBreadcrumbLink: ({ children, className, href, ...domProps }: OxBreadcrumbLinkProps) => JSX.Element;
|
|
335
|
+
|
|
336
|
+
export declare interface OxBreadcrumbLinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'children'> {
|
|
337
|
+
children: ReactNode;
|
|
338
|
+
href: string;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export declare interface OxBreadcrumbProps extends Omit<HTMLAttributes<HTMLOListElement>, 'children'> {
|
|
342
|
+
children: ReactNode;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
declare const OxBreadcrumbSeparator: ({ children, className, ...domProps }: OxBreadcrumbSeparatorProps) => JSX.Element;
|
|
346
|
+
|
|
347
|
+
export declare type OxBreadcrumbSeparatorProps = HTMLAttributes<HTMLLIElement>;
|
|
348
|
+
|
|
349
|
+
export declare const OxButton: typeof OxButton_2 & {
|
|
350
|
+
Icon: typeof OxButtonIcon;
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
declare const OxButton_2: ({ children, className, disabled, fullWidth, isLoading, size, type, variant, ...domProps }: OxButtonProps) => JSX.Element;
|
|
354
|
+
|
|
355
|
+
declare const OxButtonIcon: ({ path, size: propSize, ...props }: OxButtonIconProps) => JSX.Element;
|
|
356
|
+
|
|
357
|
+
export declare type OxButtonIconProps = OxIconProps;
|
|
358
|
+
|
|
359
|
+
export declare interface OxButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type'> {
|
|
360
|
+
fullWidth?: boolean;
|
|
361
|
+
isLoading?: boolean;
|
|
362
|
+
ref?: Ref<HTMLButtonElement>;
|
|
363
|
+
size?: 'sm' | 'md';
|
|
364
|
+
type?: 'button' | 'submit' | 'reset';
|
|
365
|
+
variant?: 'primary' | 'secondary' | 'ghost' | 'link' | 'danger';
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
export declare const OxCalendar: ({ className, onChange, value, ...domProps }: OxCalendarProps) => JSX.Element;
|
|
369
|
+
|
|
370
|
+
export declare interface OxCalendarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
371
|
+
onChange?: (value: string) => void;
|
|
372
|
+
value?: string;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
export declare const OxCard: typeof OxCard_2 & {
|
|
376
|
+
Body: typeof OxCardBody;
|
|
377
|
+
Footer: typeof OxCardFooter;
|
|
378
|
+
Header: typeof OxCardHeader;
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
declare const OxCard_2: ({ children, className, color, equalHeight, hoverVariant, hoverable, padding, ...domProps }: OxCardProps) => JSX.Element;
|
|
382
|
+
|
|
383
|
+
declare const OxCardBody: ({ children, className, flexGrow, ...domProps }: OxCardBodyProps) => JSX.Element;
|
|
384
|
+
|
|
385
|
+
export declare interface OxCardBodyProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
386
|
+
children: ReactNode;
|
|
387
|
+
flexGrow?: boolean;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
declare const OxCardFooter: ({ children, className, ...domProps }: OxCardFooterProps) => JSX.Element;
|
|
391
|
+
|
|
392
|
+
export declare interface OxCardFooterProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
393
|
+
children: ReactNode;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
declare const OxCardHeader: ({ action, children, className, icon, iconColor, subtitle, title, ...domProps }: OxCardHeaderProps) => JSX.Element;
|
|
397
|
+
|
|
398
|
+
export declare interface OxCardHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
399
|
+
action?: ReactNode;
|
|
400
|
+
icon?: string;
|
|
401
|
+
iconColor?: ColorStyleName;
|
|
402
|
+
subtitle?: ReactNode;
|
|
403
|
+
title?: ReactNode;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
export declare interface OxCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
407
|
+
children: ReactNode;
|
|
408
|
+
color?: ColorStyleName;
|
|
409
|
+
equalHeight?: boolean;
|
|
410
|
+
hoverable?: boolean;
|
|
411
|
+
hoverVariant?: 'none' | 'lift' | 'glow' | 'border';
|
|
412
|
+
padding?: 'none' | 'sm' | 'md';
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
export declare const OxCheckbox: typeof OxCheckbox_2 & {
|
|
416
|
+
Field: typeof OxCheckboxField;
|
|
417
|
+
Group: typeof OxCheckboxGroup;
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
declare const OxCheckbox_2: ({ checked, className, defaultChecked, disabled, error, id: propId, indeterminate, name, onChange, onCheckedChange, required, size, value, ...domProps }: OxCheckboxProps) => JSX.Element;
|
|
421
|
+
|
|
422
|
+
declare const OxCheckboxField: ({ children, className, ...domProps }: OxCheckboxFieldProps) => JSX.Element;
|
|
423
|
+
|
|
424
|
+
export declare interface OxCheckboxFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
425
|
+
children: ReactNode;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
declare const OxCheckboxGroup: ({ children, className, disabled, name, onChange, size, value, ...domProps }: OxCheckboxGroupProps) => JSX.Element;
|
|
429
|
+
|
|
430
|
+
export declare interface OxCheckboxGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'children'> {
|
|
431
|
+
children: ReactNode;
|
|
432
|
+
disabled?: boolean;
|
|
433
|
+
name: string;
|
|
434
|
+
onChange?: (value: (string | number)[]) => void;
|
|
435
|
+
size?: 'sm' | 'md';
|
|
436
|
+
value?: (string | number)[];
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
export declare interface OxCheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size' | 'value' | 'children'> {
|
|
440
|
+
error?: boolean;
|
|
441
|
+
indeterminate?: boolean;
|
|
442
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
443
|
+
size?: 'sm' | 'md';
|
|
444
|
+
value?: string | number;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
declare const OxDateButton: (props: BaseInputButtonProps) => JSX.Element;
|
|
448
|
+
|
|
449
|
+
declare const OxDateContainer: ({ children, className, customValidationMessage, defaultValue, disabled, error, onChange, pickOnly, readOnly, required, showValidation, showValidationTooltip, size, value, ...domProps }: OxDateInputContainerProps) => JSX.Element;
|
|
450
|
+
|
|
451
|
+
declare const OxDateIcon: (props: BaseInputIconProps) => JSX.Element;
|
|
452
|
+
|
|
453
|
+
export declare const OxDateInput: typeof OxDateInput_2 & {
|
|
454
|
+
Button: typeof OxDateButton;
|
|
455
|
+
Container: typeof OxDateContainer;
|
|
456
|
+
Icon: typeof OxDateIcon;
|
|
457
|
+
PickerButton: typeof OxDatePickerButton;
|
|
458
|
+
};
|
|
459
|
+
|
|
460
|
+
declare const OxDateInput_2: () => JSX.Element;
|
|
461
|
+
|
|
462
|
+
declare type OxDateInputButton = BaseInputButtonProps;
|
|
463
|
+
|
|
464
|
+
declare interface OxDateInputContainerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
465
|
+
customValidationMessage?: string;
|
|
466
|
+
defaultValue?: string;
|
|
467
|
+
disabled?: boolean;
|
|
468
|
+
error?: boolean;
|
|
469
|
+
onChange?: (value: string) => void;
|
|
470
|
+
pickOnly?: boolean;
|
|
471
|
+
readOnly?: boolean;
|
|
472
|
+
required?: boolean;
|
|
473
|
+
showValidation?: boolean;
|
|
474
|
+
showValidationTooltip?: boolean;
|
|
475
|
+
size?: 'sm' | 'md';
|
|
476
|
+
value?: string;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
declare const OxDatePickerButton: ({ children, ...props }: OxDateInputButton) => JSX.Element;
|
|
480
|
+
|
|
481
|
+
export declare const OxDescription: ({ children, className, disabled, ...domProps }: OxDescriptionProps) => JSX.Element;
|
|
482
|
+
|
|
483
|
+
export declare const OxDescriptionList: typeof OxDescriptionList_2 & {
|
|
484
|
+
Term: typeof OxDescriptionListTerm;
|
|
485
|
+
Value: typeof OxDescriptionListValue;
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
declare const OxDescriptionList_2: ({ children, className, ...domProps }: OxDescriptionListProps) => JSX.Element;
|
|
489
|
+
|
|
490
|
+
declare interface OxDescriptionListProps extends Omit<HTMLAttributes<HTMLDListElement>, 'children'> {
|
|
491
|
+
children: ReactNode;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
declare const OxDescriptionListTerm: ({ children, className, ...domProps }: OxDescriptionListTermProps) => JSX.Element;
|
|
495
|
+
|
|
496
|
+
declare interface OxDescriptionListTermProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> {
|
|
497
|
+
children: ReactNode;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
declare const OxDescriptionListValue: ({ children, className, ...domProps }: OxDescriptionListValueProps) => JSX.Element;
|
|
501
|
+
|
|
502
|
+
declare interface OxDescriptionListValueProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> {
|
|
503
|
+
children?: ReactNode;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
declare interface OxDescriptionProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
507
|
+
children: ReactNode;
|
|
508
|
+
disabled?: boolean;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
export declare const OxDialog: typeof OxDialog_2 & {
|
|
512
|
+
Body: typeof OxDialogBody;
|
|
513
|
+
Footer: typeof OxDialogFooter;
|
|
514
|
+
Header: typeof OxDialogHeader;
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
declare const OxDialog_2: ({ children, className, closeOnOutsideClick, isOpen, onClose, persistent, showCloseButton, size, ...domProps }: OxDialogProps) => ReactPortal | null;
|
|
518
|
+
|
|
519
|
+
declare const OxDialogBody: ({ children, className, ...domProps }: OxDialogBodyProps) => JSX.Element;
|
|
520
|
+
|
|
521
|
+
export declare interface OxDialogBodyProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
522
|
+
children: ReactNode;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
declare const OxDialogFooter: ({ children, className, ...domProps }: OxDialogFooterProps) => JSX.Element;
|
|
526
|
+
|
|
527
|
+
export declare interface OxDialogFooterProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
528
|
+
children: ReactNode;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
declare const OxDialogHeader: ({ children, className, ...domProps }: OxDialogHeaderProps) => JSX.Element;
|
|
532
|
+
|
|
533
|
+
export declare interface OxDialogHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
534
|
+
children: ReactNode;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
export declare interface OxDialogProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, 'children' | 'onClose'> {
|
|
538
|
+
children: ReactNode;
|
|
539
|
+
closeOnOutsideClick?: boolean;
|
|
540
|
+
isOpen: boolean;
|
|
541
|
+
onClose: () => void;
|
|
542
|
+
persistent?: boolean;
|
|
543
|
+
showCloseButton?: boolean;
|
|
544
|
+
size?: OxDialogSize;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
export declare type OxDialogSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
548
|
+
|
|
549
|
+
export declare const OxDrawer: typeof OxDrawer_2 & {
|
|
550
|
+
Body: typeof OxDrawerBody;
|
|
551
|
+
Content: typeof OxDrawerContent;
|
|
552
|
+
Footer: typeof OxDrawerFooter;
|
|
553
|
+
Header: typeof OxDrawerHeader;
|
|
554
|
+
Trigger: typeof OxDrawerTrigger;
|
|
555
|
+
};
|
|
556
|
+
|
|
557
|
+
declare const OxDrawer_2: ({ children, defaultOpen, onOpenChange, open: controlledOpen, }: OxDrawerProps) => JSX.Element;
|
|
558
|
+
|
|
559
|
+
declare const OxDrawerBody: ({ children, className, ...domProps }: OxDrawerBodyProps) => JSX.Element;
|
|
560
|
+
|
|
561
|
+
export declare interface OxDrawerBodyProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
562
|
+
children: ReactNode;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
declare const OxDrawerContent: ({ children, className, closeOnOutsideClick, side, ...domProps }: OxDrawerContentProps) => ReactPortal | null;
|
|
566
|
+
|
|
567
|
+
export declare interface OxDrawerContentProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
568
|
+
children: ReactNode;
|
|
569
|
+
closeOnOutsideClick?: boolean;
|
|
570
|
+
side?: DrawerSide;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
declare const OxDrawerFooter: ({ children, className, ...domProps }: OxDrawerFooterProps) => JSX.Element;
|
|
574
|
+
|
|
575
|
+
export declare interface OxDrawerFooterProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
576
|
+
children: ReactNode;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
declare const OxDrawerHeader: ({ children, className, ...domProps }: OxDrawerHeaderProps) => JSX.Element;
|
|
580
|
+
|
|
581
|
+
export declare interface OxDrawerHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
582
|
+
children: ReactNode;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
export declare interface OxDrawerProps {
|
|
586
|
+
children: ReactNode;
|
|
587
|
+
defaultOpen?: boolean;
|
|
588
|
+
onOpenChange?: (open: boolean) => void;
|
|
589
|
+
open?: boolean;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
declare const OxDrawerTrigger: ({ children, className, disabled, onClick, ...domProps }: OxDrawerTriggerProps) => JSX.Element;
|
|
593
|
+
|
|
594
|
+
export declare interface OxDrawerTriggerProps extends Omit<HTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
595
|
+
children: ReactNode;
|
|
596
|
+
disabled?: boolean;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
export declare const OxDropdown: typeof OxDropdown_2 & {
|
|
600
|
+
Body: typeof OxDropdownBody;
|
|
601
|
+
Button: typeof OxDropdownButton;
|
|
602
|
+
Footer: typeof OxDropdownFooter;
|
|
603
|
+
Header: typeof OxDropdownHeader;
|
|
604
|
+
Icon: typeof OxDropdownIcon;
|
|
605
|
+
Label: typeof OxDropdownLabel;
|
|
606
|
+
Link: typeof OxDropdownLink;
|
|
607
|
+
Separator: typeof OxDropdownSeparator;
|
|
608
|
+
Shortcut: typeof OxDropdownShortcut;
|
|
609
|
+
Trigger: typeof OxDropdownTrigger;
|
|
610
|
+
};
|
|
611
|
+
|
|
612
|
+
declare const OxDropdown_2: ({ align, children, className, defaultOpen, disabled, onOpenChange, open: controlledOpen, side, size, ...domProps }: OxDropdownProps) => JSX.Element;
|
|
613
|
+
|
|
614
|
+
export declare interface OxDropdownActionProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
615
|
+
children: ReactNode;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
declare const OxDropdownBody: ({ children, className, ...domProps }: OxDropdownBodyProps) => JSX.Element;
|
|
619
|
+
|
|
620
|
+
export declare interface OxDropdownBodyProps extends Omit<HTMLAttributes<HTMLUListElement>, 'children'> {
|
|
621
|
+
children: ReactNode;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
declare const OxDropdownButton: ({ children, className, disabled, onClick, ...domProps }: OxDropdownActionProps) => JSX.Element;
|
|
625
|
+
|
|
626
|
+
declare const OxDropdownFooter: ({ children, className, ...domProps }: OxDropdownFooterProps) => JSX.Element;
|
|
627
|
+
|
|
628
|
+
export declare interface OxDropdownFooterProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
629
|
+
children: ReactNode;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
declare const OxDropdownHeader: ({ children, className, ...domProps }: OxDropdownHeaderProps) => JSX.Element;
|
|
633
|
+
|
|
634
|
+
export declare interface OxDropdownHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
635
|
+
children: ReactNode;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
declare const OxDropdownIcon: ({ path, size: propSize, ...props }: OxDropdownIconProps) => JSX.Element;
|
|
639
|
+
|
|
640
|
+
export declare type OxDropdownIconProps = OxIconProps;
|
|
641
|
+
|
|
642
|
+
declare const OxDropdownLabel: ({ children, className, ...domProps }: OxDropdownLabelProps) => JSX.Element;
|
|
643
|
+
|
|
644
|
+
export declare interface OxDropdownLabelProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
645
|
+
children: ReactNode;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
declare const OxDropdownLink: ({ children, className, disabled, href, ...domProps }: OxDropdownLinkProps) => JSX.Element;
|
|
649
|
+
|
|
650
|
+
export declare interface OxDropdownLinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'children'> {
|
|
651
|
+
children: ReactNode;
|
|
652
|
+
disabled?: boolean;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
export declare interface OxDropdownProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
656
|
+
align?: OxFloatingAlign;
|
|
657
|
+
children: ReactNode;
|
|
658
|
+
defaultOpen?: boolean;
|
|
659
|
+
disabled?: boolean;
|
|
660
|
+
onOpenChange?: (open: boolean) => void;
|
|
661
|
+
open?: boolean;
|
|
662
|
+
side?: OxFloatingPosition;
|
|
663
|
+
size?: 'sm' | 'md';
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
declare const OxDropdownSeparator: ({ className, ...domProps }: OxDropdownSeparatorProps) => JSX.Element;
|
|
667
|
+
|
|
668
|
+
export declare type OxDropdownSeparatorProps = Omit<OxSeparatorProps, 'orientation' | 'vertical'>;
|
|
669
|
+
|
|
670
|
+
declare const OxDropdownShortcut: ({ children, className, ...domProps }: OxDropdownShortcutProps) => JSX.Element;
|
|
671
|
+
|
|
672
|
+
export declare interface OxDropdownShortcutProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
673
|
+
children: ReactNode;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
declare const OxDropdownTrigger: ({ animateIcon, asChild, children, className, disabled: propsDisabled, hideIcon, icon, outline, ...domProps }: OxDropdownTriggerProps) => JSX.Element;
|
|
677
|
+
|
|
678
|
+
export declare interface OxDropdownTriggerProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
679
|
+
animateIcon?: boolean;
|
|
680
|
+
asChild?: boolean;
|
|
681
|
+
children: ReactNode;
|
|
682
|
+
hideIcon?: boolean;
|
|
683
|
+
icon?: string;
|
|
684
|
+
outline?: boolean;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
export declare const OxError: ({ children, className, icon, ...domProps }: OxErrorProps) => JSX.Element | null;
|
|
688
|
+
|
|
689
|
+
declare interface OxErrorProps extends HTMLAttributes<HTMLDivElement> {
|
|
690
|
+
icon?: string;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
export declare const OxFileUpload: typeof OxFileUpload_2 & {
|
|
694
|
+
Area: typeof OxFileUploadArea;
|
|
695
|
+
Button: typeof OxFileUploadButton;
|
|
696
|
+
Overlay: typeof OxFileUploadOverlay;
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
declare const OxFileUpload_2: ({ accept, children, className, disabled, maxFiles, maxSize, minSize, multiple, onError, onFileSelect, ...domProps }: OxFileUploadProps) => JSX.Element;
|
|
700
|
+
|
|
701
|
+
declare const OxFileUploadArea: ({ children, className, ...domProps }: OxFileUploadAreaProps) => JSX.Element;
|
|
702
|
+
|
|
703
|
+
export declare interface OxFileUploadAreaProps extends HTMLAttributes<HTMLDivElement> {
|
|
704
|
+
children?: ReactNode;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
declare const OxFileUploadButton: ({ children, className, size, variant, ...domProps }: OxFileUploadButtonProps) => JSX.Element;
|
|
708
|
+
|
|
709
|
+
export declare interface OxFileUploadButtonProps extends Omit<HTMLAttributes<HTMLButtonElement>, 'onClick'> {
|
|
710
|
+
children?: ReactNode;
|
|
711
|
+
size?: 'sm' | 'md';
|
|
712
|
+
variant?: 'primary' | 'secondary' | 'ghost' | 'link' | 'danger';
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
declare const OxFileUploadOverlay: ({ children, className, ...domProps }: OxFileUploadOverlayProps) => JSX.Element;
|
|
716
|
+
|
|
717
|
+
export declare interface OxFileUploadOverlayProps extends HTMLAttributes<HTMLDivElement> {
|
|
718
|
+
children: ReactNode;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
export declare interface OxFileUploadProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onError'> {
|
|
722
|
+
accept?: string[];
|
|
723
|
+
children: ReactNode;
|
|
724
|
+
disabled?: boolean;
|
|
725
|
+
maxFiles?: number;
|
|
726
|
+
maxSize?: string;
|
|
727
|
+
minSize?: string;
|
|
728
|
+
multiple?: boolean;
|
|
729
|
+
onError?: (error: string) => void;
|
|
730
|
+
onFileSelect?: (files: File[]) => void;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
export declare const OxFloating: ({ align, animationDuration, ariaHaspopup, asChild, children, className, content, contentClassName, contentRole, contentStyle, disabled, hoverDelay, id: propId, offset, onOpenChange, open: controlledOpen, portal, position, trigger, useAriaControls, }: OxFloatingProps) => JSX.Element;
|
|
734
|
+
|
|
735
|
+
export declare type OxFloatingAlign = 'start' | 'center' | 'end';
|
|
736
|
+
|
|
737
|
+
export declare type OxFloatingPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
738
|
+
|
|
739
|
+
export declare interface OxFloatingProps {
|
|
740
|
+
align?: OxFloatingAlign;
|
|
741
|
+
animationDuration?: number;
|
|
742
|
+
ariaHaspopup?: 'menu' | 'dialog' | 'listbox' | 'tree' | 'grid' | true;
|
|
743
|
+
asChild?: boolean;
|
|
744
|
+
children: ReactNode;
|
|
745
|
+
className?: string;
|
|
746
|
+
content: ReactNode;
|
|
747
|
+
contentClassName?: string;
|
|
748
|
+
contentRole?: 'tooltip' | 'menu' | 'dialog' | 'listbox' | undefined;
|
|
749
|
+
contentStyle?: CSSProperties;
|
|
750
|
+
disabled?: boolean;
|
|
751
|
+
hoverDelay?: number;
|
|
752
|
+
id?: string;
|
|
753
|
+
offset?: number;
|
|
754
|
+
onOpenChange?: (open: boolean) => void;
|
|
755
|
+
open?: boolean;
|
|
756
|
+
portal?: boolean;
|
|
757
|
+
position?: OxFloatingPosition;
|
|
758
|
+
trigger?: OxFloatingTrigger;
|
|
759
|
+
useAriaControls?: boolean;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
export declare type OxFloatingTrigger = 'hover' | 'click' | 'manual' | 'focus';
|
|
763
|
+
|
|
764
|
+
export declare const OxForm: typeof OxForm_2 & {
|
|
765
|
+
Field: typeof FormField;
|
|
766
|
+
Fields: typeof FormFields;
|
|
767
|
+
Group: typeof FormGroup;
|
|
768
|
+
};
|
|
769
|
+
|
|
770
|
+
declare const OxForm_2: ({ children, className, fullWidth, noValidate, ...domProps }: OxFormProps) => JSX.Element;
|
|
771
|
+
|
|
772
|
+
export declare interface OxFormProps extends Omit<FormHTMLAttributes<HTMLFormElement>, 'children'> {
|
|
773
|
+
children: ReactNode;
|
|
774
|
+
fullWidth?: boolean;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
export declare const OxHeading: ({ as, children, className, level, ...domProps }: OxHeadingProps) => DetailedReactHTMLElement< {
|
|
778
|
+
role?: string | undefined;
|
|
779
|
+
"aria-level"?: number | undefined;
|
|
780
|
+
slot?: string | undefined | undefined;
|
|
781
|
+
style?: CSSProperties | undefined;
|
|
782
|
+
title?: string | undefined | undefined;
|
|
783
|
+
hidden?: boolean | undefined | undefined;
|
|
784
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
785
|
+
dir?: string | undefined | undefined;
|
|
786
|
+
defaultChecked?: boolean | undefined | undefined;
|
|
787
|
+
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
788
|
+
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
789
|
+
accessKey?: string | undefined | undefined;
|
|
790
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
791
|
+
autoFocus?: boolean | undefined | undefined;
|
|
792
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
793
|
+
contextMenu?: string | undefined | undefined;
|
|
794
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
795
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
796
|
+
id?: string | undefined | undefined;
|
|
797
|
+
lang?: string | undefined | undefined;
|
|
798
|
+
nonce?: string | undefined | undefined;
|
|
799
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
800
|
+
tabIndex?: number | undefined | undefined;
|
|
801
|
+
translate?: "yes" | "no" | undefined | undefined;
|
|
802
|
+
radioGroup?: string | undefined | undefined;
|
|
803
|
+
about?: string | undefined | undefined;
|
|
804
|
+
content?: string | undefined | undefined;
|
|
805
|
+
datatype?: string | undefined | undefined;
|
|
806
|
+
inlist?: any;
|
|
807
|
+
prefix?: string | undefined | undefined;
|
|
808
|
+
property?: string | undefined | undefined;
|
|
809
|
+
rel?: string | undefined | undefined;
|
|
810
|
+
resource?: string | undefined | undefined;
|
|
811
|
+
rev?: string | undefined | undefined;
|
|
812
|
+
typeof?: string | undefined | undefined;
|
|
813
|
+
vocab?: string | undefined | undefined;
|
|
814
|
+
autoCorrect?: string | undefined | undefined;
|
|
815
|
+
autoSave?: string | undefined | undefined;
|
|
816
|
+
color?: string | undefined | undefined;
|
|
817
|
+
itemProp?: string | undefined | undefined;
|
|
818
|
+
itemScope?: boolean | undefined | undefined;
|
|
819
|
+
itemType?: string | undefined | undefined;
|
|
820
|
+
itemID?: string | undefined | undefined;
|
|
821
|
+
itemRef?: string | undefined | undefined;
|
|
822
|
+
results?: number | undefined | undefined;
|
|
823
|
+
security?: string | undefined | undefined;
|
|
824
|
+
unselectable?: "on" | "off" | undefined | undefined;
|
|
825
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
826
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
827
|
+
popoverTarget?: string | undefined | undefined;
|
|
828
|
+
inert?: boolean | undefined | undefined;
|
|
829
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
830
|
+
is?: string | undefined | undefined;
|
|
831
|
+
exportparts?: string | undefined | undefined;
|
|
832
|
+
part?: string | undefined | undefined;
|
|
833
|
+
"aria-activedescendant"?: string | undefined | undefined;
|
|
834
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
835
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
836
|
+
"aria-braillelabel"?: string | undefined | undefined;
|
|
837
|
+
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
838
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
839
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
840
|
+
"aria-colcount"?: number | undefined | undefined;
|
|
841
|
+
"aria-colindex"?: number | undefined | undefined;
|
|
842
|
+
"aria-colindextext"?: string | undefined | undefined;
|
|
843
|
+
"aria-colspan"?: number | undefined | undefined;
|
|
844
|
+
"aria-controls"?: string | undefined | undefined;
|
|
845
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
846
|
+
"aria-describedby"?: string | undefined | undefined;
|
|
847
|
+
"aria-description"?: string | undefined | undefined;
|
|
848
|
+
"aria-details"?: string | undefined | undefined;
|
|
849
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
850
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
851
|
+
"aria-errormessage"?: string | undefined | undefined;
|
|
852
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
853
|
+
"aria-flowto"?: string | undefined | undefined;
|
|
854
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
855
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
856
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
857
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
858
|
+
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
859
|
+
"aria-label"?: string | undefined | undefined;
|
|
860
|
+
"aria-labelledby"?: string | undefined | undefined;
|
|
861
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
862
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
863
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
864
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
865
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
866
|
+
"aria-owns"?: string | undefined | undefined;
|
|
867
|
+
"aria-placeholder"?: string | undefined | undefined;
|
|
868
|
+
"aria-posinset"?: number | undefined | undefined;
|
|
869
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
870
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
871
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
872
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
873
|
+
"aria-roledescription"?: string | undefined | undefined;
|
|
874
|
+
"aria-rowcount"?: number | undefined | undefined;
|
|
875
|
+
"aria-rowindex"?: number | undefined | undefined;
|
|
876
|
+
"aria-rowindextext"?: string | undefined | undefined;
|
|
877
|
+
"aria-rowspan"?: number | undefined | undefined;
|
|
878
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
879
|
+
"aria-setsize"?: number | undefined | undefined;
|
|
880
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
881
|
+
"aria-valuemax"?: number | undefined | undefined;
|
|
882
|
+
"aria-valuemin"?: number | undefined | undefined;
|
|
883
|
+
"aria-valuenow"?: number | undefined | undefined;
|
|
884
|
+
"aria-valuetext"?: string | undefined | undefined;
|
|
885
|
+
dangerouslySetInnerHTML?: {
|
|
886
|
+
__html: string | TrustedHTML;
|
|
887
|
+
} | undefined | undefined;
|
|
888
|
+
onCopy?: ClipboardEventHandler<HTMLElement> | undefined;
|
|
889
|
+
onCopyCapture?: ClipboardEventHandler<HTMLElement> | undefined;
|
|
890
|
+
onCut?: ClipboardEventHandler<HTMLElement> | undefined;
|
|
891
|
+
onCutCapture?: ClipboardEventHandler<HTMLElement> | undefined;
|
|
892
|
+
onPaste?: ClipboardEventHandler<HTMLElement> | undefined;
|
|
893
|
+
onPasteCapture?: ClipboardEventHandler<HTMLElement> | undefined;
|
|
894
|
+
onCompositionEnd?: CompositionEventHandler<HTMLElement> | undefined;
|
|
895
|
+
onCompositionEndCapture?: CompositionEventHandler<HTMLElement> | undefined;
|
|
896
|
+
onCompositionStart?: CompositionEventHandler<HTMLElement> | undefined;
|
|
897
|
+
onCompositionStartCapture?: CompositionEventHandler<HTMLElement> | undefined;
|
|
898
|
+
onCompositionUpdate?: CompositionEventHandler<HTMLElement> | undefined;
|
|
899
|
+
onCompositionUpdateCapture?: CompositionEventHandler<HTMLElement> | undefined;
|
|
900
|
+
onFocus?: FocusEventHandler<HTMLElement> | undefined;
|
|
901
|
+
onFocusCapture?: FocusEventHandler<HTMLElement> | undefined;
|
|
902
|
+
onBlur?: FocusEventHandler<HTMLElement> | undefined;
|
|
903
|
+
onBlurCapture?: FocusEventHandler<HTMLElement> | undefined;
|
|
904
|
+
onChange?: FormEventHandler<HTMLElement> | undefined;
|
|
905
|
+
onChangeCapture?: FormEventHandler<HTMLElement> | undefined;
|
|
906
|
+
onBeforeInput?: InputEventHandler<HTMLElement> | undefined;
|
|
907
|
+
onBeforeInputCapture?: FormEventHandler<HTMLElement> | undefined;
|
|
908
|
+
onInput?: FormEventHandler<HTMLElement> | undefined;
|
|
909
|
+
onInputCapture?: FormEventHandler<HTMLElement> | undefined;
|
|
910
|
+
onReset?: FormEventHandler<HTMLElement> | undefined;
|
|
911
|
+
onResetCapture?: FormEventHandler<HTMLElement> | undefined;
|
|
912
|
+
onSubmit?: FormEventHandler<HTMLElement> | undefined;
|
|
913
|
+
onSubmitCapture?: FormEventHandler<HTMLElement> | undefined;
|
|
914
|
+
onInvalid?: FormEventHandler<HTMLElement> | undefined;
|
|
915
|
+
onInvalidCapture?: FormEventHandler<HTMLElement> | undefined;
|
|
916
|
+
onLoad?: ReactEventHandler<HTMLElement> | undefined;
|
|
917
|
+
onLoadCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
918
|
+
onError?: ReactEventHandler<HTMLElement> | undefined;
|
|
919
|
+
onErrorCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
920
|
+
onKeyDown?: KeyboardEventHandler<HTMLElement> | undefined;
|
|
921
|
+
onKeyDownCapture?: KeyboardEventHandler<HTMLElement> | undefined;
|
|
922
|
+
onKeyPress?: KeyboardEventHandler<HTMLElement> | undefined;
|
|
923
|
+
onKeyPressCapture?: KeyboardEventHandler<HTMLElement> | undefined;
|
|
924
|
+
onKeyUp?: KeyboardEventHandler<HTMLElement> | undefined;
|
|
925
|
+
onKeyUpCapture?: KeyboardEventHandler<HTMLElement> | undefined;
|
|
926
|
+
onAbort?: ReactEventHandler<HTMLElement> | undefined;
|
|
927
|
+
onAbortCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
928
|
+
onCanPlay?: ReactEventHandler<HTMLElement> | undefined;
|
|
929
|
+
onCanPlayCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
930
|
+
onCanPlayThrough?: ReactEventHandler<HTMLElement> | undefined;
|
|
931
|
+
onCanPlayThroughCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
932
|
+
onDurationChange?: ReactEventHandler<HTMLElement> | undefined;
|
|
933
|
+
onDurationChangeCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
934
|
+
onEmptied?: ReactEventHandler<HTMLElement> | undefined;
|
|
935
|
+
onEmptiedCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
936
|
+
onEncrypted?: ReactEventHandler<HTMLElement> | undefined;
|
|
937
|
+
onEncryptedCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
938
|
+
onEnded?: ReactEventHandler<HTMLElement> | undefined;
|
|
939
|
+
onEndedCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
940
|
+
onLoadedData?: ReactEventHandler<HTMLElement> | undefined;
|
|
941
|
+
onLoadedDataCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
942
|
+
onLoadedMetadata?: ReactEventHandler<HTMLElement> | undefined;
|
|
943
|
+
onLoadedMetadataCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
944
|
+
onLoadStart?: ReactEventHandler<HTMLElement> | undefined;
|
|
945
|
+
onLoadStartCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
946
|
+
onPause?: ReactEventHandler<HTMLElement> | undefined;
|
|
947
|
+
onPauseCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
948
|
+
onPlay?: ReactEventHandler<HTMLElement> | undefined;
|
|
949
|
+
onPlayCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
950
|
+
onPlaying?: ReactEventHandler<HTMLElement> | undefined;
|
|
951
|
+
onPlayingCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
952
|
+
onProgress?: ReactEventHandler<HTMLElement> | undefined;
|
|
953
|
+
onProgressCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
954
|
+
onRateChange?: ReactEventHandler<HTMLElement> | undefined;
|
|
955
|
+
onRateChangeCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
956
|
+
onSeeked?: ReactEventHandler<HTMLElement> | undefined;
|
|
957
|
+
onSeekedCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
958
|
+
onSeeking?: ReactEventHandler<HTMLElement> | undefined;
|
|
959
|
+
onSeekingCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
960
|
+
onStalled?: ReactEventHandler<HTMLElement> | undefined;
|
|
961
|
+
onStalledCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
962
|
+
onSuspend?: ReactEventHandler<HTMLElement> | undefined;
|
|
963
|
+
onSuspendCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
964
|
+
onTimeUpdate?: ReactEventHandler<HTMLElement> | undefined;
|
|
965
|
+
onTimeUpdateCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
966
|
+
onVolumeChange?: ReactEventHandler<HTMLElement> | undefined;
|
|
967
|
+
onVolumeChangeCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
968
|
+
onWaiting?: ReactEventHandler<HTMLElement> | undefined;
|
|
969
|
+
onWaitingCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
970
|
+
onAuxClick?: MouseEventHandler<HTMLElement> | undefined;
|
|
971
|
+
onAuxClickCapture?: MouseEventHandler<HTMLElement> | undefined;
|
|
972
|
+
onClick?: MouseEventHandler<HTMLElement> | undefined;
|
|
973
|
+
onClickCapture?: MouseEventHandler<HTMLElement> | undefined;
|
|
974
|
+
onContextMenu?: MouseEventHandler<HTMLElement> | undefined;
|
|
975
|
+
onContextMenuCapture?: MouseEventHandler<HTMLElement> | undefined;
|
|
976
|
+
onDoubleClick?: MouseEventHandler<HTMLElement> | undefined;
|
|
977
|
+
onDoubleClickCapture?: MouseEventHandler<HTMLElement> | undefined;
|
|
978
|
+
onDrag?: DragEventHandler<HTMLElement> | undefined;
|
|
979
|
+
onDragCapture?: DragEventHandler<HTMLElement> | undefined;
|
|
980
|
+
onDragEnd?: DragEventHandler<HTMLElement> | undefined;
|
|
981
|
+
onDragEndCapture?: DragEventHandler<HTMLElement> | undefined;
|
|
982
|
+
onDragEnter?: DragEventHandler<HTMLElement> | undefined;
|
|
983
|
+
onDragEnterCapture?: DragEventHandler<HTMLElement> | undefined;
|
|
984
|
+
onDragExit?: DragEventHandler<HTMLElement> | undefined;
|
|
985
|
+
onDragExitCapture?: DragEventHandler<HTMLElement> | undefined;
|
|
986
|
+
onDragLeave?: DragEventHandler<HTMLElement> | undefined;
|
|
987
|
+
onDragLeaveCapture?: DragEventHandler<HTMLElement> | undefined;
|
|
988
|
+
onDragOver?: DragEventHandler<HTMLElement> | undefined;
|
|
989
|
+
onDragOverCapture?: DragEventHandler<HTMLElement> | undefined;
|
|
990
|
+
onDragStart?: DragEventHandler<HTMLElement> | undefined;
|
|
991
|
+
onDragStartCapture?: DragEventHandler<HTMLElement> | undefined;
|
|
992
|
+
onDrop?: DragEventHandler<HTMLElement> | undefined;
|
|
993
|
+
onDropCapture?: DragEventHandler<HTMLElement> | undefined;
|
|
994
|
+
onMouseDown?: MouseEventHandler<HTMLElement> | undefined;
|
|
995
|
+
onMouseDownCapture?: MouseEventHandler<HTMLElement> | undefined;
|
|
996
|
+
onMouseEnter?: MouseEventHandler<HTMLElement> | undefined;
|
|
997
|
+
onMouseLeave?: MouseEventHandler<HTMLElement> | undefined;
|
|
998
|
+
onMouseMove?: MouseEventHandler<HTMLElement> | undefined;
|
|
999
|
+
onMouseMoveCapture?: MouseEventHandler<HTMLElement> | undefined;
|
|
1000
|
+
onMouseOut?: MouseEventHandler<HTMLElement> | undefined;
|
|
1001
|
+
onMouseOutCapture?: MouseEventHandler<HTMLElement> | undefined;
|
|
1002
|
+
onMouseOver?: MouseEventHandler<HTMLElement> | undefined;
|
|
1003
|
+
onMouseOverCapture?: MouseEventHandler<HTMLElement> | undefined;
|
|
1004
|
+
onMouseUp?: MouseEventHandler<HTMLElement> | undefined;
|
|
1005
|
+
onMouseUpCapture?: MouseEventHandler<HTMLElement> | undefined;
|
|
1006
|
+
onSelect?: ReactEventHandler<HTMLElement> | undefined;
|
|
1007
|
+
onSelectCapture?: ReactEventHandler<HTMLElement> | undefined;
|
|
1008
|
+
onTouchCancel?: TouchEventHandler<HTMLElement> | undefined;
|
|
1009
|
+
onTouchCancelCapture?: TouchEventHandler<HTMLElement> | undefined;
|
|
1010
|
+
onTouchEnd?: TouchEventHandler<HTMLElement> | undefined;
|
|
1011
|
+
onTouchEndCapture?: TouchEventHandler<HTMLElement> | undefined;
|
|
1012
|
+
onTouchMove?: TouchEventHandler<HTMLElement> | undefined;
|
|
1013
|
+
onTouchMoveCapture?: TouchEventHandler<HTMLElement> | undefined;
|
|
1014
|
+
onTouchStart?: TouchEventHandler<HTMLElement> | undefined;
|
|
1015
|
+
onTouchStartCapture?: TouchEventHandler<HTMLElement> | undefined;
|
|
1016
|
+
onPointerDown?: PointerEventHandler<HTMLElement> | undefined;
|
|
1017
|
+
onPointerDownCapture?: PointerEventHandler<HTMLElement> | undefined;
|
|
1018
|
+
onPointerMove?: PointerEventHandler<HTMLElement> | undefined;
|
|
1019
|
+
onPointerMoveCapture?: PointerEventHandler<HTMLElement> | undefined;
|
|
1020
|
+
onPointerUp?: PointerEventHandler<HTMLElement> | undefined;
|
|
1021
|
+
onPointerUpCapture?: PointerEventHandler<HTMLElement> | undefined;
|
|
1022
|
+
onPointerCancel?: PointerEventHandler<HTMLElement> | undefined;
|
|
1023
|
+
onPointerCancelCapture?: PointerEventHandler<HTMLElement> | undefined;
|
|
1024
|
+
onPointerEnter?: PointerEventHandler<HTMLElement> | undefined;
|
|
1025
|
+
onPointerLeave?: PointerEventHandler<HTMLElement> | undefined;
|
|
1026
|
+
onPointerOver?: PointerEventHandler<HTMLElement> | undefined;
|
|
1027
|
+
onPointerOverCapture?: PointerEventHandler<HTMLElement> | undefined;
|
|
1028
|
+
onPointerOut?: PointerEventHandler<HTMLElement> | undefined;
|
|
1029
|
+
onPointerOutCapture?: PointerEventHandler<HTMLElement> | undefined;
|
|
1030
|
+
onGotPointerCapture?: PointerEventHandler<HTMLElement> | undefined;
|
|
1031
|
+
onGotPointerCaptureCapture?: PointerEventHandler<HTMLElement> | undefined;
|
|
1032
|
+
onLostPointerCapture?: PointerEventHandler<HTMLElement> | undefined;
|
|
1033
|
+
onLostPointerCaptureCapture?: PointerEventHandler<HTMLElement> | undefined;
|
|
1034
|
+
onScroll?: UIEventHandler<HTMLElement> | undefined;
|
|
1035
|
+
onScrollCapture?: UIEventHandler<HTMLElement> | undefined;
|
|
1036
|
+
onScrollEnd?: UIEventHandler<HTMLElement> | undefined;
|
|
1037
|
+
onScrollEndCapture?: UIEventHandler<HTMLElement> | undefined;
|
|
1038
|
+
onWheel?: WheelEventHandler<HTMLElement> | undefined;
|
|
1039
|
+
onWheelCapture?: WheelEventHandler<HTMLElement> | undefined;
|
|
1040
|
+
onAnimationStart?: AnimationEventHandler<HTMLElement> | undefined;
|
|
1041
|
+
onAnimationStartCapture?: AnimationEventHandler<HTMLElement> | undefined;
|
|
1042
|
+
onAnimationEnd?: AnimationEventHandler<HTMLElement> | undefined;
|
|
1043
|
+
onAnimationEndCapture?: AnimationEventHandler<HTMLElement> | undefined;
|
|
1044
|
+
onAnimationIteration?: AnimationEventHandler<HTMLElement> | undefined;
|
|
1045
|
+
onAnimationIterationCapture?: AnimationEventHandler<HTMLElement> | undefined;
|
|
1046
|
+
onToggle?: ToggleEventHandler<HTMLElement> | undefined;
|
|
1047
|
+
onBeforeToggle?: ToggleEventHandler<HTMLElement> | undefined;
|
|
1048
|
+
onTransitionCancel?: TransitionEventHandler<HTMLElement> | undefined;
|
|
1049
|
+
onTransitionCancelCapture?: TransitionEventHandler<HTMLElement> | undefined;
|
|
1050
|
+
onTransitionEnd?: TransitionEventHandler<HTMLElement> | undefined;
|
|
1051
|
+
onTransitionEndCapture?: TransitionEventHandler<HTMLElement> | undefined;
|
|
1052
|
+
onTransitionRun?: TransitionEventHandler<HTMLElement> | undefined;
|
|
1053
|
+
onTransitionRunCapture?: TransitionEventHandler<HTMLElement> | undefined;
|
|
1054
|
+
onTransitionStart?: TransitionEventHandler<HTMLElement> | undefined;
|
|
1055
|
+
onTransitionStartCapture?: TransitionEventHandler<HTMLElement> | undefined;
|
|
1056
|
+
className: string;
|
|
1057
|
+
'data-ox-slot': string;
|
|
1058
|
+
}, HTMLElement>;
|
|
1059
|
+
|
|
1060
|
+
declare interface OxHeadingProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> {
|
|
1061
|
+
as?: HeadingElement;
|
|
1062
|
+
children: ReactNode;
|
|
1063
|
+
level?: HeadingLevel;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
export declare const OxIcon: ({ className, path, placeholder, size, ...props }: OxIconProps) => JSX.Element;
|
|
1067
|
+
|
|
1068
|
+
export declare interface OxIconProps extends Omit<IconProps, 'path'> {
|
|
1069
|
+
path?: string;
|
|
1070
|
+
placeholder?: boolean;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
export declare const OxJsonField: typeof OxJsonField_2 & {
|
|
1074
|
+
Node: typeof OxJsonNode;
|
|
1075
|
+
};
|
|
1076
|
+
|
|
1077
|
+
declare const OxJsonField_2: ({ className, value, ...domProps }: OxJsonFieldProps) => JSX.Element;
|
|
1078
|
+
|
|
1079
|
+
export declare interface OxJsonFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1080
|
+
value: string | OxJsonValue;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
declare const OxJsonNode: ({ data, level }: OxJsonNodeProps) => JSX.Element;
|
|
1084
|
+
|
|
1085
|
+
export declare interface OxJsonNodeProps {
|
|
1086
|
+
data: OxJsonValue;
|
|
1087
|
+
level: number;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
export declare type OxJsonValue = string | number | boolean | null | undefined | OxJsonValue[] | {
|
|
1091
|
+
[key: string]: OxJsonValue;
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
export declare const OxLabel: ({ children, className, disabled, htmlFor, required, ...domProps }: OxLabelProps) => JSX.Element;
|
|
1095
|
+
|
|
1096
|
+
declare interface OxLabelProps extends Omit<LabelHTMLAttributes<HTMLLabelElement>, 'children'> {
|
|
1097
|
+
children: ReactNode;
|
|
1098
|
+
disabled?: boolean;
|
|
1099
|
+
required?: boolean;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
export declare const OxLegend: ({ children, className, disabled, required, ...domProps }: OxLegendProps) => JSX.Element;
|
|
1103
|
+
|
|
1104
|
+
declare interface OxLegendProps extends Omit<HTMLAttributes<HTMLLegendElement>, 'children'> {
|
|
1105
|
+
children: ReactNode;
|
|
1106
|
+
disabled?: boolean;
|
|
1107
|
+
required?: boolean;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
export declare const OxLink: ({ children, className, disabled, href, size, variant, ...domProps }: OxLinkProps) => JSX.Element;
|
|
1111
|
+
|
|
1112
|
+
export declare interface OxLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
1113
|
+
disabled?: boolean;
|
|
1114
|
+
size?: 'sm' | 'md';
|
|
1115
|
+
variant?: 'primary' | 'secondary' | 'ghost' | 'link' | 'danger';
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
export declare interface OxNotificationItemProps {
|
|
1119
|
+
icon?: string;
|
|
1120
|
+
id: string;
|
|
1121
|
+
img?: string;
|
|
1122
|
+
message?: string;
|
|
1123
|
+
read: boolean;
|
|
1124
|
+
timestamp: Date;
|
|
1125
|
+
title: string;
|
|
1126
|
+
type?: 'default' | 'info' | 'success' | 'warning' | 'error';
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
export declare const OxNotifications: typeof OxNotifications_2 & {
|
|
1130
|
+
Body: typeof OxNotificationsBody;
|
|
1131
|
+
Button: typeof OxNotificationsButton;
|
|
1132
|
+
Link: typeof OxNotificationsLink;
|
|
1133
|
+
Trigger: typeof OxNotificationsTrigger;
|
|
1134
|
+
};
|
|
1135
|
+
|
|
1136
|
+
declare const OxNotifications_2: ({ children, disabled, emptyMessage, items, onItemClick, onMarkAllRead, unreadCount, ...domProps }: OxNotificationsProps) => JSX.Element;
|
|
1137
|
+
|
|
1138
|
+
declare const OxNotificationsBody: ({ children, className, ...domProps }: OxNotificationsBodyProps) => JSX.Element;
|
|
1139
|
+
|
|
1140
|
+
export declare interface OxNotificationsBodyProps extends Omit<HTMLAttributes<HTMLUListElement>, 'children'> {
|
|
1141
|
+
children?: ReactNode;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
declare const OxNotificationsButton: ({ children, className, icon, img, message, timestamp, title, type, unread, ...domProps }: OxNotificationsButtonProps) => JSX.Element;
|
|
1145
|
+
|
|
1146
|
+
export declare interface OxNotificationsButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'type' | 'onClick'>, BaseNotificationItemProps {
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
export declare type OxNotificationsIconProps = OxIconProps;
|
|
1150
|
+
|
|
1151
|
+
declare const OxNotificationsLink: ({ children, className, href, icon, img, message, timestamp, title, type, unread, ...domProps }: OxNotificationsLinkProps) => JSX.Element;
|
|
1152
|
+
|
|
1153
|
+
export declare interface OxNotificationsLinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'children' | 'type' | 'onClick'>, BaseNotificationItemProps {
|
|
1154
|
+
href: string;
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
export declare interface OxNotificationsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1158
|
+
children?: ReactNode;
|
|
1159
|
+
disabled?: boolean;
|
|
1160
|
+
emptyMessage?: string;
|
|
1161
|
+
items?: OxNotificationItemProps[];
|
|
1162
|
+
onItemClick?: (item: OxNotificationItemProps) => void;
|
|
1163
|
+
onMarkAllRead?: () => void;
|
|
1164
|
+
unreadCount?: number;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
declare const OxNotificationsTrigger: ({ children, className, customIcon, unreadCount: propUnreadCount, ...domProps }: OxNotificationsTriggerProps) => JSX.Element;
|
|
1168
|
+
|
|
1169
|
+
export declare interface OxNotificationsTriggerProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
1170
|
+
children?: ReactNode;
|
|
1171
|
+
customIcon?: string;
|
|
1172
|
+
unreadCount?: number;
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
declare const OxNumberButton: (props: OxNumberInputButton) => JSX.Element;
|
|
1176
|
+
|
|
1177
|
+
declare const OxNumberContainer: ({ children, defaultValue, disabled, error, locale, max, maximumFractionDigits, min, minimumFractionDigits, onChange, required, showValidationTooltip, size, steps, useGrouping, value, ...domProps }: OxNumberContainerProps) => JSX.Element;
|
|
1178
|
+
|
|
1179
|
+
export declare interface OxNumberContainerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
1180
|
+
customValidationMessage?: string;
|
|
1181
|
+
defaultValue?: number;
|
|
1182
|
+
disabled?: boolean;
|
|
1183
|
+
error?: boolean;
|
|
1184
|
+
locale?: string;
|
|
1185
|
+
max?: number;
|
|
1186
|
+
maximumFractionDigits?: number;
|
|
1187
|
+
min?: number;
|
|
1188
|
+
minimumFractionDigits?: number;
|
|
1189
|
+
onChange?: (value: number | undefined) => void;
|
|
1190
|
+
required?: boolean;
|
|
1191
|
+
showValidation?: boolean;
|
|
1192
|
+
showValidationTooltip?: boolean;
|
|
1193
|
+
size?: 'sm' | 'md';
|
|
1194
|
+
steps?: number;
|
|
1195
|
+
useGrouping?: boolean;
|
|
1196
|
+
value?: number;
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
declare const OxNumberDecrementButton: () => JSX.Element;
|
|
1200
|
+
|
|
1201
|
+
declare const OxNumberIcon: (props: OxNumberInputIcon) => JSX.Element;
|
|
1202
|
+
|
|
1203
|
+
declare const OxNumberIncrementButton: () => JSX.Element;
|
|
1204
|
+
|
|
1205
|
+
export declare const OxNumberInput: typeof OxNumberInput_2 & {
|
|
1206
|
+
Button: typeof OxNumberButton;
|
|
1207
|
+
Container: typeof OxNumberContainer;
|
|
1208
|
+
DecrementButton: typeof OxNumberDecrementButton;
|
|
1209
|
+
Icon: typeof OxNumberIcon;
|
|
1210
|
+
IncrementButton: typeof OxNumberIncrementButton;
|
|
1211
|
+
};
|
|
1212
|
+
|
|
1213
|
+
declare const OxNumberInput_2: ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, className, ...domProps }: OxNumberInputProps) => JSX.Element;
|
|
1214
|
+
|
|
1215
|
+
export declare type OxNumberInputButton = BaseInputButtonProps;
|
|
1216
|
+
|
|
1217
|
+
export declare type OxNumberInputIcon = BaseInputIconProps;
|
|
1218
|
+
|
|
1219
|
+
export declare interface OxNumberInputProps {
|
|
1220
|
+
'aria-label'?: string;
|
|
1221
|
+
'aria-labelledby'?: string;
|
|
1222
|
+
className?: string;
|
|
1223
|
+
id?: string;
|
|
1224
|
+
placeholder?: string;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
export declare const OxOtpInput: ({ className, disabled, error, length, onComplete, onValueChange, placeholder, size, type, }: OxOtpInputProps) => JSX.Element;
|
|
1228
|
+
|
|
1229
|
+
export declare interface OxOtpInputProps {
|
|
1230
|
+
className?: string;
|
|
1231
|
+
disabled?: boolean;
|
|
1232
|
+
error?: boolean;
|
|
1233
|
+
length?: number;
|
|
1234
|
+
onComplete?: (value: string) => void;
|
|
1235
|
+
onValueChange?: (value: string) => void;
|
|
1236
|
+
placeholder?: string;
|
|
1237
|
+
size?: OxOtpInputSize;
|
|
1238
|
+
type?: OxOtpInputType;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
export declare type OxOtpInputSize = 'sm' | 'md';
|
|
1242
|
+
|
|
1243
|
+
export declare type OxOtpInputType = 'numeric' | 'alphanumeric' | 'text';
|
|
1244
|
+
|
|
1245
|
+
export declare const OxPagination: typeof OxPagination_2 & {
|
|
1246
|
+
Ellipsis: typeof OxPaginationEllipsis;
|
|
1247
|
+
Link: typeof OxPaginationLink;
|
|
1248
|
+
Next: typeof OxPaginationNext;
|
|
1249
|
+
Previous: typeof OxPaginationPrevious;
|
|
1250
|
+
};
|
|
1251
|
+
|
|
1252
|
+
declare const OxPagination_2: ({ children, className, ...domProps }: OxPaginationProps) => JSX.Element;
|
|
1253
|
+
|
|
1254
|
+
declare const OxPaginationEllipsis: ({ className, size, ...domProps }: OxPaginationEllipsisProps) => JSX.Element;
|
|
1255
|
+
|
|
1256
|
+
export declare interface OxPaginationEllipsisProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
1257
|
+
size?: OxPaginationSize;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
export declare interface OxPaginationItemProps extends Omit<HTMLAttributes<HTMLLIElement>, 'children'> {
|
|
1261
|
+
children: ReactNode;
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
declare const OxPaginationLink: ({ className, disabled, isActive, onClick, page, size, ...domProps }: OxPaginationLinkProps) => JSX.Element;
|
|
1265
|
+
|
|
1266
|
+
export declare interface OxPaginationLinkProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'children'> {
|
|
1267
|
+
isActive?: boolean;
|
|
1268
|
+
onClick: (page: number) => void;
|
|
1269
|
+
page: number;
|
|
1270
|
+
size?: OxPaginationSize;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
declare const OxPaginationNext: ({ className, disabled, onClick, short, size, ...domProps }: OxPaginationNextProps) => JSX.Element;
|
|
1274
|
+
|
|
1275
|
+
export declare interface OxPaginationNextProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'children'> {
|
|
1276
|
+
onClick: () => void;
|
|
1277
|
+
short?: boolean;
|
|
1278
|
+
size?: OxPaginationSize;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
declare const OxPaginationPrevious: ({ className, disabled, onClick, short, size, ...domProps }: OxPaginationPreviousProps) => JSX.Element;
|
|
1282
|
+
|
|
1283
|
+
export declare interface OxPaginationPreviousProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'children'> {
|
|
1284
|
+
onClick: () => void;
|
|
1285
|
+
short?: boolean;
|
|
1286
|
+
size?: OxPaginationSize;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
export declare interface OxPaginationProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> {
|
|
1290
|
+
children: ReactNode;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
export declare type OxPaginationSize = 'sm' | 'md';
|
|
1294
|
+
|
|
1295
|
+
export declare const OxPopover: typeof OxPopover_2 & {
|
|
1296
|
+
Content: typeof OxPopoverContent;
|
|
1297
|
+
Trigger: typeof OxPopoverTrigger;
|
|
1298
|
+
};
|
|
1299
|
+
|
|
1300
|
+
declare const OxPopover_2: ({ align, children, defaultOpen, disabled, onOpenChange, open: controlledOpen, side, ...domProps }: OxPopoverProps) => JSX.Element;
|
|
1301
|
+
|
|
1302
|
+
declare const OxPopoverContent: ({ children, className, showCloseButton, ...domProps }: OxPopoverContentProps) => JSX.Element;
|
|
1303
|
+
|
|
1304
|
+
export declare interface OxPopoverContentProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1305
|
+
children: React.ReactNode;
|
|
1306
|
+
showCloseButton?: boolean;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
export declare interface OxPopoverProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1310
|
+
align?: OxFloatingAlign;
|
|
1311
|
+
children: React.ReactNode;
|
|
1312
|
+
defaultOpen?: boolean;
|
|
1313
|
+
disabled?: boolean;
|
|
1314
|
+
onOpenChange?: (open: boolean) => void;
|
|
1315
|
+
open?: boolean;
|
|
1316
|
+
side?: OxFloatingPosition;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
declare const OxPopoverTrigger: ({ children, ...domProps }: OxPopoverTriggerProps) => JSX.Element;
|
|
1320
|
+
|
|
1321
|
+
export declare interface OxPopoverTriggerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1322
|
+
children: React.ReactNode;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
export declare const OxProgress: typeof OxProgress_2 & {
|
|
1326
|
+
Circular: typeof OxProgressCircular;
|
|
1327
|
+
};
|
|
1328
|
+
|
|
1329
|
+
declare const OxProgress_2: ({ buffer, className, max, value, variant, ...domProps }: OxProgressProps) => JSX.Element;
|
|
1330
|
+
|
|
1331
|
+
declare const OxProgressCircular: ({ className, max, showPercentage, size, value, variant, ...domProps }: OxProgressCircularProps) => JSX.Element;
|
|
1332
|
+
|
|
1333
|
+
export declare interface OxProgressCircularProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1334
|
+
max?: number;
|
|
1335
|
+
showPercentage?: boolean;
|
|
1336
|
+
size?: 'sm' | 'md';
|
|
1337
|
+
value?: number;
|
|
1338
|
+
variant?: ColorStyleName;
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
export declare interface OxProgressProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1342
|
+
buffer?: number;
|
|
1343
|
+
max?: number;
|
|
1344
|
+
value?: number;
|
|
1345
|
+
variant?: ColorStyleName;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
export declare const OxRadio: typeof OxRadio_2 & {
|
|
1349
|
+
Field: typeof OxRadioField;
|
|
1350
|
+
Group: typeof OxRadioGroup;
|
|
1351
|
+
};
|
|
1352
|
+
|
|
1353
|
+
declare const OxRadio_2: ({ checked, className, defaultChecked, disabled, error, id: propId, name, onChange, onCheckedChange, required, size, value, ...domProps }: OxRadioProps) => JSX.Element;
|
|
1354
|
+
|
|
1355
|
+
declare const OxRadioField: ({ children, className, ...domProps }: OxRadioFieldProps) => JSX.Element;
|
|
1356
|
+
|
|
1357
|
+
export declare interface OxRadioFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1358
|
+
children: ReactNode;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
declare const OxRadioGroup: ({ children, className, disabled, name, onChange, size, value, ...domProps }: OxRadioGroupProps) => JSX.Element;
|
|
1362
|
+
|
|
1363
|
+
export declare interface OxRadioGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'children'> {
|
|
1364
|
+
children: ReactNode;
|
|
1365
|
+
disabled?: boolean;
|
|
1366
|
+
name: string;
|
|
1367
|
+
onChange?: (value: string | number) => void;
|
|
1368
|
+
size?: 'sm' | 'md';
|
|
1369
|
+
value?: string | number;
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
export declare interface OxRadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> {
|
|
1373
|
+
error?: boolean;
|
|
1374
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
1375
|
+
size?: 'sm' | 'md';
|
|
1376
|
+
value?: string | number;
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
export declare const OxSelect: typeof OxSelect_2 & {
|
|
1380
|
+
Content: typeof OxSelectContent;
|
|
1381
|
+
Icon: typeof OxSelectIcon;
|
|
1382
|
+
Label: typeof OxSelectLabel;
|
|
1383
|
+
Option: typeof OxSelectOption;
|
|
1384
|
+
OptionGroup: typeof OxSelectOptionGroup;
|
|
1385
|
+
Trigger: typeof OxSelectTrigger;
|
|
1386
|
+
};
|
|
4
1387
|
|
|
5
|
-
declare
|
|
1388
|
+
declare const OxSelect_2: ({ children, className, defaultValue, disabled, error, id: propId, multiple, onChange, required, size, value, wrapperClassName, }: OxSelectProps) => JSX.Element;
|
|
6
1389
|
|
|
7
|
-
declare
|
|
1390
|
+
declare const OxSelectContent: ({ children, className, ...domProps }: OxSelectContentProps) => JSX.Element;
|
|
8
1391
|
|
|
9
|
-
declare
|
|
1392
|
+
export declare interface OxSelectContentProps extends Omit<HTMLAttributes<HTMLUListElement>, 'children'> {
|
|
1393
|
+
children: ReactNode;
|
|
1394
|
+
}
|
|
10
1395
|
|
|
11
|
-
declare
|
|
1396
|
+
declare const OxSelectIcon: ({ className, path, ...domProps }: OxSelectIconProps) => JSX.Element;
|
|
12
1397
|
|
|
13
|
-
export declare
|
|
1398
|
+
export declare interface OxSelectIconProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1399
|
+
path: string;
|
|
1400
|
+
}
|
|
14
1401
|
|
|
15
|
-
|
|
1402
|
+
declare const OxSelectLabel: ({ children, className, ...domProps }: OxSelectLabelProps) => JSX.Element;
|
|
16
1403
|
|
|
17
|
-
export declare interface
|
|
18
|
-
|
|
19
|
-
className?: string;
|
|
20
|
-
fallback?: string | ReactNode;
|
|
21
|
-
showStatus?: boolean;
|
|
22
|
-
size?: OxAvatarSize;
|
|
23
|
-
skeleton?: boolean;
|
|
24
|
-
src: string;
|
|
25
|
-
status?: 'online' | 'offline' | 'away' | 'busy';
|
|
26
|
-
type?: 'rounded' | 'square';
|
|
1404
|
+
export declare interface OxSelectLabelProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
1405
|
+
children: ReactNode;
|
|
27
1406
|
}
|
|
28
1407
|
|
|
29
|
-
|
|
1408
|
+
declare const OxSelectOption: ({ children, className, disabled, value, ...domProps }: OxSelectOptionProps) => JSX.Element;
|
|
1409
|
+
|
|
1410
|
+
declare const OxSelectOptionGroup: ({ children, className, label, ...domProps }: OxSelectOptionGroupProps) => JSX.Element;
|
|
1411
|
+
|
|
1412
|
+
export declare interface OxSelectOptionGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
30
1413
|
children: ReactNode;
|
|
31
|
-
|
|
1414
|
+
label: string;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
export declare interface OxSelectOptionProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'children'> {
|
|
1418
|
+
children: ReactNode;
|
|
1419
|
+
value: string | number | null;
|
|
32
1420
|
}
|
|
33
1421
|
|
|
34
|
-
export declare
|
|
1422
|
+
export declare interface OxSelectProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'children' | 'defaultValue'> {
|
|
1423
|
+
children: ReactNode;
|
|
1424
|
+
defaultValue?: string | string[] | number | number[] | null;
|
|
1425
|
+
disabled?: boolean;
|
|
1426
|
+
error?: boolean;
|
|
1427
|
+
multiple?: boolean;
|
|
1428
|
+
onChange?: (value: string | number | null | (string | number | null)[], name?: string) => void;
|
|
1429
|
+
required?: boolean;
|
|
1430
|
+
size?: 'sm' | 'md';
|
|
1431
|
+
value?: string | string[] | number | number[] | null;
|
|
1432
|
+
wrapperClassName?: string;
|
|
1433
|
+
}
|
|
35
1434
|
|
|
36
|
-
|
|
1435
|
+
declare const OxSelectTrigger: ({ badgeColor, className, displayAsBadges, placeholder, size: propSize, ...domProps }: OxSelectTriggerProps) => JSX.Element;
|
|
37
1436
|
|
|
38
|
-
export declare interface
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
1437
|
+
export declare interface OxSelectTriggerProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'size' | 'disabled' | 'required'> {
|
|
1438
|
+
badgeColor?: ColorStyleName;
|
|
1439
|
+
displayAsBadges?: boolean;
|
|
1440
|
+
placeholder?: string;
|
|
1441
|
+
size?: 'sm' | 'md';
|
|
43
1442
|
}
|
|
44
1443
|
|
|
45
|
-
export declare const
|
|
1444
|
+
export declare const OxSeparator: ({ className, decorative, orientation, ...domProps }: OxSeparatorProps) => JSX.Element;
|
|
46
1445
|
|
|
47
|
-
export declare
|
|
1446
|
+
export declare interface OxSeparatorProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1447
|
+
decorative?: boolean;
|
|
1448
|
+
orientation?: 'horizontal' | 'vertical';
|
|
1449
|
+
}
|
|
48
1450
|
|
|
49
|
-
export declare
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
color?:
|
|
54
|
-
|
|
55
|
-
|
|
1451
|
+
export declare const OxSkeleton: ({ animate, className, color, fullWidth, height, shape, width, ...domProps }: OxSkeletonProps) => JSX.Element;
|
|
1452
|
+
|
|
1453
|
+
export declare interface OxSkeletonProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1454
|
+
animate?: boolean;
|
|
1455
|
+
color?: ColorStyleName;
|
|
1456
|
+
fullWidth?: boolean;
|
|
1457
|
+
height?: string | number;
|
|
1458
|
+
shape?: 'rectangle' | 'circle';
|
|
1459
|
+
width?: string | number;
|
|
56
1460
|
}
|
|
57
1461
|
|
|
58
|
-
export declare const
|
|
1462
|
+
export declare const OxSkeletonText: ({ animate, className, color, fullWidth, height, lines, width, ...domProps }: OxSkeletonTextProps) => JSX.Element;
|
|
59
1463
|
|
|
60
|
-
export declare interface
|
|
61
|
-
|
|
62
|
-
|
|
1464
|
+
export declare interface OxSkeletonTextProps extends Omit<OxSkeletonProps, 'shape' | 'width'> {
|
|
1465
|
+
lines?: number;
|
|
1466
|
+
width?: string | number | (string | number)[];
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
export declare const OxSlider: ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, className, defaultValue, disabled, max, min, onChange, onChangeCommitted, orientation, showValue, size, step, value: controlledValue, ...domProps }: OxSliderProps) => JSX.Element;
|
|
1470
|
+
|
|
1471
|
+
export declare interface OxSliderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue' | 'children'> {
|
|
1472
|
+
defaultValue?: number | [number, number];
|
|
63
1473
|
disabled?: boolean;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
1474
|
+
marks?: boolean | number[];
|
|
1475
|
+
max?: number;
|
|
1476
|
+
min?: number;
|
|
1477
|
+
onChange?: (value: number | [number, number]) => void;
|
|
1478
|
+
onChangeCommitted?: (value: number | [number, number]) => void;
|
|
1479
|
+
orientation?: 'horizontal' | 'vertical';
|
|
1480
|
+
showValue?: boolean;
|
|
1481
|
+
size?: 'sm' | 'md';
|
|
1482
|
+
step?: number;
|
|
1483
|
+
value?: number | [number, number];
|
|
71
1484
|
}
|
|
72
1485
|
|
|
73
|
-
export declare const
|
|
1486
|
+
export declare const OxSpinner: ({ className, size, variant, ...domProps }: OxSpinnerProps) => JSX.Element;
|
|
74
1487
|
|
|
75
|
-
export declare
|
|
1488
|
+
export declare interface OxSpinnerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1489
|
+
size?: 'sm' | 'md' | number;
|
|
1490
|
+
variant?: ColorStyleName;
|
|
1491
|
+
}
|
|
76
1492
|
|
|
77
|
-
export declare
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
1493
|
+
export declare type OxStatusContent = {
|
|
1494
|
+
icon?: string;
|
|
1495
|
+
message: string;
|
|
1496
|
+
showAction: boolean;
|
|
1497
|
+
title: string;
|
|
1498
|
+
};
|
|
1499
|
+
|
|
1500
|
+
export declare const OxStatusDisplay: ({ action, children, className, inline, message, onBack, size, title, type, ...domProps }: OxStatusDisplayProps) => JSX.Element;
|
|
1501
|
+
|
|
1502
|
+
export declare interface OxStatusDisplayProps extends HTMLAttributes<HTMLDivElement> {
|
|
1503
|
+
action?: ReactNode;
|
|
1504
|
+
inline?: boolean;
|
|
1505
|
+
message?: string;
|
|
1506
|
+
onBack?: () => void;
|
|
1507
|
+
size?: 'sm' | 'md';
|
|
1508
|
+
title?: string;
|
|
1509
|
+
type: OxStatusType;
|
|
81
1510
|
}
|
|
82
1511
|
|
|
83
|
-
export declare
|
|
1512
|
+
export declare type OxStatusType = 'loading' | 'empty' | 'offline' | 'success' | 'warning' | 'info' | 401 | 403 | 404 | 408 | 429 | 500 | 502 | 503 | 504;
|
|
1513
|
+
|
|
1514
|
+
export declare const OxStepper: typeof OxStepper_2 & {
|
|
1515
|
+
Actions: typeof OxStepperActions;
|
|
1516
|
+
Item: typeof OxStepperItem;
|
|
1517
|
+
};
|
|
1518
|
+
|
|
1519
|
+
declare const OxStepper_2: ({ children, className, color, currentStep, onStepChange, orientation, type, ...domProps }: OxStepperProps) => JSX.Element;
|
|
1520
|
+
|
|
1521
|
+
declare const OxStepperActions: ({ children, className, ...domProps }: OxStepperActionsProps) => JSX.Element;
|
|
84
1522
|
|
|
85
|
-
export declare interface
|
|
1523
|
+
export declare interface OxStepperActionsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
86
1524
|
children: ReactNode;
|
|
87
|
-
className?: string;
|
|
88
1525
|
}
|
|
89
1526
|
|
|
90
|
-
export declare
|
|
1527
|
+
export declare interface OxStepperConnectorProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1528
|
+
state?: StepState;
|
|
1529
|
+
stepIndex: number;
|
|
1530
|
+
}
|
|
91
1531
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
1532
|
+
declare const OxStepperItem: ({ children, className, description, icon, state: propState, stepIndex, title, ...domProps }: OxStepperItemProps) => JSX.Element;
|
|
1533
|
+
|
|
1534
|
+
export declare interface OxStepperItemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1535
|
+
children: ReactNode;
|
|
1536
|
+
description?: string;
|
|
97
1537
|
icon?: string;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
title
|
|
1538
|
+
state?: StepState;
|
|
1539
|
+
stepIndex?: number;
|
|
1540
|
+
title: string;
|
|
101
1541
|
}
|
|
102
1542
|
|
|
103
|
-
export declare interface
|
|
104
|
-
backdropBlur?: boolean;
|
|
1543
|
+
export declare interface OxStepperProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
105
1544
|
children: ReactNode;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
padding?: 'none' | 'sm' | 'md' | 'lg';
|
|
112
|
-
variant?: 'default' | 'outline' | 'gradient';
|
|
1545
|
+
color?: ColorStyleName;
|
|
1546
|
+
currentStep?: number;
|
|
1547
|
+
onStepChange?: (step: number) => void;
|
|
1548
|
+
orientation?: StepperOrientation;
|
|
1549
|
+
type?: StepperType;
|
|
113
1550
|
}
|
|
114
1551
|
|
|
115
|
-
export declare const
|
|
1552
|
+
export declare const OxSwitch: typeof OxSwitch_2 & {
|
|
1553
|
+
Field: typeof OxSwitchField;
|
|
1554
|
+
};
|
|
116
1555
|
|
|
117
|
-
|
|
1556
|
+
declare const OxSwitch_2: ({ checked, className, disabled, error, id: propId, onChange, required, size, ...domProps }: OxSwitchProps) => JSX.Element;
|
|
1557
|
+
|
|
1558
|
+
declare const OxSwitchField: ({ children, className, ...domProps }: OxSwitchFieldProps) => JSX.Element;
|
|
1559
|
+
|
|
1560
|
+
export declare interface OxSwitchFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1561
|
+
children: ReactNode;
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
export declare interface OxSwitchProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type' | 'size' | 'onChange' | 'children'> {
|
|
118
1565
|
checked?: boolean;
|
|
119
|
-
className?: string;
|
|
120
|
-
defaultChecked?: boolean;
|
|
121
|
-
description?: string;
|
|
122
|
-
disabled?: boolean;
|
|
123
1566
|
error?: boolean;
|
|
124
|
-
|
|
125
|
-
id?: string;
|
|
126
|
-
label?: string;
|
|
127
|
-
name?: string;
|
|
128
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
1567
|
+
onChange?: (checked: boolean) => void;
|
|
129
1568
|
required?: boolean;
|
|
130
|
-
size?: 'sm' | 'md'
|
|
131
|
-
value?: string | number | readonly string[];
|
|
1569
|
+
size?: 'sm' | 'md';
|
|
132
1570
|
}
|
|
133
1571
|
|
|
134
|
-
export declare const
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
1572
|
+
export declare const OxTable: typeof OxTable_2 & {
|
|
1573
|
+
Body: typeof OxTableBody;
|
|
1574
|
+
Cell: typeof OxTableCell;
|
|
1575
|
+
Controls: typeof OxTableControls;
|
|
1576
|
+
Footer: typeof OxTableFooter;
|
|
1577
|
+
Head: typeof OxTableHead;
|
|
1578
|
+
Header: typeof OxTableHeader;
|
|
1579
|
+
Row: typeof OxTableRow;
|
|
1580
|
+
};
|
|
142
1581
|
|
|
143
|
-
|
|
1582
|
+
declare const OxTable_2: ({ allRowIds, children, className, onSelectionChange, selectable, selectedRows, ...domProps }: OxTableProps) => JSX.Element;
|
|
144
1583
|
|
|
145
|
-
|
|
1584
|
+
declare const OxTableBody: ({ children, className, ...domProps }: OxTableBodyProps) => JSX.Element;
|
|
146
1585
|
|
|
147
|
-
export declare interface
|
|
148
|
-
|
|
149
|
-
children: default_2.ReactNode;
|
|
150
|
-
className?: string;
|
|
151
|
-
side?: FloatingPosition;
|
|
1586
|
+
export declare interface OxTableBodyProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'children'> {
|
|
1587
|
+
children: ReactNode;
|
|
152
1588
|
}
|
|
153
1589
|
|
|
154
|
-
|
|
1590
|
+
declare const OxTableCell: ({ children, className, ...domProps }: OxTableCellProps) => JSX.Element;
|
|
155
1591
|
|
|
156
|
-
export declare interface
|
|
157
|
-
children
|
|
158
|
-
className?: string;
|
|
1592
|
+
export declare interface OxTableCellProps extends Omit<TdHTMLAttributes<HTMLTableCellElement>, 'children'> {
|
|
1593
|
+
children?: ReactNode;
|
|
159
1594
|
}
|
|
160
1595
|
|
|
161
|
-
|
|
1596
|
+
declare const OxTableControls: ({ children, className, ...domProps }: OxTableControlsProps) => JSX.Element;
|
|
162
1597
|
|
|
163
|
-
export declare interface
|
|
164
|
-
children:
|
|
165
|
-
className?: string;
|
|
1598
|
+
export declare interface OxTableControlsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1599
|
+
children: ReactNode;
|
|
166
1600
|
}
|
|
167
1601
|
|
|
168
|
-
|
|
1602
|
+
declare const OxTableFooter: ({ children, className, ...domProps }: OxTableFooterProps) => JSX.Element;
|
|
169
1603
|
|
|
170
|
-
export declare interface
|
|
171
|
-
children:
|
|
172
|
-
className?: string;
|
|
173
|
-
disabled?: boolean;
|
|
174
|
-
icon?: string;
|
|
175
|
-
onClick?: (event: default_2.MouseEvent<HTMLButtonElement>) => void;
|
|
176
|
-
unstyled?: boolean;
|
|
1604
|
+
export declare interface OxTableFooterProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'children'> {
|
|
1605
|
+
children: ReactNode;
|
|
177
1606
|
}
|
|
178
1607
|
|
|
179
|
-
|
|
180
|
-
children: default_2.ReactNode;
|
|
181
|
-
className?: string;
|
|
182
|
-
defaultOpen?: boolean;
|
|
183
|
-
disabled?: boolean;
|
|
184
|
-
onOpenChange?: (open: boolean) => void;
|
|
185
|
-
open?: boolean;
|
|
186
|
-
}
|
|
1608
|
+
declare const OxTableHead: ({ children, className, ...domProps }: OxTableHeadProps) => JSX.Element;
|
|
187
1609
|
|
|
188
|
-
|
|
1610
|
+
declare const OxTableHeader: ({ children, className, ...domProps }: OxTableHeaderProps) => JSX.Element;
|
|
189
1611
|
|
|
190
|
-
export declare interface
|
|
191
|
-
|
|
1612
|
+
export declare interface OxTableHeaderProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'children'> {
|
|
1613
|
+
children: ReactNode;
|
|
192
1614
|
}
|
|
193
1615
|
|
|
194
|
-
export declare
|
|
1616
|
+
export declare interface OxTableHeadProps extends Omit<ThHTMLAttributes<HTMLTableCellElement>, 'children'> {
|
|
1617
|
+
children?: ReactNode;
|
|
1618
|
+
}
|
|
195
1619
|
|
|
196
|
-
export declare interface
|
|
197
|
-
|
|
198
|
-
|
|
1620
|
+
export declare interface OxTableProps extends Omit<TableHTMLAttributes<HTMLTableElement>, 'children'> {
|
|
1621
|
+
allRowIds?: string[];
|
|
1622
|
+
children: ReactNode;
|
|
1623
|
+
onSelectionChange?: (selectedRows: string[]) => void;
|
|
1624
|
+
selectable?: boolean;
|
|
1625
|
+
selectedRows?: string[];
|
|
199
1626
|
}
|
|
200
1627
|
|
|
201
|
-
|
|
1628
|
+
declare const OxTableRow: ({ children, className, rowId, ...domProps }: OxTableRowProps) => JSX.Element;
|
|
202
1629
|
|
|
203
|
-
export declare interface
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
className?: string;
|
|
207
|
-
disabled?: boolean;
|
|
208
|
-
icon?: string;
|
|
209
|
-
outline?: boolean;
|
|
210
|
-
unstyled?: boolean;
|
|
1630
|
+
export declare interface OxTableRowProps extends Omit<HTMLAttributes<HTMLTableRowElement>, 'children'> {
|
|
1631
|
+
children: ReactNode;
|
|
1632
|
+
rowId?: string;
|
|
211
1633
|
}
|
|
212
1634
|
|
|
213
|
-
export declare const
|
|
1635
|
+
export declare const OxTabs: typeof OxTabs_2 & {
|
|
1636
|
+
Content: typeof OxTabsContent;
|
|
1637
|
+
List: typeof OxTabsList;
|
|
1638
|
+
Trigger: typeof OxTabsTrigger;
|
|
1639
|
+
};
|
|
214
1640
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
1641
|
+
declare const OxTabs_2: ({ children, className, defaultValue, onValueChange, value, ...domProps }: OxTabsProps) => JSX.Element;
|
|
1642
|
+
|
|
1643
|
+
declare const OxTabsContent: ({ children, className, value, ...domProps }: OxTabsContentProps) => JSX.Element | null;
|
|
1644
|
+
|
|
1645
|
+
export declare interface OxTabsContentProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1646
|
+
children: ReactNode;
|
|
1647
|
+
value: string;
|
|
220
1648
|
}
|
|
221
1649
|
|
|
222
|
-
|
|
1650
|
+
declare const OxTabsList: ({ children, className, ...domProps }: OxTabsListProps) => JSX.Element;
|
|
223
1651
|
|
|
224
|
-
export declare interface
|
|
225
|
-
children:
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
1652
|
+
export declare interface OxTabsListProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1653
|
+
children: ReactNode;
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
export declare interface OxTabsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1657
|
+
children: ReactNode;
|
|
1658
|
+
defaultValue?: string;
|
|
1659
|
+
onValueChange?: (value: string) => void;
|
|
1660
|
+
value?: string;
|
|
229
1661
|
}
|
|
230
1662
|
|
|
231
|
-
|
|
1663
|
+
declare const OxTabsTrigger: ({ children, className, disabled, value, ...domProps }: OxTabsTriggerProps) => JSX.Element;
|
|
232
1664
|
|
|
233
|
-
export declare interface
|
|
234
|
-
children:
|
|
235
|
-
|
|
236
|
-
onLoading?: React.ReactNode;
|
|
1665
|
+
export declare interface OxTabsTriggerProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
1666
|
+
children: ReactNode;
|
|
1667
|
+
value: string;
|
|
237
1668
|
}
|
|
238
1669
|
|
|
239
|
-
export declare const
|
|
1670
|
+
export declare const OxTextarea: ({ className, disabled, error, id: propId, name, onChange, placeholder, required, rows, showMaxLength, size, value, ...domProps }: OxTextareaProps) => JSX.Element;
|
|
240
1671
|
|
|
241
|
-
export declare interface
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
size?:
|
|
245
|
-
style?: React.CSSProperties;
|
|
1672
|
+
export declare interface OxTextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'children'> {
|
|
1673
|
+
error?: boolean;
|
|
1674
|
+
showMaxLength?: boolean;
|
|
1675
|
+
size?: 'sm' | 'md';
|
|
246
1676
|
}
|
|
247
1677
|
|
|
248
|
-
|
|
1678
|
+
declare const OxTextButton: (props: OxTextInputButton) => JSX.Element;
|
|
249
1679
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
1680
|
+
declare const OxTextClearButton: () => JSX.Element;
|
|
1681
|
+
|
|
1682
|
+
declare const OxTextContainer: ({ children, className, customValidationMessage, defaultValue, disabled, error, onChange, required, showValidation, showValidationTooltip, size, type, value, ...domProps }: OxTextInputContainerProps) => JSX.Element;
|
|
1683
|
+
|
|
1684
|
+
declare const OxTextCounter: (props: OxTextInputCounter) => JSX.Element;
|
|
1685
|
+
|
|
1686
|
+
declare const OxTextIcon: (props: OxTextInputIcon) => JSX.Element;
|
|
1687
|
+
|
|
1688
|
+
export declare const OxTextInput: typeof OxTextInput_2 & {
|
|
1689
|
+
Button: typeof OxTextButton;
|
|
1690
|
+
ClearButton: typeof OxTextClearButton;
|
|
1691
|
+
Container: typeof OxTextContainer;
|
|
1692
|
+
Counter: typeof OxTextCounter;
|
|
1693
|
+
Icon: typeof OxTextIcon;
|
|
1694
|
+
VisibilityButton: typeof OxTextVisibilityButton;
|
|
1695
|
+
};
|
|
1696
|
+
|
|
1697
|
+
declare const OxTextInput_2: ({ autoComplete, className, id, maxLength, placeholder, spellCheck, ...domProps }: OxTextInputProps) => JSX.Element;
|
|
1698
|
+
|
|
1699
|
+
declare type OxTextInputButton = BaseInputButtonProps;
|
|
1700
|
+
|
|
1701
|
+
declare interface OxTextInputContainerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
1702
|
+
customValidationMessage?: string;
|
|
1703
|
+
defaultValue?: string;
|
|
253
1704
|
disabled?: boolean;
|
|
254
1705
|
error?: boolean;
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
1706
|
+
onChange?: (value: string) => void;
|
|
1707
|
+
required?: boolean;
|
|
1708
|
+
showValidation?: boolean;
|
|
1709
|
+
showValidationTooltip?: boolean;
|
|
1710
|
+
size?: 'sm' | 'md';
|
|
1711
|
+
type?: OxTextInputType;
|
|
1712
|
+
value?: string;
|
|
1713
|
+
}
|
|
1714
|
+
|
|
1715
|
+
declare type OxTextInputCounter = BaseInputCounterProps;
|
|
1716
|
+
|
|
1717
|
+
declare type OxTextInputIcon = BaseInputIconProps;
|
|
1718
|
+
|
|
1719
|
+
declare interface OxTextInputProps {
|
|
1720
|
+
[key: `data-${string}`]: string | undefined;
|
|
1721
|
+
'aria-describedby'?: string;
|
|
1722
|
+
'aria-label'?: string;
|
|
1723
|
+
'aria-labelledby'?: string;
|
|
1724
|
+
autoComplete?: string;
|
|
1725
|
+
className?: string;
|
|
258
1726
|
id?: string;
|
|
259
|
-
|
|
1727
|
+
maxLength?: number;
|
|
1728
|
+
minLength?: number;
|
|
260
1729
|
name?: string;
|
|
261
|
-
|
|
1730
|
+
pattern?: string;
|
|
262
1731
|
placeholder?: string;
|
|
263
1732
|
readOnly?: boolean;
|
|
264
|
-
|
|
265
|
-
required?: boolean;
|
|
266
|
-
showMaxLength?: boolean;
|
|
267
|
-
type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search';
|
|
268
|
-
value?: string | number;
|
|
1733
|
+
spellCheck?: boolean;
|
|
269
1734
|
}
|
|
270
1735
|
|
|
271
|
-
|
|
1736
|
+
declare type OxTextInputType = 'email' | 'password' | 'search' | 'tel' | 'text' | 'url';
|
|
272
1737
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
1738
|
+
declare const OxTextVisibilityButton: () => JSX.Element;
|
|
1739
|
+
|
|
1740
|
+
declare const OxTimeButton: (props: BaseInputButtonProps) => JSX.Element;
|
|
1741
|
+
|
|
1742
|
+
declare const OxTimeContainer: ({ children, className, customValidationMessage, defaultValue, disabled, error, onChange, required, showValidation, showValidationTooltip, size, value, ...domProps }: OxTimeInputContainerProps) => JSX.Element;
|
|
1743
|
+
|
|
1744
|
+
declare const OxTimeIcon: (props: BaseInputIconProps) => JSX.Element;
|
|
1745
|
+
|
|
1746
|
+
export declare const OxTimeInput: typeof OxTimeInput_2 & {
|
|
1747
|
+
Button: typeof OxTimeButton;
|
|
1748
|
+
Container: typeof OxTimeContainer;
|
|
1749
|
+
Icon: typeof OxTimeIcon;
|
|
1750
|
+
};
|
|
1751
|
+
|
|
1752
|
+
declare const OxTimeInput_2: () => JSX.Element;
|
|
1753
|
+
|
|
1754
|
+
declare interface OxTimeInputContainerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
1755
|
+
customValidationMessage?: string;
|
|
1756
|
+
defaultValue?: string;
|
|
276
1757
|
disabled?: boolean;
|
|
277
|
-
|
|
1758
|
+
error?: boolean;
|
|
1759
|
+
onChange?: (value: string) => void;
|
|
278
1760
|
required?: boolean;
|
|
1761
|
+
showValidation?: boolean;
|
|
1762
|
+
showValidationTooltip?: boolean;
|
|
1763
|
+
size?: 'sm' | 'md';
|
|
1764
|
+
value?: string;
|
|
279
1765
|
}
|
|
280
1766
|
|
|
281
|
-
export declare const
|
|
1767
|
+
export declare const OxTimeline: typeof OxTimeline_2 & {
|
|
1768
|
+
Item: typeof OxTimelineItem;
|
|
1769
|
+
};
|
|
282
1770
|
|
|
283
|
-
|
|
284
|
-
className?: string;
|
|
285
|
-
disabled?: boolean;
|
|
286
|
-
emptyMessage?: string;
|
|
287
|
-
maxHeight?: string;
|
|
288
|
-
notifications: OxNotificationProps[];
|
|
289
|
-
onMarkAllRead?: () => void;
|
|
290
|
-
onNotificationClick?: (notification: OxNotificationProps) => void;
|
|
291
|
-
unreadCount?: number;
|
|
292
|
-
}
|
|
1771
|
+
declare const OxTimeline_2: ({ children, className, ...domProps }: OxTimelineProps) => JSX.Element;
|
|
293
1772
|
|
|
294
|
-
export declare
|
|
1773
|
+
export declare type OxTimelineAlign = 'left' | 'right';
|
|
1774
|
+
|
|
1775
|
+
declare const OxTimelineItem: ({ align, children, className, color, description, icon, label, showSeparator, timestamp, ...domProps }: OxTimelineItemProps) => JSX.Element;
|
|
1776
|
+
|
|
1777
|
+
export declare interface OxTimelineItemProps extends LiHTMLAttributes<HTMLLIElement> {
|
|
1778
|
+
align?: OxTimelineAlign;
|
|
1779
|
+
color?: ColorStyleName;
|
|
1780
|
+
description?: string;
|
|
295
1781
|
icon?: string;
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
read: boolean;
|
|
300
|
-
timestamp: Date;
|
|
301
|
-
title: string;
|
|
302
|
-
type?: 'default' | 'info' | 'success' | 'warning' | 'error';
|
|
1782
|
+
label: string;
|
|
1783
|
+
showSeparator?: boolean;
|
|
1784
|
+
timestamp?: string;
|
|
303
1785
|
}
|
|
304
1786
|
|
|
305
|
-
export declare
|
|
306
|
-
|
|
307
|
-
export declare interface OxProtectedRouteProps {
|
|
308
|
-
children: React.ReactNode;
|
|
309
|
-
onLoading?: React.ReactNode;
|
|
310
|
-
onUnauthenticated?: React.ReactNode;
|
|
1787
|
+
export declare interface OxTimelineProps extends Omit<OlHTMLAttributes<HTMLOListElement>, 'children'> {
|
|
1788
|
+
children: ReactNode;
|
|
311
1789
|
}
|
|
312
1790
|
|
|
313
|
-
export declare const
|
|
1791
|
+
export declare const OxToast: ({ align, onRemove, position, toasts }: OxToastProps) => ReactPortal;
|
|
314
1792
|
|
|
315
|
-
export declare
|
|
1793
|
+
export declare type OxToastAlign = 'left' | 'center' | 'right';
|
|
316
1794
|
|
|
317
|
-
export declare interface
|
|
318
|
-
|
|
319
|
-
|
|
1795
|
+
export declare interface OxToastContextApi {
|
|
1796
|
+
(title: string, options?: OxToastOptions): string;
|
|
1797
|
+
custom: (content: ReactNode, options?: {
|
|
1798
|
+
duration?: number;
|
|
1799
|
+
}) => string;
|
|
1800
|
+
dismiss: (id?: string) => void;
|
|
1801
|
+
error: (title: string, options?: OxToastOptions) => string;
|
|
1802
|
+
info: (title: string, options?: OxToastOptions) => string;
|
|
1803
|
+
success: (title: string, options?: OxToastOptions) => string;
|
|
1804
|
+
warning: (title: string, options?: OxToastOptions) => string;
|
|
320
1805
|
}
|
|
321
1806
|
|
|
322
|
-
export declare
|
|
1807
|
+
export declare interface OxToastData {
|
|
1808
|
+
color?: ColorStyleName;
|
|
1809
|
+
customContent?: ReactNode;
|
|
1810
|
+
description?: string;
|
|
1811
|
+
duration?: number;
|
|
1812
|
+
icon?: string;
|
|
1813
|
+
id: string;
|
|
1814
|
+
isRemoving?: boolean;
|
|
1815
|
+
title: string;
|
|
1816
|
+
type: OxToastType;
|
|
1817
|
+
}
|
|
323
1818
|
|
|
324
|
-
export declare interface
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
value: string | number | null;
|
|
1819
|
+
export declare interface OxToastItemProps {
|
|
1820
|
+
index: number;
|
|
1821
|
+
onRemove: (id: string) => void;
|
|
1822
|
+
position: OxToastPosition;
|
|
1823
|
+
toast: OxToastData;
|
|
330
1824
|
}
|
|
331
1825
|
|
|
332
|
-
export declare interface
|
|
333
|
-
|
|
334
|
-
children: React.ReactNode;
|
|
335
|
-
className?: string;
|
|
336
|
-
defaultValue?: string | string[] | number | number[];
|
|
1826
|
+
export declare interface OxToastOptions {
|
|
1827
|
+
color?: ColorStyleName;
|
|
337
1828
|
description?: string;
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
error?: boolean;
|
|
341
|
-
errorMessage?: string;
|
|
342
|
-
id?: string;
|
|
343
|
-
label?: string;
|
|
344
|
-
multiple?: boolean;
|
|
345
|
-
name?: string;
|
|
346
|
-
onChange?: (value: string | number | null | (string | number | null)[], name?: string) => void;
|
|
347
|
-
placeholder?: string;
|
|
348
|
-
required?: boolean;
|
|
1829
|
+
duration?: number;
|
|
1830
|
+
icon?: string;
|
|
349
1831
|
}
|
|
350
1832
|
|
|
351
|
-
export declare
|
|
1833
|
+
export declare type OxToastPosition = 'top' | 'bottom';
|
|
352
1834
|
|
|
353
|
-
export declare interface
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
height?: string | number;
|
|
359
|
-
shape?: 'rectangle' | 'circle';
|
|
360
|
-
width?: string | number;
|
|
1835
|
+
export declare interface OxToastProps {
|
|
1836
|
+
align: OxToastAlign;
|
|
1837
|
+
onRemove: (id: string) => void;
|
|
1838
|
+
position: OxToastPosition;
|
|
1839
|
+
toasts: OxToastData[];
|
|
361
1840
|
}
|
|
362
1841
|
|
|
363
|
-
export declare const
|
|
1842
|
+
export declare const OxToastProvider: ({ align, children, maxToasts, position, }: OxToastProviderProps) => JSX.Element;
|
|
364
1843
|
|
|
365
|
-
export declare interface
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
1844
|
+
export declare interface OxToastProviderProps {
|
|
1845
|
+
align?: OxToastAlign;
|
|
1846
|
+
children: ReactNode;
|
|
1847
|
+
maxToasts?: number;
|
|
1848
|
+
position?: OxToastPosition;
|
|
369
1849
|
}
|
|
370
1850
|
|
|
371
|
-
export declare
|
|
1851
|
+
export declare type OxToastType = 'success' | 'error' | 'warning' | 'info' | 'default';
|
|
372
1852
|
|
|
373
|
-
export declare
|
|
374
|
-
|
|
375
|
-
|
|
1853
|
+
export declare const OxToggle: typeof OxToggle_2 & {
|
|
1854
|
+
Group: typeof OxToggleGroup;
|
|
1855
|
+
};
|
|
1856
|
+
|
|
1857
|
+
declare const OxToggle_2: ({ children, className, disabled, id: propId, onPressedChange, pressed, size, value, ...domProps }: OxToggleProps) => JSX.Element;
|
|
1858
|
+
|
|
1859
|
+
declare const OxToggleGroup: ({ children, className, disabled, name, onValueChange, size, type, value, ...domProps }: OxToggleGroupProps) => JSX.Element;
|
|
1860
|
+
|
|
1861
|
+
export declare interface OxToggleGroupMultipleProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'children'> {
|
|
1862
|
+
children: React.ReactNode;
|
|
376
1863
|
disabled?: boolean;
|
|
377
|
-
error?: boolean;
|
|
378
|
-
errorMessage?: string;
|
|
379
|
-
id?: string;
|
|
380
|
-
label?: string;
|
|
381
1864
|
name?: string;
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
1865
|
+
onValueChange?: (value: string[]) => void;
|
|
1866
|
+
size?: 'sm' | 'md';
|
|
1867
|
+
type: 'multiple';
|
|
1868
|
+
value?: string[];
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1871
|
+
export declare type OxToggleGroupProps = OxToggleGroupSingleProps | OxToggleGroupMultipleProps;
|
|
1872
|
+
|
|
1873
|
+
export declare interface OxToggleGroupSingleProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'children'> {
|
|
1874
|
+
children: React.ReactNode;
|
|
1875
|
+
disabled?: boolean;
|
|
1876
|
+
name?: string;
|
|
1877
|
+
onValueChange?: (value: string) => void;
|
|
1878
|
+
size?: 'sm' | 'md';
|
|
1879
|
+
type?: 'single';
|
|
1880
|
+
value?: string;
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
export declare interface OxToggleProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'children'> {
|
|
1884
|
+
children?: React.ReactNode;
|
|
1885
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
1886
|
+
pressed?: boolean;
|
|
1887
|
+
size?: 'sm' | 'md';
|
|
387
1888
|
value?: string;
|
|
388
1889
|
}
|
|
389
1890
|
|
|
390
|
-
export declare
|
|
1891
|
+
export declare type OxToggleValue = string | string[];
|
|
1892
|
+
|
|
1893
|
+
export declare const OxTooltip: ({ align, children, className, content, disabled, hoverDelay, id, onOpenChange, open, position, trigger, variant, }: OxTooltipProps) => JSX.Element;
|
|
391
1894
|
|
|
392
1895
|
export declare interface OxTooltipProps {
|
|
393
|
-
align?:
|
|
394
|
-
children:
|
|
1896
|
+
align?: OxFloatingAlign;
|
|
1897
|
+
children: ReactNode;
|
|
395
1898
|
className?: string;
|
|
396
1899
|
content: string;
|
|
397
1900
|
disabled?: boolean;
|
|
1901
|
+
hoverDelay?: number;
|
|
398
1902
|
id?: string;
|
|
399
1903
|
onOpenChange?: (open: boolean) => void;
|
|
400
1904
|
open?: boolean;
|
|
401
|
-
position?:
|
|
402
|
-
trigger?:
|
|
1905
|
+
position?: OxFloatingPosition;
|
|
1906
|
+
trigger?: OxFloatingTrigger;
|
|
403
1907
|
variant?: 'default' | 'error' | 'warning' | 'success' | 'info';
|
|
404
1908
|
}
|
|
405
1909
|
|
|
1910
|
+
export declare type SliderValue = number | [number, number];
|
|
1911
|
+
|
|
1912
|
+
export declare type StepperOrientation = 'horizontal' | 'vertical';
|
|
1913
|
+
|
|
1914
|
+
export declare type StepperType = 'linear' | 'non-linear';
|
|
1915
|
+
|
|
1916
|
+
export declare type StepState = 'completed' | 'current' | 'upcoming' | 'error' | 'warning';
|
|
1917
|
+
|
|
1918
|
+
export declare const useOxToast: () => OxToastContextApi;
|
|
1919
|
+
|
|
406
1920
|
export { }
|