@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.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,10 +4569,19 @@ 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
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
4583
+ };
4584
+ var PRESS = "active:bg-[color-mix(in_srgb,var(--color-accent)_14%,transparent)]";
4576
4585
  function List2({
4577
4586
  items,
4578
4587
  onItemClick,
@@ -4600,10 +4609,11 @@ function List2({
4600
4609
  }
4601
4610
  },
4602
4611
  className: [
4603
- "flex items-center gap-3 cursor-pointer border-b border-border transition-colors duration-150",
4612
+ "flex items-center gap-3 cursor-pointer border-b border-border border-l transition-colors duration-150",
4604
4613
  DENSITY_PADDING[density],
4614
+ DENSITY_PAD_LEFT[density],
4605
4615
  "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"
4616
+ 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}`
4607
4617
  ].join(" "),
4608
4618
  children: [
4609
4619
  item.avatar && /* @__PURE__ */ jsx("span", { className: "flex-shrink-0", children: item.avatar }),
@@ -6889,7 +6899,7 @@ function NumberInput({
6889
6899
  "div",
6890
6900
  {
6891
6901
  style,
6892
- className: `flex items-center overflow-hidden pr-0 ${fieldShell({ size, hasError, disabled, focusWithin: true })}`,
6902
+ className: `flex items-center overflow-hidden !pr-0 ${fieldShell({ size, hasError, disabled, focusWithin: true })}`,
6893
6903
  children: [
6894
6904
  /* @__PURE__ */ jsx(
6895
6905
  "input",
@@ -7707,7 +7717,7 @@ function Dropdown({
7707
7717
  align: "start",
7708
7718
  sideOffset: 4,
7709
7719
  collisionPadding: 8,
7710
- style: { width: style?.width || 240 },
7720
+ style: { width: style?.width ?? "var(--radix-popover-trigger-width)" },
7711
7721
  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
7722
  onInteractOutside: () => setOpen(false),
7713
7723
  children: [