@banzamel/mineralui 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -31,15 +31,40 @@ import { RefAttributes } from 'react';
31
31
  import { RefObject } from 'react';
32
32
  import { SetStateAction } from 'react';
33
33
  import { SubmitEventHandler } from 'react';
34
- import { TableHTMLAttributes } from 'react';
35
- import { TdHTMLAttributes } from 'react';
36
- import { ThHTMLAttributes } from 'react';
37
34
  import { ToggleEventHandler } from 'react';
38
35
  import { TouchEventHandler } from 'react';
39
36
  import { TransitionEventHandler } from 'react';
40
37
  import { UIEventHandler } from 'react';
41
38
  import { WheelEventHandler } from 'react';
42
39
 
40
+ declare function Accordion({ multiple, defaultOpen, onChange, bordered, className, children, ...rest }: AccordionProps): JSX.Element;
41
+ export { Accordion }
42
+ export { Accordion as MAccordion }
43
+
44
+ declare function AccordionItem(_props: AccordionItemProps): null;
45
+ export { AccordionItem }
46
+ export { AccordionItem as MAccordionItem }
47
+
48
+ declare interface AccordionItemProps {
49
+ id: string;
50
+ title: ReactNode;
51
+ children?: ReactNode;
52
+ disabled?: boolean;
53
+ fcolor?: MineralFontColor;
54
+ }
55
+ export { AccordionItemProps }
56
+ export { AccordionItemProps as MAccordionItemProps }
57
+
58
+ declare interface AccordionProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
59
+ multiple?: boolean;
60
+ defaultOpen?: string | string[];
61
+ onChange?: (openIds: string[]) => void;
62
+ bordered?: boolean;
63
+ children: ReactNode;
64
+ }
65
+ export { AccordionProps }
66
+ export { AccordionProps as MAccordionProps }
67
+
43
68
  export declare function addMonths(date: Date, count: number): Date;
44
69
 
45
70
  export declare function addYears(date: Date, count: number): Date;
@@ -59,6 +84,17 @@ declare interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title
59
84
  export { AlertProps }
60
85
  export { AlertProps as MAlertProps }
61
86
 
87
+ declare const AppShell: ForwardRefExoticComponent<AppShellProps & RefAttributes<HTMLDivElement>>;
88
+ export { AppShell }
89
+ export { AppShell as MAppShell }
90
+
91
+ declare interface AppShellProps extends HTMLAttributes<HTMLDivElement> {
92
+ sidebar?: ReactNode;
93
+ children?: ReactNode;
94
+ }
95
+ export { AppShellProps }
96
+ export { AppShellProps as MAppShellProps }
97
+
62
98
  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;
63
99
  export { Autocomplete }
64
100
  export { Autocomplete as MAutocomplete }
@@ -167,6 +203,16 @@ declare type BannerVariant = 'filled' | 'outlined' | 'ghost';
167
203
  export { BannerVariant }
168
204
  export { BannerVariant as MBannerVariant }
169
205
 
206
+ declare const Body_2: ForwardRefExoticComponent<BodyProps & RefAttributes<HTMLDivElement>>;
207
+ export { Body_2 as Body }
208
+ export { Body_2 as MBody }
209
+
210
+ declare interface BodyProps extends HTMLAttributes<HTMLDivElement> {
211
+ children?: ReactNode;
212
+ }
213
+ export { BodyProps }
214
+ export { BodyProps as MBodyProps }
215
+
170
216
  declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
171
217
  export { Button }
172
218
  export { Button as MButton }
@@ -191,7 +237,7 @@ declare interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElemen
191
237
  export { ButtonProps }
192
238
  export { ButtonProps as MButtonProps }
193
239
 
194
- declare type ButtonVariant = 'primary' | 'secondary' | 'outlined' | 'ghost' | 'link';
240
+ declare type ButtonVariant = 'primary' | 'secondary' | 'outlined' | 'ghost' | 'link' | 'icon';
195
241
  export { ButtonVariant }
196
242
  export { ButtonVariant as MButtonVariant }
197
243
 
@@ -401,6 +447,27 @@ declare function CardHeader({ className, children, ...rest }: CardSectionProps):
401
447
  export { CardHeader }
402
448
  export { CardHeader as MCardHeader }
403
449
 
