@aleodoni-common/tailwind-components
Advanced tools
Comparing version 1.0.38 to 1.0.39
import React, { InputHTMLAttributes } from 'react'; | ||
import * as SolidIcons from '@heroicons/react/solid'; | ||
import * as OutlineIcons from '@heroicons/react/outline'; | ||
import { BooleanType } from '../types/boolean'; | ||
declare type IconName = keyof typeof SolidIcons | keyof typeof OutlineIcons; | ||
@@ -8,5 +9,5 @@ interface IInput extends InputHTMLAttributes<HTMLInputElement> { | ||
aleodoni_inputicon?: IconName; | ||
aleodoni_outlineicon?: boolean; | ||
aleodoni_outlineicon?: BooleanType; | ||
} | ||
export declare const Input: React.FC<IInput>; | ||
export {}; |
@@ -32,3 +32,3 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
_props$aleodoni_outli = props.aleodoni_outlineicon, | ||
aleodoni_outlineicon = _props$aleodoni_outli === void 0 ? false : _props$aleodoni_outli, | ||
aleodoni_outlineicon = _props$aleodoni_outli === void 0 ? 'false' : _props$aleodoni_outli, | ||
_props$type = props.type, | ||
@@ -38,5 +38,6 @@ type = _props$type === void 0 ? 'text' : _props$type; | ||
var TheIcon; | ||
var isOutline = !(aleodoni_outlineicon === 'false'); | ||
if (aleodoni_inputicon) { | ||
TheIcon = aleodoni_outlineicon ? OutlineIcons[aleodoni_inputicon] : SolidIcons[aleodoni_inputicon]; | ||
TheIcon = isOutline ? OutlineIcons[aleodoni_inputicon] : SolidIcons[aleodoni_inputicon]; | ||
} | ||
@@ -43,0 +44,0 @@ |
@@ -30,3 +30,3 @@ import React from 'react'; | ||
_props$aleodoni_outli = props.aleodoni_outlineicon, | ||
aleodoni_outlineicon = _props$aleodoni_outli === void 0 ? false : _props$aleodoni_outli, | ||
aleodoni_outlineicon = _props$aleodoni_outli === void 0 ? 'false' : _props$aleodoni_outli, | ||
_props$type = props.type, | ||
@@ -36,5 +36,6 @@ type = _props$type === void 0 ? 'text' : _props$type; | ||
var TheIcon; | ||
var isOutline = !(aleodoni_outlineicon === 'false'); | ||
if (aleodoni_inputicon) { | ||
TheIcon = aleodoni_outlineicon ? OutlineIcons[aleodoni_inputicon] : SolidIcons[aleodoni_inputicon]; | ||
TheIcon = isOutline ? OutlineIcons[aleodoni_inputicon] : SolidIcons[aleodoni_inputicon]; | ||
} | ||
@@ -41,0 +42,0 @@ |
{ | ||
"name": "@aleodoni-common/tailwind-components", | ||
"version": "1.0.38", | ||
"version": "1.0.39", | ||
"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
39859
13
869