impact-nova 2.1.0-alpha.3 → 2.1.0-alpha.5
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/data/ag-grid-react/ag-grid-tooltip-overflow.d.ts +3 -0
- package/dist/components/data/ag-grid-react/ag-grid-tooltip-overflow.js +6 -0
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +15 -21
- package/dist/components/data/ag-grid-react/cell-renderers/date-display-renderer.js +1 -1
- package/dist/components/data/ag-grid-react/cell-renderers/default-text-cell-renderer.d.ts +1 -2
- package/dist/components/data/ag-grid-react/cell-renderers/default-text-cell-renderer.js +12 -6
- package/dist/components/data/ag-grid-react/cell-renderers/editors/textarea-cell-editor.js +19 -19
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +1 -1
- package/dist/components/data/ag-grid-react/cell-renderers/switch-display-renderer.js +15 -15
- package/dist/components/data/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +1 -1
- package/dist/components/data/ag-grid-react/headers/advanced-filter/column-filter-section.js +33 -33
- package/dist/components/data/ag-grid-react/headers/components/header-info.js +66 -62
- package/dist/components/data/ag-grid-react/headers/components/info-modal.js +6 -6
- package/dist/components/data/ag-grid-react/headers/components/section-renderers.js +18 -18
- package/dist/components/data/ag-grid-react/headers/custom-header-group.js +40 -29
- package/dist/components/data/ag-grid-react/headers/custom-header.js +102 -98
- package/dist/components/data/ag-grid-react/index.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.js +156 -148
- package/dist/components/data/ag-grid-react/theme.js +3 -0
- package/dist/components/data/ag-grid-react/use-ag-grid-truncation-tooltip.d.ts +5 -0
- package/dist/components/data/ag-grid-react/use-ag-grid-truncation-tooltip.js +13 -0
- package/dist/components/data/ag-grid-react/useGridAutoSizeStrategyOnResize.js +8 -5
- package/dist/components/data/data-table/data-table-column-apply.d.ts +16 -0
- package/dist/components/data/data-table/data-table-column-apply.js +18 -0
- package/dist/components/data/data-table/data-table-column-list.d.ts +13 -3
- package/dist/components/data/data-table/data-table-column-list.js +198 -191
- package/dist/components/data/data-table/data-table-constants.d.ts +3 -4
- package/dist/components/data/data-table/data-table-context.d.ts +3 -6
- package/dist/components/data/data-table/data-table-context.js +21 -10
- package/dist/components/data/data-table/data-table-saved-views.js +26 -26
- package/dist/components/data/data-table/data-table-sheet-portal-store.d.ts +13 -0
- package/dist/components/data/data-table/data-table-sheet-portal-store.js +36 -0
- package/dist/components/data/data-table/data-table-sheet.d.ts +3 -6
- package/dist/components/data/data-table/data-table-sheet.js +1 -1
- package/dist/components/data/data-table/data-table-view-menu.js +40 -40
- package/dist/components/data/data-table/data-table.d.ts +8 -10
- package/dist/components/data/data-table/data-table.js +131 -113
- package/dist/components/data/data-table/data-table.types.d.ts +35 -0
- package/dist/components/data/data-table/index.js +28 -27
- package/dist/components/data/data-table/indicator-legend.js +6 -6
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.d.ts +8 -0
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +72 -0
- package/dist/components/data/expandable-list-item/expandable-list-item-context.d.ts +13 -0
- package/dist/components/data/expandable-list-item/expandable-list-item-context.js +25 -0
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.d.ts +6 -0
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +41 -0
- package/dist/components/data/expandable-list-item/expandable-list-item-parts.d.ts +31 -0
- package/dist/components/data/expandable-list-item/expandable-list-item-parts.js +233 -0
- package/dist/components/data/expandable-list-item/expandable-list-item-preset.d.ts +18 -0
- package/dist/components/data/expandable-list-item/expandable-list-item-preset.js +133 -0
- package/dist/components/data/expandable-list-item/expandable-list-item.d.ts +5 -0
- package/dist/components/data/{expandable-sku/expandable-sku.types.d.ts → expandable-list-item/expandable-list-item.types.d.ts} +7 -7
- package/dist/components/data/expandable-list-item/index.d.ts +5 -0
- package/dist/components/data/expandable-list-item/index.js +19 -0
- package/dist/components/data/nested-list/components/NestedListHeader.js +11 -11
- package/dist/components/data/nested-list/components/SortableItem.js +2 -2
- package/dist/components/data-display/avatar/avatar.types.d.ts +2 -0
- package/dist/components/data-display/badge/badge.types.d.ts +2 -0
- package/dist/components/data-display/calendar/calendar-day-picker-classnames.js +11 -11
- package/dist/components/data-display/calendar/calendar-month-picker-panel.js +7 -7
- package/dist/components/data-display/calendar/calendar-week-number-cell.js +31 -31
- package/dist/components/data-display/card/card.js +8 -8
- package/dist/components/data-display/chart/chart.types.d.ts +9 -0
- package/dist/components/data-display/skeleton/skeleton.js +6 -6
- package/dist/components/data-display/statistics-card/statistics-card.js +14 -14
- package/dist/components/feedback/alert-dialog/alert-dialog.js +19 -19
- package/dist/components/feedback/dialog/dialog.js +1 -1
- package/dist/components/feedback/drawer/drawer.js +18 -18
- package/dist/components/feedback/dropdown-menu/dropdown-menu.js +68 -55
- package/dist/components/feedback/popover/popover.js +8 -1
- package/dist/components/feedback/sheet/sheet.js +1 -1
- package/dist/components/feedback/tooltip/tooltip.js +22 -22
- package/dist/components/feedback/tooltip/tooltip.variants.js +1 -1
- package/dist/components/flows/command-palette/command-palette.js +104 -104
- package/dist/components/flows/command-palette/shortcut-settings.js +34 -34
- package/dist/components/flows/filter-strip/filter-tag-list.js +4 -4
- package/dist/components/flows/notification-panel/notification-list.js +17 -17
- package/dist/components/flows/notification-panel/notification-panel.js +4 -4
- package/dist/components/flows/notification-panel/notification-panel.types.d.ts +3 -0
- package/dist/components/flows/wizard/wizard.js +8 -8
- package/dist/components/forms/combobox/combobox.js +20 -20
- package/dist/components/forms/date-picker/date-picker.js +17 -17
- package/dist/components/forms/date-picker/date-range-picker.js +3 -3
- package/dist/components/forms/date-picker/month-picker.js +1 -1
- package/dist/components/forms/date-picker/month-range-picker.js +42 -42
- package/dist/components/forms/date-picker/week-picker.js +15 -15
- package/dist/components/forms/date-picker/week-range-picker.js +3 -3
- package/dist/components/forms/file-upload/file-upload.js +33 -33
- package/dist/components/forms/input/input.js +8 -8
- package/dist/components/forms/input/input.variants.js +3 -3
- package/dist/components/forms/select/components/SelectMenuPanel.d.ts +1 -2
- package/dist/components/forms/select/components/SelectMenuPanel.js +17 -19
- package/dist/components/forms/select/components/SelectTrigger.d.ts +9 -6
- package/dist/components/forms/select/components/SelectTrigger.js +119 -116
- package/dist/components/forms/select/components/Submenu.js +7 -7
- package/dist/components/forms/select/hooks/useSelectKeyboardHandlers.d.ts +1 -1
- package/dist/components/forms/select/select.js +88 -88
- package/dist/components/forms/select/select.variants.js +5 -5
- package/dist/components/layout/sidebar/sidebar.d.ts +7 -50
- package/dist/components/layout/sidebar/sidebar.js +12 -11
- package/dist/components/layout/sidebar/sidebar.types.d.ts +35 -1
- package/dist/components/primitives/button-group/button-group.js +32 -32
- package/dist/components/primitives/chips/chips.variants.js +5 -5
- package/dist/components/primitives/empty-container/empty-container.types.d.ts +3 -0
- package/dist/components/primitives/kbd/kbd.variants.js +3 -3
- package/dist/components/primitives/stepper/stepper.js +6 -6
- package/dist/components/primitives/tag/tag.variants.js +2 -2
- package/dist/impact-nova-components.css +97 -0
- package/dist/impact-nova-tokens.scss +2 -0
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +446 -413
- package/dist/lib/compose-refs.d.ts +8 -0
- package/dist/lib/compose-refs.js +14 -0
- package/dist/lib/primitives/field.types.d.ts +8 -2
- package/dist/lib/virtualized/index.d.ts +3 -0
- package/dist/lib/virtualized/index.js +33 -16
- package/dist/lib/virtualized/useVirtualizedList.d.ts +2 -0
- package/dist/lib/virtualized/useVirtualizedList.js +115 -109
- package/dist/lib/virtualized/virtualized-list-context.d.ts +12 -0
- package/dist/lib/virtualized/virtualized-list-context.js +21 -0
- package/dist/lib/virtualized/virtualized-list-parts.d.ts +51 -0
- package/dist/lib/virtualized/virtualized-list-parts.js +175 -0
- package/dist/lib/virtualized/virtualized-list-utils.d.ts +5 -0
- package/dist/lib/virtualized/virtualized-list-utils.js +6 -0
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/migration.js +1 -1
- package/dist/llms/rules/real-world-patterns.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/package.json +24 -15
- package/tailwind.config.js +1 -0
- package/dist/components/data/ag-grid-react/headers/components/truncated-text.d.ts +0 -15
- package/dist/components/data/ag-grid-react/headers/components/truncated-text.js +0 -27
- package/dist/components/data/expandable-sku/expandable-sku.d.ts +0 -38
- package/dist/components/data/expandable-sku/expandable-sku.js +0 -245
- package/dist/components/data/expandable-sku/index.d.ts +0 -2
- package/dist/components/data/expandable-sku/index.js +0 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import * as c from "react";
|
|
3
3
|
import * as t from "@radix-ui/react-dropdown-menu";
|
|
4
4
|
import { Checkmark as f, ChevronRight as x } from "impact-nova-icons";
|
|
5
5
|
import { wrapRadixPart as p } from "../../../lib/primitives/create-compound.js";
|
|
6
|
-
import { cn as
|
|
6
|
+
import { cn as d } from "../../../lib/utils.js";
|
|
7
7
|
const j = (n) => /* @__PURE__ */ e(t.Root, { "data-component": "dropdown-menu", ...n }), G = p(
|
|
8
8
|
"dropdown-menu",
|
|
9
9
|
"trigger",
|
|
@@ -14,25 +14,25 @@ const j = (n) => /* @__PURE__ */ e(t.Root, { "data-component": "dropdown-menu",
|
|
|
14
14
|
"group",
|
|
15
15
|
"DropdownMenuGroup",
|
|
16
16
|
t.Group
|
|
17
|
-
), T = t.Portal, L = t.Sub, g =
|
|
17
|
+
), T = t.Portal, L = t.Sub, g = c.forwardRef(({ className: n, ...a }, o) => /* @__PURE__ */ e(
|
|
18
18
|
t.RadioGroup,
|
|
19
19
|
{
|
|
20
20
|
ref: o,
|
|
21
|
-
className:
|
|
21
|
+
className: d("flex flex-col gap-0.5", n),
|
|
22
22
|
...a
|
|
23
23
|
}
|
|
24
24
|
));
|
|
25
25
|
g.displayName = t.RadioGroup.displayName;
|
|
26
|
-
const h =
|
|
26
|
+
const h = c.forwardRef(({ className: n, inset: a, icon: o, children: r, ...s }, i) => /* @__PURE__ */ l(
|
|
27
27
|
t.SubTrigger,
|
|
28
28
|
{
|
|
29
29
|
ref: i,
|
|
30
|
-
className:
|
|
30
|
+
className: d(
|
|
31
31
|
"flex cursor-default select-none items-center gap-2 rounded-md px-3 h-[35px] text-[13px] outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 font-medium",
|
|
32
32
|
a && "pl-4",
|
|
33
33
|
n
|
|
34
34
|
),
|
|
35
|
-
...
|
|
35
|
+
...s,
|
|
36
36
|
children: [
|
|
37
37
|
o && /* @__PURE__ */ e("span", { className: "flex-shrink-0 text-content-secondary [&>svg]:size-4", children: o }),
|
|
38
38
|
r,
|
|
@@ -41,26 +41,26 @@ const h = l.forwardRef(({ className: n, inset: a, icon: o, children: r, ...d },
|
|
|
41
41
|
}
|
|
42
42
|
));
|
|
43
43
|
h.displayName = t.SubTrigger.displayName;
|
|
44
|
-
const
|
|
44
|
+
const b = c.forwardRef(({ className: n, ...a }, o) => /* @__PURE__ */ e(t.Portal, { children: /* @__PURE__ */ e(
|
|
45
45
|
t.SubContent,
|
|
46
46
|
{
|
|
47
47
|
ref: o,
|
|
48
|
-
className:
|
|
48
|
+
className: d(
|
|
49
49
|
"z-50 min-w-[8rem] overflow-hidden rounded-lg bg-canvas-overlay p-2 text-canvas-overlay-foreground shadow-elevation-floating text-[13px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin] motion-reduce:animate-none motion-reduce:transition-none",
|
|
50
50
|
n
|
|
51
51
|
),
|
|
52
52
|
...a
|
|
53
53
|
}
|
|
54
54
|
) }));
|
|
55
|
-
|
|
56
|
-
const
|
|
55
|
+
b.displayName = t.SubContent.displayName;
|
|
56
|
+
const w = c.forwardRef(({ className: n, sideOffset: a = 4, portalled: o = !0, ...r }, s) => {
|
|
57
57
|
const i = /* @__PURE__ */ e(
|
|
58
58
|
t.Content,
|
|
59
59
|
{
|
|
60
|
-
ref:
|
|
60
|
+
ref: s,
|
|
61
61
|
sideOffset: a,
|
|
62
62
|
"data-component": "dropdown-menu-content",
|
|
63
|
-
className:
|
|
63
|
+
className: d(
|
|
64
64
|
"z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[12rem] overflow-y-auto overflow-x-hidden rounded-lg bg-canvas-overlay p-2 text-canvas-overlay-foreground shadow-elevation-floating flex flex-col gap-0.5",
|
|
65
65
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin] motion-reduce:animate-none motion-reduce:transition-none",
|
|
66
66
|
n
|
|
@@ -70,13 +70,13 @@ const N = l.forwardRef(({ className: n, sideOffset: a = 4, portalled: o = !0, ..
|
|
|
70
70
|
);
|
|
71
71
|
return o ? /* @__PURE__ */ e(t.Portal, { children: i }) : i;
|
|
72
72
|
});
|
|
73
|
-
|
|
74
|
-
const
|
|
73
|
+
w.displayName = t.Content.displayName;
|
|
74
|
+
const N = c.forwardRef(({ className: n, inset: a, description: o, icon: r, children: s, ...i }, m) => /* @__PURE__ */ l(
|
|
75
75
|
t.Item,
|
|
76
76
|
{
|
|
77
77
|
ref: m,
|
|
78
78
|
"data-component": "dropdown-menu-item",
|
|
79
|
-
className:
|
|
79
|
+
className: d(
|
|
80
80
|
"relative flex cursor-default select-none items-center gap-2 rounded-md px-3 h-[35px] text-[13px] outline-none transition-colors focus:bg-accent focus:text-content data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
81
81
|
a && "pl-4",
|
|
82
82
|
n
|
|
@@ -84,19 +84,19 @@ const b = l.forwardRef(({ className: n, inset: a, description: o, icon: r, child
|
|
|
84
84
|
...i,
|
|
85
85
|
children: [
|
|
86
86
|
r && /* @__PURE__ */ e("span", { className: "flex-shrink-0 [&>svg]:size-4", children: r }),
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
/* @__PURE__ */ e("span", { className: "font-medium leading-none", children:
|
|
87
|
+
/* @__PURE__ */ l("div", { className: "flex flex-col gap-0.5 justify-center", children: [
|
|
88
|
+
/* @__PURE__ */ e("span", { className: "font-medium leading-none", children: s }),
|
|
89
89
|
o && /* @__PURE__ */ e("span", { className: "text-[10px] leading-tight text-content-secondary line-clamp-1", children: o })
|
|
90
90
|
] })
|
|
91
91
|
]
|
|
92
92
|
}
|
|
93
93
|
));
|
|
94
|
-
|
|
95
|
-
const
|
|
94
|
+
N.displayName = t.Item.displayName;
|
|
95
|
+
const y = c.forwardRef(({ className: n, children: a, checked: o, description: r, icon: s, ...i }, m) => /* @__PURE__ */ l(
|
|
96
96
|
t.CheckboxItem,
|
|
97
97
|
{
|
|
98
98
|
ref: m,
|
|
99
|
-
className:
|
|
99
|
+
className: d(
|
|
100
100
|
"relative flex cursor-default select-none items-center rounded-md h-[35px] pl-10 pr-3 text-[13px] outline-none transition-colors focus:bg-accent focus:text-content data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
101
101
|
n
|
|
102
102
|
),
|
|
@@ -107,16 +107,16 @@ const v = l.forwardRef(({ className: n, children: a, checked: o, description: r,
|
|
|
107
107
|
/* @__PURE__ */ e("span", { className: "absolute left-3 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ e(
|
|
108
108
|
"div",
|
|
109
109
|
{
|
|
110
|
-
className:
|
|
110
|
+
className: d(
|
|
111
111
|
"flex h-4 w-4 items-center justify-center rounded-[4px] border border-stroke transition-colors",
|
|
112
112
|
o && "bg-brand border-brand text-brand-foreground"
|
|
113
113
|
),
|
|
114
114
|
children: /* @__PURE__ */ e(t.ItemIndicator, { children: /* @__PURE__ */ e(f, { className: "h-3.5 w-3.5" }) })
|
|
115
115
|
}
|
|
116
116
|
) }),
|
|
117
|
-
/* @__PURE__ */
|
|
118
|
-
|
|
119
|
-
/* @__PURE__ */
|
|
117
|
+
/* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
|
|
118
|
+
s && /* @__PURE__ */ e("span", { className: "flex-shrink-0 text-content-secondary [&>svg]:size-4", children: s }),
|
|
119
|
+
/* @__PURE__ */ l("div", { className: "flex flex-col gap-0.5 justify-center", children: [
|
|
120
120
|
/* @__PURE__ */ e("span", { className: "font-medium leading-none", children: a }),
|
|
121
121
|
r && /* @__PURE__ */ e("span", { className: "text-[10px] leading-tight text-content-secondary line-clamp-1", children: r })
|
|
122
122
|
] })
|
|
@@ -124,32 +124,45 @@ const v = l.forwardRef(({ className: n, children: a, checked: o, description: r,
|
|
|
124
124
|
]
|
|
125
125
|
}
|
|
126
126
|
));
|
|
127
|
-
|
|
128
|
-
const
|
|
127
|
+
y.displayName = t.CheckboxItem.displayName;
|
|
128
|
+
const v = c.forwardRef(({ className: n, children: a, description: o, icon: r, ...s }, i) => /* @__PURE__ */ l(
|
|
129
129
|
t.RadioItem,
|
|
130
130
|
{
|
|
131
131
|
ref: i,
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
"data-component": "dropdown-menu-radio-item",
|
|
133
|
+
className: d(
|
|
134
|
+
"group relative flex cursor-default select-none items-center rounded-md min-h-[35px] py-1.5 pl-10 pr-3 text-[13px] outline-none transition-colors focus:bg-accent focus:text-content data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[state=checked]:bg-accent",
|
|
134
135
|
n
|
|
135
136
|
),
|
|
136
137
|
onSelect: (m) => m.preventDefault(),
|
|
137
|
-
...
|
|
138
|
-
children:
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
138
|
+
...s,
|
|
139
|
+
children: [
|
|
140
|
+
/* @__PURE__ */ e("span", { className: "absolute left-3 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ e(
|
|
141
|
+
"div",
|
|
142
|
+
{
|
|
143
|
+
className: d(
|
|
144
|
+
"flex h-4 w-4 items-center justify-center rounded-full border border-stroke transition-colors",
|
|
145
|
+
"group-data-[state=checked]:border-brand"
|
|
146
|
+
),
|
|
147
|
+
children: /* @__PURE__ */ e(t.ItemIndicator, { children: /* @__PURE__ */ e("div", { className: "h-2 w-2 rounded-full bg-brand" }) })
|
|
148
|
+
}
|
|
149
|
+
) }),
|
|
150
|
+
/* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
|
|
151
|
+
r && /* @__PURE__ */ e("span", { className: "flex-shrink-0 text-content-secondary [&>svg]:size-4", children: r }),
|
|
152
|
+
/* @__PURE__ */ l("div", { className: "flex flex-col gap-0.5 justify-center", children: [
|
|
153
|
+
/* @__PURE__ */ e("span", { className: "font-medium leading-none", children: a }),
|
|
154
|
+
o && /* @__PURE__ */ e("span", { className: "text-[10px] leading-tight text-content-secondary line-clamp-1", children: o })
|
|
155
|
+
] })
|
|
143
156
|
] })
|
|
144
|
-
]
|
|
157
|
+
]
|
|
145
158
|
}
|
|
146
159
|
));
|
|
147
|
-
|
|
148
|
-
const D =
|
|
160
|
+
v.displayName = t.RadioItem.displayName;
|
|
161
|
+
const D = c.forwardRef(({ className: n, inset: a, ...o }, r) => /* @__PURE__ */ e(
|
|
149
162
|
t.Label,
|
|
150
163
|
{
|
|
151
164
|
ref: r,
|
|
152
|
-
className:
|
|
165
|
+
className: d(
|
|
153
166
|
"px-3 py-2 text-xs font-bold tracking-wider text-content-icon",
|
|
154
167
|
a && "pl-4",
|
|
155
168
|
n
|
|
@@ -158,55 +171,55 @@ const D = l.forwardRef(({ className: n, inset: a, ...o }, r) => /* @__PURE__ */
|
|
|
158
171
|
}
|
|
159
172
|
));
|
|
160
173
|
D.displayName = t.Label.displayName;
|
|
161
|
-
const M =
|
|
174
|
+
const M = c.forwardRef(({ className: n, ...a }, o) => /* @__PURE__ */ e(
|
|
162
175
|
t.Separator,
|
|
163
176
|
{
|
|
164
177
|
ref: o,
|
|
165
|
-
className:
|
|
178
|
+
className: d("-mx-2 my-1 h-px bg-stroke-hairline", n),
|
|
166
179
|
...a
|
|
167
180
|
}
|
|
168
181
|
));
|
|
169
182
|
M.displayName = t.Separator.displayName;
|
|
170
|
-
const
|
|
183
|
+
const k = ({
|
|
171
184
|
className: n,
|
|
172
185
|
...a
|
|
173
186
|
}) => /* @__PURE__ */ e(
|
|
174
187
|
"div",
|
|
175
188
|
{
|
|
176
|
-
className:
|
|
189
|
+
className: d(
|
|
177
190
|
"sticky bottom-0 z-10 -mx-2 -mb-2 mt-1 flex items-center justify-end gap-2 border-t bg-canvas-elevated p-2 shrink-0 rounded-b-xl",
|
|
178
191
|
n
|
|
179
192
|
),
|
|
180
193
|
...a
|
|
181
194
|
}
|
|
182
195
|
);
|
|
183
|
-
|
|
184
|
-
const
|
|
196
|
+
k.displayName = "DropdownMenuFooter";
|
|
197
|
+
const R = ({
|
|
185
198
|
className: n,
|
|
186
199
|
...a
|
|
187
200
|
}) => /* @__PURE__ */ e(
|
|
188
201
|
"span",
|
|
189
202
|
{
|
|
190
|
-
className:
|
|
203
|
+
className: d("ml-auto text-xs tracking-widest opacity-60", n),
|
|
191
204
|
...a
|
|
192
205
|
}
|
|
193
206
|
);
|
|
194
|
-
|
|
207
|
+
R.displayName = "DropdownMenuShortcut";
|
|
195
208
|
export {
|
|
196
209
|
j as DropdownMenu,
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
210
|
+
y as DropdownMenuCheckboxItem,
|
|
211
|
+
w as DropdownMenuContent,
|
|
212
|
+
k as DropdownMenuFooter,
|
|
200
213
|
P as DropdownMenuGroup,
|
|
201
|
-
|
|
214
|
+
N as DropdownMenuItem,
|
|
202
215
|
D as DropdownMenuLabel,
|
|
203
216
|
T as DropdownMenuPortal,
|
|
204
217
|
g as DropdownMenuRadioGroup,
|
|
205
|
-
|
|
218
|
+
v as DropdownMenuRadioItem,
|
|
206
219
|
M as DropdownMenuSeparator,
|
|
207
|
-
|
|
220
|
+
R as DropdownMenuShortcut,
|
|
208
221
|
L as DropdownMenuSub,
|
|
209
|
-
|
|
222
|
+
b as DropdownMenuSubContent,
|
|
210
223
|
h as DropdownMenuSubTrigger,
|
|
211
224
|
G as DropdownMenuTrigger
|
|
212
225
|
};
|
|
@@ -6,7 +6,14 @@ import { Tooltip as h, TooltipTrigger as g, TooltipContent as y } from "../toolt
|
|
|
6
6
|
import { wrapRadixPart as l, createCompoundPart as u } from "../../../lib/primitives/create-compound.js";
|
|
7
7
|
import { cn as n } from "../../../lib/utils.js";
|
|
8
8
|
import { useImpactNovaI18n as c } from "../../../i18n/use-impact-nova-i18n.js";
|
|
9
|
-
const B = (o) => /* @__PURE__ */ e(
|
|
9
|
+
const B = (o) => /* @__PURE__ */ e(
|
|
10
|
+
a.Root,
|
|
11
|
+
{
|
|
12
|
+
"data-component": "popover",
|
|
13
|
+
modal: !1,
|
|
14
|
+
...o
|
|
15
|
+
}
|
|
16
|
+
), F = l(
|
|
10
17
|
"popover",
|
|
11
18
|
"trigger",
|
|
12
19
|
"PopoverTrigger",
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { jsx as i, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as r from "@radix-ui/react-tooltip";
|
|
4
4
|
import { wrapRadixPart as c } from "../../../lib/primitives/create-compound.js";
|
|
5
5
|
import { cn as a } from "../../../lib/utils.js";
|
|
6
6
|
import { tooltipVariants as f } from "./tooltip.variants.js";
|
|
7
|
-
function
|
|
8
|
-
return t === "primary" ? "default" : t ?? "
|
|
7
|
+
function g(t) {
|
|
8
|
+
return t === "primary" ? "default" : t ?? "tertiary";
|
|
9
9
|
}
|
|
10
|
-
const x =
|
|
10
|
+
const x = r.Provider, N = (t) => /* @__PURE__ */ i(r.Root, { "data-component": "tooltip", ...t }), R = c(
|
|
11
11
|
"tooltip",
|
|
12
12
|
"trigger",
|
|
13
13
|
"TooltipTrigger",
|
|
14
|
-
|
|
15
|
-
),
|
|
14
|
+
r.Trigger
|
|
15
|
+
), u = s.forwardRef(
|
|
16
16
|
({
|
|
17
17
|
className: t,
|
|
18
18
|
sideOffset: n = 4,
|
|
19
|
-
variant: l = "
|
|
20
|
-
showArrow:
|
|
19
|
+
variant: l = "tertiary",
|
|
20
|
+
showArrow: p = !0,
|
|
21
21
|
...e
|
|
22
|
-
},
|
|
23
|
-
const
|
|
24
|
-
return /* @__PURE__ */ i(
|
|
25
|
-
|
|
22
|
+
}, d) => {
|
|
23
|
+
const o = g(l);
|
|
24
|
+
return /* @__PURE__ */ i(r.Portal, { children: /* @__PURE__ */ m(
|
|
25
|
+
r.Content,
|
|
26
26
|
{
|
|
27
|
-
ref:
|
|
27
|
+
ref: d,
|
|
28
28
|
sideOffset: n,
|
|
29
29
|
"data-component": "tooltip-content",
|
|
30
|
-
"data-variant":
|
|
31
|
-
className: a(f({ variant:
|
|
30
|
+
"data-variant": o,
|
|
31
|
+
className: a(f({ variant: o }), t),
|
|
32
32
|
...e,
|
|
33
33
|
children: [
|
|
34
34
|
e.children,
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
p && /* @__PURE__ */ i(
|
|
36
|
+
r.Arrow,
|
|
37
37
|
{
|
|
38
38
|
className: a(
|
|
39
39
|
"fill-current",
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
o === "default" && "fill-brand",
|
|
41
|
+
o === "secondary" && "fill-background stroke-border",
|
|
42
|
+
o === "tertiary" && "fill-foreground"
|
|
43
43
|
)
|
|
44
44
|
}
|
|
45
45
|
)
|
|
@@ -48,10 +48,10 @@ const x = o.Provider, N = (t) => /* @__PURE__ */ i(o.Root, { "data-component": "
|
|
|
48
48
|
) });
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
|
-
|
|
51
|
+
u.displayName = r.Content.displayName;
|
|
52
52
|
export {
|
|
53
53
|
N as Tooltip,
|
|
54
|
-
|
|
54
|
+
u as TooltipContent,
|
|
55
55
|
x as TooltipProvider,
|
|
56
56
|
R as TooltipTrigger
|
|
57
57
|
};
|