xmlui 0.11.18 → 0.11.20
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-BQKYtkKU.js} +3982 -2790
- package/dist/lib/index.css +1 -1
- package/dist/lib/{initMock-BL6pZOMv.js → initMock-DoewYSkg.js} +1 -1
- package/dist/lib/testing.d.ts +1 -0
- package/dist/lib/xmlui.d.ts +15 -3
- package/dist/lib/xmlui.js +2 -1
- package/dist/metadata/{collectedComponentMetadata-DluIiyr5.js → collectedComponentMetadata-Ul5p46oY.js} +4030 -2839
- package/dist/metadata/{initMock-CWzXht5U.js → initMock-CYmQLPJo.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 +26 -5
- package/dist/standalone/xmlui-standalone.umd.js +36 -36
- 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';
|
|
@@ -728,7 +731,7 @@ declare function dReadonly(readOnly?: boolean): ComponentPropertyMetadata;
|
|
|
728
731
|
|
|
729
732
|
declare function dRequired(): ComponentPropertyMetadata;
|
|
730
733
|
|
|
731
|
-
declare const DropdownMenu: ForwardRefExoticComponent<DropdownMenuProps & RefAttributes<
|
|
734
|
+
declare const DropdownMenu: ForwardRefExoticComponent<DropdownMenuProps & RefAttributes<HTMLButtonElement>>;
|
|
732
735
|
|
|
733
736
|
declare type DropdownMenuProps = {
|
|
734
737
|
triggerTemplate?: ReactNode;
|
|
@@ -1133,6 +1136,15 @@ declare interface MemberAccessExpression extends ExpressionBase {
|
|
|
1133
1136
|
opt?: boolean;
|
|
1134
1137
|
}
|
|
1135
1138
|
|
|
1139
|
+
declare const MemoizedItem: MemoExoticComponent<({ node, renderChild, layoutContext, contextVars, }: MemoizedItemProps) => JSX_2.Element>;
|
|
1140
|
+
|
|
1141
|
+
declare type MemoizedItemProps = {
|
|
1142
|
+
node: ComponentDef | Array<ComponentDef>;
|
|
1143
|
+
renderChild: RenderChildFn;
|
|
1144
|
+
layoutContext?: LayoutContext;
|
|
1145
|
+
contextVars?: Record<string, any>;
|
|
1146
|
+
};
|
|
1147
|
+
|
|
1136
1148
|
declare const MenuItem: ForwardRefExoticComponent<MenuItemProps & RefAttributes<unknown>>;
|
|
1137
1149
|
|
|
1138
1150
|
declare type MenuItemProps = {
|
|
@@ -1357,13 +1369,14 @@ declare type Props_5 = {
|
|
|
1357
1369
|
|
|
1358
1370
|
declare type Props_6 = {
|
|
1359
1371
|
children?: ReactNode;
|
|
1360
|
-
style?:
|
|
1372
|
+
style?: CSSProperties;
|
|
1361
1373
|
};
|
|
1362
1374
|
|
|
1363
1375
|
declare type Props_7 = {
|
|
1364
1376
|
id?: string;
|
|
1365
1377
|
isRoot?: boolean;
|
|
1366
1378
|
applyIf?: boolean;
|
|
1379
|
+
disableInlineStyle?: boolean;
|
|
1367
1380
|
layoutContext?: LayoutContext;
|
|
1368
1381
|
renderChild?: RenderChildFn;
|
|
1369
1382
|
node?: ComponentDef;
|
|
@@ -1789,7 +1802,7 @@ declare const standaloneExports: {
|
|
|
1789
1802
|
triggerButtonIconPosition?: IconPosition_2;
|
|
1790
1803
|
compact?: boolean;
|
|
1791
1804
|
modal?: boolean;
|
|
1792
|
-
} & default_2.RefAttributes<
|
|
1805
|
+
} & default_2.RefAttributes<HTMLButtonElement>>;
|
|
1793
1806
|
MenuItem: default_2.ForwardRefExoticComponent<{
|
|
1794
1807
|
icon?: default_2.ReactNode;
|
|
1795
1808
|
iconPosition?: IconPosition_2;
|
|
@@ -1811,6 +1824,12 @@ declare const standaloneExports: {
|
|
|
1811
1824
|
style?: default_2.CSSProperties;
|
|
1812
1825
|
className?: string;
|
|
1813
1826
|
} & default_2.RefAttributes<HTMLDivElement>>;
|
|
1827
|
+
MemoizedItem: default_2.MemoExoticComponent<({ node, renderChild, layoutContext, contextVars, }: {
|
|
1828
|
+
node: xmluiExports.ComponentDef | Array<xmluiExports.ComponentDef>;
|
|
1829
|
+
renderChild: RenderChildFn_2;
|
|
1830
|
+
layoutContext?: LayoutContext_2;
|
|
1831
|
+
contextVars?: Record<string, any>;
|
|
1832
|
+
}) => default_3.JSX.Element>;
|
|
1814
1833
|
};
|
|
1815
1834
|
export default standaloneExports;
|
|
1816
1835
|
|
|
@@ -2085,7 +2104,7 @@ declare type TextVariant = (typeof TextVariantKeys)[number];
|
|
|
2085
2104
|
|
|
2086
2105
|
declare const TextVariantKeys: readonly ["abbr", "cite", "code", "deleted", "inherit", "inserted", "keyboard", "marked", "sample", "sub", "sup", "var", "strong", "em", "mono", "title", "subtitle", "small", "caption", "placeholder", "paragraph", "subheading", "tableheading", "secondary"];
|
|
2087
2106
|
|
|
2088
|
-
declare function Theme({ id, isRoot, applyIf, renderChild, node, tone, toastDuration, themeVars, layoutContext, children, }: Props_7): string | number | boolean | Iterable<ReactNode> | JSX_2.Element;
|
|
2107
|
+
declare function Theme({ id, isRoot, applyIf, disableInlineStyle, renderChild, node, tone, toastDuration, themeVars, layoutContext, children, }: Props_7): string | number | boolean | Iterable<ReactNode> | JSX_2.Element;
|
|
2089
2108
|
|
|
2090
2109
|
declare interface ThemeDefinition extends ThemeDefinitionDetails {
|
|
2091
2110
|
id: string;
|
|
@@ -2115,6 +2134,7 @@ declare type ThemeScope = {
|
|
|
2115
2134
|
themeVars: Record<string, string>;
|
|
2116
2135
|
getResourceUrl: (resourceString?: string) => string | undefined;
|
|
2117
2136
|
getThemeVar: (themeVar: string) => string | undefined;
|
|
2137
|
+
disableInlineStyle?: boolean;
|
|
2118
2138
|
};
|
|
2119
2139
|
|
|
2120
2140
|
declare type ThemeTone = "light" | "dark";
|
|
@@ -2561,7 +2581,8 @@ declare namespace xmluiExports {
|
|
|
2561
2581
|
Tooltip,
|
|
2562
2582
|
DropdownMenu,
|
|
2563
2583
|
MenuItem,
|
|
2564
|
-
ContentSeparator
|
|
2584
|
+
ContentSeparator,
|
|
2585
|
+
MemoizedItem
|
|
2565
2586
|
}
|
|
2566
2587
|
}
|
|
2567
2588
|
|