impact-nova 1.7.4 → 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.
- package/dist/components/ui/ag-grid-react/headers/components/truncated-text.d.ts +15 -0
- package/dist/components/ui/ag-grid-react/headers/components/truncated-text.js +27 -0
- package/dist/components/ui/ag-grid-react/headers/custom-header-group.js +22 -15
- package/dist/components/ui/ag-grid-react/headers/custom-header.js +47 -43
- package/dist/components/ui/breadcrumb.js +1 -1
- package/dist/components/ui/button-group.d.ts +3 -0
- package/dist/components/ui/button-group.js +129 -78
- package/dist/components/ui/checkbox.d.ts +3 -0
- package/dist/components/ui/checkbox.js +64 -53
- package/dist/components/ui/data-table/data-table-saved-views.d.ts +2 -0
- package/dist/components/ui/data-table/data-table-saved-views.js +348 -0
- package/dist/components/ui/data-table/data-table-view-options.d.ts +8 -0
- package/dist/components/ui/data-table/index.d.ts +2 -0
- package/dist/components/ui/data-table/index.js +16 -14
- package/dist/components/ui/date-picker/date-range-picker.js +239 -196
- package/dist/components/ui/date-picker/month-range-picker.js +226 -183
- package/dist/components/ui/date-picker/week-range-picker.js +265 -222
- package/dist/components/ui/dialog.js +6 -6
- package/dist/components/ui/filter-panel/filter-panel.js +15 -8
- package/dist/components/ui/filter-strip/filter-strip.js +8 -9
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/input.js +107 -43
- package/dist/components/ui/notification-panel/notification-panel.d.ts +4 -4
- package/dist/components/ui/notification-panel/notification-panel.js +78 -16
- package/dist/components/ui/radio-group.d.ts +3 -0
- package/dist/components/ui/radio-group.js +101 -52
- package/dist/components/ui/select/select.js +579 -554
- package/dist/components/ui/sidebar.js +5 -5
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/textarea.js +104 -58
- package/dist/components/ui/types/data-table-saved-views.types.d.ts +71 -0
- package/dist/components/ui/types/helper-text.types.d.ts +5 -0
- package/dist/components/ui/types/select.types.d.ts +6 -0
- package/dist/i18n/defaultMessages.d.ts +19 -0
- package/dist/i18n/defaultMessages.js +33 -15
- package/dist/i18n/locales/de.js +19 -1
- package/dist/i18n/locales/es.js +19 -1
- package/dist/i18n/locales/hi.js +19 -1
- package/dist/i18n/locales/kn.js +19 -1
- package/dist/icons/assets/blocks.svg.js +1 -1
- package/dist/icons/assets/drawBrush.svg.js +5 -0
- package/dist/icons/assets/info-badge.svg.js +5 -0
- package/dist/icons/assets/priority-alert.svg.js +5 -0
- package/dist/icons/assets/settings.svg.js +1 -1
- package/dist/icons/assets/webp/sales.webp.js +4 -0
- package/dist/icons/index.d.ts +4 -0
- package/dist/icons/index.js +253 -245
- package/dist/impact-nova.css +1 -1
- package/dist/index.js +91 -89
- package/package.json +1 -1
|
@@ -1,61 +1,110 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { Info as
|
|
6
|
-
const
|
|
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:
|
|
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__ */
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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:
|
|
85
|
+
className: e(
|
|
46
86
|
"flex items-center gap-[6px]",
|
|
47
87
|
t && "text-destructive"
|
|
48
88
|
),
|
|
49
89
|
children: [
|
|
50
|
-
|
|
51
|
-
|
|
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:
|
|
55
|
-
"text-[
|
|
103
|
+
className: e(
|
|
104
|
+
"text-[12px] font-medium leading-[18px] text-navigation-muted",
|
|
56
105
|
t && "text-destructive"
|
|
57
106
|
),
|
|
58
|
-
children:
|
|
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
|
-
|
|
68
|
-
const
|
|
69
|
-
|
|
116
|
+
p.displayName = s.Root.displayName;
|
|
117
|
+
const v = m.forwardRef(({ className: o, ...c }, i) => /* @__PURE__ */ a(
|
|
118
|
+
s.Item,
|
|
70
119
|
{
|
|
71
|
-
ref:
|
|
72
|
-
className:
|
|
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
|
-
|
|
124
|
+
o
|
|
76
125
|
),
|
|
77
126
|
"data-component": "radio-group-item",
|
|
78
|
-
...
|
|
79
|
-
children: /* @__PURE__ */
|
|
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
|
-
|
|
131
|
+
v.displayName = s.Item.displayName;
|
|
83
132
|
export {
|
|
84
|
-
|
|
85
|
-
|
|
133
|
+
p as RadioGroup,
|
|
134
|
+
v as RadioGroupItem
|
|
86
135
|
};
|