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.
Files changed (201) hide show
  1. package/dist/asma-ui-core.css +1 -1
  2. package/dist/components/data-display/badge/StyledBadge.js +24 -29
  3. package/dist/components/data-display/chip/StyledChip.js +60 -45
  4. package/dist/components/data-display/interactive-chip/StyledInteractiveChip.js +38 -32
  5. package/dist/components/data-display/tooltip/StyledTooltip.js +33 -50
  6. package/dist/components/data-display/typography/StyledTypography.js +4 -62
  7. package/dist/components/feedback/dialog/StyledDialog.js +50 -70
  8. package/dist/components/feedback/dialog/StyledDialog.module.js +9 -2
  9. package/dist/components/feedback/dialog/StyledDialogActions.js +16 -16
  10. package/dist/components/feedback/dialog/StyledDialogActions.module.js +8 -0
  11. package/dist/components/feedback/dialog/StyledDialogContent.js +14 -17
  12. package/dist/components/feedback/dialog/StyledDialogContent.module.js +4 -0
  13. package/dist/components/feedback/dialog/StyledDialogTitle.js +13 -18
  14. package/dist/components/feedback/dialog/StyledDialogTitle.module.js +4 -0
  15. package/dist/components/feedback/minimizable-dialog/MinimizableDialog.js +57 -56
  16. package/dist/components/feedback/snack-bar/StyledAlert.js +14 -72
  17. package/dist/components/feedback/snack-bar/StyledSnackbar.js +8 -34
  18. package/dist/components/feedback/snack-bar/components/StyledDefaultSnackbar.js +34 -33
  19. package/dist/components/inputs/checkbox/StyledCheckbox.js +20 -0
  20. package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.js +58 -55
  21. package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.module.js +12 -12
  22. package/dist/components/inputs/dynamic-select/components/DynamicInteractiveChipGroup.js +1 -1
  23. package/dist/components/inputs/dynamic-select/components/DynamicSelectAutocomplete.js +1 -1
  24. package/dist/components/inputs/input-field/StyledInputField.js +81 -104
  25. package/dist/components/inputs/radio-button/StyledRadio.js +17 -0
  26. package/dist/components/inputs/radio-button/base-ui/StyledRadio.js +29 -40
  27. package/dist/components/inputs/radio-button/base-ui/StyledRadio.module.js +10 -10
  28. package/dist/components/inputs/radio-button/base-ui/StyledRadioGroup.js +23 -35
  29. package/dist/components/inputs/select/StyledSelect.js +45 -124
  30. package/dist/components/inputs/select/StyledSelectItem.js +23 -19
  31. package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +151 -181
  32. package/dist/components/inputs/slider/StyledSlider.js +52 -78
  33. package/dist/components/inputs/switch/base-ui/StyledSwitch.js +39 -44
  34. package/dist/components/miscellaneous/StyledFormControl.js +21 -39
  35. package/dist/components/miscellaneous/StyledFormControlLabel.js +16 -27
  36. package/dist/components/miscellaneous/StyledFormGroup.js +4 -16
  37. package/dist/components/miscellaneous/StyledFormHelperText.js +4 -12
  38. package/dist/components/miscellaneous/StyledInputLabel.js +4 -20
  39. package/dist/components/navigation/drawer/StyledDrawer.js +4 -42
  40. package/dist/components/navigation/listbox/Listbox.js +7 -7
  41. package/dist/components/navigation/menu/StyledMenu.js +11 -28
  42. package/dist/components/navigation/menu/StyledMenuItem.js +18 -16
  43. package/dist/components/navigation/menu/StyledMenuList.js +4 -32
  44. package/dist/components/navigation/tabs/StyledTab.js +13 -25
  45. package/dist/components/navigation/tabs/StyledTabs.js +64 -112
  46. package/dist/components/utils/accordion/base-ui/StyledAccordion.js +21 -28
  47. package/dist/components/utils/accordion/base-ui/StyledAccordion.module.js +7 -7
  48. package/dist/components/utils/accordion/base-ui/StyledAccordionDetails.js +14 -28
  49. package/dist/components/utils/accordion/base-ui/StyledAccordionSummary.js +27 -31
  50. package/dist/components/utils/popover/StyledPopover.js +15 -44
  51. package/dist/datetime/components/date-picker/StyledDatePicker.js +6 -6
  52. package/dist/datetime/components/date-picker/components/BaseDatePickerInput.js +1 -1
  53. package/dist/datetime/components/date-picker/components/HelperTextWithTooltip.js +6 -6
  54. package/dist/datetime/components/date-picker/components/StyledCalendarPicker.js +11 -11
  55. package/dist/datetime/components/date-picker/components/StyledCalendarPickerFooter.js +14 -13
  56. package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectMonth.js +14 -14
  57. package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectYear.js +6 -6
  58. package/dist/datetime/components/date-picker/components/StyledDayPicker.js +5 -4
  59. package/dist/datetime/components/date-picker/hooks/useDatePickerMask.js +4 -4
  60. package/dist/datetime/components/time-picker/StyledTimePicker.js +25 -25
  61. package/dist/datetime/components/time-picker/TimePickerInput.js +16 -15
  62. package/dist/datetime/components/time-picker/TimePickerPopper.js +19 -21
  63. package/dist/datetime/helpers/cn.js +5 -4
  64. package/dist/datetime/shared-components/ExpandIcon.js +18 -0
  65. package/dist/datetime/shared-components/StyledFormControl.js +23 -0
  66. package/dist/datetime/shared-components/StyledInputField.js +47 -0
  67. package/dist/datetime/shared-components/StyledSelect.js +47 -0
  68. package/dist/datetime/shared-components/StyledSelectItem.js +13 -0
  69. package/dist/datetime/shared-components/StyledTooltip.js +32 -0
  70. package/dist/helpers/cn.js +5 -4
  71. package/dist/index.js +175 -185
  72. package/dist/src/components/data-display/badge/StyledBadge.d.ts +2 -26
  73. package/dist/src/components/data-display/chip/StyledChip.d.ts +5 -39
  74. package/dist/src/components/data-display/interactive-chip/StyledInteractiveChip.d.ts +4 -11
  75. package/dist/src/components/data-display/tooltip/StyledTooltip.d.ts +2 -36
  76. package/dist/src/components/data-display/typography/StyledTypography.d.ts +1 -19
  77. package/dist/src/components/feedback/dialog/StyledDialog.d.ts +4 -50
  78. package/dist/src/components/feedback/dialog/StyledDialogActions.d.ts +2 -12
  79. package/dist/src/components/feedback/dialog/StyledDialogContent.d.ts +2 -12
  80. package/dist/src/components/feedback/dialog/StyledDialogTitle.d.ts +2 -10
  81. package/dist/src/components/feedback/snack-bar/SnackbarProvider.d.ts +1 -1
  82. package/dist/src/components/feedback/snack-bar/StyledAlert.d.ts +2 -24
  83. package/dist/src/components/feedback/snack-bar/StyledAlertSnackbar.d.ts +1 -1
  84. package/dist/src/components/feedback/snack-bar/StyledSnackbar.d.ts +2 -21
  85. package/dist/src/components/feedback/snack-bar/components/StyledDefaultSnackbar.d.ts +1 -1
  86. package/dist/src/components/feedback/snack-bar/components/StyledInfoSnackbar.d.ts +1 -1
  87. package/dist/src/components/feedback/snack-bar/components/types.d.ts +1 -1
  88. package/dist/src/components/inputs/checkbox/StyledCheckbox.d.ts +4 -0
  89. package/dist/src/components/inputs/checkbox/base-ui/StyledCheckbox.d.ts +4 -9
  90. package/dist/src/components/inputs/dynamic-select/types.d.ts +2 -2
  91. package/dist/src/components/inputs/input-field/StyledInputField.d.ts +11 -67
  92. package/dist/src/components/inputs/input-field/index.d.ts +1 -1
  93. package/dist/src/components/inputs/radio-button/StyledRadio.d.ts +4 -0
  94. package/dist/src/components/inputs/radio-button/StyledRadioGroup.d.ts +4 -0
  95. package/dist/src/components/inputs/radio-button/base-ui/StyledRadio.d.ts +5 -20
  96. package/dist/src/components/inputs/radio-button/base-ui/StyledRadioGroup.d.ts +7 -24
  97. package/dist/src/components/inputs/select/StyledSelect.d.ts +16 -39
  98. package/dist/src/components/inputs/select/StyledSelectItem.d.ts +2 -14
  99. package/dist/src/components/inputs/select/index.d.ts +1 -0
  100. package/dist/src/components/inputs/select-autocomplete/StyledSelectAutocomplete.d.ts +17 -88
  101. package/dist/src/components/inputs/slider/StyledSlider.d.ts +3 -55
  102. package/dist/src/components/inputs/switch/StyledSwitch.d.ts +5 -0
  103. package/dist/src/components/inputs/switch/base-ui/StyledSwitch.d.ts +4 -20
  104. package/dist/src/components/miscellaneous/StyledFormControl.d.ts +2 -22
  105. package/dist/src/components/miscellaneous/StyledFormControlLabel.d.ts +2 -21
  106. package/dist/src/components/miscellaneous/StyledFormGroup.d.ts +2 -11
  107. package/dist/src/components/miscellaneous/StyledFormHelperText.d.ts +2 -12
  108. package/dist/src/components/miscellaneous/StyledInputLabel.d.ts +2 -20
  109. package/dist/src/components/navigation/drawer/StyledDrawer.d.ts +2 -28
  110. package/dist/src/components/navigation/menu/StyledMenu.d.ts +2 -33
  111. package/dist/src/components/navigation/menu/StyledMenuItem.d.ts +2 -23
  112. package/dist/src/components/navigation/menu/StyledMenuList.d.ts +2 -16
  113. package/dist/src/components/navigation/menu/index.d.ts +1 -0
  114. package/dist/src/components/navigation/tabs/StyledTab.d.ts +3 -17
  115. package/dist/src/components/navigation/tabs/StyledTabs.d.ts +7 -16
  116. package/dist/src/components/utils/accordion/StyledAccordion.d.ts +2 -0
  117. package/dist/src/components/utils/accordion/StyledAccordionDetails.d.ts +2 -0
  118. package/dist/src/components/utils/accordion/StyledAccordionSummary.d.ts +8 -0
  119. package/dist/src/components/utils/accordion/base-ui/StyledAccordion.d.ts +3 -9
  120. package/dist/src/components/utils/accordion/base-ui/StyledAccordionDetails.d.ts +0 -5
  121. package/dist/src/components/utils/accordion/base-ui/StyledAccordionSummary.d.ts +4 -8
  122. package/dist/src/components/utils/copy-wrapper/CopyWrapper.d.ts +1 -1
  123. package/dist/src/components/utils/filter-menu/StyledFilterMenu.d.ts +2 -2
  124. package/dist/src/components/utils/popover/StyledPopover.d.ts +2 -32
  125. package/dist/src/datetime/components/date-picker/components/StyledCalendarPicker.d.ts +1 -1
  126. package/dist/src/datetime/components/date-picker/components/StyledDayPicker.d.ts +1 -1
  127. package/dist/src/datetime/components/date-picker/hooks/useDatePickerMask.d.ts +2 -1
  128. package/dist/src/datetime/components/time-picker/TimePickerInput.d.ts +1 -1
  129. package/dist/src/datetime/components/time-picker/TimePickerPopper.d.ts +1 -1
  130. package/dist/src/datetime/components/time-picker/types.d.ts +2 -1
  131. package/dist/src/datetime/shared-components/StyledFormControl.d.ts +2 -1
  132. package/dist/src/datetime/shared-components/StyledInputField.d.ts +12 -1
  133. package/dist/src/datetime/shared-components/StyledSelect.d.ts +16 -1
  134. package/dist/src/datetime/shared-components/StyledSelectItem.d.ts +2 -1
  135. package/dist/src/datetime/shared-components/StyledTooltip.d.ts +2 -1
  136. package/dist/src/index.d.ts +1 -2
  137. package/dist/src/table/shared-components/StyledCheckbox.d.ts +4 -7
  138. package/dist/src/table/shared-components/StyledMenuItem.d.ts +2 -18
  139. package/dist/src/table/shared-components/menu-item/index.d.ts +2 -13
  140. package/dist/src/table/shared-components/tooltip/index.d.ts +1 -5
  141. package/dist/src/table/types.d.ts +1 -1
  142. package/dist/table/components/Fetching.js +4 -4
  143. package/dist/table/components/TableRow.js +7 -7
  144. package/dist/table/components/TableSkeleton.js +6 -6
  145. package/dist/table/components/columns/action-column/components/HeaderActionMenu.js +24 -24
  146. package/dist/table/components/columns/action-column/components/RowActionMenu.js +25 -26
  147. package/dist/table/components/table-footer/TablePagination.js +24 -27
  148. package/dist/table/components/table-footer/TableRowCountSelect.js +27 -30
  149. package/dist/table/helpers/cn.js +5 -4
  150. package/dist/table/shared-components/StyledCheckbox.js +55 -54
  151. package/dist/table/shared-components/StyledCheckbox.module.js +10 -10
  152. package/dist/table/shared-components/StyledMenuItem.js +18 -12
  153. package/dist/table/shared-components/menu-item/index.js +17 -13
  154. package/dist/table/shared-components/tooltip/index.js +23 -4
  155. package/package.json +16 -9
  156. package/dist/components/inputs/field-styles.js +0 -6
  157. package/dist/components/inputs/input-field/StyledInputField.module.js +0 -4
  158. package/dist/components/inputs/radio-button/base-ui/RadioGroupContext.js +0 -6
  159. package/dist/components/inputs/slider/StyledSlider.module.js +0 -10
  160. package/dist/components/miscellaneous/FormControlContext.js +0 -6
  161. package/dist/components/mui-compat/Avatar.js +0 -29
  162. package/dist/components/mui-compat/ClickAwayListener.js +0 -29
  163. package/dist/components/mui-compat/Container.js +0 -24
  164. package/dist/components/mui-compat/Fade.js +0 -29
  165. package/dist/components/mui-compat/Fade.module.js +0 -9
  166. package/dist/components/mui-compat/FormLabel.js +0 -22
  167. package/dist/components/mui-compat/Paper.js +0 -44
  168. package/dist/components/mui-compat/Popper.js +0 -35
  169. package/dist/components/mui-compat/Skeleton.js +0 -26
  170. package/dist/components/mui-compat/Stack.js +0 -24
  171. package/dist/components/navigation/tabs/TabsContext.js +0 -6
  172. package/dist/components/utils/accordion/base-ui/AccordionContext.js +0 -10
  173. package/dist/components/utils/virtual-list/VirtualList.js +0 -45
  174. package/dist/helpers/arrays.js +0 -4
  175. package/dist/helpers/inputMask.js +0 -45
  176. package/dist/helpers/sx.js +0 -46
  177. package/dist/src/api-surface.test.d.ts +0 -1
  178. package/dist/src/components/inputs/field-styles.d.ts +0 -22
  179. package/dist/src/components/inputs/radio-button/base-ui/RadioGroupContext.d.ts +0 -10
  180. package/dist/src/components/miscellaneous/FormControlContext.d.ts +0 -14
  181. package/dist/src/components/mui-compat/Avatar.d.ts +0 -6
  182. package/dist/src/components/mui-compat/ClickAwayListener.d.ts +0 -19
  183. package/dist/src/components/mui-compat/Container.d.ts +0 -6
  184. package/dist/src/components/mui-compat/Fade.d.ts +0 -21
  185. package/dist/src/components/mui-compat/FormLabel.d.ts +0 -6
  186. package/dist/src/components/mui-compat/Paper.d.ts +0 -6
  187. package/dist/src/components/mui-compat/Popper.d.ts +0 -29
  188. package/dist/src/components/mui-compat/Skeleton.d.ts +0 -7
  189. package/dist/src/components/mui-compat/Stack.d.ts +0 -7
  190. package/dist/src/components/mui-compat/index.d.ts +0 -9
  191. package/dist/src/components/mui-compat/types.d.ts +0 -46
  192. package/dist/src/components/navigation/tabs/TabsContext.d.ts +0 -11
  193. package/dist/src/components/utils/accordion/base-ui/AccordionContext.d.ts +0 -10
  194. package/dist/src/components/utils/virtual-list/VirtualList.d.ts +0 -28
  195. package/dist/src/components/utils/virtual-list/index.d.ts +0 -1
  196. package/dist/src/helpers/arrays.d.ts +0 -2
  197. package/dist/src/helpers/arrays.test.d.ts +0 -1
  198. package/dist/src/helpers/inputMask.d.ts +0 -29
  199. package/dist/src/helpers/inputMask.test.d.ts +0 -1
  200. package/dist/src/helpers/sx.d.ts +0 -2
  201. package/dist/src/helpers/sx.test.d.ts +0 -1
