@recursica/mantine-adapter 0.38.0 → 0.39.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 (102) hide show
  1. package/ARCHITECTURE.md +3 -0
  2. package/CHANGELOG.md +33 -0
  3. package/dist/index.d.ts +2930 -2
  4. package/dist/mantine-adapter.cjs +2 -2
  5. package/dist/mantine-adapter.cjs.map +1 -1
  6. package/dist/mantine-adapter.css +1 -1
  7. package/dist/mantine-adapter.js +1503 -1493
  8. package/dist/mantine-adapter.js.map +1 -1
  9. package/package.json +1 -1
  10. package/src/components/Accordion/ACCORDION_IMPLEMENTATION_NOTES.md +16 -2
  11. package/src/components/Accordion/Accordion.module.css +10 -1
  12. package/src/components/Accordion/Accordion.stories.tsx +36 -0
  13. package/src/components/Accordion/Accordion.tsx +40 -7
  14. package/src/components/AssistiveElement/ASSISTIVEELEMENT_IMPLEMENTATION_NOTES.md +45 -0
  15. package/src/components/AssistiveElement/AssistiveElement.tsx +8 -1
  16. package/src/components/AutoComplete/AutoComplete.tsx +1 -4
  17. package/src/components/Avatar/AVATAR_IMPLEMENTATION_NOTES.md +10 -0
  18. package/src/components/Switch/SWITCH_IMPLEMENTATION_NOTES.md +36 -0
  19. package/src/components/Switch/Switch.module.css +19 -2
  20. package/src/components/Switch/SwitchGroup.tsx +6 -3
  21. package/dist/src/OverStyling.d.ts +0 -1
  22. package/dist/src/Version.d.ts +0 -1
  23. package/dist/src/components/Accordion/Accordion.d.ts +0 -21
  24. package/dist/src/components/Accordion/index.d.ts +0 -1
  25. package/dist/src/components/AssistiveElement/AssistiveElement.d.ts +0 -5
  26. package/dist/src/components/AutoComplete/AutoComplete.d.ts +0 -11
  27. package/dist/src/components/Avatar/Avatar.d.ts +0 -18
  28. package/dist/src/components/Avatar/index.d.ts +0 -1
  29. package/dist/src/components/Badge/Badge.d.ts +0 -18
  30. package/dist/src/components/Breadcrumb/Breadcrumb.d.ts +0 -5
  31. package/dist/src/components/Button/Button.d.ts +0 -30
  32. package/dist/src/components/Button/index.d.ts +0 -1
  33. package/dist/src/components/Card/Card.d.ts +0 -59
  34. package/dist/src/components/Checkbox/Checkbox.d.ts +0 -13
  35. package/dist/src/components/Checkbox/CheckboxGroup.d.ts +0 -9
  36. package/dist/src/components/Chip/Chip.d.ts +0 -6
  37. package/dist/src/components/Container/Container.d.ts +0 -23
  38. package/dist/src/components/DatePicker/DatePicker.d.ts +0 -9
  39. package/dist/src/components/Dropdown/BareDropdown.d.ts +0 -19
  40. package/dist/src/components/Dropdown/Dropdown.d.ts +0 -9
  41. package/dist/src/components/FileInput/FileInput.d.ts +0 -3
  42. package/dist/src/components/FileUpload/FileUpload.d.ts +0 -3
  43. package/dist/src/components/Flex/Flex.d.ts +0 -52
  44. package/dist/src/components/FormControlLayout/FormControlLayout.d.ts +0 -16
  45. package/dist/src/components/FormControlWrapper/FormControlWrapper.d.ts +0 -7
  46. package/dist/src/components/Grid/Grid.d.ts +0 -91
  47. package/dist/src/components/Group/Group.d.ts +0 -23
  48. package/dist/src/components/HoverCard/HoverCard.d.ts +0 -45
  49. package/dist/src/components/Label/Label.d.ts +0 -6
  50. package/dist/src/components/Label/index.d.ts +0 -1
  51. package/dist/src/components/Link/Link.d.ts +0 -23
  52. package/dist/src/components/Link/index.d.ts +0 -1
  53. package/dist/src/components/Loader/Loader.d.ts +0 -5
  54. package/dist/src/components/Menu/Menu.d.ts +0 -116
  55. package/dist/src/components/Modal/Modal.d.ts +0 -54
  56. package/dist/src/components/Modal/index.d.ts +0 -1
  57. package/dist/src/components/NumberInput/NumberInput.d.ts +0 -9
  58. package/dist/src/components/Pagination/Pagination.d.ts +0 -69
  59. package/dist/src/components/Pagination/Pagination.icons.d.ts +0 -8
  60. package/dist/src/components/Pagination/index.d.ts +0 -1
  61. package/dist/src/components/Panel/Panel.d.ts +0 -74
  62. package/dist/src/components/Popover/Popover.d.ts +0 -47
  63. package/dist/src/components/Popover/index.d.ts +0 -1
  64. package/dist/src/components/Radio/Radio.d.ts +0 -13
  65. package/dist/src/components/Radio/RadioGroup.d.ts +0 -9
  66. package/dist/src/components/ReadOnlyField/ReadOnlyBooleanField.d.ts +0 -5
  67. package/dist/src/components/ReadOnlyField/ReadOnlyField.d.ts +0 -12
  68. package/dist/src/components/ReadOnlyField/ReadOnlySwitchField.d.ts +0 -5
  69. package/dist/src/components/ReadOnlyField/ReadOnlyTextField.d.ts +0 -8
  70. package/dist/src/components/ReadOnlyField/WithReadOnlyWrapper.d.ts +0 -28
  71. package/dist/src/components/ReadOnlyField/index.d.ts +0 -5
  72. package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +0 -11
  73. package/dist/src/components/Slider/Slider.d.ts +0 -15
  74. package/dist/src/components/Stack/Stack.d.ts +0 -42
  75. package/dist/src/components/Stepper/Stepper.d.ts +0 -15
  76. package/dist/src/components/Switch/Switch.d.ts +0 -13
  77. package/dist/src/components/Switch/SwitchGroup.d.ts +0 -9
  78. package/dist/src/components/Table/Table.d.ts +0 -33
  79. package/dist/src/components/Tabs/Tabs.d.ts +0 -19
  80. package/dist/src/components/Text/Text.d.ts +0 -24
  81. package/dist/src/components/TextArea/TextArea.d.ts +0 -9
  82. package/dist/src/components/TextField/TextField.d.ts +0 -9
  83. package/dist/src/components/TimePicker/TimePicker.d.ts +0 -10
  84. package/dist/src/components/Timeline/Timeline.d.ts +0 -16
  85. package/dist/src/components/Timeline/TimelineItem.d.ts +0 -14
  86. package/dist/src/components/Title/Title.d.ts +0 -8
  87. package/dist/src/components/Toast/Toast.d.ts +0 -11
  88. package/dist/src/components/Toast/index.d.ts +0 -1
  89. package/dist/src/components/Tooltip/Tooltip.d.ts +0 -33
  90. package/dist/src/components/TransferList/TransferList.d.ts +0 -4
  91. package/dist/src/components/Tree/Tree.d.ts +0 -18
  92. package/dist/src/components/Tree/index.d.ts +0 -1
  93. package/dist/src/components/index.d.ts +0 -52
  94. package/dist/src/index.d.ts +0 -220
  95. package/dist/src/types/index.d.ts +0 -6
  96. package/dist/src/utils/ColorSchemeWrapper.d.ts +0 -3
  97. package/dist/src/utils/RequireAccessibleLabel.d.ts +0 -1
  98. package/dist/src/utils/copyToClipboard.d.ts +0 -8
  99. package/dist/src/utils/filterStylingProps.d.ts +0 -28
  100. package/dist/src/utils/index.d.ts +0 -1
  101. package/dist/vite.config.d.ts +0 -2
  102. package/dist/vitest.workspace.d.ts +0 -2
