Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Japanese text conversion input #107

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mitsuyapega
Copy link

Add an input with the following 3 features. All of them convert characters with onBlur.

  • Lowercase to Uppercase
    Converts Lowercase to Uppercase, for when the client inputs lowercase and the internal character handles it as uppercase.
  • Hiragana to Katakana
    Japanese has two types of characters, Hiragana and Katakana, which correspond one-to-one. Hiragana input is converted to Katakana.
  • Full-width to Half-width
    In Japanese, characters are generally handled as multi-byte full-width characters rather than single-byte half-width characters, and for this reason Japanese keyboards have a function to input characters in full-width. Some full-width characters have the same meaning in half-width, and these are converted from full-width to half-width.

@ricmars
Copy link
Collaborator

ricmars commented Dec 6, 2024

please clean up - lots of files are not necessary - follow the best practices and look at other components

@ricmars
Copy link
Collaborator

ricmars commented Dec 6, 2024

overall - you should remove the other components like password input or mask input and follow the same practice

@mitsuyapega mitsuyapega changed the title Japanese text conversion conversion input Japanese text conversion input Dec 10, 2024
interface PegaExtensionsJapaneseInputProps {
// If any, enter additional props that only exist on TextInput here
hasSuggestions?: boolean;
variant?: any;

Choose a reason for hiding this comment

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

Provide appropriate types in the place of any

import '../create-nonce';

// interface for props
interface PegaExtensionsJapaneseInputProps {

Choose a reason for hiding this comment

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

export the interface incase we need it.

import '../create-nonce';

// interface for props
interface PegaExtensionsJapaneseInputProps {

Choose a reason for hiding this comment

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

extend InputProps from @pega/cosmos-react-core. In that case, you can remove duplicate types.

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.

3 participants