450
+ declare function CardPayment({ holder, number, expiry, brand, brandIcon, balance, balanceLabel, color, className, ...rest }: CardPaymentProps): JSX.Element;
451
+ export { CardPayment }
452
+ export { CardPayment as MCardPayment }
453
+
454
+ declare type CardPaymentBrand = 'visa' | 'mastercard' | 'amex' | 'discover' | 'maestro' | 'unknown';
455
+ export { CardPaymentBrand }
456
+ export { CardPaymentBrand as MCardPaymentBrand }
457
+
458
+ declare interface CardPaymentProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
459
+ holder: string;
460
+ number: string;
461
+ expiry: string;
462
+ brand?: CardPaymentBrand;
463
+ brandIcon?: ReactNode;
464
+ balance?: string;
465
+ balanceLabel?: string;
466
+ color?: MineralColor;
467
+ }
468
+ export { CardPaymentProps }
469
+ export { CardPaymentProps as MCardPaymentProps }
470
+
404
471
  declare interface CardProps extends Omit<SurfaceProps, 'children'> {
405
472
  interactive?: boolean;
406
473
  stretch?: boolean;
@@ -497,6 +564,26 @@ declare interface CollapsibleProps extends Omit<HTMLAttributes<HTMLDivElement>,
497
564
  export { CollapsibleProps }
498
565
  export { CollapsibleProps as MCollapsibleProps }
499
566
 
567
+ declare function ColorPicker({ value, onChange, swatches, format, size, label, disabled, className, ...rest }: ColorPickerProps): JSX.Element;
568
+ export { ColorPicker }
569
+ export { ColorPicker as MColorPicker }
570
+
571
+ declare type ColorPickerFormat = 'hex' | 'rgb' | 'hsl';
572
+ export { ColorPickerFormat }
573
+ export { ColorPickerFormat as MColorPickerFormat }
574
+
575
+ declare interface ColorPickerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
576
+ value?: string;
577
+ onChange?: (color: string) => void;
578
+ swatches?: string[];
579
+ format?: ColorPickerFormat;
580
+ size?: 'sm' | 'md' | 'lg';
581
+ label?: string;
582
+ disabled?: boolean;
583
+ }
584
+ export { ColorPickerProps }
585
+ export { ColorPickerProps as MColorPickerProps }
586
+
500
587
  export declare function composeValidators(...validators: ValidatorFn[]): ValidatorFn;
501
588
 
502
589
  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;
@@ -550,6 +637,55 @@ export declare interface CurrencyFormatOptions {
550
637
  precision?: number;
551
638
  }
552
639
 
640
+ declare function DataTable<T = any>({ columns, data, rowKey, sortable, filterable, selectable, pagination, pageSize, striped, compact, stickyHeader, sort: controlledSort, onSortChange, selectedKeys: controlledSelected, onSelectionChange, emptyText, filterPlaceholder, className, ...rest }: DataTableProps<T>): JSX.Element;
641
+ export { DataTable }
642
+ export { DataTable as MDataTable }
643
+
644
+ declare interface DataTableColumn<T = any> {
645
+ key: string;
646
+ label: string;
647
+ sortable?: boolean;
648
+ filterable?: boolean;
649
+ render?: (value: any, row: T, index: number) => ReactNode;
650
+ width?: string | number;
651
+ align?: 'left' | 'center' | 'right';
652
+ }
653
+ export { DataTableColumn }
654
+ export { DataTableColumn as MDataTableColumn }
655
+
656
+ declare interface DataTableProps<T = any> extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
657
+ columns: DataTableColumn<T>[];
658
+ data: T[];
659
+ rowKey?: string | ((row: T, index: number) => string);
660
+ sortable?: boolean;
661
+ filterable?: boolean;
662
+ selectable?: boolean;
663
+ pagination?: boolean;
664
+ pageSize?: number;
665
+ striped?: boolean;
666
+ compact?: boolean;
667
+ stickyHeader?: boolean;
668
+ sort?: DataTableSort | null;
669
+ onSortChange?: (sort: DataTableSort | null) => void;
670
+ selectedKeys?: string[];
671
+ onSelectionChange?: (keys: string[]) => void;
672
+ emptyText?: string;
673
+ filterPlaceholder?: string;
674
+ }
675
+ export { DataTableProps }
676
+ export { DataTableProps as MDataTableProps }
677
+
678
+ declare interface DataTableSort {
679
+ key: string;
680
+ dir: DataTableSortDir;
681
+ }
682
+ export { DataTableSort }
683
+ export { DataTableSort as MDataTableSort }
684
+
685
+ declare type DataTableSortDir = 'asc' | 'desc';
686
+ export { DataTableSortDir }
687
+ export { DataTableSortDir as MDataTableSortDir }
688
+
553
689
  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;
554
690
  export { DatePicker }
555
691
  export { DatePicker as MDatePicker }
