@lobehub/ui 6.0.6 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/es/Accordion/style.d.mts +1 -1
- package/es/Text/style.d.mts +3 -3
- package/es/stylex/cssVar.stylex.js +790 -0
- package/es/stylex/cssVar.stylex.ts +790 -0
- package/es/stylex/media.stylex.js +14 -0
- package/es/stylex/media.stylex.ts +14 -0
- package/package.json +12 -2
package/README.md
CHANGED
|
@@ -141,6 +141,7 @@ Appearance and colors are plain attributes, read by `theme.css`:
|
|
|
141
141
|
- `setLobeTheme({ appearance, primaryColor, neutralColor })` updates them at runtime; `<LobeThemeScript appearance="system" />` sets them before first paint. With `next-themes`, use `attribute="data-theme"`.
|
|
142
142
|
- `<ThemeScope appearance="dark">` themes a subtree (e.g. a dark island in a light page).
|
|
143
143
|
- Style with `createStaticStyles` / `cssVar` / `cx` from `@lobehub/ui`; `useTheme()` / `useThemeMode()` return the current tokens when JS needs concrete values.
|
|
144
|
+
- Apps that compile StyleX themselves can import the same tokens from `@lobehub/ui/stylex/cssVar.stylex` and `@lobehub/ui/stylex/media.stylex`. Those entries are uncompiled `stylex.defineConsts` modules, so the app compiler has to transform them in the same build.
|
|
144
145
|
|
|
145
146
|
### I18n
|
|
146
147
|
|
package/es/Accordion/style.d.mts
CHANGED
package/es/Text/style.d.mts
CHANGED
|
@@ -14,13 +14,13 @@ export declare const textStyles: {
|
|
|
14
14
|
text: string;
|
|
15
15
|
disabled: string;
|
|
16
16
|
danger: string;
|
|
17
|
+
success: string;
|
|
18
|
+
warning: string;
|
|
19
|
+
info: string;
|
|
17
20
|
delete: string;
|
|
18
21
|
ellipsis: string;
|
|
19
22
|
italic: string;
|
|
20
23
|
underline: string;
|
|
21
|
-
success: string;
|
|
22
|
-
warning: string;
|
|
23
|
-
info: string;
|
|
24
24
|
ellipsisMulti: string;
|
|
25
25
|
secondary: string;
|
|
26
26
|
};
|