@geoffcox/sterling-svelte 0.0.21 → 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 (63) hide show
  1. package/Button.svelte +7 -0
  2. package/Button.svelte.d.ts +7 -0
  3. package/Checkbox.svelte +18 -20
  4. package/Checkbox.svelte.d.ts +6 -1
  5. package/Dropdown.svelte +8 -2
  6. package/Dropdown.svelte.d.ts +6 -0
  7. package/Field.svelte +9 -3
  8. package/Field.svelte.d.ts +7 -1
  9. package/Input.svelte +9 -2
  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 -3
  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 +9 -3
  24. package/MenuButton.svelte.d.ts +6 -0
  25. package/MenuItem.svelte +8 -2
  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 +18 -20
  32. package/Radio.svelte.d.ts +6 -1
  33. package/Select.svelte +8 -2
  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 +9 -4
  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/Tree.types.d.ts +0 -12
  49. package/TreeChevron.svelte +38 -1
  50. package/TreeChevron.svelte.d.ts +33 -0
  51. package/TreeItem.svelte +6 -0
  52. package/TreeItem.svelte.d.ts +6 -0
  53. package/TreeItem.types.d.ts +13 -0
  54. package/TreeItem.types.js +1 -0
  55. package/TreeItemDisplay.svelte +7 -0
  56. package/TreeItemDisplay.svelte.d.ts +6 -0
  57. package/idGenerator.d.ts +4 -0
  58. package/idGenerator.js +10 -0
  59. package/index.d.ts +3 -1
  60. package/index.js +2 -0
  61. package/package.json +10 -10
  62. package/theme/toggleDarkTheme.d.ts +1 -1
  63. package/theme/toggleDarkTheme.js +1 -1
package/Radio.svelte CHANGED
@@ -1,5 +1,5 @@
1
1
  <script>import { onMount } from "svelte";
2
- import { v4 as uuid } from "uuid";
2
+ import { idGenerator } from "./idGenerator";
3
3
  import Label from "./Label.svelte";
4
4
  export let checked = false;
5
5
  export let disabled = false;
@@ -9,7 +9,7 @@ let mounted = false;
9
9
  let radioRef;
10
10
  $: {
11
11
  if ($$slots.default && id === void 0) {
12
- id = uuid();
12
+ id = idGenerator.nextId("Radio");
13
13
  }
14
14
  }
