asma-ui-core 3.41.0 → 3.42.1
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/asma-ui-core.css +1 -1
- package/dist/components/data-display/badge/StyledBadge.js +24 -29
- package/dist/components/data-display/chip/StyledChip.js +60 -45
- package/dist/components/data-display/interactive-chip/StyledInteractiveChip.js +38 -32
- package/dist/components/data-display/tooltip/StyledTooltip.js +33 -50
- package/dist/components/data-display/typography/StyledTypography.js +4 -62
- package/dist/components/feedback/dialog/StyledDialog.js +50 -70
- package/dist/components/feedback/dialog/StyledDialog.module.js +9 -2
- package/dist/components/feedback/dialog/StyledDialogActions.js +16 -16
- package/dist/components/feedback/dialog/StyledDialogActions.module.js +8 -0
- package/dist/components/feedback/dialog/StyledDialogContent.js +14 -17
- package/dist/components/feedback/dialog/StyledDialogContent.module.js +4 -0
- package/dist/components/feedback/dialog/StyledDialogTitle.js +13 -18
- package/dist/components/feedback/dialog/StyledDialogTitle.module.js +4 -0
- package/dist/components/feedback/minimizable-dialog/MinimizableDialog.js +57 -56
- package/dist/components/feedback/snack-bar/StyledAlert.js +14 -72
- package/dist/components/feedback/snack-bar/StyledSnackbar.js +8 -34
- package/dist/components/feedback/snack-bar/components/StyledDefaultSnackbar.js +34 -33
- package/dist/components/inputs/checkbox/StyledCheckbox.js +20 -0
- package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.js +58 -55
- package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.module.js +12 -12
- package/dist/components/inputs/dynamic-select/components/DynamicInteractiveChipGroup.js +1 -1
- package/dist/components/inputs/dynamic-select/components/DynamicSelectAutocomplete.js +1 -1
- package/dist/components/inputs/input-field/StyledInputField.js +81 -104
- package/dist/components/inputs/radio-button/StyledRadio.js +17 -0
- package/dist/components/inputs/radio-button/base-ui/StyledRadio.js +29 -40
- package/dist/components/inputs/radio-button/base-ui/StyledRadio.module.js +10 -10
- package/dist/components/inputs/radio-button/base-ui/StyledRadioGroup.js +23 -35
- package/dist/components/inputs/select/StyledSelect.js +45 -124
- package/dist/components/inputs/select/StyledSelectItem.js +23 -19
- package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +151 -181
- package/dist/components/inputs/slider/StyledSlider.js +52 -78
- package/dist/components/inputs/switch/base-ui/StyledSwitch.js +39 -44
- package/dist/components/miscellaneous/StyledFormControl.js +21 -39
- package/dist/components/miscellaneous/StyledFormControlLabel.js +16 -27
- package/dist/components/miscellaneous/StyledFormGroup.js +4 -16
- package/dist/components/miscellaneous/StyledFormHelperText.js +4 -12
- package/dist/components/miscellaneous/StyledInputLabel.js +4 -20
- package/dist/components/navigation/drawer/StyledDrawer.js +4 -42
- package/dist/components/navigation/listbox/Listbox.js +7 -7
- package/dist/components/navigation/menu/StyledMenu.js +11 -28
- package/dist/components/navigation/menu/StyledMenuItem.js +18 -16
- package/dist/components/navigation/menu/StyledMenuList.js +4 -32
- package/dist/components/navigation/tabs/StyledTab.js +13 -25
- package/dist/components/navigation/tabs/StyledTabs.js +64 -112
- package/dist/components/utils/accordion/base-ui/StyledAccordion.js +21 -28
- package/dist/components/utils/accordion/base-ui/StyledAccordion.module.js +7 -7
- package/dist/components/utils/accordion/base-ui/StyledAccordionDetails.js +14 -28
- package/dist/components/utils/accordion/base-ui/StyledAccordionSummary.js +27 -31
- package/dist/components/utils/popover/StyledPopover.js +15 -44
- package/dist/datetime/components/date-picker/StyledDatePicker.js +6 -6
- package/dist/datetime/components/date-picker/components/BaseDatePickerInput.js +1 -1
- package/dist/datetime/components/date-picker/components/HelperTextWithTooltip.js +6 -6
- package/dist/datetime/components/date-picker/components/StyledCalendarPicker.js +11 -11
- package/dist/datetime/components/date-picker/components/StyledCalendarPickerFooter.js +14 -13
- package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectMonth.js +14 -14
- package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectYear.js +6 -6
- package/dist/datetime/components/date-picker/components/StyledDayPicker.js +5 -4
- package/dist/datetime/components/date-picker/hooks/useDatePickerMask.js +4 -4
- package/dist/datetime/components/time-picker/StyledTimePicker.js +25 -25
- package/dist/datetime/components/time-picker/TimePickerInput.js +16 -15
- package/dist/datetime/components/time-picker/TimePickerPopper.js +19 -21
- package/dist/datetime/helpers/cn.js +5 -4
- package/dist/datetime/shared-components/ExpandIcon.js +18 -0
- package/dist/datetime/shared-components/StyledFormControl.js +23 -0
- package/dist/datetime/shared-components/StyledInputField.js +47 -0
- package/dist/datetime/shared-components/StyledSelect.js +47 -0
- package/dist/datetime/shared-components/StyledSelectItem.js +13 -0
- package/dist/datetime/shared-components/StyledTooltip.js +32 -0
- package/dist/helpers/cn.js +5 -4
- package/dist/index.js +175 -185
- package/dist/src/components/data-display/badge/StyledBadge.d.ts +2 -26
- package/dist/src/components/data-display/chip/StyledChip.d.ts +5 -39
- package/dist/src/components/data-display/interactive-chip/StyledInteractiveChip.d.ts +4 -11
- package/dist/src/components/data-display/tooltip/StyledTooltip.d.ts +2 -36
- package/dist/src/components/data-display/typography/StyledTypography.d.ts +1 -19
- package/dist/src/components/feedback/dialog/StyledDialog.d.ts +4 -50
- package/dist/src/components/feedback/dialog/StyledDialogActions.d.ts +2 -12
- package/dist/src/components/feedback/dialog/StyledDialogContent.d.ts +2 -12
- package/dist/src/components/feedback/dialog/StyledDialogTitle.d.ts +2 -10
- package/dist/src/components/feedback/snack-bar/SnackbarProvider.d.ts +1 -1
- package/dist/src/components/feedback/snack-bar/StyledAlert.d.ts +2 -24
- package/dist/src/components/feedback/snack-bar/StyledAlertSnackbar.d.ts +1 -1
- package/dist/src/components/feedback/snack-bar/StyledSnackbar.d.ts +2 -21
- package/dist/src/components/feedback/snack-bar/components/StyledDefaultSnackbar.d.ts +1 -1
- package/dist/src/components/feedback/snack-bar/components/StyledInfoSnackbar.d.ts +1 -1
- package/dist/src/components/feedback/snack-bar/components/types.d.ts +1 -1
- package/dist/src/components/inputs/checkbox/StyledCheckbox.d.ts +4 -0
- package/dist/src/components/inputs/checkbox/base-ui/StyledCheckbox.d.ts +4 -9
- package/dist/src/components/inputs/dynamic-select/types.d.ts +2 -2
- package/dist/src/components/inputs/input-field/StyledInputField.d.ts +11 -67
- package/dist/src/components/inputs/input-field/index.d.ts +1 -1
- package/dist/src/components/inputs/radio-button/StyledRadio.d.ts +4 -0
- package/dist/src/components/inputs/radio-button/StyledRadioGroup.d.ts +4 -0
- package/dist/src/components/inputs/radio-button/base-ui/StyledRadio.d.ts +5 -20
- package/dist/src/components/inputs/radio-button/base-ui/StyledRadioGroup.d.ts +7 -24
- package/dist/src/components/inputs/select/StyledSelect.d.ts +16 -39
- package/dist/src/components/inputs/select/StyledSelectItem.d.ts +2 -14
- package/dist/src/components/inputs/select/index.d.ts +1 -0
- package/dist/src/components/inputs/select-autocomplete/StyledSelectAutocomplete.d.ts +17 -88
- package/dist/src/components/inputs/slider/StyledSlider.d.ts +3 -55
- package/dist/src/components/inputs/switch/StyledSwitch.d.ts +5 -0
- package/dist/src/components/inputs/switch/base-ui/StyledSwitch.d.ts +4 -20
- package/dist/src/components/miscellaneous/StyledFormControl.d.ts +2 -22
- package/dist/src/components/miscellaneous/StyledFormControlLabel.d.ts +2 -21
- package/dist/src/components/miscellaneous/StyledFormGroup.d.ts +2 -11
- package/dist/src/components/miscellaneous/StyledFormHelperText.d.ts +2 -12
- package/dist/src/components/miscellaneous/StyledInputLabel.d.ts +2 -20
- package/dist/src/components/navigation/drawer/StyledDrawer.d.ts +2 -28
- package/dist/src/components/navigation/menu/StyledMenu.d.ts +2 -33
- package/dist/src/components/navigation/menu/StyledMenuItem.d.ts +2 -23
- package/dist/src/components/navigation/menu/StyledMenuList.d.ts +2 -16
- package/dist/src/components/navigation/menu/index.d.ts +1 -0
- package/dist/src/components/navigation/tabs/StyledTab.d.ts +3 -17
- package/dist/src/components/navigation/tabs/StyledTabs.d.ts +7 -16
- package/dist/src/components/utils/accordion/StyledAccordion.d.ts +2 -0
- package/dist/src/components/utils/accordion/StyledAccordionDetails.d.ts +2 -0
- package/dist/src/components/utils/accordion/StyledAccordionSummary.d.ts +8 -0
- package/dist/src/components/utils/accordion/base-ui/StyledAccordion.d.ts +3 -9
- package/dist/src/components/utils/accordion/base-ui/StyledAccordionDetails.d.ts +0 -5
- package/dist/src/components/utils/accordion/base-ui/StyledAccordionSummary.d.ts +4 -8
- package/dist/src/components/utils/copy-wrapper/CopyWrapper.d.ts +1 -1
- package/dist/src/components/utils/filter-menu/StyledFilterMenu.d.ts +2 -2
- package/dist/src/components/utils/popover/StyledPopover.d.ts +2 -32
- package/dist/src/datetime/components/date-picker/components/StyledCalendarPicker.d.ts +1 -1
- package/dist/src/datetime/components/date-picker/components/StyledDayPicker.d.ts +1 -1
- package/dist/src/datetime/components/date-picker/hooks/useDatePickerMask.d.ts +2 -1
- package/dist/src/datetime/components/time-picker/TimePickerInput.d.ts +1 -1
- package/dist/src/datetime/components/time-picker/TimePickerPopper.d.ts +1 -1
- package/dist/src/datetime/components/time-picker/types.d.ts +2 -1
- package/dist/src/datetime/shared-components/StyledFormControl.d.ts +2 -1
- package/dist/src/datetime/shared-components/StyledInputField.d.ts +12 -1
- package/dist/src/datetime/shared-components/StyledSelect.d.ts +16 -1
- package/dist/src/datetime/shared-components/StyledSelectItem.d.ts +2 -1
- package/dist/src/datetime/shared-components/StyledTooltip.d.ts +2 -1
- package/dist/src/index.d.ts +1 -2
- package/dist/src/table/shared-components/StyledCheckbox.d.ts +4 -7
- package/dist/src/table/shared-components/StyledMenuItem.d.ts +2 -18
- package/dist/src/table/shared-components/menu-item/index.d.ts +2 -13
- package/dist/src/table/shared-components/tooltip/index.d.ts +1 -5
- package/dist/src/table/types.d.ts +1 -1
- package/dist/table/components/Fetching.js +4 -4
- package/dist/table/components/TableRow.js +7 -7
- package/dist/table/components/TableSkeleton.js +6 -6
- package/dist/table/components/columns/action-column/components/HeaderActionMenu.js +24 -24
- package/dist/table/components/columns/action-column/components/RowActionMenu.js +25 -26
- package/dist/table/components/table-footer/TablePagination.js +24 -27
- package/dist/table/components/table-footer/TableRowCountSelect.js +27 -30
- package/dist/table/helpers/cn.js +5 -4
- package/dist/table/shared-components/StyledCheckbox.js +55 -54
- package/dist/table/shared-components/StyledCheckbox.module.js +10 -10
- package/dist/table/shared-components/StyledMenuItem.js +18 -12
- package/dist/table/shared-components/menu-item/index.js +17 -13
- package/dist/table/shared-components/tooltip/index.js +23 -4
- package/package.json +16 -9
- package/dist/components/inputs/field-styles.js +0 -6
- package/dist/components/inputs/input-field/StyledInputField.module.js +0 -4
- package/dist/components/inputs/radio-button/base-ui/RadioGroupContext.js +0 -6
- package/dist/components/inputs/slider/StyledSlider.module.js +0 -10
- package/dist/components/miscellaneous/FormControlContext.js +0 -6
- package/dist/components/mui-compat/Avatar.js +0 -29
- package/dist/components/mui-compat/ClickAwayListener.js +0 -29
- package/dist/components/mui-compat/Container.js +0 -24
- package/dist/components/mui-compat/Fade.js +0 -29
- package/dist/components/mui-compat/Fade.module.js +0 -9
- package/dist/components/mui-compat/FormLabel.js +0 -22
- package/dist/components/mui-compat/Paper.js +0 -44
- package/dist/components/mui-compat/Popper.js +0 -35
- package/dist/components/mui-compat/Skeleton.js +0 -26
- package/dist/components/mui-compat/Stack.js +0 -24
- package/dist/components/navigation/tabs/TabsContext.js +0 -6
- package/dist/components/utils/accordion/base-ui/AccordionContext.js +0 -10
- package/dist/components/utils/virtual-list/VirtualList.js +0 -45
- package/dist/helpers/arrays.js +0 -4
- package/dist/helpers/inputMask.js +0 -45
- package/dist/helpers/sx.js +0 -46
- package/dist/src/api-surface.test.d.ts +0 -1
- package/dist/src/components/inputs/field-styles.d.ts +0 -22
- package/dist/src/components/inputs/radio-button/base-ui/RadioGroupContext.d.ts +0 -10
- package/dist/src/components/miscellaneous/FormControlContext.d.ts +0 -14
- package/dist/src/components/mui-compat/Avatar.d.ts +0 -6
- package/dist/src/components/mui-compat/ClickAwayListener.d.ts +0 -19
- package/dist/src/components/mui-compat/Container.d.ts +0 -6
- package/dist/src/components/mui-compat/Fade.d.ts +0 -21
- package/dist/src/components/mui-compat/FormLabel.d.ts +0 -6
- package/dist/src/components/mui-compat/Paper.d.ts +0 -6
- package/dist/src/components/mui-compat/Popper.d.ts +0 -29
- package/dist/src/components/mui-compat/Skeleton.d.ts +0 -7
- package/dist/src/components/mui-compat/Stack.d.ts +0 -7
- package/dist/src/components/mui-compat/index.d.ts +0 -9
- package/dist/src/components/mui-compat/types.d.ts +0 -46
- package/dist/src/components/navigation/tabs/TabsContext.d.ts +0 -11
- package/dist/src/components/utils/accordion/base-ui/AccordionContext.d.ts +0 -10
- package/dist/src/components/utils/virtual-list/VirtualList.d.ts +0 -28
- package/dist/src/components/utils/virtual-list/index.d.ts +0 -1
- package/dist/src/helpers/arrays.d.ts +0 -2
- package/dist/src/helpers/arrays.test.d.ts +0 -1
- package/dist/src/helpers/inputMask.d.ts +0 -29
- package/dist/src/helpers/inputMask.test.d.ts +0 -1
- package/dist/src/helpers/sx.d.ts +0 -2
- package/dist/src/helpers/sx.test.d.ts +0 -1
|
@@ -1,96 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export type AutocompleteInputChangeReason = 'input' | 'reset' | 'clear';
|
|
4
|
-
export interface AutocompleteRenderOptionState {
|
|
5
|
-
selected: boolean;
|
|
6
|
-
index: number;
|
|
7
|
-
inputValue: string;
|
|
8
|
-
}
|
|
9
|
-
/** Props the combobox hands to `renderInput`; spread straight onto `StyledInputField`. */
|
|
10
|
-
export interface AutocompleteRenderInputParams {
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
size?: 'small' | 'medium';
|
|
13
|
-
fullWidth?: boolean;
|
|
14
|
-
value: string;
|
|
15
|
-
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
16
|
-
onFocus: () => void;
|
|
17
|
-
onKeyDown: (event: KeyboardEvent<HTMLInputElement>) => void;
|
|
18
|
-
slotProps: {
|
|
19
|
-
htmlInput: Record<string, unknown> & {
|
|
20
|
-
ref: React.Ref<HTMLInputElement>;
|
|
21
|
-
};
|
|
22
|
-
input: {
|
|
23
|
-
startAdornment?: ReactNode;
|
|
24
|
-
endAdornment?: ReactNode;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
type OptionLiProps = HTMLAttributes<HTMLLIElement> & {
|
|
29
|
-
key?: string;
|
|
30
|
-
ref?: React.Ref<HTMLLIElement>;
|
|
31
|
-
[dataAttr: `data-${string}`]: unknown;
|
|
32
|
-
};
|
|
33
|
-
type SingleValue<T> = T | null;
|
|
34
|
-
type MultiValue<T> = T[];
|
|
35
|
-
type AutocompleteValue<T, Multiple, DisableClearable, FreeSolo> = Multiple extends true ? MultiValue<T> : FreeSolo extends true ? T | string | null : DisableClearable extends true ? T : SingleValue<T>;
|
|
36
|
-
export interface StyledSelectAutocompleteProps<T, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false> {
|
|
1
|
+
import { AutocompleteProps, ChipTypeMap } from '@mui/material';
|
|
2
|
+
type StyledSelectAutocompleteBaseProps<T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined, ChipComponent extends React.ElementType> = Omit<AutocompleteProps<T, Multiple, DisableClearable, FreeSolo, ChipComponent>, 'multiple'> & {
|
|
37
3
|
dataTest: string;
|
|
38
|
-
options: readonly T[];
|
|
39
|
-
renderInput: (params: AutocompleteRenderInputParams) => ReactNode;
|
|
40
|
-
value?: SingleValue<T> | MultiValue<T> | string | undefined;
|
|
41
|
-
defaultValue?: SingleValue<T> | MultiValue<T> | string | undefined;
|
|
42
|
-
onChange?: (event: SyntheticEvent, value: AutocompleteValue<T, Multiple, DisableClearable, FreeSolo>, reason: AutocompleteChangeReason, details?: {
|
|
43
|
-
option: T;
|
|
44
|
-
}) => void;
|
|
45
|
-
getOptionLabel?: (option: T) => string;
|
|
46
|
-
isOptionEqualToValue?: (option: T, value: T) => boolean;
|
|
47
|
-
renderOption?: (props: OptionLiProps, option: T, state: AutocompleteRenderOptionState) => ReactNode;
|
|
48
|
-
renderValue?: (value: MultiValue<T>, getItemProps: (opts: {
|
|
49
|
-
index: number;
|
|
50
|
-
}) => OptionLiProps) => ReactNode;
|
|
51
|
-
filterOptions?: (options: T[], state: {
|
|
52
|
-
inputValue: string;
|
|
53
|
-
}) => T[];
|
|
54
|
-
groupBy?: (option: T) => string;
|
|
55
|
-
loading?: boolean;
|
|
56
|
-
loadingText?: ReactNode;
|
|
57
|
-
noOptionsText?: ReactNode;
|
|
58
|
-
disabled?: boolean;
|
|
59
|
-
readOnly?: boolean;
|
|
60
|
-
size?: 'small' | 'medium';
|
|
61
|
-
disableClearable?: boolean;
|
|
62
|
-
freeSolo?: boolean;
|
|
63
|
-
open?: boolean;
|
|
64
|
-
onOpen?: (event?: SyntheticEvent) => void;
|
|
65
|
-
onClose?: (event?: SyntheticEvent, reason?: string) => void;
|
|
66
|
-
disableCloseOnSelect?: boolean;
|
|
67
|
-
inputValue?: string;
|
|
68
|
-
onInputChange?: (event: SyntheticEvent | null, value: string, reason: AutocompleteInputChangeReason) => void;
|
|
69
|
-
popupIcon?: ReactNode;
|
|
70
4
|
autoHeight?: boolean;
|
|
71
|
-
|
|
5
|
+
getOptionLabel?: (option: T) => string;
|
|
6
|
+
wrapperClassName?: string;
|
|
7
|
+
};
|
|
8
|
+
type StyledSelectAutocompleteConditionalProps<Multiple extends boolean | undefined> = Multiple extends true ? {
|
|
9
|
+
multiple: true;
|
|
72
10
|
allowSelectAll?: boolean;
|
|
73
11
|
selectAllLabel?: string;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
listbox?: string;
|
|
81
|
-
};
|
|
82
|
-
className?: string;
|
|
83
|
-
wrapperClassName?: string;
|
|
84
|
-
sx?: unknown;
|
|
85
|
-
}
|
|
12
|
+
} : {
|
|
13
|
+
multiple?: Multiple;
|
|
14
|
+
allowSelectAll?: never;
|
|
15
|
+
selectAllLabel?: never;
|
|
16
|
+
};
|
|
17
|
+
export type StyledSelectAutocompleteProps<T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined, ChipComponent extends React.ElementType = ChipTypeMap['defaultComponent']> = StyledSelectAutocompleteBaseProps<T, Multiple, DisableClearable, FreeSolo, ChipComponent> & StyledSelectAutocompleteConditionalProps<Multiple>;
|
|
86
18
|
/**
|
|
87
|
-
* Custom combobox (replaces MUI `Autocomplete`, DEC-002) built on `@floating-ui/react`. Supports
|
|
88
|
-
* single + multiple selection (with tag chips + optional select-all), type-ahead filtering,
|
|
89
|
-
* async `loading`, grouping, and the MUI `renderInput`/`renderOption`/`renderValue` callback
|
|
90
|
-
* contracts. Public props/generics preserved (DEC-003). TASK-401.
|
|
91
19
|
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
20
|
+
* @inputRef
|
|
21
|
+
* inputRef to get Node of Input Element inside
|
|
22
|
+
*
|
|
94
23
|
*/
|
|
95
|
-
export declare function StyledSelectAutocomplete<T, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false>({ dataTest,
|
|
24
|
+
export declare function StyledSelectAutocomplete<T, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = ChipTypeMap['defaultComponent']>({ dataTest, autoHeight, getOptionLabel, wrapperClassName, multiple, allowSelectAll, selectAllLabel, className, defaultValue, isOptionEqualToValue, onChange, options, popupIcon, readOnly, renderOption, renderValue, sx, value, ...props }: StyledSelectAutocompleteProps<T, Multiple, DisableClearable, FreeSolo, ChipComponent>): JSX.Element;
|
|
96
25
|
export {};
|
|
@@ -1,60 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface
|
|
3
|
-
value: number;
|
|
4
|
-
label?: ReactNode;
|
|
5
|
-
}
|
|
6
|
-
type SliderValue = number | number[];
|
|
7
|
-
interface SliderClasses {
|
|
8
|
-
root?: string;
|
|
9
|
-
rail?: string;
|
|
10
|
-
track?: string;
|
|
11
|
-
thumb?: string;
|
|
12
|
-
mark?: string;
|
|
13
|
-
markActive?: string;
|
|
14
|
-
markLabel?: string;
|
|
15
|
-
markLabelActive?: string;
|
|
16
|
-
}
|
|
17
|
-
interface SliderSlotProps {
|
|
18
|
-
thumb?: {
|
|
19
|
-
className?: string;
|
|
20
|
-
};
|
|
21
|
-
rail?: {
|
|
22
|
-
className?: string;
|
|
23
|
-
};
|
|
24
|
-
markLabel?: {
|
|
25
|
-
className?: string;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
export interface StyledSliderProps {
|
|
1
|
+
import { SliderProps } from '@mui/material';
|
|
2
|
+
export interface StyledSliderProps extends SliderProps {
|
|
29
3
|
dataTest: string;
|
|
30
|
-
min?: number;
|
|
31
|
-
max?: number;
|
|
32
|
-
step?: number;
|
|
33
|
-
value?: SliderValue;
|
|
34
|
-
defaultValue?: SliderValue;
|
|
35
|
-
disabled?: boolean;
|
|
36
|
-
size?: 'small' | 'medium';
|
|
37
|
-
orientation?: 'horizontal' | 'vertical';
|
|
38
|
-
marks?: boolean | SliderMark[];
|
|
39
|
-
name?: string;
|
|
40
|
-
className?: string;
|
|
41
|
-
classes?: SliderClasses;
|
|
42
|
-
slotProps?: SliderSlotProps;
|
|
43
4
|
error?: boolean;
|
|
44
5
|
errorText?: string;
|
|
45
6
|
helperText?: string;
|
|
46
|
-
onChange?: (event: SyntheticEvent, value: SliderValue, activeThumb: number) => void;
|
|
47
|
-
onChangeCommitted?: (event: SyntheticEvent, value: SliderValue) => void;
|
|
48
7
|
}
|
|
49
|
-
|
|
50
|
-
* Native range-input slider (replaces MUI `Slider`). Single value uses one `<input type="range">`;
|
|
51
|
-
* a two-element `value` renders two stacked inputs (each thumb independently grabbable via
|
|
52
|
-
* pointer-events on the thumb only). Marks, vertical orientation, `classes`/`slotProps` slots and
|
|
53
|
-
* `onChange`/`onChangeCommitted` are preserved (DEC-003).
|
|
54
|
-
*
|
|
55
|
-
* ponytail: exact-pixel parity with MUI's thumb travel/animation is a known ceiling — Chromatic in
|
|
56
|
-
* CI is the visual gate. Upgrade path: tune the 8px thumb inset if a diff shows misalignment.
|
|
57
|
-
* TASK-204.
|
|
58
|
-
*/
|
|
59
|
-
export declare const StyledSlider: ({ dataTest, min, max, step, value, defaultValue, disabled, size, orientation, marks, name, className, classes, slotProps, error, errorText, helperText, onChange, onChangeCommitted, }: StyledSliderProps) => JSX.Element;
|
|
60
|
-
export {};
|
|
8
|
+
export declare const StyledSlider: ({ dataTest, error, errorText, helperText, ...props }: StyledSliderProps) => JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { default as React
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Switch } from '@base-ui/react/switch';
|
|
2
3
|
type StyledSwitchProps = {
|
|
3
4
|
checked?: boolean;
|
|
4
5
|
defaultChecked?: boolean;
|
|
@@ -8,24 +9,7 @@ type StyledSwitchProps = {
|
|
|
8
9
|
required?: boolean;
|
|
9
10
|
id?: string;
|
|
10
11
|
dataTest?: string;
|
|
11
|
-
|
|
12
|
-
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'type'>;
|
|
12
|
+
} & Omit<React.ComponentProps<typeof Switch.Root>, 'children'>;
|
|
13
13
|
export type SwitchProps = StyledSwitchProps;
|
|
14
|
-
|
|
15
|
-
* Native `<button role="switch">` toggle (replaces `@base-ui/react`). Drives the SCSS module's
|
|
16
|
-
* `data-checked`/`data-unchecked`/`data-disabled` selectors from React; the visual track/thumb stay
|
|
17
|
-
* in SCSS (transitions/pseudo-elements — GUD-003). Public props + `onChange(event, checked)`
|
|
18
|
-
* unchanged. TASK-201.
|
|
19
|
-
*/
|
|
20
|
-
export declare const StyledSwitch: React.ForwardRefExoticComponent<{
|
|
21
|
-
checked?: boolean;
|
|
22
|
-
defaultChecked?: boolean;
|
|
23
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
readOnly?: boolean;
|
|
26
|
-
required?: boolean;
|
|
27
|
-
id?: string;
|
|
28
|
-
dataTest?: string;
|
|
29
|
-
className?: string;
|
|
30
|
-
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "type"> & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
export declare const StyledSwitch: React.ForwardRefExoticComponent<Omit<StyledSwitchProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
31
15
|
export {};
|
|
@@ -1,22 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export interface FormControlProps {
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
error?: boolean;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
required?: boolean;
|
|
8
|
-
size?: FieldSize;
|
|
9
|
-
fullWidth?: boolean;
|
|
10
|
-
/** Accepted for API parity; the design always renders outlined. */
|
|
11
|
-
variant?: string;
|
|
12
|
-
className?: string;
|
|
13
|
-
style?: CSSProperties;
|
|
14
|
-
sx?: unknown;
|
|
15
|
-
id?: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Form-field context provider + positioned container (replaces MUI `FormControl`). Tracks
|
|
19
|
-
* focus/filled state so `StyledInputLabel` can float and `StyledFormHelperText` can colour itself;
|
|
20
|
-
* `StyledSelect` reports its state into this context. Public props preserved (DEC-003). TASK-401.
|
|
21
|
-
*/
|
|
22
|
-
export declare const StyledFormControl: ({ children, error, disabled, required, size, fullWidth, className, style, sx, id, }: FormControlProps) => JSX.Element;
|
|
1
|
+
import { FormControlProps } from '@mui/material';
|
|
2
|
+
export declare const StyledFormControl: (props: FormControlProps) => JSX.Element;
|
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
export interface FormControlLabelProps {
|
|
4
|
-
/** The control element (a checkbox, radio, or switch). Receives `checked`/`onChange`/`disabled`/`name`/`value` unless already set. */
|
|
5
|
-
control: ReactElement;
|
|
6
|
-
label?: ReactNode;
|
|
7
|
-
checked?: boolean;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
name?: string;
|
|
10
|
-
value?: unknown;
|
|
11
|
-
labelPlacement?: LabelPlacement;
|
|
12
|
-
className?: string;
|
|
13
|
-
sx?: unknown;
|
|
14
|
-
onChange?: (event: ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Native replacement for MUI `FormControlLabel` — a `<label>` that pairs a form control with a
|
|
18
|
-
* text label and forwards `checked`/`onChange`/`disabled`/`name`/`value` into the control (MUI's
|
|
19
|
-
* clone behavior). Public props preserved (DEC-003). TASK-203.
|
|
20
|
-
*/
|
|
21
|
-
export declare const StyledFormControlLabel: ({ control, label, checked, disabled, name, value, labelPlacement, className, sx, onChange, }: FormControlLabelProps) => JSX.Element;
|
|
1
|
+
import { FormControlLabelProps } from '@mui/material';
|
|
2
|
+
export declare const StyledFormControlLabel: ({ sx, ...props }: FormControlLabelProps) => JSX.Element;
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
row?: boolean;
|
|
4
|
-
sx?: unknown;
|
|
5
|
-
classes?: Record<string, string>;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* MUI-free `FormGroup`: a flex container, column by default or `row`. TASK-101.
|
|
9
|
-
*/
|
|
10
|
-
export declare const StyledFormGroup: ({ row, className, sx, style, children, classes: _classes, ...rest }: FormGroupProps) => JSX.Element;
|
|
11
|
-
export {};
|
|
1
|
+
import { FormGroupProps } from '@mui/material';
|
|
2
|
+
export declare const StyledFormGroup: React.FC<FormGroupProps>;
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
children?: ReactNode;
|
|
4
|
-
error?: boolean;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Helper/validation text under a field (replaces MUI `FormHelperText`). Inherits `error`/`disabled`
|
|
9
|
-
* from a surrounding `StyledFormControl` when present, else from props. Public props preserved
|
|
10
|
-
* (DEC-003). TASK-401.
|
|
11
|
-
*/
|
|
12
|
-
export declare const StyledFormHelperText: ({ children, error, disabled, className, ...rest }: FormHelperTextProps) => JSX.Element;
|
|
1
|
+
import { FormHelperTextProps } from '@mui/material';
|
|
2
|
+
export declare const StyledFormHelperText: (props: FormHelperTextProps) => JSX.Element;
|
|
@@ -1,20 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export interface InputLabelProps {
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
htmlFor?: string;
|
|
6
|
-
id?: string;
|
|
7
|
-
required?: boolean;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
error?: boolean;
|
|
10
|
-
size?: FieldSize;
|
|
11
|
-
/** Force the shrunk (floated) state; otherwise derived from the surrounding FormControl. */
|
|
12
|
-
shrink?: boolean;
|
|
13
|
-
className?: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Floating field label (replaces MUI `InputLabel`). Reads focus/filled/error/size from the
|
|
17
|
-
* surrounding `StyledFormControl`; `shrink` lifts it onto the border. Public props preserved
|
|
18
|
-
* (DEC-003). TASK-401.
|
|
19
|
-
*/
|
|
20
|
-
export declare const StyledInputLabel: ({ children, htmlFor, id, required, disabled, error, size, shrink, className, }: InputLabelProps) => JSX.Element;
|
|
1
|
+
import { InputLabelProps } from '@mui/material';
|
|
2
|
+
export declare const StyledInputLabel: (props: InputLabelProps) => JSX.Element;
|
|
@@ -1,29 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export type DrawerCloseReason = 'backdropClick' | 'escapeKeyDown';
|
|
4
|
-
export interface DrawerProps {
|
|
5
|
-
open?: boolean;
|
|
6
|
-
onClose?: (event: Event | React.SyntheticEvent, reason: DrawerCloseReason) => void;
|
|
7
|
-
anchor?: DrawerAnchor;
|
|
8
|
-
variant?: 'temporary' | 'persistent' | 'permanent';
|
|
9
|
-
hideBackdrop?: boolean;
|
|
10
|
-
className?: string;
|
|
11
|
-
sx?: unknown;
|
|
12
|
-
PaperProps?: {
|
|
13
|
-
className?: string;
|
|
14
|
-
sx?: unknown;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Accepted for MUI `Drawer` parity (DEC-003). The panel always stays mounted so the slide
|
|
18
|
-
* transition can play, so `keepMounted` is effectively always-on — this prop is a typed no-op.
|
|
19
|
-
*/
|
|
20
|
-
ModalProps?: {
|
|
21
|
-
keepMounted?: boolean;
|
|
22
|
-
};
|
|
23
|
-
children?: ReactNode;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Sliding edge panel (replaces MUI `Drawer`). Portalled, slides from `anchor`, temporary variant
|
|
27
|
-
* shows a backdrop and closes on backdrop-click / Escape. Public props preserved (DEC-003). TASK-304.
|
|
28
|
-
*/
|
|
1
|
+
import { DrawerProps } from '@mui/material';
|
|
2
|
+
import { FC } from 'react';
|
|
29
3
|
export declare const StyledDrawer: FC<DrawerProps>;
|
|
@@ -1,33 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export interface MenuProps {
|
|
4
|
-
open: boolean;
|
|
5
|
-
anchorEl?: Element | null;
|
|
6
|
-
onClose?: StyledPopoverProps['onClose'];
|
|
7
|
-
anchorOrigin?: PopoverOrigin;
|
|
8
|
-
transformOrigin?: PopoverOrigin;
|
|
9
|
-
id?: string;
|
|
10
|
-
className?: string;
|
|
11
|
-
sx?: unknown;
|
|
12
|
-
classes?: {
|
|
13
|
-
paper?: string;
|
|
14
|
-
list?: string;
|
|
15
|
-
};
|
|
16
|
-
/** MUI `Menu` `slotProps.paper` parity (DEC-003): styles/classes forwarded to the menu paper. */
|
|
17
|
-
slotProps?: {
|
|
18
|
-
paper?: {
|
|
19
|
-
className?: string;
|
|
20
|
-
sx?: unknown;
|
|
21
|
-
style?: CSSProperties;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
autoFocus?: boolean;
|
|
25
|
-
onClick?: (event: MouseEvent<HTMLUListElement>) => void;
|
|
26
|
-
children?: ReactNode;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Anchored menu (replaces MUI `Menu`) = `StyledPopover` + a keyboard-navigable `StyledMenuList`.
|
|
30
|
-
* Public props (`open`/`anchorEl`/`onClose`/`anchorOrigin`/`classes`/`autoFocus`) preserved
|
|
31
|
-
* (DEC-003). TASK-303.
|
|
32
|
-
*/
|
|
33
|
-
export declare const StyledMenu: ({ open, anchorEl, onClose, anchorOrigin, transformOrigin, id, className, sx, classes, slotProps, autoFocus, onClick, children, }: MenuProps) => JSX.Element;
|
|
1
|
+
import { MenuProps } from '@mui/material';
|
|
2
|
+
export declare const StyledMenu: (props: MenuProps) => JSX.Element;
|
|
@@ -1,23 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
children?: ReactNode;
|
|
4
|
-
onClick?: (event: MouseEvent<HTMLLIElement>) => void;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
selected?: boolean;
|
|
7
|
-
/** Compact vertical padding (MUI `MenuItem` `dense` parity, DEC-003). */
|
|
8
|
-
dense?: boolean;
|
|
9
|
-
value?: unknown;
|
|
10
|
-
className?: string;
|
|
11
|
-
classes?: {
|
|
12
|
-
root?: string;
|
|
13
|
-
selected?: string;
|
|
14
|
-
};
|
|
15
|
-
sx?: unknown;
|
|
16
|
-
'data-test'?: string;
|
|
17
|
-
'data-testid'?: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Native `role="menuitem"` (replaces MUI `MenuItem`). Enter/Space activate; a disabled item stays
|
|
21
|
-
* focusable but non-interactive (MUI parity). Public props preserved (DEC-003). TASK-303.
|
|
22
|
-
*/
|
|
23
|
-
export declare const StyledMenuItem: ({ children, onClick, disabled, selected, dense, className, classes, sx, "data-test": dataTest, "data-testid": dataTestId, value: _value, }: StyledMenuItemProps) => JSX.Element;
|
|
1
|
+
import { MenuItemProps } from '@mui/material';
|
|
2
|
+
export declare const StyledMenuItem: (props: MenuItemProps) => JSX.Element;
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
children?: ReactNode;
|
|
4
|
-
className?: string;
|
|
5
|
-
/** Focus the first enabled item on mount (MUI Menu autoFocus behaviour). */
|
|
6
|
-
autoFocus?: boolean;
|
|
7
|
-
/** Drop the default vertical padding (MUI `disablePadding`). */
|
|
8
|
-
disablePadding?: boolean;
|
|
9
|
-
onClick?: (event: MouseEvent<HTMLUListElement>) => void;
|
|
10
|
-
onKeyDown?: (event: KeyboardEvent<HTMLUListElement>) => void;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Keyboard-navigable `role="menu"` list (replaces MUI `MenuList`). Arrow-key / Home / End roving
|
|
14
|
-
* focus over enabled `[role="menuitem"]` children. TASK-303.
|
|
15
|
-
*/
|
|
16
|
-
export declare const StyledMenuList: ({ children, className, autoFocus, disablePadding, onClick, onKeyDown, }: StyledMenuListProps) => JSX.Element;
|
|
1
|
+
import { MenuListProps } from '@mui/material';
|
|
2
|
+
export declare const StyledMenuList: (props: MenuListProps) => JSX.Element;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
value?: TabValue;
|
|
5
|
-
label?: ReactNode;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
className?: string;
|
|
8
|
-
sx?: unknown;
|
|
9
|
-
/** @internal Injected by `StyledTabs` so a value-less tab selects by position (MUI parity). */
|
|
10
|
-
index?: number;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Native tab button (replaces MUI `Tab`). Reads selection/size from the surrounding
|
|
14
|
-
* `StyledTabs` context and reports its node so the parent can position the active indicator.
|
|
15
|
-
* Public props (`value`/`label`/`disabled`/`className`) preserved (DEC-003). TASK-202.
|
|
16
|
-
*/
|
|
17
|
-
export declare const StyledTab: FC<StyledTabProps>;
|
|
1
|
+
import { TabProps } from '@mui/material';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
export declare const StyledTab: FC<TabProps>;
|
|
@@ -1,20 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
value?: TabValue;
|
|
5
|
-
onChange?(event: SyntheticEvent, value: TabValue): void;
|
|
6
|
-
variant?: 'standard' | 'scrollable' | 'fullWidth';
|
|
7
|
-
scrollButtons?: 'auto' | boolean;
|
|
8
|
-
centered?: boolean;
|
|
1
|
+
import { TabsProps } from '@mui/material';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
type StyledTabsProps = TabsProps & {
|
|
9
4
|
size?: 'default' | 'small';
|
|
10
|
-
|
|
11
|
-
sx?: unknown;
|
|
12
|
-
children?: ReactNode;
|
|
13
|
-
}
|
|
5
|
+
};
|
|
14
6
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* `scrollable` variant — shows overflow scroll buttons. Roving-tabindex arrow-key nav. Public
|
|
18
|
-
* props (`value`/`onChange`/`variant`/`scrollButtons`/`centered`/`size`) preserved (DEC-003). TASK-202.
|
|
7
|
+
* Styled wrapper for MUI Tabs with consistent theming tokens.
|
|
8
|
+
* Provides customized styling for tab indicators, scroll buttons, and inactive states.
|
|
19
9
|
*/
|
|
20
10
|
export declare const StyledTabs: FC<StyledTabsProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AccordionSummaryProps } from '@mui/material';
|
|
2
|
+
type StyledAccordionSummarySize = 'small' | 'large';
|
|
3
|
+
interface StyledAccordionSummaryProps extends AccordionSummaryProps {
|
|
4
|
+
size?: StyledAccordionSummarySize;
|
|
5
|
+
expandChevronRight?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const StyledAccordionSummary: ({ size, expandChevronRight, className, sx, children, ...rest }: StyledAccordionSummaryProps) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Accordion } from '@base-ui/react/accordion';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
interface StyledAccordionProps extends Omit<
|
|
3
|
+
interface StyledAccordionProps extends Omit<React.ComponentProps<typeof Accordion.Root>, 'value' | 'onValueChange' | 'defaultValue' | 'onChange'> {
|
|
4
4
|
className?: string;
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
expanded?: boolean;
|
|
7
7
|
defaultExpanded?: boolean;
|
|
8
|
-
disabled?: boolean;
|
|
9
8
|
onChange?: (expanded: boolean) => void;
|
|
10
9
|
}
|
|
11
|
-
|
|
12
|
-
* Native accordion root (replaces `@base-ui/react`): owns the open state (controlled via `expanded`
|
|
13
|
-
* or uncontrolled via `defaultExpanded`) and shares it with `StyledAccordionSummary`/`Details`
|
|
14
|
-
* through context. TASK-201.
|
|
15
|
-
*/
|
|
16
|
-
export declare const StyledAccordion: ({ className, children, expanded, defaultExpanded, disabled, onChange, ...props }: StyledAccordionProps) => JSX.Element;
|
|
10
|
+
export declare const StyledAccordion: ({ className, children, expanded, defaultExpanded, onChange, ...props }: StyledAccordionProps) => JSX.Element;
|
|
17
11
|
export {};
|
|
@@ -2,10 +2,5 @@ import * as React from 'react';
|
|
|
2
2
|
type StyledAccordionDetailsProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
3
3
|
contentClassName?: string;
|
|
4
4
|
};
|
|
5
|
-
/**
|
|
6
|
-
* Native accordion panel (replaces `@base-ui/react`): a `role="region"` whose height animates
|
|
7
|
-
* between 0 and its measured content height via the SCSS `--accordion-panel-height` var (was
|
|
8
|
-
* base-ui-provided). Kept `hidden` when closed after the transition for a11y. TASK-201.
|
|
9
|
-
*/
|
|
10
5
|
export declare const StyledAccordionDetails: ({ children, className, contentClassName, ...props }: StyledAccordionDetailsProps) => JSX.Element;
|
|
11
6
|
export {};
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
+
import { Accordion } from '@base-ui/react/accordion';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
export type StyledAccordionSummarySize = 'small' | 'large';
|
|
3
|
-
export interface StyledAccordionSummaryProps extends
|
|
4
|
-
headerClassName?: string;
|
|
4
|
+
export interface StyledAccordionSummaryProps extends React.ComponentProps<typeof Accordion.Trigger> {
|
|
5
|
+
headerClassName?: string | ((state: Accordion.Item.State) => string);
|
|
5
6
|
size?: StyledAccordionSummarySize;
|
|
6
7
|
expandChevronRight?: boolean;
|
|
7
8
|
sx?: React.CSSProperties;
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
-
* Native accordion trigger (replaces `@base-ui/react`): a `<button aria-expanded aria-controls>`
|
|
11
|
-
* inside a header, toggling the shared context. `data-panel-open` drives the chevron rotation in
|
|
12
|
-
* SCSS. TASK-201.
|
|
13
|
-
*/
|
|
14
|
-
export declare const StyledAccordionSummary: ({ size, expandChevronRight, className, headerClassName, sx, children, onClick, ...rest }: StyledAccordionSummaryProps) => JSX.Element;
|
|
10
|
+
export declare const StyledAccordionSummary: ({ size, expandChevronRight, className, headerClassName, sx, children, ...rest }: StyledAccordionSummaryProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AlertColor } from '
|
|
1
|
+
import { AlertColor } from '@mui/material';
|
|
2
2
|
import { SnackbarProviderProps } from 'notistack';
|
|
3
3
|
import { FC, PropsWithChildren, ReactNode } from 'react';
|
|
4
4
|
export type MessageProps = SnackbarProviderProps & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { PopoverProps } from '@mui/material';
|
|
3
3
|
/**
|
|
4
4
|
* Custom props:
|
|
5
5
|
* @param filterIsActive - needed to determine whether or not to show the dot in the top right corner indicating some changes were made
|
|
@@ -16,7 +16,7 @@ interface StyledFilterMenuProps {
|
|
|
16
16
|
disabled?: boolean;
|
|
17
17
|
size?: 'small' | 'large' | 'medium';
|
|
18
18
|
variant?: 'contained' | 'outlined' | 'text' | 'textGray';
|
|
19
|
-
popoverProps?: Omit<
|
|
19
|
+
popoverProps?: Omit<PopoverProps, 'open' | 'anchorEl' | 'onClose'>;
|
|
20
20
|
anchorNode?: (props: {
|
|
21
21
|
isOpen: boolean;
|
|
22
22
|
onClose: () => void;
|
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
vertical: 'top' | 'center' | 'bottom' | number;
|
|
4
|
-
horizontal: 'left' | 'center' | 'right' | number;
|
|
5
|
-
}
|
|
6
|
-
export type PopoverCloseReason = 'backdropClick' | 'escapeKeyDown';
|
|
7
|
-
export interface StyledPopoverProps {
|
|
8
|
-
open: boolean;
|
|
9
|
-
anchorEl?: Element | null;
|
|
10
|
-
onClose?: (event: object, reason?: PopoverCloseReason) => void;
|
|
11
|
-
anchorOrigin?: PopoverOrigin;
|
|
12
|
-
transformOrigin?: PopoverOrigin;
|
|
13
|
-
id?: string;
|
|
14
|
-
className?: string;
|
|
15
|
-
sx?: unknown;
|
|
16
|
-
slotProps?: {
|
|
17
|
-
paper?: {
|
|
18
|
-
className?: string;
|
|
19
|
-
sx?: unknown;
|
|
20
|
-
style?: React.CSSProperties;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
24
|
-
children?: ReactNode;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Anchored popover built on `@floating-ui/react` (replaces MUI `Popover`). Positions against
|
|
28
|
-
* `anchorEl`, flips/shifts on collision, portalled, and closes on outside-press/escape mapping to
|
|
29
|
-
* MUI's `onClose(event, reason)`. `anchorOrigin`/`transformOrigin`/`slotProps.paper` preserved
|
|
30
|
-
* (DEC-003). TASK-302.
|
|
31
|
-
*/
|
|
32
|
-
export declare const StyledPopover: ({ open, anchorEl, onClose, anchorOrigin, transformOrigin, id, className, sx, slotProps, onClick, children, }: StyledPopoverProps) => JSX.Element | null;
|
|
1
|
+
import { PopoverProps } from '@mui/material';
|
|
2
|
+
export declare const StyledPopover: ({ anchorOrigin, transformOrigin, className, ...props }: PopoverProps) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DatePickerProps } from '../types';
|
|
2
|
-
import {
|
|
2
|
+
import { PopoverProps } from '@mui/material';
|
|
3
3
|
export declare const StyledCalendarPicker: React.FC<{
|
|
4
4
|
datePickerProps: DatePickerProps;
|
|
5
5
|
popoverProps: PopoverProps;
|