react-simple-phone-input 1.0.3-beta → 1.0.5-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +3 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/button/Button.d.ts +1 -1
- package/dist/esm/index.js +3 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/button/Button.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import "./Button.css";
|
|
3
3
|
interface ButtonProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|
|
4
|
-
|
|
4
|
+
textStyle?: React.CSSProperties;
|
|
5
5
|
}
|
|
6
6
|
declare const Button: React.FunctionComponent<ButtonProps>;
|
|
7
7
|
export default Button;
|
package/dist/esm/index.js
CHANGED
|
@@ -2830,8 +2830,9 @@ function styleInject(css, ref) {
|
|
|
2830
2830
|
var css_248z = ".siButton {\r\n font-size: 14px;\r\n background: red;\r\n border-radius: 4px;\r\n padding: 8px 15px;\r\n color: white;\r\n}";
|
|
2831
2831
|
styleInject(css_248z);
|
|
2832
2832
|
|
|
2833
|
-
const Button = ({ children }) => {
|
|
2834
|
-
return (React.createElement("button", { className: "siButton" },
|
|
2833
|
+
const Button = ({ children, style, textStyle }) => {
|
|
2834
|
+
return (React.createElement("button", { className: "siButton", style: style },
|
|
2835
|
+
React.createElement("p", { style: textStyle }, children)));
|
|
2835
2836
|
};
|
|
2836
2837
|
|
|
2837
2838
|
export { Button };
|