@flamingo-stack/openframe-frontend-core 0.0.642-snapshot.20260915210251 → 0.0.642

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 (101) hide show
  1. package/dist/{chunk-EWQI5MV6.cjs → chunk-2Z5FPHOL.cjs} +15 -15
  2. package/dist/{chunk-EWQI5MV6.cjs.map → chunk-2Z5FPHOL.cjs.map} +1 -1
  3. package/dist/{chunk-2NODQ7FO.js → chunk-3I6XHQUD.js} +6 -19
  4. package/dist/{chunk-2NODQ7FO.js.map → chunk-3I6XHQUD.js.map} +1 -1
  5. package/dist/{chunk-TIOHTWDA.js → chunk-6GY6DFIH.js} +5 -5
  6. package/dist/{chunk-64KDKDYC.js → chunk-6NHLZORM.js} +5 -5
  7. package/dist/{chunk-R2IU2Y2O.cjs → chunk-EW3MSJOE.cjs} +33 -33
  8. package/dist/{chunk-R2IU2Y2O.cjs.map → chunk-EW3MSJOE.cjs.map} +1 -1
  9. package/dist/{chunk-42NXGOTG.cjs → chunk-FRCUUK5X.cjs} +3 -3
  10. package/dist/{chunk-42NXGOTG.cjs.map → chunk-FRCUUK5X.cjs.map} +1 -1
  11. package/dist/{chunk-CWHLVXUW.cjs → chunk-GEIHTN6J.cjs} +10 -10
  12. package/dist/{chunk-CWHLVXUW.cjs.map → chunk-GEIHTN6J.cjs.map} +1 -1
  13. package/dist/{chunk-4TE53O6U.js → chunk-HW7BLVQH.js} +3 -3
  14. package/dist/{chunk-7HL2PNQ3.js → chunk-J4RZVLLQ.js} +5 -5
  15. package/dist/{chunk-M3W5Y5DK.cjs → chunk-M4PJVFBF.cjs} +9 -9
  16. package/dist/{chunk-M3W5Y5DK.cjs.map → chunk-M4PJVFBF.cjs.map} +1 -1
  17. package/dist/{chunk-6MQBLFUM.js → chunk-M7QROULE.js} +4 -4
  18. package/dist/{chunk-IIZX3K2R.js → chunk-MJ424FEC.js} +2 -2
  19. package/dist/{chunk-7T673MHJ.cjs → chunk-N5C5P2LM.cjs} +22 -22
  20. package/dist/{chunk-7T673MHJ.cjs.map → chunk-N5C5P2LM.cjs.map} +1 -1
  21. package/dist/{chunk-B42INNRA.cjs → chunk-O4LL7RQV.cjs} +161 -161
  22. package/dist/{chunk-B42INNRA.cjs.map → chunk-O4LL7RQV.cjs.map} +1 -1
  23. package/dist/{chunk-5E6Y6766.cjs → chunk-OOOOC5O5.cjs} +25 -25
  24. package/dist/{chunk-5E6Y6766.cjs.map → chunk-OOOOC5O5.cjs.map} +1 -1
  25. package/dist/{chunk-O7JMF5OT.js → chunk-ORFJVMAL.js} +2 -2
  26. package/dist/{chunk-26D6FM6L.cjs → chunk-OYI3K5R6.cjs} +3 -3
  27. package/dist/{chunk-26D6FM6L.cjs.map → chunk-OYI3K5R6.cjs.map} +1 -1
  28. package/dist/{chunk-YT6RGA3X.js → chunk-POPL3W2S.js} +2 -2
  29. package/dist/{chunk-KX2FT7AS.cjs → chunk-QY25ZP2V.cjs} +22 -22
  30. package/dist/{chunk-KX2FT7AS.cjs.map → chunk-QY25ZP2V.cjs.map} +1 -1
  31. package/dist/{chunk-FVIT23I5.js → chunk-S254VEDE.js} +2 -2
  32. package/dist/{chunk-TQ7KTANJ.js → chunk-SDGMLXIP.js} +2 -2
  33. package/dist/{chunk-IU3IYXMM.js → chunk-UFBWNVZZ.js} +6 -6
  34. package/dist/{chunk-2DJH6KHA.cjs → chunk-VHB3I6F3.cjs} +6 -19
  35. package/dist/chunk-VHB3I6F3.cjs.map +1 -0
  36. package/dist/{chunk-FO7SD2IQ.cjs → chunk-VKPTN5MT.cjs} +4 -4
  37. package/dist/{chunk-FO7SD2IQ.cjs.map → chunk-VKPTN5MT.cjs.map} +1 -1
  38. package/dist/{chunk-XJLWGYL4.cjs → chunk-WL3PNUNY.cjs} +71 -71
  39. package/dist/{chunk-XJLWGYL4.cjs.map → chunk-WL3PNUNY.cjs.map} +1 -1
  40. package/dist/{chunk-ZU2JBBOE.cjs → chunk-XFLJC2WR.cjs} +45 -45
  41. package/dist/{chunk-ZU2JBBOE.cjs.map → chunk-XFLJC2WR.cjs.map} +1 -1
  42. package/dist/{chunk-YG7KLZE7.js → chunk-XWGHLSAL.js} +3 -3
  43. package/dist/{chunk-77EO26XV.cjs → chunk-YE3TFNW6.cjs} +5 -5
  44. package/dist/{chunk-77EO26XV.cjs.map → chunk-YE3TFNW6.cjs.map} +1 -1
  45. package/dist/{chunk-NCHLLTAR.js → chunk-YM6L3WM5.js} +3 -3
  46. package/dist/{chunk-D6TWJEFW.cjs → chunk-YRSRP4U3.cjs} +10 -10
  47. package/dist/{chunk-D6TWJEFW.cjs.map → chunk-YRSRP4U3.cjs.map} +1 -1
  48. package/dist/{chunk-N7UYD57Q.js → chunk-ZAIYD3MZ.js} +3 -3
  49. package/dist/{chunk-HA2U7WHU.js → chunk-ZGPJ3NVF.js} +3 -3
  50. package/dist/components/case-studies/index.cjs +14 -14
  51. package/dist/components/case-studies/index.js +3 -3
  52. package/dist/components/chat/index.cjs +2 -2
  53. package/dist/components/chat/index.js +1 -1
  54. package/dist/components/contact/index.cjs +4 -4
  55. package/dist/components/contact/index.js +3 -3
  56. package/dist/components/docs/index.cjs +7 -7
  57. package/dist/components/docs/index.js +6 -6
  58. package/dist/components/embeds/index.cjs +4 -4
  59. package/dist/components/embeds/index.js +3 -3
  60. package/dist/components/faq/index.cjs +4 -4
  61. package/dist/components/faq/index.js +3 -3
  62. package/dist/components/features/index.cjs +3 -3
  63. package/dist/components/features/index.js +2 -2
  64. package/dist/components/help-center-pages/index.cjs +23 -23
  65. package/dist/components/help-center-pages/index.js +14 -14
  66. package/dist/components/index.cjs +38 -38
  67. package/dist/components/index.js +13 -13
  68. package/dist/components/meeting-scheduler/index.cjs +24 -24
  69. package/dist/components/meeting-scheduler/index.js +2 -2
  70. package/dist/components/navigation/index.cjs +6 -6
  71. package/dist/components/navigation/index.js +5 -5
  72. package/dist/components/onboarding-guides/index.cjs +6 -6
  73. package/dist/components/onboarding-guides/index.js +5 -5
  74. package/dist/components/tickets/index.cjs +7 -7
  75. package/dist/components/tickets/index.js +6 -6
  76. package/dist/components/ui/drawer.d.ts +5 -19
  77. package/dist/components/ui/drawer.d.ts.map +1 -1
  78. package/dist/components/ui/index.cjs +3 -3
  79. package/dist/components/ui/index.js +2 -2
  80. package/dist/index.cjs +7 -7
  81. package/dist/index.js +6 -6
  82. package/package.json +1 -1
  83. package/src/components/ui/.drawer.md +0 -1
  84. package/src/components/ui/drawer.tsx +9 -44
  85. package/dist/chunk-2DJH6KHA.cjs.map +0 -1
  86. package/src/components/ui/__tests__/drawer-size.test.tsx +0 -38
  87. /package/dist/{chunk-TIOHTWDA.js.map → chunk-6GY6DFIH.js.map} +0 -0
  88. /package/dist/{chunk-64KDKDYC.js.map → chunk-6NHLZORM.js.map} +0 -0
  89. /package/dist/{chunk-4TE53O6U.js.map → chunk-HW7BLVQH.js.map} +0 -0
  90. /package/dist/{chunk-7HL2PNQ3.js.map → chunk-J4RZVLLQ.js.map} +0 -0
  91. /package/dist/{chunk-6MQBLFUM.js.map → chunk-M7QROULE.js.map} +0 -0
  92. /package/dist/{chunk-IIZX3K2R.js.map → chunk-MJ424FEC.js.map} +0 -0
  93. /package/dist/{chunk-O7JMF5OT.js.map → chunk-ORFJVMAL.js.map} +0 -0
  94. /package/dist/{chunk-YT6RGA3X.js.map → chunk-POPL3W2S.js.map} +0 -0
  95. /package/dist/{chunk-FVIT23I5.js.map → chunk-S254VEDE.js.map} +0 -0
  96. /package/dist/{chunk-TQ7KTANJ.js.map → chunk-SDGMLXIP.js.map} +0 -0
  97. /package/dist/{chunk-IU3IYXMM.js.map → chunk-UFBWNVZZ.js.map} +0 -0
  98. /package/dist/{chunk-YG7KLZE7.js.map → chunk-XWGHLSAL.js.map} +0 -0
  99. /package/dist/{chunk-NCHLLTAR.js.map → chunk-YM6L3WM5.js.map} +0 -0
  100. /package/dist/{chunk-N7UYD57Q.js.map → chunk-ZAIYD3MZ.js.map} +0 -0
  101. /package/dist/{chunk-HA2U7WHU.js.map → chunk-ZGPJ3NVF.js.map} +0 -0
