From 434c56506f866c791553a79d2d3bbf325f8f11a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Chalifour?= Date: Mon, 22 Feb 2021 12:59:35 +0100 Subject: [PATCH] fix(js): rename "Reset" button to "Clear" BREAKING CHANGE --- examples/react-renderer/src/Autocomplete.tsx | 6 +++--- .../src/{ResetIcon.tsx => ClearIcon.tsx} | 2 +- .../src/__tests__/autocomplete.test.ts | 2 +- .../src/components/{ResetIcon.ts => ClearIcon.ts} | 2 +- packages/autocomplete-js/src/components/index.ts | 2 +- .../autocomplete-js/src/createAutocompleteDom.ts | 12 ++++++------ packages/autocomplete-js/src/getDefaultOptions.ts | 4 ++-- packages/autocomplete-js/src/render.tsx | 2 +- .../src/types/AutocompleteClassNames.ts | 2 +- .../autocomplete-js/src/types/AutocompleteDom.ts | 2 +- packages/autocomplete-theme-classic/src/theme.scss | 2 +- packages/website/docs/autocomplete-js.md | 2 +- packages/website/docs/creating-a-renderer.md | 2 +- 13 files changed, 21 insertions(+), 21 deletions(-) rename examples/react-renderer/src/{ResetIcon.tsx => ClearIcon.tsx} (87%) rename packages/autocomplete-js/src/components/{ResetIcon.ts => ClearIcon.ts} (93%) diff --git a/examples/react-renderer/src/Autocomplete.tsx b/examples/react-renderer/src/Autocomplete.tsx index 850f53655..e7baa4a26 100644 --- a/examples/react-renderer/src/Autocomplete.tsx +++ b/examples/react-renderer/src/Autocomplete.tsx @@ -8,7 +8,7 @@ import { Hit } from '@algolia/client-search'; import algoliasearch from 'algoliasearch/lite'; import React from 'react'; -import { ResetIcon } from './ResetIcon'; +import { ClearIcon } from './ClearIcon'; import { SearchIcon } from './SearchIcon'; const searchClient = algoliasearch( @@ -126,8 +126,8 @@ export function Autocomplete( />
-
diff --git a/examples/react-renderer/src/ResetIcon.tsx b/examples/react-renderer/src/ClearIcon.tsx similarity index 87% rename from examples/react-renderer/src/ResetIcon.tsx rename to examples/react-renderer/src/ClearIcon.tsx index 9f129f207..854f6d213 100644 --- a/examples/react-renderer/src/ResetIcon.tsx +++ b/examples/react-renderer/src/ClearIcon.tsx @@ -1,6 +1,6 @@ import React from 'react'; -export function ResetIcon(props: React.SVGProps) { +export function ClearIcon(props: React.SVGProps) { return ( { class="aa-InputWrapperSuffix" >
-