@skeletonlabs/skeleton 1.6.2-dev.a572946f → 1.6.2-dev.b335917b

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.
@@ -1,6 +1,6 @@
1
1
  <script>import { getContext } from "svelte";
2
2
  export let selected = false;
3
- export let regionLead = "";
3
+ export let regionLead = "flex justify-center items-center";
4
4
  export let regionLabel = "";
5
5
  export let hover = getContext("hover");
6
6
  export let active = getContext("active");
@@ -2,6 +2,7 @@
2
2
  export let group;
3
3
  export let name;
4
4
  export let value;
5
+ export let title = "";
5
6
  export let regionLead = "";
6
7
  export let regionLabel = "";
7
8
  export let hover = getContext("hover");
@@ -30,7 +31,7 @@ function prunedRestProps() {
30
31
  }
31
32
  </script>
32
33
 
33
- <label class="app-rail-tile {classesBase}" data-testid="app-rail-tile">
34
+ <label class="app-rail-tile {classesBase}" data-testid="app-rail-tile" {title}>
34
35
  <!-- A11y attributes are not allowed on <label> -->
35
36
  <div class="app-rail-wrapper {classesWrapper}" on:keydown on:keyup on:keypress>
36
37
  <!-- NOTE: Don't use `hidden` as it prevents `required` from operating -->
