From 80ed7a02b3afaaf8b7bb307acb3b30ab9e6547bd Mon Sep 17 00:00:00 2001 From: majakomel Date: Thu, 12 Oct 2023 13:24:13 +0200 Subject: [PATCH] Rename TagInput component --- package.json | 4 ++-- .../{TagInput.tsx => MultiSelectCreatable.tsx} | 18 +++++++++++++----- src/index.ts | 2 +- ...es.tsx => MultiSelectCreatable.stories.tsx} | 11 ++++++----- 4 files changed, 22 insertions(+), 13 deletions(-) rename src/components/{TagInput.tsx => MultiSelectCreatable.tsx} (91%) rename stories/{TagInput.stories.tsx => MultiSelectCreatable.stories.tsx} (58%) diff --git a/package.json b/package.json index b2bf9106..3a448aa5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ooni-components", - "version": "1.0.0-alpha.20", + "version": "1.0.0-alpha.21", "main": "dist/index.cjs.js", "module": "dist/index.esm.js", "types": "dist/index.d.ts", @@ -103,7 +103,7 @@ "lint": "eslint --ignore-path .gitignore --ignore-pattern '/components/icons/*' .", "release": "yarn run build && yarn publish --new-version $npm_package_version", "release:win": "yarn run build && yarn publish --new-version %npm_package_version%", - "release:alpha": "yarn publish --tag alpha", + "release:alpha": "yarn run build && yarn publish --tag alpha --new-version $npm_package_version", "eslint": "esw src/**", "eslint-watch": "esw -w --changed src/**", "eslint-watch-quiet": "esw -w --quiet --changed src/**", diff --git a/src/components/TagInput.tsx b/src/components/MultiSelectCreatable.tsx similarity index 91% rename from src/components/TagInput.tsx rename to src/components/MultiSelectCreatable.tsx index c2925e07..83898cc4 100644 --- a/src/components/TagInput.tsx +++ b/src/components/MultiSelectCreatable.tsx @@ -13,12 +13,13 @@ interface Option { readonly value: string } -export interface SelectProps extends Omit { +export interface MultiSelectCreatableProps + extends Omit { label?: string placeholder?: string value: MultiValue