impact-nova 1.7.9 → 1.7.11

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.
@@ -5,21 +5,21 @@ import { ChevronRight as g } from "lucide-react";
5
5
  import { cn as a } from "../../lib/utils.js";
6
6
  import { Tooltip as p, TooltipTrigger as u, TooltipContent as v } from "./tooltip.js";
7
7
  import { useImpactNovaI18n as x } from "../../i18n/ImpactNovaI18nContext.js";
8
- const R = t.Root, h = d.forwardRef(({ className: o, ...i }, r) => /* @__PURE__ */ e(
8
+ const R = t.Root, b = d.forwardRef(({ className: o, ...i }, r) => /* @__PURE__ */ e(
9
9
  t.Item,
10
10
  {
11
11
  ref: r,
12
12
  "data-item": i.value,
13
13
  "data-disabled": i.disabled ? "" : void 0,
14
14
  className: a(
15
- "ia-accordion-item border rounded-lg bg-white border-[#D9DDE7]",
15
+ "ia-accordion-item border-b rounded-lg bg-white border-[#EFF2FA]",
16
16
  o
17
17
  ),
18
18
  ...i
19
19
  }
20
20
  ));
21
- h.displayName = "AccordionItem";
22
- const b = d.forwardRef(({ className: o, children: i, badge: r, rightActions: s, variant: l = "default", ...c }, m) => {
21
+ b.displayName = "AccordionItem";
22
+ const h = d.forwardRef(({ className: o, children: i, badge: r, rightActions: s, variant: l = "default", ...c }, m) => {
23
23
  const { t: f } = x();
24
24
  return l === "plain" ? /* @__PURE__ */ e(t.Header, { className: "flex flex-1", children: /* @__PURE__ */ e(
25
25
  t.Trigger,
@@ -59,7 +59,7 @@ const b = d.forwardRef(({ className: o, children: i, badge: r, rightActions: s,
59
59
  }
60
60
  ) });
61
61
  });
62
- b.displayName = t.Trigger.displayName;
62
+ h.displayName = t.Trigger.displayName;
63
63
  const N = d.forwardRef(({ className: o, children: i, surfaceClassName: r, ...s }, l) => /* @__PURE__ */ e(
64
64
  t.Content,
65
65
  {
@@ -73,6 +73,6 @@ N.displayName = t.Content.displayName;
73
73
  export {
74
74
  R as Accordion,
75
75
  N as AccordionContent,
76
- h as AccordionItem,
77
- b as AccordionTrigger
76
+ b as AccordionItem,
77
+ h as AccordionTrigger
78
78
  };
@@ -1,22 +1,23 @@
1
1
  import { jsx as d, jsxs as m } from "react/jsx-runtime";
2
2
  import { Badge as g } from "../../badge.js";
3
- import { getFieldValue as a, mapBadgeColor as f, mapBadgeVariant as u } from "./cell-renderer-utils.js";
4
- const v = (e) => {
5
- const { data: l, value: n } = e, i = a(e.badgeLabelField, e.badgeLabel, l) ?? (n != null ? String(n) : void 0), c = a(e.variantField, e.variant, l) ?? "filled", r = a(e.colorField, e.color, l) ?? "default", o = a(e.isIconField, e.isIcon, l), t = a(e.iconField, e.icon, l), s = a(e.sizeField, e.size, l);
6
- return i ? /* @__PURE__ */ d("div", { className: "w-full h-full flex items-center justify-start ag-cell-inner-padding", children: /* @__PURE__ */ d(
3
+ import { getFieldValue as l, mapBadgeColor as f, mapBadgeVariant as u } from "./cell-renderer-utils.js";
4
+ const h = (e) => {
5
+ const { data: i, value: n } = e, a = l(e.badgeLabelField, e.badgeLabel, i) ?? (n != null ? String(n) : void 0), c = l(e.variantField, e.variant, i) ?? "filled", r = l(e.colorField, e.color, i) ?? "default", o = l(e.isIconField, e.isIcon, i), t = l(e.iconField, e.icon, i), s = l(e.sizeField, e.size, i);
6
+ return a ? /* @__PURE__ */ d("div", { className: "w-full h-full flex items-center justify-start ag-cell-inner-padding", children: /* @__PURE__ */ d(
7
7
  g,
8
8
  {
9
9
  variant: u(c),
10
10
  color: f(r),
11
11
  size: s === "small" ? "sm" : "md",
12
+ style: { fontSize: "inherit", lineHeight: "inherit" },
12
13
  children: o && t ? /* @__PURE__ */ m("span", { className: "flex items-center gap-1", children: [
13
14
  t,
14
- i
15
- ] }) : i
15
+ a
16
+ ] }) : a
16
17
  }
17
18
  ) }) : null;
18
19
  };
19
- v.displayName = "BadgeCellRenderer";
20
+ h.displayName = "BadgeCellRenderer";
20
21
  export {
21
- v as BadgeCellRenderer
22
+ h as BadgeCellRenderer
22
23
  };
@@ -3,7 +3,7 @@ import * as g from "react";
3
3
  import { cva as f } from "class-variance-authority";
4
4
  import { cn as v } from "../../lib/utils.js";
5
5
  const m = f(
6
- "inline-flex min-w-0 max-w-[164px] shrink-0 items-center justify-center border font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 [&_[data-slot=badge-icon]_svg]:size-4 [&_[data-slot=badge-icon]_svg]:shrink-0",
6
+ "inline-flex min-w-0 max-w-[164px] shrink-0 items-center justify-center border font-sans font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 [&_[data-slot=badge-icon]_svg]:size-4 [&_[data-slot=badge-icon]_svg]:shrink-0",
7
7
  {
8
8
  variants: {
9
9
  variant: {
@@ -33,7 +33,8 @@ const m = f(
33
33
  }
34
34
  },
35
35
  compoundVariants: [
36
- { size: "md", layout: "default", class: "text-sm leading-5" },
36
+ { size: "md", layout: "default", class: "h-6 text-sm leading-5" },
37
+ { size: "md", layout: "iconOnly", class: "h-6" },
37
38
  { size: "sm", layout: "default", class: "h-5 text-xs leading-4" },
38
39
  { size: "sm", layout: "iconOnly", class: "h-5" },
39
40
  {
@@ -73,7 +74,7 @@ const m = f(
73
74
  {
74
75
  variant: "subtle",
75
76
  color: "primary",
76
- class: "border-transparent bg-badge-info-muted text-badge-info-filled"
77
+ class: "border-transparent bg-accent text-brand"
77
78
  },
78
79
  { variant: "subtle", color: "neutral", class: "border-transparent bg-badge-neutral-muted text-content-badge" },
79
80
  {
@@ -101,39 +102,39 @@ const m = f(
101
102
  }
102
103
  }
103
104
  );
104
- function w({
105
+ function h({
105
106
  className: o,
106
107
  variant: l,
107
108
  color: i,
108
109
  size: d,
109
110
  shape: c,
110
111
  icon: e,
111
- disabled: r,
112
- children: a,
112
+ disabled: a,
113
+ children: r,
113
114
  ...b
114
115
  }) {
115
- const t = g.Children.count(a) > 0, s = e != null && !t ? "iconOnly" : "default";
116
+ const t = g.Children.count(r) > 0, s = e != null && !t ? "iconOnly" : "default";
116
117
  return /* @__PURE__ */ u(
117
118
  "div",
118
119
  {
119
120
  role: "status",
120
121
  "data-component": "badge",
121
122
  "data-layout": s,
122
- "aria-disabled": r ? !0 : void 0,
123
+ "aria-disabled": a ? !0 : void 0,
123
124
  className: v(
124
125
  m({ variant: l, color: i, size: d, shape: c, layout: s }),
125
- r && "pointer-events-none border border-disabled-border bg-disabled-surface text-disabled-foreground",
126
+ a && "pointer-events-none border border-disabled-border bg-disabled-surface text-disabled-foreground",
126
127
  o
127
128
  ),
128
129
  ...b,
129
130
  children: [
130
131
  e != null ? /* @__PURE__ */ n("span", { "data-slot": "badge-icon", className: "inline-flex shrink-0 text-current", children: e }) : null,
131
- t ? /* @__PURE__ */ n("span", { className: "min-w-0 flex-1 truncate text-center", children: a }) : null
132
+ t ? /* @__PURE__ */ n("span", { className: "min-w-0 flex-1 truncate text-center", children: r }) : null
132
133
  ]
133
134
  }
134
135
  );
135
136
  }
136
137
  export {
137
- w as Badge,
138
+ h as Badge,
138
139
  m as badgeVariants
139
140
  };
@@ -34,10 +34,10 @@ const H = A("inline-flex", {
34
34
  helperTextPosition: x = "absolute",
35
35
  isError: a,
36
36
  required: S,
37
- "aria-label": _,
38
- ...k
39
- }, B) => {
40
- const l = p === "none", I = u === "horizontal", V = r.useId(), z = o ? `${V}-label` : void 0;
37
+ "aria-label": k,
38
+ ...B
39
+ }, I) => {
40
+ const l = p === "none", V = u === "horizontal", _ = r.useId(), z = o ? `${_}-label` : void 0;
41
41
  return /* @__PURE__ */ i("div", { className: t("grid gap-1.5", w), children: [
42
42
  o && /* @__PURE__ */ i(
43
43
  "label",
@@ -65,27 +65,27 @@ const H = A("inline-flex", {
65
65
  /* @__PURE__ */ n(
66
66
  "div",
67
67
  {
68
- ref: B,
68
+ ref: I,
69
69
  className: t(H({ orientation: u, spacing: p })),
70
70
  role: "group",
71
71
  "data-component": "button-group",
72
72
  "data-orientation": u,
73
73
  "data-spacing": p,
74
74
  "data-fused": l ? "true" : "false",
75
- "aria-label": o ? void 0 : _,
75
+ "aria-label": o ? void 0 : k,
76
76
  "aria-labelledby": o ? z : void 0,
77
- ...k,
77
+ ...B,
78
78
  children: r.Children.map(y, (f) => {
79
79
  if (!r.isValidElement(f)) return f;
80
80
  const e = f, g = e.props.value ?? e.props.children?.toString?.() ?? "", c = typeof g == "string" ? g : String(g), d = v !== void 0 && v === c, m = !!(e.props.disabled || h), G = e.props.size === "icon" || e.props.size === "iconMd" || e.props.size === "iconSm", j = t(
81
81
  "!shadow-none relative border transition-colors",
82
82
  l && !G && "min-w-14",
83
- l ? I ? "!rounded-none first:!rounded-l-md last:!rounded-r-md -ml-px first:ml-0" : "!rounded-none first:!rounded-t-md last:!rounded-b-md -mt-px first:mt-0" : "!rounded-md",
83
+ l ? V ? "!rounded-none first:!rounded-l-md last:!rounded-r-md -ml-px first:ml-0" : "!rounded-none first:!rounded-t-md last:!rounded-b-md -mt-px first:mt-0" : "!rounded-md",
84
84
  l && (d ? "z-10" : "z-[1]")
85
85
  ), C = m ? "!bg-disabled-surface !border-disabled-border !text-disabled-foreground opacity-100 [&_svg]:!text-disabled-foreground" : d ? "!bg-accent !border-brand !text-brand [&_svg]:!text-brand" : t(
86
86
  "!bg-canvas-elevated !border-button-primary-disabled !text-[#60697d]",
87
- "[&_svg]:text-content-icon",
88
- "hover:!text-brand hover:[&_svg]:!text-brand"
87
+ "[&_svg]:!text-[inherit]",
88
+ "hover:!bg-canvas-elevated hover:!text-brand"
89
89
  ), O = a && !d && !m && "!border-destructive !text-destructive [&_svg]:!text-destructive";
90
90
  return r.cloneElement(e, {
91
91
  disabled: m,