impact-nova 1.7.5 → 1.7.6

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 (35) hide show
  1. package/dist/components/ui/ag-grid-react/headers/components/truncated-text.d.ts +15 -0
  2. package/dist/components/ui/ag-grid-react/headers/components/truncated-text.js +27 -0
  3. package/dist/components/ui/ag-grid-react/headers/custom-header-group.js +22 -15
  4. package/dist/components/ui/ag-grid-react/headers/custom-header.js +47 -43
  5. package/dist/components/ui/breadcrumb.js +1 -1
  6. package/dist/components/ui/button-group.d.ts +3 -0
  7. package/dist/components/ui/button-group.js +129 -78
  8. package/dist/components/ui/checkbox.d.ts +3 -0
  9. package/dist/components/ui/checkbox.js +64 -53
  10. package/dist/components/ui/date-picker/date-range-picker.js +239 -196
  11. package/dist/components/ui/date-picker/month-range-picker.js +226 -183
  12. package/dist/components/ui/date-picker/week-range-picker.js +265 -222
  13. package/dist/components/ui/dialog.js +6 -6
  14. package/dist/components/ui/filter-panel/filter-panel.js +15 -8
  15. package/dist/components/ui/filter-strip/filter-strip.js +8 -9
  16. package/dist/components/ui/input.d.ts +3 -0
  17. package/dist/components/ui/input.js +107 -43
  18. package/dist/components/ui/notification-panel/notification-panel.d.ts +4 -4
  19. package/dist/components/ui/notification-panel/notification-panel.js +78 -16
  20. package/dist/components/ui/radio-group.d.ts +3 -0
  21. package/dist/components/ui/radio-group.js +101 -52
  22. package/dist/components/ui/select/select.js +579 -554
  23. package/dist/components/ui/textarea.d.ts +3 -0
  24. package/dist/components/ui/textarea.js +104 -58
  25. package/dist/components/ui/types/helper-text.types.d.ts +5 -0
  26. package/dist/components/ui/types/select.types.d.ts +6 -0
  27. package/dist/icons/assets/createNewDocument.svg.js +2 -2
  28. package/dist/icons/assets/drawBrush.svg.js +5 -0
  29. package/dist/icons/assets/info-badge.svg.js +5 -0
  30. package/dist/icons/assets/priority-alert.svg.js +5 -0
  31. package/dist/icons/assets/webp/sales.webp.js +4 -0
  32. package/dist/icons/index.d.ts +4 -0
  33. package/dist/icons/index.js +253 -245
  34. package/dist/impact-nova.css +1 -1
  35. package/package.json +1 -1
