Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
theme.keycloak.v2.admin.resources.assets.FixedButtonGroup-8d7378f6.js.map Maven / Gradle / Ivy
Go to download
The user inferface to administrate the Keycloak server.
{"version":3,"file":"FixedButtonGroup-8d7378f6.js","sources":["../../src/components/form/FixedButtonGroup.tsx"],"sourcesContent":["import { useTranslation } from \"react-i18next\";\nimport { ActionGroup, ActionGroupProps, Button } from \"@patternfly/react-core\";\nimport { PropsWithChildren } from \"react\";\n\nimport style from \"./fixed-buttons.module.css\";\n\ntype FixedButtonGroupProps = ActionGroupProps & {\n name: string;\n save?: () => void;\n reset?: () => void;\n isSubmit?: boolean;\n isActive?: boolean;\n};\n\nexport const FixedButtonsGroup = ({\n name,\n save,\n reset,\n isSubmit = false,\n isActive = true,\n children,\n ...rest\n}: PropsWithChildren) => {\n const { t } = useTranslation(\"common\");\n return (\n \n {(save || isSubmit) && (\n save?.()}\n type={isSubmit ? \"submit\" : \"button\"}\n >\n {t(\"save\")}\n \n )}\n {reset && (\n reset()}\n >\n {t(\"revert\")}\n \n )}\n {children}\n \n );\n};\n"],"names":["FixedButtonsGroup","name","save","reset","isSubmit","isActive","children","rest","t","useTranslation","ActionGroup","style","jsx","Button"],"mappings":"8IAcaA,EAAoB,CAAC,CAChC,KAAAC,EACA,KAAAC,EACA,MAAAC,EACA,SAAAC,EAAW,GACX,SAAAC,EAAW,GACX,SAAAC,EACA,GAAGC,CACL,IAAgD,CAC9C,KAAM,CAAE,EAAAC,CAAA,EAAMC,EAAe,QAAQ,EACrC,cACGC,EAAY,CAAA,UAAWC,EAAM,YAAc,GAAGJ,EAC3C,SAAA,EAAAL,GAAQE,IACRQ,EAAA,IAACC,EAAA,CACC,WAAY,CAACR,EACb,cAAa,GAAGJ,CAAI,QACpB,QAAS,IAAMC,IAAO,EACtB,KAAME,EAAW,SAAW,SAE3B,WAAE,MAAM,CAAA,CACX,EAEDD,GACCS,EAAA,IAACC,EAAA,CACC,WAAY,CAACR,EACb,cAAa,GAAGJ,CAAI,UACpB,QAAQ,OACR,QAAS,IAAME,EAAM,EAEpB,WAAE,QAAQ,CAAA,CACb,EAEDG,CACH,CAAA,CAAA,CAEJ"}