@uzum-tech/ui 1.12.14 → 1.12.15
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 +21 -31
- package/dist/index.prod.js +4 -4
- package/es/_internal/icons/Logout.js +1 -1
- package/es/config-provider/src/ConfigProvider.js +11 -7
- package/es/header/src/Header.d.ts +14 -1
- package/es/header/src/Header.js +4 -2
- package/es/header/src/HeaderActions.d.ts +1 -1
- package/es/header/src/interface.d.ts +1 -0
- package/es/header/src/styles/index.cssr.js +5 -4
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/icons/Logout.js +1 -1
- package/lib/config-provider/src/ConfigProvider.js +11 -7
- package/lib/header/src/Header.d.ts +14 -1
- package/lib/header/src/Header.js +4 -2
- package/lib/header/src/HeaderActions.d.ts +1 -1
- package/lib/header/src/interface.d.ts +1 -0
- package/lib/header/src/styles/index.cssr.js +5 -4
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +6 -1
package/dist/index.js
CHANGED
|
@@ -2194,19 +2194,6 @@
|
|
|
2194
2194
|
});
|
|
2195
2195
|
}
|
|
2196
2196
|
|
|
2197
|
-
function useBreakpoint(screens) {
|
|
2198
|
-
if (!isBrowser$1) return vue.computed(() => undefined);
|
|
2199
|
-
// pass ts check
|
|
2200
|
-
const breakpointsRef = screens !== undefined ? useBreakpoints(screens) : useBreakpoints();
|
|
2201
|
-
return vue.computed(() => {
|
|
2202
|
-
const {
|
|
2203
|
-
value
|
|
2204
|
-
} = breakpointsRef;
|
|
2205
|
-
if (value.length === 0) return undefined;
|
|
2206
|
-
return value[value.length - 1];
|
|
2207
|
-
});
|
|
2208
|
-
}
|
|
2209
|
-
|
|
2210
2197
|
function useKeyboard$1(options = {}, enabledRef) {
|
|
2211
2198
|
const state = vue.reactive({
|
|
2212
2199
|
ctrl: false,
|
|
@@ -18224,7 +18211,7 @@
|
|
|
18224
18211
|
"path",
|
|
18225
18212
|
{
|
|
18226
18213
|
d: "M16 17L21 12M21 12L16 7M21 12H9M9 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H9",
|
|
18227
|
-
stroke: "
|
|
18214
|
+
stroke: "currentColor",
|
|
18228
18215
|
"stroke-width": "1.66667",
|
|
18229
18216
|
"stroke-linecap": "round",
|
|
18230
18217
|
"stroke-linejoin": "round"
|
|
@@ -62058,14 +62045,19 @@
|
|
|
62058
62045
|
const mergedMap = getMergedBreakpointValues(breakpointMap);
|
|
62059
62046
|
if (!mergedMap) return;
|
|
62060
62047
|
const currentWidth = windowWidthRef.value;
|
|
62061
|
-
const breakpointWidths = Object.keys(mergedMap).map(Number);
|
|
62048
|
+
const breakpointWidths = Object.keys(mergedMap).map(Number).sort((leftWidth, rightWidth) => leftWidth - rightWidth);
|
|
62062
62049
|
let matchingBreakpoints;
|
|
62063
62050
|
if (mode === "mobile-first") {
|
|
62064
|
-
matchingBreakpoints = breakpointWidths.filter(width => width >= currentWidth)
|
|
62051
|
+
matchingBreakpoints = breakpointWidths.filter(width => width >= currentWidth);
|
|
62052
|
+
if (matchingBreakpoints.length === 0) {
|
|
62053
|
+
matchingBreakpoints = [breakpointWidths[breakpointWidths.length - 1]];
|
|
62054
|
+
}
|
|
62065
62055
|
} else {
|
|
62066
|
-
matchingBreakpoints = breakpointWidths.filter(width => width <= currentWidth).
|
|
62056
|
+
matchingBreakpoints = breakpointWidths.filter(width => width <= currentWidth).reverse();
|
|
62057
|
+
if (matchingBreakpoints.length === 0) {
|
|
62058
|
+
matchingBreakpoints = [breakpointWidths[0]];
|
|
62059
|
+
}
|
|
62067
62060
|
}
|
|
62068
|
-
if (matchingBreakpoints.length === 0) return;
|
|
62069
62061
|
const activeBreakpoint = matchingBreakpoints[0];
|
|
62070
62062
|
return mergedMap[activeBreakpoint];
|
|
62071
62063
|
};
|
|
@@ -124595,12 +124587,12 @@
|
|
|
124595
124587
|
`), cE("logo", [c$1("img", `
|
|
124596
124588
|
max-height: 24px;
|
|
124597
124589
|
`)])]), cM("desktop", [cE("inner-wrapper", `
|
|
124598
|
-
width:
|
|
124590
|
+
width: 100%;
|
|
124591
|
+
max-width: 1300px;
|
|
124599
124592
|
box-sizing: border-box;
|
|
124600
124593
|
display: flex;
|
|
124601
124594
|
align-items: center;
|
|
124602
124595
|
justify-content: space-between;
|
|
124603
|
-
gap: var(--u-header-navigation-gap);
|
|
124604
124596
|
padding: 0;
|
|
124605
124597
|
position: relative;
|
|
124606
124598
|
height: 80px;
|
|
@@ -124609,12 +124601,14 @@
|
|
|
124609
124601
|
display: flex;
|
|
124610
124602
|
align-items: center;
|
|
124611
124603
|
justify-content: space-between;
|
|
124612
|
-
|
|
124604
|
+
flex: 1;
|
|
124613
124605
|
height: 100%;
|
|
124614
124606
|
`)]), cE("inner", `
|
|
124607
|
+
width: 100%;
|
|
124615
124608
|
box-sizing: border-box;
|
|
124616
124609
|
display: flex;
|
|
124617
124610
|
align-items: center;
|
|
124611
|
+
justify-content: center;
|
|
124618
124612
|
gap: var(--u-header-navigation-gap);
|
|
124619
124613
|
padding: 0;
|
|
124620
124614
|
position: relative;
|
|
@@ -124651,7 +124645,6 @@
|
|
|
124651
124645
|
position: relative;
|
|
124652
124646
|
display: inline-flex;
|
|
124653
124647
|
align-items: center;
|
|
124654
|
-
gap: var(--u-header-action-gap);
|
|
124655
124648
|
flex-shrink: 0;
|
|
124656
124649
|
height: 100%;
|
|
124657
124650
|
`, [cE("actions-block", `
|
|
@@ -125246,13 +125239,6 @@
|
|
|
125246
125239
|
return option.type !== "column";
|
|
125247
125240
|
}
|
|
125248
125241
|
|
|
125249
|
-
function useIsMobile() {
|
|
125250
|
-
const breakpointRef = useBreakpoint();
|
|
125251
|
-
return useMemo(() => {
|
|
125252
|
-
return breakpointRef.value === "xs";
|
|
125253
|
-
});
|
|
125254
|
-
}
|
|
125255
|
-
|
|
125256
125242
|
const headerNavigationProps = {
|
|
125257
125243
|
menuOptions: {
|
|
125258
125244
|
type: Array,
|
|
@@ -126527,6 +126513,10 @@
|
|
|
126527
126513
|
type: Boolean,
|
|
126528
126514
|
default: true
|
|
126529
126515
|
},
|
|
126516
|
+
isMobile: {
|
|
126517
|
+
type: Boolean,
|
|
126518
|
+
default: true
|
|
126519
|
+
},
|
|
126530
126520
|
mobileMenuType: {
|
|
126531
126521
|
type: String,
|
|
126532
126522
|
default: "drawer"
|
|
@@ -126578,7 +126568,7 @@
|
|
|
126578
126568
|
props,
|
|
126579
126569
|
mergedClsPrefixRef
|
|
126580
126570
|
);
|
|
126581
|
-
const isMobileRef =
|
|
126571
|
+
const isMobileRef = props.isMobile;
|
|
126582
126572
|
const mobileMenuVisibleRef = vue.ref(false);
|
|
126583
126573
|
const searchVisibleRef = vue.ref(false);
|
|
126584
126574
|
vue.onBeforeMount(() => {
|
|
@@ -128593,7 +128583,7 @@
|
|
|
128593
128583
|
watermarkProps: watermarkProps
|
|
128594
128584
|
});
|
|
128595
128585
|
|
|
128596
|
-
var version = "1.12.
|
|
128586
|
+
var version = "1.12.15";
|
|
128597
128587
|
|
|
128598
128588
|
function useExposeProxy(targetRef) {
|
|
128599
128589
|
return new Proxy({}, {
|