@@ -1,61 +1,110 @@
1
- import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
- import * as n from "react";
3
- import * as r from "@radix-ui/react-radio-group";
4
- import { cn as a } from "../../lib/utils.js";
5
- import { Info as p } from "../../icons/index.js";
6
- const f = n.forwardRef(({ className: i, orientation: s = "horizontal", label: d, helperText: c, isError: t, required: u, ...l }, m) => /* @__PURE__ */ o(
1
+ import { jsxs as r, jsx as a } from "react/jsx-runtime";
2
+ import * as m from "react";
3
+ import * as s from "@radix-ui/react-radio-group";
4
+ import { cn as e } from "../../lib/utils.js";
5
+ import { Info as u } from "../../icons/index.js";
6
+ const p = m.forwardRef(({ className: o, orientation: c = "horizontal", label: i, helperText: d, helperTextPosition: l = "absolute", isError: t, required: x, ...n }, f) => /* @__PURE__ */ r(
7
7
  "div",
8
8
  {
9
- className: a("flex w-full flex-col gap-[6px]", i),
9
+ className: e("flex w-full flex-col gap-[6px]", o),
10
10
  "data-component": "radio-group",
11
11
  "data-invalid": t || void 0,
12
12
  children: [
13
- /* @__PURE__ */ o("div", { className: "flex flex-col gap-[6px]", children: [
14
- d && /* @__PURE__ */ o(
15
- "label",
16
- {
17
- className: a(
18
- "text-xs font-medium leading-[18px] text-content-tertiary",
19
- l.disabled && "opacity-70",
20
- t && "text-destructive"
13
+ /* @__PURE__ */ r(
14
+ "div",
15
+ {
16
+ className: e(
17
+ "flex flex-col gap-[6px]",
18
+ d && l === "absolute" && "relative"
19
+ ),
20
+ children: [
21
+ i && /* @__PURE__ */ r(
22
+ "label",
23
+ {
24
+ className: e(
25
+ "text-xs font-medium leading-[18px] text-content-tertiary",
26
+ n.disabled && "opacity-70",
27
+ t && "text-destructive"
28
+ ),
29
+ children: [
30
+ i,
31
+ " ",
32
+ x && /* @__PURE__ */ a("span", { className: "text-destructive", children: "*" })
33
+ ]
34
+ }
21
35
  ),
22
- children: [
23
- d,
24
- " ",
25
- u && /* @__PURE__ */ e("span", { className: "text-destructive", children: "*" })
26
- ]
27
- }
28
- ),
29
- /* @__PURE__ */ e(
30
- r.Root,
31
- {
32
- className: a(
33
- "group flex gap-4",
34
- s === "vertical" && "flex-col gap-2"
36
+ /* @__PURE__ */ a(
37
+ s.Root,
38
+ {
39
+ className: e(
40
+ "group flex gap-4",
41
+ c === "vertical" && "flex-col gap-2"
42
+ ),
43
+ "data-error": t,
44
+ ...n,
45
+ ref: f
46
+ }
35
47
  ),
36
- "data-error": t,
37
- ...l,
38
- ref: m
39
- }
40
- )
41
- ] }),
42
- c && /* @__PURE__ */ o(
48
+ d && l === "absolute" && /* @__PURE__ */ r(
49
+ "div",
50
+ {
51
+ className: e(
52
+ "absolute left-0 top-full z-10 mt-1 flex min-w-0 max-w-full items-center gap-[6px]",
53
+ t && "text-destructive"
54
+ ),
55
+ children: [
56
+ /* @__PURE__ */ a(
57
+ u,
58
+ {
59
+ size: "xs",
60
+ className: e(
61
+ "shrink-0",
62
+ t ? "text-destructive" : "text-content-muted"
63
+ )
64
+ }
65
+ ),
66
+ /* @__PURE__ */ a(
67
+ "p",
68
+ {
69
+ className: e(
70
+ "min-w-0 text-[12px] font-medium leading-[18px] text-navigation-muted",
71
+ t && "text-destructive"
72
+ ),
73
+ children: d
74
+ }
75
+ )
76
+ ]
77
+ }
78
+ )
79
+ ]
80
+ }
81
+ ),
82
+ d && l === "flow" && /* @__PURE__ */ r(
43
83
  "div",
44
84
  {
45
- className: a(
85
+ className: e(
46
86
  "flex items-center gap-[6px]",
47
87
  t && "text-destructive"
48
88
  ),
49
89
  children: [
50
- !t && /* @__PURE__ */ e(p, { size: "xs", className: "shrink-0 text-content-muted" }),
51
- /* @__PURE__ */ e(
90
+ /* @__PURE__ */ a(
91
+ u,
92
+ {
93
+ size: "xs",
94
+ className: e(
95
+ "shrink-0",
96
+ t ? "text-destructive" : "text-content-muted"
97
+ )
98
+ }
99
+ ),
100
+ /* @__PURE__ */ a(
52
101
  "p",
53
102
  {
54
- className: a(
55
- "text-[10px] leading-4 text-navigation-muted",
103
+ className: e(
104
+ "text-[12px] font-medium leading-[18px] text-navigation-muted",
56
105
  t && "text-destructive"
57
106
  ),
58
- children: c
107
+ children: d
59
108
  }
60
109
  )
61
110
  ]
@@ -64,23 +113,23 @@ const f = n.forwardRef(({ className: i, orientation: s = "horizontal", label: d,
64
113
  ]
65
114
  }
66
115
  ));
67
- f.displayName = r.Root.displayName;
68
- const x = n.forwardRef(({ className: i, ...s }, d) => /* @__PURE__ */ e(
69
- r.Item,
116
+ p.displayName = s.Root.displayName;
117
+ const v = m.forwardRef(({ className: o, ...c }, i) => /* @__PURE__ */ a(
118
+ s.Item,
70
119
  {
71
- ref: d,
72
- className: a(
120
+ ref: i,
121
+ className: e(
73
122
  "aspect-square h-4 w-4 rounded-full border border-stroke-field bg-canvas-elevated text-brand shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-focus-ring disabled:cursor-not-allowed disabled:bg-disabled-surface disabled:border-stroke data-[state=checked]:border-brand hover:border-brand",
74
123
  "group-data-[error=true]:border-destructive group-data-[error=true]:data-[state=checked]:border-destructive group-data-[error=true]:text-destructive",
75
- i
124
+ o
76
125
  ),
77
126
  "data-component": "radio-group-item",
78
- ...s,
79
- children: /* @__PURE__ */ e(r.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e("div", { className: "h-2.5 w-2.5 rounded-full bg-current peer-disabled:bg-canvas-accordion" }) })
127
+ ...c,
128
+ children: /* @__PURE__ */ a(s.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ a("div", { className: "h-2.5 w-2.5 rounded-full bg-current peer-disabled:bg-canvas-accordion" }) })
80
129
  }
81
130
  ));
82
- x.displayName = r.Item.displayName;
131
+ v.displayName = s.Item.displayName;
83
132
  export {
84
- f as RadioGroup,
85
- x as RadioGroupItem
133
+ p as RadioGroup,
134
+ v as RadioGroupItem
86
135
  };