@skeletonlabs/skeleton 2.1.0 → 2.2.0

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.
@@ -6,5 +6,5 @@ type ClipboardArgs = string | {
6
6
  export declare function clipboard(node: HTMLElement, args: ClipboardArgs): {
7
7
  update(newArgs: ClipboardArgs): void;
8
8
  destroy(): void;
9
- };
9
+ } | undefined;
10
10
  export {};
@@ -1,4 +1,8 @@
1
1
  export function clipboard(node, args) {
2
+ if (!window.isSecureContext) {
3
+ console.error('Clipboard action failed: app not running in secure context, see: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard');
4
+ return;
5
+ }
2
6
  const fireCopyCompleteEvent = () => {
3
7
  node.dispatchEvent(new CustomEvent('copyComplete'));
4
8
  };
@@ -5,22 +5,39 @@ type SlideTransition = typeof slide;
5
5
  declare class __sveltets_Render<TransitionIn extends Transition = SlideTransition, TransitionOut extends Transition = SlideTransition> {
6
6
  props(): {
7
7
  [x: string]: any;
8
+ /** Set the auto-collapse mode.*/
8
9
  autocollapse?: boolean | undefined;
10
+ /** Provide classes to set the accordion width.*/
9
11
  width?: string | undefined;
12
+ /** Provide classes to set the vertical spacing between items.*/
10
13
  spacing?: string | undefined;
14
+ /** Set the accordion disabled state for all items.*/
11
15
  disabled?: boolean | undefined;
16
+ /** Provide classes to set the accordion item padding styles.*/
12
17
  padding?: string | undefined;
18
+ /** Provide classes to set the accordion item hover styles.*/
13
19
  hover?: string | undefined;
20
+ /** Provide classes to set the accordion item rounded styles.*/
14
21
  rounded?: string | undefined;
22
+ /** Set the rotation of the item caret in the open state.*/
15
23
  caretOpen?: string | undefined;
24
+ /** Set the rotation of the item caret in the closed state.*/
16
25
  caretClosed?: string | undefined;
26
+ /** Provide arbitrary classes to the trigger button region.*/
17
27
  regionControl?: string | undefined;
28
+ /** Provide arbitrary classes to the content panel region.*/
18
29
  regionPanel?: string | undefined;
30
+ /** Provide arbitrary classes to the caret icon region.*/
19
31
  regionCaret?: string | undefined;
32
+ /** Enable/Disable transitions*/
20
33
  transitions?: boolean | undefined;
34
+ /** Provide the transition to used on entry.*/
21
35
  transitionIn?: TransitionIn | undefined;
36
+ /** Transition params provided to `transitionIn`.*/
22
37
  transitionInParams?: TransitionParams<TransitionIn> | undefined;
38
+ /** Provide the transition to used on exit.*/
23
39
  transitionOut?: TransitionOut | undefined;
40
+ /** Transition params provided to `transitionOut`.*/
24
41
  transitionOutParams?: TransitionParams<TransitionOut> | undefined;
25
42
  };
26
43
  events(): {} & {
@@ -4,23 +4,41 @@ import type { Transition, TransitionParams } from '../../index.js';
4
4
  declare class __sveltets_Render<TransitionIn extends Transition, TransitionOut extends Transition> {
5
5
  props(): {
6
6
  [x: string]: any;
7
+ /** Set open by default on load.*/
7
8
  open?: boolean | undefined;
9
+ /** Provide a unique input id. Auto-generated by default*/
8
10
  id?: string | undefined;
11
+ /** Set the auto-collapse mode.*/
9
12
  autocollapse?: boolean | undefined;
13
+ /** The writable store that houses the auto-collapse active item UUID.*/
10
14
  active?: Writable<string | null> | undefined;
15
+ /** Set the disabled state for this item.*/
11
16
  disabled?: boolean | undefined;
17
+ /** Provide classes to set the accordion item padding styles.*/
12
18
  padding?: string | undefined;
19
+ /** Provide classes to set the accordion item hover styles.*/
13
20
  hover?: string | undefined;
21
+ /** Provide classes to set the accordion item rounded styles.*/
14
22
  rounded?: string | undefined;
23
+ /** Provide arbitrary classes to the trigger button region.*/
15
24
  caretOpen?: string | undefined;
25
+ /** Provide arbitrary classes to content panel region.*/
16
26
  caretClosed?: string | undefined;
27
+ /** Provide arbitrary classes to the trigger button region.*/
17
28
  regionControl?: string | undefined;
29
+ /** Provide arbitrary classes to content panel region.*/
18
30
  regionPanel?: string | undefined;
31
+ /** Provide arbitrary classes caret icon region.*/
19
32
  regionCaret?: string | undefined;
33
+ /** Enable/Disable transitions*/
20
34
  transitions?: boolean | undefined;
35
+ /** Provide the transition to used on entry.*/
21
36
  transitionIn?: TransitionIn | undefined;
37
+ /** Transition params provided to `transitionIn`.*/
22
38
  transitionInParams?: TransitionParams<TransitionIn> | undefined;
39
+ /** Provide the transition to used on exit.*/
23
40
  transitionOut?: TransitionOut | undefined;
41
+ /** Transition params provided to `transitionOut`.*/
24
42
  transitionOutParams?: TransitionParams<TransitionOut> | undefined;
25
43
  };
26
44
  events(): {
@@ -44,7 +44,7 @@ $:
44
44
  {/if}
45
45
 
46
46
  <!-- Page -->
47
- <div id="page" class="{regionPage} {cPage}" style:scrollbarGutter on:scroll>
47
+ <div id="page" class="{regionPage} {cPage}" style:scrollbar-gutter={scrollbarGutter} on:scroll>
48
48
  <!-- Slot: Page Header -->
49
49
  {#if $$slots.pageHeader}
50
50
  <header id="page-header" class="flex-none {classesPageHeader}"><slot name="pageHeader">(slot:header)</slot></header>
@@ -3,7 +3,11 @@ import { prefersReducedMotionStore } from "../../index.js";
3
3
  import { dynamicTransition } from "../../internal/transitions.js";
4
4
  </script>
5
5
 
6
- <script generics="TransitionIn extends Transition = SlideTransition, TransitionOut extends Transition = SlideTransition">import { createEventDispatcher } from "svelte";
6
+ <script
7
+
8
+ generics="Value = unknown, Meta = unknown,
9
+ TransitionIn extends Transition = SlideTransition, TransitionOut extends Transition = SlideTransition"
10
+ >import { createEventDispatcher } from "svelte";
7
11
  const dispatch = createEventDispatcher();
8
12
  export let input = void 0;
9
13
  export let options = [];
@@ -54,7 +58,7 @@ $:
54
58
  $:
55
59
  optionsFiltered = input ? filterOptions() : listedOptions;
56
60
  $:
57
- sliceLimit = limit !== void 0 ? limit : optionsFiltered.length;
61
+ sliceLimit = limit ?? optionsFiltered.length;
58
62
  $:
59
63
  classesBase = `${$$props.class ?? ""}`;
60
64
  $:
@@ -3,38 +3,54 @@ import { slide } from 'svelte/transition';
3
3
  import { type Transition, type TransitionParams } from '../../index.js';
4
4
  type SlideTransition = typeof slide;
5
5
  import type { AutocompleteOption } from './types.js';
6
- declare class __sveltets_Render<TransitionIn extends Transition = SlideTransition, TransitionOut extends Transition = SlideTransition> {
6
+ declare class __sveltets_Render<Value = unknown, Meta = unknown, TransitionIn extends Transition = SlideTransition, TransitionOut extends Transition = SlideTransition> {
7
7
  props(): {
8
8
  [x: string]: any;
9
- input?: unknown;
10
- options?: AutocompleteOption[] | undefined;
9
+ /** Bind the input value.*/
10
+ input?: Value | undefined;
11
+ /** Define values for the list.*/
12
+ options?: AutocompleteOption<Value, Meta>[] | undefined;
13
+ /** Limit the total number of suggestions.*/
11
14
  limit?: number | undefined;
12
- allowlist?: unknown[] | undefined;
13
- denylist?: unknown[] | undefined;
15
+ /** Provide allowlist values.*/
16
+ allowlist?: Value[] | undefined;
17
+ /** Provide denylist values.*/
18
+ denylist?: Value[] | undefined;
19
+ /** Provide a HTML markup to display when no match is found.*/
14
20
  emptyState?: string | undefined;
21
+ /** Provide arbitrary classes to nav element.*/
15
22
  regionNav?: string | undefined;
23
+ /** Provide arbitrary classes to each list.*/
16
24
  regionList?: string | undefined;
25
+ /** Provide arbitrary classes to each list item.*/
17
26
  regionItem?: string | undefined;
27
+ /** Provide arbitrary classes to each button.*/
18
28
  regionButton?: string | undefined;
29
+ /** Provide arbitrary classes to empty message.*/
19
30
  regionEmpty?: string | undefined;
31
+ /** Enable/Disable transitions*/
20
32
  transitions?: boolean | undefined;
33
+ /** Provide the transition used on entry.*/
21
34
  transitionIn?: TransitionIn | undefined;
35
+ /** Transition params provided to `transitionIn`.*/
22
36
  transitionInParams?: TransitionParams<TransitionIn> | undefined;
37
+ /** Provide the transition used on exit.*/
23
38
  transitionOut?: TransitionOut | undefined;
39
+ /** Transition params provided to `transitionOut`.*/
24
40
  transitionOutParams?: TransitionParams<TransitionOut> | undefined;
25
41
  };
26
42
  events(): {
27
43
  click: MouseEvent;
28
44
  keypress: KeyboardEvent;
29
- selection: CustomEvent<AutocompleteOption>;
45
+ selection: CustomEvent<AutocompleteOption<Value, Meta>>;
30
46
  } & {
31
47
  [evt: string]: CustomEvent<any>;
32
48
  };
33
49
  slots(): {};
34
50
  }
35
- export type AutocompleteProps<TransitionIn extends Transition = SlideTransition, TransitionOut extends Transition = SlideTransition> = ReturnType<__sveltets_Render<TransitionIn, TransitionOut>['props']>;
36
- export type AutocompleteEvents<TransitionIn extends Transition = SlideTransition, TransitionOut extends Transition = SlideTransition> = ReturnType<__sveltets_Render<TransitionIn, TransitionOut>['events']>;
37
- export type AutocompleteSlots<TransitionIn extends Transition = SlideTransition, TransitionOut extends Transition = SlideTransition> = ReturnType<__sveltets_Render<TransitionIn, TransitionOut>['slots']>;
38
- export default class Autocomplete<TransitionIn extends Transition = SlideTransition, TransitionOut extends Transition = SlideTransition> extends SvelteComponentTyped<AutocompleteProps<TransitionIn, TransitionOut>, AutocompleteEvents<TransitionIn, TransitionOut>, AutocompleteSlots<TransitionIn, TransitionOut>> {
51
+ export type AutocompleteProps<Value = unknown, Meta = unknown, TransitionIn extends Transition = SlideTransition, TransitionOut extends Transition = SlideTransition> = ReturnType<__sveltets_Render<Value, Meta, TransitionIn, TransitionOut>['props']>;
52
+ export type AutocompleteEvents<Value = unknown, Meta = unknown, TransitionIn extends Transition = SlideTransition, TransitionOut extends Transition = SlideTransition> = ReturnType<__sveltets_Render<Value, Meta, TransitionIn, TransitionOut>['events']>;
53
+ export type AutocompleteSlots<Value = unknown, Meta = unknown, TransitionIn extends Transition = SlideTransition, TransitionOut extends Transition = SlideTransition> = ReturnType<__sveltets_Render<Value, Meta, TransitionIn, TransitionOut>['slots']>;
54
+ export default class Autocomplete<Value = unknown, Meta = unknown, TransitionIn extends Transition = SlideTransition, TransitionOut extends Transition = SlideTransition> extends SvelteComponentTyped<AutocompleteProps<Value, Meta, TransitionIn, TransitionOut>, AutocompleteEvents<Value, Meta, TransitionIn, TransitionOut>, AutocompleteSlots<Value, Meta, TransitionIn, TransitionOut>> {
39
55
  }
40
56
  export {};
@@ -1,10 +1,10 @@
1
- export interface AutocompleteOption {
2
- /** provide a unique display label per option. Supports HTML. */
1
+ export interface AutocompleteOption<Value = unknown, Meta = unknown> {
2
+ /** Provide a unique display label per option. Supports HTML. */
3
3
  label: string;
4
4
  /** Provide a unique option value. */
5
- value: unknown;
5
+ value: Value;
6
6
  /** Provide a comma separated list of keywords. */
7
- keywords?: any;
7
+ keywords?: string;
8
8
  /** Pass arbitrary data per option. */
9
- meta?: any;
9
+ meta?: Meta;
10
10
  }
@@ -6,30 +6,55 @@ type ScaleTransition = typeof scale;
6
6
  declare class __sveltets_Render<ListTransitionIn extends Transition = FlyTransition, ListTransitionOut extends Transition = FlyTransition, ChipTransitionIn extends Transition = ScaleTransition, ChipTransitionOut extends Transition = ScaleTransition> {
7
7
  props(): {
8
8
  [x: string]: any;
9
+ /** Bind the input value.*/
9
10
  input?: string | undefined;
11
+ /** Set a unique select input name.*/
10
12
  name: string;
13
+ /** An array of values.*/
11
14
  value?: any[] | undefined;
15
+ /** Provide a whitelist of accepted values.*/
12
16
  whitelist?: string[] | undefined;
17
+ /** Maximum number of chips. Set -1 to disable.*/
13
18
  max?: number | undefined;
19
+ /** Set the minimum character length.*/
14
20
  minlength?: number | undefined;
21
+ /** Set the maximum character length.*/
15
22
  maxlength?: number | undefined;
23
+ /** When enabled, allows for uppercase values.*/
16
24
  allowUpperCase?: boolean | undefined;
25
+ /** When enabled, allows for duplicate values.*/
17
26
  allowDuplicates?: boolean | undefined;
27
+ /** Provide a custom validator function.*/
18
28
  validation?: ((...args: any[]) => boolean) | undefined;
29
+ /** The duration of the flip (first, last, invert, play) animation.*/
19
30
  duration?: number | undefined;
31
+ /** Set the required state for this input field.*/
20
32
  required?: boolean | undefined;
33
+ /** Provide classes or a variant to style the chips.*/
21
34
  chips?: string | undefined;
35
+ /** {{ event: Event, input: any }} invalid - Fires when the input value is invalid.*/
22
36
  invalid?: string | undefined;
37
+ /** Provide classes to set padding styles.*/
23
38
  padding?: string | undefined;
39
+ /** Provide classes to set border radius styles.*/
24
40
  rounded?: string | undefined;
41
+ /** Enable/Disable transitions*/
25
42
  transitions?: boolean | undefined;
43
+ /** Provide the transition used in list on entry.*/
26
44
  listTransitionIn?: ListTransitionIn | undefined;
45
+ /** Transition params provided to `ListTransitionIn`.*/
27
46
  listTransitionInParams?: TransitionParams<ListTransitionIn> | undefined;
47
+ /** Provide the transition used in list on exit.*/
28
48
  listTransitionOut?: ListTransitionOut | undefined;
49
+ /** Transition params provided to `ListTransitionOut`.*/
29
50
  listTransitionOutParams?: TransitionParams<ListTransitionOut> | undefined;
51
+ /** Provide the transition used in chip on entry.*/
30
52
  chipTransitionIn?: ChipTransitionIn | undefined;
53
+ /** Transition params provided to `ChipTransitionIn`.*/
31
54
  chipTransitionInParams?: TransitionParams<ChipTransitionIn> | undefined;
55
+ /** Provide the transition used in chip on exit.*/
32
56
  chipTransitionOut?: ChipTransitionOut | undefined;
57
+ /** Transition params provided to `ChipTransitionOut`.*/
33
58
  chipTransitionOutParams?: TransitionParams<ChipTransitionOut> | undefined;
34
59
  };
35
60
  events(): {
@@ -91,7 +91,7 @@ onDestroy(() => {
91
91
  <!-- Button: Next -->
92
92
  <button type={buttonNextType} class="btn {buttonNext}" on:click={onNext} disabled={locked}>
93
93
  {#if locked}
94
- <svg class="w-3 aspect-square" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
94
+ <svg class="w-3 aspect-square fill-current" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
95
95
  <path
96
96
  d="M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z"
97
97
  />
@@ -6,8 +6,11 @@ declare class __sveltets_Render<TransitionIn extends Transition, TransitionOut e
6
6
  props(): {
7
7
  [x: string]: any;
8
8
  locked?: boolean | undefined;
9
+ /** Provide arbitrary classes to the step header region.*/
9
10
  regionHeader?: string | undefined;
11
+ /** Provide arbitrary classes to the step content region.*/
10
12
  regionContent?: string | undefined;
13
+ /** Provide arbitrary classes to the step navigation region.*/
11
14
  regionNavigation?: string | undefined;
12
15
  state?: Writable<StepperState> | undefined;
13
16
  dispatchParent?: StepperEventDispatcher | undefined;
@@ -23,10 +26,15 @@ declare class __sveltets_Render<TransitionIn extends Transition, TransitionOut e
23
26
  buttonComplete?: string | undefined;
24
27
  buttonCompleteType?: "button" | "reset" | "submit" | undefined;
25
28
  buttonCompleteLabel?: string | undefined;
29
+ /** Enable/Disable transitions*/
26
30
  transitions?: boolean | undefined;
31
+ /** Provide the transition to used on entry.*/
27
32
  transitionIn?: TransitionIn | undefined;
33
+ /** Transition params provided to `transitionIn`.*/
28
34
  transitionInParams?: TransitionParams<TransitionIn> | undefined;
35
+ /** Provide the transition to used on exit.*/
29
36
  transitionOut?: TransitionOut | undefined;
37
+ /** Transition params provided to `transitionOut`.*/
30
38
  transitionOutParams?: TransitionParams<TransitionOut> | undefined;
31
39
  };
32
40
  events(): {} & {
@@ -6,28 +6,51 @@ import type { StepperButton, StepperState } from './types.js';
6
6
  declare class __sveltets_Render<TransitionIn extends Transition = FadeTransition, TransitionOut extends Transition = FadeTransition> {
7
7
  props(): {
8
8
  [x: string]: any;
9
+ /** Provide classes to style the stepper header gap.*/
9
10
  gap?: string | undefined;
11
+ /** Provide the verbiage that represents "Step".*/
10
12
  stepTerm?: string | undefined;
13
+ /** Provide classes to style the stepper header badges.*/
11
14
  badge?: string | undefined;
15
+ /** Provide classes to style the stepper header active step badge.*/
12
16
  active?: string | undefined;
17
+ /** Provide classes to style the stepper header border.*/
13
18
  border?: string | undefined;
19
+ /** Provide the initially selected step*/
14
20
  start?: number | undefined;
21
+ /** Set the justification for the step navigation buttons.*/
15
22
  justify?: string | undefined;
23
+ /** Provide arbitrary classes to style the back button.*/
16
24
  buttonBack?: string | undefined;
25
+ /** Set the type of the back button.*/
17
26
  buttonBackType?: StepperButton | undefined;
27
+ /** Provide the HTML label content for the back button.*/
18
28
  buttonBackLabel?: string | undefined;
29
+ /** Provide arbitrary classes to style the next button.*/
19
30
  buttonNext?: string | undefined;
31
+ /** Set the type of the next button.*/
20
32
  buttonNextType?: StepperButton | undefined;
33
+ /** Provide the HTML label content for the next button.*/
21
34
  buttonNextLabel?: string | undefined;
35
+ /** Provide arbitrary classes to style the complete button.*/
22
36
  buttonComplete?: string | undefined;
37
+ /** Set the type of the complete button.*/
23
38
  buttonCompleteType?: StepperButton | undefined;
39
+ /** Provide the HTML label content for the complete button.*/
24
40
  buttonCompleteLabel?: string | undefined;
41
+ /** Provide arbitrary classes to the stepper header region.*/
25
42
  regionHeader?: string | undefined;
43
+ /** Provide arbitrary classes to the stepper content region.*/
26
44
  regionContent?: string | undefined;
45
+ /** Enable/Disable transitions*/
27
46
  transitions?: boolean | undefined;
47
+ /** Provide the transition to used on entry.*/
28
48
  transitionIn?: TransitionIn | undefined;
49
+ /** Transition params provided to `transitionIn`.*/
29
50
  transitionInParams?: TransitionParams<TransitionIn> | undefined;
51
+ /** Provide the transition to used on exit.*/
30
52
  transitionOut?: TransitionOut | undefined;
53
+ /** Transition params provided to `transitionOut`.*/
31
54
  transitionOutParams?: TransitionParams<TransitionOut> | undefined;
32
55
  };
33
56
  events(): {
@@ -25,6 +25,8 @@ function languageFormatter(lang) {
25
25
  return "javascript";
26
26
  if (lang === "ts")
27
27
  return "typescript";
28
+ if (lang === "shell")
29
+ return "terminal";
28
30
  return lang;
29
31
  }
30
32
  function onCopyClick() {
@@ -202,11 +202,13 @@ $:
202
202
  aria-modal="true"
203
203
  aria-label={$modalStore[0].title ?? ''}
204
204
  >
205
- <svelte:component this={currentComponent?.ref} {...currentComponent?.props} {parent}>
206
- {#if currentComponent?.slot}
205
+ {#if currentComponent?.slot}
206
+ <svelte:component this={currentComponent?.ref} {...currentComponent?.props} {parent}>
207
207
  {@html currentComponent?.slot}
208
- {/if}
209
- </svelte:component>
208
+ </svelte:component>
209
+ {:else}
210
+ <svelte:component this={currentComponent?.ref} {...currentComponent?.props} {parent} />
211
+ {/if}
210
212
  </div>
211
213
  {/if}
212
214
  </div>
@@ -6,29 +6,53 @@ import type { ModalComponent } from './types.js';
6
6
  declare class __sveltets_Render<TransitionIn extends Transition = FlyTransition, TransitionOut extends Transition = FlyTransition> {
7
7
  props(): {
8
8
  [x: string]: any;
9
+ /** Set the modal position within the backdrop container*/
9
10
  position?: string | undefined;
11
+ /** Register a list of reusable component modals.*/
10
12
  components?: Record<string, ModalComponent> | undefined;
13
+ /** Provide classes to style the modal background.*/
11
14
  background?: string | undefined;
15
+ /** Provide classes to style the modal width.*/
12
16
  width?: string | undefined;
17
+ /** Provide classes to style the modal height.*/
13
18
  height?: string | undefined;
19
+ /** Provide classes to style the modal padding.*/
14
20
  padding?: string | undefined;
21
+ /** Provide classes to style the modal spacing.*/
15
22
  spacing?: string | undefined;
23
+ /** Provide classes to style the modal border radius.*/
16
24
  rounded?: string | undefined;
25
+ /** Provide classes to style modal box shadow.*/
17
26
  shadow?: string | undefined;
27
+ /** Provide a class to override the z-index*/
18
28
  zIndex?: string | undefined;
29
+ /** Provide classes for neutral buttons, such as Cancel.*/
19
30
  buttonNeutral?: string | undefined;
31
+ /** Provide classes for positive actions, such as Confirm or Submit.*/
20
32
  buttonPositive?: string | undefined;
33
+ /** Override the text for the Cancel button.*/
21
34
  buttonTextCancel?: string | undefined;
35
+ /** Override the text for the Confirm button.*/
22
36
  buttonTextConfirm?: string | undefined;
37
+ /** Override the text for the Submit button.*/
23
38
  buttonTextSubmit?: string | undefined;
39
+ /** Provide classes to style the backdrop.*/
24
40
  regionBackdrop?: string | undefined;
41
+ /** Provide arbitrary classes to modal header region.*/
25
42
  regionHeader?: string | undefined;
43
+ /** Provide arbitrary classes to modal body region.*/
26
44
  regionBody?: string | undefined;
45
+ /** Provide arbitrary classes to modal footer region.*/
27
46
  regionFooter?: string | undefined;
47
+ /** Enable/Disable transitions*/
28
48
  transitions?: boolean | undefined;
49
+ /** Provide the transition used on entry.*/
29
50
  transitionIn?: TransitionIn | undefined;
51
+ /** Transition params provided to `TransitionIn`.*/
30
52
  transitionInParams?: TransitionParams<TransitionIn> | undefined;
53
+ /** Provide the transition used on exit.*/
31
54
  transitionOut?: TransitionOut | undefined;
55
+ /** Transition params provided to `TransitionOut`.*/
32
56
  transitionOutParams?: TransitionParams<TransitionOut> | undefined;
33
57
  };
34
58
  events(): {
@@ -5,23 +5,41 @@ type FlyTransition = typeof fly;
5
5
  declare class __sveltets_Render<TransitionIn extends Transition = FlyTransition, TransitionOut extends Transition = FlyTransition> {
6
6
  props(): {
7
7
  [x: string]: any;
8
+ /** Set the toast position.*/
8
9
  position?: "b" | "br" | "tr" | "t" | "l" | "r" | "tl" | "bl" | undefined;
10
+ /** Maximum toasts that can show at once.*/
9
11
  max?: number | undefined;
12
+ /** Provide classes to set the background color.*/
10
13
  background?: string | undefined;
14
+ /** Provide classes to set width styles.*/
11
15
  width?: string | undefined;
16
+ /** Provide classes to set the text color.*/
12
17
  color?: string | undefined;
18
+ /** Provide classes to set the padding.*/
13
19
  padding?: string | undefined;
20
+ /** Provide classes to set toast horizontal spacing.*/
14
21
  spacing?: string | undefined;
22
+ /** Provide classes to set the border radius styles.*/
15
23
  rounded?: string | undefined;
24
+ /** Provide classes to set the border box shadow.*/
16
25
  shadow?: string | undefined;
26
+ /** Provide a class to override the z-index*/
17
27
  zIndex?: string | undefined;
28
+ /** Provide styles for the action button.*/
18
29
  buttonAction?: string | undefined;
30
+ /** Provide styles for the dismiss button.*/
19
31
  buttonDismiss?: string | undefined;
32
+ /** The button label text.*/
20
33
  buttonDismissLabel?: string | undefined;
34
+ /** Enable/Disable transitions*/
21
35
  transitions?: boolean | undefined;
36
+ /** Provide the transition to used on entry.*/
22
37
  transitionIn?: TransitionIn | undefined;
38
+ /** Transition params provided to `transitionIn`.*/
23
39
  transitionInParams?: TransitionParams<TransitionIn> | undefined;
40
+ /** Provide the transition to used on exit.*/
24
41
  transitionOut?: TransitionOut | undefined;
42
+ /** Transition params provided to `transitionOut`.*/
25
43
  transitionOutParams?: TransitionParams<TransitionOut> | undefined;
26
44
  };
27
45
  events(): {} & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "A SvelteKit component library.",
5
5
  "author": "endigo9740 <chris@skeletonlabs.dev>",
6
6
  "repository": {