@geomak/ui 7.6.0 → 7.6.2

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 CHANGED
@@ -1631,10 +1631,10 @@ function Badge({
1631
1631
  ] });
1632
1632
  }
1633
1633
  var TONE_BG = {
1634
- info: "bg-[color-mix(in_srgb,var(--color-info)_12%,transparent)]",
1635
- success: "bg-[color-mix(in_srgb,var(--color-success)_12%,transparent)]",
1636
- warning: "bg-[color-mix(in_srgb,var(--color-warning)_15%,transparent)]",
1637
- danger: "bg-[color-mix(in_srgb,var(--color-error)_12%,transparent)]"
1634
+ info: "bg-[color-mix(in_srgb,var(--color-info)_20%,transparent)] border border-[color-mix(in_srgb,var(--color-info)_30%,transparent)]",
1635
+ success: "bg-[color-mix(in_srgb,var(--color-success)_20%,transparent)] border border-[color-mix(in_srgb,var(--color-success)_30%,transparent)]",
1636
+ warning: "bg-[color-mix(in_srgb,var(--color-warning)_22%,transparent)] border border-[color-mix(in_srgb,var(--color-warning)_32%,transparent)]",
1637
+ danger: "bg-[color-mix(in_srgb,var(--color-error)_20%,transparent)] border border-[color-mix(in_srgb,var(--color-error)_30%,transparent)]"
1638
1638
  };
1639
1639
  var TONE_FG = {
1640
1640
  info: "text-status-info",
@@ -4605,10 +4605,19 @@ function FadingBase({
4605
4605
  );
4606
4606
  }
4607
4607
  var DENSITY_PADDING = {
4608
- "compact": "py-1.5 px-2",
4609
- "comfortable": "py-2.5 px-3",
4610
- "spacious": "py-3.5 px-4"
4608
+ "compact": "py-1.5 pr-2",
4609
+ "comfortable": "py-2.5 pr-3",
4610
+ "spacious": "py-3.5 pr-4"
4611
4611
  };
4612
+ var DENSITY_PAD_LEFT = {
4613
+ "compact": "pl-[calc(0.5rem-1px)]",
4614
+ // px-2 = 0.5rem
4615
+ "comfortable": "pl-[calc(0.75rem-1px)]",
4616
+ // px-3 = 0.75rem
4617
+ "spacious": "pl-[calc(1rem-1px)]"
4618
+ // px-4 = 1rem
4619
+ };
4620
+ var PRESS = "active:bg-[color-mix(in_srgb,var(--color-accent)_14%,transparent)]";
4612
4621
  function List2({
4613
4622
  items,
4614
4623
  onItemClick,
@@ -4636,10 +4645,11 @@ function List2({
4636
4645
  }
4637
4646
  },
4638
4647
  className: [
4639
- "flex items-center gap-3 cursor-pointer border-b border-border transition-colors duration-150",
4648
+ "flex items-center gap-3 cursor-pointer border-b border-border border-l transition-colors duration-150",
4640
4649
  DENSITY_PADDING[density],
4650
+ DENSITY_PAD_LEFT[density],
4641
4651
  "focus:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-inset",
4642
- isDisabled ? "opacity-50 cursor-not-allowed" : isActive ? "bg-surface-raised text-foreground" : "text-foreground-secondary hover:bg-surface-raised hover:text-foreground"
4652
+ isDisabled ? "border-l-transparent opacity-50 cursor-not-allowed" : isActive ? `border-l-accent bg-surface-raised text-foreground font-medium ${PRESS}` : `border-l-transparent text-foreground-secondary hover:bg-surface-raised hover:text-foreground ${PRESS}`
4643
4653
  ].join(" "),
4644
4654
  children: [
4645
4655
  item.avatar && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-shrink-0", children: item.avatar }),
@@ -6925,7 +6935,7 @@ function NumberInput({
6925
6935
  "div",
6926
6936
  {
6927
6937
  style,
6928
- className: `flex items-center overflow-hidden pr-0 ${fieldShell({ size, hasError, disabled, focusWithin: true })}`,
6938
+ className: `flex items-center overflow-hidden !pr-0 ${fieldShell({ size, hasError, disabled, focusWithin: true })}`,
6929
6939
  children: [
6930
6940
  /* @__PURE__ */ jsxRuntime.jsx(
6931
6941
  "input",
@@ -7743,7 +7753,7 @@ function Dropdown({
7743
7753
  align: "start",
7744
7754
  sideOffset: 4,
7745
7755
  collisionPadding: 8,
7746
- style: { width: style?.width || 240 },
7756
+ style: { width: style?.width ?? "var(--radix-popover-trigger-width)" },
7747
7757
  className: "bg-surface text-foreground border border-border rounded-lg shadow-md z-popover p-2 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
7748
7758
  onInteractOutside: () => setOpen(false),
7749
7759
  children: [