@flamingo-stack/openframe-frontend-core 0.0.633-snapshot.20260914220733 → 0.0.633
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/meeting-scheduler/index.cjs +4 -11
- package/dist/components/meeting-scheduler/index.cjs.map +1 -1
- package/dist/components/meeting-scheduler/index.d.ts +24 -10
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +4 -11
- package/dist/components/meeting-scheduler/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/meeting-scheduler/index.tsx +29 -26
package/package.json
CHANGED
|
@@ -236,17 +236,31 @@ const STEP_PANEL_CLASS = cn('flex flex-1 flex-col', PANEL_STEP_CLASS);
|
|
|
236
236
|
export const MEETING_SCHEDULER_H = 'md:h-[34.375rem] lg:h-[23.75rem]';
|
|
237
237
|
|
|
238
238
|
/**
|
|
239
|
-
* The box for `flow="details-first"
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
* the 9.75rem chip cap). Fixed, not a floor, for the slot-first reason: the
|
|
243
|
-
* times column scrolls inside a stated height.
|
|
239
|
+
* The same box for `flow="details-first"`, where the tallest stage is the
|
|
240
|
+
* DETAILS FORM (email + first/last + the link's declared questions + the
|
|
241
|
+
* consent block + Continue) rather than the calendar.
|
|
244
242
|
*
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
243
|
+
* Still a fixed pair, not a floor: everything below the card derives a definite
|
|
244
|
+
* height from it, and a floor was already tried here — it pinned the short
|
|
245
|
+
* stages and let the tall one push the wrapper, which is the screen-shake the
|
|
246
|
+
* fixed height exists to remove.
|
|
247
|
+
*
|
|
248
|
+
* ONE number from `md` up, not two: 638px, the card both mocks draw
|
|
249
|
+
* (`4904:117130` form-only, `4904:118213` three columns). The form stage has no
|
|
250
|
+
* sidebar to stack into a header strip, so nothing about it changes between
|
|
251
|
+
* tablet and desktop, and the calendar stage fits the same box at both — the
|
|
252
|
+
* times column scrolls inside it as it always has.
|
|
253
|
+
*
|
|
254
|
+
* PHONES get a stated height too — the one place this flow departs from
|
|
255
|
+
* slot-first's "the page is the scroller". Slot-first's two stages are the
|
|
256
|
+
* same shape on a phone (calendar + a capped times list either way), so it
|
|
257
|
+
* needs none. Details-first's are not: the form stage, the calendar stage and
|
|
258
|
+
* the two-line confirmation each have their own natural height, and a paid
|
|
259
|
+
* landing page that grows and shrinks by tens of pixels on every step reads as
|
|
260
|
+
* broken. 812px is the calendar stage's natural height at 375px (header strip
|
|
261
|
+
* + six fixed weeks + the 9.75rem chip cap), so that stage fits exactly and the
|
|
262
|
+
* form stage — shorter on the shipped links — sits in it; a link declaring more
|
|
263
|
+
* questions scrolls the form inside the card, as it already does from `md`.
|
|
250
264
|
*
|
|
251
265
|
* Hosts read it through `SCHEDULER_FLOW_PRESETS[flow].height`, never directly.
|
|
252
266
|
*/
|
|
@@ -674,23 +688,12 @@ export function HubSpotMeetingScheduler({
|
|
|
674
688
|
* last-wins, so appending it after would make a host's own `h-*` unreachable,
|
|
675
689
|
* which is the override the height-inside-CARD_CLASS arrangement allows today.
|
|
676
690
|
*/
|
|
677
|
-
|
|
678
|
-
// MEETING_SCHEDULER_DETAILS_FIRST_H); every other stage keeps the stated box.
|
|
679
|
-
// `formOnly` is exactly that stage (`detailsFirst && step === 'details'`), so
|
|
680
|
-
// slot-first, the calendar, the confirmation and the skeleton of either stay boxed.
|
|
681
|
-
const boxed = !formOnly;
|
|
682
|
-
const cardClass = cn(
|
|
683
|
-
CARD_CLASS,
|
|
684
|
-
boxed ? preset.height : 'md:h-auto',
|
|
685
|
-
detailsFirst && 'flex flex-col',
|
|
686
|
-
formOnly && 'bg-ods-bg',
|
|
687
|
-
className,
|
|
688
|
-
);
|
|
691
|
+
const cardClass = cn(CARD_CLASS, preset.height, detailsFirst && 'flex flex-col', formOnly && 'bg-ods-bg', className);
|
|
689
692
|
/** details-first states a height on phones too (see MEETING_SCHEDULER_DETAILS_FIRST_H), so
|
|
690
|
-
* the wrappers that let content shrink into a stated height run at every width
|
|
691
|
-
const innerClass = cn(CARD_INNER_CLASS, detailsFirst &&
|
|
692
|
-
const actionPanelClass = cn(ACTION_PANEL_CLASS, detailsFirst &&
|
|
693
|
-
const stepPanelClass = cn(STEP_PANEL_CLASS, detailsFirst &&
|
|
693
|
+
* the wrappers that let content shrink into a stated height run at every width here. */
|
|
694
|
+
const innerClass = cn(CARD_INNER_CLASS, detailsFirst && 'min-h-0 flex-1');
|
|
695
|
+
const actionPanelClass = cn(ACTION_PANEL_CLASS, detailsFirst && 'min-h-0 overflow-y-auto');
|
|
696
|
+
const stepPanelClass = cn(STEP_PANEL_CLASS, detailsFirst && 'min-h-0 overflow-y-auto');
|
|
694
697
|
|
|
695
698
|
/** One card SHAPE for every degraded return below. */
|
|
696
699
|
const degraded = (message: string) => (
|