xmlui 0.11.9 → 0.11.11

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-Dh81qoMM.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-BNm0RhXG.js";
4
4
  import Dexie from "dexie";
5
5
  var HttpStatusCode = /* @__PURE__ */ ((HttpStatusCode2) => {
6
6
  HttpStatusCode2[HttpStatusCode2["Continue"] = 100] = "Continue";
@@ -559,7 +559,8 @@ declare type ContainerState = Record<string | symbol, any>;
559
559
  export declare const ContentSeparator: ForwardRefExoticComponent<ContentSeparatorProps & RefAttributes<HTMLDivElement>>;
560
560
 
561
561
  declare type ContentSeparatorProps = {
562
- size?: number | string;
562
+ thickness?: number | string;
563
+ length?: number | string;
563
564
  orientation?: string;
564
565
  style?: CSSProperties;
565
566
  className?: string;
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-Dh81qoMM.js";
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-BNm0RhXG.js";
2
2
  import { e as e2, x as x2 } from "./xmlui-parser-CW8YmGjO.js";
3
3
  import { X as X2 } from "./xmlui-serializer-CeCcgdVR.js";
4
4
  export {
@@ -5879,6 +5879,8 @@ const RootThemeDefinition = {
5879
5879
  "boxShadow-spread-2-xl": "-6px -4px 40px 18px rgba(0, 0, 0, 0.1)",
5880
5880
  // --- The default maximum content width
5881
5881
  "maxWidth-content": "1280px",
5882
+ // --- The default maximum content column width
5883
+ "maxWidth-columnContent": "800px",
5882
5884
  // --- Background colors
5883
5885
  backgroundColor: "$color-surface-subtle",
5884
5886
  "backgroundColor-overlay": "rgba(0, 0, 0, 0.2)",
@@ -6810,6 +6812,36 @@ const XmlUiRedThemeDefinition = {
6810
6812
  extends: "xmlui",
6811
6813
  themeVars: { ...redThemeColors }
6812
6814
  };
6815
+ const XmlUiDocsThemeDefinition = {
6816
+ id: "xmlui-docs",
6817
+ extends: "xmlui",
6818
+ themeVars: {}
6819
+ };
6820
+ const XmlUiBlogThemeDefinition = {
6821
+ id: "xmlui-blog",
6822
+ extends: "xmlui",
6823
+ themeVars: {}
6824
+ };
6825
+ const XmlUiWebThemeDefinition = {
6826
+ id: "xmlui-web",
6827
+ extends: "xmlui",
6828
+ themeVars: {
6829
+ // --- Fundamental colors & typography
6830
+ "maxWidth-content-AppHeader": "1280px",
6831
+ backgroundColor: "$color-surface-0",
6832
+ "color-primary": "#3367CC",
6833
+ "color-surface": "#1e2734",
6834
+ "fontWeight-Text": "400",
6835
+ "fontWeight-bold": "700",
6836
+ "textColor-primary": "$color-surface-800",
6837
+ "textColor-NavLink--active": "$color-primary",
6838
+ // --- App layout
6839
+ "maxWidth-content-App": "800px",
6840
+ // --- Headings
6841
+ "fontSize-H2": "32px",
6842
+ "fontSize-H3": "$space-6"
6843
+ }
6844
+ };
6813
6845
  const ThemeToneKeys = ["light", "dark"];
6814
6846
  function useCompiledTheme(activeTheme, activeTone, themes = EMPTY_ARRAY, resources = EMPTY_OBJECT, resourceMap = EMPTY_OBJECT) {
6815
6847
  const componentRegistry = useComponentRegistry();
@@ -6974,7 +7006,10 @@ const builtInThemes = [
6974
7006
  XmlUiOrangeThemeDefinition,
6975
7007
  XmlUiPurpleThemeDefinition,
6976
7008
  XmlUiCyanThemeDefinition,
6977
- XmlUiRedThemeDefinition
7009
+ XmlUiRedThemeDefinition,
7010
+ XmlUiDocsThemeDefinition,
7011
+ XmlUiBlogThemeDefinition,
7012
+ XmlUiWebThemeDefinition
6978
7013
  /*SolidThemeDefinition,*/
6979
7014
  ];
6980
7015
  function ThemeProvider({
@@ -7456,23 +7491,24 @@ const themeComponentRenderer = createComponentRenderer(
7456
7491
  }
7457
7492
  );
7458
7493
  const themeVars$X = `'{"width-navPanel-App": "var(--xmlui-width-navPanel-App)", "backgroundColor-navPanel-App": "var(--xmlui-backgroundColor-navPanel-App)", "boxShadow-header-App": "var(--xmlui-boxShadow-header-App)", "boxShadow-navPanel-App": "var(--xmlui-boxShadow-navPanel-App)", "backgroundColor-content-App": "var(--xmlui-backgroundColor-content-App)", "borderLeft-content-App": "var(--xmlui-borderLeft-content-App)", "maxWidth-content-App": "var(--xmlui-maxWidth-content-App)", "maxWidth-App": "var(--xmlui-maxWidth-App)", "backgroundColor-AppHeader": "var(--xmlui-backgroundColor-AppHeader)", "borderBottom-AppHeader": "var(--xmlui-borderBottom-AppHeader)", "scroll-padding-block-Pages": "var(--xmlui-scroll-padding-block-Pages)"}'`;
7459
- const wrapper$k = "_wrapper_1le1z_15";
7460
- const verticalFullHeader = "_verticalFullHeader_1le1z_15";
7461
- const navPanelWrapper = "_navPanelWrapper_1le1z_15";
7462
- const vertical$7 = "_vertical_1le1z_15";
7463
- const contentWrapper$2 = "_contentWrapper_1le1z_33";
7464
- const noScrollbarGutters = "_noScrollbarGutters_1le1z_39";
7465
- const PagesWrapper = "_PagesWrapper_1le1z_46";
7466
- const footerWrapper = "_footerWrapper_1le1z_50";
7467
- const sticky = "_sticky_1le1z_53";
7468
- const nonSticky = "_nonSticky_1le1z_57";
7469
- const horizontal$6 = "_horizontal_1le1z_60";
7470
- const headerWrapper$1 = "_headerWrapper_1le1z_86";
7471
- const desktop = "_desktop_1le1z_92";
7472
- const PagesWrapperInner = "_PagesWrapperInner_1le1z_150";
7473
- const scrollWholePage = "_scrollWholePage_1le1z_228";
7474
- const content$8 = "_content_1le1z_33";
7475
- const withDefaultContentPadding = "_withDefaultContentPadding_1le1z_342";
7494
+ const wrapper$k = "_wrapper_188ri_15";
7495
+ const verticalFullHeader = "_verticalFullHeader_188ri_15";
7496
+ const navPanelWrapper = "_navPanelWrapper_188ri_15";
7497
+ const vertical$7 = "_vertical_188ri_15";
7498
+ const contentWrapper$2 = "_contentWrapper_188ri_33";
7499
+ const noScrollbarGutters = "_noScrollbarGutters_188ri_39";
7500
+ const PagesWrapper = "_PagesWrapper_188ri_46";
7501
+ const footerWrapper = "_footerWrapper_188ri_50";
7502
+ const sticky = "_sticky_188ri_53";
7503
+ const nonSticky = "_nonSticky_188ri_57";
7504
+ const horizontal$6 = "_horizontal_188ri_60";
7505
+ const headerWrapper$1 = "_headerWrapper_188ri_86";
7506
+ const desktop = "_desktop_188ri_92";
7507
+ const PagesWrapperInner = "_PagesWrapperInner_188ri_150";
7508
+ const noFooter = "_noFooter_188ri_208";
7509
+ const scrollWholePage = "_scrollWholePage_188ri_234";
7510
+ const content$8 = "_content_188ri_33";
7511
+ const withDefaultContentPadding = "_withDefaultContentPadding_188ri_348";
7476
7512
  const styles$1b = {
7477
7513
  themeVars: themeVars$X,
7478
7514
  wrapper: wrapper$k,
@@ -7489,6 +7525,7 @@ const styles$1b = {
7489
7525
  headerWrapper: headerWrapper$1,
7490
7526
  desktop,
7491
7527
  PagesWrapperInner,
7528
+ noFooter,
7492
7529
  scrollWholePage,
7493
7530
  content: content$8,
7494
7531
  withDefaultContentPadding
@@ -15348,6 +15385,7 @@ function App({
15348
15385
  {
15349
15386
  [styles$1b.scrollWholePage]: scrollWholePage2,
15350
15387
  [styles$1b.noScrollbarGutters]: noScrollbarGutters2,
15388
+ [styles$1b.noFooter]: !footerSticky,
15351
15389
  "media-large": mediaSize.largeScreen,
15352
15390
  "media-small": mediaSize.smallScreen,
15353
15391
  "media-desktop": mediaSize.desktop,
@@ -15909,6 +15947,7 @@ function AppNode({ node, extractValue, renderChild: renderChild2, className, loo
15909
15947
  ...appProps,
15910
15948
  header: renderedHeader,
15911
15949
  footer: renderedFooter,
15950
+ footerSticky,
15912
15951
  navPanel: renderedNavPanel,
15913
15952
  navPanelDef: NavPanel3,
15914
15953
  logoContentDef: node.props.logoTemplate,
@@ -17576,10 +17615,10 @@ const checkboxComponentRenderer = createComponentRenderer(
17576
17615
  );
17577
17616
  }
17578
17617
  );
17579
- const themeVars$K = `'{"backgroundColor-ContentSeparator": "var(--xmlui-backgroundColor-ContentSeparator)", "size-ContentSeparator": "var(--xmlui-size-ContentSeparator)", "marginTop-ContentSeparator": "var(--xmlui-marginTop-ContentSeparator)", "marginBottom-ContentSeparator": "var(--xmlui-marginBottom-ContentSeparator)", "marginVertical-ContentSeparator": "var(--xmlui-marginVertical-ContentSeparator)", "marginLeft-ContentSeparator": "var(--xmlui-marginLeft-ContentSeparator)", "marginRight-ContentSeparator": "var(--xmlui-marginRight-ContentSeparator)", "marginHorizontal-ContentSeparator": "var(--xmlui-marginHorizontal-ContentSeparator)", "paddingTop-ContentSeparator": "var(--xmlui-paddingTop-ContentSeparator)", "paddingBottom-ContentSeparator": "var(--xmlui-paddingBottom-ContentSeparator)", "paddingVertical-ContentSeparator": "var(--xmlui-paddingVertical-ContentSeparator)", "paddingLeft-ContentSeparator": "var(--xmlui-paddingLeft-ContentSeparator)", "paddingRight-ContentSeparator": "var(--xmlui-paddingRight-ContentSeparator)", "paddingHorizontal-ContentSeparator": "var(--xmlui-paddingHorizontal-ContentSeparator)"}'`;
17580
- const separator = "_separator_m0e86_14";
17581
- const horizontal$3 = "_horizontal_m0e86_27";
17582
- const vertical$3 = "_vertical_m0e86_31";
17618
+ const themeVars$K = `'{"backgroundColor-ContentSeparator": "var(--xmlui-backgroundColor-ContentSeparator)", "thickness-ContentSeparator": "var(--xmlui-thickness-ContentSeparator)", "length-ContentSeparator": "var(--xmlui-length-ContentSeparator)", "marginTop-ContentSeparator": "var(--xmlui-marginTop-ContentSeparator)", "marginBottom-ContentSeparator": "var(--xmlui-marginBottom-ContentSeparator)", "marginVertical-ContentSeparator": "var(--xmlui-marginVertical-ContentSeparator)", "marginLeft-ContentSeparator": "var(--xmlui-marginLeft-ContentSeparator)", "marginRight-ContentSeparator": "var(--xmlui-marginRight-ContentSeparator)", "marginHorizontal-ContentSeparator": "var(--xmlui-marginHorizontal-ContentSeparator)", "paddingTop-ContentSeparator": "var(--xmlui-paddingTop-ContentSeparator)", "paddingBottom-ContentSeparator": "var(--xmlui-paddingBottom-ContentSeparator)", "paddingVertical-ContentSeparator": "var(--xmlui-paddingVertical-ContentSeparator)", "paddingLeft-ContentSeparator": "var(--xmlui-paddingLeft-ContentSeparator)", "paddingRight-ContentSeparator": "var(--xmlui-paddingRight-ContentSeparator)", "paddingHorizontal-ContentSeparator": "var(--xmlui-paddingHorizontal-ContentSeparator)"}'`;
17619
+ const separator = "_separator_1r9lf_14";
17620
+ const horizontal$3 = "_horizontal_1r9lf_27";
17621
+ const vertical$3 = "_vertical_1r9lf_31";
17583
17622
  const styles$$ = {
17584
17623
  themeVars: themeVars$K,
17585
17624
  separator,
@@ -17590,7 +17629,22 @@ const defaultProps$W = {
17590
17629
  orientation: "horizontal"
17591
17630
  };
17592
17631
  const ContentSeparator = forwardRef(
17593
- ({ orientation = defaultProps$W.orientation, size, style: style2, className, ...rest }, ref) => {
17632
+ ({ orientation = defaultProps$W.orientation, thickness, length, style: style2, className, ...rest }, ref) => {
17633
+ const inlineStyles = {};
17634
+ if (thickness !== void 0) {
17635
+ if (orientation === "horizontal") {
17636
+ inlineStyles.height = thickness;
17637
+ } else {
17638
+ inlineStyles.width = thickness;
17639
+ }
17640
+ }
17641
+ if (length !== void 0) {
17642
+ if (orientation === "horizontal") {
17643
+ inlineStyles.width = length;
17644
+ } else {
17645
+ inlineStyles.height = length;
17646
+ }
17647
+ }
17594
17648
  return /* @__PURE__ */ jsx(
17595
17649
  "div",
17596
17650
  {
@@ -17605,8 +17659,7 @@ const ContentSeparator = forwardRef(
17605
17659
  className
17606
17660
  ),
17607
17661
  style: {
17608
- height: orientation === "horizontal" ? size : void 0,
17609
- width: orientation === "horizontal" ? "100%" : size,
17662
+ ...inlineStyles,
17610
17663
  ...style2
17611
17664
  }
17612
17665
  }
@@ -17618,8 +17671,12 @@ const ContentSeparatorMd = createMetadata({
17618
17671
  status: "stable",
17619
17672
  description: "`ContentSeparator` creates visual dividers between content sections using horizontal or vertical lines. It's essential for improving readability by breaking up dense content, separating list items, or creating clear boundaries between different UI sections.",
17620
17673
  props: {
17621
- size: {
17622
- description: "This property defines the component's height (if the `orientation` is horizontal) or the width (if the `orientation` is vertical). If not defined, the component uses the entire available width or height.",
17674
+ thickness: {
17675
+ description: "This property defines the component's height (if the `orientation` is horizontal) or the width (if the `orientation` is vertical). If not defined, the component uses the theme variable `thickness-ContentSeparator` (default: 1px).",
17676
+ valueType: "any"
17677
+ },
17678
+ length: {
17679
+ description: "This property defines the component's width (if the `orientation` is horizontal) or the height (if the `orientation` is vertical). If not defined, the component uses the theme variable `length-ContentSeparator` (default: 100%).",
17623
17680
  valueType: "any"
17624
17681
  },
17625
17682
  orientation: {
@@ -17632,7 +17689,8 @@ const ContentSeparatorMd = createMetadata({
17632
17689
  themeVars: parseScssVar(styles$$.themeVars),
17633
17690
  defaultThemeVars: {
17634
17691
  [`backgroundColor-${COMP$1k}`]: "$color-surface-200",
17635
- [`size-${COMP$1k}`]: "1px",
17692
+ [`thickness-${COMP$1k}`]: "1px",
17693
+ [`length-${COMP$1k}`]: "100%",
17636
17694
  [`marginVertical-${COMP$1k}`]: "0",
17637
17695
  [`marginHorizontal-${COMP$1k}`]: "0",
17638
17696
  [`paddingVertical-${COMP$1k}`]: "0",
@@ -17653,7 +17711,8 @@ const contentSeparatorComponentRenderer = createComponentRenderer(
17653
17711
  ContentSeparator,
17654
17712
  {
17655
17713
  orientation: extractValue(node.props.orientation),
17656
- size: extractValue.asSize(node.props.size),
17714
+ thickness: extractValue.asSize(node.props.thickness),
17715
+ length: extractValue.asSize(node.props.length),
17657
17716
  className
17658
17717
  }
17659
17718
  );
@@ -25608,7 +25667,7 @@ const NavLinkMd = createMetadata({
25608
25667
  [`textColor-${COMP$19}`]: "$textColor-primary",
25609
25668
  [`textColor-${COMP$19}--active`]: "$color-primary-500",
25610
25669
  [`fontWeight-${COMP$19}--active`]: "$fontWeight-bold",
25611
- [`fontWeight-${COMP$19}--pressed`]: "$fontWeight-normal",
25670
+ [`fontWeight-${COMP$19}--pressed`]: "$fontWeight-bold",
25612
25671
  [`thickness-indicator-${COMP$19}`]: "$space-0_5",
25613
25672
  [`outlineColor-${COMP$19}--focus`]: "$outlineColor--focus",
25614
25673
  [`outlineWidth-${COMP$19}--focus`]: "$outlineWidth--focus",
@@ -31706,6 +31765,8 @@ const CompoundComponent = forwardRef(
31706
31765
  appContext,
31707
31766
  state,
31708
31767
  lookupAction,
31768
+ contextVars,
31769
+ // Extract contextVars to prevent it from being passed to DOM elements
31709
31770
  ...restProps
31710
31771
  }, forwardedRef) => {
31711
31772
  const resolvedPropsInner = useMemo(() => {
@@ -33231,6 +33292,7 @@ const NavPanelMd = createMetadata({
33231
33292
  [`backgroundColor-${COMP$M}-horizontal`]: "$backgroundColor-AppHeader",
33232
33293
  [`border-${COMP$M}`]: "0px solid $borderColor",
33233
33294
  [`borderRight-${COMP$M}-vertical`]: "1px solid $borderColor",
33295
+ [`paddingVertical-${COMP$M}`]: "$space-5",
33234
33296
  [`paddingHorizontal-${COMP$M}`]: "0",
33235
33297
  [`paddingVertical-logo-${COMP$M}`]: "$space-4",
33236
33298
  [`paddingHorizontal-logo-${COMP$M}`]: "$space-4",
@@ -47885,7 +47947,7 @@ function IconProvider({ children }) {
47885
47947
  /* @__PURE__ */ jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
47886
47948
  ] });
47887
47949
  }
47888
- const version = "0.11.9";
47950
+ const version = "0.11.11";
47889
47951
  const miscellaneousUtils = {
47890
47952
  capitalize,
47891
47953
  pluralize: pluralize$1,
@@ -51339,9 +51401,6 @@ const ComponentAdapter = forwardRef(function ComponentAdapter2({
51339
51401
  (url) => {
51340
51402
  const extractedUrl = valueExtractor(url);
51341
51403
  if (typeof extractedUrl !== "string" || extractedUrl.trim() === "") {
51342
- console.warn(
51343
- `Component '${safeNode.type}': the extracted resource URL is not a valid string: value ${extractedUrl}, type ${typeof extractedUrl}`
51344
- );
51345
51404
  return void 0;
51346
51405
  }
51347
51406
  return getResourceUrl(extractedUrl);
@@ -55537,7 +55596,7 @@ function ApiInterceptorProvider({
55537
55596
  return;
55538
55597
  }
55539
55598
  void (async () => {
55540
- const { initMock } = await import("./initMock-BGnNBTSg.js");
55599
+ const { initMock } = await import("./initMock-Bndg9J7D.js");
55541
55600
  const apiInstance2 = await initMock(interceptor);
55542
55601
  setApiInstance(apiInstance2);
55543
55602
  setInitialized(true);
@@ -55554,7 +55613,7 @@ function ApiInterceptorProvider({
55554
55613
  if (define_process_env_default.VITE_MOCK_ENABLED) {
55555
55614
  const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
55556
55615
  useWorker ? import("./apiInterceptorWorker-Wgm2_zjg.js") : Promise.resolve({ createApiInterceptorWorker: () => null }),
55557
- import("./initMock-BGnNBTSg.js")
55616
+ import("./initMock-Bndg9J7D.js")
55558
55617
  ]);
55559
55618
  if (interceptor || forceInitialize) {
55560
55619
  const apiInstance2 = await initMock(interceptor || {});
@@ -55591,7 +55650,7 @@ function ApiInterceptorProvider({
55591
55650
  void (async () => {
55592
55651
  const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
55593
55652
  import("./apiInterceptorWorker-Wgm2_zjg.js"),
55594
- import("./initMock-BGnNBTSg.js")
55653
+ import("./initMock-Bndg9J7D.js")
55595
55654
  ]);
55596
55655
  const apiInstance2 = await initMock(interceptor);
55597
55656
  await createApiInterceptorWorker(apiInstance2, parentInterceptorWorker);
@@ -58550,7 +58609,10 @@ const collectedThemes = {
58550
58609
  xmluiOrange: XmlUiOrangeThemeDefinition,
58551
58610
  xmluiPurple: XmlUiPurpleThemeDefinition,
58552
58611
  xmluiCyan: XmlUiCyanThemeDefinition,
58553
- xmluiRed: XmlUiRedThemeDefinition
58612
+ xmluiRed: XmlUiRedThemeDefinition,
58613
+ xmluiDocs: XmlUiDocsThemeDefinition,
58614
+ xmluiBlog: XmlUiBlogThemeDefinition,
58615
+ xmluiWeb: XmlUiWebThemeDefinition
58554
58616
  };
58555
58617
  export {
58556
58618
  ThrowStatementError as T,
@@ -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 "./collectedComponentMetadata-DfzPdHnk.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 "./collectedComponentMetadata-DvV8yJ4N.js";
4
4
  import Dexie from "dexie";
5
5
  var HttpStatusCode = /* @__PURE__ */ ((HttpStatusCode2) => {
6
6
  HttpStatusCode2[HttpStatusCode2["Continue"] = 100] = "Continue";