@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.
Files changed (43) hide show
  1. package/README.md +3 -1
  2. package/es/Accordion/style.d.mts +2 -2
  3. package/es/ActionIcon/type.d.mts +1 -0
  4. package/es/Alert/type.d.mts +1 -0
  5. package/es/AutoComplete/style.d.mts +2 -1
  6. package/es/AutoComplete/type.d.mts +1 -0
  7. package/es/Button/type.d.mts +1 -0
  8. package/es/Checkbox/type.d.mts +1 -0
  9. package/es/ColorSwatches/type.d.mts +1 -0
  10. package/es/Drawer/atoms.d.mts +1 -0
  11. package/es/Drawer/constants.d.mts +1 -0
  12. package/es/FileTypeIcon/type.d.mts +1 -0
  13. package/es/Form/type.d.mts +1 -0
  14. package/es/GroupAvatar/type.d.mts +1 -0
  15. package/es/Highlighter/const.d.mts +1 -0
  16. package/es/Input/style.d.mts +1 -0
  17. package/es/Input/type.d.mts +1 -0
  18. package/es/Markdown/plugins/remarkColor.d.mts +1 -0
  19. package/es/Markdown/plugins/remarkGfmPlus.d.mts +1 -0
  20. package/es/Markdown/plugins/remarkVideo.d.mts +1 -0
  21. package/es/Mermaid/const.d.mts +1 -0
  22. package/es/Modal/atoms.d.mts +1 -0
  23. package/es/Modal/constants.d.mts +1 -0
  24. package/es/Modal/type.d.mts +1 -0
  25. package/es/Radio/type.d.mts +1 -0
  26. package/es/Segmented/atoms.d.mts +1 -0
  27. package/es/Slider/type.d.mts +1 -0
  28. package/es/Switch/atoms.d.mts +1 -0
  29. package/es/Tabs/style.d.mts +1 -1
  30. package/es/Text/style.d.mts +2 -1
  31. package/es/ToggleGroup/atoms.d.mts +1 -0
  32. package/es/color/types.d.mts +1 -0
  33. package/es/hooks/useMarkdown/utils.d.mts +1 -0
  34. package/es/i18n/types.d.mts +1 -0
  35. package/es/internal/menu/itemInterface.d.mts +1 -0
  36. package/es/internal/menu/renderUtils.d.mts +1 -0
  37. package/es/node_modules/.pnpm/@types_mdx@2.0.14/node_modules/@types/mdx/types.d.mts +1 -0
  38. 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
  39. package/es/styles/createGlobalStyle.d.mts +1 -0
  40. package/es/styles/theme/generateColorPalette.d.mts +1 -0
  41. package/es/styles/theme/scope.d.mts +1 -0
  42. package/es/types/customToken.d.mts +1 -0
  43. 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. These layering guarantees cover components already migrated to StyleX; the remaining components still inject runtime styles until the migration completes.
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
 
@@ -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
- root: string;
8
+ header: string;
10
9
  indicator: string;
10
+ root: string;
11
11
  item: string;
12
12
  itemOutlined: string;
13
13
  rootOutlined: string;
@@ -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
@@ -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", "none" | "flex">;
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
@@ -36,4 +36,5 @@ export interface AutoCompleteProps extends BaseAutocompleteProps {
36
36
  variant?: InputProps['variant'];
37
37
  }
38
38
  //#endregion
39
+ export {};
39
40
  //# sourceMappingURL=type.d.mts.map
@@ -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
@@ -49,4 +49,5 @@ export interface CheckboxGroupProps extends BaseCheckboxGroupProps, Pick<Flexbox
49
49
  textProps?: CheckboxProps['textProps'];
50
50
  }
51
51
  //#endregion
52
+ export {};
52
53
  //# sourceMappingURL=type.d.mts.map
@@ -23,4 +23,5 @@ export interface ColorSwatchesProps extends Omit<FlexboxProps, 'onChange'> {
23
23
  value?: string;
24
24
  }
25
25
  //#endregion
26
+ export {};
26
27
  //# sourceMappingURL=type.d.mts.map
