svseeds 0.4.6 → 0.4.7

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.
Files changed (50) hide show
  1. package/_svseeds/Accordion.svelte +7 -7
  2. package/_svseeds/Accordion.svelte.d.ts +4 -4
  3. package/_svseeds/DarkToggle.svelte +5 -5
  4. package/_svseeds/DarkToggle.svelte.d.ts +3 -3
  5. package/_svseeds/TagsInputField.svelte +13 -17
  6. package/_svseeds/TagsInputField.svelte.d.ts +10 -10
  7. package/_svseeds/ToggleGroupField.svelte +9 -9
  8. package/_svseeds/ToggleGroupField.svelte.d.ts +6 -6
  9. package/_svseeds/_Button.svelte +5 -5
  10. package/_svseeds/_Button.svelte.d.ts +3 -3
  11. package/_svseeds/_CheckField.svelte +9 -9
  12. package/_svseeds/_CheckField.svelte.d.ts +6 -6
  13. package/_svseeds/_ColorPicker.svelte +7 -7
  14. package/_svseeds/_ColorPicker.svelte.d.ts +4 -4
  15. package/_svseeds/_ComboBox.svelte +3 -3
  16. package/_svseeds/_ComboBox.svelte.d.ts +2 -2
  17. package/_svseeds/_ContextMenu.svelte +7 -7
  18. package/_svseeds/_ContextMenu.svelte.d.ts +4 -4
  19. package/_svseeds/_Disclosure.svelte +10 -10
  20. package/_svseeds/_Disclosure.svelte.d.ts +6 -6
  21. package/_svseeds/_HotkeyCapture.svelte +7 -7
  22. package/_svseeds/_HotkeyCapture.svelte.d.ts +4 -4
  23. package/_svseeds/_Modal.svelte +7 -7
  24. package/_svseeds/_Modal.svelte.d.ts +4 -4
  25. package/_svseeds/_ProgressTracker.svelte +5 -5
  26. package/_svseeds/_ProgressTracker.svelte.d.ts +3 -3
  27. package/_svseeds/_SelectField.svelte +7 -7
  28. package/_svseeds/_SelectField.svelte.d.ts +5 -5
  29. package/_svseeds/_Slider.svelte +9 -9
  30. package/_svseeds/_Slider.svelte.d.ts +5 -5
  31. package/_svseeds/_Sortable.svelte +21 -21
  32. package/_svseeds/_Sortable.svelte.d.ts +11 -11
  33. package/_svseeds/_Tabs.svelte +5 -5
  34. package/_svseeds/_Tabs.svelte.d.ts +3 -3
  35. package/_svseeds/{TagsInput.svelte → _TagsInput.svelte} +30 -37
  36. package/_svseeds/{TagsInput.svelte.d.ts → _TagsInput.svelte.d.ts} +11 -15
  37. package/_svseeds/_TextField.svelte +9 -9
  38. package/_svseeds/_TextField.svelte.d.ts +7 -7
  39. package/_svseeds/_Toggle.svelte +7 -7
  40. package/_svseeds/_Toggle.svelte.d.ts +4 -4
  41. package/_svseeds/_ToggleGroup.svelte +5 -5
  42. package/_svseeds/_ToggleGroup.svelte.d.ts +3 -3
  43. package/_svseeds/_Tooltip.svelte +9 -9
  44. package/_svseeds/_Tooltip.svelte.d.ts +5 -5
  45. package/_svseeds/core.d.ts +1 -1
  46. package/index.d.ts +2 -3
  47. package/index.js +1 -2
  48. package/package.json +1 -1
  49. package/_svseeds/_Badge.svelte +0 -73
  50. package/_svseeds/_Badge.svelte.d.ts +0 -33
@@ -1,13 +1,13 @@
1
1
  <!--
2
2
  @component
