Skip to content

Commit

Permalink
fix: component set
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagovallory committed Feb 3, 2025
1 parent eb8f73b commit a1c1e40
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions packages/ui/src/lib/components/set/set.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { SelectMenu, Input } from '#ui';
import { SelectMenu, Input, Text } from '#ui';
import type { SelectMenuItem } from '#ui';
import { createEventDispatcher } from 'svelte';
Expand All @@ -10,7 +10,14 @@
change: { property: SelectMenuItem | null; value: string };
}>();
const propertyOptions: SelectMenuItem[] = [
const frameOptions: SelectMenuItem[] = [
{ label: 'Frame 123', value: 'frame123' },
{ label: 'Frame 35', value: 'frame35' },
{ label: 'Frame 235', value: 'frame235' },
{ label: 'Frame 50', value: 'frame50' }
];
const propertyOptions: SelectMenuItem[] = [
{ label: 'Fill', value: 'fill' },
{ label: 'Stroke', value: 'stroke' },
{ label: 'Background', value: 'background' },
Expand All @@ -33,8 +40,16 @@
</script>

<div class="set">
<span class="label">property</span>
<div class="select-container">
<div class="select-container">
<SelectMenu
menuItems={frameOptions}
placeholder="Frame 123"
icon=""
value={property}
on:change={handlePropertyChange}
/>
</div>
<div class="select-container">
<SelectMenu
menuItems={propertyOptions}
placeholder="Fill"
Expand All @@ -43,7 +58,7 @@
on:change={handlePropertyChange}
/>
</div>
<span class="label">to</span>
<Text>to</Text>
<div class="input-container">
<Input
value={value}
Expand All @@ -60,11 +75,6 @@
gap: 8px;
}
.label {
color: var(--figma-color-text);
font-size: 14px;
}
.select-container {
width: 150px;
}
Expand Down

0 comments on commit a1c1e40

Please sign in to comment.