impact-nova 1.6.6 → 1.7.0

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/README.md +50 -20
  2. package/dist/components/ui/command-palette/command-palette.d.ts +3 -3
  3. package/dist/components/ui/command-palette/command-palette.js +193 -145
  4. package/dist/components/ui/data-table/data-table-column-list.js +107 -103
  5. package/dist/components/ui/data-table/data-table-column-state.d.ts +16 -0
  6. package/dist/components/ui/data-table/data-table-column-state.js +29 -0
  7. package/dist/components/ui/data-table/data-table-constants.d.ts +6 -3
  8. package/dist/components/ui/data-table/data-table-constants.js +3 -2
  9. package/dist/components/ui/data-table/data-table-view-menu.d.ts +16 -0
  10. package/dist/components/ui/data-table/data-table-view-menu.js +133 -0
  11. package/dist/components/ui/data-table/data-table.js +36 -27
  12. package/dist/components/ui/data-table/index.d.ts +1 -1
  13. package/dist/components/ui/data-table/index.js +24 -19
  14. package/dist/components/ui/dropdown-menu.js +10 -4
  15. package/dist/components/ui/filter-strip/filter-summary.js +198 -118
  16. package/dist/components/ui/sheet.js +57 -34
  17. package/dist/components/ui/tooltip.js +37 -26
  18. package/dist/i18n/defaultMessages.d.ts +2 -0
  19. package/dist/i18n/defaultMessages.js +6 -4
  20. package/dist/i18n/locales/de.js +2 -0
  21. package/dist/i18n/locales/es.js +2 -0
  22. package/dist/i18n/locales/hi.js +2 -0
  23. package/dist/i18n/locales/kn.js +2 -0
  24. package/dist/impact-nova.css +1 -1
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.js +287 -282
  27. package/package.json +1 -1
  28. package/dist/components/ui/data-table/data-table-view-options.d.ts +0 -8
  29. package/dist/components/ui/data-table/data-table-view-options.js +0 -97
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impact-nova",
3
- "version": "1.6.6",
3
+ "version": "1.7.0",
4
4
  "description": "Enterprise-grade React design system built with React 19, Vite, Tailwind CSS, and Radix UI. Built-in internationalization (i18n) and comprehensive UI component library for scalable, accessible, and performant applications.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- interface DataTableViewOptionsProps {
3
- enableTableSettings?: boolean;
4
- enableContentDensity?: boolean;
5
- trigger?: React.ReactNode;
6
- }
7
- export declare const DataTableViewOptions: ({ enableTableSettings, enableContentDensity, trigger }: DataTableViewOptionsProps) => import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,97 +0,0 @@
1
- import { jsxs as a, jsx as t } from "react/jsx-runtime";
2
- import "react";
3
- import { DropdownMenu as p, DropdownMenuTrigger as m, DropdownMenuContent as d, DropdownMenuItem as u, DropdownMenuSub as g, DropdownMenuSubTrigger as h, DropdownMenuSubContent as f, DropdownMenuRadioGroup as x, DropdownMenuRadioItem as n } from "../dropdown-menu.js";
4
- import { Button as D } from "../button.js";
5
- import { ThreeDots as N, Settings as b, Density as w, Stack as C, StackCompact as T, StackComfort as S } from "../../../icons/index.js";
6
- import { useDataTable as v } from "./data-table-context.js";
7
- import { DataTableSheetTrigger as M } from "./data-table-sheet.js";
8
- import { useImpactNovaI18n as P } from "../../../i18n/ImpactNovaI18nContext.js";
9
- const B = ({
10
- enableTableSettings: r = !0,
11
- enableContentDensity: s = !0,
12
- trigger: i
13
- }) => {
14
- const { t: o } = P(), { rowHeight: l, setRowHeight: c } = v();
15
- return /* @__PURE__ */ a(p, { children: [
16
- /* @__PURE__ */ t(m, { asChild: !0, children: i || /* @__PURE__ */ a(D, { variant: "secondary", size: "icon", "aria-label": o("dataTable.more"), children: [
17
- /* @__PURE__ */ t(N, { size: "sm" }),
18
- /* @__PURE__ */ t("span", { className: "sr-only", children: o("dataTable.openMenu") })
19
- ] }) }),
20
- /* @__PURE__ */ a(d, { align: "end", className: "w-[240px] flex flex-col gap-[2px]", children: [
21
- r && /* @__PURE__ */ t(M, { asChild: !0, children: /* @__PURE__ */ t(
22
- u,
23
- {
24
- className: "flex cursor-pointer gap-2",
25
- onClick: (e) => e.stopPropagation(),
26
- onSelect: (e) => e.stopPropagation(),
27
- children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
28
- /* @__PURE__ */ t(b, { size: "sm", className: "text-content-muted" }),
29
- /* @__PURE__ */ t("span", { children: o("dataTable.tableSettings") })
30
- ] })
31
- }
32
- ) }),
33
- s && /* @__PURE__ */ a(g, { children: [
34
- /* @__PURE__ */ a(
35
- h,
36
- {
37
- className: "flex items-center gap-2 cursor-pointer",
38
- onClick: (e) => e.stopPropagation(),
39
- children: [
40
- /* @__PURE__ */ t(w, { size: "sm", className: "text-content-muted" }),
41
- /* @__PURE__ */ t("span", { children: o("dataTable.contentDensity") })
42
- ]
43
- }
44
- ),
45
- /* @__PURE__ */ t(f, { className: "w-[190px]", children: /* @__PURE__ */ a(
46
- x,
47
- {
48
- value: l,
49
- onValueChange: (e) => c(e),
50
- className: "flex flex-col gap-0.5",
51
- children: [
52
- /* @__PURE__ */ t(
53
- n,
54
- {
55
- value: "default",
56
- onClick: (e) => e.stopPropagation(),
57
- onSelect: (e) => e.stopPropagation(),
58
- children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
59
- /* @__PURE__ */ t(C, { size: "sm", className: "text-content-muted" }),
60
- o("dataTable.densityDefault")
61
- ] })
62
- }
63
- ),
64
- /* @__PURE__ */ t(
65
- n,
66
- {
67
- value: "compact",
68
- onClick: (e) => e.stopPropagation(),
69
- onSelect: (e) => e.stopPropagation(),
70
- children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
71
- /* @__PURE__ */ t(T, { size: "sm", className: "text-content-muted" }),
72
- o("dataTable.densityCompact")
73
- ] })
74
- }
75
- ),
76
- /* @__PURE__ */ t(
77
- n,
78
- {
79
- value: "comfort",
80
- onClick: (e) => e.stopPropagation(),
81
- onSelect: (e) => e.stopPropagation(),
82
- children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
83
- /* @__PURE__ */ t(S, { size: "sm", className: "text-content-muted" }),
84
- o("dataTable.densityComfort")
85
- ] })
86
- }
87
- )
88
- ]
89
- }
90
- ) })
91
- ] })
92
- ] })
93
- ] });
94
- };
95
- export {
96
- B as DataTableViewOptions
97
- };