package/ARCHITECTURE.md CHANGED
@@ -13,3 +13,6 @@ This document describes the high-level architecture and philosophy of the `@recu
13
13
 
14
14
  - Components map closely to Mantine's structure but enforce Recursica design tokens.
15
15
  - We avoid over-styling; components only diverge from Mantine defaults when dictated by the Recursica design system.
16
+ - Each component adheres to the underlying UI-kit prop signature so that they can easily replace components in the existing code-base
17
+ - Recursica defines a set of common props that are shared across all framework adapters. These sometimes serve the same purpose as existing UI-kit props. In that case, the Recursica prop takes precedence and are the preferred way to achieve the desired effect.
18
+ - Adapter props are removed from the underlying UI-kit when it leads to behavior that Recursica does not support. Recursica is opinionated about the behavior of its components and does not support all of the behavior of the underlying UI-kit.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # @recursica/mantine-adapter
2
2
 
3
+ ## 0.39.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 106bc34: Accordion: closed silent prop-contract conflicts where native `expanded`/`onChange`/`expandIcon`/`icon` could override Recursica's own computed state, made `variant` a real predefined union instead of a bare string, and formally supported a per-item `disabled` prop in both adapters.
8
+ Also documented `children` across all Accordion sub-components in `RecursicaAccordionProps.ts`, including a new `RecursicaAccordionPanelProps` interface for the Panel.
9
+ - 106bc34: AssistiveElement: `assistiveVariant="error"` now defaults `role="alert"` in both adapters so
10
+ error text is announced by assistive tech as it appears or changes (an explicit `role` still
11
+ wins). Also (MUI only) closed a prop-contract conflict where native `error`/`component` could
12
+ silently override Recursica's own computed values, added the missing `RecursicaOverStyled`
13
+ wrapper, and hardened a CSS specificity tie against MUI's own `.Mui-error` color. Documented
14
+ `children` in `RecursicaAssistiveElementProps.ts` and added implementation notes to both adapters.
15
+
16
+ ### Patch Changes
17
+
18
+ - 106bc34: AutoComplete (Mantine): fixed error state not turning the border red — the `wrapperProps` `data-error` hack (copied from `Input`-based components) targets Mantine's `Input.Wrapper` for `InputBase`-based components like `Autocomplete`, not the input's own root box, so it never reached the CSS. Now passes `error` as a boolean directly to Mantine's `Autocomplete`, which sets the border-triggering attribute natively without duplicating the assistive error text.
19
+ - 106bc34: Avatar (MUI): fixed `variant` being fed into MUI's native shape prop instead of a color treatment, making it a silent no-op. Also documented `children` in the shared prop types and added missing mui-adapter implementation notes.
20
+ - 106bc34: Switch: attached `SwitchGroup` as the `Switch.Group` compound export (it existed standalone but was never attached), and tightened `RecursicaSwitchGroupProps` value types from `unknown[]` to `string[]`.
21
+ - 106bc34: SwitchGroup: fixed `side-by-side` layout always rendering as if stacked — the group was capped to the switch-item label's own 200px max-width, narrower than the mandatory 224px label column, guaranteeing a wrap.
22
+ - 106bc34: Switch (Mantine): fixed the focus ring rendering Mantine's default blue instead of Recursica's focus token — suppressed the native outline and drew the real ring on the track.
23
+ - Updated dependencies [106bc34]
24
+ - Updated dependencies [106bc34]
25
+ - Updated dependencies [106bc34]
26
+ - Updated dependencies [106bc34]
27
+ - Updated dependencies [106bc34]
28
+ - @recursica/adapter-common@0.15.0
29
+
30
+ ## 0.38.1
31
+
32
+ ### Patch Changes
33
+
34
+ - 778151b: Bundle `@recursica/adapter-common`'s types into each adapter's published `.d.ts` (via `vite-plugin-dts`'s `rollupTypes` + `bundledPackages`). Previously the generated declaration files re-exported and referenced `@recursica/adapter-common` by bare package specifier, which meant consumers' TypeScript needed `@recursica/adapter-common` resolvable even though the runtime JS and CSS were already fully self-contained. No public API changes — type names and shapes are unchanged, they're just inlined now instead of imported from the dependency.
35
+
3
36
  ## 0.38.0
4
37
 
5
38
  ### Minor Changes