@octoguide/mui-ui-toolkit 0.8.0 → 0.8.2
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.mts +86 -77
- package/dist/index.d.ts +86 -77
- package/dist/index.js +278 -234
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +241 -197
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React from 'react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import React__default from 'react';
|
|
3
4
|
import { Theme } from '@mui/material/styles';
|
|
4
5
|
import * as _mui_material from '@mui/material';
|
|
5
|
-
import { TextFieldProps as TextFieldProps$1, ButtonProps as ButtonProps$1, ChipProps as ChipProps$1, CardProps as CardProps$1, CardActions as CardActions$1, AlertProps as AlertProps$1, AlertTitleProps as AlertTitleProps$1, AccordionProps as AccordionProps$1, AccordionDetailsProps as AccordionDetailsProps$1, AccordionSummaryProps as AccordionSummaryProps$1,
|
|
6
|
+
import { TextFieldProps as TextFieldProps$1, ButtonProps as ButtonProps$1, ChipProps as ChipProps$1, CardProps as CardProps$1, CardActions as CardActions$1, AlertProps as AlertProps$1, AlertTitleProps as AlertTitleProps$1, AccordionProps as AccordionProps$1, AccordionDetailsProps as AccordionDetailsProps$1, AccordionSummaryProps as AccordionSummaryProps$1, ToggleButtonGroupProps as ToggleButtonGroupProps$1, ToggleButtonProps as ToggleButtonProps$1, Grid2Props, SvgIconProps, TableProps as TableProps$1, TableBodyProps as TableBodyProps$1, TableCellProps as TableCellProps$1, TableContainerProps as TableContainerProps$1, TableHeadProps as TableHeadProps$1, TableRowProps as TableRowProps$1, TypographyProps } from '@mui/material';
|
|
6
7
|
export { CardActionsProps, CardHeaderProps, TablePaginationProps, TableSortLabelProps } from '@mui/material';
|
|
7
8
|
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
8
9
|
import * as _emotion_styled from '@emotion/styled';
|
|
@@ -352,7 +353,7 @@ interface ToolkitThemeProviderProps {
|
|
|
352
353
|
* to let a user switch themes at runtime.
|
|
353
354
|
*/
|
|
354
355
|
theme?: ThemeName;
|
|
355
|
-
children:
|
|
356
|
+
children: React__default.ReactNode;
|
|
356
357
|
/**
|
|
357
358
|
* Inject MUI's CssBaseline (recommended for normalizing browser styles).
|
|
358
359
|
* Defaults to true.
|
|
@@ -424,7 +425,7 @@ type TextFieldProps = TextFieldProps$1 & {
|
|
|
424
425
|
/** When true and type="password", renders a visibility toggle icon button as end adornment. */
|
|
425
426
|
showPasswordToggle?: boolean;
|
|
426
427
|
};
|
|
427
|
-
declare const TextField:
|
|
428
|
+
declare const TextField: React__default.ForwardRefExoticComponent<(Omit<_mui_material.OutlinedTextFieldProps & {
|
|
428
429
|
/** When true and type="password", renders a visibility toggle icon button as end adornment. */
|
|
429
430
|
showPasswordToggle?: boolean;
|
|
430
431
|
}, "ref"> | Omit<_mui_material.FilledTextFieldProps & {
|
|
@@ -433,7 +434,7 @@ declare const TextField: React.ForwardRefExoticComponent<(Omit<_mui_material.Out
|
|
|
433
434
|
}, "ref"> | Omit<_mui_material.StandardTextFieldProps & {
|
|
434
435
|
/** When true and type="password", renders a visibility toggle icon button as end adornment. */
|
|
435
436
|
showPasswordToggle?: boolean;
|
|
436
|
-
}, "ref">) &
|
|
437
|
+
}, "ref">) & React__default.RefAttributes<HTMLInputElement>>;
|
|
437
438
|
|
|
438
439
|
interface ABNInputProps extends Omit<TextFieldProps, 'onChange'> {
|
|
439
440
|
/** Marks the field as invalid — maps to MUI's `error` prop */
|
|
@@ -443,14 +444,14 @@ interface ABNInputProps extends Omit<TextFieldProps, 'onChange'> {
|
|
|
443
444
|
/** Makes the input read-only */
|
|
444
445
|
readOnly?: boolean;
|
|
445
446
|
/** Called with the synthetic event and `{ value, unformattedValue }` */
|
|
446
|
-
onChange?: (event:
|
|
447
|
+
onChange?: (event: React__default.ChangeEvent<HTMLInputElement>, values: {
|
|
447
448
|
value: string;
|
|
448
449
|
unformattedValue: string;
|
|
449
450
|
}) => void;
|
|
450
451
|
/** Current value — digits or pre-formatted ABN string */
|
|
451
452
|
value?: string;
|
|
452
453
|
}
|
|
453
|
-
declare const ABNInput:
|
|
454
|
+
declare const ABNInput: React__default.ForwardRefExoticComponent<Omit<ABNInputProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
454
455
|
|
|
455
456
|
interface ButtonProps extends ButtonProps$1 {
|
|
456
457
|
/** Show a loading spinner and disable interaction */
|
|
@@ -467,7 +468,7 @@ interface ConfirmDialogProps {
|
|
|
467
468
|
/** Dialog heading */
|
|
468
469
|
title: string;
|
|
469
470
|
/** Supporting text below the title */
|
|
470
|
-
description?:
|
|
471
|
+
description?: React__default.ReactNode;
|
|
471
472
|
/** Label for the confirm button — defaults to "Confirm" */
|
|
472
473
|
confirmLabel?: string;
|
|
473
474
|
/** Label for the cancel button — defaults to "Cancel" */
|
|
@@ -548,20 +549,20 @@ type AccordionDetailsProps = AccordionDetailsProps$1;
|
|
|
548
549
|
* independent card-per-item styling.
|
|
549
550
|
*/
|
|
550
551
|
declare const StandaloneAccordion: _emotion_styled.StyledComponent<{
|
|
551
|
-
children: NonNullable<
|
|
552
|
+
children: NonNullable<React__default.ReactNode>;
|
|
552
553
|
classes?: Partial<_mui_material.AccordionClasses>;
|
|
553
554
|
defaultExpanded?: boolean;
|
|
554
555
|
disabled?: boolean;
|
|
555
556
|
disableGutters?: boolean;
|
|
556
557
|
expanded?: boolean;
|
|
557
|
-
onChange?: (event:
|
|
558
|
+
onChange?: (event: React__default.SyntheticEvent, expanded: boolean) => void;
|
|
558
559
|
sx?: _mui_system.SxProps<_mui_material.Theme>;
|
|
559
|
-
TransitionComponent?:
|
|
560
|
-
children?:
|
|
560
|
+
TransitionComponent?: React__default.JSXElementConstructor<_mui_material_transitions.TransitionProps & {
|
|
561
|
+
children?: React__default.ReactElement<unknown, any>;
|
|
561
562
|
}>;
|
|
562
563
|
TransitionProps?: _mui_material_transitions.TransitionProps;
|
|
563
|
-
} & _mui_material.AccordionSlotsAndSlotProps & Omit<_mui_material.PaperOwnProps, "classes" | "onChange"> & _mui_material_OverridableComponent.CommonProps & Omit<Omit<
|
|
564
|
-
ref?: ((instance: HTMLDivElement | null) => void |
|
|
564
|
+
} & _mui_material.AccordionSlotsAndSlotProps & Omit<_mui_material.PaperOwnProps, "classes" | "onChange"> & _mui_material_OverridableComponent.CommonProps & Omit<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
565
|
+
ref?: ((instance: HTMLDivElement | null) => void | React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React__default.RefObject<HTMLDivElement> | null | undefined;
|
|
565
566
|
}, "disabled" | keyof _mui_material_OverridableComponent.CommonProps | "children" | "sx" | "variant" | "onChange" | "elevation" | "square" | "expanded" | "defaultExpanded" | "disableGutters" | "TransitionComponent" | "TransitionProps" | keyof _mui_material.AccordionSlotsAndSlotProps> & _mui_system.MUIStyledCommonProps<_mui_material.Theme>, {}, {}>;
|
|
566
567
|
declare function Accordion(props: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
567
568
|
declare namespace Accordion {
|
|
@@ -602,14 +603,20 @@ declare function Avatar({ size, ...props }: AvatarProps): react_jsx_runtime.JSX.
|
|
|
602
603
|
|
|
603
604
|
type ToggleButtonProps = ToggleButtonProps$1;
|
|
604
605
|
type ToggleButtonGroupProps = ToggleButtonGroupProps$1;
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
declare
|
|
611
|
-
|
|
612
|
-
|
|
606
|
+
/**
|
|
607
|
+
* A bordered pill-style container that groups ToggleButton options.
|
|
608
|
+
* Styled to match the toolkit Toggle component aesthetic by default.
|
|
609
|
+
* All MuiToggleButtonGroup props are supported — override via sx as needed.
|
|
610
|
+
*/
|
|
611
|
+
declare const ToggleButtonGroup: _emotion_styled.StyledComponent<ToggleButtonGroupProps$1 & _mui_system.MUIStyledCommonProps<_mui_material.Theme>, {}, {}>;
|
|
612
|
+
/**
|
|
613
|
+
* A single option within a ToggleButtonGroup.
|
|
614
|
+
* Selected state fills with primary colour and white text, matching the
|
|
615
|
+
* toolkit Toggle "On" button. All MuiToggleButton props are supported.
|
|
616
|
+
*/
|
|
617
|
+
declare const ToggleButton: _emotion_styled.StyledComponent<_mui_material.ToggleButtonOwnProps & Omit<_mui_material.ButtonBaseOwnProps, "classes"> & _mui_material_OverridableComponent.CommonProps & Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
618
|
+
ref?: ((instance: HTMLButtonElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
619
|
+
}, "color" | "disabled" | "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "fullWidth" | "size" | "value" | "onChange" | "onClick" | "selected"> & _mui_system.MUIStyledCommonProps<_mui_material.Theme>, {}, {}>;
|
|
613
620
|
|
|
614
621
|
type DatePickerProps = DatePickerProps$1;
|
|
615
622
|
type DesktopDatePickerProps = DesktopDatePickerProps$1;
|
|
@@ -628,7 +635,7 @@ type DateTimeFieldProps = DateTimeFieldProps$1;
|
|
|
628
635
|
type StaticDateTimePickerProps = StaticDateTimePickerProps$1;
|
|
629
636
|
type DateCalendarProps = DateCalendarProps$1;
|
|
630
637
|
interface DateLocalizationProviderProps {
|
|
631
|
-
children:
|
|
638
|
+
children: React__default.ReactNode;
|
|
632
639
|
}
|
|
633
640
|
declare function DateLocalizationProvider({ children }: DateLocalizationProviderProps): react_jsx_runtime.JSX.Element;
|
|
634
641
|
declare namespace DateLocalizationProvider {
|
|
@@ -771,7 +778,7 @@ interface IconTextSymbol {
|
|
|
771
778
|
viewBox?: string;
|
|
772
779
|
isMounted?: boolean;
|
|
773
780
|
}
|
|
774
|
-
interface IconTextProps extends
|
|
781
|
+
interface IconTextProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
775
782
|
/** SVG symbol object (e.g. from @online/symbols or an inline SVG descriptor) */
|
|
776
783
|
symbol: IconTextSymbol;
|
|
777
784
|
/** Props forwarded to the MUI SvgIcon wrapper */
|
|
@@ -781,9 +788,9 @@ interface IconTextProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
781
788
|
/** Inherit font-family and line-height from the parent (useful inside buttons, links) */
|
|
782
789
|
inheritFontFamily?: boolean;
|
|
783
790
|
}
|
|
784
|
-
declare const IconText:
|
|
791
|
+
declare const IconText: React__default.ForwardRefExoticComponent<IconTextProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
785
792
|
|
|
786
|
-
interface InternalLinkItemProps extends Omit<
|
|
793
|
+
interface InternalLinkItemProps extends Omit<React__default.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> {
|
|
787
794
|
/** URL for the anchor href */
|
|
788
795
|
link?: string;
|
|
789
796
|
/** The label to display */
|
|
@@ -791,13 +798,13 @@ interface InternalLinkItemProps extends Omit<React.AnchorHTMLAttributes<HTMLAnch
|
|
|
791
798
|
/** Secondary text displayed beneath the label */
|
|
792
799
|
caption?: string;
|
|
793
800
|
/** Optional icon rendered on the left */
|
|
794
|
-
icon?:
|
|
801
|
+
icon?: React__default.ReactNode;
|
|
795
802
|
/**
|
|
796
803
|
* Swap the rendered element — pass a React Router `<Link>` or any
|
|
797
804
|
* component that accepts an `href`/`to` prop.
|
|
798
805
|
* Defaults to a plain `<a>`.
|
|
799
806
|
*/
|
|
800
|
-
component?:
|
|
807
|
+
component?: React__default.ElementType;
|
|
801
808
|
}
|
|
802
809
|
declare function InternalLinkItem({ link, icon, label, caption, component, ...restProps }: InternalLinkItemProps): react_jsx_runtime.JSX.Element;
|
|
803
810
|
declare namespace InternalLinkItem {
|
|
@@ -809,13 +816,13 @@ declare const Variant: {
|
|
|
809
816
|
readonly external: "external";
|
|
810
817
|
readonly file: "file";
|
|
811
818
|
};
|
|
812
|
-
interface LinkProps extends Omit<
|
|
819
|
+
interface LinkProps extends Omit<React__default.AnchorHTMLAttributes<HTMLAnchorElement>, 'color'> {
|
|
813
820
|
/** Content of the link */
|
|
814
|
-
children:
|
|
821
|
+
children: React__default.ReactNode;
|
|
815
822
|
/** Visual variant — controls icon and default target */
|
|
816
823
|
variant?: 'standard' | 'external' | 'file';
|
|
817
824
|
/** Custom icon component (standard variant only) */
|
|
818
|
-
icon?:
|
|
825
|
+
icon?: React__default.ElementType;
|
|
819
826
|
/** Render the icon on the right instead of the left */
|
|
820
827
|
iconToRight?: boolean;
|
|
821
828
|
/** Extra padding, renders the link as a standalone block-level call-to-action */
|
|
@@ -827,13 +834,13 @@ interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>,
|
|
|
827
834
|
/** Link URL */
|
|
828
835
|
href?: string;
|
|
829
836
|
/** Swap the rendered element — pass a React Router `<Link>` or similar */
|
|
830
|
-
component?:
|
|
837
|
+
component?: React__default.ElementType;
|
|
831
838
|
}
|
|
832
|
-
declare const Link:
|
|
839
|
+
declare const Link: React__default.ForwardRefExoticComponent<LinkProps & React__default.RefAttributes<HTMLAnchorElement>>;
|
|
833
840
|
|
|
834
|
-
interface LogoLinkProps extends Omit<
|
|
841
|
+
interface LogoLinkProps extends Omit<React__default.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> {
|
|
835
842
|
/** Logo content — pass an `<img>`, inline SVG, or any React node */
|
|
836
|
-
children:
|
|
843
|
+
children: React__default.ReactNode;
|
|
837
844
|
/** Link destination, defaults to '/' */
|
|
838
845
|
href?: string;
|
|
839
846
|
/** Compact height mode (45px instead of 55px) */
|
|
@@ -841,13 +848,13 @@ interface LogoLinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElemen
|
|
|
841
848
|
/** Accessible title for the link, defaults to 'Home' */
|
|
842
849
|
title?: string;
|
|
843
850
|
/** Swap the rendered element — pass a React Router `<Link>` or similar */
|
|
844
|
-
component?:
|
|
851
|
+
component?: React__default.ElementType;
|
|
845
852
|
}
|
|
846
|
-
declare const LogoLink:
|
|
853
|
+
declare const LogoLink: React__default.ForwardRefExoticComponent<LogoLinkProps & React__default.RefAttributes<HTMLAnchorElement>>;
|
|
847
854
|
|
|
848
855
|
interface MultiSelectOption {
|
|
849
856
|
value: string;
|
|
850
|
-
label: string |
|
|
857
|
+
label: string | React__default.ReactNode;
|
|
851
858
|
}
|
|
852
859
|
interface MultiSelectProps {
|
|
853
860
|
options: MultiSelectOption[];
|
|
@@ -858,9 +865,9 @@ interface MultiSelectProps {
|
|
|
858
865
|
};
|
|
859
866
|
preSelectedOptions?: Array<{
|
|
860
867
|
value: string;
|
|
861
|
-
label?: string |
|
|
868
|
+
label?: string | React__default.ReactNode;
|
|
862
869
|
}>;
|
|
863
|
-
renderOption: (option: any, currentOptionIndex: number, handleSelectOption: (event:
|
|
870
|
+
renderOption: (option: any, currentOptionIndex: number, handleSelectOption: (event: React__default.SyntheticEvent, option: any) => void, checked: boolean, inputId: string) => React__default.ReactNode;
|
|
864
871
|
label?: string;
|
|
865
872
|
inputId: string;
|
|
866
873
|
hasError?: boolean;
|
|
@@ -868,14 +875,14 @@ interface MultiSelectProps {
|
|
|
868
875
|
hasSelectAll?: boolean;
|
|
869
876
|
hasTooltip?: boolean;
|
|
870
877
|
required?: boolean;
|
|
871
|
-
selectButtonRef?:
|
|
872
|
-
onBlur?: (e:
|
|
873
|
-
onFocus?: (e:
|
|
874
|
-
onKeyUp?: (e:
|
|
875
|
-
onKeyDown?: (e:
|
|
876
|
-
onClick?: (e:
|
|
877
|
-
onTouchStart?: (e:
|
|
878
|
-
onTouchEnd?: (e:
|
|
878
|
+
selectButtonRef?: React__default.Ref<any>;
|
|
879
|
+
onBlur?: (e: React__default.FocusEvent<any>) => void;
|
|
880
|
+
onFocus?: (e: React__default.FocusEvent<any>) => void;
|
|
881
|
+
onKeyUp?: (e: React__default.KeyboardEvent<any>) => void;
|
|
882
|
+
onKeyDown?: (e: React__default.KeyboardEvent<any>) => void;
|
|
883
|
+
onClick?: (e: React__default.MouseEvent<any>) => void;
|
|
884
|
+
onTouchStart?: (e: React__default.TouchEvent<any>) => void;
|
|
885
|
+
onTouchEnd?: (e: React__default.TouchEvent<any>) => void;
|
|
879
886
|
className?: string;
|
|
880
887
|
id?: string;
|
|
881
888
|
}
|
|
@@ -899,11 +906,11 @@ declare const OtpInput: {
|
|
|
899
906
|
displayName: string;
|
|
900
907
|
};
|
|
901
908
|
|
|
902
|
-
interface PageSpinnerProps extends Omit<
|
|
909
|
+
interface PageSpinnerProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'role'> {
|
|
903
910
|
/** Loading message shown below the spinner */
|
|
904
911
|
message?: string;
|
|
905
912
|
/** Override the visible message with a React node (the `message` prop is still announced to screen readers) */
|
|
906
|
-
customMessageLayout?:
|
|
913
|
+
customMessageLayout?: React__default.ReactNode;
|
|
907
914
|
/** Use light-on-dark colour scheme */
|
|
908
915
|
isOnDarkBg?: boolean;
|
|
909
916
|
/** Additional screen reader text when no visible message is needed */
|
|
@@ -913,7 +920,7 @@ interface PageSpinnerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'r
|
|
|
913
920
|
/** Aria-live politeness for the screen reader announcement */
|
|
914
921
|
messageTone?: 'assertive' | 'polite';
|
|
915
922
|
}
|
|
916
|
-
declare const PageSpinner:
|
|
923
|
+
declare const PageSpinner: React__default.ForwardRefExoticComponent<PageSpinnerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
917
924
|
|
|
918
925
|
type PaginationVariant = 'text' | 'outlined' | 'soft';
|
|
919
926
|
type PaginationShape = 'circular' | 'rounded';
|
|
@@ -926,29 +933,29 @@ interface PaginationProps extends Omit<PaginationProps$1, 'variant' | 'color' |
|
|
|
926
933
|
/** Color applied to the selected/active item */
|
|
927
934
|
color?: PaginationColor;
|
|
928
935
|
}
|
|
929
|
-
declare const Pagination:
|
|
936
|
+
declare const Pagination: React__default.ForwardRefExoticComponent<Omit<PaginationProps, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
930
937
|
|
|
931
|
-
interface ParagraphProps extends Omit<
|
|
938
|
+
interface ParagraphProps extends Omit<React__default.HTMLAttributes<HTMLParagraphElement>, 'color'> {
|
|
932
939
|
/** Visual style variant */
|
|
933
940
|
variant?: 'regular' | 'semibold' | 'bold' | 'overline' | 'primary' | 'secondary';
|
|
934
941
|
/** Renders the correct text colour on a dark background */
|
|
935
942
|
isOnDarkBg?: boolean;
|
|
936
|
-
children:
|
|
943
|
+
children: React__default.ReactNode;
|
|
937
944
|
}
|
|
938
|
-
declare const Paragraph:
|
|
945
|
+
declare const Paragraph: React__default.ForwardRefExoticComponent<ParagraphProps & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
939
946
|
|
|
940
947
|
interface PasswordProps {
|
|
941
948
|
isInvalid?: boolean;
|
|
942
949
|
value?: string;
|
|
943
950
|
label?: string;
|
|
944
|
-
onBlur?: (event:
|
|
945
|
-
onChange?: (event:
|
|
951
|
+
onBlur?: (event: React__default.FocusEvent<HTMLInputElement>) => void;
|
|
952
|
+
onChange?: (event: React__default.ChangeEvent<HTMLInputElement>, isCriteriaMet: boolean) => void;
|
|
946
953
|
ariaDescribedby?: string;
|
|
947
954
|
ariaLabelledby?: string;
|
|
948
955
|
className?: string;
|
|
949
956
|
id?: string;
|
|
950
957
|
}
|
|
951
|
-
declare const Password:
|
|
958
|
+
declare const Password: React__default.ForwardRefExoticComponent<PasswordProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
952
959
|
|
|
953
960
|
interface PasswordCriteriaProps {
|
|
954
961
|
show?: boolean;
|
|
@@ -977,11 +984,11 @@ declare const PasswordRule: {
|
|
|
977
984
|
|
|
978
985
|
type SpinnerSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
979
986
|
|
|
980
|
-
interface SpinnerProps extends Omit<
|
|
987
|
+
interface SpinnerProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'role'> {
|
|
981
988
|
/** Size of the spinner */
|
|
982
989
|
size?: SpinnerSize;
|
|
983
990
|
/** Message displayed below (or beside when isInline) the spinner */
|
|
984
|
-
message?:
|
|
991
|
+
message?: React__default.ReactNode;
|
|
985
992
|
/** Use light-on-dark colour scheme */
|
|
986
993
|
isOnDarkBg?: boolean;
|
|
987
994
|
/** Screen reader text when no visible message is provided */
|
|
@@ -989,9 +996,9 @@ interface SpinnerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'role'
|
|
|
989
996
|
/** Display the spinner and message side by side */
|
|
990
997
|
isInline?: boolean;
|
|
991
998
|
}
|
|
992
|
-
declare const Spinner:
|
|
999
|
+
declare const Spinner: React__default.ForwardRefExoticComponent<SpinnerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
993
1000
|
|
|
994
|
-
interface ToggleProps extends Omit<
|
|
1001
|
+
interface ToggleProps extends Omit<React__default.HTMLAttributes<HTMLFieldSetElement>, 'onChange'> {
|
|
995
1002
|
/** Unique name for the radio inputs */
|
|
996
1003
|
name: string;
|
|
997
1004
|
/** Whether the toggle is in the "on" state */
|
|
@@ -1006,8 +1013,10 @@ interface ToggleProps extends Omit<React.HTMLAttributes<HTMLFieldSetElement>, 'o
|
|
|
1006
1013
|
onChange?: (value: boolean) => void;
|
|
1007
1014
|
/** Blur handler forwarded to both radio inputs */
|
|
1008
1015
|
onBlur?: () => void;
|
|
1016
|
+
/** Controls the height of the toggle — small (40px), medium (56px, matches TextField), large (64px) */
|
|
1017
|
+
size?: 'small' | 'medium' | 'large';
|
|
1009
1018
|
}
|
|
1010
|
-
declare function Toggle({ name, checked, label, description, error, onChange, onBlur, ...restProps }: ToggleProps): react_jsx_runtime.JSX.Element;
|
|
1019
|
+
declare function Toggle({ name, checked, label, description, error, onChange, onBlur, size, ...restProps }: ToggleProps): react_jsx_runtime.JSX.Element;
|
|
1011
1020
|
declare namespace Toggle {
|
|
1012
1021
|
var displayName: string;
|
|
1013
1022
|
}
|
|
@@ -1046,59 +1055,59 @@ declare function TableContainer(props: TableContainerProps): react_jsx_runtime.J
|
|
|
1046
1055
|
declare namespace TableContainer {
|
|
1047
1056
|
var displayName: string;
|
|
1048
1057
|
}
|
|
1049
|
-
declare const TablePagination: _mui_material_OverridableComponent.OverridableComponent<_mui_material.TablePaginationTypeMap<{},
|
|
1058
|
+
declare const TablePagination: _mui_material_OverridableComponent.OverridableComponent<_mui_material.TablePaginationTypeMap<{}, React__default.JSXElementConstructor<_mui_material.TablePaginationBaseProps>>>;
|
|
1050
1059
|
declare const TableSortLabel: _mui_material.ExtendButtonBase<_mui_material.TableSortLabelTypeMap<{}, "span">>;
|
|
1051
1060
|
|
|
1052
1061
|
interface H1Props extends Omit<TypographyProps, 'variant'> {
|
|
1053
1062
|
}
|
|
1054
|
-
declare const H1:
|
|
1063
|
+
declare const H1: React__default.ForwardRefExoticComponent<Omit<H1Props, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
1055
1064
|
|
|
1056
1065
|
interface H2Props extends Omit<TypographyProps, 'variant'> {
|
|
1057
1066
|
}
|
|
1058
|
-
declare const H2:
|
|
1067
|
+
declare const H2: React__default.ForwardRefExoticComponent<Omit<H2Props, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
1059
1068
|
|
|
1060
1069
|
interface H3Props extends Omit<TypographyProps, 'variant'> {
|
|
1061
1070
|
}
|
|
1062
|
-
declare const H3:
|
|
1071
|
+
declare const H3: React__default.ForwardRefExoticComponent<Omit<H3Props, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
1063
1072
|
|
|
1064
1073
|
interface H4Props extends Omit<TypographyProps, 'variant'> {
|
|
1065
1074
|
}
|
|
1066
|
-
declare const H4:
|
|
1075
|
+
declare const H4: React__default.ForwardRefExoticComponent<Omit<H4Props, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
1067
1076
|
|
|
1068
1077
|
interface H5Props extends Omit<TypographyProps, 'variant'> {
|
|
1069
1078
|
}
|
|
1070
|
-
declare const H5:
|
|
1079
|
+
declare const H5: React__default.ForwardRefExoticComponent<Omit<H5Props, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
1071
1080
|
|
|
1072
1081
|
interface H6Props extends Omit<TypographyProps, 'variant'> {
|
|
1073
1082
|
}
|
|
1074
|
-
declare const H6:
|
|
1083
|
+
declare const H6: React__default.ForwardRefExoticComponent<Omit<H6Props, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
1075
1084
|
|
|
1076
1085
|
interface Subtitle1Props extends Omit<TypographyProps, 'variant'> {
|
|
1077
1086
|
}
|
|
1078
|
-
declare const Subtitle1:
|
|
1087
|
+
declare const Subtitle1: React__default.ForwardRefExoticComponent<Omit<Subtitle1Props, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
1079
1088
|
|
|
1080
1089
|
interface Subtitle2Props extends Omit<TypographyProps, 'variant'> {
|
|
1081
1090
|
}
|
|
1082
|
-
declare const Subtitle2:
|
|
1091
|
+
declare const Subtitle2: React__default.ForwardRefExoticComponent<Omit<Subtitle2Props, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
1083
1092
|
|
|
1084
1093
|
interface Body1Props extends Omit<TypographyProps, 'variant'> {
|
|
1085
1094
|
}
|
|
1086
|
-
declare const Body1:
|
|
1095
|
+
declare const Body1: React__default.ForwardRefExoticComponent<Omit<Body1Props, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
1087
1096
|
|
|
1088
1097
|
interface Body2Props extends Omit<TypographyProps, 'variant'> {
|
|
1089
1098
|
}
|
|
1090
|
-
declare const Body2:
|
|
1099
|
+
declare const Body2: React__default.ForwardRefExoticComponent<Omit<Body2Props, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
1091
1100
|
|
|
1092
1101
|
interface CaptionProps extends Omit<TypographyProps, 'variant'> {
|
|
1093
1102
|
}
|
|
1094
|
-
declare const Caption:
|
|
1103
|
+
declare const Caption: React__default.ForwardRefExoticComponent<Omit<CaptionProps, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
1095
1104
|
|
|
1096
1105
|
interface OverlineProps extends Omit<TypographyProps, 'variant'> {
|
|
1097
1106
|
}
|
|
1098
|
-
declare const Overline:
|
|
1107
|
+
declare const Overline: React__default.ForwardRefExoticComponent<Omit<OverlineProps, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
1099
1108
|
|
|
1100
1109
|
interface TypographyButtonProps extends Omit<TypographyProps, 'variant'> {
|
|
1101
1110
|
}
|
|
1102
|
-
declare const TypographyButton:
|
|
1111
|
+
declare const TypographyButton: React__default.ForwardRefExoticComponent<Omit<TypographyButtonProps, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
1103
1112
|
|
|
1104
1113
|
export { ABNInput, type ABNInputProps, Accordion, AccordionDetails, type AccordionDetailsProps, type AccordionProps, AccordionSummary, type AccordionSummaryProps, Alert, type AlertProps, AlertTitle, type AlertTitleProps, Avatar, type AvatarProps, type AvatarSize, Body1, type Body1Props, Body2, type Body2Props, type BorderRadiusTokens, Button, type ButtonProps, Caption, type CaptionProps, Card, CardActions, CardContent, CardHeader, type CardProps, Chip, type ChipProps, type ColorTokens, type ComponentTokens, ConfirmDialog, type ConfirmDialogProps, DateCalendar, type DateCalendarProps, DateField, type DateFieldProps, DateLocalizationProvider, type DateLocalizationProviderProps, DatePicker, type DatePickerProps, DateRangePickerCalendar, type DateRangePickerCalendarProps, DateRangePickerInput, type DateRangePickerInputProps, type DateRangeValue, DateTimeField, type DateTimeFieldProps, DateTimePicker, type DateTimePickerProps, DesktopDatePicker, type DesktopDatePickerProps, DesktopDateTimePicker, type DesktopDateTimePickerProps, DesktopTimePicker, type DesktopTimePickerProps, Grid, type GridProps, H1, type H1Props, H2, type H2Props, H3, type H3Props, H4, type H4Props, H5, type H5Props, H6, type H6Props, IconText, type IconTextProps, type IconTextSymbol, InternalLinkItem, type InternalLinkItemProps, Link, type LinkProps, LogoLink, type LogoLinkProps, MobileDatePicker, type MobileDatePickerProps, MobileDateTimePicker, type MobileDateTimePickerProps, MobileTimePicker, type MobileTimePickerProps, MultiSelect, type MultiSelectOption, type MultiSelectProps, OtpInput, type OtpInputProps, Overline, type OverlineProps, PageSpinner, type PageSpinnerProps, Pagination, type PaginationColor, type PaginationProps, type PaginationShape, type PaginationVariant, Paragraph, type ParagraphProps, Password, PasswordCriteria, type PasswordCriteriaProps, type PasswordProps, PasswordRule, type PasswordRuleProps, PasswordRules, type ShadowTokens, type SpacingTokens, Spinner, type SpinnerProps, type SpinnerSize, StandaloneAccordion, StaticDatePicker, type StaticDatePickerProps, StaticDateTimePicker, type StaticDateTimePickerProps, StaticTimePicker, type StaticTimePickerProps, Subtitle1, type Subtitle1Props, Subtitle2, type Subtitle2Props, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableContainer, type TableContainerProps, TableHead, TableHeadCell, type TableHeadProps, TablePagination, type TableProps, TableRow, type TableRowProps, TableSortLabel, TextField, type TextFieldProps, type ThemeName, type ThemeTokens, TimeField, type TimeFieldProps, TimePicker, type TimePickerProps, Toggle, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, type ToggleProps, ToolkitThemeProvider, type TransitionTokens, TypographyButton, type TypographyButtonProps, type TypographyTokens, Variant, type ZIndexTokens, createMuiTheme, getThemeTokens, passwordValidator, resolveThemeName, themeRegistry };
|