@nexxtmove/ui 1.0.10 → 1.0.11

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
@@ -6123,7 +6123,7 @@ var _s = /* @__PURE__ */ _({
6123
6123
  _: 1
6124
6124
  }, 8, ["placement"]));
6125
6125
  }
6126
- }), Ls = { class: "flex max-w-full items-center justify-start gap-4" }, Rs = {
6126
+ }), Ls = { class: "flex max-w-full min-w-0 flex-1 items-center justify-start gap-4" }, Rs = {
6127
6127
  key: 0,
6128
6128
  class: "col-span-1 col-start-2 flex justify-center"
6129
6129
  }, zs = /* @__PURE__ */ _({
@@ -6141,7 +6141,7 @@ var _s = /* @__PURE__ */ _({
6141
6141
  }
6142
6142
  },
6143
6143
  setup(e) {
6144
- return (t, n) => (k(), u("div", { class: T(["header flex items-center", t.$slots.center ? "grid grid-cols-3" : ""]) }, [
6144
+ return (t, n) => (k(), u("div", { class: T(["header flex w-full max-w-full min-w-0 items-center", t.$slots.center ? "grid grid-cols-3" : ""]) }, [
6145
6145
  d("div", Ls, [M(t.$slots, "back-button", {}, () => [e.backButtonText && e.backButtonAction && !t.$slots["back-button"] ? (k(), c(Nt, {
6146
6146
  key: 0,
6147
6147
  class: "shrink-0",
@@ -6150,11 +6150,11 @@ var _s = /* @__PURE__ */ _({
6150
6150
  }, {
6151
6151
  default: B(() => [m(F(e.backButtonText), 1)]),
6152
6152
  _: 1
6153
- }, 8, ["onClick"])) : l("", !0)]), d("span", { class: T(["block truncate text-sapphire-500", e.headingType]) }, F(e.title), 3)]),
6153
+ }, 8, ["onClick"])) : l("", !0)]), d("span", { class: T(["min-w-0 flex-1 truncate text-sapphire-500", e.headingType]) }, F(e.title), 3)]),
6154
6154
  t.$slots.center ? (k(), u("div", Rs, [M(t.$slots, "center")])) : l("", !0),
6155
6155
  t.$slots.right ? (k(), u("div", {
6156
6156
  key: 1,
6157
- class: T(t.$slots.center ? "col-span-1 col-start-3 flex justify-end" : "ml-auto")
6157
+ class: T([t.$slots.center ? "col-span-1 col-start-3 flex justify-end" : "ml-auto", "shrink-0"])
6158
6158
  }, [M(t.$slots, "right")], 2)) : l("", !0)
6159
6159
  ], 2));
6160
6160
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nexxtmove/ui",
3
3
  "type": "module",
4
- "version": "1.0.10",
4
+ "version": "1.0.11",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -22,8 +22,11 @@ const {
22
22
  </script>
23
23
 
24
24
  <template>
25
- <div class="header flex items-center" :class="$slots.center ? 'grid grid-cols-3' : ''">
26
- <div class="flex max-w-full items-center justify-start gap-4">
25
+ <div
26
+ class="header flex w-full max-w-full min-w-0 items-center"
27
+ :class="$slots.center ? 'grid grid-cols-3' : ''"
28
+ >
29
+ <div class="flex max-w-full min-w-0 flex-1 items-center justify-start gap-4">
27
30
  <slot name="back-button">
28
31
  <Button
29
32
  v-if="backButtonText && backButtonAction && !$slots['back-button']"
@@ -34,7 +37,7 @@ const {
34
37
  {{ backButtonText }}
35
38
  </Button>
36
39
  </slot>
37
- <span class="block truncate text-sapphire-500" :class="headingType">
40
+ <span class="min-w-0 flex-1 truncate text-sapphire-500" :class="headingType">
38
41
  {{ title }}
39
42
  </span>
40
43
  </div>
@@ -44,6 +47,7 @@ const {
44
47
  <div
45
48
  v-if="$slots.right"
46
49
  :class="$slots.center ? 'col-span-1 col-start-3 flex justify-end' : 'ml-auto'"
50
+ class="shrink-0"
47
51
  >
48
52
  <slot name="right" />
49
53
  </div>