@skeletonlabs/skeleton 1.6.2-dev.904670d4 → 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.
- package/dist/components/ConicGradient/ConicGradient.svelte +2 -1
- package/dist/components/ConicGradient/ConicGradient.svelte.d.ts +2 -0
- package/dist/components/Stepper/Step.svelte +13 -3
- package/dist/components/Stepper/Step.svelte.d.ts +1 -0
- package/dist/styles/all.css +1 -1
- package/dist/styles/skeleton.css +1 -1
- package/dist/utilities/Drawer/Drawer.svelte +9 -5
- package/dist/utilities/Drawer/Drawer.svelte.d.ts +4 -0
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ export let legend = false;
|
|
|
5
5
|
export let spin = false;
|
|
6
6
|
export let width = "w-24";
|
|
7
7
|
export let hover = "bg-primary-hover-token";
|
|
8
|
+
export let digits = 0;
|
|
8
9
|
export let regionCaption = "";
|
|
9
10
|
export let regionCone = "";
|
|
10
11
|
export let regionLegend = "";
|
|
@@ -32,7 +33,7 @@ function genLegend() {
|
|
|
32
33
|
return {
|
|
33
34
|
label: v.label,
|
|
34
35
|
color: setColorValue(v.color),
|
|
35
|
-
value: v.end - v.start
|
|
36
|
+
value: (v.end - v.start).toFixed(digits)
|
|
36
37
|
};
|
|
37
38
|
});
|
|
38
39
|
}
|
|
@@ -13,6 +13,8 @@ declare const __propDef: {
|
|
|
13
13
|
width?: string | undefined;
|
|
14
14
|
/** Style the legend hover effect.*/
|
|
15
15
|
hover?: string | undefined;
|
|
16
|
+
/** Set the number of digits on the legend values.*/
|
|
17
|
+
digits?: number | undefined;
|
|
16
18
|
/** Style the caption region above the gradient.*/
|
|
17
19
|
regionCaption?: string | undefined;
|
|
18
20
|
/** Style the conic gradient region.*/
|
|
@@ -67,10 +67,19 @@ onDestroy(() => {
|
|
|
67
67
|
<!-- Navigation -->
|
|
68
68
|
{#if $state.total > 1}
|
|
69
69
|
<div class="step-navigation {classesNavigation}" transition:fade|local={{ duration: 100 }}>
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
{#if stepIndex === 0 && $$slots.navigation}
|
|
71
|
+
<!-- Slot: Navigation -->
|
|
72
|
+
<div class="step-navigation-slot">
|
|
73
|
+
<slot name="navigation" />
|
|
74
|
+
</div>
|
|
75
|
+
{:else}
|
|
76
|
+
<!-- Button: Back -->
|
|
77
|
+
<button type={buttonBackType} class="btn {buttonBack}" on:click={onBack} disabled={$state.current === 0}>
|
|
78
|
+
{@html buttonBackLabel}
|
|
79
|
+
</button>
|
|
80
|
+
{/if}
|
|
73
81
|
{#if stepIndex < $state.total - 1}
|
|
82
|
+
<!-- Button: Next -->
|
|
74
83
|
<button type={buttonNextType} class="btn {buttonNext}" on:click={onNext} disabled={locked}>
|
|
75
84
|
{#if locked}
|
|
76
85
|
<svg class="w-3 aspect-square" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
|
|
@@ -82,6 +91,7 @@ onDestroy(() => {
|
|
|
82
91
|
<span>{@html buttonNextLabel}</span>
|
|
83
92
|
</button>
|
|
84
93
|
{:else}
|
|
94
|
+
<!-- Button: Complete -->
|
|
85
95
|
<button type={buttonCompleteType} class="btn {buttonComplete}" on:click={onComplete} disabled={locked}>
|
|
86
96
|
{@html buttonCompleteLabel}
|
|
87
97
|
</button>
|
package/dist/styles/all.css
CHANGED
package/dist/styles/skeleton.css
CHANGED
|
@@ -86,10 +86,13 @@ function applyAnimationSettings() {
|
|
|
86
86
|
break;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
if (event.target === elemBackdrop)
|
|
89
|
+
function onDrawerInteraction(event) {
|
|
90
|
+
if (event.target === elemBackdrop) {
|
|
91
91
|
drawerStore.close();
|
|
92
|
-
|
|
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={
|
|
129
|
-
on:touchstart
|
|
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
|
};
|