svseeds 0.5.2 → 0.5.3
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/README.md +7 -1
- package/_svseeds/_Modal.svelte +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,4 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
SvSeeds is a collection of essential functional components for Svelte development. These components are intentionally designed with minimal styling, giving you complete freedom to apply your own styles based on your project requirements. For specialized needs, you can download the components as .svelte files through our CLI tool and customize their functionality directly.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## Documentation
|
|
10
|
+
|
|
11
|
+
Visit https://svseeds.dev to view the documentation.
|
|
12
|
+
|
|
13
|
+
## License
|
|
14
|
+
|
|
15
|
+
Licensed under the [MIT license](https://github.com/scirexs/svseeds-ui/blob/main/LICENSE).
|
package/_svseeds/_Modal.svelte
CHANGED
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
// *** Initialize *** //
|
|
56
56
|
if (!variant) variant = VARIANT.NEUTRAL;
|
|
57
57
|
const cls = fnClass(preset, styling);
|
|
58
|
-
const attrs = omit(attributes, "class", "id", "
|
|
58
|
+
const attrs = omit(attributes, "class", "id", "aria-label", "onclick", "onkeydown", "ontoggle");
|
|
59
59
|
|
|
60
60
|
// *** Bind Handlers *** //
|
|
61
61
|
$effect.pre(() => {
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
|
|
91
91
|
<!---------------------------------------->
|
|
92
92
|
|
|
93
|
-
<dialog bind:this={element} class={cls(PARTS.WHOLE, variant)} aria-label={ariaLabel} {id} {onclick} {onkeydown} {ontoggle}
|
|
93
|
+
<dialog bind:this={element} class={cls(PARTS.WHOLE, variant)} aria-label={ariaLabel} {id} {onclick} {onkeydown} {ontoggle} {...attrs} style="margin:auto;background-color:transparent;">
|
|
94
94
|
{#if open}
|
|
95
95
|
<div class={cls(PARTS.MAIN, variant)} transition:fade={{ duration, easing: cubicOut }}>
|
|
96
96
|
{@render children(variant)}
|