Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit a8aac35

Browse files
author
TheComputerM
authored
Merge pull request #65 from lloyet/master
feat(Overlay): adding transition, inOpts, outOpts
2 parents 858ed15 + 85daff7 commit a8aac35

File tree

3 files changed

+48
-17
lines changed

3 files changed

+48
-17
lines changed

packages/api-generator/dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/api-generator/src/Overlay.json

Lines changed: 42 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,48 @@
22
"version": 3,
33
"name": "Overlay",
44
"data": [
5+
{
6+
"visibility": "public",
7+
"description": null,
8+
"keywords": [],
9+
"name": "transition",
10+
"kind": "let",
11+
"static": false,
12+
"readonly": false,
13+
"type": {
14+
"kind": "type",
15+
"text": "any",
16+
"type": "any"
17+
}
18+
},
19+
{
20+
"visibility": "public",
21+
"description": null,
22+
"keywords": [],
23+
"name": "inOpts",
24+
"kind": "let",
25+
"static": false,
26+
"readonly": false,
27+
"type": {
28+
"kind": "type",
29+
"text": "any",
30+
"type": "any"
31+
}
32+
},
33+
{
34+
"visibility": "public",
35+
"description": null,
36+
"keywords": [],
37+
"name": "outOpts",
38+
"kind": "let",
39+
"static": false,
40+
"readonly": false,
41+
"type": {
42+
"kind": "type",
43+
"text": "any",
44+
"type": "any"
45+
}
46+
},
547
{
648
"visibility": "public",
749
"description": null,
@@ -77,20 +119,6 @@
77119
},
78120
"defaultValue": false
79121
},
80-
{
81-
"visibility": "public",
82-
"description": null,
83-
"keywords": [],
84-
"name": "fadeOptions",
85-
"kind": "let",
86-
"static": false,
87-
"readonly": false,
88-
"type": {
89-
"kind": "type",
90-
"text": "any",
91-
"type": "any"
92-
}
93-
},
94122
{
95123
"visibility": "public",
96124
"description": null,

packages/svelte-materialify/src/components/Overlay/Overlay.svelte

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
import BackgroundColor from '../../internal/BackgroundColor';
44
55
let klass = '';
6+
export let transition = fade;
7+
export let inOpts = { duration: 250 };
8+
export let outOpts = { duration: 250 };
69
export let active = true;
710
export let opacity = 0.46;
811
export let color = 'rgb(33, 33, 33)';
912
export let index = 5;
1013
export let absolute = false;
11-
export let fadeOptions = {};
1214
export let style = '';
1315
export { klass as class };
1416
</script>
@@ -18,7 +20,8 @@
1820

1921
{#if active}
2022
<div
21-
transition:fade={fadeOptions}
23+
in:transition={inOpts}
24+
out:transition={outOpts}
2225
class="s-overlay {klass}"
2326
class:absolute
2427
on:click

0 commit comments

Comments
 (0)