From 5b3106bf36408d2ef855e559dda69fe4fa960054 Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Sat, 12 Mar 2022 21:34:19 +0600 Subject: [PATCH 1/3] Fix type validation for typescript --- types/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index df163e8..dd5d8b5 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -31,7 +31,7 @@ export interface ReactiveButtonProps { * * Default: 'idle' */ - buttonState?: buttonState; + buttonState?: buttonState | string; /** * Callback function when clicking button. @@ -45,7 +45,7 @@ export interface ReactiveButtonProps { * * Default: 'primary' */ - color?: color; + color?: color | string; /** * Button text when idle. @@ -80,7 +80,7 @@ export interface ReactiveButtonProps { * * Default: 'button' */ - type?: type; + type?: type | string; /** * Button classnames. @@ -122,7 +122,7 @@ export interface ReactiveButtonProps { * * Default: 'normal' */ - size?: size; + size?: size | string; /** * Block button. From c8aa4cc400736970a779cb4842bb0974a3053df4 Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Sat, 12 Mar 2022 21:53:37 +0600 Subject: [PATCH 2/3] =?UTF-8?q?Build=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/index.cjs.js | 2 +- dist/index.esm.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.cjs.js b/dist/index.cjs.js index afc10b5..6145c3a 100644 --- a/dist/index.cjs.js +++ b/dist/index.cjs.js @@ -1 +1 @@ -"use strict";var t=require("react");function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var o,r,a=[],i=!0,c=!1;try{for(n=n.call(t);!(i=(o=n.next()).done)&&(a.push(o.value),!e||a.length!==e);i=!0);}catch(t){c=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(c)throw r}}return a}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);nt.length)&&(e=t.length);for(var n=0,o=new Array(e);nt.length)&&(e=t.length);for(var n=0,o=new Array(e);nt.length)&&(e=t.length);for(var n=0,o=new Array(e);n Date: Sat, 12 Mar 2022 21:53:58 +0600 Subject: [PATCH 3/3] Bump 1.3.9 --- package.json | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 4619d78..683a45b 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "name": "reactive-button", - "version": "1.3.8", + "version": "1.3.9", "description": "3D animated react button component with progress bar", "private": false, - "homepage": "https://arifszn.github.io/reactive-button", - "main": "dist/index.cjs.js", - "module": "dist/index.esm.js", + "homepage": "https://github.com/arifszn/reactive-button#readme", + "main": "./dist/index.cjs.js", + "module": "./dist/index.esm.js", "typings": "./types/index.d.ts", "scripts": { "build": "rollup -c", @@ -31,9 +31,14 @@ "rollup-plugin-terser": "^7.0.2", "rollup-plugin-visualizer": "^4.1.1" }, + "author": "arifszn", + "license": "MIT", "repository": { "type": "git", - "url": "git://github.com/arifszn/reactive-button.git" + "url": "https://github.com/arifszn/reactive-button.git" + }, + "bugs": { + "url": "https://github.com/arifszn/reactive-button/issues" }, "keywords": [ "react", @@ -46,11 +51,15 @@ "button-component", "button-progress", "button-ui", + "simple-button", + "progressbar", + "animation", + "reactjs", + "reactive", + "3d-button", + "button-progress", + "progress-bar", + "component", "beautiful-button" - ], - "author": "arifszn", - "license": "MIT", - "bugs": { - "url": "https://github.com/arifszn/reactive-button/issues" - } + ] }