From aad6fa488ade17bf38ffde125e66e4e2fa726d82 Mon Sep 17 00:00:00 2001 From: Illia Rudniev Date: Sun, 20 Oct 2024 12:05:16 +0300 Subject: [PATCH] Illiar/kyb/UI fixes (#2784) * fix: fixed placeholder & labels on checkboxes * fix: fixed various ui bugs * fix: removed log --------- Co-authored-by: Alon Peretz <8467965+alonp99@users.noreply.github.com> --- apps/kyb-app/CHANGELOG.md | 1 + apps/kyb-app/package.json | 2 +- .../JSONForm/components/CheckboxList/CheckboxList.tsx | 2 +- .../JSONForm/components/RadioInput/RadioInput.tsx | 2 +- .../JSONForm/components/TagsInput/TagsInput.tsx | 4 ++++ .../JSONForm/helpers/createFormSchemaFromUIElements.ts | 5 ++++- packages/react-pdf-toolkit/CHANGELOG.md | 7 +++++++ packages/react-pdf-toolkit/package.json | 4 ++-- packages/ui/CHANGELOG.md | 6 ++++++ packages/ui/package.json | 2 +- .../ui/src/components/atoms/inputs/Input/Input.tsx | 2 +- .../src/components/atoms/inputs/TextArea/TextArea.tsx | 2 +- .../inputs/AutocompleteInput/AutocompleteInput.tsx | 8 +++++++- .../inputs/DatePickerInput/DatePickerInput.tsx | 8 +++++++- .../molecules/inputs/DropdownInput/DropdownInput.tsx | 10 ++++++++-- .../components/molecules/inputs/DropdownInput/types.ts | 1 + .../molecules/inputs/MultiSelect/MultiSelect.tsx | 6 ++++-- .../organisms/DynamicForm/DynamicForm.stories.tsx | 3 +++ .../AutocompleteTextInputAdapter.tsx | 1 + .../BooleanFieldAdapter/BooleanFieldAdapter.tsx | 4 ++-- .../DateInputAdapter/DateInputAdapter.tsx | 1 + .../MultiselectInputAdapter.tsx | 2 ++ .../RadioInputAdapter/RadioInputAdapter.tsx | 8 ++++++-- .../components/SelectField/SelectField.tsx | 1 + .../components/TextField/TextField.tsx | 10 ++++++++-- .../layouts/ArrayFieldsLayout/ArrayFieldsLayout.tsx | 2 +- pnpm-lock.yaml | 4 ++-- services/workflows-service/prisma/data-migrations | 2 +- 28 files changed, 85 insertions(+), 25 deletions(-) diff --git a/apps/kyb-app/CHANGELOG.md b/apps/kyb-app/CHANGELOG.md index 8ae5dc540c..dae400b58b 100644 --- a/apps/kyb-app/CHANGELOG.md +++ b/apps/kyb-app/CHANGELOG.md @@ -21,6 +21,7 @@ ### Patch Changes - Updated dependencies + - @ballerine/ui@0.5.39 - @ballerine/common@0.9.41 - @ballerine/workflow-browser-sdk@0.6.53 diff --git a/apps/kyb-app/package.json b/apps/kyb-app/package.json index 6e4598c8ae..8c1576046c 100644 --- a/apps/kyb-app/package.json +++ b/apps/kyb-app/package.json @@ -16,8 +16,8 @@ }, "dependencies": { "@ballerine/blocks": "0.2.23", + "@ballerine/ui": "0.5.39", "@ballerine/common": "^0.9.43", - "@ballerine/ui": "0.5.38", "@ballerine/workflow-browser-sdk": "0.6.55", "@lukemorales/query-key-factory": "^1.0.3", "@radix-ui/react-icons": "^1.3.0", diff --git a/apps/kyb-app/src/components/organisms/UIRenderer/elements/JSONForm/components/CheckboxList/CheckboxList.tsx b/apps/kyb-app/src/components/organisms/UIRenderer/elements/JSONForm/components/CheckboxList/CheckboxList.tsx index 1d83dcf4e3..8a79d370d2 100644 --- a/apps/kyb-app/src/components/organisms/UIRenderer/elements/JSONForm/components/CheckboxList/CheckboxList.tsx +++ b/apps/kyb-app/src/components/organisms/UIRenderer/elements/JSONForm/components/CheckboxList/CheckboxList.tsx @@ -22,7 +22,7 @@ export const CheckboxList = (props: WithTestId) => { {options.map(option => (