impact-nova 1.8.1 → 1.8.3

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.
Files changed (29) hide show
  1. package/dist/components/ui/ag-grid-react/cell-renderers/default-text-cell-renderer.d.ts +6 -0
  2. package/dist/components/ui/ag-grid-react/cell-renderers/default-text-cell-renderer.js +9 -0
  3. package/dist/components/ui/ag-grid-react/headers/custom-header-group.d.ts +5 -6
  4. package/dist/components/ui/ag-grid-react/headers/custom-header-group.js +19 -19
  5. package/dist/components/ui/ag-grid-react/index.d.ts +1 -1
  6. package/dist/components/ui/ag-grid-react/index.js +164 -165
  7. package/dist/components/ui/button-group.d.ts +10 -6
  8. package/dist/components/ui/button-group.js +1 -2
  9. package/dist/components/ui/calendar.js +2 -3
  10. package/dist/components/ui/combobox.d.ts +1 -0
  11. package/dist/components/ui/combobox.js +116 -102
  12. package/dist/components/ui/date-picker/date-picker.js +52 -50
  13. package/dist/components/ui/date-picker/date-range-picker.js +92 -90
  14. package/dist/components/ui/date-picker/month-picker.js +57 -55
  15. package/dist/components/ui/date-picker/month-range-picker.js +84 -82
  16. package/dist/components/ui/date-picker/multi-date-picker.js +45 -43
  17. package/dist/components/ui/date-picker/week-range-picker.js +77 -75
  18. package/dist/components/ui/expandable-sku/expandable-sku.js +10 -10
  19. package/dist/components/ui/filter-strip/filter-tag-list.d.ts +8 -1
  20. package/dist/components/ui/filter-strip/filter-tag-list.js +99 -85
  21. package/dist/components/ui/input.js +12 -13
  22. package/dist/components/ui/smart-input.d.ts +2 -2
  23. package/dist/components/ui/smart-input.js +52 -51
  24. package/dist/components/ui/textarea.d.ts +10 -8
  25. package/dist/components/ui/textarea.js +52 -52
  26. package/dist/components/ui/types/ag-grid.types.d.ts +5 -0
  27. package/dist/components/ui/types/button-group.types.d.ts +1 -1
  28. package/dist/index.js +425 -426
  29. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
- import { jsxs as e, jsx as a, Fragment as N } from "react/jsx-runtime";
1
+ import { jsxs as e, jsx as t, Fragment as y } from "react/jsx-runtime";
2
2
  import * as m from "react";
3
- import { cva as y } from "class-variance-authority";
3
+ import { cva as z } from "class-variance-authority";
4
4
  import { Info as x } from "../../icons/index.js";
