@newageerp/ui.cards.base.card
Advanced tools
Comparing version 0.0.60 to 0.0.61
@@ -9,3 +9,10 @@ /// <reference types="react" /> | ||
compact?: boolean; | ||
size?: CardSize; | ||
}; | ||
export declare enum CardSize { | ||
sm = "sm", | ||
base = "base", | ||
lg = "lg", | ||
xl = "xl" | ||
} | ||
export declare function Card(props: CardProps): JSX.Element; |
@@ -6,11 +6,18 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Card = void 0; | ||
const ui_styles_tailwind_1 = require("@newageerp/ui.styles.tailwind"); | ||
exports.Card = exports.CardSize = void 0; | ||
const classnames_1 = __importDefault(require("classnames")); | ||
const react_1 = __importDefault(require("react")); | ||
require("./card.css"); | ||
var CardSize; | ||
(function (CardSize) { | ||
CardSize["sm"] = "sm"; | ||
CardSize["base"] = "base"; | ||
CardSize["lg"] = "lg"; | ||
CardSize["xl"] = "xl"; | ||
})(CardSize = exports.CardSize || (exports.CardSize = {})); | ||
function Card(props) { | ||
return (react_1.default.createElement("div", { style: props.style, className: (0, classnames_1.default)({ 'tw3-space-y-4': !props.compact }, { 'tw3-space-y-2': props.compact }, { 'tw3-p-2': !props.compact }, 'card-shadow', ui_styles_tailwind_1.TwRoundedSizes.md, props.className), onClick: props.onClick }, props.children)); | ||
let size = props.size ? props.size : (props.compact ? CardSize.sm : CardSize.base); | ||
return (react_1.default.createElement("div", { style: props.style, className: (0, classnames_1.default)({ 'tw3-space-y-4': size === CardSize.base || size === CardSize.lg || size === CardSize.xl }, { 'tw3-space-y-2': size === CardSize.sm }, { 'tw3-p-2': size === CardSize.base }, { 'tw3-p-4': size === CardSize.lg }, { 'tw3-p-6': size === CardSize.xl }, 'card-shadow', props.className), onClick: props.onClick }, props.children)); | ||
} | ||
exports.Card = Card; | ||
//# sourceMappingURL=card.js.map |
@@ -1,2 +0,2 @@ | ||
export { Card } from './card'; | ||
export { Card, CardSize } from './card'; | ||
export type { CardProps } from './card'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Card = void 0; | ||
exports.CardSize = exports.Card = void 0; | ||
var card_1 = require("./card"); | ||
Object.defineProperty(exports, "Card", { enumerable: true, get: function () { return card_1.Card; } }); | ||
Object.defineProperty(exports, "CardSize", { enumerable: true, get: function () { return card_1.CardSize; } }); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@newageerp/ui.cards.base.card", | ||
"version": "0.0.60", | ||
"version": "0.0.61", | ||
"homepage": "https://bit.dev/newageerp/ui/cards/base/card", | ||
@@ -9,3 +9,3 @@ "main": "dist/index.js", | ||
"name": "ui/cards/base/card", | ||
"version": "0.0.60" | ||
"version": "0.0.61" | ||
}, | ||
@@ -15,3 +15,3 @@ "dependencies": { | ||
"core-js": "^3.0.0", | ||
"@newageerp/ui.styles.tailwind": "0.0.60" | ||
"@newageerp/ui.styles.tailwind": "0.0.61" | ||
}, | ||
@@ -18,0 +18,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
26935
66
+ Added@newageerp/ui.styles.tailwind@0.0.61(transitive)
- Removed@newageerp/ui.styles.tailwind@0.0.60(transitive)