reconfigure package for ts-only consumption
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<script lang="ts">
|
||||
import type { Snippet } from 'svelte';
|
||||
import { validate } from '@svelte-toolkit/validate';
|
||||
import { generateIdentifier } from './util.js';
|
||||
import { generateIdentifier } from './util';
|
||||
import type { ClassValue } from 'svelte/elements';
|
||||
|
||||
interface Props {
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
import { Portal } from '@jsrob/svelte-portal';
|
||||
import { browser } from '$app/environment';
|
||||
import { scale } from 'svelte/transition';
|
||||
import { generateIdentifier } from './util.js';
|
||||
import { generateIdentifier } from './util';
|
||||
import type { ClassValue } from 'svelte/elements';
|
||||
|
||||
interface Props {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import { CalendarBlank } from 'phosphor-svelte';
|
||||
import { type Snippet } from 'svelte';
|
||||
import type { ClassValue, KeyboardEventHandler } from 'svelte/elements';
|
||||
import { generateIdentifier } from './util.js';
|
||||
import { generateIdentifier } from './util';
|
||||
import Label from './Label.svelte';
|
||||
|
||||
type FormatString = 'year' | 'month' | 'day';
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import Combobox, { type ComboboxItem } from './Combobox.svelte';
|
||||
import StyledRawInput from './StyledRawInput.svelte';
|
||||
import { AsYouType, type PhoneNumber, type CountryCode } from 'libphonenumber-js';
|
||||
import { generateIdentifier } from './util.js';
|
||||
import { generateIdentifier } from './util';
|
||||
import type { ClassValue } from 'svelte/elements';
|
||||
|
||||
interface Props {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { isValueValid, validate, type ValidatorOptions } from '@svelte-toolkit/validate';
|
||||
import Label from './Label.svelte';
|
||||
import type { ClassValue } from 'svelte/elements';
|
||||
import { generateIdentifier } from './util.js';
|
||||
import { generateIdentifier } from './util';
|
||||
|
||||
interface Props {
|
||||
label?: string;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import { scale } from 'svelte/transition';
|
||||
import Label from './Label.svelte';
|
||||
import { validate } from '@svelte-toolkit/validate';
|
||||
import { getLabel, getValue, type Option } from './util.js';
|
||||
import { getLabel, getValue, type Option } from './util';
|
||||
|
||||
interface Props extends RadioGroupProps {
|
||||
options: Option[];
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
type InputValidatorEvent,
|
||||
type ValidatorOptions
|
||||
} from '@svelte-toolkit/validate';
|
||||
import { generateIdentifier } from './util.js';
|
||||
import { generateIdentifier } from './util';
|
||||
|
||||
type $Props = Omit<HTMLInputAttributes, 'name' | 'value'> & {
|
||||
name?: string;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import Label from './Label.svelte';
|
||||
import StyledRawInput from './StyledRawInput.svelte';
|
||||
import { type ValidatorOptions } from '@svelte-toolkit/validate';
|
||||
import { generateIdentifier } from './util.js';
|
||||
import { generateIdentifier } from './util';
|
||||
import type { ClassValue } from 'svelte/elements';
|
||||
|
||||
interface Props {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
import { onMount } from 'svelte';
|
||||
import moment from 'moment';
|
||||
import type { ClassValue } from 'svelte/elements';
|
||||
import { generateIdentifier } from './util.js';
|
||||
import { generateIdentifier } from './util';
|
||||
|
||||
interface Props {
|
||||
name?: string;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import Label from './Label.svelte';
|
||||
import ToggleSelect from './ToggleSelect.svelte';
|
||||
import { validate, validateInput } from '@svelte-toolkit/validate';
|
||||
import { generateIdentifier, getLabel, getValue, type Option } from './util.js';
|
||||
import { generateIdentifier, getLabel, getValue, type Option } from './util';
|
||||
import type { ClassValue } from 'svelte/elements';
|
||||
|
||||
interface Props {
|
||||
|
||||
@@ -20,4 +20,4 @@ export { default as TimeInput } from './TimeInput.svelte';
|
||||
export { default as TimezoneInput } from './TimezoneInput.svelte';
|
||||
export { default as ToggleGroup } from './ToggleGroup.svelte';
|
||||
export { default as ToggleSelect } from './ToggleSelect.svelte';
|
||||
export { type Option, getLabel, getValue } from './util.js';
|
||||
export { type Option, getLabel, getValue } from './util';
|
||||
|
||||
Reference in New Issue
Block a user