@recursica/mui-adapter 0.24.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.
- package/CHANGELOG.md +36 -0
- package/dist/index.d.ts +189 -28
- package/dist/mui-adapter.cjs +85 -85
- package/dist/mui-adapter.cjs.map +1 -1
- package/dist/mui-adapter.css +1 -1
- package/dist/mui-adapter.js +29694 -24393
- package/dist/mui-adapter.js.map +1 -1
- package/llms.txt +1 -0
- package/package.json +1 -1
- package/src/GlobalExemptions.modules.css +0 -6
- package/src/components/Accordion/Accordion.module.css +0 -8
- package/src/components/AssistiveElement/AssistiveElement.tsx +1 -1
- package/src/components/Autocomplete/Autocomplete.module.css +0 -8
- package/src/components/Avatar/Avatar.module.css +0 -8
- package/src/components/Button/BUTTON_IMPLEMENTATION_NOTES.md +12 -0
- package/src/components/Button/Button.module.css +6 -18
- package/src/components/Checkbox/Checkbox.tsx +4 -1
- package/src/components/Chip/Chip.module.css +0 -27
- package/src/components/DatePicker/DATEPICKER_IMPLEMENTATION_NOTES.md +29 -0
- package/src/components/DatePicker/DatePicker.icons.tsx +35 -0
- package/src/components/DatePicker/DatePicker.module.css +451 -42
- package/src/components/DatePicker/DatePicker.stories.tsx +23 -25
- package/src/components/DatePicker/DatePicker.tsx +229 -47
- package/src/components/DatePicker/USAGE.md +14 -1
- package/src/components/Dropdown/Dropdown.module.css +0 -7
- package/src/components/FileInput/FileInput.module.css +0 -21
- package/src/components/FileInput/FileInput.tsx +6 -0
- package/src/components/FileUpload/FileUpload.module.css +0 -11
- package/src/components/HoverCard/HoverCard.module.css +1 -7
- package/src/components/Label/Label.module.css +0 -6
- package/src/components/Link/Link.module.css +0 -13
- package/src/components/Menu/Menu.module.css +0 -5
- package/src/components/Modal/Modal.module.css +0 -11
- package/src/components/NumberInput/NumberInput.module.css +0 -7
- package/src/components/Pagination/Pagination.module.css +0 -81
- package/src/components/Popover/IMPLEMENTATION_NOTES.md +22 -0
- package/src/components/Popover/Popover.module.css +118 -0
- package/src/components/Popover/Popover.stories.tsx +133 -0
- package/src/components/Popover/Popover.tsx +275 -0
- package/src/components/Popover/USAGE.md +69 -0
- package/src/components/Popover/index.ts +1 -0
- package/src/components/SegmentedControl/IMPLEMENTATION_NOTES.md +6 -0
- package/src/components/SegmentedControl/SegmentedControl.module.css +32 -11
- package/src/components/SegmentedControl/SegmentedControl.tsx +18 -4
- package/src/components/Slider/IMPLEMENTATION_NOTES.md +29 -0
- package/src/components/Slider/Slider.module.css +80 -17
- package/src/components/Slider/Slider.stories.tsx +1 -1
- package/src/components/Slider/Slider.tsx +36 -1
- package/src/components/Stepper/IMPLEMENTATION_NOTES.md +54 -0
- package/src/components/Stepper/Stepper.module.css +139 -106
- package/src/components/Stepper/Stepper.tsx +76 -10
- package/src/components/Stepper/USAGE.md +4 -0
- package/src/components/Tabs/IMPLEMENTATION_NOTES.md +12 -0
- package/src/components/Tabs/Tabs.module.css +107 -24
- package/src/components/Tabs/Tabs.tsx +1 -0
- package/src/components/TextArea/TextArea.module.css +20 -11
- package/src/components/TextArea/TextArea.tsx +12 -23
- package/src/components/TextField/TextField.module.css +0 -8
- package/src/components/TimePicker/TimePicker.module.css +0 -16
- package/src/components/Timeline/IMPLEMENTATION_NOTES.md +24 -3
- package/src/components/Timeline/Timeline.module.css +55 -73
- package/src/components/Timeline/Timeline.tsx +23 -27
- package/src/components/Timeline/TimelineItem.tsx +38 -35
- package/src/components/Toast/Toast.module.css +0 -7
- package/src/components/Tooltip/Tooltip.module.css +0 -9
- package/src/components/TransferList/TRANSFERLIST_IMPLEMENTATION_NOTES.md +140 -0
- package/src/components/TransferList/TransferList.module.css +174 -38
- package/src/components/TransferList/TransferList.stories.tsx +110 -6
- package/src/components/TransferList/TransferList.tsx +417 -8
- package/src/components/TransferList/USAGE.md +37 -6
- package/src/components/index.ts +1 -0
- package/src/index.ts +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
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
|
+
|
|
13
|
+
## 0.25.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- e0f5643: Implement `TransferList` (dual listbox) in both adapters, replacing the "coming soon" stub. Composes `FormControlWrapper`, `TextField`, `Checkbox`/`CheckboxGroup`, `Badge`, and `Button` — supports controlled/uncontrolled `data`, per-item grouping, per-pane search, and `stacked`/`side-by-side` form layout.
|
|
18
|
+
- 2fb7069: Add `Popover` component (click-controlled dropdown with beak/arrow, composable `Popover.Target`/`Popover.Dropdown`), bringing mui-adapter in parity with mantine-adapter's Popover.
|
|
19
|
+
- 2fb7069: Fix `Popover`: gap now matches Mantine (Mui's built-in per-placement tooltip margin was stacking on top of our offset), and the beak now has a visible border matching the dropdown body. Fix `Button`: line-height now applies via `labelText` per size (matching Mantine) instead of being dropped from the small-size token.
|
|
20
|
+
- 2fb7069: Fix `SegmentedControl` height (MUI's default `ToggleButton` box model was stacking on top of the token-driven label height) and selected-state styling (`Mui-selected` wasn't wrapped in `:global()`, so CSS Modules silently dropped the selector).
|
|
21
|
+
Also default to the first item selected when uncontrolled, matching mantine.
|
|
22
|
+
- 2fb7069: Fix `SegmentedControl` labels rendering all-caps in MUI (its `ToggleButton` uppercase default was leaking through an invalid text-transform token). Labels now match Mantine's original casing.
|
|
23
|
+
- 2fb7069: Fix `Slider`'s `Disabled` story (was passing `disabled: false` in both adapters). In `mui-adapter`, also fix the disabled track showing red instead of grey, make the thumb focus ring keyboard-only (no glow on click/drag) to match Mantine, render assistive text as a `<span>`, and align mark label color/position with Mantine (which now applies its own mark label color token too).
|
|
24
|
+
- 2fb7069: Fix `Stepper`: use MUI's `alternativeLabel` so horizontal labels center under the icon and the connector centers on it, render the completed check mark as our own token-colored glyph instead of MUI's default blue `CheckCircle` SVG, and draw the vertical connecting line as a stretch-aware rail so it reaches the next step's circle regardless of description height.
|
|
25
|
+
- 2fb7069: Fix `Tabs` showing a MUI click ripple that Mantine's tabs don't have. `Tab` now passes `disableRipple`.
|
|
26
|
+
- 2fb7069: Fix `Tabs`: `outline` variant's selected tab now shows a connected border box (matching Mantine) with no stray bottom border line. `default` variant no longer shifts sibling tabs when selecting one (a stray ripple element was being pulled into flex layout). `vertical` orientation no longer stretches the tablist to the full row width, and its divider now runs the full height with the selection indicator aligned on it instead of offset to the side.
|
|
27
|
+
- 2fb7069: Fix `TextArea`: error state border now uses the recursica error color (was never triggering in either adapter). MUI disabled background/border, focus ring color, and default height now match Mantine instead of MUI's own defaults.
|
|
28
|
+
- 2fb7069: Fix `Timeline`: rebuild `Timeline.Item` on Mui's `TimelineSeparator`/`TimelineDot`/`TimelineConnector`/`TimelineContent` primitives so the bullet marker, connecting line, active state, and bullet variants render (and left-align) like the Mantine adapter instead of not rendering at all.
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- 1616144: Fix `FileInput`'s clear-all button: pressing Enter or Space while it was focused opened the native file picker instead of clearing the selection (a regression from switching the control to the shared `Button` component, which dropped the keydown handler the previous bespoke element had).
|
|
33
|
+
- 3ff5821: Fix `TransferList` checkboxes not toggling/showing checked state in either adapter (grouping-for-layout was silently overriding item selection). Add `readOnly` support and a `ReadOnly` story.
|
|
34
|
+
- Updated dependencies [e0f5643]
|
|
35
|
+
- Updated dependencies [1616144]
|
|
36
|
+
- Updated dependencies [3ff5821]
|
|
37
|
+
- @recursica/adapter-common@0.18.0
|
|
38
|
+
|
|
3
39
|
## 0.24.0
|
|
4
40
|
|
|
5
41
|
### 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.
|
|
451
|
+
declare const DatePicker_2: default_2.ForwardRefExoticComponent<DatePickerProps_2 & default_2.RefAttributes<HTMLDivElement>>;
|
|
449
452
|
|
|
450
|
-
declare type
|
|
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
|
|
|
@@ -1007,6 +994,84 @@ h?: string | number;
|
|
|
1007
994
|
height?: string | number;
|
|
1008
995
|
}, "ref">) & RefAttributes<HTMLDivElement>>;
|
|
1009
996
|
|
|
997
|
+
export declare const Popover: typeof rawComponents.Popover;
|
|
998
|
+
|
|
999
|
+
declare const Popover_2: PopoverComponent;
|
|
1000
|
+
|
|
1001
|
+
declare const PopoverBase: {
|
|
1002
|
+
({ overStyled, withBeak, position, defaultOpened, opened, onChange, offset, width, children, ...rest }: PopoverProps): JSX.Element;
|
|
1003
|
+
displayName: string;
|
|
1004
|
+
};
|
|
1005
|
+
|
|
1006
|
+
declare type PopoverComponent = typeof PopoverBase & {
|
|
1007
|
+
Target: typeof PopoverTarget;
|
|
1008
|
+
Dropdown: typeof PopoverDropdown;
|
|
1009
|
+
};
|
|
1010
|
+
|
|
1011
|
+
declare const PopoverDropdown: {
|
|
1012
|
+
({ children, }: PopoverDropdownProps): JSX.Element;
|
|
1013
|
+
displayName: string;
|
|
1014
|
+
};
|
|
1015
|
+
|
|
1016
|
+
/** The dropdown panel displayed from the popover. */
|
|
1017
|
+
declare type PopoverDropdownProps = {
|
|
1018
|
+
children?: default_2.ReactNode;
|
|
1019
|
+
};
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* Behavioral props specific to this adapter's click-controlled implementation.
|
|
1023
|
+
* `withBeak` comes from the shared `RecursicaPopoverProps` (adapter-common); the
|
|
1024
|
+
* rest map to Mantine's own `PopoverProps` surface, reproduced here since Mui has
|
|
1025
|
+
* no single library type that already covers them.
|
|
1026
|
+
*/
|
|
1027
|
+
declare interface PopoverOwnProps extends RecursicaPopoverProps {
|
|
1028
|
+
/** Dropdown position relative to the target */
|
|
1029
|
+
position?: TooltipProps["placement"];
|
|
1030
|
+
/** Initial opened state (uncontrolled) */
|
|
1031
|
+
defaultOpened?: boolean;
|
|
1032
|
+
/** Controlled opened state */
|
|
1033
|
+
opened?: boolean;
|
|
1034
|
+
/** Called whenever the opened state changes */
|
|
1035
|
+
onChange?: (opened: boolean) => void;
|
|
1036
|
+
/** Distance in px between the dropdown and the target */
|
|
1037
|
+
offset?: number;
|
|
1038
|
+
/** Fixed width applied to the dropdown panel */
|
|
1039
|
+
width?: number | string;
|
|
1040
|
+
children?: default_2.ReactNode;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
/**
|
|
1044
|
+
* Recursica Popover component wrapping Mui's Tooltip in click-controlled mode.
|
|
1045
|
+
*
|
|
1046
|
+
* Displays a dropdown panel when the user clicks the target element.
|
|
1047
|
+
* Uses the composable dot-notation pattern:
|
|
1048
|
+
* ```tsx
|
|
1049
|
+
* <Popover withBeak>
|
|
1050
|
+
* <Popover.Target>
|
|
1051
|
+
* <Button>Click me</Button>
|
|
1052
|
+
* </Popover.Target>
|
|
1053
|
+
* <Popover.Dropdown>
|
|
1054
|
+
* Content displayed in popover
|
|
1055
|
+
* </Popover.Dropdown>
|
|
1056
|
+
* </Popover>
|
|
1057
|
+
* ```
|
|
1058
|
+
*/
|
|
1059
|
+
declare type PopoverProps = RecursicaOverStyled<Omit<TooltipProps, "title" | "children" | "open" | "onClose" | "onOpen" | "placement"> & PopoverOwnProps>;
|
|
1060
|
+
|
|
1061
|
+
declare const PopoverTarget: {
|
|
1062
|
+
({ children }: PopoverTargetProps): JSX.Element;
|
|
1063
|
+
displayName: string;
|
|
1064
|
+
};
|
|
1065
|
+
|
|
1066
|
+
/**
|
|
1067
|
+
* Wrapper for the element that triggers the popover.
|
|
1068
|
+
* Requires a single child element; only used as a marker to locate the
|
|
1069
|
+
* trigger element, it is never rendered directly (see `PopoverBase`).
|
|
1070
|
+
*/
|
|
1071
|
+
declare type PopoverTargetProps = {
|
|
1072
|
+
children?: default_2.ReactNode;
|
|
1073
|
+
};
|
|
1074
|
+
|
|
1010
1075
|
export declare const Radio: typeof rawComponents.Radio;
|
|
1011
1076
|
|
|
1012
1077
|
declare const Radio_2: RadioComponent;
|
|
@@ -1068,7 +1133,8 @@ declare namespace rawComponents {
|
|
|
1068
1133
|
Chip_2 as Chip,
|
|
1069
1134
|
ContainerProps,
|
|
1070
1135
|
Container_2 as Container,
|
|
1071
|
-
|
|
1136
|
+
RecursicaDatePickerProps_2 as RecursicaDatePickerProps,
|
|
1137
|
+
DatePickerProps_2 as DatePickerProps,
|
|
1072
1138
|
DatePicker_2 as DatePicker,
|
|
1073
1139
|
RecursicaDropdownProps,
|
|
1074
1140
|
DropdownProps,
|
|
@@ -1124,6 +1190,11 @@ declare namespace rawComponents {
|
|
|
1124
1190
|
PanelFooterProps,
|
|
1125
1191
|
PanelFooter_2 as PanelFooter,
|
|
1126
1192
|
Panel_2 as Panel,
|
|
1193
|
+
PopoverOwnProps,
|
|
1194
|
+
PopoverProps,
|
|
1195
|
+
PopoverTargetProps,
|
|
1196
|
+
PopoverDropdownProps,
|
|
1197
|
+
Popover_2 as Popover,
|
|
1127
1198
|
RadioWrapperProps,
|
|
1128
1199
|
RecursicaRadioPropsAlias,
|
|
1129
1200
|
RadioProps_2 as RadioProps,
|
|
@@ -1206,6 +1277,9 @@ declare namespace rawComponents {
|
|
|
1206
1277
|
Toast_2 as Toast,
|
|
1207
1278
|
TooltipProps_2 as TooltipProps,
|
|
1208
1279
|
Tooltip_2 as Tooltip,
|
|
1280
|
+
RecursicaTransferListItem,
|
|
1281
|
+
RecursicaTransferListData,
|
|
1282
|
+
RecursicaTransferListProps_2 as RecursicaTransferListProps,
|
|
1209
1283
|
TransferListProps,
|
|
1210
1284
|
TransferList_2 as TransferList,
|
|
1211
1285
|
TypographyProps_2 as TypographyProps,
|
|
@@ -1243,7 +1317,7 @@ export declare type ReadOnlyFieldType = "text" | "number" | "date" | "boolean" |
|
|
|
1243
1317
|
/**
|
|
1244
1318
|
* Official list of all components in Recursica.
|
|
1245
1319
|
*/
|
|
1246
|
-
export declare const RECURSICA_COMPONENTS: readonly ["Accordion", "AssistiveElement", "Autocomplete", "Avatar", "Badge", "Breadcrumb", "Button", "Card", "Checkbox", "Chip", "Container", "DatePicker", "Dropdown", "EmptyValueRenderer", "FileInput", "Flex", "FormControlLayout", "FormControlWrapper", "Grid", "Group", "HoverCard", "Label", "Layer", "Link", "Loader", "Menu", "Modal", "NumberInput", "Pagination", "Panel", "Popover", "Radio", "ReadOnlyField", "SegmentedControl", "Slider", "Stack", "Stepper", "Switch", "Table", "Tabs", "Text", "TextArea", "TextField", "TimePicker", "Timeline", "Title", "Toast", "Tooltip", "TransferList"];
|
|
1320
|
+
export declare const RECURSICA_COMPONENTS: readonly ["Accordion", "AssistiveElement", "Autocomplete", "Avatar", "Badge", "Box", "Breadcrumb", "Button", "Card", "Checkbox", "CheckboxGroup", "Chip", "Container", "DatePicker", "Dropdown", "EmptyValueRenderer", "FileInput", "FileUpload", "Flex", "FormControlLayout", "FormControlWrapper", "Grid", "Group", "HoverCard", "Label", "Layer", "Link", "Loader", "Menu", "Modal", "NumberInput", "Pagination", "Panel", "Popover", "Radio", "ReadOnlyField", "SegmentedControl", "Slider", "Stack", "Stepper", "Switch", "Table", "Tabs", "Text", "TextArea", "TextField", "TimePicker", "Timeline", "Title", "Toast", "Tooltip", "TransferList", "Tree", "Typography"];
|
|
1247
1321
|
|
|
1248
1322
|
/**
|
|
1249
1323
|
* Props for the Recursica Accordion Control component.
|
|
@@ -1496,6 +1570,22 @@ export declare interface RecursicaContainerProps {
|
|
|
1496
1570
|
export declare interface RecursicaDatePickerProps {
|
|
1497
1571
|
}
|
|
1498
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
|
+
|
|
1499
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 {
|
|
1500
1590
|
}
|
|
1501
1591
|
|
|
@@ -2330,10 +2420,47 @@ export declare interface RecursicaTooltipProps {
|
|
|
2330
2420
|
withBeak?: boolean;
|
|
2331
2421
|
}
|
|
2332
2422
|
|
|
2423
|
+
/** Controlled/uncontrolled data shape: [sourceItems, targetItems] */
|
|
2424
|
+
export declare type RecursicaTransferListData = [
|
|
2425
|
+
RecursicaTransferListItem[],
|
|
2426
|
+
RecursicaTransferListItem[]
|
|
2427
|
+
];
|
|
2428
|
+
|
|
2429
|
+
/**
|
|
2430
|
+
* A single transferable item.
|
|
2431
|
+
*/
|
|
2432
|
+
export declare interface RecursicaTransferListItem {
|
|
2433
|
+
/** Unique identifier used for selection and transfer */
|
|
2434
|
+
value: string;
|
|
2435
|
+
/** Display text */
|
|
2436
|
+
label: string;
|
|
2437
|
+
/** Optional group name — items sharing a group render under a CheckboxGroup */
|
|
2438
|
+
group?: string;
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2333
2441
|
/**
|
|
2334
2442
|
* Props for the Recursica TransferList component.
|
|
2335
2443
|
*/
|
|
2336
2444
|
export declare interface RecursicaTransferListProps {
|
|
2445
|
+
/** Controlled data: [sourceItems, targetItems] */
|
|
2446
|
+
data?: RecursicaTransferListData;
|
|
2447
|
+
/** Uncontrolled initial data: [sourceItems, targetItems] */
|
|
2448
|
+
defaultData?: RecursicaTransferListData;
|
|
2449
|
+
/** Called with the new [sourceItems, targetItems] whenever items are transferred */
|
|
2450
|
+
onChange?: (data: RecursicaTransferListData) => void;
|
|
2451
|
+
/** Label for the source (left) list */
|
|
2452
|
+
sourceLabel?: string;
|
|
2453
|
+
/** Label for the target (right) list */
|
|
2454
|
+
targetLabel?: string;
|
|
2455
|
+
/** Enable per-pane search filtering. Defaults to true */
|
|
2456
|
+
searchable?: boolean;
|
|
2457
|
+
/** Placeholder text for the search fields */
|
|
2458
|
+
searchPlaceholder?: string;
|
|
2459
|
+
}
|
|
2460
|
+
|
|
2461
|
+
declare interface RecursicaTransferListProps_2 extends Omit<FormControlWrapperProps, "children" | "overStyled" | "controlMaxWidth" | "controlMinWidth" | "onChange">, ReadOnlyControlProps, RecursicaTransferListProps {
|
|
2462
|
+
/** Disables the whole control */
|
|
2463
|
+
disabled?: boolean;
|
|
2337
2464
|
}
|
|
2338
2465
|
|
|
2339
2466
|
/**
|
|
@@ -2926,7 +3053,7 @@ export declare const Timeline: typeof rawComponents.Timeline;
|
|
|
2926
3053
|
|
|
2927
3054
|
declare const Timeline_2: TimelineComponent;
|
|
2928
3055
|
|
|
2929
|
-
declare interface TimelineComponent extends default_2.ForwardRefExoticComponent<TimelineProps & default_2.RefAttributes<
|
|
3056
|
+
declare interface TimelineComponent extends default_2.ForwardRefExoticComponent<TimelineProps & default_2.RefAttributes<HTMLUListElement>> {
|
|
2930
3057
|
Item: typeof TimelineItem_2;
|
|
2931
3058
|
}
|
|
2932
3059
|
|
|
@@ -2939,10 +3066,24 @@ export declare const TimelineItem: typeof rawComponents.TimelineItem;
|
|
|
2939
3066
|
* The `Timeline.Item` has been extended to support a `timestamp` string natively,
|
|
2940
3067
|
* rendering it below the body content. It also accepts a `bulletVariant` to morph
|
|
2941
3068
|
* the structural dimensions of the node circle automatically.
|
|
2942
|
-
|
|
2943
|
-
|
|
3069
|
+
*
|
|
3070
|
+
* Internally it composes Mui's `TimelineSeparator`/`TimelineDot`/`TimelineConnector`/
|
|
3071
|
+
* `TimelineContent` primitives (Mui has no single "item" abstraction like Mantine's
|
|
3072
|
+
* `Timeline.Item` that renders a bullet + connector on its own).
|
|
3073
|
+
*/
|
|
3074
|
+
declare const TimelineItem_2: default_2.ForwardRefExoticComponent<(Omit<Omit<WithRecursicaSpacing<Omit<TimelineItemProps, "color" | "title" | "radius" | "lineVariant"> & RecursicaTimelineItemProps & {
|
|
3075
|
+
/** Heading rendered above the item's description/timestamp */
|
|
3076
|
+
title?: default_2.ReactNode;
|
|
3077
|
+
/* Excluded from this release type: __active */
|
|
3078
|
+
/* Excluded from this release type: __isLast */
|
|
3079
|
+
}>, BlockedStylingKeys> & ForbiddenStyles & {
|
|
2944
3080
|
overStyled?: false | undefined;
|
|
2945
|
-
}, "ref"> | Omit<Omit<Omit<TimelineItemProps, "color" | "radius" | "lineVariant"> & RecursicaTimelineItemProps
|
|
3081
|
+
}, "ref"> | Omit<Omit<Omit<TimelineItemProps, "color" | "title" | "radius" | "lineVariant"> & RecursicaTimelineItemProps & {
|
|
3082
|
+
/** Heading rendered above the item's description/timestamp */
|
|
3083
|
+
title?: default_2.ReactNode;
|
|
3084
|
+
/* Excluded from this release type: __active */
|
|
3085
|
+
/* Excluded from this release type: __isLast */
|
|
3086
|
+
}, "m" | "my" | "mx" | "mt" | "mb" | "ml" | "mr" | "gap" | "rowGap" | "columnGap"> & {
|
|
2946
3087
|
m?: string | number | RecursicaSpacing;
|
|
2947
3088
|
mx?: string | number | RecursicaSpacing;
|
|
2948
3089
|
my?: string | number | RecursicaSpacing;
|
|
@@ -2955,9 +3096,14 @@ declare const TimelineItem_2: default_2.ForwardRefExoticComponent<(Omit<Omit<Wit
|
|
|
2955
3096
|
columnGap?: string | number | RecursicaSpacing;
|
|
2956
3097
|
} & {
|
|
2957
3098
|
overStyled: true;
|
|
2958
|
-
}, "ref">) & default_2.RefAttributes<
|
|
3099
|
+
}, "ref">) & default_2.RefAttributes<HTMLLIElement>>;
|
|
2959
3100
|
|
|
2960
|
-
declare type TimelineItemProps_2 = RecursicaOverStyled<Omit<TimelineItemProps, "radius" | "color" | "lineVariant"> & RecursicaTimelineItemProps
|
|
3101
|
+
declare type TimelineItemProps_2 = RecursicaOverStyled<Omit<TimelineItemProps, "radius" | "color" | "lineVariant" | "title"> & RecursicaTimelineItemProps & {
|
|
3102
|
+
/** Heading rendered above the item's description/timestamp */
|
|
3103
|
+
title?: default_2.ReactNode;
|
|
3104
|
+
/* Excluded from this release type: __active */
|
|
3105
|
+
/* Excluded from this release type: __isLast */
|
|
3106
|
+
}>;
|
|
2961
3107
|
|
|
2962
3108
|
/**
|
|
2963
3109
|
* Properties for the strictly-tokenized Timeline component.
|
|
@@ -3059,9 +3205,24 @@ declare type TooltipProps_2 = RecursicaOverStyled<TooltipProps & RecursicaToolti
|
|
|
3059
3205
|
|
|
3060
3206
|
export declare const TransferList: typeof rawComponents.TransferList;
|
|
3061
3207
|
|
|
3062
|
-
declare const TransferList_2:
|
|
3208
|
+
declare const TransferList_2: ForwardRefExoticComponent<(Omit<Omit<WithRecursicaSpacing<RecursicaTransferListProps_2>, BlockedStylingKeys> & ForbiddenStyles & {
|
|
3209
|
+
overStyled?: false | undefined;
|
|
3210
|
+
}, "ref"> | Omit<Omit<RecursicaTransferListProps_2, "m" | "my" | "mx" | "mt" | "mb" | "ml" | "mr" | "gap" | "rowGap" | "columnGap"> & {
|
|
3211
|
+
m?: string | number | RecursicaSpacing;
|
|
3212
|
+
mx?: string | number | RecursicaSpacing;
|
|
3213
|
+
my?: string | number | RecursicaSpacing;
|
|
3214
|
+
mt?: string | number | RecursicaSpacing;
|
|
3215
|
+
mb?: string | number | RecursicaSpacing;
|
|
3216
|
+
ml?: string | number | RecursicaSpacing;
|
|
3217
|
+
mr?: string | number | RecursicaSpacing;
|
|
3218
|
+
gap?: string | number | RecursicaSpacing;
|
|
3219
|
+
rowGap?: string | number | RecursicaSpacing;
|
|
3220
|
+
columnGap?: string | number | RecursicaSpacing;
|
|
3221
|
+
} & {
|
|
3222
|
+
overStyled: true;
|
|
3223
|
+
}, "ref">) & RefAttributes<HTMLDivElement>>;
|
|
3063
3224
|
|
|
3064
|
-
declare type TransferListProps =
|
|
3225
|
+
declare type TransferListProps = RecursicaOverStyled<RecursicaTransferListProps_2>;
|
|
3065
3226
|
|
|
3066
3227
|
export declare const Tree: typeof rawComponents.Tree;
|
|
3067
3228
|
|