@stubber/ui 1.0.15 → 1.0.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.
@@ -30,16 +30,13 @@ export let hasOverlay = true;
30
30
  {...$$restProps}
31
31
  >
32
32
  <slot />
33
- <SheetPrimitive.Close
34
- class="ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none"
35
- >
36
- <!-- rather than introduce a new param, just doing this if for now. may want to expose a slot later on -->
37
- {#if side != "left"}
33
+ <slot name="close">
34
+ <SheetPrimitive.Close
35
+ class="ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none"
36
+ >
38
37
  <i class="fa-regular fa-xmark h-4 w-4" />
39
- {:else}
40
- <i class="fa-kit fa-editor-tab-minimize text-xl"></i>
41
- {/if}
42
- <span class="sr-only">Close</span>
43
- </SheetPrimitive.Close>
38
+ <span class="sr-only">Close</span>
39
+ </SheetPrimitive.Close>
40
+ </slot>
44
41
  </SheetPrimitive.Content>
45
42
  </SheetPortal>
@@ -19,6 +19,7 @@ declare const __propDef: {
19
19
  };
20
20
  slots: {
21
21
  default: {};
22
+ close: {};
22
23
  };
23
24
  exports?: {} | undefined;
24
25
  bindings?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stubber/ui",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && pnpm run package && node ./fix_dts_imports.js",