@skeletonlabs/skeleton 2.3.0-dev.58ed04ea → 2.3.0-dev.853e711a

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.
@@ -67,7 +67,7 @@ $:
67
67
  aria-colindex={cellIndex + 1}
68
68
  tabindex={cellIndex === 0 ? 0 : -1}
69
69
  >
70
- {@html cell ? cell : '-'}
70
+ {@html Number(cell) === 0 ? cell : (cell ? cell : '-')}
71
71
  </td>
72
72
  {/each}
73
73
  </tr>
@@ -7,20 +7,21 @@ import { getDrawerStore } from "./stores.js";
7
7
  import { fade, fly } from "svelte/transition";
8
8
  import { dynamicTransition } from "../../internal/transitions.js";
9
9
  export let position = "left";
10
- export let bgBackdrop = "bg-surface-backdrop-token";
11
- export let blur = "";
12
- export let padding = "";
13
10
  export let bgDrawer = "bg-surface-100-800-token";
14
11
  export let border = "";
15
12
  export let rounded = "";
16
13
  export let shadow = "shadow-xl";
17
14
  export let width = "";
18
15
  export let height = "";
16
+ export let bgBackdrop = "bg-surface-backdrop-token";
17
+ export let blur = "";
18
+ export let padding = "";
19
19
  export let zIndex = "z-40";
20
20
  export let regionBackdrop = "";
21
21
  export let regionDrawer = "";
22
22
  export let labelledby = "";
23
23
  export let describedby = "";
24
+ export let duration = 200;
24
25
  export let transitions = !$prefersReducedMotionStore;
25
26
  export let opacityTransition = true;
