@launchpad-ui/tab-list
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -7,3 +7,3 @@ // ../../scripts/react-shim.js | ||
import { useTabListState } from "@react-stately/tabs"; | ||
import cx from "classnames"; | ||
import cx from "clsx"; | ||
import { useRef } from "react"; | ||
@@ -10,0 +10,0 @@ import "./styles.css"; |
@@ -35,3 +35,3 @@ var __create = Object.create; | ||
var import_tabs2 = require("@react-stately/tabs"); | ||
var import_classnames = __toESM(require("classnames")); | ||
var import_clsx = __toESM(require("clsx")); | ||
var import_react = require("react"); | ||
@@ -49,3 +49,3 @@ var import_styles = require("./styles.css"); | ||
const { tabListProps } = (0, import_tabs.useTabList)(props, state, ref); | ||
const classes = (0, import_classnames.default)("TabList", className); | ||
const classes = (0, import_clsx.default)("TabList", className); | ||
return /* @__PURE__ */ React.createElement("div", { | ||
@@ -70,3 +70,3 @@ className: classes | ||
const isSelected = state.selectedKey === key; | ||
const classes = (0, import_classnames.default)("TabList-item", { | ||
const classes = (0, import_clsx.default)("TabList-item", { | ||
"is-active": isSelected | ||
@@ -73,0 +73,0 @@ }, className); |
{ | ||
"name": "@launchpad-ui/tab-list", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"publishConfig": { | ||
@@ -33,3 +33,3 @@ "access": "public" | ||
"@launchpad-ui/tokens": "~0.1.4", | ||
"classnames": "^2.3.1" | ||
"clsx": "^1.1.1" | ||
}, | ||
@@ -36,0 +36,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
22972
+ Addedclsx@^1.1.1
+ Addedclsx@1.2.1(transitive)
- Removedclassnames@^2.3.1
- Removedclassnames@2.5.1(transitive)