@@ -1,36 +1,2 @@
1
- import { CSSProperties, ReactElement, ReactNode } from 'react';
2
- import { Placement } from '@floating-ui/react';
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 { CSSProperties, ElementType, HTMLAttributes, ReactNode } from 'react';
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 { CSSProperties, ReactNode, SyntheticEvent } from 'react';
2
- export type DialogCloseReason = 'escapeKeyDown' | 'backdropClick';
3
- export type DialogMaxWidth = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | false;
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 { HTMLAttributes } from 'react';
2
- interface DialogActionsProps extends HTMLAttributes<HTMLDivElement> {
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 { HTMLAttributes } from 'react';
2
- interface DialogContentProps extends HTMLAttributes<HTMLDivElement> {
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 { HTMLAttributes } from 'react';
2
- interface DialogTitleProps extends HTMLAttributes<HTMLHeadingElement> {
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,4 +1,4 @@
1
- import { AlertColor } from './StyledAlert';
1
+ import { AlertColor } from '@mui/material';
2
2
  import { SnackbarProviderProps } from 'notistack';
3
3
  export declare const SnackbarProvider: (props: SnackbarProviderProps) => JSX.Element;
4
4
  declare module 'notistack' {
@@ -1,24 +1,2 @@
1
- import { MouseEvent, ReactNode } from 'react';
2
- export type AlertColor = 'success' | 'info' | 'warning' | 'error';
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,4 +1,4 @@
1
- import { AlertColor } from './StyledAlert';
1
+ import { AlertColor } from '@mui/material';
2
2
  import { CustomContentProps } from 'notistack';
3
3
  interface StyledAlertSnackbarProps extends CustomContentProps {
4
4
  severity?: AlertColor;
@@ -1,21 +1,2 @@
1
- import { ReactNode } from 'react';
2
- export interface SnackbarOrigin {
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,4 @@
1
- import { AlertColor } from '../StyledAlert';
1
+ import { AlertColor } from '@mui/material';
2
2
  import { CustomContentProps, SnackbarMessage } from 'notistack';
3
3
  export interface StyledDefaultSnackbarProps extends CustomContentProps {
4
4
  severity: AlertColor;
@@ -1,4 +1,4 @@
1
- import { AlertColor } from '../StyledAlert';
1
+ import { AlertColor } from '@mui/material';
2
2
  import { CustomContentProps } from 'notistack';
3
3
  interface StyledInfoSnackbarProps extends CustomContentProps {
4
4
  severity?: AlertColor;
@@ -1,4 +1,4 @@
1
- import { AlertColor } from '../StyledAlert';
1
+ import { AlertColor } from '@mui/material';
2
2
  import { SnackbarProviderProps } from 'notistack';
3
3
  export type MessageProps = SnackbarProviderProps & {
4
4
  severity?: AlertColor;
@@ -0,0 +1,4 @@
1
+ import { CheckboxProps } from '@mui/material';
2
+ export declare const StyledCheckbox: React.FC<CheckboxProps & {
3
+ dataTest: string;
4
+ }>;
@@ -1,4 +1,5 @@
1
- import { default as React, ChangeEvent, SVGProps } from '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.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'size' | 'checked' | 'type'>;
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 { StyledSelectAutocompleteProps } from '../select-autocomplete';
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<StyledSelectAutocompleteProps<TOption, boolean | undefined, boolean | undefined, boolean | undefined>>;
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 { ChangeEvent, CSSProperties, FocusEvent, HTMLAttributes, ReactNode, Ref, InputHTMLAttributes } from 'react';
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
- * ponytail: `variant` is accepted but always renders outlined, and multiline uses fixed `rows`
67
- * (no auto-grow to `maxRows`) — known ceilings; Chromatic in CI is the visual gate.
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: ({ dataTest, label, value, defaultValue, onChange, onBlur, onFocus, error, helperText, disabled, readOnly, required, allowClear, onClear, type, placeholder, name, id, autoComplete, autoFocus, multiline, rows, minRows, maxRows: _maxRows, size, fullWidth, className, style, sx, inputRef, slotProps, InputProps, onKeyDown, variant: _variant, }: StyledInputFieldProps) => JSX.Element;
70
- export {};
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 type { StyledInputFieldProps as TextFieldProps } from './StyledInputField';
2
+ export { type TextFieldProps } from '@mui/material';
@@ -0,0 +1,4 @@
1
+ import { RadioProps } from '@mui/material';
2
+ export declare const StyledRadio: ({ dataTest, ...props }: RadioProps & {
3
+ dataTest: string;
4
+ }) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { RadioGroupProps } from '@mui/material';
2
+ export declare const StyledRadioGroup: ({ dataTest, ...props }: RadioGroupProps & {
3
+ dataTest: string;
4
+ }) => JSX.Element;
@@ -1,25 +1,10 @@
1
- import { default as React, ChangeEvent, InputHTMLAttributes } from 'react';
2
- import { RadioValue } from './RadioGroupContext';
1
+ import { default as React } from 'react';
2
+ import { Radio } from '@base-ui/react/radio';
3
3
  export type StyledRadioProps = {
4
- value?: RadioValue;
4
+ value?: string | number | boolean;
5
5
  dataTest?: string;
6
6
  className?: string;
7
7
  size?: 'small' | 'medium';
8
8
  error?: boolean;
9
- checked?: boolean;
10
- onChange?: (event: ChangeEvent<HTMLInputElement>, checked: boolean) => void;
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, HTMLAttributes } from 'react';
2
- import { RadioValue } from './RadioGroupContext';
1
+ import { default as React } from 'react';
2
+ import { RadioGroup } from '@base-ui/react/radio-group';
3
3
  export type StyledRadioGroupProps = {
4
- value?: RadioValue;
5
- defaultValue?: RadioValue;
6
- onValueChange?: (value: RadioValue) => void;
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
- name?: string;
14
- } & Omit<HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'onChange'>;
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 { CSSProperties, ReactNode } from 'react';
2
- import { FieldSize } from '../field-styles';
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
- disabled?: boolean;
19
- readOnly?: boolean;
20
- name?: string;
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
- * Single-select dropdown (replaces MUI `Select`) — a trigger styled as the outlined field plus a
38
- * portalled `role="listbox"`. Reports open/filled into a surrounding `StyledFormControl` so its
39
- * `StyledInputLabel` floats. Public props preserved (DEC-003). Use inside `StyledFormControl`.
40
- * TASK-402.
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: ({ dataTest, value, defaultValue, onChange, size, error, errorText, allowClear, disabled, readOnly, name, placeholder, displayEmpty, renderValue, fullWidth, className, style, sx, children, MenuProps, }: StyledSelectProps) => JSX.Element;
19
+ export declare const StyledSelect: React.FC<StyledSelectProps>;
@@ -1,14 +1,2 @@
1
- import { MouseEvent, ReactNode } from 'react';
2
- export interface StyledSelectItemProps {
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;
@@ -1,2 +1,3 @@
1
1
  export * from './StyledSelect';
2
2
  export * from './StyledSelectItem';
3
+ export { type SelectChangeEvent } from '@mui/material';