UNPKG

@keycloakify/keycloak-admin-ui

Version:
74 lines 3.8 kB
import { jsx as _jsx } from "react/jsx-runtime"; import { useTranslation } from "react-i18next"; import { FormGroup, Grid, GridItem } from "@patternfly/react-core"; import { FormAccess } from "../../../components/form/FormAccess"; import { KeyValueInput } from "../../../components/key-value-form/KeyValueInput"; import "../../realm-settings-section.css"; export const AttributeAnnotations = () => { const { t } = useTranslation(); return (_jsx(FormAccess, { role: "manage-realm", isHorizontal: true, children: _jsx(FormGroup, { hasNoPaddingTop: true, label: t("annotations"), fieldId: "kc-annotations", className: "kc-annotations-label", children: _jsx(Grid, { className: "kc-annotations", children: _jsx(GridItem, { children: _jsx(KeyValueInput, { name: "annotations", label: t("annotations"), defaultKeyValue: [ { key: "inputType", label: t("inputType"), values: [ "text", "textarea", "select", "select-radiobuttons", "multiselect", "multiselect-checkboxes", "html5-email", "html5-tel", "html5-url", "html5-number", "html5-range", "html5-datetime-local", "html5-date", "html5-month", "html5-week", "html5-time", ], }, { key: "inputHelperTextBefore", label: t("inputHelperTextBefore"), }, { key: "inputHelperTextAfter", label: t("inputHelperTextAfter"), }, { key: "inputOptionLabelsI18nPrefix", label: t("inputOptionLabelsI18nPrefix"), }, { key: "inputTypePlaceholder", label: t("inputTypePlaceholder"), }, { key: "inputTypeSize", label: t("inputTypeSize"), }, { key: "inputTypeCols", label: t("inputTypeCols"), }, { key: "inputTypeRows", label: t("inputTypeRows"), }, { key: "inputTypeStep", label: t("inputTypeStep"), }, { key: "kcNumberFormat", label: t("kcNumberFormat"), }, { key: "kcNumberUnFormat", label: t("kcNumberUnFormat"), }, ] }) }) }) }) })); }; //# sourceMappingURL=AttributeAnnotations.js.map