-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(PPDSC-1852): replace enums (#340)
* chore(PPDSC-1852): chore-ppdse-1852-replace buttonSize with union * chore(PPDSC-1852): chore-ppdse-1852-replace buttonSize with union * chore(PPDSC-1852): chore-ppdse-1852-replace buttonSize with union * chore(PPDSC-1852): chore-ppdse-1852-replace-buttonSize-with-union * chore(PPDSC-1852): chore-ppdse-1852-replace-buttonSize-with-union * chore(PPDSC-1852): chore-ppdse-1852-replace-menuItemAlign-with-union * chore(PPDSC-1852): chore-ppdse-1852-replace-buttonSize-with-union * chore(PPDSC-1852): chore-ppdse-1852-fixed audioplayer type * chore(PPDSC-1852): chore-ppdse-1852-removed stackChild enum * chore(PPDSC-1852): chore-ppdse-1852-removed stackChild enum * chore(PPDSC-1852): removed Tagsize labelPosition enum * chore(PPDSC-1852): chore-ppdse-1852-updated slider labelposition * chore(PPDSC-1852): chore-ppdse-1852-updated src files for flow * chore(PPDSC-1852): chore-ppdse-1852-updated slider test * chore(PPDSC-1852): removed Tagsize tabIndicatorPosition enum * chore(PPDSC-1852): removed MenuItemSize enum * chore(PPDSC-1852): removed TabAlign enum * chore(PPDSC-1852): removed tabSize enum * chore(PPDSC-1852): chore-ppdse-1852-removed flow and stackD * chore(PPDSC-1852): chore-ppdse-1852-stack test passing * chore(PPDSC-1852): chore-ppdse-1852-tab align removed * chore(PPDSC-1852): chore-ppdse-1852-got rid of tab enums * chore(PPDSC-1852): chore-ppdse-1852-got rid of tab enums * chore(PPDSC-1852): chore-ppdse-1852-flagsize done * chore(PPDSC-1852): chore-ppdse-1852-buttonsize removed * chore(PPDSC-1852): chore-ppdse-1852-updated documentation * chore(PPDSC-1852): chore-ppdse-1852-updated tab documentation * chore(PPDSC-1852): chore-ppdse-1852-tests updated * chore(PPDSC-1852): chore-ppdse-1852-fixed tag size * chore(PPDSC-1852): chore-ppdse-1852-menu align moved * chore(PPDSC-1852): chore-ppdse-1852-tidied menu tests * chore(PPDSC-1852): chore-ppdse-1852-fixed stack test types * chore(PPDSC-1852): removed TabsDistribution enum * chore(PPDSC-1852): chore-ppdse-1852-fixed menu test * chore(PPDSC-1852): chore-ppdse-1852-fixed slider.mdx * chore(PPDSC-1852): chore-ppdse-1852-textfiedl done * chore(PPDSC-1852): chore-ppdse-1852-textinput done * chore(PPDSC-1852): chore-ppdse-1852-textinput done * chore(PPDSC-1852): chore-ppdse-1852-tidy up * chore(PPDSC-1852): chore-ppdse-1852-fixed mdx error * chore(PPDSC-1852): chore-ppdse-1852-fixed mdx error again * chore(PPDSC-1852): chore-ppdse-1852-added codemod back * chore(PPDSC-1852): chore-ppdse-1852-added codemod back and linted * chore(PPDSC-1852): chore-ppdse-1852-fixed merge * chore(PPDSC-1852): chore-ppdse-1852-fixed stack story * chore(PPDSC-1852): chore-ppdse-1852-tidied audioplayer types * chore(PPDSC-1852): chore-ppdse-1852-changed to lower case * chore(PPDSC-1852): chore-ppdse-1852-fixed comments * fix(PPDSC-1852): add lowercase with space to enum codemod * chore(PPDSC-1852): chore-ppdse-1852-fixed stack types * chore(PPDSC-1852): chore-ppdse-1852-updated tests * chore(PPDSC-1852): chore-ppdse-1852-updated stack.mdx Co-authored-by: Ravindren <[email protected]> Co-authored-by: Xin00163 <[email protected]>
- Loading branch information
1 parent
7f5f770
commit 1c7d0dd
Showing
131 changed files
with
2,188 additions
and
2,503 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
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
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
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
10 changes: 10 additions & 0 deletions
10
lib/codemod/src/utils/__tests__/to-lower-case-with-space.test.js
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,10 @@ | ||
const {toLowerCaseWithSpace} = require('../to-lower-case-with-space'); | ||
|
||
describe('to-lower-case-with-space', () => { | ||
test('toLowerCaseWithSpace', () => { | ||
expect(toLowerCaseWithSpace('HelloWorld')).toBe('hello world'); | ||
expect(toLowerCaseWithSpace('Hello World')).toBe('hello world'); | ||
expect(toLowerCaseWithSpace('HelloWorldAgain')).toBe('hello world again'); | ||
expect(toLowerCaseWithSpace('HelloWorldcup')).toBe('hello worldcup'); | ||
}); | ||
}); |
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,11 @@ | ||
function toLowerCaseWithSpace(str) { | ||
if (str) { | ||
return str.replace(/([a-z])([A-Z])/g, '$1 $2').toLowerCase(); | ||
} | ||
/* istanbul ignore next */ | ||
return ''; | ||
} | ||
|
||
module.exports = { | ||
toLowerCaseWithSpace, | ||
}; |
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
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
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
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
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
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
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
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.