Skip to content

Conversation

@amanmahajan7
Copy link
Collaborator

@amanmahajan7 amanmahajan7 commented Oct 7, 2025

clsx is quite a small utility and we do not need all the features so I think we can write our own simplified version.

@amanmahajan7 amanmahajan7 self-assigned this Oct 7, 2025
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.61%. Comparing base (330d0f5) to head (fe05211).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3883   +/-   ##
=======================================
  Coverage   97.60%   97.61%           
=======================================
  Files          42       42           
  Lines        1253     1257    +4     
  Branches      348      348           
=======================================
+ Hits         1223     1227    +4     
  Misses         30       30           
Files with missing lines Coverage Δ
src/DataGrid.tsx 98.80% <100.00%> (ø)
src/GroupRow.tsx 100.00% <ø> (ø)
src/GroupedColumnHeaderCell.tsx 83.33% <ø> (ø)
src/HeaderRow.tsx 100.00% <ø> (ø)
src/Row.tsx 100.00% <100.00%> (ø)
src/SummaryRow.tsx 100.00% <ø> (ø)
src/utils/styleUtils.ts 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

"@vitest/eslint-plugin": "^1.3.4",
"@wyw-in-js/rollup": "^0.7.0",
"@wyw-in-js/vite": "^0.7.0",
"clsx": "^2.1.1",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kept this for website

@amanmahajan7 amanmahajan7 marked this pull request as ready for review October 7, 2025 14:36
@amanmahajan7 amanmahajan7 requested a review from nstepien as a code owner October 7, 2025 14:36
}
}

return classname.trimStart();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also valid

Suggested change
return classname.trimStart();
return classname.slice(1);

@amanmahajan7 amanmahajan7 merged commit a1297ba into main Oct 7, 2025
2 checks passed
@amanmahajan7 amanmahajan7 deleted the 0-deps branch October 7, 2025 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants