@flamingo-stack/openframe-frontend-core 0.0.635-2194.6263.1 → 0.0.635-2194.6264.1
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/booking-form.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +2 -1
- package/dist/components/meeting-scheduler/index.cjs.map +1 -1
- package/dist/components/meeting-scheduler/index.js +2 -1
- package/dist/components/meeting-scheduler/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/meeting-scheduler/booking-form.tsx +13 -10
package/package.json
CHANGED
|
@@ -683,19 +683,22 @@ export function BookingFormSkeleton({
|
|
|
683
683
|
consent?: boolean;
|
|
684
684
|
footerNote?: string;
|
|
685
685
|
}) {
|
|
686
|
+
// `rowCount` rows are one full-width slot each; host rows (or the built-in
|
|
687
|
+
// layout) go through the loaded form's normalisation (`normalizeFieldRows`).
|
|
688
|
+
const rows =
|
|
689
|
+
rowCount !== undefined
|
|
690
|
+
? Array.from({ length: rowCount }, (_, index): BookingFieldRow => [{ name: `skeleton-row-${index}` }])
|
|
691
|
+
: skeletonRows(fieldRows ?? DEFAULT_FIELD_ROWS);
|
|
686
692
|
return (
|
|
687
693
|
<div className={cn('flex-1', FORM_STACK)}>
|
|
688
|
-
{/*
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
<div key={row.map(s => s.name).join('|')} className={ROW_GRID}>
|
|
694
|
-
{row.map((slot, slotIndex) => (
|
|
695
|
-
<Skeleton key={slot.name} className={cn(FIELD_SKELETON_CLASS, slotColumnClass(row, slot, slotIndex))} />
|
|
696
|
-
))}
|
|
697
|
-
</div>
|
|
694
|
+
{/* Every row through the SAME grid and column rule as the loaded form. */}
|
|
695
|
+
{rows.map(row => (
|
|
696
|
+
<div key={row.map(s => s.name).join('|')} className={ROW_GRID}>
|
|
697
|
+
{row.map((slot, slotIndex) => (
|
|
698
|
+
<Skeleton key={slot.name} className={cn(FIELD_SKELETON_CLASS, slotColumnClass(row, slot, slotIndex))} />
|
|
698
699
|
))}
|
|
700
|
+
</div>
|
|
701
|
+
))}
|
|
699
702
|
{/* Without rows there is no telling how many questions the link declares: one long answer stands for them. */}
|
|
700
703
|
{rowCount === undefined && !fieldRows && <Skeleton className="h-[7.75rem] w-full" />}
|
|
701
704
|
{consent && <Skeleton className="h-[4.25rem] w-full" />}
|