3
- default value: `<value>`
3
+ default value: `(value)`
4
4
  ```ts
5
5
  interface DisclosureProps {
6
- label: string | Snippet<[string]>; // Snippet<[status]>
6
+ label: string | Snippet<[boolean,string]>; // Snippet<[open,status]>
7
7
  children: Snippet;
8
- open?: boolean; // bindable <false>
9
- duration?: number; // <400>
10
- status?: string; // bindable <STATE.NEUTRAL>
8
+ open?: boolean; // bindable (false)
9
+ duration?: number; // (400)
10
+ status?: string; // bindable (STATE.NEUTRAL)
11
11
  style?: SVSStyle;
12
12
  attributes?: HTMLDetailsAttributes;
13
13
  action?: Action;
@@ -17,11 +17,11 @@
17
17
  -->
18
18
  <script module lang="ts">
19
19
  export interface DisclosureProps {
20
- label: string | Snippet<[string]>; // Snippet<[status]>
20
+ label: string | Snippet<[boolean,string]>; // Snippet<[open,status]>
21
21
  children: Snippet;
22
- open?: boolean; // bindable <false>
23
- duration?: number; // <400>
24
- status?: string; // bindable <STATE.NEUTRAL>
22
+ open?: boolean; // bindable (false)
23
+ duration?: number; // (400)
24
+ status?: string; // bindable (STATE.NEUTRAL)
25
25
  style?: SVSStyle;
26
26
  attributes?: HTMLDetailsAttributes;
27
27
  action?: Action;
@@ -118,7 +118,7 @@
118
118
  {#if typeof label === "string"}
119
119
  {label}
120
120
  {:else if typeof label === "function"}
121
- {@render label(status)}
121
+ {@render label(open, status)}
122
122
  {/if}
123
123
  </summary>
124
124
  {#if open}
@@ -1,5 +1,5 @@
1
1
  export interface DisclosureProps {
2
- label: string | Snippet<[string]>;
2
+ label: string | Snippet<[boolean, string]>;
3
3
  children: Snippet;
4
4
  open?: boolean;
5
5
  duration?: number;
@@ -16,14 +16,14 @@ import { type Action } from "svelte/action";
16
16
  import { type HTMLDetailsAttributes } from "svelte/elements";
17
17
  import { type SVSStyle } from "./core";
18
18
  /**
19
- * default value: `<value>`
19
+ * default value: `(value)`
20
20
  * ```ts
21
21
  * interface DisclosureProps {
22
- * label: string | Snippet<[string]>; // Snippet<[status]>
22
+ * label: string | Snippet<[boolean,string]>; // Snippet<[open,status]>
23
23
  * children: Snippet;
24
- * open?: boolean; // bindable <false>
25
- * duration?: number; // <400>
26
- * status?: string; // bindable <STATE.NEUTRAL>
24
+ * open?: boolean; // bindable (false)
25
+ * duration?: number; // (400)
26
+ * status?: string; // bindable (STATE.NEUTRAL)
27
27
  * style?: SVSStyle;
28
28
  * attributes?: HTMLDetailsAttributes;
29
29
  * action?: Action;
@@ -1,13 +1,13 @@
1
1
  <!--
2
2
  @component
3
- default value: `<value>`
3
+ default value: `(value)`
4
4
  ```ts
5
5
  interface HotkeyCaptureProps {
6
6
  value?: string; // bindable
7
7
  placeholder?: string;
8
- active?: boolean; // bindable, <false>
9
- disabled?: boolean; // bindable, <false>
10
- status?: string; // bindable <STATE.NEUTRAL>
8
+ active?: boolean; // bindable, (false)
9
+ disabled?: boolean; // bindable, (false)
10
+ status?: string; // bindable (STATE.NEUTRAL)
11
11
  style?: SVSStyle;
12
12
  element?: HTMLInputElement; // bindable
13
13
  }
@@ -17,9 +17,9 @@
17
17
  export interface HotkeyCaptureProps {
18
18
  value?: string; // bindable
19
19
  placeholder?: string;
20
- active?: boolean; // bindable, <false>
21
- disabled?: boolean; // bindable, <false>
22
- status?: string; // bindable <STATE.NEUTRAL>
20
+ active?: boolean; // bindable, (false)
21
+ disabled?: boolean; // bindable, (false)
22
+ status?: string; // bindable (STATE.NEUTRAL)
23
23
  style?: SVSStyle;
24
24
  element?: HTMLInputElement; // bindable
25
25
  }
@@ -11,14 +11,14 @@ export type HotkeyCaptureReqdProps = never;
11
11
  export type HotkeyCaptureBindProps = "value" | "active" | "disable" | "status" | "element";
12
12
  import { type SVSStyle } from "./core";
13
13
  /**
14
- * default value: `<value>`
14
+ * default value: `(value)`
15
15
  * ```ts
16
16
  * interface HotkeyCaptureProps {
17
17
  * value?: string; // bindable
18
18
  * placeholder?: string;
19
- * active?: boolean; // bindable, <false>
20
- * disabled?: boolean; // bindable, <false>
21
- * status?: string; // bindable <STATE.NEUTRAL>
19
+ * active?: boolean; // bindable, (false)
20
+ * disabled?: boolean; // bindable, (false)
21
+ * status?: string; // bindable (STATE.NEUTRAL)
22
22
  * style?: SVSStyle;
23
23
  * element?: HTMLInputElement; // bindable
24
24
  * }
@@ -1,14 +1,14 @@
1
1
  <!--
2
2
  @component
3
- default value: `<value>`
3
+ default value: `(value)`
4
4
  ```ts
5
5
  interface ModalProps {
6
6
  children: Snippet;
7
- open?: boolean; // bindable <false>
8
- closable?: boolean; // <true>
7
+ open?: boolean; // bindable (false)
8
+ closable?: boolean; // (true)
9
9
  trigger?: HTMLElement; // bindable
10
10
  ariaLabel?: string;
11
- status?: string; // bindable <STATE.NEUTRAL>
11
+ status?: string; // bindable (STATE.NEUTRAL)
12
12
  style?: SVSStyle;
13
13
  element?: HTMLDialogElement; // bindable
14
14
  }
@@ -17,11 +17,11 @@
17
17
  <script module lang="ts">
18
18
  export interface ModalProps {
19
19
  children: Snippet;
20
- open?: boolean; // bindable <false>
21
- closable?: boolean; // <true>
20
+ open?: boolean; // bindable (false)
21
+ closable?: boolean; // (true)
22
22
  trigger?: HTMLElement; // bindable
23
23
  ariaLabel?: string;
24
- status?: string; // bindable <STATE.NEUTRAL>
24
+ status?: string; // bindable (STATE.NEUTRAL)
25
25
  style?: SVSStyle;
26
26
  element?: HTMLDialogElement; // bindable
27
27
  }
@@ -13,15 +13,15 @@ export type ModalBindProps = "open" | "status" | "element";
13
13
  import { type Snippet } from "svelte";
14
14
  import { type SVSStyle } from "./core";
15
15
  /**
16
- * default value: `<value>`
16
+ * default value: `(value)`
17
17
  * ```ts
18
18
  * interface ModalProps {
19
19
  * children: Snippet;
20
- * open?: boolean; // bindable <false>
21
- * closable?: boolean; // <true>
20
+ * open?: boolean; // bindable (false)
21
+ * closable?: boolean; // (true)
22
22
  * trigger?: HTMLElement; // bindable
23
23
  * ariaLabel?: string;
24
- * status?: string; // bindable <STATE.NEUTRAL>
24
+ * status?: string; // bindable (STATE.NEUTRAL)
25
25
  * style?: SVSStyle;
26
26
  * element?: HTMLDialogElement; // bindable
27
27
  * }
@@ -1,13 +1,13 @@
1
1
  <!--
2
2
  @component
3
- default value: `<value>`
3
+ default value: `(value)`
4
4
  ```ts
5
5
  interface ProgressTrackerProps {
6
- current: number; // bindable <0>
6
+ current: number; // bindable (0)
7
7
  labels: string[];
8
8
  aux?: Snippet<[string, number]>; // Snippet<[status,index]>
9
9
  extra?: Snippet<[string, number]>; // Snippet<[status,index]>
10
- status?: string; // bindable <STATE.NEUTRAL>
10
+ status?: string; // bindable (STATE.NEUTRAL)
11
11
  eachStatus?: SvelteMap<number, string> | Map<number, string>;
12
12
  style?: SVSStyle;
13
13
  }
@@ -15,11 +15,11 @@
15
15
  -->
16
16
  <script module lang="ts">
17
17
  export interface ProgressTrackerProps {
18
- current: number; // bindable <0>
18
+ current: number; // bindable (0)
19
19
  labels: string[];
20
20
  aux?: Snippet<[string, number]>; // Snippet<[status,index]>
21
21
  extra?: Snippet<[string, number]>; // Snippet<[status,index]>
22
- status?: string; // bindable <STATE.NEUTRAL>
22
+ status?: string; // bindable (STATE.NEUTRAL)
23
23
  eachStatus?: SvelteMap<number, string> | Map<number, string>;
24
24
  style?: SVSStyle;
25
25
  }
@@ -13,14 +13,14 @@ import { type Snippet } from "svelte";
13
13
  import { type SvelteMap } from "svelte/reactivity";
14
14
  import { type SVSStyle } from "./core";
15
15
  /**
16
- * default value: `<value>`
16
+ * default value: `(value)`
17
17
  * ```ts
18
18
  * interface ProgressTrackerProps {
19
- * current: number; // bindable <0>
19
+ * current: number; // bindable (0)
20
20
  * labels: string[];
21
21
  * aux?: Snippet<[string, number]>; // Snippet<[status,index]>
22
22
  * extra?: Snippet<[string, number]>; // Snippet<[status,index]>
23
- * status?: string; // bindable <STATE.NEUTRAL>
23
+ * status?: string; // bindable (STATE.NEUTRAL)
24
24
  * eachStatus?: SvelteMap<number, string> | Map<number, string>;
25
25
  * style?: SVSStyle;
26
26
  * }
@@ -1,6 +1,6 @@
1
1
  <!--
2
2
  @component
3
- default value: `<value>`
3
+ default value: `(value)`
4
4
  ```ts
5
5
  interface SelectFieldProps {
6
6
  options: SvelteMap<string, string> | Map<string, string>;
@@ -10,16 +10,16 @@
10
10
  left?: Snippet<[string, string, HTMLSelectElement | undefined]>; // Snippet<[status,value,element]>
11
11
  right?: Snippet<[string, string, HTMLSelectElement | undefined]>; // Snippet<[status,value,element]>
12
12
  bottom?: string;
13
- descFirst?: boolean; // <false>
13
+ descFirst?: boolean; // (false)
14
14
  value?: string; // bindable
15
15
  validations?: SelectFieldValidation[];
16
- status?: string; // bindable <STATE.NEUTRAL>
16
+ status?: string; // bindable (STATE.NEUTRAL)
17
17
  style?: SVSStyle;
18
18
  attributes?: HTMLSelectAttributes;
19
19
  action?: Action;
20
20
  element?: HTMLSelectElement; // bindable
21
21
  }
22
- type SelectFieldValidation = (value: string, validity: ValidityState) => string;
22
+ type SelectFieldValidation = (value: string, validity: ValidityState) => string | undefined;
23
23
  ```
24
24
  -->
25
25
  <script module lang="ts">
@@ -31,10 +31,10 @@
31
31
  left?: Snippet<[string, string, HTMLSelectElement | undefined]>; // Snippet<[status,value,element]>
32
32
  right?: Snippet<[string, string, HTMLSelectElement | undefined]>; // Snippet<[status,value,element]>
33
33
  bottom?: string;
34
- descFirst?: boolean; // <false>
34
+ descFirst?: boolean; // (false)
35
35
  value?: string; // bindable
36
36
  validations?: SelectFieldValidation[];
37
- status?: string; // bindable <STATE.NEUTRAL>
37
+ status?: string; // bindable (STATE.NEUTRAL)
38
38
  style?: SVSStyle;
39
39
  attributes?: HTMLSelectAttributes;
40
40
  action?: Action;
@@ -42,7 +42,7 @@
42
42
  }
