@fun-forge/dev-tools
Advanced tools
Comparing version 1.0.1-alpha.4 to 1.0.1-alpha.5
export interface IBaseDialogProps { | ||
title: string; | ||
description: string; | ||
positiveButton: Pick<IButtonProps, "title" | "enabled">; | ||
negativeButton: Pick<IButtonProps, "title" | "enabled">; | ||
positiveButton: Pick<IButtonProps, "title" | "disabled">; | ||
negativeButton: Pick<IButtonProps, "title" | "disabled">; | ||
closeable?: boolean; | ||
@@ -14,4 +14,4 @@ } | ||
title: string; | ||
enabled: boolean; | ||
disabled: boolean; | ||
onPress: () => void; | ||
} |
@@ -35,3 +35,3 @@ "use strict"; | ||
positiveBtn.textContent = positiveButton.title; | ||
positiveBtn.disabled = !positiveButton.enabled; | ||
positiveBtn.disabled = !positiveButton.disabled; | ||
positiveBtn.style.backgroundColor = "purple"; | ||
@@ -48,3 +48,3 @@ positiveBtn.style.color = "white"; | ||
negativeBtn.textContent = negativeButton.title; | ||
negativeBtn.disabled = !negativeButton.enabled; | ||
negativeBtn.disabled = !negativeButton.disabled; | ||
negativeBtn.style.backgroundColor = "white"; | ||
@@ -51,0 +51,0 @@ negativeBtn.style.color = "black"; |
{ | ||
"name": "@fun-forge/dev-tools", | ||
"version": "1.0.1-alpha.4", | ||
"version": "1.0.1-alpha.5", | ||
"description": "used to build up telegram mini games", | ||
@@ -19,3 +19,3 @@ "repository": "https://github.com/funforgeofficial/devTools.git", | ||
"clean": "tsc --build --clean", | ||
"publish": "tsc --build && npm publish --access public" | ||
"publish": "tsc && npm publish --access public" | ||
}, | ||
@@ -22,0 +22,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
264399