@lynx-js/lynx-ui-dialog 3.140.1 → 3.142.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @lynx-js/lynx-ui-dialog
2
2
 
3
+ ## 3.142.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Accept React 18 and newer types. ReactLynx still defines the compatible versions for each app. ([#383](https://github.com/lynx-family/lynx-ui/pull/383))
8
+
9
+ - Updated dependencies [[`9bc4636`](https://github.com/lynx-family/lynx-ui/commit/9bc4636f0ce3b3b01a0f577d776c4a52a9926e83), [`49cb3c5`](https://github.com/lynx-family/lynx-ui/commit/49cb3c5b20d9346ff0f8b314367b4c8e354d195d)]:
10
+ - @lynx-js/lynx-ui-presence@3.142.0
11
+ - @lynx-js/lynx-ui-button@3.142.0
12
+ - @lynx-js/lynx-ui-common@3.142.0
13
+ - @lynx-js/lynx-ui-overlay@3.142.0
14
+
3
15
  ## 3.140.1
4
16
 
5
17
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.jsx","sources":["../src/Dialog.tsx"],"sourcesContent":["// Copyright 2026 The Lynx Authors. All rights reserved.\n// Licensed under the Apache License Version 2.0 that can be found in the\n// LICENSE file in the root directory of this source tree.\n\nimport type { ReactNode } from '@lynx-js/react'\nimport { useContext, useMemo, useState } from '@lynx-js/react'\n\nimport { OverlayView } from '@lynx-js/lynx-ui-overlay'\nimport type { PresenceAnimationStatus } from '@lynx-js/lynx-ui-presence'\nimport {\n PresenceContext,\n PresenceState,\n presenceClassVariants,\n resolveAnimationStatus,\n usePresenceGroup,\n} from '@lynx-js/lynx-ui-presence'\n\nimport { DialogButton, resolveBusyState } from './DialogButton'\nimport { DialogContext } from './DialogContext'\nimport type {\n DialogBackdropProps,\n DialogCloseProps,\n DialogContentProps,\n DialogRootProps,\n DialogTriggerProps,\n DialogViewProps,\n} from './types'\n\ntype childType<T = PresenceState> = (groupState: T) => ReactNode\ntype renderChildrenType<T = PresenceState> = (\n children: childType<T> | ReactNode,\n status: T,\n) => ReactNode\n\nconst renderedChildren: renderChildrenType<PresenceAnimationStatus> = (\n children,\n status,\n) => {\n if (typeof children === 'function') {\n return children(status)\n }\n return children\n}\n\nexport function DialogRoot(props: DialogRootProps) {\n const {\n show,\n defaultShow = false,\n forceMount = false,\n children,\n onOpen,\n onClose,\n onShowChange,\n debugLog,\n } = props\n const isControlled = show !== undefined\n const [uncontrolledShow, setUncontrolledShow] = useState<boolean>(defaultShow)\n const actualShow = isControlled ? show : uncontrolledShow\n\n const [groupState, setGroupState] = useState<PresenceState>(\n actualShow ? PresenceState.Entering : PresenceState.Left,\n )\n\n const childrenStatus = resolveAnimationStatus({\n state: groupState,\n enableDelay: false,\n grouped: true,\n })\n\n const contextValue = useMemo(() => ({\n show: actualShow,\n forceMount,\n setUncontrolledShow,\n groupState,\n setGroupState,\n onOpen,\n onClose,\n onShowChange,\n debugLog,\n }), [\n actualShow,\n forceMount,\n setUncontrolledShow,\n groupState,\n setGroupState,\n onOpen,\n onClose,\n onShowChange,\n debugLog,\n ])\n\n return (\n <DialogContext.Provider value={contextValue}>\n {renderedChildren(children, childrenStatus)}\n </DialogContext.Provider>\n )\n}\n\nexport function DialogTrigger(props: DialogTriggerProps) {\n const { className, transition } = props\n const { groupState } = useContext(DialogContext)\n const presenceClassName = presenceClassVariants({\n state: groupState,\n enableDelay: false,\n className,\n transition,\n })\n return (\n <DialogButton {...props} className={presenceClassName} changeShow={true} />\n )\n}\nexport function DialogClose(props: DialogCloseProps) {\n const { className, transition } = props\n const { groupState } = useContext(DialogContext)\n const presenceClassName = presenceClassVariants({\n state: groupState,\n enableDelay: false,\n className,\n transition,\n })\n return (\n <DialogButton {...props} className={presenceClassName} changeShow={false} />\n )\n}\n\nexport const DialogBackdrop = (props: DialogBackdropProps) => {\n const {\n children,\n className,\n style,\n clickToClose = true,\n transition,\n dialogBackdropProps,\n onClick,\n } = props\n const {\n animationHandlers,\n controllers,\n } = useContext(PresenceContext)\n const state = controllers.state\n const { setUncontrolledShow, onShowChange, groupState } = useContext(\n DialogContext,\n )\n const presenceClassName = presenceClassVariants({\n state,\n enableDelay: false,\n className,\n transition,\n })\n\n const {\n handleKFStart,\n handleKFCancel,\n handleKFEnd,\n handleTransitionCancel,\n handleTransitionEnd,\n handleTransitionStart,\n } = animationHandlers\n const busy = resolveBusyState(groupState)\n const handleClick = () => {\n if (!clickToClose || busy) {\n return\n }\n onShowChange?.(false)\n setUncontrolledShow(false)\n onClick?.()\n }\n\n return (\n <view\n className={presenceClassName}\n bindtap={handleClick}\n bindanimationstart={handleKFStart}\n bindanimationend={handleKFEnd}\n bindtransitionstart={handleTransitionStart}\n bindtransitioncancel={handleTransitionCancel}\n bindtransitionend={handleTransitionEnd}\n bindanimationcancel={handleKFCancel}\n event-through={false}\n style={{\n width: '100%',\n height: '100%',\n position: 'absolute',\n ...style,\n }}\n {...dialogBackdropProps}\n >\n {children}\n </view>\n )\n}\n\nexport const DialogView = (props: DialogViewProps) => {\n const {\n container,\n children,\n className,\n style,\n overlayLevel,\n transition,\n dialogViewProps,\n } = props\n\n const {\n show,\n forceMount,\n onClose,\n onOpen,\n groupState,\n setGroupState,\n debugLog,\n } = useContext(\n DialogContext,\n )\n\n const { mountView, renderChildren } = usePresenceGroup({\n show,\n forceMount,\n setGroupState,\n children,\n onOpen,\n onClose,\n debugLog,\n })\n const presenceClassName = presenceClassVariants({\n state: groupState,\n enableDelay: false,\n className,\n transition,\n grouped: true,\n })\n\n return (\n (mountView || forceMount)\n ? (\n <OverlayView\n container={container}\n className={presenceClassName}\n style={{\n ...style,\n position: container ? 'relative' : 'fixed',\n }}\n overlayLevel={overlayLevel}\n // When the container is not given and the OverlayView is a normal view, attach the `native-interaction-enabled` prop to the view itself.\n // If this is not set, the default value on iOS is true while on Android it is false.\n overlayViewProps={container\n ? dialogViewProps\n : {\n 'native-interaction-enabled': true,\n 'flatten': false,\n ...dialogViewProps,\n }}\n >\n {renderChildren}\n </OverlayView>\n )\n : null\n )\n}\n\nexport function DialogContent(props: DialogContentProps) {\n const { className, style, children, transition, dialogContentProps } = props\n const {\n animationHandlers,\n controllers,\n } = useContext(PresenceContext)\n const state = controllers.state\n\n const presenceClassName = presenceClassVariants({\n state,\n enableDelay: false,\n className,\n transition,\n })\n const {\n handleKFStart,\n handleKFCancel,\n handleKFEnd,\n handleTransitionCancel,\n handleTransitionEnd,\n handleTransitionStart,\n } = animationHandlers\n\n return (\n <view\n className={presenceClassName}\n overlap={false}\n style={style}\n event-through={false}\n bindanimationstart={handleKFStart}\n bindanimationend={handleKFEnd}\n bindtransitionstart={handleTransitionStart}\n bindtransitioncancel={handleTransitionCancel}\n bindtransitionend={handleTransitionEnd}\n bindanimationcancel={handleKFCancel}\n {...dialogContentProps}\n >\n {children}\n </view>\n )\n}\n"],"names":["renderedChildren","children","status","DialogRoot","props","show","defaultShow","forceMount","onOpen","onClose","onShowChange","debugLog","isControlled","undefined","uncontrolledShow","setUncontrolledShow","useState","actualShow","groupState","setGroupState","PresenceState","childrenStatus","resolveAnimationStatus","contextValue","useMemo","DialogContext","DialogTrigger","className","transition","useContext","presenceClassName","presenceClassVariants","DialogButton","DialogClose","DialogBackdrop","style","clickToClose","dialogBackdropProps","onClick","animationHandlers","controllers","PresenceContext","state","handleKFStart","handleKFCancel","handleKFEnd","handleTransitionCancel","handleTransitionEnd","handleTransitionStart","busy","resolveBusyState","handleClick","view","DialogView","container","overlayLevel","dialogViewProps","mountView","renderChildren","usePresenceGroup","OverlayView","DialogContent","dialogContentProps"],"mappings":";;;;;AAkCA,MAAMA,mBAAgE,CACpEC,UACAC;IAEA,IAAI,AAAoB,cAApB,OAAOD,UACT,OAAOA,SAASC;IAElB,OAAOD;AACT;AAEO,SAASE,WAAWC,KAAsB;IAC/C,MAAM,EACJC,IAAI,EACJC,cAAc,KAAK,EACnBC,aAAa,KAAK,EAClBN,QAAQ,EACRO,MAAM,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9C,OAAOb;QACP,aAAa;QACbS;QACAC;QACA,SAAS;IACX;IAEA,OACG6B,aAAalD,cAETqD,YACC,WAAWN,WACX,WAAWxB,mBACX,OAAO;QACL,GAAGK,KAAK;QACR,UAAUmB,YAAY,aAAa;IACrC,GACA,cAAcC,cAGd,kBAAkBD,YACdE,kBACA;QACA,8BAA8B;QAC9B,SAAW;QACX,GAAGA,eAAe;IACpB,GACH;UACC,CAACE,eAAe;QAClB,EAAEE,eAEF;AAER;AAEO,SAASC,cAAczD,KAAyB;IACrD,MAAM,EAAEuB,SAAS,EAAEQ,KAAK,EAAElC,QAAQ,EAAE2B,UAAU,EAAEkC,kBAAkB,EAAE,GAAG1D;IACvE,MAAM,EACJmC,iBAAiB,EACjBC,WAAW,EACZ,GAAGX,WAAWY;IACf,MAAMC,QAAQF,YAAY,KAAK;IAE/B,MAAMV,oBAAoBC,sBAAsB;QAC9CW;QACA,aAAa;QACbf;QACAC;IACF;IACA,MAAM,EACJe,aAAa,EACbC,cAAc,EACdC,WAAW,EACXC,sBAAsB,EACtBC,mBAAmB,EACnBC,qBAAqB,EACtB,GAAGT;IAEJ,QACGa,KACC,WAAWtB,mBACX,SAAS,OACT,OAAOK,OACP,eAAe,OACf,oBAAoBQ,eACpB,kBAAkBE,aAClB,qBAAqBG,uBACrB,sBAAsBF,wBACtB,mBAAmBC,qBACnB,qBAAqBH,iBACpB,GAAGkB,kBAAkB,EACvB;MACC,CAAC7D,SAAS;IACZ,EAAEmD;AAEN"}
1
+ {"version":3,"file":"Dialog.jsx","sources":["../src/Dialog.tsx"],"sourcesContent":["// Copyright 2026 The Lynx Authors. All rights reserved.\n// Licensed under the Apache License Version 2.0 that can be found in the\n// LICENSE file in the root directory of this source tree.\n\nimport type { ReactNode } from '@lynx-js/react'\nimport { useContext, useMemo, useState } from '@lynx-js/react'\n\nimport { OverlayView } from '@lynx-js/lynx-ui-overlay'\nimport type { PresenceAnimationStatus } from '@lynx-js/lynx-ui-presence'\nimport {\n PresenceContext,\n PresenceState,\n presenceClassVariants,\n resolveAnimationStatus,\n usePresenceGroup,\n} from '@lynx-js/lynx-ui-presence'\n\nimport { DialogButton, resolveBusyState } from './DialogButton'\nimport { DialogContext } from './DialogContext'\nimport type {\n DialogBackdropProps,\n DialogCloseProps,\n DialogContentProps,\n DialogRootProps,\n DialogTriggerProps,\n DialogViewProps,\n} from './types'\n\ntype ChildType<T = PresenceState> = (groupState: T) => ReactNode\ntype RenderChildrenType<T = PresenceState> = (\n children: ChildType<T> | ReactNode,\n status: T,\n) => ReactNode\n\nconst renderedChildren: RenderChildrenType<PresenceAnimationStatus> = (\n children,\n status,\n) => {\n if (typeof children === 'function') {\n return children(status)\n }\n return children\n}\n\nexport function DialogRoot(props: DialogRootProps) {\n const {\n show,\n defaultShow = false,\n forceMount = false,\n children,\n onOpen,\n onClose,\n onShowChange,\n debugLog,\n } = props\n const isControlled = show !== undefined\n const [uncontrolledShow, setUncontrolledShow] = useState<boolean>(defaultShow)\n const actualShow = isControlled ? show : uncontrolledShow\n\n const [groupState, setGroupState] = useState<PresenceState>(\n actualShow ? PresenceState.Entering : PresenceState.Left,\n )\n\n const childrenStatus = resolveAnimationStatus({\n state: groupState,\n enableDelay: false,\n grouped: true,\n })\n\n const contextValue = useMemo(() => ({\n show: actualShow,\n forceMount,\n setUncontrolledShow,\n groupState,\n setGroupState,\n onOpen,\n onClose,\n onShowChange,\n debugLog,\n }), [\n actualShow,\n forceMount,\n setUncontrolledShow,\n groupState,\n setGroupState,\n onOpen,\n onClose,\n onShowChange,\n debugLog,\n ])\n\n return (\n <DialogContext.Provider value={contextValue}>\n {renderedChildren(children, childrenStatus)}\n </DialogContext.Provider>\n )\n}\n\nexport function DialogTrigger(props: DialogTriggerProps) {\n const { className, transition } = props\n const { groupState } = useContext(DialogContext)\n const presenceClassName = presenceClassVariants({\n state: groupState,\n enableDelay: false,\n className,\n transition,\n })\n return (\n <DialogButton {...props} className={presenceClassName} changeShow={true} />\n )\n}\nexport function DialogClose(props: DialogCloseProps) {\n const { className, transition } = props\n const { groupState } = useContext(DialogContext)\n const presenceClassName = presenceClassVariants({\n state: groupState,\n enableDelay: false,\n className,\n transition,\n })\n return (\n <DialogButton {...props} className={presenceClassName} changeShow={false} />\n )\n}\n\nexport const DialogBackdrop = (props: DialogBackdropProps) => {\n const {\n children,\n className,\n style,\n clickToClose = true,\n transition,\n dialogBackdropProps,\n onClick,\n } = props\n const {\n animationHandlers,\n controllers,\n } = useContext(PresenceContext)\n const state = controllers.state\n const { setUncontrolledShow, onShowChange, groupState } = useContext(\n DialogContext,\n )\n const presenceClassName = presenceClassVariants({\n state,\n enableDelay: false,\n className,\n transition,\n })\n\n const {\n handleKFStart,\n handleKFCancel,\n handleKFEnd,\n handleTransitionCancel,\n handleTransitionEnd,\n handleTransitionStart,\n } = animationHandlers\n const busy = resolveBusyState(groupState)\n const handleClick = () => {\n if (!clickToClose || busy) {\n return\n }\n onShowChange?.(false)\n setUncontrolledShow(false)\n onClick?.()\n }\n\n return (\n <view\n className={presenceClassName}\n bindtap={handleClick}\n bindanimationstart={handleKFStart}\n bindanimationend={handleKFEnd}\n bindtransitionstart={handleTransitionStart}\n bindtransitioncancel={handleTransitionCancel}\n bindtransitionend={handleTransitionEnd}\n bindanimationcancel={handleKFCancel}\n event-through={false}\n style={{\n width: '100%',\n height: '100%',\n position: 'absolute',\n ...style,\n }}\n {...dialogBackdropProps}\n >\n {children}\n </view>\n )\n}\n\nexport const DialogView = (props: DialogViewProps) => {\n const {\n container,\n children,\n className,\n style,\n overlayLevel,\n transition,\n dialogViewProps,\n } = props\n\n const {\n show,\n forceMount,\n onClose,\n onOpen,\n groupState,\n setGroupState,\n debugLog,\n } = useContext(\n DialogContext,\n )\n\n const { mountView, renderChildren } = usePresenceGroup({\n show,\n forceMount,\n setGroupState,\n children,\n onOpen,\n onClose,\n debugLog,\n })\n const presenceClassName = presenceClassVariants({\n state: groupState,\n enableDelay: false,\n className,\n transition,\n grouped: true,\n })\n\n return (\n (mountView || forceMount)\n ? (\n <OverlayView\n container={container}\n className={presenceClassName}\n style={{\n ...style,\n position: container ? 'relative' : 'fixed',\n }}\n overlayLevel={overlayLevel}\n // When the container is not given and the OverlayView is a normal view, attach the `native-interaction-enabled` prop to the view itself.\n // If this is not set, the default value on iOS is true while on Android it is false.\n overlayViewProps={container\n ? dialogViewProps\n : {\n 'native-interaction-enabled': true,\n 'flatten': false,\n ...dialogViewProps,\n }}\n >\n {renderChildren}\n </OverlayView>\n )\n : null\n )\n}\n\nexport function DialogContent(props: DialogContentProps) {\n const { className, style, children, transition, dialogContentProps } = props\n const {\n animationHandlers,\n controllers,\n } = useContext(PresenceContext)\n const state = controllers.state\n\n const presenceClassName = presenceClassVariants({\n state,\n enableDelay: false,\n className,\n transition,\n })\n const {\n handleKFStart,\n handleKFCancel,\n handleKFEnd,\n handleTransitionCancel,\n handleTransitionEnd,\n handleTransitionStart,\n } = animationHandlers\n\n return (\n <view\n className={presenceClassName}\n overlap={false}\n style={style}\n event-through={false}\n bindanimationstart={handleKFStart}\n bindanimationend={handleKFEnd}\n bindtransitionstart={handleTransitionStart}\n bindtransitioncancel={handleTransitionCancel}\n bindtransitionend={handleTransitionEnd}\n bindanimationcancel={handleKFCancel}\n {...dialogContentProps}\n >\n {children}\n </view>\n )\n}\n"],"names":["renderedChildren","children","status","DialogRoot","props","show","defaultShow","forceMount","onOpen","onClose","onShowChange","debugLog","isControlled","undefined","uncontrolledShow","setUncontrolledShow","useState","actualShow","groupState","setGroupState","PresenceState","childrenStatus","resolveAnimationStatus","contextValue","useMemo","DialogContext","DialogTrigger","className","transition","useContext","presenceClassName","presenceClassVariants","DialogButton","DialogClose","DialogBackdrop","style","clickToClose","dialogBackdropProps","onClick","animationHandlers","controllers","PresenceContext","state","handleKFStart","handleKFCancel","handleKFEnd","handleTransitionCancel","handleTransitionEnd","handleTransitionStart","busy","resolveBusyState","handleClick","view","DialogView","container","overlayLevel","dialogViewProps","mountView","renderChildren","usePresenceGroup","OverlayView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x-js/lynx-ui-dialog",
3
- "version": "3.140.1",
3
+ "version": "3.142.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/lynx-family/lynx-ui.git",
@@ -26,10 +26,10 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "clsx": "^2.1.1",
29
- "@lynx-js/lynx-ui-button": "3.139.0",
30
- "@lynx-js/lynx-ui-common": "3.139.0",
31
- "@lynx-js/lynx-ui-overlay": "3.139.0",
32
- "@lynx-js/lynx-ui-presence": "3.140.1"
29
+ "@lynx-js/lynx-ui-button": "3.142.0",
30
+ "@lynx-js/lynx-ui-common": "3.142.0",
31
+ "@lynx-js/lynx-ui-overlay": "3.142.0",
32
+ "@lynx-js/lynx-ui-presence": "3.142.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@lynx-js/react": "0.123.1",
@@ -41,7 +41,7 @@
41
41
  "peerDependencies": {
42
42
  "@lynx-js/react": ">=0.100.0",
43
43
  "@lynx-js/types": "*",
44
- "@types/react": "^18"
44
+ "@types/react": ">=18"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public"
package/src/Dialog.tsx CHANGED
@@ -26,13 +26,13 @@ import type {
26
26
  DialogViewProps,
27
27
  } from './types'
28
28
 
29
- type childType<T = PresenceState> = (groupState: T) => ReactNode
30
- type renderChildrenType<T = PresenceState> = (
31
- children: childType<T> | ReactNode,
29
+ type ChildType<T = PresenceState> = (groupState: T) => ReactNode
30
+ type RenderChildrenType<T = PresenceState> = (
31
+ children: ChildType<T> | ReactNode,
32
32
  status: T,
33
33
  ) => ReactNode
34
34
 
35
- const renderedChildren: renderChildrenType<PresenceAnimationStatus> = (
35
+ const renderedChildren: RenderChildrenType<PresenceAnimationStatus> = (
36
36
  children,
37
37
  status,
38
38
  ) => {