Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/chilly-groups-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@devup-ui/wasm": patch
---

Update rust
76 changes: 38 additions & 38 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions apps/landing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
"@devup-ui/reset-css": "workspace:*",
"@mdx-js/loader": "^3.1.0",
"@mdx-js/react": "^3.1.0",
"@next/mdx": "^15.4.5",
"@next/mdx": "^15.4.6",
"@types/mdx": "^2.0.13",
"body-scroll-lock": "3.1.5",
"clsx": "^2.1.1",
"next": "^15.4.5",
"next": "^15.4.6",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"react-markdown": "^10.1.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"react": "^19.1.1",
"react-dom": "^19.1.1",
"next": "^15.4.5",
"next": "^15.4.6",
"@devup-ui/react": "workspace:*"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/rsbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@devup-ui/react": "workspace:*"
},
"devDependencies": {
"@rsbuild/core": "^1.4.14",
"@rsbuild/core": "^1.4.15",
"@rsbuild/plugin-react": "^1.3.5",
"@devup-ui/rsbuild-plugin": "workspace:*"
}
Expand Down
8 changes: 4 additions & 4 deletions apps/vite-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
},
"dependencies": {
"react": "^19.1.1",
"@devup-ui/react": "workspace:*",
"vite": "^7.0.6"
"@devup-ui/react": "workspace:*"
},
"devDependencies": {
"vite-plugin-dts": "^4.5.4",
"@devup-ui/vite-plugin": "workspace:*",
"@vitejs/plugin-react": "^4.7.0",
"@vitejs/plugin-react": "^5.0.0",
"vite": "^7.1.1",
"typescript": "^5",
"@types/node": "^24",
"@types/react": "^19"
}
}
}
4 changes: 2 additions & 2 deletions apps/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
},
"devDependencies": {
"@devup-ui/vite-plugin": "workspace:*",
"vite": "^7.0.6",
"@vitejs/plugin-react": "^4.7.0",
"vite": "^7.1.1",
"@vitejs/plugin-react": "^5.0.0",
"typescript": "^5",
"@types/node": "^24",
"@types/react": "^19",
Expand Down
4 changes: 2 additions & 2 deletions benchmark/next-chakra-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"lint": "next lint"
},
"dependencies": {
"@chakra-ui/react": "^3.24.0",
"@chakra-ui/react": "^3.24.2",
"@emotion/react": "^11.14.0",
"next": "^15.4.5",
"next": "^15.4.6",
"next-themes": "^0.4.6",
"react": "^19.1.1",
"react-dom": "^19.1.1",
Expand Down
2 changes: 1 addition & 1 deletion benchmark/next-devup-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"react": "^19.1.1",
"react-dom": "^19.1.1",
"next": "^15.4.5",
"next": "^15.4.6",
"@devup-ui/react": "workspace:*"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/next-kuma-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"react": "^19.1.1",
"react-dom": "^19.1.1",
"next": "^15.4.5",
"next": "^15.4.6",
"@kuma-ui/core": "^1.5.9"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions benchmark/next-mui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.1",
"@mui/material": "7.3.0",
"next": "^15.4.5",
"@mui/material": "7.3.1",
"next": "^15.4.6",
"next-themes": "^0.4.6",
"react": "^19.1.1",
"react-dom": "^19.1.1",
Expand Down
17 changes: 11 additions & 6 deletions libs/css/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ pub fn sheet_to_classname(
style_order: Option<u8>,
) -> String {
if is_debug() {
let selector = selector.unwrap_or("").trim();
let selector = selector.unwrap_or_default().trim();
format!(
"{}-{}-{}-{}-{}",
property.trim(),
level,
optimize_value(value.unwrap_or("")),
optimize_value(value.unwrap_or_default()),
if selector.is_empty() {
"".to_string()
} else {
Expand All @@ -103,8 +103,8 @@ pub fn sheet_to_classname(
"{}-{}-{}-{}-{}",
property.trim(),
level,
optimize_value(value.unwrap_or("")),
selector.unwrap_or("").trim(),
optimize_value(value.unwrap_or_default()),
selector.unwrap_or_default().trim(),
style_order.unwrap_or(255)
);
let mut map = GLOBAL_CLASS_MAP.lock().unwrap();
Expand All @@ -118,7 +118,7 @@ pub fn sheet_to_classname(

pub fn sheet_to_variable_name(property: &str, level: u8, selector: Option<&str>) -> String {
if is_debug() {
let selector = selector.unwrap_or("").trim();
let selector = selector.unwrap_or_default().trim();
format!(
"--{}-{}-{}",
property,
Expand All @@ -132,7 +132,12 @@ pub fn sheet_to_variable_name(property: &str, level: u8, selector: Option<&str>)
}
)
} else {
let key = format!("{}-{}-{}", property, level, selector.unwrap_or("").trim());
let key = format!(
"{}-{}-{}",
property,
level,
selector.unwrap_or_default().trim()
);
let mut map = GLOBAL_CLASS_MAP.lock().unwrap();
map.get(&key).map(|v| format!("--d{v}")).unwrap_or_else(|| {
let len = map.len();
Expand Down
Loading
Loading