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