fluekit 2.6.0 → 2.6.1

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.
Files changed (2) hide show
  1. package/dist/index.js +30 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1159,7 +1159,7 @@ var GestureDetector_default = defineComponent({
1159
1159
  return t ? t.type === Text ? h("span", s, [t]) : isHtmlTag(t) ? cloneVNode(t, s) : t : null;
1160
1160
  };
1161
1161
  }
1162
- }), _hoisted_1$11 = ["disabled"], Button_default = /* @__PURE__ */ defineComponent({
1162
+ }), _hoisted_1$12 = ["disabled"], Button_default = /* @__PURE__ */ defineComponent({
1163
1163
  inheritAttrs: !1,
1164
1164
  __name: "Button",
1165
1165
  props: {
@@ -1237,7 +1237,7 @@ var GestureDetector_default = defineComponent({
1237
1237
  default: withCtx(() => [createElementVNode("button", mergeProps({
1238
1238
  style: p.value,
1239
1239
  disabled: t.disabled
1240
- }, unref(c)), [renderSlot(i.$slots, "default", {}, () => [createTextVNode(toDisplayString(a.text), 1)])], 16, _hoisted_1$11)]),
1240
+ }, unref(c)), [renderSlot(i.$slots, "default", {}, () => [createTextVNode(toDisplayString(a.text), 1)])], 16, _hoisted_1$12)]),
1241
1241
  _: 3
1242
1242
  }, 8, [
1243
1243
  "behavior",
@@ -1665,7 +1665,7 @@ function ImageProvider(t) {
1665
1665
  [IMAGE_PROVIDER_SYMBOL]: !0
1666
1666
  } : t.startsWith("http") ? NetworkImage(t) : t.startsWith("data:") ? MemoryImage(t) : AssetImage(t);
1667
1667
  }
1668
- var _hoisted_1$10 = ["src", "alt"], Image_default = /* @__PURE__ */ defineComponent({
1668
+ var _hoisted_1$11 = ["src", "alt"], Image_default = /* @__PURE__ */ defineComponent({
1669
1669
  inheritAttrs: !1,
1670
1670
  __name: "Image",
1671
1671
  props: {
@@ -1724,9 +1724,9 @@ var _hoisted_1$10 = ["src", "alt"], Image_default = /* @__PURE__ */ defineCompon
1724
1724
  alt: t.alt,
1725
1725
  onLoad: p,
1726
1726
  onError: _
1727
- }, null, 44, _hoisted_1$10)], 16));
1727
+ }, null, 44, _hoisted_1$11)], 16));
1728
1728
  }
1729
- }), _hoisted_1$9 = ["aria-label"], _hoisted_2$4 = ["width", "height"], _hoisted_3 = ["d"], Icon_default = /* @__PURE__ */ defineComponent({
1729
+ }), _hoisted_1$10 = ["aria-label"], _hoisted_2$4 = ["width", "height"], _hoisted_3 = ["d"], Icon_default = /* @__PURE__ */ defineComponent({
1730
1730
  inheritAttrs: !1,
1731
1731
  __name: "Icon",
1732
1732
  props: {
@@ -1779,7 +1779,7 @@ var _hoisted_1$10 = ["src", "alt"], Image_default = /* @__PURE__ */ defineCompon
1779
1779
  fill: "currentColor",
1780
1780
  xmlns: "http://www.w3.org/2000/svg",
1781
1781
  style: c
1782
- }, [createElementVNode("path", { d: t.icon }, null, 8, _hoisted_3)], 8, _hoisted_2$4)) : createCommentVNode("", !0)])], 16, _hoisted_1$9));
1782
+ }, [createElementVNode("path", { d: t.icon }, null, 8, _hoisted_3)], 8, _hoisted_2$4)) : createCommentVNode("", !0)])], 16, _hoisted_1$10));
1783
1783
  }
1784
1784
  });
1785
1785
  const Colors = {
@@ -2270,7 +2270,7 @@ var CupertinoActivityIndicator_default = /* @__PURE__ */ defineComponent({
2270
2270
  animating: o.value
2271
2271
  }, null, 8, ["color", "animating"])], 4), createElementVNode("div", { style: normalizeStyle(p.value) }, [renderSlot(i.$slots, "default")], 4)], 544));
2272
2272
  }
