@uzum-tech/ui 1.12.8 → 1.12.10

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/index.js CHANGED
@@ -29597,8 +29597,12 @@
29597
29597
  borderColor: "var(--u-border-color-hover)"
29598
29598
  })]), c$1("&:active", [cE("state-border", {
29599
29599
  borderColor: "var(--u-border-color-pressed)"
29600
+ })]), c$1("&:hover, &:active, &:focus", [cE("border", {
29601
+ borderColor: "transparent"
29600
29602
  })]), cM("pressed", [cE("state-border", {
29601
29603
  borderColor: "var(--u-border-color-pressed)"
29604
+ }), cE("border", {
29605
+ borderColor: "transparent"
29602
29606
  })])])]), cM("disabled", {
29603
29607
  backgroundColor: "var(--u-color-disabled)",
29604
29608
  color: "var(--u-text-color-disabled)"
@@ -29609,6 +29613,8 @@
29609
29613
  color: "var(--u-text-color-focus)"
29610
29614
  }, [cE("state-border", {
29611
29615
  border: "var(--u-border-focus)"
29616
+ }), cE("border", {
29617
+ borderColor: "transparent"
29612
29618
  })]), c$1("&:focus-visible", {
29613
29619
  backgroundColor: "var(--u-color)",
29614
29620
  color: "var(--u-text-color)",
@@ -29620,16 +29626,22 @@
29620
29626
  color: "var(--u-text-color-hover)"
29621
29627
  }, [cE("state-border", {
29622
29628
  border: "var(--u-border-hover)"
29629
+ }), cE("border", {
29630
+ borderColor: "transparent"
29623
29631
  })]), c$1("&:active", {
29624
29632
  backgroundColor: "var(--u-color-pressed)",
29625
29633
  color: "var(--u-text-color-pressed)"
29626
29634
  }, [cE("state-border", {
29627
29635
  border: "var(--u-border-pressed)"
29636
+ }), cE("border", {
29637
+ borderColor: "transparent"
29628
29638
  })]), cM("pressed", {
29629
29639
  backgroundColor: "var(--u-color-pressed)",
29630
29640
  color: "var(--u-text-color-pressed)"
29631
29641
  }, [cE("state-border", {
29632
29642
  border: "var(--u-border-pressed)"
29643
+ }), cE("border", {
29644
+ borderColor: "transparent"
29633
29645
  })])]), cM("loading", "cursor: wait;"), cE("loading", null, [cM("skeleton", {
29634
29646
  width: "calc(100% + 2px)",
29635
29647
  height: "calc(100% + 2px)",
@@ -124754,6 +124766,7 @@
124754
124766
  left: 40%;
124755
124767
  transform: translateX(-40%);
124756
124768
  z-index: 1000;
124769
+ cursor: default;
124757
124770
  `), cE("tab-pane", `
124758
124771
  padding: 0;
124759
124772
  `), cE("menu-card", `
@@ -124766,7 +124779,7 @@
124766
124779
  `), cE("menu-column", `
124767
124780
  display: flex;
124768
124781
  flex-direction: column;
124769
- gap: 16px;
124782
+ gap: 32px;
124770
124783
  `, [cM("single", `
124771
124784
  gap: 8px;
124772
124785
  `)]), cE("menu-column-section", `
@@ -124781,6 +124794,9 @@
124781
124794
  font-size: var(--u-font-title-small);
124782
124795
  font-weight: 600;
124783
124796
  color: var(--u-header-card-title-color);
124797
+ cursor: text;
124798
+ `), cE('menu-column-title[role="button"]', `
124799
+ cursor: pointer;
124784
124800
  `), cE("menu-column-list", `
124785
124801
  display: flex;
124786
124802
  flex-direction: column;
@@ -125242,6 +125258,9 @@
125242
125258
  return placement;
125243
125259
  }
125244
125260
  }
125261
+ function isLeafMenuOption(option) {
125262
+ return option.type !== "column";
125263
+ }
125245
125264
 
125246
125265
  function useIsMobile() {
125247
125266
  const breakpointRef = useBreakpoint();
@@ -125436,6 +125455,15 @@
125436
125455
  );
125437
125456
  }
125438
125457
  if (isColumnOption(option)) {
125458
+ const children = option.children ?? [];
125459
+ const hasGroup = children.some(isGroupOption);
125460
+ if (!hasGroup) {
125461
+ const items = children.filter(isLeafMenuOption).map(
125462
+ (child, index) => renderMenuItem(child, `${key}-item-${index}`)
125463
+ ).filter(isNotNull);
125464
+ if (!items.length) return null;
125465
+ return /* @__PURE__ */ vue.h("div", { key, class: `${blockClass}__menu-column` }, /* @__PURE__ */ vue.h("div", { class: `${blockClass}__menu-column-list` }, items));
125466
+ }
125439
125467
  const sections = option.children?.map(
125440
125468
  (child, index) => renderMenuColumn(child, `${key}-section-${index}`, true)
125441
125469
  ) ?? [];
@@ -125444,15 +125472,46 @@
125444
125472
  return /* @__PURE__ */ vue.h("div", { key, class: `${blockClass}__menu-column` }, content);
125445
125473
  }
125446
125474
  if (isGroupOption(option)) {
125475
+ const hasChildren = option.children && option.children.length > 0;
125476
+ if (!hasChildren) {
125477
+ return /* @__PURE__ */ vue.h("div", { key, class: `${blockClass}__menu-column-section` }, /* @__PURE__ */ vue.h(
125478
+ "div",
125479
+ {
125480
+ class: `${blockClass}__menu-column-title`,
125481
+ role: option.onClick ? "button" : void 0,
125482
+ tabindex: option.onClick && !option.disabled ? 0 : void 0,
125483
+ onClick: option.onClick
125484
+ },
125485
+ renderOptionLabel(option)
125486
+ ));
125487
+ }
125447
125488
  const children = option.children?.map(
125448
125489
  (child, index) => renderMenuItem(child, `${key}-item-${index}`)
125449
125490
  ) ?? [];
125450
125491
  const content = children.filter(isNotNull);
125451
125492
  if (!content.length) return null;
125452
125493
  if (asSection) {
125453
- return /* @__PURE__ */ vue.h("div", { key, class: `${blockClass}__menu-column-section` }, /* @__PURE__ */ vue.h("div", { class: `${blockClass}__menu-column-title` }, renderOptionLabel(option)), /* @__PURE__ */ vue.h("div", { class: `${blockClass}__menu-column-list` }, content));
125494
+ return /* @__PURE__ */ vue.h("div", { key, class: `${blockClass}__menu-column-section` }, /* @__PURE__ */ vue.h(
125495
+ "div",
125496
+ {
125497
+ class: `${blockClass}__menu-column-title`,
125498
+ role: option.onClick ? "button" : void 0,
125499
+ tabindex: option.onClick && !option.disabled ? 0 : void 0,
125500
+ onClick: option.onClick
125501
+ },
125502
+ renderOptionLabel(option)
125503
+ ), /* @__PURE__ */ vue.h("div", { class: `${blockClass}__menu-column-list` }, content));
125454
125504
  }
125455
- return /* @__PURE__ */ vue.h("div", { key, class: `${blockClass}__menu-column` }, /* @__PURE__ */ vue.h("div", { class: `${blockClass}__menu-column-title` }, renderOptionLabel(option)), /* @__PURE__ */ vue.h("div", { class: `${blockClass}__menu-column-list` }, content));
125505
+ return /* @__PURE__ */ vue.h("div", { key, class: `${blockClass}__menu-column` }, /* @__PURE__ */ vue.h(
125506
+ "div",
125507
+ {
125508
+ class: `${blockClass}__menu-column-title`,
125509
+ role: option.onClick ? "button" : void 0,
125510
+ tabindex: option.onClick && !option.disabled ? 0 : void 0,
125511
+ onClick: option.onClick
125512
+ },
125513
+ renderOptionLabel(option)
125514
+ ), /* @__PURE__ */ vue.h("div", { class: `${blockClass}__menu-column-list` }, content));
125456
125515
  }
125457
125516
  return /* @__PURE__ */ vue.h(
125458
125517
  "div",
@@ -128475,6 +128534,7 @@
128475
128534
  isColumnOption: isColumnOption,
128476
128535
  isDividerOption: isDividerOption,
128477
128536
  isGroupOption: isGroupOption,
128537
+ isLeafMenuOption: isLeafMenuOption,
128478
128538
  isNotNull: isNotNull,
128479
128539
  layoutContentProps: layoutProps,
128480
128540
  layoutFooterProps: layoutFooterProps,
@@ -128549,7 +128609,7 @@
128549
128609
  watermarkProps: watermarkProps
128550
128610
  });
128551
128611
 
128552
- var version = "1.12.8";
128612
+ var version = "1.12.10";
128553
128613
 
128554
128614
  function create({
128555
128615
  componentPrefix = "U",
@@ -129714,6 +129774,7 @@
129714
129774
  exports.isColumnOption = isColumnOption;
129715
129775
  exports.isDividerOption = isDividerOption;
129716
129776
  exports.isGroupOption = isGroupOption;
129777
+ exports.isLeafMenuOption = isLeafMenuOption;
129717
129778
  exports.isNotNull = isNotNull;
129718
129779
  exports.layoutContentProps = layoutProps;
129719
129780
  exports.layoutDark = layoutDark;