@lobehub/ui 5.40.1 → 5.40.2
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/es/CodeEditor/style.mjs +22 -0
- package/es/CodeEditor/style.mjs.map +1 -1
- package/es/base-ui/Input/style.d.mts +1 -1
- package/es/base-ui/Popover/PopoverGroup.mjs +4 -3
- package/es/base-ui/Popover/PopoverGroup.mjs.map +1 -1
- package/es/base-ui/Select/atoms.d.mts +1 -1
- package/es/base-ui/Tooltip/TooltipGroup.mjs +4 -3
- package/es/base-ui/Tooltip/TooltipGroup.mjs.map +1 -1
- package/es/icons/lucideExtra/AndroidIcon.d.mts +1 -1
- package/es/icons/lucideExtra/AppleIcon.d.mts +1 -1
- package/es/icons/lucideExtra/AppstoreIcon.d.mts +1 -1
- package/es/icons/lucideExtra/BotPromptIcon.d.mts +1 -1
- package/es/icons/lucideExtra/BrainOffIcon.d.mts +1 -1
- package/es/icons/lucideExtra/ChromeIcon.d.mts +1 -1
- package/es/icons/lucideExtra/CodepenIcon.d.mts +1 -1
- package/es/icons/lucideExtra/CodesandboxIcon.d.mts +1 -1
- package/es/icons/lucideExtra/CreateBotIcon.d.mts +1 -1
- package/es/icons/lucideExtra/DiscordIcon.d.mts +1 -1
- package/es/icons/lucideExtra/FacebookIcon.d.mts +1 -1
- package/es/icons/lucideExtra/FigmaIcon.d.mts +1 -1
- package/es/icons/lucideExtra/FramerIcon.d.mts +1 -1
- package/es/icons/lucideExtra/GithubIcon.d.mts +1 -1
- package/es/icons/lucideExtra/GitlabIcon.d.mts +1 -1
- package/es/icons/lucideExtra/GlobeOffIcon.d.mts +1 -1
- package/es/icons/lucideExtra/GooglePlayIcon.d.mts +1 -1
- package/es/icons/lucideExtra/GroupBotIcon.d.mts +1 -1
- package/es/icons/lucideExtra/GroupBotSquareIcon.d.mts +1 -1
- package/es/icons/lucideExtra/InstagramIcon.d.mts +1 -1
- package/es/icons/lucideExtra/LeftClickIcon.d.mts +1 -1
- package/es/icons/lucideExtra/LeftDoubleClickIcon.d.mts +1 -1
- package/es/icons/lucideExtra/LinkedinIcon.d.mts +1 -1
- package/es/icons/lucideExtra/McpIcon.d.mts +1 -1
- package/es/icons/lucideExtra/NotionIcon.d.mts +1 -1
- package/es/icons/lucideExtra/PocketIcon.d.mts +1 -1
- package/es/icons/lucideExtra/ProviderIcon.d.mts +1 -1
- package/es/icons/lucideExtra/RailSymbolIcon.d.mts +1 -1
- package/es/icons/lucideExtra/RedditIcon.d.mts +1 -1
- package/es/icons/lucideExtra/RightClickIcon.d.mts +1 -1
- package/es/icons/lucideExtra/RightDoubleClickIcon.d.mts +1 -1
- package/es/icons/lucideExtra/ShapesUploadIcon.d.mts +1 -1
- package/es/icons/lucideExtra/SkillsIcon.d.mts +1 -1
- package/es/icons/lucideExtra/SlackIcon.d.mts +1 -1
- package/es/icons/lucideExtra/ThinkIcon.d.mts +1 -1
- package/es/icons/lucideExtra/TreeDownRightIcon.d.mts +1 -1
- package/es/icons/lucideExtra/TreeUpDownRightIcon.d.mts +1 -1
- package/es/utils/destroyOnInvalidActiveTriggerElement.mjs +8 -2
- package/es/utils/destroyOnInvalidActiveTriggerElement.mjs.map +1 -1
- package/package.json +2 -2
package/es/CodeEditor/style.mjs
CHANGED
|
@@ -15,6 +15,28 @@ const styles = createStaticStyles(({ css, cssVar }) => {
|
|
|
15
15
|
filled: staticStylish.variantFilledWithoutHover,
|
|
16
16
|
highlight: css`
|
|
17
17
|
pointer-events: none;
|
|
18
|
+
|
|
19
|
+
/* Mirror the textarea's text flow instead of the highlighter's flex rows. */
|
|
20
|
+
pre code {
|
|
21
|
+
display: block;
|
|
22
|
+
|
|
23
|
+
/* Keep the final empty line measurable after a trailing newline. */
|
|
24
|
+
&::after {
|
|
25
|
+
content: '\\200b';
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.line {
|
|
29
|
+
display: inline;
|
|
30
|
+
margin: 0;
|
|
31
|
+
padding: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Token emphasis must not change glyph metrics relative to the textarea. */
|
|
35
|
+
span {
|
|
36
|
+
font-weight: inherit !important;
|
|
37
|
+
font-style: inherit !important;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
18
40
|
`,
|
|
19
41
|
outlined: staticStylish.variantOutlinedWithoutHover,
|
|
20
42
|
root: css`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.mjs","names":["lobeStaticStylish"],"sources":["../../src/CodeEditor/style.ts"],"sourcesContent":["import { createStaticStyles, cx } from 'antd-style';\nimport { cva } from 'class-variance-authority';\n\nimport { lobeStaticStylish } from '@/styles';\n\nexport const styles = createStaticStyles(({ css, cssVar }) => {\n return {\n borderless: cx(\n lobeStaticStylish.variantBorderlessWithoutHover,\n css`\n border-radius: 0;\n\n pre,\n textarea {\n padding: 0;\n }\n `,\n ),\n filled: lobeStaticStylish.variantFilledWithoutHover,\n highlight: css`\n pointer-events: none;\n `,\n outlined: lobeStaticStylish.variantOutlinedWithoutHover,\n root: css`\n position: relative;\n\n overflow: hidden auto;\n\n width: 100%;\n height: fit-content;\n border-radius: ${cssVar.borderRadius};\n\n font-size: 12px;\n\n pre,\n textarea {\n margin: 0;\n padding: 16px;\n }\n\n textarea,\n pre,\n code {\n overflow: hidden;\n\n font-family: ${cssVar.fontFamilyCode};\n font-size: inherit;\n line-height: inherit;\n word-break: inherit;\n word-wrap: break-word;\n white-space: pre-wrap;\n }\n `,\n textarea: css`\n resize: none;\n\n position: absolute;\n inset-block-start: 0;\n inset-inline-start: 0;\n\n overflow: hidden;\n\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n padding: 0;\n border: none;\n\n color: transparent;\n text-align: start;\n\n background: transparent;\n outline: none;\n caret-color: ${cssVar.colorText};\n\n &::placeholder {\n color: ${cssVar.colorTextQuaternary};\n }\n\n &:focus {\n border: none;\n outline: none;\n box-shadow: none;\n }\n `,\n };\n});\n\nexport const variants = cva(styles.root, {\n defaultVariants: {\n variant: 'borderless',\n },\n\n variants: {\n variant: {\n filled: styles.filled,\n outlined: styles.outlined,\n borderless: styles.borderless,\n },\n },\n});\n"],"mappings":";;;;AAKA,MAAa,SAAS,oBAAoB,EAAE,KAAK,aAAa;CAC5D,OAAO;EACL,YAAY,GACVA,cAAkB,+BAClB,GAAG;;;;;;;OAQL;EACA,QAAQA,cAAkB;EAC1B,WAAW,GAAG
|
|
1
|
+
{"version":3,"file":"style.mjs","names":["lobeStaticStylish"],"sources":["../../src/CodeEditor/style.ts"],"sourcesContent":["import { createStaticStyles, cx } from 'antd-style';\nimport { cva } from 'class-variance-authority';\n\nimport { lobeStaticStylish } from '@/styles';\n\nexport const styles = createStaticStyles(({ css, cssVar }) => {\n return {\n borderless: cx(\n lobeStaticStylish.variantBorderlessWithoutHover,\n css`\n border-radius: 0;\n\n pre,\n textarea {\n padding: 0;\n }\n `,\n ),\n filled: lobeStaticStylish.variantFilledWithoutHover,\n highlight: css`\n pointer-events: none;\n\n /* Mirror the textarea's text flow instead of the highlighter's flex rows. */\n pre code {\n display: block;\n\n /* Keep the final empty line measurable after a trailing newline. */\n &::after {\n content: '\\\\200b';\n }\n\n .line {\n display: inline;\n margin: 0;\n padding: 0;\n }\n\n /* Token emphasis must not change glyph metrics relative to the textarea. */\n span {\n font-weight: inherit !important;\n font-style: inherit !important;\n }\n }\n `,\n outlined: lobeStaticStylish.variantOutlinedWithoutHover,\n root: css`\n position: relative;\n\n overflow: hidden auto;\n\n width: 100%;\n height: fit-content;\n border-radius: ${cssVar.borderRadius};\n\n font-size: 12px;\n\n pre,\n textarea {\n margin: 0;\n padding: 16px;\n }\n\n textarea,\n pre,\n code {\n overflow: hidden;\n\n font-family: ${cssVar.fontFamilyCode};\n font-size: inherit;\n line-height: inherit;\n word-break: inherit;\n word-wrap: break-word;\n white-space: pre-wrap;\n }\n `,\n textarea: css`\n resize: none;\n\n position: absolute;\n inset-block-start: 0;\n inset-inline-start: 0;\n\n overflow: hidden;\n\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n padding: 0;\n border: none;\n\n color: transparent;\n text-align: start;\n\n background: transparent;\n outline: none;\n caret-color: ${cssVar.colorText};\n\n &::placeholder {\n color: ${cssVar.colorTextQuaternary};\n }\n\n &:focus {\n border: none;\n outline: none;\n box-shadow: none;\n }\n `,\n };\n});\n\nexport const variants = cva(styles.root, {\n defaultVariants: {\n variant: 'borderless',\n },\n\n variants: {\n variant: {\n filled: styles.filled,\n outlined: styles.outlined,\n borderless: styles.borderless,\n },\n },\n});\n"],"mappings":";;;;AAKA,MAAa,SAAS,oBAAoB,EAAE,KAAK,aAAa;CAC5D,OAAO;EACL,YAAY,GACVA,cAAkB,+BAClB,GAAG;;;;;;;OAQL;EACA,QAAQA,cAAkB;EAC1B,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;EAyBd,UAAUA,cAAkB;EAC5B,MAAM,GAAG;;;;;;;uBAOU,OAAO,aAAa;;;;;;;;;;;;;;;uBAepB,OAAO,eAAe;;;;;;;;EAQzC,UAAU,GAAG;;;;;;;;;;;;;;;;;;;;qBAoBI,OAAO,UAAU;;;iBAGrB,OAAO,oBAAoB;;;;;;;;;CAS1C;AACF,CAAC;AAED,MAAa,WAAW,IAAI,OAAO,MAAM;CACvC,iBAAiB,EACf,SAAS,aACX;CAEA,UAAU,EACR,SAAS;EACP,QAAQ,OAAO;EACf,UAAU,OAAO;EACjB,YAAY,OAAO;CACrB,EACF;AACF,CAAC"}
|
|
@@ -23,7 +23,7 @@ declare const styles: {
|
|
|
23
23
|
};
|
|
24
24
|
declare const rootVariants: (props?: ({
|
|
25
25
|
shadow?: boolean | null | undefined;
|
|
26
|
-
size?: "
|
|
26
|
+
size?: "small" | "middle" | "large" | null | undefined;
|
|
27
27
|
variant?: "filled" | "borderless" | "outlined" | null | undefined;
|
|
28
28
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
29
29
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { placementMap } from "../../utils/placement.mjs";
|
|
3
|
-
import { useDestroyOnInvalidActiveTriggerElement, useHidePopupWhenPositionerAtOrigin } from "../../utils/destroyOnInvalidActiveTriggerElement.mjs";
|
|
3
|
+
import { useDestroyOnInvalidActiveTriggerElement, useHidePopupWhenPositionerAtOrigin, usePopupHandleStore } from "../../utils/destroyOnInvalidActiveTriggerElement.mjs";
|
|
4
4
|
import { parseTrigger } from "../../utils/parseTrigger.mjs";
|
|
5
5
|
import { PopoverArrowIcon } from "./ArrowIcon.mjs";
|
|
6
6
|
import { usePopoverPortalContainer } from "./PopoverPortal.mjs";
|
|
@@ -39,8 +39,9 @@ const PopoverGroup = ({ children, contentLayoutAnimation = false, disableDestroy
|
|
|
39
39
|
}
|
|
40
40
|
item?.onOpenChange?.(nextOpen);
|
|
41
41
|
}, []);
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
const store = usePopupHandleStore(handle);
|
|
43
|
+
useDestroyOnInvalidActiveTriggerElement(store, destroy, { enabled: !disableDestroyOnInvalidTrigger });
|
|
44
|
+
useHidePopupWhenPositionerAtOrigin(store, { enabled: !disableZeroOriginGuard });
|
|
44
45
|
const portalContainer = usePopoverPortalContainer();
|
|
45
46
|
return /* @__PURE__ */ jsx(PopoverGroupHandleContext, {
|
|
46
47
|
value: handle,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverGroup.mjs","names":["BasePopover"],"sources":["../../../src/base-ui/Popover/PopoverGroup.tsx"],"sourcesContent":["'use client';\n\nimport { Popover as BasePopover } from '@base-ui/react/popover';\nimport { type FC, type ReactNode, useCallback, useMemo, useRef, useState } from 'react';\n\nimport {\n useDestroyOnInvalidActiveTriggerElement,\n useHidePopupWhenPositionerAtOrigin,\n} from '@/utils/destroyOnInvalidActiveTriggerElement';\nimport { parseTrigger } from '@/utils/parseTrigger';\nimport { placementMap } from '@/utils/placement';\n\nimport { PopoverArrowIcon } from './ArrowIcon';\nimport {\n PopoverArrow,\n PopoverPopup,\n PopoverPortal,\n PopoverPositioner,\n PopoverViewport,\n} from './atoms';\nimport { PopoverProvider } from './context';\nimport {\n PopoverGroupHandleContext,\n type PopoverGroupItem,\n PopoverGroupPropsContext,\n type PopoverGroupSharedProps,\n} from './groupContext';\nimport { isHoverOnlyTriggerElement, shouldCancelHoverOnlyPressOpen } from './hoverOnlyPress';\nimport { usePopoverPortalContainer } from './PopoverPortal';\n\ntype PopoverGroupProps = PopoverGroupSharedProps & {\n children: ReactNode;\n};\n\nconst PopoverGroup: FC<PopoverGroupProps> = ({\n children,\n contentLayoutAnimation = false,\n disableDestroyOnInvalidTrigger = false,\n disableZeroOriginGuard = false,\n ...sharedProps\n}) => {\n const [{ handle, key }, setHandleState] = useState(() => ({\n handle: BasePopover.createHandle<PopoverGroupItem>(),\n key: 0,\n }));\n const activeItemRef = useRef<PopoverGroupItem | null>(null);\n const destroy = useCallback(() => {\n activeItemRef.current = null;\n setHandleState(({ key }) => ({\n handle: BasePopover.createHandle<PopoverGroupItem>(),\n key: key + 1,\n }));\n }, []);\n const close = useCallback(() => {\n handle.close();\n }, [handle]);\n const contextValue = useMemo(() => ({ close }), [close]);\n\n const handleOpenChange = useCallback(\n (\n nextOpen: boolean,\n eventDetails?: { cancel?: () => void; reason?: string; trigger?: unknown },\n ) => {\n const item = activeItemRef.current;\n // The press belongs to the trigger that fired it, which is not necessarily\n // the member currently showing — judging by `activeItemRef` cancels every\n // click member's first press, since the active one is a hover member (or\n // none, which also reads as hover-only).\n const hoverOnlyTrigger = isHoverOnlyTriggerElement(eventDetails?.trigger);\n const openOnClick =\n hoverOnlyTrigger === null\n ? parseTrigger(item?.trigger ?? 'hover').openOnClick\n : !hoverOnlyTrigger;\n\n if (shouldCancelHoverOnlyPressOpen(openOnClick, nextOpen, eventDetails?.reason)) {\n eventDetails?.cancel?.();\n return;\n }\n\n item?.onOpenChange?.(nextOpen);\n },\n [],\n );\n\n useDestroyOnInvalidActiveTriggerElement(
|
|
1
|
+
{"version":3,"file":"PopoverGroup.mjs","names":["BasePopover"],"sources":["../../../src/base-ui/Popover/PopoverGroup.tsx"],"sourcesContent":["'use client';\n\nimport { Popover as BasePopover } from '@base-ui/react/popover';\nimport { type FC, type ReactNode, useCallback, useMemo, useRef, useState } from 'react';\n\nimport {\n useDestroyOnInvalidActiveTriggerElement,\n useHidePopupWhenPositionerAtOrigin,\n usePopupHandleStore,\n} from '@/utils/destroyOnInvalidActiveTriggerElement';\nimport { parseTrigger } from '@/utils/parseTrigger';\nimport { placementMap } from '@/utils/placement';\n\nimport { PopoverArrowIcon } from './ArrowIcon';\nimport {\n PopoverArrow,\n PopoverPopup,\n PopoverPortal,\n PopoverPositioner,\n PopoverViewport,\n} from './atoms';\nimport { PopoverProvider } from './context';\nimport {\n PopoverGroupHandleContext,\n type PopoverGroupItem,\n PopoverGroupPropsContext,\n type PopoverGroupSharedProps,\n} from './groupContext';\nimport { isHoverOnlyTriggerElement, shouldCancelHoverOnlyPressOpen } from './hoverOnlyPress';\nimport { usePopoverPortalContainer } from './PopoverPortal';\n\ntype PopoverGroupProps = PopoverGroupSharedProps & {\n children: ReactNode;\n};\n\nconst PopoverGroup: FC<PopoverGroupProps> = ({\n children,\n contentLayoutAnimation = false,\n disableDestroyOnInvalidTrigger = false,\n disableZeroOriginGuard = false,\n ...sharedProps\n}) => {\n const [{ handle, key }, setHandleState] = useState(() => ({\n handle: BasePopover.createHandle<PopoverGroupItem>(),\n key: 0,\n }));\n const activeItemRef = useRef<PopoverGroupItem | null>(null);\n const destroy = useCallback(() => {\n activeItemRef.current = null;\n setHandleState(({ key }) => ({\n handle: BasePopover.createHandle<PopoverGroupItem>(),\n key: key + 1,\n }));\n }, []);\n const close = useCallback(() => {\n handle.close();\n }, [handle]);\n const contextValue = useMemo(() => ({ close }), [close]);\n\n const handleOpenChange = useCallback(\n (\n nextOpen: boolean,\n eventDetails?: { cancel?: () => void; reason?: string; trigger?: unknown },\n ) => {\n const item = activeItemRef.current;\n // The press belongs to the trigger that fired it, which is not necessarily\n // the member currently showing — judging by `activeItemRef` cancels every\n // click member's first press, since the active one is a hover member (or\n // none, which also reads as hover-only).\n const hoverOnlyTrigger = isHoverOnlyTriggerElement(eventDetails?.trigger);\n const openOnClick =\n hoverOnlyTrigger === null\n ? parseTrigger(item?.trigger ?? 'hover').openOnClick\n : !hoverOnlyTrigger;\n\n if (shouldCancelHoverOnlyPressOpen(openOnClick, nextOpen, eventDetails?.reason)) {\n eventDetails?.cancel?.();\n return;\n }\n\n item?.onOpenChange?.(nextOpen);\n },\n [],\n );\n\n const store = usePopupHandleStore(handle);\n useDestroyOnInvalidActiveTriggerElement(store, destroy, {\n enabled: !disableDestroyOnInvalidTrigger,\n });\n useHidePopupWhenPositionerAtOrigin(store, { enabled: !disableZeroOriginGuard });\n\n const portalContainer = usePopoverPortalContainer();\n\n return (\n <PopoverGroupHandleContext value={handle}>\n <PopoverGroupPropsContext value={sharedProps}>\n {children}\n <BasePopover.Root handle={handle} key={key} onOpenChange={handleOpenChange}>\n {({ payload }) => {\n const item = (payload as PopoverGroupItem | null) ?? null;\n activeItemRef.current = item;\n\n if (!item?.content) return null;\n\n const arrow = item.arrow ?? false;\n const placement = item.placement ?? 'top';\n const { openOnHover } = parseTrigger(item.trigger ?? 'hover');\n\n const placementConfig = placementMap[placement] ?? placementMap.top;\n const resolvedSideOffset = arrow ? 10 : 6;\n\n const resolvedClassNames = {\n arrow: item.classNames?.arrow,\n popup: item.className,\n positioner: item.classNames?.root,\n viewport: item.classNames?.content,\n };\n\n const resolvedStyles = {\n arrow: item.styles?.arrow,\n positioner: {\n ...item.styles?.root,\n ...(item.zIndex !== undefined ? { zIndex: item.zIndex } : {}),\n },\n viewport: item.styles?.content,\n };\n\n const contentNode = (\n <PopoverProvider value={contextValue}>{item.content}</PopoverProvider>\n );\n\n const popup = (\n <PopoverPositioner\n align={placementConfig.align}\n className={resolvedClassNames.positioner}\n data-layout-animation={contentLayoutAnimation || undefined}\n hoverTrigger={openOnHover}\n placement={placement}\n side={placementConfig.side}\n sideOffset={resolvedSideOffset}\n style={resolvedStyles.positioner}\n {...item.positionerProps}\n >\n <PopoverPopup\n className={resolvedClassNames.popup}\n data-layout-animation={contentLayoutAnimation || undefined}\n {...item.popupProps}\n >\n {arrow && (\n <PopoverArrow className={resolvedClassNames.arrow} style={resolvedStyles.arrow}>\n {PopoverArrowIcon}\n </PopoverArrow>\n )}\n <PopoverViewport\n className={resolvedClassNames.viewport}\n style={resolvedStyles.viewport}\n >\n {contentNode}\n </PopoverViewport>\n </PopoverPopup>\n </PopoverPositioner>\n );\n\n return portalContainer ? (\n <PopoverPortal container={portalContainer}>{popup}</PopoverPortal>\n ) : null;\n }}\n </BasePopover.Root>\n </PopoverGroupPropsContext>\n </PopoverGroupHandleContext>\n );\n};\n\nPopoverGroup.displayName = 'PopoverGroup';\n\nexport default PopoverGroup;\n"],"mappings":"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"}
|
|
@@ -4,7 +4,7 @@ import { Select } from "@base-ui/react/select";
|
|
|
4
4
|
//#region src/base-ui/Select/atoms.d.ts
|
|
5
5
|
declare const SelectRoot: typeof Select.Root;
|
|
6
6
|
declare const SelectBackdrop: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").SelectBackdropProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
-
declare const SelectSeparator: import("react").ForwardRefExoticComponent<
|
|
7
|
+
declare const SelectSeparator: import("react").ForwardRefExoticComponent<import("@base-ui/react").SelectSeparatorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
8
|
type SelectTriggerProps = Omit<ComponentPropsWithRef<typeof Select.Trigger>, 'children' | 'render'> & {
|
|
9
9
|
children: ComponentProps<typeof Select.Trigger>['children'];
|
|
10
10
|
shadow?: boolean;
|
|
@@ -6,7 +6,7 @@ import { placementMap } from "../../utils/placement.mjs";
|
|
|
6
6
|
import { TooltipArrowIcon } from "./ArrowIcon.mjs";
|
|
7
7
|
import { styles } from "./style.mjs";
|
|
8
8
|
import TooltipContent from "./TooltipContent.mjs";
|
|
9
|
-
import { useDestroyOnInvalidActiveTriggerElement, useHidePopupWhenPositionerAtOrigin } from "../../utils/destroyOnInvalidActiveTriggerElement.mjs";
|
|
9
|
+
import { useDestroyOnInvalidActiveTriggerElement, useHidePopupWhenPositionerAtOrigin, usePopupHandleStore } from "../../utils/destroyOnInvalidActiveTriggerElement.mjs";
|
|
10
10
|
import { useCallback, useRef, useState } from "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { cx } from "antd-style";
|
|
@@ -30,8 +30,9 @@ const TooltipGroup = ({ children, disableDestroyOnInvalidTrigger = false, disabl
|
|
|
30
30
|
}, []);
|
|
31
31
|
const appElement = useAppElement();
|
|
32
32
|
const portalContainer = useFloatingLayer() ?? appElement;
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
const store = usePopupHandleStore(handle);
|
|
34
|
+
useDestroyOnInvalidActiveTriggerElement(store, destroy, { enabled: !disableDestroyOnInvalidTrigger });
|
|
35
|
+
useHidePopupWhenPositionerAtOrigin(store, { enabled: !disableZeroOriginGuard });
|
|
35
36
|
return /* @__PURE__ */ jsx(TooltipGroupHandleContext, {
|
|
36
37
|
value: handle,
|
|
37
38
|
children: /* @__PURE__ */ jsxs(TooltipGroupPropsContext, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TooltipGroup.mjs","names":["BaseTooltip"],"sources":["../../../src/base-ui/Tooltip/TooltipGroup.tsx"],"sourcesContent":["'use client';\n\nimport { Tooltip as BaseTooltip } from '@base-ui/react/tooltip';\nimport { cx } from 'antd-style';\nimport { type FC, useCallback, useRef, useState } from 'react';\n\nimport { useFloatingLayer } from '@/hooks/useFloatingLayer';\nimport { useAppElement } from '@/ThemeProvider';\nimport {\n useDestroyOnInvalidActiveTriggerElement,\n useHidePopupWhenPositionerAtOrigin,\n} from '@/utils/destroyOnInvalidActiveTriggerElement';\nimport { placementMap } from '@/utils/placement';\n\nimport { TooltipArrowIcon } from './ArrowIcon';\nimport {\n TooltipGroupHandleContext,\n type TooltipGroupItem,\n TooltipGroupPropsContext,\n} from './groupContext';\nimport { styles } from './style';\nimport TooltipContent from './TooltipContent';\nimport { type TooltipGroupProps } from './type';\n\nconst TooltipGroup: FC<TooltipGroupProps> = ({\n children,\n disableDestroyOnInvalidTrigger = false,\n disableZeroOriginGuard = false,\n layoutAnimation = false,\n popupContainer,\n ...sharedProps\n}) => {\n const [{ handle, key }, setHandleState] = useState(() => ({\n handle: BaseTooltip.createHandle<TooltipGroupItem>(),\n key: 0,\n }));\n const activeItemRef = useRef<TooltipGroupItem | null>(null);\n\n const destroy = useCallback(() => {\n activeItemRef.current = null;\n setHandleState(({ key }) => ({\n handle: BaseTooltip.createHandle<TooltipGroupItem>(),\n key: key + 1,\n }));\n }, []);\n\n const handleOpenChange = useCallback((open: boolean) => {\n activeItemRef.current?.onOpenChange?.(open);\n }, []);\n\n const appElement = useAppElement();\n const floatingLayerContainer = useFloatingLayer();\n const portalContainer = floatingLayerContainer ?? appElement;\n\n useDestroyOnInvalidActiveTriggerElement(
|
|
1
|
+
{"version":3,"file":"TooltipGroup.mjs","names":["BaseTooltip"],"sources":["../../../src/base-ui/Tooltip/TooltipGroup.tsx"],"sourcesContent":["'use client';\n\nimport { Tooltip as BaseTooltip } from '@base-ui/react/tooltip';\nimport { cx } from 'antd-style';\nimport { type FC, useCallback, useRef, useState } from 'react';\n\nimport { useFloatingLayer } from '@/hooks/useFloatingLayer';\nimport { useAppElement } from '@/ThemeProvider';\nimport {\n useDestroyOnInvalidActiveTriggerElement,\n useHidePopupWhenPositionerAtOrigin,\n usePopupHandleStore,\n} from '@/utils/destroyOnInvalidActiveTriggerElement';\nimport { placementMap } from '@/utils/placement';\n\nimport { TooltipArrowIcon } from './ArrowIcon';\nimport {\n TooltipGroupHandleContext,\n type TooltipGroupItem,\n TooltipGroupPropsContext,\n} from './groupContext';\nimport { styles } from './style';\nimport TooltipContent from './TooltipContent';\nimport { type TooltipGroupProps } from './type';\n\nconst TooltipGroup: FC<TooltipGroupProps> = ({\n children,\n disableDestroyOnInvalidTrigger = false,\n disableZeroOriginGuard = false,\n layoutAnimation = false,\n popupContainer,\n ...sharedProps\n}) => {\n const [{ handle, key }, setHandleState] = useState(() => ({\n handle: BaseTooltip.createHandle<TooltipGroupItem>(),\n key: 0,\n }));\n const activeItemRef = useRef<TooltipGroupItem | null>(null);\n\n const destroy = useCallback(() => {\n activeItemRef.current = null;\n setHandleState(({ key }) => ({\n handle: BaseTooltip.createHandle<TooltipGroupItem>(),\n key: key + 1,\n }));\n }, []);\n\n const handleOpenChange = useCallback((open: boolean) => {\n activeItemRef.current?.onOpenChange?.(open);\n }, []);\n\n const appElement = useAppElement();\n const floatingLayerContainer = useFloatingLayer();\n const portalContainer = floatingLayerContainer ?? appElement;\n\n const store = usePopupHandleStore(handle);\n useDestroyOnInvalidActiveTriggerElement(store, destroy, {\n enabled: !disableDestroyOnInvalidTrigger,\n });\n useHidePopupWhenPositionerAtOrigin(store, { enabled: !disableZeroOriginGuard });\n\n return (\n <TooltipGroupHandleContext value={handle}>\n <TooltipGroupPropsContext value={sharedProps}>\n {/* Outside Root on purpose: the handle/key reset remounts Root's subtree; children must\n survive it. Triggers bind to the group via the handle, not DOM nesting. */}\n {children}\n <BaseTooltip.Root handle={handle} key={key} onOpenChange={handleOpenChange}>\n {({ payload }) => {\n const item = (payload as TooltipGroupItem | null) ?? null;\n activeItemRef.current = item;\n\n if (!item || (item.title == null && !item.hotkey)) {\n return null;\n }\n\n const arrow = item.arrow ?? false;\n const placement = item.placement ?? 'top';\n const placementConfig = placementMap[placement] ?? placementMap.top;\n const baseSideOffset = arrow ? 8 : 6;\n\n const resolvedClassNames = {\n arrow: cx(styles.arrow, item.classNames?.arrow),\n popup: cx(\n styles.popup,\n item.className,\n item.classNames?.root,\n item.classNames?.container,\n ),\n positioner: styles.positioner,\n viewport: cx(styles.viewport, item.classNames?.content),\n };\n\n const resolvedStyleProps = (() => {\n if (typeof item.styles === 'function') return undefined;\n return item.styles;\n })();\n\n const resolvedStyles = {\n arrow: resolvedStyleProps?.arrow,\n popup: {\n ...resolvedStyleProps?.root,\n ...resolvedStyleProps?.container,\n },\n positioner: {\n zIndex: item.zIndex ?? 114_514,\n },\n viewport: resolvedStyleProps?.content,\n };\n\n const body = (\n <BaseTooltip.Viewport\n className={resolvedClassNames.viewport}\n style={resolvedStyles.viewport}\n >\n <TooltipContent\n hotkey={item.hotkey}\n hotkeyProps={item.hotkeyProps}\n title={item.title}\n />\n </BaseTooltip.Viewport>\n );\n\n const popup = (\n <BaseTooltip.Positioner\n align={placementConfig.align}\n className={resolvedClassNames.positioner}\n data-layout-animation={layoutAnimation || undefined}\n data-placement={placement}\n side={placementConfig.side}\n sideOffset={baseSideOffset}\n style={resolvedStyles.positioner}\n {...item.positionerProps}\n >\n <BaseTooltip.Popup\n className={resolvedClassNames.popup}\n data-layout-animation={layoutAnimation || undefined}\n style={resolvedStyles.popup}\n {...item.popupProps}\n >\n {arrow && (\n <BaseTooltip.Arrow\n className={resolvedClassNames.arrow}\n style={resolvedStyles.arrow}\n >\n {TooltipArrowIcon}\n </BaseTooltip.Arrow>\n )}\n {body}\n </BaseTooltip.Popup>\n </BaseTooltip.Positioner>\n );\n\n const resolvedPortalContainer =\n item.popupContainer ?? popupContainer ?? portalContainer;\n\n return resolvedPortalContainer ? (\n <BaseTooltip.Portal container={resolvedPortalContainer}>{popup}</BaseTooltip.Portal>\n ) : null;\n }}\n </BaseTooltip.Root>\n </TooltipGroupPropsContext>\n </TooltipGroupHandleContext>\n );\n};\n\nTooltipGroup.displayName = 'TooltipGroup';\n\nexport default TooltipGroup;\n"],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/AndroidIcon.d.ts
|
|
2
|
-
declare const AndroidIcon: import("
|
|
2
|
+
declare const AndroidIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { AndroidIcon as default };
|
|
5
5
|
//# sourceMappingURL=AndroidIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/AppleIcon.d.ts
|
|
2
|
-
declare const AppleIcon: import("
|
|
2
|
+
declare const AppleIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { AppleIcon as default };
|
|
5
5
|
//# sourceMappingURL=AppleIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/AppstoreIcon.d.ts
|
|
2
|
-
declare const AppstoreIcon: import("
|
|
2
|
+
declare const AppstoreIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { AppstoreIcon as default };
|
|
5
5
|
//# sourceMappingURL=AppstoreIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/BotPromptIcon.d.ts
|
|
2
|
-
declare const BotPromptIcon: import("
|
|
2
|
+
declare const BotPromptIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { BotPromptIcon as default };
|
|
5
5
|
//# sourceMappingURL=BotPromptIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/BrainOffIcon.d.ts
|
|
2
|
-
declare const BrainOffIcon: import("
|
|
2
|
+
declare const BrainOffIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { BrainOffIcon as default };
|
|
5
5
|
//# sourceMappingURL=BrainOffIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/ChromeIcon.d.ts
|
|
2
|
-
declare const ChromeIcon: import("
|
|
2
|
+
declare const ChromeIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { ChromeIcon as default };
|
|
5
5
|
//# sourceMappingURL=ChromeIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/CodepenIcon.d.ts
|
|
2
|
-
declare const CodepenIcon: import("
|
|
2
|
+
declare const CodepenIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { CodepenIcon as default };
|
|
5
5
|
//# sourceMappingURL=CodepenIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/CodesandboxIcon.d.ts
|
|
2
|
-
declare const CodesandboxIcon: import("
|
|
2
|
+
declare const CodesandboxIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { CodesandboxIcon as default };
|
|
5
5
|
//# sourceMappingURL=CodesandboxIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/CreateBotIcon.d.ts
|
|
2
|
-
declare const CreateBotIcon: import("
|
|
2
|
+
declare const CreateBotIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { CreateBotIcon as default };
|
|
5
5
|
//# sourceMappingURL=CreateBotIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/DiscordIcon.d.ts
|
|
2
|
-
declare const DiscordIcon: import("
|
|
2
|
+
declare const DiscordIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { DiscordIcon as default };
|
|
5
5
|
//# sourceMappingURL=DiscordIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/FacebookIcon.d.ts
|
|
2
|
-
declare const FacebookIcon: import("
|
|
2
|
+
declare const FacebookIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { FacebookIcon as default };
|
|
5
5
|
//# sourceMappingURL=FacebookIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/FigmaIcon.d.ts
|
|
2
|
-
declare const FigmaIcon: import("
|
|
2
|
+
declare const FigmaIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { FigmaIcon as default };
|
|
5
5
|
//# sourceMappingURL=FigmaIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/FramerIcon.d.ts
|
|
2
|
-
declare const FramerIcon: import("
|
|
2
|
+
declare const FramerIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { FramerIcon as default };
|
|
5
5
|
//# sourceMappingURL=FramerIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/GithubIcon.d.ts
|
|
2
|
-
declare const GithubIcon: import("
|
|
2
|
+
declare const GithubIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { GithubIcon as default };
|
|
5
5
|
//# sourceMappingURL=GithubIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/GitlabIcon.d.ts
|
|
2
|
-
declare const GitlabIcon: import("
|
|
2
|
+
declare const GitlabIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { GitlabIcon as default };
|
|
5
5
|
//# sourceMappingURL=GitlabIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/GlobeOffIcon.d.ts
|
|
2
|
-
declare const GlobeOffIcon: import("
|
|
2
|
+
declare const GlobeOffIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { GlobeOffIcon as default };
|
|
5
5
|
//# sourceMappingURL=GlobeOffIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/GooglePlayIcon.d.ts
|
|
2
|
-
declare const GooglePlayIcon: import("
|
|
2
|
+
declare const GooglePlayIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { GooglePlayIcon as default };
|
|
5
5
|
//# sourceMappingURL=GooglePlayIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/GroupBotIcon.d.ts
|
|
2
|
-
declare const GroupBotIcon: import("
|
|
2
|
+
declare const GroupBotIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { GroupBotIcon as default };
|
|
5
5
|
//# sourceMappingURL=GroupBotIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/GroupBotSquareIcon.d.ts
|
|
2
|
-
declare const GroupBotSquareIcon: import("
|
|
2
|
+
declare const GroupBotSquareIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { GroupBotSquareIcon as default };
|
|
5
5
|
//# sourceMappingURL=GroupBotSquareIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/InstagramIcon.d.ts
|
|
2
|
-
declare const InstagramIcon: import("
|
|
2
|
+
declare const InstagramIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { InstagramIcon as default };
|
|
5
5
|
//# sourceMappingURL=InstagramIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/LeftClickIcon.d.ts
|
|
2
|
-
declare const LeftClickIcon: import("
|
|
2
|
+
declare const LeftClickIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { LeftClickIcon as default };
|
|
5
5
|
//# sourceMappingURL=LeftClickIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/LeftDoubleClickIcon.d.ts
|
|
2
|
-
declare const LeftDoubleClickIcon: import("
|
|
2
|
+
declare const LeftDoubleClickIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { LeftDoubleClickIcon as default };
|
|
5
5
|
//# sourceMappingURL=LeftDoubleClickIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/LinkedinIcon.d.ts
|
|
2
|
-
declare const LinkedinIcon: import("
|
|
2
|
+
declare const LinkedinIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { LinkedinIcon as default };
|
|
5
5
|
//# sourceMappingURL=LinkedinIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/McpIcon.d.ts
|
|
2
|
-
declare const McpIcon: import("
|
|
2
|
+
declare const McpIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { McpIcon as default };
|
|
5
5
|
//# sourceMappingURL=McpIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/NotionIcon.d.ts
|
|
2
|
-
declare const NotionIcon: import("
|
|
2
|
+
declare const NotionIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { NotionIcon as default };
|
|
5
5
|
//# sourceMappingURL=NotionIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/PocketIcon.d.ts
|
|
2
|
-
declare const PocketIcon: import("
|
|
2
|
+
declare const PocketIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { PocketIcon as default };
|
|
5
5
|
//# sourceMappingURL=PocketIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/ProviderIcon.d.ts
|
|
2
|
-
declare const ProviderIcon: import("
|
|
2
|
+
declare const ProviderIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { ProviderIcon as default };
|
|
5
5
|
//# sourceMappingURL=ProviderIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/RailSymbolIcon.d.ts
|
|
2
|
-
declare const RailSymbolIcon: import("
|
|
2
|
+
declare const RailSymbolIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { RailSymbolIcon as default };
|
|
5
5
|
//# sourceMappingURL=RailSymbolIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/RedditIcon.d.ts
|
|
2
|
-
declare const RedditIcon: import("
|
|
2
|
+
declare const RedditIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { RedditIcon as default };
|
|
5
5
|
//# sourceMappingURL=RedditIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/RightClickIcon.d.ts
|
|
2
|
-
declare const RightClickIcon: import("
|
|
2
|
+
declare const RightClickIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { RightClickIcon as default };
|
|
5
5
|
//# sourceMappingURL=RightClickIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/RightDoubleClickIcon.d.ts
|
|
2
|
-
declare const RightDoubleClickIcon: import("
|
|
2
|
+
declare const RightDoubleClickIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { RightDoubleClickIcon as default };
|
|
5
5
|
//# sourceMappingURL=RightDoubleClickIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/ShapesUploadIcon.d.ts
|
|
2
|
-
declare const ShapesUploadIcon: import("
|
|
2
|
+
declare const ShapesUploadIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { ShapesUploadIcon as default };
|
|
5
5
|
//# sourceMappingURL=ShapesUploadIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/SkillsIcon.d.ts
|
|
2
|
-
declare const SkillsIcon: import("
|
|
2
|
+
declare const SkillsIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { SkillsIcon as default };
|
|
5
5
|
//# sourceMappingURL=SkillsIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/SlackIcon.d.ts
|
|
2
|
-
declare const SlackIcon: import("
|
|
2
|
+
declare const SlackIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { SlackIcon as default };
|
|
5
5
|
//# sourceMappingURL=SlackIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/ThinkIcon.d.ts
|
|
2
|
-
declare const ThinkIcon: import("
|
|
2
|
+
declare const ThinkIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { ThinkIcon as default };
|
|
5
5
|
//# sourceMappingURL=ThinkIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/TreeDownRightIcon.d.ts
|
|
2
|
-
declare const TreeDownRightIcon: import("
|
|
2
|
+
declare const TreeDownRightIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { TreeDownRightIcon as default };
|
|
5
5
|
//# sourceMappingURL=TreeDownRightIcon.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/icons/lucideExtra/TreeUpDownRightIcon.d.ts
|
|
2
|
-
declare const TreeUpDownRightIcon: import("
|
|
2
|
+
declare const TreeUpDownRightIcon: import("lucide-react").LucideIcon;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { TreeUpDownRightIcon as default };
|
|
5
5
|
//# sourceMappingURL=TreeUpDownRightIcon.d.mts.map
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import { useLayoutEffect } from "react";
|
|
1
|
+
import { useCallback, useLayoutEffect, useSyncExternalStore } from "react";
|
|
2
2
|
//#region src/utils/destroyOnInvalidActiveTriggerElement.ts
|
|
3
|
+
const usePopupHandleStore = (handle) => {
|
|
4
|
+
const typedHandle = handle;
|
|
5
|
+
const subscribe = useCallback((listener) => typedHandle.subscribeStore(listener), [typedHandle]);
|
|
6
|
+
const getSnapshot = useCallback(() => typedHandle.store, [typedHandle]);
|
|
7
|
+
return useSyncExternalStore(subscribe, getSnapshot, getSnapshot);
|
|
8
|
+
};
|
|
3
9
|
const isInvalidTriggerElement = (el) => {
|
|
4
10
|
if (!el) return true;
|
|
5
11
|
if (!el.isConnected) return true;
|
|
@@ -82,6 +88,6 @@ const useHidePopupWhenPositionerAtOrigin = (store, options) => {
|
|
|
82
88
|
]);
|
|
83
89
|
};
|
|
84
90
|
//#endregion
|
|
85
|
-
export { useDestroyOnInvalidActiveTriggerElement, useHidePopupWhenPositionerAtOrigin };
|
|
91
|
+
export { useDestroyOnInvalidActiveTriggerElement, useHidePopupWhenPositionerAtOrigin, usePopupHandleStore };
|
|
86
92
|
|
|
87
93
|
//# sourceMappingURL=destroyOnInvalidActiveTriggerElement.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"destroyOnInvalidActiveTriggerElement.mjs","names":[],"sources":["../../src/utils/destroyOnInvalidActiveTriggerElement.ts"],"sourcesContent":["import { useLayoutEffect } from 'react';\n\ntype PopupStoreLike = {\n // Base UI store's `useState` has a strongly-typed key union; we keep it loose here on purpose.\n state: {\n activeTriggerElement?: Element | null;\n open?: boolean;\n positionerElement?: HTMLElement | null;\n };\n useState?: (...args: any[]) => unknown;\n};\n\nconst isInvalidTriggerElement = (el: Element | null): boolean => {\n if (!el) return true;\n\n if (!el.isConnected) return true;\n\n // \"display: none\" on self or an ancestor effectively hides the trigger.\n // `getComputedStyle` can throw in some edge cases (e.g. non-Element in old envs),\n // so we guard it defensively.\n try {\n // Check self and all ancestors for display: none\n let current: Element | null = el;\n while (current) {\n if (getComputedStyle(current).display === 'none') {\n return true;\n }\n current = current.parentElement;\n }\n return false;\n } catch {\n return false;\n }\n};\n\n/**\n * Destroys (hard reset) a group popup (Tooltip/Popover) when its active trigger element becomes\n * disconnected from the DOM or is effectively hidden via `display: none`.\n *\n * We intentionally poll while open to also catch CSS-driven visibility changes that won't\n * necessarily trigger DOM mutation observers.\n */\nexport const useDestroyOnInvalidActiveTriggerElement = (\n store: PopupStoreLike,\n destroy: () => void,\n options?: {\n /**\n * @default true\n */\n enabled?: boolean;\n },\n) => {\n const enabled = options?.enabled ?? true;\n\n // Subscribe with `useState` (reactive), but read from `state` (immediate) inside the loop.\n // Base UI note: `state` updates immediately, while `useState` reflects updates before the next render.\n const openReactive =\n (store.useState?.('open') as boolean | undefined) ?? Boolean(store.state.open);\n const shouldWatch = enabled && openReactive;\n\n // Use layout effect so the first check runs right after React commits DOM updates.\n // Then keep watching via rAF while open to also capture CSS-driven visibility changes.\n useLayoutEffect(() => {\n if (!shouldWatch) return;\n\n let raf = 0;\n\n const loop = () => {\n if (isInvalidTriggerElement(store.state.activeTriggerElement ?? null)) {\n destroy();\n return;\n }\n raf = window.requestAnimationFrame(loop);\n };\n\n loop();\n return () => window.cancelAnimationFrame(raf);\n }, [destroy, shouldWatch, store]);\n};\n\n/**\n * UI-only fallback: If the positioner ends up at viewport (0,0), hide it to avoid a visible flash\n * in the corner. This doesn't replace \"destroy on invalid trigger\"; it's purely a visual guard.\n */\nexport const useHidePopupWhenPositionerAtOrigin = (\n store: PopupStoreLike,\n options?: {\n /**\n * @default true\n */\n enabled?: boolean;\n /**\n * Pixel threshold to consider the element \"at origin\".\n * @default 0.5\n */\n threshold?: number;\n },\n) => {\n const enabled = options?.enabled ?? true;\n const threshold = options?.threshold ?? 0.5;\n\n const openReactive =\n (store.useState?.('open') as boolean | undefined) ?? Boolean(store.state.open);\n const positionerElementReactive =\n (store.useState?.('positionerElement') as HTMLElement | null | undefined) ??\n store.state.positionerElement ??\n null;\n\n useLayoutEffect(() => {\n const positionerEl = store.state.positionerElement ?? positionerElementReactive;\n\n if (!enabled || !openReactive || !positionerEl) {\n if (positionerEl) delete positionerEl.dataset.zeroOrigin;\n return;\n }\n\n let raf = 0;\n const loop = () => {\n const current = store.state.positionerElement ?? positionerEl;\n if (!current) return;\n\n const rect = current.getBoundingClientRect();\n const atOrigin = Math.abs(rect.left) <= threshold && Math.abs(rect.top) <= threshold;\n if (atOrigin) current.dataset.zeroOrigin = 'true';\n else delete current.dataset.zeroOrigin;\n\n raf = window.requestAnimationFrame(loop);\n };\n\n loop();\n return () => {\n window.cancelAnimationFrame(raf);\n const current = store.state.positionerElement ?? positionerEl;\n if (current) delete current.dataset.zeroOrigin;\n };\n }, [enabled, openReactive, positionerElementReactive, store, threshold]);\n};\n"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"destroyOnInvalidActiveTriggerElement.mjs","names":[],"sources":["../../src/utils/destroyOnInvalidActiveTriggerElement.ts"],"sourcesContent":["import { useCallback, useLayoutEffect, useSyncExternalStore } from 'react';\n\ntype PopupStoreLike = {\n // Base UI store's `useState` has a strongly-typed key union; we keep it loose here on purpose.\n state: {\n activeTriggerElement?: Element | null;\n open?: boolean;\n positionerElement?: HTMLElement | null;\n };\n useState?: (...args: any[]) => unknown;\n};\n\n// Base UI 1.7+ strips `store`/`subscribeStore` from the handle's public typings, but detached\n// triggers still rely on them at runtime: the handle points at an inert fallback store until a\n// Root attaches in an effect, so the store must be read through a subscription, not captured once.\ntype PopupHandleLike = {\n store: PopupStoreLike;\n subscribeStore: (listener: () => void) => () => void;\n};\n\nexport const usePopupHandleStore = (handle: object): PopupStoreLike => {\n const typedHandle = handle as PopupHandleLike;\n const subscribe = useCallback(\n (listener: () => void) => typedHandle.subscribeStore(listener),\n [typedHandle],\n );\n const getSnapshot = useCallback(() => typedHandle.store, [typedHandle]);\n return useSyncExternalStore(subscribe, getSnapshot, getSnapshot);\n};\n\nconst isInvalidTriggerElement = (el: Element | null): boolean => {\n if (!el) return true;\n\n if (!el.isConnected) return true;\n\n // \"display: none\" on self or an ancestor effectively hides the trigger.\n // `getComputedStyle` can throw in some edge cases (e.g. non-Element in old envs),\n // so we guard it defensively.\n try {\n // Check self and all ancestors for display: none\n let current: Element | null = el;\n while (current) {\n if (getComputedStyle(current).display === 'none') {\n return true;\n }\n current = current.parentElement;\n }\n return false;\n } catch {\n return false;\n }\n};\n\n/**\n * Destroys (hard reset) a group popup (Tooltip/Popover) when its active trigger element becomes\n * disconnected from the DOM or is effectively hidden via `display: none`.\n *\n * We intentionally poll while open to also catch CSS-driven visibility changes that won't\n * necessarily trigger DOM mutation observers.\n */\nexport const useDestroyOnInvalidActiveTriggerElement = (\n store: PopupStoreLike,\n destroy: () => void,\n options?: {\n /**\n * @default true\n */\n enabled?: boolean;\n },\n) => {\n const enabled = options?.enabled ?? true;\n\n // Subscribe with `useState` (reactive), but read from `state` (immediate) inside the loop.\n // Base UI note: `state` updates immediately, while `useState` reflects updates before the next render.\n const openReactive =\n (store.useState?.('open') as boolean | undefined) ?? Boolean(store.state.open);\n const shouldWatch = enabled && openReactive;\n\n // Use layout effect so the first check runs right after React commits DOM updates.\n // Then keep watching via rAF while open to also capture CSS-driven visibility changes.\n useLayoutEffect(() => {\n if (!shouldWatch) return;\n\n let raf = 0;\n\n const loop = () => {\n if (isInvalidTriggerElement(store.state.activeTriggerElement ?? null)) {\n destroy();\n return;\n }\n raf = window.requestAnimationFrame(loop);\n };\n\n loop();\n return () => window.cancelAnimationFrame(raf);\n }, [destroy, shouldWatch, store]);\n};\n\n/**\n * UI-only fallback: If the positioner ends up at viewport (0,0), hide it to avoid a visible flash\n * in the corner. This doesn't replace \"destroy on invalid trigger\"; it's purely a visual guard.\n */\nexport const useHidePopupWhenPositionerAtOrigin = (\n store: PopupStoreLike,\n options?: {\n /**\n * @default true\n */\n enabled?: boolean;\n /**\n * Pixel threshold to consider the element \"at origin\".\n * @default 0.5\n */\n threshold?: number;\n },\n) => {\n const enabled = options?.enabled ?? true;\n const threshold = options?.threshold ?? 0.5;\n\n const openReactive =\n (store.useState?.('open') as boolean | undefined) ?? Boolean(store.state.open);\n const positionerElementReactive =\n (store.useState?.('positionerElement') as HTMLElement | null | undefined) ??\n store.state.positionerElement ??\n null;\n\n useLayoutEffect(() => {\n const positionerEl = store.state.positionerElement ?? positionerElementReactive;\n\n if (!enabled || !openReactive || !positionerEl) {\n if (positionerEl) delete positionerEl.dataset.zeroOrigin;\n return;\n }\n\n let raf = 0;\n const loop = () => {\n const current = store.state.positionerElement ?? positionerEl;\n if (!current) return;\n\n const rect = current.getBoundingClientRect();\n const atOrigin = Math.abs(rect.left) <= threshold && Math.abs(rect.top) <= threshold;\n if (atOrigin) current.dataset.zeroOrigin = 'true';\n else delete current.dataset.zeroOrigin;\n\n raf = window.requestAnimationFrame(loop);\n };\n\n loop();\n return () => {\n window.cancelAnimationFrame(raf);\n const current = store.state.positionerElement ?? positionerEl;\n if (current) delete current.dataset.zeroOrigin;\n };\n }, [enabled, openReactive, positionerElementReactive, store, threshold]);\n};\n"],"mappings":";;AAoBA,MAAa,uBAAuB,WAAmC;CACrE,MAAM,cAAc;CACpB,MAAM,YAAY,aACf,aAAyB,YAAY,eAAe,QAAQ,GAC7D,CAAC,WAAW,CACd;CACA,MAAM,cAAc,kBAAkB,YAAY,OAAO,CAAC,WAAW,CAAC;CACtE,OAAO,qBAAqB,WAAW,aAAa,WAAW;AACjE;AAEA,MAAM,2BAA2B,OAAgC;CAC/D,IAAI,CAAC,IAAI,OAAO;CAEhB,IAAI,CAAC,GAAG,aAAa,OAAO;CAK5B,IAAI;EAEF,IAAI,UAA0B;EAC9B,OAAO,SAAS;GACd,IAAI,iBAAiB,OAAO,CAAC,CAAC,YAAY,QACxC,OAAO;GAET,UAAU,QAAQ;EACpB;EACA,OAAO;CACT,QAAQ;EACN,OAAO;CACT;AACF;;;;;;;;AASA,MAAa,2CACX,OACA,SACA,YAMG;CACH,MAAM,UAAU,SAAS,WAAW;CAIpC,MAAM,eACH,MAAM,WAAW,MAAM,KAA6B,QAAQ,MAAM,MAAM,IAAI;CAC/E,MAAM,cAAc,WAAW;CAI/B,sBAAsB;EACpB,IAAI,CAAC,aAAa;EAElB,IAAI,MAAM;EAEV,MAAM,aAAa;GACjB,IAAI,wBAAwB,MAAM,MAAM,wBAAwB,IAAI,GAAG;IACrE,QAAQ;IACR;GACF;GACA,MAAM,OAAO,sBAAsB,IAAI;EACzC;EAEA,KAAK;EACL,aAAa,OAAO,qBAAqB,GAAG;CAC9C,GAAG;EAAC;EAAS;EAAa;CAAK,CAAC;AAClC;;;;;AAMA,MAAa,sCACX,OACA,YAWG;CACH,MAAM,UAAU,SAAS,WAAW;CACpC,MAAM,YAAY,SAAS,aAAa;CAExC,MAAM,eACH,MAAM,WAAW,MAAM,KAA6B,QAAQ,MAAM,MAAM,IAAI;CAC/E,MAAM,4BACH,MAAM,WAAW,mBAAmB,KACrC,MAAM,MAAM,qBACZ;CAEF,sBAAsB;EACpB,MAAM,eAAe,MAAM,MAAM,qBAAqB;EAEtD,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,cAAc;GAC9C,IAAI,cAAc,OAAO,aAAa,QAAQ;GAC9C;EACF;EAEA,IAAI,MAAM;EACV,MAAM,aAAa;GACjB,MAAM,UAAU,MAAM,MAAM,qBAAqB;GACjD,IAAI,CAAC,SAAS;GAEd,MAAM,OAAO,QAAQ,sBAAsB;GAE3C,IADiB,KAAK,IAAI,KAAK,IAAI,KAAK,aAAa,KAAK,IAAI,KAAK,GAAG,KAAK,WAC7D,QAAQ,QAAQ,aAAa;QACtC,OAAO,QAAQ,QAAQ;GAE5B,MAAM,OAAO,sBAAsB,IAAI;EACzC;EAEA,KAAK;EACL,aAAa;GACX,OAAO,qBAAqB,GAAG;GAC/B,MAAM,UAAU,MAAM,MAAM,qBAAqB;GACjD,IAAI,SAAS,OAAO,QAAQ,QAAQ;EACtC;CACF,GAAG;EAAC;EAAS;EAAc;EAA2B;EAAO;CAAS,CAAC;AACzE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/ui",
|
|
3
|
-
"version": "5.40.
|
|
3
|
+
"version": "5.40.2",
|
|
4
4
|
"description": "Lobe UI is an open-source UI component library for building AIGC web apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
},
|
|
139
139
|
"dependencies": {
|
|
140
140
|
"@ant-design/cssinjs": "^2.1.2",
|
|
141
|
-
"@base-ui/react": "1.
|
|
141
|
+
"@base-ui/react": "1.8.0",
|
|
142
142
|
"@dnd-kit/core": "^6.3.1",
|
|
143
143
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
144
144
|
"@dnd-kit/sortable": "^10.0.0",
|