43
43
  export type SelectFieldReqdProps = "options";
44
44
  export type SelectFieldBindProps = "value" | "status" | "element";
45
- export type SelectFieldValidation = (value: string, validity: ValidityState) => string;
45
+ export type SelectFieldValidation = (value: string, validity: ValidityState) => string | undefined;
46
46
 
47
47
  const preset = "svs-select-field";
48
48
 
@@ -17,14 +17,14 @@ export interface SelectFieldProps {
17
17
  }
18
18
  export type SelectFieldReqdProps = "options";
19
19
  export type SelectFieldBindProps = "value" | "status" | "element";
20
- export type SelectFieldValidation = (value: string, validity: ValidityState) => string;
20
+ export type SelectFieldValidation = (value: string, validity: ValidityState) => string | undefined;
21
21
  import { type Snippet } from "svelte";
22
22
  import { type Action } from "svelte/action";
23
23
  import { type SvelteMap } from "svelte/reactivity";
24
24
  import { type HTMLSelectAttributes } from "svelte/elements";
25
25
  import { type SVSStyle } from "./core";
26
26
  /**
27
- * default value: `<value>`
27
+ * default value: `(value)`
28
28
  * ```ts
29
29
  * interface SelectFieldProps {
30
30
  * options: SvelteMap<string, string> | Map<string, string>;
@@ -34,16 +34,16 @@ import { type SVSStyle } from "./core";
34
34
  * left?: Snippet<[string, string, HTMLSelectElement | undefined]>; // Snippet<[status,value,element]>
35
35
  * right?: Snippet<[string, string, HTMLSelectElement | undefined]>; // Snippet<[status,value,element]>
36
36
  * bottom?: string;
37
- * descFirst?: boolean; // <false>
37
+ * descFirst?: boolean; // (false)
38
38
  * value?: string; // bindable
39
39
  * validations?: SelectFieldValidation[];
40
- * status?: string; // bindable <STATE.NEUTRAL>
40
+ * status?: string; // bindable (STATE.NEUTRAL)
41
41
  * style?: SVSStyle;
42
42
  * attributes?: HTMLSelectAttributes;
43
43
  * action?: Action;
44
44
  * element?: HTMLSelectElement; // bindable
45
45
  * }
46
- * type SelectFieldValidation = (value: string, validity: ValidityState) => string;
46
+ * type SelectFieldValidation = (value: string, validity: ValidityState) => string | undefined;
47
47
  * ```
48
48
  */
