@ims360/svelte-ivory 0.1.3 → 0.1.5
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/components/layout/hiddenBackground/HiddenBackground.svelte +4 -7
- package/dist/components/layout/hiddenBackground/HiddenBackground.svelte.d.ts +1 -1
- package/dist/components/layout/hiddenBackground/HiddenBackground.svelte.d.ts.map +1 -1
- package/dist/components/layout/popover/Popover.svelte +1 -1
- package/package.json +1 -1
- package/src/lib/components/layout/hiddenBackground/HiddenBackground.svelte +4 -7
- package/src/lib/components/layout/popover/Popover.svelte +1 -1
|
@@ -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,15 +29,14 @@
|
|
|
31
29
|
}: HiddenBackgroundProps = $props();
|
|
32
30
|
</script>
|
|
33
31
|
|
|
34
|
-
<
|
|
32
|
+
<div
|
|
35
33
|
class={twMerge(
|
|
36
34
|
clsx(
|
|
37
|
-
'bg-surface-950-50/40 pointer-events-auto absolute top-0 left-0
|
|
35
|
+
'bg-surface-950-50/40 pointer-events-auto absolute top-0 left-0 m-0 h-full w-full p-0',
|
|
38
36
|
globalClass,
|
|
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
|
-
</
|
|
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<
|
|
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,
|
|
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
|
@@ -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,15 +29,14 @@
|
|
|
31
29
|
}: HiddenBackgroundProps = $props();
|
|
32
30
|
</script>
|
|
33
31
|
|
|
34
|
-
<
|
|
32
|
+
<div
|
|
35
33
|
class={twMerge(
|
|
36
34
|
clsx(
|
|
37
|
-
'bg-surface-950-50/40 pointer-events-auto absolute top-0 left-0
|
|
35
|
+
'bg-surface-950-50/40 pointer-events-auto absolute top-0 left-0 m-0 h-full w-full p-0',
|
|
38
36
|
globalClass,
|
|
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
|
-
</
|
|
51
|
+
</div>
|