impact-nova 3.0.0-alpha.2 → 3.0.0-alpha.3
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/_virtual/index.js +4 -4
- package/dist/_virtual/index2.js +4 -4
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +3 -2
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +3 -2
- package/dist/components/data/expandable-list-item/index.d.ts +2 -0
- package/dist/components/data/expandable-list-item/index.js +20 -16
- package/dist/components/data/expandable-list-item/product-card-hero.d.ts +15 -0
- package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.d.ts +8 -0
- package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.js +41 -0
- package/dist/components/data/expandable-list-item/product-card-metrics-toggle.d.ts +13 -0
- package/dist/components/data/expandable-list-item/product-card-metrics-toggle.js +27 -0
- package/dist/components/data/expandable-list-item/sku-picker-chrome.d.ts +35 -0
- package/dist/components/data/expandable-list-item/sku-picker-chrome.js +142 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +3 -2
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
- package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
- package/dist/components/flows/filter-panel/filter-panel.js +4 -4
- package/dist/components/forms/select/components/SelectTriggerValue.js +3 -2
- package/dist/components/forms/select/components/Submenu.js +3 -2
- package/dist/form-react/Fields/VirtualizedListField.d.ts +3 -0
- package/dist/form-react/Fields/VirtualizedListField.js +169 -0
- package/dist/form-react/fields.d.ts +1 -0
- package/dist/form-react/fields.js +28 -26
- package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
- package/dist/form-react/registry/defaultFieldRegistrations.js +13 -12
- package/dist/form-react/types/fields.types.d.ts +21 -1
- package/dist/form-react/types/fieldsOutput.types.d.ts +4 -1
- package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
- package/dist/impact-nova.css +1 -1
- package/dist/index.js +356 -352
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/package.json +3 -1
package/dist/_virtual/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as
|
|
2
|
-
import { __require as
|
|
3
|
-
var t =
|
|
4
|
-
const a = /* @__PURE__ */
|
|
1
|
+
import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as r } from "../node_modules/extend/index.js";
|
|
3
|
+
var t = r();
|
|
4
|
+
const a = /* @__PURE__ */ e(t);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
package/dist/_virtual/index2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as
|
|
2
|
-
import { __require as
|
|
3
|
-
var t =
|
|
4
|
-
const a = /* @__PURE__ */
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as o } from "../node_modules/style-to-js/cjs/index.js";
|
|
3
|
+
var t = o();
|
|
4
|
+
const a = /* @__PURE__ */ r(t);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -3,7 +3,8 @@ import { Badge as s } from "../../data-display/badge/badge.js";
|
|
|
3
3
|
import { FilterPopoverContent as u } from "../../flows/filter-strip/filter-tag-list.js";
|
|
4
4
|
import { Popover as b, PopoverTrigger as f } from "../../feedback/popover/popover.js";
|
|
5
5
|
import { Tooltip as g, TooltipTrigger as v, TooltipContent as x } from "../../feedback/tooltip/tooltip.js";
|
|
6
|
-
|
|
6
|
+
import "react";
|
|
7
|
+
function I({
|
|
7
8
|
tags: o,
|
|
8
9
|
title: l = "Attributes",
|
|
9
10
|
maxVisibleTags: n = 4,
|
|
@@ -70,5 +71,5 @@ function w({
|
|
|
70
71
|
);
|
|
71
72
|
}
|
|
72
73
|
export {
|
|
73
|
-
|
|
74
|
+
I as ExpandableListItemAttributes
|
|
74
75
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { ScrollOverflowAffordance as o } from "../../layout/horizontal-scroller/scroll-overflow-affordance.js";
|
|
3
|
+
import "react";
|
|
3
4
|
import { OverflowTooltip as r } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
4
5
|
const m = 128;
|
|
5
|
-
function
|
|
6
|
+
function f({
|
|
6
7
|
columns: i,
|
|
7
8
|
sectionId: l = "metrics"
|
|
8
9
|
}) {
|
|
@@ -50,5 +51,5 @@ function x({
|
|
|
50
51
|
);
|
|
51
52
|
}
|
|
52
53
|
export {
|
|
53
|
-
|
|
54
|
+
f as ExpandableListItemMetrics
|
|
54
55
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { ProductCardMetricsToggle, type ProductCardMetricsToggleProps, } from './product-card-metrics-toggle';
|
|
2
|
+
export { ProductCardIrisInsightTrigger, type ProductCardIrisInsightTriggerProps, } from './product-card-iris-insight-trigger';
|
|
1
3
|
export { ExpandableListItem, type ExpandableListItemProps, } from './expandable-list-item-preset';
|
|
2
4
|
export { ExpandableListItemRoot, ExpandableListItemRow, ExpandableListItemCheckbox, ExpandableListItemTrigger, ExpandableListItemTitle, ExpandableListItemDescription, ExpandableListItemMedia, ExpandableListItemHeader, ExpandableListItemContent, ExpandableListItemFooter, type ExpandableListItemRootProps, type ExpandableListItemCheckboxProps, } from './expandable-list-item-parts';
|
|
3
5
|
export { ExpandableListItemMetrics, type ExpandableListItemMetricsProps } from './expandable-list-item-metrics';
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { ProductCardMetricsToggle as a } from "./product-card-metrics-toggle.js";
|
|
2
|
+
import { ProductCardIrisInsightTrigger as i } from "./product-card-iris-insight-trigger.js";
|
|
3
|
+
import { ExpandableListItem as p } from "./expandable-list-item-preset.js";
|
|
4
|
+
import { ExpandableListItemCheckbox as d, ExpandableListItemContent as m, ExpandableListItemDescription as s, ExpandableListItemFooter as n, ExpandableListItemHeader as b, ExpandableListItemMedia as l, ExpandableListItemRoot as I, ExpandableListItemRow as E, ExpandableListItemTitle as L, ExpandableListItemTrigger as g } from "./expandable-list-item-parts.js";
|
|
5
|
+
import { ExpandableListItemMetrics as f } from "./expandable-list-item-metrics.js";
|
|
6
|
+
import { ExpandableListItemAttributes as T } from "./expandable-list-item-attributes.js";
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
p as ExpandableListItem,
|
|
9
|
+
T as ExpandableListItemAttributes,
|
|
10
|
+
d as ExpandableListItemCheckbox,
|
|
11
|
+
m as ExpandableListItemContent,
|
|
12
|
+
s as ExpandableListItemDescription,
|
|
11
13
|
n as ExpandableListItemFooter,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
b as ExpandableListItemHeader,
|
|
15
|
+
l as ExpandableListItemMedia,
|
|
16
|
+
f as ExpandableListItemMetrics,
|
|
17
|
+
I as ExpandableListItemRoot,
|
|
18
|
+
E as ExpandableListItemRow,
|
|
19
|
+
L as ExpandableListItemTitle,
|
|
20
|
+
g as ExpandableListItemTrigger,
|
|
21
|
+
i as ProductCardIrisInsightTrigger,
|
|
22
|
+
a as ProductCardMetricsToggle
|
|
19
23
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ItemCatalogRecord } from './virtualized-responsive-grid.catalog';
|
|
3
|
+
export type ProductCardHeroProps = {
|
|
4
|
+
item: ItemCatalogRecord;
|
|
5
|
+
selected: boolean;
|
|
6
|
+
thumbnail: ReactElement;
|
|
7
|
+
onFlip: () => void;
|
|
8
|
+
onSelect: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare function ProductCardHero(props: ProductCardHeroProps): ReactElement;
|
|
11
|
+
export declare function ProductCardHeaderCheckbox(props: {
|
|
12
|
+
item: ItemCatalogRecord;
|
|
13
|
+
selected: boolean;
|
|
14
|
+
onSelect: () => void;
|
|
15
|
+
}): ReactElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ProductCardMetricsTogglePlacement } from './product-card-metrics-toggle';
|
|
3
|
+
export type ProductCardIrisInsightTriggerProps = {
|
|
4
|
+
styleId: string;
|
|
5
|
+
title: string;
|
|
6
|
+
placement?: ProductCardMetricsTogglePlacement;
|
|
7
|
+
};
|
|
8
|
+
export declare function ProductCardIrisInsightTrigger(props: ProductCardIrisInsightTriggerProps): ReactElement;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { useState as o, useRef as c, useEffect as l } from "react";
|
|
3
|
+
import { IrisInsight as d } from "../../primitives/iris/iris.js";
|
|
4
|
+
const m = 2200;
|
|
5
|
+
function u(t) {
|
|
6
|
+
return t === "inline" ? "relative shrink-0" : "absolute right-2 top-2";
|
|
7
|
+
}
|
|
8
|
+
function I(t) {
|
|
9
|
+
const [s, n] = o("idle"), e = c(void 0);
|
|
10
|
+
l(
|
|
11
|
+
() => () => {
|
|
12
|
+
e.current && clearTimeout(e.current);
|
|
13
|
+
},
|
|
14
|
+
[]
|
|
15
|
+
);
|
|
16
|
+
const r = u(t.placement);
|
|
17
|
+
return /* @__PURE__ */ i("div", { className: r, children: /* @__PURE__ */ i(
|
|
18
|
+
d,
|
|
19
|
+
{
|
|
20
|
+
status: s,
|
|
21
|
+
iconSize: "sm",
|
|
22
|
+
onTriggerClick: () => {
|
|
23
|
+
n("loading"), e.current = setTimeout(() => {
|
|
24
|
+
e.current = void 0, n("ready");
|
|
25
|
+
}, m);
|
|
26
|
+
},
|
|
27
|
+
onAskInChat: () => {
|
|
28
|
+
},
|
|
29
|
+
children: /* @__PURE__ */ a("p", { children: [
|
|
30
|
+
/* @__PURE__ */ i("span", { className: "font-bold", children: t.title }),
|
|
31
|
+
" is tracking",
|
|
32
|
+
" ",
|
|
33
|
+
/* @__PURE__ */ i("span", { className: "font-bold", children: t.styleId }),
|
|
34
|
+
" against plan this period."
|
|
35
|
+
] })
|
|
36
|
+
}
|
|
37
|
+
) });
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
I as ProductCardIrisInsightTrigger
|
|
41
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
export type ProductCardMetricsTogglePlacement = "hero" | "inline";
|
|
3
|
+
export type ProductCardMetricsToggleProps = {
|
|
4
|
+
isFlipped: boolean;
|
|
5
|
+
showMetricsLabel: string;
|
|
6
|
+
showPhotoLabel: string;
|
|
7
|
+
actionAriaLabel: string;
|
|
8
|
+
onShowMetrics: () => void;
|
|
9
|
+
onShowPhoto: () => void;
|
|
10
|
+
icon: ReactNode;
|
|
11
|
+
placement?: ProductCardMetricsTogglePlacement;
|
|
12
|
+
};
|
|
13
|
+
export declare function ProductCardMetricsToggle(props: ProductCardMetricsToggleProps): ReactElement;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { ButtonIconTooltip as l } from "../../feedback/tooltip/button-icon-tooltip.js";
|
|
3
|
+
import { Button as r } from "../../primitives/button/button.js";
|
|
4
|
+
function d(t) {
|
|
5
|
+
const o = t.isFlipped ? t.showPhotoLabel : t.showMetricsLabel, n = (i) => {
|
|
6
|
+
if (i.stopPropagation(), t.isFlipped) {
|
|
7
|
+
t.onShowPhoto();
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
t.onShowMetrics();
|
|
11
|
+
}, a = t.placement === "inline" ? "relative z-20 shrink-0" : "absolute right-2 top-2 z-20";
|
|
12
|
+
return /* @__PURE__ */ e("div", { className: a, onClick: (i) => i.stopPropagation(), children: /* @__PURE__ */ e(l, { label: o, children: /* @__PURE__ */ e(
|
|
13
|
+
r,
|
|
14
|
+
{
|
|
15
|
+
type: "button",
|
|
16
|
+
size: "iconSm",
|
|
17
|
+
variant: "tertiary",
|
|
18
|
+
"aria-pressed": t.isFlipped,
|
|
19
|
+
"aria-label": t.actionAriaLabel,
|
|
20
|
+
onClick: n,
|
|
21
|
+
children: t.icon
|
|
22
|
+
}
|
|
23
|
+
) }) });
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
d as ProductCardMetricsToggle
|
|
27
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type SkuPickerView = "card" | "list";
|
|
3
|
+
export type SkuPickerGridProps = {
|
|
4
|
+
/** Fold the toolbar and choices behind the title row. */
|
|
5
|
+
collapsible?: boolean;
|
|
6
|
+
/** Start folded. Ignored unless `collapsible` is set. */
|
|
7
|
+
defaultCollapsed?: boolean;
|
|
8
|
+
/** Title in the header. Default: SKU. */
|
|
9
|
+
title?: string;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare function SkuPickerChrome(props: {
|
|
13
|
+
view: SkuPickerView;
|
|
14
|
+
search: string;
|
|
15
|
+
sortAlphabetically: boolean;
|
|
16
|
+
selectedCount: number;
|
|
17
|
+
/** True when every choice Select All would touch is already selected. */
|
|
18
|
+
allSelected?: boolean;
|
|
19
|
+
previewCodes: string[];
|
|
20
|
+
onSearchChange: (value: string) => void;
|
|
21
|
+
onViewChange: (view: SkuPickerView) => void;
|
|
22
|
+
onToggleSort: () => void;
|
|
23
|
+
onSelectAll: () => void;
|
|
24
|
+
onClear: () => void;
|
|
25
|
+
children: ReactNode;
|
|
26
|
+
footer?: ReactNode;
|
|
27
|
+
collapsible?: boolean;
|
|
28
|
+
defaultCollapsed?: boolean;
|
|
29
|
+
title?: string;
|
|
30
|
+
required?: boolean;
|
|
31
|
+
emptyLabel?: string;
|
|
32
|
+
searchLabel?: string;
|
|
33
|
+
/** Story picker keeps the back control. Form fields omit it. */
|
|
34
|
+
showBack?: boolean;
|
|
35
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { Search as s, CardView as m, ListFilter as u, TextFormat as h, Back as b } from "impact-nova-icons";
|
|
3
|
+
import "react";
|
|
4
|
+
import { Badge as f } from "../../data-display/badge/badge.js";
|
|
5
|
+
import { ButtonIconTooltip as r } from "../../feedback/tooltip/button-icon-tooltip.js";
|
|
6
|
+
import { Input as v } from "../../forms/input/input.js";
|
|
7
|
+
import { Accordion as x, AccordionItem as g, AccordionTrigger as w, AccordionContent as C } from "../../primitives/accordion/accordion.js";
|
|
8
|
+
import { Button as i } from "../../primitives/button/button.js";
|
|
9
|
+
import { cn as N } from "../../../lib/utils.js";
|
|
10
|
+
const d = "picker";
|
|
11
|
+
function S(e) {
|
|
12
|
+
return N(
|
|
13
|
+
e && "border-brand bg-accent text-brand hover:bg-accent hover:text-brand"
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
function y(e) {
|
|
17
|
+
if (e.selectedCount === 0)
|
|
18
|
+
return /* @__PURE__ */ t("p", { className: "text-xs font-medium text-content-muted", children: e.emptyLabel });
|
|
19
|
+
const a = Math.max(0, e.selectedCount - e.previewCodes.length);
|
|
20
|
+
return /* @__PURE__ */ l("div", { className: "flex min-w-0 items-center gap-1", children: [
|
|
21
|
+
/* @__PURE__ */ t("p", { className: "truncate text-xs font-medium text-content-muted", children: e.previewCodes.join(", ") }),
|
|
22
|
+
a > 0 ? /* @__PURE__ */ l(f, { variant: "subtle", color: "primary", size: "sm", shape: "square", children: [
|
|
23
|
+
"+",
|
|
24
|
+
a
|
|
25
|
+
] }) : null
|
|
26
|
+
] });
|
|
27
|
+
}
|
|
28
|
+
function V(e) {
|
|
29
|
+
const a = e.title ?? "SKU", n = /* @__PURE__ */ t(
|
|
30
|
+
y,
|
|
31
|
+
{
|
|
32
|
+
selectedCount: e.selectedCount,
|
|
33
|
+
previewCodes: e.previewCodes,
|
|
34
|
+
emptyLabel: e.emptyLabel ?? "No SKUs selected"
|
|
35
|
+
}
|
|
36
|
+
), c = /* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-3", children: [
|
|
37
|
+
/* @__PURE__ */ l("div", { className: "flex items-center gap-3", children: [
|
|
38
|
+
/* @__PURE__ */ t(
|
|
39
|
+
v,
|
|
40
|
+
{
|
|
41
|
+
size: "default",
|
|
42
|
+
className: "w-[200px]",
|
|
43
|
+
placeholder: "Search",
|
|
44
|
+
value: e.search,
|
|
45
|
+
onChange: (o) => e.onSearchChange(o.target.value),
|
|
46
|
+
prefix: /* @__PURE__ */ t(s, { className: "size-4 text-content-placeholder", "aria-hidden": !0 }),
|
|
47
|
+
"aria-label": e.searchLabel ?? "Search SKUs"
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ t(
|
|
51
|
+
r,
|
|
52
|
+
{
|
|
53
|
+
label: e.view === "card" ? "Switch to list view" : "Switch to card view",
|
|
54
|
+
children: /* @__PURE__ */ t(
|
|
55
|
+
i,
|
|
56
|
+
{
|
|
57
|
+
type: "button",
|
|
58
|
+
size: "icon",
|
|
59
|
+
variant: "tertiary",
|
|
60
|
+
"aria-label": e.view === "card" ? "Switch to list view" : "Switch to card view",
|
|
61
|
+
"aria-pressed": e.view === "list",
|
|
62
|
+
onClick: () => e.onViewChange(e.view === "card" ? "list" : "card"),
|
|
63
|
+
children: e.view === "card" ? /* @__PURE__ */ t(m, {}) : /* @__PURE__ */ t(u, {})
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
/* @__PURE__ */ t(r, { label: "Sort Alphabetically", children: /* @__PURE__ */ t(
|
|
69
|
+
i,
|
|
70
|
+
{
|
|
71
|
+
type: "button",
|
|
72
|
+
size: "icon",
|
|
73
|
+
variant: "tertiary",
|
|
74
|
+
"aria-label": "Sort alphabetically",
|
|
75
|
+
"aria-pressed": e.sortAlphabetically,
|
|
76
|
+
className: S(e.sortAlphabetically),
|
|
77
|
+
onClick: e.onToggleSort,
|
|
78
|
+
children: /* @__PURE__ */ t(h, {})
|
|
79
|
+
}
|
|
80
|
+
) })
|
|
81
|
+
] }),
|
|
82
|
+
/* @__PURE__ */ l("div", { className: "flex items-center gap-3", children: [
|
|
83
|
+
/* @__PURE__ */ t(
|
|
84
|
+
i,
|
|
85
|
+
{
|
|
86
|
+
type: "button",
|
|
87
|
+
variant: "link",
|
|
88
|
+
onClick: e.onSelectAll,
|
|
89
|
+
disabled: e.allSelected === !0,
|
|
90
|
+
children: "Select All"
|
|
91
|
+
}
|
|
92
|
+
),
|
|
93
|
+
/* @__PURE__ */ t(
|
|
94
|
+
i,
|
|
95
|
+
{
|
|
96
|
+
type: "button",
|
|
97
|
+
variant: "link",
|
|
98
|
+
onClick: e.onClear,
|
|
99
|
+
disabled: e.selectedCount === 0,
|
|
100
|
+
children: "Clear"
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
] })
|
|
104
|
+
] });
|
|
105
|
+
return e.collapsible ? /* @__PURE__ */ t(
|
|
106
|
+
x,
|
|
107
|
+
{
|
|
108
|
+
type: "single",
|
|
109
|
+
collapsible: !0,
|
|
110
|
+
defaultValue: e.defaultCollapsed ? void 0 : d,
|
|
111
|
+
className: "w-full",
|
|
112
|
+
children: /* @__PURE__ */ l(g, { value: d, className: "border border-stroke-subtle", children: [
|
|
113
|
+
/* @__PURE__ */ t(w, { headingLevel: 3, rightActions: n, children: /* @__PURE__ */ l("span", { className: "truncate text-sm font-semibold leading-6 text-content-title", children: [
|
|
114
|
+
a,
|
|
115
|
+
e.required ? /* @__PURE__ */ t("span", { className: "text-destructive", children: " *" }) : null
|
|
116
|
+
] }) }),
|
|
117
|
+
/* @__PURE__ */ l(C, { className: "flex flex-col gap-3", children: [
|
|
118
|
+
c,
|
|
119
|
+
e.children,
|
|
120
|
+
e.footer
|
|
121
|
+
] })
|
|
122
|
+
] })
|
|
123
|
+
}
|
|
124
|
+
) : /* @__PURE__ */ l("div", { className: "flex w-full flex-col gap-3 overflow-hidden rounded-lg border border-stroke-subtle bg-canvas-elevated px-4 py-2", children: [
|
|
125
|
+
/* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-3", children: [
|
|
126
|
+
/* @__PURE__ */ l("div", { className: "flex items-center gap-3", children: [
|
|
127
|
+
e.showBack === !1 ? null : /* @__PURE__ */ t(i, { type: "button", size: "icon", variant: "ghost", "aria-label": "Back", children: /* @__PURE__ */ t(b, {}) }),
|
|
128
|
+
/* @__PURE__ */ l("p", { className: "text-sm font-semibold leading-6 text-content-title", children: [
|
|
129
|
+
a,
|
|
130
|
+
e.required ? /* @__PURE__ */ t("span", { className: "text-destructive", children: " *" }) : null
|
|
131
|
+
] })
|
|
132
|
+
] }),
|
|
133
|
+
n
|
|
134
|
+
] }),
|
|
135
|
+
c,
|
|
136
|
+
e.children,
|
|
137
|
+
e.footer
|
|
138
|
+
] });
|
|
139
|
+
}
|
|
140
|
+
export {
|
|
141
|
+
V as SkuPickerChrome
|
|
142
|
+
};
|
package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function
|
|
1
|
+
import { SkuPickerGridProps } from './sku-picker-chrome';
|
|
2
|
+
export declare function ClientSkuPickerGrid(props?: SkuPickerGridProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function ServerSkuPickerGrid(props?: SkuPickerGridProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip as l, TooltipTrigger as n, TooltipContent as o } from "./tooltip.js";
|
|
3
|
-
|
|
3
|
+
import "react";
|
|
4
|
+
const p = (i, r, a) => /* @__PURE__ */ t(l, { children: [
|
|
4
5
|
/* @__PURE__ */ e(n, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "inline-flex items-center justify-center h-full w-full", children: i }) }),
|
|
5
6
|
/* @__PURE__ */ e(o, { variant: "tertiary", className: a, children: r })
|
|
6
7
|
] }), h = (i, r) => /* @__PURE__ */ t(l, { children: [
|
|
@@ -9,5 +10,5 @@ const d = (i, r, a) => /* @__PURE__ */ t(l, { children: [
|
|
|
9
10
|
] });
|
|
10
11
|
export {
|
|
11
12
|
h as defaultAccordionTooltipRender,
|
|
12
|
-
|
|
13
|
+
p as defaultTabTooltipRender
|
|
13
14
|
};
|
|
@@ -2,17 +2,17 @@ import { jsx as r, jsxs as h, Fragment as z } from "react/jsx-runtime";
|
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import { Person as G, Monitor as U, PriorityAlert as q, Locked as O, Reset as B } from "impact-nova-icons";
|
|
4
4
|
import { cn as p } from "../../../lib/utils.js";
|
|
5
|
+
import { Kbd as $ } from "../../primitives/kbd/kbd.js";
|
|
6
|
+
import { keybindingToString as H } from "../../primitives/kbd/keybinding-display.js";
|
|
5
7
|
import { OverflowTooltip as A } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
6
|
-
import { ModuleRegistry as
|
|
7
|
-
import { AllEnterpriseModule as
|
|
8
|
-
import { DataTable as
|
|
8
|
+
import { ModuleRegistry as V, AllCommunityModule as J } from "ag-grid-community";
|
|
9
|
+
import { AllEnterpriseModule as Q } from "ag-grid-enterprise";
|
|
10
|
+
import { DataTable as X, DataTableContent as Y } from "../../data/data-table/data-table.js";
|
|
9
11
|
import { AG_CELL_NO_PADDING as F } from "../../data/ag-grid-react/cell-renderers/index.js";
|
|
10
|
-
import { Kbd as X } from "../../primitives/kbd/kbd.js";
|
|
11
|
-
import { keybindingToString as Y } from "../../primitives/kbd/keybinding-display.js";
|
|
12
12
|
import { useCommandPalette as Z } from "./use-command-palette.js";
|
|
13
13
|
import { COMMAND_SOURCE_LABELS as m, keybindingFromEvent as W, isReservedShortcut as ee } from "./utils.js";
|
|
14
14
|
import { BadgeCellRenderer as te } from "../../data/ag-grid-react/cell-renderers/badge-cell-renderer.js";
|
|
15
|
-
|
|
15
|
+
V.registerModules([J, Q]);
|
|
16
16
|
function re(a) {
|
|
17
17
|
const t = a.data;
|
|
18
18
|
return t ? /* @__PURE__ */ h("div", { className: "flex items-center gap-2 min-w-0 h-full", children: [
|
|
@@ -69,7 +69,7 @@ function ne(a) {
|
|
|
69
69
|
"flex items-center justify-end h-full w-full text-end",
|
|
70
70
|
t.customisable ? "cursor-pointer" : "cursor-default opacity-70"
|
|
71
71
|
),
|
|
72
|
-
children: /* @__PURE__ */ r(
|
|
72
|
+
children: /* @__PURE__ */ r($, { keybinding: t.keybinding, size: "sm" })
|
|
73
73
|
}
|
|
74
74
|
) : t.customisable ? /* @__PURE__ */ r(
|
|
75
75
|
"button",
|
|
@@ -133,7 +133,7 @@ function le({
|
|
|
133
133
|
description: e.description || "",
|
|
134
134
|
category: e.category || "General",
|
|
135
135
|
keybinding: i,
|
|
136
|
-
keybindingDisplay: i ?
|
|
136
|
+
keybindingDisplay: i ? H(i) : "",
|
|
137
137
|
scope: e.scope,
|
|
138
138
|
source: D,
|
|
139
139
|
sourceColor: T ? "primary" : "neutral",
|
|
@@ -278,10 +278,10 @@ function le({
|
|
|
278
278
|
u?.type === "conflict" ? /* @__PURE__ */ r(q, { className: "h-3.5 w-3.5 shrink-0" }) : u?.type === "reserved" ? /* @__PURE__ */ r(O, { className: "h-3.5 w-3.5 shrink-0" }) : c ? /* @__PURE__ */ r("span", { className: "shrink-0 text-base", children: "⌨️" }) : null,
|
|
279
279
|
/* @__PURE__ */ r("span", { children: u ? u.text : L })
|
|
280
280
|
] }) : null;
|
|
281
|
-
return /* @__PURE__ */ h(
|
|
281
|
+
return /* @__PURE__ */ h(X, { className: p("flex flex-col w-full h-full border-t-0", a), children: [
|
|
282
282
|
s ? s(E) : E,
|
|
283
283
|
/* @__PURE__ */ r(
|
|
284
|
-
|
|
284
|
+
Y,
|
|
285
285
|
{
|
|
286
286
|
rowData: y,
|
|
287
287
|
columnDefs: I,
|
|
@@ -6,8 +6,8 @@ import { cn as o } from "../../../lib/utils.js";
|
|
|
6
6
|
import { MultiColorFilter as F, Cross as P, InfoBadge as u } from "impact-nova-icons";
|
|
7
7
|
import { Button as D } from "../../primitives/button/button.js";
|
|
8
8
|
import { Tooltip as c, TooltipTrigger as f, TooltipContent as h } from "../../feedback/tooltip/tooltip.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { Kbd as S } from "../../primitives/kbd/kbd.js";
|
|
10
|
+
import { OverflowTooltip as j } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
11
11
|
import { useImpactNovaI18n as v } from "../../../i18n/use-impact-nova-i18n.js";
|
|
12
12
|
import { useOverlayHostDismissNestedLayersOnNavigation as I } from "../../../lib/overlay/overlay-portal-context.js";
|
|
13
13
|
import { preventDismissOnTooltipOutside as x } from "../../../lib/overlay/prevent-dismiss-on-tooltip-outside.js";
|
|
@@ -145,14 +145,14 @@ const O = ({
|
|
|
145
145
|
),
|
|
146
146
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-1 min-w-0", children: [
|
|
147
147
|
/* @__PURE__ */ e(
|
|
148
|
-
|
|
148
|
+
j,
|
|
149
149
|
{
|
|
150
150
|
triggerClassName: "truncate font-['Manrope'] block min-w-0",
|
|
151
151
|
content: t.tooltipKeybinding ? /* @__PURE__ */ a("span", { className: "flex items-center gap-2", children: [
|
|
152
152
|
t.label,
|
|
153
153
|
" ",
|
|
154
154
|
/* @__PURE__ */ e(
|
|
155
|
-
|
|
155
|
+
S,
|
|
156
156
|
{
|
|
157
157
|
keybinding: t.tooltipKeybinding,
|
|
158
158
|
size: "sm"
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { cn as x } from "../../../../lib/utils.js";
|
|
3
|
+
import "react";
|
|
3
4
|
import { OverflowTooltip as m } from "../../../feedback/tooltip/overflow-tooltip.js";
|
|
4
5
|
import { isInvertedSelection as h, isOptionArray as d } from "../utils/select.js";
|
|
5
|
-
function
|
|
6
|
+
function C({
|
|
6
7
|
isMulti: u,
|
|
7
8
|
isDisabled: p,
|
|
8
9
|
internalValue: o,
|
|
@@ -52,5 +53,5 @@ function w({
|
|
|
52
53
|
);
|
|
53
54
|
}
|
|
54
55
|
export {
|
|
55
|
-
|
|
56
|
+
C as SelectTriggerValue
|
|
56
57
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "@radix-ui/react-popover";
|
|
3
3
|
import { Checkbox as P } from "../../checkbox/checkbox.js";
|
|
4
|
+
import "react";
|
|
4
5
|
import { OverflowTooltip as y } from "../../../feedback/tooltip/overflow-tooltip.js";
|
|
5
6
|
import { ChevronRight as A, Checkmark as O } from "impact-nova-icons";
|
|
6
7
|
import { cn as v } from "../../../../lib/utils.js";
|
|
7
8
|
import { useOverlayPortalContainer as T } from "../../../../lib/overlay/overlay-portal-context.js";
|
|
8
9
|
import { OVERLAY_NESTED_FLOATING_INSTANT_HIDE_CLASS as _ } from "../../../../lib/overlay/overlay-host.constants.js";
|
|
9
10
|
import { useSuppressOptionClickForTextSelection as E } from "../hooks/useSuppressOptionClickForTextSelection.js";
|
|
10
|
-
const
|
|
11
|
+
const R = ({
|
|
11
12
|
parentOption: n,
|
|
12
13
|
isMulti: u,
|
|
13
14
|
isReadOnly: l,
|
|
@@ -105,5 +106,5 @@ const G = ({
|
|
|
105
106
|
] });
|
|
106
107
|
};
|
|
107
108
|
export {
|
|
108
|
-
|
|
109
|
+
R as Submenu
|
|
109
110
|
};
|