From 24f3bcca57dc0fb645e54be68defdb05118cc36b Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Tue, 26 Aug 2025 15:48:28 +0200 Subject: [PATCH] ui/select: rename to tagSelect --- .../{SelectStepper.module.css => TagSelect.module.css} | 0 .../{SelectStepper.stories.tsx => TagSelect.stories.tsx} | 8 ++++---- .../Search/{SelectStepper.tsx => TagSelect.tsx} | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) rename pkgs/clan-app/ui/src/components/Search/{SelectStepper.module.css => TagSelect.module.css} (100%) rename pkgs/clan-app/ui/src/components/Search/{SelectStepper.stories.tsx => TagSelect.stories.tsx} (78%) rename pkgs/clan-app/ui/src/components/Search/{SelectStepper.tsx => TagSelect.tsx} (93%) diff --git a/pkgs/clan-app/ui/src/components/Search/SelectStepper.module.css b/pkgs/clan-app/ui/src/components/Search/TagSelect.module.css similarity index 100% rename from pkgs/clan-app/ui/src/components/Search/SelectStepper.module.css rename to pkgs/clan-app/ui/src/components/Search/TagSelect.module.css diff --git a/pkgs/clan-app/ui/src/components/Search/SelectStepper.stories.tsx b/pkgs/clan-app/ui/src/components/Search/TagSelect.stories.tsx similarity index 78% rename from pkgs/clan-app/ui/src/components/Search/SelectStepper.stories.tsx rename to pkgs/clan-app/ui/src/components/Search/TagSelect.stories.tsx index 2ca75f6cd..ef70a71e0 100644 --- a/pkgs/clan-app/ui/src/components/Search/SelectStepper.stories.tsx +++ b/pkgs/clan-app/ui/src/components/Search/TagSelect.stories.tsx @@ -1,17 +1,17 @@ import { Meta, StoryObj } from "@kachurun/storybook-solid"; -import { SelectStepper, SelectStepperProps } from "./SelectStepper"; +import { TagSelect, TagSelectProps } from "./TagSelect"; import { Tag } from "../Tag/Tag"; import Icon from "../Icon/Icon"; const meta = { title: "Components/Custom/SelectStepper", - component: SelectStepper, -} satisfies Meta>; + component: TagSelect, +} satisfies Meta>; export default meta; -type Story = StoryObj>; +type Story = StoryObj>; const Item = (item: string) => ( { +export interface TagSelectProps { // Define any props needed for the SelectStepper component values: T[]; options: T[]; @@ -14,7 +14,7 @@ export interface SelectStepperProps { renderItem: (item: T) => JSX.Element; } -export function SelectStepper(props: SelectStepperProps) { +export function TagSelect(props: TagSelectProps) { return (