@daisypayments/petals
Advanced tools
Comparing version 0.1.49 to 0.1.50
@@ -78,4 +78,6 @@ import PropTypes from "prop-types"; | ||
}, Input.Label, Input.Item); | ||
Input.Text = styled(Input.Input).attrs({ | ||
type: "text" | ||
Input.Text = styled(Input.Input).attrs(function (props) { | ||
return { | ||
type: props.type || "text" | ||
}; | ||
}).withConfig({ | ||
@@ -85,4 +87,6 @@ displayName: "Inputs__Text", | ||
})([""]); | ||
Input.Numeric = styled(Input.Input).attrs({ | ||
type: "number" | ||
Input.Numeric = styled(Input.Input).attrs(function (props) { | ||
return { | ||
type: props.type || "number" | ||
}; | ||
}).withConfig({ | ||
@@ -89,0 +93,0 @@ displayName: "Inputs__Numeric", |
@@ -96,4 +96,6 @@ "use strict"; | ||
}, Input.Label, Input.Item); | ||
Input.Text = (0, _styledComponents["default"])(Input.Input).attrs({ | ||
type: "text" | ||
Input.Text = (0, _styledComponents["default"])(Input.Input).attrs(function (props) { | ||
return { | ||
type: props.type || "text" | ||
}; | ||
}).withConfig({ | ||
@@ -103,4 +105,6 @@ displayName: "Inputs__Text", | ||
})([""]); | ||
Input.Numeric = (0, _styledComponents["default"])(Input.Input).attrs({ | ||
type: "number" | ||
Input.Numeric = (0, _styledComponents["default"])(Input.Input).attrs(function (props) { | ||
return { | ||
type: props.type || "number" | ||
}; | ||
}).withConfig({ | ||
@@ -107,0 +111,0 @@ displayName: "Inputs__Numeric", |
{ | ||
"name": "@daisypayments/petals", | ||
"version": "0.1.49", | ||
"version": "0.1.50", | ||
"description": "Reusable front end components to be used across Daisy Payments", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
312630
6400