From ff37ada3bedcc9bb1d9235436c6a3e301aaacaa8 Mon Sep 17 00:00:00 2001 From: Miki Date: Mon, 19 Aug 2024 12:10:16 -0700 Subject: [PATCH] Use smaller and compressed varients of buttons and form components (#398) Signed-off-by: Miki Signed-off-by: Shenoy Pratik Co-authored-by: Zhongnan Su Co-authored-by: Shenoy Pratik --- package.json | 4 +- .../components/context_menu/context_menu.js | 2 +- .../__snapshots__/main.test.tsx.snap | 32 +- .../report_definitions_table.test.tsx.snap | 2 +- .../main/loading_modal/loading_modal.tsx | 1 - public/components/main/main.tsx | 14 +- .../report_definition_details.test.tsx.snap | 18 +- .../report_definition_details.tsx | 20 +- .../main/report_definitions_table.tsx | 6 +- public/components/main/reports_table.tsx | 1 - .../create/create_report_definition.tsx | 12 +- .../report_definitions/delivery/delivery.tsx | 36 +- .../edit/edit_report_definition.tsx | 12 +- .../report_settings.test.tsx.snap | 592 +++++++++--------- .../__tests__/report_settings.test.tsx | 10 +- .../report_settings/report_settings.tsx | 76 +-- .../report_settings/time_range.tsx | 10 +- .../report_trigger.test.tsx.snap | 36 +- .../report_trigger/report_trigger.tsx | 76 +-- .../report_trigger/timezone.tsx | 8 +- yarn.lock | 199 +++--- 21 files changed, 575 insertions(+), 592 deletions(-) diff --git a/package.json b/package.json index 7968106d..a92e9297 100644 --- a/package.json +++ b/package.json @@ -20,14 +20,14 @@ "dependencies": { "babel-polyfill": "^6.26.0", "cron-validator": "^1.1.1", - "dompurify": "^2.4.1", + "dompurify": "^3.0.11", "elastic-builder": "^2.7.1", "enzyme-adapter-react-16": "^1.15.5", "exceljs": "^4.4.0", "html2canvas": "1.4.1", "jest-fetch-mock": "^3.0.3", "jquery": "^3.5.0", - "jsdom": "18.0.0", + "jsdom": "^21.1.2", "json-2-csv": "^3.20.0", "jspdf": "^2.5.1", "react-addons-test-utils": "^15.6.2", diff --git a/public/components/context_menu/context_menu.js b/public/components/context_menu/context_menu.js index ff178260..af587ed6 100644 --- a/public/components/context_menu/context_menu.js +++ b/public/components/context_menu/context_menu.js @@ -211,7 +211,7 @@ $(function () { $('#reportGenerationProgressModal').remove(); }); - // close modal with the close EuiButton + // close modal with the close EuiSmallButton $(document).on('click', '#closeReportGenerationModalButton', function () { $('#reportGenerationProgressModal').remove(); }); diff --git a/public/components/main/__tests__/__snapshots__/main.test.tsx.snap b/public/components/main/__tests__/__snapshots__/main.test.tsx.snap index 3916766d..fb5284a8 100644 --- a/public/components/main/__tests__/__snapshots__/main.test.tsx.snap +++ b/public/components/main/__tests__/__snapshots__/main.test.tsx.snap @@ -29,7 +29,7 @@ exports[`
panel render component 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" >