-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* MDS-904 Props proposal * ops typo * Prettified Code! * Sorting and cleanup * Update words.txt * MDS-904 fix typo * Fix comments * added to index types the new utils * fix cspelling --------- Co-authored-by: salvatorecriscioneweb <[email protected]> Co-authored-by: Karl Kallavus <[email protected]>
- Loading branch information
1 parent
e692126
commit 1907bb5
Showing
11 changed files
with
274 additions
and
139 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import { PropsTableProp } from "@/types"; | ||
|
||
const Props: PropsTableProp[] = [ | ||
{ | ||
name: "onChange", | ||
type: ["(value: string) => {}"], | ||
description: "Callback function triggered upon a value change.", | ||
required: true, | ||
}, | ||
{ | ||
name: "length", | ||
type: ["number"], | ||
description: "Number of digits for entering single values.", | ||
defaultState: 6, | ||
}, | ||
{ | ||
name: "allowedCharacters", | ||
type: ["alphanumeric", "numeric", "alpha"], | ||
defaultState: "alphanumeric", | ||
description: "Specifies the type of input characters allowed.", | ||
}, | ||
{ | ||
name: "autoFocus", | ||
type: ["boolean"], | ||
defaultState: "false", | ||
description: | ||
"When set to true, inputs automatically receive the keyboard focus.", | ||
}, | ||
{ | ||
name: "isPassword", | ||
type: ["boolean"], | ||
defaultState: "false", | ||
description: | ||
"When set to true, inputs will show entered values as obfuscated symbols.", | ||
}, | ||
{ | ||
name: "disabled", | ||
type: ["boolean"], | ||
defaultState: "false", | ||
description: "When set to true, the AuthCode component is disabled.", | ||
}, | ||
{ | ||
name: "placeholder", | ||
type: ["string"], | ||
description: "Default placeholder for input elements.", | ||
}, | ||
{ | ||
name: "isValid", | ||
type: ["boolean"], | ||
defaultState: "true", | ||
description: "When set to false, the AuthCode will show a error state.", | ||
}, | ||
{ | ||
name: "className", | ||
type: ["string"], | ||
description: | ||
"Specifies the extra styles for the container that wraps the set of input elements.", | ||
}, | ||
{ | ||
name: "ariaLabel", | ||
type: ["string"], | ||
defaultState: '"Character `${i + 1}`"', | ||
description: "Specifies the common of the aria phrase for input elements.", | ||
}, | ||
]; | ||
|
||
export default Props; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,4 +37,4 @@ | |
"tailwindcss": "^3.3.0", | ||
"typescript": "^5" | ||
} | ||
} | ||
} |
Oops, something went wrong.