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.
@@ -1,6 +1,6 @@
1
1
  import { delay as delay$1, HttpResponse, matchRequestUrl } from "msw";
2
2
  import { isArray, isObject, mapValues } from "lodash-es";
3
- import { r as runEventHandlerCode, g as getDate, d as delay, m as miscellaneousUtils, a as dateFunctions, o as orderBy, T as ThrowStatementError } from "./index-PMsVrlLh.js";
3
+ import { r as runEventHandlerCode, g as getDate, d as delay, m as miscellaneousUtils, a as dateFunctions, o as orderBy, T as ThrowStatementError } from "./index-BQKYtkKU.js";
4
4
  import Dexie from "dexie";
5
5
  var HttpStatusCode = /* @__PURE__ */ ((HttpStatusCode2) => {
6
6
  HttpStatusCode2[HttpStatusCode2["Continue"] = 100] = "Continue";
@@ -1291,6 +1291,7 @@ export declare const test: TestType<PlaywrightTestArgs & PlaywrightTestOptions &
1291
1291
  declare type TestBedDescription = Omit<Partial<StandaloneAppDescription>, "entryPoint" | "components"> & {
1292
1292
  testThemeVars?: Record<string, string>;
1293
1293
  components?: string[];
1294
+ appGlobals?: Record<string, any>;
1294
1295
  };
1295
1296
 
1296
1297
  declare type TestDriverExtenderProps = {
@@ -7,6 +7,7 @@ import { ErrorInfo } from 'react';
7
7
  import { ForwardedRef } from 'react';
8
8
  import { ForwardRefExoticComponent } from 'react';
9
9
  import { JSX as JSX_2 } from 'react/jsx-runtime';
10
+ import { MemoExoticComponent } from 'react';
10
11
  import { NavigateOptions } from 'react-router-dom';
11
12
  import { PathParams } from 'msw';
12
13
  import { QueryClient } from '@tanstack/react-query';
@@ -710,7 +711,7 @@ export declare function dReadonly(readOnly?: boolean): ComponentPropertyMetadata
710
711
 
711
712
  export declare function dRequired(): ComponentPropertyMetadata;
712
713
 
713
- export declare const DropdownMenu: ForwardRefExoticComponent<DropdownMenuProps & RefAttributes<unknown>>;
714
+ export declare const DropdownMenu: ForwardRefExoticComponent<DropdownMenuProps & RefAttributes<HTMLButtonElement>>;
714
715
 
715
716
  declare type DropdownMenuProps = {
716
717
  triggerTemplate?: ReactNode;
@@ -1115,6 +1116,15 @@ declare interface MemberAccessExpression extends ExpressionBase {
1115
1116
  opt?: boolean;
1116
1117
  }
1117
1118
 
1119
+ export declare const MemoizedItem: MemoExoticComponent<({ node, renderChild, layoutContext, contextVars, }: MemoizedItemProps) => JSX_2.Element>;
1120
+
1121
+ declare type MemoizedItemProps = {
1122
+ node: ComponentDef | Array<ComponentDef>;
1123
+ renderChild: RenderChildFn;
1124
+ layoutContext?: LayoutContext;
1125
+ contextVars?: Record<string, any>;
1126
+ };
1127
+
1118
1128
  export declare const MenuItem: ForwardRefExoticComponent<MenuItemProps & RefAttributes<unknown>>;
1119
1129
 
1120
1130
  declare type MenuItemProps = {
@@ -1339,13 +1349,14 @@ declare type Props_5 = {
1339
1349
 
1340
1350
  declare type Props_6 = {
1341
1351
  children?: ReactNode;
1342
- style?: React.CSSProperties;
1352
+ style?: CSSProperties;
1343
1353
  };
1344
1354
 
1345
1355
  declare type Props_7 = {
1346
1356
  id?: string;
1347
1357
  isRoot?: boolean;
1348
1358
  applyIf?: boolean;
1359
+ disableInlineStyle?: boolean;
1349
1360
  layoutContext?: LayoutContext;
1350
1361
  renderChild?: RenderChildFn;
1351
1362
  node?: ComponentDef;
@@ -1798,7 +1809,7 @@ declare type TextVariant = (typeof TextVariantKeys)[number];
1798
1809
 
1799
1810
  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"];
1800
1811
 
1801
- export declare function Theme({ id, isRoot, applyIf, renderChild, node, tone, toastDuration, themeVars, layoutContext, children, }: Props_7): string | number | boolean | Iterable<ReactNode> | JSX_2.Element;
1812
+ export declare function Theme({ id, isRoot, applyIf, disableInlineStyle, renderChild, node, tone, toastDuration, themeVars, layoutContext, children, }: Props_7): string | number | boolean | Iterable<ReactNode> | JSX_2.Element;
1802
1813
 
1803
1814
  export declare interface ThemeDefinition extends ThemeDefinitionDetails {
1804
1815
  id: string;
@@ -1828,6 +1839,7 @@ declare type ThemeScope = {
1828
1839
  themeVars: Record<string, string>;
1829
1840
  getResourceUrl: (resourceString?: string) => string | undefined;
1830
1841
  getThemeVar: (themeVar: string) => string | undefined;
1842
+ disableInlineStyle?: boolean;
1831
1843
  };
1832
1844
 
1833
1845
  export declare type ThemeTone = "light" | "dark";
package/dist/lib/xmlui.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aa, Z, al, a1, ax, av, _, $, ai, ak, aw, ag, ab, a2, a0, S, ar, b, ao, ap, a4, a5, ae, af, as, aj, at, au, ah, ad, c, f, e, h, j, k, l, i, n, p, q, s, u, v, x, w, t, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, P, N, O, Q, R, U, V, a3, W, X, a7, an, a6, a8, aq, a9, am, Y, ac } from "./index-PMsVrlLh.js";
1
+ import { aa, Z, al, a1, ax, av, _, $, ai, ak, ay, aw, ag, ab, a2, a0, S, ar, b, ao, ap, a4, a5, ae, af, as, aj, at, au, ah, ad, c, f, e, h, j, k, l, i, n, p, q, s, u, v, x, w, t, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, P, N, O, Q, R, U, V, a3, W, X, a7, an, a6, a8, aq, a9, am, Y, ac } from "./index-BQKYtkKU.js";
2
2
  import { f as f2, x as x2 } from "./xmlui-parser-9Yk-asFP.js";
3
3
  import { X as X2 } from "./xmlui-serializer-CeCcgdVR.js";
4
4
  export {
@@ -12,6 +12,7 @@ export {
12
12
  $ as Icon,
13
13
  ai as LinkNative,
14
14
  ak as Logo,
15
+ ay as MemoizedItem,
15
16
  aw as MenuItem,
16
17
  ag as NestedApp,
17
18
  ab as Spinner,