From 02071f51994d87acc01c86fe88fe9b70bc105333 Mon Sep 17 00:00:00 2001 From: shreyansu raj Date: Mon, 17 Jul 2023 13:31:56 +0530 Subject: [PATCH] TP-00000 | Added mock (#123) --- app/src/main/res/raw/mock.json | 82 ++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/app/src/main/res/raw/mock.json b/app/src/main/res/raw/mock.json index a075e21..fe3b607 100644 --- a/app/src/main/res/raw/mock.json +++ b/app/src/main/res/raw/mock.json @@ -9804,5 +9804,87 @@ "text": "Text 2" } } + }, + "buttonWithDebounceMock": { + "parentComposeView": [ + { + "property": { + "viewType": "Button", + "layoutId": "button", + "width": "MATCH_PARENT", + "height": "100", + "colors": { + "backgroundColor": "#483654" + }, + "contentPadding": { + "start": 16, + "end": 16, + "top": 16, + "bottom": 16 + }, + "debounceTime": 2000 + }, + "childrenViews": [ + { + "property": { + "viewType": "Text", + "layoutId": "button_text", + "width": "MATCH_PARENT", + "height": "MATCH_PARENT", + "text": "Button", + "textColor": "#FFFFFF", + "fontSize": 14, + "fontWeight": "TT_REGULAR", + "gravity": "CENTER", + "backgroundColor": "#937492" + } + } + ] + } + ], + "data": { + "button_text": { + "viewType": "Text", + "text": "Button" + } + } + }, + "viewWithDebounceMock": { + "data": { + "spacer_1": { + "viewType": "Spacer", + "onClick": { + "actions": [ + { + "type": "AnalyticsAction", + "eventName": "test_event_name" + } + ] + } + } + }, + "parentComposeView": [ + { + "property": { + "viewType": "Spacer", + "layoutId": "spacer_1", + "height": "200", + "width": "200", + "shape": { + "shapeType": "RoundedCornerShape", + "radius": { + "topStart": 16, + "bottomEnd": 16 + } + }, + "backgroundColor": "#692738", + "padding": { + "start": 16, + "top": 16 + }, + "debounceTime": 2000 + } + } + ] } } \ No newline at end of file