@@ -104,19 +104,8 @@ const drawerPanelVariants = cva(
104
104
  false: 'gap-4 rounded-md border border-ods-border p-4',
105
105
  true: '',
106
106
  },
107
- /** Panel size along the axis the drawer slides on. `default` leaves it to
108
- * the content (or `resizable`); `wide` is the admin detail panel, 90% of
109
- * the viewport. Set the size here, never with a width class. */
110
- size: {
111
- default: '',
112
- wide: '',
113
- },
114
107
  },
115
108
  compoundVariants: [
116
- { side: 'right', size: 'wide', class: 'w-[90vw]' },
117
- { side: 'left', size: 'wide', class: 'w-[90vw]' },
118
- { side: 'top', size: 'wide', class: 'h-[90vh]' },
119
- { side: 'bottom', size: 'wide', class: 'h-[90vh]' },
120
109
  // flush=true → drops inner padding/gap so the consumer fully owns
121
110
  // internal layout, BUT preserves the card chrome (rounded + border)
122
111
  // on desktop so the panel still reads as an elevated card.
@@ -129,7 +118,6 @@ const drawerPanelVariants = cva(
129
118
  defaultVariants: {
130
119
  side: 'right',
131
120
  flush: false,
132
- size: 'default',
133
121
  },
134
122
  },
135
123
  );
@@ -316,12 +304,16 @@ function DrawerResizeHandle({ side, size, minSize, maxSize, onSize, ariaLabel }:
316
304
  );
317
305
  }
318
306
 
319
- interface DrawerContentBaseProps
307
+ interface DrawerContentProps
320
308
  extends Omit<ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, 'style'>, VariantProps<typeof drawerVariants> {
321
309
  /** Remove outer wrapper padding and panel rounded/border/padding so the
322
310
  * panel attaches flush to the viewport edge. Use for full-height side
323
311
  * panels (e.g. the embedded chat). */
324
312
  flush?: boolean;
313
+ /** Enable the drag-to-resize handle on the inside-facing edge. Only
314
+ * active for `side="left"` / `side="right"` (or `top`/`bottom`) on
315
+ * non-mobile viewports. */
316
+ resizable?: boolean;
325
317
  /** Minimum allowed size (px) when resizable. */
326
318
  minSize?: number;
327
319
  /** Maximum allowed size (px) when resizable. Also clamped by viewport. */
@@ -352,34 +344,11 @@ interface DrawerContentBaseProps
352
344
  offsetHeader?: boolean;
353
345
  }
354
346
 
355
- /**
356
- * The panel's size has ONE owner: a `size` preset OR the drag-to-resize handle.
357
- * A resizable panel sizes itself inline, which would silently override `wide`,
358
- * so the two cannot be combined (a type error, not a runtime surprise).
359
- */
360
- type DrawerContentSizing =
361
- | {
362
- /** Panel size preset (`wide` = 90% of the viewport). Use it instead of a
363
- * width/height class. */
364
- size?: 'default' | 'wide';
365
- resizable?: false;
366
- }
367
- | {
368
- size?: 'default';
369
- /** Enable the drag-to-resize handle on the inside-facing edge. Only
370
- * active for `side="left"` / `side="right"` (or `top`/`bottom`) on
371
- * non-mobile viewports. The handle owns the size, so no `size` preset. */
372
- resizable: true;
373
- };
374
-
375
- type DrawerContentProps = DrawerContentBaseProps & DrawerContentSizing;
376
-
377
347
  const DrawerContent = forwardRef<ComponentRef<typeof DialogPrimitive.Content>, DrawerContentProps>(
378
348
  (
379
349
  {
380
350
  side = 'right',
381
351
  flush = false,
382
- size = 'default',
383
352
  resizable = false,
384
353
  minSize = 320,
385
354
  maxSize = 1280,
@@ -414,7 +383,7 @@ const DrawerContent = forwardRef<ComponentRef<typeof DialogPrimitive.Content>, D
414
383
  return () => mq.removeEventListener('change', update);
415
384
  }, [mobileBreakpoint]);
416
385
 
417
- const { size: resizedSize, setSize } = useResizableSize({
386
+ const { size, setSize } = useResizableSize({
418
387
  enabled: resizable,
419
388
  isHorizontal,
420
389
  minSize,
@@ -424,11 +393,7 @@ const DrawerContent = forwardRef<ComponentRef<typeof DialogPrimitive.Content>, D
424
393
  });
425
394
 
426
395
  const applyInlineSize = resizable && !isMobile;
427
- const sizeStyle: CSSProperties = applyInlineSize
428
- ? isHorizontal
429
- ? { width: resizedSize }
430
- : { height: resizedSize }
431
- : {};
396
+ const sizeStyle: CSSProperties = applyInlineSize ? (isHorizontal ? { width: size } : { height: size }) : {};
432
397
 
433
398
  return (
434
399
  <DrawerPortal>
@@ -445,7 +410,7 @@ const DrawerContent = forwardRef<ComponentRef<typeof DialogPrimitive.Content>, D
445
410
  {applyInlineSize ? (
446
411
  <DrawerResizeHandle
447
412
  side={resolvedSide}
448
- size={resizedSize}
413
+ size={size}
449
414
  minSize={minSize}
450
415
  maxSize={maxSize}
451
416
  onSize={setSize}
@@ -453,7 +418,7 @@ const DrawerContent = forwardRef<ComponentRef<typeof DialogPrimitive.Content>, D
453
418
  />
454
419
  ) : null}
455
420
  <div
456
- className={cn(drawerPanelVariants({ side, flush, size }), className, panelClassName)}
421
+ className={cn(drawerPanelVariants({ side, flush }), className, panelClassName)}
457
422
  style={{ ...sizeStyle, ...panelStyle }}
458
423
  >
459
424
  {children}