xmlui 0.11.18 → 0.11.19
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/dist/lib/{index-PMsVrlLh.js → index-CtiJg1j6.js} +3698 -2501
- package/dist/lib/index.css +1 -1
- package/dist/lib/{initMock-BL6pZOMv.js → initMock-B4QMy8Go.js} +1 -1
- package/dist/lib/xmlui.d.ts +14 -0
- package/dist/lib/xmlui.js +2 -1
- package/dist/metadata/{collectedComponentMetadata-DluIiyr5.js → collectedComponentMetadata-_5XPZQ5U.js} +3629 -2433
- package/dist/metadata/{initMock-CWzXht5U.js → initMock-DhLoHW95.js} +1 -1
- package/dist/metadata/xmlui-metadata.css +1 -1
- package/dist/metadata/xmlui-metadata.js +1 -1
- package/dist/metadata/xmlui-metadata.umd.cjs +3 -3
- package/dist/standalone/xmlui-standalone.es.d.ts +28 -1
- package/dist/standalone/xmlui-standalone.umd.js +35 -35
- package/package.json +1 -1
|
@@ -15,6 +15,8 @@ import { ForwardRefExoticComponent } from 'react';
|
|
|
15
15
|
import { IconBaseProps as IconBaseProps_2 } from './components/Icon/IconNative';
|
|
16
16
|
import { IconPosition as IconPosition_2 } from './components/abstractions';
|
|
17
17
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
18
|
+
import { LayoutContext as LayoutContext_2 } from './abstractions/RendererDefs';
|
|
19
|
+
import { MemoExoticComponent } from 'react';
|
|
18
20
|
import { NavigateOptions } from 'react-router-dom';
|
|
19
21
|
import { OrientationOptions as OrientationOptions_2 } from './components/abstractions';
|
|
20
22
|
import { OverflowMode as OverflowMode_2 } from './components/abstractions';
|
|
@@ -24,6 +26,7 @@ import { ReactNode } from 'react';
|
|
|
24
26
|
import { RefAttributes } from 'react';
|
|
25
27
|
import { RefObject } from 'react';
|
|
26
28
|
import { Renderable } from 'react-hot-toast';
|
|
29
|
+
import { RenderChildFn as RenderChildFn_2 } from './abstractions/RendererDefs';
|
|
27
30
|
import { Root } from 'react-dom/client';
|
|
28
31
|
import { SetStateAction } from 'react';
|
|
29
32
|
import { SetupWorker } from 'msw/browser';
|
|
@@ -1133,6 +1136,19 @@ declare interface MemberAccessExpression extends ExpressionBase {
|
|
|
1133
1136
|
opt?: boolean;
|
|
1134
1137
|
}
|
|
1135
1138
|
|
|
1139
|
+
declare const MemoizedItem: MemoExoticComponent<({ node, item, context, renderChild, layoutContext, contextVars, itemKey, contextKey, }: MemoizedItemProps) => JSX_2.Element>;
|
|
1140
|
+
|
|
1141
|
+
declare type MemoizedItemProps = {
|
|
1142
|
+
node: ComponentDef | Array<ComponentDef>;
|
|
1143
|
+
item?: any;
|
|
1144
|
+
context?: any;
|
|
1145
|
+
renderChild: RenderChildFn;
|
|
1146
|
+
layoutContext?: LayoutContext;
|
|
1147
|
+
contextVars?: Record<string, any>;
|
|
1148
|
+
itemKey?: string;
|
|
1149
|
+
contextKey?: string;
|
|
1150
|
+
};
|
|
1151
|
+
|
|
1136
1152
|
declare const MenuItem: ForwardRefExoticComponent<MenuItemProps & RefAttributes<unknown>>;
|
|
1137
1153
|
|
|
1138
1154
|
declare type MenuItemProps = {
|
|
@@ -1811,6 +1827,16 @@ declare const standaloneExports: {
|
|
|
1811
1827
|
style?: default_2.CSSProperties;
|
|
1812
1828
|
className?: string;
|
|
1813
1829
|
} & default_2.RefAttributes<HTMLDivElement>>;
|
|
1830
|
+
MemoizedItem: default_2.MemoExoticComponent<({ node, item, context, renderChild, layoutContext, contextVars, itemKey, contextKey, }: {
|
|
1831
|
+
node: xmluiExports.ComponentDef | Array<xmluiExports.ComponentDef>;
|
|
1832
|
+
item?: any;
|
|
1833
|
+
context?: any;
|
|
1834
|
+
renderChild: RenderChildFn_2;
|
|
1835
|
+
layoutContext?: LayoutContext_2;
|
|
1836
|
+
contextVars?: Record<string, any>;
|
|
1837
|
+
itemKey?: string;
|
|
1838
|
+
contextKey?: string;
|
|
1839
|
+
}) => default_3.JSX.Element>;
|
|
1814
1840
|
};
|
|
1815
1841
|
export default standaloneExports;
|
|
1816
1842
|
|
|
@@ -2561,7 +2587,8 @@ declare namespace xmluiExports {
|
|
|
2561
2587
|
Tooltip,
|
|
2562
2588
|
DropdownMenu,
|
|
2563
2589
|
MenuItem,
|
|
2564
|
-
ContentSeparator
|
|
2590
|
+
ContentSeparator,
|
|
2591
|
+
MemoizedItem
|
|
2565
2592
|
}
|
|
2566
2593
|
}
|
|
2567
2594
|
|