5
- import { cn as d } from "../../lib/utils.js";
6
- const z = y(
5
+ import { cn as a } from "../../lib/utils.js";
6
+ const C = z(
7
7
  "flex w-full rounded-md border border-field bg-transparent px-3 py-2 text-sm font-medium shadow-sm transition-colors placeholder:font-medium placeholder:text-content-empty focus-visible:outline-none focus-visible:border-brand hover:border-brand disabled:cursor-not-allowed disabled:bg-disabled-surface disabled:text-disabled-foreground disabled:border-stroke",
8
8
  {
9
9
  variants: {
@@ -17,7 +17,7 @@ const z = y(
17
17
  md: "min-h-[72px]",
18
18
  lg: "min-h-32"
19
19
  },
20
- disabled: {
20
+ isDisabled: {
21
21
  true: "cursor-not-allowed opacity-100 bg-disabled-surface border-stroke text-disabled-foreground placeholder:text-disabled-foreground hover:border-stroke",
22
22
  false: ""
23
23
  }
@@ -27,25 +27,26 @@ const z = y(
27
27
  isError: !1
28
28
  }
29
29
  }
30
- ), C = m.forwardRef(
30
+ ), V = m.forwardRef(
31
31
  ({
32
32
  className: b,
33
33
  label: u,
34
- helperText: l,
35
- helperTextPosition: s = "absolute",
34
+ helperText: d,
35
+ helperTextPosition: n = "absolute",
36
36
  characterLimit: o,
37
- isError: t,
38
- size: g,
39
- disabled: i,
37
+ isRequired: g,
38
+ isError: l,
39
+ size: p,
40
+ isDisabled: s,
40
41
  value: r,
41
42
  onChange: v,
42
- ...n
43
- }, p) => {
44
- const [h, c] = m.useState(0);
43
+ ...i
44
+ }, h) => {
45
+ const [w, c] = m.useState(0);
45
46
  m.useEffect(() => {
46
- r ? c(String(r).length) : n.defaultValue && c(String(n.defaultValue).length);
47
- }, [r, n.defaultValue]);
48
- const w = (f) => {
47
+ r ? c(String(r).length) : i.defaultValue && c(String(i.defaultValue).length);
48
+ }, [r, i.defaultValue]);
49
+ const N = (f) => {
49
50
  c(f.target.value.length), v?.(f);
50
51
  };
51
52
  return /* @__PURE__ */ e("div", { className: "flex w-full min-w-[240px] flex-col gap-[6px]", children: [
@@ -53,60 +54,59 @@ const z = y(
53
54
  u && /* @__PURE__ */ e(
54
55
  "label",
55
56
  {
56
- className: d(
57
+ className: a(
57
58
  "text-xs font-medium leading-[18px] text-content-tertiary",
58
- i && "opacity-70",
59
- t && "text-destructive"
59
+ s && "opacity-70"
60
60
  ),
61
61
  children: [
62
62
  u,
63
63
  " ",
64
- n.required && /* @__PURE__ */ a("span", { className: "text-destructive", children: "*" })
64
+ g && /* @__PURE__ */ t("span", { className: "text-destructive", children: "*" })
65
65
  ]
66
66
  }
67
67
  ),
68
68
  /* @__PURE__ */ e(
69
69
  "div",
70
70
  {
71
- className: d(
72
- l && s === "absolute" && "relative"
71
+ className: a(
72
+ d && n === "absolute" && "relative"
73
73
  ),
74
74
  children: [
75
- /* @__PURE__ */ a(
75
+ /* @__PURE__ */ t(
76
76
  "textarea",
77
77
  {
78
- className: d(
79
- z({ isError: t, size: g, disabled: i, className: b }),
78
+ className: a(
79
+ C({ isError: l, size: p, isDisabled: s, className: b }),
80
80
  "bg-canvas",
81
- i && "bg-disabled-surface"
81
+ s && "bg-disabled-surface"
82
82
  ),
83
- ref: p,
84
- disabled: !!i,
83
+ ref: h,
84
+ disabled: !!s,
85
85
  value: r,
86
- onChange: w,
86
+ onChange: N,
87
87
  "data-component": "textarea",
88
- ...n
88
+ ...i
89
89
  }
90
90
  ),
91
- l && s === "absolute" && /* @__PURE__ */ e(
91
+ d && n === "absolute" && /* @__PURE__ */ e(
92
92
  "div",
93
93
  {
94
- className: d(
94
+ className: a(
95
95
  "absolute left-0 top-full z-10 mt-1 flex min-w-0 max-w-full items-center gap-[6px] text-[12px] font-medium leading-[18px] text-navigation-muted",
96
- t && "text-destructive"
96
+ l && "text-destructive"
97
97
  ),
98
98
  children: [
99
- /* @__PURE__ */ a(
99
+ /* @__PURE__ */ t(
100
100
  x,
101
101
  {
102
102
  size: "xs",
103
- className: d(
103
+ className: a(
104
104
  "shrink-0",
105
- t ? "text-destructive" : "text-content-muted"
105
+ l ? "text-destructive" : "text-content-muted"
106
106
  )
107
107
  }
108
108
  ),
109
- /* @__PURE__ */ a("p", { className: "min-w-0", children: l })
109
+ /* @__PURE__ */ t("p", { className: "min-w-0", children: d })
110
110
  ]
111
111
  }
112
112
  )
@@ -114,30 +114,30 @@ const z = y(
114
114
  }
115
115
  )
116
116
  ] }),
117
- (l && s === "flow" || o) && /* @__PURE__ */ e("div", { className: "flex items-center justify-between gap-[6px]", children: [
118
- /* @__PURE__ */ a(
117
+ (d && n === "flow" || o) && /* @__PURE__ */ e("div", { className: "flex items-center justify-between gap-[6px]", children: [
118
+ /* @__PURE__ */ t(
119
119
  "div",
120
120
  {
121
- className: d(
121
+ className: a(
122
122
  "flex min-w-0 flex-1 items-center gap-[6px]",
123
- t && "text-destructive"
123
+ l && "text-destructive"
124
124
  ),
125
- children: l && s === "flow" && /* @__PURE__ */ e(N, { children: [
126
- /* @__PURE__ */ a(
125
+ children: d && n === "flow" && /* @__PURE__ */ e(y, { children: [
126
+ /* @__PURE__ */ t(
127
127
  x,
128
128
  {
129
129
  size: "xs",
130
- color: t ? "destructive" : "muted"
130
+ color: l ? "destructive" : "muted"
131
131
  }
132
132
  ),
133
- /* @__PURE__ */ a(
133
+ /* @__PURE__ */ t(
134
134
  "p",
135
135
  {
136
- className: d(
136
+ className: a(
137
137
  "min-w-0 text-[12px] font-medium leading-[18px] text-navigation-muted",
138
- t && "text-destructive"
138
+ l && "text-destructive"
139
139
  ),
140
- children: l
140
+ children: d
141
141
  }
142
142
  )
143
143
  ] })
@@ -149,7 +149,7 @@ const z = y(
149
149
  className: "text-[12px] font-medium leading-[18px] text-navigation-muted text-right",
150
150
  "data-component": "character-count-indicator",
151
151
  children: [
152
- h,
152
+ w,
153
153
  "/",
154
154
  o
155
155
  ]
@@ -159,7 +159,7 @@ const z = y(
159
159
  ] });
160
160
  }
161
161
  );
162
- C.displayName = "Textarea";
162
+ V.displayName = "Textarea";
163
163
  export {
164
- C as Textarea
164
+ V as Textarea
165
165
  };
@@ -117,6 +117,11 @@ export interface AgGridWrapperProps<TData = unknown> extends Omit<AgGridReactPro
117
117
  * Default column group definition (will be merged with wrapper defaults)
118
118
  */
119
119
  defaultColGroupDef?: ColGroupDef<TData>;
120
+ /**
121
+ * When true (default), DOM order matches visual order for screen readers.
122
+ * Large planning grids should pass false for better column virtualization.
123
+ */
124
+ ensureDomOrder?: boolean;
120
125
  /**
121
126
  * Value formatter registry - maps formatter names to formatter functions
122
127
  * Allows backend to specify formatters by string name (e.g., "currency", "percentage")
@@ -1 +1 @@
1
- export type { ButtonGroupProps } from '../button-group';
1
+ export type { ButtonGroupProps, ButtonOption } from '../button-group';