49
49
  declare const SelectField: import("svelte").Component<SelectFieldProps, {}, "value" | "status" | "element">;
@@ -1,16 +1,16 @@
1
1
  <!--
2
2
  @component
3
- default value: `<value>`
3
+ default value: `(value)`
4
4
  ```ts
5
5
  interface SliderProps {
6
6
  range: Range; // bindable
7
7
  left?: Snippet<[string, number, HTMLInputElement | undefined]>; // Snippet<[status,value,element]>
8
8
  right?: Snippet<[string, number, HTMLInputElement | undefined]>; // Snippet<[status,value,element]>
9
- value?: number; // bindable <min+((max-min)/2)>
10
- step?: number | "any"; // <1>
9
+ value?: number; // bindable (min+((max-min)/2))
10
+ step?: number | "any"; // (1)
11
11
  options?: SvelteSet<number> | Set<number>;
12
- background?: Range; // <{ min: 5, max: 95 }>
13
- status?: string; // bindable <STATE.NEUTRAL>
12
+ background?: Range; // ({ min: 5, max: 95 })
13
+ status?: string; // bindable (STATE.NEUTRAL)
14
14
  style?: SVSStyle;
15
15
  attributes?: HTMLInputAttributes;
16
16
  action?: Action;
@@ -24,11 +24,11 @@
24
24
  range: Range; // bindable
25
25
  left?: Snippet<[string, number, HTMLInputElement | undefined]>; // Snippet<[status,value,element]>
26
26
  right?: Snippet<[string, number, HTMLInputElement | undefined]>; // Snippet<[status,value,element]>
27
- value?: number; // bindable <min+((max-min)/2)>
28
- step?: number | "any"; // <1>
27
+ value?: number; // bindable (min+((max-min)/2))
28
+ step?: number | "any"; // (1)
29
29
  options?: SvelteSet<number> | Set<number>;
30
- background?: Range; // <{ min: 5, max: 95 }>
31
- status?: string; // bindable <STATE.NEUTRAL>
30
+ background?: Range; // ({ min: 5, max: 95 })
31
+ status?: string; // bindable (STATE.NEUTRAL)
32
32
  style?: SVSStyle;
33
33
  attributes?: HTMLInputAttributes;
34
34
  action?: Action;
@@ -24,17 +24,17 @@ import { type SvelteSet } from "svelte/reactivity";
24
24
  import { type HTMLInputAttributes } from "svelte/elements";
25
25
  import { type SVSStyle } from "./core";
26
26
  /**
27
- * default value: `<value>`
27
+ * default value: `(value)`
28
28
  * ```ts
