Put Col types into col.ts

This commit is contained in:
Henrik Giesel 2021-05-29 18:15:21 +02:00
parent 894c84f4d3
commit 8d32528e8d
4 changed files with 5 additions and 33 deletions

View File

@ -2,12 +2,9 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script context="module" lang="ts">
export type Size = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
export type Breakpoint = "xs" | "sm" | "md" | "lg" | "xl";
</script>
<script lang="ts">
import type { Breakpoint, Size } from "./col";
export let breakpoint: Breakpoint | undefined = undefined;
export let size: Size | undefined = undefined;
export let grow = true;

View File

@ -3,7 +3,7 @@
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="ts">
import type { Breakpoint } from "Col.svelte";
import type { Breakpoint } from "./col";
import marked from "marked";
import Row from "./Row.svelte";

View File

@ -1,25 +0,0 @@
<!--
import { slide } from "svelte/transition";
import RevertButton from "./RevertButton.svelte";
import HelpPopup from "./HelpPopup.svelte";
import marked from "marked";
export let label: string;
export let tooltip = "";
export let value: any;
export let defaultValue: any;
/// empty strings will be ignored
export let warnings: string[] = [];
export let wholeLine = false;
let renderedTooltip: string;
$: renderedTooltip = marked(tooltip);
/* {label}{#if renderedTooltip}<HelpPopup html={renderedTooltip} />{/if} */
/* <slot /> */
/* <RevertButton bind:value {defaultValue} on:revert /> */
-->

View File

@ -1,4 +1,4 @@
// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
export type NumberValueEvent = { detail: { value: number } };
export type Size = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
export type Breakpoint = "xs" | "sm" | "md" | "lg" | "xl";