@lobehub/ui 5.15.13 → 5.15.15
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/Alert/type.d.mts +1 -1
- package/es/EditorSlashMenu/atoms.d.mts +12 -13
- package/es/Form/type.d.mts +1 -1
- package/es/Freeze/Freeze.d.mts +2 -2
- package/es/Modal/Modal.mjs.map +1 -1
- package/es/Modal/imperative.d.mts +2 -2
- package/es/Tabs/Tabs.mjs +18 -8
- package/es/Tabs/Tabs.mjs.map +1 -1
- package/es/ThemeProvider/GlobalStyle/global.mjs +20 -3
- package/es/ThemeProvider/GlobalStyle/global.mjs.map +1 -1
- package/es/ThemeProvider/ThemeProvider.mjs +8 -4
- package/es/ThemeProvider/ThemeProvider.mjs.map +1 -1
- package/es/base-ui/Button/Button.d.mts +2 -2
- package/es/base-ui/ContextMenu/ContextMenuHost.d.mts +1 -2
- package/es/base-ui/DropdownMenu/atoms.d.mts +20 -21
- package/es/base-ui/FloatingSheet/FloatingSheet.d.mts +2 -2
- package/es/base-ui/Modal/atoms.d.mts +11 -12
- package/es/base-ui/Popover/ArrowIcon.d.mts +2 -2
- package/es/base-ui/Popover/atoms.d.mts +6 -7
- package/es/base-ui/ScrollArea/atoms.d.mts +6 -7
- package/es/base-ui/Select/atoms.d.mts +15 -16
- package/es/base-ui/Switch/atoms.d.mts +4 -4
- package/es/base-ui/Toast/imperative.d.mts +1 -2
- package/es/styles/theme/token/base.mjs +49 -8
- package/es/styles/theme/token/base.mjs.map +1 -1
- package/package.json +32 -32
package/es/Alert/type.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import { AlertProps } from "antd";
|
|
|
4
4
|
import { AlertRef } from "antd/lib/alert/Alert.js";
|
|
5
5
|
|
|
6
6
|
//#region src/Alert/type.d.ts
|
|
7
|
-
interface AlertProps$1 extends Omit<AlertProps, 'classNames' | 'icon' | 'styles' | 'type'> {
|
|
7
|
+
interface AlertProps$1 extends Omit<AlertProps, 'classNames' | 'icon' | 'styles' | 'type' | 'variant'> {
|
|
8
8
|
classNames?: {
|
|
9
9
|
alert?: string;
|
|
10
10
|
container?: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
2
|
import { Autocomplete } from "@base-ui/react/autocomplete";
|
|
4
3
|
import * as _$_base_ui_react0 from "@base-ui/react";
|
|
5
4
|
|
|
@@ -12,7 +11,7 @@ declare const EditorSlashMenuList: {
|
|
|
12
11
|
...rest
|
|
13
12
|
}: React.ComponentProps<typeof Autocomplete.List> & {
|
|
14
13
|
ref?: React.RefObject<HTMLDivElement | null>;
|
|
15
|
-
}):
|
|
14
|
+
}): React.JSX.Element;
|
|
16
15
|
displayName: string;
|
|
17
16
|
};
|
|
18
17
|
type EditorSlashMenuPortalProps = React.ComponentProps<typeof Autocomplete.Portal> & {
|
|
@@ -25,7 +24,7 @@ declare const EditorSlashMenuPortal: {
|
|
|
25
24
|
({
|
|
26
25
|
container,
|
|
27
26
|
...rest
|
|
28
|
-
}: EditorSlashMenuPortalProps):
|
|
27
|
+
}: EditorSlashMenuPortalProps): React.JSX.Element;
|
|
29
28
|
displayName: string;
|
|
30
29
|
};
|
|
31
30
|
type EditorSlashMenuPositionerProps = React.ComponentProps<typeof Autocomplete.Positioner>;
|
|
@@ -37,7 +36,7 @@ declare const EditorSlashMenuPositioner: {
|
|
|
37
36
|
side,
|
|
38
37
|
sideOffset,
|
|
39
38
|
...rest
|
|
40
|
-
}: EditorSlashMenuPositionerProps):
|
|
39
|
+
}: EditorSlashMenuPositionerProps): React.JSX.Element;
|
|
41
40
|
displayName: string;
|
|
42
41
|
};
|
|
43
42
|
type EditorSlashMenuPopupProps = React.ComponentProps<typeof Autocomplete.Popup>;
|
|
@@ -46,7 +45,7 @@ declare const EditorSlashMenuPopup: {
|
|
|
46
45
|
className,
|
|
47
46
|
initialFocus,
|
|
48
47
|
...rest
|
|
49
|
-
}: EditorSlashMenuPopupProps):
|
|
48
|
+
}: EditorSlashMenuPopupProps): React.JSX.Element;
|
|
50
49
|
displayName: string;
|
|
51
50
|
};
|
|
52
51
|
type EditorSlashMenuItemProps = React.ComponentProps<typeof Autocomplete.Item> & {
|
|
@@ -57,7 +56,7 @@ declare const EditorSlashMenuItem: {
|
|
|
57
56
|
className,
|
|
58
57
|
danger,
|
|
59
58
|
...rest
|
|
60
|
-
}: EditorSlashMenuItemProps):
|
|
59
|
+
}: EditorSlashMenuItemProps): React.JSX.Element;
|
|
61
60
|
displayName: string;
|
|
62
61
|
};
|
|
63
62
|
declare const EditorSlashMenuGroup: React.ForwardRefExoticComponent<Omit<_$_base_ui_react0.AutocompleteGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -66,7 +65,7 @@ declare const EditorSlashMenuGroupLabel: {
|
|
|
66
65
|
({
|
|
67
66
|
className,
|
|
68
67
|
...rest
|
|
69
|
-
}: EditorSlashMenuGroupLabelProps):
|
|
68
|
+
}: EditorSlashMenuGroupLabelProps): React.JSX.Element;
|
|
70
69
|
displayName: string;
|
|
71
70
|
};
|
|
72
71
|
type EditorSlashMenuEmptyProps = React.ComponentProps<typeof Autocomplete.Empty>;
|
|
@@ -74,7 +73,7 @@ declare const EditorSlashMenuEmpty: {
|
|
|
74
73
|
({
|
|
75
74
|
className,
|
|
76
75
|
...rest
|
|
77
|
-
}: EditorSlashMenuEmptyProps):
|
|
76
|
+
}: EditorSlashMenuEmptyProps): React.JSX.Element;
|
|
78
77
|
displayName: string;
|
|
79
78
|
};
|
|
80
79
|
type EditorSlashMenuItemContentProps = React.HTMLAttributes<HTMLDivElement>;
|
|
@@ -82,7 +81,7 @@ declare const EditorSlashMenuItemContent: {
|
|
|
82
81
|
({
|
|
83
82
|
className,
|
|
84
83
|
...rest
|
|
85
|
-
}: EditorSlashMenuItemContentProps):
|
|
84
|
+
}: EditorSlashMenuItemContentProps): React.JSX.Element;
|
|
86
85
|
displayName: string;
|
|
87
86
|
};
|
|
88
87
|
type EditorSlashMenuItemIconProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
@@ -90,7 +89,7 @@ declare const EditorSlashMenuItemIcon: {
|
|
|
90
89
|
({
|
|
91
90
|
className,
|
|
92
91
|
...rest
|
|
93
|
-
}: EditorSlashMenuItemIconProps):
|
|
92
|
+
}: EditorSlashMenuItemIconProps): React.JSX.Element;
|
|
94
93
|
displayName: string;
|
|
95
94
|
};
|
|
96
95
|
type EditorSlashMenuItemLabelProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
@@ -98,7 +97,7 @@ declare const EditorSlashMenuItemLabel: {
|
|
|
98
97
|
({
|
|
99
98
|
className,
|
|
100
99
|
...rest
|
|
101
|
-
}: EditorSlashMenuItemLabelProps):
|
|
100
|
+
}: EditorSlashMenuItemLabelProps): React.JSX.Element;
|
|
102
101
|
displayName: string;
|
|
103
102
|
};
|
|
104
103
|
type EditorSlashMenuItemExtraProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
@@ -106,7 +105,7 @@ declare const EditorSlashMenuItemExtra: {
|
|
|
106
105
|
({
|
|
107
106
|
className,
|
|
108
107
|
...rest
|
|
109
|
-
}: EditorSlashMenuItemExtraProps):
|
|
108
|
+
}: EditorSlashMenuItemExtraProps): React.JSX.Element;
|
|
110
109
|
displayName: string;
|
|
111
110
|
};
|
|
112
111
|
type EditorSlashMenuHiddenInputProps = React.ComponentProps<typeof Autocomplete.Input>;
|
|
@@ -114,7 +113,7 @@ declare const EditorSlashMenuHiddenInput: {
|
|
|
114
113
|
({
|
|
115
114
|
className,
|
|
116
115
|
...rest
|
|
117
|
-
}: EditorSlashMenuHiddenInputProps):
|
|
116
|
+
}: EditorSlashMenuHiddenInputProps): React.JSX.Element;
|
|
118
117
|
displayName: string;
|
|
119
118
|
};
|
|
120
119
|
//#endregion
|
package/es/Form/type.d.mts
CHANGED
|
@@ -11,7 +11,7 @@ import { FormItemProps } from "antd/es/form/FormItem/index.js";
|
|
|
11
11
|
//#region src/Form/type.d.ts
|
|
12
12
|
type FormVariant = 'filled' | 'outlined' | 'borderless';
|
|
13
13
|
type ItemsType = 'group' | 'flat';
|
|
14
|
-
interface FormProps$1 extends Omit<FormProps, 'variant'> {
|
|
14
|
+
interface FormProps$1 extends Omit<FormProps, 'variant' | 'styles' | 'classNames'> {
|
|
15
15
|
activeKey?: (string | number)[];
|
|
16
16
|
children?: ReactNode;
|
|
17
17
|
classNames?: FormGroupProps['classNames'] & {
|
package/es/Freeze/Freeze.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FreezeProps } from "./type.mjs";
|
|
2
|
-
import * as _$
|
|
2
|
+
import * as _$react from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/Freeze/Freeze.d.ts
|
|
5
5
|
declare const Freeze: {
|
|
6
6
|
({
|
|
7
7
|
frozen,
|
|
8
8
|
children
|
|
9
|
-
}: FreezeProps): _$
|
|
9
|
+
}: FreezeProps): _$react.JSX.Element;
|
|
10
10
|
displayName: string;
|
|
11
11
|
};
|
|
12
12
|
//#endregion
|
package/es/Modal/Modal.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.mjs","names":["Modal","AntModal"],"sources":["../../src/Modal/Modal.tsx"],"sourcesContent":["'use client';\n\nimport { Button, ConfigProvider, Drawer, Modal as AntModal } from 'antd';\nimport { cssVar, cx, useResponsive } from 'antd-style';\nimport { Maximize2, Minimize2, X } from 'lucide-react';\nimport { memo, type ReactNode, useState } from 'react';\n\nimport ActionIcon from '@/ActionIcon';\nimport Icon from '@/Icon';\n\nimport { styles } from './style';\nimport { type ModalProps } from './type';\n\nconst Modal = memo<ModalProps>(\n ({\n panelRef,\n allowFullscreen,\n children,\n title = ' ',\n className,\n classNames,\n width = 700,\n onCancel,\n open,\n destroyOnHidden,\n paddings,\n height = '75dvh',\n enableResponsive = true,\n footer,\n styles: customStyles,\n okText,\n onOk,\n cancelText,\n okButtonProps,\n cancelButtonProps,\n confirmLoading,\n ...rest\n }) => {\n const [fullscreen, setFullscreen] = useState(false);\n const { mobile } = useResponsive();\n const hideFooter = footer === false || footer === null;\n if (enableResponsive && mobile)\n return (\n <ConfigProvider\n theme={{\n token: {\n colorBgElevated: cssVar.colorBgContainer,\n },\n }}\n >\n <Drawer\n className={cx(styles.drawerContent, className)}\n closeIcon={<ActionIcon icon={X} />}\n destroyOnHidden={destroyOnHidden}\n height={fullscreen ? 'calc(100% - env(safe-area-inset-top))' : height}\n open={open}\n panelRef={panelRef}\n placement={'bottom'}\n title={title}\n classNames={\n typeof classNames === 'function'\n ? classNames\n : {\n ...classNames,\n wrapper: cx(styles.wrap, classNames?.wrapper),\n }\n }\n extra={\n allowFullscreen && (\n <ActionIcon\n icon={fullscreen ? Minimize2 : Maximize2}\n onClick={() => setFullscreen(!fullscreen)}\n />\n )\n }\n footer={\n hideFooter\n ? null\n : (footer as ReactNode) || (\n <>\n <Button\n color={'default'}\n variant={'filled'}\n onClick={onCancel as any}\n {...cancelButtonProps}\n >\n {cancelText || 'Cancel'}\n </Button>\n <Button\n loading={confirmLoading}\n type=\"primary\"\n onClick={onOk as any}\n {...okButtonProps}\n style={{\n marginInlineStart: 8,\n ...okButtonProps?.style,\n }}\n >\n {okText || 'OK'}\n </Button>\n </>\n )\n }\n styles={\n typeof customStyles === 'function'\n ? customStyles\n : {\n ...customStyles,\n body: {\n paddingBlock: `16px ${footer ? 0 : '16px'}`,\n paddingInline: paddings?.desktop ?? 16,\n ...customStyles?.body,\n },\n }\n }\n onClose={onCancel as any}\n {...rest}\n >\n {children}\n </Drawer>\n </ConfigProvider>\n );\n\n return (\n <ConfigProvider\n theme={{\n token: {\n colorBgElevated: cssVar.colorBgContainer,\n },\n }}\n >\n <AntModal\n closable\n cancelText={cancelText}\n className={cx(styles.content, className)}\n closeIcon={<Icon icon={X} size={20} />}\n confirmLoading={confirmLoading}\n destroyOnHidden={destroyOnHidden}\n footer={hideFooter ? null : footer}\n mask={{ closable: true }}\n okButtonProps={okButtonProps}\n okText={okText}\n open={open}\n panelRef={panelRef}\n title={title}\n width={width}\n cancelButtonProps={{\n color: 'default',\n variant: 'filled',\n ...cancelButtonProps,\n }}\n classNames={\n typeof classNames === 'function'\n ? classNames\n : {\n ...classNames,\n wrapper: cx(styles.wrap, classNames?.wrapper),\n }\n }\n styles={\n typeof customStyles === 'function'\n ? customStyles\n : {\n ...customStyles,\n body: {\n maxHeight: height,\n overflow: 'hidden auto',\n paddingBlock: `0 ${footer === null ? '16px' : 0}`,\n paddingInline: paddings?.desktop ?? 16,\n ...customStyles?.body,\n },\n }\n }\n onCancel={onCancel}\n onOk={onOk}\n {...rest}\n >\n {children}\n </AntModal>\n </ConfigProvider>\n );\n },\n);\n\nModal.displayName = 'Modal';\n\nexport default Modal;\n"],"mappings":";;;;;;;;;;AAaA,MAAMA,UAAQ,MACX,EACC,UACA,iBACA,UACA,QAAQ,KACR,WACA,YACA,QAAQ,KACR,UACA,MACA,iBACA,UACA,SAAS,SACT,mBAAmB,MACnB,QACA,QAAQ,cACR,QACA,MACA,YACA,eACA,mBACA,gBACA,GAAG,WACC;CACJ,MAAM,CAAC,YAAY,iBAAiB,SAAS,MAAM;CACnD,MAAM,EAAE,WAAW,eAAe;CAClC,MAAM,aAAa,WAAW,SAAS,WAAW;AAClD,KAAI,oBAAoB,OACtB,QACE,oBAAC,gBAAD;EACE,OAAO,EACL,OAAO,EACL,iBAAiB,OAAO,kBACzB,EACF;YAED,oBAAC,QAAD;GACE,WAAW,GAAG,OAAO,eAAe,UAAU;GAC9C,WAAW,oBAAC,YAAD,EAAY,MAAM,GAAK,CAAA;GACjB;GACjB,QAAQ,aAAa,0CAA0C;GACzD;GACI;GACV,WAAW;GACJ;GACP,
|
|
1
|
+
{"version":3,"file":"Modal.mjs","names":["Modal","AntModal"],"sources":["../../src/Modal/Modal.tsx"],"sourcesContent":["'use client';\n\nimport { Button, ConfigProvider, Drawer, type DrawerProps,Modal as AntModal } from 'antd';\nimport { cssVar, cx, useResponsive } from 'antd-style';\nimport { Maximize2, Minimize2, X } from 'lucide-react';\nimport { memo, type ReactNode, useState } from 'react';\n\nimport ActionIcon from '@/ActionIcon';\nimport Icon from '@/Icon';\n\nimport { styles } from './style';\nimport { type ModalProps } from './type';\n\nconst Modal = memo<ModalProps>(\n ({\n panelRef,\n allowFullscreen,\n children,\n title = ' ',\n className,\n classNames,\n width = 700,\n onCancel,\n open,\n destroyOnHidden,\n paddings,\n height = '75dvh',\n enableResponsive = true,\n footer,\n styles: customStyles,\n okText,\n onOk,\n cancelText,\n okButtonProps,\n cancelButtonProps,\n confirmLoading,\n ...rest\n }) => {\n const [fullscreen, setFullscreen] = useState(false);\n const { mobile } = useResponsive();\n const hideFooter = footer === false || footer === null;\n if (enableResponsive && mobile)\n return (\n <ConfigProvider\n theme={{\n token: {\n colorBgElevated: cssVar.colorBgContainer,\n },\n }}\n >\n <Drawer\n className={cx(styles.drawerContent, className)}\n closeIcon={<ActionIcon icon={X} />}\n destroyOnHidden={destroyOnHidden}\n height={fullscreen ? 'calc(100% - env(safe-area-inset-top))' : height}\n open={open}\n panelRef={panelRef}\n placement={'bottom'}\n title={title}\n classNames={\n (typeof classNames === 'function'\n ? classNames\n : {\n ...classNames,\n wrapper: cx(styles.wrap, classNames?.wrapper),\n }) as DrawerProps['classNames']\n }\n extra={\n allowFullscreen && (\n <ActionIcon\n icon={fullscreen ? Minimize2 : Maximize2}\n onClick={() => setFullscreen(!fullscreen)}\n />\n )\n }\n footer={\n hideFooter\n ? null\n : (footer as ReactNode) || (\n <>\n <Button\n color={'default'}\n variant={'filled'}\n onClick={onCancel as any}\n {...cancelButtonProps}\n >\n {cancelText || 'Cancel'}\n </Button>\n <Button\n loading={confirmLoading}\n type=\"primary\"\n onClick={onOk as any}\n {...okButtonProps}\n style={{\n marginInlineStart: 8,\n ...okButtonProps?.style,\n }}\n >\n {okText || 'OK'}\n </Button>\n </>\n )\n }\n styles={\n (typeof customStyles === 'function'\n ? customStyles\n : {\n ...customStyles,\n body: {\n paddingBlock: `16px ${footer ? 0 : '16px'}`,\n paddingInline: paddings?.desktop ?? 16,\n ...customStyles?.body,\n },\n }) as DrawerProps['styles']\n }\n onClose={onCancel as any}\n {...rest}\n >\n {children}\n </Drawer>\n </ConfigProvider>\n );\n\n return (\n <ConfigProvider\n theme={{\n token: {\n colorBgElevated: cssVar.colorBgContainer,\n },\n }}\n >\n <AntModal\n closable\n cancelText={cancelText}\n className={cx(styles.content, className)}\n closeIcon={<Icon icon={X} size={20} />}\n confirmLoading={confirmLoading}\n destroyOnHidden={destroyOnHidden}\n footer={hideFooter ? null : footer}\n mask={{ closable: true }}\n okButtonProps={okButtonProps}\n okText={okText}\n open={open}\n panelRef={panelRef}\n title={title}\n width={width}\n cancelButtonProps={{\n color: 'default',\n variant: 'filled',\n ...cancelButtonProps,\n }}\n classNames={\n typeof classNames === 'function'\n ? classNames\n : {\n ...classNames,\n wrapper: cx(styles.wrap, classNames?.wrapper),\n }\n }\n styles={\n typeof customStyles === 'function'\n ? customStyles\n : {\n ...customStyles,\n body: {\n maxHeight: height,\n overflow: 'hidden auto',\n paddingBlock: `0 ${footer === null ? '16px' : 0}`,\n paddingInline: paddings?.desktop ?? 16,\n ...customStyles?.body,\n },\n }\n }\n onCancel={onCancel}\n onOk={onOk}\n {...rest}\n >\n {children}\n </AntModal>\n </ConfigProvider>\n );\n },\n);\n\nModal.displayName = 'Modal';\n\nexport default Modal;\n"],"mappings":";;;;;;;;;;AAaA,MAAMA,UAAQ,MACX,EACC,UACA,iBACA,UACA,QAAQ,KACR,WACA,YACA,QAAQ,KACR,UACA,MACA,iBACA,UACA,SAAS,SACT,mBAAmB,MACnB,QACA,QAAQ,cACR,QACA,MACA,YACA,eACA,mBACA,gBACA,GAAG,WACC;CACJ,MAAM,CAAC,YAAY,iBAAiB,SAAS,MAAM;CACnD,MAAM,EAAE,WAAW,eAAe;CAClC,MAAM,aAAa,WAAW,SAAS,WAAW;AAClD,KAAI,oBAAoB,OACtB,QACE,oBAAC,gBAAD;EACE,OAAO,EACL,OAAO,EACL,iBAAiB,OAAO,kBACzB,EACF;YAED,oBAAC,QAAD;GACE,WAAW,GAAG,OAAO,eAAe,UAAU;GAC9C,WAAW,oBAAC,YAAD,EAAY,MAAM,GAAK,CAAA;GACjB;GACjB,QAAQ,aAAa,0CAA0C;GACzD;GACI;GACV,WAAW;GACJ;GACP,YACG,OAAO,eAAe,aACnB,aACA;IACE,GAAG;IACH,SAAS,GAAG,OAAO,MAAM,YAAY,QAAQ;IAC9C;GAEP,OACE,mBACE,oBAAC,YAAD;IACE,MAAM,aAAa,YAAY;IAC/B,eAAe,cAAc,CAAC,WAAW;IACzC,CAAA;GAGN,QACE,aACI,OACC,UACC,qBAAA,YAAA,EAAA,UAAA,CACE,oBAAC,QAAD;IACE,OAAO;IACP,SAAS;IACT,SAAS;IACT,GAAI;cAEH,cAAc;IACR,CAAA,EACT,oBAAC,QAAD;IACE,SAAS;IACT,MAAK;IACL,SAAS;IACT,GAAI;IACJ,OAAO;KACL,mBAAmB;KACnB,GAAG,eAAe;KACnB;cAEA,UAAU;IACJ,CAAA,CACR,EAAA,CAAA;GAGX,QACG,OAAO,iBAAiB,aACrB,eACA;IACE,GAAG;IACH,MAAM;KACJ,cAAc,QAAQ,SAAS,IAAI;KACnC,eAAe,UAAU,WAAW;KACpC,GAAG,cAAc;KAClB;IACF;GAEP,SAAS;GACT,GAAI;GAEH;GACM,CAAA;EACM,CAAA;AAGrB,QACE,oBAAC,gBAAD;EACE,OAAO,EACL,OAAO,EACL,iBAAiB,OAAO,kBACzB,EACF;YAED,oBAACC,OAAD;GACE,UAAA;GACY;GACZ,WAAW,GAAG,OAAO,SAAS,UAAU;GACxC,WAAW,oBAAC,MAAD;IAAM,MAAM;IAAG,MAAM;IAAM,CAAA;GACtB;GACC;GACjB,QAAQ,aAAa,OAAO;GAC5B,MAAM,EAAE,UAAU,MAAM;GACT;GACP;GACF;GACI;GACH;GACA;GACP,mBAAmB;IACjB,OAAO;IACP,SAAS;IACT,GAAG;IACJ;GACD,YACE,OAAO,eAAe,aAClB,aACA;IACE,GAAG;IACH,SAAS,GAAG,OAAO,MAAM,YAAY,QAAQ;IAC9C;GAEP,QACE,OAAO,iBAAiB,aACpB,eACA;IACE,GAAG;IACH,MAAM;KACJ,WAAW;KACX,UAAU;KACV,cAAc,KAAK,WAAW,OAAO,SAAS;KAC9C,eAAe,UAAU,WAAW;KACpC,GAAG,cAAc;KAClB;IACF;GAEG;GACJ;GACN,GAAI;GAEH;GACQ,CAAA;EACI,CAAA;EAGtB;AAED,QAAM,cAAc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ImperativeModalProps, ModalInstance, RawModalComponent, RawModalComponentProps, RawModalInstance, RawModalKeyOptions, RawModalOptions } from "./type.mjs";
|
|
2
|
-
import * as _$
|
|
2
|
+
import * as _$react from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/Modal/imperative.d.ts
|
|
5
5
|
type ModalHostProps = {
|
|
@@ -7,7 +7,7 @@ type ModalHostProps = {
|
|
|
7
7
|
};
|
|
8
8
|
declare const ModalHost: ({
|
|
9
9
|
root
|
|
10
|
-
}: ModalHostProps) => _$
|
|
10
|
+
}: ModalHostProps) => _$react.JSX.Element | null;
|
|
11
11
|
declare const createModal: (props: ImperativeModalProps) => ModalInstance;
|
|
12
12
|
declare function createRawModal<P extends RawModalComponentProps>(component: RawModalComponent<P>, props: Omit<P, 'open' | 'onClose'>, options?: RawModalOptions): RawModalInstance<P>;
|
|
13
13
|
declare function createRawModal<P, OpenKey extends keyof P, CloseKey extends keyof P>(component: RawModalComponent<P>, props: Omit<P, OpenKey | CloseKey>, options: RawModalKeyOptions<OpenKey, CloseKey>): RawModalInstance<P, OpenKey, CloseKey>;
|
package/es/Tabs/Tabs.mjs
CHANGED
|
@@ -6,8 +6,24 @@ import { Tabs } from "antd";
|
|
|
6
6
|
import { cx } from "antd-style";
|
|
7
7
|
import { MoreHorizontalIcon } from "lucide-react";
|
|
8
8
|
//#region src/Tabs/Tabs.tsx
|
|
9
|
-
const Tabs$1 = ({ className, compact, variant = "rounded", items, ...rest }) => {
|
|
9
|
+
const Tabs$1 = ({ className, compact, variant = "rounded", items, classNames, ...rest }) => {
|
|
10
10
|
const hasContent = items?.some((item) => !!item.children);
|
|
11
|
+
const mergedClassNames = typeof classNames === "function" ? (info) => {
|
|
12
|
+
const resolved = classNames(info);
|
|
13
|
+
return {
|
|
14
|
+
...resolved,
|
|
15
|
+
popup: {
|
|
16
|
+
root: styles.dropdown,
|
|
17
|
+
...resolved?.popup
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
} : {
|
|
21
|
+
...classNames,
|
|
22
|
+
popup: {
|
|
23
|
+
root: styles.dropdown,
|
|
24
|
+
...classNames?.popup
|
|
25
|
+
}
|
|
26
|
+
};
|
|
11
27
|
return /* @__PURE__ */ jsx(Tabs, {
|
|
12
28
|
className: cx(variants({
|
|
13
29
|
compact,
|
|
@@ -16,13 +32,7 @@ const Tabs$1 = ({ className, compact, variant = "rounded", items, ...rest }) =>
|
|
|
16
32
|
}), className),
|
|
17
33
|
items,
|
|
18
34
|
...rest,
|
|
19
|
-
classNames:
|
|
20
|
-
...rest?.classNames,
|
|
21
|
-
popup: {
|
|
22
|
-
root: styles.dropdown,
|
|
23
|
-
...rest?.classNames?.popup
|
|
24
|
-
}
|
|
25
|
-
},
|
|
35
|
+
classNames: mergedClassNames,
|
|
26
36
|
more: {
|
|
27
37
|
icon: /* @__PURE__ */ jsx(ActionIcon, { icon: MoreHorizontalIcon }),
|
|
28
38
|
...rest?.more
|
package/es/Tabs/Tabs.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.mjs","names":["Tabs","AntdTabs"],"sources":["../../src/Tabs/Tabs.tsx"],"sourcesContent":["'use client';\n\nimport { Tabs as AntdTabs } from 'antd';\nimport { cx } from 'antd-style';\nimport { MoreHorizontalIcon } from 'lucide-react';\nimport { type FC } from 'react';\n\nimport ActionIcon from '@/ActionIcon';\n\nimport { styles, variants } from './style';\nimport type { TabsProps } from './type';\n\nconst Tabs: FC<TabsProps> = ({
|
|
1
|
+
{"version":3,"file":"Tabs.mjs","names":["Tabs","AntdTabs"],"sources":["../../src/Tabs/Tabs.tsx"],"sourcesContent":["'use client';\n\nimport { Tabs as AntdTabs } from 'antd';\nimport { cx } from 'antd-style';\nimport { MoreHorizontalIcon } from 'lucide-react';\nimport { type FC } from 'react';\n\nimport ActionIcon from '@/ActionIcon';\n\nimport { styles, variants } from './style';\nimport type { TabsProps } from './type';\n\nconst Tabs: FC<TabsProps> = ({\n className,\n compact,\n variant = 'rounded',\n items,\n classNames,\n ...rest\n}) => {\n const hasContent = items?.some((item) => !!item.children);\n const mergedClassNames: TabsProps['classNames'] =\n typeof classNames === 'function'\n ? (info) => {\n const resolved = classNames(info);\n\n return {\n ...resolved,\n popup: {\n root: styles.dropdown,\n ...resolved?.popup,\n },\n };\n }\n : {\n ...classNames,\n popup: {\n root: styles.dropdown,\n ...classNames?.popup,\n },\n };\n\n return (\n <AntdTabs\n className={cx(variants({ compact, underlined: hasContent, variant }), className)}\n items={items}\n {...rest}\n classNames={mergedClassNames}\n more={{\n icon: <ActionIcon icon={MoreHorizontalIcon} />,\n ...rest?.more,\n }}\n />\n );\n};\n\nTabs.displayName = 'Tabs';\n\nexport default Tabs;\n"],"mappings":";;;;;;;;AAYA,MAAMA,UAAuB,EAC3B,WACA,SACA,UAAU,WACV,OACA,YACA,GAAG,WACC;CACJ,MAAM,aAAa,OAAO,MAAM,SAAS,CAAC,CAAC,KAAK,SAAS;CACzD,MAAM,mBACJ,OAAO,eAAe,cACjB,SAAS;EACR,MAAM,WAAW,WAAW,KAAK;AAEjC,SAAO;GACL,GAAG;GACH,OAAO;IACL,MAAM,OAAO;IACb,GAAG,UAAU;IACd;GACF;KAEH;EACE,GAAG;EACH,OAAO;GACL,MAAM,OAAO;GACb,GAAG,YAAY;GAChB;EACF;AAEP,QACE,oBAACC,MAAD;EACE,WAAW,GAAG,SAAS;GAAE;GAAS,YAAY;GAAY;GAAS,CAAC,EAAE,UAAU;EACzE;EACP,GAAI;EACJ,YAAY;EACZ,MAAM;GACJ,MAAM,oBAAC,YAAD,EAAY,MAAM,oBAAsB,CAAA;GAC9C,GAAG,MAAM;GACV;EACD,CAAA;;AAIN,OAAK,cAAc"}
|
|
@@ -6,6 +6,7 @@ var global_default = (token) => css`
|
|
|
6
6
|
--font-settings: 'cv01', 'tnum', 'kern';
|
|
7
7
|
--font-variations: 'opsz' auto, tabular-nums;
|
|
8
8
|
|
|
9
|
+
font-synthesis: none;
|
|
9
10
|
text-autospace: normal;
|
|
10
11
|
}
|
|
11
12
|
|
|
@@ -25,23 +26,39 @@ var global_default = (token) => css`
|
|
|
25
26
|
font-size: ${token.fontSize}px;
|
|
26
27
|
font-feature-settings: var(--font-settings);
|
|
27
28
|
font-variation-settings: var(--font-variations);
|
|
29
|
+
font-optical-sizing: auto;
|
|
30
|
+
font-kerning: normal;
|
|
31
|
+
font-variant-ligatures: common-ligatures contextual;
|
|
32
|
+
font-variant-numeric: tabular-nums;
|
|
33
|
+
font-size-adjust: from-font;
|
|
28
34
|
-webkit-font-smoothing: antialiased;
|
|
29
35
|
-moz-osx-font-smoothing: grayscale;
|
|
30
36
|
line-height: 1;
|
|
31
37
|
color: ${token.colorTextBase};
|
|
32
|
-
text-
|
|
38
|
+
text-wrap: pretty;
|
|
39
|
+
text-size-adjust: 100%;
|
|
40
|
+
text-size-adjust: 100%;
|
|
33
41
|
text-rendering: optimizelegibility;
|
|
34
|
-
|
|
42
|
+
overflow-wrap: anywhere;
|
|
35
43
|
vertical-align: baseline;
|
|
36
44
|
|
|
37
45
|
background-color: ${token.colorBgLayout};
|
|
38
46
|
|
|
47
|
+
font-synthesis: none;
|
|
48
|
+
|
|
39
49
|
-webkit-overflow-scrolling: touch;
|
|
40
50
|
-webkit-tap-highlight-color: transparent;
|
|
41
51
|
}
|
|
42
52
|
|
|
43
|
-
code
|
|
53
|
+
code,
|
|
54
|
+
kbd,
|
|
55
|
+
samp,
|
|
56
|
+
pre {
|
|
44
57
|
font-family: ${token.fontFamilyCode} !important;
|
|
58
|
+
font-feature-settings:
|
|
59
|
+
'liga' 0,
|
|
60
|
+
'calt' 0;
|
|
61
|
+
font-variant-ligatures: none;
|
|
45
62
|
|
|
46
63
|
span {
|
|
47
64
|
font-family: ${token.fontFamilyCode} !important;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global.mjs","names":[],"sources":["../../../src/ThemeProvider/GlobalStyle/global.ts"],"sourcesContent":["import { css, type Theme } from 'antd-style';\n\nimport { CLASSNAMES } from '@/styles/classNames';\n\nexport default (token: Theme) => css`\n :root {\n --font-settings: 'cv01', 'tnum', 'kern';\n --font-variations: 'opsz' auto, tabular-nums;\n\n text-autospace: normal;\n }\n\n html {\n overscroll-behavior: none;\n color-scheme: ${token.isDarkMode ? 'dark' : 'light'};\n }\n\n body {\n overflow: hidden auto;\n\n min-height: 100vh;\n margin: 0;\n padding: 0;\n\n font-family: ${token.fontFamily};\n font-size: ${token.fontSize}px;\n font-feature-settings: var(--font-settings);\n font-variation-settings: var(--font-variations);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n line-height: 1;\n color: ${token.colorTextBase};\n text-size-adjust:
|
|
1
|
+
{"version":3,"file":"global.mjs","names":[],"sources":["../../../src/ThemeProvider/GlobalStyle/global.ts"],"sourcesContent":["import { css, type Theme } from 'antd-style';\n\nimport { CLASSNAMES } from '@/styles/classNames';\n\nexport default (token: Theme) => css`\n :root {\n --font-settings: 'cv01', 'tnum', 'kern';\n --font-variations: 'opsz' auto, tabular-nums;\n\n font-synthesis: none;\n text-autospace: normal;\n }\n\n html {\n overscroll-behavior: none;\n color-scheme: ${token.isDarkMode ? 'dark' : 'light'};\n }\n\n body {\n overflow: hidden auto;\n\n min-height: 100vh;\n margin: 0;\n padding: 0;\n\n font-family: ${token.fontFamily};\n font-size: ${token.fontSize}px;\n font-feature-settings: var(--font-settings);\n font-variation-settings: var(--font-variations);\n font-optical-sizing: auto;\n font-kerning: normal;\n font-variant-ligatures: common-ligatures contextual;\n font-variant-numeric: tabular-nums;\n font-size-adjust: from-font;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n line-height: 1;\n color: ${token.colorTextBase};\n text-wrap: pretty;\n text-size-adjust: 100%;\n text-size-adjust: 100%;\n text-rendering: optimizelegibility;\n overflow-wrap: anywhere;\n vertical-align: baseline;\n\n background-color: ${token.colorBgLayout};\n\n font-synthesis: none;\n\n -webkit-overflow-scrolling: touch;\n -webkit-tap-highlight-color: transparent;\n }\n\n code,\n kbd,\n samp,\n pre {\n font-family: ${token.fontFamilyCode} !important;\n font-feature-settings:\n 'liga' 0,\n 'calt' 0;\n font-variant-ligatures: none;\n\n span {\n font-family: ${token.fontFamilyCode} !important;\n }\n }\n\n ::selection {\n color: #000;\n background: ${token.yellow9};\n\n -webkit-text-fill-color: unset !important;\n }\n\n * {\n scrollbar-color: ${token.colorFill} transparent;\n scrollbar-width: thin;\n box-sizing: border-box;\n vertical-align: baseline;\n }\n\n @layer lobe-popup {\n .${CLASSNAMES.ContextTrigger}[data-popup-open],\n .${CLASSNAMES.DropdownMenuTrigger}[data-popup-open] {\n background: ${token.colorFillTertiary};\n }\n }\n\n @layer lobe-base {\n :where(.lobe-flex) {\n /* Define defaults on the element itself to avoid CSS variable inheritance leaking to nested Flex */\n --lobe-flex: 0 1 auto;\n --lobe-flex-direction: column;\n --lobe-flex-wrap: nowrap;\n --lobe-flex-justify: flex-start;\n --lobe-flex-align: stretch;\n --lobe-flex-width: auto;\n --lobe-flex-height: auto;\n --lobe-flex-padding: 0;\n\n /* Keep padding-inline/block aligned with padding by default, and prevent inheriting from parent */\n --lobe-flex-padding-inline: var(--lobe-flex-padding);\n --lobe-flex-padding-block: var(--lobe-flex-padding);\n --lobe-flex-gap: 0;\n\n display: flex;\n flex: var(--lobe-flex);\n flex-flow: var(--lobe-flex-direction) var(--lobe-flex-wrap);\n gap: var(--lobe-flex-gap);\n align-items: var(--lobe-flex-align);\n justify-content: var(--lobe-flex-justify);\n\n width: var(--lobe-flex-width);\n height: var(--lobe-flex-height);\n padding: var(--lobe-flex-padding);\n padding-block: var(--lobe-flex-padding-block);\n padding-inline: var(--lobe-flex-padding-inline);\n }\n\n .lobe-flex-hidden {\n display: none;\n }\n }\n\n /* Brand Loading */\n @keyframes draw {\n 0% {\n stroke-dashoffset: 1000;\n }\n\n 100% {\n stroke-dashoffset: 0;\n }\n }\n\n @keyframes fill {\n 30% {\n fill-opacity: 0.05;\n }\n\n 100% {\n fill-opacity: 1;\n }\n }\n\n .lobe-brand-loading path {\n fill: currentcolor;\n fill-opacity: 0;\n stroke: currentcolor;\n stroke-dasharray: 1000;\n stroke-dashoffset: 1000;\n stroke-width: 0.25em;\n\n animation:\n draw 2s cubic-bezier(0.4, 0, 0.2, 1) infinite,\n fill 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n }\n`;\n"],"mappings":";;;AAIA,IAAA,kBAAgB,UAAiB,GAAG;;;;;;;;;;;oBAWhB,MAAM,aAAa,SAAS,QAAQ;;;;;;;;;;mBAUrC,MAAM,WAAW;iBACnB,MAAM,SAAS;;;;;;;;;;;aAWnB,MAAM,cAAc;;;;;;;;wBAQT,MAAM,cAAc;;;;;;;;;;;;mBAYzB,MAAM,eAAe;;;;;;;qBAOnB,MAAM,eAAe;;;;;;kBAMxB,MAAM,QAAQ;;;;;;uBAMT,MAAM,UAAU;;;;;;;OAOhC,WAAW,eAAe;SACxB,WAAW,oBAAoB;oBACpB,MAAM,kBAAkB"}
|
|
@@ -20,19 +20,23 @@ const ThemeProvider$1 = memo(({ children, customStylish, customToken, enableCust
|
|
|
20
20
|
const webfontUrls = useMemo(() => customFonts || [
|
|
21
21
|
genCdnUrl({
|
|
22
22
|
path: "css/index.css",
|
|
23
|
-
pkg: "@lobehub/webfont-mono"
|
|
23
|
+
pkg: "@lobehub/webfont-geist-mono",
|
|
24
|
+
version: "1.0.0"
|
|
24
25
|
}),
|
|
25
26
|
genCdnUrl({
|
|
26
27
|
path: "css/index.css",
|
|
27
|
-
pkg: "@lobehub/webfont-
|
|
28
|
+
pkg: "@lobehub/webfont-geist",
|
|
29
|
+
version: "1.0.0"
|
|
28
30
|
}),
|
|
29
31
|
genCdnUrl({
|
|
30
32
|
path: "css/index.css",
|
|
31
|
-
pkg: "@lobehub/webfont-harmony-sans-sc"
|
|
33
|
+
pkg: "@lobehub/webfont-harmony-sans-sc",
|
|
34
|
+
version: "1.0.0"
|
|
32
35
|
}),
|
|
33
36
|
genCdnUrl({
|
|
34
37
|
path: "dist/katex.min.css",
|
|
35
|
-
pkg: "katex"
|
|
38
|
+
pkg: "katex",
|
|
39
|
+
version: "0.17.0"
|
|
36
40
|
})
|
|
37
41
|
], [customFonts, genCdnUrl]);
|
|
38
42
|
const stylish = useCallback((theme) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.mjs","names":["ThemeProvider","lobeCustomStylish","lobeCustomToken","AntdThemeProvider","AntdConfigProvider"],"sources":["../../src/ThemeProvider/ThemeProvider.tsx"],"sourcesContent":["'use client';\n\nimport { App } from 'antd';\nimport {\n type CustomStylishParams,\n type CustomTokenParams,\n type GetAntdTheme,\n ThemeProvider as AntdThemeProvider,\n} from 'antd-style';\nimport { merge } from 'es-toolkit/compat';\nimport { memo, useCallback, useMemo, useState } from 'react';\n\nimport { useCdnFn } from '@/ConfigProvider';\nimport FontLoader from '@/FontLoader';\nimport { lobeCustomStylish, lobeCustomToken } from '@/styles';\nimport { createLobeAntdTheme } from '@/styles/theme/antdTheme';\nimport { type LobeCustomToken } from '@/types/customToken';\n\nimport AppElementContext from './AppElementContext';\nimport AntdConfigProvider from './ConfigProvider';\nimport { LOBE_THEME_APP_ID } from './constants';\nimport GlobalStyle from './GlobalStyle';\nimport { type ThemeProviderProps } from './type';\n\nconst ThemeProvider = memo<ThemeProviderProps>(\n ({\n children,\n customStylish,\n customToken,\n enableCustomFonts = true,\n enableGlobalStyle = true,\n customFonts,\n customTheme = {},\n className,\n style,\n theme: antdTheme,\n ...rest\n }) => {\n const genCdnUrl = useCdnFn();\n const [appRef, setAppRef] = useState<HTMLDivElement | null>(null);\n\n const webfontUrls = useMemo(\n () =>\n customFonts || [\n genCdnUrl({
|
|
1
|
+
{"version":3,"file":"ThemeProvider.mjs","names":["ThemeProvider","lobeCustomStylish","lobeCustomToken","AntdThemeProvider","AntdConfigProvider"],"sources":["../../src/ThemeProvider/ThemeProvider.tsx"],"sourcesContent":["'use client';\n\nimport { App } from 'antd';\nimport {\n type CustomStylishParams,\n type CustomTokenParams,\n type GetAntdTheme,\n ThemeProvider as AntdThemeProvider,\n} from 'antd-style';\nimport { merge } from 'es-toolkit/compat';\nimport { memo, useCallback, useMemo, useState } from 'react';\n\nimport { useCdnFn } from '@/ConfigProvider';\nimport FontLoader from '@/FontLoader';\nimport { lobeCustomStylish, lobeCustomToken } from '@/styles';\nimport { createLobeAntdTheme } from '@/styles/theme/antdTheme';\nimport { type LobeCustomToken } from '@/types/customToken';\n\nimport AppElementContext from './AppElementContext';\nimport AntdConfigProvider from './ConfigProvider';\nimport { LOBE_THEME_APP_ID } from './constants';\nimport GlobalStyle from './GlobalStyle';\nimport { type ThemeProviderProps } from './type';\n\nconst ThemeProvider = memo<ThemeProviderProps>(\n ({\n children,\n customStylish,\n customToken,\n enableCustomFonts = true,\n enableGlobalStyle = true,\n customFonts,\n customTheme = {},\n className,\n style,\n theme: antdTheme,\n ...rest\n }) => {\n const genCdnUrl = useCdnFn();\n const [appRef, setAppRef] = useState<HTMLDivElement | null>(null);\n\n const webfontUrls = useMemo(\n () =>\n customFonts || [\n genCdnUrl({\n path: 'css/index.css',\n pkg: '@lobehub/webfont-geist-mono',\n version: '1.0.0',\n }),\n genCdnUrl({\n path: 'css/index.css',\n pkg: '@lobehub/webfont-geist',\n version: '1.0.0',\n }),\n genCdnUrl({\n path: 'css/index.css',\n pkg: '@lobehub/webfont-harmony-sans-sc',\n // pkg: '@lobehub/webfont-harmony-sans-sc-mini',\n version: '1.0.0',\n }),\n genCdnUrl({\n path: 'dist/katex.min.css',\n pkg: 'katex',\n version: '0.17.0',\n }),\n ],\n [customFonts, genCdnUrl],\n );\n\n const stylish = useCallback(\n (theme: CustomStylishParams) => ({ ...lobeCustomStylish(theme), ...customStylish?.(theme) }),\n [customStylish],\n );\n\n const token = useCallback(\n (theme: CustomTokenParams) => ({ ...lobeCustomToken(theme), ...customToken?.(theme) }),\n [customToken],\n );\n\n const theme = useCallback<GetAntdTheme>(\n (appearance) => {\n const lobeTheme = createLobeAntdTheme({\n appearance,\n neutralColor: customTheme.neutralColor,\n primaryColor: customTheme.primaryColor,\n });\n return merge(lobeTheme, antdTheme);\n },\n [customTheme.primaryColor, customTheme.neutralColor, antdTheme],\n );\n\n return (\n <>\n {enableCustomFonts &&\n webfontUrls?.length > 0 &&\n webfontUrls.map((webfont) => <FontLoader key={webfont} url={webfont} />)}\n <AntdThemeProvider<LobeCustomToken>\n customStylish={stylish}\n customToken={token}\n theme={theme}\n {...rest}\n >\n <AntdConfigProvider>\n {enableGlobalStyle && <GlobalStyle />}\n\n <App\n className={className}\n style={{ isolation: 'isolate', minHeight: 'inherit', width: 'inherit', ...style }}\n >\n <div id={LOBE_THEME_APP_ID} style={contentsStyle}>\n <AppElementContext value={appRef}>\n {children}\n {/*\n In-tree portal host for Base UI floating components\n (Select, Combobox, etc.). Keeping it inside `<App>` keeps\n the antd-style / emotion theme cascade intact so popups\n render with the correct tokens, while the layout-bearing\n block lets Base UI's Portal actually mount — the outer\n wrapper uses `display: contents` and cannot host portals.\n */}\n <div data-lobe-portal-host=\"\" ref={setAppRef} style={hostPortalHostStyle} />\n </AppElementContext>\n </div>\n </App>\n </AntdConfigProvider>\n </AntdThemeProvider>\n </>\n );\n },\n);\n\nThemeProvider.displayName = 'LobeThemeProvider';\n\nexport default ThemeProvider;\n\nconst hostPortalHostStyle: React.CSSProperties = {\n // `height: 0` keeps the host invisible and gives it no hit region of\n // its own; absolute children (Base UI Positioner) have their own hit\n // region, so we must NOT set `pointer-events: none` here — it would\n // be inherited by popup descendants and break clicks/hover.\n height: 0,\n left: 0,\n // `position: fixed` keeps a stacking context so portaled popups can\n // win over sibling z-indexes. `right: 0` (instead of `width: 0`)\n // gives the host a full viewport-width containing block — without it,\n // Base UI Positioner uses `position: absolute` against a 0-width\n // containing block and collapses text to one character per line.\n position: 'fixed',\n right: 0,\n top: 0,\n zIndex: 1100,\n};\n\nconst contentsStyle: React.CSSProperties = {\n display: 'contents',\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAwBA,MAAMA,kBAAgB,MACnB,EACC,UACA,eACA,aACA,oBAAoB,MACpB,oBAAoB,MACpB,aACA,cAAc,EAAE,EAChB,WACA,OACA,OAAO,WACP,GAAG,WACC;CACJ,MAAM,YAAY,UAAU;CAC5B,MAAM,CAAC,QAAQ,aAAa,SAAgC,KAAK;CAEjE,MAAM,cAAc,cAEhB,eAAe;EACb,UAAU;GACR,MAAM;GACN,KAAK;GACL,SAAS;GACV,CAAC;EACF,UAAU;GACR,MAAM;GACN,KAAK;GACL,SAAS;GACV,CAAC;EACF,UAAU;GACR,MAAM;GACN,KAAK;GAEL,SAAS;GACV,CAAC;EACF,UAAU;GACR,MAAM;GACN,KAAK;GACL,SAAS;GACV,CAAC;EACH,EACH,CAAC,aAAa,UAAU,CACzB;CAED,MAAM,UAAU,aACb,WAAgC;EAAE,GAAGC,sBAAkB,MAAM;EAAE,GAAG,gBAAgB,MAAM;EAAE,GAC3F,CAAC,cAAc,CAChB;CAED,MAAM,QAAQ,aACX,WAA8B;EAAE,GAAGC,oBAAgB,MAAM;EAAE,GAAG,cAAc,MAAM;EAAE,GACrF,CAAC,YAAY,CACd;CAED,MAAM,QAAQ,aACX,eAAe;AAMd,SAAO,MALW,oBAAoB;GACpC;GACA,cAAc,YAAY;GAC1B,cAAc,YAAY;GAC3B,CACqB,EAAE,UAAU;IAEpC;EAAC,YAAY;EAAc,YAAY;EAAc;EAAU,CAChE;AAED,QACE,qBAAA,YAAA,EAAA,UAAA,CACG,qBACC,aAAa,SAAS,KACtB,YAAY,KAAK,YAAY,oBAAC,YAAD,EAA0B,KAAK,SAAW,EAAzB,QAAyB,CAAC,EAC1E,oBAACC,eAAD;EACE,eAAe;EACf,aAAa;EACN;EACP,GAAI;YAEJ,qBAACC,kBAAD,EAAA,UAAA,CACG,qBAAqB,oBAAC,aAAD,EAAe,CAAA,EAErC,oBAAC,KAAD;GACa;GACX,OAAO;IAAE,WAAW;IAAW,WAAW;IAAW,OAAO;IAAW,GAAG;IAAO;aAEjF,oBAAC,OAAD;IAAK,IAAI;IAAmB,OAAO;cACjC,qBAAC,mBAAD;KAAmB,OAAO;eAA1B,CACG,UASD,oBAAC,OAAD;MAAK,yBAAsB;MAAG,KAAK;MAAW,OAAO;MAAuB,CAAA,CAC1D;;IAChB,CAAA;GACF,CAAA,CACa,EAAA,CAAA;EACH,CAAA,CACnB,EAAA,CAAA;EAGR;AAED,gBAAc,cAAc;AAI5B,MAAM,sBAA2C;CAK/C,QAAQ;CACR,MAAM;CAMN,UAAU;CACV,OAAO;CACP,KAAK;CACL,QAAQ;CACT;AAED,MAAM,gBAAqC,EACzC,SAAS,YACV"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonProps } from "./type.mjs";
|
|
2
|
-
import * as _$
|
|
2
|
+
import * as _$react from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/base-ui/Button/Button.d.ts
|
|
5
5
|
declare const Button: {
|
|
@@ -24,7 +24,7 @@ declare const Button: {
|
|
|
24
24
|
target,
|
|
25
25
|
type,
|
|
26
26
|
...rest
|
|
27
|
-
}: ButtonProps): _$
|
|
27
|
+
}: ButtonProps): _$react.JSX.Element;
|
|
28
28
|
displayName: string;
|
|
29
29
|
};
|
|
30
30
|
//#endregion
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as _$react from "react";
|
|
2
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
2
|
|
|
4
3
|
//#region src/base-ui/ContextMenu/ContextMenuHost.d.ts
|
|
5
|
-
declare const ContextMenuHost: _$react.MemoExoticComponent<() => _$
|
|
4
|
+
declare const ContextMenuHost: _$react.MemoExoticComponent<() => _$react.JSX.Element | null>;
|
|
6
5
|
//#endregion
|
|
7
6
|
export { ContextMenuHost };
|
|
8
7
|
//# sourceMappingURL=ContextMenuHost.d.mts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DropdownMenuPlacement } from "./type.mjs";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
3
|
import { Menu } from "@base-ui/react/menu";
|
|
5
4
|
import * as _$_base_ui_react0 from "@base-ui/react";
|
|
6
5
|
|
|
@@ -18,7 +17,7 @@ declare const DropdownMenuTrigger: {
|
|
|
18
17
|
nativeButton,
|
|
19
18
|
ref: refProp,
|
|
20
19
|
...rest
|
|
21
|
-
}: DropdownMenuTriggerProps):
|
|
20
|
+
}: DropdownMenuTriggerProps): React.JSX.Element;
|
|
22
21
|
displayName: string;
|
|
23
22
|
};
|
|
24
23
|
type DropdownMenuPortalProps = React.ComponentProps<typeof Menu.Portal> & {
|
|
@@ -31,7 +30,7 @@ declare const DropdownMenuPortal: {
|
|
|
31
30
|
({
|
|
32
31
|
container,
|
|
33
32
|
...rest
|
|
34
|
-
}: DropdownMenuPortalProps):
|
|
33
|
+
}: DropdownMenuPortalProps): React.JSX.Element;
|
|
35
34
|
displayName: string;
|
|
36
35
|
};
|
|
37
36
|
type DropdownMenuPositionerProps = React.ComponentProps<typeof Menu.Positioner> & {
|
|
@@ -49,7 +48,7 @@ declare const DropdownMenuPositioner: {
|
|
|
49
48
|
children,
|
|
50
49
|
style,
|
|
51
50
|
...rest
|
|
52
|
-
}: DropdownMenuPositionerProps):
|
|
51
|
+
}: DropdownMenuPositionerProps): React.JSX.Element;
|
|
53
52
|
displayName: string;
|
|
54
53
|
};
|
|
55
54
|
type DropdownMenuPopupProps = React.ComponentProps<typeof Menu.Popup>;
|
|
@@ -57,7 +56,7 @@ declare const DropdownMenuPopup: {
|
|
|
57
56
|
({
|
|
58
57
|
className,
|
|
59
58
|
...rest
|
|
60
|
-
}: DropdownMenuPopupProps):
|
|
59
|
+
}: DropdownMenuPopupProps): React.JSX.Element;
|
|
61
60
|
displayName: string;
|
|
62
61
|
};
|
|
63
62
|
type DropdownMenuHeaderProps = React.HTMLAttributes<HTMLDivElement>;
|
|
@@ -65,7 +64,7 @@ declare const DropdownMenuHeader: {
|
|
|
65
64
|
({
|
|
66
65
|
className,
|
|
67
66
|
...rest
|
|
68
|
-
}: DropdownMenuHeaderProps):
|
|
67
|
+
}: DropdownMenuHeaderProps): React.JSX.Element;
|
|
69
68
|
displayName: string;
|
|
70
69
|
};
|
|
71
70
|
type DropdownMenuFooterProps = React.HTMLAttributes<HTMLDivElement>;
|
|
@@ -73,7 +72,7 @@ declare const DropdownMenuFooter: {
|
|
|
73
72
|
({
|
|
74
73
|
className,
|
|
75
74
|
...rest
|
|
76
|
-
}: DropdownMenuFooterProps):
|
|
75
|
+
}: DropdownMenuFooterProps): React.JSX.Element;
|
|
77
76
|
displayName: string;
|
|
78
77
|
};
|
|
79
78
|
type DropdownMenuScrollViewportProps = React.HTMLAttributes<HTMLDivElement>;
|
|
@@ -81,7 +80,7 @@ declare const DropdownMenuScrollViewport: {
|
|
|
81
80
|
({
|
|
82
81
|
className,
|
|
83
82
|
...rest
|
|
84
|
-
}: DropdownMenuScrollViewportProps):
|
|
83
|
+
}: DropdownMenuScrollViewportProps): React.JSX.Element;
|
|
85
84
|
displayName: string;
|
|
86
85
|
};
|
|
87
86
|
type DropdownMenuItemProps = React.ComponentProps<typeof Menu.Item> & {
|
|
@@ -92,7 +91,7 @@ declare const DropdownMenuItem: {
|
|
|
92
91
|
className,
|
|
93
92
|
danger,
|
|
94
93
|
...rest
|
|
95
|
-
}: DropdownMenuItemProps):
|
|
94
|
+
}: DropdownMenuItemProps): React.JSX.Element;
|
|
96
95
|
displayName: string;
|
|
97
96
|
};
|
|
98
97
|
type DropdownMenuCheckboxItemProps = React.ComponentProps<typeof Menu.CheckboxItem> & {
|
|
@@ -103,7 +102,7 @@ declare const DropdownMenuCheckboxItemPrimitive: {
|
|
|
103
102
|
className,
|
|
104
103
|
danger,
|
|
105
104
|
...rest
|
|
106
|
-
}: DropdownMenuCheckboxItemProps):
|
|
105
|
+
}: DropdownMenuCheckboxItemProps): React.JSX.Element;
|
|
107
106
|
displayName: string;
|
|
108
107
|
};
|
|
109
108
|
type DropdownMenuSeparatorProps = React.ComponentProps<typeof Menu.Separator>;
|
|
@@ -111,7 +110,7 @@ declare const DropdownMenuSeparator: {
|
|
|
111
110
|
({
|
|
112
111
|
className,
|
|
113
112
|
...rest
|
|
114
|
-
}: DropdownMenuSeparatorProps):
|
|
113
|
+
}: DropdownMenuSeparatorProps): React.JSX.Element;
|
|
115
114
|
displayName: string;
|
|
116
115
|
};
|
|
117
116
|
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<Omit<_$_base_ui_react0.ContextMenuGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -120,7 +119,7 @@ declare const DropdownMenuGroupLabel: {
|
|
|
120
119
|
({
|
|
121
120
|
className,
|
|
122
121
|
...rest
|
|
123
|
-
}: DropdownMenuGroupLabelProps):
|
|
122
|
+
}: DropdownMenuGroupLabelProps): React.JSX.Element;
|
|
124
123
|
displayName: string;
|
|
125
124
|
};
|
|
126
125
|
type DropdownMenuSubmenuTriggerProps = React.ComponentProps<typeof Menu.SubmenuTrigger> & {
|
|
@@ -131,7 +130,7 @@ declare const DropdownMenuSubmenuTrigger: {
|
|
|
131
130
|
className,
|
|
132
131
|
danger,
|
|
133
132
|
...rest
|
|
134
|
-
}: DropdownMenuSubmenuTriggerProps):
|
|
133
|
+
}: DropdownMenuSubmenuTriggerProps): React.JSX.Element;
|
|
135
134
|
displayName: string;
|
|
136
135
|
};
|
|
137
136
|
type DropdownMenuItemContentProps = React.HTMLAttributes<HTMLDivElement>;
|
|
@@ -139,7 +138,7 @@ declare const DropdownMenuItemContent: {
|
|
|
139
138
|
({
|
|
140
139
|
className,
|
|
141
140
|
...rest
|
|
142
|
-
}: DropdownMenuItemContentProps):
|
|
141
|
+
}: DropdownMenuItemContentProps): React.JSX.Element;
|
|
143
142
|
displayName: string;
|
|
144
143
|
};
|
|
145
144
|
type DropdownMenuItemIconProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
@@ -147,7 +146,7 @@ declare const DropdownMenuItemIcon: {
|
|
|
147
146
|
({
|
|
148
147
|
className,
|
|
149
148
|
...rest
|
|
150
|
-
}: DropdownMenuItemIconProps):
|
|
149
|
+
}: DropdownMenuItemIconProps): React.JSX.Element;
|
|
151
150
|
displayName: string;
|
|
152
151
|
};
|
|
153
152
|
type DropdownMenuItemLabelGroupProps = React.HTMLAttributes<HTMLDivElement>;
|
|
@@ -155,7 +154,7 @@ declare const DropdownMenuItemLabelGroup: {
|
|
|
155
154
|
({
|
|
156
155
|
className,
|
|
157
156
|
...rest
|
|
158
|
-
}: DropdownMenuItemLabelGroupProps):
|
|
157
|
+
}: DropdownMenuItemLabelGroupProps): React.JSX.Element;
|
|
159
158
|
displayName: string;
|
|
160
159
|
};
|
|
161
160
|
type DropdownMenuItemLabelProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
@@ -163,7 +162,7 @@ declare const DropdownMenuItemLabel: {
|
|
|
163
162
|
({
|
|
164
163
|
className,
|
|
165
164
|
...rest
|
|
166
|
-
}: DropdownMenuItemLabelProps):
|
|
165
|
+
}: DropdownMenuItemLabelProps): React.JSX.Element;
|
|
167
166
|
displayName: string;
|
|
168
167
|
};
|
|
169
168
|
type DropdownMenuItemDescProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
@@ -171,7 +170,7 @@ declare const DropdownMenuItemDesc: {
|
|
|
171
170
|
({
|
|
172
171
|
className,
|
|
173
172
|
...rest
|
|
174
|
-
}: DropdownMenuItemDescProps):
|
|
173
|
+
}: DropdownMenuItemDescProps): React.JSX.Element;
|
|
175
174
|
displayName: string;
|
|
176
175
|
};
|
|
177
176
|
type DropdownMenuItemExtraProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
@@ -179,7 +178,7 @@ declare const DropdownMenuItemExtra: {
|
|
|
179
178
|
({
|
|
180
179
|
className,
|
|
181
180
|
...rest
|
|
182
|
-
}: DropdownMenuItemExtraProps):
|
|
181
|
+
}: DropdownMenuItemExtraProps): React.JSX.Element;
|
|
183
182
|
displayName: string;
|
|
184
183
|
};
|
|
185
184
|
type DropdownMenuSubmenuArrowProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
@@ -187,7 +186,7 @@ declare const DropdownMenuSubmenuArrow: {
|
|
|
187
186
|
({
|
|
188
187
|
className,
|
|
189
188
|
...rest
|
|
190
|
-
}: DropdownMenuSubmenuArrowProps):
|
|
189
|
+
}: DropdownMenuSubmenuArrowProps): React.JSX.Element;
|
|
191
190
|
displayName: string;
|
|
192
191
|
};
|
|
193
192
|
type DropdownMenuSwitchItemProps = Omit<React.ComponentProps<typeof Menu.Item>, 'onClick'> & {
|
|
@@ -208,7 +207,7 @@ declare const DropdownMenuSwitchItem: {
|
|
|
208
207
|
onCheckedChange,
|
|
209
208
|
children,
|
|
210
209
|
...rest
|
|
211
|
-
}: DropdownMenuSwitchItemProps):
|
|
210
|
+
}: DropdownMenuSwitchItemProps): React.JSX.Element;
|
|
212
211
|
displayName: string;
|
|
213
212
|
};
|
|
214
213
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingSheetProps } from "./type.mjs";
|
|
2
|
-
import * as _$
|
|
2
|
+
import * as _$react from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/base-ui/FloatingSheet/FloatingSheet.d.ts
|
|
5
5
|
declare function FloatingSheet({
|
|
@@ -21,7 +21,7 @@ declare function FloatingSheet({
|
|
|
21
21
|
closeThreshold,
|
|
22
22
|
children,
|
|
23
23
|
className
|
|
24
|
-
}: FloatingSheetProps): _$
|
|
24
|
+
}: FloatingSheetProps): _$react.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { FloatingSheet };
|
|
27
27
|
//# sourceMappingURL=FloatingSheet.d.mts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
2
|
import { Dialog } from "@base-ui/react/dialog";
|
|
4
3
|
|
|
5
4
|
//#region src/base-ui/Modal/atoms.d.ts
|
|
@@ -16,25 +15,25 @@ declare const ModalRoot: ({
|
|
|
16
15
|
open,
|
|
17
16
|
onExitComplete,
|
|
18
17
|
...rest
|
|
19
|
-
}: ModalRootProps) =>
|
|
18
|
+
}: ModalRootProps) => React.JSX.Element;
|
|
20
19
|
type ModalPortalProps = React.ComponentProps<typeof Dialog.Portal> & {
|
|
21
20
|
container?: HTMLElement | null;
|
|
22
21
|
};
|
|
23
22
|
declare const ModalPortal: ({
|
|
24
23
|
container,
|
|
25
24
|
...rest
|
|
26
|
-
}: ModalPortalProps) =>
|
|
25
|
+
}: ModalPortalProps) => React.JSX.Element;
|
|
27
26
|
type ModalViewportProps = React.ComponentProps<typeof Dialog.Viewport>;
|
|
28
27
|
declare const ModalViewport: ({
|
|
29
28
|
className,
|
|
30
29
|
...rest
|
|
31
|
-
}: ModalViewportProps) =>
|
|
30
|
+
}: ModalViewportProps) => React.JSX.Element;
|
|
32
31
|
type ModalBackdropProps = React.ComponentProps<typeof Dialog.Backdrop>;
|
|
33
32
|
declare const ModalBackdrop: ({
|
|
34
33
|
className,
|
|
35
34
|
style,
|
|
36
35
|
...rest
|
|
37
|
-
}: ModalBackdropProps) =>
|
|
36
|
+
}: ModalBackdropProps) => React.JSX.Element;
|
|
38
37
|
type ModalPopupProps = React.ComponentProps<typeof Dialog.Popup> & {
|
|
39
38
|
motionProps?: Record<string, any>;
|
|
40
39
|
panelClassName?: string;
|
|
@@ -51,19 +50,19 @@ declare const ModalPopup: ({
|
|
|
51
50
|
popupStyle,
|
|
52
51
|
ref: forwardedRef,
|
|
53
52
|
...rest
|
|
54
|
-
}: ModalPopupProps) =>
|
|
53
|
+
}: ModalPopupProps) => React.JSX.Element;
|
|
55
54
|
type ModalHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
56
55
|
ref?: React.Ref<HTMLDivElement>;
|
|
57
56
|
};
|
|
58
57
|
declare const ModalHeader: ({
|
|
59
58
|
className,
|
|
60
59
|
...rest
|
|
61
|
-
}: ModalHeaderProps) =>
|
|
60
|
+
}: ModalHeaderProps) => React.JSX.Element;
|
|
62
61
|
type ModalTitleProps = React.ComponentProps<typeof Dialog.Title>;
|
|
63
62
|
declare const ModalTitle: ({
|
|
64
63
|
className,
|
|
65
64
|
...rest
|
|
66
|
-
}: ModalTitleProps) =>
|
|
65
|
+
}: ModalTitleProps) => React.JSX.Element;
|
|
67
66
|
type ModalDescriptionProps = React.ComponentProps<typeof Dialog.Description>;
|
|
68
67
|
declare const ModalDescription: React.FC<ModalDescriptionProps>;
|
|
69
68
|
type ModalContentProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
@@ -72,20 +71,20 @@ type ModalContentProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
72
71
|
declare const ModalContent: ({
|
|
73
72
|
className,
|
|
74
73
|
...rest
|
|
75
|
-
}: ModalContentProps) =>
|
|
74
|
+
}: ModalContentProps) => React.JSX.Element;
|
|
76
75
|
type ModalFooterProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
77
76
|
ref?: React.Ref<HTMLDivElement>;
|
|
78
77
|
};
|
|
79
78
|
declare const ModalFooter: ({
|
|
80
79
|
className,
|
|
81
80
|
...rest
|
|
82
|
-
}: ModalFooterProps) =>
|
|
81
|
+
}: ModalFooterProps) => React.JSX.Element;
|
|
83
82
|
type ModalCloseProps = React.ComponentProps<typeof Dialog.Close>;
|
|
84
83
|
declare const ModalClose: ({
|
|
85
84
|
className,
|
|
86
85
|
children,
|
|
87
86
|
...rest
|
|
88
|
-
}: ModalCloseProps) =>
|
|
87
|
+
}: ModalCloseProps) => React.JSX.Element;
|
|
89
88
|
type ModalTriggerProps = Omit<React.ComponentPropsWithRef<typeof Dialog.Trigger>, 'children' | 'render'> & {
|
|
90
89
|
children?: React.ReactNode;
|
|
91
90
|
nativeButton?: boolean;
|
|
@@ -96,7 +95,7 @@ declare const ModalTrigger: ({
|
|
|
96
95
|
nativeButton,
|
|
97
96
|
ref: refProp,
|
|
98
97
|
...rest
|
|
99
|
-
}: ModalTriggerProps) =>
|
|
98
|
+
}: ModalTriggerProps) => React.JSX.Element;
|
|
100
99
|
//#endregion
|
|
101
100
|
export { ModalBackdrop, ModalBackdropProps, ModalClose, ModalCloseProps, ModalContent, ModalContentProps, ModalDescription, ModalDescriptionProps, ModalFooter, ModalFooterProps, ModalHeader, ModalHeaderProps, ModalPopup, ModalPopupProps, ModalPortal, ModalPortalProps, ModalRoot, ModalRootProps, ModalTitle, ModalTitleProps, ModalTrigger, ModalTriggerProps, ModalViewport, ModalViewportProps, useModalActions, useModalOpen };
|
|
102
101
|
//# sourceMappingURL=atoms.d.mts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as _$
|
|
1
|
+
import * as _$react from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/base-ui/Popover/ArrowIcon.d.ts
|
|
4
|
-
declare const PopoverArrowIcon: _$
|
|
4
|
+
declare const PopoverArrowIcon: _$react.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { PopoverArrowIcon };
|
|
7
7
|
//# sourceMappingURL=ArrowIcon.d.mts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PopoverPlacement } from "./type.mjs";
|
|
2
2
|
import * as _$react from "react";
|
|
3
3
|
import { ComponentProps, ComponentPropsWithRef } from "react";
|
|
4
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
4
|
import { Popover } from "@base-ui/react/popover";
|
|
6
5
|
import * as _$_base_ui_react0 from "@base-ui/react";
|
|
7
6
|
|
|
@@ -18,7 +17,7 @@ declare const PopoverTriggerElement: {
|
|
|
18
17
|
nativeButton,
|
|
19
18
|
ref: refProp,
|
|
20
19
|
...rest
|
|
21
|
-
}: PopoverTriggerElementProps): _$
|
|
20
|
+
}: PopoverTriggerElementProps): _$react.JSX.Element;
|
|
22
21
|
displayName: string;
|
|
23
22
|
};
|
|
24
23
|
type PopoverPortalAtomProps = Omit<ComponentProps<typeof Popover.Portal>, 'container'> & {
|
|
@@ -37,7 +36,7 @@ declare const PopoverPortal: {
|
|
|
37
36
|
root,
|
|
38
37
|
children,
|
|
39
38
|
...rest
|
|
40
|
-
}: PopoverPortalAtomProps): _$
|
|
39
|
+
}: PopoverPortalAtomProps): _$react.JSX.Element | null;
|
|
41
40
|
displayName: string;
|
|
42
41
|
};
|
|
43
42
|
type PopoverPositionerAtomProps = ComponentProps<typeof Popover.Positioner> & {
|
|
@@ -55,7 +54,7 @@ declare const PopoverPositioner: {
|
|
|
55
54
|
sideOffset,
|
|
56
55
|
style,
|
|
57
56
|
...rest
|
|
58
|
-
}: PopoverPositionerAtomProps): _$
|
|
57
|
+
}: PopoverPositionerAtomProps): _$react.JSX.Element;
|
|
59
58
|
displayName: string;
|
|
60
59
|
};
|
|
61
60
|
type PopoverPopupAtomProps = ComponentProps<typeof Popover.Popup>;
|
|
@@ -63,7 +62,7 @@ declare const PopoverPopup: {
|
|
|
63
62
|
({
|
|
64
63
|
className,
|
|
65
64
|
...rest
|
|
66
|
-
}: PopoverPopupAtomProps): _$
|
|
65
|
+
}: PopoverPopupAtomProps): _$react.JSX.Element;
|
|
67
66
|
displayName: string;
|
|
68
67
|
};
|
|
69
68
|
type PopoverArrowAtomProps = ComponentProps<typeof Popover.Arrow>;
|
|
@@ -72,7 +71,7 @@ declare const PopoverArrow: {
|
|
|
72
71
|
className,
|
|
73
72
|
children,
|
|
74
73
|
...rest
|
|
75
|
-
}: PopoverArrowAtomProps): _$
|
|
74
|
+
}: PopoverArrowAtomProps): _$react.JSX.Element;
|
|
76
75
|
displayName: string;
|
|
77
76
|
};
|
|
78
77
|
type PopoverViewportAtomProps = ComponentProps<typeof Popover.Viewport>;
|
|
@@ -80,7 +79,7 @@ declare const PopoverViewport: {
|
|
|
80
79
|
({
|
|
81
80
|
className,
|
|
82
81
|
...rest
|
|
83
|
-
}: PopoverViewportAtomProps): _$
|
|
82
|
+
}: PopoverViewportAtomProps): _$react.JSX.Element;
|
|
84
83
|
displayName: string;
|
|
85
84
|
};
|
|
86
85
|
//#endregion
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
2
|
import { ScrollArea } from "@base-ui/react/scroll-area";
|
|
4
3
|
|
|
5
4
|
//#region src/base-ui/ScrollArea/atoms.d.ts
|
|
@@ -26,7 +25,7 @@ declare const ScrollAreaRoot: {
|
|
|
26
25
|
({
|
|
27
26
|
className,
|
|
28
27
|
...rest
|
|
29
|
-
}: ScrollAreaRootProps):
|
|
28
|
+
}: ScrollAreaRootProps): React.JSX.Element;
|
|
30
29
|
displayName: string;
|
|
31
30
|
};
|
|
32
31
|
declare const ScrollAreaViewport: {
|
|
@@ -34,35 +33,35 @@ declare const ScrollAreaViewport: {
|
|
|
34
33
|
className,
|
|
35
34
|
scrollFade,
|
|
36
35
|
...rest
|
|
37
|
-
}: ScrollAreaViewportProps):
|
|
36
|
+
}: ScrollAreaViewportProps): React.JSX.Element;
|
|
38
37
|
displayName: string;
|
|
39
38
|
};
|
|
40
39
|
declare const ScrollAreaContent: {
|
|
41
40
|
({
|
|
42
41
|
className,
|
|
43
42
|
...rest
|
|
44
|
-
}: ScrollAreaContentProps):
|
|
43
|
+
}: ScrollAreaContentProps): React.JSX.Element;
|
|
45
44
|
displayName: string;
|
|
46
45
|
};
|
|
47
46
|
declare const ScrollAreaScrollbar: {
|
|
48
47
|
({
|
|
49
48
|
className,
|
|
50
49
|
...rest
|
|
51
|
-
}: ScrollAreaScrollbarProps):
|
|
50
|
+
}: ScrollAreaScrollbarProps): React.JSX.Element;
|
|
52
51
|
displayName: string;
|
|
53
52
|
};
|
|
54
53
|
declare const ScrollAreaThumb: {
|
|
55
54
|
({
|
|
56
55
|
className,
|
|
57
56
|
...rest
|
|
58
|
-
}: ScrollAreaThumbProps):
|
|
57
|
+
}: ScrollAreaThumbProps): React.JSX.Element;
|
|
59
58
|
displayName: string;
|
|
60
59
|
};
|
|
61
60
|
declare const ScrollAreaCorner: {
|
|
62
61
|
({
|
|
63
62
|
className,
|
|
64
63
|
...rest
|
|
65
|
-
}: ScrollAreaCornerProps):
|
|
64
|
+
}: ScrollAreaCornerProps): React.JSX.Element;
|
|
66
65
|
displayName: string;
|
|
67
66
|
};
|
|
68
67
|
//#endregion
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SelectSize, SelectVariant } from "./type.mjs";
|
|
2
2
|
import * as _$react from "react";
|
|
3
3
|
import { ComponentProps, ComponentPropsWithRef } from "react";
|
|
4
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
4
|
import { Select } from "@base-ui/react/select";
|
|
6
5
|
import * as _$_base_ui_react0 from "@base-ui/react";
|
|
7
6
|
|
|
@@ -25,7 +24,7 @@ declare const SelectTrigger: {
|
|
|
25
24
|
variant,
|
|
26
25
|
ref: refProp,
|
|
27
26
|
...rest
|
|
28
|
-
}: SelectTriggerProps): _$
|
|
27
|
+
}: SelectTriggerProps): _$react.JSX.Element;
|
|
29
28
|
displayName: string;
|
|
30
29
|
};
|
|
31
30
|
type SelectIconProps = ComponentProps<typeof Select.Icon>;
|
|
@@ -33,7 +32,7 @@ declare const SelectIcon: {
|
|
|
33
32
|
({
|
|
34
33
|
className,
|
|
35
34
|
...rest
|
|
36
|
-
}: SelectIconProps): _$
|
|
35
|
+
}: SelectIconProps): _$react.JSX.Element;
|
|
37
36
|
displayName: string;
|
|
38
37
|
};
|
|
39
38
|
type SelectValueProps = ComponentProps<typeof Select.Value>;
|
|
@@ -41,7 +40,7 @@ declare const SelectValue: {
|
|
|
41
40
|
({
|
|
42
41
|
className,
|
|
43
42
|
...rest
|
|
44
|
-
}: SelectValueProps): _$
|
|
43
|
+
}: SelectValueProps): _$react.JSX.Element;
|
|
45
44
|
displayName: string;
|
|
46
45
|
};
|
|
47
46
|
type SelectPortalProps = ComponentProps<typeof Select.Portal> & {
|
|
@@ -54,7 +53,7 @@ declare const SelectPortal: {
|
|
|
54
53
|
({
|
|
55
54
|
container,
|
|
56
55
|
...rest
|
|
57
|
-
}: SelectPortalProps): _$
|
|
56
|
+
}: SelectPortalProps): _$react.JSX.Element;
|
|
58
57
|
displayName: string;
|
|
59
58
|
};
|
|
60
59
|
type SelectPositionerProps = ComponentProps<typeof Select.Positioner>;
|
|
@@ -68,7 +67,7 @@ declare const SelectPositioner: {
|
|
|
68
67
|
style,
|
|
69
68
|
ref: forwardedRef,
|
|
70
69
|
...rest
|
|
71
|
-
}: SelectPositionerProps): _$
|
|
70
|
+
}: SelectPositionerProps): _$react.JSX.Element;
|
|
72
71
|
displayName: string;
|
|
73
72
|
};
|
|
74
73
|
type SelectPopupProps = ComponentProps<typeof Select.Popup>;
|
|
@@ -76,7 +75,7 @@ declare const SelectPopup: {
|
|
|
76
75
|
({
|
|
77
76
|
className,
|
|
78
77
|
...rest
|
|
79
|
-
}: SelectPopupProps): _$
|
|
78
|
+
}: SelectPopupProps): _$react.JSX.Element;
|
|
80
79
|
displayName: string;
|
|
81
80
|
};
|
|
82
81
|
type SelectListProps = ComponentProps<typeof Select.List>;
|
|
@@ -84,7 +83,7 @@ declare const SelectList: {
|
|
|
84
83
|
({
|
|
85
84
|
className,
|
|
86
85
|
...rest
|
|
87
|
-
}: SelectListProps): _$
|
|
86
|
+
}: SelectListProps): _$react.JSX.Element;
|
|
88
87
|
displayName: string;
|
|
89
88
|
};
|
|
90
89
|
type SelectItemProps = ComponentProps<typeof Select.Item>;
|
|
@@ -92,7 +91,7 @@ declare const SelectItem: {
|
|
|
92
91
|
({
|
|
93
92
|
className,
|
|
94
93
|
...rest
|
|
95
|
-
}: SelectItemProps): _$
|
|
94
|
+
}: SelectItemProps): _$react.JSX.Element;
|
|
96
95
|
displayName: string;
|
|
97
96
|
};
|
|
98
97
|
type SelectItemTextProps = ComponentProps<typeof Select.ItemText>;
|
|
@@ -100,7 +99,7 @@ declare const SelectItemText: {
|
|
|
100
99
|
({
|
|
101
100
|
className,
|
|
102
101
|
...rest
|
|
103
|
-
}: SelectItemTextProps): _$
|
|
102
|
+
}: SelectItemTextProps): _$react.JSX.Element;
|
|
104
103
|
displayName: string;
|
|
105
104
|
};
|
|
106
105
|
type SelectItemIndicatorProps = ComponentProps<typeof Select.ItemIndicator>;
|
|
@@ -108,7 +107,7 @@ declare const SelectItemIndicator: {
|
|
|
108
107
|
({
|
|
109
108
|
className,
|
|
110
109
|
...rest
|
|
111
|
-
}: SelectItemIndicatorProps): _$
|
|
110
|
+
}: SelectItemIndicatorProps): _$react.JSX.Element;
|
|
112
111
|
displayName: string;
|
|
113
112
|
};
|
|
114
113
|
type SelectGroupProps = ComponentProps<typeof Select.Group>;
|
|
@@ -116,7 +115,7 @@ declare const SelectGroup: {
|
|
|
116
115
|
({
|
|
117
116
|
className,
|
|
118
117
|
...rest
|
|
119
|
-
}: SelectGroupProps): _$
|
|
118
|
+
}: SelectGroupProps): _$react.JSX.Element;
|
|
120
119
|
displayName: string;
|
|
121
120
|
};
|
|
122
121
|
type SelectGroupLabelProps = ComponentProps<typeof Select.GroupLabel>;
|
|
@@ -124,7 +123,7 @@ declare const SelectGroupLabel: {
|
|
|
124
123
|
({
|
|
125
124
|
className,
|
|
126
125
|
...rest
|
|
127
|
-
}: SelectGroupLabelProps): _$
|
|
126
|
+
}: SelectGroupLabelProps): _$react.JSX.Element;
|
|
128
127
|
displayName: string;
|
|
129
128
|
};
|
|
130
129
|
type SelectScrollUpArrowProps = ComponentProps<typeof Select.ScrollUpArrow>;
|
|
@@ -132,7 +131,7 @@ declare const SelectScrollUpArrow: {
|
|
|
132
131
|
({
|
|
133
132
|
className,
|
|
134
133
|
...rest
|
|
135
|
-
}: SelectScrollUpArrowProps): _$
|
|
134
|
+
}: SelectScrollUpArrowProps): _$react.JSX.Element;
|
|
136
135
|
displayName: string;
|
|
137
136
|
};
|
|
138
137
|
type SelectScrollDownArrowProps = ComponentProps<typeof Select.ScrollDownArrow>;
|
|
@@ -140,7 +139,7 @@ declare const SelectScrollDownArrow: {
|
|
|
140
139
|
({
|
|
141
140
|
className,
|
|
142
141
|
...rest
|
|
143
|
-
}: SelectScrollDownArrowProps): _$
|
|
142
|
+
}: SelectScrollDownArrowProps): _$react.JSX.Element;
|
|
144
143
|
displayName: string;
|
|
145
144
|
};
|
|
146
145
|
type SelectArrowProps = ComponentProps<typeof Select.Arrow>;
|
|
@@ -148,7 +147,7 @@ declare const SelectArrow: {
|
|
|
148
147
|
({
|
|
149
148
|
className,
|
|
150
149
|
...rest
|
|
151
|
-
}: SelectArrowProps): _$
|
|
150
|
+
}: SelectArrowProps): _$react.JSX.Element;
|
|
152
151
|
displayName: string;
|
|
153
152
|
};
|
|
154
153
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SwitchChangeEventHandler, SwitchContextType, SwitchIconProps, SwitchRootProps, SwitchThumbProps } from "./type.mjs";
|
|
2
2
|
import { styles } from "./style.mjs";
|
|
3
|
-
import * as _$
|
|
3
|
+
import * as _$react from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/base-ui/Switch/atoms.d.ts
|
|
6
6
|
declare const useSwitchContext: () => SwitchContextType;
|
|
@@ -24,7 +24,7 @@ declare const SwitchRoot: {
|
|
|
24
24
|
id,
|
|
25
25
|
name,
|
|
26
26
|
...rest
|
|
27
|
-
}: SwitchRootInternalProps): _$
|
|
27
|
+
}: SwitchRootInternalProps): _$react.JSX.Element;
|
|
28
28
|
displayName: string;
|
|
29
29
|
};
|
|
30
30
|
declare const SwitchThumb: {
|
|
@@ -35,7 +35,7 @@ declare const SwitchThumb: {
|
|
|
35
35
|
transition,
|
|
36
36
|
children,
|
|
37
37
|
...rest
|
|
38
|
-
}: SwitchThumbProps): _$
|
|
38
|
+
}: SwitchThumbProps): _$react.JSX.Element;
|
|
39
39
|
displayName: string;
|
|
40
40
|
};
|
|
41
41
|
declare const SwitchIcon: {
|
|
@@ -46,7 +46,7 @@ declare const SwitchIcon: {
|
|
|
46
46
|
size,
|
|
47
47
|
transition,
|
|
48
48
|
...rest
|
|
49
|
-
}: SwitchIconProps): _$
|
|
49
|
+
}: SwitchIconProps): _$react.JSX.Element;
|
|
50
50
|
displayName: string;
|
|
51
51
|
};
|
|
52
52
|
//#endregion
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ToastAPI, ToastPosition } from "./type.mjs";
|
|
2
2
|
import * as _$react from "react";
|
|
3
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
3
|
|
|
5
4
|
//#region src/base-ui/Toast/imperative.d.ts
|
|
6
5
|
declare const toast: ToastAPI;
|
|
@@ -38,7 +37,7 @@ declare const ToastHost: _$react.MemoExoticComponent<({
|
|
|
38
37
|
limit,
|
|
39
38
|
position,
|
|
40
39
|
swipeDirection
|
|
41
|
-
}: ToastHostProps) => _$
|
|
40
|
+
}: ToastHostProps) => _$react.JSX.Element[] | null>;
|
|
42
41
|
declare const useToast: () => ToastAPI;
|
|
43
42
|
//#endregion
|
|
44
43
|
export { ToastHost, ToastHostProps, toast, useToast };
|
|
@@ -1,23 +1,64 @@
|
|
|
1
1
|
//#region src/styles/theme/token/base.ts
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
|
|
2
|
+
const joinFontFamily = (fonts) => fonts.map((font) => font.includes(" ") ? `"${font}"` : font).join(",");
|
|
3
|
+
const FONT_EMOJI = [
|
|
4
|
+
"/* EMOJI */",
|
|
5
|
+
"Apple Color Emoji",
|
|
6
|
+
"Segoe UI Emoji",
|
|
7
|
+
"Segoe UI Symbol",
|
|
8
|
+
"Noto Color Emoji"
|
|
9
|
+
];
|
|
10
|
+
const FONT_EN = [
|
|
11
|
+
"Geist",
|
|
12
|
+
"-apple-system",
|
|
13
|
+
"BlinkMacSystemFont",
|
|
14
|
+
"Segoe UI Variable Display",
|
|
15
|
+
"Segoe UI",
|
|
16
|
+
"Roboto",
|
|
17
|
+
"Helvetica Neue",
|
|
18
|
+
"Arial"
|
|
19
|
+
];
|
|
20
|
+
const FONT_CN = [
|
|
21
|
+
"/* SC */",
|
|
22
|
+
"HarmonyOS Sans SC",
|
|
23
|
+
"PingFang SC",
|
|
24
|
+
"Hiragino Sans GB",
|
|
25
|
+
"Microsoft YaHei UI",
|
|
26
|
+
"Microsoft YaHei",
|
|
27
|
+
"Source Han Sans SC",
|
|
28
|
+
"Noto Sans CJK SC"
|
|
29
|
+
];
|
|
5
30
|
const baseToken = {
|
|
6
31
|
borderRadius: 8,
|
|
7
32
|
borderRadiusLG: 12,
|
|
8
33
|
borderRadiusSM: 6,
|
|
9
34
|
borderRadiusXS: 4,
|
|
10
35
|
controlHeight: 36,
|
|
11
|
-
fontFamily: [
|
|
36
|
+
fontFamily: joinFontFamily([
|
|
12
37
|
FONT_EN,
|
|
13
38
|
FONT_CN,
|
|
39
|
+
[
|
|
40
|
+
"/* FALLBACK */",
|
|
41
|
+
"ui-sans-serif",
|
|
42
|
+
"system-ui",
|
|
43
|
+
"sans-serif"
|
|
44
|
+
],
|
|
14
45
|
FONT_EMOJI
|
|
15
|
-
].
|
|
16
|
-
fontFamilyCode: [
|
|
17
|
-
|
|
46
|
+
].flat()),
|
|
47
|
+
fontFamilyCode: joinFontFamily([
|
|
48
|
+
[
|
|
49
|
+
"Geist Mono",
|
|
50
|
+
"ui-monospace",
|
|
51
|
+
"SFMono-Regular",
|
|
52
|
+
"SF Mono",
|
|
53
|
+
"Menlo",
|
|
54
|
+
"Cascadia Code",
|
|
55
|
+
"Consolas",
|
|
56
|
+
"Liberation Mono"
|
|
57
|
+
],
|
|
18
58
|
FONT_CN,
|
|
59
|
+
["/* FALLBACK */", "monospace"],
|
|
19
60
|
FONT_EMOJI
|
|
20
|
-
].
|
|
61
|
+
].flat())
|
|
21
62
|
};
|
|
22
63
|
//#endregion
|
|
23
64
|
export { baseToken };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.mjs","names":[],"sources":["../../../../src/styles/theme/token/base.ts"],"sourcesContent":["import type { AliasToken } from 'antd/es/theme/interface';\n\nconst
|
|
1
|
+
{"version":3,"file":"base.mjs","names":[],"sources":["../../../../src/styles/theme/token/base.ts"],"sourcesContent":["import type { AliasToken } from 'antd/es/theme/interface';\n\nconst joinFontFamily = (fonts: string[]) =>\n fonts.map((font) => (font.includes(' ') ? `\"${font}\"` : font)).join(',');\n\nconst FONT_EMOJI = [\n '/* EMOJI */',\n 'Apple Color Emoji',\n 'Segoe UI Emoji',\n 'Segoe UI Symbol',\n 'Noto Color Emoji',\n];\n\nconst FONT_EN = [\n 'Geist',\n '-apple-system',\n 'BlinkMacSystemFont',\n 'Segoe UI Variable Display',\n 'Segoe UI',\n 'Roboto',\n 'Helvetica Neue',\n 'Arial',\n];\n\nconst FONT_CN = [\n '/* SC */',\n 'HarmonyOS Sans SC',\n 'PingFang SC',\n 'Hiragino Sans GB',\n 'Microsoft YaHei UI',\n 'Microsoft YaHei',\n 'Source Han Sans SC',\n 'Noto Sans CJK SC',\n];\n\nconst FONT_CODE = [\n 'Geist Mono',\n 'ui-monospace',\n 'SFMono-Regular',\n 'SF Mono',\n 'Menlo',\n 'Cascadia Code',\n 'Consolas',\n 'Liberation Mono',\n];\n\nconst FALLBACK = ['/* FALLBACK */', 'ui-sans-serif', 'system-ui', 'sans-serif'];\n\nconst FALLBACK_CODE = ['/* FALLBACK */', 'monospace'];\n\nexport const baseToken: Partial<AliasToken> = {\n borderRadius: 8,\n borderRadiusLG: 12,\n borderRadiusSM: 6,\n borderRadiusXS: 4,\n controlHeight: 36,\n fontFamily: joinFontFamily([FONT_EN, FONT_CN, FALLBACK, FONT_EMOJI].flat()),\n fontFamilyCode: joinFontFamily([FONT_CODE, FONT_CN, FALLBACK_CODE, FONT_EMOJI].flat()),\n};\n"],"mappings":";AAEA,MAAM,kBAAkB,UACtB,MAAM,KAAK,SAAU,KAAK,SAAS,IAAI,GAAG,IAAI,KAAK,KAAK,KAAM,CAAC,KAAK,IAAI;AAE1E,MAAM,aAAa;CACjB;CACA;CACA;CACA;CACA;CACD;AAED,MAAM,UAAU;CACd;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAED,MAAM,UAAU;CACd;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAiBD,MAAa,YAAiC;CAC5C,cAAc;CACd,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,eAAe;CACf,YAAY,eAAe;EAAC;EAAS;EAAS;GAV9B;GAAkB;GAAiB;GAAa;GAUlB;EAAU;EAAW,CAAC,MAAM,CAAC;CAC3E,gBAAgB,eAAe;EAAC;GArBhC;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GAcgC;EAAW;EAAS,CAT/B,kBAAkB,YASa;EAAe;EAAW,CAAC,MAAM,CAAC;CACvF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/ui",
|
|
3
|
-
"version": "5.15.
|
|
3
|
+
"version": "5.15.15",
|
|
4
4
|
"description": "Lobe UI is an open-source UI component library for building AIGC web apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -149,29 +149,29 @@
|
|
|
149
149
|
"@mdx-js/mdx": "^3.1.1",
|
|
150
150
|
"@mdx-js/react": "^3.1.1",
|
|
151
151
|
"@pierre/diffs": "1.2.8",
|
|
152
|
-
"@radix-ui/react-slot": "^1.2.
|
|
153
|
-
"@shikijs/core": "^4.0
|
|
154
|
-
"@shikijs/transformers": "^4.0
|
|
152
|
+
"@radix-ui/react-slot": "^1.2.5",
|
|
153
|
+
"@shikijs/core": "^4.2.0",
|
|
154
|
+
"@shikijs/transformers": "^4.2.0",
|
|
155
155
|
"@splinetool/runtime": "0.9.526",
|
|
156
156
|
"ahooks": "^3.9.7",
|
|
157
157
|
"antd-style": "^4.1.0",
|
|
158
158
|
"chroma-js": "^3.2.0",
|
|
159
159
|
"class-variance-authority": "^0.7.1",
|
|
160
160
|
"clsx": "^2.1.1",
|
|
161
|
-
"dayjs": "^1.11.
|
|
161
|
+
"dayjs": "^1.11.21",
|
|
162
162
|
"emoji-mart": "^5.6.0",
|
|
163
|
-
"es-toolkit": "^1.
|
|
163
|
+
"es-toolkit": "^1.47.0",
|
|
164
164
|
"fast-deep-equal": "^3.1.3",
|
|
165
|
-
"immer": "^11.1.
|
|
166
|
-
"katex": "^0.16.
|
|
165
|
+
"immer": "^11.1.8",
|
|
166
|
+
"katex": "^0.16.47",
|
|
167
167
|
"leva": "^0.10.1",
|
|
168
|
-
"lucide-react": "^1.
|
|
168
|
+
"lucide-react": "^1.17.0",
|
|
169
169
|
"marked": "^17.0.6",
|
|
170
|
-
"mermaid": "^11.
|
|
171
|
-
"motion": "^12.
|
|
170
|
+
"mermaid": "^11.15.0",
|
|
171
|
+
"motion": "^12.40.0",
|
|
172
172
|
"numeral": "^2.0.6",
|
|
173
173
|
"polished": "^4.3.1",
|
|
174
|
-
"query-string": "^9.
|
|
174
|
+
"query-string": "^9.4.0",
|
|
175
175
|
"rc-collapse": "^4.0.0",
|
|
176
176
|
"rc-footer": "^0.6.8",
|
|
177
177
|
"rc-image": "^7.12.0",
|
|
@@ -179,8 +179,8 @@
|
|
|
179
179
|
"rc-menu": "^9.16.1",
|
|
180
180
|
"re-resizable": "^6.11.2",
|
|
181
181
|
"react-avatar-editor": "^15.1.0",
|
|
182
|
-
"react-error-boundary": "^6.1.
|
|
183
|
-
"react-hotkeys-hook": "^5.2
|
|
182
|
+
"react-error-boundary": "^6.1.2",
|
|
183
|
+
"react-hotkeys-hook": "^5.3.2",
|
|
184
184
|
"react-markdown": "^10.1.0",
|
|
185
185
|
"react-merge-refs": "^3.0.2",
|
|
186
186
|
"react-rnd": "^10.5.3",
|
|
@@ -194,37 +194,37 @@
|
|
|
194
194
|
"remark-github": "^12.0.0",
|
|
195
195
|
"remark-math": "^6.0.0",
|
|
196
196
|
"remend": "^1.3.0",
|
|
197
|
-
"shiki": "^4.0
|
|
198
|
-
"shiki-stream": "^0.1.
|
|
197
|
+
"shiki": "^4.2.0",
|
|
198
|
+
"shiki-stream": "^0.1.5",
|
|
199
199
|
"swr": "^2.4.1",
|
|
200
200
|
"ts-md5": "^2.0.1",
|
|
201
201
|
"unified": "^11.0.5",
|
|
202
202
|
"url-join": "^5.0.0",
|
|
203
203
|
"use-merge-value": "^1.2.0",
|
|
204
|
-
"uuid": "^13.0.
|
|
204
|
+
"uuid": "^13.0.2",
|
|
205
205
|
"virtua": "^0.49.1"
|
|
206
206
|
},
|
|
207
207
|
"devDependencies": {
|
|
208
|
-
"@ant-design/icons": "^6.
|
|
208
|
+
"@ant-design/icons": "^6.2.5",
|
|
209
209
|
"@commitlint/cli": "^19.8.1",
|
|
210
210
|
"@lobehub/eslint-config": "2.0.0",
|
|
211
211
|
"@lobehub/fluent-emoji": "^4.1.0",
|
|
212
|
-
"@lobehub/icons": "^5.
|
|
212
|
+
"@lobehub/icons": "^5.10.0",
|
|
213
213
|
"@lobehub/lint": "^2.1.5",
|
|
214
214
|
"@testing-library/react": "^16.3.2",
|
|
215
215
|
"@types/chroma-js": "^3.1.2",
|
|
216
216
|
"@types/hast": "^3.0.4",
|
|
217
217
|
"@types/katex": "^0.16.8",
|
|
218
|
-
"@types/mdx": "^2.0.
|
|
218
|
+
"@types/mdx": "^2.0.14",
|
|
219
219
|
"@types/numeral": "^2.0.5",
|
|
220
220
|
"@types/pangu": "^4.0.2",
|
|
221
|
-
"@types/react": "^19.2.
|
|
221
|
+
"@types/react": "^19.2.17",
|
|
222
222
|
"@types/react-dom": "^19.2.3",
|
|
223
223
|
"@types/unist": "^3.0.3",
|
|
224
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
225
|
-
"@typescript-eslint/parser": "^8.
|
|
226
|
-
"@vitest/coverage-v8": "^3.2.
|
|
227
|
-
"antd": "^6.3
|
|
224
|
+
"@typescript-eslint/eslint-plugin": "^8.61.0",
|
|
225
|
+
"@typescript-eslint/parser": "^8.61.0",
|
|
226
|
+
"@vitest/coverage-v8": "^3.2.6",
|
|
227
|
+
"antd": "^6.4.3",
|
|
228
228
|
"babel-plugin-antd-style": "^1.0.4",
|
|
229
229
|
"cheerio": "^1.2.0",
|
|
230
230
|
"clean-package": "^2.2.0",
|
|
@@ -232,8 +232,8 @@
|
|
|
232
232
|
"concurrently": "^9.2.1",
|
|
233
233
|
"cross-env": "^10.1.0",
|
|
234
234
|
"dotenv": "^17.4.2",
|
|
235
|
-
"dpdm": "^4.0
|
|
236
|
-
"dumi": "^2.4.
|
|
235
|
+
"dpdm": "^4.2.0",
|
|
236
|
+
"dumi": "^2.4.30",
|
|
237
237
|
"dumi-theme-lobehub": "^5.0.0",
|
|
238
238
|
"eslint": "^9.39.4",
|
|
239
239
|
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
@@ -242,23 +242,23 @@
|
|
|
242
242
|
"jsdom": "^26.1.0",
|
|
243
243
|
"lint-staged": "^16.4.0",
|
|
244
244
|
"mdast-util-to-markdown": "^2.1.2",
|
|
245
|
-
"prettier": "^3.8.
|
|
245
|
+
"prettier": "^3.8.4",
|
|
246
246
|
"prettier-plugin-packagejson": "^3.0.2",
|
|
247
247
|
"prettier-plugin-sh": "^0.18.1",
|
|
248
248
|
"prettier-plugin-sort-json": "^4.2.0",
|
|
249
|
-
"react": "^19.2.
|
|
250
|
-
"react-dom": "^19.2.
|
|
249
|
+
"react": "^19.2.7",
|
|
250
|
+
"react-dom": "^19.2.7",
|
|
251
251
|
"remark": "^15.0.1",
|
|
252
252
|
"remark-cli": "^12.0.1",
|
|
253
253
|
"semantic-release": "^21.1.2",
|
|
254
254
|
"stylelint": "^16.26.1",
|
|
255
255
|
"svgo": "^4.0.1",
|
|
256
256
|
"tsdown": "^0.21.10",
|
|
257
|
-
"tsx": "^4.
|
|
257
|
+
"tsx": "^4.22.4",
|
|
258
258
|
"typescript": "^6.0.3",
|
|
259
259
|
"unist-util-is": "^6.0.1",
|
|
260
260
|
"unist-util-visit": "^5.1.0",
|
|
261
|
-
"vitest": "^3.2.
|
|
261
|
+
"vitest": "^3.2.6"
|
|
262
262
|
},
|
|
263
263
|
"peerDependencies": {
|
|
264
264
|
"@lobehub/fluent-emoji": "^4.0.0",
|