@flamingo-stack/openframe-frontend-core 0.0.455 → 0.0.456-snapshot.20260720115226
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-6W4ZEVIC.js → chunk-2ZW2ZPDW.js} +3 -3
- package/dist/{chunk-XAQLBUCP.js → chunk-4423DHRX.js} +2 -2
- package/dist/{chunk-5YPKZM6Y.js → chunk-5BKBG653.js} +6 -6
- package/dist/{chunk-YSKSBLCG.cjs → chunk-5XFJG3TC.cjs} +73 -73
- package/dist/{chunk-YSKSBLCG.cjs.map → chunk-5XFJG3TC.cjs.map} +1 -1
- package/dist/{chunk-RT7DIGTN.cjs → chunk-6TI3DCOG.cjs} +3 -3
- package/dist/{chunk-RT7DIGTN.cjs.map → chunk-6TI3DCOG.cjs.map} +1 -1
- package/dist/{chunk-M5RT26WQ.cjs → chunk-AB65PWU2.cjs} +73 -73
- package/dist/{chunk-M5RT26WQ.cjs.map → chunk-AB65PWU2.cjs.map} +1 -1
- package/dist/{chunk-DGPKGESY.js → chunk-AJGZ3YSR.js} +4 -4
- package/dist/{chunk-FCVF4YAB.cjs → chunk-BDTQIIJR.cjs} +40 -40
- package/dist/{chunk-FCVF4YAB.cjs.map → chunk-BDTQIIJR.cjs.map} +1 -1
- package/dist/{chunk-BE77G7GW.cjs → chunk-C2TDHJBO.cjs} +40 -40
- package/dist/{chunk-BE77G7GW.cjs.map → chunk-C2TDHJBO.cjs.map} +1 -1
- package/dist/{chunk-XT6S6DYS.cjs → chunk-CCT5VCRP.cjs} +12 -12
- package/dist/{chunk-XT6S6DYS.cjs.map → chunk-CCT5VCRP.cjs.map} +1 -1
- package/dist/{chunk-NNDNJCJ3.cjs → chunk-EOVQVVDJ.cjs} +18 -18
- package/dist/{chunk-NNDNJCJ3.cjs.map → chunk-EOVQVVDJ.cjs.map} +1 -1
- package/dist/{chunk-62AXZKYN.cjs → chunk-FM5DTJPA.cjs} +1753 -1376
- package/dist/chunk-FM5DTJPA.cjs.map +1 -0
- package/dist/{chunk-YXCYQKAX.js → chunk-GJ7BN4MI.js} +5 -5
- package/dist/{chunk-VNE5R4LQ.js → chunk-I7M6KCCS.js} +5 -5
- package/dist/{chunk-X62ICFPJ.js → chunk-ILUX3DXS.js} +2 -2
- package/dist/{chunk-KTGGM5WA.cjs → chunk-IOHQJOLR.cjs} +36 -12
- package/dist/chunk-IOHQJOLR.cjs.map +1 -0
- package/dist/{chunk-GNYV6HYO.cjs → chunk-KQ36EHE4.cjs} +15 -15
- package/dist/{chunk-GNYV6HYO.cjs.map → chunk-KQ36EHE4.cjs.map} +1 -1
- package/dist/{chunk-QSIZW6EX.js → chunk-KXIIUE75.js} +2 -2
- package/dist/{chunk-BD3JBEUC.js → chunk-MK2YWJAA.js} +64 -40
- package/dist/chunk-MK2YWJAA.js.map +1 -0
- package/dist/{chunk-N4CHA7T7.js → chunk-NSL5MNS4.js} +5210 -4833
- package/dist/chunk-NSL5MNS4.js.map +1 -0
- package/dist/{chunk-LB3OZE4B.js → chunk-O7F7RZFN.js} +6 -6
- package/dist/{chunk-JUUPMMKI.js → chunk-R5IQJXA3.js} +3 -3
- package/dist/{chunk-EGTGRG7N.js → chunk-RSW42GTZ.js} +2 -2
- package/dist/{chunk-RZL7I6YN.cjs → chunk-SQ3CP2IV.cjs} +7 -7
- package/dist/{chunk-RZL7I6YN.cjs.map → chunk-SQ3CP2IV.cjs.map} +1 -1
- package/dist/{chunk-D5PBUVGB.cjs → chunk-U4APSAAR.cjs} +5 -5
- package/dist/{chunk-D5PBUVGB.cjs.map → chunk-U4APSAAR.cjs.map} +1 -1
- package/dist/{chunk-2KUIA2AR.js → chunk-WXDEMTLD.js} +3 -3
- package/dist/{chunk-IDCPYG7N.cjs → chunk-YCIVMKRS.cjs} +29 -29
- package/dist/{chunk-IDCPYG7N.cjs.map → chunk-YCIVMKRS.cjs.map} +1 -1
- package/dist/{chunk-UJZ6O2ON.cjs → chunk-YHB4MNUX.cjs} +32 -32
- package/dist/{chunk-UJZ6O2ON.cjs.map → chunk-YHB4MNUX.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +9 -9
- package/dist/components/case-studies/index.js +3 -3
- package/dist/components/chat/chat-message-list.d.ts.map +1 -1
- package/dist/components/chat/chat-sidebar.d.ts.map +1 -1
- package/dist/components/chat/chat-ticket-list.d.ts.map +1 -1
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/index.js +2 -2
- package/dist/components/chat/mingo-chat-history.d.ts.map +1 -1
- package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
- package/dist/components/chat/quick-action-wall.d.ts +5 -1
- package/dist/components/chat/quick-action-wall.d.ts.map +1 -1
- package/dist/components/chat/types/component.types.d.ts +17 -0
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/contact/index.js +3 -3
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/docs/index.js +5 -5
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/embeds/index.js +3 -3
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/faq/index.js +4 -4
- package/dist/components/features/cards-strip.d.ts.map +1 -1
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/features/index.js +2 -2
- package/dist/components/features/notifications/notification-drawer.d.ts.map +1 -1
- package/dist/components/features/time-tracker/time-tracker-panel.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.cjs +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +141 -135
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +17 -11
- package/dist/components/index.js.map +1 -1
- package/dist/components/layout/page-container.d.ts.map +1 -1
- package/dist/components/navigation/app-layout-drawer.d.ts +1 -1
- package/dist/components/navigation/index.cjs +3 -3
- package/dist/components/navigation/index.js +2 -2
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.js +6 -6
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/related-content/index.js +4 -4
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/drawer.d.ts +1 -1
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +9 -3
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +8 -2
- package/dist/components/ui/marquee-wall.d.ts +8 -1
- package/dist/components/ui/marquee-wall.d.ts.map +1 -1
- package/dist/components/ui/menubar.d.ts +3 -6
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/modal-v2.d.ts.map +1 -1
- package/dist/components/ui/modal.d.ts.map +1 -1
- package/dist/components/ui/overlay-scroll-area.d.ts +59 -0
- package/dist/components/ui/overlay-scroll-area.d.ts.map +1 -0
- package/dist/hooks/index.cjs +4 -2
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.js +3 -1
- package/dist/hooks/ui/index.d.ts +1 -0
- package/dist/hooks/ui/index.d.ts.map +1 -1
- package/dist/hooks/ui/use-reset-on-page-hidden.d.ts +19 -0
- package/dist/hooks/ui/use-reset-on-page-hidden.d.ts.map +1 -0
- package/dist/hooks/use-near-viewport.d.ts +3 -1
- package/dist/hooks/use-near-viewport.d.ts.map +1 -1
- package/dist/index.cjs +11 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -2
- package/package.json +3 -1
- package/src/components/chat/chat-message-list.tsx +54 -10
- package/src/components/chat/chat-sidebar.tsx +9 -4
- package/src/components/chat/chat-ticket-list.tsx +8 -2
- package/src/components/chat/embeddable-chat.tsx +31 -3
- package/src/components/chat/guide-welcome.tsx +7 -4
- package/src/components/chat/mingo-chat-history.tsx +6 -4
- package/src/components/chat/mingo-welcome.tsx +7 -4
- package/src/components/chat/quick-action-wall.tsx +7 -0
- package/src/components/chat/types/component.types.ts +17 -0
- package/src/components/features/cards-strip.tsx +16 -0
- package/src/components/features/notifications/notification-drawer.tsx +6 -4
- package/src/components/features/time-tracker/time-tracker-panel.tsx +5 -3
- package/src/components/layout/page-container.tsx +13 -5
- package/src/components/ui/drawer.tsx +8 -3
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/marquee-wall.tsx +185 -11
- package/src/components/ui/modal-v2.tsx +6 -2
- package/src/components/ui/modal.tsx +6 -2
- package/src/components/ui/overlay-scroll-area.tsx +219 -0
- package/src/hooks/ui/index.ts +1 -0
- package/src/hooks/ui/use-reset-on-page-hidden.ts +32 -0
- package/src/hooks/use-near-viewport.ts +36 -12
- package/src/stories/OverlayScrollArea.stories.tsx +52 -0
- package/src/styles/index.css +2 -0
- package/src/styles/overlay-scrollbars-theme.css +19 -0
- package/src/styles/vendor-overlayscrollbars.css +673 -0
- package/dist/chunk-62AXZKYN.cjs.map +0 -1
- package/dist/chunk-BD3JBEUC.js.map +0 -1
- package/dist/chunk-KTGGM5WA.cjs.map +0 -1
- package/dist/chunk-N4CHA7T7.js.map +0 -1
- /package/dist/{chunk-6W4ZEVIC.js.map → chunk-2ZW2ZPDW.js.map} +0 -0
- /package/dist/{chunk-XAQLBUCP.js.map → chunk-4423DHRX.js.map} +0 -0
- /package/dist/{chunk-5YPKZM6Y.js.map → chunk-5BKBG653.js.map} +0 -0
- /package/dist/{chunk-DGPKGESY.js.map → chunk-AJGZ3YSR.js.map} +0 -0
- /package/dist/{chunk-YXCYQKAX.js.map → chunk-GJ7BN4MI.js.map} +0 -0
- /package/dist/{chunk-VNE5R4LQ.js.map → chunk-I7M6KCCS.js.map} +0 -0
- /package/dist/{chunk-X62ICFPJ.js.map → chunk-ILUX3DXS.js.map} +0 -0
- /package/dist/{chunk-QSIZW6EX.js.map → chunk-KXIIUE75.js.map} +0 -0
- /package/dist/{chunk-LB3OZE4B.js.map → chunk-O7F7RZFN.js.map} +0 -0
- /package/dist/{chunk-JUUPMMKI.js.map → chunk-R5IQJXA3.js.map} +0 -0
- /package/dist/{chunk-EGTGRG7N.js.map → chunk-RSW42GTZ.js.map} +0 -0
- /package/dist/{chunk-2KUIA2AR.js.map → chunk-WXDEMTLD.js.map} +0 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/nextjs-vite'
|
|
2
|
+
import { OverlayScrollArea } from '../components/ui/overlay-scroll-area'
|
|
3
|
+
|
|
4
|
+
// POC: standardized macOS-like overlay scrollbar (OverlayScrollbars) — the
|
|
5
|
+
// bar appears while scrolling / hovering and fades out when idle, on every
|
|
6
|
+
// platform. Native scrolling (wheel, touchpad momentum, thumb drag) is kept.
|
|
7
|
+
|
|
8
|
+
const meta: Meta<typeof OverlayScrollArea> = {
|
|
9
|
+
title: 'UI/OverlayScrollArea',
|
|
10
|
+
component: OverlayScrollArea,
|
|
11
|
+
parameters: { layout: 'centered' },
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default meta
|
|
15
|
+
type Story = StoryObj<typeof OverlayScrollArea>
|
|
16
|
+
|
|
17
|
+
const rows = (count: number) =>
|
|
18
|
+
Array.from({ length: count }, (_, i) => (
|
|
19
|
+
<div key={i} className="border-b border-ods-border px-[var(--spacing-system-m)] py-[var(--spacing-system-s)] text-ods-text-primary">
|
|
20
|
+
Row {i + 1} — scrollable content
|
|
21
|
+
</div>
|
|
22
|
+
))
|
|
23
|
+
|
|
24
|
+
export const Vertical: Story = {
|
|
25
|
+
render: () => (
|
|
26
|
+
<OverlayScrollArea className="h-72 w-96 rounded-lg border border-ods-border bg-ods-card">
|
|
27
|
+
{rows(40)}
|
|
28
|
+
</OverlayScrollArea>
|
|
29
|
+
),
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export const Horizontal: Story = {
|
|
33
|
+
render: () => (
|
|
34
|
+
<OverlayScrollArea className="h-24 w-96 rounded-lg border border-ods-border bg-ods-card">
|
|
35
|
+
<div className="flex w-max gap-[var(--spacing-system-s)] p-[var(--spacing-system-m)]">
|
|
36
|
+
{Array.from({ length: 30 }, (_, i) => (
|
|
37
|
+
<div key={i} className="flex h-12 w-28 shrink-0 items-center justify-center rounded-md bg-ods-bg text-ods-text-secondary">
|
|
38
|
+
Chip {i + 1}
|
|
39
|
+
</div>
|
|
40
|
+
))}
|
|
41
|
+
</div>
|
|
42
|
+
</OverlayScrollArea>
|
|
43
|
+
),
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export const Both: Story = {
|
|
47
|
+
render: () => (
|
|
48
|
+
<OverlayScrollArea className="h-72 w-96 rounded-lg border border-ods-border bg-ods-card">
|
|
49
|
+
<div className="w-[800px]">{rows(40)}</div>
|
|
50
|
+
</OverlayScrollArea>
|
|
51
|
+
),
|
|
52
|
+
}
|
package/src/styles/index.css
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* ODS theme for OverlayScrollbars (see components/ui/overlay-scroll-area.tsx).
|
|
2
|
+
Thin grey draggable thumb on a transparent track — matches the global
|
|
3
|
+
elevator scrollbar styling, but with macOS-like auto-hide on all platforms. */
|
|
4
|
+
.os-theme-ods {
|
|
5
|
+
--os-size: 8px;
|
|
6
|
+
--os-padding-perpendicular: 2px;
|
|
7
|
+
--os-padding-axis: 2px;
|
|
8
|
+
--os-track-bg: transparent;
|
|
9
|
+
--os-track-bg-hover: transparent;
|
|
10
|
+
--os-track-bg-active: transparent;
|
|
11
|
+
--os-handle-bg: var(--ods-system-greys-grey);
|
|
12
|
+
--os-handle-bg-hover: var(--ods-system-greys-grey-hover);
|
|
13
|
+
--os-handle-bg-active: var(--ods-system-greys-grey-action);
|
|
14
|
+
--os-handle-border-radius: 4px;
|
|
15
|
+
--os-handle-perpendicular-size: 100%;
|
|
16
|
+
--os-handle-perpendicular-size-hover: 100%;
|
|
17
|
+
--os-handle-perpendicular-size-active: 100%;
|
|
18
|
+
--os-handle-min-size: 33px;
|
|
19
|
+
}
|