-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
<script> | ||
// @ts-nocheck | ||
import { Button, Label, Select, Tooltip } from 'flowbite-svelte'; | ||
import { LightbulbSolid } from 'flowbite-svelte-icons'; | ||
import { Label, Select, Tooltip } from 'flowbite-svelte'; | ||
/** | ||
* @type {any[]} | ||
*/ | ||
// @ts-ignore | ||
export let dropdownData = []; | ||
export let heading = 'dummy dropdown data'; | ||
const textColors = 'text-gray-700 dark:text-gray-400 '; | ||
const textColors = 'text-gray-700 dark:text-gray-400'; | ||
const basicColorBehavior = | ||
textColors + | ||
'hover:text-primary-800 dark:hover:text-primary-500 group-hover:text-primary-800 dark:group-hover:text-primary-500 '; | ||
const headerStyle = 'mb-2 text-2xl font-bold tracking-tight ' + textColors; | ||
const paragraphStyle = 'mb-3 font-normal leading-tight ' + textColors; | ||
const symbolStyle = 'h-6 w-6 ' + textColors; | ||
const labelStyle = 'mb-2 text-lg ' + textColors; | ||
const labelContainerStyle = 'flex items-center space-x-2 '; | ||
const buttonStyle = ' '; | ||
'hover:text-primary-800 dark:hover:text-primary-500 group-hover:text-primary-800 dark:group-hover:text-primary-500'; | ||
const headerStyle = `mb-2 text-2xl font-bold tracking-tight ${textColors}`; | ||
const paragraphStyle = `mb-3 font-normal leading-tight ${textColors}`; | ||
const labelStyle = `mb-2 text-lg ${textColors}`; | ||
const labelContainerStyle = 'flex items-center space-x-2'; | ||
const buttonStyle = `bg-transparent ${textColors} ${basicColorBehavior} focus:outline-none`; | ||
</script> | ||
|
||
<div class="items-center space-x-4 rtl:space-x-reverse"> | ||
<h1 class={headerStyle}>{heading}</h1> | ||
{#each dropdownData as dropdown} | ||
<div class={paragraphStyle}> | ||
<div> | ||
<div class={labelContainerStyle}> | ||
<Label for="select-lg" class={labelStyle}>{dropdown.name}</Label> | ||
<Button btnClass={buttonStyle} color="light"><LightbulbSolid class={symbolStyle} /></Button> | ||
<Tooltip>Hilfe</Tooltip> | ||
<Tooltip>{dropdown.about}</Tooltip> | ||
</div> | ||
<Select size="lg" class="mb-6" items={dropdown.items} bind:value={dropdown.selected} /> | ||
<Tooltip>{dropdown.about}</Tooltip> | ||
<Select | ||
size="lg" | ||
class={paragraphStyle} | ||
items={dropdown.items} | ||
bind:value={dropdown.selected} | ||
/> | ||
</div> | ||
{/each} | ||
</div> |