All Downloads are FREE. Search and download functionalities are using the official Maven repository.

theme.keycloak.v2.admin.resources.assets.FixedButtonGroup-8fc820c3.js.map Maven / Gradle / Ivy

There is a newer version: 25.0.1
Show newest version
{"version":3,"file":"FixedButtonGroup-8fc820c3.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"}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy