impact-nova 2.5.6 → 2.5.7
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-display/calendar/calendar-apply-validation.js +45 -33
- package/dist/components/data-display/calendar/calendar-day-picker-components.js +62 -54
- package/dist/components/data-display/calendar/calendar-day-picker-view.d.ts +1 -1
- package/dist/components/data-display/calendar/calendar-day-picker-view.js +88 -85
- package/dist/components/data-display/calendar/calendar-week-utils.js +23 -22
- package/dist/components/data-display/calendar/use-calendar-state.d.ts +1 -1
- package/dist/components/data-display/calendar/use-calendar-state.js +47 -47
- package/dist/components/flows/guidance/guidance-error-boundary.js +22 -14
- package/dist/components/flows/guidance/guidance-layer.js +34 -32
- package/dist/components/flows/guidance/help-center/assets/whats-new-guide-icon.svg.js +4 -0
- package/dist/components/flows/guidance/help-center/filter-help-center-guides.js +10 -7
- package/dist/components/flows/guidance/help-center/guide-catalog-section.d.ts +7 -0
- package/dist/components/flows/guidance/help-center/guide-catalog-section.js +24 -0
- package/dist/components/flows/guidance/help-center/guide-catalog-utils.d.ts +3 -0
- package/dist/components/flows/guidance/help-center/guide-catalog-utils.js +19 -0
- package/dist/components/flows/guidance/help-center/guide-catalog.d.ts +1 -1
- package/dist/components/flows/guidance/help-center/guide-catalog.js +89 -79
- package/dist/components/flows/guidance/help-center/help-center-guide-labels.d.ts +6 -0
- package/dist/components/flows/guidance/help-center/help-center-guide-labels.js +33 -0
- package/dist/components/flows/guidance/help-center/help-center-guide-row.d.ts +12 -0
- package/dist/components/flows/guidance/help-center/help-center-guide-row.js +57 -0
- package/dist/components/flows/guidance/help-center/help-center-guide-type-icons.d.ts +9 -0
- package/dist/components/flows/guidance/help-center/help-center-guide-type-icons.js +114 -0
- package/dist/components/flows/guidance/help-center/help-center-header.d.ts +1 -1
- package/dist/components/flows/guidance/help-center/help-center-header.js +20 -16
- package/dist/components/flows/guidance/help-center/help-center.constants.d.ts +1 -1
- package/dist/components/flows/guidance/help-center/help-center.constants.js +1 -1
- package/dist/components/flows/guidance/help-center/help-center.d.ts +3 -1
- package/dist/components/flows/guidance/help-center/help-center.js +74 -51
- package/dist/components/flows/guidance/help-center/help-center.types.d.ts +9 -1
- package/dist/components/flows/guidance/help-center/renderHelpCenterGuideTypeIcon.d.ts +4 -0
- package/dist/components/flows/guidance/help-center/renderHelpCenterGuideTypeIcon.js +18 -0
- package/dist/components/flows/guidance/help-center.d.ts +4 -2
- package/dist/components/flows/guidance/help-center.js +23 -14
- package/dist/components/flows/guidance/hooks/useGuidanceOverlayGeometry.js +19 -17
- package/dist/components/flows/guidance/index.d.ts +1 -1
- package/dist/components/flows/guidance/renderers/announcement-renderer.d.ts +1 -1
- package/dist/components/flows/guidance/renderers/announcement-renderer.js +20 -12
- package/dist/components/flows/guidance/renderers/guidance-card-shared.d.ts +9 -11
- package/dist/components/flows/guidance/renderers/guidance-card-shared.js +124 -177
- package/dist/components/flows/guidance/renderers/guidance-renderer-shared.d.ts +1 -1
- package/dist/components/flows/guidance/renderers/guidance-renderer-shared.js +57 -72
- package/dist/components/flows/guidance/renderers/guidance-tour-overlay.js +23 -23
- package/dist/components/flows/wizard/wizard.js +41 -38
- package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +35 -53
- package/dist/form-react/registry/defaultFieldRegistrations.js +36 -28
- package/dist/form-react/types/fields.types.d.ts +3 -3
- package/dist/form-react/utils/date.utils.d.ts +3 -1
- package/dist/form-react/utils/date.utils.js +84 -55
- package/dist/i18n/defaultMessages.d.ts +10 -0
- package/dist/i18n/defaultMessages.js +17 -7
- package/dist/i18n/locales/de.js +13 -3
- package/dist/i18n/locales/es.js +13 -3
- package/dist/i18n/locales/hi.js +13 -3
- package/dist/i18n/locales/kn.js +13 -3
- package/dist/impact-nova.css +1 -1
- package/dist/lib/guidance/engine/guidance-engine.d.ts +7 -5
- package/dist/lib/guidance/engine/guidance-engine.js +115 -47
- package/dist/lib/guidance/triggers/trigger-registry.js +6 -6
- package/dist/lib/guidance/types/guidance.types.d.ts +11 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/package.json +1 -1
|
@@ -1,95 +1,118 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { Sheet as m, SheetContent as d, SheetDescription as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
import { Sheet as m, SheetContent as d, SheetDescription as u, SheetBody as h, SheetFooter as f } from "../../../feedback/sheet/sheet.js";
|
|
4
|
+
import { Button as x } from "../../../primitives/button/button.js";
|
|
5
|
+
import { TabsList as v, TabsTrigger as p } from "../../../primitives/tabs/tabs.js";
|
|
6
|
+
import { useImpactNovaI18n as c } from "../../../../i18n/use-impact-nova-i18n.js";
|
|
7
|
+
import { cn as s } from "../../../../lib/utils.js";
|
|
8
|
+
import { HELP_CENTER_ALL_CATEGORY_VALUE as g } from "./help-center.constants.js";
|
|
9
|
+
function S({
|
|
10
|
+
open: t,
|
|
11
|
+
onOpenChange: r,
|
|
12
|
+
children: o,
|
|
13
|
+
className: n
|
|
13
14
|
}) {
|
|
14
|
-
const { t:
|
|
15
|
-
return /* @__PURE__ */
|
|
15
|
+
const { t: l } = c();
|
|
16
|
+
return /* @__PURE__ */ e(m, { open: t, onOpenChange: r, children: /* @__PURE__ */ i(
|
|
16
17
|
d,
|
|
17
18
|
{
|
|
18
19
|
"data-component": "guidance-help-center",
|
|
19
20
|
side: "right",
|
|
20
|
-
className:
|
|
21
|
+
className: s(
|
|
21
22
|
"w-full max-w-xl overflow-hidden sm:max-w-2xl",
|
|
22
|
-
|
|
23
|
+
n
|
|
23
24
|
),
|
|
24
25
|
children: [
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
|
|
26
|
+
/* @__PURE__ */ e(u, { className: "sr-only", children: l("helpCenter.description") }),
|
|
27
|
+
o
|
|
27
28
|
]
|
|
28
29
|
}
|
|
29
30
|
) });
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
-
children:
|
|
33
|
-
className:
|
|
32
|
+
function j({
|
|
33
|
+
children: t,
|
|
34
|
+
className: r
|
|
34
35
|
}) {
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ e(
|
|
36
37
|
"div",
|
|
37
38
|
{
|
|
38
39
|
"data-component": "guidance-help-center-content",
|
|
39
|
-
className:
|
|
40
|
-
children:
|
|
40
|
+
className: s("flex h-full min-h-0 flex-col bg-canvas-elevated", r),
|
|
41
|
+
children: t
|
|
41
42
|
}
|
|
42
43
|
);
|
|
43
44
|
}
|
|
44
45
|
function E({
|
|
45
|
-
categories:
|
|
46
|
-
allCategoryLabel:
|
|
47
|
-
className:
|
|
46
|
+
categories: t,
|
|
47
|
+
allCategoryLabel: r,
|
|
48
|
+
className: o
|
|
48
49
|
}) {
|
|
49
|
-
const { t:
|
|
50
|
-
return /* @__PURE__ */
|
|
50
|
+
const { t: n } = c(), l = r ?? n("helpCenter.allCategory");
|
|
51
|
+
return /* @__PURE__ */ e(
|
|
51
52
|
"div",
|
|
52
53
|
{
|
|
53
54
|
"data-component": "guidance-help-center-toolbar",
|
|
54
|
-
className:
|
|
55
|
+
className: s(
|
|
55
56
|
"guidance-help-center-toolbar relative z-10 shrink-0 bg-canvas-elevated px-4 pb-3 pt-3",
|
|
56
|
-
|
|
57
|
+
o
|
|
57
58
|
),
|
|
58
|
-
children: /* @__PURE__ */
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
|
|
59
|
+
children: /* @__PURE__ */ i(v, { className: "h-auto w-full max-w-full flex-nowrap justify-start gap-1 overflow-x-auto p-1", children: [
|
|
60
|
+
/* @__PURE__ */ e(p, { value: g, children: l }),
|
|
61
|
+
t.map((a) => /* @__PURE__ */ e(p, { value: a.id, children: a.label }, a.id))
|
|
61
62
|
] })
|
|
62
63
|
}
|
|
63
64
|
);
|
|
64
65
|
}
|
|
65
|
-
function
|
|
66
|
-
children:
|
|
67
|
-
className:
|
|
66
|
+
function _({
|
|
67
|
+
children: t,
|
|
68
|
+
className: r
|
|
68
69
|
}) {
|
|
69
|
-
return /* @__PURE__ */
|
|
70
|
-
|
|
70
|
+
return /* @__PURE__ */ e(
|
|
71
|
+
h,
|
|
71
72
|
{
|
|
72
|
-
className:
|
|
73
|
-
children:
|
|
73
|
+
className: s("flex min-h-0 flex-1 flex-col overflow-hidden p-0", r),
|
|
74
|
+
children: t
|
|
74
75
|
}
|
|
75
76
|
);
|
|
76
77
|
}
|
|
77
|
-
function
|
|
78
|
-
children:
|
|
79
|
-
className:
|
|
78
|
+
function b({
|
|
79
|
+
children: t,
|
|
80
|
+
className: r
|
|
80
81
|
}) {
|
|
81
|
-
return /* @__PURE__ */
|
|
82
|
-
|
|
82
|
+
return /* @__PURE__ */ e(
|
|
83
|
+
f,
|
|
83
84
|
{
|
|
84
|
-
className:
|
|
85
|
-
|
|
85
|
+
className: s(
|
|
86
|
+
"mt-auto shrink-0 justify-start border-t border-stroke-hairline bg-canvas-elevated px-4 py-3",
|
|
87
|
+
r
|
|
88
|
+
),
|
|
89
|
+
children: t
|
|
86
90
|
}
|
|
87
91
|
);
|
|
88
92
|
}
|
|
93
|
+
function A({
|
|
94
|
+
ticketUrl: t,
|
|
95
|
+
ticketLabel: r,
|
|
96
|
+
message: o
|
|
97
|
+
}) {
|
|
98
|
+
const { t: n } = c(), l = o ?? n("helpCenter.supportFooterMessage"), a = r ?? n("helpCenter.supportTicketLabel");
|
|
99
|
+
return /* @__PURE__ */ e(b, { children: /* @__PURE__ */ i(
|
|
100
|
+
"div",
|
|
101
|
+
{
|
|
102
|
+
"data-component": "guidance-help-center-support-footer",
|
|
103
|
+
className: "flex w-full flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",
|
|
104
|
+
children: [
|
|
105
|
+
/* @__PURE__ */ e("p", { className: "text-sm font-semibold leading-snug text-content", children: l }),
|
|
106
|
+
/* @__PURE__ */ e(x, { variant: "outline", size: "sm", className: "shrink-0 sm:ms-auto", asChild: !0, children: /* @__PURE__ */ e("a", { href: t, target: "_blank", rel: "noopener noreferrer", children: a }) })
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
) });
|
|
110
|
+
}
|
|
89
111
|
export {
|
|
90
|
-
|
|
91
|
-
|
|
112
|
+
S as HelpCenter,
|
|
113
|
+
_ as HelpCenterBody,
|
|
92
114
|
E as HelpCenterCategoryTabs,
|
|
93
|
-
|
|
94
|
-
|
|
115
|
+
j as HelpCenterContent,
|
|
116
|
+
b as HelpCenterFooter,
|
|
117
|
+
A as HelpCenterSupportFooter
|
|
95
118
|
};
|
|
@@ -13,6 +13,7 @@ export interface HelpCenterContentProps {
|
|
|
13
13
|
}
|
|
14
14
|
export interface HelpCenterHeaderProps {
|
|
15
15
|
title?: React.ReactNode;
|
|
16
|
+
subtitle?: React.ReactNode;
|
|
16
17
|
children?: React.ReactNode;
|
|
17
18
|
className?: string;
|
|
18
19
|
}
|
|
@@ -29,11 +30,18 @@ export interface HelpCenterFooterProps {
|
|
|
29
30
|
children?: React.ReactNode;
|
|
30
31
|
className?: string;
|
|
31
32
|
}
|
|
33
|
+
export interface HelpCenterSupportFooterProps {
|
|
34
|
+
ticketUrl: string;
|
|
35
|
+
ticketLabel?: string;
|
|
36
|
+
message?: string;
|
|
37
|
+
}
|
|
32
38
|
export interface GuideCatalogProps {
|
|
33
39
|
guides: GuideManifest[];
|
|
34
40
|
onLaunchGuide: (guideId: string) => void;
|
|
35
41
|
replayLabel?: string;
|
|
42
|
+
getLaunchLabel?: (guide: GuideManifest) => string;
|
|
43
|
+
getGuideTypeLabel?: (guide: GuideManifest) => string;
|
|
36
44
|
emptyStateMessage?: string;
|
|
37
|
-
|
|
45
|
+
scrollable?: boolean;
|
|
38
46
|
className?: string;
|
|
39
47
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { GuideType } from '../../../../lib/guidance';
|
|
2
|
+
import { HelpCenterGuideTypeIconProps } from './help-center-guide-type-icons';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export declare function renderHelpCenterGuideTypeIcon(guideType: GuideType, iconProps?: HelpCenterGuideTypeIconProps): React.ReactElement;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { GuidedTourGuideIcon as u, TipGuideIcon as o, HowToGuideIcon as n, WhatsNewGuideIcon as i } from "./help-center-guide-type-icons.js";
|
|
4
|
+
function w(r, e) {
|
|
5
|
+
switch (r) {
|
|
6
|
+
case "whats-new":
|
|
7
|
+
return /* @__PURE__ */ t(i, { ...e });
|
|
8
|
+
case "how-to":
|
|
9
|
+
return /* @__PURE__ */ t(n, { ...e });
|
|
10
|
+
case "tip":
|
|
11
|
+
return /* @__PURE__ */ t(o, { ...e });
|
|
12
|
+
default:
|
|
13
|
+
return /* @__PURE__ */ t(u, { ...e });
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
w as renderHelpCenterGuideTypeIcon
|
|
18
|
+
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
export { HelpCenter, HelpCenterContent, HelpCenterHeader, HelpCenterCategoryTabs, HelpCenterBody, HelpCenterFooter, GuideCatalog, } from './help-center/help-center';
|
|
1
|
+
export { HelpCenter, HelpCenterContent, HelpCenterHeader, HelpCenterCategoryTabs, HelpCenterBody, HelpCenterFooter, HelpCenterSupportFooter, GuideCatalog, GuideCatalogSection, } from './help-center/help-center';
|
|
2
2
|
export { filterHelpCenterGuides } from './help-center/filter-help-center-guides';
|
|
3
3
|
export { HELP_CENTER_ALL_CATEGORY_VALUE } from './help-center/help-center.constants';
|
|
4
|
+
export { getHelpCenterGuideLaunchLabel, getHelpCenterGuideStepCountLabel, getHelpCenterGuideTypeLabel, } from './help-center/help-center-guide-labels';
|
|
5
|
+
export { resolveGuideType } from './help-center/guide-catalog-utils';
|
|
4
6
|
export { useHelpCenter, formatHelpCenterCategoryLabel } from './hooks/use-help-center';
|
|
5
|
-
export type { HelpCenterProps, HelpCenterContentProps, HelpCenterHeaderProps, HelpCenterCategoryTabsProps, HelpCenterBodyProps, HelpCenterFooterProps, GuideCatalogProps, } from './help-center/help-center.types';
|
|
7
|
+
export type { HelpCenterProps, HelpCenterContentProps, HelpCenterHeaderProps, HelpCenterCategoryTabsProps, HelpCenterBodyProps, HelpCenterFooterProps, HelpCenterSupportFooterProps, GuideCatalogProps, } from './help-center/help-center.types';
|
|
6
8
|
export type { HelpCenterCategory } from './hooks/use-help-center';
|
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
import { HelpCenter as t, HelpCenterBody as o, HelpCenterCategoryTabs as p, HelpCenterContent as
|
|
2
|
-
import { filterHelpCenterGuides as
|
|
3
|
-
import { HELP_CENTER_ALL_CATEGORY_VALUE as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { HelpCenter as t, HelpCenterBody as o, HelpCenterCategoryTabs as p, HelpCenterContent as l, HelpCenterFooter as C, HelpCenterSupportFooter as n } from "./help-center/help-center.js";
|
|
2
|
+
import { filterHelpCenterGuides as a } from "./help-center/filter-help-center-guides.js";
|
|
3
|
+
import { HELP_CENTER_ALL_CATEGORY_VALUE as u } from "./help-center/help-center.constants.js";
|
|
4
|
+
import { getHelpCenterGuideLaunchLabel as d, getHelpCenterGuideStepCountLabel as i, getHelpCenterGuideTypeLabel as x } from "./help-center/help-center-guide-labels.js";
|
|
5
|
+
import { resolveGuideType as G } from "./help-center/guide-catalog-utils.js";
|
|
6
|
+
import { formatHelpCenterCategoryLabel as b, useHelpCenter as y } from "./hooks/use-help-center.js";
|
|
7
|
+
import { GuideCatalog as T } from "./help-center/guide-catalog.js";
|
|
8
|
+
import { GuideCatalogSection as _ } from "./help-center/guide-catalog-section.js";
|
|
9
|
+
import { HelpCenterHeader as S } from "./help-center/help-center-header.js";
|
|
7
10
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
T as GuideCatalog,
|
|
12
|
+
_ as GuideCatalogSection,
|
|
13
|
+
u as HELP_CENTER_ALL_CATEGORY_VALUE,
|
|
10
14
|
t as HelpCenter,
|
|
11
15
|
o as HelpCenterBody,
|
|
12
16
|
p as HelpCenterCategoryTabs,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
l as HelpCenterContent,
|
|
18
|
+
C as HelpCenterFooter,
|
|
19
|
+
S as HelpCenterHeader,
|
|
20
|
+
n as HelpCenterSupportFooter,
|
|
21
|
+
a as filterHelpCenterGuides,
|
|
22
|
+
b as formatHelpCenterCategoryLabel,
|
|
23
|
+
d as getHelpCenterGuideLaunchLabel,
|
|
24
|
+
i as getHelpCenterGuideStepCountLabel,
|
|
25
|
+
x as getHelpCenterGuideTypeLabel,
|
|
26
|
+
G as resolveGuideType,
|
|
27
|
+
y as useHelpCenter
|
|
19
28
|
};
|
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { beginTourScrollSnapshot as
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import { beginTourScrollSnapshot as l, needsGuidanceTargetScroll as f, scrollGuidanceTargetIntoView as s, getVisibleTargetRect as v } from "../renderers/guidance-renderer-shared.js";
|
|
3
3
|
import { hasRunningAnimations as p } from "../utils/motion-settle.js";
|
|
4
|
-
function T(e,
|
|
5
|
-
const [
|
|
6
|
-
return
|
|
4
|
+
function T(e, d) {
|
|
5
|
+
const [m, t] = u.useState(null);
|
|
6
|
+
return u.useEffect(() => {
|
|
7
7
|
if (!e) {
|
|
8
|
-
|
|
8
|
+
t(null);
|
|
9
9
|
return;
|
|
10
10
|
}
|
|
11
|
-
let
|
|
11
|
+
let n = !1, o = 0;
|
|
12
12
|
const r = () => {
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
r(), !
|
|
13
|
+
n || t(v(e));
|
|
14
|
+
}, c = () => {
|
|
15
|
+
r(), !n && p(e) && (o = requestAnimationFrame(c));
|
|
16
16
|
};
|
|
17
|
-
|
|
18
|
-
const a = new ResizeObserver(
|
|
17
|
+
l(e), f(e) && s(e), r(), o = requestAnimationFrame(c);
|
|
18
|
+
const a = new ResizeObserver(() => {
|
|
19
|
+
s(e), r();
|
|
20
|
+
});
|
|
19
21
|
a.observe(e);
|
|
20
|
-
const
|
|
21
|
-
r();
|
|
22
|
+
const i = () => {
|
|
23
|
+
s(e), r();
|
|
22
24
|
};
|
|
23
|
-
return window.addEventListener("resize",
|
|
24
|
-
|
|
25
|
+
return window.addEventListener("resize", i), document.addEventListener("scroll", i, !0), () => {
|
|
26
|
+
n = !0, cancelAnimationFrame(o), a.disconnect(), window.removeEventListener("resize", i), document.removeEventListener("scroll", i, !0);
|
|
25
27
|
};
|
|
26
|
-
}, [
|
|
28
|
+
}, [d, e]), m;
|
|
27
29
|
}
|
|
28
30
|
export {
|
|
29
31
|
T as useGuidanceOverlayGeometry
|
|
@@ -15,4 +15,4 @@ export { createAgGridTargetAdapter, createAgGridReadyTriggerPlugin, emitAgGridRe
|
|
|
15
15
|
export type { AgGridTargetConfig } from './adapters/ag-grid-adapter';
|
|
16
16
|
export { createDialogOpenedTriggerPlugin, getOverlayScopeRoot, } from './adapters/overlay-adapter';
|
|
17
17
|
export { registerRenderer, getRenderer } from './renderers/renderer-registry';
|
|
18
|
-
export type { GuideManifest, Step, StepContent, TriggerExpression, GuidanceSessionState, GuidancePlugin, GuidanceStorageAdapter, GuidanceAnalyticsAdapter, RendererProps, RenderInstruction, } from '../../../lib/guidance';
|
|
18
|
+
export type { GuideManifest, Step, StepContent, StepTransition, TriggerExpression, GuidanceSessionState, GuidancePlugin, GuidanceStorageAdapter, GuidanceAnalyticsAdapter, RendererProps, RenderInstruction, } from '../../../lib/guidance';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { RendererProps } from '../../../../lib/guidance';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export declare function AnnouncementRenderer({ instruction, onNext, onSkip,
|
|
3
|
+
export declare function AnnouncementRenderer({ instruction, onNext, onSkip, }: RendererProps): React.ReactElement;
|
|
@@ -1,23 +1,31 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { Dialog as
|
|
4
|
-
import { GuidanceStepPanel as
|
|
5
|
-
function
|
|
3
|
+
import { Dialog as r, DialogContent as l } from "../../../feedback/dialog/dialog.js";
|
|
4
|
+
import { GuidanceStepPanel as d } from "./guidance-card-shared.js";
|
|
5
|
+
function f({
|
|
6
6
|
instruction: e,
|
|
7
|
-
onNext:
|
|
8
|
-
onSkip:
|
|
9
|
-
onDismiss: t
|
|
7
|
+
onNext: a,
|
|
8
|
+
onSkip: n
|
|
10
9
|
}) {
|
|
11
10
|
const p = e.stepIndex + 1 >= e.totalSteps;
|
|
12
|
-
return /* @__PURE__ */ o(
|
|
11
|
+
return /* @__PURE__ */ o(r, { open: !0, children: /* @__PURE__ */ o(
|
|
13
12
|
l,
|
|
14
13
|
{
|
|
15
14
|
"data-component": "guidance-announcement",
|
|
16
15
|
hideClose: !0,
|
|
17
16
|
className: "max-w-[400px] gap-0 overflow-hidden p-0 sm:rounded-2xl sm:shadow-elevation-floating",
|
|
18
17
|
"aria-describedby": void 0,
|
|
18
|
+
onPointerDownOutside: (t) => {
|
|
19
|
+
t.preventDefault();
|
|
20
|
+
},
|
|
21
|
+
onInteractOutside: (t) => {
|
|
22
|
+
t.preventDefault();
|
|
23
|
+
},
|
|
24
|
+
onEscapeKeyDown: (t) => {
|
|
25
|
+
t.preventDefault();
|
|
26
|
+
},
|
|
19
27
|
children: /* @__PURE__ */ o(
|
|
20
|
-
|
|
28
|
+
d,
|
|
21
29
|
{
|
|
22
30
|
title: e.content.title,
|
|
23
31
|
body: e.content.body,
|
|
@@ -26,9 +34,9 @@ function b({
|
|
|
26
34
|
totalSteps: e.totalSteps,
|
|
27
35
|
skippable: e.skippable,
|
|
28
36
|
primaryActionLabel: p ? "Done" : "Next",
|
|
29
|
-
onSkip:
|
|
30
|
-
onDismiss:
|
|
31
|
-
onPrimaryAction:
|
|
37
|
+
onSkip: n,
|
|
38
|
+
onDismiss: n,
|
|
39
|
+
onPrimaryAction: a,
|
|
32
40
|
showPrimaryAction: !0
|
|
33
41
|
}
|
|
34
42
|
)
|
|
@@ -36,5 +44,5 @@ function b({
|
|
|
36
44
|
) });
|
|
37
45
|
}
|
|
38
46
|
export {
|
|
39
|
-
|
|
47
|
+
f as AnnouncementRenderer
|
|
40
48
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare function
|
|
3
|
-
onClose: () => void;
|
|
4
|
-
closeAriaLabel: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
}): React.ReactElement;
|
|
7
|
-
export declare function GuidanceStepProgress({ activeStepIndex, totalSteps, }: {
|
|
2
|
+
export declare function GuidanceStepProgressBar({ activeStepIndex, totalSteps, className, }: {
|
|
8
3
|
activeStepIndex: number;
|
|
9
4
|
totalSteps: number;
|
|
5
|
+
className?: string;
|
|
10
6
|
}): React.ReactElement | null;
|
|
11
|
-
export declare function
|
|
7
|
+
export declare function GuidanceTourInteractionFooter({ hint, }: {
|
|
8
|
+
hint: string;
|
|
9
|
+
}): React.ReactElement;
|
|
10
|
+
export declare function GuidanceStepCounter({ activeStepIndex, totalSteps, }: {
|
|
12
11
|
activeStepIndex: number;
|
|
13
12
|
totalSteps: number;
|
|
14
13
|
}): React.ReactElement;
|
|
@@ -19,10 +18,9 @@ export interface GuidanceTourNavFooterProps {
|
|
|
19
18
|
primaryActionLabel: string;
|
|
20
19
|
onSkip: () => void;
|
|
21
20
|
onPrimaryAction: () => void;
|
|
22
|
-
showPrimaryAction
|
|
23
|
-
footerHint?: string | null;
|
|
21
|
+
showPrimaryAction?: boolean;
|
|
24
22
|
}
|
|
25
|
-
export declare function GuidanceTourNavFooter({ activeStepIndex, totalSteps, skippable, primaryActionLabel, onSkip, onPrimaryAction, showPrimaryAction,
|
|
23
|
+
export declare function GuidanceTourNavFooter({ activeStepIndex, totalSteps, skippable, primaryActionLabel, onSkip, onPrimaryAction, showPrimaryAction, }: GuidanceTourNavFooterProps): React.ReactElement;
|
|
26
24
|
export interface GuidanceStepPanelProps {
|
|
27
25
|
title: string;
|
|
28
26
|
body: string;
|
|
@@ -39,4 +37,4 @@ export interface GuidanceStepPanelProps {
|
|
|
39
37
|
titleId?: string;
|
|
40
38
|
bodyId?: string;
|
|
41
39
|
}
|
|
42
|
-
export declare function GuidanceStepPanel({ title, body, optionalFooter, stepIndex, totalSteps, skippable, primaryActionLabel, onSkip,
|
|
40
|
+
export declare function GuidanceStepPanel({ title, body, optionalFooter, stepIndex, totalSteps, skippable, primaryActionLabel, onSkip, onPrimaryAction, showPrimaryAction, footerHint, titleId, bodyId, }: GuidanceStepPanelProps): React.ReactElement;
|