2273
- }), _hoisted_1$8 = {
2273
+ }), _hoisted_1$9 = {
2274
2274
  key: 0,
2275
2275
  class: "list-view-separator"
2276
2276
  }, ListView_default = /* @__PURE__ */ defineComponent({
@@ -2322,7 +2322,7 @@ var CupertinoActivityIndicator_default = /* @__PURE__ */ defineComponent({
2322
2322
  default: withCtx(() => [createElementVNode("div", {
2323
2323
  class: "list-view-content",
2324
2324
  style: normalizeStyle(o.value)
2325
- }, [t.itemCount ? (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(t.itemCount, (o) => (openBlock(), createElementBlock(Fragment, { key: o - 1 }, [renderSlot(a.$slots, "item", { index: o - 1 }), t.separator && o < t.itemCount ? (openBlock(), createElementBlock("div", _hoisted_1$8, [renderSlot(a.$slots, "separator", { index: o - 1 })])) : createCommentVNode("", !0)], 64))), 128)) : renderSlot(a.$slots, "default", { key: 0 })], 4)]),
2325
+ }, [t.itemCount ? (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(t.itemCount, (o) => (openBlock(), createElementBlock(Fragment, { key: o - 1 }, [renderSlot(a.$slots, "item", { index: o - 1 }), t.separator && o < t.itemCount ? (openBlock(), createElementBlock("div", _hoisted_1$9, [renderSlot(a.$slots, "separator", { index: o - 1 })])) : createCommentVNode("", !0)], 64))), 128)) : renderSlot(a.$slots, "default", { key: 0 })], 4)]),
2326
2326
  _: 3
2327
2327
  }, 8, [
2328
2328
  "scroll-direction",
@@ -2626,7 +2626,11 @@ var Positioned_default = /* @__PURE__ */ defineComponent({
2626
2626
  style: s.value
2627
2627
  }, unref(a)), [renderSlot(t.$slots, "default")], 16));
2628
2628
  }
2629
- }), Stack_default = /* @__PURE__ */ defineComponent({
2629
+ }), _hoisted_1$8 = { style: {
2630
+ pointerEvents: "auto",
2631
+ display: "flex",
2632
+ flexDirection: "column"
2633
+ } }, Stack_default = /* @__PURE__ */ defineComponent({
2630
2634
  inheritAttrs: !1,
2631
2635
  __name: "Stack",
2632
2636
  props: {
@@ -2645,22 +2649,36 @@ var Positioned_default = /* @__PURE__ */ defineComponent({
2645
2649
  antiAlias: "hidden",
2646
2650
  none: "visible"
2647
2651
  }, l = computed(() => {
2652
+ alignmentToGrid(a.alignment);
2648
2653
  let t = {
2649
2654
  position: "relative",
2650
2655
  display: "grid",
2651
2656
  gridTemplateColumns: "1fr",
2652
2657
  gridTemplateRows: "1fr",
2653
- ...alignmentToGrid(a.alignment),
2654
2658
  overflow: c[a.clipBehavior],
2655
2659
  direction: a.textDirection,
2656
2660
  boxSizing: "border-box"
2657
2661
  };
2658
2662
  return a.fit === StackFit.expand && (t.width = "100%", t.height = "100%"), t;
2663
+ }), d = computed(() => {
2664
+ let t = alignmentToGrid(a.alignment), i = (t) => t === "start" ? "flex-start" : t === "end" ? "flex-end" : t === "center" ? "center" : "flex-start";
2665
+ return {
2666
+ alignItems: i(t.justifyItems),
2667
+ justifyContent: i(t.alignItems)
2668
+ };
2659
2669
  });
2660
2670
  return provideStackContext(), (t, a) => (openBlock(), createElementBlock("div", { style: normalizeStyle(l.value) }, [(openBlock(!0), createElementBlock(Fragment, null, renderList(s.value, (t, i) => (openBlock(), createElementBlock("div", {
2661
2671
  key: i,
2662
- style: { gridArea: "1 / 1 / 2 / 2" }
2663
- }, [(openBlock(), createBlock(resolveDynamicComponent(t)))]))), 128))], 4));
2672
+ style: normalizeStyle({
2673
+ gridArea: "1 / 1 / 2 / 2",
2674
+ width: "100%",
2675
+ height: "100%",
2676
+ display: "flex",
2677
+ flexDirection: "column",
2678
+ pointerEvents: "none",
2679
+ ...d.value
2680
+ })
2681
+ }, [createElementVNode("div", _hoisted_1$8, [(openBlock(), createBlock(resolveDynamicComponent(t)))])], 4))), 128))], 4));
2664
2682
  }
2665
2683
  }), Sticky_default = /* @__PURE__ */ defineComponent({
2666
2684
  inheritAttrs: !1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluekit",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "A Flutter-style Layout UI kit for Vue",
5
5
  "homepage": "https://fi2zz.github.io/fluekit/",
6
6
  "repository": {