impact-nova 1.5.14 → 1.6.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 (149) hide show
  1. package/dist/components/ui/accordion.d.ts +4 -1
  2. package/dist/components/ui/accordion.js +28 -22
  3. package/dist/components/ui/ag-grid-react/cell-renderers/badge-cell-renderer.js +11 -11
  4. package/dist/components/ui/ag-grid-react/cell-renderers/checkbox-display-renderer.js +12 -12
  5. package/dist/components/ui/ag-grid-react/cell-renderers/date-display-renderer.js +13 -13
  6. package/dist/components/ui/ag-grid-react/cell-renderers/editors/date-cell-editor.js +13 -13
  7. package/dist/components/ui/ag-grid-react/cell-renderers/editors/input-cell-editor.js +30 -30
  8. package/dist/components/ui/ag-grid-react/cell-renderers/editors/percent-progress-cell-editor.js +13 -13
  9. package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.js +16 -16
  10. package/dist/components/ui/ag-grid-react/cell-renderers/editors/textarea-cell-editor.js +17 -17
  11. package/dist/components/ui/ag-grid-react/cell-renderers/input-display-renderer.js +11 -11
  12. package/dist/components/ui/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +2 -2
  13. package/dist/components/ui/ag-grid-react/cell-renderers/percent-progress-display-renderer.js +11 -13
  14. package/dist/components/ui/ag-grid-react/cell-renderers/select-display-renderer.js +8 -8
  15. package/dist/components/ui/ag-grid-react/cell-renderers/split-cell-renderer.js +6 -6
  16. package/dist/components/ui/ag-grid-react/cell-renderers/status-badge-renderer.d.ts +1 -1
  17. package/dist/components/ui/ag-grid-react/cell-renderers/status-badge-renderer.js +14 -14
  18. package/dist/components/ui/ag-grid-react/cell-renderers/switch-display-renderer.js +18 -18
  19. package/dist/components/ui/ag-grid-react/cell-renderers/textarea-display-renderer.js +6 -6
  20. package/dist/components/ui/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +14 -14
  21. package/dist/components/ui/ag-grid-react/headers/advanced-filter/column-filter-section.js +35 -35
  22. package/dist/components/ui/ag-grid-react/headers/column-menu/column-settings-menu.js +49 -49
  23. package/dist/components/ui/ag-grid-react/headers/components/header-info.js +29 -29
  24. package/dist/components/ui/ag-grid-react/headers/components/info-modal.js +9 -9
  25. package/dist/components/ui/ag-grid-react/headers/components/section-renderers.js +20 -20
  26. package/dist/components/ui/ag-grid-react/headers/custom-header-group.js +10 -10
  27. package/dist/components/ui/ag-grid-react/headers/custom-header.js +76 -76
  28. package/dist/components/ui/ag-grid-react/headers/header-search-input.js +118 -118
  29. package/dist/components/ui/ag-grid-react/index.js +121 -102
  30. package/dist/components/ui/alert-dialog.js +6 -6
  31. package/dist/components/ui/alert.d.ts +4 -3
  32. package/dist/components/ui/alert.js +182 -64
  33. package/dist/components/ui/avatar.js +5 -5
  34. package/dist/components/ui/badge.d.ts +7 -2
  35. package/dist/components/ui/badge.js +105 -32
  36. package/dist/components/ui/breadcrumb.js +26 -21
  37. package/dist/components/ui/button-group.d.ts +7 -0
  38. package/dist/components/ui/button-group.js +116 -91
  39. package/dist/components/ui/button-variants.d.ts +7 -2
  40. package/dist/components/ui/button-variants.js +31 -16
  41. package/dist/components/ui/button.d.ts +2 -2
  42. package/dist/components/ui/button.js +10 -10
  43. package/dist/components/ui/calendar.js +185 -184
  44. package/dist/components/ui/card.js +24 -24
  45. package/dist/components/ui/chart/chart.js +27 -27
  46. package/dist/components/ui/chart/chart.utils.js +50 -50
  47. package/dist/components/ui/checkbox.js +22 -22
  48. package/dist/components/ui/chips.d.ts +19 -3
  49. package/dist/components/ui/chips.js +140 -41
  50. package/dist/components/ui/command-palette/command-palette-layout.d.ts +28 -0
  51. package/dist/components/ui/command-palette/command-palette-layout.js +59 -0
  52. package/dist/components/ui/command-palette/command-palette.js +254 -264
  53. package/dist/components/ui/command-palette/index.d.ts +1 -1
  54. package/dist/components/ui/command-palette/index.js +42 -41
  55. package/dist/components/ui/command-palette/kbd.js +18 -18
  56. package/dist/components/ui/command-palette/shortcut-settings.d.ts +3 -3
  57. package/dist/components/ui/command-palette/shortcut-settings.js +105 -111
  58. package/dist/components/ui/command-palette/utils.d.ts +6 -1
  59. package/dist/components/ui/command-palette/utils.js +81 -74
  60. package/dist/components/ui/data-table/data-table-column-list.js +31 -31
  61. package/dist/components/ui/data-table/data-table-constants.d.ts +6 -0
  62. package/dist/components/ui/data-table/data-table-constants.js +4 -0
  63. package/dist/components/ui/data-table/data-table-context.d.ts +4 -0
  64. package/dist/components/ui/data-table/data-table-format-options.js +35 -35
  65. package/dist/components/ui/data-table/data-table-sheet.d.ts +4 -4
  66. package/dist/components/ui/data-table/data-table-sheet.js +91 -58
  67. package/dist/components/ui/data-table/data-table-view-options.js +29 -29
  68. package/dist/components/ui/data-table/data-table.js +84 -52
  69. package/dist/components/ui/data-table/index.d.ts +1 -0
  70. package/dist/components/ui/data-table/index.js +15 -13
  71. package/dist/components/ui/date-picker/date-picker.js +35 -35
  72. package/dist/components/ui/date-picker/date-range-picker.js +166 -164
  73. package/dist/components/ui/date-picker/month-picker.js +14 -14
  74. package/dist/components/ui/date-picker/month-range-picker.js +198 -189
  75. package/dist/components/ui/date-picker/multi-date-picker.js +14 -14
  76. package/dist/components/ui/date-picker/multi-month-picker.js +1 -1
  77. package/dist/components/ui/date-picker/multi-week-picker.js +1 -1
  78. package/dist/components/ui/date-picker/week-picker.js +2 -2
  79. package/dist/components/ui/date-picker/week-range-picker.js +164 -162
  80. package/dist/components/ui/dialog.js +25 -28
  81. package/dist/components/ui/drawer.js +40 -40
  82. package/dist/components/ui/dropdown-menu.js +72 -72
  83. package/dist/components/ui/empty-container.js +73 -69
  84. package/dist/components/ui/file-upload.js +137 -135
  85. package/dist/components/ui/filter-panel/filter-panel.d.ts +2 -2
  86. package/dist/components/ui/filter-panel/filter-panel.js +175 -97
  87. package/dist/components/ui/filter-strip/filter-strip.d.ts +1 -1
  88. package/dist/components/ui/filter-strip/filter-strip.js +63 -50
  89. package/dist/components/ui/filter-strip/filter-summary.d.ts +4 -1
  90. package/dist/components/ui/filter-strip/filter-summary.js +230 -146
  91. package/dist/components/ui/filter-strip/filter-tag-list.js +125 -91
  92. package/dist/components/ui/header.d.ts +7 -3
  93. package/dist/components/ui/header.js +87 -79
  94. package/dist/components/ui/horizontal-scroller/horizontal-scroller.js +44 -44
  95. package/dist/components/ui/hover-card.js +10 -10
  96. package/dist/components/ui/input.js +79 -70
  97. package/dist/components/ui/loader.js +16 -16
  98. package/dist/components/ui/nested-list/components/NestedListCategoryFilters.js +16 -16
  99. package/dist/components/ui/nested-list/components/NestedListHeader.js +27 -27
  100. package/dist/components/ui/nested-list/components/SortableItem.js +58 -58
  101. package/dist/components/ui/notification-panel/notification-item.js +32 -32
  102. package/dist/components/ui/notification-panel/notification-list.js +24 -24
  103. package/dist/components/ui/notification-panel/notification-panel.js +26 -26
  104. package/dist/components/ui/popover.js +22 -22
  105. package/dist/components/ui/progress.js +34 -34
  106. package/dist/components/ui/prompt.js +48 -48
  107. package/dist/components/ui/radio-group.js +63 -54
  108. package/dist/components/ui/select/components/LabelWithSequence.js +6 -6
  109. package/dist/components/ui/select/components/Submenu.js +33 -33
  110. package/dist/components/ui/select/select.js +425 -376
  111. package/dist/components/ui/sheet.js +88 -66
  112. package/dist/components/ui/sidebar.js +342 -296
  113. package/dist/components/ui/skeleton.js +6 -6
  114. package/dist/components/ui/slider.js +17 -17
  115. package/dist/components/ui/statistics-card.d.ts +86 -0
  116. package/dist/components/ui/statistics-card.hooks.d.ts +150 -0
  117. package/dist/components/ui/statistics-card.hooks.js +100 -0
  118. package/dist/components/ui/statistics-card.js +259 -0
  119. package/dist/components/ui/stepper.js +51 -51
  120. package/dist/components/ui/switch.js +7 -7
  121. package/dist/components/ui/tabs.js +70 -70
  122. package/dist/components/ui/tag-group.d.ts +1 -0
  123. package/dist/components/ui/tag-group.js +14 -13
  124. package/dist/components/ui/tag.js +43 -43
  125. package/dist/components/ui/textarea.js +86 -58
  126. package/dist/components/ui/toast.js +39 -39
  127. package/dist/components/ui/tooltip.js +23 -23
  128. package/dist/components/ui/types/date-picker.types.d.ts +1 -0
  129. package/dist/components/ui/types/filter-panel.types.d.ts +3 -0
  130. package/dist/components/ui/types/filter-strip.types.d.ts +14 -0
  131. package/dist/components/ui/types/horizontal-scroller.types.d.ts +1 -1
  132. package/dist/components/ui/types/statistics-card.types.d.ts +1 -0
  133. package/dist/i18n/defaultMessages.d.ts +8 -0
  134. package/dist/i18n/defaultMessages.js +15 -9
  135. package/dist/i18n/locales/de.js +7 -1
  136. package/dist/i18n/locales/es.js +7 -1
  137. package/dist/i18n/locales/hi.js +7 -1
  138. package/dist/i18n/locales/kn.js +7 -1
  139. package/dist/icons/assets/bulk-edit.svg.js +5 -0
  140. package/dist/icons/assets/clock.svg.js +5 -0
  141. package/dist/icons/assets/statistics.svg.js +5 -0
  142. package/dist/icons/index.d.ts +3 -0
  143. package/dist/icons/index.js +254 -206
  144. package/dist/impact-nova.css +1 -1
  145. package/dist/index.d.ts +1 -0
  146. package/dist/index.js +361 -347
  147. package/package.json +3 -2
  148. package/tailwind.config.js +259 -152
  149. /package/dist/icons/assets/{PivotMode.svg.js → pivotMode.svg.js} +0 -0
