@lobehub/ui 6.0.0-beta.1 → 6.0.0-beta.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/README.md +3 -1
- package/es/Accordion/style.d.mts +2 -2
- package/es/ActionIcon/type.d.mts +1 -0
- package/es/Alert/type.d.mts +1 -0
- package/es/AutoComplete/style.d.mts +2 -1
- package/es/AutoComplete/type.d.mts +1 -0
- package/es/Button/type.d.mts +1 -0
- package/es/Checkbox/type.d.mts +1 -0
- package/es/ColorSwatches/type.d.mts +1 -0
- package/es/Drawer/atoms.d.mts +1 -0
- package/es/Drawer/constants.d.mts +1 -0
- package/es/FileTypeIcon/type.d.mts +1 -0
- package/es/Form/type.d.mts +1 -0
- package/es/GroupAvatar/type.d.mts +1 -0
- package/es/Highlighter/const.d.mts +1 -0
- package/es/Input/style.d.mts +1 -0
- package/es/Input/type.d.mts +1 -0
- package/es/Markdown/plugins/remarkColor.d.mts +1 -0
- package/es/Markdown/plugins/remarkGfmPlus.d.mts +1 -0
- package/es/Markdown/plugins/remarkVideo.d.mts +1 -0
- package/es/Mermaid/const.d.mts +1 -0
- package/es/Modal/atoms.d.mts +1 -0
- package/es/Modal/constants.d.mts +1 -0
- package/es/Modal/type.d.mts +1 -0
- package/es/Radio/type.d.mts +1 -0
- package/es/Segmented/atoms.d.mts +1 -0
- package/es/Slider/type.d.mts +1 -0
- package/es/Switch/atoms.d.mts +1 -0
- package/es/Tabs/style.d.mts +1 -1
- package/es/Text/style.d.mts +2 -1
- package/es/ToggleGroup/atoms.d.mts +1 -0
- package/es/color/types.d.mts +1 -0
- package/es/hooks/useMarkdown/utils.d.mts +1 -0
- package/es/i18n/types.d.mts +1 -0
- package/es/internal/menu/itemInterface.d.mts +1 -0
- package/es/internal/menu/renderUtils.d.mts +1 -0
- package/es/node_modules/.pnpm/@types_mdx@2.0.14/node_modules/@types/mdx/types.d.mts +1 -0
- package/es/node_modules/.pnpm/eslint@10.12.0_jiti@2.6.1_supports-color@10.2.2/node_modules/eslint/lib/types/index.d.mts +1 -0
- package/es/styles/createGlobalStyle.d.mts +1 -0
- package/es/styles/theme/generateColorPalette.d.mts +1 -0
- package/es/styles/theme/scope.d.mts +1 -0
- package/es/types/customToken.d.mts +1 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -66,6 +66,8 @@ To install Lobe UI, run the following command:
|
|
|
66
66
|
$ pnpm add @lobehub/ui
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
+
Upgrading from 5.x? Follow the [v6 migration guide](https://ui.lobehub.com/migration-v6) and run `npx @lobehub/ui-codemod@beta v6 .`.
|
|
70
|
+
|
|
69
71
|
### Compile with NextJS
|
|
70
72
|
|
|
71
73
|
> \[!NOTE]\
|
|
@@ -126,7 +128,7 @@ With Tailwind v4, use one merged statement as the very first CSS, before `@impor
|
|
|
126
128
|
@layer theme, base, lobe-base, lobe-popup, lobe-ui, components, utilities;
|
|
127
129
|
```
|
|
128
130
|
|
|
129
|
-
The lobe layers sit after Tailwind's `base` (preflight), so preflight loses to Lobe UI, and before `components` / `utilities`, so Tailwind utilities still beat Lobe UI.
|
|
131
|
+
The lobe layers sit after Tailwind's `base` (preflight), so preflight loses to Lobe UI, and before `components` / `utilities`, so Tailwind utilities still beat Lobe UI.
|
|
130
132
|
|
|
131
133
|
### Theming
|
|
132
134
|
|
package/es/Accordion/style.d.mts
CHANGED
|
@@ -2,12 +2,12 @@ import "@stylexjs/stylex";
|
|
|
2
2
|
//#region src/Accordion/style.d.ts
|
|
3
3
|
export declare const accordionStyles: {
|
|
4
4
|
panel: string;
|
|
5
|
-
header: string;
|
|
6
5
|
action: string;
|
|
7
6
|
content: string;
|
|
8
7
|
trigger: string;
|
|
9
|
-
|
|
8
|
+
header: string;
|
|
10
9
|
indicator: string;
|
|
10
|
+
root: string;
|
|
11
11
|
item: string;
|
|
12
12
|
itemOutlined: string;
|
|
13
13
|
rootOutlined: string;
|
package/es/ActionIcon/type.d.mts
CHANGED
|
@@ -51,4 +51,5 @@ type BorderlessOutdentProps<V extends ActionIconVariant> = [V] extends ['borderl
|
|
|
51
51
|
};
|
|
52
52
|
export type ActionIconProps<V extends ActionIconVariant = ActionIconVariant> = BaseActionIconOwnProps & BorderlessOutdentProps<V>;
|
|
53
53
|
//#endregion
|
|
54
|
+
export {};
|
|
54
55
|
//# sourceMappingURL=type.d.mts.map
|
package/es/Alert/type.d.mts
CHANGED
|
@@ -106,4 +106,5 @@ interface AlertOwnProps {
|
|
|
106
106
|
type NativeAlertProps = Omit<HTMLAttributes<HTMLDivElement>, keyof AlertOwnProps | 'children' | 'title'>;
|
|
107
107
|
export type AlertProps = AlertOwnProps & NativeAlertProps;
|
|
108
108
|
//#endregion
|
|
109
|
+
export {};
|
|
109
110
|
//# sourceMappingURL=type.d.mts.map
|
|
@@ -42,7 +42,7 @@ declare const styleArrays: {
|
|
|
42
42
|
}> | Readonly<{
|
|
43
43
|
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "transparent">;
|
|
44
44
|
readonly cursor: stylex.StyleXClassNameFor<"cursor", "default">;
|
|
45
|
-
readonly display: stylex.StyleXClassNameFor<"display", "
|
|
45
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex" | "none">;
|
|
46
46
|
}>)[];
|
|
47
47
|
item: Readonly<{
|
|
48
48
|
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
@@ -103,4 +103,5 @@ declare const styleArrays: {
|
|
|
103
103
|
};
|
|
104
104
|
export declare const styles: Record<keyof typeof styleArrays, string>;
|
|
105
105
|
//#endregion
|
|
106
|
+
export {};
|
|
106
107
|
//# sourceMappingURL=style.d.mts.map
|
package/es/Button/type.d.mts
CHANGED
|
@@ -50,4 +50,5 @@ type NativeButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, keyof Bas
|
|
|
50
50
|
type NativeAnchorProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, keyof BaseButtonOwnProps | 'type' | 'outdent'>;
|
|
51
51
|
export type ButtonProps<T extends ButtonType = ButtonType> = BaseButtonOwnProps & NativeButtonProps & Partial<NativeAnchorProps> & TextOutdentProps<T>;
|
|
52
52
|
//#endregion
|
|
53
|
+
export {};
|
|
53
54
|
//# sourceMappingURL=type.d.mts.map
|
package/es/Checkbox/type.d.mts
CHANGED
package/es/Drawer/atoms.d.mts
CHANGED
|
@@ -55,4 +55,5 @@ export type DrawerTriggerProps = Omit<React.ComponentPropsWithRef<typeof Dialog.
|
|
|
55
55
|
};
|
|
56
56
|
export declare const DrawerTrigger: ({ children, className, nativeButton, ref: refProp, ...rest }: DrawerTriggerProps) => React.JSX.Element;
|
|
57
57
|
//#endregion
|
|
58
|
+
export {};
|
|
58
59
|
//# sourceMappingURL=atoms.d.mts.map
|
package/es/Form/type.d.mts
CHANGED
package/es/Input/style.d.mts
CHANGED
package/es/Input/type.d.mts
CHANGED
package/es/Mermaid/const.d.mts
CHANGED
package/es/Modal/atoms.d.mts
CHANGED
|
@@ -51,4 +51,5 @@ export type ModalTriggerProps = Omit<React.ComponentPropsWithRef<typeof Dialog.T
|
|
|
51
51
|
};
|
|
52
52
|
export declare const ModalTrigger: ({ children, className, nativeButton, ref: refProp, ...rest }: ModalTriggerProps) => React.JSX.Element;
|
|
53
53
|
//#endregion
|
|
54
|
+
export {};
|
|
54
55
|
//# sourceMappingURL=atoms.d.mts.map
|
package/es/Modal/constants.d.mts
CHANGED
package/es/Modal/type.d.mts
CHANGED
package/es/Radio/type.d.mts
CHANGED
package/es/Segmented/atoms.d.mts
CHANGED
package/es/Slider/type.d.mts
CHANGED
package/es/Switch/atoms.d.mts
CHANGED
package/es/Tabs/style.d.mts
CHANGED
package/es/Text/style.d.mts
CHANGED
|
@@ -15,8 +15,8 @@ export declare const textStyles: {
|
|
|
15
15
|
disabled: string;
|
|
16
16
|
danger: string;
|
|
17
17
|
success: string;
|
|
18
|
-
warning: string;
|
|
19
18
|
info: string;
|
|
19
|
+
warning: string;
|
|
20
20
|
delete: string;
|
|
21
21
|
ellipsis: string;
|
|
22
22
|
italic: string;
|
|
@@ -44,4 +44,5 @@ type TextVariantProps = {
|
|
|
44
44
|
};
|
|
45
45
|
export declare const variants: (props?: TextVariantProps) => string;
|
|
46
46
|
//#endregion
|
|
47
|
+
export {};
|
|
47
48
|
//# sourceMappingURL=style.d.mts.map
|
|
@@ -30,4 +30,5 @@ export declare const ToggleGroupItemIcon: FC<SimpleSpanProps>;
|
|
|
30
30
|
export declare const ToggleGroupItemLabel: FC<SimpleSpanProps>;
|
|
31
31
|
export declare const toggleGroupStyles: Record<keyof typeof styles, string>;
|
|
32
32
|
//#endregion
|
|
33
|
+
export {};
|
|
33
34
|
//# sourceMappingURL=atoms.d.mts.map
|
package/es/color/types.d.mts
CHANGED
package/es/i18n/types.d.mts
CHANGED
|
@@ -33,4 +33,5 @@ export declare const renderIcon: (icon: MenuItemType["icon"], size?: IconSize) =
|
|
|
33
33
|
export declare const hasAnyIcon: (items: BaseMenuItemType[], recursive?: boolean) => boolean;
|
|
34
34
|
export declare const hasCheckboxAndIcon: (items: BaseMenuItemType[]) => boolean;
|
|
35
35
|
//#endregion
|
|
36
|
+
export {};
|
|
36
37
|
//# sourceMappingURL=renderUtils.d.mts.map
|
|
@@ -7,4 +7,5 @@ type GlobalStyleProps = {
|
|
|
7
7
|
type GlobalInterpolation = CSSInterpolation | ((props: GlobalStyleProps) => CSSInterpolation);
|
|
8
8
|
export declare const createGlobalStyle: (template: TemplateStringsArray | ((props: GlobalStyleProps) => CSSInterpolation), ...args: GlobalInterpolation[]) => () => null;
|
|
9
9
|
//#endregion
|
|
10
|
+
export {};
|
|
10
11
|
//# sourceMappingURL=createGlobalStyle.d.mts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/ui",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
3
|
+
"version": "6.0.0-beta.2",
|
|
4
4
|
"description": "Lobe UI is an open-source UI component library for building AIGC web apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
"leva": "^0.10.1",
|
|
172
172
|
"lucide-react": "^1.24.0",
|
|
173
173
|
"marked": "^18.0.6",
|
|
174
|
-
"motion": "^13.0.0",
|
|
174
|
+
"motion": "^13.0.0 || ^14.0.0",
|
|
175
175
|
"numeral": "^2.0.6",
|
|
176
176
|
"polished": "^4.3.1",
|
|
177
177
|
"query-string": "^9.4.1",
|
|
@@ -207,9 +207,9 @@
|
|
|
207
207
|
"virtua": "^0.52.0"
|
|
208
208
|
},
|
|
209
209
|
"peerDependencies": {
|
|
210
|
-
"@lobehub/fluent-emoji": "^
|
|
211
|
-
"@lobehub/icons": "^
|
|
212
|
-
"motion": "^13.0.0",
|
|
210
|
+
"@lobehub/fluent-emoji": "^5.0.0-beta.1",
|
|
211
|
+
"@lobehub/icons": "^6.0.0-beta.1",
|
|
212
|
+
"motion": "^13.0.0 || ^14.0.0",
|
|
213
213
|
"react": "^19.0.0",
|
|
214
214
|
"react-dom": "^19.0.0"
|
|
215
215
|
},
|