@banzamel/mineralui 0.4.1 → 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 +424 -69
- package/dist/index.js +5850 -5697
- 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,19 +385,19 @@ export { CalendarTimelineSlotState as MCalendarTimelineSlotState }
|
|
|
362
385
|
|
|
363
386
|
export declare function capitalizeWords(value: string): string;
|
|
364
387
|
|
|
365
|
-
declare function Card({ interactive, stretch, 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
|
|
|
@@ -394,6 +417,27 @@ declare interface CardSectionProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
394
417
|
children?: ReactNode;
|
|
395
418
|
}
|
|
396
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
|
+
|
|
397
441
|
declare const Checkbox: ForwardRefExoticComponent<CheckboxProps & RefAttributes<HTMLInputElement>>;
|
|
398
442
|
export { Checkbox }
|
|
399
443
|
export { Checkbox as MCheckbox }
|
|
@@ -426,7 +470,7 @@ declare function cn(...classes: (string | undefined | null | false)[]): string;
|
|
|
426
470
|
export { cn }
|
|
427
471
|
export { cn as mergeClasses }
|
|
428
472
|
|
|
429
|
-
declare function Code({ color, fcolor, className, children, ...rest }: CodeProps):
|
|
473
|
+
declare function Code({ color, fcolor, className, children, ...rest }: CodeProps): JSX.Element;
|
|
430
474
|
export { Code }
|
|
431
475
|
export { Code as MCode }
|
|
432
476
|
|
|
@@ -438,11 +482,11 @@ declare interface CodeProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
|
438
482
|
export { CodeProps }
|
|
439
483
|
export { CodeProps as MCodeProps }
|
|
440
484
|
|
|
441
|
-
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;
|
|
442
486
|
export { Collapsible }
|
|
443
487
|
export { Collapsible as MCollapsible }
|
|
444
488
|
|
|
445
|
-
declare interface CollapsibleProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
489
|
+
declare interface CollapsibleProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'onToggle'> {
|
|
446
490
|
title: ReactNode;
|
|
447
491
|
defaultOpen?: boolean;
|
|
448
492
|
open?: boolean;
|
|
@@ -455,7 +499,7 @@ export { CollapsibleProps as MCollapsibleProps }
|
|
|
455
499
|
|
|
456
500
|
export declare function composeValidators(...validators: ValidatorFn[]): ValidatorFn;
|
|
457
501
|
|
|
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):
|
|
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;
|
|
459
503
|
export { Container }
|
|
460
504
|
export { Container as MContainer }
|
|
461
505
|
|
|
@@ -471,6 +515,22 @@ export { ContainerProps as MContainerProps }
|
|
|
471
515
|
|
|
472
516
|
export declare type ContainerSize = 'content' | 'wide' | 'full';
|
|
473
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
|
+
|
|
474
534
|
export declare type CreditCardBrand = 'visa' | 'mastercard' | 'amex' | 'discover' | 'maestro' | 'unknown';
|
|
475
535
|
|
|
476
536
|
export declare interface CreditCardBrandDetails {
|
|
@@ -490,7 +550,7 @@ export declare interface CurrencyFormatOptions {
|
|
|
490
550
|
precision?: number;
|
|
491
551
|
}
|
|
492
552
|
|
|
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):
|
|
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;
|
|
494
554
|
export { DatePicker }
|
|
495
555
|
export { DatePicker as MDatePicker }
|
|
496
556
|
|
|
@@ -531,7 +591,7 @@ declare type DatePickerVariant = 'outlined' | 'filled' | 'underlined';
|
|
|
531
591
|
export { DatePickerVariant }
|
|
532
592
|
export { DatePickerVariant as MDatePickerVariant }
|
|
533
593
|
|
|
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):
|
|
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;
|
|
535
595
|
export { DateRangePicker }
|
|
536
596
|
export { DateRangePicker as MDateRangePicker }
|
|
537
597
|
|
|
@@ -564,6 +624,7 @@ declare interface DateRangePickerProps {
|
|
|
564
624
|
inline?: boolean;
|
|
565
625
|
showTodayButton?: boolean;
|
|
566
626
|
presets?: boolean | DateRangePreset[];
|
|
627
|
+
presetsSidebar?: boolean;
|
|
567
628
|
firstDayOfWeek?: 0 | 1;
|
|
568
629
|
fullWidth?: boolean;
|
|
569
630
|
allowSameDay?: boolean;
|
|
@@ -598,7 +659,9 @@ export declare function daysInMonth(year: number, month: number): number;
|
|
|
598
659
|
|
|
599
660
|
export declare function detectCardBrand(value: string): CreditCardBrandDetails;
|
|
600
661
|
|
|
601
|
-
declare
|
|
662
|
+
declare type Dict = Record<string, unknown>;
|
|
663
|
+
|
|
664
|
+
declare function Divider({ className, style, ...rest }: DividerProps): JSX.Element;
|
|
602
665
|
export { Divider }
|
|
603
666
|
export { Divider as MDivider }
|
|
604
667
|
|
|
@@ -619,7 +682,7 @@ export { FieldRegistration as MFieldRegistration }
|
|
|
619
682
|
|
|
620
683
|
export declare function firstDayOfMonth(year: number, month: number): number;
|
|
621
684
|
|
|
622
|
-
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;
|
|
623
686
|
export { Form }
|
|
624
687
|
export { Form as MForm }
|
|
625
688
|
|
|
@@ -686,13 +749,38 @@ declare interface FormProps {
|
|
|
686
749
|
export { FormProps }
|
|
687
750
|
export { FormProps as MFormProps }
|
|
688
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
|
+
|
|
689
777
|
export declare function getDayNames(locale?: 'pl' | 'en'): string[];
|
|
690
778
|
|
|
691
779
|
export declare function getMonthNames(locale?: 'pl' | 'en'): string[];
|
|
692
780
|
|
|
693
781
|
export declare function getPostCodeRule(countryCode?: string): PostCodeRule;
|
|
694
782
|
|
|
695
|
-
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;
|
|
696
784
|
|
|
697
785
|
export declare type GridColumns = (typeof gridColumnValues)[number];
|
|
698
786
|
|
|
@@ -712,6 +800,7 @@ onSelect?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
|
712
800
|
slot?: string | undefined | undefined;
|
|
713
801
|
style?: CSSProperties | undefined;
|
|
714
802
|
title?: string | undefined | undefined;
|
|
803
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
715
804
|
hidden?: boolean | undefined | undefined;
|
|
716
805
|
content?: string | undefined | undefined;
|
|
717
806
|
role?: AriaRole | undefined;
|
|
@@ -754,6 +843,9 @@ itemRef?: string | undefined | undefined;
|
|
|
754
843
|
results?: number | undefined | undefined;
|
|
755
844
|
security?: string | undefined | undefined;
|
|
756
845
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
846
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
847
|
+
popoverTarget?: string | undefined | undefined;
|
|
848
|
+
inert?: boolean | undefined | undefined;
|
|
757
849
|
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
758
850
|
is?: string | undefined | undefined;
|
|
759
851
|
exportparts?: string | undefined | undefined;
|
|
@@ -830,18 +922,18 @@ onFocus?: FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
|
830
922
|
onFocusCapture?: FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
831
923
|
onBlur?: FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
832
924
|
onBlurCapture?: FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
833
|
-
onChange?:
|
|
834
|
-
onChangeCapture?:
|
|
925
|
+
onChange?: ChangeEventHandler<HTMLHeadingElement, Element> | undefined;
|
|
926
|
+
onChangeCapture?: ChangeEventHandler<HTMLHeadingElement, Element> | undefined;
|
|
835
927
|
onBeforeInput?: InputEventHandler<HTMLHeadingElement> | undefined;
|
|
836
|
-
onBeforeInputCapture?:
|
|
837
|
-
onInput?:
|
|
838
|
-
onInputCapture?:
|
|
839
|
-
onReset?:
|
|
840
|
-
onResetCapture?:
|
|
841
|
-
onSubmit?:
|
|
842
|
-
onSubmitCapture?:
|
|
843
|
-
onInvalid?:
|
|
844
|
-
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;
|
|
845
937
|
onLoad?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
846
938
|
onLoadCapture?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
847
939
|
onError?: ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
@@ -961,6 +1053,8 @@ onLostPointerCapture?: PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
|
961
1053
|
onLostPointerCaptureCapture?: PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
962
1054
|
onScroll?: UIEventHandler<HTMLHeadingElement> | undefined;
|
|
963
1055
|
onScrollCapture?: UIEventHandler<HTMLHeadingElement> | undefined;
|
|
1056
|
+
onScrollEnd?: UIEventHandler<HTMLHeadingElement> | undefined;
|
|
1057
|
+
onScrollEndCapture?: UIEventHandler<HTMLHeadingElement> | undefined;
|
|
964
1058
|
onWheel?: WheelEventHandler<HTMLHeadingElement> | undefined;
|
|
965
1059
|
onWheelCapture?: WheelEventHandler<HTMLHeadingElement> | undefined;
|
|
966
1060
|
onAnimationStart?: AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
@@ -969,8 +1063,16 @@ onAnimationEnd?: AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
|
969
1063
|
onAnimationEndCapture?: AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
970
1064
|
onAnimationIteration?: AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
971
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;
|
|
972
1070
|
onTransitionEnd?: TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
973
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;
|
|
974
1076
|
className: string;
|
|
975
1077
|
}, HTMLElement>;
|
|
976
1078
|
export { Heading }
|
|
@@ -987,7 +1089,30 @@ declare interface HeadingProps extends Omit<HTMLAttributes<HTMLHeadingElement>,
|
|
|
987
1089
|
export { HeadingProps }
|
|
988
1090
|
export { HeadingProps as MHeadingProps }
|
|
989
1091
|
|
|
990
|
-
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;
|
|
991
1116
|
export { Inline }
|
|
992
1117
|
export { Inline as MInline }
|
|
993
1118
|
|
|
@@ -1275,11 +1400,11 @@ declare interface LayoutUtilityProps {
|
|
|
1275
1400
|
fullWidth?: boolean;
|
|
1276
1401
|
}
|
|
1277
1402
|
|
|
1278
|
-
declare function List({ ordered, color, fcolor, className, children, ...rest }: ListProps):
|
|
1403
|
+
declare function List({ ordered, color, fcolor, className, children, ...rest }: ListProps): JSX.Element;
|
|
1279
1404
|
export { List }
|
|
1280
1405
|
export { List as MList }
|
|
1281
1406
|
|
|
1282
|
-
declare function ListItem({ className, children, ...rest }: HTMLAttributes<HTMLLIElement>):
|
|
1407
|
+
declare function ListItem({ className, children, ...rest }: HTMLAttributes<HTMLLIElement>): JSX.Element;
|
|
1283
1408
|
export { ListItem }
|
|
1284
1409
|
export { ListItem as MListItem }
|
|
1285
1410
|
|
|
@@ -1292,7 +1417,7 @@ declare interface ListProps extends Omit<HTMLAttributes<HTMLUListElement>, 'colo
|
|
|
1292
1417
|
export { ListProps }
|
|
1293
1418
|
export { ListProps as MListProps }
|
|
1294
1419
|
|
|
1295
|
-
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;
|
|
1296
1421
|
export { Loader }
|
|
1297
1422
|
export { Loader as MLoader }
|
|
1298
1423
|
|
|
@@ -1306,7 +1431,51 @@ declare interface LoaderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'colo
|
|
|
1306
1431
|
export { LoaderProps }
|
|
1307
1432
|
export { LoaderProps as MLoaderProps }
|
|
1308
1433
|
|
|
1309
|
-
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;
|
|
1310
1479
|
|
|
1311
1480
|
export declare interface MFooterProps extends HTMLAttributes<HTMLElement>, LayoutUtilityProps {
|
|
1312
1481
|
container?: ContainerSize;
|
|
@@ -1316,13 +1485,13 @@ export declare interface MFooterProps extends HTMLAttributes<HTMLElement>, Layou
|
|
|
1316
1485
|
children?: ReactNode;
|
|
1317
1486
|
}
|
|
1318
1487
|
|
|
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):
|
|
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;
|
|
1320
1489
|
|
|
1321
1490
|
export declare type MGridColumns = (typeof mGridColumnValues)[number];
|
|
1322
1491
|
|
|
1323
1492
|
declare const mGridColumnValues: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
|
1324
1493
|
|
|
1325
|
-
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;
|
|
1326
1495
|
|
|
1327
1496
|
export declare interface MGridItemProps extends Omit<MGridProps, 'type' | 'gap'>, Pick<MGridProps, 'span' | 'sm' | 'md' | 'lg' | 'xl'> {
|
|
1328
1497
|
children?: ReactNode;
|
|
@@ -1345,7 +1514,7 @@ export declare interface MGridProps extends HTMLAttributes<HTMLDivElement>, Layo
|
|
|
1345
1514
|
|
|
1346
1515
|
export declare type MGridType = 'row' | 'col';
|
|
1347
1516
|
|
|
1348
|
-
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;
|
|
1349
1518
|
|
|
1350
1519
|
export declare interface MHeaderProps extends HTMLAttributes<HTMLElement> {
|
|
1351
1520
|
container?: ContainerSize;
|
|
@@ -1359,14 +1528,33 @@ export declare interface MHeaderProps extends HTMLAttributes<HTMLElement> {
|
|
|
1359
1528
|
|
|
1360
1529
|
export declare type MHeaderTone = 'default' | 'surface' | 'subtle';
|
|
1361
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
|
+
|
|
1362
1548
|
export declare type MineralClickEffect = 'none' | 'ripple';
|
|
1363
1549
|
|
|
1364
|
-
export declare type MineralColor = 'primary' | 'neutral' | 'success' | 'error' | 'warning' | 'info';
|
|
1550
|
+
export declare type MineralColor = 'primary' | 'neutral' | 'success' | 'error' | 'warning' | 'info' | 'danger';
|
|
1365
1551
|
|
|
1366
|
-
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';
|
|
1367
1553
|
|
|
1368
1554
|
export declare type MineralMode = 'dark' | 'light';
|
|
1369
1555
|
|
|
1556
|
+
export declare type MineralModePreference = MineralMode | 'system';
|
|
1557
|
+
|
|
1370
1558
|
export declare type MineralSize = 'sm' | 'md' | 'lg';
|
|
1371
1559
|
|
|
1372
1560
|
export declare interface MineralTheme {
|
|
@@ -1415,13 +1603,14 @@ export declare interface MineralTheme {
|
|
|
1415
1603
|
radiusLg?: string;
|
|
1416
1604
|
}
|
|
1417
1605
|
|
|
1418
|
-
declare function MineralThemeProvider({ theme, mode, scope, children }: MineralThemeProviderProps):
|
|
1606
|
+
declare function MineralThemeProvider({ theme, mode: modeProp, persist, scope, children, }: MineralThemeProviderProps): JSX.Element;
|
|
1419
1607
|
export { MineralThemeProvider as MThemeProvider }
|
|
1420
1608
|
export { MineralThemeProvider }
|
|
1421
1609
|
|
|
1422
1610
|
declare interface MineralThemeProviderProps {
|
|
1423
1611
|
theme?: MineralTheme;
|
|
1424
|
-
mode?:
|
|
1612
|
+
mode?: MineralModePreference;
|
|
1613
|
+
persist?: boolean;
|
|
1425
1614
|
scope?: MineralThemeScope;
|
|
1426
1615
|
children: ReactNode;
|
|
1427
1616
|
}
|
|
@@ -1450,7 +1639,7 @@ export declare type MLinkTone = 'default' | 'muted' | 'accent' | 'inherit';
|
|
|
1450
1639
|
|
|
1451
1640
|
export declare type MLinkUnderline = 'always' | 'hover' | 'none';
|
|
1452
1641
|
|
|
1453
|
-
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;
|
|
1454
1643
|
|
|
1455
1644
|
export declare type MNavbarAlign = 'start' | 'center' | 'end' | 'stretch';
|
|
1456
1645
|
|
|
@@ -1471,7 +1660,7 @@ export declare interface MNavbarProps extends HTMLAttributes<HTMLElement> {
|
|
|
1471
1660
|
|
|
1472
1661
|
export declare type MNavbarTone = 'default' | 'surface' | 'subtle';
|
|
1473
1662
|
|
|
1474
|
-
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;
|
|
1475
1664
|
|
|
1476
1665
|
export declare type MNavsGap = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
1477
1666
|
|
|
@@ -1495,7 +1684,7 @@ export declare interface MNavsProps extends HTMLAttributes<HTMLElement> {
|
|
|
1495
1684
|
children?: ReactNode;
|
|
1496
1685
|
}
|
|
1497
1686
|
|
|
1498
|
-
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;
|
|
1499
1688
|
export { Modal as MModal }
|
|
1500
1689
|
export { Modal }
|
|
1501
1690
|
|
|
@@ -1516,7 +1705,97 @@ declare type ModalSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
|
1516
1705
|
export { ModalSize as MModalSize }
|
|
1517
1706
|
export { ModalSize }
|
|
1518
1707
|
|
|
1519
|
-
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;
|
|
1520
1799
|
|
|
1521
1800
|
export declare interface MTabsItem {
|
|
1522
1801
|
value: string;
|
|
@@ -1567,7 +1846,7 @@ export declare interface PhoneFormatOptions {
|
|
|
1567
1846
|
groupPattern?: number[];
|
|
1568
1847
|
}
|
|
1569
1848
|
|
|
1570
|
-
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;
|
|
1571
1850
|
export { Popover as MPopover }
|
|
1572
1851
|
export { Popover }
|
|
1573
1852
|
|
|
@@ -1620,11 +1899,28 @@ export declare interface PostCodeRule {
|
|
|
1620
1899
|
|
|
1621
1900
|
export declare const postCodeRules: Record<string, PostCodeRule>;
|
|
1622
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
|
+
|
|
1623
1919
|
declare const Radio: ForwardRefExoticComponent<RadioProps & RefAttributes<HTMLInputElement>>;
|
|
1624
1920
|
export { Radio as MRadio }
|
|
1625
1921
|
export { Radio }
|
|
1626
1922
|
|
|
1627
|
-
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;
|
|
1628
1924
|
export { RadioGroup as MRadioGroup }
|
|
1629
1925
|
export { RadioGroup }
|
|
1630
1926
|
|
|
@@ -1669,7 +1965,22 @@ declare interface RadioProps {
|
|
|
1669
1965
|
export { RadioProps as MRadioProps }
|
|
1670
1966
|
export { RadioProps }
|
|
1671
1967
|
|
|
1672
|
-
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;
|
|
1673
1984
|
export { Section as MSection }
|
|
1674
1985
|
export { Section }
|
|
1675
1986
|
|
|
@@ -1688,7 +1999,7 @@ export declare type SectionSpacing = 'sm' | 'md' | 'lg' | 'xl';
|
|
|
1688
1999
|
|
|
1689
2000
|
export declare type SectionTone = 'default' | 'subtle' | 'surface' | 'inverse';
|
|
1690
2001
|
|
|
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):
|
|
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;
|
|
1692
2003
|
export { Select as MSelect }
|
|
1693
2004
|
export { Select }
|
|
1694
2005
|
|
|
@@ -1738,7 +2049,7 @@ declare type SelectVariant = 'outlined' | 'filled' | 'underlined';
|
|
|
1738
2049
|
export { SelectVariant as MSelectVariant }
|
|
1739
2050
|
export { SelectVariant }
|
|
1740
2051
|
|
|
1741
|
-
declare function Spinner({ color, size, label, className, style, ...rest }: SpinnerProps):
|
|
2052
|
+
declare function Spinner({ color, size, label, className, style, ...rest }: SpinnerProps): JSX.Element;
|
|
1742
2053
|
export { Spinner as MSpinner }
|
|
1743
2054
|
export { Spinner }
|
|
1744
2055
|
|
|
@@ -1750,7 +2061,7 @@ declare interface SpinnerProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'co
|
|
|
1750
2061
|
export { SpinnerProps as MSpinnerProps }
|
|
1751
2062
|
export { SpinnerProps }
|
|
1752
2063
|
|
|
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):
|
|
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;
|
|
1754
2065
|
export { Stack as MStack }
|
|
1755
2066
|
export { Stack }
|
|
1756
2067
|
|
|
@@ -1776,7 +2087,24 @@ export declare function stripNonDigits(value: string): string;
|
|
|
1776
2087
|
|
|
1777
2088
|
export declare function stripTime(date: Date): Date;
|
|
1778
2089
|
|
|
1779
|
-
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;
|
|
1780
2108
|
export { Surface as MSurface }
|
|
1781
2109
|
export { Surface }
|
|
1782
2110
|
|
|
@@ -1793,15 +2121,15 @@ export { SurfaceProps }
|
|
|
1793
2121
|
|
|
1794
2122
|
export declare type SurfaceTone = 'default' | 'subtle' | 'raised' | 'inverse';
|
|
1795
2123
|
|
|
1796
|
-
declare function Table({ className, children, ...rest }: TableProps):
|
|
2124
|
+
declare function Table({ className, children, ...rest }: TableProps): JSX.Element;
|
|
1797
2125
|
export { Table as MTable }
|
|
1798
2126
|
export { Table }
|
|
1799
2127
|
|
|
1800
|
-
declare function TableBody({ className, children, ...rest }: HTMLAttributes<HTMLTableSectionElement>):
|
|
2128
|
+
declare function TableBody({ className, children, ...rest }: HTMLAttributes<HTMLTableSectionElement>): JSX.Element;
|
|
1801
2129
|
export { TableBody as MTableBody }
|
|
1802
2130
|
export { TableBody }
|
|
1803
2131
|
|
|
1804
|
-
declare function TableCell({ className, children, ...rest }: TableCellProps):
|
|
2132
|
+
declare function TableCell({ className, children, ...rest }: TableCellProps): JSX.Element;
|
|
1805
2133
|
export { TableCell as MTableCell }
|
|
1806
2134
|
export { TableCell }
|
|
1807
2135
|
|
|
@@ -1811,11 +2139,11 @@ declare interface TableCellProps extends TdHTMLAttributes<HTMLTableCellElement>
|
|
|
1811
2139
|
export { TableCellProps as MTableCellProps }
|
|
1812
2140
|
export { TableCellProps }
|
|
1813
2141
|
|
|
1814
|
-
declare function TableHead({ className, children, ...rest }: HTMLAttributes<HTMLTableSectionElement>):
|
|
2142
|
+
declare function TableHead({ className, children, ...rest }: HTMLAttributes<HTMLTableSectionElement>): JSX.Element;
|
|
1815
2143
|
export { TableHead as MTableHead }
|
|
1816
2144
|
export { TableHead }
|
|
1817
2145
|
|
|
1818
|
-
declare function TableHeadCell({ className, children, ...rest }: TableHeadCellProps):
|
|
2146
|
+
declare function TableHeadCell({ className, children, ...rest }: TableHeadCellProps): JSX.Element;
|
|
1819
2147
|
export { TableHeadCell as MTableHeadCell }
|
|
1820
2148
|
export { TableHeadCell }
|
|
1821
2149
|
|
|
@@ -1831,7 +2159,7 @@ declare interface TableProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1831
2159
|
export { TableProps as MTableProps }
|
|
1832
2160
|
export { TableProps }
|
|
1833
2161
|
|
|
1834
|
-
declare function TableRoot({ className, children, ...rest }: TableRootProps):
|
|
2162
|
+
declare function TableRoot({ className, children, ...rest }: TableRootProps): JSX.Element;
|
|
1835
2163
|
export { TableRoot as MTableRoot }
|
|
1836
2164
|
export { TableRoot }
|
|
1837
2165
|
|
|
@@ -1841,15 +2169,37 @@ declare interface TableRootProps extends TableHTMLAttributes<HTMLTableElement> {
|
|
|
1841
2169
|
export { TableRootProps as MTableRootProps }
|
|
1842
2170
|
export { TableRootProps }
|
|
1843
2171
|
|
|
1844
|
-
declare function TableRow({ className, children, ...rest }: HTMLAttributes<HTMLTableRowElement>):
|
|
2172
|
+
declare function TableRow({ className, children, ...rest }: HTMLAttributes<HTMLTableRowElement>): JSX.Element;
|
|
1845
2173
|
export { TableRow as MTableRow }
|
|
1846
2174
|
export { TableRow }
|
|
1847
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
|
+
|
|
1848
2198
|
declare type TaxIdType = 'NIP' | 'PESEL' | 'REGON';
|
|
1849
2199
|
export { TaxIdType as MTaxIdType }
|
|
1850
2200
|
export { TaxIdType }
|
|
1851
2201
|
|
|
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):
|
|
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;
|
|
1853
2203
|
export { Text_2 as MText }
|
|
1854
2204
|
export { Text_2 as Text }
|
|
1855
2205
|
|
|
@@ -1922,10 +2272,13 @@ export declare type TextTone = 'default' | 'muted' | 'accent' | 'success' | 'dan
|
|
|
1922
2272
|
|
|
1923
2273
|
declare interface ThemeContextValue {
|
|
1924
2274
|
theme: MineralTheme;
|
|
1925
|
-
mode:
|
|
2275
|
+
mode: MineralModePreference;
|
|
2276
|
+
resolvedMode: MineralMode;
|
|
2277
|
+
setMode: (next: MineralModePreference) => void;
|
|
2278
|
+
toggleMode: () => void;
|
|
1926
2279
|
}
|
|
1927
2280
|
|
|
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):
|
|
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;
|
|
1929
2282
|
export { TimePicker as MTimePicker }
|
|
1930
2283
|
export { TimePicker }
|
|
1931
2284
|
|
|
@@ -2055,6 +2408,8 @@ declare interface UseKeyboardNavOptions {
|
|
|
2055
2408
|
export { UseKeyboardNavOptions as UseKeyNavigationOptions }
|
|
2056
2409
|
export { UseKeyboardNavOptions }
|
|
2057
2410
|
|
|
2411
|
+
export declare function useMI18n<T extends Dict = Dict>(): MI18nContextValue<T>;
|
|
2412
|
+
|
|
2058
2413
|
declare function useTheme(): ThemeContextValue;
|
|
2059
2414
|
export { useTheme as useMTheme }
|
|
2060
2415
|
export { useTheme }
|