@geoffcox/sterling-svelte 0.0.22 → 0.0.23

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 (54) hide show
  1. package/Button.svelte +7 -0
  2. package/Button.svelte.d.ts +7 -0
  3. package/Checkbox.svelte +16 -18
  4. package/Checkbox.svelte.d.ts +6 -1
  5. package/Dropdown.svelte +6 -0
  6. package/Dropdown.svelte.d.ts +6 -0
  7. package/Field.svelte +6 -0
  8. package/Field.svelte.d.ts +6 -0
  9. package/Input.svelte +7 -0
  10. package/Input.svelte.d.ts +7 -0
  11. package/Label.svelte +6 -0
  12. package/Label.svelte.d.ts +6 -0
  13. package/Link.svelte +6 -0
  14. package/Link.svelte.d.ts +6 -0
  15. package/List.svelte +6 -0
  16. package/List.svelte.d.ts +6 -0
  17. package/ListItem.svelte +6 -0
  18. package/ListItem.svelte.d.ts +6 -0
  19. package/Menu.svelte +7 -1
  20. package/Menu.svelte.d.ts +6 -0
  21. package/MenuBar.svelte +6 -0
  22. package/MenuBar.svelte.d.ts +6 -0
  23. package/MenuButton.svelte +6 -0
  24. package/MenuButton.svelte.d.ts +6 -0
  25. package/MenuItem.svelte +6 -0
  26. package/MenuItem.svelte.d.ts +6 -0
  27. package/MenuSeparator.svelte +6 -0
  28. package/MenuSeparator.svelte.d.ts +12 -0
  29. package/Progress.svelte +6 -0
  30. package/Progress.svelte.d.ts +6 -0
  31. package/Radio.svelte +16 -18
  32. package/Radio.svelte.d.ts +6 -1
  33. package/Select.svelte +6 -0
  34. package/Select.svelte.d.ts +6 -0
  35. package/Slider.svelte +6 -0
  36. package/Slider.svelte.d.ts +6 -0
  37. package/Switch.svelte +6 -1
  38. package/Switch.svelte.d.ts +6 -1
  39. package/Tab.svelte +6 -0
  40. package/Tab.svelte.d.ts +6 -0
  41. package/TabList.svelte +6 -0
  42. package/TabList.svelte.d.ts +6 -0
  43. package/TextArea.svelte +7 -0
  44. package/TextArea.svelte.d.ts +7 -0
  45. package/Tooltip.svelte +0 -1
  46. package/Tree.svelte +6 -0
  47. package/Tree.svelte.d.ts +6 -0
  48. package/TreeChevron.svelte +6 -0
  49. package/TreeChevron.svelte.d.ts +6 -0
  50. package/TreeItem.svelte +6 -0
  51. package/TreeItem.svelte.d.ts +6 -0
  52. package/TreeItemDisplay.svelte +6 -0
  53. package/TreeItemDisplay.svelte.d.ts +6 -0
  54. package/package.json +3 -3
