diff --git a/src/lib/cards/Card.svelte b/src/lib/cards/Card.svelte new file mode 100644 index 0000000..c7390f6 --- /dev/null +++ b/src/lib/cards/Card.svelte @@ -0,0 +1,79 @@ + + +
+
+

{config.title}

+
+ {#if config.showHelp} + + + + {/if} + {#if config.showRefresh} + + {/if} +
+
+
+ +
+
+ + diff --git a/src/lib/cards/Card.types.ts b/src/lib/cards/Card.types.ts new file mode 100644 index 0000000..d364d38 --- /dev/null +++ b/src/lib/cards/Card.types.ts @@ -0,0 +1,16 @@ +export interface CardConfig { + title: string; + showHelp: boolean; + showRefresh: boolean; + helpText: string; + onRefresh: () => void; +} + +export interface LookupCardConfig { + title: string; + formAction: string; + maxLen: number; + placeholder: string; + helpText: string; + fieldName: string; +} diff --git a/src/lib/cards/LookupCard.svelte b/src/lib/cards/LookupCard.svelte new file mode 100644 index 0000000..f9f92d9 --- /dev/null +++ b/src/lib/cards/LookupCard.svelte @@ -0,0 +1,60 @@ + + + +
+ +
+ +
+
+ + \ No newline at end of file diff --git a/src/routes/test/+page.svelte b/src/routes/test/+page.svelte new file mode 100644 index 0000000..c115546 --- /dev/null +++ b/src/routes/test/+page.svelte @@ -0,0 +1,42 @@ + + + +

content

+
+ + +