@geomak/ui 7.6.1 → 7.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/styles.css +9 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4617,6 +4617,9 @@ var DENSITY_PAD_LEFT = {
|
|
|
4617
4617
|
"spacious": "pl-[calc(1rem-1px)]"
|
|
4618
4618
|
// px-4 = 1rem
|
|
4619
4619
|
};
|
|
4620
|
+
var HOVER = "hover:bg-[color-mix(in_srgb,var(--color-accent)_8%,transparent)] hover:text-foreground";
|
|
4621
|
+
var ACTIVE_BG = "bg-[color-mix(in_srgb,var(--color-accent)_15%,transparent)]";
|
|
4622
|
+
var PRESS = "active:bg-[color-mix(in_srgb,var(--color-accent)_24%,transparent)]";
|
|
4620
4623
|
function List2({
|
|
4621
4624
|
items,
|
|
4622
4625
|
onItemClick,
|
|
@@ -4648,7 +4651,7 @@ function List2({
|
|
|
4648
4651
|
DENSITY_PADDING[density],
|
|
4649
4652
|
DENSITY_PAD_LEFT[density],
|
|
4650
4653
|
"focus:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-inset",
|
|
4651
|
-
isDisabled ? "border-l-transparent opacity-50 cursor-not-allowed" : isActive ?
|
|
4654
|
+
isDisabled ? "border-l-transparent opacity-50 cursor-not-allowed" : isActive ? `border-l-accent ${ACTIVE_BG} text-foreground font-medium ${PRESS}` : `border-l-transparent text-foreground-secondary ${HOVER} ${PRESS}`
|
|
4652
4655
|
].join(" "),
|
|
4653
4656
|
children: [
|
|
4654
4657
|
item.avatar && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-shrink-0", children: item.avatar }),
|