New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@launchpad-ui/table

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@launchpad-ui/table - npm Package Compare versions

Comparing version 0.4.14 to 0.4.15

66

dist/index.es.js
import './style.css';
import { jsx } from "react/jsx-runtime";
import { cx } from "classix";
import { jsx } from "react/jsx-runtime";
const Table$1 = "_Table_olnh7_12";

@@ -44,9 +44,10 @@ const styles = {

}) => {
const classes = cx(styles.Table, auto && styles["Table--auto"], compact && styles["Table--compact"], isResourceTable && styles["Table--resourceTable"], className);
return /* @__PURE__ */ jsx("table", {
...rest,
"data-test-id": testId,
className: classes,
children
});
const classes = cx(
styles.Table,
auto && styles["Table--auto"],
compact && styles["Table--compact"],
isResourceTable && styles["Table--resourceTable"],
className
);
return /* @__PURE__ */ jsx("table", { ...rest, "data-test-id": testId, className: classes, children });
};

@@ -60,15 +61,5 @@ const TableBody = ({

const classes = cx(styles["Table-body"], className);
return /* @__PURE__ */ jsx("tbody", {
...rest,
"data-test-id": testId,
className: classes,
children
});
return /* @__PURE__ */ jsx("tbody", { ...rest, "data-test-id": testId, className: classes, children });
};
const TableCell = ({
align = "left",
className,
children,
...rest
}) => {
const TableCell = ({ align = "left", className, children, ...rest }) => {
const classes = cx(styles["Table-cell"], styles[`Table-cell--${align}`], className);

@@ -79,7 +70,3 @@ const restProps = rest;

}
return /* @__PURE__ */ jsx("td", {
...restProps,
className: classes,
children
});
return /* @__PURE__ */ jsx("td", { ...restProps, className: classes, children });
};

@@ -93,8 +80,3 @@ const TableHead = ({

const classes = cx(styles["Table-header"], className);
return /* @__PURE__ */ jsx("thead", {
...rest,
"data-test-id": testId,
className: classes,
children
});
return /* @__PURE__ */ jsx("thead", { ...rest, "data-test-id": testId, className: classes, children });
};

@@ -110,9 +92,10 @@ const TableHeadCell = ({

const widthClass = defaultColWidth ? styles[`Table-cell--width-${defaultColWidth}`] : "";
const classes = cx(styles["Table-cell"], styles["Table-cell--head"], styles[`Table-cell--${align}`], widthClass, className);
return /* @__PURE__ */ jsx("th", {
...rest,
className: classes,
scope,
children
});
const classes = cx(
styles["Table-cell"],
styles["Table-cell--head"],
styles[`Table-cell--${align}`],
widthClass,
className
);
return /* @__PURE__ */ jsx("th", { ...rest, className: classes, scope, children });
};

@@ -128,8 +111,3 @@ const TableRow = ({

const classes = cx(styles["Table-row"], verticalAlignClass, className);
return /* @__PURE__ */ jsx("tr", {
...rest,
className: classes,
"data-test-id": testId,
children
});
return /* @__PURE__ */ jsx("tr", { ...rest, className: classes, "data-test-id": testId, children });
};

@@ -136,0 +114,0 @@ export {

require('./style.css');
"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const classix = require("classix");
const jsxRuntime = require("react/jsx-runtime");
const Table$1 = "_Table_olnh7_12";

@@ -46,9 +46,10 @@ const styles = {

}) => {
const classes = classix.cx(styles.Table, auto && styles["Table--auto"], compact && styles["Table--compact"], isResourceTable && styles["Table--resourceTable"], className);
return /* @__PURE__ */ jsxRuntime.jsx("table", {
...rest,
"data-test-id": testId,
className: classes,
children
});
const classes = classix.cx(
styles.Table,
auto && styles["Table--auto"],
compact && styles["Table--compact"],
isResourceTable && styles["Table--resourceTable"],
className
);
return /* @__PURE__ */ jsxRuntime.jsx("table", { ...rest, "data-test-id": testId, className: classes, children });
};

@@ -62,15 +63,5 @@ const TableBody = ({

const classes = classix.cx(styles["Table-body"], className);
return /* @__PURE__ */ jsxRuntime.jsx("tbody", {
...rest,
"data-test-id": testId,
className: classes,
children
});
return /* @__PURE__ */ jsxRuntime.jsx("tbody", { ...rest, "data-test-id": testId, className: classes, children });
};
const TableCell = ({
align = "left",
className,
children,
...rest
}) => {
const TableCell = ({ align = "left", className, children, ...rest }) => {
const classes = classix.cx(styles["Table-cell"], styles[`Table-cell--${align}`], className);

@@ -81,7 +72,3 @@ const restProps = rest;

}
return /* @__PURE__ */ jsxRuntime.jsx("td", {
...restProps,
className: classes,
children
});
return /* @__PURE__ */ jsxRuntime.jsx("td", { ...restProps, className: classes, children });
};

@@ -95,8 +82,3 @@ const TableHead = ({

const classes = classix.cx(styles["Table-header"], className);
return /* @__PURE__ */ jsxRuntime.jsx("thead", {
...rest,
"data-test-id": testId,
className: classes,
children
});
return /* @__PURE__ */ jsxRuntime.jsx("thead", { ...rest, "data-test-id": testId, className: classes, children });
};

@@ -112,9 +94,10 @@ const TableHeadCell = ({

const widthClass = defaultColWidth ? styles[`Table-cell--width-${defaultColWidth}`] : "";
const classes = classix.cx(styles["Table-cell"], styles["Table-cell--head"], styles[`Table-cell--${align}`], widthClass, className);
return /* @__PURE__ */ jsxRuntime.jsx("th", {
...rest,
className: classes,
scope,
children
});
const classes = classix.cx(
styles["Table-cell"],
styles["Table-cell--head"],
styles[`Table-cell--${align}`],
widthClass,
className
);
return /* @__PURE__ */ jsxRuntime.jsx("th", { ...rest, className: classes, scope, children });
};

@@ -130,8 +113,3 @@ const TableRow = ({

const classes = classix.cx(styles["Table-row"], verticalAlignClass, className);
return /* @__PURE__ */ jsxRuntime.jsx("tr", {
...rest,
className: classes,
"data-test-id": testId,
children
});
return /* @__PURE__ */ jsxRuntime.jsx("tr", { ...rest, className: classes, "data-test-id": testId, children });
};

@@ -138,0 +116,0 @@ exports.Table = Table;

{
"name": "@launchpad-ui/table",
"version": "0.4.14",
"version": "0.4.15",
"status": "beta",

@@ -30,3 +30,3 @@ "publishConfig": {

"classix": "^2.1.13",
"@launchpad-ui/tokens": "~0.4.6"
"@launchpad-ui/tokens": "~0.4.7"
},

@@ -33,0 +33,0 @@ "peerDependencies": {

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