@geomak/ui 7.6.0 → 7.6.1

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,9 +4605,17 @@ 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
+ };
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
4611
4619
  };
4612
4620
  function List2({
4613
4621
  items,
@@ -4636,10 +4644,11 @@ function List2({
4636
4644
  }
4637
4645
  },
4638
4646
  className: [
4639
- "flex items-center gap-3 cursor-pointer border-b border-border transition-colors duration-150",
4647
+ "flex items-center gap-3 cursor-pointer border-b border-border border-l transition-colors duration-150",
4640
4648
  DENSITY_PADDING[density],
4649
+ DENSITY_PAD_LEFT[density],
4641
4650
  "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"
4651
+ isDisabled ? "border-l-transparent opacity-50 cursor-not-allowed" : isActive ? "border-l-accent bg-surface-raised text-foreground font-medium" : "border-l-transparent text-foreground-secondary hover:bg-surface-raised hover:text-foreground"
4643
4652
  ].join(" "),
4644
4653
  children: [
4645
4654
  item.avatar && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-shrink-0", children: item.avatar }),
@@ -6925,7 +6934,7 @@ function NumberInput({
6925
6934
  "div",
6926
6935
  {
6927
6936
  style,
6928
- className: `flex items-center overflow-hidden pr-0 ${fieldShell({ size, hasError, disabled, focusWithin: true })}`,
6937
+ className: `flex items-center overflow-hidden !pr-0 ${fieldShell({ size, hasError, disabled, focusWithin: true })}`,
6929
6938
  children: [
6930
6939
  /* @__PURE__ */ jsxRuntime.jsx(
6931
6940
  "input",
@@ -7743,7 +7752,7 @@ function Dropdown({
7743
7752
  align: "start",
7744
7753
  sideOffset: 4,
7745
7754
  collisionPadding: 8,
7746
- style: { width: style?.width || 240 },
7755
+ style: { width: style?.width ?? "var(--radix-popover-trigger-width)" },
7747
7756
  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
7757
  onInteractOutside: () => setOpen(false),
7749
7758
  children: [