@recursica/mui-adapter 0.25.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/index.d.ts +23 -19
  3. package/dist/mui-adapter.cjs +85 -85
  4. package/dist/mui-adapter.cjs.map +1 -1
  5. package/dist/mui-adapter.css +1 -1
  6. package/dist/mui-adapter.js +30129 -25630
  7. package/dist/mui-adapter.js.map +1 -1
  8. package/package.json +1 -1
  9. package/src/GlobalExemptions.modules.css +0 -6
  10. package/src/components/Accordion/Accordion.module.css +0 -8
  11. package/src/components/Autocomplete/Autocomplete.module.css +0 -8
  12. package/src/components/Avatar/Avatar.module.css +0 -8
  13. package/src/components/Button/Button.module.css +0 -13
  14. package/src/components/Chip/Chip.module.css +0 -27
  15. package/src/components/DatePicker/DATEPICKER_IMPLEMENTATION_NOTES.md +29 -0
  16. package/src/components/DatePicker/DatePicker.icons.tsx +35 -0
  17. package/src/components/DatePicker/DatePicker.module.css +451 -42
  18. package/src/components/DatePicker/DatePicker.stories.tsx +23 -25
  19. package/src/components/DatePicker/DatePicker.tsx +229 -47
  20. package/src/components/DatePicker/USAGE.md +14 -1
  21. package/src/components/Dropdown/Dropdown.module.css +0 -7
  22. package/src/components/FileInput/FileInput.module.css +0 -21
  23. package/src/components/FileUpload/FileUpload.module.css +0 -11
  24. package/src/components/HoverCard/HoverCard.module.css +1 -7
  25. package/src/components/Label/Label.module.css +0 -6
  26. package/src/components/Link/Link.module.css +0 -13
  27. package/src/components/Menu/Menu.module.css +0 -5
  28. package/src/components/Modal/Modal.module.css +0 -11
  29. package/src/components/NumberInput/NumberInput.module.css +0 -7
  30. package/src/components/Pagination/Pagination.module.css +0 -81
  31. package/src/components/Popover/Popover.module.css +0 -5
  32. package/src/components/SegmentedControl/SegmentedControl.module.css +0 -8
  33. package/src/components/TextArea/TextArea.module.css +0 -7
  34. package/src/components/TextField/TextField.module.css +0 -8
  35. package/src/components/TimePicker/TimePicker.module.css +0 -16
  36. package/src/components/Timeline/Timeline.module.css +0 -6
  37. package/src/components/Toast/Toast.module.css +0 -7
  38. package/src/components/Tooltip/Tooltip.module.css +0 -9
  39. package/src/components/TransferList/TransferList.module.css +0 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @recursica/mui-adapter
2
2
 
3
+ ## 0.26.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 015c809: Implemented DatePicker (was a non-functional placeholder stub). Wraps MUI X's `DatePicker` with the same token mapping as the mantine-adapter's DatePicker: tokenized field border/background/text, a default token-styled calendar popover (hover, today, disabled/outside days, selected-day fill, header nav/month-label as Recursica text buttons), default `MM/DD/YY` format, and a default calendar icon that opens the picker (overridable via `slots.openPickerIcon`). `value`/`defaultValue`/`onChange` use plain `Date`, matching the mantine-adapter's convention.
8
+
9
+ ### Patch Changes
10
+
11
+ - 56e0d63: Remove all `recursica-ignore` exemption comments so the token analyzer report reflects true unused/unimplemented Figma variables. No runtime behavior change.
12
+
3
13
  ## 0.25.0
4
14
 
5
15
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -14,6 +14,9 @@ import { CheckboxProps as CheckboxProps_2 } from '@mui/material';
14
14
  import { ChipProps as ChipProps_2 } from '@mui/material';
15
15
  import { CommonProps } from '@mui/material/OverridableComponent';
16
16
  import { ContainerProps as ContainerProps_2 } from '@mui/material';
17
+ import { DatePickerProps } from '@mui/x-date-pickers/DatePicker';
18
+ import { DatePickerSlotProps } from '@mui/x-date-pickers/DatePicker';
19
+ import { DatePickerSlots } from '@mui/x-date-pickers/DatePicker';
17
20
  import { default as default_2 } from 'react';
