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

@konturio/ui-kit

Package Overview
Dependencies
Maintainers
2
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@konturio/ui-kit - npm Package Compare versions

Comparing version 3.0.0-alpha.43 to 3.0.0-alpha.44

tslib/Divider/index.d.ts

4

package.json
{
"name": "@konturio/ui-kit",
"version": "3.0.0-alpha.43",
"version": "3.0.0-alpha.44",
"repository": {

@@ -28,3 +28,3 @@ "type": "git",

},
"gitHead": "3d4aa42f63c1a90c9974675ca43093ae6bde12fa"
"gitHead": "0bfd4e69a80a57222fc8545b158c44983c9f7522"
}

@@ -5,2 +5,3 @@ export { Input } from './Input';

export { Checkbox } from './Checkbox';
export { Divider } from './Divider';
export { LineItem } from './LineItem';

@@ -7,0 +8,0 @@ export { LanguageSelect } from './LanguageSelect';

@@ -5,2 +5,3 @@ export { Input } from './Input';

export { Checkbox } from './Checkbox';
export { Divider } from './Divider';
export { LineItem } from './LineItem';

@@ -7,0 +8,0 @@ export { LanguageSelect } from './LanguageSelect';

import { ReactChild } from 'react';
interface Panel {
interface Panel extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
className?: string;

@@ -12,3 +12,3 @@ header?: string | React.ReactChild | React.ReactChild[];

}
export declare function Panel({ className, children, header, onClose, customCloseBtn, classes, }: React.PropsWithChildren<Panel>): JSX.Element;
export declare function Panel({ className, children, header, onClose, customCloseBtn, classes, ref, ...rest }: React.PropsWithChildren<Panel>): JSX.Element;
interface PanelIconProps {

@@ -15,0 +15,0 @@ icon: ReactChild;

@@ -0,1 +1,12 @@

var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";

@@ -6,4 +17,5 @@ import { Card } from '../Card';

import { Close24 } from '@konturio/default-icons';
export function Panel({ className, children, header, onClose, customCloseBtn, classes, }) {
return (_jsxs(Card, Object.assign({ className: cn(s.card, className) }, { children: [header && (_jsxs("div", Object.assign({ className: cn(s.header, classes === null || classes === void 0 ? void 0 : classes.header) }, { children: [_jsx("div", { children: header }), onClose && !customCloseBtn ? (_jsx("button", Object.assign({ className: cn(s.close, classes === null || classes === void 0 ? void 0 : classes.closeBtn), onClick: onClose }, { children: _jsx(Close24, {}) }))) : null] }))), onClose && customCloseBtn ? (_jsx("button", Object.assign({ className: classes === null || classes === void 0 ? void 0 : classes.closeBtn, onClick: onClose }, { children: customCloseBtn }))) : null, children] })));
export function Panel(_a) {
var { className, children, header, onClose, customCloseBtn, classes, ref } = _a, rest = __rest(_a, ["className", "children", "header", "onClose", "customCloseBtn", "classes", "ref"]);
return (_jsxs(Card, Object.assign({ className: cn(s.card, className) }, rest, { children: [header && (_jsxs("div", Object.assign({ className: cn(s.header, classes === null || classes === void 0 ? void 0 : classes.header) }, { children: [_jsx("div", { children: header }), onClose && !customCloseBtn ? (_jsx("button", Object.assign({ className: cn(s.close, classes === null || classes === void 0 ? void 0 : classes.closeBtn), onClick: onClose }, { children: _jsx(Close24, {}) }))) : null] }))), onClose && customCloseBtn ? (_jsx("button", Object.assign({ className: classes === null || classes === void 0 ? void 0 : classes.closeBtn, onClick: onClose }, { children: customCloseBtn }))) : null, children] })));
}

@@ -10,0 +22,0 @@ export function PanelIcon({ icon, clickHandler, className }) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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