Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aboutbits/react-ui

Package Overview
Dependencies
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aboutbits/react-ui - npm Package Compare versions

Comparing version 0.0.22 to 0.0.23

4

components/section/SectionItem/SectionDescriptionItem.d.ts

@@ -14,4 +14,8 @@ import { ReactNode } from 'react';

title: ReactNode;
/**
* Defines if the component appears or not depending on if the content is empty (null) or not.
* */
hideIfEmpty?: boolean;
};
export declare const SectionDescriptionItem: React.FC<SectionDescriptionItemProps>;
export {};

4

components/section/SectionItem/SectionDescriptionItem.js

@@ -9,6 +9,6 @@ "use strict";

var SectionDescriptionItem = function (_a) {
var title = _a.title, content = _a.content, className = _a.className;
var title = _a.title, content = _a.content, className = _a.className, _b = _a.hideIfEmpty, hideIfEmpty = _b === void 0 ? false : _b;
var section = framework_1.useTheme().section;
return (jsx_runtime_1.jsxs("dl", tslib_1.__assign({ className: classnames_1.default(section.descriptionItem.base, className) }, { children: [jsx_runtime_1.jsx("dt", tslib_1.__assign({ className: section.descriptionItem.title.base }, { children: title }), void 0), jsx_runtime_1.jsx("dd", { children: content }, void 0)] }), void 0));
return (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: ((hideIfEmpty && content) || !hideIfEmpty) && (jsx_runtime_1.jsxs("dl", tslib_1.__assign({ className: classnames_1.default(section.descriptionItem.base, className) }, { children: [jsx_runtime_1.jsx("dt", tslib_1.__assign({ className: section.descriptionItem.title.base }, { children: title }), void 0), jsx_runtime_1.jsx("dd", { children: content }, void 0)] }), void 0)) }, void 0));
};
exports.SectionDescriptionItem = SectionDescriptionItem;
{
"name": "@aboutbits/react-ui",
"version": "0.0.22",
"version": "0.0.23",
"main": "index.js",

@@ -5,0 +5,0 @@ "types": "index.d.ts",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc