@asgardeo/react 0.6.3 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +2 -2
- package/dist/index.js +4 -4
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -7096,7 +7096,7 @@ var getInputLabel = (name, type, t) => {
|
|
|
7096
7096
|
const i18nKey = `elements.fields.${name}`;
|
|
7097
7097
|
const label = t(i18nKey);
|
|
7098
7098
|
if (label === i18nKey || !label) {
|
|
7099
|
-
return name.
|
|
7099
|
+
return name.replace(/([A-Z])/g, " $1").replace(/^./, (str) => str.toUpperCase()).trim();
|
|
7100
7100
|
}
|
|
7101
7101
|
return label;
|
|
7102
7102
|
};
|
|
@@ -7113,9 +7113,9 @@ var convertSimpleInputToComponent = (input, t) => {
|
|
|
7113
7113
|
if (input.name.toLowerCase().includes("password") && input.type.toLowerCase() === "string") {
|
|
7114
7114
|
fieldType = "password";
|
|
7115
7115
|
}
|
|
7116
|
-
const variant = getInputVariant(
|
|
7117
|
-
const label = getInputLabel(input.name,
|
|
7118
|
-
const placeholder = getInputPlaceholder(input.name,
|
|
7116
|
+
const variant = getInputVariant(fieldType, input.name);
|
|
7117
|
+
const label = getInputLabel(input.name, fieldType, t);
|
|
7118
|
+
const placeholder = getInputPlaceholder(input.name, fieldType, t);
|
|
7119
7119
|
return {
|
|
7120
7120
|
id: generateId("input"),
|
|
7121
7121
|
type: import_browser47.EmbeddedFlowComponentType.Input,
|