@uzum-tech/ui 1.12.8 → 1.12.9
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 +72 -4
- package/dist/index.prod.js +2 -2
- package/es/button/src/styles/index.cssr.js +12 -0
- package/es/header/src/HeaderNavigation.js +38 -6
- package/es/header/src/styles/index.cssr.js +5 -1
- package/es/header/src/utils.d.ts +2 -1
- package/es/header/src/utils.js +3 -0
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/button/src/styles/index.cssr.js +12 -0
- package/lib/header/src/HeaderNavigation.js +37 -5
- package/lib/header/src/styles/index.cssr.js +5 -1
- package/lib/header/src/utils.d.ts +2 -1
- package/lib/header/src/utils.js +4 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/volar.d.ts +166 -166
- package/web-types.json +1 -1
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:
|
|
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,53 @@
|
|
|
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
|
+
const onClick = "onClick" in option && typeof option.onClick === "function" ? option.onClick : void 0;
|
|
125477
|
+
if (!hasChildren) {
|
|
125478
|
+
return /* @__PURE__ */ vue.h("div", { key, class: `${blockClass}__menu-column-section` }, /* @__PURE__ */ vue.h(
|
|
125479
|
+
"div",
|
|
125480
|
+
{
|
|
125481
|
+
class: `${blockClass}__menu-column-title`,
|
|
125482
|
+
role: onClick ? "button" : void 0,
|
|
125483
|
+
tabindex: onClick && !option.disabled ? 0 : void 0,
|
|
125484
|
+
onClick: onClick ? (e) => {
|
|
125485
|
+
onClick();
|
|
125486
|
+
} : void 0
|
|
125487
|
+
},
|
|
125488
|
+
renderOptionLabel(option)
|
|
125489
|
+
));
|
|
125490
|
+
}
|
|
125447
125491
|
const children = option.children?.map(
|
|
125448
125492
|
(child, index) => renderMenuItem(child, `${key}-item-${index}`)
|
|
125449
125493
|
) ?? [];
|
|
125450
125494
|
const content = children.filter(isNotNull);
|
|
125451
125495
|
if (!content.length) return null;
|
|
125452
125496
|
if (asSection) {
|
|
125453
|
-
return /* @__PURE__ */ vue.h("div", { key, class: `${blockClass}__menu-column-section` }, /* @__PURE__ */ vue.h(
|
|
125497
|
+
return /* @__PURE__ */ vue.h("div", { key, class: `${blockClass}__menu-column-section` }, /* @__PURE__ */ vue.h(
|
|
125498
|
+
"div",
|
|
125499
|
+
{
|
|
125500
|
+
class: `${blockClass}__menu-column-title`,
|
|
125501
|
+
role: onClick ? "button" : void 0,
|
|
125502
|
+
tabindex: onClick && !option.disabled ? 0 : void 0,
|
|
125503
|
+
onClick: onClick ? (e) => {
|
|
125504
|
+
onClick();
|
|
125505
|
+
} : void 0
|
|
125506
|
+
},
|
|
125507
|
+
renderOptionLabel(option)
|
|
125508
|
+
), /* @__PURE__ */ vue.h("div", { class: `${blockClass}__menu-column-list` }, content));
|
|
125454
125509
|
}
|
|
125455
|
-
return /* @__PURE__ */ vue.h("div", { key, class: `${blockClass}__menu-column` }, /* @__PURE__ */ vue.h(
|
|
125510
|
+
return /* @__PURE__ */ vue.h("div", { key, class: `${blockClass}__menu-column` }, /* @__PURE__ */ vue.h(
|
|
125511
|
+
"div",
|
|
125512
|
+
{
|
|
125513
|
+
class: `${blockClass}__menu-column-title`,
|
|
125514
|
+
role: onClick ? "button" : void 0,
|
|
125515
|
+
tabindex: onClick && !option.disabled ? 0 : void 0,
|
|
125516
|
+
onClick: onClick ? (e) => {
|
|
125517
|
+
onClick();
|
|
125518
|
+
} : void 0
|
|
125519
|
+
},
|
|
125520
|
+
renderOptionLabel(option)
|
|
125521
|
+
), /* @__PURE__ */ vue.h("div", { class: `${blockClass}__menu-column-list` }, content));
|
|
125456
125522
|
}
|
|
125457
125523
|
return /* @__PURE__ */ vue.h(
|
|
125458
125524
|
"div",
|
|
@@ -128475,6 +128541,7 @@
|
|
|
128475
128541
|
isColumnOption: isColumnOption,
|
|
128476
128542
|
isDividerOption: isDividerOption,
|
|
128477
128543
|
isGroupOption: isGroupOption,
|
|
128544
|
+
isLeafMenuOption: isLeafMenuOption,
|
|
128478
128545
|
isNotNull: isNotNull,
|
|
128479
128546
|
layoutContentProps: layoutProps,
|
|
128480
128547
|
layoutFooterProps: layoutFooterProps,
|
|
@@ -128549,7 +128616,7 @@
|
|
|
128549
128616
|
watermarkProps: watermarkProps
|
|
128550
128617
|
});
|
|
128551
128618
|
|
|
128552
|
-
var version = "1.12.
|
|
128619
|
+
var version = "1.12.9";
|
|
128553
128620
|
|
|
128554
128621
|
function create({
|
|
128555
128622
|
componentPrefix = "U",
|
|
@@ -129714,6 +129781,7 @@
|
|
|
129714
129781
|
exports.isColumnOption = isColumnOption;
|
|
129715
129782
|
exports.isDividerOption = isDividerOption;
|
|
129716
129783
|
exports.isGroupOption = isGroupOption;
|
|
129784
|
+
exports.isLeafMenuOption = isLeafMenuOption;
|
|
129717
129785
|
exports.isNotNull = isNotNull;
|
|
129718
129786
|
exports.layoutContentProps = layoutProps;
|
|
129719
129787
|
exports.layoutDark = layoutDark;
|