@flamingo-stack/openframe-frontend-core 0.0.783 → 0.0.785
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/case-study-card-236RTB5D.cjs +23 -0
- package/dist/{chunk-TS6TISIF.cjs → chunk-2JDK4FWV.cjs} +209 -209
- package/dist/{chunk-AFSVWR3X.cjs → chunk-2PMLX52X.cjs} +46 -46
- package/dist/{chunk-CBKXU77H.cjs → chunk-2U4H74KS.cjs} +45 -45
- package/dist/{chunk-WS7IDGEL.cjs → chunk-3ITHC2Y4.cjs} +6 -6
- package/dist/{chunk-ODDUGLYF.cjs → chunk-3SENOTWT.cjs} +110 -110
- package/dist/{chunk-5WMRVMXH.cjs → chunk-4ZHLORL3.cjs} +5 -5
- package/dist/{chunk-BAJB3JF3.cjs → chunk-55KZW2P2.cjs} +31 -31
- package/dist/{chunk-4MQASMIU.cjs → chunk-5CAQZRVN.cjs} +7 -7
- package/dist/{chunk-LGISRUGF.cjs → chunk-5PVYYZEK.cjs} +37 -37
- package/dist/{chunk-UPQMFK5B.cjs → chunk-5Z77NJZF.cjs} +7 -7
- package/dist/{chunk-H3RHAN6B.cjs → chunk-7FCOQCAK.cjs} +61 -61
- package/dist/{chunk-EFCWHAYC.cjs → chunk-7QK4R7UU.cjs} +8 -8
- package/dist/{chunk-YXZOP726.cjs → chunk-7W3NVU4V.cjs} +10 -10
- package/dist/{chunk-MKF6XX5A.cjs → chunk-BP7GLDRJ.cjs} +63 -63
- package/dist/{chunk-6NEWJ6I2.cjs → chunk-BQDO7PU7.cjs} +51 -51
- package/dist/{chunk-RL45AU2C.cjs → chunk-DGUZUOWN.cjs} +42 -42
- package/dist/{chunk-A3UZFFR3.cjs → chunk-DNB5DELQ.cjs} +3 -3
- package/dist/{chunk-PQSTPJQQ.cjs → chunk-EIXFIGLX.cjs} +13 -13
- package/dist/{chunk-5XAWVXNI.cjs → chunk-EOZ23WOY.cjs} +320 -320
- package/dist/{chunk-7OJMOG34.cjs → chunk-EQKMFQ5J.cjs} +535 -535
- package/dist/{chunk-URFAMWCA.cjs → chunk-FDPAD7GS.cjs} +44 -44
- package/dist/{chunk-N5TPRCSS.cjs → chunk-FFW3IY5E.cjs} +60 -60
- package/dist/{chunk-4DKPNN2A.cjs → chunk-G7COLTR6.cjs} +17 -17
- package/dist/{chunk-3INHO6GP.cjs → chunk-GX6YLDAS.cjs} +22 -22
- package/dist/{chunk-BE4OUWTA.cjs → chunk-HAAQUV3O.cjs} +54 -54
- package/dist/{chunk-4DQ4CNAG.cjs → chunk-HE6UVP6R.cjs} +10 -10
- package/dist/{chunk-FLS6DZEN.cjs → chunk-IZXVGIQX.cjs} +44 -44
- package/dist/{chunk-LUWYWYNC.cjs → chunk-J4ZNQ55O.cjs} +2 -2
- package/dist/{chunk-OMTH355I.cjs → chunk-JHY6H2XR.cjs} +3 -3
- package/dist/{chunk-WSBWP7IW.cjs → chunk-JSNLMPXN.cjs} +3 -3
- package/dist/{chunk-KRXHRL3W.cjs → chunk-JZUBBNTT.cjs} +110 -110
- package/dist/{chunk-ZJS45HQZ.cjs → chunk-KKD7XV5A.cjs} +29 -29
- package/dist/{chunk-ZFOMRALU.cjs → chunk-L4ORB5RP.cjs} +16 -16
- package/dist/{chunk-3PKORICR.cjs → chunk-LCPJNG5M.cjs} +115 -115
- package/dist/{chunk-NNNRN4OF.cjs → chunk-LCSYTFFO.cjs} +14 -14
- package/dist/{chunk-N2SVJJLU.cjs → chunk-MZOODES3.cjs} +5 -5
- package/dist/{chunk-THOGSAFH.cjs → chunk-NVWROBPF.cjs} +2014 -2014
- package/dist/{chunk-MGEUZRNQ.cjs → chunk-NWNC22IZ.cjs} +4 -3
- package/dist/{chunk-WHNI4QTG.cjs → chunk-NXUL4W7Q.cjs} +13 -13
- package/dist/{chunk-YU23M33V.cjs → chunk-OOSSOL7E.cjs} +172 -174
- package/dist/{chunk-F2FFJWOQ.cjs → chunk-PCBKE6LA.cjs} +4 -4
- package/dist/{chunk-XKDJ5ISQ.cjs → chunk-Q73MAT62.cjs} +3 -3
- package/dist/{chunk-DYF6XB27.cjs → chunk-QWVVXXFG.cjs} +4 -4
- package/dist/{chunk-CS5SZJFV.cjs → chunk-RU37NNZG.cjs} +2 -2
- package/dist/{chunk-EHQ2UGT4.cjs → chunk-TC2T5Q7M.cjs} +15 -15
- package/dist/{chunk-E2ZZOYSM.cjs → chunk-TRV5GGOH.cjs} +76 -64
- package/dist/{chunk-FS7CBRF4.cjs → chunk-UVPV6TUI.cjs} +23 -23
- package/dist/{chunk-RT6QATX4.cjs → chunk-WLHHXAT7.cjs} +19 -19
- package/dist/{chunk-APO7GMZQ.cjs → chunk-WNKOWR3E.cjs} +4 -4
- package/dist/{chunk-XAA5LUHC.cjs → chunk-Y6KZFPZN.cjs} +12 -12
- package/dist/{chunk-62TMGBRO.cjs → chunk-YCSX7MCG.cjs} +197 -197
- package/dist/{cloud-tenants-QYW3MPPP.cjs → cloud-tenants-TJSSGC5O.cjs} +32 -32
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/case-studies/index.cjs +52 -52
- package/dist/components/chat/index.cjs +26 -26
- package/dist/components/contact/index.cjs +33 -33
- package/dist/components/docs/index.cjs +36 -36
- package/dist/components/embeds/index.cjs +33 -33
- package/dist/components/faq/index.cjs +34 -34
- package/dist/components/features/board/board-column.d.ts +1 -1
- package/dist/components/features/board/board-column.d.ts.map +1 -1
- package/dist/components/features/board/ticket-card.d.ts +1 -1
- package/dist/components/features/board/ticket-card.d.ts.map +1 -1
- package/dist/components/features/index.cjs +32 -32
- package/dist/components/help-center-pages/index.cjs +163 -163
- package/dist/components/index.cjs +204 -204
- package/dist/components/media-carousel.d.ts +1 -1
- package/dist/components/media-carousel.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +187 -187
- package/dist/components/navigation/app-header.d.ts +1 -1
- package/dist/components/navigation/app-header.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +35 -35
- package/dist/components/navigation/mobile-burger-menu.d.ts +1 -1
- package/dist/components/navigation/mobile-burger-menu.d.ts.map +1 -1
- package/dist/components/navigation/navigation-sidebar-item.d.ts +1 -1
- package/dist/components/navigation/navigation-sidebar-item.d.ts.map +1 -1
- package/dist/components/navigation/navigation-sidebar-item.js +1 -3
- package/dist/components/onboarding-guides/index.cjs +35 -35
- package/dist/components/product-demo/index.cjs +45 -45
- package/dist/components/related-content/index.cjs +17 -17
- package/dist/components/tickets/index.cjs +39 -39
- package/dist/components/ui/autocomplete.js +1 -1
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +4 -3
- package/dist/components/ui/date-picker.js +1 -1
- package/dist/components/ui/file-manager/index.cjs +55 -55
- package/dist/components/ui/index.cjs +32 -32
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/markdown/engine.d.ts +1 -1
- package/dist/components/ui/markdown/engine.d.ts.map +1 -1
- package/dist/components/ui/modal-v2.d.ts.map +1 -1
- package/dist/components/ui/modal-v2.js +16 -4
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/tag-search-input.js +1 -1
- package/dist/components/ui/textarea.js +1 -1
- package/dist/{devices-DMMMEO2B.cjs → devices-RQ7OSCJZ.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-OSSPL7L4.cjs → embeddable-chat-SYWOS6YZ.cjs} +115 -115
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +48 -48
- package/dist/{knowledge-XQQXVV6C.cjs → knowledge-5QKXKQ4Q.cjs} +33 -33
- package/dist/{logs-BHKMDCBP.cjs → logs-GBKJZHMC.cjs} +41 -41
- package/dist/{policies-5IY7QUED.cjs → policies-WAYKWIZM.cjs} +36 -36
- package/dist/{remote-session-IEOWFBF7.cjs → remote-session-AXKWTU4I.cjs} +17 -17
- package/dist/{scripts-ZQXRBGVK.cjs → scripts-L46FQYCQ.cjs} +39 -39
- package/dist/{software-update-RGFRYL3N.cjs → software-update-2HMC5XIV.cjs} +36 -36
- package/dist/{tickets-board-EYKLSB36.cjs → tickets-board-SXETISNL.cjs} +17 -17
- package/dist/{video-file-player-ZU666VUY.cjs → video-file-player-XWZIO3YN.cjs} +14 -14
- package/package.json +3 -3
- package/src/components/navigation/navigation-sidebar-item.tsx +2 -3
- package/src/components/ui/autocomplete.tsx +1 -1
- package/src/components/ui/button/button-styles.ts +4 -3
- package/src/components/ui/date-picker.tsx +1 -1
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/modal-v2.tsx +22 -4
- package/src/components/ui/select.tsx +1 -1
- package/src/components/ui/tag-search-input.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -1
- package/dist/case-study-card-WYZPBDDM.cjs +0 -23
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
type ReactNode,
|
|
5
|
+
createContext,
|
|
6
|
+
forwardRef,
|
|
7
|
+
useContext,
|
|
8
|
+
useRef,
|
|
9
|
+
useEffect,
|
|
10
|
+
useLayoutEffect,
|
|
11
|
+
useState,
|
|
12
|
+
} from 'react';
|
|
13
|
+
import { createPortal } from 'react-dom';
|
|
4
14
|
import { RemoveScroll } from 'react-remove-scroll';
|
|
5
15
|
import { ViewportBreakpoints } from '../../hooks/ui/use-content-breakpoint';
|
|
6
16
|
import { cn } from '../../utils/cn';
|
|
@@ -86,6 +96,13 @@ const Modal = forwardRef<HTMLDivElement, ModalProps>(
|
|
|
86
96
|
// Keep the modal mounted while the exit animation plays.
|
|
87
97
|
const [isMounted, setIsMounted] = useState(isOpen);
|
|
88
98
|
const [portalHost, setPortalHost] = useState<HTMLDivElement | null>(null);
|
|
99
|
+
// The modal's layer lives on <body>, like Drawer's and Dialog's: rendered in
|
|
100
|
+
// place, an ancestor with a transform, a filter or a backdrop filter (a sticky
|
|
101
|
+
// header, a bottom action bar, an animated card) becomes the containing block
|
|
102
|
+
// of its `position: fixed` layer, and the modal is clipped to that box. Set
|
|
103
|
+
// after mount, so the server renders nothing and hydration matches.
|
|
104
|
+
const [portalTarget, setPortalTarget] = useState<HTMLElement | null>(null);
|
|
105
|
+
useLayoutEffect(() => setPortalTarget(document.body), []);
|
|
89
106
|
const panelRef = useRef<HTMLDivElement | null>(null);
|
|
90
107
|
const restoreFocusRef = useRef<HTMLElement | null>(null);
|
|
91
108
|
const stackIdRef = useRef<symbol>(Symbol('modal'));
|
|
@@ -214,11 +231,11 @@ const Modal = forwardRef<HTMLDivElement, ModalProps>(
|
|
|
214
231
|
return () => document.removeEventListener('keydown', handleKeyDown);
|
|
215
232
|
}, [isOpen, onClose]);
|
|
216
233
|
|
|
217
|
-
if (!isMounted) return null;
|
|
234
|
+
if (!isMounted || !portalTarget) return null;
|
|
218
235
|
|
|
219
236
|
const state = isOpen ? 'open' : 'closed';
|
|
220
237
|
|
|
221
|
-
return (
|
|
238
|
+
return createPortal(
|
|
222
239
|
// `forwardProps` — RemoveScroll's default is to WRAP its children in a
|
|
223
240
|
// plain <div>. That wrapper is in normal flow, so a modal rendered inside
|
|
224
241
|
// a `flex`/`grid` container with a `gap` became an extra (zero-height)
|
|
@@ -326,7 +343,8 @@ const Modal = forwardRef<HTMLDivElement, ModalProps>(
|
|
|
326
343
|
anchor the menus' `position: fixed` to the panel. */}
|
|
327
344
|
<div ref={setPortalHost} className="contents" />
|
|
328
345
|
</div>
|
|
329
|
-
</RemoveScroll
|
|
346
|
+
</RemoveScroll>,
|
|
347
|
+
portalTarget,
|
|
330
348
|
);
|
|
331
349
|
},
|
|
332
350
|
);
|
|
@@ -59,7 +59,7 @@ const SelectTrigger = forwardRef<
|
|
|
59
59
|
'disabled:!cursor-not-allowed disabled:bg-ods-bg',
|
|
60
60
|
'disabled:text-ods-text-disabled disabled:data-[placeholder]:text-ods-border',
|
|
61
61
|
// The chevron sets its own colour — grey it with the value.
|
|
62
|
-
'
|
|
62
|
+
'[&_svg]:disabled:text-ods-text-disabled',
|
|
63
63
|
'cursor-pointer transition-colors duration-200',
|
|
64
64
|
'[&>span]:line-clamp-1',
|
|
65
65
|
isInvalid &&
|
|
@@ -162,7 +162,7 @@ export function TagSearchInput<T = string>({
|
|
|
162
162
|
// this container has no adornment spans of its own, so a `[&_span]`
|
|
163
163
|
// rule would ONLY have reached the selected `Tag` chips, whose label is
|
|
164
164
|
// a span, and greyed them into their own fill in the light theme.
|
|
165
|
-
'has-[:disabled]:
|
|
165
|
+
'[&_svg]:has-[:disabled]:text-ods-text-disabled',
|
|
166
166
|
className,
|
|
167
167
|
)}
|
|
168
168
|
onClick={() => {
|
|
@@ -166,7 +166,7 @@ const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>((allProps, ref)
|
|
|
166
166
|
// span children (the two icon wrappers): the nodes inside them are
|
|
167
167
|
// rendered verbatim so callers can pass an interactive trigger and own
|
|
168
168
|
// its styling, and a descendant rule would overwrite exactly that.
|
|
169
|
-
'has-[:disabled]:
|
|
169
|
+
'[&>span]:has-[:disabled]:text-ods-text-disabled [&_svg]:has-[:disabled]:text-ods-text-disabled',
|
|
170
170
|
!hideBorder && isInvalid && cn('border-ods-error hover:border-ods-error', accentBorderError),
|
|
171
171
|
hideBorder && 'bg-transparent',
|
|
172
172
|
)}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var _chunkODDUGLYFcjs = require('./chunk-ODDUGLYF.cjs');
|
|
6
|
-
require('./chunk-DYF6XB27.cjs');
|
|
7
|
-
require('./chunk-4MQASMIU.cjs');
|
|
8
|
-
require('./chunk-S5C3OZCO.cjs');
|
|
9
|
-
require('./chunk-4IYNDV3G.cjs');
|
|
10
|
-
require('./chunk-F2FFJWOQ.cjs');
|
|
11
|
-
require('./chunk-7PNRXJX2.cjs');
|
|
12
|
-
require('./chunk-NTPX5GXI.cjs');
|
|
13
|
-
require('./chunk-CS5SZJFV.cjs');
|
|
14
|
-
require('./chunk-5GJM7VRR.cjs');
|
|
15
|
-
require('./chunk-5WMRVMXH.cjs');
|
|
16
|
-
require('./chunk-UJ7AXHRZ.cjs');
|
|
17
|
-
require('./chunk-NNNRN4OF.cjs');
|
|
18
|
-
require('./chunk-FLS6DZEN.cjs');
|
|
19
|
-
require('./chunk-MGEUZRNQ.cjs');
|
|
20
|
-
require('./chunk-V45KLJQP.cjs');
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
exports.CaseStudyCard = _chunkODDUGLYFcjs.CaseStudyCard;
|