package/Button.svelte CHANGED
@@ -26,6 +26,13 @@ export const focus = (options) => {
26
26
  type="button"
27
27
  on:blur
28
28
  on:click
29
+ on:drag
30
+ on:dragend
31
+ on:dragenter
32
+ on:dragleave
33
+ on:dragover
34
+ on:dragstart
35
+ on:drop
29
36
  on:dblclick
30
37
  on:focus
31
38
  on:focusin
@@ -11,6 +11,13 @@ declare const __propDef: {
11
11
  events: {
12
12
  blur: FocusEvent;
13
13
  click: MouseEvent;
14
+ drag: DragEvent;
15
+ dragend: DragEvent;
16
+ dragenter: DragEvent;
17
+ dragleave: DragEvent;
18
+ dragover: DragEvent;
19
+ dragstart: DragEvent;
20
+ drop: DragEvent;
14
21
  dblclick: MouseEvent;
15
22
  focus: FocusEvent;
16
23
  focusin: FocusEvent;
package/Checkbox.svelte CHANGED
@@ -35,6 +35,12 @@ export const focus = (options) => {
35
35
  on:click
36
36
  on:change
37
37
  on:dblclick
38
+ on:dragend
39
+ on:dragenter
40
+ on:dragleave
41
+ on:dragover
42
+ on:dragstart
43
+ on:drop
38
44
  on:focus
39
45
  on:focusin
40
46
  on:focusout
@@ -49,7 +55,6 @@ export const focus = (options) => {
49
55
  on:mouseover
50
56
  on:mouseout
51
57
  on:mouseup
52
- on:toggle
53
58
  on:wheel
54
59
  bind:checked
55
60
  {...$$restProps}
@@ -57,27 +62,24 @@ export const focus = (options) => {
57
62
  <div class="indicator" />
58
63
  </div>
59
64
  {#if $$slots.default}
60
- <div class="label">
61
- <Label {disabled} for={id}>
62
- <slot {checked} {disabled} inputId={id} value={$$restProps.value}>
63
- {$$restProps.value}
64
- </slot>
65
- </Label>
66
- </div>
65
+ <Label {disabled} for={id}>
66
+ <slot {checked} {disabled} inputId={id} value={$$restProps.value}>
67
+ {$$restProps.value}
68
+ </slot>
69
+ </Label>
67
70
  {/if}
68
71
  </div>
69
72
 
70
73
  <style>
71
74
  .sterling-checkbox {
72
- display: inline-flex;
73
- align-content: stretch;
74
- align-items: stretch;
75
+ align-content: center;
76
+ align-items: center;
75
77
  box-sizing: border-box;
78
+ display: inline-flex;
76
79
  font: inherit;
77
- gap: 0.4em;
80
+ margin: 0;
78
81
  outline: none;
79
82
  padding: 0;
80
- margin: 0;
81
83
  }
82
84
 
83
85
  /*
@@ -91,6 +93,7 @@ export const focus = (options) => {
91
93
  position: relative;
92
94
  display: grid;
93
95
  align-items: center;
96
+ margin-right: 0.25em;
94
97
  }
95
98
 
96
99
  /*
@@ -166,11 +169,6 @@ export const focus = (options) => {
166
169
  border-color: var(--stsv-Common__color--disabled);
167
170
  }
168
171
 
169
- .label {
170
- user-select: none;
171
- margin-top: 0.25em;
172
- }
173
-
174
172
  @media (prefers-reduced-motion) {
175
173
  .indicator,
176
174
  input:checked + .indicator::after {
@@ -14,6 +14,12 @@ declare const __propDef: {
14
14
  click: MouseEvent;
15
15
  change: Event;
16
16
  dblclick: MouseEvent;
17
+ dragend: DragEvent;
18
+ dragenter: DragEvent;
19
+ dragleave: DragEvent;
20
+ dragover: DragEvent;
21
+ dragstart: DragEvent;
22
+ drop: DragEvent;
17
23
  focus: FocusEvent;
18
24
  focusin: FocusEvent;
19
25
  focusout: FocusEvent;
@@ -28,7 +34,6 @@ declare const __propDef: {
28
34
  mouseover: MouseEvent;
29
35
  mouseout: MouseEvent;
30
36
  mouseup: MouseEvent;
31
- toggle: Event;
32
37
  wheel: WheelEvent;
33
38
  } & {
34
39
  [evt: string]: CustomEvent<any>;
package/Dropdown.svelte CHANGED
@@ -88,6 +88,12 @@ const onClickOutside = (event) => {
88
88
  on:copy
89
89
  on:cut
90
90
  on:dblclick
91
+ on:dragend
92
+ on:dragenter
93
+ on:dragleave
94
+ on:dragover
95
+ on:dragstart
96
+ on:drop
91
97
  on:focus
92
98
  on:focusin
93
99
  on:focusout
@@ -16,6 +16,12 @@ declare const __propDef: {
16
16
  copy: ClipboardEvent;
17
17
  cut: ClipboardEvent;
18
18
  dblclick: MouseEvent;
19
+ dragend: DragEvent;
20
+ dragenter: DragEvent;
21
+ dragleave: DragEvent;
22
+ dragover: DragEvent;
23
+ dragstart: DragEvent;
24
+ drop: DragEvent;
19
25
  focus: FocusEvent;
20
26
  focusin: FocusEvent;
21
27
  focusout: FocusEvent;
package/Field.svelte CHANGED
@@ -102,6 +102,12 @@ const onClick = () => {
102
102
  on:copy
103
103
  on:cut
104
104
  on:dblclick
105
+ on:dragend
106
+ on:dragenter
107
+ on:dragleave
108
+ on:dragover
109
+ on:dragstart
110
+ on:drop
105
111
  on:focus
106
112
  on:focusin
107
113
  on:focusout
package/Field.svelte.d.ts CHANGED
@@ -19,6 +19,12 @@ declare const __propDef: {
19
19
  copy: ClipboardEvent;
20
20
  cut: ClipboardEvent;
21
21
  dblclick: MouseEvent;
22
+ dragend: DragEvent;
23
+ dragenter: DragEvent;
24
+ dragleave: DragEvent;
25
+ dragover: DragEvent;
26
+ dragstart: DragEvent;
27
+ drop: DragEvent;
22
28
  focus: FocusEvent;
23
29
  focusin: FocusEvent;
24
30
  focusout: FocusEvent;
package/Input.svelte CHANGED
@@ -46,6 +46,7 @@ export const setRangeText = (replacement, start, end, selectionMode) => {
46
46
  {disabled}
47
47
  {id}
48
48
  bind:value
49
+ on:beforeinput
49
50
  on:blur
50
51
  on:click
51
52
  on:change
@@ -53,6 +54,12 @@ export const setRangeText = (replacement, start, end, selectionMode) => {
53
54
  on:cut
54
55
  on:paste
55
56
  on:dblclick
57
+ on:dragend
58
+ on:dragenter
59
+ on:dragleave
60
+ on:dragover
61
+ on:dragstart
62
+ on:drop
56
63
  on:focus
57
64
  on:focusin
58
65
  on:focusout
package/Input.svelte.d.ts CHANGED
@@ -14,6 +14,7 @@ declare const __propDef: {
14
14
  setRangeText?: ((replacement: string, start?: number, end?: number, selectionMode?: SelectionMode) => void) | undefined;
15
15
  };
16
16
  events: {
17
+ beforeinput: InputEvent;
17
18
  blur: FocusEvent;
18
19
  click: MouseEvent;
19
20
  change: Event;
@@ -21,6 +22,12 @@ declare const __propDef: {
21
22
  cut: ClipboardEvent;
22
23
  paste: ClipboardEvent;
23
24
  dblclick: MouseEvent;
25
+ dragend: DragEvent;
26
+ dragenter: DragEvent;
27
+ dragleave: DragEvent;
28
+ dragover: DragEvent;
29
+ dragstart: DragEvent;
30
+ drop: DragEvent;
24
31
  focus: FocusEvent;
25
32
  focusin: FocusEvent;
26
33
  focusout: FocusEvent;
package/Label.svelte CHANGED
@@ -21,6 +21,12 @@ export const focus = (options) => {
21
21
  on:copy
22
22
  on:cut
23
23
  on:dblclick
24
+ on:dragend
25
+ on:dragenter
26
+ on:dragleave
27
+ on:dragover
28
+ on:dragstart
29
+ on:drop
24
30
  on:focus
25
31
  on:focusin
26
32
  on:focusout
package/Label.svelte.d.ts CHANGED
@@ -13,6 +13,12 @@ declare const __propDef: {
13
13
  copy: ClipboardEvent;
14
14
  cut: ClipboardEvent;
15
15
  dblclick: MouseEvent;
16
+ dragend: DragEvent;
17
+ dragenter: DragEvent;
18
+ dragleave: DragEvent;
19
+ dragover: DragEvent;
20
+ dragstart: DragEvent;
21
+ drop: DragEvent;
16
22
  focus: FocusEvent;
17
23
  focusin: FocusEvent;
18
24
  focusout: FocusEvent;
package/Link.svelte CHANGED
@@ -23,6 +23,12 @@ export const focus = (options) => {
23
23
  on:blur
24
24
  on:click
25
25
  on:dblclick
26
+ on:dragend
27
+ on:dragenter
28
+ on:dragleave
29
+ on:dragover
30
+ on:dragstart
31
+ on:drop
26
32
  on:focus
27
33
  on:focusin
28
34
  on:focusout
package/Link.svelte.d.ts CHANGED
@@ -13,6 +13,12 @@ declare const __propDef: {
13
13
  blur: FocusEvent;
14
14
  click: MouseEvent;
15
15
  dblclick: MouseEvent;
16
+ dragend: DragEvent;
17
+ dragenter: DragEvent;
18
+ dragleave: DragEvent;
19
+ dragover: DragEvent;
20
+ dragstart: DragEvent;
21
+ drop: DragEvent;
16
22
  focus: FocusEvent;
17
23
  focusin: FocusEvent;
18
24
  focusout: FocusEvent;
package/List.svelte CHANGED
@@ -206,6 +206,12 @@ A list of items where a single item can be selected.
206
206
  on:copy
207
207
  on:cut
208
208
  on:dblclick
209
+ on:dragend
210
+ on:dragenter
211
+ on:dragleave
212
+ on:dragover
213
+ on:dragstart
214
+ on:drop
209
215
  on:focus
210
216
  on:focusin
211
217
  on:focusout
package/List.svelte.d.ts CHANGED
@@ -21,6 +21,12 @@ declare const __propDef: {
21
21
  copy: ClipboardEvent;
22
22
  cut: ClipboardEvent;
23
23
  dblclick: MouseEvent;
24
+ dragend: DragEvent;
25
+ dragenter: DragEvent;
26
+ dragleave: DragEvent;
27
+ dragover: DragEvent;
28
+ dragstart: DragEvent;
29
+ drop: DragEvent;
24
30
  focus: FocusEvent;
25
31
  focusin: FocusEvent;
26
32
  focusout: FocusEvent;
package/ListItem.svelte CHANGED
@@ -34,6 +34,12 @@ export const focus = (options) => {
34
34
  on:blur
35
35
  on:click
36
36
  on:dblclick
37
+ on:dragend
38
+ on:dragenter
39
+ on:dragleave
40
+ on:dragover
41
+ on:dragstart
42
+ on:drop
37
43
  on:focus
38
44
  on:focusin
39
45
  on:focusout
@@ -12,6 +12,12 @@ declare const __propDef: {
12
12
  blur: FocusEvent;
13
13
  click: MouseEvent;
14
14
  dblclick: MouseEvent;
15
+ dragend: DragEvent;
16
+ dragenter: DragEvent;
17
+ dragleave: DragEvent;
18
+ dragover: DragEvent;
19
+ dragstart: DragEvent;
20
+ drop: DragEvent;
15
21
  focus: FocusEvent;
16
22
  focusin: FocusEvent;
17
23
  focusout: FocusEvent;
package/Menu.svelte CHANGED
@@ -80,6 +80,12 @@ onMount(() => {
80
80
  on:copy
81
81
  on:cut
82
82
  on:dblclick
83
+ on:dragend
84
+ on:dragenter
85
+ on:dragleave
86
+ on:dragover
87
+ on:dragstart
88
+ on:drop
83
89
  on:focus
84
90
  on:focusin
85
91
  on:focusout
@@ -127,7 +133,7 @@ onMount(() => {
127
133
  height: fit-content;
128
134
  left: 0;
129
135
  max-height: calc(50vh);
130
- overflow: scroll;
136
+ overflow: auto;
131
137
  overscroll-behavior: contain;
132
138
  padding: 0.25em;
133
139
  position: absolute;
package/Menu.svelte.d.ts CHANGED
@@ -13,6 +13,12 @@ declare const __propDef: {
13
13
  copy: ClipboardEvent;
14
14
  cut: ClipboardEvent;
15
15
  dblclick: MouseEvent;
16
+ dragend: DragEvent;
17
+ dragenter: DragEvent;
18
+ dragleave: DragEvent;
19
+ dragover: DragEvent;
20
+ dragstart: DragEvent;
21
+ drop: DragEvent;
16
22
  focus: FocusEvent;
17
23
  focusin: FocusEvent;
18
24
  focusout: FocusEvent;
package/MenuBar.svelte CHANGED
@@ -72,6 +72,12 @@ setContext(MENU_BAR_CONTEXT_KEY, {
72
72
  on:copy
73
73
  on:cut
74
74
  on:dblclick
75
+ on:dragend
76
+ on:dragenter
77
+ on:dragleave
78
+ on:dragover
79
+ on:dragstart
80
+ on:drop
75
81
  on:focus
76
82
  on:focusin
77
83
  on:focusout
@@ -11,6 +11,12 @@ declare const __propDef: {
11
11
  copy: ClipboardEvent;
12
12
  cut: ClipboardEvent;
13
13
  dblclick: MouseEvent;
14
+ dragend: DragEvent;
15
+ dragenter: DragEvent;
16
+ dragleave: DragEvent;
17
+ dragover: DragEvent;
18
+ dragstart: DragEvent;
19
+ drop: DragEvent;
14
20
  focus: FocusEvent;
15
21
  focusin: FocusEvent;
16
22
  focusout: FocusEvent;
package/MenuButton.svelte CHANGED
@@ -87,6 +87,12 @@ setContext(MENU_ITEM_CONTEXT_KEY, {
87
87
  on:click
88
88
  on:click={onClick}
89
89
  on:dblclick
90
+ on:dragend
91
+ on:dragenter
92
+ on:dragleave
93
+ on:dragover
94
+ on:dragstart
95
+ on:drop
90
96
  on:focus
91
97
  on:focusin
92
98
  on:focusout
@@ -14,6 +14,12 @@ declare const __propDef: {
14
14
  blur: FocusEvent;
15
15
  click: MouseEvent;
16
16
  dblclick: MouseEvent;
17
+ dragend: DragEvent;
18
+ dragenter: DragEvent;
19
+ dragleave: DragEvent;
20
+ dragover: DragEvent;
21
+ dragstart: DragEvent;
22
+ drop: DragEvent;
17
23
  focus: FocusEvent;
18
24
  focusin: FocusEvent;
19
25
  focusout: FocusEvent;
package/MenuItem.svelte CHANGED
@@ -241,6 +241,12 @@ setContext(MENU_ITEM_CONTEXT_KEY, {
241
241
  on:blur
242
242
  on:click
243
243
  on:dblclick
244
+ on:dragend
245
+ on:dragenter
246
+ on:dragleave
247
+ on:dragover
248
+ on:dragstart
249
+ on:drop
244
250
  on:focus
245
251
  on:focusin
246
252
  on:focusout
@@ -17,6 +17,12 @@ declare const __propDef: {
17
17
  blur: FocusEvent;
18
18
  click: MouseEvent;
19
19
  dblclick: MouseEvent;
20
+ dragend: DragEvent;
21
+ dragenter: DragEvent;
22
+ dragleave: DragEvent;
23
+ dragover: DragEvent;
24
+ dragstart: DragEvent;
25
+ drop: DragEvent;
20
26
  focus: FocusEvent;
21
27
  focusin: FocusEvent;
22
28
  focusout: FocusEvent;
@@ -8,6 +8,12 @@ A styled line to visually separate menu items in a menu.
8
8
  on:blur
9
9
  on:click
10
10
  on:dblclick
11
+ on:dragend
12
+ on:dragenter
13
+ on:dragleave
14
+ on:dragover
15
+ on:dragstart
16
+ on:drop
11
17
  on:focus
12
18
  on:focusin
13
19
  on:focusout
@@ -8,6 +8,12 @@ export default class MenuSeparator extends SvelteComponentTyped<{
8
8
  blur: FocusEvent;
9
9
  click: MouseEvent;
10
10
  dblclick: MouseEvent;
11
+ dragend: DragEvent;
12
+ dragenter: DragEvent;
13
+ dragleave: DragEvent;
14
+ dragover: DragEvent;
15
+ dragstart: DragEvent;
16
+ drop: DragEvent;
11
17
  focus: FocusEvent;
12
18
  focusin: FocusEvent;
13
19
  focusout: FocusEvent;
@@ -46,6 +52,12 @@ declare const __propDef: {
46
52
  blur: FocusEvent;
47
53
  click: MouseEvent;
48
54
  dblclick: MouseEvent;
55
+ dragend: DragEvent;
56
+ dragenter: DragEvent;
57
+ dragleave: DragEvent;
58
+ dragover: DragEvent;
59
+ dragstart: DragEvent;
60
+ drop: DragEvent;
49
61
  focus: FocusEvent;
50
62
  focusin: FocusEvent;
51
63
  focusout: FocusEvent;
package/Progress.svelte CHANGED
@@ -40,6 +40,12 @@ $:
40
40
  on:blur
41
41
  on:click
42
42
  on:dblclick
43
+ on:dragend
44
+ on:dragenter
45
+ on:dragleave
46
+ on:dragover
47
+ on:dragstart
48
+ on:drop
43
49
  on:focus
44
50
  on:focusin
45
51
  on:focusout
@@ -13,6 +13,12 @@ declare const __propDef: {
13
13
  blur: FocusEvent;
14
14
  click: MouseEvent;
15
15
  dblclick: MouseEvent;
16
+ dragend: DragEvent;
17
+ dragenter: DragEvent;
18
+ dragleave: DragEvent;
19
+ dragover: DragEvent;
20
+ dragstart: DragEvent;
21
+ drop: DragEvent;
16
22
  focus: FocusEvent;
17
23
  focusin: FocusEvent;
18
24
  focusout: FocusEvent;
package/Radio.svelte CHANGED
@@ -56,6 +56,12 @@ onMount(() => {
56
56
  on:change
57
57
  on:change={onChange}
58
58
  on:dblclick
59
+ on:dragend
60
+ on:dragenter
61
+ on:dragleave
62
+ on:dragover
63
+ on:dragstart
64
+ on:drop
59
65
  on:focus
60
66
  on:focusin
61
67
  on:focusout
@@ -70,34 +76,30 @@ onMount(() => {
70
76
  on:mouseover
71
77
  on:mouseout
72
78
  on:mouseup
73
- on:toggle
74
79
  on:wheel
75
80
  {...$$restProps}
76
81
  />
77
82
  <div class="indicator" />
78
83
  </div>
79
84
  {#if $$slots.default}
80
- <div class="label">
81
- <Label {disabled} for={id}>
82
- <slot {checked} {disabled} {group} inputId={id} value={$$restProps.value}>
83
- {$$restProps.value}
84
- </slot>
85
- </Label>
86
- </div>
85
+ <Label {disabled} for={id}>
86
+ <slot {checked} {disabled} {group} inputId={id} value={$$restProps.value}>
87
+ {$$restProps.value}
88
+ </slot>
89
+ </Label>
87
90
  {/if}
88
91
  </div>
89
92
 
90
93
  <style>
91
94
  .sterling-radio {
92
- display: inline-flex;
93
- align-content: stretch;
94
- align-items: stretch;
95
+ align-content: center;
96
+ align-items: center;
95
97
  box-sizing: border-box;
98
+ display: inline-flex;
96
99
  font: inherit;
97
- gap: 0.4em;
100
+ margin: 0;
98
101
  outline: none;
99
102
  padding: 0;
100
- margin: 0;
101
103
  }
102
104
  /*
103
105
  The container
@@ -111,6 +113,7 @@ onMount(() => {
111
113
  font: inherit;
112
114
  display: flex;
113
115
  align-items: center;
116
+ margin-right: 0.25em;
114
117
  }
115
118
 
116
119
  /*
@@ -184,11 +187,6 @@ onMount(() => {
184
187
  background-color: var(--stsv-Common__color--disabled);
185
188
  }
186
189
 
187
- .label {
188
- user-select: none;
189
- margin-top: 0.25em;
190
- }
191
-
192
190
  @media (prefers-reduced-motion) {
193
191
  .indicator,
194
192
  .indicator::after {
package/Radio.svelte.d.ts CHANGED
@@ -15,6 +15,12 @@ declare const __propDef: {
15
15
  click: MouseEvent;
16
16
  change: Event;
17
17
  dblclick: MouseEvent;
18
+ dragend: DragEvent;
19
+ dragenter: DragEvent;
20
+ dragleave: DragEvent;
21
+ dragover: DragEvent;
22
+ dragstart: DragEvent;
23
+ drop: DragEvent;
18
24
  focus: FocusEvent;
19
25
  focusin: FocusEvent;
20
26
  focusout: FocusEvent;
@@ -29,7 +35,6 @@ declare const __propDef: {
29
35
  mouseover: MouseEvent;
30
36
  mouseout: MouseEvent;
31
37
  mouseup: MouseEvent;
32
- toggle: Event;
33
38
  wheel: WheelEvent;
34
39
  } & {
35
40
  [evt: string]: CustomEvent<any>;
package/Select.svelte CHANGED
@@ -176,6 +176,12 @@ const onListSelect = (event) => {
176
176
  on:copy
177
177
  on:cut
178
178
  on:dblclick
179
+ on:dragend
180
+ on:dragenter
181
+ on:dragleave
182
+ on:dragover
183
+ on:dragstart
184
+ on:drop
179
185
  on:focus
180
186
  on:focusin
181
187
  on:focusout
@@ -17,6 +17,12 @@ declare const __propDef: {
17
17
  copy: ClipboardEvent;
18
18
  cut: ClipboardEvent;
19
19
  dblclick: MouseEvent;
20
+ dragend: DragEvent;
21
+ dragenter: DragEvent;
22
+ dragleave: DragEvent;
23
+ dragover: DragEvent;
24
+ dragstart: DragEvent;
25
+ drop: DragEvent;
20
26
  focus: FocusEvent;
21
27
  focusin: FocusEvent;
22
28
  focusout: FocusEvent;
package/Slider.svelte CHANGED
@@ -146,6 +146,12 @@ Slider lets the user chose a value within a min/max range by dragging a thumb bu
146
146
  on:blur
147
147
  on:click
148
148
  on:dblclick
149
+ on:dragend
150
+ on:dragenter
151
+ on:dragleave
152
+ on:dragover
153
+ on:dragstart
154
+ on:drop
149
155
  on:focus
150
156
  on:focusin
151
157
  on:focusout
@@ -18,6 +18,12 @@ declare const __propDef: {
18
18
  blur: FocusEvent;
19
19
  click: MouseEvent;
20
20
  dblclick: MouseEvent;
21
+ dragend: DragEvent;
22
+ dragenter: DragEvent;
23
+ dragleave: DragEvent;
24
+ dragover: DragEvent;
25
+ dragstart: DragEvent;
26
+ drop: DragEvent;
21
27
  focus: FocusEvent;
22
28
  focusin: FocusEvent;
23
29
  focusout: FocusEvent;
package/Switch.svelte CHANGED
@@ -49,6 +49,12 @@ export const focus = (options) => {
49
49
  on:click
50
50
  on:change
51
51
  on:dblclick
52
+ on:dragend
53
+ on:dragenter
54
+ on:dragleave
55
+ on:dragover
56
+ on:dragstart
57
+ on:drop
52
58
  on:focus
53
59
  on:focusin
54
60
  on:focusout
@@ -63,7 +69,6 @@ export const focus = (options) => {
63
69
  on:mouseover
64
70
  on:mouseout
65
71
  on:mouseup
66
- on:toggle
67
72
  on:wheel
68
73
  {...$$restProps}
69
74
  />
@@ -16,6 +16,12 @@ declare const __propDef: {
16
16
  click: MouseEvent;
17
17
  change: Event;
18
18
  dblclick: MouseEvent;
19
+ dragend: DragEvent;
20
+ dragenter: DragEvent;
21
+ dragleave: DragEvent;
22
+ dragover: DragEvent;
23
+ dragstart: DragEvent;
24
+ drop: DragEvent;
19
25
  focus: FocusEvent;
20
26
  focusin: FocusEvent;
21
27
  focusout: FocusEvent;
@@ -30,7 +36,6 @@ declare const __propDef: {
30
36
  mouseover: MouseEvent;
31
37
  mouseout: MouseEvent;
32
38
  mouseup: MouseEvent;
33
- toggle: Event;
34
39
  wheel: WheelEvent;
35
40
  } & {
36
41
  [evt: string]: CustomEvent<any>;
package/Tab.svelte CHANGED
@@ -47,6 +47,12 @@ export const focus = (options) => {
47
47
  on:blur
48
48
  on:click
49
49
  on:dblclick
50
+ on:dragend
51
+ on:dragenter
52
+ on:dragleave
53
+ on:dragover
54
+ on:dragstart
55
+ on:drop
50
56
  on:focus
51
57
  on:focusin
52
58
  on:focusout
package/Tab.svelte.d.ts CHANGED
@@ -13,6 +13,12 @@ declare const __propDef: {
13
13
  blur: FocusEvent;
14
14
  click: MouseEvent;
15
15
  dblclick: MouseEvent;
16
+ dragend: DragEvent;
17
+ dragenter: DragEvent;
18
+ dragleave: DragEvent;
19
+ dragover: DragEvent;
20
+ dragstart: DragEvent;
21
+ drop: DragEvent;
16
22
  focus: FocusEvent;
17
23
  focusin: FocusEvent;
18
24
  focusout: FocusEvent;
package/TabList.svelte CHANGED
@@ -193,6 +193,12 @@ setContext(TAB_LIST_CONTEXT_KEY, {
193
193
  on:copy
194
194
  on:cut
195
195
  on:dblclick
196
+ on:dragend
197
+ on:dragenter
198
+ on:dragleave
199
+ on:dragover
200
+ on:dragstart
201
+ on:drop
196
202
  on:focus
197
203
  on:focusin
198
204
  on:focusout
@@ -18,6 +18,12 @@ declare const __propDef: {
18
18
  copy: ClipboardEvent;
19
19
  cut: ClipboardEvent;
20
20
  dblclick: MouseEvent;
21
+ dragend: DragEvent;
22
+ dragenter: DragEvent;
23
+ dragleave: DragEvent;
24
+ dragover: DragEvent;
25
+ dragstart: DragEvent;
26
+ drop: DragEvent;
21
27
  focus: FocusEvent;
22
28
  focusin: FocusEvent;
23
29
  focusout: FocusEvent;
package/TextArea.svelte CHANGED
@@ -43,6 +43,7 @@ export const setRangeText = (replacement, start, end, selectionMode) => {
43
43
  rows="1"
44
44
  style={`--TextArea__resize: ${resize};`}
45
45
  bind:value
46
+ on:beforeinput
46
47
  on:blur
47
48
  on:click
48
49
  on:change
@@ -50,6 +51,12 @@ export const setRangeText = (replacement, start, end, selectionMode) => {
50
51
  on:cut
51
52
  on:paste
52
53
  on:dblclick
54
+ on:dragend
55
+ on:dragenter
56
+ on:dragleave
57
+ on:dragover
58
+ on:dragstart
59
+ on:drop
53
60
  on:focus
54
61
  on:focusin
55
62
  on:focusout
@@ -13,6 +13,7 @@ declare const __propDef: {
13
13
  setRangeText?: ((replacement: string, start?: number, end?: number, selectionMode?: SelectionMode) => void) | undefined;
14
14
  };
15
15
  events: {
16
+ beforeinput: InputEvent;
16
17
  blur: FocusEvent;
17
18
  click: MouseEvent;
18
19
  change: Event;
@@ -20,6 +21,12 @@ declare const __propDef: {
20
21
  cut: ClipboardEvent;
21
22
  paste: ClipboardEvent;
22
23
  dblclick: MouseEvent;
24
+ dragend: DragEvent;
25
+ dragenter: DragEvent;
26
+ dragleave: DragEvent;
27
+ dragover: DragEvent;
28
+ dragstart: DragEvent;
29
+ drop: DragEvent;
23
30
  focus: FocusEvent;
24
31
  focusin: FocusEvent;
25
32
  focusout: FocusEvent;
package/Tooltip.svelte CHANGED
@@ -24,7 +24,6 @@ const computeTooltipPosition = async () => {
24
24
  element: arrowRef
25
25
  })
26
26
  ];
27
- console.log(placement);
28
27
  position = await computePosition(reference, tooltipRef, {
29
28
  placement,
30
29
  middleware
package/Tree.svelte CHANGED
@@ -70,6 +70,12 @@ setContext(TREE_CONTEXT_KEY, {
70
70
  on:blur
71
71
  on:click
72
72
  on:dblclick
73
+ on:dragend
74
+ on:dragenter
75
+ on:dragleave
76
+ on:dragover
77
+ on:dragstart
78
+ on:drop
73
79
  on:focus
74
80
  on:focusin
75
81
  on:focusout
package/Tree.svelte.d.ts CHANGED
@@ -13,6 +13,12 @@ declare const __propDef: {
13
13
  blur: FocusEvent;
14
14
  click: MouseEvent;
15
15
  dblclick: MouseEvent;
16
+ dragend: DragEvent;
17
+ dragenter: DragEvent;
18
+ dragleave: DragEvent;
19
+ dragover: DragEvent;
20
+ dragstart: DragEvent;
21
+ drop: DragEvent;
16
22
  focus: FocusEvent;
17
23
  focusin: FocusEvent;
18
24
  focusout: FocusEvent;
@@ -25,6 +25,12 @@ $: {
25
25
  on:blur
26
26
  on:click
27
27
  on:dblclick
28
+ on:dragend
29
+ on:dragenter
30
+ on:dragleave
31
+ on:dragover
32
+ on:dragstart
33
+ on:drop
28
34
  on:focus
29
35
  on:focusin
30
36
  on:focusout
@@ -9,6 +9,12 @@ declare const __propDef: {
9
9
  blur: FocusEvent;
10
10
  click: MouseEvent;
11
11
  dblclick: MouseEvent;
12
+ dragend: DragEvent;
13
+ dragenter: DragEvent;
14
+ dragleave: DragEvent;
15
+ dragover: DragEvent;
16
+ dragstart: DragEvent;
17
+ drop: DragEvent;
12
18
  focus: FocusEvent;
13
19
  focusin: FocusEvent;
14
20
  focusout: FocusEvent;
package/TreeItem.svelte CHANGED
@@ -244,6 +244,12 @@ A item in a Tree displaying the item and children.
244
244
  on:blur
245
245
  on:click
246
246
  on:dblclick
247
+ on:dragend
248
+ on:dragenter
249
+ on:dragleave
250
+ on:dragover
251
+ on:dragstart
252
+ on:drop
247
253
  on:focus
248
254
  on:focusin
249
255
  on:focusout
@@ -19,6 +19,12 @@ declare const __propDef: {
19
19
  blur: FocusEvent;
20
20
  click: MouseEvent;
21
21
  dblclick: MouseEvent;
22
+ dragend: DragEvent;
23
+ dragenter: DragEvent;
24
+ dragleave: DragEvent;
25
+ dragover: DragEvent;
26
+ dragstart: DragEvent;
27
+ drop: DragEvent;
22
28
  focus: FocusEvent;
23
29
  focusin: FocusEvent;
24
30
  focusout: FocusEvent;
@@ -27,6 +27,12 @@ export const focus = (options) => {
27
27
  on:blur
28
28
  on:click
29
29
  on:dblclick
30
+ on:dragend
31
+ on:dragenter
32
+ on:dragleave
33
+ on:dragover
34
+ on:dragstart
35
+ on:drop
30
36
  on:focus
31
37
  on:focusin
32
38
  on:focusout
@@ -16,6 +16,12 @@ declare const __propDef: {
16
16
  blur: FocusEvent;
17
17
  click: MouseEvent;
18
18
  dblclick: MouseEvent;
19
+ dragend: DragEvent;
20
+ dragenter: DragEvent;
21
+ dragleave: DragEvent;
22
+ dragover: DragEvent;
23
+ dragstart: DragEvent;
24
+ drop: DragEvent;
19
25
  focus: FocusEvent;
20
26
  focusin: FocusEvent;
21
27
  focusout: FocusEvent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geoffcox/sterling-svelte",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "author": "Geoff Cox",
5
5
  "description": "A modern, accessible, and lightweight component library for Svelte.",
6
6
  "license": "MIT",
@@ -18,8 +18,8 @@
18
18
  "javascript"
19
19
  ],
20
20
  "devDependencies": {
21
- "@fontsource/fira-mono": "^4.5.10",
22
- "@fontsource/overpass": "^4.5.10",
21
+ "@fontsource/open-sans": "^4.5.14",
22
+ "@fontsource/source-code-pro": "^4.5.14",
23
23
  "@playwright/test": "^1.28.1",
24
24
  "@sveltejs/adapter-auto": "^2.0.0",
25
25
  "@sveltejs/adapter-static": "^1.0.0",