18
21
  import { DetailedHTMLProps } from 'react';
19
22
  import { DialogActionsProps } from '@mui/material';
@@ -445,25 +448,9 @@ export declare const copyToClipboard: (textToCopy: string, componentRef: default
445
448
 
446
449
  export declare const DatePicker: typeof rawComponents.DatePicker;
447
450
 
448
- declare const DatePicker_2: default_2.FC<DatePickerProps>;
451
+ declare const DatePicker_2: default_2.ForwardRefExoticComponent<DatePickerProps_2 & default_2.RefAttributes<HTMLDivElement>>;
449
452
 
450
- declare type DatePickerProps = Omit<default_2.HTMLAttributes<HTMLDivElement>, "value" | "onChange" | "defaultValue"> & RecursicaDatePickerProps & {
451
- disabled?: boolean;
452
- label?: default_2.ReactNode;
453
- assistiveText?: string;
454
- error?: default_2.ReactNode;
455
- required?: boolean;
456
- withAsterisk?: boolean;
457
- placeholder?: string;
458
- value?: Date | null;
459
- defaultValue?: Date | null;
460
- onChange?: (value: Date | null) => void;
461
- readOnly?: boolean;
462
- formLayout?: "stacked" | "side-by-side";
463
- leftSection?: default_2.ReactNode;
464
- labelWithEditIcon?: boolean;
465
- onLabelEditClick?: () => void;
466
- };
453
+ declare type DatePickerProps_2 = RecursicaOverStyled<RecursicaDatePickerProps_2>;
467
454
 
468
455
  export declare const Dropdown: typeof rawComponents.Dropdown;
469
456
 
@@ -1146,7 +1133,8 @@ declare namespace rawComponents {
1146
1133
  Chip_2 as Chip,
1147
1134
  ContainerProps,
1148
1135
  Container_2 as Container,
1149
- DatePickerProps,
1136
+ RecursicaDatePickerProps_2 as RecursicaDatePickerProps,
1137
+ DatePickerProps_2 as DatePickerProps,
1150
1138
  DatePicker_2 as DatePicker,
1151
1139
  RecursicaDropdownProps,
1152
1140
  DropdownProps,
@@ -1582,6 +1570,22 @@ export declare interface RecursicaContainerProps {
1582
1570
  export declare interface RecursicaDatePickerProps {
1583
1571
  }
1584
1572
 
1573
+ declare interface RecursicaDatePickerProps_2 extends Omit<DatePickerProps, "value" | "defaultValue" | "onChange" | "minDate" | "maxDate" | "format" | "slots" | "slotProps">, Pick<RecursicaFormControlWrapperProps, "label" | "error" | "required" | "id" | "assistiveText" | "assistiveWithIcon" | "formLayout" | "labelSize" | "labelAlignment" | "labelOptionalText" | "labelWithEditIcon" | "onLabelEditClick">, ReadOnlyControlProps, RecursicaDatePickerProps {
1574
+ /** Selected date, matching the mantine-adapter convention of a plain `Date` value. */
1575
+ value?: Date | null;
1576
+ /** Uncontrolled initial date. */
1577
+ defaultValue?: Date | null;
1578
+ /** Fires with the new date, or `null` if cleared. */
1579
+ onChange?: (value: Date | null) => void;
1580
+ minDate?: Date;
1581
+ maxDate?: Date;
1582
+ /** Overridable component slots — e.g. `slots={{ openPickerIcon: MyIcon }}` to replace the default calendar icon. */
1583
+ slots?: DatePickerSlots;
1584
+ slotProps?: DatePickerSlotProps;
1585
+ /** Caller-provided inline style, passed through to the FormControlWrapper root. */
1586
+ style?: default_2.CSSProperties;
1587
+ }
1588
+
1585
1589
  export declare interface RecursicaDropdownProps extends Omit<SelectProps, keyof default_2.HTMLAttributes<HTMLDivElement> | "size" | "variant" | "classes" | "inputProps" | "SelectDisplayProps" | "ref" | "error">, Omit<RecursicaFormControlWrapperProps, "controlMaxWidth" | "controlMinWidth">, ReadOnlyControlProps, RecursicaDropdownProps_2 {
1586
1590
  }
1587
1591