@@ -672,6 +808,32 @@ declare interface DividerProps extends HTMLAttributes<HTMLHRElement> {
672
808
  export { DividerProps }
673
809
  export { DividerProps as MDividerProps }
674
810
 
811
+ declare function Drawer({ open, onClose, side, size, title, overlay, closeOnBackdrop, closeOnEscape, className, children, ...rest }: DrawerProps): JSX.Element | null;
812
+ export { Drawer }
813
+ export { Drawer as MDrawer }
814
+
815
+ declare interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
816
+ open: boolean;
817
+ onClose: () => void;
818
+ side?: DrawerSide;
819
+ size?: DrawerSize;
820
+ title?: ReactNode;
821
+ overlay?: boolean;
822
+ closeOnBackdrop?: boolean;
823
+ closeOnEscape?: boolean;
824
+ children?: ReactNode;
825
+ }
826
+ export { DrawerProps }
827
+ export { DrawerProps as MDrawerProps }
828
+
829
+ declare type DrawerSide = 'left' | 'right' | 'bottom';
830
+ export { DrawerSide }
831
+ export { DrawerSide as MDrawerSide }
832
+
833
+ declare type DrawerSize = 'sm' | 'md' | 'lg' | 'full';
834
+ export { DrawerSize }
835
+ export { DrawerSize as MDrawerSize }
836
+
675
837
  declare interface FieldRegistration {
676
838
  name: string;
677
839
  validate?: ValidatorFn[];
@@ -780,6 +942,34 @@ export declare function getMonthNames(locale?: 'pl' | 'en'): string[];
780
942
 
781
943
  export declare function getPostCodeRule(countryCode?: string): PostCodeRule;
782
944
 
945
+ export declare interface GhostTextOptions<T = string> {
946
+ options: T[];
947
+ value: string;
948
+ minChars?: number;
949
+ getLabel?: (option: T) => string;
950
+ filter?: (options: T[], input: string) => T[];
951
+ }
952
+
953
+ export declare interface GhostTextReturn<T = string> {
954
+ /** The ghost suffix to render after the typed text. */
955
+ hint: string;
956
+ /** Accept the current hint and return the full value. */
957
+ accept: () => {
958
+ value: string;
959
+ option: T | null;
960
+ };
961
+ /** Cycle to the next matching option. */
962
+ next: () => void;
963
+ /** Cycle to the previous matching option. */
964
+ prev: () => void;
965
+ /** Reset the hint index (call on value change). */
966
+ reset: () => void;
967
+ /** Number of matching options. */
968
+ matchCount: number;
969
+ /** Handle keyboard events — Tab/Enter accept, arrows cycle, Escape resets. */
970
+ onKeyDown: (e: React.KeyboardEvent) => boolean;
971
+ }
972
+
783
973
  export declare function Grid({ columns, gap, minItemWidth, className, style, children, ...rest }: GridProps): JSX.Element;
784
974
 
785
975
  export declare type GridColumns = (typeof gridColumnValues)[number];
@@ -1112,7 +1302,7 @@ declare type ImageRatio = '1:1' | '4:3' | '16:9' | '21:9' | 'auto';
1112
1302
  export { ImageRatio }
1113
1303
  export { ImageRatio as MImageRatio }
1114
1304
 
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;
1305
+ declare function Inline({ gap, align, justify, wrap, reveal, spacing, padding, fsize, fcolor, mt, mb, ml, mr, mx, my, pt, pb, pl, pr, px, py, fullWidth, className, style, children, ...rest }: InlineProps): JSX.Element;
1116
1306
  export { Inline }
1117
1307
  export { Inline as MInline }
1118
1308
 
@@ -1125,6 +1315,7 @@ declare interface InlineProps extends HTMLAttributes<HTMLDivElement>, LayoutUtil
1125
1315
  align?: InlineAlign;
1126
1316
  justify?: InlineJustify;
1127
1317
  wrap?: InlineWrap;
1318
+ reveal?: RevealProp;
1128
1319
  children?: ReactNode;
1129
1320
  className?: string;
1130
1321
  style?: CSSProperties;
@@ -1186,6 +1377,46 @@ declare interface InputEmailProps extends Omit<InputProps, 'type'> {
1186
1377
  export { InputEmailProps }
1187
1378
  export { InputEmailProps as MInputEmailProps }
1188
1379
 
1380
+ declare const InputFile: ForwardRefExoticComponent<InputFileProps & RefAttributes<HTMLDivElement>>;
1381
+ export { InputFile }
1382
+ export { InputFile as MInputFile }
1383
+
1384
+ declare interface InputFileCropOptions {
1385
+ shape?: InputFileCropShape;
1386
+ outputSize?: number;
1387
+ quality?: number;
1388
+ }
1389
+ export { InputFileCropOptions }
1390
+ export { InputFileCropOptions as MInputFileCropOptions }
1391
+
1392
+ declare type InputFileCropShape = 'square' | 'circle';
1393
+ export { InputFileCropShape }
1394
+ export { InputFileCropShape as MInputFileCropShape }
1395
+
1396
+ declare interface InputFileProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
1397
+ accept?: string;
1398
+ multiple?: boolean;
1399
+ maxSize?: number;
1400
+ maxFiles?: number;
1401
+ onChange?: (files: File[]) => void;
1402
+ label?: string;
1403
+ helperText?: string;
1404
+ errorText?: string;
1405
+ error?: boolean;
1406
+ disabled?: boolean;
1407
+ color?: MineralColor;
1408
+ size?: MineralSize;
1409
+ preview?: boolean;
1410
+ icon?: ReactNode;
1411
+ placeholder?: string;
1412
+ dropText?: string;
1413
+ fullWidth?: boolean;
1414
+ crop?: InputFileCropOptions | boolean;
1415
+ style?: CSSProperties;
1416
+ }
1417
+ export { InputFileProps }
1418
+ export { InputFileProps as MInputFileProps }
1419
+
1189
1420
  declare const InputGroup: ForwardRefExoticComponent<InputGroupProps & RefAttributes<HTMLInputElement>>;
1190
1421
  export { InputGroup }
1191
1422
  export { InputGroup as MInputGroup }
@@ -1257,6 +1488,26 @@ declare interface InputNumberProps extends Omit<InputProps, 'type'> {
1257
1488
  export { InputNumberProps }
1258
1489
  export { InputNumberProps as MInputNumberProps }
1259
1490
 
1491
+ declare const InputOTP: ForwardRefExoticComponent<InputOTPProps & RefAttributes<HTMLDivElement>>;
1492
+ export { InputOTP }
1493
+ export { InputOTP as MInputOTP }
1494
+
1495
+ declare interface InputOTPProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
1496
+ length?: number;
1497
+ value?: string;
1498
+ onChange?: (value: string) => void;
1499
+ autoFocus?: boolean;
1500
+ disabled?: boolean;
1501
+ color?: MineralColor;
1502
+ size?: MineralSize;
1503
+ error?: boolean;
1504
+ errorText?: string;
1505
+ label?: string;
1506
+ style?: CSSProperties;
1507
+ }
1508
+ export { InputOTPProps }
1509
+ export { InputOTPProps as MInputOTPProps }
1510
+
1260
1511
  declare const InputPassword: ForwardRefExoticComponent<InputPasswordProps & RefAttributes<HTMLInputElement>>;
1261
1512
  export { InputPassword }
1262
1513
  export { InputPassword as MInputPassword }
@@ -1335,6 +1586,9 @@ declare interface InputProps {
1335
1586
  onBlur?: (e: FocusEvent_2<HTMLInputElement>) => void;
1336
1587
  onKeyDown?: (e: KeyboardEvent_2<HTMLInputElement>) => void;
1337
1588
  onClear?: () => void;
1589
+ ghostOptions?: string[];
1590
+ ghostMinChars?: number;
1591
+ onGhostAccept?: (value: string) => void;
1338
1592
  loading?: boolean;
1339
1593
  clickEffect?: MineralClickEffect;
1340
1594
  rippleColor?: string;
@@ -1357,6 +1611,23 @@ declare interface InputSearchProps extends Omit<InputProps, 'type' | 'startIcon'
1357
1611
  export { InputSearchProps }
1358
1612
  export { InputSearchProps as MInputSearchProps }
1359
1613
 
1614
+ declare const InputSlider: ForwardRefExoticComponent<InputSliderProps & RefAttributes<HTMLDivElement>>;
1615
+ export { InputSlider }
1616
+ export { InputSlider as MInputSlider }
1617
+
1618
+ declare interface InputSliderProps extends Omit<InputProps, 'type' | 'onChange' | 'value'> {
1619
+ min?: number;
1620
+ max?: number;
1621
+ step?: number;
1622
+ value?: number;
1623
+ onChange?: (value: number) => void;
1624
+ precision?: number;
1625
+ marks?: SliderMark[];
1626
+ showInput?: boolean;
1627
+ }
1628
+ export { InputSliderProps }
1629
+ export { InputSliderProps as MInputSliderProps }
1630
+
1360
1631
  declare const InputTaxId: ForwardRefExoticComponent<InputTaxIdProps & RefAttributes<HTMLInputElement>>;
1361
1632
  export { InputTaxId }
1362
1633
  export { InputTaxId as MInputTaxId }
@@ -1380,6 +1651,17 @@ export declare function isDateInRange(date: Date, min?: Date | null, max?: Date
1380
1651
 
1381
1652
  export declare function isSameDay(a: Date, b: Date): boolean;
1382
1653
 
1654
+ declare function Kbd({ size, className, children, ...rest }: KbdProps): JSX.Element;
1655
+ export { Kbd }
1656
+ export { Kbd as MKbd }
1657
+
1658
+ declare interface KbdProps extends HTMLAttributes<HTMLElement> {
1659
+ size?: MineralSize;
1660
+ children?: ReactNode;
1661
+ }
1662
+ export { KbdProps }
1663
+ export { KbdProps as MKbdProps }
1664
+
1383
1665
  declare interface LayoutUtilityProps {
1384
1666
  spacing?: MineralUtilityScale;
1385
1667
  padding?: MineralUtilityScale;
@@ -1431,6 +1713,20 @@ declare interface LoaderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'colo
1431
1713
  export { LoaderProps }
1432
1714
  export { LoaderProps as MLoaderProps }
1433
1715
 
1716
+ export declare function MBreadcrumb({ items, separator, maxItems, className, ...rest }: MBreadcrumbProps): JSX.Element;
1717
+
1718
+ export declare interface MBreadcrumbItem {
1719
+ label: ReactNode;
1720
+ href?: string;
1721
+ onClick?: () => void;
1722
+ }
1723
+
1724
+ export declare interface MBreadcrumbProps extends HTMLAttributes<HTMLElement> {
1725
+ items: MBreadcrumbItem[];
1726
+ separator?: ReactNode;
1727
+ maxItems?: number;
1728
+ }
1729
+
1434
1730
  export declare function MDropdownDivider({ className }: MDropdownDividerProps): JSX.Element;
1435
1731
 
1436
1732
  export declare interface MDropdownDividerProps {
@@ -1463,13 +1759,14 @@ export declare interface MDropdownItemProps {
1463
1759
  className?: string;
1464
1760
  }
1465
1761
 
1466
- export declare function MDropdownMenu({ trigger, placement, size, closeOnSelect, className, style, children, }: MDropdownMenuProps): JSX.Element;
1762
+ export declare function MDropdownMenu({ trigger, placement, size, closeOnSelect, openOn, className, style, children, }: MDropdownMenuProps): JSX.Element;
1467
1763
 
1468
1764
  export declare interface MDropdownMenuProps {
1469
1765
  trigger: ReactNode;
1470
1766
  placement?: PopoverPlacement;
1471
1767
  size?: MineralSize;
1472
1768
  closeOnSelect?: boolean;
1769
+ openOn?: 'click' | 'hover';
1473
1770
  className?: string;
1474
1771
  style?: CSSProperties;
1475
1772
  children: ReactNode;
@@ -1705,6 +2002,18 @@ declare type ModalSize = 'sm' | 'md' | 'lg' | 'xl';
1705
2002
  export { ModalSize as MModalSize }
1706
2003
  export { ModalSize }
1707
2004
 
2005
+ export declare function MPagination({ total, page, pageSize, onChange, siblings, boundaries, variant, className, ...rest }: MPaginationProps): JSX.Element;
2006
+
2007
+ export declare interface MPaginationProps extends Omit<HTMLAttributes<HTMLElement>, 'onChange'> {
2008
+ total: number;
2009
+ page: number;
2010
+ pageSize?: number;
2011
+ onChange: (page: number) => void;
2012
+ siblings?: number;
2013
+ boundaries?: number;
2014
+ variant?: 'numbered' | 'simple';
2015
+ }
2016
+
1708
2017
  export declare function MSidebar({ mode: modeProp, defaultMode, onModeChange, persist, side, tone, bordered, mobileBreakpoint, className, style, children, }: MSidebarProps): JSX.Element;
1709
2018
 
1710
2019
  export declare function MSidebarDivider({ className, spacing }: MSidebarDividerProps): JSX.Element;
@@ -1721,11 +2030,12 @@ export declare interface MSidebarFooterProps {
1721
2030
  children: ReactNode;
1722
2031
  }
1723
2032
 
1724
- export declare function MSidebarGroup({ label, icon, defaultOpen, collapsible, children, className, }: MSidebarGroupProps): JSX.Element;
2033
+ export declare function MSidebarGroup({ label, icon, active, defaultOpen, collapsible, children, className, }: MSidebarGroupProps): JSX.Element;
1725
2034
 
1726
2035
  export declare interface MSidebarGroupProps {
1727
2036
  label: string;
1728
2037
  icon?: ReactNode;
2038
+ active?: boolean;
1729
2039
  defaultOpen?: boolean;
1730
2040
  collapsible?: boolean;
1731
2041
  children: ReactNode;
@@ -1846,11 +2156,33 @@ export declare interface PhoneFormatOptions {
1846
2156
  groupPattern?: number[];
1847
2157
  }
1848
2158
 
2159
+ declare function Popconfirm({ title, description, onConfirm, onCancel, confirmText, cancelText, color, icon, placement, open, onOpenChange, anchorRef, className, }: PopconfirmProps): JSX.Element;
2160
+ export { Popconfirm as MPopconfirm }
2161
+ export { Popconfirm }
2162
+
2163
+ declare interface PopconfirmProps {
2164
+ title: ReactNode;
2165
+ description?: ReactNode;
2166
+ onConfirm: () => void;
2167
+ onCancel?: () => void;
2168
+ confirmText?: string;
2169
+ cancelText?: string;
2170
+ color?: MineralColor;
2171
+ icon?: ReactNode;
2172
+ placement?: PopoverPlacement;
2173
+ open: boolean;
2174
+ onOpenChange: (open: boolean) => void;
2175
+ anchorRef: RefObject<HTMLElement | null>;
2176
+ className?: string;
2177
+ }
2178
+ export { PopconfirmProps as MPopconfirmProps }
2179
+ export { PopconfirmProps }
2180
+
1849
2181
  declare function Popover({ open, anchorRef, onClose, placement, matchWidth, offset, children, className, style, }: PopoverProps): JSX.Element | null;
1850
2182
  export { Popover as MPopover }
1851
2183
  export { Popover }
1852
2184
 
1853
- declare type PopoverPlacement = 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end';
2185
+ declare type PopoverPlacement = 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'left-start' | 'left-end';
1854
2186
  export { PopoverPlacement as MPopoverPlacement }
1855
2187
  export { PopoverPlacement }
1856
2188
 
@@ -1980,7 +2312,9 @@ declare interface RatingProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onCh
1980
2312
  export { RatingProps as MRatingProps }
1981
2313
  export { RatingProps }
1982
2314
 
1983
- declare function Section({ as, spacing, tone, className, style, children, ...rest }: SectionProps): JSX.Element;
2315
+ export declare type RevealProp = boolean | number;
2316
+
2317
+ declare function Section({ as, spacing, tone, reveal, className, style, children, ...rest }: SectionProps): JSX.Element;
1984
2318
  export { Section as MSection }
1985
2319
  export { Section }
1986
2320
 
@@ -1988,6 +2322,7 @@ declare interface SectionProps extends HTMLAttributes<HTMLElement> {
1988
2322
  as?: 'section' | 'div' | 'main' | 'header' | 'footer';
1989
2323
  spacing?: SectionSpacing;
1990
2324
  tone?: SectionTone;
2325
+ reveal?: RevealProp;
1991
2326
  children?: ReactNode;
1992
2327
  className?: string;
1993
2328
  style?: CSSProperties;
@@ -2049,6 +2384,31 @@ declare type SelectVariant = 'outlined' | 'filled' | 'underlined';
2049
2384
  export { SelectVariant as MSelectVariant }
2050
2385
  export { SelectVariant }
2051
2386
 
2387
+ declare function Slider({ min, max, step, value, onChange, marks, label, color, disabled, className, ...rest }: SliderProps): JSX.Element;
2388
+ export { Slider as MSlider }
2389
+ export { Slider }
2390
+
2391
+ declare interface SliderMark {
2392
+ value: number;
2393
+ label?: string;
2394
+ }
2395
+ export { SliderMark as MSliderMark }
2396
+ export { SliderMark }
2397
+
2398
+ declare interface SliderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
2399
+ min?: number;
2400
+ max?: number;
2401
+ step?: number;
2402
+ value: number;
2403
+ onChange: (value: number) => void;
2404
+ marks?: SliderMark[];
2405
+ label?: string;
2406
+ color?: MineralColor;
2407
+ disabled?: boolean;
2408
+ }
2409
+ export { SliderProps as MSliderProps }
2410
+ export { SliderProps }
2411
+
2052
2412
  declare function Spinner({ color, size, label, className, style, ...rest }: SpinnerProps): JSX.Element;
2053
2413
  export { Spinner as MSpinner }
2054
2414
  export { Spinner }
@@ -2061,7 +2421,7 @@ declare interface SpinnerProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'co
2061
2421
  export { SpinnerProps as MSpinnerProps }
2062
2422
  export { SpinnerProps }
2063
2423
 
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;
2424
+ declare function Stack({ gap, align, reveal, spacing, padding, fsize, fcolor, mt, mb, ml, mr, mx, my, pt, pb, pl, pr, px, py, fullWidth, className, style, children, ...rest }: StackProps): JSX.Element;
2065
2425
  export { Stack as MStack }
2066
2426
  export { Stack }
2067
2427
 
@@ -2072,6 +2432,7 @@ export declare type StackGap = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
2072
2432
  declare interface StackProps extends HTMLAttributes<HTMLDivElement>, LayoutUtilityProps {
2073
2433
  gap?: StackGap;
2074
2434
  align?: StackAlign;
2435
+ reveal?: RevealProp;
2075
2436
  children?: ReactNode;
2076
2437
  className?: string;
2077
2438
  style?: CSSProperties;
@@ -2104,7 +2465,7 @@ declare type SubTextSize = 'xs' | 'sm' | 'md';
2104
2465
  export { SubTextSize as MSubTextSize }
2105
2466
  export { SubTextSize }
2106
2467
 
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;
2468
+ declare function Surface({ tone, outlined, padded, reveal, spacing, padding, fsize, fcolor, mt, mb, ml, mr, mx, my, pt, pb, pl, pr, px, py, fullWidth, className, style, children, ...rest }: SurfaceProps): JSX.Element;
2108
2469
  export { Surface as MSurface }
2109
2470
  export { Surface }
2110
2471
 
@@ -2112,6 +2473,7 @@ declare interface SurfaceProps extends HTMLAttributes<HTMLDivElement>, LayoutUti
2112
2473
  tone?: SurfaceTone;
2113
2474
  outlined?: boolean;
2114
2475
  padded?: boolean;
2476
+ reveal?: RevealProp;
2115
2477
  children?: ReactNode;
2116
2478
  className?: string;
2117
2479
  style?: CSSProperties;
@@ -2121,57 +2483,25 @@ export { SurfaceProps }
2121
2483
 
2122
2484
  export declare type SurfaceTone = 'default' | 'subtle' | 'raised' | 'inverse';
2123
2485
 
2124
- declare function Table({ className, children, ...rest }: TableProps): JSX.Element;
2125
- export { Table as MTable }
2126
- export { Table }
2127
-
2128
- declare function TableBody({ className, children, ...rest }: HTMLAttributes<HTMLTableSectionElement>): JSX.Element;
2129
- export { TableBody as MTableBody }
2130
- export { TableBody }
2131
-
2132
- declare function TableCell({ className, children, ...rest }: TableCellProps): JSX.Element;
2133
- export { TableCell as MTableCell }
2134
- export { TableCell }
2135
-
2136
- declare interface TableCellProps extends TdHTMLAttributes<HTMLTableCellElement> {
2137
- children?: ReactNode;
2138
- }
2139
- export { TableCellProps as MTableCellProps }
2140
- export { TableCellProps }
2141
-
2142
- declare function TableHead({ className, children, ...rest }: HTMLAttributes<HTMLTableSectionElement>): JSX.Element;
2143
- export { TableHead as MTableHead }
2144
- export { TableHead }
2145
-
2146
- declare function TableHeadCell({ className, children, ...rest }: TableHeadCellProps): JSX.Element;
2147
- export { TableHeadCell as MTableHeadCell }
2148
- export { TableHeadCell }
2149
-
2150
- declare interface TableHeadCellProps extends ThHTMLAttributes<HTMLTableCellElement> {
2151
- children?: ReactNode;
2152
- }
2153
- export { TableHeadCellProps as MTableHeadCellProps }
2154
- export { TableHeadCellProps }
2486
+ declare function Tag({ label, color, variant, closable, onClose, icon, fcolor, className, ...rest }: TagProps): JSX.Element;
2487
+ export { Tag as MTag }
2488
+ export { Tag }
2155
2489
 
2156
- declare interface TableProps extends HTMLAttributes<HTMLDivElement> {
2157
- children?: ReactNode;
2158
- }
2159
- export { TableProps as MTableProps }
2160
- export { TableProps }
2161
-
2162
- declare function TableRoot({ className, children, ...rest }: TableRootProps): JSX.Element;
2163
- export { TableRoot as MTableRoot }
2164
- export { TableRoot }
2165
-
2166
- declare interface TableRootProps extends TableHTMLAttributes<HTMLTableElement> {
2167
- children?: ReactNode;
2490
+ declare interface TagProps extends HTMLAttributes<HTMLSpanElement> {
2491
+ label: ReactNode;
2492
+ color?: MineralColor;
2493
+ variant?: TagVariant;
2494
+ closable?: boolean;
2495
+ onClose?: () => void;
2496
+ icon?: ReactNode;
2497
+ fcolor?: MineralFontColor;
2168
2498
  }
2169
- export { TableRootProps as MTableRootProps }
2170
- export { TableRootProps }
2499
+ export { TagProps as MTagProps }
2500
+ export { TagProps }
2171
2501
 
2172
- declare function TableRow({ className, children, ...rest }: HTMLAttributes<HTMLTableRowElement>): JSX.Element;
2173
- export { TableRow as MTableRow }
2174
- export { TableRow }
2502
+ declare type TagVariant = 'solid' | 'outlined';
2503
+ export { TagVariant as MTagVariant }
2504
+ export { TagVariant }
2175
2505
 
2176
2506
  declare interface TaskItem {
2177
2507
  id: string;
@@ -2237,6 +2567,9 @@ declare interface TextareaProps {
2237
2567
  success?: boolean;
2238
2568
  maxLength?: number;
2239
2569
  showCharCount?: boolean;
2570
+ ghostOptions?: string[];
2571
+ ghostMinChars?: number;
2572
+ onGhostAccept?: (value: string) => void;
2240
2573
  loading?: boolean;
2241
2574
  onChange?: (e: ChangeEvent<HTMLTextAreaElement>) => void;
2242
2575
  onFocus?: (e: FocusEvent_2<HTMLTextAreaElement>) => void;
@@ -2316,6 +2649,48 @@ declare type TimePickerVariant = 'outlined' | 'filled' | 'underlined';
2316
2649
  export { TimePickerVariant as MTimePickerVariant }
2317
2650
  export { TimePickerVariant }
2318
2651
 
2652
+ declare interface ToastContext {
2653
+ toast: (options: ToastOptions) => string;
2654
+ dismiss: (id: string) => void;
2655
+ }
2656
+ export { ToastContext as MToastContext }
2657
+ export { ToastContext }
2658
+
2659
+ declare interface ToastEntry {
2660
+ id: string;
2661
+ title?: ReactNode;
2662
+ message: ReactNode;
2663
+ color?: MineralColor;
2664
+ duration?: number;
2665
+ }
2666
+ export { ToastEntry as MToastEntry }
2667
+ export { ToastEntry }
2668
+
2669
+ declare interface ToastOptions {
2670
+ title?: ReactNode;
2671
+ message: ReactNode;
2672
+ color?: MineralColor;
2673
+ duration?: number;
2674
+ }
2675
+ export { ToastOptions as MToastOptions }
2676
+ export { ToastOptions }
2677
+
2678
+ declare type ToastPosition = 'top-right' | 'top-left' | 'top-center' | 'bottom-right' | 'bottom-left' | 'bottom-center';
2679
+ export { ToastPosition as MToastPosition }
2680
+ export { ToastPosition }
2681
+
2682
+ declare function ToastProvider({ position, duration, children }: ToastProviderProps): JSX.Element;
2683
+ export { ToastProvider as MToastProvider }
2684
+ export { ToastProvider }
2685
+
2686
+ declare interface ToastProviderProps {
2687
+ position?: ToastPosition;
2688
+ duration?: number;
2689
+ children: ReactNode;
2690
+ }
2691
+ export { ToastProviderProps as MToastProviderProps }
2692
+ export { ToastProviderProps }
2693
+
2319
2694
  declare const Toggle: ForwardRefExoticComponent<ToggleProps & RefAttributes<HTMLInputElement>>;
2320
2695
  export { Toggle as MToggle }
2321
2696
  export { Toggle }
@@ -2340,6 +2715,52 @@ declare interface ToggleProps {
2340
2715
  export { ToggleProps as MToggleProps }
2341
2716
  export { ToggleProps }
2342
2717
 
2718
+ declare function Tooltip({ content, placement, delay, className, children, ...rest }: TooltipProps): JSX.Element;
2719
+ export { Tooltip as MTooltip }
2720
+ export { Tooltip }
2721
+
2722
+ declare type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
2723
+ export { TooltipPlacement as MTooltipPlacement }
2724
+ export { TooltipPlacement }
2725
+
2726
+ declare interface TooltipProps {
2727
+ content: ReactNode;
2728
+ placement?: TooltipPlacement;
2729
+ delay?: number;
2730
+ className?: string;
2731
+ children: ReactNode;
2732
+ }
2733
+ export { TooltipProps as MTooltipProps }
2734
+ export { TooltipProps }
2735
+
2736
+ declare interface TreeNode {
2737
+ id: string;
2738
+ label: string;
2739
+ children?: TreeNode[];
2740
+ icon?: ReactNode;
2741
+ disabled?: boolean;
2742
+ }
2743
+ export { TreeNode as MTreeNode }
2744
+ export { TreeNode }
2745
+
2746
+ declare function TreeView({ items, expandable, selectable, defaultExpanded, expanded: controlledExpanded, onExpandChange, selected: controlledSelected, onSelect, indent, className, ...rest }: TreeViewProps): JSX.Element;
2747
+ export { TreeView as MTreeView }
2748
+ export { TreeView }
2749
+
2750
+ declare interface TreeViewProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onSelect'> {
2751
+ items: TreeNode[];
2752
+ expandable?: boolean;
2753
+ selectable?: boolean;
2754
+ defaultExpanded?: string[];
2755
+ expanded?: string[];
2756
+ onExpandChange?: (ids: string[]) => void;
2757
+ selected?: string | null;
2758
+ onSelect?: (id: string, node: TreeNode) => void;
2759
+ indent?: number;
2760
+ }
2761
+ export { TreeViewProps as MTreeViewProps }
2762
+ export { TreeViewProps }
2763
+
2343
2764
  export declare function unformatIBAN(value: string): string;
2344
2765
 
2345
2766
  declare function useClickOutside(ref: RefObject<HTMLElement | null>, handler: () => void): void;
@@ -2371,6 +2792,8 @@ declare interface UseFormFieldReturn {
2371
2792
  export { UseFormFieldReturn as MUseFormFieldReturn }
2372
2793
  export { UseFormFieldReturn }
2373
2794
 
2795
+ export declare function useGhostText<T = string>({ options, value, minChars, getLabel, filter, }: GhostTextOptions<T>): GhostTextReturn<T>;
2796
+
2374
2797
  declare function useInteractionEffect<T extends HTMLElement = HTMLElement>({ effect, disabled, centered, color, }?: UseInteractionEffectOptions): UseInteractionEffectResult<T>;
2375
2798
  export { useInteractionEffect as useClickEffect }
2376
2799
  export { useInteractionEffect }
@@ -2410,10 +2833,16 @@ export { UseKeyboardNavOptions }
2410
2833
 
2411
2834
  export declare function useMI18n<T extends Dict = Dict>(): MI18nContextValue<T>;
2412
2835
 
2836
+ export declare function useReveal<T extends HTMLElement = HTMLElement>(reveal: RevealProp | undefined): RefObject<T | null>;
2837
+
2413
2838
  declare function useTheme(): ThemeContextValue;
2414
2839
  export { useTheme as useMTheme }
2415
2840
  export { useTheme }
2416
2841
 
2842
+ declare function useToast(): ToastContext;
2843
+ export { useToast as useMToast }
2844
+ export { useToast }
2845
+
2417
2846
  export declare function validateCardNumber(value: string): ValidationResult;
2418
2847
 
2419
2848
  export declare function validateEmail(value: string): ValidationResult;