Skip to content

Commit

Permalink
Fix src/lib verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugos68 committed Dec 31, 2024
1 parent 2a20a38 commit 0e46019
Show file tree
Hide file tree
Showing 42 changed files with 33 additions and 33 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions packages/floating-ui-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"name": "@skeletonlabs/floating-ui-svelte",
"version": "0.3.2",
"scripts": {
"build": "svelte-package",
"build:watch": "svelte-package --watch",
"build": "svelte-package --input ./src",
"build:watch": "pnpm build --watch",
"test": "vitest run",
"test:watch": "vitest run --watch"
"test:watch": "pnpm test --watch"
},
"files": ["dist", "!dist/**/*.test.*", "!dist/**/*.spec.*"],
"sideEffects": ["**/*.css"],
"files": ["dist"],
"sideEffects": false,
"svelte": "./dist/index.js",
"types": "./dist/index.d.ts",
"type": "module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
getTarget,
isEventTargetWithin,
isRootElement,
} from "../internal//dom.js";
} from "../internal/dom.js";
import type { FloatingContext } from "./useFloating.svelte.js";

const bubbleHandlerKeys = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import {
getDocument,
getTarget,
isVirtualPointerEvent,
} from "../internal//dom.js";
import { isMac, isSafari } from "../internal//environment.js";
import { isTypeableElement } from "../internal//is-typable-element.js";
} from "../internal/dom.js";
import { isMac, isSafari } from "../internal/environment.js";
import { isTypeableElement } from "../internal/is-typable-element.js";
import type { OpenChangeReason } from "../internal/types.js";
import type { FloatingContext } from "./use-floating.svelte.js";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {
createAttribute,
getDocument,
isMouseLikePointerType,
} from "../internal//dom.js";
import { noop } from "../internal//noop.js";
} from "../internal/dom.js";
import { noop } from "../internal/noop.js";
import type { OpenChangeReason } from "../internal/types.js";
import type { FloatingContext } from "./useFloating.svelte.js";
import type { ElementProps } from "./useInteractions.svelte.js";
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions packages/floating-ui-svelte/test/components/floating-arrow.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { render, screen } from "@testing-library/svelte";
import { describe, expect, it } from "vitest";
import FloatingArrow from "../../src/lib/components/floating-arrow.svelte";
import { useFloating } from "../../src/lib/hooks/use-floating.svelte.js";
import FloatingArrow from "../../src/components/floating-arrow.svelte";
import { useFloating } from "../../src/hooks/use-floating.svelte.js";
import { withRunes } from "../internal/with-runes.svelte.js";

describe("FloatingArrow", () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/floating-ui-svelte/test/hooks/use-floating.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { describe, expect, expectTypeOf, it, vi } from "vitest";
import {
type FloatingContext,
useFloating,
} from "../../src/lib/hooks/use-floating.svelte.js";
import { useId } from "../../src/lib/hooks/use-id.js";
} from "../../src/hooks/use-floating.svelte.js";
import { useId } from "../../src/hooks/use-id.js";
import { withRunes } from "../internal/with-runes.svelte.js";

function createElements(): { reference: HTMLElement; floating: HTMLElement } {
Expand Down
2 changes: 1 addition & 1 deletion packages/floating-ui-svelte/test/hooks/use-id.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, expectTypeOf, test } from "vitest";
import { useId } from "../../src/lib/hooks/use-id.js";
import { useId } from "../../src/hooks/use-id.js";

describe("useId", () => {
test("returns an id", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { describe, expect, it, vi } from "vitest";
import {
type ElementProps,
useInteractions,
} from "../../src/lib/hooks/use-interactions.svelte.js";
} from "../../src/hooks/use-interactions.svelte.js";
import { withRunes } from "../internal/with-runes.svelte";

describe("useInteractions", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { autoUpdate } from "@floating-ui/dom";
import {
type UseClickOptions,
useClick,
} from "../../../src/lib/hooks/use-click.svelte.js";
import { useFloating } from "../../../src/lib/hooks/use-floating.svelte.js";
import { useHover } from "../../../src/lib/hooks/use-hover.svelte.js";
import { useInteractions } from "../../../src/lib/hooks/use-interactions.svelte.js";
} from "../../../src/hooks/use-click.svelte.js";
import { useFloating } from "../../../src/hooks/use-floating.svelte.js";
import { useHover } from "../../../src/hooks/use-hover.svelte.js";
import { useInteractions } from "../../../src/hooks/use-interactions.svelte.js";
interface Props extends UseClickOptions {
open?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { autoUpdate } from "@floating-ui/dom";
import {
type UseDismissOptions,
useDismiss,
} from "../../../src/lib/hooks/use-dismiss.svelte";
import { useFloating } from "../../../src/lib/hooks/use-floating.svelte";
import { useInteractions } from "../../../src/lib/hooks/use-interactions.svelte";
} from "../../../src/hooks/use-dismiss.svelte";
import { useFloating } from "../../../src/hooks/use-floating.svelte";
import { useInteractions } from "../../../src/hooks/use-interactions.svelte";
interface Props extends UseDismissOptions {
open?: boolean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script lang="ts">
import { autoUpdate } from "@floating-ui/dom";
import { useFloating } from "../../../src/lib/hooks/use-floating.svelte";
import { useFloating } from "../../../src/hooks/use-floating.svelte";
import {
type UseFocusOptions,
useFocus,
} from "../../../src/lib/hooks/use-focus.svelte";
import { useInteractions } from "../../../src/lib/hooks/use-interactions.svelte";
} from "../../../src/hooks/use-focus.svelte";
import { useInteractions } from "../../../src/hooks/use-interactions.svelte";
interface Props extends UseFocusOptions {
open?: boolean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script lang="ts">
import { autoUpdate } from "@floating-ui/dom";
import { useFloating } from "../../../src/lib/hooks/use-floating.svelte";
import { useFloating } from "../../../src/hooks/use-floating.svelte";
import {
type UseHoverOptions,
useHover,
} from "../../../src/lib/hooks/use-hover.svelte";
import { useInteractions } from "../../../src/lib/hooks/use-interactions.svelte.js";
} from "../../../src/hooks/use-hover.svelte";
import { useInteractions } from "../../../src/hooks/use-interactions.svelte.js";
interface Props extends UseHoverOptions {
open?: boolean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script lang="ts">
import { autoUpdate } from "@floating-ui/dom";
import { useFloating } from "../../../src/lib/hooks/use-floating.svelte.js";
import { useInteractions } from "../../../src/lib/hooks/use-interactions.svelte.js";
import { useFloating } from "../../../src/hooks/use-floating.svelte.js";
import { useInteractions } from "../../../src/hooks/use-interactions.svelte.js";
import {
type UseRoleOptions,
useRole,
} from "../../../src/lib/hooks/use-role.svelte.js";
} from "../../../src/hooks/use-role.svelte.js";
interface Props extends UseRoleOptions {
open?: boolean;
}
Expand Down

0 comments on commit 0e46019

Please sign in to comment.