impact-nova 1.3.0 → 1.5.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/README.md +49 -0
- package/dist/components/layout/dashboard-layout.d.ts +15 -1
- package/dist/components/ui/accordion-nested-list/accordion-nested-list.js +65 -64
- package/dist/components/ui/accordion.js +38 -34
- package/dist/components/ui/ag-grid-react/cell-renderers/badge-cell-renderer.js +1 -1
- package/dist/components/ui/ag-grid-react/cell-renderers/cell-renderer-utils.d.ts +58 -0
- package/dist/components/ui/ag-grid-react/cell-renderers/cell-renderer-utils.js +104 -0
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/input-cell-editor.js +62 -54
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.d.ts +4 -6
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.js +54 -68
- package/dist/components/ui/ag-grid-react/cell-renderers/index.d.ts +3 -1
- package/dist/components/ui/ag-grid-react/cell-renderers/index.js +33 -27
- package/dist/components/ui/ag-grid-react/cell-renderers/input-display-renderer.d.ts +3 -0
- package/dist/components/ui/ag-grid-react/cell-renderers/input-display-renderer.js +28 -12
- package/dist/components/ui/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.d.ts +2 -0
- package/dist/components/ui/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +45 -44
- package/dist/components/ui/ag-grid-react/cell-renderers/split-cell-renderer.d.ts +4 -6
- package/dist/components/ui/ag-grid-react/cell-renderers/split-cell-renderer.js +23 -37
- package/dist/components/ui/ag-grid-react/cell-renderers/types.d.ts +33 -17
- package/dist/components/ui/ag-grid-react/editable-utils.d.ts +27 -0
- package/dist/components/ui/ag-grid-react/editable-utils.js +62 -0
- package/dist/components/ui/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +99 -98
- package/dist/components/ui/ag-grid-react/headers/advanced-filter/column-filter-section.js +110 -143
- package/dist/components/ui/ag-grid-react/headers/column-menu/column-settings-menu.js +72 -69
- package/dist/components/ui/ag-grid-react/headers/components/header-info.js +36 -35
- package/dist/components/ui/ag-grid-react/headers/components/info-modal.js +14 -12
- package/dist/components/ui/ag-grid-react/headers/custom-header.js +111 -110
- package/dist/components/ui/ag-grid-react/headers/header-search-input.js +204 -203
- package/dist/components/ui/alert.js +62 -58
- package/dist/components/ui/breadcrumb.js +81 -74
- package/dist/components/ui/calendar.js +354 -354
- package/dist/components/ui/chart/chart.js +63 -62
- package/dist/components/ui/chips.js +42 -38
- package/dist/components/ui/command-palette/command-palette-context.d.ts +52 -0
- package/dist/components/ui/command-palette/command-palette-context.js +110 -0
- package/dist/components/ui/command-palette/command-palette.d.ts +67 -0
- package/dist/components/ui/command-palette/command-palette.js +402 -0
- package/dist/components/ui/command-palette/index.d.ts +23 -0
- package/dist/components/ui/command-palette/index.js +44 -0
- package/dist/components/ui/command-palette/kbd.d.ts +28 -0
- package/dist/components/ui/command-palette/kbd.js +52 -0
- package/dist/components/ui/command-palette/shortcut-registry.d.ts +68 -0
- package/dist/components/ui/command-palette/shortcut-registry.js +183 -0
- package/dist/components/ui/command-palette/shortcut-scope-provider.d.ts +55 -0
- package/dist/components/ui/command-palette/shortcut-scope-provider.js +55 -0
- package/dist/components/ui/command-palette/shortcut-settings.d.ts +27 -0
- package/dist/components/ui/command-palette/shortcut-settings.js +266 -0
- package/dist/components/ui/command-palette/use-browser-shortcuts.d.ts +32 -0
- package/dist/components/ui/command-palette/use-browser-shortcuts.js +48 -0
- package/dist/components/ui/command-palette/use-global-shortcut.d.ts +3 -0
- package/dist/components/ui/command-palette/use-global-shortcut.js +7 -0
- package/dist/components/ui/command-palette/use-shortcut.d.ts +47 -0
- package/dist/components/ui/command-palette/use-shortcut.js +49 -0
- package/dist/components/ui/command-palette/utils.d.ts +119 -0
- package/dist/components/ui/command-palette/utils.js +248 -0
- package/dist/components/ui/data-table/data-table-column-list.js +87 -86
- package/dist/components/ui/data-table/data-table-format-options.js +45 -44
- package/dist/components/ui/data-table/data-table-view-options.js +39 -38
- package/dist/components/ui/date-picker/date-picker.js +89 -87
- package/dist/components/ui/date-picker/date-range-picker.js +140 -138
- package/dist/components/ui/date-picker/month-picker.js +82 -81
- package/dist/components/ui/date-picker/month-range-picker.js +108 -105
- package/dist/components/ui/date-picker/multi-date-picker.js +68 -66
- package/dist/components/ui/date-picker/multi-month-picker.js +59 -58
- package/dist/components/ui/date-picker/multi-week-picker.js +80 -78
- package/dist/components/ui/date-picker/week-picker.js +117 -115
- package/dist/components/ui/date-picker/week-range-picker.js +166 -164
- package/dist/components/ui/dialog.js +78 -73
- package/dist/components/ui/drawer.js +71 -66
- package/dist/components/ui/file-upload.js +131 -127
- package/dist/components/ui/filter-panel/filter-panel.js +98 -94
- package/dist/components/ui/filter-strip/filter-strip.js +95 -91
- package/dist/components/ui/filter-strip/filter-summary.js +91 -90
- package/dist/components/ui/header.js +57 -53
- package/dist/components/ui/horizontal-scroller/horizontal-scroller.js +78 -76
- package/dist/components/ui/loader.js +17 -16
- package/dist/components/ui/nested-list/components/NestedListHeader.d.ts +1 -0
- package/dist/components/ui/nested-list/components/NestedListHeader.js +51 -48
- package/dist/components/ui/nested-list/components/SortableItem.js +60 -59
- package/dist/components/ui/nested-list/nested-list.js +184 -182
- package/dist/components/ui/notification-panel/notification-panel.js +60 -53
- package/dist/components/ui/popover.js +45 -40
- package/dist/components/ui/prompt.js +90 -86
- package/dist/components/ui/select/select.js +206 -209
- package/dist/components/ui/sheet.d.ts +1 -0
- package/dist/components/ui/sheet.js +50 -48
- package/dist/components/ui/sidebar.js +273 -267
- package/dist/components/ui/stepper.js +75 -63
- package/dist/components/ui/tag.js +48 -44
- package/dist/components/ui/toast.js +46 -41
- package/dist/i18n/ImpactNovaI18nContext.d.ts +21 -0
- package/dist/i18n/ImpactNovaI18nContext.js +76 -0
- package/dist/i18n/defaultMessages.d.ts +231 -0
- package/dist/i18n/defaultMessages.js +206 -0
- package/dist/i18n/getDateFnsLocale.d.ts +11 -0
- package/dist/i18n/getDateFnsLocale.js +21 -0
- package/dist/i18n/index.d.ts +5 -0
- package/dist/i18n/locales/de.d.ts +2 -0
- package/dist/i18n/locales/de.js +206 -0
- package/dist/i18n/locales/es.d.ts +2 -0
- package/dist/i18n/locales/es.js +206 -0
- package/dist/i18n/locales/hi.d.ts +2 -0
- package/dist/i18n/locales/hi.js +206 -0
- package/dist/i18n/locales/index.d.ts +4 -0
- package/dist/i18n/locales/kn.d.ts +2 -0
- package/dist/i18n/locales/kn.js +206 -0
- package/dist/icons/assets/boxAdd.svg.js +5 -0
- package/dist/icons/assets/boxed.svg.js +5 -0
- package/dist/icons/assets/trolley.svg.js +5 -0
- package/dist/icons/assets/unlocked.svg.js +5 -0
- package/dist/icons/index.d.ts +4 -0
- package/dist/icons/index.js +179 -171
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +232 -172
- package/package.json +36 -4
- package/dist/components/ui/ag-grid-react/cell-renderers/types.js +0 -74
|
@@ -11,6 +11,7 @@ declare const sheetVariants: (props?: {
|
|
|
11
11
|
} & import('class-variance-authority/types').ClassProp) => string;
|
|
12
12
|
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
13
13
|
expandable?: boolean;
|
|
14
|
+
defaultExpanded?: boolean;
|
|
14
15
|
}
|
|
15
16
|
declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
17
|
declare const SheetHeader: {
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import * as n from "react";
|
|
3
3
|
import * as o from "@radix-ui/react-dialog";
|
|
4
|
-
import { cva as
|
|
5
|
-
import { ChevronDown as
|
|
4
|
+
import { cva as v } from "class-variance-authority";
|
|
5
|
+
import { ChevronDown as S, ChevronUp as w, X as C } from "lucide-react";
|
|
6
6
|
import { cn as r } from "../../lib/utils.js";
|
|
7
|
-
import { Tooltip as
|
|
8
|
-
|
|
7
|
+
import { Tooltip as g, TooltipTrigger as x, TooltipContent as b } from "./tooltip.js";
|
|
8
|
+
import { useImpactNovaI18n as T } from "../../i18n/ImpactNovaI18nContext.js";
|
|
9
|
+
const y = n.createContext({
|
|
9
10
|
isExpanded: !1,
|
|
10
11
|
expandable: !1,
|
|
11
12
|
side: "right"
|
|
12
|
-
}),
|
|
13
|
+
}), X = o.Root, q = o.Trigger, k = o.Close, E = o.Portal, N = n.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e(
|
|
13
14
|
o.Overlay,
|
|
14
15
|
{
|
|
15
16
|
className: r(
|
|
@@ -20,8 +21,8 @@ const u = n.createContext({
|
|
|
20
21
|
ref: s
|
|
21
22
|
}
|
|
22
23
|
));
|
|
23
|
-
|
|
24
|
-
const
|
|
24
|
+
N.displayName = o.Overlay.displayName;
|
|
25
|
+
const R = v(
|
|
25
26
|
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
26
27
|
{
|
|
27
28
|
variants: {
|
|
@@ -36,78 +37,79 @@ const k = N(
|
|
|
36
37
|
side: "right"
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
|
-
),
|
|
40
|
-
const [
|
|
41
|
-
|
|
40
|
+
), D = n.forwardRef(({ side: t = "right", className: a, children: s, expandable: d = !1, defaultExpanded: l = !1, ...f }, u) => {
|
|
41
|
+
const [h, c] = n.useState(l), m = n.useCallback(() => {
|
|
42
|
+
c((p) => !p);
|
|
42
43
|
}, []);
|
|
43
|
-
return /* @__PURE__ */ e(
|
|
44
|
-
/* @__PURE__ */ e(
|
|
44
|
+
return /* @__PURE__ */ e(y.Provider, { value: { isExpanded: h, onExpandToggle: m, expandable: d, side: t || void 0 }, children: /* @__PURE__ */ i(E, { children: [
|
|
45
|
+
/* @__PURE__ */ e(N, {}),
|
|
45
46
|
/* @__PURE__ */ e(
|
|
46
47
|
o.Content,
|
|
47
48
|
{
|
|
48
|
-
ref:
|
|
49
|
+
ref: u,
|
|
49
50
|
"data-component": "sheet-content",
|
|
50
51
|
className: r(
|
|
51
|
-
|
|
52
|
+
R({ side: t }),
|
|
52
53
|
"flex flex-col p-0 transition-all duration-300",
|
|
53
|
-
t === "bottom" && (
|
|
54
|
+
t === "bottom" && (h ? "h-[96vh]" : "h-[40vh]"),
|
|
54
55
|
a
|
|
55
56
|
),
|
|
56
|
-
...
|
|
57
|
+
...f,
|
|
57
58
|
children: s
|
|
58
59
|
}
|
|
59
60
|
)
|
|
60
61
|
] }) });
|
|
61
62
|
});
|
|
62
|
-
|
|
63
|
-
const
|
|
63
|
+
D.displayName = o.Content.displayName;
|
|
64
|
+
const L = ({
|
|
64
65
|
className: t,
|
|
65
66
|
children: a,
|
|
66
67
|
...s
|
|
67
68
|
}) => {
|
|
68
|
-
const {
|
|
69
|
+
const { t: d } = T(), { isExpanded: l, onExpandToggle: f, expandable: u, side: h } = n.useContext(y), c = d("aria.close"), m = d("nestedList.expand"), p = d("nestedList.collapse");
|
|
69
70
|
return /* @__PURE__ */ i(
|
|
70
71
|
"div",
|
|
71
72
|
{
|
|
72
73
|
className: r(
|
|
73
74
|
"flex px-4 py-4 shrink-0 items-center justify-between bg-light-blue border-b",
|
|
74
|
-
|
|
75
|
+
h === "bottom" && "rounded-t-lg",
|
|
75
76
|
t
|
|
76
77
|
),
|
|
77
78
|
...s,
|
|
78
79
|
children: [
|
|
79
80
|
/* @__PURE__ */ e("div", { className: "flex flex-col space-y-1 text-center sm:text-left", children: a }),
|
|
80
81
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
81
|
-
|
|
82
|
-
/* @__PURE__ */ e(
|
|
82
|
+
u && /* @__PURE__ */ i(g, { children: [
|
|
83
|
+
/* @__PURE__ */ e(x, { asChild: !0, children: /* @__PURE__ */ i(
|
|
83
84
|
"button",
|
|
84
85
|
{
|
|
85
86
|
type: "button",
|
|
86
87
|
"data-component": "sheet-expand-toggle",
|
|
87
|
-
onClick:
|
|
88
|
+
onClick: f,
|
|
88
89
|
className: "rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none",
|
|
90
|
+
"aria-label": l ? p : m,
|
|
89
91
|
children: [
|
|
90
|
-
|
|
91
|
-
/* @__PURE__ */ e("span", { className: "sr-only", children:
|
|
92
|
+
l ? /* @__PURE__ */ e(S, { className: "h-4 w-4" }) : /* @__PURE__ */ e(w, { className: "h-4 w-4" }),
|
|
93
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: l ? p : m })
|
|
92
94
|
]
|
|
93
95
|
}
|
|
94
96
|
) }),
|
|
95
|
-
/* @__PURE__ */ e(
|
|
97
|
+
/* @__PURE__ */ e(b, { variant: "tertiary", side: "top", children: l ? p : m })
|
|
96
98
|
] }),
|
|
97
|
-
/* @__PURE__ */ i(
|
|
98
|
-
/* @__PURE__ */ e(
|
|
99
|
-
/* @__PURE__ */ e(
|
|
100
|
-
/* @__PURE__ */ e("span", { className: "sr-only", children:
|
|
99
|
+
/* @__PURE__ */ i(g, { children: [
|
|
100
|
+
/* @__PURE__ */ e(x, { asChild: !0, children: /* @__PURE__ */ i(k, { "data-component": "sheet-close", className: "rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", "aria-label": c, children: [
|
|
101
|
+
/* @__PURE__ */ e(C, { className: "h-4 w-4" }),
|
|
102
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: c })
|
|
101
103
|
] }) }),
|
|
102
|
-
/* @__PURE__ */ e(
|
|
104
|
+
/* @__PURE__ */ e(b, { variant: "tertiary", side: "top", children: c })
|
|
103
105
|
] })
|
|
104
106
|
] })
|
|
105
107
|
]
|
|
106
108
|
}
|
|
107
109
|
);
|
|
108
110
|
};
|
|
109
|
-
|
|
110
|
-
const
|
|
111
|
+
L.displayName = "SheetHeader";
|
|
112
|
+
const j = ({
|
|
111
113
|
className: t,
|
|
112
114
|
...a
|
|
113
115
|
}) => /* @__PURE__ */ e(
|
|
@@ -117,8 +119,8 @@ const D = ({
|
|
|
117
119
|
...a
|
|
118
120
|
}
|
|
119
121
|
);
|
|
120
|
-
|
|
121
|
-
const
|
|
122
|
+
j.displayName = "SheetBody";
|
|
123
|
+
const P = ({
|
|
122
124
|
className: t,
|
|
123
125
|
...a
|
|
124
126
|
}) => /* @__PURE__ */ e(
|
|
@@ -132,8 +134,8 @@ const j = ({
|
|
|
132
134
|
children: a.children
|
|
133
135
|
}
|
|
134
136
|
);
|
|
135
|
-
|
|
136
|
-
const
|
|
137
|
+
P.displayName = "SheetFooter";
|
|
138
|
+
const I = n.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e(
|
|
137
139
|
o.Title,
|
|
138
140
|
{
|
|
139
141
|
ref: s,
|
|
@@ -142,7 +144,7 @@ const P = n.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e(
|
|
|
142
144
|
...a
|
|
143
145
|
}
|
|
144
146
|
));
|
|
145
|
-
|
|
147
|
+
I.displayName = o.Title.displayName;
|
|
146
148
|
const O = n.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e(
|
|
147
149
|
o.Description,
|
|
148
150
|
{
|
|
@@ -153,15 +155,15 @@ const O = n.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e(
|
|
|
153
155
|
));
|
|
154
156
|
O.displayName = o.Description.displayName;
|
|
155
157
|
export {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
X as Sheet,
|
|
159
|
+
j as SheetBody,
|
|
160
|
+
k as SheetClose,
|
|
161
|
+
D as SheetContent,
|
|
160
162
|
O as SheetDescription,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
163
|
+
P as SheetFooter,
|
|
164
|
+
L as SheetHeader,
|
|
165
|
+
N as SheetOverlay,
|
|
166
|
+
E as SheetPortal,
|
|
167
|
+
I as SheetTitle,
|
|
168
|
+
q as SheetTrigger
|
|
167
169
|
};
|