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,36 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
interface TooltipSlotProps {
|
|
4
|
-
tooltip?: {
|
|
5
|
-
sx?: unknown;
|
|
6
|
-
className?: string;
|
|
7
|
-
style?: CSSProperties;
|
|
8
|
-
};
|
|
9
|
-
popper?: unknown;
|
|
10
|
-
transition?: unknown;
|
|
11
|
-
arrow?: unknown;
|
|
12
|
-
}
|
|
13
|
-
export interface TooltipProps {
|
|
14
|
-
title: ReactNode;
|
|
15
|
-
children: ReactElement;
|
|
16
|
-
placement?: Placement;
|
|
17
|
-
arrow?: boolean;
|
|
18
|
-
enterDelay?: number;
|
|
19
|
-
leaveDelay?: number;
|
|
20
|
-
open?: boolean;
|
|
21
|
-
onOpen?: () => void;
|
|
22
|
-
onClose?: () => void;
|
|
23
|
-
disableHoverListener?: boolean;
|
|
24
|
-
disableFocusListener?: boolean;
|
|
25
|
-
disableTouchListener?: boolean;
|
|
26
|
-
className?: string;
|
|
27
|
-
slotProps?: TooltipSlotProps;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Tooltip built on `@floating-ui/react` (replaces MUI `Tooltip`) — hover(+`enterDelay`)/focus open,
|
|
31
|
-
* dismiss on blur/esc, `flip`/`shift` collision handling, optional arrow, portalled. Empty `title`
|
|
32
|
-
* renders the child alone (MUI parity). Preserves the `#363E4A` design and the `title`/`placement`/
|
|
33
|
-
* `arrow`/`enterDelay`/`open`/`slotProps` surface (DEC-003). TASK-301.
|
|
34
|
-
*/
|
|
35
|
-
export declare const StyledTooltip: ({ title, children, placement, arrow, enterDelay, leaveDelay, open: controlledOpen, onOpen, onClose, disableHoverListener, disableFocusListener, className, slotProps, }: TooltipProps) => JSX.Element;
|
|
36
|
-
export {};
|
|
1
|
+
import { TooltipProps } from '@mui/material';
|
|
2
|
+
export declare const StyledTooltip: (props: TooltipProps) => JSX.Element;
|
|
@@ -1,20 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface TypographyProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
3
|
-
variant?: string;
|
|
4
|
-
variantMapping?: Record<string, string>;
|
|
5
|
-
align?: CSSProperties['textAlign'];
|
|
6
|
-
noWrap?: boolean;
|
|
7
|
-
gutterBottom?: boolean;
|
|
8
|
-
color?: string;
|
|
9
|
-
component?: ElementType;
|
|
10
|
-
sx?: unknown;
|
|
11
|
-
classes?: Record<string, string>;
|
|
12
|
-
children?: ReactNode;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Native, MUI-free reimplementation of the previous `Typography` passthrough. Reproduces MUI v9's
|
|
16
|
-
* default typography scale via Tailwind utilities, the variant→element mapping, and the
|
|
17
|
-
* `align`/`noWrap`/`gutterBottom`/`color` props. `sx` is honoured via `resolveSx` (DEC-007).
|
|
18
|
-
* Signature unchanged: still accepts `TypographyProps` (DEC-003).
|
|
19
|
-
*/
|
|
1
|
+
import { TypographyProps } from '@mui/material';
|
|
20
2
|
export declare const StyledTypography: (props: TypographyProps) => JSX.Element;
|
|
@@ -1,57 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
interface DialogPaperProps {
|
|
5
|
-
className?: string;
|
|
6
|
-
sx?: unknown;
|
|
7
|
-
ref?: React.Ref<HTMLDialogElement>;
|
|
8
|
-
}
|
|
9
|
-
export interface IStyledDialogProps {
|
|
10
|
-
open: boolean;
|
|
11
|
-
onClose?: (event: SyntheticEvent | Event, reason: DialogCloseReason) => void;
|
|
12
|
-
children?: ReactNode;
|
|
13
|
-
dataTest: string;
|
|
14
|
-
maxWidth?: DialogMaxWidth;
|
|
15
|
-
fullWidth?: boolean;
|
|
16
|
-
fullScreen?: boolean;
|
|
17
|
-
scroll?: 'paper' | 'body';
|
|
18
|
-
disableEscapeKeyDown?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Accepted for MUI `Dialog` parity (DEC-003). Focus is trapped by the native `<dialog>`
|
|
21
|
-
* `showModal()`, so this MUI `Modal` prop is a typed no-op.
|
|
22
|
-
*/
|
|
23
|
-
disableEnforceFocus?: boolean;
|
|
24
|
-
className?: string;
|
|
25
|
-
style?: CSSProperties;
|
|
26
|
-
sx?: unknown;
|
|
27
|
-
/**
|
|
28
|
-
* MUI `Dialog` `classes` parity (DEC-003). The native `<dialog>` is the paper, so `classes.paper`
|
|
29
|
-
* is merged onto it; `classes.root` is accepted as a typed no-op (no separate root element).
|
|
30
|
-
*/
|
|
31
|
-
classes?: {
|
|
32
|
-
paper?: string;
|
|
33
|
-
root?: string;
|
|
34
|
-
};
|
|
35
|
-
PaperProps?: DialogPaperProps;
|
|
36
|
-
slotProps?: {
|
|
37
|
-
paper?: DialogPaperProps;
|
|
38
|
-
backdrop?: Record<string, unknown>;
|
|
39
|
-
};
|
|
1
|
+
import { DialogProps } from '@mui/material/Dialog';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface IStyledDialogProps extends DialogProps {
|
|
40
4
|
onCloseText?: ReactNode;
|
|
41
5
|
showCloseIcon?: boolean;
|
|
6
|
+
dataTest: string;
|
|
42
7
|
dialogLabel?: ReactNode;
|
|
43
8
|
dialogTitle?: ReactNode;
|
|
44
9
|
dialogHeaderNode?: ReactNode;
|
|
45
10
|
}
|
|
46
|
-
/**
|
|
47
|
-
* Modal dialog built on the native `<dialog>` element (replaces MUI `Dialog`) — backdrop, focus
|
|
48
|
-
* trap and ESC handling come from `showModal()` for free. The `<dialog>` element is the "paper",
|
|
49
|
-
* so `PaperProps`/`slotProps.paper` and `className` style it directly; `::backdrop` is the overlay.
|
|
50
|
-
* Public props preserved (DEC-003). TASK-205.
|
|
51
|
-
*
|
|
52
|
-
* ponytail: open/close is instant (no MUI fade) and body-scroll behind the modal isn't locked —
|
|
53
|
-
* both known ceilings; Chromatic in CI is the visual gate. Upgrade path: add `@starting-style`
|
|
54
|
-
* transitions and a scroll-lock effect if a diff calls for it.
|
|
55
|
-
*/
|
|
56
11
|
export declare const StyledDialog: React.FC<IStyledDialogProps>;
|
|
57
|
-
export {};
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
sx?: unknown;
|
|
4
|
-
classes?: Record<string, string>;
|
|
5
|
-
disableSpacing?: boolean;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* MUI-free dialog actions: a right-aligned flex row of buttons; on mobile each button wrapper
|
|
9
|
-
* stretches full width (was a SCSS media query, now Tailwind `max-md:` arbitrary variant). TASK-101.
|
|
10
|
-
*/
|
|
11
|
-
export declare const StyledDialogActions: ({ children, className, sx, style, classes: _classes, disableSpacing: _disableSpacing, ...rest }: DialogActionsProps) => JSX.Element;
|
|
12
|
-
export {};
|
|
1
|
+
import { DialogActionsProps } from '@mui/material';
|
|
2
|
+
export declare const StyledDialogActions: (props: DialogActionsProps) => JSX.Element;
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
sx?: unknown;
|
|
4
|
-
classes?: Record<string, string>;
|
|
5
|
-
dividers?: boolean;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* MUI-free dialog content: a scrollable `<div>` with the previous SCSS metrics as Tailwind,
|
|
9
|
-
* plus MUI's optional `dividers` borders. TASK-101.
|
|
10
|
-
*/
|
|
11
|
-
export declare const StyledDialogContent: ({ children, className, sx, style, dividers, classes: _classes, ...rest }: DialogContentProps) => JSX.Element;
|
|
12
|
-
export {};
|
|
1
|
+
import { DialogContentProps } from '@mui/material';
|
|
2
|
+
export declare const StyledDialogContent: ({ children, classes, className, ...rest }: DialogContentProps) => JSX.Element;
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
sx?: unknown;
|
|
4
|
-
classes?: Record<string, string>;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* MUI-free dialog title: a semantic `<h2>` with the previous SCSS metrics as Tailwind. TASK-101.
|
|
8
|
-
*/
|
|
9
|
-
export declare const StyledDialogTitle: ({ children, className, sx, style, classes: _classes, ...rest }: DialogTitleProps) => JSX.Element | null;
|
|
10
|
-
export {};
|
|
1
|
+
import { DialogTitleProps } from '@mui/material/DialogTitle';
|
|
2
|
+
export declare const StyledDialogTitle: ({ children, ...rest }: DialogTitleProps) => JSX.Element | null;
|
|
@@ -1,24 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
export type AlertVariant = 'standard' | 'filled' | 'outlined';
|
|
4
|
-
export interface AlertProps {
|
|
5
|
-
severity?: AlertColor;
|
|
6
|
-
variant?: AlertVariant;
|
|
7
|
-
icon?: ReactNode | false;
|
|
8
|
-
iconMapping?: Partial<Record<AlertColor, ReactNode>>;
|
|
9
|
-
action?: ReactNode;
|
|
10
|
-
onClose?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
11
|
-
children?: ReactNode;
|
|
12
|
-
className?: string;
|
|
13
|
-
sx?: unknown;
|
|
14
|
-
role?: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Alert banner (replaces MUI `Alert`). Native `role="alert"` with a leading severity icon, message
|
|
18
|
-
* and optional action/close button; `standard`/`filled`/`outlined` variants. Public props preserved
|
|
19
|
-
* (DEC-003). TASK-402.
|
|
20
|
-
*
|
|
21
|
-
* ponytail: severity uses the semantic `success`/`info`/`warning`/`error` token families —
|
|
22
|
-
* Chromatic in CI is the visual gate for exact shades.
|
|
23
|
-
*/
|
|
24
|
-
export declare const StyledAlert: ({ severity, variant, icon, iconMapping, action, onClose, children, className, sx, role, }: AlertProps) => JSX.Element;
|
|
1
|
+
import { AlertProps } from '@mui/material';
|
|
2
|
+
export declare const StyledAlert: (props: AlertProps) => JSX.Element;
|
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
vertical: 'top' | 'bottom';
|
|
4
|
-
horizontal: 'left' | 'center' | 'right';
|
|
5
|
-
}
|
|
6
|
-
export interface SnackbarProps {
|
|
7
|
-
open?: boolean;
|
|
8
|
-
autoHideDuration?: number | null;
|
|
9
|
-
onClose?: (event: Event | null, reason: 'timeout' | 'clickaway') => void;
|
|
10
|
-
anchorOrigin?: SnackbarOrigin;
|
|
11
|
-
message?: ReactNode;
|
|
12
|
-
action?: ReactNode;
|
|
13
|
-
children?: ReactNode;
|
|
14
|
-
className?: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Positioned auto-hiding toast (replaces MUI `Snackbar`). Portalled, fixed to the `anchorOrigin`
|
|
18
|
-
* corner; auto-hides after `autoHideDuration` (null disables). Public props preserved (DEC-003).
|
|
19
|
-
* TASK-402.
|
|
20
|
-
*/
|
|
21
|
-
export declare const StyledSnackbar: ({ open, autoHideDuration, onClose, anchorOrigin, message, action, children, className, }: SnackbarProps) => JSX.Element | null;
|
|
1
|
+
import { SnackbarProps } from '@mui/material';
|
|
2
|
+
export declare const StyledSnackbar: ({ children, ...props }: SnackbarProps) => JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { default as React,
|
|
1
|
+
import { default as React, SVGProps } from 'react';
|
|
2
|
+
import { Checkbox } from '@base-ui/react/checkbox';
|
|
2
3
|
type StyledCheckboxProps = {
|
|
3
4
|
dataTest: string;
|
|
4
5
|
size?: 'small' | 'medium';
|
|
@@ -8,15 +9,9 @@ type StyledCheckboxProps = {
|
|
|
8
9
|
hideWrapper?: boolean;
|
|
9
10
|
className?: string;
|
|
10
11
|
checkboxClassName?: string;
|
|
11
|
-
onChange?: (event: ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
12
|
-
} & Omit<React.
|
|
12
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
13
|
+
} & Omit<React.ComponentProps<typeof Checkbox.Root>, 'children'>;
|
|
13
14
|
export declare const IndeterminateIcon: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
14
15
|
export declare const CheckIcon: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
15
|
-
/**
|
|
16
|
-
* Native `<input type="checkbox">` checkbox (replaces `@base-ui/react`). A visually-hidden input
|
|
17
|
-
* carries state + a11y; the visual box, ripple, and indeterminate bar come from the SCSS module
|
|
18
|
-
* (kept: `@keyframes`/pseudo-elements aren't Tailwind-expressible — GUD-003), whose `data-*`
|
|
19
|
-
* selectors are driven from React here. Public props unchanged. TASK-201.
|
|
20
|
-
*/
|
|
21
16
|
export declare const StyledCheckbox: React.FC<StyledCheckboxProps>;
|
|
22
17
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AutocompleteProps } from '@mui/material';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
export type DynamicSelectOptionPrimitive = string | number | boolean;
|
|
4
4
|
export type DynamicSelectOptionObject = {
|
|
@@ -70,7 +70,7 @@ interface DynamicSelectCommonProps<TOption extends DynamicSelectOption> {
|
|
|
70
70
|
/** Node prepended inside the autocomplete text input (e.g. a search icon). */
|
|
71
71
|
startAdornment?: React.ReactNode;
|
|
72
72
|
/** Escape hatch to pass any MUI `Autocomplete` prop directly. Applied on top of internal defaults in the autocomplete variant. */
|
|
73
|
-
autocompleteProps?: Partial<
|
|
73
|
+
autocompleteProps?: Partial<AutocompleteProps<TOption, boolean | undefined, boolean | undefined, boolean | undefined>>;
|
|
74
74
|
/**
|
|
75
75
|
* When `true`, renders loading skeletons (chip group) or disables the input (autocomplete)
|
|
76
76
|
* while data is being fetched.
|
|
@@ -1,70 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FieldSize } from '../field-styles';
|
|
3
|
-
interface InputSlot {
|
|
4
|
-
startAdornment?: ReactNode;
|
|
5
|
-
endAdornment?: ReactNode;
|
|
6
|
-
className?: string;
|
|
7
|
-
style?: CSSProperties;
|
|
8
|
-
ref?: Ref<HTMLInputElement | HTMLDivElement>;
|
|
9
|
-
[key: string]: unknown;
|
|
10
|
-
}
|
|
11
|
-
type HtmlInputSlot = InputHTMLAttributes<HTMLInputElement> & {
|
|
12
|
-
ref?: Ref<HTMLInputElement>;
|
|
13
|
-
};
|
|
14
|
-
export interface StyledInputFieldProps {
|
|
15
|
-
dataTest: string;
|
|
16
|
-
label?: ReactNode;
|
|
17
|
-
value?: string | number;
|
|
18
|
-
defaultValue?: string | number;
|
|
19
|
-
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
20
|
-
onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
21
|
-
onFocus?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
22
|
-
error?: boolean;
|
|
23
|
-
helperText?: ReactNode;
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
readOnly?: boolean;
|
|
26
|
-
required?: boolean;
|
|
27
|
-
allowClear?: boolean;
|
|
28
|
-
onClear?: () => void;
|
|
29
|
-
type?: string;
|
|
30
|
-
placeholder?: string;
|
|
31
|
-
name?: string;
|
|
32
|
-
id?: string;
|
|
33
|
-
autoComplete?: string;
|
|
34
|
-
autoFocus?: boolean;
|
|
35
|
-
multiline?: boolean;
|
|
36
|
-
rows?: number;
|
|
37
|
-
minRows?: number;
|
|
38
|
-
maxRows?: number;
|
|
39
|
-
size?: FieldSize;
|
|
40
|
-
/** Accepted for API parity; the design always renders outlined. */
|
|
41
|
-
variant?: string;
|
|
42
|
-
fullWidth?: boolean;
|
|
43
|
-
className?: string;
|
|
44
|
-
style?: CSSProperties;
|
|
45
|
-
sx?: unknown;
|
|
46
|
-
inputRef?: Ref<HTMLInputElement | HTMLTextAreaElement>;
|
|
47
|
-
slotProps?: {
|
|
48
|
-
input?: InputSlot;
|
|
49
|
-
htmlInput?: HtmlInputSlot;
|
|
50
|
-
inputLabel?: HTMLAttributes<HTMLLabelElement> & Record<string, unknown>;
|
|
51
|
-
formHelperText?: {
|
|
52
|
-
sx?: unknown;
|
|
53
|
-
className?: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
/** Legacy MUI adornment slot (still used by ~22 call sites). */
|
|
57
|
-
InputProps?: InputSlot;
|
|
58
|
-
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
59
|
-
}
|
|
1
|
+
import { TextFieldProps } from '@mui/material';
|
|
60
2
|
/**
|
|
61
|
-
* Outlined text field with a floating label (replaces MUI `TextField`). Self-contained: manages its
|
|
62
|
-
* own focus/value state to drive the shared field styling ([[field-styles]]); supports multiline,
|
|
63
|
-
* start/end adornments, an optional clear button, and error/helper text. Public props preserved
|
|
64
|
-
* (DEC-003). TASK-401.
|
|
65
3
|
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
4
|
+
* @inputRef
|
|
5
|
+
* inputRef to get Node of Input Element inside
|
|
6
|
+
*
|
|
7
|
+
* type='mui-input' is temporary, remove it after deleting antd from all projects. Antd lib overwrites styles for type[text]
|
|
68
8
|
*/
|
|
69
|
-
export declare const StyledInputField:
|
|
70
|
-
|
|
9
|
+
export declare const StyledInputField: React.FC<TextFieldProps & {
|
|
10
|
+
allowClear?: boolean;
|
|
11
|
+
onClear?: () => void;
|
|
12
|
+
readOnly?: boolean;
|
|
13
|
+
dataTest: string;
|
|
14
|
+
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './StyledInputField';
|
|
2
|
-
export
|
|
2
|
+
export { type TextFieldProps } from '@mui/material';
|
|
@@ -1,25 +1,10 @@
|
|
|
1
|
-
import { default as React
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Radio } from '@base-ui/react/radio';
|
|
3
3
|
export type StyledRadioProps = {
|
|
4
|
-
value?:
|
|
4
|
+
value?: string | number | boolean;
|
|
5
5
|
dataTest?: string;
|
|
6
6
|
className?: string;
|
|
7
7
|
size?: 'small' | 'medium';
|
|
8
8
|
error?: boolean;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'className' | 'size' | 'checked' | 'onChange' | 'type'>;
|
|
12
|
-
/**
|
|
13
|
-
* Native `<input type="radio">` (replaces `@base-ui/react`). Uses the surrounding
|
|
14
|
-
* `StyledRadioGroup` context for name/selection when present, else the standalone `checked` prop.
|
|
15
|
-
* SCSS module (ripple/pseudo-elements — GUD-003) is driven via `data-*` from React. TASK-201.
|
|
16
|
-
*/
|
|
17
|
-
export declare const StyledRadio: React.ForwardRefExoticComponent<{
|
|
18
|
-
value?: RadioValue;
|
|
19
|
-
dataTest?: string;
|
|
20
|
-
className?: string;
|
|
21
|
-
size?: "small" | "medium";
|
|
22
|
-
error?: boolean;
|
|
23
|
-
checked?: boolean;
|
|
24
|
-
onChange?: (event: ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
25
|
-
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "className" | "onChange" | "size" | "type" | "checked"> & React.RefAttributes<HTMLInputElement>>;
|
|
9
|
+
} & Omit<React.ComponentProps<typeof Radio.Root>, 'value' | 'className'>;
|
|
10
|
+
export declare const StyledRadio: React.ForwardRefExoticComponent<Omit<StyledRadioProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,31 +1,14 @@
|
|
|
1
|
-
import { default as React
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RadioGroup } from '@base-ui/react/radio-group';
|
|
3
3
|
export type StyledRadioGroupProps = {
|
|
4
|
-
value?:
|
|
5
|
-
defaultValue?:
|
|
6
|
-
onValueChange?: (value:
|
|
4
|
+
value?: string | number | boolean | null;
|
|
5
|
+
defaultValue?: string | number | boolean | null;
|
|
6
|
+
onValueChange?: (value: string | number | boolean | null) => void;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
dataTest?: string;
|
|
9
9
|
error?: boolean;
|
|
10
10
|
errorText?: string;
|
|
11
11
|
helperText?: string;
|
|
12
12
|
children: React.ReactNode;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Native radio group (replaces `@base-ui/react`): a `role="radiogroup"` container that shares
|
|
17
|
-
* name/selection with its `StyledRadio` children via context, controlled or uncontrolled, plus the
|
|
18
|
-
* error/helper text row. TASK-201.
|
|
19
|
-
*/
|
|
20
|
-
export declare const StyledRadioGroup: React.ForwardRefExoticComponent<{
|
|
21
|
-
value?: RadioValue;
|
|
22
|
-
defaultValue?: RadioValue;
|
|
23
|
-
onValueChange?: (value: RadioValue) => void;
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
dataTest?: string;
|
|
26
|
-
error?: boolean;
|
|
27
|
-
errorText?: string;
|
|
28
|
-
helperText?: string;
|
|
29
|
-
children: React.ReactNode;
|
|
30
|
-
name?: string;
|
|
31
|
-
} & Omit<React.HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
} & Omit<React.ComponentProps<typeof RadioGroup>, 'children' | 'defaultValue' | 'value'>;
|
|
14
|
+
export declare const StyledRadioGroup: React.ForwardRefExoticComponent<Omit<StyledRadioGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,42 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export interface SelectChangeEvent<T = unknown> {
|
|
4
|
-
target: {
|
|
5
|
-
value: T;
|
|
6
|
-
name?: string;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
export interface StyledSelectProps {
|
|
10
|
-
dataTest: string;
|
|
11
|
-
value?: unknown;
|
|
12
|
-
defaultValue?: unknown;
|
|
13
|
-
onChange?: (event: SelectChangeEvent, child: ReactNode) => void;
|
|
14
|
-
size?: FieldSize;
|
|
15
|
-
error?: boolean;
|
|
16
|
-
errorText?: string;
|
|
1
|
+
import { SelectProps } from '@mui/material';
|
|
2
|
+
export type StyledSelectProps = SelectProps & {
|
|
17
3
|
allowClear?: boolean;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
placeholder?: string;
|
|
22
|
-
displayEmpty?: boolean;
|
|
23
|
-
renderValue?: (value: unknown) => ReactNode;
|
|
24
|
-
fullWidth?: boolean;
|
|
25
|
-
className?: string;
|
|
26
|
-
style?: CSSProperties;
|
|
27
|
-
/** Accepted for API parity; the design always renders outlined. */
|
|
28
|
-
variant?: string;
|
|
29
|
-
sx?: unknown;
|
|
30
|
-
labelId?: string;
|
|
31
|
-
children?: ReactNode;
|
|
32
|
-
MenuProps?: {
|
|
33
|
-
className?: string;
|
|
34
|
-
};
|
|
35
|
-
}
|
|
4
|
+
errorText?: string;
|
|
5
|
+
dataTest: string;
|
|
6
|
+
};
|
|
36
7
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
8
|
+
*
|
|
9
|
+
* @usage
|
|
10
|
+
* use StyleSelect only inside StyledFormControl
|
|
11
|
+
*
|
|
12
|
+
* @size
|
|
13
|
+
* control the size through StyledFormControl
|
|
14
|
+
*
|
|
15
|
+
* @inputRef
|
|
16
|
+
* inputRef to get Node of Input Element inside
|
|
17
|
+
*
|
|
41
18
|
*/
|
|
42
|
-
export declare const StyledSelect:
|
|
19
|
+
export declare const StyledSelect: React.FC<StyledSelectProps>;
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
value?: unknown;
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
selected?: boolean;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
className?: string;
|
|
8
|
-
onClick?: (event: MouseEvent<HTMLLIElement>) => void;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Option row for `StyledSelect` (replaces MUI `MenuItem` in the select context). `role="option"`
|
|
12
|
-
* with a leading check column for the selected state. Public props preserved (DEC-003). TASK-402.
|
|
13
|
-
*/
|
|
14
|
-
export declare const StyledSelectItem: ({ children, selected, disabled, className, onClick, }: StyledSelectItemProps) => JSX.Element;
|
|
1
|
+
import { MenuItemProps } from '@mui/material';
|
|
2
|
+
export declare const StyledSelectItem: (item: MenuItemProps) => JSX.Element;
|