From 26b7faedb062ae765cd9b0e99a028644799aaa8f Mon Sep 17 00:00:00 2001 From: kabin thakuri Date: Fri, 9 Jan 2026 11:25:40 +0545 Subject: [PATCH 1/4] Revert "feat(ui/CountryPicker): add autoSortOptions prop and update descriptions in translations (#1669)" This reverts commit 9f5a17bb4eba347d2f8c10dac3c0c8f02ff51143. --- .../components/FormWidgets/CountryPicker.tsx | 59 ++--- apps/demo/src/locales/en/ui.json | 1 - apps/demo/src/locales/fr/ui.json | 1 - .../src/FormWidgets/CountryPicker/index.tsx | 207 ++++++------------ 4 files changed, 95 insertions(+), 173 deletions(-) diff --git a/apps/demo/src/Views/Ui/components/FormWidgets/CountryPicker.tsx b/apps/demo/src/Views/Ui/components/FormWidgets/CountryPicker.tsx index 92110f2a4..ef37e5c66 100644 --- a/apps/demo/src/Views/Ui/components/FormWidgets/CountryPicker.tsx +++ b/apps/demo/src/Views/Ui/components/FormWidgets/CountryPicker.tsx @@ -19,136 +19,129 @@ export const CountryPickerDemo = () => { const locale = i18n.language; const data = [ - { - default: "true", - description: t("countryPicker.propertiesDescription.autoSortOptions"), - id: 1, - prop: "autoSortOptions", - type: "boolean", - }, { default: "[]", description: t("countryPicker.propertiesDescription.exclude"), - id: 2, + id: 1, prop: "exclude", type: "string[]", }, { default: '"en"', description: t("countryPicker.propertiesDescription.fallbackLocale"), - id: 3, + id: 2, prop: "fallbackLocale", type: "string", }, { default: "[]", description: t("countryPicker.propertiesDescription.favorites"), - id: 4, + id: 3, prop: "favorites", type: "string[]", }, { default: "true", description: t("countryPicker.propertiesDescription.flags"), - id: 5, + id: 4, prop: "flags", type: "Boolean", }, { default: "-", description: t("countryPicker.propertiesDescription.flagsPath"), - id: 6, + id: 5, prop: "flagsPath", type: "(code: string) => string", }, { default: "left", description: t("countryPicker.propertiesDescription.flagsPosition"), - id: 7, + id: 6, prop: "flagsPosition", type: "left | right | right-edge", }, { default: "rectangular", description: t("countryPicker.propertiesDescription.flagsStyle"), - id: 8, + id: 7, prop: "flagsStyle", type: "circle | rectangular | square", }, { default: "-", description: t("countryPicker.propertiesDescription.groups"), - id: 9, + id: 8, prop: "groups", type: "GroupData", }, { default: "[]", description: t("countryPicker.propertiesDescription.include"), - id: 10, + id: 9, prop: "include", type: "string[]", }, { default: "true", description: t("countryPicker.propertiesDescription.includeFavorites"), - id: 11, + id: 10, prop: "includeFavorites", type: "boolean", }, { default: "-", description: t("countryPicker.propertiesDescription.label"), - id: 12, + id: 11, prop: "label", type: "string", }, { default: '"en"', description: t("countryPicker.propertiesDescription.locale"), - id: 13, + id: 12, prop: "locale", type: "string", }, { default: "{ en: defaultEnCatalogue }", description: t("countryPicker.propertiesDescription.i18n"), - id: 14, + id: 13, prop: "locales", type: "Record>", }, { default: "false", description: t("countryPicker.propertiesDescription.multiple"), - id: 15, + id: 14, prop: "multiple", type: "boolean", }, { default: "-", description: t("countryPicker.propertiesDescription.name"), - id: 16, + id: 15, prop: "name", type: "string", }, { default: "-", description: t("countryPicker.propertiesDescription.onChange"), - id: 17, + id: 16, prop: "onChange", type: "(value: string | string[]) => void", }, { default: "-", description: t("countryPicker.propertiesDescription.placeholder"), - id: 18, + id: 17, prop: "placeholder", type: "string", }, { default: "-", description: t("countryPicker.propertiesDescription.value"), - id: 19, + id: 18, prop: "value", type: "string | string[]", }, @@ -417,6 +410,7 @@ const selectedLocale = i18n.language;
(""); const selectedLocale = i18n.language; (""); const selectedLocale = i18n.language; string", }, { default: "left", description: t("countryPicker.propertiesDescription.flagsPosition"), - id: 6, + id: 7, prop: "flagsPosition", type: "left | right | right-edge", }, { default: "rectangular", description: t("countryPicker.propertiesDescription.flagsStyle"), - id: 7, + id: 8, prop: "flagsStyle", type: "circle | rectangular | square", }, { default: "-", description: t("countryPicker.propertiesDescription.groups"), - id: 8, + id: 9, prop: "groups", type: "GroupData", }, { default: "[]", description: t("countryPicker.propertiesDescription.include"), - id: 9, + id: 10, prop: "include", type: "string[]", }, { default: "true", description: t("countryPicker.propertiesDescription.includeFavorites"), - id: 10, + id: 11, prop: "includeFavorites", type: "boolean", }, { default: "-", description: t("countryPicker.propertiesDescription.label"), - id: 11, + id: 12, prop: "label", type: "string", }, { default: '"en"', description: t("countryPicker.propertiesDescription.locale"), - id: 12, + id: 13, prop: "locale", type: "string", }, { default: "{ en: defaultEnCatalogue }", description: t("countryPicker.propertiesDescription.i18n"), - id: 13, + id: 14, prop: "locales", type: "Record>", }, { default: "false", description: t("countryPicker.propertiesDescription.multiple"), - id: 14, + id: 15, prop: "multiple", type: "boolean", }, { default: "-", description: t("countryPicker.propertiesDescription.name"), - id: 15, + id: 16, prop: "name", type: "string", }, { default: "-", description: t("countryPicker.propertiesDescription.onChange"), - id: 16, + id: 17, prop: "onChange", type: "(value: string | string[]) => void", }, { default: "-", description: t("countryPicker.propertiesDescription.placeholder"), - id: 17, + id: 18, prop: "placeholder", type: "string", }, { default: "-", description: t("countryPicker.propertiesDescription.value"), - id: 18, + id: 19, prop: "value", type: "string | string[]", }, @@ -410,7 +417,6 @@ const selectedLocale = i18n.language;
(""); const selectedLocale = i18n.language; (""); const selectedLocale = i18n.language;