@ims360/svelte-ivory 0.1.3 → 0.1.4

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.
@@ -12,9 +12,7 @@
12
12
  globalClass = value;
13
13
  }
14
14
 
15
- export interface HiddenBackgroundProps
16
- extends IvoryComponent<HTMLDialogElement>,
17
- TransitionProps {
15
+ export interface HiddenBackgroundProps extends IvoryComponent<HTMLDivElement>, TransitionProps {
18
16
  /** Gets called when the dialog is clicked */
19
17
  onclose?: () => void;
20
18
  }
@@ -31,7 +29,7 @@
31
29
  }: HiddenBackgroundProps = $props();
32
30
  </script>
33
31
 
34
- <dialog
32
+ <div
35
33
  class={twMerge(
36
34
  clsx(
37
35
  'bg-surface-950-50/40 pointer-events-auto absolute top-0 left-0 z-40 m-0 h-full w-full p-0',
@@ -39,7 +37,6 @@
39
37
  clazz
40
38
  )
41
39
  )}
42
- open
43
40
  use:focusTrap={true}
44
41
  {@attach shortcut({
45
42
  code: 'Escape',
@@ -51,4 +48,4 @@
51
48
  {...rest}
52
49
  >
53
50
  {@render children?.()}
54
- </dialog>
51
+ </div>
@@ -1,7 +1,7 @@
1
1
  import type { IvoryComponent, TransitionProps } from '../../../types';
2
2
  import type { ClassValue } from 'svelte/elements';
3
3
  export declare function setClasses(value: ClassValue): void;
4
- export interface HiddenBackgroundProps extends IvoryComponent<HTMLDialogElement>, TransitionProps {
4
+ export interface HiddenBackgroundProps extends IvoryComponent<HTMLDivElement>, TransitionProps {
5
5
  /** Gets called when the dialog is clicked */
6
6
  onclose?: () => void;
7
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"HiddenBackground.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/layout/hiddenBackground/HiddenBackground.svelte.ts"],"names":[],"mappings":"AAGI,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAOlD,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,QAE3C;AAED,MAAM,WAAW,qBACb,SAAQ,cAAc,CAAC,iBAAiB,CAAC,EACrC,eAAe;IACnB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AA8BL,QAAA,MAAM,gBAAgB,2DAAwC,CAAC;AAC/D,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC5D,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"HiddenBackground.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/layout/hiddenBackground/HiddenBackground.svelte.ts"],"names":[],"mappings":"AAGI,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAOlD,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,QAE3C;AAED,MAAM,WAAW,qBAAsB,SAAQ,cAAc,CAAC,cAAc,CAAC,EAAE,eAAe;IAC1F,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AA8BL,QAAA,MAAM,gBAAgB,2DAAwC,CAAC;AAC/D,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC5D,eAAe,gBAAgB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ims360/svelte-ivory",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "keywords": [
5
5
  "svelte"
6
6
  ],
@@ -12,9 +12,7 @@
12
12
  globalClass = value;
13
13
  }
14
14
 
15
- export interface HiddenBackgroundProps
16
- extends IvoryComponent<HTMLDialogElement>,
17
- TransitionProps {
15
+ export interface HiddenBackgroundProps extends IvoryComponent<HTMLDivElement>, TransitionProps {
18
16
  /** Gets called when the dialog is clicked */
19
17
  onclose?: () => void;
20
18
  }
@@ -31,7 +29,7 @@
31
29
  }: HiddenBackgroundProps = $props();
32
30
  </script>
33
31
 
34
- <dialog
32
+ <div
35
33
  class={twMerge(
36
34
  clsx(
37
35
  'bg-surface-950-50/40 pointer-events-auto absolute top-0 left-0 z-40 m-0 h-full w-full p-0',
@@ -39,7 +37,6 @@
39
37
  clazz
40
38
  )
41
39
  )}
42
- open
43
40
  use:focusTrap={true}
44
41
  {@attach shortcut({
45
42
  code: 'Escape',
@@ -51,4 +48,4 @@
51
48
  {...rest}
52
49
  >
53
50
  {@render children?.()}
54
- </dialog>
51
+ </div>