Added version to fetch props. Renamed interfaces to a declaration file

This commit is contained in:
Martin Berg Alstad
2023-04-08 12:05:08 +02:00
parent 3245769977
commit 292da46769
16 changed files with 28 additions and 27 deletions

View File

@ -1,6 +1,6 @@
/* @refresh reload */
import { type Component, createSignal } from "solid-js";
import type { ButtonProps, TitleProps } from "../types/interfaces";
import type { ButtonProps, TitleProps } from "../types/types";
interface SwitchProps extends TitleProps {
defaultValue?: boolean,

View File

@ -1,6 +1,6 @@
/* @refresh reload */
import { type Component } from "solid-js";
import type { CardProps } from "../types/interfaces";
import type { CardProps } from "../types/types";
import { Link } from "./link";
const Card: Component<CardProps> = ({ children, className, title, to, newTab = false }) => {

View File

@ -1,6 +1,6 @@
/* @refresh reload */
import { Dialog, DialogDescription, DialogPanel, DialogTitle } from "solid-headless";
import type { TitleProps } from "../types/interfaces";
import type { TitleProps } from "../types/types";
import { createEffect, createSignal, JSX } from "solid-js";
import { Button } from "./button";
import { Portal } from "solid-js/web";

View File

@ -1,6 +1,6 @@
/* @refresh reload */
import { type Component } from "solid-js";
import type { SimpleProps } from "../types/interfaces";
import type { SimpleProps } from "../types/types";
import { Link } from "./link";
const Footer: Component<SimpleProps> = ({ className }) => {

View File

@ -1,6 +1,6 @@
/* @refresh reload */
import { type Component, Show } from "solid-js";
import type { TitleProps } from "../types/interfaces";
import type { TitleProps } from "../types/types";
import { Icon } from "solid-heroicons";
import { chevronLeft } from "solid-heroicons/solid";
import { Link } from "./link";

View File

@ -1,6 +1,6 @@
/* @refresh reload */
import { type Component, createSignal, JSX, Setter } from "solid-js";
import type { InputProps } from "../types/interfaces";
import type { InputProps } from "../types/types";
import Row from "./row";
function setupEventListener(id: string, setIsHover: Setter<boolean>): () => void {

View File

@ -1,6 +1,6 @@
/* @refresh reload */
import { type Component } from "solid-js";
import type { TitleProps } from "../types/interfaces";
import type { TitleProps } from "../types/types";
import Header from "./header";
import Footer from "./footer";

View File

@ -1,6 +1,6 @@
/* @refresh reload */
import { type Component } from "solid-js";
import type { LinkProps } from "../types/interfaces";
import type { LinkProps } from "../types/types";
export const Link: Component<LinkProps> = (
{

View File

@ -1,5 +1,5 @@
/* @refresh reload */
import type { TitleProps } from "../types/interfaces";
import type { TitleProps } from "../types/types";
import { type Component, createEffect, createSignal, JSX, Show } from "solid-js";
import { Button } from "./button";

View File

@ -1,6 +1,6 @@
import { Disclosure, DisclosureButton, DisclosurePanel, Transition } from "solid-headless";
import { Icon } from "solid-heroicons";
import type { ChildProps, TitleProps } from "../types/interfaces";
import type { ChildProps, TitleProps } from "../types/types";
import { Component, JSX } from "solid-js";
import { chevronUp } from "solid-heroicons/solid";

View File

@ -1,6 +1,6 @@
/* @refresh reload */
import { type Component } from "solid-js";
import type { ChildProps } from "../types/interfaces";
import type { ChildProps } from "../types/types";
const Row: Component<ChildProps> = ({ children, className }) => {
return <div class={ `flex-row-center ${ className }` }>{ children }</div>

View File

@ -1,6 +1,6 @@
/* @refresh reload */
import type { SimpleProps } from "../types/interfaces";
import type { Table } from "../types/interfaces";
import type { SimpleProps } from "../types/types";
import type { Table } from "../types/types";
import { For } from "solid-js/web";
import { type Component } from "solid-js";