@flamingo-stack/openframe-frontend-core 0.0.751 → 0.0.752
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/{chunk-OFO75R2O.cjs → chunk-35RU25PJ.cjs} +130 -130
- package/dist/{chunk-ALPRQ3ZX.cjs → chunk-3GG3QAPT.cjs} +15 -15
- package/dist/{chunk-NOUROZYH.cjs → chunk-4OTCQEP3.cjs} +24 -24
- package/dist/{chunk-XJ3J4UIS.cjs → chunk-4PEG4JTM.cjs} +19 -19
- package/dist/{chunk-3TELPOVH.cjs → chunk-7OEVVMAU.cjs} +2 -2
- package/dist/{chunk-5WC535NJ.cjs → chunk-7WEGXNNS.cjs} +40 -40
- package/dist/{chunk-C6LPOYDM.cjs → chunk-AG4HR6Z6.cjs} +8 -8
- package/dist/{chunk-TPH4SRR2.cjs → chunk-EM4OEWCM.cjs} +165 -165
- package/dist/{chunk-5P7WBA2U.cjs → chunk-EUQJ7QHW.cjs} +4 -4
- package/dist/{chunk-RVLQHSID.cjs → chunk-G44V3UGE.cjs} +101 -101
- package/dist/{chunk-2YXOD2KL.cjs → chunk-H3RYUTND.cjs} +5 -0
- package/dist/{chunk-ESRA7NUI.cjs → chunk-IPVJAML5.cjs} +90 -90
- package/dist/{chunk-QOONZMSQ.cjs → chunk-J5G4CF2V.cjs} +28 -28
- package/dist/{chunk-H52GKJ36.cjs → chunk-JI6NRWCC.cjs} +19 -19
- package/dist/{chunk-53I4YHRT.cjs → chunk-KBJSZFBZ.cjs} +3 -3
- package/dist/{chunk-4WNBVNGP.cjs → chunk-KUVYVAS2.cjs} +20 -20
- package/dist/{chunk-UGCRLRCT.cjs → chunk-NO5UJLLQ.cjs} +2 -5
- package/dist/{chunk-X4LAMJHD.cjs → chunk-OXCGQV6B.cjs} +113 -113
- package/dist/{chunk-FHT7SMA7.cjs → chunk-OXEAN3EQ.cjs} +47 -47
- package/dist/{chunk-CVBHB4OZ.cjs → chunk-P4ODFQGA.cjs} +7 -7
- package/dist/{chunk-MU7FFN6M.cjs → chunk-RDH63XXW.cjs} +83 -83
- package/dist/{chunk-CLAJIQ7E.cjs → chunk-U2AE4UG7.cjs} +19 -19
- package/dist/{chunk-LIGDPFDM.cjs → chunk-VD3XBUQR.cjs} +771 -771
- package/dist/{chunk-MJFTWHV6.cjs → chunk-WQCLN27R.cjs} +6 -6
- package/dist/{chunk-SDOCZTST.cjs → chunk-XADJG35G.cjs} +41 -41
- package/dist/{chunk-77IKUBSH.cjs → chunk-Y6PVZRYL.cjs} +12 -12
- package/dist/{chunk-DGEB5GUZ.cjs → chunk-ZVOXBSDP.cjs} +2 -2
- package/dist/{chunk-34TWK3JE.cjs → chunk-ZYRRRKSZ.cjs} +3 -3
- package/dist/{cloud-tenants-JDPC2DYF.cjs → cloud-tenants-WAOMZZQ2.cjs} +11 -11
- package/dist/components/case-studies/index.cjs +24 -24
- package/dist/components/chat/index.cjs +7 -7
- package/dist/components/contact/index.cjs +12 -12
- package/dist/components/docs/index.cjs +15 -15
- package/dist/components/embeds/index.cjs +12 -12
- package/dist/components/faq/index.cjs +13 -13
- package/dist/components/features/index.cjs +11 -11
- package/dist/components/help-center-pages/index.cjs +112 -112
- package/dist/components/index.cjs +61 -61
- package/dist/components/loading/loading-region.d.ts.map +1 -1
- package/dist/components/loading/loading-region.js +2 -5
- package/dist/components/loading/unified-skeleton.d.ts +2 -0
- package/dist/components/loading/unified-skeleton.d.ts.map +1 -1
- package/dist/components/loading/unified-skeleton.js +5 -0
- package/dist/components/meeting-scheduler/index.cjs +72 -72
- package/dist/components/navigation/index.cjs +14 -14
- package/dist/components/onboarding-guides/index.cjs +14 -14
- package/dist/components/product-demo/index.cjs +12 -12
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/tickets/index.cjs +17 -17
- package/dist/components/ui/file-manager/index.cjs +30 -30
- package/dist/components/ui/index.cjs +11 -11
- package/dist/{devices-ADQWD37J.cjs → devices-VFEPXW2N.cjs} +12 -12
- package/dist/{embeddable-chat-7YF2JMPS.cjs → embeddable-chat-BYQBABDV.cjs} +73 -73
- package/dist/index.cjs +15 -15
- package/dist/{knowledge-TNS64EGK.cjs → knowledge-4TE7AWZX.cjs} +12 -12
- package/dist/{logs-754MDDE4.cjs → logs-3B2P3JXN.cjs} +19 -19
- package/dist/{policies-Q23DPIH6.cjs → policies-DVI6V22X.cjs} +15 -15
- package/dist/{remote-session-ZKP2W3IS.cjs → remote-session-57DGC4X3.cjs} +6 -6
- package/dist/{scripts-DCYLK2RZ.cjs → scripts-JJ2BVYQ5.cjs} +18 -18
- package/dist/{software-update-XCMGUIER.cjs → software-update-BN23RATE.cjs} +15 -15
- package/dist/{tickets-board-BNW4AYFL.cjs → tickets-board-EP6L3BSV.cjs} +7 -7
- package/package.json +1 -1
- package/src/components/loading/loading-region.tsx +4 -9
- package/src/components/loading/unified-skeleton.tsx +13 -0
|
@@ -19,6 +19,8 @@ interface UnifiedSkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
19
19
|
/**
|
|
20
20
|
* The element drawn. `span` keeps the placeholder valid phrasing content where
|
|
21
21
|
* a `div` may not stand (inside a `p`, a heading, a label or an inline card).
|
|
22
|
+
* A span bar whose classes set no base display gets one of its own, capped to
|
|
23
|
+
* its line and centred on it; a caller that sets one gets none of the three.
|
|
22
24
|
*/
|
|
23
25
|
as?: 'div' | 'span';
|
|
24
26
|
}
|
|
@@ -68,6 +70,15 @@ export function UnifiedSkeleton({
|
|
|
68
70
|
// An `aspect-*` utility sizes the box itself; a default height would win
|
|
69
71
|
// over it (explicit height beats aspect-ratio) and collapse the box to 16px.
|
|
70
72
|
const sizedByAspect = /(?:^|\s)aspect-/.test(className ?? '');
|
|
73
|
+
// A span that already names its base display keeps it, with its own cap and alignment: the frozen
|
|
74
|
+
// TitleBlock's bars and the chip and breadcrumb skeletons are `inline-block` on the baseline, tuned to
|
|
75
|
+
// their text. Only an unprefixed display counts: `md:hidden` leaves the base span inline, and a bar
|
|
76
|
+
// without the default would draw at 0×0 below that breakpoint. The list is the displays bars use;
|
|
77
|
+
// any other falls back to the default, and twMerge still lets the caller's display win.
|
|
78
|
+
const setsDisplay =
|
|
79
|
+
/(?:^|\s)(?:inline-block|inline-flex|inline-grid|inline|block|flex|grid|contents|hidden)(?=\s|$)/.test(
|
|
80
|
+
className ?? '',
|
|
81
|
+
);
|
|
71
82
|
|
|
72
83
|
const style: React.CSSProperties = {
|
|
73
84
|
width: width,
|
|
@@ -77,6 +88,8 @@ export function UnifiedSkeleton({
|
|
|
77
88
|
return (
|
|
78
89
|
<Tag
|
|
79
90
|
className={cn(
|
|
91
|
+
// An inline span ignores width and height: without a display of its own the bar draws at 0×0.
|
|
92
|
+
Tag === 'span' && !setsDisplay && 'inline-block max-w-full align-middle',
|
|
80
93
|
animate ? SKELETON_SURFACE_CLASS : 'bg-ods-skeleton',
|
|
81
94
|
variantClasses[variant],
|
|
82
95
|
!height && !style.height && !sizedByAspect && defaultHeights[variant],
|