26
27
  const presets = {
@@ -47,10 +48,11 @@ const propDefaults = {
47
48
  width,
48
49
  height,
49
50
  opacityTransition,
51
+ regionBackdrop,
52
+ regionDrawer,
50
53
  labelledby,
51
54
  describedby,
52
- regionBackdrop,
53
- regionDrawer
55
+ duration
54
56
  };
55
57
  function applyPropSettings(settings) {
56
58
  position = settings.position || propDefaults.position;
@@ -63,11 +65,12 @@ function applyPropSettings(settings) {
63
65
  shadow = settings.shadow || propDefaults.shadow;
64
66
  width = settings.width || propDefaults.width;
65
67
  height = settings.height || propDefaults.height;
66
- opacityTransition = settings.opacityTransition || propDefaults.opacityTransition;
67
68
  regionBackdrop = settings.regionBackdrop || propDefaults.regionBackdrop;
68
69
  regionDrawer = settings.regionDrawer || propDefaults.regionDrawer;
69
70
  labelledby = settings.labelledby || propDefaults.labelledby;
70
71
  describedby = settings.describedby || propDefaults.describedby;
72
+ opacityTransition = settings.opacityTransition || propDefaults.opacityTransition;
73
+ duration = settings.duration || propDefaults.duration;
71
74
  }
72
75
  function applyAnimationSettings() {
73
76
  if (!BROWSER)
@@ -140,12 +143,12 @@ $:
140
143
  on:keypress
141
144
  in:dynamicTransition|local={{
142
145
  transition: fade,
143
- params: { duration: 150 },
146
+ params: { duration },
144
147
  enabled: transitions && opacityTransition
145
148
  }}
146
149
  out:dynamicTransition|local={{
147
150
  transition: fade,
148
- params: { duration: 150 },
151
+ params: { duration },
149
152
  enabled: transitions && opacityTransition
150
153
  }}
151
154
  use:focusTrap={true}
@@ -162,12 +165,12 @@ $:
162
165
  aria-describedby={describedby}
163
166
  in:dynamicTransition|local={{
164
167
  transition: fly,
165
- params: { x: anim.x, y: anim.y, duration: 150, opacity: opacityTransition ? undefined : 1 },
168
+ params: { x: anim.x, y: anim.y, duration, opacity: opacityTransition ? undefined : 1 },
166
169
  enabled: transitions
167
170
  }}
168
171
  out:dynamicTransition|local={{
169
172
  transition: fly,
170
- params: { x: anim.x, y: anim.y, duration: 150, opacity: opacityTransition ? undefined : 1 },
173
+ params: { x: anim.x, y: anim.y, duration, opacity: opacityTransition ? undefined : 1 },
171
174
  enabled: transitions
172
175
  }}
173
176
  >
@@ -4,12 +4,6 @@ declare const __propDef: {
4
4
  [x: string]: any;
5
5
  /** Set the anchor position.*/
6
6
  position?: "left" | "top" | "right" | "bottom" | undefined;
7
- /** Backdrop - Provide classes to set the backdrop background color*/
8
- bgBackdrop?: string | undefined;
9
- /** Backdrop - Provide classes to set the blur style.*/
10
- blur?: string | undefined;
11
- /** Backdrop - Provide classes to set padding.*/
12
- padding?: string | undefined;
13
7
  /** Drawer - Provide classes to set the drawer background color.*/
14
8
  bgDrawer?: string | undefined;
15
9
  /** Drawer - Provide classes to set border color.*/
@@ -22,7 +16,13 @@ declare const __propDef: {
22
16
  width?: string | undefined;
23
17
  /** Drawer - Provide classes to override the height.*/
24
18
  height?: string | undefined;
25
- /** Provide a class to override the z-index*/
19
+ /** Backdrop - Provide classes to set the backdrop background color*/
20
+ bgBackdrop?: string | undefined;
21
+ /** Backdrop - Provide classes to set the blur style.*/
22
+ blur?: string | undefined;
23
+ /** Backdrop - Provide classes to set padding.*/
24
+ padding?: string | undefined;
25
+ /** Backdrop - Provide a class to override the z-index*/
26
26
  zIndex?: string | undefined;
27
27
  /** Provide arbitrary classes to the backdrop region.*/
28
28
  regionBackdrop?: string | undefined;
@@ -32,9 +32,11 @@ declare const __propDef: {
32
32
  labelledby?: string | undefined;
33
33
  /** Provide an ID of the element describing the drawer.*/
34
34
  describedby?: string | undefined;
35
+ /** Set the transition duration in milliseconds.*/
36
+ duration?: number | undefined;
35
37
  /** Enable/Disable transitions*/
36
38
  transitions?: boolean | undefined;
37
- /** Drawer - Enable/Disable opacity transition*/
39
+ /** Enable/Disable opacity transition of Drawer*/
38
40
  opacityTransition?: boolean | undefined;
39
41
  };
40
42
  events: {
@@ -9,8 +9,6 @@ export interface DrawerSettings {
9
9
  * @type {'left' | 'top' | 'right' | 'bottom'}
10
10
  */
11
11
  position?: 'left' | 'top' | 'right' | 'bottom';
12
- /** Define the Svelte transition animation duration.*/
13
- duration?: number;
14
12
  /** Backdrop - Provide classes to set the backdrop background color*/
15
13
  bgBackdrop?: string;
16
14
  /** Backdrop - Provide classes to set the blur style.*/
@@ -29,6 +27,8 @@ export interface DrawerSettings {
29
27
  width?: string;
30
28
  /** Drawer - Provide classes to override the height.*/
31
29
  height?: string;
30
+ /** Define the Svelte transition animation duration.*/
31
+ duration?: number;
32
32
  /** Drawer - Enable/Disable opacity transition */
33
33
  opacityTransition?: boolean;
34
34
  /** Provide arbitrary classes to the backdrop region. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton",
3
- "version": "2.3.0-dev.58ed04ea",
3
+ "version": "2.3.0-dev.853e711a",
4
4
  "description": "A SvelteKit component library.",
5
5
  "author": "endigo9740 <chris@skeletonlabs.dev>",
6
6
  "repository": {