@geomak/ui 7.6.2 → 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 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/styles.css +8 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4581,7 +4581,9 @@ var DENSITY_PAD_LEFT = {
|
|
|
4581
4581
|
"spacious": "pl-[calc(1rem-1px)]"
|
|
4582
4582
|
// px-4 = 1rem
|
|
4583
4583
|
};
|
|
4584
|
-
var
|
|
4584
|
+
var HOVER = "hover:bg-[color-mix(in_srgb,var(--color-accent)_8%,transparent)] hover:text-foreground";
|
|
4585
|
+
var ACTIVE_BG = "bg-[color-mix(in_srgb,var(--color-accent)_15%,transparent)]";
|
|
4586
|
+
var PRESS = "active:bg-[color-mix(in_srgb,var(--color-accent)_24%,transparent)]";
|
|
4585
4587
|
function List2({
|
|
4586
4588
|
items,
|
|
4587
4589
|
onItemClick,
|
|
@@ -4613,7 +4615,7 @@ function List2({
|
|
|
4613
4615
|
DENSITY_PADDING[density],
|
|
4614
4616
|
DENSITY_PAD_LEFT[density],
|
|
4615
4617
|
"focus:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-inset",
|
|
4616
|
-
isDisabled ? "border-l-transparent opacity-50 cursor-not-allowed" : isActive ? `border-l-accent
|
|
4618
|
+
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}`
|
|
4617
4619
|
].join(" "),
|
|
4618
4620
|
children: [
|
|
4619
4621
|
item.avatar && /* @__PURE__ */ jsx("span", { className: "flex-shrink-0", children: item.avatar }),
|