@@ -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
@@ -13,4 +13,5 @@ export declare const drawerBackdropTransition: {
13
13
  ease: CubicBezier;
14
14
  };
15
15
  //#endregion
16
+ export {};
16
17
  //# sourceMappingURL=constants.d.mts.map
@@ -12,4 +12,5 @@ export interface FileTypeIconProps extends IconProps {
12
12
  variant?: 'color' | 'mono';
13
13
  }
14
14
  //#endregion
15
+ export {};
15
16
  //# sourceMappingURL=type.d.mts.map
@@ -138,4 +138,5 @@ export interface FormContextValue {
138
138
  variant: FormVariant;
139
139
  }
140
140
  //#endregion
141
+ export {};
141
142
  //# sourceMappingURL=type.d.mts.map
@@ -14,4 +14,5 @@ export interface GroupAvatarProps extends Omit<BlockProps, 'width' | 'height' |
14
14
  size?: number;
15
15
  }
16
16
  //#endregion
17
+ export {};
17
18
  //# sourceMappingURL=type.d.mts.map
@@ -5,4 +5,5 @@ interface HighlighterThemeItem {
5
5
  }
6
6
  export declare const highlighterThemes: HighlighterThemeItem[];
7
7
  //#endregion
8
+ export {};
8
9
  //# sourceMappingURL=const.d.mts.map
@@ -37,4 +37,5 @@ export declare const inputClassNames: {
37
37
  textareaWithCount: string;
38
38
  };
39
39
  //#endregion
40
+ export {};
40
41
  //# sourceMappingURL=style.d.mts.map
@@ -128,4 +128,5 @@ export interface TextAreaProps extends Omit<ComponentProps<'textarea'>, 'prefix'
128
128
  styles?: Pick<InputStyles, 'input'>;
129
129
  }
130
130
  //#endregion
131
+ export {};
131
132
  //# sourceMappingURL=type.d.mts.map
