@amirjalili1374/ui-kit 1.3.6 → 1.3.7

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/ui-kit.es.js CHANGED
@@ -38362,7 +38362,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
38362
38362
  railWidth: { default: 75 },
38363
38363
  containerClass: { default: "" },
38364
38364
  hideDefaultLogo: { type: Boolean, default: false },
38365
- debugBorders: { type: Boolean, default: false }
38365
+ debugBorders: { type: Boolean, default: false },
38366
+ preset: { default: "default" }
38366
38367
  },
38367
38368
  setup(__props) {
38368
38369
  const props = __props;
@@ -38376,8 +38377,13 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
38376
38377
  get: () => customizer.Sidebar_drawer,
38377
38378
  set: (val2) => customizer.SET_SIDEBAR_DRAWER(val2)
38378
38379
  });
38380
+ const resolvedLocation = computed(() => props.preset === "right-mini" ? "right" : props.location);
38381
+ const resolvedMini = computed(() => props.preset === "right-mini" ? true : isMini.value);
38382
+ const resolvedPermanent = computed(() => props.preset === "right-mini" ? true : props.permanent);
38383
+ const resolvedTemporary = computed(() => props.preset === "right-mini" ? false : props.temporary);
38384
+ const resolvedRailWidth = computed(() => props.preset === "right-mini" ? props.railWidth ?? 80 : props.railWidth);
38379
38385
  const navigationDrawerWidth = computed(
38380
- () => isMini.value ? props.railWidth : props.width
38386
+ () => resolvedMini.value ? resolvedRailWidth.value : props.width
38381
38387
  );
38382
38388
  const handleClick = (item) => {
38383
38389
  if (item.disabled) return;
@@ -38396,13 +38402,22 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
38396
38402
  return openBlock(), createBlock(VNavigationDrawer, {
38397
38403
  modelValue: drawer.value,
38398
38404
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => drawer.value = $event),
38399
- permanent: __props.permanent && !__props.temporary,
38400
- temporary: __props.temporary,
38401
- rail: __props.rail || isMini.value && !expandOnHover.value,
38405
+ permanent: resolvedPermanent.value && !resolvedTemporary.value,
38406
+ temporary: resolvedTemporary.value,
38407
+ rail: __props.rail || resolvedMini.value && !expandOnHover.value,
38402
38408
  "expand-on-hover": expandOnHover.value,
38403
- location: __props.location,
38409
+ location: resolvedLocation.value,
38404
38410
  width: navigationDrawerWidth.value,
38405
- class: normalizeClass([["app-sidebar leftSidebar", { "mini-sidebar": isMini.value, "debug-borders": __props.debugBorders }, __props.containerClass], "border-0"])
38411
+ class: normalizeClass([[
38412
+ "app-sidebar leftSidebar",
38413
+ {
38414
+ "mini-sidebar": resolvedMini.value,
38415
+ "debug-borders": __props.debugBorders,
38416
+ "rightSidebar": resolvedLocation.value === "right",
38417
+ "sidebar-closed": !drawer.value
38418
+ },
38419
+ __props.containerClass
38420
+ ], "border-0"])
38406
38421
  }, {
38407
38422
  default: withCtx(() => [
38408
38423
  createElementVNode("div", _hoisted_1$2, [
@@ -38606,7 +38621,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
38606
38621
  };
38607
38622
  }
38608
38623
  });
38609
- const AppSidebar = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__scopeId", "data-v-5a1deb68"]]);
38624
+ const AppSidebar = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__scopeId", "data-v-12f2804e"]]);
38610
38625
  const makeVToolbarTitleProps = propsFactory({
38611
38626
  text: String,
38612
38627
  ...makeComponentProps(),