@nexxtmove/ui 1.0.7 → 1.0.8

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.d.ts CHANGED
@@ -533,6 +533,7 @@ declare function __VLS_template_12(): {
533
533
  declare function __VLS_template_13(): {
534
534
  attrs: Partial<{}>;
535
535
  slots: {
536
+ header?(_: {}): any;
536
537
  default?(_: {}): any;
537
538
  footer?(_: {}): any;
538
539
  };
package/dist/index.js CHANGED
@@ -6359,19 +6359,23 @@ var ls = /* @__PURE__ */ g({
6359
6359
  onEscapeKeyDown: s[2] ||= (t) => !e.dismissible && t.preventDefault()
6360
6360
  }, {
6361
6361
  default: F(() => [
6362
- e.title || n.value ? (D(), u("div", Ws, [d("div", null, [e.title ? (D(), c(N(pe), {
6363
- key: 0,
6364
- class: "heading-2"
6365
- }, {
6366
- default: F(() => [m(M(e.title), 1)]),
6367
- _: 1
6368
- })) : l("", !0), n.value ? (D(), c(N(le), {
6369
- key: 1,
6370
- class: "small-normal"
6371
- }, {
6372
- default: F(() => [m(M(n.value), 1)]),
6373
- _: 1
6374
- })) : l("", !0)]), e.showClose ? (D(), c(N(se), {
6362
+ e.title || n.value || o.$slots.header ? (D(), u("div", Ws, [d("div", null, [
6363
+ e.title ? (D(), c(N(pe), {
6364
+ key: 0,
6365
+ class: "heading-2"
6366
+ }, {
6367
+ default: F(() => [m(M(e.title), 1)]),
6368
+ _: 1
6369
+ })) : l("", !0),
6370
+ n.value ? (D(), c(N(le), {
6371
+ key: 1,
6372
+ class: "small-normal"
6373
+ }, {
6374
+ default: F(() => [m(M(n.value), 1)]),
6375
+ _: 1
6376
+ })) : l("", !0),
6377
+ A(o.$slots, "header")
6378
+ ]), e.showClose ? (D(), c(N(se), {
6375
6379
  key: 0,
6376
6380
  class: "ml-4 shrink-0 cursor-pointer rounded p-1 focus-visible:outline-2"
6377
6381
  }, {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nexxtmove/ui",
3
3
  "type": "module",
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -85,7 +85,7 @@ const sizeClass = {
85
85
  @escape-key-down="!dismissible && $event.preventDefault()"
86
86
  >
87
87
  <div
88
- v-if="title || description"
88
+ v-if="title || description || $slots.header"
89
89
  class="flex items-start justify-between border-b border-gray-200 px-6 py-5"
90
90
  >
91
91
  <div>
@@ -93,6 +93,7 @@ const sizeClass = {
93
93
  <DialogDescription v-if="description" class="small-normal">
94
94
  {{ description }}
95
95
  </DialogDescription>
96
+ <slot name="header" />
96
97
  </div>
97
98
  <DialogClose
98
99
  v-if="showClose"