{"version":3,"sources":["jsdelivr-header.js","/npm/@chakra-ui/close-button@2.1.1/src/index.ts","/npm/@chakra-ui/close-button@2.1.1/src/close-button.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,8iBCNA,YAAA,GAAA,SAAA,YAAA,CAAA,YAAA,IAAA,cAAA,OAAA,QAAA,aAAA,aCAA,IAAA,YAAgC,QAAA,mBAChC,cAQO,QAAA,qBAKD,mBAAA,QAAA,qBAHN,SAAS,UAAU,GACjB,OACE,EAAA,mBAAA,KAAC,YAAA,KAAA,CAAK,UAAU,QAAQ,eAAW,KAAK,EACtC,UAAA,EAAA,mBAAA,KAAC,QACC,KAAK,eACL,EAAE,sRAIV,CAoBO,IAAM,aAAA,EAAc,cAAA,aACzB,SAAqB,EAAO,GAC1B,MAAM,GAAA,EAAS,cAAA,gBAAe,cAAe,IACvC,SAAE,EAAA,WAAU,EAAA,MAAY,KAAU,IAAK,EAAI,cAAA,kBAAiB,GAUlE,OACE,EAAA,mBAAA,KAAC,cAAA,OAAO,OAAP,CACC,KAAK,SACL,aAAW,QACX,MACA,SAAU,EACV,MAAO,CAbT,QAAS,EACT,QAAS,OACT,WAAY,SACZ,eAAgB,SAChB,WAAY,KAWL,KACA,MAED,EAEH,aAAY,EAAA,mBAAA,KAAC,UAAA,CAAU,MAAM,MAAM,OAAO,SAGjD,IAGF,YAAY,YAAc","file":"/npm/@chakra-ui/close-button@2.1.1/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@chakra-ui/close-button@2.1.1/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","export { CloseButton } from \"./close-button\"\nexport type { CloseButtonProps } from \"./close-button\"\n","import { Icon, IconProps } from \"@chakra-ui/icon\"\nimport {\n  chakra,\n  forwardRef,\n  omitThemingProps,\n  SystemStyleObject,\n  ThemingProps,\n  useStyleConfig,\n  HTMLChakraProps,\n} from \"@chakra-ui/system\"\n\nfunction CloseIcon(props: IconProps) {\n  return (\n    <Icon focusable=\"false\" aria-hidden {...props}>\n      <path\n        fill=\"currentColor\"\n        d=\"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z\"\n      />\n    </Icon>\n  )\n}\n\nexport interface CloseButtonProps\n  extends HTMLChakraProps<\"button\">,\n    ThemingProps<\"CloseButton\"> {\n  /**\n   * If `true`, the close button will be disabled.\n   * @default false\n   */\n  isDisabled?: boolean\n}\n\n/**\n * A button with a close icon.\n *\n * It is used to handle the close functionality in feedback and overlay components\n * like Alerts, Toasts, Drawers and Modals.\n *\n * @see Docs https://chakra-ui.com/docs/components/close-button\n */\nexport const CloseButton = forwardRef<CloseButtonProps, \"button\">(\n  function CloseButton(props, ref) {\n    const styles = useStyleConfig(\"CloseButton\", props)\n    const { children, isDisabled, __css, ...rest } = omitThemingProps(props)\n\n    const baseStyle: SystemStyleObject = {\n      outline: 0,\n      display: \"flex\",\n      alignItems: \"center\",\n      justifyContent: \"center\",\n      flexShrink: 0,\n    }\n\n    return (\n      <chakra.button\n        type=\"button\"\n        aria-label=\"Close\"\n        ref={ref}\n        disabled={isDisabled}\n        __css={{\n          ...baseStyle,\n          ...styles,\n          ...__css,\n        }}\n        {...rest}\n      >\n        {children || <CloseIcon width=\"1em\" height=\"1em\" />}\n      </chakra.button>\n    )\n  },\n)\n\nCloseButton.displayName = \"CloseButton\"\n"]}