react-simple-phone-input 1.0.2-beta → 1.0.4-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/README.md +1 -1
- package/dist/cjs/index.js +32 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/button/Button.d.ts +1 -0
- package/dist/esm/index.js +32 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/button/Button.d.ts +1 -0
- package/package.json +3 -1
package/README.md
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -2802,8 +2802,38 @@ function requireReact_development () {
|
|
|
2802
2802
|
|
|
2803
2803
|
var React = /*@__PURE__*/getDefaultExportFromCjs(react.exports);
|
|
2804
2804
|
|
|
2805
|
-
|
|
2806
|
-
|
|
2805
|
+
function styleInject(css, ref) {
|
|
2806
|
+
if ( ref === void 0 ) ref = {};
|
|
2807
|
+
var insertAt = ref.insertAt;
|
|
2808
|
+
|
|
2809
|
+
if (!css || typeof document === 'undefined') { return; }
|
|
2810
|
+
|
|
2811
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
2812
|
+
var style = document.createElement('style');
|
|
2813
|
+
style.type = 'text/css';
|
|
2814
|
+
|
|
2815
|
+
if (insertAt === 'top') {
|
|
2816
|
+
if (head.firstChild) {
|
|
2817
|
+
head.insertBefore(style, head.firstChild);
|
|
2818
|
+
} else {
|
|
2819
|
+
head.appendChild(style);
|
|
2820
|
+
}
|
|
2821
|
+
} else {
|
|
2822
|
+
head.appendChild(style);
|
|
2823
|
+
}
|
|
2824
|
+
|
|
2825
|
+
if (style.styleSheet) {
|
|
2826
|
+
style.styleSheet.cssText = css;
|
|
2827
|
+
} else {
|
|
2828
|
+
style.appendChild(document.createTextNode(css));
|
|
2829
|
+
}
|
|
2830
|
+
}
|
|
2831
|
+
|
|
2832
|
+
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}";
|
|
2833
|
+
styleInject(css_248z);
|
|
2834
|
+
|
|
2835
|
+
const Button = ({ children, style }) => {
|
|
2836
|
+
return (React.createElement("button", { className: "siButton", style: style }, children));
|
|
2807
2837
|
};
|
|
2808
2838
|
|
|
2809
2839
|
exports.Button = Button;
|