@@ -8,6 +8,8 @@ declare const __propDef: {
8
8
  name: string;
9
9
  /** Set the input's value.*/
10
10
  value: any;
11
+ /** Provide a hoverable title attribute for the tile.*/
12
+ title?: string | undefined;
11
13
  /** Provide arbitrary classes to style the lead region.*/
12
14
  regionLead?: string | undefined;
13
15
  /** Provide arbitrary classes to style the label region.*/
@@ -1,5 +1,5 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { AutocompleteOption } from './types';
2
+ import type { AutocompleteOption } from './types.js';
3
3
  declare const __propDef: {
4
4
  props: {
5
5
  [x: string]: any;
@@ -1,5 +1,5 @@
1
1
  <script>import { afterUpdate } from "svelte";
2
- import { tailwindDefaultColors } from "./settings";
2
+ import { tailwindDefaultColors } from "./settings.js";
3
3
  export let stops = [{ color: ["neutral", 500], start: 0, end: 100 }];
4
4
  export let legend = false;
5
5
  export let spin = false;
@@ -1,5 +1,5 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { ConicStop } from './types';
2
+ import type { ConicStop } from './types.js';
3
3
  declare const __propDef: {
4
4
  props: {
5
5
  [x: string]: any;
@@ -1,5 +1,5 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { PaginationSettings } from '../..';
2
+ import type { PaginationSettings } from '../../index.js';
3
3
  declare const __propDef: {
4
4
  props: {
5
5
  [x: string]: any;
@@ -1,6 +1,6 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  import type { Writable } from 'svelte/store';
3
- import type { StepperDispatchParent, StepperState } from './types';
3
+ import type { StepperDispatchParent, StepperState } from './types.js';
4
4
  declare const __propDef: {
5
5
  props: {
6
6
  [x: string]: any;
@@ -1,5 +1,5 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { StepperButton } from './types';
2
+ import type { StepperButton } from './types.js';
3
3
  declare const __propDef: {
4
4
  props: {
5
5
  [x: string]: any;
@@ -43,9 +43,9 @@ declare const __propDef: {
43
43
  events: {
44
44
  [evt: string]: CustomEvent<any>;
45
45
  };
46
- /** Provide the HTML label content for the complete button. */ slots: {
46
+ slots: {
47
47
  default: {};
48
- };
48
+ }; /** Provide the HTML label content for the complete button. */
49
49
  };
50
50
  export type StepperProps = typeof __propDef.props;
51
51
  export type StepperEvents = typeof __propDef.events;
@@ -1,5 +1,5 @@
1
1
  <script>import { createEventDispatcher } from "svelte";
2
- import { tableA11y } from "../../utilities/DataTable/actions";
2
+ import { tableA11y } from "../../utilities/DataTable/actions.js";
3
3
  const dispatch = createEventDispatcher();
4
4
  export let source;
5
5
  export let interactive = false;
@@ -1,5 +1,5 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { TableSource } from '../..';
2
+ import type { TableSource } from '../../index.js';
3
3
  declare const __propDef: {
4
4
  props: {
5
5
  [x: string]: any;
package/dist/index.d.ts CHANGED
@@ -1,25 +1,25 @@
1
- export type { AutocompleteOption } from './components/Autocomplete/types';
2
- export type { ConicStop } from './components/ConicGradient/types';
3
- export type { DrawerSettings } from './utilities/Drawer/types';
4
- export type { ModalSettings, ModalComponent } from './utilities/Modal/types';
5
- export type { ToastSettings } from './utilities/Toast/types';
6
- export type { TableSource } from './components/Table/types';
7
- export type { PaginationSettings } from './components/Paginator/types';
8
- export type { PopupSettings } from './utilities/Popup/types';
1
+ export type { AutocompleteOption } from './components/Autocomplete/types.js';
2
+ export type { ConicStop } from './components/ConicGradient/types.js';
3
+ export type { DrawerSettings } from './utilities/Drawer/types.js';
4
+ export type { ModalSettings, ModalComponent } from './utilities/Modal/types.js';
5
+ export type { ToastSettings } from './utilities/Toast/types.js';
6
+ export type { TableSource } from './components/Table/types.js';
7
+ export type { PaginationSettings } from './components/Paginator/types.js';
8
+ export type { PopupSettings } from './utilities/Popup/types.js';
9
9
  export type CssClasses = string;
10
- export { storeHighlightJs } from './utilities/CodeBlock/stores';
11
- export { storePopup } from './utilities/Popup/popup';
12
- export { drawerStore } from './utilities/Drawer/stores';
13
- export { modalStore } from './utilities/Modal/stores';
14
- export { toastStore } from './utilities/Toast/stores';
15
- export { type DataTableModel, type DataTableOptions, createDataTableStore, dataTableHandler, tableInteraction, tableA11y } from './utilities/DataTable/DataTable';
16
- export { modeOsPrefers, modeUserPrefers, modeCurrent, getModeOsPrefers, getModeUserPrefers, getModeAutoPrefers, setModeUserPrefers, setModeCurrent, setInitialClassState, autoModeWatcher } from './utilities/LightSwitch/lightswitch';
17
- export { localStorageStore } from './utilities/LocalStorageStore/LocalStorageStore';
18
- export { tableSourceMapper, tableSourceValues, tableMapperValues } from './components/Table/utils';
19
- export { clipboard } from './actions/Clipboard/clipboard';
20
- export { filter } from './actions/Filters/filter';
21
- export { focusTrap } from './actions/FocusTrap/focusTrap';
22
- export { popup } from './utilities/Popup/popup';
10
+ export { storeHighlightJs } from './utilities/CodeBlock/stores.js';
11
+ export { storePopup } from './utilities/Popup/popup.js';
12
+ export { drawerStore } from './utilities/Drawer/stores.js';
13
+ export { modalStore } from './utilities/Modal/stores.js';
14
+ export { toastStore } from './utilities/Toast/stores.js';
15
+ export { type DataTableModel, type DataTableOptions, createDataTableStore, dataTableHandler, tableInteraction, tableA11y } from './utilities/DataTable/DataTable.js';
16
+ export { modeOsPrefers, modeUserPrefers, modeCurrent, getModeOsPrefers, getModeUserPrefers, getModeAutoPrefers, setModeUserPrefers, setModeCurrent, setInitialClassState, autoModeWatcher } from './utilities/LightSwitch/lightswitch.js';
17
+ export { localStorageStore } from './utilities/LocalStorageStore/LocalStorageStore.js';
18
+ export { tableSourceMapper, tableSourceValues, tableMapperValues } from './components/Table/utils.js';
19
+ export { clipboard } from './actions/Clipboard/clipboard.js';
20
+ export { filter } from './actions/Filters/filter.js';
21
+ export { focusTrap } from './actions/FocusTrap/focusTrap.js';
22
+ export { popup } from './utilities/Popup/popup.js';
23
23
  export { default as Accordion } from './components/Accordion/Accordion.svelte';
24
24
  export { default as AccordionItem } from './components/Accordion/AccordionItem.svelte';
25
25
  export { default as AppBar } from './components/AppBar/AppBar.svelte';
package/dist/index.js CHANGED
@@ -1,33 +1,33 @@
1
1
  // This file defines the short path imports for the package (ex: @skeletonlabs/skeleton/*)
2
2
  // Stores ---
3
- export { storeHighlightJs } from './utilities/CodeBlock/stores';
4
- export { storePopup } from './utilities/Popup/popup';
5
- export { drawerStore } from './utilities/Drawer/stores';
6
- export { modalStore } from './utilities/Modal/stores';
7
- export { toastStore } from './utilities/Toast/stores';
3
+ export { storeHighlightJs } from './utilities/CodeBlock/stores.js';
4
+ export { storePopup } from './utilities/Popup/popup.js';
5
+ export { drawerStore } from './utilities/Drawer/stores.js';
6
+ export { modalStore } from './utilities/Modal/stores.js';
7
+ export { toastStore } from './utilities/Toast/stores.js';
8
8
  // Utilities ---
9
9
  // Data Table
10
10
  export {
11
11
  // Utilities
12
12
  createDataTableStore, dataTableHandler,
13
13
  // Svelte Actions
14
- tableInteraction, tableA11y } from './utilities/DataTable/DataTable';
14
+ tableInteraction, tableA11y } from './utilities/DataTable/DataTable.js';
15
15
  // Lightswitch
16
16
  export {
17
17
  // Stores
18
18
  modeOsPrefers, modeUserPrefers, modeCurrent,
19
19
  // Methods
20
- getModeOsPrefers, getModeUserPrefers, getModeAutoPrefers, setModeUserPrefers, setModeCurrent, setInitialClassState, autoModeWatcher } from './utilities/LightSwitch/lightswitch';
20
+ getModeOsPrefers, getModeUserPrefers, getModeAutoPrefers, setModeUserPrefers, setModeCurrent, setInitialClassState, autoModeWatcher } from './utilities/LightSwitch/lightswitch.js';
21
21
  // Local Storage Store
22
- export { localStorageStore } from './utilities/LocalStorageStore/LocalStorageStore';
22
+ export { localStorageStore } from './utilities/LocalStorageStore/LocalStorageStore.js';
23
23
  // Component Utilities
24
- export { tableSourceMapper, tableSourceValues, tableMapperValues } from './components/Table/utils';
24
+ export { tableSourceMapper, tableSourceValues, tableMapperValues } from './components/Table/utils.js';
25
25
  // Svelte Actions ---
26
- export { clipboard } from './actions/Clipboard/clipboard';
27
- export { filter } from './actions/Filters/filter';
28
- export { focusTrap } from './actions/FocusTrap/focusTrap';
26
+ export { clipboard } from './actions/Clipboard/clipboard.js';
27
+ export { filter } from './actions/Filters/filter.js';
28
+ export { focusTrap } from './actions/FocusTrap/focusTrap.js';
29
29
  // Utility Actions
30
- export { popup } from './utilities/Popup/popup';
30
+ export { popup } from './utilities/Popup/popup.js';
31
31
  // Svelte Components ---
32
32
  export { default as Accordion } from './components/Accordion/Accordion.svelte';
33
33
  export { default as AccordionItem } from './components/Accordion/AccordionItem.svelte';
@@ -1,7 +1,7 @@
1
1
  <script>import { createEventDispatcher } from "svelte";
2
2
  const dispatch = createEventDispatcher();
3
- import { storeHighlightJs } from "./stores";
4
- import { clipboard } from "../../actions/Clipboard/clipboard";
3
+ import { storeHighlightJs } from "./stores.js";
4
+ import { clipboard } from "../../actions/Clipboard/clipboard.js";
5
5
  export let language = "plaintext";
6
6
  export let code = "";
7
7
  export let lineNumbers = false;
@@ -1,6 +1,6 @@
1
- import type { DataTableModel, DataTableOptions } from './types';
2
- export * from './types';
3
- export * from './actions';
1
+ import type { DataTableModel, DataTableOptions } from './types.js';
2
+ export * from './types.js';
3
+ export * from './actions.js';
4
4
  /** Creates the writeable store for the data table */
5
5
  export declare function createDataTableStore<T extends Record<PropertyKey, any>>(source: T[], options?: DataTableOptions<T>): {
6
6
  subscribe: (this: void, run: import("svelte/store").Subscriber<DataTableModel<T>>, invalidate?: ((value?: DataTableModel<T> | undefined) => void) | undefined) => import("svelte/store").Unsubscriber;
@@ -2,8 +2,8 @@
2
2
  // A set of utility features for local template-driven data tables.
3
3
  import { writable } from 'svelte/store';
4
4
  // Exports
5
- export * from './types';
6
- export * from './actions';
5
+ export * from './types.js';
6
+ export * from './actions.js';
7
7
  /** Creates the writeable store for the data table */
8
8
  export function createDataTableStore(source, options = {}) {
9
9
  // Creates a new source that also adds the `dataTableChecked` property to each row object
@@ -1,4 +1,4 @@
1
- import type { PaginationSettings } from '../..';
1
+ import type { PaginationSettings } from '../../index.js';
2
2
  export interface DataTableModel<T extends Record<PropertyKey, unknown>> {
3
3
  /** The original source data. */
4
4
  source: T[];
@@ -2,8 +2,8 @@
2
2
  import { createEventDispatcher } from "svelte";
3
3
  import { BROWSER } from "esm-env";
4
4
  const dispatch = createEventDispatcher();
5
- import { focusTrap } from "../../actions/FocusTrap/focusTrap";
6
- import { drawerStore } from "./stores";
5
+ import { focusTrap } from "../../actions/FocusTrap/focusTrap.js";
6
+ import { drawerStore } from "./stores.js";
7
7
  export let position = "left";
8
8
  export let duration = 150;
9
9
  export let bgBackdrop = "bg-surface-backdrop-token";
@@ -1,4 +1,4 @@
1
- import type { DrawerSettings } from './types';
1
+ import type { DrawerSettings } from './types.js';
2
2
  export declare const drawerStore: {
3
3
  subscribe: (this: void, run: import("svelte/store").Subscriber<DrawerSettings>, invalidate?: ((value?: DrawerSettings | undefined) => void) | undefined) => import("svelte/store").Unsubscriber;
4
4
  set: (this: void, value: DrawerSettings) => void;
@@ -1,5 +1,5 @@
1
1
  <script>import { onMount } from "svelte";
2
- import { modeCurrent, setModeUserPrefers, setModeCurrent, setInitialClassState, getModeOsPrefers } from "./lightswitch";
2
+ import { modeCurrent, setModeUserPrefers, setModeCurrent, setInitialClassState, getModeOsPrefers } from "./lightswitch.js";
3
3
  export let bgLight = "bg-surface-50";
4
4
  export let bgDark = "bg-surface-900";
5
5
  export let fillLight = "fill-surface-50";
@@ -1,7 +1,7 @@
1
1
  // Lightswitch Service
2
2
  import { get } from 'svelte/store';
3
3
  // DO NOT replace this ⬇ import, it has to be imported directly
4
- import { localStorageStore } from '../LocalStorageStore/LocalStorageStore';
4
+ import { localStorageStore } from '../LocalStorageStore/LocalStorageStore.js';
5
5
  // Stores ---
6
6
  // TRUE: light, FALSE: dark
7
7
  /** Store: OS Preference Mode */
@@ -1,8 +1,8 @@
1
1
  <script>import { createEventDispatcher } from "svelte";
2
2
  import { fade, fly } from "svelte/transition";
3
3
  const dispatch = createEventDispatcher();
4
- import { modalStore } from "./stores";
5
- import { focusTrap } from "../../actions/FocusTrap/focusTrap";
4
+ import { modalStore } from "./stores.js";
5
+ import { focusTrap } from "../../actions/FocusTrap/focusTrap.js";
6
6
  export let position = "items-center";
7
7
  export let components = {};
8
8
  export let duration = 150;
@@ -1,5 +1,5 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { ModalComponent } from './types';
2
+ import type { ModalComponent } from './types.js';
3
3
  declare const __propDef: {
4
4
  props: {
5
5
  [x: string]: any;
@@ -1,4 +1,4 @@
1
- import type { ModalSettings } from './types';
1
+ import type { ModalSettings } from './types.js';
2
2
  export declare const modalStore: {
3
3
  subscribe: (this: void, run: import("svelte/store").Subscriber<ModalSettings[]>, invalidate?: ((value?: ModalSettings[] | undefined) => void) | undefined) => import("svelte/store").Unsubscriber;
4
4
  set: (this: void, value: ModalSettings[]) => void;
@@ -1,5 +1,5 @@
1
1
  import { type Writable } from 'svelte/store';
2
- import type { PopupSettings } from './types';
2
+ import type { PopupSettings } from './types.js';
3
3
  export declare const storePopup: Writable<any>;
4
4
  export declare function popup(triggerNode: HTMLElement, args: PopupSettings): {
5
5
  update(newArgs: PopupSettings): void;
@@ -1,7 +1,7 @@
1
1
  <script>import { crossfade } from "svelte/transition";
2
2
  import { cubicInOut } from "svelte/easing";
3
3
  import { flip } from "svelte/animate";
4
- import { toastStore } from "./stores";
4
+ import { toastStore } from "./stores.js";
5
5
  export let position = "b";
6
6
  export let max = 3;
7
7
  export let duration = 250;
@@ -1,4 +1,4 @@
1
- import type { ToastSettings, Toast } from './types';
1
+ import type { ToastSettings, Toast } from './types.js';
2
2
  export declare const toastStore: {
3
3
  subscribe: (this: void, run: import("svelte/store").Subscriber<Toast[]>, invalidate?: ((value?: Toast[] | undefined) => void) | undefined) => import("svelte/store").Unsubscriber;
4
4
  /** Add a new toast to the queue. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton",
3
- "version": "1.6.2-dev.a572946f",
3
+ "version": "1.6.2-dev.b335917b",
4
4
  "description": "A SvelteKit component library.",
5
5
  "author": "endigo9740 <chris@skeletonlabs.dev>",
6
6
  "repository": {
@@ -70,7 +70,10 @@
70
70
  },
71
71
  "./styles/*": "./dist/styles/*",
72
72
  "./themes/*": "./dist/themes/*",
73
- "./tailwind/skeleton.cjs": "./dist/tailwind/skeleton.cjs"
73
+ "./tailwind/skeleton.cjs": {
74
+ "types": "./dist/tailwind/skeleton.cts",
75
+ "default": "./dist/tailwind/skeleton.cjs"
76
+ }
74
77
  },
75
78
  "files": [
76
79
  "./dist/**/*.svelte",
@@ -83,16 +86,6 @@
83
86
  "./dist/themes/*",
84
87
  "!./dist/**/*.test.*"
85
88
  ],
86
- "typesVersions": {
87
- ">4.0": {
88
- "index": [
89
- "./dist/index.d.ts"
90
- ],
91
- "tailwind/skeleton.cjs": [
92
- "./dist/tailwind/skeleton.d.cts"
93
- ]
94
- }
95
- },
96
89
  "scripts": {
97
90
  "dev": "vite dev",
98
91
  "build": "vite build",
@@ -106,5 +99,15 @@
106
99
  "coverage": "vitest run --coverage",
107
100
  "sync": "svelte-kit sync",
108
101
  "build:jss": "node ./scripts/generate-jss.js --package"
102
+ },
103
+ "typesVersions": {
104
+ ">4.0": {
105
+ "index.d.ts": [
106
+ "./dist/index.d.ts"
107
+ ],
108
+ "tailwind/skeleton.cjs": [
109
+ "./dist/tailwind/skeleton.d.cts"
110
+ ]
111
+ }
109
112
  }
110
113
  }