@recursica/mui-adapter 0.38.0 → 0.39.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 +25 -0
- package/dist/index.d.ts +19 -29
- package/dist/mui-adapter.cjs +55 -55
- package/dist/mui-adapter.cjs.map +1 -1
- package/dist/mui-adapter.css +1 -1
- package/dist/mui-adapter.js +3266 -3267
- package/dist/mui-adapter.js.map +1 -1
- package/package.json +3 -3
- package/src/Introduction.stories.tsx +2 -1
- package/src/OverStyling.tsx +1 -2
- package/src/Version.tsx +2 -2
- package/src/components/Accordion/Accordion.stories.tsx +36 -21
- package/src/components/{Autocomplete/Autocomplete.stories.tsx → AutoComplete/AutoComplete.stories.tsx} +2 -2
- package/src/components/{Autocomplete/Autocomplete.tsx → AutoComplete/AutoComplete.tsx} +5 -5
- package/src/components/AutoComplete/index.ts +1 -0
- package/src/components/Dropdown/Dropdown.stories.tsx +2 -8
- package/src/components/Dropdown/Dropdown.tsx +0 -2
- package/src/components/FormControlLayout/FormControlLayout.stories.tsx +37 -1
- package/src/components/Label/Label.stories.tsx +1 -1
- package/src/components/Panel/Panel.tsx +1 -1
- package/src/components/index.ts +1 -2
- package/src/index.ts +3 -4
- package/src/components/Autocomplete/index.ts +0 -1
- package/src/components/Box/Box.stories.tsx +0 -68
- package/src/components/Box/Box.test.tsx +0 -1
- package/src/components/Box/Box.tsx +0 -24
- package/src/components/Box/IMPLEMENTATION_NOTES.md +0 -5
- package/src/components/Box/USAGE.md +0 -48
- package/src/components/Box/index.ts +0 -1
- /package/src/components/{Autocomplete/Autocomplete.module.css → AutoComplete/AutoComplete.module.css} +0 -0
- /package/src/components/{Autocomplete/Autocomplete.test.tsx → AutoComplete/AutoComplete.test.tsx} +0 -0
- /package/src/components/{Autocomplete/AUTOCOMPLETE_IMPLEMENTATION_NOTES.md → AutoComplete/IMPLEMENTATION_NOTES.md} +0 -0
- /package/src/components/{Autocomplete → AutoComplete}/USAGE.md +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @recursica/mui-adapter
|
|
2
2
|
|
|
3
|
+
## 0.39.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a104e8a: Removed `searchable` from `Dropdown`'s shared contract — not a supported feature (that's `AutoComplete`'s job). mantine-adapter now strips it at runtime like its other unsupported native props; mui-adapter never wired it up.
|
|
8
|
+
- a104e8a: Fixed `Panel`'s `wrapHeaderText` default (was `false`, contract documents `true`) in both adapters.
|
|
9
|
+
- Updated dependencies [a104e8a]
|
|
10
|
+
- Updated dependencies [a104e8a]
|
|
11
|
+
- @recursica/adapter-common@0.28.1
|
|
12
|
+
|
|
13
|
+
## 0.39.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- cb3796a: Added an `animate` prop to `Loader` (default `true`) — set `false` to freeze its CSS animation for a deterministic render, e.g. a visual-regression snapshot. The `Static*` Loader stories now use it, and the animated `Default`/`LayerTwoOval` stories are excluded from adapter-tester's visual regression.
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- cb3796a: Fixed `Table` currency columns so header and footer cells right-align to match value cells. `Table.Th`/`Table.Cell` header context now supports `variant="currency"`.
|
|
22
|
+
- cb3796a: Added `leftSection` support to `TimePicker` for an optional leading icon, matching `TextField`'s convention.
|
|
23
|
+
- Updated dependencies [cb3796a]
|
|
24
|
+
- Updated dependencies [cb3796a]
|
|
25
|
+
- Updated dependencies [cb3796a]
|
|
26
|
+
- @recursica/adapter-common@0.28.0
|
|
27
|
+
|
|
3
28
|
## 0.38.0
|
|
4
29
|
|
|
5
30
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { AlertProps } from '@mui/material';
|
|
|
5
5
|
import { AutocompleteProps } from '@mui/material';
|
|
6
6
|
import { AvatarProps as AvatarProps_2 } from '@mui/material';
|
|
7
7
|
import { BadgeProps as BadgeProps_2 } from '@mui/material';
|
|
8
|
-
import { BoxProps
|
|
8
|
+
import { BoxProps } from '@mui/material';
|
|
9
9
|
import { BreadcrumbsProps } from '@mui/material';
|
|
10
10
|
import { ButtonProps as ButtonProps_2 } from '@mui/material';
|
|
11
11
|
import { CardOwnProps } from '@mui/material';
|
|
@@ -189,9 +189,9 @@ declare const AssistiveElement_2: default_2.ForwardRefExoticComponent<(Omit<Omit
|
|
|
189
189
|
|
|
190
190
|
declare type AssistiveElementProps = RecursicaOverStyled<Omit<FormHelperTextProps, "error" | "component"> & RecursicaAssistiveElementProps>;
|
|
191
191
|
|
|
192
|
-
export declare const
|
|
192
|
+
export declare const AutoComplete: typeof rawComponents.AutoComplete;
|
|
193
193
|
|
|
194
|
-
declare const
|
|
194
|
+
declare const AutoComplete_2: default_2.ForwardRefExoticComponent<(Omit<Omit<WithRecursicaSpacing<RecursicaAutocompleteProps>, BlockedStylingKeys> & ForbiddenStyles & {
|
|
195
195
|
overStyled?: false | undefined;
|
|
196
196
|
}, "ref"> | Omit<Omit<RecursicaAutocompleteProps, "m" | "my" | "mx" | "mt" | "mb" | "ml" | "mr" | "gap" | "rowGap" | "columnGap" | "gutter" | "spacing"> & {
|
|
197
197
|
m?: string | number | RecursicaSpacing;
|
|
@@ -210,7 +210,7 @@ declare const Autocomplete_2: default_2.ForwardRefExoticComponent<(Omit<Omit<Wit
|
|
|
210
210
|
overStyled: true;
|
|
211
211
|
}, "ref">) & default_2.RefAttributes<HTMLInputElement>>;
|
|
212
212
|
|
|
213
|
-
declare type
|
|
213
|
+
declare type AutoCompleteProps = RecursicaOverStyled<RecursicaAutocompleteProps>;
|
|
214
214
|
|
|
215
215
|
export declare const Avatar: typeof rawComponents.Avatar;
|
|
216
216
|
|
|
@@ -273,18 +273,6 @@ declare type BadgeProps = RecursicaOverStyled<Omit<BadgeProps_2, "variant" | "si
|
|
|
273
273
|
*/
|
|
274
274
|
export declare type BlockedStylingKeys = "className" | "classNames" | "classes" | "style" | "styles" | "vars" | "sx" | "p" | "px" | "py" | "pt" | "pb" | "pl" | "pr" | "bg" | "c" | "opacity" | "ff" | "fz" | "fw" | "lts" | "ta" | "lh" | "fs" | "tt" | "td" | "bd" | "bdw" | "bds" | "bdc" | "bdr" | "shadow" | "w" | "miw" | "maw" | "h" | "mih" | "mah" | "color" | "bgcolor" | "backgroundColor" | "typography" | "fontFamily" | "fontSize" | "fontWeight" | "lineHeight" | "letterSpacing" | "textAlign" | "border" | "borderTop" | "borderBottom" | "borderLeft" | "borderRight" | "borderColor" | "borderRadius" | "boxShadow" | "display" | "position" | "zIndex";
|
|
275
275
|
|
|
276
|
-
export declare const Box: <C extends React.ElementType = "div">(props: rawComponents.BoxProps<C> & {
|
|
277
|
-
ref?: React.ForwardedRef<any>;
|
|
278
|
-
}) => React.ReactElement | null;
|
|
279
|
-
|
|
280
|
-
declare const Box_2: <C extends default_2.ElementType = "div">(props: BoxProps<C> & {
|
|
281
|
-
ref?: default_2.ForwardedRef<any>;
|
|
282
|
-
}) => default_2.ReactElement | null;
|
|
283
|
-
|
|
284
|
-
declare type BoxProps<C extends default_2.ElementType = "div"> = BoxProps_2<C, {
|
|
285
|
-
component?: C;
|
|
286
|
-
}>;
|
|
287
|
-
|
|
288
276
|
export declare const Breadcrumb: typeof rawComponents.Breadcrumb;
|
|
289
277
|
|
|
290
278
|
declare const Breadcrumb_2: ForwardRefExoticComponent<(Omit<Omit<WithRecursicaSpacing<Omit<BreadcrumbsProps, "variant" | "size"> & RecursicaBreadcrumbProps>, BlockedStylingKeys> & ForbiddenStyles & {
|
|
@@ -617,7 +605,7 @@ declare interface FlexOwnProps {
|
|
|
617
605
|
wrap?: React.CSSProperties["flexWrap"];
|
|
618
606
|
}
|
|
619
607
|
|
|
620
|
-
declare type FlexProps = WithRecursicaSpacing<OmitSx<
|
|
608
|
+
declare type FlexProps = WithRecursicaSpacing<OmitSx<BoxProps & FlexOwnProps>>;
|
|
621
609
|
|
|
622
610
|
export declare type ForbiddenStyles = {
|
|
623
611
|
[K in BlockedStylingKeys]?: never;
|
|
@@ -1296,14 +1284,12 @@ declare namespace rawComponents {
|
|
|
1296
1284
|
AssistiveElementProps,
|
|
1297
1285
|
AssistiveElement_2 as AssistiveElement,
|
|
1298
1286
|
RecursicaAutocompleteProps,
|
|
1299
|
-
|
|
1300
|
-
|
|
1287
|
+
AutoCompleteProps,
|
|
1288
|
+
AutoComplete_2 as AutoComplete,
|
|
1301
1289
|
AvatarProps,
|
|
1302
1290
|
Avatar_2 as Avatar,
|
|
1303
1291
|
BadgeProps,
|
|
1304
1292
|
Badge_2 as Badge,
|
|
1305
|
-
BoxProps,
|
|
1306
|
-
Box_2 as Box,
|
|
1307
1293
|
BreadcrumbProps,
|
|
1308
1294
|
Breadcrumb_2 as Breadcrumb,
|
|
1309
1295
|
ButtonProps,
|
|
@@ -1539,8 +1525,11 @@ export declare interface RecursicaAccordionItemProps {
|
|
|
1539
1525
|
leftIcon?: default_2.ReactNode;
|
|
1540
1526
|
/** Toggle visibility of the divider below the item */
|
|
1541
1527
|
divider?: boolean;
|
|
1542
|
-
/** Unique value identifier for this item
|
|
1543
|
-
|
|
1528
|
+
/** Unique value identifier for this item. Required — omitting it on multiple items collapses
|
|
1529
|
+
* them to the same identity and they toggle together (see beam-adapter's
|
|
1530
|
+
* docs/OPEN_DECISIONS.md #23b). Was optional in the type until 2026-08-29 even though every
|
|
1531
|
+
* real consumer already supplied it. */
|
|
1532
|
+
value: string;
|
|
1544
1533
|
/** Disables interaction with this item — it can't be expanded or collapsed, and is dimmed */
|
|
1545
1534
|
disabled?: boolean;
|
|
1546
1535
|
}
|
|
@@ -1815,8 +1804,6 @@ declare interface RecursicaDropdownProps_2 {
|
|
|
1815
1804
|
* selected display text — stays a real string (a whole subtree can't be matched/written),
|
|
1816
1805
|
* unlike the `ReactNode` this was previously typed as. Falls back to `value` when omitted. */
|
|
1817
1806
|
data?: RecursicaComboboxData;
|
|
1818
|
-
/** Enable autocomplete search functionality */
|
|
1819
|
-
searchable?: boolean;
|
|
1820
1807
|
/** Show input clear option button */
|
|
1821
1808
|
clearable?: boolean;
|
|
1822
1809
|
/** Marks field with visual asterisk */
|
|
@@ -2023,8 +2010,9 @@ declare interface RecursicaFileUploadProps_2 extends Omit<default_2.HTMLAttribut
|
|
|
2023
2010
|
export declare interface RecursicaFormControlLayoutProps {
|
|
2024
2011
|
/** Layout structure direction */
|
|
2025
2012
|
formLayout?: "stacked" | "side-by-side";
|
|
2026
|
-
/** Label sizing constraint
|
|
2027
|
-
|
|
2013
|
+
/** Label sizing constraint. Only `small`/`default` are defined by Recursica's Label tokens —
|
|
2014
|
+
* `md` was never a real design size and has been removed. */
|
|
2015
|
+
labelSize?: "small" | "default";
|
|
2028
2016
|
/** Optional left section element (usually Label) */
|
|
2029
2017
|
leftSection?: default_2.ReactNode;
|
|
2030
2018
|
/** Main wrapper bounding maximum width */
|
|
@@ -2103,8 +2091,10 @@ export declare interface RecursicaHoverCardProps {
|
|
|
2103
2091
|
* Base properties for Recursica label indicators.
|
|
2104
2092
|
*/
|
|
2105
2093
|
export declare interface RecursicaLabelProps {
|
|
2106
|
-
/** Specifies the sizing metrics natively mapping the Label boundaries.
|
|
2107
|
-
|
|
2094
|
+
/** Specifies the sizing metrics natively mapping the Label boundaries. Only `default`/`small`
|
|
2095
|
+
* are defined by Recursica's Label tokens — `md` was never a real design size (no adapter had
|
|
2096
|
+
* a width rule for it) and has been removed; see docs/OPEN_DECISIONS.md #41 in beam-adapter. */
|
|
2097
|
+
labelSize?: "default" | "small";
|
|
2108
2098
|
/**
|
|
2109
2099
|
* Overall alignment directive for the label strings natively forcing Left/Right justification.
|
|
2110
2100
|
* Not renamed to Forge's `labelAlign`: our own vocabulary, not either kit's native term.
|