@recursica/mantine-adapter 0.41.0 → 0.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/CHANGELOG.md +24 -0
- package/dist/index.d.ts +43 -3
- package/dist/mantine-adapter.cjs +2 -2
- package/dist/mantine-adapter.cjs.map +1 -1
- package/dist/mantine-adapter.css +1 -1
- package/dist/mantine-adapter.js +2580 -2218
- package/dist/mantine-adapter.js.map +1 -1
- package/package.json +1 -1
- package/src/GlobalExemptions.modules.css +0 -6
- package/src/components/Accordion/Accordion.module.css +0 -8
- package/src/components/AutoComplete/AutoComplete.module.css +0 -7
- package/src/components/Avatar/Avatar.module.css +0 -8
- package/src/components/Checkbox/CheckboxGroup.tsx +32 -10
- package/src/components/Chip/Chip.module.css +0 -16
- package/src/components/DatePicker/DATEPICKER_IMPLEMENTATION_NOTES.md +14 -1
- package/src/components/DatePicker/DatePicker.icons.tsx +27 -0
- package/src/components/DatePicker/DatePicker.module.css +256 -7
- package/src/components/DatePicker/DatePicker.stories.tsx +0 -7
- package/src/components/DatePicker/DatePicker.tsx +37 -1
- package/src/components/DatePicker/USAGE.md +6 -2
- 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 +1 -6
- package/src/components/Menu/Menu.module.css +0 -6
- 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/SegmentedControl/SegmentedControl.module.css +0 -1
- package/src/components/Slider/IMPLEMENTATION_NOTES.md +1 -0
- package/src/components/Slider/Slider.module.css +34 -0
- package/src/components/Slider/Slider.stories.tsx +1 -1
- package/src/components/TextArea/TextArea.module.css +0 -7
- package/src/components/TextArea/TextArea.tsx +2 -6
- package/src/components/TextField/TextField.module.css +0 -7
- package/src/components/TimePicker/TimePicker.module.css +0 -16
- package/src/components/Timeline/Timeline.module.css +0 -6
- 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 +111 -0
- package/src/components/TransferList/TransferList.module.css +174 -41
- package/src/components/TransferList/TransferList.stories.tsx +110 -6
- package/src/components/TransferList/TransferList.tsx +417 -7
- package/src/components/TransferList/USAGE.md +37 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @recursica/mantine-adapter
|
|
2
2
|
|
|
3
|
+
## 0.42.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 015c809: DatePicker's calendar (hover, today, weekend, disabled/outside days, in-range, header nav/month-label as Recursica text buttons, popover border/shadow) is now fully token-driven. Default value format is `MM/DD/YY`, `highlightToday` defaults to `true`, a default calendar icon is provided (overridable via `leftSection`), and the field no longer wraps its value/placeholder to a second line. Default placeholder is `"MM / DD / YY"` (overridable via `placeholder`).
|
|
8
|
+
- 56e0d63: Remove all `recursica-ignore` exemption comments so the token analyzer report reflects true unused/unimplemented Figma variables. No runtime behavior change.
|
|
9
|
+
|
|
10
|
+
## 0.42.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- 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.
|
|
15
|
+
- 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).
|
|
16
|
+
- 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.
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- 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).
|
|
21
|
+
- 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.
|
|
22
|
+
- Updated dependencies [e0f5643]
|
|
23
|
+
- Updated dependencies [1616144]
|
|
24
|
+
- Updated dependencies [3ff5821]
|
|
25
|
+
- @recursica/adapter-common@0.18.0
|
|
26
|
+
|
|
3
27
|
## 0.41.0
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1522,6 +1522,9 @@ declare namespace rawComponents {
|
|
|
1522
1522
|
TooltipFloatingProps,
|
|
1523
1523
|
TooltipFloating,
|
|
1524
1524
|
Tooltip_2 as Tooltip,
|
|
1525
|
+
RecursicaTransferListItem,
|
|
1526
|
+
RecursicaTransferListData,
|
|
1527
|
+
RecursicaTransferListProps_2 as RecursicaTransferListProps,
|
|
1525
1528
|
TransferListProps,
|
|
1526
1529
|
TransferList_2 as TransferList,
|
|
1527
1530
|
TreeProps,
|
|
@@ -1575,7 +1578,7 @@ declare type ReadOnlyTextFieldProps = RecursicaOverStyled<RecursicaReadOnlyTextF
|
|
|
1575
1578
|
/**
|
|
1576
1579
|
* Official list of all components in Recursica.
|
|
1577
1580
|
*/
|
|
1578
|
-
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"];
|
|
1581
|
+
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"];
|
|
1579
1582
|
|
|
1580
1583
|
/**
|
|
1581
1584
|
* Props for the Recursica Accordion Control component.
|
|
@@ -2641,10 +2644,47 @@ export declare interface RecursicaTooltipProps {
|
|
|
2641
2644
|
withBeak?: boolean;
|
|
2642
2645
|
}
|
|
2643
2646
|
|
|
2647
|
+
/** Controlled/uncontrolled data shape: [sourceItems, targetItems] */
|
|
2648
|
+
export declare type RecursicaTransferListData = [
|
|
2649
|
+
RecursicaTransferListItem[],
|
|
2650
|
+
RecursicaTransferListItem[]
|
|
2651
|
+
];
|
|
2652
|
+
|
|
2653
|
+
/**
|
|
2654
|
+
* A single transferable item.
|
|
2655
|
+
*/
|
|
2656
|
+
export declare interface RecursicaTransferListItem {
|
|
2657
|
+
/** Unique identifier used for selection and transfer */
|
|
2658
|
+
value: string;
|
|
2659
|
+
/** Display text */
|
|
2660
|
+
label: string;
|
|
2661
|
+
/** Optional group name — items sharing a group render under a CheckboxGroup */
|
|
2662
|
+
group?: string;
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2644
2665
|
/**
|
|
2645
2666
|
* Props for the Recursica TransferList component.
|
|
2646
2667
|
*/
|
|
2647
2668
|
export declare interface RecursicaTransferListProps {
|
|
2669
|
+
/** Controlled data: [sourceItems, targetItems] */
|
|
2670
|
+
data?: RecursicaTransferListData;
|
|
2671
|
+
/** Uncontrolled initial data: [sourceItems, targetItems] */
|
|
2672
|
+
defaultData?: RecursicaTransferListData;
|
|
2673
|
+
/** Called with the new [sourceItems, targetItems] whenever items are transferred */
|
|
2674
|
+
onChange?: (data: RecursicaTransferListData) => void;
|
|
2675
|
+
/** Label for the source (left) list */
|
|
2676
|
+
sourceLabel?: string;
|
|
2677
|
+
/** Label for the target (right) list */
|
|
2678
|
+
targetLabel?: string;
|
|
2679
|
+
/** Enable per-pane search filtering. Defaults to true */
|
|
2680
|
+
searchable?: boolean;
|
|
2681
|
+
/** Placeholder text for the search fields */
|
|
2682
|
+
searchPlaceholder?: string;
|
|
2683
|
+
}
|
|
2684
|
+
|
|
2685
|
+
declare interface RecursicaTransferListProps_2 extends Omit<FormControlWrapperProps, "children" | "overStyled" | "controlMaxWidth" | "controlMinWidth" | "onChange">, ReadOnlyControlProps, RecursicaTransferListProps {
|
|
2686
|
+
/** Disables the whole control */
|
|
2687
|
+
disabled?: boolean;
|
|
2648
2688
|
}
|
|
2649
2689
|
|
|
2650
2690
|
/**
|
|
@@ -3081,9 +3121,9 @@ declare type TooltipProps = RecursicaOverStyled<TooltipProps_2 & RecursicaToolti
|
|
|
3081
3121
|
|
|
3082
3122
|
export declare const TransferList: typeof rawComponents.TransferList;
|
|
3083
3123
|
|
|
3084
|
-
declare const TransferList_2:
|
|
3124
|
+
declare const TransferList_2: ForwardRefExoticComponent<TransferListProps & RefAttributes<HTMLDivElement>>;
|
|
3085
3125
|
|
|
3086
|
-
declare type TransferListProps =
|
|
3126
|
+
declare type TransferListProps = RecursicaOverStyled<RecursicaTransferListProps_2>;
|
|
3087
3127
|
|
|
3088
3128
|
export declare const Tree: typeof rawComponents.Tree;
|
|
3089
3129
|
|