@aleodoni-common/tailwind-components
Advanced tools
Comparing version 1.0.74 to 1.0.75
import React from 'react'; | ||
import { ICpfInput } from '../../helpers/input'; | ||
export declare const CpfInput: React.FC<ICpfInput>; | ||
import { IMaskInput } from '../../helpers/input'; | ||
export declare const CpfInput: React.FC<IMaskInput>; |
@@ -11,3 +11,3 @@ import * as SolidIcons from '@heroicons/react/solid'; | ||
} | ||
export interface ICpfInput extends NumberFormatProps { | ||
export interface IMaskInput extends NumberFormatProps { | ||
aleodoni_ringcolor?: string; | ||
@@ -14,0 +14,0 @@ aleodoni_inputicon?: IconName; |
@@ -9,2 +9,3 @@ import './tailwind.css'; | ||
export * from './components/mask/cpfinput'; | ||
export * from './components/mask/phoneinput'; | ||
export * from './util/classnames'; |
@@ -200,2 +200,23 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var PhoneInput = function PhoneInput(props) { | ||
var aleodoni_inputicon = props.aleodoni_inputicon, | ||
_props$aleodoni_ringc = props.aleodoni_ringcolor, | ||
aleodoni_ringcolor = _props$aleodoni_ringc === void 0 ? inputDefaults.ringcolor : _props$aleodoni_ringc, | ||
_props$aleodoni_outli = props.aleodoni_outlineicon, | ||
aleodoni_outlineicon = _props$aleodoni_outli === void 0 ? inputDefaults.outlineicon : _props$aleodoni_outli; | ||
var pH = getPaddingHorizontal(aleodoni_inputicon); | ||
var TheIcon = getIcon(aleodoni_inputicon, aleodoni_outlineicon); | ||
var inputClassName = getInputClassName(pH, aleodoni_ringcolor); | ||
var divClassName = getDivInputClassName(); | ||
var iconClassName = getIconClassName(); | ||
return React__default.createElement("div", { | ||
className: divClassName | ||
}, TheIcon && React__default.createElement(TheIcon, { | ||
className: iconClassName | ||
}), React__default.createElement(NumberFormat, Object.assign({ | ||
format: "(##) #####-####", | ||
className: inputClassName | ||
}, props))); | ||
}; | ||
var classNames = function classNames() { | ||
@@ -215,4 +236,5 @@ for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) { | ||
exports.LoginForm = LoginForm; | ||
exports.PhoneInput = PhoneInput; | ||
exports.Screen = Screen; | ||
exports.classNames = classNames; | ||
//# sourceMappingURL=index.js.map |
@@ -197,2 +197,23 @@ import React, { useState } from 'react'; | ||
var PhoneInput = function PhoneInput(props) { | ||
var aleodoni_inputicon = props.aleodoni_inputicon, | ||
_props$aleodoni_ringc = props.aleodoni_ringcolor, | ||
aleodoni_ringcolor = _props$aleodoni_ringc === void 0 ? inputDefaults.ringcolor : _props$aleodoni_ringc, | ||
_props$aleodoni_outli = props.aleodoni_outlineicon, | ||
aleodoni_outlineicon = _props$aleodoni_outli === void 0 ? inputDefaults.outlineicon : _props$aleodoni_outli; | ||
var pH = getPaddingHorizontal(aleodoni_inputicon); | ||
var TheIcon = getIcon(aleodoni_inputicon, aleodoni_outlineicon); | ||
var inputClassName = getInputClassName(pH, aleodoni_ringcolor); | ||
var divClassName = getDivInputClassName(); | ||
var iconClassName = getIconClassName(); | ||
return React.createElement("div", { | ||
className: divClassName | ||
}, TheIcon && React.createElement(TheIcon, { | ||
className: iconClassName | ||
}), React.createElement(NumberFormat, Object.assign({ | ||
format: "(##) #####-####", | ||
className: inputClassName | ||
}, props))); | ||
}; | ||
var classNames = function classNames() { | ||
@@ -206,3 +227,3 @@ for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) { | ||
export { Button, Container, CpfInput, FormRow, Input, LoginForm, Screen, classNames }; | ||
export { Button, Container, CpfInput, FormRow, Input, LoginForm, PhoneInput, Screen, classNames }; | ||
//# sourceMappingURL=index.modern.js.map |
{ | ||
"name": "@aleodoni-common/tailwind-components", | ||
"version": "1.0.74", | ||
"version": "1.0.75", | ||
"main": "./build/index.js", | ||
@@ -5,0 +5,0 @@ "module": "build/index.modern.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76142
18
1224