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.
Files changed (192) hide show
  1. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +2 -2
  2. package/dist/components/data/ag-grid-react/headers/components/date-filter-picker.d.ts +4 -2
  3. package/dist/components/data/ag-grid-react/headers/header-search-input.js +65 -65
  4. package/dist/components/data/ag-grid-react/headers/utils/date-utils.js +55 -48
  5. package/dist/components/data-display/calendar/calendar-apply-validation.d.ts +4 -2
  6. package/dist/components/data-display/calendar/calendar-apply-validation.js +82 -51
  7. package/dist/components/data-display/calendar/calendar-config.d.ts +13 -5
  8. package/dist/components/data-display/calendar/calendar-config.js +31 -20
  9. package/dist/components/data-display/calendar/calendar-day-button.js +43 -35
  10. package/dist/components/data-display/calendar/calendar-day-hover.d.ts +8 -0
  11. package/dist/components/data-display/calendar/calendar-day-hover.js +20 -0
  12. package/dist/components/data-display/calendar/calendar-day-picker-classnames.d.ts +8 -1
  13. package/dist/components/data-display/calendar/calendar-day-picker-classnames.js +40 -20
  14. package/dist/components/data-display/calendar/calendar-day-picker-components.d.ts +12 -1
  15. package/dist/components/data-display/calendar/calendar-day-picker-components.js +199 -98
  16. package/dist/components/data-display/calendar/calendar-day-picker-view.d.ts +12 -4
  17. package/dist/components/data-display/calendar/calendar-day-picker-view.js +139 -92
  18. package/dist/components/data-display/calendar/calendar-fiscal-labels.d.ts +38 -0
  19. package/dist/components/data-display/calendar/calendar-fiscal-labels.js +90 -0
  20. package/dist/components/data-display/calendar/calendar-footer-summary.d.ts +13 -4
  21. package/dist/components/data-display/calendar/calendar-footer-summary.js +101 -50
  22. package/dist/components/data-display/calendar/calendar-footer.d.ts +16 -7
  23. package/dist/components/data-display/calendar/calendar-footer.js +88 -66
  24. package/dist/components/data-display/calendar/calendar-gregorian-presets.d.ts +2 -0
  25. package/dist/components/data-display/calendar/calendar-gregorian-presets.js +26 -0
  26. package/dist/components/data-display/calendar/calendar-interval-caption.d.ts +1 -0
  27. package/dist/components/data-display/calendar/calendar-interval-caption.js +10 -0
  28. package/dist/components/data-display/calendar/calendar-interval-utils.d.ts +23 -0
  29. package/dist/components/data-display/calendar/calendar-interval-utils.js +154 -0
  30. package/dist/components/data-display/calendar/calendar-month-panes.d.ts +5 -1
  31. package/dist/components/data-display/calendar/calendar-month-panes.js +9 -7
  32. package/dist/components/data-display/calendar/calendar-month-picker-panel.d.ts +5 -1
  33. package/dist/components/data-display/calendar/calendar-month-picker-panel.js +76 -77
  34. package/dist/components/data-display/calendar/calendar-month-utils.d.ts +2 -0
  35. package/dist/components/data-display/calendar/calendar-month-utils.js +69 -60
  36. package/dist/components/data-display/calendar/calendar-padding-week.utils.d.ts +15 -0
  37. package/dist/components/data-display/calendar/calendar-padding-week.utils.js +22 -3
  38. package/dist/components/data-display/calendar/calendar-panel-context.d.ts +1 -1
  39. package/dist/components/data-display/calendar/calendar-period-cell.d.ts +18 -0
  40. package/dist/components/data-display/calendar/calendar-period-cell.js +89 -0
  41. package/dist/components/data-display/calendar/calendar-period-keyboard.d.ts +2 -0
  42. package/dist/components/data-display/calendar/calendar-period-keyboard.js +18 -0
  43. package/dist/components/data-display/calendar/calendar-preset-strip.d.ts +6 -0
  44. package/dist/components/data-display/calendar/calendar-preset-strip.js +26 -0
  45. package/dist/components/data-display/calendar/calendar-quarter-panes.d.ts +24 -0
  46. package/dist/components/data-display/calendar/calendar-quarter-panes.js +115 -0
  47. package/dist/components/data-display/calendar/calendar-quarter-utils.d.ts +19 -0
  48. package/dist/components/data-display/calendar/calendar-quarter-utils.js +95 -0
  49. package/dist/components/data-display/calendar/calendar-selection-appearance.d.ts +38 -0
  50. package/dist/components/data-display/calendar/calendar-selection-appearance.js +72 -0
  51. package/dist/components/data-display/calendar/calendar-selection.d.ts +20 -0
  52. package/dist/components/data-display/calendar/calendar-selection.js +31 -0
  53. package/dist/components/data-display/calendar/calendar-week-number-cell.d.ts +6 -1
  54. package/dist/components/data-display/calendar/calendar-week-number-cell.js +53 -38
  55. package/dist/components/data-display/calendar/calendar-week-number-header.d.ts +4 -0
  56. package/dist/components/data-display/calendar/calendar-week-number-header.js +15 -0
  57. package/dist/components/data-display/calendar/calendar-week-utils.d.ts +11 -3
  58. package/dist/components/data-display/calendar/calendar-week-utils.js +50 -42
  59. package/dist/components/data-display/calendar/calendar-year-panes.d.ts +18 -0
  60. package/dist/components/data-display/calendar/calendar-year-panes.js +98 -0
  61. package/dist/components/data-display/calendar/calendar-year-utils.d.ts +17 -0
  62. package/dist/components/data-display/calendar/calendar-year-utils.js +75 -0
  63. package/dist/components/data-display/calendar/calendar.d.ts +1 -1
  64. package/dist/components/data-display/calendar/calendar.js +303 -181
  65. package/dist/components/data-display/calendar/calendar.types.d.ts +53 -16
  66. package/dist/components/data-display/calendar/fiscal-period-caption-select.d.ts +7 -0
  67. package/dist/components/data-display/calendar/fiscal-period-caption-select.js +63 -0
  68. package/dist/components/data-display/calendar/index.d.ts +1 -1
  69. package/dist/components/data-display/calendar/use-calendar-day-picker-config.d.ts +12 -2
  70. package/dist/components/data-display/calendar/use-calendar-day-picker-config.js +92 -62
  71. package/dist/components/data-display/calendar/use-calendar-state.d.ts +32 -12
  72. package/dist/components/data-display/calendar/use-calendar-state.js +371 -164
  73. package/dist/components/data-display/calendar/use-fiscal-calendar.d.ts +5 -0
  74. package/dist/components/data-display/calendar/use-fiscal-calendar.js +24 -0
  75. package/dist/components/feedback/tooltip/overflow-tooltip.js +57 -57
  76. package/dist/components/flows/guidance/guidance-error-boundary.js +22 -14
  77. package/dist/components/flows/guidance/guidance-layer.js +34 -32
  78. package/dist/components/flows/guidance/help-center/assets/whats-new-guide-icon.svg.js +4 -0
  79. package/dist/components/flows/guidance/help-center/filter-help-center-guides.js +10 -7
  80. package/dist/components/flows/guidance/help-center/guide-catalog-section.d.ts +7 -0
  81. package/dist/components/flows/guidance/help-center/guide-catalog-section.js +24 -0
  82. package/dist/components/flows/guidance/help-center/guide-catalog-utils.d.ts +3 -0
  83. package/dist/components/flows/guidance/help-center/guide-catalog-utils.js +19 -0
  84. package/dist/components/flows/guidance/help-center/guide-catalog.d.ts +1 -1
  85. package/dist/components/flows/guidance/help-center/guide-catalog.js +89 -79
  86. package/dist/components/flows/guidance/help-center/help-center-guide-labels.d.ts +6 -0
  87. package/dist/components/flows/guidance/help-center/help-center-guide-labels.js +33 -0
  88. package/dist/components/flows/guidance/help-center/help-center-guide-row.d.ts +12 -0
  89. package/dist/components/flows/guidance/help-center/help-center-guide-row.js +57 -0
  90. package/dist/components/flows/guidance/help-center/help-center-guide-type-icons.d.ts +9 -0
  91. package/dist/components/flows/guidance/help-center/help-center-guide-type-icons.js +114 -0
  92. package/dist/components/flows/guidance/help-center/help-center-header.d.ts +1 -1
  93. package/dist/components/flows/guidance/help-center/help-center-header.js +20 -16
  94. package/dist/components/flows/guidance/help-center/help-center.constants.d.ts +1 -1
  95. package/dist/components/flows/guidance/help-center/help-center.constants.js +1 -1
  96. package/dist/components/flows/guidance/help-center/help-center.d.ts +3 -1
  97. package/dist/components/flows/guidance/help-center/help-center.js +74 -51
  98. package/dist/components/flows/guidance/help-center/help-center.types.d.ts +9 -1
  99. package/dist/components/flows/guidance/help-center/renderHelpCenterGuideTypeIcon.d.ts +4 -0
  100. package/dist/components/flows/guidance/help-center/renderHelpCenterGuideTypeIcon.js +18 -0
  101. package/dist/components/flows/guidance/help-center.d.ts +4 -2
  102. package/dist/components/flows/guidance/help-center.js +23 -14
  103. package/dist/components/flows/guidance/hooks/useGuidanceOverlayGeometry.js +19 -17
  104. package/dist/components/flows/guidance/index.d.ts +1 -1
  105. package/dist/components/flows/guidance/renderers/announcement-renderer.d.ts +1 -1
  106. package/dist/components/flows/guidance/renderers/announcement-renderer.js +20 -12
  107. package/dist/components/flows/guidance/renderers/guidance-card-shared.d.ts +9 -11
  108. package/dist/components/flows/guidance/renderers/guidance-card-shared.js +124 -177
  109. package/dist/components/flows/guidance/renderers/guidance-renderer-shared.d.ts +1 -1
  110. package/dist/components/flows/guidance/renderers/guidance-renderer-shared.js +57 -72
  111. package/dist/components/flows/guidance/renderers/guidance-tour-overlay.js +23 -23
  112. package/dist/components/flows/wizard/wizard.js +41 -38
  113. package/dist/components/forms/date-picker/date-input-behavior.d.ts +7 -0
  114. package/dist/components/forms/date-picker/date-input-behavior.js +28 -24
  115. package/dist/components/forms/date-picker/date-picker-shell.d.ts +13 -0
  116. package/dist/components/forms/date-picker/date-picker-shell.js +31 -0
  117. package/dist/components/forms/date-picker/date-picker.js +187 -167
  118. package/dist/components/forms/date-picker/date-picker.types.d.ts +90 -43
  119. package/dist/components/forms/date-picker/date-range-picker.js +273 -224
  120. package/dist/components/forms/date-picker/fiscal-pass-through.d.ts +13 -0
  121. package/dist/components/forms/date-picker/fiscal-pass-through.js +17 -0
  122. package/dist/components/forms/date-picker/fiscal-period-format.d.ts +9 -0
  123. package/dist/components/forms/date-picker/fiscal-period-format.js +50 -0
  124. package/dist/components/forms/date-picker/index.d.ts +12 -0
  125. package/dist/components/forms/date-picker/index.js +19 -7
  126. package/dist/components/forms/date-picker/month-picker.js +225 -182
  127. package/dist/components/forms/date-picker/month-range-picker.js +134 -110
  128. package/dist/components/forms/date-picker/multi-date-picker.js +77 -56
  129. package/dist/components/forms/date-picker/multi-month-picker.js +78 -57
  130. package/dist/components/forms/date-picker/multi-quarter-picker.d.ts +3 -0
  131. package/dist/components/forms/date-picker/multi-quarter-picker.js +177 -0
  132. package/dist/components/forms/date-picker/multi-week-picker.js +81 -70
  133. package/dist/components/forms/date-picker/multi-year-picker.d.ts +3 -0
  134. package/dist/components/forms/date-picker/multi-year-picker.js +179 -0
  135. package/dist/components/forms/date-picker/quarter-picker.d.ts +3 -0
  136. package/dist/components/forms/date-picker/quarter-picker.js +176 -0
  137. package/dist/components/forms/date-picker/quarter-range-picker.d.ts +3 -0
  138. package/dist/components/forms/date-picker/quarter-range-picker.js +177 -0
  139. package/dist/components/forms/date-picker/week-picker.js +148 -137
  140. package/dist/components/forms/date-picker/week-range-picker.js +216 -205
  141. package/dist/components/forms/date-picker/year-picker.d.ts +3 -0
  142. package/dist/components/forms/date-picker/year-picker.js +176 -0
  143. package/dist/components/forms/date-picker/year-range-picker.d.ts +3 -0
  144. package/dist/components/forms/date-picker/year-range-picker.js +179 -0
  145. package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +35 -53
  146. package/dist/form-react/Fields/DateInputField.js +63 -58
  147. package/dist/form-react/Fields/DateRangeField.js +42 -37
  148. package/dist/form-react/Fields/MonthRangeField.js +50 -45
  149. package/dist/form-react/Fields/MultiWeekPickerField.js +7 -7
  150. package/dist/form-react/Fields/WeekRangePicker.js +44 -45
  151. package/dist/form-react/components/FieldRenderer.js +21 -23
  152. package/dist/form-react/registry/defaultFieldRegistrations.d.ts +9 -1
  153. package/dist/form-react/registry/defaultFieldRegistrations.js +11 -12
  154. package/dist/form-react/registry/resolveFieldComponent.d.ts +3 -2
  155. package/dist/form-react/registry/resolveFieldComponent.js +9 -133
  156. package/dist/form-react/types/fields.types.d.ts +22 -7
  157. package/dist/form-react/utils/date.utils.d.ts +3 -1
  158. package/dist/form-react/utils/date.utils.js +82 -53
  159. package/dist/i18n/defaultMessages.d.ts +29 -1
  160. package/dist/i18n/defaultMessages.js +54 -27
  161. package/dist/i18n/locales/de.js +31 -4
  162. package/dist/i18n/locales/es.js +31 -4
  163. package/dist/i18n/locales/hi.js +31 -4
  164. package/dist/i18n/locales/kn.js +31 -4
  165. package/dist/impact-nova-components.css +379 -3
  166. package/dist/impact-nova.css +1 -1
  167. package/dist/index.js +528 -516
  168. package/dist/lib/fiscal-calendar/build-year.d.ts +8 -0
  169. package/dist/lib/fiscal-calendar/build-year.js +173 -0
  170. package/dist/lib/fiscal-calendar/civil-date.d.ts +21 -0
  171. package/dist/lib/fiscal-calendar/civil-date.js +94 -0
  172. package/dist/lib/fiscal-calendar/index.d.ts +10 -0
  173. package/dist/lib/fiscal-calendar/index.js +40 -0
  174. package/dist/lib/fiscal-calendar/lookup.d.ts +4 -0
  175. package/dist/lib/fiscal-calendar/lookup.js +70 -0
  176. package/dist/lib/fiscal-calendar/presets.d.ts +8 -0
  177. package/dist/lib/fiscal-calendar/presets.js +99 -0
  178. package/dist/lib/fiscal-calendar/selection.d.ts +18 -0
  179. package/dist/lib/fiscal-calendar/selection.js +32 -0
  180. package/dist/lib/fiscal-calendar/types.d.ts +145 -0
  181. package/dist/lib/fiscal-calendar/types.js +10 -0
  182. package/dist/lib/fiscal-calendar/week-selection.d.ts +22 -0
  183. package/dist/lib/fiscal-calendar/week-selection.js +107 -0
  184. package/dist/lib/guidance/engine/guidance-engine.d.ts +7 -5
  185. package/dist/lib/guidance/engine/guidance-engine.js +115 -47
  186. package/dist/lib/guidance/triggers/trigger-registry.js +6 -6
  187. package/dist/lib/guidance/types/guidance.types.d.ts +11 -1
  188. package/dist/llms/rules/installation.js +1 -1
  189. package/dist/llms/rules/requirements.js +1 -1
  190. package/package.json +5 -1
  191. package/dist/lib/fiscal-calendar.d.ts +0 -62
  192. package/dist/lib/fiscal-calendar.js +0 -99
