@skeletonlabs/skeleton 1.6.2-dev.9011cd1d → 1.6.2-dev.a0370b80

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.
@@ -19,7 +19,7 @@
19
19
 
20
20
  /* Typography Settings */
21
21
  @import 'partials/typography.css';
22
- @import 'partials/typography-prose.css';
22
+ /* DEPRECATED: 'partials/typography-prose.css' must now be imported directly */
23
23
 
24
24
  /* === REQUIRED STYLESHEETS === */
25
25
 
@@ -19,7 +19,7 @@
19
19
 
20
20
  /* Typography Settings */
21
21
  @import 'partials/typography-next.css';
22
- @import 'partials/typography-prose.css';
22
+ /* DEPRECATED: 'partials/typography-prose.css' must now be imported directly */
23
23
 
24
24
  /* === REQUIRED STYLESHEETS === */
25
25
 
@@ -86,10 +86,13 @@ function applyAnimationSettings() {
86
86
  break;
87
87
  }
88
88
  }
89
- function onBackdropInteraction(event) {
90
- if (event.target === elemBackdrop)
89
+ function onDrawerInteraction(event) {
90
+ if (event.target === elemBackdrop) {
91
91
  drawerStore.close();
92
- dispatch("backdrop", event);
92
+ dispatch("backdrop", event);
93
+ } else {
94
+ dispatch("drawer", event);
95
+ }
93
96
  }
94
97
  function onKeydownWindow(event) {
95
98
  if (!$drawerStore)
@@ -125,8 +128,9 @@ $:
125
128
  bind:this={elemBackdrop}
126
129
  class="drawer-backdrop {classesBackdrop}"
127
130
  data-testid="drawer-backdrop"
128
- on:mousedown={onBackdropInteraction}
129
- on:touchstart={onBackdropInteraction}
131
+ on:mousedown={onDrawerInteraction}
132
+ on:touchstart
133
+ on:touchend
130
134
  on:keypress
131
135
  transition:fade|local={{ duration }}
132
136
  use:focusTrap={true}
@@ -36,9 +36,13 @@ declare const __propDef: {
36
36
  describedby?: string | undefined;
37
37
  };
38
38
  events: {
39
+ touchstart: TouchEvent;
40
+ touchend: TouchEvent;
39
41
  keypress: KeyboardEvent;
40
42
  /** {{ event }} backdrop - Fires on backdrop interaction.*/
41
43
  backdrop: CustomEvent<any>;
44
+ /** {{ event }} drawer - Fires on drawer interaction.*/
45
+ drawer: CustomEvent<any>;
42
46
  } & {
43
47
  [evt: string]: CustomEvent<any>;
44
48
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton",
3
- "version": "1.6.2-dev.9011cd1d",
3
+ "version": "1.6.2-dev.a0370b80",
4
4
  "description": "A SvelteKit component library.",
5
5
  "author": "endigo9740 <chris@skeletonlabs.dev>",
6
6
  "repository": {