@aleodoni-common/tailwind-components
Advanced tools
Comparing version 1.0.223 to 1.0.224
@@ -7,2 +7,3 @@ import React from 'react'; | ||
userNavigation: UserNavigationType[]; | ||
user?: UserType; | ||
} | ||
@@ -18,3 +19,8 @@ export declare type NavigationType = { | ||
}; | ||
export declare type UserType = { | ||
name: string; | ||
email: string; | ||
avatar?: string; | ||
}; | ||
export declare const Nav: React.FC<IProps>; | ||
export {}; |
@@ -332,8 +332,2 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var user = { | ||
name: 'Tom Cook', | ||
email: 'tom@example.com', | ||
imageUrl: 'https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80' | ||
}; | ||
function classNames() { | ||
@@ -351,3 +345,4 @@ for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) { | ||
navigation = _ref.navigation, | ||
userNavigation = _ref.userNavigation; | ||
userNavigation = _ref.userNavigation, | ||
user = _ref.user; | ||
return React__default.createElement("div", { | ||
@@ -385,3 +380,3 @@ className: "flex flex-col w-full" | ||
className: "ml-4 flex items-center md:ml-6" | ||
}, React__default.createElement(react.Menu, { | ||
}, user && React__default.createElement(react.Menu, { | ||
as: "div", | ||
@@ -395,3 +390,3 @@ className: "ml-3 relative" | ||
className: "h-8 w-8 rounded-full", | ||
src: user.imageUrl, | ||
src: user.avatar ? user.avatar : '', | ||
alt: "" | ||
@@ -446,3 +441,3 @@ }))), React__default.createElement(react.Transition, { | ||
}, item.name); | ||
})), React__default.createElement("div", { | ||
})), user && React__default.createElement("div", { | ||
className: "pt-4 pb-3 border-t border-aleodoni-secondary" | ||
@@ -455,3 +450,3 @@ }, React__default.createElement("div", { | ||
className: "h-10 w-10 rounded-full", | ||
src: user.imageUrl, | ||
src: user.avatar ? user.avatar : '', | ||
alt: "" | ||
@@ -458,0 +453,0 @@ })), React__default.createElement("div", { |
@@ -330,8 +330,2 @@ import React, { useState, Fragment } from 'react'; | ||
var user = { | ||
name: 'Tom Cook', | ||
email: 'tom@example.com', | ||
imageUrl: 'https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80' | ||
}; | ||
function classNames() { | ||
@@ -349,3 +343,4 @@ for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) { | ||
navigation = _ref.navigation, | ||
userNavigation = _ref.userNavigation; | ||
userNavigation = _ref.userNavigation, | ||
user = _ref.user; | ||
return React.createElement("div", { | ||
@@ -383,3 +378,3 @@ className: "flex flex-col w-full" | ||
className: "ml-4 flex items-center md:ml-6" | ||
}, React.createElement(Menu, { | ||
}, user && React.createElement(Menu, { | ||
as: "div", | ||
@@ -393,3 +388,3 @@ className: "ml-3 relative" | ||
className: "h-8 w-8 rounded-full", | ||
src: user.imageUrl, | ||
src: user.avatar ? user.avatar : '', | ||
alt: "" | ||
@@ -444,3 +439,3 @@ }))), React.createElement(Transition, { | ||
}, item.name); | ||
})), React.createElement("div", { | ||
})), user && React.createElement("div", { | ||
className: "pt-4 pb-3 border-t border-aleodoni-secondary" | ||
@@ -453,3 +448,3 @@ }, React.createElement("div", { | ||
className: "h-10 w-10 rounded-full", | ||
src: user.imageUrl, | ||
src: user.avatar ? user.avatar : '', | ||
alt: "" | ||
@@ -456,0 +451,0 @@ })), React.createElement("div", { |
{ | ||
"name": "@aleodoni-common/tailwind-components", | ||
"version": "1.0.223", | ||
"version": "1.0.224", | ||
"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
178166
2334