Refactor/reacrhitecture to fsd+ #49
@@ -4,12 +4,12 @@
|
||||
-->
|
||||
<script lang="ts">
|
||||
import { cn } from '$shared/lib';
|
||||
import type { Snippet } from 'svelte';
|
||||
import type { HTMLAttributes } from 'svelte/elements';
|
||||
import {
|
||||
type LabelSize,
|
||||
labelSizeConfig,
|
||||
} from '$shared/ui/Label/config';
|
||||
import type { Snippet } from 'svelte';
|
||||
import type { HTMLAttributes } from 'svelte/elements';
|
||||
} from '../labelConfig';
|
||||
|
||||
type BadgeVariant = 'default' | 'accent' | 'success' | 'warning' | 'info';
|
||||
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
export { default as Input } from './Input.svelte';
|
||||
export { inputIconSize } from './types';
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
type LabelVariant,
|
||||
labelSizeConfig,
|
||||
labelVariantConfig,
|
||||
} from './config';
|
||||
} from '../labelConfig';
|
||||
|
||||
interface Props {
|
||||
/**
|
||||
|
||||
@@ -7,8 +7,10 @@
|
||||
They cannot pass leftIcon — it's owned by this wrapper.
|
||||
-->
|
||||
<script lang="ts">
|
||||
import { Input } from '$shared/ui/Input';
|
||||
import { inputIconSize } from '$shared/ui/Input/types';
|
||||
import {
|
||||
Input,
|
||||
inputIconSize,
|
||||
} from '$shared/ui/Input';
|
||||
import SearchIcon from '@lucide/svelte/icons/search';
|
||||
import type { ComponentProps } from 'svelte';
|
||||
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
-->
|
||||
<script lang="ts">
|
||||
import { cn } from '$shared/lib';
|
||||
import type { Snippet } from 'svelte';
|
||||
import {
|
||||
type LabelSize,
|
||||
type LabelVariant,
|
||||
labelSizeConfig,
|
||||
labelVariantConfig,
|
||||
} from '$shared/ui/Label/config';
|
||||
import type { Snippet } from 'svelte';
|
||||
} from '../labelConfig';
|
||||
|
||||
interface Props {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user