@banzamel/mineralui 0.2.1 → 0.4.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/LICENSE +21 -0
- package/README.md +151 -73
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1508 -72
- package/dist/index.js +5077 -2330
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +10 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,41 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes } from 'react';
|
|
2
|
+
import { AnimationEventHandler } from 'react';
|
|
3
|
+
import { AriaRole } from 'react';
|
|
4
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
1
5
|
import { ChangeEvent } from 'react';
|
|
6
|
+
import { ClipboardEventHandler } from 'react';
|
|
7
|
+
import { CompositionEventHandler } from 'react';
|
|
2
8
|
import { CSSProperties } from 'react';
|
|
9
|
+
import { DetailedReactHTMLElement } from 'react';
|
|
3
10
|
import { Dispatch } from 'react';
|
|
11
|
+
import { DragEventHandler } from 'react';
|
|
12
|
+
import { ElementType } from 'react';
|
|
4
13
|
import { FocusEvent as FocusEvent_2 } from 'react';
|
|
14
|
+
import { FocusEventHandler } from 'react';
|
|
15
|
+
import { FormEventHandler } from 'react';
|
|
5
16
|
import { ForwardRefExoticComponent } from 'react';
|
|
17
|
+
import { HTMLAttributes } from 'react';
|
|
18
|
+
import { InputEventHandler } from 'react';
|
|
6
19
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
7
20
|
import { KeyboardEvent as KeyboardEvent_2 } from 'react';
|
|
21
|
+
import { KeyboardEventHandler } from 'react';
|
|
22
|
+
import { MouseEventHandler } from 'react';
|
|
23
|
+
import { PointerEvent as PointerEvent_2 } from 'react';
|
|
24
|
+
import { PointerEventHandler } from 'react';
|
|
25
|
+
import { ReactElement } from 'react';
|
|
26
|
+
import { ReactEventHandler } from 'react';
|
|
8
27
|
import { ReactNode } from 'react';
|
|
9
28
|
import { ReactPortal } from 'react';
|
|
10
29
|
import { RefAttributes } from 'react';
|
|
11
30
|
import { RefObject } from 'react';
|
|
12
31
|
import { SetStateAction } from 'react';
|
|
32
|
+
import { TableHTMLAttributes } from 'react';
|
|
33
|
+
import { TdHTMLAttributes } from 'react';
|
|
34
|
+
import { ThHTMLAttributes } from 'react';
|
|
35
|
+
import { TouchEventHandler } from 'react';
|
|
36
|
+
import { TransitionEventHandler } from 'react';
|
|
37
|
+
import { UIEventHandler } from 'react';
|
|
38
|
+
import { WheelEventHandler } from 'react';
|
|
13
39
|
|
|
14
40
|
export declare function addMonths(date: Date, count: number): Date;
|
|
15
41
|
|
|
@@ -17,9 +43,24 @@ export declare function addYears(date: Date, count: number): Date;
|
|
|
17
43
|
|
|
18
44
|
export declare function adjustCursorAfterFormat(oldValue: string, newValue: string, oldCursor: number): number;
|
|
19
45
|
|
|
20
|
-
|
|
46
|
+
declare function Alert({ color, fcolor, title, className, children, ...rest }: AlertProps): JSX_2.Element;
|
|
47
|
+
export { Alert }
|
|
48
|
+
export { Alert as MAlert }
|
|
21
49
|
|
|
22
|
-
|
|
50
|
+
declare interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
51
|
+
color?: MineralColor;
|
|
52
|
+
fcolor?: MineralFontColor;
|
|
53
|
+
title?: ReactNode;
|
|
54
|
+
children?: ReactNode;
|
|
55
|
+
}
|
|
56
|
+
export { AlertProps }
|
|
57
|
+
export { AlertProps as MAlertProps }
|
|
58
|
+
|
|
59
|
+
declare function Autocomplete<T = string>({ options, value, onChange, getOptionLabel, getOptionValue, filterOptions, multiple, freeSolo, debounceMs, onInputChange, loading, loadingText, noOptionsText, placeholder, disabled, name, id, variant, size, color, fcolor, fullWidth, label, helperText, errorText, error, required, clearable, maxHeight, renderOption, renderTags, className, style, }: AutocompleteProps<T>): JSX_2.Element;
|
|
60
|
+
export { Autocomplete }
|
|
61
|
+
export { Autocomplete as MAutocomplete }
|
|
62
|
+
|
|
63
|
+
declare interface AutocompleteProps<T = string> {
|
|
23
64
|
options: T[];
|
|
24
65
|
value?: T | T[];
|
|
25
66
|
onChange?: (value: T | T[]) => void;
|
|
@@ -40,6 +81,7 @@ export declare interface AutocompleteProps<T = string> {
|
|
|
40
81
|
variant?: AutocompleteVariant;
|
|
41
82
|
size?: MineralSize;
|
|
42
83
|
color?: MineralColor;
|
|
84
|
+
fcolor?: MineralFontColor;
|
|
43
85
|
fullWidth?: boolean;
|
|
44
86
|
label?: string;
|
|
45
87
|
helperText?: string;
|
|
@@ -53,14 +95,309 @@ export declare interface AutocompleteProps<T = string> {
|
|
|
53
95
|
className?: string;
|
|
54
96
|
style?: CSSProperties;
|
|
55
97
|
}
|
|
98
|
+
export { AutocompleteProps }
|
|
99
|
+
export { AutocompleteProps as MAutocompleteProps }
|
|
100
|
+
|
|
101
|
+
declare type AutocompleteVariant = 'outlined' | 'filled' | 'underlined';
|
|
102
|
+
export { AutocompleteVariant }
|
|
103
|
+
export { AutocompleteVariant as MAutocompleteVariant }
|
|
104
|
+
|
|
105
|
+
declare function Avatar({ src, alt, name, initials, size, shape, color, fcolor, backgroundColor, clickEffect, rippleColor, className, style, onPointerDown, ...rest }: AvatarProps): JSX_2.Element;
|
|
106
|
+
export { Avatar }
|
|
107
|
+
export { Avatar as MAvatar }
|
|
108
|
+
|
|
109
|
+
declare interface AvatarProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'color'> {
|
|
110
|
+
src?: string;
|
|
111
|
+
alt?: string;
|
|
112
|
+
name?: string;
|
|
113
|
+
initials?: string;
|
|
114
|
+
size?: AvatarSize;
|
|
115
|
+
shape?: AvatarShape;
|
|
116
|
+
color?: MineralColor;
|
|
117
|
+
fcolor?: MineralFontColor;
|
|
118
|
+
backgroundColor?: string;
|
|
119
|
+
clickEffect?: MineralClickEffect;
|
|
120
|
+
rippleColor?: string;
|
|
121
|
+
style?: CSSProperties;
|
|
122
|
+
}
|
|
123
|
+
export { AvatarProps }
|
|
124
|
+
export { AvatarProps as MAvatarProps }
|
|
125
|
+
|
|
126
|
+
declare type AvatarShape = 'circle' | 'rounded' | 'square';
|
|
127
|
+
export { AvatarShape }
|
|
128
|
+
export { AvatarShape as MAvatarShape }
|
|
129
|
+
|
|
130
|
+
declare type AvatarSize = 'sm' | 'md' | 'lg' | number;
|
|
131
|
+
export { AvatarSize }
|
|
132
|
+
export { AvatarSize as MAvatarSize }
|
|
133
|
+
|
|
134
|
+
declare function Badge({ color, size, fcolor, className, children, ...rest }: BadgeProps): JSX_2.Element;
|
|
135
|
+
export { Badge }
|
|
136
|
+
export { Badge as MBadge }
|
|
137
|
+
|
|
138
|
+
declare interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
139
|
+
color?: MineralColor;
|
|
140
|
+
size?: MineralSize;
|
|
141
|
+
fcolor?: MineralFontColor;
|
|
142
|
+
children?: ReactNode;
|
|
143
|
+
}
|
|
144
|
+
export { BadgeProps }
|
|
145
|
+
export { BadgeProps as MBadgeProps }
|
|
146
|
+
|
|
147
|
+
declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
148
|
+
export { Button }
|
|
149
|
+
export { Button as MButton }
|
|
150
|
+
|
|
151
|
+
declare interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'> {
|
|
152
|
+
variant?: ButtonVariant;
|
|
153
|
+
size?: MineralSize;
|
|
154
|
+
color?: MineralColor;
|
|
155
|
+
fcolor?: MineralFontColor;
|
|
156
|
+
fullWidth?: boolean;
|
|
157
|
+
rounded?: boolean;
|
|
158
|
+
iconOnly?: boolean;
|
|
159
|
+
loading?: boolean;
|
|
160
|
+
startIcon?: ReactNode;
|
|
161
|
+
endIcon?: ReactNode;
|
|
162
|
+
clickEffect?: MineralClickEffect;
|
|
163
|
+
rippleColor?: string;
|
|
164
|
+
className?: string;
|
|
165
|
+
style?: CSSProperties;
|
|
166
|
+
children?: ReactNode;
|
|
167
|
+
}
|
|
168
|
+
export { ButtonProps }
|
|
169
|
+
export { ButtonProps as MButtonProps }
|
|
170
|
+
|
|
171
|
+
declare type ButtonVariant = 'primary' | 'secondary' | 'outlined' | 'ghost' | 'link';
|
|
172
|
+
export { ButtonVariant }
|
|
173
|
+
export { ButtonVariant as MButtonVariant }
|
|
174
|
+
|
|
175
|
+
declare function CalendarBoard({ month, defaultMonth, onMonthChange, events, locale, weekStartsOn, view, defaultView, views, onViewChange, selectedDate, defaultSelectedDate, onDayClick, dayBadge, renderDayCell, renderEventItem, detailsTrigger, detailsMode, showTimeline, timelineStartHour, timelineEndHour, emptyStateText, filters, activeFilters, defaultActiveFilters, onActiveFiltersChange, fullWidth, className, ...rest }: CalendarBoardProps): JSX_2.Element;
|
|
176
|
+
export { CalendarBoard }
|
|
177
|
+
export { CalendarBoard as MCalendarBoard }
|
|
178
|
+
|
|
179
|
+
declare type CalendarBoardLocale = 'pl' | 'en';
|
|
180
|
+
export { CalendarBoardLocale }
|
|
181
|
+
export { CalendarBoardLocale as MCalendarBoardLocale }
|
|
182
|
+
|
|
183
|
+
declare interface CalendarBoardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
184
|
+
month?: Date;
|
|
185
|
+
defaultMonth?: Date;
|
|
186
|
+
onMonthChange?: (month: Date) => void;
|
|
187
|
+
events?: CalendarEvent[];
|
|
188
|
+
locale?: CalendarBoardLocale;
|
|
189
|
+
weekStartsOn?: 0 | 1;
|
|
190
|
+
view?: CalendarBoardView;
|
|
191
|
+
defaultView?: CalendarBoardView;
|
|
192
|
+
views?: CalendarBoardView[];
|
|
193
|
+
onViewChange?: (view: CalendarBoardView) => void;
|
|
194
|
+
selectedDate?: Date | string | null;
|
|
195
|
+
defaultSelectedDate?: Date | string | null;
|
|
196
|
+
onDayClick?: (day: Date, events: CalendarEvent[]) => void;
|
|
197
|
+
dayBadge?: (day: Date, events: CalendarEvent[]) => ReactNode;
|
|
198
|
+
renderDayCell?: (day: Date, context: CalendarDayRenderContext) => ReactNode;
|
|
199
|
+
renderEventItem?: (event: CalendarEvent) => ReactNode;
|
|
200
|
+
detailsTrigger?: CalendarDetailsTrigger;
|
|
201
|
+
detailsMode?: CalendarDetailsMode;
|
|
202
|
+
showTimeline?: boolean;
|
|
203
|
+
timelineStartHour?: number;
|
|
204
|
+
timelineEndHour?: number;
|
|
205
|
+
emptyStateText?: string;
|
|
206
|
+
filters?: CalendarFilterOption[];
|
|
207
|
+
activeFilters?: string[];
|
|
208
|
+
defaultActiveFilters?: string[];
|
|
209
|
+
onActiveFiltersChange?: (activeFilters: string[]) => void;
|
|
210
|
+
fullWidth?: boolean;
|
|
211
|
+
}
|
|
212
|
+
export { CalendarBoardProps }
|
|
213
|
+
export { CalendarBoardProps as MCalendarBoardProps }
|
|
214
|
+
|
|
215
|
+
declare type CalendarBoardView = 'month' | 'week';
|
|
216
|
+
export { CalendarBoardView }
|
|
217
|
+
export { CalendarBoardView as MCalendarBoardView }
|
|
218
|
+
|
|
219
|
+
declare function CalendarDayCell({ date, events, badge, markers, isToday, isSelected, isOutsideMonth, className, children, ...rest }: CalendarDayCellProps): JSX_2.Element;
|
|
220
|
+
export { CalendarDayCell }
|
|
221
|
+
export { CalendarDayCell as MCalendarDayCell }
|
|
222
|
+
|
|
223
|
+
declare interface CalendarDayCellProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'> {
|
|
224
|
+
date: Date;
|
|
225
|
+
events?: CalendarEvent[];
|
|
226
|
+
badge?: ReactNode;
|
|
227
|
+
markers?: ReactNode;
|
|
228
|
+
isToday?: boolean;
|
|
229
|
+
isSelected?: boolean;
|
|
230
|
+
isOutsideMonth?: boolean;
|
|
231
|
+
children?: ReactNode;
|
|
232
|
+
}
|
|
233
|
+
export { CalendarDayCellProps }
|
|
234
|
+
export { CalendarDayCellProps as MCalendarDayCellProps }
|
|
235
|
+
|
|
236
|
+
declare interface CalendarDayRenderContext {
|
|
237
|
+
date: Date;
|
|
238
|
+
events: CalendarEvent[];
|
|
239
|
+
badge: ReactNode;
|
|
240
|
+
isToday: boolean;
|
|
241
|
+
isSelected: boolean;
|
|
242
|
+
isOutsideMonth: boolean;
|
|
243
|
+
}
|
|
244
|
+
export { CalendarDayRenderContext }
|
|
245
|
+
export { CalendarDayRenderContext as MCalendarDayRenderContext }
|
|
246
|
+
|
|
247
|
+
declare type CalendarDetailsMode = 'auto' | 'popover' | 'modal';
|
|
248
|
+
export { CalendarDetailsMode }
|
|
249
|
+
export { CalendarDetailsMode as MCalendarDetailsMode }
|
|
250
|
+
|
|
251
|
+
declare type CalendarDetailsTrigger = 'click' | 'hover';
|
|
252
|
+
export { CalendarDetailsTrigger }
|
|
253
|
+
export { CalendarDetailsTrigger as MCalendarDetailsTrigger }
|
|
254
|
+
|
|
255
|
+
declare interface CalendarEvent {
|
|
256
|
+
id: string;
|
|
257
|
+
title: string;
|
|
258
|
+
description?: string;
|
|
259
|
+
date: string | Date;
|
|
260
|
+
startTime?: string;
|
|
261
|
+
endTime?: string;
|
|
262
|
+
type?: string;
|
|
263
|
+
status?: CalendarEventStatus;
|
|
264
|
+
color?: string;
|
|
265
|
+
badgeLabel?: string;
|
|
266
|
+
user?: CalendarEventUser;
|
|
267
|
+
meta?: Record<string, unknown>;
|
|
268
|
+
}
|
|
269
|
+
export { CalendarEvent }
|
|
270
|
+
export { CalendarEvent as MCalendarEvent }
|
|
271
|
+
|
|
272
|
+
declare function CalendarEventItem({ event, locale, className, currentDate, ...rest }: CalendarEventItemProps): JSX_2.Element;
|
|
273
|
+
export { CalendarEventItem }
|
|
274
|
+
export { CalendarEventItem as MCalendarEventItem }
|
|
56
275
|
|
|
57
|
-
|
|
276
|
+
declare interface CalendarEventItemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
277
|
+
event: CalendarEvent;
|
|
278
|
+
locale?: CalendarBoardLocale;
|
|
279
|
+
currentDate?: Date;
|
|
280
|
+
}
|
|
281
|
+
export { CalendarEventItemProps }
|
|
282
|
+
export { CalendarEventItemProps as MCalendarEventItemProps }
|
|
283
|
+
|
|
284
|
+
declare function CalendarEventList({ events, locale, currentDate, emptyStateText, renderEventItem, className, ...rest }: CalendarEventListProps): JSX_2.Element;
|
|
285
|
+
export { CalendarEventList }
|
|
286
|
+
export { CalendarEventList as MCalendarEventList }
|
|
287
|
+
|
|
288
|
+
declare interface CalendarEventListProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
289
|
+
events: CalendarEvent[];
|
|
290
|
+
locale?: CalendarBoardLocale;
|
|
291
|
+
currentDate?: Date;
|
|
292
|
+
emptyStateText?: string;
|
|
293
|
+
renderEventItem?: (event: CalendarEvent) => ReactNode;
|
|
294
|
+
}
|
|
295
|
+
export { CalendarEventListProps }
|
|
296
|
+
export { CalendarEventListProps as MCalendarEventListProps }
|
|
297
|
+
|
|
298
|
+
declare function CalendarEventPopover({ open, anchorRef, onClose, onPointerEnter, onPointerLeave, date, events, locale, timelineStartHour, timelineEndHour, showTimeline, emptyStateText, renderEventItem, className, style, }: CalendarEventPopoverProps): JSX_2.Element;
|
|
299
|
+
export { CalendarEventPopover }
|
|
300
|
+
export { CalendarEventPopover as MCalendarEventPopover }
|
|
301
|
+
|
|
302
|
+
declare interface CalendarEventPopoverProps {
|
|
303
|
+
open: boolean;
|
|
304
|
+
anchorRef: RefObject<HTMLElement | null>;
|
|
305
|
+
onClose: () => void;
|
|
306
|
+
onPointerEnter?: () => void;
|
|
307
|
+
onPointerLeave?: () => void;
|
|
308
|
+
date: Date | null;
|
|
309
|
+
events: CalendarEvent[];
|
|
310
|
+
locale?: CalendarBoardLocale;
|
|
311
|
+
timelineStartHour?: number;
|
|
312
|
+
timelineEndHour?: number;
|
|
313
|
+
showTimeline?: boolean;
|
|
314
|
+
emptyStateText?: string;
|
|
315
|
+
className?: string;
|
|
316
|
+
style?: CSSProperties;
|
|
317
|
+
renderEventItem?: (event: CalendarEvent) => ReactNode;
|
|
318
|
+
}
|
|
319
|
+
export { CalendarEventPopoverProps }
|
|
320
|
+
export { CalendarEventPopoverProps as MCalendarEventPopoverProps }
|
|
321
|
+
|
|
322
|
+
declare type CalendarEventStatus = 'planned' | 'active' | 'done' | 'cancelled';
|
|
323
|
+
export { CalendarEventStatus }
|
|
324
|
+
export { CalendarEventStatus as MCalendarEventStatus }
|
|
325
|
+
|
|
326
|
+
declare interface CalendarEventUser {
|
|
327
|
+
id: string;
|
|
328
|
+
name: string;
|
|
329
|
+
avatar?: string;
|
|
330
|
+
color?: string;
|
|
331
|
+
}
|
|
332
|
+
export { CalendarEventUser }
|
|
333
|
+
export { CalendarEventUser as MCalendarEventUser }
|
|
334
|
+
|
|
335
|
+
declare interface CalendarFilterOption {
|
|
336
|
+
id: string;
|
|
337
|
+
label: string;
|
|
338
|
+
color?: string;
|
|
339
|
+
predicate: (event: CalendarEvent) => boolean;
|
|
340
|
+
}
|
|
341
|
+
export { CalendarFilterOption }
|
|
342
|
+
export { CalendarFilterOption as MCalendarFilterOption }
|
|
343
|
+
|
|
344
|
+
declare function CalendarTimeline({ date, events, locale, startHour, endHour, emptyStateText, className, ...rest }: CalendarTimelineProps): JSX_2.Element;
|
|
345
|
+
export { CalendarTimeline }
|
|
346
|
+
export { CalendarTimeline as MCalendarTimeline }
|
|
347
|
+
|
|
348
|
+
declare interface CalendarTimelineProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
349
|
+
date: Date;
|
|
350
|
+
events: CalendarEvent[];
|
|
351
|
+
locale?: CalendarBoardLocale;
|
|
352
|
+
startHour?: number;
|
|
353
|
+
endHour?: number;
|
|
354
|
+
emptyStateText?: string;
|
|
355
|
+
}
|
|
356
|
+
export { CalendarTimelineProps }
|
|
357
|
+
export { CalendarTimelineProps as MCalendarTimelineProps }
|
|
358
|
+
|
|
359
|
+
declare type CalendarTimelineSlotState = 'past' | 'active' | 'upcoming';
|
|
360
|
+
export { CalendarTimelineSlotState }
|
|
361
|
+
export { CalendarTimelineSlotState as MCalendarTimelineSlotState }
|
|
58
362
|
|
|
59
363
|
export declare function capitalizeWords(value: string): string;
|
|
60
364
|
|
|
61
|
-
|
|
365
|
+
declare function Card({ interactive, tone, padded, color, fcolor, clickEffect, rippleColor, className, children, onPointerDown, ...rest }: CardProps): JSX_2.Element;
|
|
366
|
+
export { Card }
|
|
367
|
+
export { Card as MCard }
|
|
368
|
+
|
|
369
|
+
declare function CardBody({ className, children, ...rest }: CardSectionProps): JSX_2.Element;
|
|
370
|
+
export { CardBody }
|
|
371
|
+
export { CardBody as MCardBody }
|
|
372
|
+
|
|
373
|
+
declare function CardFooter({ className, children, ...rest }: CardSectionProps): JSX_2.Element;
|
|
374
|
+
export { CardFooter }
|
|
375
|
+
export { CardFooter as MCardFooter }
|
|
62
376
|
|
|
63
|
-
|
|
377
|
+
declare function CardHeader({ className, children, ...rest }: CardSectionProps): JSX_2.Element;
|
|
378
|
+
export { CardHeader }
|
|
379
|
+
export { CardHeader as MCardHeader }
|
|
380
|
+
|
|
381
|
+
declare interface CardProps extends Omit<SurfaceProps, 'children'> {
|
|
382
|
+
interactive?: boolean;
|
|
383
|
+
color?: MineralColor;
|
|
384
|
+
fcolor?: MineralFontColor;
|
|
385
|
+
clickEffect?: MineralClickEffect;
|
|
386
|
+
rippleColor?: string;
|
|
387
|
+
children?: ReactNode;
|
|
388
|
+
}
|
|
389
|
+
export { CardProps }
|
|
390
|
+
export { CardProps as MCardProps }
|
|
391
|
+
|
|
392
|
+
declare interface CardSectionProps extends HTMLAttributes<HTMLDivElement> {
|
|
393
|
+
children?: ReactNode;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
declare const Checkbox: ForwardRefExoticComponent<CheckboxProps & RefAttributes<HTMLInputElement>>;
|
|
397
|
+
export { Checkbox }
|
|
398
|
+
export { Checkbox as MCheckbox }
|
|
399
|
+
|
|
400
|
+
declare interface CheckboxProps {
|
|
64
401
|
checked?: boolean;
|
|
65
402
|
defaultChecked?: boolean;
|
|
66
403
|
indeterminate?: boolean;
|
|
@@ -70,32 +407,93 @@ export declare interface CheckboxProps {
|
|
|
70
407
|
disabled?: boolean;
|
|
71
408
|
size?: MineralSize;
|
|
72
409
|
color?: MineralColor;
|
|
410
|
+
fcolor?: MineralFontColor;
|
|
73
411
|
label?: ReactNode;
|
|
74
412
|
labelPosition?: 'right' | 'left';
|
|
75
413
|
error?: boolean;
|
|
76
414
|
errorText?: string;
|
|
77
415
|
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
416
|
+
clickEffect?: MineralClickEffect;
|
|
417
|
+
rippleColor?: string;
|
|
78
418
|
className?: string;
|
|
79
419
|
style?: CSSProperties;
|
|
80
420
|
}
|
|
421
|
+
export { CheckboxProps }
|
|
422
|
+
export { CheckboxProps as MCheckboxProps }
|
|
423
|
+
|
|
424
|
+
declare function cn(...classes: (string | undefined | null | false)[]): string;
|
|
425
|
+
export { cn }
|
|
426
|
+
export { cn as mergeClasses }
|
|
427
|
+
|
|
428
|
+
declare function Code({ color, fcolor, className, children, ...rest }: CodeProps): JSX_2.Element;
|
|
429
|
+
export { Code }
|
|
430
|
+
export { Code as MCode }
|
|
81
431
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
432
|
+
declare interface CodeProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
433
|
+
color?: MineralColor;
|
|
434
|
+
fcolor?: MineralFontColor;
|
|
435
|
+
children?: ReactNode;
|
|
436
|
+
}
|
|
437
|
+
export { CodeProps }
|
|
438
|
+
export { CodeProps as MCodeProps }
|
|
439
|
+
|
|
440
|
+
declare function Collapsible({ title, defaultOpen, open: controlledOpen, onToggle, fcolor, className, children, ...rest }: CollapsibleProps): JSX_2.Element;
|
|
441
|
+
export { Collapsible }
|
|
442
|
+
export { Collapsible as MCollapsible }
|
|
443
|
+
|
|
444
|
+
declare interface CollapsibleProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
445
|
+
title: ReactNode;
|
|
446
|
+
defaultOpen?: boolean;
|
|
447
|
+
open?: boolean;
|
|
448
|
+
onToggle?: (open: boolean) => void;
|
|
449
|
+
fcolor?: MineralFontColor;
|
|
450
|
+
children?: ReactNode;
|
|
451
|
+
}
|
|
452
|
+
export { CollapsibleProps }
|
|
453
|
+
export { CollapsibleProps as MCollapsibleProps }
|
|
87
454
|
|
|
88
455
|
export declare function composeValidators(...validators: ValidatorFn[]): ValidatorFn;
|
|
89
456
|
|
|
457
|
+
declare function Container({ size, padded, spacing, padding, fsize, fcolor, mt, mb, ml, mr, mx, my, pt, pb, pl, pr, px, py, fullWidth, className, style, children, ...rest }: ContainerProps): JSX_2.Element;
|
|
458
|
+
export { Container }
|
|
459
|
+
export { Container as MContainer }
|
|
460
|
+
|
|
461
|
+
declare interface ContainerProps extends HTMLAttributes<HTMLDivElement>, LayoutUtilityProps {
|
|
462
|
+
size?: ContainerSize;
|
|
463
|
+
padded?: boolean;
|
|
464
|
+
children?: ReactNode;
|
|
465
|
+
className?: string;
|
|
466
|
+
style?: CSSProperties;
|
|
467
|
+
}
|
|
468
|
+
export { ContainerProps }
|
|
469
|
+
export { ContainerProps as MContainerProps }
|
|
470
|
+
|
|
471
|
+
export declare type ContainerSize = 'content' | 'wide' | 'full';
|
|
472
|
+
|
|
473
|
+
export declare type CreditCardBrand = 'visa' | 'mastercard' | 'amex' | 'discover' | 'maestro' | 'unknown';
|
|
474
|
+
|
|
475
|
+
export declare interface CreditCardBrandDetails {
|
|
476
|
+
brand: CreditCardBrand;
|
|
477
|
+
label: string;
|
|
478
|
+
iconLabel: string;
|
|
479
|
+
maxLength: number;
|
|
480
|
+
formatGroups: number[];
|
|
481
|
+
regex: RegExp;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
export declare const creditCardBrands: CreditCardBrandDetails[];
|
|
485
|
+
|
|
90
486
|
export declare interface CurrencyFormatOptions {
|
|
91
487
|
decimalSeparator?: '.' | ',';
|
|
92
488
|
thousandSeparator?: ' ' | '.' | ',' | '';
|
|
93
489
|
precision?: number;
|
|
94
490
|
}
|
|
95
491
|
|
|
96
|
-
|
|
492
|
+
declare function DatePicker({ value, defaultValue, onChange, format, locale, min, max, disabledDates, placeholder, disabled, readOnly, name, id, variant, size, fcolor, label, helperText, errorText, error, required, clearable, inline, showTodayButton, firstDayOfWeek, fullWidth, className, style, }: DatePickerProps): JSX_2.Element;
|
|
493
|
+
export { DatePicker }
|
|
494
|
+
export { DatePicker as MDatePicker }
|
|
97
495
|
|
|
98
|
-
|
|
496
|
+
declare interface DatePickerProps {
|
|
99
497
|
value?: Date | string;
|
|
100
498
|
defaultValue?: Date | string;
|
|
101
499
|
onChange?: (date: Date | null) => void;
|
|
@@ -111,6 +509,7 @@ export declare interface DatePickerProps {
|
|
|
111
509
|
id?: string;
|
|
112
510
|
variant?: DatePickerVariant;
|
|
113
511
|
size?: MineralSize;
|
|
512
|
+
fcolor?: MineralFontColor;
|
|
114
513
|
label?: string;
|
|
115
514
|
helperText?: string;
|
|
116
515
|
errorText?: string;
|
|
@@ -124,20 +523,106 @@ export declare interface DatePickerProps {
|
|
|
124
523
|
className?: string;
|
|
125
524
|
style?: CSSProperties;
|
|
126
525
|
}
|
|
526
|
+
export { DatePickerProps }
|
|
527
|
+
export { DatePickerProps as MDatePickerProps }
|
|
528
|
+
|
|
529
|
+
declare type DatePickerVariant = 'outlined' | 'filled' | 'underlined';
|
|
530
|
+
export { DatePickerVariant }
|
|
531
|
+
export { DatePickerVariant as MDatePickerVariant }
|
|
532
|
+
|
|
533
|
+
declare function DateRangePicker({ value, defaultValue, onChange, format, locale, min, max, disabledDates, placeholder, disabled, readOnly, name, id, variant, size, fcolor, label, helperText, errorText, error, required, clearable, inline, showTodayButton, presets, firstDayOfWeek, fullWidth, allowSameDay, className, style, }: DateRangePickerProps): JSX_2.Element;
|
|
534
|
+
export { DateRangePicker }
|
|
535
|
+
export { DateRangePicker as MDateRangePicker }
|
|
536
|
+
|
|
537
|
+
declare interface DateRangePickerProps {
|
|
538
|
+
value?: DateRangeValue;
|
|
539
|
+
defaultValue?: DateRangeValue;
|
|
540
|
+
onChange?: (range: {
|
|
541
|
+
start: Date | null;
|
|
542
|
+
end: Date | null;
|
|
543
|
+
}) => void;
|
|
544
|
+
format?: string;
|
|
545
|
+
locale?: 'pl' | 'en';
|
|
546
|
+
min?: Date | string;
|
|
547
|
+
max?: Date | string;
|
|
548
|
+
disabledDates?: Date[] | ((date: Date) => boolean);
|
|
549
|
+
placeholder?: string;
|
|
550
|
+
disabled?: boolean;
|
|
551
|
+
readOnly?: boolean;
|
|
552
|
+
name?: string;
|
|
553
|
+
id?: string;
|
|
554
|
+
variant?: DateRangePickerVariant;
|
|
555
|
+
size?: MineralSize;
|
|
556
|
+
fcolor?: MineralFontColor;
|
|
557
|
+
label?: string;
|
|
558
|
+
helperText?: string;
|
|
559
|
+
errorText?: string;
|
|
560
|
+
error?: boolean;
|
|
561
|
+
required?: boolean;
|
|
562
|
+
clearable?: boolean;
|
|
563
|
+
inline?: boolean;
|
|
564
|
+
showTodayButton?: boolean;
|
|
565
|
+
presets?: boolean | DateRangePreset[];
|
|
566
|
+
firstDayOfWeek?: 0 | 1;
|
|
567
|
+
fullWidth?: boolean;
|
|
568
|
+
allowSameDay?: boolean;
|
|
569
|
+
className?: string;
|
|
570
|
+
style?: CSSProperties;
|
|
571
|
+
}
|
|
572
|
+
export { DateRangePickerProps }
|
|
573
|
+
export { DateRangePickerProps as MDateRangePickerProps }
|
|
127
574
|
|
|
128
|
-
|
|
575
|
+
declare type DateRangePickerVariant = 'outlined' | 'filled' | 'underlined';
|
|
576
|
+
export { DateRangePickerVariant }
|
|
577
|
+
export { DateRangePickerVariant as MDateRangePickerVariant }
|
|
578
|
+
|
|
579
|
+
declare interface DateRangePreset {
|
|
580
|
+
label: string;
|
|
581
|
+
value: {
|
|
582
|
+
start: Date | string;
|
|
583
|
+
end: Date | string;
|
|
584
|
+
};
|
|
585
|
+
}
|
|
586
|
+
export { DateRangePreset }
|
|
587
|
+
export { DateRangePreset as MDateRangePreset }
|
|
588
|
+
|
|
589
|
+
declare interface DateRangeValue {
|
|
590
|
+
start: Date | string | null;
|
|
591
|
+
end: Date | string | null;
|
|
592
|
+
}
|
|
593
|
+
export { DateRangeValue }
|
|
594
|
+
export { DateRangeValue as MDateRangeValue }
|
|
129
595
|
|
|
130
596
|
export declare function daysInMonth(year: number, month: number): number;
|
|
131
597
|
|
|
132
|
-
export declare
|
|
598
|
+
export declare function detectCardBrand(value: string): CreditCardBrandDetails;
|
|
599
|
+
|
|
600
|
+
declare function Divider({ className, style, ...rest }: DividerProps): JSX_2.Element;
|
|
601
|
+
export { Divider }
|
|
602
|
+
export { Divider as MDivider }
|
|
603
|
+
|
|
604
|
+
declare interface DividerProps extends HTMLAttributes<HTMLHRElement> {
|
|
605
|
+
className?: string;
|
|
606
|
+
style?: CSSProperties;
|
|
607
|
+
}
|
|
608
|
+
export { DividerProps }
|
|
609
|
+
export { DividerProps as MDividerProps }
|
|
610
|
+
|
|
611
|
+
declare interface FieldRegistration {
|
|
133
612
|
name: string;
|
|
134
613
|
validate?: ValidatorFn[];
|
|
135
614
|
required?: boolean;
|
|
136
615
|
}
|
|
616
|
+
export { FieldRegistration }
|
|
617
|
+
export { FieldRegistration as MFieldRegistration }
|
|
137
618
|
|
|
138
619
|
export declare function firstDayOfMonth(year: number, month: number): number;
|
|
139
620
|
|
|
140
|
-
|
|
621
|
+
declare function Form({ initialValues, onSubmit, onChange, validationMode, children, className, style, noValidate, }: FormProps): JSX_2.Element;
|
|
622
|
+
export { Form }
|
|
623
|
+
export { Form as MForm }
|
|
624
|
+
|
|
625
|
+
export declare function formatCardNumber(value: string): string;
|
|
141
626
|
|
|
142
627
|
export declare function formatCurrency(value: string, options?: CurrencyFormatOptions): string;
|
|
143
628
|
|
|
@@ -149,9 +634,11 @@ export declare function formatNIP(value: string): string;
|
|
|
149
634
|
|
|
150
635
|
export declare function formatPhone(value: string, options?: PhoneFormatOptions): string;
|
|
151
636
|
|
|
637
|
+
export declare function formatPostCode(value: string, countryCode?: string): string;
|
|
638
|
+
|
|
152
639
|
export declare function formatTime(hours: number, minutes: number, seconds?: number, showSeconds?: boolean): string;
|
|
153
640
|
|
|
154
|
-
|
|
641
|
+
declare interface FormContextValue {
|
|
155
642
|
values: Record<string, unknown>;
|
|
156
643
|
errors: Record<string, string>;
|
|
157
644
|
touched: Record<string, boolean>;
|
|
@@ -165,21 +652,27 @@ export declare interface FormContextValue {
|
|
|
165
652
|
resetForm: () => void;
|
|
166
653
|
isSubmitting: boolean;
|
|
167
654
|
}
|
|
655
|
+
export { FormContextValue }
|
|
656
|
+
export { FormContextValue as MFormContextValue }
|
|
168
657
|
|
|
169
|
-
|
|
658
|
+
declare interface FormFieldProps {
|
|
170
659
|
name: string;
|
|
171
660
|
validate?: ValidatorFn[];
|
|
172
661
|
required?: boolean;
|
|
173
662
|
children: ReactNode;
|
|
174
663
|
}
|
|
664
|
+
export { FormFieldProps }
|
|
665
|
+
export { FormFieldProps as MFormFieldProps }
|
|
175
666
|
|
|
176
|
-
|
|
667
|
+
declare interface FormHelpers {
|
|
177
668
|
setSubmitting: (isSubmitting: boolean) => void;
|
|
178
669
|
resetForm: () => void;
|
|
179
670
|
setFieldError: (name: string, error: string) => void;
|
|
180
671
|
}
|
|
672
|
+
export { FormHelpers }
|
|
673
|
+
export { FormHelpers as MFormHelpers }
|
|
181
674
|
|
|
182
|
-
|
|
675
|
+
declare interface FormProps {
|
|
183
676
|
initialValues?: Record<string, unknown>;
|
|
184
677
|
onSubmit?: (values: Record<string, unknown>, helpers: FormHelpers) => void | Promise<void>;
|
|
185
678
|
onChange?: (values: Record<string, unknown>) => void;
|
|
@@ -189,16 +682,357 @@ export declare interface FormProps {
|
|
|
189
682
|
style?: CSSProperties;
|
|
190
683
|
noValidate?: boolean;
|
|
191
684
|
}
|
|
685
|
+
export { FormProps }
|
|
686
|
+
export { FormProps as MFormProps }
|
|
192
687
|
|
|
193
688
|
export declare function getDayNames(locale?: 'pl' | 'en'): string[];
|
|
194
689
|
|
|
195
690
|
export declare function getMonthNames(locale?: 'pl' | 'en'): string[];
|
|
196
691
|
|
|
197
|
-
export declare
|
|
692
|
+
export declare function getPostCodeRule(countryCode?: string): PostCodeRule;
|
|
198
693
|
|
|
199
|
-
export declare
|
|
694
|
+
export declare function Grid({ columns, gap, minItemWidth, className, style, children, ...rest }: GridProps): JSX_2.Element;
|
|
200
695
|
|
|
201
|
-
export declare
|
|
696
|
+
export declare type GridColumns = (typeof gridColumnValues)[number];
|
|
697
|
+
|
|
698
|
+
declare const gridColumnValues: readonly [1, 2, 3, 4];
|
|
699
|
+
|
|
700
|
+
export declare interface GridProps extends HTMLAttributes<HTMLDivElement> {
|
|
701
|
+
columns?: GridColumns;
|
|
702
|
+
gap?: StackGap;
|
|
703
|
+
minItemWidth?: string;
|
|
704
|
+
children?: ReactNode;
|
|
705
|
+
className?: string;
|
|
706
|
+
style?: CSSProperties;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
declare function Heading({ level, color, fcolor, className, children, ...rest }: HeadingProps): DetailedReactHTMLElement< {
|
|
710
|
+
onSelect?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
711
|
+
slot?: string | undefined | undefined;
|
|
712
|
+
style?: CSSProperties | undefined;
|
|
713
|
+
title?: string | undefined | undefined;
|
|
714
|
+
hidden?: boolean | undefined | undefined;
|
|
715
|
+
content?: string | undefined | undefined;
|
|
716
|
+
role?: AriaRole | undefined;
|
|
717
|
+
defaultChecked?: boolean | undefined | undefined;
|
|
718
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
719
|
+
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
720
|
+
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
721
|
+
accessKey?: string | undefined | undefined;
|
|
722
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
723
|
+
autoFocus?: boolean | undefined | undefined;
|
|
724
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
725
|
+
contextMenu?: string | undefined | undefined;
|
|
726
|
+
dir?: string | undefined | undefined;
|
|
727
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
728
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
729
|
+
id?: string | undefined | undefined;
|
|
730
|
+
lang?: string | undefined | undefined;
|
|
731
|
+
nonce?: string | undefined | undefined;
|
|
732
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
733
|
+
tabIndex?: number | undefined | undefined;
|
|
734
|
+
translate?: "yes" | "no" | undefined | undefined;
|
|
735
|
+
radioGroup?: string | undefined | undefined;
|
|
736
|
+
about?: string | undefined | undefined;
|
|
737
|
+
datatype?: string | undefined | undefined;
|
|
738
|
+
inlist?: any;
|
|
739
|
+
prefix?: string | undefined | undefined;
|
|
740
|
+
property?: string | undefined | undefined;
|
|
741
|
+
rel?: string | undefined | undefined;
|
|
742
|
+
resource?: string | undefined | undefined;
|
|
743
|
+
rev?: string | undefined | undefined;
|
|
744
|
+
typeof?: string | undefined | undefined;
|
|
745
|
+
vocab?: string | undefined | undefined;
|
|
746
|
+
autoCorrect?: string | undefined | undefined;
|
|
747
|
+
autoSave?: string | undefined | undefined;
|
|
748
|
+
itemProp?: string | undefined | undefined;
|
|
749
|
+
itemScope?: boolean | undefined | undefined;
|
|
750
|
+
itemType?: string | undefined | undefined;
|
|
751
|
+
itemID?: string | undefined | undefined;
|
|
752
|
+
itemRef?: string | undefined | undefined;
|
|
753
|
+
results?: number | undefined | undefined;
|
|
754
|
+
security?: string | undefined | undefined;
|
|
755
|
+
unselectable?: "on" | "off" | undefined | undefined;
|
|
756
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
757
|
+
is?: string | undefined | undefined;
|
|
758
|
+
exportparts?: string | undefined | undefined;
|
|
759
|
+
part?: string | undefined | undefined;
|
|
760
|
+
"aria-activedescendant"?: string | undefined | undefined;
|
|
761
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
762
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
763
|
+
"aria-braillelabel"?: string | undefined | undefined;
|
|
764
|
+
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
765
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
766
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
767
|
+
"aria-colcount"?: number | undefined | undefined;
|
|
768
|
+
"aria-colindex"?: number | undefined | undefined;
|
|
769
|
+
"aria-colindextext"?: string | undefined | undefined;
|
|
770
|
+
"aria-colspan"?: number | undefined | undefined;
|
|
771
|
+
"aria-controls"?: string | undefined | undefined;
|
|
772
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
773
|
+
"aria-describedby"?: string | undefined | undefined;
|
|
774
|
+
"aria-description"?: string | undefined | undefined;
|
|
775
|
+
"aria-details"?: string | undefined | undefined;
|
|
776
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
777
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
778
|
+
"aria-errormessage"?: string | undefined | undefined;
|
|
779
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
780
|
+
"aria-flowto"?: string | undefined | undefined;
|
|
781
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
782
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
783
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
784
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
785
|
+
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
786
|
+
"aria-label"?: string | undefined | undefined;
|
|
787
|
+
"aria-labelledby"?: string | undefined | undefined;
|
|
788
|
+
"aria-level"?: number | undefined | undefined;
|
|
789
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
790
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
791
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
792
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
793
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
794
|
+
"aria-owns"?: string | undefined | undefined;
|
|
795
|
+
"aria-placeholder"?: string | undefined | undefined;
|
|
796
|
+
"aria-posinset"?: number | undefined | undefined;
|
|
797
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
798
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
799
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
800
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
801
|
+
"aria-roledescription"?: string | undefined | undefined;
|
|
802
|
+
"aria-rowcount"?: number | undefined | undefined;
|
|
803
|
+
"aria-rowindex"?: number | undefined | undefined;
|
|
804
|
+
"aria-rowindextext"?: string | undefined | undefined;
|
|
805
|
+
"aria-rowspan"?: number | undefined | undefined;
|
|
806
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
807
|
+
"aria-setsize"?: number | undefined | undefined;
|
|
808
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
809
|
+
"aria-valuemax"?: number | undefined | undefined;
|
|
810
|
+
"aria-valuemin"?: number | undefined | undefined;
|
|
811
|
+
"aria-valuenow"?: number | undefined | undefined;
|
|
812
|
+
"aria-valuetext"?: string | undefined | undefined;
|
|
813
|
+
dangerouslySetInnerHTML?: {
|
|
814
|
+
__html: string | TrustedHTML;
|
|
815
|
+
} | undefined | undefined;
|
|
816
|
+
onCopy?: ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
817
|
+
onCopyCapture?: ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
818
|
+
onCut?: ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
819
|
+
onCutCapture?: ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
820
|
+
onPaste?: ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
821
|
+
onPasteCapture?: ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
822
|
+
onCompositionEnd?: CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
823
|
+
onCompositionEndCapture?: CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
824
|
+
onCompositionStart?: CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
825
|
+
onCompositionStartCapture?: CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
826
|
+
onCompositionUpdate?: CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
827
|
+
onCompositionUpdateCapture?: CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
828
|
+
onFocus?: FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
829
|
+
onFocusCapture?: FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
830
|
+
onBlur?: FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
831
|
+
onBlurCapture?: FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
832
|
+
onChange?: FormEventHandler<HTMLHeadingElement> | undefined;
|
|
833
|
+
onChangeCapture?: FormEventHandler<HTMLHeadingElement> | undefined;
|
|
834
|
+
onBeforeInput?: InputEventHandler<HTMLHeadingElement> | undefined;
|
|
835
|
+
onBeforeInputCapture?: FormEventHandler<HTMLHeadingElement> | undefined;
|
|
836
|
+
onInput?: FormEventHandler<HTMLHeadingElement> | undefined;
|
|
837
|
+
onInputCapture?: FormEventHandler<HTMLHeadingElement> | undefined;
|
|
838
|
+
onReset?: FormEventHandler<HTMLHeadingElement> | undefined;
|
|
839
|
+
onResetCapture?: FormEventHandler<HTMLHeadingElement> | undefined;
|
|
840
|
+
onSubmit?: FormEventHandler<HTMLHeadingElement> | undefined;
|
|
841
|
+
onSubmitCapture?: FormEventHandler<HTMLHeadingElement> | undefined;
|
|
842
|
+
onInvalid?: FormEventHandler<HTMLHeadingElement> | undefined;
|
|
843
|
+
onInvalidCapture?: FormEventHandler<HTMLHeadingElement> | undefined;
|
|
844
|
+
onLoad?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
845
|
+
onLoadCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
846
|
+
onError?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
847
|
+
onErrorCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
848
|
+
onKeyDown?: KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
849
|
+
onKeyDownCapture?: KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
850
|
+
onKeyPress?: KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
851
|
+
onKeyPressCapture?: KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
852
|
+
onKeyUp?: KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
853
|
+
onKeyUpCapture?: KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
854
|
+
onAbort?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
855
|
+
onAbortCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
856
|
+
onCanPlay?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
857
|
+
onCanPlayCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
858
|
+
onCanPlayThrough?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
859
|
+
onCanPlayThroughCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
860
|
+
onDurationChange?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
861
|
+
onDurationChangeCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
862
|
+
onEmptied?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
863
|
+
onEmptiedCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
864
|
+
onEncrypted?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
865
|
+
onEncryptedCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
866
|
+
onEnded?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
867
|
+
onEndedCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
868
|
+
onLoadedData?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
869
|
+
onLoadedDataCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
870
|
+
onLoadedMetadata?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
871
|
+
onLoadedMetadataCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
872
|
+
onLoadStart?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
873
|
+
onLoadStartCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
874
|
+
onPause?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
875
|
+
onPauseCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
876
|
+
onPlay?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
877
|
+
onPlayCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
878
|
+
onPlaying?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
879
|
+
onPlayingCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
880
|
+
onProgress?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
881
|
+
onProgressCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
882
|
+
onRateChange?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
883
|
+
onRateChangeCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
884
|
+
onSeeked?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
885
|
+
onSeekedCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
886
|
+
onSeeking?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
887
|
+
onSeekingCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
888
|
+
onStalled?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
889
|
+
onStalledCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
890
|
+
onSuspend?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
891
|
+
onSuspendCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
892
|
+
onTimeUpdate?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
893
|
+
onTimeUpdateCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
894
|
+
onVolumeChange?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
895
|
+
onVolumeChangeCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
896
|
+
onWaiting?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
897
|
+
onWaitingCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
898
|
+
onAuxClick?: MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
899
|
+
onAuxClickCapture?: MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
900
|
+
onClick?: MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
901
|
+
onClickCapture?: MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
902
|
+
onContextMenu?: MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
903
|
+
onContextMenuCapture?: MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
904
|
+
onDoubleClick?: MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
905
|
+
onDoubleClickCapture?: MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
906
|
+
onDrag?: DragEventHandler<HTMLHeadingElement> | undefined;
|
|
907
|
+
onDragCapture?: DragEventHandler<HTMLHeadingElement> | undefined;
|
|
908
|
+
onDragEnd?: DragEventHandler<HTMLHeadingElement> | undefined;
|
|
909
|
+
onDragEndCapture?: DragEventHandler<HTMLHeadingElement> | undefined;
|
|
910
|
+
onDragEnter?: DragEventHandler<HTMLHeadingElement> | undefined;
|
|
911
|
+
onDragEnterCapture?: DragEventHandler<HTMLHeadingElement> | undefined;
|
|
912
|
+
onDragExit?: DragEventHandler<HTMLHeadingElement> | undefined;
|
|
913
|
+
onDragExitCapture?: DragEventHandler<HTMLHeadingElement> | undefined;
|
|
914
|
+
onDragLeave?: DragEventHandler<HTMLHeadingElement> | undefined;
|
|
915
|
+
onDragLeaveCapture?: DragEventHandler<HTMLHeadingElement> | undefined;
|
|
916
|
+
onDragOver?: DragEventHandler<HTMLHeadingElement> | undefined;
|
|
917
|
+
onDragOverCapture?: DragEventHandler<HTMLHeadingElement> | undefined;
|
|
918
|
+
onDragStart?: DragEventHandler<HTMLHeadingElement> | undefined;
|
|
919
|
+
onDragStartCapture?: DragEventHandler<HTMLHeadingElement> | undefined;
|
|
920
|
+
onDrop?: DragEventHandler<HTMLHeadingElement> | undefined;
|
|
921
|
+
onDropCapture?: DragEventHandler<HTMLHeadingElement> | undefined;
|
|
922
|
+
onMouseDown?: MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
923
|
+
onMouseDownCapture?: MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
924
|
+
onMouseEnter?: MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
925
|
+
onMouseLeave?: MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
926
|
+
onMouseMove?: MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
927
|
+
onMouseMoveCapture?: MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
928
|
+
onMouseOut?: MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
929
|
+
onMouseOutCapture?: MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
930
|
+
onMouseOver?: MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
931
|
+
onMouseOverCapture?: MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
932
|
+
onMouseUp?: MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
933
|
+
onMouseUpCapture?: MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
934
|
+
onSelectCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
935
|
+
onTouchCancel?: TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
936
|
+
onTouchCancelCapture?: TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
937
|
+
onTouchEnd?: TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
938
|
+
onTouchEndCapture?: TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
939
|
+
onTouchMove?: TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
940
|
+
onTouchMoveCapture?: TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
941
|
+
onTouchStart?: TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
942
|
+
onTouchStartCapture?: TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
943
|
+
onPointerDown?: PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
944
|
+
onPointerDownCapture?: PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
945
|
+
onPointerMove?: PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
946
|
+
onPointerMoveCapture?: PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
947
|
+
onPointerUp?: PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
948
|
+
onPointerUpCapture?: PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
949
|
+
onPointerCancel?: PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
950
|
+
onPointerCancelCapture?: PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
951
|
+
onPointerEnter?: PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
952
|
+
onPointerLeave?: PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
953
|
+
onPointerOver?: PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
954
|
+
onPointerOverCapture?: PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
955
|
+
onPointerOut?: PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
956
|
+
onPointerOutCapture?: PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
957
|
+
onGotPointerCapture?: PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
958
|
+
onGotPointerCaptureCapture?: PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
959
|
+
onLostPointerCapture?: PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
960
|
+
onLostPointerCaptureCapture?: PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
961
|
+
onScroll?: UIEventHandler<HTMLHeadingElement> | undefined;
|
|
962
|
+
onScrollCapture?: UIEventHandler<HTMLHeadingElement> | undefined;
|
|
963
|
+
onWheel?: WheelEventHandler<HTMLHeadingElement> | undefined;
|
|
964
|
+
onWheelCapture?: WheelEventHandler<HTMLHeadingElement> | undefined;
|
|
965
|
+
onAnimationStart?: AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
966
|
+
onAnimationStartCapture?: AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
967
|
+
onAnimationEnd?: AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
968
|
+
onAnimationEndCapture?: AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
969
|
+
onAnimationIteration?: AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
970
|
+
onAnimationIterationCapture?: AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
971
|
+
onTransitionEnd?: TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
972
|
+
onTransitionEndCapture?: TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
973
|
+
className: string;
|
|
974
|
+
}, HTMLElement>;
|
|
975
|
+
export { Heading }
|
|
976
|
+
export { Heading as MHeading }
|
|
977
|
+
|
|
978
|
+
export declare type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
979
|
+
|
|
980
|
+
declare interface HeadingProps extends Omit<HTMLAttributes<HTMLHeadingElement>, 'color'> {
|
|
981
|
+
level?: HeadingLevel;
|
|
982
|
+
color?: MineralColor;
|
|
983
|
+
fcolor?: MineralFontColor;
|
|
984
|
+
children?: ReactNode;
|
|
985
|
+
}
|
|
986
|
+
export { HeadingProps }
|
|
987
|
+
export { HeadingProps as MHeadingProps }
|
|
988
|
+
|
|
989
|
+
declare function Inline({ gap, align, justify, wrap, spacing, padding, fsize, fcolor, mt, mb, ml, mr, mx, my, pt, pb, pl, pr, px, py, fullWidth, className, style, children, ...rest }: InlineProps): JSX_2.Element;
|
|
990
|
+
export { Inline }
|
|
991
|
+
export { Inline as MInline }
|
|
992
|
+
|
|
993
|
+
export declare type InlineAlign = 'start' | 'center' | 'end' | 'stretch';
|
|
994
|
+
|
|
995
|
+
export declare type InlineJustify = 'start' | 'center' | 'end' | 'between';
|
|
996
|
+
|
|
997
|
+
declare interface InlineProps extends HTMLAttributes<HTMLDivElement>, LayoutUtilityProps {
|
|
998
|
+
gap?: StackGap;
|
|
999
|
+
align?: InlineAlign;
|
|
1000
|
+
justify?: InlineJustify;
|
|
1001
|
+
wrap?: InlineWrap;
|
|
1002
|
+
children?: ReactNode;
|
|
1003
|
+
className?: string;
|
|
1004
|
+
style?: CSSProperties;
|
|
1005
|
+
}
|
|
1006
|
+
export { InlineProps }
|
|
1007
|
+
export { InlineProps as MInlineProps }
|
|
1008
|
+
|
|
1009
|
+
export declare type InlineWrap = 'wrap' | 'nowrap';
|
|
1010
|
+
|
|
1011
|
+
declare const Input: ForwardRefExoticComponent<InputProps & RefAttributes<HTMLInputElement>>;
|
|
1012
|
+
export { Input }
|
|
1013
|
+
export { Input as MInput }
|
|
1014
|
+
|
|
1015
|
+
declare const InputCreditCard: ForwardRefExoticComponent<InputCreditCardProps & RefAttributes<HTMLInputElement>>;
|
|
1016
|
+
export { InputCreditCard }
|
|
1017
|
+
export { InputCreditCard as MInputCreditCard }
|
|
1018
|
+
|
|
1019
|
+
declare interface InputCreditCardProps extends Omit<InputProps, 'type' | 'inputMode' | 'startIcon' | 'endIcon'> {
|
|
1020
|
+
validateOnBlur?: boolean;
|
|
1021
|
+
validateOnChange?: boolean;
|
|
1022
|
+
showBrandIcon?: boolean;
|
|
1023
|
+
showValidIcon?: boolean;
|
|
1024
|
+
onValidationChange?: (result: ValidationResult) => void;
|
|
1025
|
+
onCardBrandChange?: (brand: CreditCardBrand) => void;
|
|
1026
|
+
onValueChange?: (rawValue: string, formattedValue: string, brand: CreditCardBrand) => void;
|
|
1027
|
+
}
|
|
1028
|
+
export { InputCreditCardProps }
|
|
1029
|
+
export { InputCreditCardProps as MInputCreditCardProps }
|
|
1030
|
+
|
|
1031
|
+
declare const InputCurrency: ForwardRefExoticComponent<InputCurrencyProps & RefAttributes<HTMLInputElement>>;
|
|
1032
|
+
export { InputCurrency }
|
|
1033
|
+
export { InputCurrency as MInputCurrency }
|
|
1034
|
+
|
|
1035
|
+
declare interface InputCurrencyProps extends Omit<InputProps, 'type'> {
|
|
202
1036
|
currency?: string;
|
|
203
1037
|
currencySymbol?: string;
|
|
204
1038
|
currencyPosition?: 'start' | 'end';
|
|
@@ -210,19 +1044,52 @@ export declare interface InputCurrencyProps extends Omit<InputProps, 'type'> {
|
|
|
210
1044
|
allowNegative?: boolean;
|
|
211
1045
|
onValueChange?: (value: number | null) => void;
|
|
212
1046
|
}
|
|
1047
|
+
export { InputCurrencyProps }
|
|
1048
|
+
export { InputCurrencyProps as MInputCurrencyProps }
|
|
213
1049
|
|
|
214
|
-
|
|
1050
|
+
declare const InputEmail: ForwardRefExoticComponent<InputEmailProps & RefAttributes<HTMLInputElement>>;
|
|
1051
|
+
export { InputEmail }
|
|
1052
|
+
export { InputEmail as MInputEmail }
|
|
215
1053
|
|
|
216
|
-
|
|
1054
|
+
declare interface InputEmailProps extends Omit<InputProps, 'type'> {
|
|
217
1055
|
validateOnBlur?: boolean;
|
|
218
1056
|
validateOnChange?: boolean;
|
|
219
1057
|
showValidIcon?: boolean;
|
|
220
1058
|
onValidationChange?: (result: ValidationResult) => void;
|
|
221
1059
|
}
|
|
1060
|
+
export { InputEmailProps }
|
|
1061
|
+
export { InputEmailProps as MInputEmailProps }
|
|
1062
|
+
|
|
1063
|
+
declare const InputGroup: ForwardRefExoticComponent<InputGroupProps & RefAttributes<HTMLInputElement>>;
|
|
1064
|
+
export { InputGroup }
|
|
1065
|
+
export { InputGroup as MInputGroup }
|
|
1066
|
+
|
|
1067
|
+
declare interface InputGroupAddon {
|
|
1068
|
+
type: 'text' | 'icon' | 'button' | 'checkbox';
|
|
1069
|
+
content: ReactNode;
|
|
1070
|
+
onClick?: () => void;
|
|
1071
|
+
checked?: boolean;
|
|
1072
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
1073
|
+
}
|
|
1074
|
+
export { InputGroupAddon }
|
|
1075
|
+
export { InputGroupAddon as MInputGroupAddon }
|
|
1076
|
+
|
|
1077
|
+
declare interface InputGroupProps extends Omit<InputProps, 'startIcon' | 'endIcon' | 'rounded'> {
|
|
1078
|
+
prepend?: InputGroupSlot | InputGroupSlot[];
|
|
1079
|
+
append?: InputGroupSlot | InputGroupSlot[];
|
|
1080
|
+
}
|
|
1081
|
+
export { InputGroupProps }
|
|
1082
|
+
export { InputGroupProps as MInputGroupProps }
|
|
222
1083
|
|
|
223
|
-
|
|
1084
|
+
declare type InputGroupSlot = InputGroupAddon | ReactNode;
|
|
1085
|
+
export { InputGroupSlot }
|
|
1086
|
+
export { InputGroupSlot as MInputGroupSlot }
|
|
224
1087
|
|
|
225
|
-
|
|
1088
|
+
declare const InputIBAN: ForwardRefExoticComponent<InputIBANProps & RefAttributes<HTMLInputElement>>;
|
|
1089
|
+
export { InputIBAN }
|
|
1090
|
+
export { InputIBAN as MInputIBAN }
|
|
1091
|
+
|
|
1092
|
+
declare interface InputIBANProps extends Omit<InputProps, 'type'> {
|
|
226
1093
|
countryCode?: string;
|
|
227
1094
|
formatOnChange?: boolean;
|
|
228
1095
|
validateOnBlur?: boolean;
|
|
@@ -230,10 +1097,14 @@ export declare interface InputIBANProps extends Omit<InputProps, 'type'> {
|
|
|
230
1097
|
onValidationChange?: (result: ValidationResult) => void;
|
|
231
1098
|
onValueChange?: (rawValue: string, formattedValue: string) => void;
|
|
232
1099
|
}
|
|
1100
|
+
export { InputIBANProps }
|
|
1101
|
+
export { InputIBANProps as MInputIBANProps }
|
|
233
1102
|
|
|
234
|
-
|
|
1103
|
+
declare const InputName: ForwardRefExoticComponent<InputNameProps & RefAttributes<HTMLInputElement>>;
|
|
1104
|
+
export { InputName }
|
|
1105
|
+
export { InputName as MInputName }
|
|
235
1106
|
|
|
236
|
-
|
|
1107
|
+
declare interface InputNameProps extends Omit<InputProps, 'type'> {
|
|
237
1108
|
autoCapitalize?: boolean;
|
|
238
1109
|
allowNumbers?: boolean;
|
|
239
1110
|
allowSpecialChars?: boolean;
|
|
@@ -241,10 +1112,14 @@ export declare interface InputNameProps extends Omit<InputProps, 'type'> {
|
|
|
241
1112
|
validateOnBlur?: boolean;
|
|
242
1113
|
onValidationChange?: (result: ValidationResult) => void;
|
|
243
1114
|
}
|
|
1115
|
+
export { InputNameProps }
|
|
1116
|
+
export { InputNameProps as MInputNameProps }
|
|
244
1117
|
|
|
245
|
-
|
|
1118
|
+
declare const InputNumber: ForwardRefExoticComponent<InputNumberProps & RefAttributes<HTMLInputElement>>;
|
|
1119
|
+
export { InputNumber }
|
|
1120
|
+
export { InputNumber as MInputNumber }
|
|
246
1121
|
|
|
247
|
-
|
|
1122
|
+
declare interface InputNumberProps extends Omit<InputProps, 'type'> {
|
|
248
1123
|
min?: number;
|
|
249
1124
|
max?: number;
|
|
250
1125
|
step?: number;
|
|
@@ -253,18 +1128,26 @@ export declare interface InputNumberProps extends Omit<InputProps, 'type'> {
|
|
|
253
1128
|
allowNegative?: boolean;
|
|
254
1129
|
onValueChange?: (value: number | null) => void;
|
|
255
1130
|
}
|
|
1131
|
+
export { InputNumberProps }
|
|
1132
|
+
export { InputNumberProps as MInputNumberProps }
|
|
256
1133
|
|
|
257
|
-
|
|
1134
|
+
declare const InputPassword: ForwardRefExoticComponent<InputPasswordProps & RefAttributes<HTMLInputElement>>;
|
|
1135
|
+
export { InputPassword }
|
|
1136
|
+
export { InputPassword as MInputPassword }
|
|
258
1137
|
|
|
259
|
-
|
|
1138
|
+
declare interface InputPasswordProps extends Omit<InputProps, 'type' | 'endIcon'> {
|
|
260
1139
|
showToggle?: boolean;
|
|
261
1140
|
showStrength?: boolean;
|
|
262
1141
|
onStrengthChange?: (strength: PasswordStrength) => void;
|
|
263
1142
|
}
|
|
1143
|
+
export { InputPasswordProps }
|
|
1144
|
+
export { InputPasswordProps as MInputPasswordProps }
|
|
264
1145
|
|
|
265
|
-
|
|
1146
|
+
declare const InputPhone: ForwardRefExoticComponent<InputPhoneProps & RefAttributes<HTMLInputElement>>;
|
|
1147
|
+
export { InputPhone }
|
|
1148
|
+
export { InputPhone as MInputPhone }
|
|
266
1149
|
|
|
267
|
-
|
|
1150
|
+
declare interface InputPhoneProps extends Omit<InputProps, 'type'> {
|
|
268
1151
|
countryCode?: string;
|
|
269
1152
|
showCountryCode?: boolean;
|
|
270
1153
|
formatOnChange?: boolean;
|
|
@@ -272,8 +1155,27 @@ export declare interface InputPhoneProps extends Omit<InputProps, 'type'> {
|
|
|
272
1155
|
onValidationChange?: (result: ValidationResult) => void;
|
|
273
1156
|
onValueChange?: (rawValue: string, formattedValue: string) => void;
|
|
274
1157
|
}
|
|
1158
|
+
export { InputPhoneProps }
|
|
1159
|
+
export { InputPhoneProps as MInputPhoneProps }
|
|
1160
|
+
|
|
1161
|
+
declare const InputPostCode: ForwardRefExoticComponent<InputPostCodeProps & RefAttributes<HTMLInputElement>>;
|
|
1162
|
+
export { InputPostCode }
|
|
1163
|
+
export { InputPostCode as MInputPostCode }
|
|
1164
|
+
|
|
1165
|
+
declare interface InputPostCodeProps extends Omit<InputGroupProps, 'prepend' | 'type' | 'inputMode'> {
|
|
1166
|
+
country?: string;
|
|
1167
|
+
defaultCountry?: string;
|
|
1168
|
+
selectableCountry?: boolean;
|
|
1169
|
+
validateOnBlur?: boolean;
|
|
1170
|
+
validateOnChange?: boolean;
|
|
1171
|
+
onCountryChange?: (countryCode: string) => void;
|
|
1172
|
+
onValidationChange?: (result: ValidationResult) => void;
|
|
1173
|
+
onValueChange?: (rawValue: string, formattedValue: string, countryCode: string) => void;
|
|
1174
|
+
}
|
|
1175
|
+
export { InputPostCodeProps }
|
|
1176
|
+
export { InputPostCodeProps as MInputPostCodeProps }
|
|
275
1177
|
|
|
276
|
-
|
|
1178
|
+
declare interface InputProps {
|
|
277
1179
|
type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search' | 'date' | 'datetime-local' | 'time';
|
|
278
1180
|
value?: string | number;
|
|
279
1181
|
defaultValue?: string | number;
|
|
@@ -289,6 +1191,7 @@ export declare interface InputProps {
|
|
|
289
1191
|
variant?: InputVariant;
|
|
290
1192
|
size?: MineralSize;
|
|
291
1193
|
color?: MineralColor;
|
|
1194
|
+
fcolor?: MineralFontColor;
|
|
292
1195
|
fullWidth?: boolean;
|
|
293
1196
|
rounded?: boolean;
|
|
294
1197
|
label?: string;
|
|
@@ -307,22 +1210,32 @@ export declare interface InputProps {
|
|
|
307
1210
|
onKeyDown?: (e: KeyboardEvent_2<HTMLInputElement>) => void;
|
|
308
1211
|
onClear?: () => void;
|
|
309
1212
|
loading?: boolean;
|
|
1213
|
+
clickEffect?: MineralClickEffect;
|
|
1214
|
+
rippleColor?: string;
|
|
310
1215
|
className?: string;
|
|
311
1216
|
style?: CSSProperties;
|
|
312
1217
|
inputClassName?: string;
|
|
313
1218
|
labelClassName?: string;
|
|
314
1219
|
}
|
|
1220
|
+
export { InputProps }
|
|
1221
|
+
export { InputProps as MInputProps }
|
|
315
1222
|
|
|
316
|
-
|
|
1223
|
+
declare const InputSearch: ForwardRefExoticComponent<InputSearchProps & RefAttributes<HTMLInputElement>>;
|
|
1224
|
+
export { InputSearch }
|
|
1225
|
+
export { InputSearch as MInputSearch }
|
|
317
1226
|
|
|
318
|
-
|
|
1227
|
+
declare interface InputSearchProps extends Omit<InputProps, 'type' | 'startIcon'> {
|
|
319
1228
|
debounceMs?: number;
|
|
320
1229
|
onSearch?: (value: string) => void;
|
|
321
1230
|
}
|
|
1231
|
+
export { InputSearchProps }
|
|
1232
|
+
export { InputSearchProps as MInputSearchProps }
|
|
322
1233
|
|
|
323
|
-
|
|
1234
|
+
declare const InputTaxId: ForwardRefExoticComponent<InputTaxIdProps & RefAttributes<HTMLInputElement>>;
|
|
1235
|
+
export { InputTaxId }
|
|
1236
|
+
export { InputTaxId as MInputTaxId }
|
|
324
1237
|
|
|
325
|
-
|
|
1238
|
+
declare interface InputTaxIdProps extends Omit<InputProps, 'type'> {
|
|
326
1239
|
taxIdType: TaxIdType;
|
|
327
1240
|
formatOnChange?: boolean;
|
|
328
1241
|
validateOnBlur?: boolean;
|
|
@@ -330,47 +1243,310 @@ export declare interface InputTaxIdProps extends Omit<InputProps, 'type'> {
|
|
|
330
1243
|
onValidationChange?: (result: ValidationResult) => void;
|
|
331
1244
|
onValueChange?: (rawValue: string) => void;
|
|
332
1245
|
}
|
|
1246
|
+
export { InputTaxIdProps }
|
|
1247
|
+
export { InputTaxIdProps as MInputTaxIdProps }
|
|
333
1248
|
|
|
334
|
-
|
|
1249
|
+
declare type InputVariant = 'outlined' | 'filled' | 'underlined';
|
|
1250
|
+
export { InputVariant }
|
|
1251
|
+
export { InputVariant as MInputVariant }
|
|
335
1252
|
|
|
336
1253
|
export declare function isDateInRange(date: Date, min?: Date | null, max?: Date | null): boolean;
|
|
337
1254
|
|
|
338
1255
|
export declare function isSameDay(a: Date, b: Date): boolean;
|
|
339
1256
|
|
|
340
|
-
|
|
1257
|
+
declare interface LayoutUtilityProps {
|
|
1258
|
+
spacing?: MineralUtilityScale;
|
|
1259
|
+
padding?: MineralUtilityScale;
|
|
1260
|
+
fsize?: string | number;
|
|
1261
|
+
fcolor?: MineralFontColor;
|
|
1262
|
+
mt?: MineralUtilityScale;
|
|
1263
|
+
mb?: MineralUtilityScale;
|
|
1264
|
+
ml?: MineralUtilityScale;
|
|
1265
|
+
mr?: MineralUtilityScale;
|
|
1266
|
+
mx?: MineralUtilityScale;
|
|
1267
|
+
my?: MineralUtilityScale;
|
|
1268
|
+
pt?: MineralUtilityScale;
|
|
1269
|
+
pb?: MineralUtilityScale;
|
|
1270
|
+
pl?: MineralUtilityScale;
|
|
1271
|
+
pr?: MineralUtilityScale;
|
|
1272
|
+
px?: MineralUtilityScale;
|
|
1273
|
+
py?: MineralUtilityScale;
|
|
1274
|
+
fullWidth?: boolean;
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
declare function List({ ordered, color, fcolor, className, children, ...rest }: ListProps): JSX_2.Element;
|
|
1278
|
+
export { List }
|
|
1279
|
+
export { List as MList }
|
|
1280
|
+
|
|
1281
|
+
declare function ListItem({ className, children, ...rest }: HTMLAttributes<HTMLLIElement>): JSX_2.Element;
|
|
1282
|
+
export { ListItem }
|
|
1283
|
+
export { ListItem as MListItem }
|
|
1284
|
+
|
|
1285
|
+
declare interface ListProps extends Omit<HTMLAttributes<HTMLUListElement>, 'color'> {
|
|
1286
|
+
ordered?: boolean;
|
|
1287
|
+
color?: MineralColor;
|
|
1288
|
+
fcolor?: MineralFontColor;
|
|
1289
|
+
children?: ReactNode;
|
|
1290
|
+
}
|
|
1291
|
+
export { ListProps }
|
|
1292
|
+
export { ListProps as MListProps }
|
|
1293
|
+
|
|
1294
|
+
declare function Loader({ color, size, label, center, minHeight, className, style, ...rest }: LoaderProps): JSX_2.Element;
|
|
1295
|
+
export { Loader }
|
|
1296
|
+
export { Loader as MLoader }
|
|
1297
|
+
|
|
1298
|
+
declare interface LoaderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
1299
|
+
color?: MineralColor;
|
|
1300
|
+
size?: MineralSize | number;
|
|
1301
|
+
label?: string;
|
|
1302
|
+
center?: boolean;
|
|
1303
|
+
minHeight?: string | number;
|
|
1304
|
+
}
|
|
1305
|
+
export { LoaderProps }
|
|
1306
|
+
export { LoaderProps as MLoaderProps }
|
|
1307
|
+
|
|
1308
|
+
export declare function MFooter({ container, padded, bordered, tone, spacing, padding, fsize, fcolor, mt, mb, ml, mr, mx, my, pt, pb, pl, pr, px, py, fullWidth, className, style, children, ...rest }: MFooterProps): JSX_2.Element;
|
|
1309
|
+
|
|
1310
|
+
export declare interface MFooterProps extends HTMLAttributes<HTMLElement>, LayoutUtilityProps {
|
|
1311
|
+
container?: ContainerSize;
|
|
1312
|
+
padded?: boolean;
|
|
1313
|
+
bordered?: boolean;
|
|
1314
|
+
tone?: MHeaderTone;
|
|
1315
|
+
children?: ReactNode;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
export declare function MGrid({ type, gap, span, sm, md, lg, xl, spacing, padding, fsize, fcolor, mt, mb, ml, mr, mx, my, pt, pb, pl, pr, px, py, fullWidth, className, style, children, ...rest }: MGridProps): JSX_2.Element;
|
|
1319
|
+
|
|
1320
|
+
export declare type MGridColumns = (typeof mGridColumnValues)[number];
|
|
1321
|
+
|
|
1322
|
+
declare const mGridColumnValues: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
|
1323
|
+
|
|
1324
|
+
export declare function MGridItem({ span, sm, md, lg, xl, ...rest }: MGridItemProps): JSX_2.Element;
|
|
1325
|
+
|
|
1326
|
+
export declare interface MGridItemProps extends Omit<MGridProps, 'type' | 'gap'>, Pick<MGridProps, 'span' | 'sm' | 'md' | 'lg' | 'xl'> {
|
|
1327
|
+
children?: ReactNode;
|
|
1328
|
+
className?: string;
|
|
1329
|
+
style?: CSSProperties;
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
export declare interface MGridProps extends HTMLAttributes<HTMLDivElement>, LayoutUtilityProps {
|
|
1333
|
+
type?: MGridType;
|
|
1334
|
+
gap?: StackGap;
|
|
1335
|
+
span?: MGridColumns;
|
|
1336
|
+
sm?: MGridColumns;
|
|
1337
|
+
md?: MGridColumns;
|
|
1338
|
+
lg?: MGridColumns;
|
|
1339
|
+
xl?: MGridColumns;
|
|
1340
|
+
children?: ReactNode;
|
|
1341
|
+
className?: string;
|
|
1342
|
+
style?: CSSProperties;
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
export declare type MGridType = 'row' | 'col';
|
|
1346
|
+
|
|
1347
|
+
export declare function MHeader({ container, padded, bordered, sticky, tone, fcolor, className, children, ...rest }: MHeaderProps): JSX_2.Element;
|
|
1348
|
+
|
|
1349
|
+
export declare interface MHeaderProps extends HTMLAttributes<HTMLElement> {
|
|
1350
|
+
container?: ContainerSize;
|
|
1351
|
+
padded?: boolean;
|
|
1352
|
+
bordered?: boolean;
|
|
1353
|
+
sticky?: boolean;
|
|
1354
|
+
tone?: MHeaderTone;
|
|
1355
|
+
fcolor?: MineralFontColor;
|
|
1356
|
+
children?: ReactNode;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
export declare type MHeaderTone = 'default' | 'surface' | 'subtle';
|
|
1360
|
+
|
|
1361
|
+
export declare type MineralClickEffect = 'none' | 'ripple';
|
|
1362
|
+
|
|
1363
|
+
export declare type MineralColor = 'primary' | 'neutral' | 'success' | 'error' | 'warning' | 'info';
|
|
1364
|
+
|
|
1365
|
+
export declare type MineralFontColor = 'default' | 'muted' | 'heading' | 'inverted' | 'inherit' | 'primary' | 'neutral' | 'success' | 'error' | 'warning' | 'info';
|
|
1366
|
+
|
|
1367
|
+
export declare type MineralMode = 'dark' | 'light';
|
|
341
1368
|
|
|
342
1369
|
export declare type MineralSize = 'sm' | 'md' | 'lg';
|
|
343
1370
|
|
|
344
1371
|
export declare interface MineralTheme {
|
|
1372
|
+
primaryRgb?: string;
|
|
345
1373
|
primary?: string;
|
|
346
1374
|
primaryDark?: string;
|
|
347
1375
|
primaryLight?: string;
|
|
1376
|
+
neutralRgb?: string;
|
|
1377
|
+
neutral?: string;
|
|
348
1378
|
dark?: string;
|
|
349
1379
|
darkLight?: string;
|
|
350
1380
|
surface?: string;
|
|
1381
|
+
surfaceContrast?: string;
|
|
1382
|
+
pageBg?: string;
|
|
1383
|
+
pageText?: string;
|
|
351
1384
|
text?: string;
|
|
352
1385
|
textSecondary?: string;
|
|
353
1386
|
textHeading?: string;
|
|
354
1387
|
border?: string;
|
|
355
1388
|
borderHover?: string;
|
|
356
1389
|
borderFocus?: string;
|
|
1390
|
+
successRgb?: string;
|
|
357
1391
|
success?: string;
|
|
1392
|
+
errorRgb?: string;
|
|
358
1393
|
error?: string;
|
|
1394
|
+
warningRgb?: string;
|
|
359
1395
|
warning?: string;
|
|
1396
|
+
infoRgb?: string;
|
|
360
1397
|
info?: string;
|
|
361
1398
|
fontFamily?: string;
|
|
1399
|
+
fontFamilySans?: string;
|
|
1400
|
+
fontFamilyMono?: string;
|
|
1401
|
+
fontFamilyHeading?: string;
|
|
1402
|
+
fontColorDefault?: string;
|
|
1403
|
+
fontColorMuted?: string;
|
|
1404
|
+
fontColorHeading?: string;
|
|
1405
|
+
fontColorInverted?: string;
|
|
1406
|
+
fontColorPrimary?: string;
|
|
1407
|
+
fontColorNeutral?: string;
|
|
1408
|
+
fontColorSuccess?: string;
|
|
1409
|
+
fontColorError?: string;
|
|
1410
|
+
fontColorWarning?: string;
|
|
1411
|
+
fontColorInfo?: string;
|
|
362
1412
|
radiusSm?: string;
|
|
363
1413
|
radiusMd?: string;
|
|
364
1414
|
radiusLg?: string;
|
|
365
1415
|
}
|
|
366
1416
|
|
|
367
|
-
|
|
1417
|
+
declare function MineralThemeProvider({ theme, mode, scope, children }: MineralThemeProviderProps): JSX_2.Element;
|
|
1418
|
+
export { MineralThemeProvider as MThemeProvider }
|
|
1419
|
+
export { MineralThemeProvider }
|
|
368
1420
|
|
|
369
1421
|
declare interface MineralThemeProviderProps {
|
|
370
|
-
theme
|
|
1422
|
+
theme?: MineralTheme;
|
|
1423
|
+
mode?: MineralMode;
|
|
1424
|
+
scope?: MineralThemeScope;
|
|
371
1425
|
children: ReactNode;
|
|
372
1426
|
}
|
|
373
1427
|
|
|
1428
|
+
export declare type MineralThemeScope = 'body' | 'wrapper';
|
|
1429
|
+
|
|
1430
|
+
declare type MineralUtilityScale = (typeof mineralUtilityScaleValues)[number];
|
|
1431
|
+
|
|
1432
|
+
declare const mineralUtilityScaleValues: readonly ["none", "xs", "sm", "md", "lg", "xl", "2xl"];
|
|
1433
|
+
|
|
1434
|
+
export declare const MLink: ForwardRefExoticComponent<MLinkProps & RefAttributes<HTMLElement>>;
|
|
1435
|
+
|
|
1436
|
+
export declare interface MLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
1437
|
+
component?: ElementType;
|
|
1438
|
+
to?: string;
|
|
1439
|
+
tone?: MLinkTone;
|
|
1440
|
+
underline?: MLinkUnderline;
|
|
1441
|
+
fcolor?: MineralFontColor;
|
|
1442
|
+
current?: boolean;
|
|
1443
|
+
block?: boolean;
|
|
1444
|
+
disabled?: boolean;
|
|
1445
|
+
children?: ReactNode;
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
export declare type MLinkTone = 'default' | 'muted' | 'accent' | 'inherit';
|
|
1449
|
+
|
|
1450
|
+
export declare type MLinkUnderline = 'always' | 'hover' | 'none';
|
|
1451
|
+
|
|
1452
|
+
export declare function MNavbar({ container, padded, bordered, sticky, tone, fcolor, justify, align, wrap, className, children, ...rest }: MNavbarProps): JSX_2.Element;
|
|
1453
|
+
|
|
1454
|
+
export declare type MNavbarAlign = 'start' | 'center' | 'end' | 'stretch';
|
|
1455
|
+
|
|
1456
|
+
export declare type MNavbarJustify = 'start' | 'center' | 'between' | 'end';
|
|
1457
|
+
|
|
1458
|
+
export declare interface MNavbarProps extends HTMLAttributes<HTMLElement> {
|
|
1459
|
+
container?: ContainerSize;
|
|
1460
|
+
padded?: boolean;
|
|
1461
|
+
bordered?: boolean;
|
|
1462
|
+
sticky?: boolean;
|
|
1463
|
+
tone?: MNavbarTone;
|
|
1464
|
+
fcolor?: MineralFontColor;
|
|
1465
|
+
justify?: MNavbarJustify;
|
|
1466
|
+
align?: MNavbarAlign;
|
|
1467
|
+
wrap?: boolean;
|
|
1468
|
+
children?: ReactNode;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
export declare type MNavbarTone = 'default' | 'surface' | 'subtle';
|
|
1472
|
+
|
|
1473
|
+
export declare function MNavs({ items, orientation, gap, fcolor, wrap, className, children, ...rest }: MNavsProps): JSX_2.Element;
|
|
1474
|
+
|
|
1475
|
+
export declare type MNavsGap = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
1476
|
+
|
|
1477
|
+
export declare interface MNavsItem extends Pick<MLinkProps, 'href' | 'to' | 'target' | 'rel' | 'title'> {
|
|
1478
|
+
key?: string;
|
|
1479
|
+
component?: ElementType;
|
|
1480
|
+
label: ReactNode;
|
|
1481
|
+
current?: boolean;
|
|
1482
|
+
disabled?: boolean;
|
|
1483
|
+
className?: string;
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
export declare type MNavsOrientation = 'horizontal' | 'vertical';
|
|
1487
|
+
|
|
1488
|
+
export declare interface MNavsProps extends HTMLAttributes<HTMLElement> {
|
|
1489
|
+
items?: MNavsItem[];
|
|
1490
|
+
orientation?: MNavsOrientation;
|
|
1491
|
+
gap?: MNavsGap;
|
|
1492
|
+
fcolor?: MineralFontColor;
|
|
1493
|
+
wrap?: boolean;
|
|
1494
|
+
children?: ReactNode;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
declare function Modal({ open, onClose, title, description, footer, size, closeOnBackdrop, closeOnEscape, className, children, ...rest }: ModalProps): JSX_2.Element | null;
|
|
1498
|
+
export { Modal as MModal }
|
|
1499
|
+
export { Modal }
|
|
1500
|
+
|
|
1501
|
+
declare interface ModalProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'color'> {
|
|
1502
|
+
open: boolean;
|
|
1503
|
+
onClose: () => void;
|
|
1504
|
+
title?: ReactNode;
|
|
1505
|
+
description?: ReactNode;
|
|
1506
|
+
footer?: ReactNode;
|
|
1507
|
+
size?: ModalSize;
|
|
1508
|
+
closeOnBackdrop?: boolean;
|
|
1509
|
+
closeOnEscape?: boolean;
|
|
1510
|
+
}
|
|
1511
|
+
export { ModalProps as MModalProps }
|
|
1512
|
+
export { ModalProps }
|
|
1513
|
+
|
|
1514
|
+
declare type ModalSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
1515
|
+
export { ModalSize as MModalSize }
|
|
1516
|
+
export { ModalSize }
|
|
1517
|
+
|
|
1518
|
+
export declare function MTabs({ items, value, defaultValue, onValueChange, variant, orientation, size, fullWidth, fcolor, showPanels, panelClassName, clickEffect, rippleColor, className, ...rest }: MTabsProps): JSX_2.Element;
|
|
1519
|
+
|
|
1520
|
+
export declare interface MTabsItem {
|
|
1521
|
+
value: string;
|
|
1522
|
+
label: ReactNode;
|
|
1523
|
+
content?: ReactNode;
|
|
1524
|
+
icon?: ReactNode;
|
|
1525
|
+
disabled?: boolean;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
declare type MTabsOrientation = 'horizontal' | 'vertical';
|
|
1529
|
+
|
|
1530
|
+
export declare interface MTabsProps extends HTMLAttributes<HTMLDivElement> {
|
|
1531
|
+
items: MTabsItem[];
|
|
1532
|
+
value?: string;
|
|
1533
|
+
defaultValue?: string;
|
|
1534
|
+
onValueChange?: (value: string) => void;
|
|
1535
|
+
variant?: MTabsVariant;
|
|
1536
|
+
orientation?: MTabsOrientation;
|
|
1537
|
+
size?: MTabsSize;
|
|
1538
|
+
fullWidth?: boolean;
|
|
1539
|
+
fcolor?: MineralFontColor;
|
|
1540
|
+
showPanels?: boolean;
|
|
1541
|
+
panelClassName?: string;
|
|
1542
|
+
clickEffect?: MineralClickEffect;
|
|
1543
|
+
rippleColor?: string;
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
export declare type MTabsSize = 'sm' | 'md' | 'lg';
|
|
1547
|
+
|
|
1548
|
+
export declare type MTabsVariant = 'underline' | 'pills';
|
|
1549
|
+
|
|
374
1550
|
export declare function parseCurrencyToNumber(formatted: string, thousandSeparator?: string, decimalSeparator?: string): number | null;
|
|
375
1551
|
|
|
376
1552
|
export declare function parseDate(value: string, format?: string): Date | null;
|
|
@@ -381,18 +1557,24 @@ export declare function parseTime(value: string): {
|
|
|
381
1557
|
seconds: number;
|
|
382
1558
|
} | null;
|
|
383
1559
|
|
|
384
|
-
|
|
1560
|
+
declare type PasswordStrength = 'weak' | 'fair' | 'good' | 'strong';
|
|
1561
|
+
export { PasswordStrength as MPasswordStrength }
|
|
1562
|
+
export { PasswordStrength }
|
|
385
1563
|
|
|
386
1564
|
export declare interface PhoneFormatOptions {
|
|
387
1565
|
countryCode?: string;
|
|
388
1566
|
groupPattern?: number[];
|
|
389
1567
|
}
|
|
390
1568
|
|
|
391
|
-
|
|
1569
|
+
declare function Popover({ open, anchorRef, onClose, placement, matchWidth, offset, children, className, style, }: PopoverProps): JSX_2.Element | null;
|
|
1570
|
+
export { Popover as MPopover }
|
|
1571
|
+
export { Popover }
|
|
392
1572
|
|
|
393
|
-
|
|
1573
|
+
declare type PopoverPlacement = 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end';
|
|
1574
|
+
export { PopoverPlacement as MPopoverPlacement }
|
|
1575
|
+
export { PopoverPlacement }
|
|
394
1576
|
|
|
395
|
-
|
|
1577
|
+
declare interface PopoverProps {
|
|
396
1578
|
open: boolean;
|
|
397
1579
|
anchorRef: RefObject<HTMLElement | null>;
|
|
398
1580
|
onClose: () => void;
|
|
@@ -403,19 +1585,49 @@ export declare interface PopoverProps {
|
|
|
403
1585
|
className?: string;
|
|
404
1586
|
style?: CSSProperties;
|
|
405
1587
|
}
|
|
1588
|
+
export { PopoverProps as MPopoverProps }
|
|
1589
|
+
export { PopoverProps }
|
|
406
1590
|
|
|
407
|
-
|
|
1591
|
+
declare function Portal({ children, container }: PortalProps): ReactPortal | null;
|
|
1592
|
+
export { Portal as MPortal }
|
|
1593
|
+
export { Portal }
|
|
408
1594
|
|
|
409
|
-
|
|
1595
|
+
declare interface PortalProps {
|
|
410
1596
|
children: ReactNode;
|
|
411
1597
|
container?: HTMLElement;
|
|
412
1598
|
}
|
|
1599
|
+
export { PortalProps as MPortalProps }
|
|
1600
|
+
export { PortalProps }
|
|
1601
|
+
|
|
1602
|
+
export declare const postCodeCountries: {
|
|
1603
|
+
value: string;
|
|
1604
|
+
label: string;
|
|
1605
|
+
}[];
|
|
1606
|
+
|
|
1607
|
+
export declare interface PostCodeRule {
|
|
1608
|
+
countryCode: string;
|
|
1609
|
+
label: string;
|
|
1610
|
+
placeholder: string;
|
|
1611
|
+
example: string;
|
|
1612
|
+
inputMode: 'text' | 'numeric';
|
|
1613
|
+
maxLength: number;
|
|
1614
|
+
regex: RegExp;
|
|
1615
|
+
sanitize: (value: string) => string;
|
|
1616
|
+
format: (value: string) => string;
|
|
1617
|
+
message: string;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
export declare const postCodeRules: Record<string, PostCodeRule>;
|
|
413
1621
|
|
|
414
|
-
|
|
1622
|
+
declare const Radio: ForwardRefExoticComponent<RadioProps & RefAttributes<HTMLInputElement>>;
|
|
1623
|
+
export { Radio as MRadio }
|
|
1624
|
+
export { Radio }
|
|
415
1625
|
|
|
416
|
-
|
|
1626
|
+
declare function RadioGroup({ name, value, defaultValue, onChange, direction, children, disabled, size, color, fcolor, error, errorText, label, className, style, }: RadioGroupProps): JSX_2.Element;
|
|
1627
|
+
export { RadioGroup as MRadioGroup }
|
|
1628
|
+
export { RadioGroup }
|
|
417
1629
|
|
|
418
|
-
|
|
1630
|
+
declare interface RadioGroupProps {
|
|
419
1631
|
name: string;
|
|
420
1632
|
value?: string;
|
|
421
1633
|
defaultValue?: string;
|
|
@@ -425,14 +1637,17 @@ export declare interface RadioGroupProps {
|
|
|
425
1637
|
disabled?: boolean;
|
|
426
1638
|
size?: MineralSize;
|
|
427
1639
|
color?: MineralColor;
|
|
1640
|
+
fcolor?: MineralFontColor;
|
|
428
1641
|
error?: boolean;
|
|
429
1642
|
errorText?: string;
|
|
430
1643
|
label?: string;
|
|
431
1644
|
className?: string;
|
|
432
1645
|
style?: CSSProperties;
|
|
433
1646
|
}
|
|
1647
|
+
export { RadioGroupProps as MRadioGroupProps }
|
|
1648
|
+
export { RadioGroupProps }
|
|
434
1649
|
|
|
435
|
-
|
|
1650
|
+
declare interface RadioProps {
|
|
436
1651
|
checked?: boolean;
|
|
437
1652
|
defaultChecked?: boolean;
|
|
438
1653
|
name?: string;
|
|
@@ -441,23 +1656,51 @@ export declare interface RadioProps {
|
|
|
441
1656
|
disabled?: boolean;
|
|
442
1657
|
size?: MineralSize;
|
|
443
1658
|
color?: MineralColor;
|
|
1659
|
+
fcolor?: MineralFontColor;
|
|
444
1660
|
label?: ReactNode;
|
|
445
1661
|
labelPosition?: 'right' | 'left';
|
|
446
1662
|
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
1663
|
+
clickEffect?: MineralClickEffect;
|
|
1664
|
+
rippleColor?: string;
|
|
447
1665
|
className?: string;
|
|
448
1666
|
style?: CSSProperties;
|
|
449
1667
|
}
|
|
1668
|
+
export { RadioProps as MRadioProps }
|
|
1669
|
+
export { RadioProps }
|
|
1670
|
+
|
|
1671
|
+
declare function Section({ as, spacing, tone, className, style, children, ...rest }: SectionProps): JSX_2.Element;
|
|
1672
|
+
export { Section as MSection }
|
|
1673
|
+
export { Section }
|
|
1674
|
+
|
|
1675
|
+
declare interface SectionProps extends HTMLAttributes<HTMLElement> {
|
|
1676
|
+
as?: 'section' | 'div' | 'main' | 'header' | 'footer';
|
|
1677
|
+
spacing?: SectionSpacing;
|
|
1678
|
+
tone?: SectionTone;
|
|
1679
|
+
children?: ReactNode;
|
|
1680
|
+
className?: string;
|
|
1681
|
+
style?: CSSProperties;
|
|
1682
|
+
}
|
|
1683
|
+
export { SectionProps as MSectionProps }
|
|
1684
|
+
export { SectionProps }
|
|
1685
|
+
|
|
1686
|
+
export declare type SectionSpacing = 'sm' | 'md' | 'lg' | 'xl';
|
|
1687
|
+
|
|
1688
|
+
export declare type SectionTone = 'default' | 'subtle' | 'surface' | 'inverse';
|
|
450
1689
|
|
|
451
|
-
|
|
1690
|
+
declare function Select({ options, value, defaultValue, onChange, multiple, searchable, placeholder, disabled, name, id, variant, size, color, fcolor, fullWidth, label, helperText, errorText, error, required, loading, clearable, maxHeight, noOptionsText, renderOption, renderValue, className, style, }: SelectProps): JSX_2.Element;
|
|
1691
|
+
export { Select as MSelect }
|
|
1692
|
+
export { Select }
|
|
452
1693
|
|
|
453
|
-
|
|
1694
|
+
declare interface SelectOption {
|
|
454
1695
|
value: string;
|
|
455
1696
|
label: string;
|
|
456
1697
|
disabled?: boolean;
|
|
457
1698
|
group?: string;
|
|
458
1699
|
}
|
|
1700
|
+
export { SelectOption as MSelectOption }
|
|
1701
|
+
export { SelectOption }
|
|
459
1702
|
|
|
460
|
-
|
|
1703
|
+
declare interface SelectProps {
|
|
461
1704
|
options: SelectOption[];
|
|
462
1705
|
value?: string | string[];
|
|
463
1706
|
defaultValue?: string | string[];
|
|
@@ -471,6 +1714,7 @@ export declare interface SelectProps {
|
|
|
471
1714
|
variant?: SelectVariant;
|
|
472
1715
|
size?: MineralSize;
|
|
473
1716
|
color?: MineralColor;
|
|
1717
|
+
fcolor?: MineralFontColor;
|
|
474
1718
|
fullWidth?: boolean;
|
|
475
1719
|
label?: string;
|
|
476
1720
|
helperText?: string;
|
|
@@ -486,8 +1730,44 @@ export declare interface SelectProps {
|
|
|
486
1730
|
className?: string;
|
|
487
1731
|
style?: CSSProperties;
|
|
488
1732
|
}
|
|
1733
|
+
export { SelectProps as MSelectProps }
|
|
1734
|
+
export { SelectProps }
|
|
1735
|
+
|
|
1736
|
+
declare type SelectVariant = 'outlined' | 'filled' | 'underlined';
|
|
1737
|
+
export { SelectVariant as MSelectVariant }
|
|
1738
|
+
export { SelectVariant }
|
|
1739
|
+
|
|
1740
|
+
declare function Spinner({ color, size, label, className, style, ...rest }: SpinnerProps): JSX_2.Element;
|
|
1741
|
+
export { Spinner as MSpinner }
|
|
1742
|
+
export { Spinner }
|
|
1743
|
+
|
|
1744
|
+
declare interface SpinnerProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'color'> {
|
|
1745
|
+
color?: MineralColor;
|
|
1746
|
+
size?: MineralSize | number;
|
|
1747
|
+
label?: string;
|
|
1748
|
+
}
|
|
1749
|
+
export { SpinnerProps as MSpinnerProps }
|
|
1750
|
+
export { SpinnerProps }
|
|
1751
|
+
|
|
1752
|
+
declare function Stack({ gap, align, spacing, padding, fsize, fcolor, mt, mb, ml, mr, mx, my, pt, pb, pl, pr, px, py, fullWidth, className, style, children, ...rest }: StackProps): JSX_2.Element;
|
|
1753
|
+
export { Stack as MStack }
|
|
1754
|
+
export { Stack }
|
|
1755
|
+
|
|
1756
|
+
export declare type StackAlign = 'stretch' | 'start' | 'center' | 'end';
|
|
1757
|
+
|
|
1758
|
+
export declare type StackGap = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
1759
|
+
|
|
1760
|
+
declare interface StackProps extends HTMLAttributes<HTMLDivElement>, LayoutUtilityProps {
|
|
1761
|
+
gap?: StackGap;
|
|
1762
|
+
align?: StackAlign;
|
|
1763
|
+
children?: ReactNode;
|
|
1764
|
+
className?: string;
|
|
1765
|
+
style?: CSSProperties;
|
|
1766
|
+
}
|
|
1767
|
+
export { StackProps as MStackProps }
|
|
1768
|
+
export { StackProps }
|
|
489
1769
|
|
|
490
|
-
export declare
|
|
1770
|
+
export declare function stripCardNumber(value: string): string;
|
|
491
1771
|
|
|
492
1772
|
export declare function stripNonAlphanumeric(value: string): string;
|
|
493
1773
|
|
|
@@ -495,11 +1775,92 @@ export declare function stripNonDigits(value: string): string;
|
|
|
495
1775
|
|
|
496
1776
|
export declare function stripTime(date: Date): Date;
|
|
497
1777
|
|
|
498
|
-
|
|
1778
|
+
declare function Surface({ tone, outlined, padded, spacing, padding, fsize, fcolor, mt, mb, ml, mr, mx, my, pt, pb, pl, pr, px, py, fullWidth, className, style, children, ...rest }: SurfaceProps): JSX_2.Element;
|
|
1779
|
+
export { Surface as MSurface }
|
|
1780
|
+
export { Surface }
|
|
499
1781
|
|
|
500
|
-
|
|
1782
|
+
declare interface SurfaceProps extends HTMLAttributes<HTMLDivElement>, LayoutUtilityProps {
|
|
1783
|
+
tone?: SurfaceTone;
|
|
1784
|
+
outlined?: boolean;
|
|
1785
|
+
padded?: boolean;
|
|
1786
|
+
children?: ReactNode;
|
|
1787
|
+
className?: string;
|
|
1788
|
+
style?: CSSProperties;
|
|
1789
|
+
}
|
|
1790
|
+
export { SurfaceProps as MSurfaceProps }
|
|
1791
|
+
export { SurfaceProps }
|
|
1792
|
+
|
|
1793
|
+
export declare type SurfaceTone = 'default' | 'subtle' | 'raised' | 'inverse';
|
|
1794
|
+
|
|
1795
|
+
declare function Table({ className, children, ...rest }: TableProps): JSX_2.Element;
|
|
1796
|
+
export { Table as MTable }
|
|
1797
|
+
export { Table }
|
|
1798
|
+
|
|
1799
|
+
declare function TableBody({ className, children, ...rest }: HTMLAttributes<HTMLTableSectionElement>): JSX_2.Element;
|
|
1800
|
+
export { TableBody as MTableBody }
|
|
1801
|
+
export { TableBody }
|
|
1802
|
+
|
|
1803
|
+
declare function TableCell({ className, children, ...rest }: TableCellProps): JSX_2.Element;
|
|
1804
|
+
export { TableCell as MTableCell }
|
|
1805
|
+
export { TableCell }
|
|
1806
|
+
|
|
1807
|
+
declare interface TableCellProps extends TdHTMLAttributes<HTMLTableCellElement> {
|
|
1808
|
+
children?: ReactNode;
|
|
1809
|
+
}
|
|
1810
|
+
export { TableCellProps as MTableCellProps }
|
|
1811
|
+
export { TableCellProps }
|
|
1812
|
+
|
|
1813
|
+
declare function TableHead({ className, children, ...rest }: HTMLAttributes<HTMLTableSectionElement>): JSX_2.Element;
|
|
1814
|
+
export { TableHead as MTableHead }
|
|
1815
|
+
export { TableHead }
|
|
1816
|
+
|
|
1817
|
+
declare function TableHeadCell({ className, children, ...rest }: TableHeadCellProps): JSX_2.Element;
|
|
1818
|
+
export { TableHeadCell as MTableHeadCell }
|
|
1819
|
+
export { TableHeadCell }
|
|
1820
|
+
|
|
1821
|
+
declare interface TableHeadCellProps extends ThHTMLAttributes<HTMLTableCellElement> {
|
|
1822
|
+
children?: ReactNode;
|
|
1823
|
+
}
|
|
1824
|
+
export { TableHeadCellProps as MTableHeadCellProps }
|
|
1825
|
+
export { TableHeadCellProps }
|
|
1826
|
+
|
|
1827
|
+
declare interface TableProps extends HTMLAttributes<HTMLDivElement> {
|
|
1828
|
+
children?: ReactNode;
|
|
1829
|
+
}
|
|
1830
|
+
export { TableProps as MTableProps }
|
|
1831
|
+
export { TableProps }
|
|
1832
|
+
|
|
1833
|
+
declare function TableRoot({ className, children, ...rest }: TableRootProps): JSX_2.Element;
|
|
1834
|
+
export { TableRoot as MTableRoot }
|
|
1835
|
+
export { TableRoot }
|
|
1836
|
+
|
|
1837
|
+
declare interface TableRootProps extends TableHTMLAttributes<HTMLTableElement> {
|
|
1838
|
+
children?: ReactNode;
|
|
1839
|
+
}
|
|
1840
|
+
export { TableRootProps as MTableRootProps }
|
|
1841
|
+
export { TableRootProps }
|
|
1842
|
+
|
|
1843
|
+
declare function TableRow({ className, children, ...rest }: HTMLAttributes<HTMLTableRowElement>): JSX_2.Element;
|
|
1844
|
+
export { TableRow as MTableRow }
|
|
1845
|
+
export { TableRow }
|
|
501
1846
|
|
|
502
|
-
|
|
1847
|
+
declare type TaxIdType = 'NIP' | 'PESEL' | 'REGON';
|
|
1848
|
+
export { TaxIdType as MTaxIdType }
|
|
1849
|
+
export { TaxIdType }
|
|
1850
|
+
|
|
1851
|
+
declare function Text_2({ as, tone, size, align, color, fcolor, weight, spacing, padding, fsize, mt, mb, ml, mr, mx, my, pt, pb, pl, pr, px, py, fullWidth, className, children, ...rest }: TextProps): JSX_2.Element;
|
|
1852
|
+
export { Text_2 as MText }
|
|
1853
|
+
export { Text_2 as Text }
|
|
1854
|
+
|
|
1855
|
+
declare type TextAlign = 'left' | 'center' | 'right' | 'justify';
|
|
1856
|
+
export { TextAlign as MTextAlign }
|
|
1857
|
+
export { TextAlign }
|
|
1858
|
+
|
|
1859
|
+
declare const Textarea: ForwardRefExoticComponent<TextareaProps & RefAttributes<HTMLTextAreaElement>>;
|
|
1860
|
+
export { Textarea as MTextarea }
|
|
1861
|
+
export { Textarea }
|
|
1862
|
+
|
|
1863
|
+
declare interface TextareaProps {
|
|
503
1864
|
value?: string;
|
|
504
1865
|
defaultValue?: string;
|
|
505
1866
|
name?: string;
|
|
@@ -516,6 +1877,7 @@ export declare interface TextareaProps {
|
|
|
516
1877
|
variant?: TextareaVariant;
|
|
517
1878
|
size?: MineralSize;
|
|
518
1879
|
color?: MineralColor;
|
|
1880
|
+
fcolor?: MineralFontColor;
|
|
519
1881
|
fullWidth?: boolean;
|
|
520
1882
|
label?: string;
|
|
521
1883
|
helperText?: string;
|
|
@@ -533,12 +1895,40 @@ export declare interface TextareaProps {
|
|
|
533
1895
|
textareaClassName?: string;
|
|
534
1896
|
labelClassName?: string;
|
|
535
1897
|
}
|
|
1898
|
+
export { TextareaProps as MTextareaProps }
|
|
1899
|
+
export { TextareaProps }
|
|
1900
|
+
|
|
1901
|
+
declare type TextareaVariant = 'outlined' | 'filled' | 'underlined';
|
|
1902
|
+
export { TextareaVariant as MTextareaVariant }
|
|
1903
|
+
export { TextareaVariant }
|
|
1904
|
+
|
|
1905
|
+
declare interface TextProps extends Omit<HTMLAttributes<HTMLElement>, 'color'>, LayoutUtilityProps {
|
|
1906
|
+
as?: 'p' | 'span' | 'div' | 'strong' | 'em';
|
|
1907
|
+
tone?: TextTone;
|
|
1908
|
+
size?: TextSize;
|
|
1909
|
+
align?: TextAlign;
|
|
1910
|
+
color?: MineralColor;
|
|
1911
|
+
fcolor?: MineralFontColor;
|
|
1912
|
+
weight?: 'normal' | 'medium' | 'semibold' | 'bold';
|
|
1913
|
+
children?: ReactNode;
|
|
1914
|
+
}
|
|
1915
|
+
export { TextProps as MTextProps }
|
|
1916
|
+
export { TextProps }
|
|
1917
|
+
|
|
1918
|
+
export declare type TextSize = 'sm' | 'md' | 'lg';
|
|
536
1919
|
|
|
537
|
-
export declare type
|
|
1920
|
+
export declare type TextTone = 'default' | 'muted' | 'accent' | 'success' | 'danger';
|
|
1921
|
+
|
|
1922
|
+
declare interface ThemeContextValue {
|
|
1923
|
+
theme: MineralTheme;
|
|
1924
|
+
mode: MineralMode;
|
|
1925
|
+
}
|
|
538
1926
|
|
|
539
|
-
|
|
1927
|
+
declare function TimePicker({ value, defaultValue, onChange, format, showSeconds, minuteStep, min, max, placeholder, disabled, readOnly, name, id, variant, size, fcolor, label, helperText, errorText, error, required, clearable, fullWidth, className, style, }: TimePickerProps): JSX_2.Element;
|
|
1928
|
+
export { TimePicker as MTimePicker }
|
|
1929
|
+
export { TimePicker }
|
|
540
1930
|
|
|
541
|
-
|
|
1931
|
+
declare interface TimePickerProps {
|
|
542
1932
|
value?: string;
|
|
543
1933
|
defaultValue?: string;
|
|
544
1934
|
onChange?: (time: string) => void;
|
|
@@ -554,6 +1944,7 @@ export declare interface TimePickerProps {
|
|
|
554
1944
|
id?: string;
|
|
555
1945
|
variant?: TimePickerVariant;
|
|
556
1946
|
size?: MineralSize;
|
|
1947
|
+
fcolor?: MineralFontColor;
|
|
557
1948
|
label?: string;
|
|
558
1949
|
helperText?: string;
|
|
559
1950
|
errorText?: string;
|
|
@@ -564,12 +1955,18 @@ export declare interface TimePickerProps {
|
|
|
564
1955
|
className?: string;
|
|
565
1956
|
style?: CSSProperties;
|
|
566
1957
|
}
|
|
1958
|
+
export { TimePickerProps as MTimePickerProps }
|
|
1959
|
+
export { TimePickerProps }
|
|
567
1960
|
|
|
568
|
-
|
|
1961
|
+
declare type TimePickerVariant = 'outlined' | 'filled' | 'underlined';
|
|
1962
|
+
export { TimePickerVariant as MTimePickerVariant }
|
|
1963
|
+
export { TimePickerVariant }
|
|
569
1964
|
|
|
570
|
-
|
|
1965
|
+
declare const Toggle: ForwardRefExoticComponent<ToggleProps & RefAttributes<HTMLInputElement>>;
|
|
1966
|
+
export { Toggle as MToggle }
|
|
1967
|
+
export { Toggle }
|
|
571
1968
|
|
|
572
|
-
|
|
1969
|
+
declare interface ToggleProps {
|
|
573
1970
|
checked?: boolean;
|
|
574
1971
|
defaultChecked?: boolean;
|
|
575
1972
|
name?: string;
|
|
@@ -577,16 +1974,23 @@ export declare interface ToggleProps {
|
|
|
577
1974
|
disabled?: boolean;
|
|
578
1975
|
size?: MineralSize;
|
|
579
1976
|
color?: MineralColor;
|
|
1977
|
+
fcolor?: MineralFontColor;
|
|
580
1978
|
label?: ReactNode;
|
|
581
1979
|
labelPosition?: 'right' | 'left';
|
|
582
1980
|
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
1981
|
+
clickEffect?: MineralClickEffect;
|
|
1982
|
+
rippleColor?: string;
|
|
583
1983
|
className?: string;
|
|
584
1984
|
style?: CSSProperties;
|
|
585
1985
|
}
|
|
1986
|
+
export { ToggleProps as MToggleProps }
|
|
1987
|
+
export { ToggleProps }
|
|
586
1988
|
|
|
587
1989
|
export declare function unformatIBAN(value: string): string;
|
|
588
1990
|
|
|
589
|
-
|
|
1991
|
+
declare function useClickOutside(ref: RefObject<HTMLElement | null>, handler: () => void): void;
|
|
1992
|
+
export { useClickOutside }
|
|
1993
|
+
export { useClickOutside as useOutsideClick }
|
|
590
1994
|
|
|
591
1995
|
export declare function useDebounce<T>(value: T, delay: number): T;
|
|
592
1996
|
|
|
@@ -596,35 +2000,65 @@ export declare function useFormContext(): FormContextValue | null;
|
|
|
596
2000
|
|
|
597
2001
|
export declare function useFormField(name: string, options?: UseFormFieldOptions): UseFormFieldReturn;
|
|
598
2002
|
|
|
599
|
-
|
|
2003
|
+
declare interface UseFormFieldOptions {
|
|
600
2004
|
validate?: ValidatorFn[];
|
|
601
2005
|
required?: boolean;
|
|
602
2006
|
}
|
|
2007
|
+
export { UseFormFieldOptions as MUseFormFieldOptions }
|
|
2008
|
+
export { UseFormFieldOptions }
|
|
603
2009
|
|
|
604
|
-
|
|
2010
|
+
declare interface UseFormFieldReturn {
|
|
605
2011
|
value: unknown;
|
|
606
2012
|
error: string | undefined;
|
|
607
2013
|
touched: boolean;
|
|
608
2014
|
onChange: (value: unknown) => void;
|
|
609
2015
|
onBlur: () => void;
|
|
610
2016
|
}
|
|
2017
|
+
export { UseFormFieldReturn as MUseFormFieldReturn }
|
|
2018
|
+
export { UseFormFieldReturn }
|
|
2019
|
+
|
|
2020
|
+
declare function useInteractionEffect<T extends HTMLElement = HTMLElement>({ effect, disabled, centered, color, }?: UseInteractionEffectOptions): UseInteractionEffectResult<T>;
|
|
2021
|
+
export { useInteractionEffect as useClickEffect }
|
|
2022
|
+
export { useInteractionEffect }
|
|
2023
|
+
|
|
2024
|
+
export declare interface UseInteractionEffectOptions {
|
|
2025
|
+
effect?: MineralClickEffect;
|
|
2026
|
+
disabled?: boolean;
|
|
2027
|
+
centered?: boolean;
|
|
2028
|
+
color?: string;
|
|
2029
|
+
}
|
|
611
2030
|
|
|
612
|
-
export declare
|
|
2031
|
+
export declare interface UseInteractionEffectResult<T extends HTMLElement> {
|
|
2032
|
+
effectClassName?: string;
|
|
2033
|
+
effectLayer: ReactElement | null;
|
|
2034
|
+
handlePointerDown: (event: PointerEvent_2<T>) => void;
|
|
2035
|
+
triggerEffect: (target: T | null) => void;
|
|
2036
|
+
}
|
|
2037
|
+
|
|
2038
|
+
declare function useKeyboardNav({ itemCount, onSelect, onClose, isOpen, loop }: UseKeyboardNavOptions): {
|
|
613
2039
|
activeIndex: number;
|
|
614
2040
|
setActiveIndex: Dispatch<SetStateAction<number>>;
|
|
615
2041
|
resetIndex: () => void;
|
|
616
2042
|
onKeyDown: (e: KeyboardEvent_2) => void;
|
|
617
2043
|
};
|
|
2044
|
+
export { useKeyboardNav as useKeyNavigation }
|
|
2045
|
+
export { useKeyboardNav }
|
|
618
2046
|
|
|
619
|
-
|
|
2047
|
+
declare interface UseKeyboardNavOptions {
|
|
620
2048
|
itemCount: number;
|
|
621
2049
|
onSelect: (index: number) => void;
|
|
622
2050
|
onClose: () => void;
|
|
623
2051
|
isOpen: boolean;
|
|
624
2052
|
loop?: boolean;
|
|
625
2053
|
}
|
|
2054
|
+
export { UseKeyboardNavOptions as UseKeyNavigationOptions }
|
|
2055
|
+
export { UseKeyboardNavOptions }
|
|
626
2056
|
|
|
627
|
-
|
|
2057
|
+
declare function useTheme(): ThemeContextValue;
|
|
2058
|
+
export { useTheme as useMTheme }
|
|
2059
|
+
export { useTheme }
|
|
2060
|
+
|
|
2061
|
+
export declare function validateCardNumber(value: string): ValidationResult;
|
|
628
2062
|
|
|
629
2063
|
export declare function validateEmail(value: string): ValidationResult;
|
|
630
2064
|
|
|
@@ -642,6 +2076,8 @@ export declare function validatePESEL(value: string): ValidationResult;
|
|
|
642
2076
|
|
|
643
2077
|
export declare function validatePhone(value: string, countryCode?: string): ValidationResult;
|
|
644
2078
|
|
|
2079
|
+
export declare function validatePostCode(value: string, countryCode?: string): ValidationResult;
|
|
2080
|
+
|
|
645
2081
|
export declare function validateRange(min?: number, max?: number): ValidatorFn;
|
|
646
2082
|
|
|
647
2083
|
export declare function validateREGON(value: string): ValidationResult;
|