@@ -1,139 +1,173 @@
1
- import { jsx as r, jsxs as o } from "react/jsx-runtime";
2
- import * as N from "react";
3
- import C from "../horizontal-scroller/horizontal-scroller.js";
4
- import { TagGroup as T } from "../tag-group.js";
5
- import { Tag as b } from "../tag.js";
6
- import { Tooltip as v, TooltipTrigger as u, TooltipContent as f } from "../tooltip.js";
7
- import { Popover as k, PopoverTrigger as S, PopoverContent as z } from "../popover.js";
8
- import { Button as j } from "../button.js";
9
- import { X as I } from "lucide-react";
10
- const O = ({
11
- remainingValues: l,
12
- viewAllTrigger: n = "expand",
13
- onViewAll: c,
14
- onItemRemove: d,
15
- isRemovable: g
1
+ import { jsx as t, jsxs as r } from "react/jsx-runtime";
2
+ import * as k from "react";
3
+ import T from "../horizontal-scroller/horizontal-scroller.js";
4
+ import { TagGroup as z } from "../tag-group.js";
5
+ import { Tag as y } from "../tag.js";
6
+ import { Tooltip as x, TooltipTrigger as f, TooltipContent as g } from "../tooltip.js";
7
+ import { Popover as j, PopoverTrigger as O, PopoverContent as I } from "../popover.js";
8
+ import { Button as P } from "../button.js";
9
+ import { X as V } from "lucide-react";
10
+ import { cn as i } from "../../../lib/utils.js";
11
+ const C = i(
12
+ "h-auto min-h-0 border-0 shadow-none",
13
+ "inline-flex items-center justify-start gap-2.5 rounded-lg bg-brand-subtle px-2 py-1.5",
14
+ "text-xs font-medium capitalize leading-4 font-['Manrope']",
15
+ "[&_[data-component=tag-remove]]:ml-0"
16
+ ), A = i(
17
+ C,
18
+ "text-content",
19
+ "hover:bg-canvas-muted"
20
+ ), N = i(
21
+ C,
22
+ "text-brand",
23
+ "hover:bg-brand-tint-hover"
24
+ ), F = ({
25
+ remainingValues: n,
26
+ viewAllTrigger: l = "expand",
27
+ onViewAll: d,
28
+ onItemRemove: m,
29
+ isRemovable: w
16
30
  }) => {
17
- const [e, m] = N.useState(!1), s = e ? l : l.slice(0, 3), p = l.length > 3, t = () => {
18
- n === "custom" ? c?.() : m(!0);
31
+ const [e, p] = k.useState(!1), s = e ? n : n.slice(0, 3), h = n.length > 3, o = () => {
32
+ l === "custom" ? d?.() : p(!0);
19
33
  };
20
- return /* @__PURE__ */ r(
21
- z,
34
+ return /* @__PURE__ */ t(
35
+ I,
22
36
  {
23
- className: "w-[200px] p-0 rounded-[8px] bg-white shadow-[0_0_4px_0_rgba(0,0,0,0.12)] border-none",
37
+ className: "w-[200px] p-0 rounded-[8px] bg-canvas-elevated shadow-elevation-floating border-none",
24
38
  align: "start",
25
39
  sideOffset: 8,
26
- children: /* @__PURE__ */ o("div", { className: "flex flex-col py-2 px-[6px]", children: [
27
- /* @__PURE__ */ r("div", { className: `flex flex-col gap-1 mb-2 ${e ? "max-h-[200px] overflow-y-auto" : ""}`, children: s.map((a, h) => /* @__PURE__ */ o("div", { className: "flex items-center justify-between text-[14px] font-medium leading-[20px] text-[#1f2b4d] px-3 py-2 overflow-hidden hover:bg-slate-50 rounded group shrink-0", children: [
28
- /* @__PURE__ */ o(v, { children: [
29
- /* @__PURE__ */ r(u, { asChild: !0, children: /* @__PURE__ */ r("span", { className: "truncate", children: String(a) }) }),
30
- /* @__PURE__ */ r(f, { variant: "tertiary", side: "right", children: String(a) })
31
- ] }),
32
- g && /* @__PURE__ */ r(
33
- "button",
34
- {
35
- onClick: (x) => {
36
- x.stopPropagation(), d(a);
40
+ children: /* @__PURE__ */ r("div", { className: "flex flex-col py-2 px-[6px]", children: [
41
+ /* @__PURE__ */ t(
42
+ "div",
43
+ {
44
+ className: `flex flex-col gap-1 mb-2 ${e ? "max-h-[200px] overflow-y-auto" : ""}`,
45
+ children: s.map((a, v) => /* @__PURE__ */ r(
46
+ "div",
47
+ {
48
+ className: "flex items-center justify-between text-[14px] font-medium leading-[20px] text-content px-3 py-2 overflow-hidden hover:bg-canvas-muted rounded group shrink-0",
49
+ children: [
50
+ /* @__PURE__ */ r(x, { children: [
51
+ /* @__PURE__ */ t(f, { asChild: !0, children: /* @__PURE__ */ t("span", { className: "truncate", children: String(a) }) }),
52
+ /* @__PURE__ */ t(g, { variant: "tertiary", side: "right", children: String(a) })
53
+ ] }),
54
+ w && /* @__PURE__ */ t(
55
+ "button",
56
+ {
57
+ onClick: (u) => {
58
+ u.stopPropagation(), m(a);
59
+ },
60
+ className: "ml-2 flex h-4 w-4 shrink-0 items-center justify-center rounded-full text-content-icon hover:bg-muted/60 hover:text-content-secondary opacity-0 group-hover:opacity-100 transition-opacity",
61
+ children: /* @__PURE__ */ t(V, { size: 12 })
62
+ }
63
+ )
64
+ ]
37
65
  },
38
- className: "ml-2 flex h-4 w-4 shrink-0 items-center justify-center rounded-full text-gray-400 hover:bg-black/5 hover:text-gray-600 opacity-0 group-hover:opacity-100 transition-opacity",
39
- children: /* @__PURE__ */ r(I, { size: 12 })
40
- }
41
- )
42
- ] }, h)) }),
43
- !e && p && /* @__PURE__ */ o("div", { className: "flex flex-col gap-2", children: [
44
- /* @__PURE__ */ r("div", { className: "h-[1px] bg-[#e6e8f0] w-full" }),
45
- /* @__PURE__ */ r(
46
- j,
66
+ v
67
+ ))
68
+ }
69
+ ),
70
+ !e && h && /* @__PURE__ */ r("div", { className: "flex flex-col gap-2", children: [
71
+ /* @__PURE__ */ t("div", { className: "h-[1px] bg-stroke-hairline w-full" }),
72
+ /* @__PURE__ */ t(
73
+ P,
47
74
  {
48
75
  variant: "secondary",
49
- size: "sm",
50
76
  className: "w-full justify-center",
51
- onClick: t,
52
- children: n === "custom" ? "View all" : `View all (${l.length})`
77
+ onClick: o,
78
+ children: l === "custom" ? "View all" : `View all (${n.length})`
53
79
  }
54
80
  )
55
81
  ] })
56
82
  ] })
57
83
  }
58
84
  );
59
- }, _ = ({
60
- filters: l,
61
- onFilterRemove: n,
62
- onOverflowClick: c,
63
- onViewAll: d
64
- }) => /* @__PURE__ */ r("div", { className: "flex flex-1 items-center min-w-0", children: /* @__PURE__ */ r(
65
- C,
85
+ }, X = ({
86
+ filters: n,
87
+ onFilterRemove: l,
88
+ onOverflowClick: d,
89
+ onViewAll: m
90
+ }) => /* @__PURE__ */ t("div", { className: "flex flex-1 items-center min-w-0", children: /* @__PURE__ */ t(
91
+ T,
66
92
  {
67
- items: l,
68
- renderItem: (e, m) => {
69
- const s = Array.isArray(e.value) ? e.value : [e.value], p = s.slice(0, 2), t = s.slice(2), a = !!e.overflow, h = e.overflow?.label ? e.overflow.label : e.overflow?.count ? `+${e.overflow.count}` : null, x = t.length > 0, y = a || x, w = `+${t.length}`;
70
- return /* @__PURE__ */ o("div", { className: "flex items-center px-1", children: [
71
- m > 0 && /* @__PURE__ */ r("div", { className: "mx-3 h-4 w-[1px] bg-[#e6e8f0] shrink-0" }),
72
- /* @__PURE__ */ o("div", { className: "flex items-center gap-2", children: [
73
- /* @__PURE__ */ o("span", { className: "text-xs font-medium leading-[21px] text-[#60697d] whitespace-nowrap", children: [
93
+ items: n,
94
+ renderItem: (e, p) => {
95
+ const s = Array.isArray(e.value) ? e.value : [e.value], h = s.slice(0, 2), o = s.slice(2), a = !!e.overflow, v = e.overflow?.label ? e.overflow.label : e.overflow?.count ? `+${e.overflow.count}` : null, u = o.length > 0, S = a || u, b = `+${o.length}`;
96
+ return /* @__PURE__ */ r("div", { className: "flex items-center px-1", children: [
97
+ p > 0 && /* @__PURE__ */ t("div", { className: "mx-3 h-4 w-[1px] bg-stroke-hairline shrink-0" }),
98
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
99
+ /* @__PURE__ */ r("span", { className: "text-xs font-medium leading-[21px] text-content-tertiary whitespace-nowrap", children: [
74
100
  e.label,
75
- e.required && /* @__PURE__ */ r("span", { className: "text-red-500 ml-0.5", children: "*" })
101
+ e.required && /* @__PURE__ */ t("span", { className: "text-validation ml-0.5", children: "*" })
76
102
  ] }),
77
- /* @__PURE__ */ o("div", { className: "flex items-center gap-1", children: [
78
- /* @__PURE__ */ r(
79
- T,
103
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-1", children: [
104
+ /* @__PURE__ */ t(
105
+ z,
80
106
  {
81
- spacing: "sm",
82
- tags: p.map((i) => ({
83
- label: String(i),
107
+ spacing: "none",
108
+ className: "gap-2.5",
109
+ tags: h.map((c) => ({
110
+ label: String(c),
84
111
  variant: "secondary",
85
- size: "md",
112
+ size: "sm",
86
113
  shape: "rounded",
87
114
  removable: e.removable,
88
- onRemove: () => n(e.id, i)
115
+ onRemove: () => l(e.id, c),
116
+ className: A
89
117
  }))
90
118
  }
91
119
  ),
92
- y && (a ? (
120
+ S && (a ? (
93
121
  // Server-side overflow: Simple tag, no popover
94
- /* @__PURE__ */ o(v, { children: [
95
- /* @__PURE__ */ r(u, { asChild: !0, children: /* @__PURE__ */ r(
96
- b,
122
+ /* @__PURE__ */ r(x, { children: [
123
+ /* @__PURE__ */ t(f, { asChild: !0, children: /* @__PURE__ */ t(
124
+ y,
97
125
  {
98
126
  variant: "secondary",
99
- size: "md",
127
+ size: "sm",
100
128
  shape: "rounded",
101
- className: "whitespace-nowrap bg-[#eceefd] text-[#4259ee] hover:bg-[#dce1fc] border-0 h-6 px-2 text-xs font-medium font-['Manrope'] cursor-pointer",
102
- onClick: () => c?.(e.id),
103
- children: h || w
129
+ className: i(
130
+ N,
131
+ "cursor-pointer whitespace-nowrap"
132
+ ),
133
+ onClick: () => d?.(e.id),
134
+ children: v || b
104
135
  }
105
136
  ) }),
106
- /* @__PURE__ */ o(f, { variant: "tertiary", side: "top", children: [
107
- e.overflow?.count || t.length,
137
+ /* @__PURE__ */ r(g, { variant: "tertiary", side: "top", children: [
138
+ e.overflow?.count || o.length,
108
139
  " more filters"
109
140
  ] })
110
141
  ] })
111
142
  ) : (
112
143
  // Client-side overflow: Popover
113
- /* @__PURE__ */ o(k, { children: [
114
- /* @__PURE__ */ o(v, { children: [
115
- /* @__PURE__ */ r(u, { asChild: !0, children: /* @__PURE__ */ r(S, { asChild: !0, children: /* @__PURE__ */ r(
116
- b,
144
+ /* @__PURE__ */ r(j, { children: [
145
+ /* @__PURE__ */ r(x, { children: [
146
+ /* @__PURE__ */ t(f, { asChild: !0, children: /* @__PURE__ */ t(O, { asChild: !0, children: /* @__PURE__ */ t(
147
+ y,
117
148
  {
118
149
  variant: "secondary",
119
- size: "md",
150
+ size: "sm",
120
151
  shape: "rounded",
121
- className: "whitespace-nowrap bg-[#eceefd] text-[#4259ee] hover:bg-[#dce1fc] border-0 h-6 px-2 text-xs font-medium font-['Manrope'] cursor-pointer",
122
- children: w
152
+ className: i(
153
+ N,
154
+ "cursor-pointer whitespace-nowrap"
155
+ ),
156
+ children: b
123
157
  }
124
158
  ) }) }),
125
- /* @__PURE__ */ o(f, { variant: "tertiary", side: "top", children: [
126
- t.length,
159
+ /* @__PURE__ */ r(g, { variant: "tertiary", side: "top", children: [
160
+ o.length,
127
161
  " more filters"
128
162
  ] })
129
163
  ] }),
130
- /* @__PURE__ */ r(
131
- O,
164
+ /* @__PURE__ */ t(
165
+ F,
132
166
  {
133
- remainingValues: t,
167
+ remainingValues: o,
134
168
  viewAllTrigger: e.viewAllTrigger,
135
- onViewAll: d,
136
- onItemRemove: (i) => n(e.id, i),
169
+ onViewAll: m,
170
+ onItemRemove: (c) => l(e.id, c),
137
171
  isRemovable: e.removable
138
172
  }
139
173
  )
@@ -148,5 +182,5 @@ const O = ({
148
182
  }
149
183
  ) });
150
184
  export {
151
- _ as FilterTagList
185
+ X as FilterTagList
152
186
  };
@@ -1,3 +1,4 @@
1
+ import { KeyBinding } from './command-palette/utils';
1
2
  import * as React from "react";
2
3
  declare const Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
3
4
  declare const HeaderLeft: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
@@ -5,11 +6,14 @@ declare const HeaderRight: React.ForwardRefExoticComponent<React.HTMLAttributes<
5
6
  declare const HeaderLogo: React.ForwardRefExoticComponent<React.AnchorHTMLAttributes<HTMLAnchorElement> & React.RefAttributes<HTMLAnchorElement>>;
6
7
  declare const HeaderSeparator: React.ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-separator').SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
8
  declare const HeaderTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
8
- interface HeaderBotButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
9
- }
9
+ type HeaderBotButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
10
10
  declare const HeaderBotButton: React.ForwardRefExoticComponent<HeaderBotButtonProps & React.RefAttributes<HTMLButtonElement>>;
11
- interface NotificationIconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
11
+ interface NotificationIconButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children"> {
12
12
  showIndicator?: boolean;
13
+ /** Passed through to the underlying icon `Button` tooltip. */
14
+ tooltipSide?: "top" | "bottom" | "left" | "right";
15
+ /** Keyboard shortcut shown in the tooltip next to the label (requires `aria-label`). */
16
+ tooltipKeybinding?: KeyBinding;
13
17
  }
14
18
  declare const NotificationIconButton: React.ForwardRefExoticComponent<NotificationIconButtonProps & React.RefAttributes<HTMLButtonElement>>;
15
19
  export { Header, HeaderLeft, HeaderRight, HeaderLogo, HeaderSeparator, HeaderTitle, HeaderBotButton, NotificationIconButton, };
@@ -1,130 +1,138 @@
1
- import { jsx as i, jsxs as c, Fragment as l } from "react/jsx-runtime";
2
- import * as o from "react";
3
- import { cn as s } from "../../lib/utils.js";
4
- import { Button as f } from "./button.js";
5
- import { Separator as m } from "./separator.js";
6
- import { Alan as p, IA as x, Bell as h } from "../../icons/index.js";
1
+ import { jsx as o, jsxs as d, Fragment as f } from "react/jsx-runtime";
2
+ import * as i from "react";
3
+ import { cn as n } from "../../lib/utils.js";
4
+ import { Button as m } from "./button.js";
5
+ import { Separator as p } from "./separator.js";
6
+ import { Alan as x, IA as h, Bell as N } from "../../icons/index.js";
7
7
  /* empty css */
8
- import { useImpactNovaI18n as N } from "../../i18n/ImpactNovaI18nContext.js";
9
- const u = o.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__ */ i(
10
- "header",
11
- {
12
- ref: r,
13
- className: s(
14
- "sticky top-0 z-40 flex h-14 w-full items-center justify-between bg-white px-6 shadow-[0px_0px_16px_2px_rgba(0,0,0,0.0588)]",
15
- t
16
- ),
17
- ...a,
18
- children: e
19
- }
20
- ));
21
- u.displayName = "Header";
22
- const w = o.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__ */ i(
8
+ import { useImpactNovaI18n as u } from "../../i18n/ImpactNovaI18nContext.js";
9
+ const g = i.forwardRef(
10
+ ({ className: t, children: e, ...a }, r) => /* @__PURE__ */ o(
11
+ "header",
12
+ {
13
+ ref: r,
14
+ className: n(
15
+ "sticky top-0 z-40 flex h-14 w-full items-center justify-between bg-canvas-elevated px-6 shadow-elevation-header",
16
+ t
17
+ ),
18
+ ...a,
19
+ children: e
20
+ }
21
+ )
22
+ );
23
+ g.displayName = "Header";
24
+ const v = i.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__ */ o(
23
25
  "div",
24
26
  {
25
27
  ref: r,
26
- className: s("flex flex-row items-center justify-start", t),
28
+ className: n("flex flex-row items-center justify-start", t),
27
29
  ...a,
28
30
  children: e
29
31
  }
30
32
  ));
31
- w.displayName = "HeaderLeft";
32
- const g = o.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__ */ i(
33
+ v.displayName = "HeaderLeft";
34
+ const w = i.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__ */ o(
33
35
  "div",
34
36
  {
35
37
  ref: r,
36
- className: s("flex flex-row items-center justify-start gap-5", t),
38
+ className: n("flex flex-row items-center justify-start gap-5", t),
37
39
  ...a,
38
40
  children: e
39
41
  }
40
42
  ));
41
- g.displayName = "HeaderRight";
42
- const y = o.forwardRef(({ className: t, children: e, href: a = "/", ...r }, n) => /* @__PURE__ */ i(
43
+ w.displayName = "HeaderRight";
44
+ const y = i.forwardRef(({ className: t, children: e, href: a = "/", ...r }, s) => /* @__PURE__ */ o(
43
45
  "a",
44
46
  {
45
47
  href: a,
46
- ref: n,
47
- className: s("h-9 flex items-center justify-center cursor-pointer", t),
48
+ ref: s,
49
+ className: n(
50
+ "h-9 flex items-center justify-center cursor-pointer",
51
+ t
52
+ ),
48
53
  ...r,
49
- children: e || /* @__PURE__ */ i(x, { width: 91, height: 36 })
54
+ children: e || /* @__PURE__ */ o(h, { width: 91, height: 36 })
50
55
  }
51
56
  ));
52
57
  y.displayName = "HeaderLogo";
53
- const v = o.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ i(
54
- m,
58
+ const H = i.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o(
59
+ p,
55
60
  {
56
61
  ref: a,
57
62
  orientation: "vertical",
58
- className: s("h-6 mx-3", t),
63
+ className: n("h-6 mx-3", t),
59
64
  ...e
60
65
  }
61
66
  ));
62
- v.displayName = "HeaderSeparator";
63
- const H = o.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__ */ i(
67
+ H.displayName = "HeaderSeparator";
68
+ const b = i.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__ */ o(
64
69
  "h1",
65
70
  {
66
71
  ref: r,
67
- className: s(
68
- "text-base font-extrabold leading-6 text-foreground",
69
- t
70
- ),
72
+ className: n("text-base font-extrabold leading-6 text-content", t),
71
73
  ...a,
72
74
  children: e
73
75
  }
74
76
  ));
75
- H.displayName = "HeaderTitle";
76
- const L = o.forwardRef(
77
- ({ className: t, children: e, ...a }, r) => /* @__PURE__ */ i(
78
- "button",
79
- {
80
- ref: r,
81
- type: "button",
82
- className: s(
83
- "impact-header-bot-container relative flex items-center justify-center w-[106px] h-[34px] gap-[7px] px-[11px] py-0 rounded-lg cursor-pointer border-0 outline-none",
84
- t
85
- ),
86
- ...a,
87
- children: e || /* @__PURE__ */ c(l, { children: [
88
- /* @__PURE__ */ i(p, { size: 20, className: "text-white" }),
89
- /* @__PURE__ */ i("span", { className: "text-sm font-semibold leading-[20px] text-white whitespace-nowrap", children: "Ask Alan" })
90
- ] })
91
- }
92
- )
93
- ), b = o.forwardRef(
94
- ({ className: t, showIndicator: e, children: a, ...r }, n) => {
95
- const { t: d } = N();
96
- return /* @__PURE__ */ c(
97
- f,
77
+ b.displayName = "HeaderTitle";
78
+ const k = i.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__ */ o(
79
+ "button",
80
+ {
81
+ ref: r,
82
+ type: "button",
83
+ className: n(
84
+ "impact-header-bot-container relative flex items-center justify-center w-[106px] h-[34px] gap-[7px] px-[11px] py-0 rounded-lg cursor-pointer border-0 outline-none",
85
+ t
86
+ ),
87
+ ...a,
88
+ children: e || /* @__PURE__ */ d(f, { children: [
89
+ /* @__PURE__ */ o(x, { size: 20, className: "text-brand-foreground" }),
90
+ /* @__PURE__ */ o("span", { className: "text-sm font-semibold leading-[20px] text-brand-foreground whitespace-nowrap", children: "Ask Alan" })
91
+ ] })
92
+ }
93
+ )), R = i.forwardRef(
94
+ ({
95
+ className: t,
96
+ showIndicator: e,
97
+ tooltipSide: a = "top",
98
+ tooltipKeybinding: r,
99
+ ...s
100
+ }, c) => {
101
+ const { t: l } = u();
102
+ return /* @__PURE__ */ d(
103
+ m,
98
104
  {
99
105
  variant: "ghost",
100
106
  size: "icon",
101
- ref: n,
102
- "aria-label": d("notificationPanel.title"),
107
+ ref: c,
108
+ "aria-label": l("notificationPanel.title"),
109
+ tooltipSide: a,
110
+ tooltipKeybinding: r,
103
111
  "data-indicator": e ? "" : void 0,
104
- className: s(
105
- "text-gray-500 relative [&_svg]:size-6 hover:text-gray-900",
112
+ className: n(
113
+ "relative text-content-header-notification [&_svg]:size-6 hover:text-content",
106
114
  t
107
115
  ),
108
- ...r,
116
+ ...s,
109
117
  children: [
110
- /* @__PURE__ */ i(h, { size: 24 }),
111
- e && /* @__PURE__ */ c("div", { className: "notification-indicator", children: [
112
- /* @__PURE__ */ i("div", { className: "notification-pulse" }),
113
- /* @__PURE__ */ i("div", { className: "notification-dot" })
118
+ /* @__PURE__ */ o(N, { size: 24 }),
119
+ e && /* @__PURE__ */ d("div", { className: "notification-indicator", children: [
120
+ /* @__PURE__ */ o("div", { className: "notification-pulse" }),
121
+ /* @__PURE__ */ o("div", { className: "notification-dot" })
114
122
  ] })
115
123
  ]
116
124
  }
117
125
  );
118
126
  }
119
127
  );
120
- b.displayName = "NotificationIconButton";
128
+ R.displayName = "NotificationIconButton";
121
129
  export {
122
- u as Header,
123
- L as HeaderBotButton,
124
- w as HeaderLeft,
130
+ g as Header,
131
+ k as HeaderBotButton,
132
+ v as HeaderLeft,
125
133
  y as HeaderLogo,
126
- g as HeaderRight,
127
- v as HeaderSeparator,
128
- H as HeaderTitle,
129
- b as NotificationIconButton
134
+ w as HeaderRight,
135
+ H as HeaderSeparator,
136
+ b as HeaderTitle,
137
+ R as NotificationIconButton
130
138
  };