{"version":3,"sources":["../src/radio-card-label.tsx"],"sourcesContent":["import type { HTMLUIProps } from \"@yamada-ui/core\"\nimport { forwardRef } from \"@yamada-ui/core\"\nimport { ui } from \"@yamada-ui/core\"\nimport { cx } from \"@yamada-ui/utils\"\nimport { useRadioCardContext } from \"./radio-context\"\n\nexport interface RadioCardLabelProps extends HTMLUIProps {\n  /**\n   * If `true`, the icon will be displayed.\n   *\n   * @default true\n   */\n  withIcon?: boolean\n  /**\n   * The props for the label content.\n   */\n  contentProps?: HTMLUIProps<\"span\">\n  /**\n   * The props for the icon.\n   */\n  iconProps?: HTMLUIProps\n}\n\nexport const RadioCardLabel = forwardRef<RadioCardLabelProps, \"div\">(\n  (\n    { className, children, withIcon, contentProps, iconProps, ...rest },\n    ref,\n  ) => {\n    const {\n      styles,\n      withIcon: defaultWithIcon,\n      getIconProps,\n      iconProps: defaultIconProps,\n    } = useRadioCardContext()\n\n    withIcon ??= defaultWithIcon\n\n    return (\n      <ui.div\n        ref={ref}\n        className={cx(\"ui-radio-card__label\", className)}\n        __css={{ ...styles.label }}\n        {...rest}\n      >\n        <ui.span\n          className=\"ui-radio-card__label-content\"\n          __css={{ ...styles.labelContent }}\n          {...contentProps}\n        >\n          {children}\n        </ui.span>\n\n        {withIcon ? (\n          <ui.div\n            className=\"ui-radio-card__icon\"\n            __css={{ ...styles.icon }}\n            {...getIconProps({ ...defaultIconProps, ...iconProps })}\n          />\n        ) : null}\n      </ui.div>\n    )\n  },\n)\n\nRadioCardLabel.displayName = \"RadioCardLabel\"\nRadioCardLabel.__ui__ = \"RadioCardLabel\"\n"],"mappings":";;;;;;AACA,SAAS,kBAAkB;AAC3B,SAAS,UAAU;AACnB,SAAS,UAAU;AAmCb,SAME,KANF;AAfC,IAAM,iBAAiB;AAAA,EAC5B,CACE,EAAE,WAAW,UAAU,UAAU,cAAc,WAAW,GAAG,KAAK,GAClE,QACG;AACH,UAAM;AAAA,MACJ;AAAA,MACA,UAAU;AAAA,MACV;AAAA,MACA,WAAW;AAAA,IACb,IAAI,oBAAoB;AAExB,6CAAa;AAEb,WACE;AAAA,MAAC,GAAG;AAAA,MAAH;AAAA,QACC;AAAA,QACA,WAAW,GAAG,wBAAwB,SAAS;AAAA,QAC/C,OAAO,EAAE,GAAG,OAAO,MAAM;AAAA,QACxB,GAAG;AAAA,QAEJ;AAAA;AAAA,YAAC,GAAG;AAAA,YAAH;AAAA,cACC,WAAU;AAAA,cACV,OAAO,EAAE,GAAG,OAAO,aAAa;AAAA,cAC/B,GAAG;AAAA,cAEH;AAAA;AAAA,UACH;AAAA,UAEC,WACC;AAAA,YAAC,GAAG;AAAA,YAAH;AAAA,cACC,WAAU;AAAA,cACV,OAAO,EAAE,GAAG,OAAO,KAAK;AAAA,cACvB,GAAG,aAAa,EAAE,GAAG,kBAAkB,GAAG,UAAU,CAAC;AAAA;AAAA,UACxD,IACE;AAAA;AAAA;AAAA,IACN;AAAA,EAEJ;AACF;AAEA,eAAe,cAAc;AAC7B,eAAe,SAAS;","names":[]}