29
29
  * interface SliderProps {
30
30
  * range: Range; // bindable
31
31
  * left?: Snippet<[string, number, HTMLInputElement | undefined]>; // Snippet<[status,value,element]>
32
32
  * right?: Snippet<[string, number, HTMLInputElement | undefined]>; // Snippet<[status,value,element]>
33
- * value?: number; // bindable <min+((max-min)/2)>
34
- * step?: number | "any"; // <1>
33
+ * value?: number; // bindable (min+((max-min)/2))
34
+ * step?: number | "any"; // (1)
35
35
  * options?: SvelteSet<number> | Set<number>;
36
- * background?: Range; // <{ min: 5, max: 95 }>
37
- * status?: string; // bindable <STATE.NEUTRAL>
36
+ * background?: Range; // ({ min: 5, max: 95 })
37
+ * status?: string; // bindable (STATE.NEUTRAL)
38
38
  * style?: SVSStyle;
39
39
  * attributes?: HTMLInputAttributes;
40
40
  * action?: Action;
@@ -1,20 +1,20 @@
1
1
  <!--
2
2
  @component
3
- default value: `<value>`
3
+ default value: `(value)`
4
4
  ```ts
5
5
  interface SortableProps {
6
6
  items: SortableItems; // wrapper of string array as items to handle DnD
7
7
  item: Snippet<[string, string, PointerEventHandler]>; // Snippet<[status, value, onpointerdown]>
8
- ghost?: Snippet<[string]>; // custom shadow while dragging <the translucent item>; Snippet<[value]>
9
- name?: string; // name of this group <random string>
10
- mode?: SortableMode; // sort mode <"std">;
11
- accept?: string[]; // list of accept group names <undefined>; undefined=any,[]=none
12
- sort?: boolean; // enable sort within same group <true>
13
- multiple?: boolean; // enable multiple select & drag with them <false>
14
- draggable?: boolean; // enable default pointerdown handler <true>
15
- appendable?: boolean; // enable append when enter group area <false>
16
- confirm?: boolean // enable confirm interval time to move items <false>
17
- status?: string; // bindable <STATE.NEUTRAL>
8
+ ghost?: Snippet<[string]>; // custom shadow while dragging (the translucent item); Snippet<[value]>
9
+ name?: string; // name of this group (random string)
10
+ mode?: SortableMode; // sort mode ("std"); "std","clone","swap"
11
+ accept?: string[]; // list of accept group names (undefined); undefined=any,[]=none
12
+ sort?: boolean; // enable sort within same group (true)
13
+ multiple?: boolean; // enable multiple select & drag with them (false)
14
+ draggable?: boolean; // enable default pointerdown handler (true)
15
+ appendable?: boolean; // enable append when enter group area (false)
16
+ confirm?: boolean // enable confirm interval time to move items (false)
17
+ status?: string; // bindable (STATE.NEUTRAL)
18
18
  style?: SVSStyle;
19
19
  }
20
20
  type SortableMode = "std" | "clone" | "swap";
@@ -52,16 +52,16 @@
52
52
  export interface SortableProps {
53
53
  items: SortableItems; // wrapper of string array as items to handle DnD
54
54
  item: Snippet<[string, string, PointerEventHandler]>; // Snippet<[status, value, onpointerdown]>
55
- ghost?: Snippet<[string]>; // custom shadow while dragging <the translucent item>; Snippet<[value]>
56
- name?: string; // name of this group <random string>
57
- mode?: SortableMode; // sort mode <"std">; "std","clone","swap"
58
- accept?: string[]; // list of accept group names <undefined>; undefined=any,[]=none
59
- sort?: boolean; // enable sort within same group <true>
60
- multiple?: boolean; // enable multiple select & drag with them <false>
61
- draggable?: boolean; // enable default pointerdown handler <true>
62
- appendable?: boolean; // enable append when enter group area <false>
63
- confirm?: boolean // enable confirm interval time to move items <false>
64
- status?: string; // bindable <STATE.NEUTRAL>
55
+ ghost?: Snippet<[string]>; // custom shadow while dragging (the translucent item); Snippet<[value]>
56
+ name?: string; // name of this group (random string)
57
+ mode?: SortableMode; // sort mode ("std"); "std","clone","swap"
58
+ accept?: string[]; // list of accept group names (undefined); undefined=any,[]=none
59
+ sort?: boolean; // enable sort within same group (true)
60
+ multiple?: boolean; // enable multiple select & drag with them (false)
61
+ draggable?: boolean; // enable default pointerdown handler (true)
62
+ appendable?: boolean; // enable append when enter group area (false)
63
+ confirm?: boolean // enable confirm interval time to move items (false)
64
+ status?: string; // bindable (STATE.NEUTRAL)
65
65
  style?: SVSStyle;
66
66
  }
67
67
  export type SortableReqdProps = "items" | "item";
@@ -58,21 +58,21 @@ type DragState = "ready" | "dragging" | "idle";
58
58
  import { type Snippet } from "svelte";
59
59
  import { type SVSStyle } from "./core";
60
60
  /**
61
- * default value: `<value>`
61
+ * default value: `(value)`
62
62
  * ```ts
63
63
  * interface SortableProps {
64
64
  * items: SortableItems; // wrapper of string array as items to handle DnD
65
65
  * item: Snippet<[string, string, PointerEventHandler]>; // Snippet<[status, value, onpointerdown]>
66
- * ghost?: Snippet<[string]>; // custom shadow while dragging <the translucent item>; Snippet<[value]>
67
- * name?: string; // name of this group <random string>
68
- * mode?: SortableMode; // sort mode <"std">;
69
- * accept?: string[]; // list of accept group names <undefined>; undefined=any,[]=none
70
- * sort?: boolean; // enable sort within same group <true>
71
- * multiple?: boolean; // enable multiple select & drag with them <false>
72
- * draggable?: boolean; // enable default pointerdown handler <true>
73
- * appendable?: boolean; // enable append when enter group area <false>
74
- * confirm?: boolean // enable confirm interval time to move items <false>
75
- * status?: string; // bindable <STATE.NEUTRAL>
66
+ * ghost?: Snippet<[string]>; // custom shadow while dragging (the translucent item); Snippet<[value]>
67
+ * name?: string; // name of this group (random string)
68
+ * mode?: SortableMode; // sort mode ("std"); "std","clone","swap"
69
+ * accept?: string[]; // list of accept group names (undefined); undefined=any,[]=none
70
+ * sort?: boolean; // enable sort within same group (true)
71
+ * multiple?: boolean; // enable multiple select & drag with them (false)
72
+ * draggable?: boolean; // enable default pointerdown handler (true)
73
+ * appendable?: boolean; // enable append when enter group area (false)
74
+ * confirm?: boolean // enable confirm interval time to move items (false)
75
+ * status?: string; // bindable (STATE.NEUTRAL)
76
76
  * style?: SVSStyle;
77
77
  * }
78
78
  * type SortableMode = "std" | "clone" | "swap";
@@ -1,12 +1,12 @@
1
1
  <!--
2
2
  @component
3
- default value: `<value>`
3
+ default value: `(value)`
4
4
  ```ts
5
5
  interface TabsProps {
6
6
  labels?: string[];
7
- current?: number; // bindable <0>
7
+ current?: number; // bindable (0)
8
8
  ariaOrientation?: "horizontal" | "vertical";
9
- status?: string; // bindable <STATE.NEUTRAL>
9
+ status?: string; // bindable (STATE.NEUTRAL)
10
10
  style?: SVSStyle;
11
11
  [key: string]: unknown | Snippet;
12
12
  }
@@ -15,9 +15,9 @@
15
15
  <script module lang="ts">
16
16
  export interface TabsProps {
17
17
  labels?: string[];
18
- current?: number; // bindable <0>
18
+ current?: number; // bindable (0)
19
19
  ariaOrientation?: "horizontal" | "vertical";
20
- status?: string; // bindable <STATE.NEUTRAL>
20
+ status?: string; // bindable (STATE.NEUTRAL)
21
21
  style?: SVSStyle;
22
22
  [key: string]: unknown | Snippet;
23
23
  }
@@ -11,13 +11,13 @@ export type TabsBindProps = "current" | "status";
11
11
  import { type Snippet } from "svelte";
12
12
  import { type SVSStyle } from "./core";
13
13
  /**
14
- * default value: `<value>`
14
+ * default value: `(value)`
15
15
  * ```ts
16
16
  * interface TabsProps {
17
17
  * labels?: string[];
18
- * current?: number; // bindable <0>
18
+ * current?: number; // bindable (0)
19
19
  * ariaOrientation?: "horizontal" | "vertical";
20
- * status?: string; // bindable <STATE.NEUTRAL>
20
+ * status?: string; // bindable (STATE.NEUTRAL)
21
21
  * style?: SVSStyle;
22
22
  * [key: string]: unknown | Snippet;
23
23
  * }