@@ -1,29 +1,31 @@
1
- import * as c from "react";
2
- import { beginTourScrollSnapshot as m, needsGuidanceTargetScroll as l, scrollGuidanceTargetIntoView as f, getVisibleTargetRect as v } from "../renderers/guidance-renderer-shared.js";
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, u) {
5
- const [d, s] = c.useState(null);
6
- return c.useEffect(() => {
4
+ function T(e, d) {
5
+ const [m, t] = u.useState(null);
6
+ return u.useEffect(() => {
7
7
  if (!e) {
8
- s(null);
8
+ t(null);
9
9
  return;
10
10
  }
11
- let i = !1, o = 0;
11
+ let n = !1, o = 0;
12
12
  const r = () => {
13
- i || s(v(e));
14
- }, t = () => {
15
- r(), !i && p(e) && (o = requestAnimationFrame(t));
13
+ n || t(v(e));
14
+ }, c = () => {
15
+ r(), !n && p(e) && (o = requestAnimationFrame(c));
16
16
  };
17
- m(e), l(e) && f(e), r(), o = requestAnimationFrame(t);
18
- const a = new ResizeObserver(r);
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 n = () => {
21
- r();
22
+ const i = () => {
23
+ s(e), r();
22
24
  };
23
- return window.addEventListener("resize", n), document.addEventListener("scroll", n, !0), () => {
24
- i = !0, cancelAnimationFrame(o), a.disconnect(), window.removeEventListener("resize", n), document.removeEventListener("scroll", n, !0);
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
- }, [u, e]), d;
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, onDismiss, }: RendererProps): React.ReactElement;
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 d, DialogContent as l } from "../../../feedback/dialog/dialog.js";
4
- import { GuidanceStepPanel as m } from "./guidance-card-shared.js";
5
- function b({
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: n,
8
- onSkip: a,
9
- onDismiss: t
7
+ onNext: a,
8
+ onSkip: n
10
9
  }) {
11
10
  const p = e.stepIndex + 1 >= e.totalSteps;
12
- return /* @__PURE__ */ o(d, { open: !0, onOpenChange: (r) => !r && t(), children: /* @__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
- m,
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: a,
30
- onDismiss: t,
31
- onPrimaryAction: n,
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
- b as AnnouncementRenderer
47
+ f as AnnouncementRenderer
40
48
  };
@@ -1,14 +1,13 @@
1
1
  import * as React from 'react';
2
- export declare function GuidanceCardCloseButton({ onClose, closeAriaLabel, className, }: {
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 GuidanceStepProgressDots({ activeStepIndex, totalSteps, }: {
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: boolean;
23
- footerHint?: string | null;
21
+ showPrimaryAction?: boolean;
24
22
  }
25
- export declare function GuidanceTourNavFooter({ activeStepIndex, totalSteps, skippable, primaryActionLabel, onSkip, onPrimaryAction, showPrimaryAction, footerHint, }: GuidanceTourNavFooterProps): React.ReactElement;
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, onDismiss, onPrimaryAction, showPrimaryAction, footerHint, titleId, bodyId, }: GuidanceStepPanelProps): React.ReactElement;
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 o, jsx as n } from "react/jsx-runtime";
1
+ import { jsxs as c, jsx as e, Fragment as N } from "react/jsx-runtime";
2
2
  import "react";
3
- import { Cross as v } from "impact-nova-icons";
4
- import { Button as x } from "../../../primitives/button/button.js";
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 u = 5, f = 2;
7
- function b(s, e) {
8
- if (e <= u)
9
- return Array.from({ length: e }, (r, l) => ({
10
- kind: "step",
11
- stepIndex: l
12
- }));
13
- const t = Math.max(
14
- 0,
15
- Math.min(
16
- s - 2,
17
- e - u
18
- )
19
- ), a = t + u - 1, i = [];
20
- if (t > 0)
21
- for (let r = 0; r < f; r += 1)
22
- i.push({
23
- kind: "ellipsis",
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 y({
37
- onClose: s,
38
- closeAriaLabel: e,
39
- className: t
25
+ function $({
26
+ hint: t
40
27
  }) {
41
- return /* @__PURE__ */ n(
42
- x,
28
+ return /* @__PURE__ */ e(
29
+ "div",
43
30
  {
44
- variant: "ghost",
45
- size: "iconSm",
46
- className: h(
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 I({
57
- activeStepIndex: s,
58
- totalSteps: e
37
+ function y({
38
+ activeStepIndex: t,
39
+ totalSteps: n
59
40
  }) {
60
- return e <= 1 ? null : /* @__PURE__ */ n(
61
- C,
41
+ return /* @__PURE__ */ c(
42
+ "span",
62
43
  {
63
- activeStepIndex: s,
64
- totalSteps: e
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 C({
69
- activeStepIndex: s,
70
- totalSteps: e
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
- const t = b(s, e);
73
- return /* @__PURE__ */ n(
62
+ return /* @__PURE__ */ c(
74
63
  "div",
75
64
  {
76
- className: "flex items-center justify-center gap-1.5",
77
- role: "progressbar",
78
- "aria-valuemin": 1,
79
- "aria-valuenow": s + 1,
80
- "aria-valuemax": e,
81
- "aria-label": `Step ${s + 1} of ${e}`,
82
- children: t.map((a) => {
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
- className: h(
97
- "rounded-full transition-all",
98
- i === s ? "size-2.5 bg-[var(--guidance-step-counter-active,var(--color-primary))]" : "size-2 bg-stroke"
99
- )
100
- },
101
- i
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 w({
108
- activeStepIndex: s,
109
- totalSteps: e,
110
- skippable: t,
111
- primaryActionLabel: a,
112
- onSkip: i,
113
- onPrimaryAction: r,
114
- showPrimaryAction: l,
115
- footerHint: c
116
- }) {
117
- const d = e > 1;
118
- return /* @__PURE__ */ o("div", { className: "mt-4 flex flex-col", children: [
119
- d ? /* @__PURE__ */ n("div", { className: "flex justify-center", children: /* @__PURE__ */ n(
120
- I,
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__ */ o("div", { className: "p-4", children: [
165
- /* @__PURE__ */ o("div", { className: "flex items-center justify-between gap-2", children: [
166
- /* @__PURE__ */ n(
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: g,
170
- className: "min-w-0 text-base font-bold leading-5 text-content",
171
- children: s
105
+ id: p,
106
+ className: "text-base font-bold leading-5 text-content",
107
+ children: t
172
108
  }
173
109
  ),
174
- /* @__PURE__ */ n(
175
- y,
110
+ n ? /* @__PURE__ */ e(
111
+ "p",
176
112
  {
177
- onClose: d,
178
- closeAriaLabel: "Close",
179
- className: "-me-1 shrink-0"
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 ? /* @__PURE__ */ n(
184
- "p",
120
+ /* @__PURE__ */ e("div", { className: "px-4 pt-3", children: /* @__PURE__ */ e(
121
+ G,
185
122
  {
186
- id: k,
187
- className: "mt-2 text-sm leading-relaxed text-content-secondary",
188
- children: e
123
+ activeStepIndex: r,
124
+ totalSteps: l
189
125
  }
190
- ) : null,
191
- t && !m ? /* @__PURE__ */ n("p", { className: "mt-1.5 text-xs text-content-tertiary", children: t }) : null,
192
- /* @__PURE__ */ n(
193
- w,
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: a,
196
- totalSteps: i,
197
- skippable: r,
198
- primaryActionLabel: l,
199
- onSkip: c,
200
- onPrimaryAction: p,
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 GuidanceCardCloseButton,
209
- z as GuidanceStepPanel,
210
- I as GuidanceStepProgress,
211
- C as GuidanceStepProgressDots,
212
- w as GuidanceTourNavFooter
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 = 8;
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;