@banzamel/mineralui 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -5
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +425 -69
- package/dist/index.js +5850 -5695
- package/dist/index.js.map +1 -1
- package/dist/styles.css +2 -1
- package/package.json +87 -87
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { AnimationEventHandler } from 'react';
|
|
|
3
3
|
import { AriaRole } from 'react';
|
|
4
4
|
import { ButtonHTMLAttributes } from 'react';
|
|
5
5
|
import { ChangeEvent } from 'react';
|
|
6
|
+
import { ChangeEventHandler } from 'react';
|
|
6
7
|
import { ClipboardEventHandler } from 'react';
|
|
7
8
|
import { CompositionEventHandler } from 'react';
|
|
8
9
|
import { CSSProperties } from 'react';
|
|
@@ -12,11 +13,11 @@ import { DragEventHandler } from 'react';
|
|
|
12
13
|
import { ElementType } from 'react';
|
|
13
14
|
import { FocusEvent as FocusEvent_2 } from 'react';
|
|
14
15
|
import { FocusEventHandler } from 'react';
|
|
15
|
-
import { FormEventHandler } from 'react';
|
|
16
16
|
import { ForwardRefExoticComponent } from 'react';
|
|
17
17
|
import { HTMLAttributes } from 'react';
|
|
18
|
+
import { ImgHTMLAttributes } from 'react';
|
|
18
19
|
import { InputEventHandler } from 'react';
|
|
19
|
-
import { JSX
|
|
20
|
+
import { JSX } from 'react/jsx-runtime';
|
|
20
21
|
import { KeyboardEvent as KeyboardEvent_2 } from 'react';
|
|
21
22
|
import { KeyboardEventHandler } from 'react';
|
|
22
23
|
import { MouseEventHandler } from 'react';
|
|
@@ -29,9 +30,11 @@ import { ReactPortal } from 'react';
|
|
|
29
30
|
import { RefAttributes } from 'react';
|
|
30
31
|
import { RefObject } from 'react';
|
|
31
32
|
import { SetStateAction } from 'react';
|
|
33
|
+
import { SubmitEventHandler } from 'react';
|
|
32
34
|
import { TableHTMLAttributes } from 'react';
|
|
33
35
|
import { TdHTMLAttributes } from 'react';
|
|
34
36
|
import { ThHTMLAttributes } from 'react';
|
|
37
|
+
import { ToggleEventHandler } from 'react';
|
|
35
38
|
import { TouchEventHandler } from 'react';
|
|
36
39
|
import { TransitionEventHandler } from 'react';
|
|
37
40
|
import { UIEventHandler } from 'react';
|
|
@@ -43,7 +46,7 @@ export declare function addYears(date: Date, count: number): Date;
|
|
|
43
46
|
|
|
44
47
|
export declare function adjustCursorAfterFormat(oldValue: string, newValue: string, oldCursor: number): number;
|
|
45
48
|
|
|
46
|
-
declare function Alert({ color, fcolor, title, className, children, ...rest }: AlertProps):
|
|
49
|
+
declare function Alert({ color, fcolor, title, className, children, ...rest }: AlertProps): JSX.Element;
|
|
47
50
|
export { Alert }
|
|
48
51
|
export { Alert as MAlert }
|
|
49
52
|
|
|
@@ -56,7 +59,7 @@ declare interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title
|
|
|
56
59
|
export { AlertProps }
|
|
57
60
|
export { AlertProps as MAlertProps }
|
|
58
61
|
|
|
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>):
|
|
62
|
+
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.Element;
|
|
60
63
|
export { Autocomplete }
|
|
61
64
|
export { Autocomplete as MAutocomplete }
|
|
62
65
|
|
|
@@ -102,7 +105,7 @@ declare type AutocompleteVariant = 'outlined' | 'filled' | 'underlined';
|
|
|
102
105
|
export { AutocompleteVariant }
|
|
103
106
|
export { AutocompleteVariant as MAutocompleteVariant }
|
|
104
107
|
|
|
105
|
-
declare function Avatar({ src, alt, name, initials, size, shape, color, fcolor, backgroundColor, clickEffect, rippleColor, className, style, onPointerDown, ...rest }: AvatarProps):
|
|
108
|
+
declare function Avatar({ src, alt, name, initials, size, shape, color, fcolor, backgroundColor, clickEffect, rippleColor, className, style, onPointerDown, ...rest }: AvatarProps): JSX.Element;
|
|
106
109
|
export { Avatar }
|
|
107
110
|
export { Avatar as MAvatar }
|
|
108
111
|
|
|
@@ -131,7 +134,7 @@ declare type AvatarSize = 'sm' | 'md' | 'lg' | number;
|
|
|
131
134
|
export { AvatarSize }
|
|
132
135
|
export { AvatarSize as MAvatarSize }
|
|
133
136
|
|
|
134
|
-
declare function Badge({ color, size, fcolor, className, children, ...rest }: BadgeProps):
|
|
137
|
+
declare function Badge({ color, size, fcolor, className, children, ...rest }: BadgeProps): JSX.Element;
|
|
135
138
|
export { Badge }
|
|
136
139
|
export { Badge as MBadge }
|
|
137
140
|
|
|
@@ -144,6 +147,26 @@ declare interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
144
147
|
export { BadgeProps }
|
|
145
148
|
export { BadgeProps as MBadgeProps }
|
|
146
149
|
|
|
150
|
+
declare function Banner({ color, variant, icon, action, dismissible, onDismiss, className, children, ...rest }: BannerProps): JSX.Element | null;
|
|
151
|
+
export { Banner }
|
|
152
|
+
export { Banner as MBanner }
|
|
153
|
+
|
|
154
|
+
declare interface BannerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
155
|
+
color?: MineralColor;
|
|
156
|
+
variant?: BannerVariant;
|
|
157
|
+
icon?: ReactNode;
|
|
158
|
+
action?: ReactNode;
|
|
159
|
+
dismissible?: boolean;
|
|
160
|
+
onDismiss?: () => void;
|
|
161
|
+
children?: ReactNode;
|
|
162
|
+
}
|
|
163
|
+
export { BannerProps }
|
|
164
|
+
export { BannerProps as MBannerProps }
|
|
165
|
+
|
|
166
|
+
declare type BannerVariant = 'filled' | 'outlined' | 'ghost';
|
|
167
|
+
export { BannerVariant }
|
|
168
|
+
export { BannerVariant as MBannerVariant }
|
|
169
|
+
|
|
147
170
|
declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
148
171
|
export { Button }
|
|
149
172
|
export { Button as MButton }
|
|
@@ -172,7 +195,7 @@ declare type ButtonVariant = 'primary' | 'secondary' | 'outlined' | 'ghost' | 'l
|
|
|
172
195
|
export { ButtonVariant }
|
|
173
196
|
export { ButtonVariant as MButtonVariant }
|
|
174
197
|
|
|
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):
|
|
198
|
+
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.Element;
|
|
176
199
|
export { CalendarBoard }
|
|
177
200
|
export { CalendarBoard as MCalendarBoard }
|
|
178
201
|
|
|
@@ -216,7 +239,7 @@ declare type CalendarBoardView = 'month' | 'week';
|
|
|
216
239
|
export { CalendarBoardView }
|
|
217
240
|
export { CalendarBoardView as MCalendarBoardView }
|
|
218
241
|
|
|
219
|
-
declare function CalendarDayCell({ date, events, badge, markers, isToday, isSelected, isOutsideMonth, className, children, ...rest }: CalendarDayCellProps):
|
|
242
|
+
declare function CalendarDayCell({ date, events, badge, markers, isToday, isSelected, isOutsideMonth, className, children, ...rest }: CalendarDayCellProps): JSX.Element;
|
|
220
243
|
export { CalendarDayCell }
|
|
221
244
|
export { CalendarDayCell as MCalendarDayCell }
|
|
222
245
|
|
|
@@ -269,7 +292,7 @@ declare interface CalendarEvent {
|
|
|
269
292
|
export { CalendarEvent }
|
|
270
293
|
export { CalendarEvent as MCalendarEvent }
|
|
271
294
|
|
|
272
|
-
declare function CalendarEventItem({ event, locale, className, currentDate, ...rest }: CalendarEventItemProps):
|
|
295
|
+
declare function CalendarEventItem({ event, locale, className, currentDate, ...rest }: CalendarEventItemProps): JSX.Element;
|
|
273
296
|
export { CalendarEventItem }
|
|
274
297
|
export { CalendarEventItem as MCalendarEventItem }
|
|
275
298
|
|
|
@@ -281,7 +304,7 @@ declare interface CalendarEventItemProps extends Omit<HTMLAttributes<HTMLDivElem
|
|
|
281
304
|
export { CalendarEventItemProps }
|
|
282
305
|
export { CalendarEventItemProps as MCalendarEventItemProps }
|
|
283
306
|
|
|
284
|
-
declare function CalendarEventList({ events, locale, currentDate, emptyStateText, renderEventItem, className, ...rest }: CalendarEventListProps):
|
|
307
|
+
declare function CalendarEventList({ events, locale, currentDate, emptyStateText, renderEventItem, className, ...rest }: CalendarEventListProps): JSX.Element;
|
|
285
308
|
export { CalendarEventList }
|
|
286
309
|
export { CalendarEventList as MCalendarEventList }
|
|
287
310
|
|
|
@@ -295,7 +318,7 @@ declare interface CalendarEventListProps extends Omit<HTMLAttributes<HTMLDivElem
|
|
|
295
318
|
export { CalendarEventListProps }
|
|
296
319
|
export { CalendarEventListProps as MCalendarEventListProps }
|
|
297
320
|
|
|
298
|
-
declare function CalendarEventPopover({ open, anchorRef, onClose, onPointerEnter, onPointerLeave, date, events, locale, timelineStartHour, timelineEndHour, showTimeline, emptyStateText, renderEventItem, className, style, }: CalendarEventPopoverProps):
|
|
321
|
+
declare function CalendarEventPopover({ open, anchorRef, onClose, onPointerEnter, onPointerLeave, date, events, locale, timelineStartHour, timelineEndHour, showTimeline, emptyStateText, renderEventItem, className, style, }: CalendarEventPopoverProps): JSX.Element;
|
|
299
322
|
export { CalendarEventPopover }
|
|
300
323
|
export { CalendarEventPopover as MCalendarEventPopover }
|
|
301
324
|
|
|
@@ -341,7 +364,7 @@ declare interface CalendarFilterOption {
|
|
|
341
364
|
export { CalendarFilterOption }
|
|
342
365
|
export { CalendarFilterOption as MCalendarFilterOption }
|
|
343
366
|
|
|
344
|
-
declare function CalendarTimeline({ date, events, locale, startHour, endHour, emptyStateText, className, ...rest }: CalendarTimelineProps):
|
|
367
|
+
declare function CalendarTimeline({ date, events, locale, startHour, endHour, emptyStateText, className, ...rest }: CalendarTimelineProps): JSX.Element;
|
|
345
368
|
export { CalendarTimeline }
|
|
346
369
|
export { CalendarTimeline as MCalendarTimeline }
|
|
347
370
|
|
|
@@ -362,24 +385,25 @@ export { CalendarTimelineSlotState as MCalendarTimelineSlotState }
|
|
|
362
385
|
|
|
363
386
|
export declare function capitalizeWords(value: string): string;
|
|
364
387
|
|
|
365
|
-
declare function Card({ interactive, tone, padded, color, fcolor, clickEffect, rippleColor, className, children, onPointerDown, ...rest }: CardProps):
|
|
388
|
+
declare function Card({ interactive, stretch, tone, padded, color, fcolor, clickEffect, rippleColor, className, children, onPointerDown, ...rest }: CardProps): JSX.Element;
|
|
366
389
|
export { Card }
|
|
367
390
|
export { Card as MCard }
|
|
368
391
|
|
|
369
|
-
declare function CardBody({ className, children, ...rest }: CardSectionProps):
|
|
392
|
+
declare function CardBody({ className, children, ...rest }: CardSectionProps): JSX.Element;
|
|
370
393
|
export { CardBody }
|
|
371
394
|
export { CardBody as MCardBody }
|
|
372
395
|
|
|
373
|
-
declare function CardFooter({ className, children, ...rest }: CardSectionProps):
|
|
396
|
+
declare function CardFooter({ className, children, ...rest }: CardSectionProps): JSX.Element;
|
|
374
397
|
export { CardFooter }
|
|
375
398
|
export { CardFooter as MCardFooter }
|
|
376
399
|
|
|
377
|
-
declare function CardHeader({ className, children, ...rest }: CardSectionProps):
|
|
400
|
+
declare function CardHeader({ className, children, ...rest }: CardSectionProps): JSX.Element;
|
|
378
401
|
export { CardHeader }
|
|
379
402
|
export { CardHeader as MCardHeader }
|
|
380
403
|
|
|
381
404
|
declare interface CardProps extends Omit<SurfaceProps, 'children'> {
|
|
382
405
|
interactive?: boolean;
|
|
406
|
+
stretch?: boolean;
|
|
383
407
|
color?: MineralColor;
|
|
384
408
|
fcolor?: MineralFontColor;
|
|
385
409
|
clickEffect?: MineralClickEffect;
|
|
@@ -393,6 +417,27 @@ declare interface CardSectionProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
393
417
|
children?: ReactNode;
|
|
394
418
|
}
|
|
395
419
|
|
|
420
|
+
declare function Carousel({ autoPlay, interval, showDots, showArrows, loop, draggable, transition, className, children, ...rest }: CarouselProps): JSX.Element | null;
|
|
421
|
+
export { Carousel }
|
|
422
|
+
export { Carousel as MCarousel }
|
|
423
|
+
|
|
424
|
+
declare interface CarouselProps extends HTMLAttributes<HTMLDivElement> {
|
|
425
|
+
autoPlay?: boolean;
|
|
426
|
+
interval?: number;
|
|
427
|
+
showDots?: boolean;
|
|
428
|
+
showArrows?: boolean;
|
|
429
|
+
loop?: boolean;
|
|
430
|
+
draggable?: boolean;
|
|
431
|
+
transition?: CarouselTransition;
|
|
432
|
+
children?: ReactNode;
|
|
433
|
+
}
|
|
434
|
+
export { CarouselProps }
|
|
435
|
+
export { CarouselProps as MCarouselProps }
|
|
436
|
+
|
|
437
|
+
declare type CarouselTransition = 'slide' | 'fade';
|
|
438
|
+
export { CarouselTransition }
|
|
439
|
+
export { CarouselTransition as MCarouselTransition }
|
|
440
|
+
|
|
396
441
|
declare const Checkbox: ForwardRefExoticComponent<CheckboxProps & RefAttributes<HTMLInputElement>>;
|
|
397
442
|
export { Checkbox }
|
|
398
443
|
export { Checkbox as MCheckbox }
|
|
@@ -425,7 +470,7 @@ declare function cn(...classes: (string | undefined | null | false)[]): string;
|
|
|
425
470
|
export { cn }
|
|
426
471
|
export { cn as mergeClasses }
|
|
427
472
|
|
|
428
|
-
declare function Code({ color, fcolor, className, children, ...rest }: CodeProps):
|
|
473
|
+
declare function Code({ color, fcolor, className, children, ...rest }: CodeProps): JSX.Element;
|
|
429
474
|
export { Code }
|
|
430
475
|
export { Code as MCode }
|
|
431
476
|
|
|
@@ -437,11 +482,11 @@ declare interface CodeProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
|
437
482
|
export { CodeProps }
|
|
438
483
|
export { CodeProps as MCodeProps }
|
|
439
484
|
|
|
440
|
-
declare function Collapsible({ title, defaultOpen, open: controlledOpen, onToggle, fcolor, className, children, ...rest }: CollapsibleProps):
|
|
485
|
+
declare function Collapsible({ title, defaultOpen, open: controlledOpen, onToggle, fcolor, className, children, ...rest }: CollapsibleProps): JSX.Element;
|
|
441
486
|
export { Collapsible }
|
|
442
487
|
export { Collapsible as MCollapsible }
|
|
443
488
|
|
|
444
|
-
declare interface CollapsibleProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
489
|
+
declare interface CollapsibleProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'onToggle'> {
|
|
445
490
|
title: ReactNode;
|
|
446
491
|
defaultOpen?: boolean;
|
|
447
492
|
open?: boolean;
|
|
@@ -454,7 +499,7 @@ export { CollapsibleProps as MCollapsibleProps }
|
|
|
454
499
|
|
|
455
500
|
export declare function composeValidators(...validators: ValidatorFn[]): ValidatorFn;
|
|
456
501
|
|
|
457
|
-
declare function Container({ size, padded, spacing, padding, fsize, fcolor, mt, mb, ml, mr, mx, my, pt, pb, pl, pr, px, py, fullWidth, className, style, children, ...rest }: ContainerProps):
|
|
502
|
+
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.Element;
|
|
458
503
|
export { Container }
|
|
459
504
|
export { Container as MContainer }
|
|
460
505
|
|
|
@@ -470,6 +515,22 @@ export { ContainerProps as MContainerProps }
|
|
|
470
515
|
|
|
471
516
|
export declare type ContainerSize = 'content' | 'wide' | 'full';
|
|
472
517
|
|
|
518
|
+
declare function CountUp({ value, from, duration, decimals, prefix, suffix, separator, className, ...rest }: CountUpProps): JSX.Element;
|
|
519
|
+
export { CountUp }
|
|
520
|
+
export { CountUp as MCountUp }
|
|
521
|
+
|
|
522
|
+
declare interface CountUpProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
523
|
+
value: number;
|
|
524
|
+
from?: number;
|
|
525
|
+
duration?: number;
|
|
526
|
+
decimals?: number;
|
|
527
|
+
prefix?: string;
|
|
528
|
+
suffix?: string;
|
|
529
|
+
separator?: string;
|
|
530
|
+
}
|
|
531
|
+
export { CountUpProps }
|
|
532
|
+
export { CountUpProps as MCountUpProps }
|
|
533
|
+
|
|
473
534
|
export declare type CreditCardBrand = 'visa' | 'mastercard' | 'amex' | 'discover' | 'maestro' | 'unknown';
|
|
474
535
|
|
|
475
536
|
export declare interface CreditCardBrandDetails {
|
|
@@ -489,7 +550,7 @@ export declare interface CurrencyFormatOptions {
|
|
|
489
550
|
precision?: number;
|
|
490
551
|
}
|
|
491
552
|
|
|
492
|
-
declare function DatePicker({ value, defaultValue, onChange, format, locale, min, max, disabledDates, placeholder, disabled, readOnly, name, id, variant, size, fcolor, label, helperText, errorText, error, required, clearable, inline, showTodayButton, firstDayOfWeek, fullWidth, className, style, }: DatePickerProps):
|
|
553
|
+
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.Element;
|
|
493
554
|
export { DatePicker }
|
|
494
555
|
export { DatePicker as MDatePicker }
|
|
495
556
|
|
|
@@ -530,7 +591,7 @@ declare type DatePickerVariant = 'outlined' | 'filled' | 'underlined';
|
|
|
530
591
|
export { DatePickerVariant }
|
|
531
592
|
export { DatePickerVariant as MDatePickerVariant }
|
|
532
593
|
|
|
533
|
-
declare function DateRangePicker({ value, defaultValue, onChange, format, locale, min, max, disabledDates, placeholder, disabled, readOnly, name, id, variant, size, fcolor, label, helperText, errorText, error, required, clearable, inline, showTodayButton, presets, firstDayOfWeek, fullWidth, allowSameDay, className, style, }: DateRangePickerProps):
|
|
594
|
+
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, presetsSidebar, firstDayOfWeek, fullWidth, allowSameDay, className, style, }: DateRangePickerProps): JSX.Element;
|
|
534
595
|
export { DateRangePicker }
|
|
535
596
|
export { DateRangePicker as MDateRangePicker }
|
|
536
597
|
|
|
@@ -563,6 +624,7 @@ declare interface DateRangePickerProps {
|
|
|
563
624
|
inline?: boolean;
|
|
564
625
|
showTodayButton?: boolean;
|
|
565
626
|
presets?: boolean | DateRangePreset[];
|
|
627
|
+
presetsSidebar?: boolean;
|
|
566
628
|
firstDayOfWeek?: 0 | 1;
|
|
567
629
|
fullWidth?: boolean;
|
|
568
630
|
allowSameDay?: boolean;
|
|
@@ -597,7 +659,9 @@ export declare function daysInMonth(year: number, month: number): number;
|
|
|
597
659
|
|
|
598
660
|
export declare function detectCardBrand(value: string): CreditCardBrandDetails;
|
|
599
661
|
|
|
600
|
-
declare
|
|
662
|
+
declare type Dict = Record<string, unknown>;
|
|
663
|
+
|
|
664
|
+
declare function Divider({ className, style, ...rest }: DividerProps): JSX.Element;
|
|
601
665
|
export { Divider }
|
|
602
666
|
export { Divider as MDivider }
|
|
603
667
|
|
|
@@ -618,7 +682,7 @@ export { FieldRegistration as MFieldRegistration }
|
|
|
618
682
|
|
|
619
683
|
export declare function firstDayOfMonth(year: number, month: number): number;
|
|
620
684
|
|
|
621
|
-
declare function Form({ initialValues, onSubmit, onChange, validationMode, children, className, style, noValidate, }: FormProps):
|
|
685
|
+
declare function Form({ initialValues, onSubmit, onChange, validationMode, children, className, style, noValidate, }: FormProps): JSX.Element;
|
|
622
686
|
export { Form }
|
|
623
687
|
export { Form as MForm }
|
|
624
688
|
|
|
@@ -685,13 +749,38 @@ declare interface FormProps {
|
|
|
685
749
|
export { FormProps }
|
|
686
750
|
export { FormProps as MFormProps }
|
|
687
751
|
|
|
752
|
+
declare function Gallery({ items, columns, gap, rounded, className, ...rest }: GalleryProps): JSX.Element;
|
|
753
|
+
export { Gallery }
|
|
754
|
+
export { Gallery as MGallery }
|
|
755
|
+
|
|
756
|
+
declare type GalleryColumns = 2 | 3 | 4 | 5 | 6;
|
|
757
|
+
export { GalleryColumns }
|
|
758
|
+
export { GalleryColumns as MGalleryColumns }
|
|
759
|
+
|
|
760
|
+
declare interface GalleryItem {
|
|
761
|
+
src: string;
|
|
762
|
+
alt?: string;
|
|
763
|
+
caption?: string;
|
|
764
|
+
}
|
|
765
|
+
export { GalleryItem }
|
|
766
|
+
export { GalleryItem as MGalleryItem }
|
|
767
|
+
|
|
768
|
+
declare interface GalleryProps extends HTMLAttributes<HTMLDivElement> {
|
|
769
|
+
items: GalleryItem[];
|
|
770
|
+
columns?: GalleryColumns;
|
|
771
|
+
gap?: 'sm' | 'md' | 'lg';
|
|
772
|
+
rounded?: boolean;
|
|
773
|
+
}
|
|
774
|
+
export { GalleryProps }
|
|
775
|
+
export { GalleryProps as MGalleryProps }
|
|
776
|
+
|
|
688
777
|
export declare function getDayNames(locale?: 'pl' | 'en'): string[];
|
|
689
778
|
|
|
690
779
|
export declare function getMonthNames(locale?: 'pl' | 'en'): string[];
|
|
691
780
|
|
|
692
781
|
export declare function getPostCodeRule(countryCode?: string): PostCodeRule;
|
|
693
782
|
|
|
694
|
-
export declare function Grid({ columns, gap, minItemWidth, className, style, children, ...rest }: GridProps):
|
|
783
|
+
export declare function Grid({ columns, gap, minItemWidth, className, style, children, ...rest }: GridProps): JSX.Element;
|
|
695
784
|
|
|
696
785
|
export declare type GridColumns = (typeof gridColumnValues)[number];
|
|
697
786
|
|
|
@@ -711,6 +800,7 @@ onSelect?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
|
711
800
|
slot?: string | undefined | undefined;
|
|
712
801
|
style?: CSSProperties | undefined;
|
|
713
802
|
title?: string | undefined | undefined;
|
|
803
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
714
804
|
hidden?: boolean | undefined | undefined;
|
|
715
805
|
content?: string | undefined | undefined;
|
|
716
806
|
role?: AriaRole | undefined;
|
|
@@ -753,6 +843,9 @@ itemRef?: string | undefined | undefined;
|
|
|
753
843
|
results?: number | undefined | undefined;
|
|
754
844
|
security?: string | undefined | undefined;
|
|
755
845
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
846
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
847
|
+
popoverTarget?: string | undefined | undefined;
|
|
848
|
+
inert?: boolean | undefined | undefined;
|
|
756
849
|
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
757
850
|
is?: string | undefined | undefined;
|
|
758
851
|
exportparts?: string | undefined | undefined;
|
|
@@ -829,18 +922,18 @@ onFocus?: FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
|
829
922
|
onFocusCapture?: FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
830
923
|
onBlur?: FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
831
924
|
onBlurCapture?: FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
832
|
-
onChange?:
|
|
833
|
-
onChangeCapture?:
|
|
925
|
+
onChange?: ChangeEventHandler<HTMLHeadingElement, Element> | undefined;
|
|
926
|
+
onChangeCapture?: ChangeEventHandler<HTMLHeadingElement, Element> | undefined;
|
|
834
927
|
onBeforeInput?: InputEventHandler<HTMLHeadingElement> | undefined;
|
|
835
|
-
onBeforeInputCapture?:
|
|
836
|
-
onInput?:
|
|
837
|
-
onInputCapture?:
|
|
838
|
-
onReset?:
|
|
839
|
-
onResetCapture?:
|
|
840
|
-
onSubmit?:
|
|
841
|
-
onSubmitCapture?:
|
|
842
|
-
onInvalid?:
|
|
843
|
-
onInvalidCapture?:
|
|
928
|
+
onBeforeInputCapture?: InputEventHandler<HTMLHeadingElement> | undefined;
|
|
929
|
+
onInput?: InputEventHandler<HTMLHeadingElement> | undefined;
|
|
930
|
+
onInputCapture?: InputEventHandler<HTMLHeadingElement> | undefined;
|
|
931
|
+
onReset?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
932
|
+
onResetCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
933
|
+
onSubmit?: SubmitEventHandler<HTMLHeadingElement> | undefined;
|
|
934
|
+
onSubmitCapture?: SubmitEventHandler<HTMLHeadingElement> | undefined;
|
|
935
|
+
onInvalid?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
936
|
+
onInvalidCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
844
937
|
onLoad?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
845
938
|
onLoadCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
846
939
|
onError?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
@@ -960,6 +1053,8 @@ onLostPointerCapture?: PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
|
960
1053
|
onLostPointerCaptureCapture?: PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
961
1054
|
onScroll?: UIEventHandler<HTMLHeadingElement> | undefined;
|
|
962
1055
|
onScrollCapture?: UIEventHandler<HTMLHeadingElement> | undefined;
|
|
1056
|
+
onScrollEnd?: UIEventHandler<HTMLHeadingElement> | undefined;
|
|
1057
|
+
onScrollEndCapture?: UIEventHandler<HTMLHeadingElement> | undefined;
|
|
963
1058
|
onWheel?: WheelEventHandler<HTMLHeadingElement> | undefined;
|
|
964
1059
|
onWheelCapture?: WheelEventHandler<HTMLHeadingElement> | undefined;
|
|
965
1060
|
onAnimationStart?: AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
@@ -968,8 +1063,16 @@ onAnimationEnd?: AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
|
968
1063
|
onAnimationEndCapture?: AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
969
1064
|
onAnimationIteration?: AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
970
1065
|
onAnimationIterationCapture?: AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
1066
|
+
onToggle?: ToggleEventHandler<HTMLHeadingElement> | undefined;
|
|
1067
|
+
onBeforeToggle?: ToggleEventHandler<HTMLHeadingElement> | undefined;
|
|
1068
|
+
onTransitionCancel?: TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
1069
|
+
onTransitionCancelCapture?: TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
971
1070
|
onTransitionEnd?: TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
972
1071
|
onTransitionEndCapture?: TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
1072
|
+
onTransitionRun?: TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
1073
|
+
onTransitionRunCapture?: TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
1074
|
+
onTransitionStart?: TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
1075
|
+
onTransitionStartCapture?: TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
973
1076
|
className: string;
|
|
974
1077
|
}, HTMLElement>;
|
|
975
1078
|
export { Heading }
|
|
@@ -986,7 +1089,30 @@ declare interface HeadingProps extends Omit<HTMLAttributes<HTMLHeadingElement>,
|
|
|
986
1089
|
export { HeadingProps }
|
|
987
1090
|
export { HeadingProps as MHeadingProps }
|
|
988
1091
|
|
|
989
|
-
declare function
|
|
1092
|
+
declare function Image_2({ fit, ratio, rounded, bordered, shadow, fallback, className, style, onError, ...rest }: ImageProps): JSX.Element;
|
|
1093
|
+
export { Image_2 as Image }
|
|
1094
|
+
export { Image_2 as MImage }
|
|
1095
|
+
|
|
1096
|
+
declare type ImageFit = 'cover' | 'contain' | 'fill' | 'none';
|
|
1097
|
+
export { ImageFit }
|
|
1098
|
+
export { ImageFit as MImageFit }
|
|
1099
|
+
|
|
1100
|
+
declare interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
1101
|
+
fit?: ImageFit;
|
|
1102
|
+
ratio?: ImageRatio;
|
|
1103
|
+
rounded?: boolean;
|
|
1104
|
+
bordered?: boolean;
|
|
1105
|
+
shadow?: boolean;
|
|
1106
|
+
fallback?: string;
|
|
1107
|
+
}
|
|
1108
|
+
export { ImageProps }
|
|
1109
|
+
export { ImageProps as MImageProps }
|
|
1110
|
+
|
|
1111
|
+
declare type ImageRatio = '1:1' | '4:3' | '16:9' | '21:9' | 'auto';
|
|
1112
|
+
export { ImageRatio }
|
|
1113
|
+
export { ImageRatio as MImageRatio }
|
|
1114
|
+
|
|
1115
|
+
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.Element;
|
|
990
1116
|
export { Inline }
|
|
991
1117
|
export { Inline as MInline }
|
|
992
1118
|
|
|
@@ -1274,11 +1400,11 @@ declare interface LayoutUtilityProps {
|
|
|
1274
1400
|
fullWidth?: boolean;
|
|
1275
1401
|
}
|
|
1276
1402
|
|
|
1277
|
-
declare function List({ ordered, color, fcolor, className, children, ...rest }: ListProps):
|
|
1403
|
+
declare function List({ ordered, color, fcolor, className, children, ...rest }: ListProps): JSX.Element;
|
|
1278
1404
|
export { List }
|
|
1279
1405
|
export { List as MList }
|
|
1280
1406
|
|
|
1281
|
-
declare function ListItem({ className, children, ...rest }: HTMLAttributes<HTMLLIElement>):
|
|
1407
|
+
declare function ListItem({ className, children, ...rest }: HTMLAttributes<HTMLLIElement>): JSX.Element;
|
|
1282
1408
|
export { ListItem }
|
|
1283
1409
|
export { ListItem as MListItem }
|
|
1284
1410
|
|
|
@@ -1291,7 +1417,7 @@ declare interface ListProps extends Omit<HTMLAttributes<HTMLUListElement>, 'colo
|
|
|
1291
1417
|
export { ListProps }
|
|
1292
1418
|
export { ListProps as MListProps }
|
|
1293
1419
|
|
|
1294
|
-
declare function Loader({ color, size, label, center, minHeight, className, style, ...rest }: LoaderProps):
|
|
1420
|
+
declare function Loader({ color, size, label, center, minHeight, className, style, ...rest }: LoaderProps): JSX.Element;
|
|
1295
1421
|
export { Loader }
|
|
1296
1422
|
export { Loader as MLoader }
|
|
1297
1423
|
|
|
@@ -1305,7 +1431,51 @@ declare interface LoaderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'colo
|
|
|
1305
1431
|
export { LoaderProps }
|
|
1306
1432
|
export { LoaderProps as MLoaderProps }
|
|
1307
1433
|
|
|
1308
|
-
export declare function
|
|
1434
|
+
export declare function MDropdownDivider({ className }: MDropdownDividerProps): JSX.Element;
|
|
1435
|
+
|
|
1436
|
+
export declare interface MDropdownDividerProps {
|
|
1437
|
+
className?: string;
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
export declare function MDropdownGroup({ label, children }: MDropdownGroupProps): JSX.Element;
|
|
1441
|
+
|
|
1442
|
+
export declare interface MDropdownGroupProps {
|
|
1443
|
+
label: string;
|
|
1444
|
+
children: ReactNode;
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
export declare function MDropdownItem({ icon, label, href, to, onClick, color, disabled, active, component, className, _active, _onHover, _onClick, }: MDropdownItemProps & {
|
|
1448
|
+
_active?: boolean;
|
|
1449
|
+
_onHover?: () => void;
|
|
1450
|
+
_onClick?: () => void;
|
|
1451
|
+
}): JSX.Element;
|
|
1452
|
+
|
|
1453
|
+
export declare interface MDropdownItemProps {
|
|
1454
|
+
icon?: ReactNode;
|
|
1455
|
+
label: ReactNode;
|
|
1456
|
+
href?: string;
|
|
1457
|
+
to?: string;
|
|
1458
|
+
onClick?: () => void;
|
|
1459
|
+
color?: MineralColor;
|
|
1460
|
+
disabled?: boolean;
|
|
1461
|
+
active?: boolean;
|
|
1462
|
+
component?: ElementType;
|
|
1463
|
+
className?: string;
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
export declare function MDropdownMenu({ trigger, placement, size, closeOnSelect, className, style, children, }: MDropdownMenuProps): JSX.Element;
|
|
1467
|
+
|
|
1468
|
+
export declare interface MDropdownMenuProps {
|
|
1469
|
+
trigger: ReactNode;
|
|
1470
|
+
placement?: PopoverPlacement;
|
|
1471
|
+
size?: MineralSize;
|
|
1472
|
+
closeOnSelect?: boolean;
|
|
1473
|
+
className?: string;
|
|
1474
|
+
style?: CSSProperties;
|
|
1475
|
+
children: ReactNode;
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
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.Element;
|
|
1309
1479
|
|
|
1310
1480
|
export declare interface MFooterProps extends HTMLAttributes<HTMLElement>, LayoutUtilityProps {
|
|
1311
1481
|
container?: ContainerSize;
|
|
@@ -1315,13 +1485,13 @@ export declare interface MFooterProps extends HTMLAttributes<HTMLElement>, Layou
|
|
|
1315
1485
|
children?: ReactNode;
|
|
1316
1486
|
}
|
|
1317
1487
|
|
|
1318
|
-
export declare function MGrid({ type, gap, span, sm, md, lg, xl, spacing, padding, fsize, fcolor, mt, mb, ml, mr, mx, my, pt, pb, pl, pr, px, py, fullWidth, className, style, children, ...rest }: MGridProps):
|
|
1488
|
+
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.Element;
|
|
1319
1489
|
|
|
1320
1490
|
export declare type MGridColumns = (typeof mGridColumnValues)[number];
|
|
1321
1491
|
|
|
1322
1492
|
declare const mGridColumnValues: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
|
1323
1493
|
|
|
1324
|
-
export declare function MGridItem({ span, sm, md, lg, xl, ...rest }: MGridItemProps):
|
|
1494
|
+
export declare function MGridItem({ span, sm, md, lg, xl, ...rest }: MGridItemProps): JSX.Element;
|
|
1325
1495
|
|
|
1326
1496
|
export declare interface MGridItemProps extends Omit<MGridProps, 'type' | 'gap'>, Pick<MGridProps, 'span' | 'sm' | 'md' | 'lg' | 'xl'> {
|
|
1327
1497
|
children?: ReactNode;
|
|
@@ -1344,7 +1514,7 @@ export declare interface MGridProps extends HTMLAttributes<HTMLDivElement>, Layo
|
|
|
1344
1514
|
|
|
1345
1515
|
export declare type MGridType = 'row' | 'col';
|
|
1346
1516
|
|
|
1347
|
-
export declare function MHeader({ container, padded, bordered, sticky, tone, fcolor, className, children, ...rest }: MHeaderProps):
|
|
1517
|
+
export declare function MHeader({ container, padded, bordered, sticky, tone, fcolor, className, children, ...rest }: MHeaderProps): JSX.Element;
|
|
1348
1518
|
|
|
1349
1519
|
export declare interface MHeaderProps extends HTMLAttributes<HTMLElement> {
|
|
1350
1520
|
container?: ContainerSize;
|
|
@@ -1358,14 +1528,33 @@ export declare interface MHeaderProps extends HTMLAttributes<HTMLElement> {
|
|
|
1358
1528
|
|
|
1359
1529
|
export declare type MHeaderTone = 'default' | 'surface' | 'subtle';
|
|
1360
1530
|
|
|
1531
|
+
export declare interface MI18nContextValue<T extends Dict = Dict> {
|
|
1532
|
+
locale: string;
|
|
1533
|
+
setLocale: (next: string) => void;
|
|
1534
|
+
toggleLocale: () => void;
|
|
1535
|
+
dict: T;
|
|
1536
|
+
t: (key: string, fallback?: string) => string;
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
export declare function MI18nProvider<T extends Dict = Dict>({ locales, defaultLocale, persist, children, }: MI18nProviderProps<T>): JSX.Element;
|
|
1540
|
+
|
|
1541
|
+
export declare interface MI18nProviderProps<T extends Dict = Dict> {
|
|
1542
|
+
locales: Record<string, T>;
|
|
1543
|
+
defaultLocale?: string;
|
|
1544
|
+
persist?: boolean;
|
|
1545
|
+
children: ReactNode;
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1361
1548
|
export declare type MineralClickEffect = 'none' | 'ripple';
|
|
1362
1549
|
|
|
1363
|
-
export declare type MineralColor = 'primary' | 'neutral' | 'success' | 'error' | 'warning' | 'info';
|
|
1550
|
+
export declare type MineralColor = 'primary' | 'neutral' | 'success' | 'error' | 'warning' | 'info' | 'danger';
|
|
1364
1551
|
|
|
1365
|
-
export declare type MineralFontColor = 'default' | 'muted' | 'heading' | 'inverted' | 'inherit' | 'primary' | 'neutral' | 'success' | 'error' | 'warning' | 'info';
|
|
1552
|
+
export declare type MineralFontColor = 'default' | 'muted' | 'heading' | 'inverted' | 'inherit' | 'primary' | 'neutral' | 'success' | 'error' | 'warning' | 'info' | 'danger';
|
|
1366
1553
|
|
|
1367
1554
|
export declare type MineralMode = 'dark' | 'light';
|
|
1368
1555
|
|
|
1556
|
+
export declare type MineralModePreference = MineralMode | 'system';
|
|
1557
|
+
|
|
1369
1558
|
export declare type MineralSize = 'sm' | 'md' | 'lg';
|
|
1370
1559
|
|
|
1371
1560
|
export declare interface MineralTheme {
|
|
@@ -1414,13 +1603,14 @@ export declare interface MineralTheme {
|
|
|
1414
1603
|
radiusLg?: string;
|
|
1415
1604
|
}
|
|
1416
1605
|
|
|
1417
|
-
declare function MineralThemeProvider({ theme, mode, scope, children }: MineralThemeProviderProps):
|
|
1606
|
+
declare function MineralThemeProvider({ theme, mode: modeProp, persist, scope, children, }: MineralThemeProviderProps): JSX.Element;
|
|
1418
1607
|
export { MineralThemeProvider as MThemeProvider }
|
|
1419
1608
|
export { MineralThemeProvider }
|
|
1420
1609
|
|
|
1421
1610
|
declare interface MineralThemeProviderProps {
|
|
1422
1611
|
theme?: MineralTheme;
|
|
1423
|
-
mode?:
|
|
1612
|
+
mode?: MineralModePreference;
|
|
1613
|
+
persist?: boolean;
|
|
1424
1614
|
scope?: MineralThemeScope;
|
|
1425
1615
|
children: ReactNode;
|
|
1426
1616
|
}
|
|
@@ -1449,7 +1639,7 @@ export declare type MLinkTone = 'default' | 'muted' | 'accent' | 'inherit';
|
|
|
1449
1639
|
|
|
1450
1640
|
export declare type MLinkUnderline = 'always' | 'hover' | 'none';
|
|
1451
1641
|
|
|
1452
|
-
export declare function MNavbar({ container, padded, bordered, sticky, tone, fcolor, justify, align, wrap, className, children, ...rest }: MNavbarProps):
|
|
1642
|
+
export declare function MNavbar({ container, padded, bordered, sticky, tone, fcolor, justify, align, wrap, className, children, ...rest }: MNavbarProps): JSX.Element;
|
|
1453
1643
|
|
|
1454
1644
|
export declare type MNavbarAlign = 'start' | 'center' | 'end' | 'stretch';
|
|
1455
1645
|
|
|
@@ -1470,7 +1660,7 @@ export declare interface MNavbarProps extends HTMLAttributes<HTMLElement> {
|
|
|
1470
1660
|
|
|
1471
1661
|
export declare type MNavbarTone = 'default' | 'surface' | 'subtle';
|
|
1472
1662
|
|
|
1473
|
-
export declare function MNavs({ items, orientation, gap, fcolor, wrap, className, children, ...rest }: MNavsProps):
|
|
1663
|
+
export declare function MNavs({ items, orientation, gap, fcolor, wrap, className, children, ...rest }: MNavsProps): JSX.Element;
|
|
1474
1664
|
|
|
1475
1665
|
export declare type MNavsGap = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
1476
1666
|
|
|
@@ -1494,7 +1684,7 @@ export declare interface MNavsProps extends HTMLAttributes<HTMLElement> {
|
|
|
1494
1684
|
children?: ReactNode;
|
|
1495
1685
|
}
|
|
1496
1686
|
|
|
1497
|
-
declare function Modal({ open, onClose, title, description, footer, size, closeOnBackdrop, closeOnEscape, className, children, ...rest }: ModalProps):
|
|
1687
|
+
declare function Modal({ open, onClose, title, description, footer, size, closeOnBackdrop, closeOnEscape, className, children, ...rest }: ModalProps): JSX.Element | null;
|
|
1498
1688
|
export { Modal as MModal }
|
|
1499
1689
|
export { Modal }
|
|
1500
1690
|
|
|
@@ -1515,7 +1705,97 @@ declare type ModalSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
|
1515
1705
|
export { ModalSize as MModalSize }
|
|
1516
1706
|
export { ModalSize }
|
|
1517
1707
|
|
|
1518
|
-
export declare function
|
|
1708
|
+
export declare function MSidebar({ mode: modeProp, defaultMode, onModeChange, persist, side, tone, bordered, mobileBreakpoint, className, style, children, }: MSidebarProps): JSX.Element;
|
|
1709
|
+
|
|
1710
|
+
export declare function MSidebarDivider({ className, spacing }: MSidebarDividerProps): JSX.Element;
|
|
1711
|
+
|
|
1712
|
+
export declare interface MSidebarDividerProps {
|
|
1713
|
+
className?: string;
|
|
1714
|
+
spacing?: 'sm' | 'md' | 'lg';
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
export declare function MSidebarFooter({ className, children }: MSidebarFooterProps): JSX.Element;
|
|
1718
|
+
|
|
1719
|
+
export declare interface MSidebarFooterProps {
|
|
1720
|
+
className?: string;
|
|
1721
|
+
children: ReactNode;
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
export declare function MSidebarGroup({ label, icon, defaultOpen, collapsible, children, className, }: MSidebarGroupProps): JSX.Element;
|
|
1725
|
+
|
|
1726
|
+
export declare interface MSidebarGroupProps {
|
|
1727
|
+
label: string;
|
|
1728
|
+
icon?: ReactNode;
|
|
1729
|
+
defaultOpen?: boolean;
|
|
1730
|
+
collapsible?: boolean;
|
|
1731
|
+
children: ReactNode;
|
|
1732
|
+
className?: string;
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
export declare function MSidebarHeader({ className, children }: MSidebarHeaderProps): JSX.Element;
|
|
1736
|
+
|
|
1737
|
+
export declare interface MSidebarHeaderProps {
|
|
1738
|
+
className?: string;
|
|
1739
|
+
children: ReactNode;
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
export declare function MSidebarItem({ icon, label, href, to, onClick, active, disabled, badge, color, component, className, }: MSidebarItemProps): JSX.Element;
|
|
1743
|
+
|
|
1744
|
+
export declare interface MSidebarItemProps {
|
|
1745
|
+
icon?: ReactNode;
|
|
1746
|
+
label: ReactNode;
|
|
1747
|
+
href?: string;
|
|
1748
|
+
to?: string;
|
|
1749
|
+
onClick?: () => void;
|
|
1750
|
+
active?: boolean;
|
|
1751
|
+
disabled?: boolean;
|
|
1752
|
+
badge?: ReactNode;
|
|
1753
|
+
color?: MineralColor;
|
|
1754
|
+
component?: ElementType;
|
|
1755
|
+
className?: string;
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
export declare type MSidebarMode = 'expanded' | 'collapsed';
|
|
1759
|
+
|
|
1760
|
+
export declare function MSidebarNav({ className, children }: MSidebarNavProps): JSX.Element;
|
|
1761
|
+
|
|
1762
|
+
export declare interface MSidebarNavProps {
|
|
1763
|
+
className?: string;
|
|
1764
|
+
children: ReactNode;
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
export declare interface MSidebarProps {
|
|
1768
|
+
mode?: 'expanded' | 'collapsed' | 'auto';
|
|
1769
|
+
defaultMode?: MSidebarMode;
|
|
1770
|
+
onModeChange?: (mode: MSidebarMode) => void;
|
|
1771
|
+
persist?: boolean;
|
|
1772
|
+
side?: 'left' | 'right';
|
|
1773
|
+
tone?: 'default' | 'subtle' | 'surface' | 'inverse';
|
|
1774
|
+
bordered?: boolean;
|
|
1775
|
+
mobileBreakpoint?: number;
|
|
1776
|
+
className?: string;
|
|
1777
|
+
style?: CSSProperties;
|
|
1778
|
+
children: ReactNode;
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
export declare function MSubNav({ items, active, onChange, component, className, ...rest }: MSubNavProps): JSX.Element;
|
|
1782
|
+
|
|
1783
|
+
export declare interface MSubNavItem {
|
|
1784
|
+
label: ReactNode;
|
|
1785
|
+
value: string;
|
|
1786
|
+
icon?: ReactNode;
|
|
1787
|
+
href?: string;
|
|
1788
|
+
disabled?: boolean;
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
export declare interface MSubNavProps extends Omit<HTMLAttributes<HTMLElement>, 'onChange'> {
|
|
1792
|
+
items: MSubNavItem[];
|
|
1793
|
+
active?: string;
|
|
1794
|
+
onChange?: (value: string) => void;
|
|
1795
|
+
component?: ElementType;
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
export declare function MTabs({ items, value, defaultValue, onValueChange, variant, orientation, size, fullWidth, fcolor, showPanels, panelClassName, clickEffect, rippleColor, className, ...rest }: MTabsProps): JSX.Element;
|
|
1519
1799
|
|
|
1520
1800
|
export declare interface MTabsItem {
|
|
1521
1801
|
value: string;
|
|
@@ -1566,7 +1846,7 @@ export declare interface PhoneFormatOptions {
|
|
|
1566
1846
|
groupPattern?: number[];
|
|
1567
1847
|
}
|
|
1568
1848
|
|
|
1569
|
-
declare function Popover({ open, anchorRef, onClose, placement, matchWidth, offset, children, className, style, }: PopoverProps):
|
|
1849
|
+
declare function Popover({ open, anchorRef, onClose, placement, matchWidth, offset, children, className, style, }: PopoverProps): JSX.Element | null;
|
|
1570
1850
|
export { Popover as MPopover }
|
|
1571
1851
|
export { Popover }
|
|
1572
1852
|
|
|
@@ -1619,11 +1899,28 @@ export declare interface PostCodeRule {
|
|
|
1619
1899
|
|
|
1620
1900
|
export declare const postCodeRules: Record<string, PostCodeRule>;
|
|
1621
1901
|
|
|
1902
|
+
declare function ProgressBar({ value, max, color, size, label, showValue, animated, striped, className, ...rest }: ProgressBarProps): JSX.Element;
|
|
1903
|
+
export { ProgressBar as MProgressBar }
|
|
1904
|
+
export { ProgressBar }
|
|
1905
|
+
|
|
1906
|
+
declare interface ProgressBarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
1907
|
+
value: number;
|
|
1908
|
+
max?: number;
|
|
1909
|
+
color?: MineralColor;
|
|
1910
|
+
size?: MineralSize;
|
|
1911
|
+
label?: string;
|
|
1912
|
+
showValue?: boolean;
|
|
1913
|
+
animated?: boolean;
|
|
1914
|
+
striped?: boolean;
|
|
1915
|
+
}
|
|
1916
|
+
export { ProgressBarProps as MProgressBarProps }
|
|
1917
|
+
export { ProgressBarProps }
|
|
1918
|
+
|
|
1622
1919
|
declare const Radio: ForwardRefExoticComponent<RadioProps & RefAttributes<HTMLInputElement>>;
|
|
1623
1920
|
export { Radio as MRadio }
|
|
1624
1921
|
export { Radio }
|
|
1625
1922
|
|
|
1626
|
-
declare function RadioGroup({ name, value, defaultValue, onChange, direction, children, disabled, size, color, fcolor, error, errorText, label, className, style, }: RadioGroupProps):
|
|
1923
|
+
declare function RadioGroup({ name, value, defaultValue, onChange, direction, children, disabled, size, color, fcolor, error, errorText, label, className, style, }: RadioGroupProps): JSX.Element;
|
|
1627
1924
|
export { RadioGroup as MRadioGroup }
|
|
1628
1925
|
export { RadioGroup }
|
|
1629
1926
|
|
|
@@ -1668,7 +1965,22 @@ declare interface RadioProps {
|
|
|
1668
1965
|
export { RadioProps as MRadioProps }
|
|
1669
1966
|
export { RadioProps }
|
|
1670
1967
|
|
|
1671
|
-
declare function
|
|
1968
|
+
declare function Rating({ value, max, color, size, readOnly, onChange, className, ...rest }: RatingProps): JSX.Element;
|
|
1969
|
+
export { Rating as MRating }
|
|
1970
|
+
export { Rating }
|
|
1971
|
+
|
|
1972
|
+
declare interface RatingProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
1973
|
+
value?: number;
|
|
1974
|
+
max?: number;
|
|
1975
|
+
color?: MineralColor;
|
|
1976
|
+
size?: MineralSize;
|
|
1977
|
+
readOnly?: boolean;
|
|
1978
|
+
onChange?: (value: number) => void;
|
|
1979
|
+
}
|
|
1980
|
+
export { RatingProps as MRatingProps }
|
|
1981
|
+
export { RatingProps }
|
|
1982
|
+
|
|
1983
|
+
declare function Section({ as, spacing, tone, className, style, children, ...rest }: SectionProps): JSX.Element;
|
|
1672
1984
|
export { Section as MSection }
|
|
1673
1985
|
export { Section }
|
|
1674
1986
|
|
|
@@ -1687,7 +1999,7 @@ export declare type SectionSpacing = 'sm' | 'md' | 'lg' | 'xl';
|
|
|
1687
1999
|
|
|
1688
2000
|
export declare type SectionTone = 'default' | 'subtle' | 'surface' | 'inverse';
|
|
1689
2001
|
|
|
1690
|
-
declare function Select({ options, value, defaultValue, onChange, multiple, searchable, placeholder, disabled, name, id, variant, size, color, fcolor, fullWidth, label, helperText, errorText, error, required, loading, clearable, maxHeight, noOptionsText, renderOption, renderValue, className, style, }: SelectProps):
|
|
2002
|
+
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.Element;
|
|
1691
2003
|
export { Select as MSelect }
|
|
1692
2004
|
export { Select }
|
|
1693
2005
|
|
|
@@ -1737,7 +2049,7 @@ declare type SelectVariant = 'outlined' | 'filled' | 'underlined';
|
|
|
1737
2049
|
export { SelectVariant as MSelectVariant }
|
|
1738
2050
|
export { SelectVariant }
|
|
1739
2051
|
|
|
1740
|
-
declare function Spinner({ color, size, label, className, style, ...rest }: SpinnerProps):
|
|
2052
|
+
declare function Spinner({ color, size, label, className, style, ...rest }: SpinnerProps): JSX.Element;
|
|
1741
2053
|
export { Spinner as MSpinner }
|
|
1742
2054
|
export { Spinner }
|
|
1743
2055
|
|
|
@@ -1749,7 +2061,7 @@ declare interface SpinnerProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'co
|
|
|
1749
2061
|
export { SpinnerProps as MSpinnerProps }
|
|
1750
2062
|
export { SpinnerProps }
|
|
1751
2063
|
|
|
1752
|
-
declare function Stack({ gap, align, spacing, padding, fsize, fcolor, mt, mb, ml, mr, mx, my, pt, pb, pl, pr, px, py, fullWidth, className, style, children, ...rest }: StackProps):
|
|
2064
|
+
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.Element;
|
|
1753
2065
|
export { Stack as MStack }
|
|
1754
2066
|
export { Stack }
|
|
1755
2067
|
|
|
@@ -1775,7 +2087,24 @@ export declare function stripNonDigits(value: string): string;
|
|
|
1775
2087
|
|
|
1776
2088
|
export declare function stripTime(date: Date): Date;
|
|
1777
2089
|
|
|
1778
|
-
declare function
|
|
2090
|
+
declare function SubText({ as, size, fcolor, className, children, ...rest }: SubTextProps): JSX.Element;
|
|
2091
|
+
export { SubText as MSubText }
|
|
2092
|
+
export { SubText }
|
|
2093
|
+
|
|
2094
|
+
declare interface SubTextProps extends HTMLAttributes<HTMLElement> {
|
|
2095
|
+
as?: 'span' | 'p' | 'div' | 'small';
|
|
2096
|
+
size?: SubTextSize;
|
|
2097
|
+
fcolor?: MineralFontColor;
|
|
2098
|
+
children?: ReactNode;
|
|
2099
|
+
}
|
|
2100
|
+
export { SubTextProps as MSubTextProps }
|
|
2101
|
+
export { SubTextProps }
|
|
2102
|
+
|
|
2103
|
+
declare type SubTextSize = 'xs' | 'sm' | 'md';
|
|
2104
|
+
export { SubTextSize as MSubTextSize }
|
|
2105
|
+
export { SubTextSize }
|
|
2106
|
+
|
|
2107
|
+
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.Element;
|
|
1779
2108
|
export { Surface as MSurface }
|
|
1780
2109
|
export { Surface }
|
|
1781
2110
|
|
|
@@ -1792,15 +2121,15 @@ export { SurfaceProps }
|
|
|
1792
2121
|
|
|
1793
2122
|
export declare type SurfaceTone = 'default' | 'subtle' | 'raised' | 'inverse';
|
|
1794
2123
|
|
|
1795
|
-
declare function Table({ className, children, ...rest }: TableProps):
|
|
2124
|
+
declare function Table({ className, children, ...rest }: TableProps): JSX.Element;
|
|
1796
2125
|
export { Table as MTable }
|
|
1797
2126
|
export { Table }
|
|
1798
2127
|
|
|
1799
|
-
declare function TableBody({ className, children, ...rest }: HTMLAttributes<HTMLTableSectionElement>):
|
|
2128
|
+
declare function TableBody({ className, children, ...rest }: HTMLAttributes<HTMLTableSectionElement>): JSX.Element;
|
|
1800
2129
|
export { TableBody as MTableBody }
|
|
1801
2130
|
export { TableBody }
|
|
1802
2131
|
|
|
1803
|
-
declare function TableCell({ className, children, ...rest }: TableCellProps):
|
|
2132
|
+
declare function TableCell({ className, children, ...rest }: TableCellProps): JSX.Element;
|
|
1804
2133
|
export { TableCell as MTableCell }
|
|
1805
2134
|
export { TableCell }
|
|
1806
2135
|
|
|
@@ -1810,11 +2139,11 @@ declare interface TableCellProps extends TdHTMLAttributes<HTMLTableCellElement>
|
|
|
1810
2139
|
export { TableCellProps as MTableCellProps }
|
|
1811
2140
|
export { TableCellProps }
|
|
1812
2141
|
|
|
1813
|
-
declare function TableHead({ className, children, ...rest }: HTMLAttributes<HTMLTableSectionElement>):
|
|
2142
|
+
declare function TableHead({ className, children, ...rest }: HTMLAttributes<HTMLTableSectionElement>): JSX.Element;
|
|
1814
2143
|
export { TableHead as MTableHead }
|
|
1815
2144
|
export { TableHead }
|
|
1816
2145
|
|
|
1817
|
-
declare function TableHeadCell({ className, children, ...rest }: TableHeadCellProps):
|
|
2146
|
+
declare function TableHeadCell({ className, children, ...rest }: TableHeadCellProps): JSX.Element;
|
|
1818
2147
|
export { TableHeadCell as MTableHeadCell }
|
|
1819
2148
|
export { TableHeadCell }
|
|
1820
2149
|
|
|
@@ -1830,7 +2159,7 @@ declare interface TableProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1830
2159
|
export { TableProps as MTableProps }
|
|
1831
2160
|
export { TableProps }
|
|
1832
2161
|
|
|
1833
|
-
declare function TableRoot({ className, children, ...rest }: TableRootProps):
|
|
2162
|
+
declare function TableRoot({ className, children, ...rest }: TableRootProps): JSX.Element;
|
|
1834
2163
|
export { TableRoot as MTableRoot }
|
|
1835
2164
|
export { TableRoot }
|
|
1836
2165
|
|
|
@@ -1840,15 +2169,37 @@ declare interface TableRootProps extends TableHTMLAttributes<HTMLTableElement> {
|
|
|
1840
2169
|
export { TableRootProps as MTableRootProps }
|
|
1841
2170
|
export { TableRootProps }
|
|
1842
2171
|
|
|
1843
|
-
declare function TableRow({ className, children, ...rest }: HTMLAttributes<HTMLTableRowElement>):
|
|
2172
|
+
declare function TableRow({ className, children, ...rest }: HTMLAttributes<HTMLTableRowElement>): JSX.Element;
|
|
1844
2173
|
export { TableRow as MTableRow }
|
|
1845
2174
|
export { TableRow }
|
|
1846
2175
|
|
|
2176
|
+
declare interface TaskItem {
|
|
2177
|
+
id: string;
|
|
2178
|
+
label: ReactNode;
|
|
2179
|
+
checked?: boolean;
|
|
2180
|
+
disabled?: boolean;
|
|
2181
|
+
}
|
|
2182
|
+
export { TaskItem as MTaskItem }
|
|
2183
|
+
export { TaskItem }
|
|
2184
|
+
|
|
2185
|
+
declare function TaskList({ items, color, strikethrough, onChange, className, ...rest }: TaskListProps): JSX.Element;
|
|
2186
|
+
export { TaskList as MTaskList }
|
|
2187
|
+
export { TaskList }
|
|
2188
|
+
|
|
2189
|
+
declare interface TaskListProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
2190
|
+
items: TaskItem[];
|
|
2191
|
+
color?: MineralColor;
|
|
2192
|
+
strikethrough?: boolean;
|
|
2193
|
+
onChange?: (id: string, checked: boolean) => void;
|
|
2194
|
+
}
|
|
2195
|
+
export { TaskListProps as MTaskListProps }
|
|
2196
|
+
export { TaskListProps }
|
|
2197
|
+
|
|
1847
2198
|
declare type TaxIdType = 'NIP' | 'PESEL' | 'REGON';
|
|
1848
2199
|
export { TaxIdType as MTaxIdType }
|
|
1849
2200
|
export { TaxIdType }
|
|
1850
2201
|
|
|
1851
|
-
declare function Text_2({ as, tone, size, align, color, fcolor, weight, spacing, padding, fsize, mt, mb, ml, mr, mx, my, pt, pb, pl, pr, px, py, fullWidth, className, children, ...rest }: TextProps):
|
|
2202
|
+
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.Element;
|
|
1852
2203
|
export { Text_2 as MText }
|
|
1853
2204
|
export { Text_2 as Text }
|
|
1854
2205
|
|
|
@@ -1921,10 +2272,13 @@ export declare type TextTone = 'default' | 'muted' | 'accent' | 'success' | 'dan
|
|
|
1921
2272
|
|
|
1922
2273
|
declare interface ThemeContextValue {
|
|
1923
2274
|
theme: MineralTheme;
|
|
1924
|
-
mode:
|
|
2275
|
+
mode: MineralModePreference;
|
|
2276
|
+
resolvedMode: MineralMode;
|
|
2277
|
+
setMode: (next: MineralModePreference) => void;
|
|
2278
|
+
toggleMode: () => void;
|
|
1925
2279
|
}
|
|
1926
2280
|
|
|
1927
|
-
declare function TimePicker({ value, defaultValue, onChange, format, showSeconds, minuteStep, min, max, placeholder, disabled, readOnly, name, id, variant, size, fcolor, label, helperText, errorText, error, required, clearable, fullWidth, className, style, }: TimePickerProps):
|
|
2281
|
+
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.Element;
|
|
1928
2282
|
export { TimePicker as MTimePicker }
|
|
1929
2283
|
export { TimePicker }
|
|
1930
2284
|
|
|
@@ -2054,6 +2408,8 @@ declare interface UseKeyboardNavOptions {
|
|
|
2054
2408
|
export { UseKeyboardNavOptions as UseKeyNavigationOptions }
|
|
2055
2409
|
export { UseKeyboardNavOptions }
|
|
2056
2410
|
|
|
2411
|
+
export declare function useMI18n<T extends Dict = Dict>(): MI18nContextValue<T>;
|
|
2412
|
+
|
|
2057
2413
|
declare function useTheme(): ThemeContextValue;
|
|
2058
2414
|
export { useTheme as useMTheme }
|
|
2059
2415
|
export { useTheme }
|