svseeds 0.5.1 → 0.5.2
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/_svseeds/Accordion.svelte +12 -1
- package/_svseeds/Accordion.svelte.d.ts +12 -1
- package/_svseeds/DarkToggle.svelte +29 -15
- package/_svseeds/DarkToggle.svelte.d.ts +15 -1
- package/_svseeds/TagsInputField.svelte +20 -1
- package/_svseeds/TagsInputField.svelte.d.ts +20 -1
- package/_svseeds/ToggleGroupField.svelte +20 -1
- package/_svseeds/ToggleGroupField.svelte.d.ts +20 -1
- package/_svseeds/_Button.svelte +10 -1
- package/_svseeds/_Button.svelte.d.ts +10 -1
- package/_svseeds/_CheckField.svelte +23 -1
- package/_svseeds/_CheckField.svelte.d.ts +23 -1
- package/_svseeds/_ColorPicker.svelte +13 -1
- package/_svseeds/_ColorPicker.svelte.d.ts +13 -1
- package/_svseeds/_ComboBox.svelte +14 -1
- package/_svseeds/_ComboBox.svelte.d.ts +14 -1
- package/_svseeds/_ContextMenu.svelte +8 -1
- package/_svseeds/_ContextMenu.svelte.d.ts +8 -1
- package/_svseeds/_Disclosure.svelte +13 -1
- package/_svseeds/_Disclosure.svelte.d.ts +13 -1
- package/_svseeds/_Drawer.svelte +10 -3
- package/_svseeds/_Drawer.svelte.d.ts +8 -1
- package/_svseeds/_HotkeyCapture.svelte +6 -1
- package/_svseeds/_HotkeyCapture.svelte.d.ts +6 -1
- package/_svseeds/_Modal.svelte +10 -1
- package/_svseeds/_Modal.svelte.d.ts +10 -1
- package/_svseeds/_ProgressTracker.svelte +16 -1
- package/_svseeds/_ProgressTracker.svelte.d.ts +16 -1
- package/_svseeds/_SelectField.svelte +24 -1
- package/_svseeds/_SelectField.svelte.d.ts +24 -1
- package/_svseeds/_Slider.svelte +15 -1
- package/_svseeds/_Slider.svelte.d.ts +15 -1
- package/_svseeds/_Sortable.svelte +13 -1
- package/_svseeds/_Sortable.svelte.d.ts +13 -1
- package/_svseeds/_Tabs.svelte +15 -1
- package/_svseeds/_Tabs.svelte.d.ts +15 -1
- package/_svseeds/_TagsInput.svelte +26 -1
- package/_svseeds/_TagsInput.svelte.d.ts +26 -1
- package/_svseeds/_TextField.svelte +29 -1
- package/_svseeds/_TextField.svelte.d.ts +29 -1
- package/_svseeds/_Toggle.svelte +12 -1
- package/_svseeds/_Toggle.svelte.d.ts +12 -1
- package/_svseeds/_ToggleGroup.svelte +12 -1
- package/_svseeds/_ToggleGroup.svelte.d.ts +12 -1
- package/_svseeds/_Tooltip.svelte +12 -1
- package/_svseeds/_Tooltip.svelte.d.ts +12 -1
- package/package.json +1 -1
|
@@ -18,7 +18,8 @@ import { type Action } from "svelte/action";
|
|
|
18
18
|
import { type HTMLButtonAttributes } from "svelte/elements";
|
|
19
19
|
import { type SVSClass } from "./core";
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* ### Types
|
|
22
|
+
* default value: *`(value)`*
|
|
22
23
|
* ```ts
|
|
23
24
|
* interface ToggleProps {
|
|
24
25
|
* children: Snippet<[boolean, string, HTMLButtonElement | undefined]>; // Snippet<[value,variant,element]>
|
|
@@ -34,6 +35,16 @@ import { type SVSClass } from "./core";
|
|
|
34
35
|
* variant?: string; // bindable (VARIANT.NEUTRAL)
|
|
35
36
|
* }
|
|
36
37
|
* ```
|
|
38
|
+
* ### Anatomy
|
|
39
|
+
* ```svelte
|
|
40
|
+
* <span class="whole" conditional>
|
|
41
|
+
* <span class="left" conditional>{left}</span>
|
|
42
|
+
* <button class="main" aria-pressed={value} aria-label={ariaLabel} {role} {...attributes} bind:this={element} use:action>
|
|
43
|
+
* {children}
|
|
44
|
+
* </button>
|
|
45
|
+
* <span class="right" conditional>{right}</span>
|
|
46
|
+
* </span>
|
|
47
|
+
* ```
|
|
37
48
|
*/
|
|
38
49
|
declare const Toggle: import("svelte").Component<ToggleProps, {}, "variant" | "value" | "element">;
|
|
39
50
|
type Toggle = ReturnType<typeof Toggle>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
@component
|
|
3
|
-
|
|
3
|
+
### Types
|
|
4
|
+
default value: *`(value)`*
|
|
4
5
|
```ts
|
|
5
6
|
interface ToggleGroupProps {
|
|
6
7
|
options: SvelteMap<string, string> | Map<string, string>;
|
|
@@ -15,6 +16,16 @@
|
|
|
15
16
|
variant?: string; // bindable (VARIANT.NEUTRAL)
|
|
16
17
|
}
|
|
17
18
|
```
|
|
19
|
+
### Anatomy
|
|
20
|
+
```svelte
|
|
21
|
+
<span class="whole" aria-describedby={ariaDescId} aria-errormessage={ariaErrMsgId}>
|
|
22
|
+
{#each options as { value, text }}
|
|
23
|
+
<button class="main" use:action>
|
|
24
|
+
{text} or {children}
|
|
25
|
+
</button>
|
|
26
|
+
{/each}
|
|
27
|
+
</span>
|
|
28
|
+
```
|
|
18
29
|
-->
|
|
19
30
|
<script module lang="ts">
|
|
20
31
|
export interface ToggleGroupProps {
|
|
@@ -17,7 +17,8 @@ import { type Action } from "svelte/action";
|
|
|
17
17
|
import { type SvelteMap } from "svelte/reactivity";
|
|
18
18
|
import { type SVSClass } from "./core";
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* ### Types
|
|
21
|
+
* default value: *`(value)`*
|
|
21
22
|
* ```ts
|
|
22
23
|
* interface ToggleGroupProps {
|
|
23
24
|
* options: SvelteMap<string, string> | Map<string, string>;
|
|
@@ -32,6 +33,16 @@ import { type SVSClass } from "./core";
|
|
|
32
33
|
* variant?: string; // bindable (VARIANT.NEUTRAL)
|
|
33
34
|
* }
|
|
34
35
|
* ```
|
|
36
|
+
* ### Anatomy
|
|
37
|
+
* ```svelte
|
|
38
|
+
* <span class="whole" aria-describedby={ariaDescId} aria-errormessage={ariaErrMsgId}>
|
|
39
|
+
* {#each options as { value, text }}
|
|
40
|
+
* <button class="main" use:action>
|
|
41
|
+
* {text} or {children}
|
|
42
|
+
* </button>
|
|
43
|
+
* {/each}
|
|
44
|
+
* </span>
|
|
45
|
+
* ```
|
|
35
46
|
*/
|
|
36
47
|
declare const ToggleGroup: import("svelte").Component<ToggleGroupProps, {}, "variant" | "elements" | "values" | "ariaErrMsgId">;
|
|
37
48
|
type ToggleGroup = ReturnType<typeof ToggleGroup>;
|
package/_svseeds/_Tooltip.svelte
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
@component
|
|
3
|
-
|
|
3
|
+
### Types
|
|
4
|
+
default value: *`(value)`*
|
|
4
5
|
```ts
|
|
5
6
|
interface TooltipProps {
|
|
6
7
|
children?: Snippet<[string, string, boolean]>; // Snippet<[text,variant,isFlipped]>
|
|
@@ -16,6 +17,16 @@
|
|
|
16
17
|
type Position = "top" | "right" | "bottom" | "left";
|
|
17
18
|
type Align = "start" | "center" | "end";
|
|
18
19
|
```
|
|
20
|
+
### Anatomy
|
|
21
|
+
```svelte
|
|
22
|
+
<div class="whole" bind:this={element} conditional>
|
|
23
|
+
{#if children}
|
|
24
|
+
{children}
|
|
25
|
+
{:else}
|
|
26
|
+
{text} // `text` is an argument of the tooltip/tooltipAction function
|
|
27
|
+
{/if}
|
|
28
|
+
</div>
|
|
29
|
+
```
|
|
19
30
|
-->
|
|
20
31
|
<script module lang="ts">
|
|
21
32
|
export interface TooltipProps {
|
|
@@ -27,7 +27,8 @@ import { type Snippet } from "svelte";
|
|
|
27
27
|
import { type Action, type ActionReturn } from "svelte/action";
|
|
28
28
|
import { type SVSClass } from "./core";
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* ### Types
|
|
31
|
+
* default value: *`(value)`*
|
|
31
32
|
* ```ts
|
|
32
33
|
* interface TooltipProps {
|
|
33
34
|
* children?: Snippet<[string, string, boolean]>; // Snippet<[text,variant,isFlipped]>
|
|
@@ -43,6 +44,16 @@ import { type SVSClass } from "./core";
|
|
|
43
44
|
* type Position = "top" | "right" | "bottom" | "left";
|
|
44
45
|
* type Align = "start" | "center" | "end";
|
|
45
46
|
* ```
|
|
47
|
+
* ### Anatomy
|
|
48
|
+
* ```svelte
|
|
49
|
+
* <div class="whole" bind:this={element} conditional>
|
|
50
|
+
* {#if children}
|
|
51
|
+
* {children}
|
|
52
|
+
* {:else}
|
|
53
|
+
* {text} // `text` is an argument of the tooltip/tooltipAction function
|
|
54
|
+
* {/if}
|
|
55
|
+
* </div>
|
|
56
|
+
* ```
|
|
46
57
|
*/
|
|
47
58
|
declare const Tooltip: import("svelte").Component<TooltipProps, {}, "variant" | "element">;
|
|
48
59
|
type Tooltip = ReturnType<typeof Tooltip>;
|