@uzum-tech/ui 1.12.14 → 1.12.16

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
@@ -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: "#101010",
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).sort((leftWidth, rightWidth) => leftWidth - rightWidth);
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).sort((leftWidth, rightWidth) => rightWidth - leftWidth);
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
  };
@@ -97596,11 +97588,21 @@
97596
97588
  function handleBeforeLeave() {
97597
97589
  const { onBeforeLeave, onBeforeHide } = props;
97598
97590
  if (onBeforeLeave) call(onBeforeLeave);
97591
+ void vue.nextTick(() => {
97592
+ if (document.activeElement && document.activeElement !== document.body) {
97593
+ document.activeElement.blur();
97594
+ }
97595
+ });
97599
97596
  if (onBeforeHide) onBeforeHide();
97600
97597
  }
97601
97598
  function handleAfterLeave() {
97602
97599
  const { onAfterLeave, onAfterHide } = props;
97603
97600
  if (onAfterLeave) call(onAfterLeave);
97601
+ void vue.nextTick(() => {
97602
+ if (document.activeElement && document.activeElement !== document.body) {
97603
+ document.activeElement.blur();
97604
+ }
97605
+ });
97604
97606
  if (onAfterHide) onAfterHide();
97605
97607
  }
97606
97608
  function handleClickoutside(e) {
@@ -124595,12 +124597,12 @@
124595
124597
  `), cE("logo", [c$1("img", `
124596
124598
  max-height: 24px;
124597
124599
  `)])]), cM("desktop", [cE("inner-wrapper", `
124598
- width: 1300px;
124600
+ width: 100%;
124601
+ max-width: 1300px;
124599
124602
  box-sizing: border-box;
124600
124603
  display: flex;
124601
124604
  align-items: center;
124602
124605
  justify-content: space-between;
124603
- gap: var(--u-header-navigation-gap);
124604
124606
  padding: 0;
124605
124607
  position: relative;
124606
124608
  height: 80px;
@@ -124609,12 +124611,14 @@
124609
124611
  display: flex;
124610
124612
  align-items: center;
124611
124613
  justify-content: space-between;
124612
- gap: 60px;
124614
+ flex: 1;
124613
124615
  height: 100%;
124614
124616
  `)]), cE("inner", `
124617
+ width: 100%;
124615
124618
  box-sizing: border-box;
124616
124619
  display: flex;
124617
124620
  align-items: center;
124621
+ justify-content: center;
124618
124622
  gap: var(--u-header-navigation-gap);
124619
124623
  padding: 0;
124620
124624
  position: relative;
@@ -124651,7 +124655,6 @@
124651
124655
  position: relative;
124652
124656
  display: inline-flex;
124653
124657
  align-items: center;
124654
- gap: var(--u-header-action-gap);
124655
124658
  flex-shrink: 0;
124656
124659
  height: 100%;
124657
124660
  `, [cE("actions-block", `
@@ -125246,13 +125249,6 @@
125246
125249
  return option.type !== "column";
125247
125250
  }
125248
125251
 
125249
- function useIsMobile() {
125250
- const breakpointRef = useBreakpoint();
125251
- return useMemo(() => {
125252
- return breakpointRef.value === "xs";
125253
- });
125254
- }
125255
-
125256
125252
  const headerNavigationProps = {
125257
125253
  menuOptions: {
125258
125254
  type: Array,
@@ -126527,6 +126523,10 @@
126527
126523
  type: Boolean,
126528
126524
  default: true
126529
126525
  },
126526
+ isMobile: {
126527
+ type: Boolean,
126528
+ default: true
126529
+ },
126530
126530
  mobileMenuType: {
126531
126531
  type: String,
126532
126532
  default: "drawer"
@@ -126578,7 +126578,7 @@
126578
126578
  props,
126579
126579
  mergedClsPrefixRef
126580
126580
  );
126581
- const isMobileRef = useIsMobile();
126581
+ const isMobileRef = vue.toRef(props, "isMobile");
126582
126582
  const mobileMenuVisibleRef = vue.ref(false);
126583
126583
  const searchVisibleRef = vue.ref(false);
126584
126584
  vue.onBeforeMount(() => {
@@ -128593,7 +128593,7 @@
128593
128593
  watermarkProps: watermarkProps
128594
128594
  });
128595
128595
 
128596
- var version = "1.12.14";
128596
+ var version = "1.12.16";
128597
128597
 
128598
128598
  function useExposeProxy(targetRef) {
128599
128599
  return new Proxy({}, {