@octoguide/mui-ui-toolkit 0.8.1 → 0.9.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.mts +41 -2
- package/dist/index.d.ts +41 -2
- package/dist/index.js +334 -231
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +318 -216
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -618,6 +618,43 @@ declare const ToggleButton: _emotion_styled.StyledComponent<_mui_material.Toggle
|
|
|
618
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
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>, {}, {}>;
|
|
620
620
|
|
|
621
|
+
interface RadioCardOption {
|
|
622
|
+
/** The value submitted when this option is selected. */
|
|
623
|
+
value: string;
|
|
624
|
+
/** Short label displayed prominently on the card. */
|
|
625
|
+
label: string;
|
|
626
|
+
/** Supporting description displayed beneath the label. */
|
|
627
|
+
description?: string;
|
|
628
|
+
}
|
|
629
|
+
interface RadioCardGroupProps {
|
|
630
|
+
/** Currently selected value. */
|
|
631
|
+
value: string;
|
|
632
|
+
/** Called with the new value when the user selects a card. */
|
|
633
|
+
onChange: (value: string) => void;
|
|
634
|
+
/** The options to render. */
|
|
635
|
+
options: RadioCardOption[];
|
|
636
|
+
/** Disable all cards. */
|
|
637
|
+
disabled?: boolean;
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* A group of selectable cards, each with a label and optional description.
|
|
641
|
+
* Behaves like a radio group — only one option can be selected at a time.
|
|
642
|
+
*
|
|
643
|
+
* @example
|
|
644
|
+
* <RadioCardGroup
|
|
645
|
+
* value={mode}
|
|
646
|
+
* onChange={setMode}
|
|
647
|
+
* options={[
|
|
648
|
+
* { value: 'hard', label: 'Hard lock', description: 'Block queries once the limit is reached.' },
|
|
649
|
+
* { value: 'soft', label: 'Soft warning', description: 'Append a warning to the response.' },
|
|
650
|
+
* ]}
|
|
651
|
+
* />
|
|
652
|
+
*/
|
|
653
|
+
declare function RadioCardGroup({ value, onChange, options, disabled }: RadioCardGroupProps): react_jsx_runtime.JSX.Element;
|
|
654
|
+
declare namespace RadioCardGroup {
|
|
655
|
+
var displayName: string;
|
|
656
|
+
}
|
|
657
|
+
|
|
621
658
|
type DatePickerProps = DatePickerProps$1;
|
|
622
659
|
type DesktopDatePickerProps = DesktopDatePickerProps$1;
|
|
623
660
|
type MobileDatePickerProps = MobileDatePickerProps$1;
|
|
@@ -1013,8 +1050,10 @@ interface ToggleProps extends Omit<React__default.HTMLAttributes<HTMLFieldSetEle
|
|
|
1013
1050
|
onChange?: (value: boolean) => void;
|
|
1014
1051
|
/** Blur handler forwarded to both radio inputs */
|
|
1015
1052
|
onBlur?: () => void;
|
|
1053
|
+
/** Controls the height of the toggle — small (40px), medium (56px, matches TextField), large (64px) */
|
|
1054
|
+
size?: 'small' | 'medium' | 'large';
|
|
1016
1055
|
}
|
|
1017
|
-
declare function Toggle({ name, checked, label, description, error, onChange, onBlur, ...restProps }: ToggleProps): react_jsx_runtime.JSX.Element;
|
|
1056
|
+
declare function Toggle({ name, checked, label, description, error, onChange, onBlur, size, ...restProps }: ToggleProps): react_jsx_runtime.JSX.Element;
|
|
1018
1057
|
declare namespace Toggle {
|
|
1019
1058
|
var displayName: string;
|
|
1020
1059
|
}
|
|
@@ -1108,4 +1147,4 @@ interface TypographyButtonProps extends Omit<TypographyProps, 'variant'> {
|
|
|
1108
1147
|
}
|
|
1109
1148
|
declare const TypographyButton: React__default.ForwardRefExoticComponent<Omit<TypographyButtonProps, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
1110
1149
|
|
|
1111
|
-
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 };
|
|
1150
|
+
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, RadioCardGroup, type RadioCardGroupProps, type RadioCardOption, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -618,6 +618,43 @@ declare const ToggleButton: _emotion_styled.StyledComponent<_mui_material.Toggle
|
|
|
618
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
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>, {}, {}>;
|
|
620
620
|
|
|
621
|
+
interface RadioCardOption {
|
|
622
|
+
/** The value submitted when this option is selected. */
|
|
623
|
+
value: string;
|
|
624
|
+
/** Short label displayed prominently on the card. */
|
|
625
|
+
label: string;
|
|
626
|
+
/** Supporting description displayed beneath the label. */
|
|
627
|
+
description?: string;
|
|
628
|
+
}
|
|
629
|
+
interface RadioCardGroupProps {
|
|
630
|
+
/** Currently selected value. */
|
|
631
|
+
value: string;
|
|
632
|
+
/** Called with the new value when the user selects a card. */
|
|
633
|
+
onChange: (value: string) => void;
|
|
634
|
+
/** The options to render. */
|
|
635
|
+
options: RadioCardOption[];
|
|
636
|
+
/** Disable all cards. */
|
|
637
|
+
disabled?: boolean;
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* A group of selectable cards, each with a label and optional description.
|
|
641
|
+
* Behaves like a radio group — only one option can be selected at a time.
|
|
642
|
+
*
|
|
643
|
+
* @example
|
|
644
|
+
* <RadioCardGroup
|
|
645
|
+
* value={mode}
|
|
646
|
+
* onChange={setMode}
|
|
647
|
+
* options={[
|
|
648
|
+
* { value: 'hard', label: 'Hard lock', description: 'Block queries once the limit is reached.' },
|
|
649
|
+
* { value: 'soft', label: 'Soft warning', description: 'Append a warning to the response.' },
|
|
650
|
+
* ]}
|
|
651
|
+
* />
|
|
652
|
+
*/
|
|
653
|
+
declare function RadioCardGroup({ value, onChange, options, disabled }: RadioCardGroupProps): react_jsx_runtime.JSX.Element;
|
|
654
|
+
declare namespace RadioCardGroup {
|
|
655
|
+
var displayName: string;
|
|
656
|
+
}
|
|
657
|
+
|
|
621
658
|
type DatePickerProps = DatePickerProps$1;
|
|
622
659
|
type DesktopDatePickerProps = DesktopDatePickerProps$1;
|
|
623
660
|
type MobileDatePickerProps = MobileDatePickerProps$1;
|
|
@@ -1013,8 +1050,10 @@ interface ToggleProps extends Omit<React__default.HTMLAttributes<HTMLFieldSetEle
|
|
|
1013
1050
|
onChange?: (value: boolean) => void;
|
|
1014
1051
|
/** Blur handler forwarded to both radio inputs */
|
|
1015
1052
|
onBlur?: () => void;
|
|
1053
|
+
/** Controls the height of the toggle — small (40px), medium (56px, matches TextField), large (64px) */
|
|
1054
|
+
size?: 'small' | 'medium' | 'large';
|
|
1016
1055
|
}
|
|
1017
|
-
declare function Toggle({ name, checked, label, description, error, onChange, onBlur, ...restProps }: ToggleProps): react_jsx_runtime.JSX.Element;
|
|
1056
|
+
declare function Toggle({ name, checked, label, description, error, onChange, onBlur, size, ...restProps }: ToggleProps): react_jsx_runtime.JSX.Element;
|
|
1018
1057
|
declare namespace Toggle {
|
|
1019
1058
|
var displayName: string;
|
|
1020
1059
|
}
|
|
@@ -1108,4 +1147,4 @@ interface TypographyButtonProps extends Omit<TypographyProps, 'variant'> {
|
|
|
1108
1147
|
}
|
|
1109
1148
|
declare const TypographyButton: React__default.ForwardRefExoticComponent<Omit<TypographyButtonProps, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
1110
1149
|
|
|
1111
|
-
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 };
|
|
1150
|
+
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, RadioCardGroup, type RadioCardGroupProps, type RadioCardOption, 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 };
|