@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.js CHANGED
@@ -1595,10 +1595,10 @@ function Badge({
1595
1595
  ] });
1596
1596
  }
1597
1597
  var TONE_BG = {
1598
- info: "bg-[color-mix(in_srgb,var(--color-info)_12%,transparent)]",
1599
- success: "bg-[color-mix(in_srgb,var(--color-success)_12%,transparent)]",
1600
- warning: "bg-[color-mix(in_srgb,var(--color-warning)_15%,transparent)]",
1601
- danger: "bg-[color-mix(in_srgb,var(--color-error)_12%,transparent)]"
1598
+ info: "bg-[color-mix(in_srgb,var(--color-info)_20%,transparent)] border border-[color-mix(in_srgb,var(--color-info)_30%,transparent)]",
1599
+ success: "bg-[color-mix(in_srgb,var(--color-success)_20%,transparent)] border border-[color-mix(in_srgb,var(--color-success)_30%,transparent)]",
1600
+ warning: "bg-[color-mix(in_srgb,var(--color-warning)_22%,transparent)] border border-[color-mix(in_srgb,var(--color-warning)_32%,transparent)]",
1601
+ danger: "bg-[color-mix(in_srgb,var(--color-error)_20%,transparent)] border border-[color-mix(in_srgb,var(--color-error)_30%,transparent)]"
1602
1602
  };
1603
1603
  var TONE_FG = {
1604
1604
  info: "text-status-info",
@@ -4569,9 +4569,17 @@ function FadingBase({
4569
4569
  );
4570
4570
  }
4571
4571
  var DENSITY_PADDING = {
4572
- "compact": "py-1.5 px-2",
4573
- "comfortable": "py-2.5 px-3",
4574
- "spacious": "py-3.5 px-4"
4572
+ "compact": "py-1.5 pr-2",
4573
+ "comfortable": "py-2.5 pr-3",
4574
+ "spacious": "py-3.5 pr-4"
4575
+ };
4576
+ var DENSITY_PAD_LEFT = {
4577
+ "compact": "pl-[calc(0.5rem-1px)]",
4578
+ // px-2 = 0.5rem
4579
+ "comfortable": "pl-[calc(0.75rem-1px)]",
4580
+ // px-3 = 0.75rem
4581
+ "spacious": "pl-[calc(1rem-1px)]"
4582
+ // px-4 = 1rem
4575
4583
  };
4576
4584
  function List2({
4577
4585
  items,
@@ -4600,10 +4608,11 @@ function List2({
4600
4608
  }
4601
4609
  },
4602
4610
  className: [
4603
- "flex items-center gap-3 cursor-pointer border-b border-border transition-colors duration-150",
4611
+ "flex items-center gap-3 cursor-pointer border-b border-border border-l transition-colors duration-150",
4604
4612
  DENSITY_PADDING[density],
4613
+ DENSITY_PAD_LEFT[density],
4605
4614
  "focus:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-inset",
4606
- isDisabled ? "opacity-50 cursor-not-allowed" : isActive ? "bg-surface-raised text-foreground" : "text-foreground-secondary hover:bg-surface-raised hover:text-foreground"
4615
+ 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"
4607
4616
  ].join(" "),
4608
4617
  children: [
4609
4618
  item.avatar && /* @__PURE__ */ jsx("span", { className: "flex-shrink-0", children: item.avatar }),
@@ -6889,7 +6898,7 @@ function NumberInput({
6889
6898
  "div",
6890
6899
  {
6891
6900
  style,
6892
- className: `flex items-center overflow-hidden pr-0 ${fieldShell({ size, hasError, disabled, focusWithin: true })}`,
6901
+ className: `flex items-center overflow-hidden !pr-0 ${fieldShell({ size, hasError, disabled, focusWithin: true })}`,
6893
6902
  children: [
6894
6903
  /* @__PURE__ */ jsx(
6895
6904
  "input",
@@ -7707,7 +7716,7 @@ function Dropdown({
7707
7716
  align: "start",
7708
7717
  sideOffset: 4,
7709
7718
  collisionPadding: 8,
7710
- style: { width: style?.width || 240 },
7719
+ style: { width: style?.width ?? "var(--radix-popover-trigger-width)" },
7711
7720
  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",
7712
7721
  onInteractOutside: () => setOpen(false),
7713
7722
  children: [