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.
@@ -4321,23 +4321,24 @@ function getComposedRef(...refs) {
4321
4321
  return composeRefs(...nonUndefinedRefs);
4322
4322
  }
4323
4323
  const themeVars$U = `'{"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)"}'`;
4324
- const wrapper$l = "_wrapper_1le1z_15";
4325
- const verticalFullHeader = "_verticalFullHeader_1le1z_15";
4326
- const navPanelWrapper = "_navPanelWrapper_1le1z_15";
4327
- const vertical$5 = "_vertical_1le1z_15";
4328
- const contentWrapper$2 = "_contentWrapper_1le1z_33";
4329
- const noScrollbarGutters = "_noScrollbarGutters_1le1z_39";
4330
- const PagesWrapper = "_PagesWrapper_1le1z_46";
4331
- const footerWrapper = "_footerWrapper_1le1z_50";
4332
- const sticky = "_sticky_1le1z_53";
4333
- const nonSticky = "_nonSticky_1le1z_57";
4334
- const horizontal$5 = "_horizontal_1le1z_60";
4335
- const headerWrapper$1 = "_headerWrapper_1le1z_86";
4336
- const desktop = "_desktop_1le1z_92";
4337
- const PagesWrapperInner = "_PagesWrapperInner_1le1z_150";
4338
- const scrollWholePage = "_scrollWholePage_1le1z_228";
4339
- const content$7 = "_content_1le1z_33";
4340
- const withDefaultContentPadding = "_withDefaultContentPadding_1le1z_342";
4324
+ const wrapper$l = "_wrapper_188ri_15";
4325
+ const verticalFullHeader = "_verticalFullHeader_188ri_15";
4326
+ const navPanelWrapper = "_navPanelWrapper_188ri_15";
4327
+ const vertical$5 = "_vertical_188ri_15";
4328
+ const contentWrapper$2 = "_contentWrapper_188ri_33";
4329
+ const noScrollbarGutters = "_noScrollbarGutters_188ri_39";
4330
+ const PagesWrapper = "_PagesWrapper_188ri_46";
4331
+ const footerWrapper = "_footerWrapper_188ri_50";
4332
+ const sticky = "_sticky_188ri_53";
4333
+ const nonSticky = "_nonSticky_188ri_57";
4334
+ const horizontal$5 = "_horizontal_188ri_60";
4335
+ const headerWrapper$1 = "_headerWrapper_188ri_86";
4336
+ const desktop = "_desktop_188ri_92";
4337
+ const PagesWrapperInner = "_PagesWrapperInner_188ri_150";
4338
+ const noFooter = "_noFooter_188ri_208";
4339
+ const scrollWholePage = "_scrollWholePage_188ri_234";
4340
+ const content$7 = "_content_188ri_33";
4341
+ const withDefaultContentPadding = "_withDefaultContentPadding_188ri_348";
4341
4342
  const styles$1c = {
4342
4343
  themeVars: themeVars$U,
4343
4344
  wrapper: wrapper$l,
@@ -4354,6 +4355,7 @@ const styles$1c = {
4354
4355
  headerWrapper: headerWrapper$1,
4355
4356
  desktop,
4356
4357
  PagesWrapperInner,
4358
+ noFooter,
4357
4359
  scrollWholePage,
4358
4360
  content: content$7,
4359
4361
  withDefaultContentPadding
@@ -7430,6 +7432,7 @@ function App({
7430
7432
  {
7431
7433
  [styles$1c.scrollWholePage]: scrollWholePage2,
7432
7434
  [styles$1c.noScrollbarGutters]: noScrollbarGutters2,
7435
+ [styles$1c.noFooter]: !footerSticky,
7433
7436
  "media-large": mediaSize.largeScreen,
7434
7437
  "media-small": mediaSize.smallScreen,
7435
7438
  "media-desktop": mediaSize.desktop,
@@ -8282,7 +8285,7 @@ const NavLinkMd = createMetadata({
8282
8285
  [`textColor-${COMP$1t}`]: "$textColor-primary",
8283
8286
  [`textColor-${COMP$1t}--active`]: "$color-primary-500",
8284
8287
  [`fontWeight-${COMP$1t}--active`]: "$fontWeight-bold",
8285
- [`fontWeight-${COMP$1t}--pressed`]: "$fontWeight-normal",
8288
+ [`fontWeight-${COMP$1t}--pressed`]: "$fontWeight-bold",
8286
8289
  [`thickness-indicator-${COMP$1t}`]: "$space-0_5",
8287
8290
  [`outlineColor-${COMP$1t}--focus`]: "$outlineColor--focus",
8288
8291
  [`outlineWidth-${COMP$1t}--focus`]: "$outlineWidth--focus",
@@ -15619,10 +15622,10 @@ const avatarComponentRenderer = createComponentRenderer(
15619
15622
  );
15620
15623
  }
15621
15624
  );
15622
- const themeVars$D = `'{"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)"}'`;
15623
- const separator = "_separator_m0e86_14";
15624
- const horizontal$3 = "_horizontal_m0e86_27";
15625
- const vertical$3 = "_vertical_m0e86_31";
15625
+ const themeVars$D = `'{"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)"}'`;
15626
+ const separator = "_separator_1r9lf_14";
15627
+ const horizontal$3 = "_horizontal_1r9lf_27";
15628
+ const vertical$3 = "_vertical_1r9lf_31";
15626
15629
  const styles$Y = {
15627
15630
  themeVars: themeVars$D,
15628
15631
  separator,
@@ -15633,7 +15636,22 @@ const defaultProps$W = {
15633
15636
  orientation: "horizontal"
15634
15637
  };
15635
15638
  const ContentSeparator = forwardRef(
15636
- ({ orientation = defaultProps$W.orientation, size, style: style2, className, ...rest }, ref) => {
15639
+ ({ orientation = defaultProps$W.orientation, thickness, length, style: style2, className, ...rest }, ref) => {
15640
+ const inlineStyles = {};
15641
+ if (thickness !== void 0) {
15642
+ if (orientation === "horizontal") {
15643
+ inlineStyles.height = thickness;
15644
+ } else {
15645
+ inlineStyles.width = thickness;
15646
+ }
15647
+ }
15648
+ if (length !== void 0) {
15649
+ if (orientation === "horizontal") {
15650
+ inlineStyles.width = length;
15651
+ } else {
15652
+ inlineStyles.height = length;
15653
+ }
15654
+ }
15637
15655
  return /* @__PURE__ */ jsx(
15638
15656
  "div",
15639
15657
  {
@@ -15648,8 +15666,7 @@ const ContentSeparator = forwardRef(
15648
15666
  className
15649
15667
  ),
15650
15668
  style: {
15651
- height: orientation === "horizontal" ? size : void 0,
15652
- width: orientation === "horizontal" ? "100%" : size,
15669
+ ...inlineStyles,
15653
15670
  ...style2
15654
15671
  }
15655
15672
  }
@@ -15661,8 +15678,12 @@ const ContentSeparatorMd = createMetadata({
15661
15678
  status: "stable",
15662
15679
  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.",
15663
15680
  props: {
15664
- size: {
15665
- 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.",
15681
+ thickness: {
15682
+ 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).",
15683
+ valueType: "any"
15684
+ },
15685
+ length: {
15686
+ 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%).",
15666
15687
  valueType: "any"
15667
15688
  },
15668
15689
  orientation: {
@@ -15675,7 +15696,8 @@ const ContentSeparatorMd = createMetadata({
15675
15696
  themeVars: parseScssVar(styles$Y.themeVars),
15676
15697
  defaultThemeVars: {
15677
15698
  [`backgroundColor-${COMP$1h}`]: "$color-surface-200",
15678
- [`size-${COMP$1h}`]: "1px",
15699
+ [`thickness-${COMP$1h}`]: "1px",
15700
+ [`length-${COMP$1h}`]: "100%",
15679
15701
  [`marginVertical-${COMP$1h}`]: "0",
15680
15702
  [`marginHorizontal-${COMP$1h}`]: "0",
15681
15703
  [`paddingVertical-${COMP$1h}`]: "0",
@@ -15696,7 +15718,8 @@ const contentSeparatorComponentRenderer = createComponentRenderer(
15696
15718
  ContentSeparator,
15697
15719
  {
15698
15720
  orientation: extractValue(node.props.orientation),
15699
- size: extractValue.asSize(node.props.size),
15721
+ thickness: extractValue.asSize(node.props.thickness),
15722
+ length: extractValue.asSize(node.props.length),
15700
15723
  className
15701
15724
  }
15702
15725
  );
@@ -17986,6 +18009,8 @@ const CompoundComponent = forwardRef(
17986
18009
  appContext,
17987
18010
  state,
17988
18011
  lookupAction,
18012
+ contextVars,
18013
+ // Extract contextVars to prevent it from being passed to DOM elements
17989
18014
  ...restProps
17990
18015
  }, forwardedRef) => {
17991
18016
  const resolvedPropsInner = useMemo(() => {
@@ -24383,7 +24408,7 @@ function ApiInterceptorProvider({
24383
24408
  return;
24384
24409
  }
24385
24410
  void (async () => {
24386
- const { initMock } = await import("./initMock-GfhLAym0.js");
24411
+ const { initMock } = await import("./initMock-DK8FL64P.js");
24387
24412
  const apiInstance2 = await initMock(interceptor);
24388
24413
  setApiInstance(apiInstance2);
24389
24414
  setInitialized(true);
@@ -24400,7 +24425,7 @@ function ApiInterceptorProvider({
24400
24425
  if (process.env.VITE_MOCK_ENABLED) {
24401
24426
  const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
24402
24427
  useWorker ? import("./apiInterceptorWorker-dwrAyq6l.js") : Promise.resolve({ createApiInterceptorWorker: () => null }),
24403
- import("./initMock-GfhLAym0.js")
24428
+ import("./initMock-DK8FL64P.js")
24404
24429
  ]);
24405
24430
  if (interceptor || forceInitialize) {
24406
24431
  const apiInstance2 = await initMock(interceptor || {});
@@ -24437,7 +24462,7 @@ function ApiInterceptorProvider({
24437
24462
  void (async () => {
24438
24463
  const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
24439
24464
  import("./apiInterceptorWorker-dwrAyq6l.js"),
24440
- import("./initMock-GfhLAym0.js")
24465
+ import("./initMock-DK8FL64P.js")
24441
24466
  ]);
24442
24467
  const apiInstance2 = await initMock(interceptor);
24443
24468
  await createApiInterceptorWorker(apiInstance2, parentInterceptorWorker);
@@ -28892,6 +28917,7 @@ function AppNode({ node, extractValue, renderChild: renderChild2, className, loo
28892
28917
  ...appProps,
28893
28918
  header: renderedHeader,
28894
28919
  footer: renderedFooter,
28920
+ footerSticky,
28895
28921
  navPanel: renderedNavPanel,
28896
28922
  navPanelDef: NavPanel3,
28897
28923
  logoContentDef: node.props.logoTemplate,
@@ -29149,6 +29175,7 @@ const NavPanelMd = createMetadata({
29149
29175
  [`backgroundColor-${COMP$S}-horizontal`]: "$backgroundColor-AppHeader",
29150
29176
  [`border-${COMP$S}`]: "0px solid $borderColor",
29151
29177
  [`borderRight-${COMP$S}-vertical`]: "1px solid $borderColor",
29178
+ [`paddingVertical-${COMP$S}`]: "$space-5",
29152
29179
  [`paddingHorizontal-${COMP$S}`]: "0",
29153
29180
  [`paddingVertical-logo-${COMP$S}`]: "$space-4",
29154
29181
  [`paddingHorizontal-logo-${COMP$S}`]: "$space-4",
@@ -31017,6 +31044,8 @@ const RootThemeDefinition = {
31017
31044
  "boxShadow-spread-2-xl": "-6px -4px 40px 18px rgba(0, 0, 0, 0.1)",
31018
31045
  // --- The default maximum content width
31019
31046
  "maxWidth-content": "1280px",
31047
+ // --- The default maximum content column width
31048
+ "maxWidth-columnContent": "800px",
31020
31049
  // --- Background colors
31021
31050
  backgroundColor: "$color-surface-subtle",
31022
31051
  "backgroundColor-overlay": "rgba(0, 0, 0, 0.2)",
@@ -31944,6 +31973,36 @@ const XmlUiRedThemeDefinition = {
31944
31973
  extends: "xmlui",
31945
31974
  themeVars: { ...redThemeColors }
31946
31975
  };
31976
+ const XmlUiDocsThemeDefinition = {
31977
+ id: "xmlui-docs",
31978
+ extends: "xmlui",
31979
+ themeVars: {}
31980
+ };
31981
+ const XmlUiBlogThemeDefinition = {
31982
+ id: "xmlui-blog",
31983
+ extends: "xmlui",
31984
+ themeVars: {}
31985
+ };
31986
+ const XmlUiWebThemeDefinition = {
31987
+ id: "xmlui-web",
31988
+ extends: "xmlui",
31989
+ themeVars: {
31990
+ // --- Fundamental colors & typography
31991
+ "maxWidth-content-AppHeader": "1280px",
31992
+ backgroundColor: "$color-surface-0",
31993
+ "color-primary": "#3367CC",
31994
+ "color-surface": "#1e2734",
31995
+ "fontWeight-Text": "400",
31996
+ "fontWeight-bold": "700",
31997
+ "textColor-primary": "$color-surface-800",
31998
+ "textColor-NavLink--active": "$color-primary",
31999
+ // --- App layout
32000
+ "maxWidth-content-App": "800px",
32001
+ // --- Headings
32002
+ "fontSize-H2": "32px",
32003
+ "fontSize-H3": "$space-6"
32004
+ }
32005
+ };
31947
32006
  const ThemeToneKeys = ["light", "dark"];
31948
32007
  function useCompiledTheme(activeTheme, activeTone, themes = EMPTY_ARRAY, resources = EMPTY_OBJECT, resourceMap = EMPTY_OBJECT) {
31949
32008
  const componentRegistry = useComponentRegistry();
@@ -32108,7 +32167,10 @@ const builtInThemes = [
32108
32167
  XmlUiOrangeThemeDefinition,
32109
32168
  XmlUiPurpleThemeDefinition,
32110
32169
  XmlUiCyanThemeDefinition,
32111
- XmlUiRedThemeDefinition
32170
+ XmlUiRedThemeDefinition,
32171
+ XmlUiDocsThemeDefinition,
32172
+ XmlUiBlogThemeDefinition,
32173
+ XmlUiWebThemeDefinition
32112
32174
  /*SolidThemeDefinition,*/
32113
32175
  ];
32114
32176
  function ThemeProvider({
@@ -46275,7 +46337,7 @@ function IconProvider({ children }) {
46275
46337
  /* @__PURE__ */ jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
46276
46338
  ] });
46277
46339
  }
46278
- const version = "0.11.9";
46340
+ const version = "0.11.11";
46279
46341
  const miscellaneousUtils = {
46280
46342
  capitalize,
46281
46343
  pluralize: pluralize$1,
@@ -49596,9 +49658,6 @@ const ComponentAdapter = forwardRef(function ComponentAdapter2({
49596
49658
  (url) => {
49597
49659
  const extractedUrl = valueExtractor(url);
49598
49660
  if (typeof extractedUrl !== "string" || extractedUrl.trim() === "") {
49599
- console.warn(
49600
- `Component '${safeNode.type}': the extracted resource URL is not a valid string: value ${extractedUrl}, type ${typeof extractedUrl}`
49601
- );
49602
49661
  return void 0;
49603
49662
  }
49604
49663
  return getResourceUrl(extractedUrl);