15
15
  $: {
@@ -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
@@ -1,9 +1,9 @@
1
1
  <script>import { computePosition, flip, offset, shift, autoUpdate } from "@floating-ui/dom";
2
2
  import { createEventDispatcher, onMount, tick } from "svelte";
3
- import { v4 as uuid } from "uuid";
4
3
  import { clickOutside } from "./actions/clickOutside";
4
+ import { idGenerator } from "./idGenerator";
5
5
  import List from "./List.svelte";
6
- const popupId = uuid();
6
+ const popupId = idGenerator.nextId("Select-popup");
7
7
  export let composed = false;
8
8
  export let disabled = false;
9
9
  export let open = false;
@@ -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
@@ -1,11 +1,11 @@
1
- <script>import { v4 as uuid } from "uuid";
2
- import Label from "./Label.svelte";
1
+ <script>import Label from "./Label.svelte";
2
+ import { idGenerator } from "./idGenerator";
3
3
  export let checked = false;
4
4
  export let disabled = false;
5
5
  export let vertical = false;
6
6
  export let onText = void 0;
7
7
  export let offText = void 0;
8
- const inputId = uuid();
8
+ const inputId = idGenerator.nextId("Switch");
9
9
  let inputRef;
10
10
  let switchWidth = 0;
11
11
  let switchHeight = 0;
@@ -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;
package/Tree.types.d.ts CHANGED
@@ -14,15 +14,3 @@ export type TreeContext = {
14
14
  */
15
15
  selectedValue: Writable<string | undefined>;
16
16
  };
17
- /**
18
- * The context for a tree item.
19
- */
20
- export type TreeItemContext = {
21
- /**
22
- * How many levels deep this tree item is in the tree hierarchy.
23
- * A top level item's depth is zero.
24
- */
25
- depth: number;
26
- /** If the tree item is disabled */
27
- disabled: Readable<boolean>;
28
- };
@@ -17,7 +17,44 @@ $: {
17
17
  }
18
18
  </script>
19
19
 
20
- <div class="tree-chevron" class:leaf={!hasChildren} class:animate class:expanded />
20
+ <div
21
+ class="tree-chevron"
22
+ class:leaf={!hasChildren}
23
+ class:animate
24
+ class:expanded
25
+ on:blur
26
+ on:click
27
+ on:dblclick
28
+ on:dragend
29
+ on:dragenter
30
+ on:dragleave
31
+ on:dragover
32
+ on:dragstart
33
+ on:drop
34
+ on:focus
35
+ on:focusin
36
+ on:focusout
37
+ on:keydown
38
+ on:keypress
39
+ on:keyup
40
+ on:mousedown
41
+ on:mouseenter
42
+ on:mouseleave
43
+ on:mousemove
44
+ on:mouseover
45
+ on:mouseout
46
+ on:mouseup
47
+ on:pointercancel
48
+ on:pointerdown
49
+ on:pointerenter
50
+ on:pointerleave
51
+ on:pointermove
52
+ on:pointerover
53
+ on:pointerout
54
+ on:pointerup
55
+ on:wheel
56
+ {...$$restProps}
57
+ />
21
58
 
22
59
  <style>
23
60
  .tree-chevron {
@@ -1,10 +1,43 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
+ [x: string]: any;
4
5
  expanded?: boolean | undefined;
5
6
  hasChildren?: boolean | undefined;
6
7
  };
7
8
  events: {
9
+ blur: FocusEvent;
10
+ click: MouseEvent;
11
+ dblclick: MouseEvent;
12
+ dragend: DragEvent;
13
+ dragenter: DragEvent;
14
+ dragleave: DragEvent;
15
+ dragover: DragEvent;
16
+ dragstart: DragEvent;
17
+ drop: DragEvent;
18
+ focus: FocusEvent;
19
+ focusin: FocusEvent;
20
+ focusout: FocusEvent;
21
+ keydown: KeyboardEvent;
22
+ keypress: KeyboardEvent;
23
+ keyup: KeyboardEvent;
24
+ mousedown: MouseEvent;
25
+ mouseenter: MouseEvent;
26
+ mouseleave: MouseEvent;
27
+ mousemove: MouseEvent;
28
+ mouseover: MouseEvent;
29
+ mouseout: MouseEvent;
30
+ mouseup: MouseEvent;
31
+ pointercancel: PointerEvent;
32
+ pointerdown: PointerEvent;
33
+ pointerenter: PointerEvent;
34
+ pointerleave: PointerEvent;
35
+ pointermove: PointerEvent;
36
+ pointerover: PointerEvent;
37
+ pointerout: PointerEvent;
38
+ pointerup: PointerEvent;
39
+ wheel: WheelEvent;
40
+ } & {
8
41
  [evt: string]: CustomEvent<any>;
9
42
  };
10
43
  slots: {};
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;
@@ -0,0 +1,13 @@
1
+ import type { Readable } from 'svelte/store';
2
+ /**
3
+ * The context for a tree item.
4
+ */
5
+ export type TreeItemContext = {
6
+ /**
7
+ * How many levels deep this tree item is in the tree hierarchy.
8
+ * A top level item's depth is zero.
9
+ */
10
+ depth: number;
11
+ /** If the tree item is disabled */
12
+ disabled: Readable<boolean>;
13
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -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
@@ -85,6 +91,7 @@ export const focus = (options) => {
85
91
  }
86
92
 
87
93
  .sterling-tree-item.disabled {
94
+ background-color: var(--stsv-Input__background-color--disabled);
88
95
  color: var(--stsv-Common__color--disabled);
89
96
  cursor: not-allowed;
90
97
  }
@@ -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;
@@ -0,0 +1,4 @@
1
+ export declare const idGenerator: {
2
+ next: () => number;
3
+ nextId: (prefix?: string) => string;
4
+ };
package/idGenerator.js ADDED
@@ -0,0 +1,10 @@
1
+ let id = 0;
2
+ const next = () => {
3
+ return ++id;
4
+ };
5
+ export const idGenerator = {
6
+ next,
7
+ nextId: (prefix) => {
8
+ return prefix ? `${prefix}-${next()}` : `${next()}`;
9
+ }
10
+ };
package/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { clickOutside } from './actions/clickOutside';
2
2
  export { forwardEvents } from './actions/forwardEvents';
3
3
  export { portal } from './actions/portal';
4
+ export { idGenerator } from './idGenerator';
4
5
  export { type Theme, type ThemeActionParams } from './theme/types';
5
6
  export { applyDarkTheme } from './theme/applyDarkTheme';
6
7
  export { applyLightTheme } from './theme/applyLightTheme';
@@ -20,7 +21,8 @@ export type { ProgressColorful } from './Progress.types';
20
21
  export type { TabListContext } from './TabList.types';
21
22
  export type { TextAreaResize } from './TextArea.types';
22
23
  export type { TooltipShowOn } from './Tooltip.types';
23
- export type { TreeContext, TreeItemContext } from './Tree.types';
24
+ export type { TreeContext } from './Tree.types';
25
+ export type { TreeItemContext } from './TreeItem.types';
24
26
  export { BUTTON_SHAPES, BUTTON_VARIANTS } from './Button.constants';
25
27
  export { FIELD_STATUSES } from './Field.constants';
26
28
  export { FLOATING_PLACEMENTS } from './floating-ui.constants';
package/index.js CHANGED
@@ -2,6 +2,8 @@
2
2
  export { clickOutside } from './actions/clickOutside';
3
3
  export { forwardEvents } from './actions/forwardEvents';
4
4
  export { portal } from './actions/portal';
5
+ // ----- functions ----- //
6
+ export { idGenerator } from './idGenerator';
5
7
  // ----- theme ----- //
6
8
  export {} from './theme/types';
7
9
  export { applyDarkTheme } from './theme/applyDarkTheme';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geoffcox/sterling-svelte",
3
- "version": "0.0.21",
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,15 +18,14 @@
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
- "@sveltejs/adapter-auto": "^1.0.0",
24
+ "@sveltejs/adapter-auto": "^2.0.0",
25
25
  "@sveltejs/adapter-static": "^1.0.0",
26
- "@sveltejs/kit": "^1.0.0",
26
+ "@sveltejs/kit": "^1.5.0",
27
27
  "@sveltejs/package": "^1.0.0",
28
28
  "@types/lodash-es": "^4.17.6",
29
- "@types/uuid": "^9.0.0",
30
29
  "@typescript-eslint/eslint-plugin": "^5.45.0",
31
30
  "@typescript-eslint/parser": "^5.45.0",
32
31
  "eslint": "^8.28.0",
@@ -36,18 +35,17 @@
36
35
  "prettier": "^2.8.0",
37
36
  "prettier-plugin-svelte": "^2.8.1",
38
37
  "svelte": "^3.54.0",
39
- "svelte-check": "^2.9.2",
38
+ "svelte-check": "^3.0.1",
40
39
  "tslib": "^2.4.1",
41
40
  "typescript": "^4.9.3",
42
- "vite": "^4.0.0",
41
+ "vite": "^4.2.0",
43
42
  "vitest": "^0.25.3"
44
43
  },
45
44
  "type": "module",
46
45
  "dependencies": {
47
46
  "@floating-ui/dom": "^1.1.0",
48
47
  "keyborg": "^2.0.0",
49
- "lodash-es": "^4.17.21",
50
- "uuid": "^9.0.0"
48
+ "lodash-es": "^4.17.21"
51
49
  },
52
50
  "exports": {
53
51
  "./package.json": "./package.json",
@@ -102,12 +100,14 @@
102
100
  "./Tree.types": "./Tree.types.js",
103
101
  "./TreeChevron.svelte": "./TreeChevron.svelte",
104
102
  "./TreeItem.svelte": "./TreeItem.svelte",
103
+ "./TreeItem.types": "./TreeItem.types.js",
105
104
  "./TreeItemDisplay.svelte": "./TreeItemDisplay.svelte",
106
105
  "./actions/clickOutside": "./actions/clickOutside.js",
107
106
  "./actions/forwardEvents": "./actions/forwardEvents.js",
108
107
  "./actions/portal": "./actions/portal.js",
109
108
  "./floating-ui.constants": "./floating-ui.constants.js",
110
109
  "./floating-ui.types": "./floating-ui.types.js",
110
+ "./idGenerator": "./idGenerator.js",
111
111
  ".": "./index.js",
112
112
  "./theme/applyDarkTheme": "./theme/applyDarkTheme.js",
113
113
  "./theme/applyLightTheme": "./theme/applyLightTheme.js",