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,17 +1,17 @@
1
1
  import * as A from "react";
2
- const T = 8, S = 12, H = 16, v = 32;
3
- function R(e) {
2
+ const T = 16, b = 12, S = 16, v = 32;
3
+ function H(e) {
4
4
  const t = window.getComputedStyle(e);
5
5
  return t.overflow === "hidden" || t.overflow === "auto" || t.overflow === "scroll" || t.overflow === "clip" || t.overflowY === "hidden" || t.overflowY === "auto" || t.overflowY === "scroll" || t.overflowY === "clip" || t.overflowX === "hidden" || t.overflowX === "auto" || t.overflowX === "scroll" || t.overflowX === "clip";
6
6
  }
7
- function C(e) {
7
+ function R(e) {
8
8
  const t = [];
9
9
  let n = e.parentElement;
10
10
  for (; n; )
11
- R(n) && t.push(n), n = n.parentElement;
11
+ H(n) && t.push(n), n = n.parentElement;
12
12
  return t;
13
13
  }
14
- function h(e, t) {
14
+ function w(e, t) {
15
15
  const n = Math.max(e.x, t.x), o = Math.max(e.y, t.y), i = Math.min(
16
16
  e.x + e.width,
17
17
  t.x + t.width
@@ -26,7 +26,7 @@ function h(e, t) {
26
26
  height: r - o
27
27
  };
28
28
  }
29
- function f(e) {
29
+ function m(e) {
30
30
  return {
31
31
  x: e.left,
32
32
  y: e.top,
@@ -35,13 +35,13 @@ function f(e) {
35
35
  };
36
36
  }
37
37
  function M(e) {
38
- let t = f(
38
+ let t = m(
39
39
  e.getBoundingClientRect()
40
40
  );
41
- for (const i of C(e)) {
42
- const r = h(
41
+ for (const i of R(e)) {
42
+ const r = w(
43
43
  t,
44
- f(i.getBoundingClientRect())
44
+ m(i.getBoundingClientRect())
45
45
  );
46
46
  if (!r)
47
47
  break;
@@ -53,28 +53,12 @@ function M(e) {
53
53
  width: window.innerWidth,
54
54
  height: window.innerHeight
55
55
  };
56
- return h(
56
+ return w(
57
57
  t,
58
58
  n
59
59
  ) ?? t;
60
60
  }
61
- function E(e) {
62
- let t = {
63
- x: 0,
64
- y: 0,
65
- width: window.innerWidth,
66
- height: window.innerHeight
67
- };
68
- for (const n of C(e)) {
69
- const o = h(
70
- t,
71
- f(n.getBoundingClientRect())
72
- );
73
- o && (t = o);
74
- }
75
- return t;
76
- }
77
- function x(e) {
61
+ function C(e) {
78
62
  const t = [];
79
63
  let n = e.parentElement;
80
64
  for (; n; ) {
@@ -83,29 +67,29 @@ function x(e) {
83
67
  }
84
68
  return t;
85
69
  }
86
- function I(e) {
87
- return x(e).map((t) => ({
70
+ function E(e) {
71
+ return C(e).map((t) => ({
88
72
  element: t,
89
73
  scrollTop: t.scrollTop,
90
74
  scrollLeft: t.scrollLeft
91
75
  }));
92
76
  }
93
- function L(e) {
77
+ function I(e) {
94
78
  for (const t of e)
95
79
  t.element.isConnected && (t.element.scrollTop = t.scrollTop, t.element.scrollLeft = t.scrollLeft);
96
80
  }
97
81
  let s = null;
98
82
  function _(e) {
99
- s === null && (s = I(e));
83
+ s === null && (s = E(e));
100
84
  }
101
- function V() {
102
- s !== null && (L(s), s = null);
85
+ function k() {
86
+ s !== null && (I(s), s = null);
103
87
  }
104
- function D(e, t = v) {
88
+ function L(e, t = v) {
105
89
  const n = e.getBoundingClientRect(), o = window.innerHeight;
106
90
  return n.top < t || n.bottom > o - t;
107
91
  }
108
- function B(e) {
92
+ function D(e) {
109
93
  const { targetElement: t, scrollContainer: n, viewportPadding: o } = e, i = n.getBoundingClientRect(), r = t.getBoundingClientRect(), c = n.clientHeight - o * 2;
110
94
  if (r.height >= c) {
111
95
  const l = r.top - i.top - o;
@@ -118,12 +102,12 @@ function B(e) {
118
102
  }
119
103
  r.bottom > i.bottom - o && (n.scrollTop += r.bottom - (i.bottom - o));
120
104
  }
121
- function O(e, t = v) {
122
- if (!D(e, t))
105
+ function V(e, t = v) {
106
+ if (!L(e, t))
123
107
  return;
124
- const o = x(e)[0];
108
+ const o = C(e)[0];
125
109
  if (o) {
126
- B({
110
+ D({
127
111
  targetElement: e,
128
112
  scrollContainer: o,
129
113
  viewportPadding: t
@@ -136,7 +120,7 @@ function O(e, t = v) {
136
120
  inline: "nearest"
137
121
  });
138
122
  }
139
- function N(e, t) {
123
+ function O(e, t) {
140
124
  const n = e.advanceOn === "click-target";
141
125
  return A.useEffect(() => {
142
126
  if (!n)
@@ -145,8 +129,10 @@ function N(e, t) {
145
129
  if (!o)
146
130
  return;
147
131
  const i = () => {
148
- queueMicrotask(() => {
149
- t();
132
+ requestAnimationFrame(() => {
133
+ requestAnimationFrame(() => {
134
+ t();
135
+ });
150
136
  });
151
137
  };
152
138
  return o.addEventListener("click", i, { once: !0 }), () => {
@@ -160,26 +146,25 @@ function N(e, t) {
160
146
  ]), n;
161
147
  }
162
148
  function G(e, t = T, n) {
163
- const o = {
149
+ return {
164
150
  x: e.x - t,
165
151
  y: e.y - t,
166
152
  width: e.width + t * 2,
167
153
  height: e.height + t * 2
168
154
  };
169
- return n ? h(o, n) ?? o : o;
170
155
  }
171
- function F(e, t = T) {
172
- const n = M(e), o = E(e);
173
- return G(n, t, o);
156
+ function N(e, t = T) {
157
+ const n = M(e);
158
+ return G(n, t);
174
159
  }
175
- function U(e) {
160
+ function F(e) {
176
161
  const {
177
162
  targetRect: t,
178
163
  popoverWidth: n,
179
164
  popoverHeight: o,
180
- gap: i = S,
181
- viewportPadding: r = H
182
- } = e, c = t.x + t.width, g = t.y + t.height, l = t.x, y = window.innerWidth - c;
165
+ gap: i = b,
166
+ viewportPadding: r = S
167
+ } = e, c = t.x + t.width, h = t.y + t.height, l = t.x, x = window.innerWidth - c;
183
168
  if (t.width <= 280 && t.x >= window.innerWidth * 0.35 && l >= n + i)
184
169
  return {
185
170
  placement: "left",
@@ -205,50 +190,50 @@ function U(e) {
205
190
  )
206
191
  };
207
192
  if (t.height > t.width * 2.5) {
208
- const m = Math.max(
193
+ const f = Math.max(
209
194
  r,
210
195
  Math.min(
211
196
  t.y,
212
197
  window.innerHeight - o - r
213
198
  )
214
199
  );
215
- if (y >= n + i)
200
+ if (x >= n + i)
216
201
  return {
217
202
  placement: "right",
218
203
  left: c + i,
219
- top: m
204
+ top: f
220
205
  };
221
206
  if (l >= n + i)
222
207
  return {
223
208
  placement: "left",
224
209
  left: t.x - n - i,
225
- top: m
210
+ top: f
226
211
  };
227
212
  }
228
- const p = window.innerHeight - g, w = t.y, b = t.y + t.height / 2 > window.innerHeight * 0.55;
213
+ const g = window.innerHeight - h, d = t.y, y = t.y + t.height / 2 > window.innerHeight * 0.55;
229
214
  let a;
230
- b && w >= o + i && p < o + i * 2 ? a = "top" : a = p >= o + i || p >= w ? "bottom" : "top";
231
- let u = a === "bottom" ? g + i : t.y - o - i, d = t.x + t.width / 2 - n / 2;
232
- return d = Math.max(
215
+ y && d >= o + i && g < o + i * 2 ? a = "top" : a = g >= o + i || g >= d ? "bottom" : "top";
216
+ let p = a === "bottom" ? h + i : t.y - o - i, u = t.x + t.width / 2 - n / 2;
217
+ return u = Math.max(
233
218
  r,
234
- Math.min(d, window.innerWidth - n - r)
235
- ), u = Math.max(
219
+ Math.min(u, window.innerWidth - n - r)
220
+ ), p = Math.max(
236
221
  r,
237
- Math.min(u, window.innerHeight - o - r)
238
- ), { top: u, left: d, placement: a };
222
+ Math.min(p, window.innerHeight - o - r)
223
+ ), { top: p, left: u, placement: a };
239
224
  }
240
225
  export {
241
- S as GUIDANCE_POPOVER_GAP,
226
+ b as GUIDANCE_POPOVER_GAP,
242
227
  T as GUIDANCE_SPOTLIGHT_PADDING,
243
228
  v as GUIDANCE_TARGET_SCROLL_PADDING,
244
- H as GUIDANCE_VIEWPORT_PADDING,
229
+ S as GUIDANCE_VIEWPORT_PADDING,
245
230
  _ as beginTourScrollSnapshot,
246
231
  G as buildHighlightRect,
247
- F as buildHighlightRectForTarget,
248
- U as computePopoverPosition,
249
- V as endTourScrollSnapshot,
232
+ N as buildHighlightRectForTarget,
233
+ F as computePopoverPosition,
234
+ k as endTourScrollSnapshot,
250
235
  M as getVisibleTargetRect,
251
- D as needsGuidanceTargetScroll,
252
- O as scrollGuidanceTargetIntoView,
253
- N as useAdvanceOnTargetClick
236
+ L as needsGuidanceTargetScroll,
237
+ V as scrollGuidanceTargetIntoView,
238
+ O as useAdvanceOnTargetClick
254
239
  };
@@ -4,29 +4,29 @@ import { createPortal as $ } from "react-dom";
4
4
  import { GuidanceStepPanel as S } from "./guidance-card-shared.js";
5
5
  import { useGuidanceOverlayGeometry as z } from "../hooks/useGuidanceOverlayGeometry.js";
6
6
  import { useAdvanceOnTargetClick as E, buildHighlightRectForTarget as P, computePopoverPosition as A } from "./guidance-renderer-shared.js";
7
- const G = 220, n = `motion-safe:transition-[top,left,width,height] motion-safe:duration-[${G}ms] motion-safe:ease-[cubic-bezier(0.22,1,0.36,1)]`;
8
- function H({
7
+ const R = 220, n = `motion-safe:transition-[top,left,width,height] motion-safe:duration-[${R}ms] motion-safe:ease-[cubic-bezier(0.22,1,0.36,1)]`;
8
+ function G({
9
9
  highlightRect: e,
10
10
  blocksPointerEvents: u = !0
11
11
  }) {
12
- const d = typeof window < "u" ? window.innerWidth : 0, g = typeof window < "u" ? window.innerHeight : 0, s = e.x + e.width, a = e.y + e.height, i = u ? `pointer-events-auto absolute bg-[var(--guidance-backdrop-bg)] opacity-[var(--guidance-backdrop-opacity,0.6)] ${n}` : `pointer-events-none absolute bg-[var(--guidance-backdrop-bg)] opacity-[var(--guidance-backdrop-opacity,0.6)] ${n}`;
12
+ const i = typeof window < "u" ? window.innerWidth : 0, g = typeof window < "u" ? window.innerHeight : 0, s = e.x + e.width, a = e.y + e.height, d = u ? `pointer-events-auto absolute bg-[var(--guidance-backdrop-bg)] opacity-[var(--guidance-backdrop-opacity,0.6)] ${n}` : `pointer-events-none absolute bg-[var(--guidance-backdrop-bg)] opacity-[var(--guidance-backdrop-opacity,0.6)] ${n}`;
13
13
  return /* @__PURE__ */ h(C, { children: [
14
14
  /* @__PURE__ */ o(
15
15
  "div",
16
16
  {
17
- className: i,
18
- style: { top: 0, left: 0, width: d, height: e.y },
17
+ className: d,
18
+ style: { top: 0, left: 0, width: i, height: e.y },
19
19
  "aria-hidden": "true"
20
20
  }
21
21
  ),
22
22
  /* @__PURE__ */ o(
23
23
  "div",
24
24
  {
25
- className: i,
25
+ className: d,
26
26
  style: {
27
27
  top: a,
28
28
  left: 0,
29
- width: d,
29
+ width: i,
30
30
  height: Math.max(0, g - a)
31
31
  },
32
32
  "aria-hidden": "true"
@@ -35,7 +35,7 @@ function H({
35
35
  /* @__PURE__ */ o(
36
36
  "div",
37
37
  {
38
- className: i,
38
+ className: d,
39
39
  style: {
40
40
  top: e.y,
41
41
  left: 0,
@@ -48,11 +48,11 @@ function H({
48
48
  /* @__PURE__ */ o(
49
49
  "div",
50
50
  {
51
- className: i,
51
+ className: d,
52
52
  style: {
53
53
  top: e.y,
54
54
  left: s,
55
- width: Math.max(0, d - s),
55
+ width: Math.max(0, i - s),
56
56
  height: e.height
57
57
  },
58
58
  "aria-hidden": "true"
@@ -63,18 +63,18 @@ function H({
63
63
  function B({
64
64
  instruction: e,
65
65
  overlayComponent: u,
66
- onNext: d,
66
+ onNext: i,
67
67
  onSkip: g,
68
68
  onDismiss: s
69
69
  }) {
70
- const a = e.target?.element, i = z(a, e.stepId), I = e.stepIndex + 1 >= e.totalSteps, c = E(e, d), m = c || e.advanceOn === "auto", v = l.useRef(null), f = l.useRef(null), [b, O] = l.useState({ width: 400, height: 240 }), N = l.useCallback(() => {
70
+ const a = e.target?.element, d = z(a, e.stepId), I = e.stepIndex + 1 >= e.totalSteps, c = E(e, i), v = c || e.advanceOn === "auto", b = l.useRef(null), f = l.useRef(null), [m, O] = l.useState({ width: 400, height: 240 }), N = l.useCallback(() => {
71
71
  a?.click();
72
72
  }, [a]);
73
73
  if (l.useLayoutEffect(() => {
74
74
  const r = f.current;
75
75
  r?.parentElement === document.body && document.body.appendChild(r);
76
- }, [e.stepId, m]), l.useLayoutEffect(() => {
77
- const r = v.current;
76
+ }, [e.stepId, v]), l.useLayoutEffect(() => {
77
+ const r = b.current;
78
78
  if (!r)
79
79
  return;
80
80
  const k = () => {
@@ -89,12 +89,12 @@ function B({
89
89
  return x.observe(r), () => {
90
90
  x.disconnect();
91
91
  };
92
- }, [e.stepId, e.content.title, e.content.body]), !i || !a || typeof document > "u")
92
+ }, [e.stepId, e.content.title, e.content.body]), !d || !a || typeof document > "u")
93
93
  return null;
94
94
  const t = P(a), y = A({
95
- targetRect: i,
96
- popoverWidth: b.width,
97
- popoverHeight: b.height
95
+ targetRect: t,
96
+ popoverWidth: m.width,
97
+ popoverHeight: m.height
98
98
  }), w = `guidance-mask-${e.stepId}`;
99
99
  return $(
100
100
  /* @__PURE__ */ h(
@@ -140,10 +140,10 @@ function B({
140
140
  }
141
141
  ),
142
142
  /* @__PURE__ */ o(
143
- H,
143
+ G,
144
144
  {
145
145
  highlightRect: t,
146
- blocksPointerEvents: !m
146
+ blocksPointerEvents: !v
147
147
  }
148
148
  ),
149
149
  c ? /* @__PURE__ */ o(
@@ -176,7 +176,7 @@ function B({
176
176
  /* @__PURE__ */ o(
177
177
  "div",
178
178
  {
179
- ref: v,
179
+ ref: b,
180
180
  className: `pointer-events-auto absolute z-20 w-[min(400px,calc(100vw-2rem))] overflow-hidden rounded-2xl border border-stroke bg-canvas shadow-elevation-floating ${n}`,
181
181
  style: {
182
182
  top: y.top,
@@ -197,9 +197,9 @@ function B({
197
197
  primaryActionLabel: I ? "Done" : "Next",
198
198
  onSkip: g,
199
199
  onDismiss: s,
200
- onPrimaryAction: d,
200
+ onPrimaryAction: i,
201
201
  showPrimaryAction: !c && e.advanceOn !== "auto",
202
- footerHint: c ? "Click highlighted area" : e.advanceOn === "auto" ? e.content.footer ?? "Complete this step to continue" : null,
202
+ footerHint: c ? e.content.footer ?? "Click the highlighted button to continue." : e.advanceOn === "auto" ? e.content.footer ?? "Complete the action above to continue." : null,
203
203
  titleId: `guidance-tour-title-${e.stepId}`,
204
204
  bodyId: `guidance-tour-body-${e.stepId}`
205
205
  }
@@ -12,24 +12,24 @@ const k = ({
12
12
  steps: s = [],
13
13
  children: i
14
14
  }) => {
15
- const [d, u] = y({
15
+ const [d, f] = y({
16
16
  prop: r,
17
17
  defaultProp: e,
18
18
  onChange: o
19
- }), [x, l] = a.useState([]), m = a.useCallback((b) => {
20
- l((v) => v.includes(b) ? v : [...v, b].sort((g, w) => g - w));
21
- }, []), c = a.useCallback((b) => {
22
- l((v) => v.filter((g) => g !== b));
23
- }, []), f = t ?? (x.length > 0 ? Math.max(...x) : s.length), h = a.useMemo(
19
+ }), [u, l] = a.useState([]), x = a.useCallback((g) => {
20
+ l((b) => b.includes(g) ? b : [...b, g].sort((v, w) => v - w));
21
+ }, []), c = a.useCallback((g) => {
22
+ l((b) => b.filter((v) => v !== g));
23
+ }, []), m = t ?? (u.length > 0 ? Math.max(...u) : s.length), h = a.useMemo(
24
24
  () => ({
25
25
  value: d ?? e,
26
- totalSteps: f,
26
+ totalSteps: m,
27
27
  steps: s,
28
- setValue: u,
29
- registerStep: m,
28
+ setValue: f,
29
+ registerStep: x,
30
30
  unregisterStep: c
31
31
  }),
32
- [d, e, f, s, u, m, c]
32
+ [d, e, m, s, f, x, c]
33
33
  );
34
34
  return /* @__PURE__ */ n(C.Provider, { value: h, children: i });
35
35
  };
@@ -118,7 +118,7 @@ const P = a.forwardRef(
118
118
  {
119
119
  ref: t,
120
120
  className: p(
121
- "flex flex-col flex-1 min-h-0 min-w-0 overflow-hidden pt-[50px] px-6 sm:px-10 md:px-16 lg:px-20 xl:px-[60px] 2xl:px-[190px] pb-[73px]",
121
+ "flex flex-col flex-1 min-h-0 min-w-0 overflow-hidden pt-[50px] pb-[73px]",
122
122
  r
123
123
  ),
124
124
  "data-slot": "body",
@@ -131,35 +131,35 @@ const P = a.forwardRef(
131
131
  P.displayName = "WizardBody";
132
132
  const F = a.forwardRef(
133
133
  ({ className: r, interactive: e = !0, linear: o = !1, ...t }, s) => {
134
- const { value: i, totalSteps: d, steps: u, setValue: x } = W();
134
+ const { value: i, totalSteps: d, steps: f, setValue: u } = W();
135
135
  if (d <= 0) return null;
136
- const l = (m) => {
137
- e && (o && m > i || x(m));
136
+ const l = (x) => {
137
+ e && (o && x > i || u(x));
138
138
  };
139
139
  return /* @__PURE__ */ n(
140
140
  "div",
141
141
  {
142
142
  ref: s,
143
- className: p("flex gap-2 mb-[42px] shrink-0", r),
143
+ className: p("flex gap-2 mb-[42px] shrink-0 px-6 sm:px-10 md:px-16 lg:px-20 xl:px-[60px] 2xl:px-[190px]", r),
144
144
  "data-slot": "progress",
145
145
  role: "list",
146
146
  ...t,
147
- children: Array.from({ length: d }, (m, c) => {
148
- const f = c + 1, h = c === i - 1, b = c < i - 1, g = u[c]?.label ?? `Step ${f} of ${d}`, w = e && (!o || f <= i);
147
+ children: Array.from({ length: d }, (x, c) => {
148
+ const m = c + 1, h = c === i - 1, g = c < i - 1, v = f[c]?.label ?? `Step ${m} of ${d}`, w = e && (!o || m <= i);
149
149
  return /* @__PURE__ */ n(
150
150
  "div",
151
151
  {
152
152
  role: "listitem",
153
- "aria-label": g,
153
+ "aria-label": v,
154
154
  "aria-current": h ? "step" : void 0,
155
155
  tabIndex: w ? 0 : void 0,
156
- onClick: () => l(f),
156
+ onClick: () => l(m),
157
157
  onKeyDown: w ? (z) => {
158
- (z.key === "Enter" || z.key === " ") && (z.preventDefault(), l(f));
158
+ (z.key === "Enter" || z.key === " ") && (z.preventDefault(), l(m));
159
159
  } : void 0,
160
160
  className: p(
161
161
  "h-2 flex-1 max-w-[132px] rounded-[4px] transition-colors duration-300 motion-reduce:transition-none",
162
- h || b ? "bg-brand" : "bg-accent",
162
+ h || g ? "bg-brand" : "bg-accent",
163
163
  w ? "cursor-pointer" : "cursor-default"
164
164
  )
165
165
  },
@@ -197,31 +197,31 @@ const T = a.forwardRef(
197
197
  T.displayName = "WizardStepDescription";
198
198
  const j = a.forwardRef(
199
199
  ({ className: r, children: e, ...o }, t) => {
200
- const { edges: s, setEdges: i } = N(), d = a.useRef(null), u = a.useCallback(
200
+ const { edges: s, setEdges: i } = N(), d = a.useRef(null), f = a.useCallback(
201
201
  (l) => {
202
202
  d.current = l, typeof t == "function" ? t(l) : t && (t.current = l);
203
203
  },
204
204
  [t]
205
- ), x = a.useCallback(() => {
205
+ ), u = a.useCallback(() => {
206
206
  const l = d.current;
207
207
  if (!l) return;
208
- const { scrollTop: m, scrollHeight: c, clientHeight: f } = l, h = 1, b = m > h, v = m + f < c - h;
209
- i((g) => g.top === b && g.bottom === v ? g : { top: b, bottom: v });
208
+ const { scrollTop: x, scrollHeight: c, clientHeight: m } = l, h = 1, g = x > h, b = x + m < c - h;
209
+ i((v) => v.top === g && v.bottom === b ? v : { top: g, bottom: b });
210
210
  }, [i]);
211
211
  return a.useEffect(() => {
212
212
  const l = d.current;
213
213
  if (!l) return;
214
- const m = () => {
215
- requestAnimationFrame(x);
214
+ const x = () => {
215
+ requestAnimationFrame(u);
216
216
  };
217
- m(), l.addEventListener("scroll", x, { passive: !0 });
218
- const c = new ResizeObserver(m);
217
+ x(), l.addEventListener("scroll", u, { passive: !0 });
218
+ const c = new ResizeObserver(x);
219
219
  c.observe(l);
220
- const f = l.firstElementChild;
221
- return f && c.observe(f), () => {
222
- l.removeEventListener("scroll", x), c.disconnect();
220
+ const m = l.firstElementChild;
221
+ return m && c.observe(m), () => {
222
+ l.removeEventListener("scroll", u), c.disconnect();
223
223
  };
224
- }, [x, e]), /* @__PURE__ */ n(
224
+ }, [u, e]), /* @__PURE__ */ n(
225
225
  "div",
226
226
  {
227
227
  className: p(
@@ -234,8 +234,11 @@ const j = a.forwardRef(
234
234
  children: /* @__PURE__ */ n(
235
235
  "div",
236
236
  {
237
- ref: u,
238
- className: p("flex-1 min-h-0 overflow-y-auto overflow-x-hidden p-0.5", r),
237
+ ref: f,
238
+ className: p(
239
+ "flex-1 min-h-0 overflow-y-auto overflow-x-hidden px-6 py-4 sm:px-10 md:px-16 lg:px-20 xl:px-[60px] 2xl:px-[190px]",
240
+ r
241
+ ),
239
242
  "data-slot": "content",
240
243
  ...o,
241
244
  children: e
@@ -248,8 +251,8 @@ const j = a.forwardRef(
248
251
  j.displayName = "WizardContent";
249
252
  const A = a.forwardRef(
250
253
  ({ className: r, value: e, children: o, ...t }, s) => {
251
- const { value: i, registerStep: d, unregisterStep: u } = W();
252
- return a.useEffect(() => (d(e), () => u(e)), [e, d, u]), i !== e ? null : /* @__PURE__ */ n("div", { ref: s, className: p(r), "data-step": e, ...t, children: o });
254
+ const { value: i, registerStep: d, unregisterStep: f } = W();
255
+ return a.useEffect(() => (d(e), () => f(e)), [e, d, f]), i !== e ? null : /* @__PURE__ */ n("div", { ref: s, className: p(r), "data-step": e, ...t, children: o });
253
256
  }
254
257
  );
255
258
  A.displayName = "WizardStep";
@@ -261,7 +264,7 @@ const B = a.forwardRef(
261
264
  {
262
265
  ref: t,
263
266
  className: p(
264
- "relative z-10 mt-auto flex shrink-0 items-center justify-between bg-canvas-elevated pt-6 pb-[27px] transition-[box-shadow,border-color] duration-200",
267
+ "relative z-10 mt-auto flex shrink-0 items-center justify-between bg-canvas-elevated pt-6 pb-[27px] px-6 sm:px-10 md:px-16 lg:px-20 xl:px-[60px] 2xl:px-[190px] transition-[box-shadow,border-color] duration-200",
265
268
  s.bottom && "border-t border-stroke-hairline shadow-elevation-wizard-footer",
266
269
  r
267
270
  ),
@@ -34,6 +34,13 @@ export interface PickerSurfacePointerDownOptions {
34
34
  onOpen: () => void;
35
35
  focusField?: (field: PickerSurfaceField) => void;
36
36
  }
37
+ export declare function handleReadonlyPickerKeyDown(event: React.KeyboardEvent, options: {
38
+ disabled?: boolean | null;
39
+ open: boolean;
40
+ onOpen: () => void;
41
+ onCancel: () => void;
42
+ onKeyboardOpen?: () => void;
43
+ }): void;
37
44
  /** Opens the picker when clicking dead zones on the field shell (padding, gaps, icon gutter). */
38
45
  export declare function handlePickerSurfacePointerDown({ disabled, event, onOpen, focusField, }: PickerSurfacePointerDownOptions): void;
39
46
  /** Block Radix outside-dismiss when the calendar footer requires explicit Apply/Cancel. */