impact-nova 2.5.6 → 2.5.8
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.types.d.ts +2 -2
- package/dist/components/data/ag-grid-react/headers/components/date-filter-picker.d.ts +4 -2
- package/dist/components/data/ag-grid-react/headers/header-search-input.js +65 -65
- package/dist/components/data/ag-grid-react/headers/utils/date-utils.js +55 -48
- package/dist/components/data-display/calendar/calendar-apply-validation.d.ts +4 -2
- package/dist/components/data-display/calendar/calendar-apply-validation.js +82 -51
- package/dist/components/data-display/calendar/calendar-config.d.ts +13 -5
- package/dist/components/data-display/calendar/calendar-config.js +31 -20
- package/dist/components/data-display/calendar/calendar-day-button.js +43 -35
- package/dist/components/data-display/calendar/calendar-day-hover.d.ts +8 -0
- package/dist/components/data-display/calendar/calendar-day-hover.js +20 -0
- package/dist/components/data-display/calendar/calendar-day-picker-classnames.d.ts +8 -1
- package/dist/components/data-display/calendar/calendar-day-picker-classnames.js +40 -20
- package/dist/components/data-display/calendar/calendar-day-picker-components.d.ts +12 -1
- package/dist/components/data-display/calendar/calendar-day-picker-components.js +199 -98
- package/dist/components/data-display/calendar/calendar-day-picker-view.d.ts +12 -4
- package/dist/components/data-display/calendar/calendar-day-picker-view.js +139 -92
- package/dist/components/data-display/calendar/calendar-fiscal-labels.d.ts +38 -0
- package/dist/components/data-display/calendar/calendar-fiscal-labels.js +90 -0
- package/dist/components/data-display/calendar/calendar-footer-summary.d.ts +13 -4
- package/dist/components/data-display/calendar/calendar-footer-summary.js +101 -50
- package/dist/components/data-display/calendar/calendar-footer.d.ts +16 -7
- package/dist/components/data-display/calendar/calendar-footer.js +88 -66
- package/dist/components/data-display/calendar/calendar-gregorian-presets.d.ts +2 -0
- package/dist/components/data-display/calendar/calendar-gregorian-presets.js +26 -0
- package/dist/components/data-display/calendar/calendar-interval-caption.d.ts +1 -0
- package/dist/components/data-display/calendar/calendar-interval-caption.js +10 -0
- package/dist/components/data-display/calendar/calendar-interval-utils.d.ts +23 -0
- package/dist/components/data-display/calendar/calendar-interval-utils.js +154 -0
- package/dist/components/data-display/calendar/calendar-month-panes.d.ts +5 -1
- package/dist/components/data-display/calendar/calendar-month-panes.js +9 -7
- package/dist/components/data-display/calendar/calendar-month-picker-panel.d.ts +5 -1
- package/dist/components/data-display/calendar/calendar-month-picker-panel.js +76 -77
- package/dist/components/data-display/calendar/calendar-month-utils.d.ts +2 -0
- package/dist/components/data-display/calendar/calendar-month-utils.js +69 -60
- package/dist/components/data-display/calendar/calendar-padding-week.utils.d.ts +15 -0
- package/dist/components/data-display/calendar/calendar-padding-week.utils.js +22 -3
- package/dist/components/data-display/calendar/calendar-panel-context.d.ts +1 -1
- package/dist/components/data-display/calendar/calendar-period-cell.d.ts +18 -0
- package/dist/components/data-display/calendar/calendar-period-cell.js +89 -0
- package/dist/components/data-display/calendar/calendar-period-keyboard.d.ts +2 -0
- package/dist/components/data-display/calendar/calendar-period-keyboard.js +18 -0
- package/dist/components/data-display/calendar/calendar-preset-strip.d.ts +6 -0
- package/dist/components/data-display/calendar/calendar-preset-strip.js +26 -0
- package/dist/components/data-display/calendar/calendar-quarter-panes.d.ts +24 -0
- package/dist/components/data-display/calendar/calendar-quarter-panes.js +115 -0
- package/dist/components/data-display/calendar/calendar-quarter-utils.d.ts +19 -0
- package/dist/components/data-display/calendar/calendar-quarter-utils.js +95 -0
- package/dist/components/data-display/calendar/calendar-selection-appearance.d.ts +38 -0
- package/dist/components/data-display/calendar/calendar-selection-appearance.js +72 -0
- package/dist/components/data-display/calendar/calendar-selection.d.ts +20 -0
- package/dist/components/data-display/calendar/calendar-selection.js +31 -0
- package/dist/components/data-display/calendar/calendar-week-number-cell.d.ts +6 -1
- package/dist/components/data-display/calendar/calendar-week-number-cell.js +53 -38
- package/dist/components/data-display/calendar/calendar-week-number-header.d.ts +4 -0
- package/dist/components/data-display/calendar/calendar-week-number-header.js +15 -0
- package/dist/components/data-display/calendar/calendar-week-utils.d.ts +11 -3
- package/dist/components/data-display/calendar/calendar-week-utils.js +50 -42
- package/dist/components/data-display/calendar/calendar-year-panes.d.ts +18 -0
- package/dist/components/data-display/calendar/calendar-year-panes.js +98 -0
- package/dist/components/data-display/calendar/calendar-year-utils.d.ts +17 -0
- package/dist/components/data-display/calendar/calendar-year-utils.js +75 -0
- package/dist/components/data-display/calendar/calendar.d.ts +1 -1
- package/dist/components/data-display/calendar/calendar.js +303 -181
- package/dist/components/data-display/calendar/calendar.types.d.ts +53 -16
- package/dist/components/data-display/calendar/fiscal-period-caption-select.d.ts +7 -0
- package/dist/components/data-display/calendar/fiscal-period-caption-select.js +63 -0
- package/dist/components/data-display/calendar/index.d.ts +1 -1
- package/dist/components/data-display/calendar/use-calendar-day-picker-config.d.ts +12 -2
- package/dist/components/data-display/calendar/use-calendar-day-picker-config.js +92 -62
- package/dist/components/data-display/calendar/use-calendar-state.d.ts +32 -12
- package/dist/components/data-display/calendar/use-calendar-state.js +371 -164
- package/dist/components/data-display/calendar/use-fiscal-calendar.d.ts +5 -0
- package/dist/components/data-display/calendar/use-fiscal-calendar.js +24 -0
- package/dist/components/feedback/tooltip/overflow-tooltip.js +57 -57
- 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/forms/date-picker/date-input-behavior.d.ts +7 -0
- package/dist/components/forms/date-picker/date-input-behavior.js +28 -24
- package/dist/components/forms/date-picker/date-picker-shell.d.ts +13 -0
- package/dist/components/forms/date-picker/date-picker-shell.js +31 -0
- package/dist/components/forms/date-picker/date-picker.js +187 -167
- package/dist/components/forms/date-picker/date-picker.types.d.ts +90 -43
- package/dist/components/forms/date-picker/date-range-picker.js +273 -224
- package/dist/components/forms/date-picker/fiscal-pass-through.d.ts +13 -0
- package/dist/components/forms/date-picker/fiscal-pass-through.js +17 -0
- package/dist/components/forms/date-picker/fiscal-period-format.d.ts +9 -0
- package/dist/components/forms/date-picker/fiscal-period-format.js +50 -0
- package/dist/components/forms/date-picker/index.d.ts +12 -0
- package/dist/components/forms/date-picker/index.js +19 -7
- package/dist/components/forms/date-picker/month-picker.js +225 -182
- package/dist/components/forms/date-picker/month-range-picker.js +134 -110
- package/dist/components/forms/date-picker/multi-date-picker.js +77 -56
- package/dist/components/forms/date-picker/multi-month-picker.js +78 -57
- package/dist/components/forms/date-picker/multi-quarter-picker.d.ts +3 -0
- package/dist/components/forms/date-picker/multi-quarter-picker.js +177 -0
- package/dist/components/forms/date-picker/multi-week-picker.js +81 -70
- package/dist/components/forms/date-picker/multi-year-picker.d.ts +3 -0
- package/dist/components/forms/date-picker/multi-year-picker.js +179 -0
- package/dist/components/forms/date-picker/quarter-picker.d.ts +3 -0
- package/dist/components/forms/date-picker/quarter-picker.js +176 -0
- package/dist/components/forms/date-picker/quarter-range-picker.d.ts +3 -0
- package/dist/components/forms/date-picker/quarter-range-picker.js +177 -0
- package/dist/components/forms/date-picker/week-picker.js +148 -137
- package/dist/components/forms/date-picker/week-range-picker.js +216 -205
- package/dist/components/forms/date-picker/year-picker.d.ts +3 -0
- package/dist/components/forms/date-picker/year-picker.js +176 -0
- package/dist/components/forms/date-picker/year-range-picker.d.ts +3 -0
- package/dist/components/forms/date-picker/year-range-picker.js +179 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +35 -53
- package/dist/form-react/Fields/DateInputField.js +63 -58
- package/dist/form-react/Fields/DateRangeField.js +42 -37
- package/dist/form-react/Fields/MonthRangeField.js +50 -45
- package/dist/form-react/Fields/MultiWeekPickerField.js +7 -7
- package/dist/form-react/Fields/WeekRangePicker.js +44 -45
- package/dist/form-react/components/FieldRenderer.js +21 -23
- package/dist/form-react/registry/defaultFieldRegistrations.d.ts +9 -1
- package/dist/form-react/registry/defaultFieldRegistrations.js +11 -12
- package/dist/form-react/registry/resolveFieldComponent.d.ts +3 -2
- package/dist/form-react/registry/resolveFieldComponent.js +9 -133
- package/dist/form-react/types/fields.types.d.ts +22 -7
- package/dist/form-react/utils/date.utils.d.ts +3 -1
- package/dist/form-react/utils/date.utils.js +82 -53
- package/dist/i18n/defaultMessages.d.ts +29 -1
- package/dist/i18n/defaultMessages.js +54 -27
- package/dist/i18n/locales/de.js +31 -4
- package/dist/i18n/locales/es.js +31 -4
- package/dist/i18n/locales/hi.js +31 -4
- package/dist/i18n/locales/kn.js +31 -4
- package/dist/impact-nova-components.css +379 -3
- package/dist/impact-nova.css +1 -1
- package/dist/index.js +528 -516
- package/dist/lib/fiscal-calendar/build-year.d.ts +8 -0
- package/dist/lib/fiscal-calendar/build-year.js +173 -0
- package/dist/lib/fiscal-calendar/civil-date.d.ts +21 -0
- package/dist/lib/fiscal-calendar/civil-date.js +94 -0
- package/dist/lib/fiscal-calendar/index.d.ts +10 -0
- package/dist/lib/fiscal-calendar/index.js +40 -0
- package/dist/lib/fiscal-calendar/lookup.d.ts +4 -0
- package/dist/lib/fiscal-calendar/lookup.js +70 -0
- package/dist/lib/fiscal-calendar/presets.d.ts +8 -0
- package/dist/lib/fiscal-calendar/presets.js +99 -0
- package/dist/lib/fiscal-calendar/selection.d.ts +18 -0
- package/dist/lib/fiscal-calendar/selection.js +32 -0
- package/dist/lib/fiscal-calendar/types.d.ts +145 -0
- package/dist/lib/fiscal-calendar/types.js +10 -0
- package/dist/lib/fiscal-calendar/week-selection.d.ts +22 -0
- package/dist/lib/fiscal-calendar/week-selection.js +107 -0
- 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 +5 -1
- package/dist/lib/fiscal-calendar.d.ts +0 -62
- package/dist/lib/fiscal-calendar.js +0 -99
|
@@ -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;
|
|
@@ -1,213 +1,160 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as c, jsx as e, Fragment as N } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Button as m } from "../../../primitives/button/button.js";
|
|
4
|
+
import { Progress as b } from "../../../primitives/progress/progress.js";
|
|
5
5
|
import { cn as h } from "../../../../lib/utils.js";
|
|
6
|
-
const
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
markerId: `leading-${r}`
|
|
25
|
-
});
|
|
26
|
-
for (let r = t; r <= a; r += 1)
|
|
27
|
-
i.push({ kind: "step", stepIndex: r });
|
|
28
|
-
if (a < e - 1)
|
|
29
|
-
for (let r = 0; r < f; r += 1)
|
|
30
|
-
i.push({
|
|
31
|
-
kind: "ellipsis",
|
|
32
|
-
markerId: `trailing-${r}`
|
|
33
|
-
});
|
|
34
|
-
return i;
|
|
6
|
+
const v = "End Tour";
|
|
7
|
+
function G({
|
|
8
|
+
activeStepIndex: t,
|
|
9
|
+
totalSteps: n,
|
|
10
|
+
className: a
|
|
11
|
+
}) {
|
|
12
|
+
if (n <= 1)
|
|
13
|
+
return null;
|
|
14
|
+
const r = (t + 1) / n * 100;
|
|
15
|
+
return /* @__PURE__ */ e(
|
|
16
|
+
b,
|
|
17
|
+
{
|
|
18
|
+
value: r,
|
|
19
|
+
label: !1,
|
|
20
|
+
className: h("bg-brand-subtle", a),
|
|
21
|
+
"aria-label": `Step ${t + 1} of ${n}`
|
|
22
|
+
}
|
|
23
|
+
);
|
|
35
24
|
}
|
|
36
|
-
function
|
|
37
|
-
|
|
38
|
-
closeAriaLabel: e,
|
|
39
|
-
className: t
|
|
25
|
+
function $({
|
|
26
|
+
hint: t
|
|
40
27
|
}) {
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
-
|
|
28
|
+
return /* @__PURE__ */ e(
|
|
29
|
+
"div",
|
|
43
30
|
{
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"shrink-0 text-content-tertiary hover:text-content-secondary",
|
|
48
|
-
t
|
|
49
|
-
),
|
|
50
|
-
"aria-label": e,
|
|
51
|
-
onClick: s,
|
|
52
|
-
children: /* @__PURE__ */ n(v, { className: "size-3.5" })
|
|
31
|
+
"data-component": "guidance-tour-interaction-footer",
|
|
32
|
+
className: "border-t border-stroke-hairline bg-canvas-subtle px-4 py-2.5 text-center text-sm leading-snug text-content-secondary",
|
|
33
|
+
children: t
|
|
53
34
|
}
|
|
54
35
|
);
|
|
55
36
|
}
|
|
56
|
-
function
|
|
57
|
-
activeStepIndex:
|
|
58
|
-
totalSteps:
|
|
37
|
+
function y({
|
|
38
|
+
activeStepIndex: t,
|
|
39
|
+
totalSteps: n
|
|
59
40
|
}) {
|
|
60
|
-
return
|
|
61
|
-
|
|
41
|
+
return /* @__PURE__ */ c(
|
|
42
|
+
"span",
|
|
62
43
|
{
|
|
63
|
-
|
|
64
|
-
|
|
44
|
+
className: "text-sm leading-none",
|
|
45
|
+
"aria-label": `Step ${t + 1} of ${n}`,
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ e("span", { className: "font-bold text-content", children: t + 1 }),
|
|
48
|
+
/* @__PURE__ */ e("span", { className: "font-normal text-content-tertiary", children: ` / ${n}` })
|
|
49
|
+
]
|
|
65
50
|
}
|
|
66
51
|
);
|
|
67
52
|
}
|
|
68
|
-
function
|
|
69
|
-
activeStepIndex:
|
|
70
|
-
totalSteps:
|
|
53
|
+
function x({
|
|
54
|
+
activeStepIndex: t,
|
|
55
|
+
totalSteps: n,
|
|
56
|
+
skippable: a,
|
|
57
|
+
primaryActionLabel: r,
|
|
58
|
+
onSkip: l,
|
|
59
|
+
onPrimaryAction: i,
|
|
60
|
+
showPrimaryAction: s = !0
|
|
71
61
|
}) {
|
|
72
|
-
|
|
73
|
-
return /* @__PURE__ */ n(
|
|
62
|
+
return /* @__PURE__ */ c(
|
|
74
63
|
"div",
|
|
75
64
|
{
|
|
76
|
-
className:
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
if (a.kind === "ellipsis")
|
|
84
|
-
return /* @__PURE__ */ n(
|
|
85
|
-
"span",
|
|
86
|
-
{
|
|
87
|
-
className: "size-1 rounded-full bg-stroke",
|
|
88
|
-
"aria-hidden": "true"
|
|
89
|
-
},
|
|
90
|
-
a.markerId
|
|
91
|
-
);
|
|
92
|
-
const i = a.stepIndex;
|
|
93
|
-
return /* @__PURE__ */ n(
|
|
94
|
-
"span",
|
|
65
|
+
className: h(
|
|
66
|
+
"flex items-center justify-between gap-3 px-4",
|
|
67
|
+
s ? "pb-4 pt-2" : "pb-2 pt-2"
|
|
68
|
+
),
|
|
69
|
+
children: [
|
|
70
|
+
n > 1 ? /* @__PURE__ */ e(
|
|
71
|
+
y,
|
|
95
72
|
{
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
73
|
+
activeStepIndex: t,
|
|
74
|
+
totalSteps: n
|
|
75
|
+
}
|
|
76
|
+
) : /* @__PURE__ */ e("span", { "aria-hidden": "true" }),
|
|
77
|
+
/* @__PURE__ */ c("div", { className: "ms-auto flex shrink-0 items-center gap-2", children: [
|
|
78
|
+
a ? /* @__PURE__ */ e(m, { variant: "secondary", size: "md", onClick: l, children: v }) : null,
|
|
79
|
+
s ? /* @__PURE__ */ e(m, { size: "md", onClick: i, children: r }) : null
|
|
80
|
+
] })
|
|
81
|
+
]
|
|
104
82
|
}
|
|
105
83
|
);
|
|
106
84
|
}
|
|
107
|
-
function
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
{
|
|
122
|
-
activeStepIndex: s,
|
|
123
|
-
totalSteps: e
|
|
124
|
-
}
|
|
125
|
-
) }) : null,
|
|
126
|
-
/* @__PURE__ */ o("div", { className: "flex items-center justify-between gap-3", children: [
|
|
127
|
-
/* @__PURE__ */ n("div", { className: "shrink-0", children: t ? /* @__PURE__ */ n(
|
|
128
|
-
"button",
|
|
129
|
-
{
|
|
130
|
-
type: "button",
|
|
131
|
-
className: "flex h-6 items-center text-sm leading-4 text-content-tertiary transition-colors hover:text-content-secondary",
|
|
132
|
-
onClick: i,
|
|
133
|
-
children: "Skip"
|
|
134
|
-
}
|
|
135
|
-
) : null }),
|
|
136
|
-
/* @__PURE__ */ n("div", { className: "min-w-0 text-right", children: l ? /* @__PURE__ */ n(
|
|
137
|
-
x,
|
|
138
|
-
{
|
|
139
|
-
size: "sm",
|
|
140
|
-
className: "rounded-full px-4",
|
|
141
|
-
onClick: r,
|
|
142
|
-
children: a
|
|
143
|
-
}
|
|
144
|
-
) : c ? /* @__PURE__ */ n("span", { className: "text-xs font-medium leading-snug text-content-tertiary", children: c }) : null })
|
|
145
|
-
] })
|
|
146
|
-
] });
|
|
147
|
-
}
|
|
148
|
-
function z({
|
|
149
|
-
title: s,
|
|
150
|
-
body: e,
|
|
151
|
-
optionalFooter: t,
|
|
152
|
-
stepIndex: a,
|
|
153
|
-
totalSteps: i,
|
|
154
|
-
skippable: r,
|
|
155
|
-
primaryActionLabel: l,
|
|
156
|
-
onSkip: c,
|
|
157
|
-
onDismiss: d,
|
|
158
|
-
onPrimaryAction: p,
|
|
159
|
-
showPrimaryAction: N,
|
|
160
|
-
footerHint: m,
|
|
161
|
-
titleId: g,
|
|
162
|
-
bodyId: k
|
|
85
|
+
function E({
|
|
86
|
+
title: t,
|
|
87
|
+
body: n,
|
|
88
|
+
optionalFooter: a,
|
|
89
|
+
stepIndex: r,
|
|
90
|
+
totalSteps: l,
|
|
91
|
+
skippable: i,
|
|
92
|
+
primaryActionLabel: s,
|
|
93
|
+
onSkip: d,
|
|
94
|
+
onPrimaryAction: u,
|
|
95
|
+
showPrimaryAction: f,
|
|
96
|
+
footerHint: o,
|
|
97
|
+
titleId: p,
|
|
98
|
+
bodyId: g
|
|
163
99
|
}) {
|
|
164
|
-
return /* @__PURE__ */
|
|
165
|
-
/* @__PURE__ */
|
|
166
|
-
/* @__PURE__ */
|
|
100
|
+
return /* @__PURE__ */ c("div", { className: "flex flex-col", children: [
|
|
101
|
+
/* @__PURE__ */ c("div", { className: "px-4 pt-4", children: [
|
|
102
|
+
/* @__PURE__ */ e(
|
|
167
103
|
"h3",
|
|
168
104
|
{
|
|
169
|
-
id:
|
|
170
|
-
className: "
|
|
171
|
-
children:
|
|
105
|
+
id: p,
|
|
106
|
+
className: "text-base font-bold leading-5 text-content",
|
|
107
|
+
children: t
|
|
172
108
|
}
|
|
173
109
|
),
|
|
174
|
-
/* @__PURE__ */
|
|
175
|
-
|
|
110
|
+
n ? /* @__PURE__ */ e(
|
|
111
|
+
"p",
|
|
176
112
|
{
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
113
|
+
id: g,
|
|
114
|
+
className: "mt-2 text-sm leading-snug text-content-secondary",
|
|
115
|
+
children: n
|
|
180
116
|
}
|
|
181
|
-
)
|
|
117
|
+
) : null,
|
|
118
|
+
a && !o ? /* @__PURE__ */ e("p", { className: "mt-1.5 text-xs text-content-tertiary", children: a }) : null
|
|
182
119
|
] }),
|
|
183
|
-
e
|
|
184
|
-
|
|
120
|
+
/* @__PURE__ */ e("div", { className: "px-4 pt-3", children: /* @__PURE__ */ e(
|
|
121
|
+
G,
|
|
185
122
|
{
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
children: e
|
|
123
|
+
activeStepIndex: r,
|
|
124
|
+
totalSteps: l
|
|
189
125
|
}
|
|
190
|
-
)
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
126
|
+
) }),
|
|
127
|
+
!!o ? /* @__PURE__ */ c(N, { children: [
|
|
128
|
+
i ? /* @__PURE__ */ e(
|
|
129
|
+
x,
|
|
130
|
+
{
|
|
131
|
+
activeStepIndex: r,
|
|
132
|
+
totalSteps: l,
|
|
133
|
+
skippable: i,
|
|
134
|
+
primaryActionLabel: s,
|
|
135
|
+
onSkip: d,
|
|
136
|
+
onPrimaryAction: u,
|
|
137
|
+
showPrimaryAction: !1
|
|
138
|
+
}
|
|
139
|
+
) : null,
|
|
140
|
+
/* @__PURE__ */ e($, { hint: o })
|
|
141
|
+
] }) : f ? /* @__PURE__ */ e(
|
|
142
|
+
x,
|
|
194
143
|
{
|
|
195
|
-
activeStepIndex:
|
|
196
|
-
totalSteps:
|
|
197
|
-
skippable:
|
|
198
|
-
primaryActionLabel:
|
|
199
|
-
onSkip:
|
|
200
|
-
onPrimaryAction:
|
|
201
|
-
showPrimaryAction: N,
|
|
202
|
-
footerHint: m
|
|
144
|
+
activeStepIndex: r,
|
|
145
|
+
totalSteps: l,
|
|
146
|
+
skippable: i,
|
|
147
|
+
primaryActionLabel: s,
|
|
148
|
+
onSkip: d,
|
|
149
|
+
onPrimaryAction: u
|
|
203
150
|
}
|
|
204
|
-
)
|
|
151
|
+
) : null
|
|
205
152
|
] });
|
|
206
153
|
}
|
|
207
154
|
export {
|
|
208
|
-
y as
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
155
|
+
y as GuidanceStepCounter,
|
|
156
|
+
E as GuidanceStepPanel,
|
|
157
|
+
G as GuidanceStepProgressBar,
|
|
158
|
+
$ as GuidanceTourInteractionFooter,
|
|
159
|
+
x as GuidanceTourNavFooter
|
|
213
160
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RenderInstruction } from '../../../../lib/guidance';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export declare const GUIDANCE_SPOTLIGHT_PADDING =
|
|
3
|
+
export declare const GUIDANCE_SPOTLIGHT_PADDING = 16;
|
|
4
4
|
export declare const GUIDANCE_POPOVER_GAP = 12;
|
|
5
5
|
export declare const GUIDANCE_VIEWPORT_PADDING = 16;
|
|
6
6
|
export declare const GUIDANCE_TARGET_ANIMATION_POLL_MS = 32;
|