@@ -16,4 +16,5 @@ interface RemarkColorOptions {
16
16
  */
17
17
  export declare const remarkColor: (options?: RemarkColorOptions) => (tree: any) => void;
18
18
  //#endregion
19
+ export {};
19
20
  //# sourceMappingURL=remarkColor.d.mts.map
@@ -4,4 +4,5 @@ interface RemarkGfmPlusOptions {
4
4
  }
5
5
  export declare const remarkGfmPlus: (options?: RemarkGfmPlusOptions) => (tree: any) => void;
6
6
  //#endregion
7
+ export {};
7
8
  //# sourceMappingURL=remarkGfmPlus.d.mts.map
@@ -16,4 +16,5 @@ interface RemarkVideoOptions {
16
16
  */
17
17
  export declare const remarkVideo: (options?: RemarkVideoOptions) => (tree: any) => void;
18
18
  //#endregion
19
+ export {};
19
20
  //# sourceMappingURL=remarkVideo.d.mts.map
@@ -6,4 +6,5 @@ interface MermaidThemeItem {
6
6
  }
7
7
  export declare const mermaidThemes: MermaidThemeItem[];
8
8
  //#endregion
9
+ export {};
9
10
  //# sourceMappingURL=const.d.mts.map
@@ -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
@@ -7,4 +7,5 @@ export declare const backdropTransition: {
7
7
  ease: CubicBezier;
8
8
  };
9
9
  //#endregion
10
+ export {};
10
11
  //# sourceMappingURL=constants.d.mts.map
@@ -104,4 +104,5 @@ export interface ModalConfirmConfig {
104
104
  width?: number | string;
105
105
  }
106
106
  //#endregion
107
+ export {};
107
108
  //# sourceMappingURL=type.d.mts.map
@@ -55,4 +55,5 @@ export interface RadioGroupProps extends BaseRadioGroupProps {
55
55
  textProps?: RadioProps['textProps'];
56
56
  }
57
57
  //#endregion
58
+ export {};
58
59
  //# sourceMappingURL=type.d.mts.map
@@ -36,4 +36,5 @@ export interface SegmentedIndicatorProps {
36
36
  }
37
37
  export declare const SegmentedIndicator: FC<SegmentedIndicatorProps>;
38
38
  //#endregion
39
+ export {};
39
40
  //# sourceMappingURL=atoms.d.mts.map
@@ -44,4 +44,5 @@ export interface SliderWithInputProps extends Omit<SliderProps, 'classNames' | '
44
44
  variant?: InputVariant;
45
45
  }
46
46
  //#endregion
47
+ export {};
47
48
  //# sourceMappingURL=type.d.mts.map
@@ -33,4 +33,5 @@ export declare const switchStyles: {
33
33
  thumbSmall: string;
34
34
  };
35
35
  //#endregion
36
+ export {};
36
37
  //# sourceMappingURL=atoms.d.mts.map
@@ -5,8 +5,8 @@ export declare const tabsStyles: {
5
5
  panel: string;
6
6
  tab: string;
7
7
  list: string;
8
- root: string;
9
8
  indicator: string;
9
+ root: string;
10
10
  indicatorPoint: string;
11
11
  indicatorRounded: string;
12
12
  indicatorSquare: string;
@@ -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
@@ -7,4 +7,5 @@ export interface ColorScaleItem {
7
7
  lightA: colorStep;
8
8
  }
9
9
  //#endregion
10
+ export {};
10
11
  //# sourceMappingURL=types.d.mts.map
@@ -9,4 +9,5 @@ interface PreprocessOptions {
9
9
  }
10
10
  export declare const preprocessMarkdownContent: (str: string, { enableCustomFootnotes, enableLatex, citationsLength }?: PreprocessOptions) => string;
11
11
  //#endregion
12
+ export {};
12
13
  //# sourceMappingURL=utils.d.mts.map
@@ -30,4 +30,5 @@ export type I18nContextValue = {
30
30
  t: (key: TranslationKey) => string;
31
31
  };
32
32
  //#endregion
33
+ export {};
33
34
  //# sourceMappingURL=types.d.mts.map
@@ -67,4 +67,5 @@ export interface RcMenuDividerType extends Omit<ItemSharedProps, 'ref'> {
67
67
  }
68
68
  export type RcItemType = RcSubMenuType | RcMenuItemType | RcMenuItemGroupType | RcMenuDividerType | null;
69
69
  //#endregion
70
+ export {};
70
71
  //# sourceMappingURL=itemInterface.d.mts.map
@@ -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
@@ -62,4 +62,5 @@ export type MDXComponents = NestedMDXComponents & { [Key in StringComponent]?: C
62
62
  wrapper?: Component<any>;
63
63
  };
64
64
  //#endregion
65
+ export {};
65
66
  //# sourceMappingURL=types.d.mts.map
@@ -866,4 +866,5 @@ export declare namespace ESLint {
866
866
  type EditInfo = Rule.Fix;
867
867
  }
868
868
  //#endregion
869
+ export {};
869
870
  //# sourceMappingURL=index.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
@@ -27,4 +27,5 @@ export declare const generateColorNeutralPalette: ({ scale, appearance }: {
27
27
  colorTextTertiary: string;
28
28
  };
29
29
  //#endregion
30
+ export {};
30
31
  //# sourceMappingURL=generateColorPalette.d.mts.map
@@ -44,4 +44,5 @@ export interface LobeThemeScriptProps {
44
44
  }
45
45
  export declare const LobeThemeScript: ({ appearance, neutralColor, nonce, primaryColor }: LobeThemeScriptProps) => import("react").JSX.Element;
46
46
  //#endregion
47
+ export {};
47
48
  //# sourceMappingURL=scope.d.mts.map
@@ -16,4 +16,5 @@ export interface LobeCustomToken extends ColorPalettes, ColorPalettesAlpha, Colo
16
16
  colorBgContainerSecondary: string;
17
17
  }
18
18
  //#endregion
19
+ export {};
19
20
  //# sourceMappingURL=customToken.d.mts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "6.0.0-beta.1",
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": "^4.0.0",
211
- "@lobehub/icons": "^5.0.0",
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
  },