forked from EightfoldAI/octuple
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Slider component (EightfoldAI#190)
* feat: add Slider component * chore: update test snapshots * chore: address PR feedback * fix: ensure marker and thumb align * fix: eliminate race condition in Slider * chore: clean up testing output * fix: cleanup build errors Co-authored-by: phrough <[email protected]>
- Loading branch information
1 parent
df186b5
commit 07a18fc
Showing
17 changed files
with
1,485 additions
and
573 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Proxy for jest tests to convert css moodule class names. | ||
// Based on https://medium.com/trabe/testing-css-modules-in-react-components-with-jest-enzyme-and-a-custom-modulenamemapper-8ff86c7d18a2 | ||
|
||
module.exports = new Proxy( | ||
{}, | ||
{ | ||
get: function getter(target, key) { | ||
if (key === '__esModule') { | ||
return false; | ||
} | ||
|
||
// Convert camelCase to kebab-case for class selectors in unit tests. | ||
return key.replace(/([A-Z])/g, (g) => `-${g[0].toLowerCase()}`); | ||
}, | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.