{"version":3,"sources":["../../src/Radio/Radio.set.tsx","../../src/utilities/Clay/Clay.tsx","../../src/utilities/Flex/Flex.tsx","../../src/Label/Label.tsx","../../src/Typography/Typography.tsx","../../src/Radio/Radio.css.ts","../../src/Radio/RadioGroup/RadioGroup.provider.tsx","../../src/Radio/Radio.tsx","../../src/Radio/Radio.helperText.tsx","../../src/Radio/Radio.label.tsx","../../src/Radio/RadioGroup/RadioGroup.tsx"],"names":["vars","forwardRef","jsx","Clay","_a","ref","_b","children","className","_hover","_active","_after","_before","_focus","size","width","height","shape","sx","as","native","props","__objRest","__spreadProps","__spreadValues","ClayNameSpace","_Flex","Flex","_FlexCenter","FlexCenter","_FlexColumn","FlexColumn","FlexNameSpace","jsxs","_Label","type","text","bold","Typography","Label","classNames","_Typography","semanticToken","variant","colorToken","whiteSpace","numOfLine","textAlign","css","radioLabelCSS","radioIconCSS","createContext","useContext","RadioGroupValueContext","RadioGroupNameContext","RadioGroupActionContext","RadioGroupProvider","value","onChangeValue","name","useRadioGroupValue","useRadioGroupAction","useRadioGroupName","RadioIcon","Radio","onChange","checked","restProps","contextName","contextValue","contextAction","contextIsChecked","_onChange","e","newValue","RadioHelperText","RadioLabel","iconPosition","label","deprecatedLabel","useId","RadioGroup","labelProps","direction","legend","id","RadioSet","RadioNamespace"],"mappings":";qlBAEA,OAAS,QAAAA,MAAY,sBCArB,OAAS,QAAAA,OAAY,sBAErB,OAAS,cAAAC,OAAkB,QAiCrB,cAAAC,OAAA,6BAxBN,IAAMC,GAAsBF,GAC1B,CACEG,GAiBAC,IACG,CAlBH,IAAAC,EAAAF,GACE,UAAAG,EACA,UAAAC,EACA,OAAAC,EACA,QAAAC,EACA,OAAAC,EACA,QAAAC,EACA,OAAAC,EACA,KAAAC,EACA,MAAAC,EACA,OAAAC,EACA,MAAAC,EACA,GAAAC,EACA,GAAAC,EACA,OAAAC,CA7BN,EAeId,EAeKe,EAAAC,EAfLhB,EAeK,CAdH,WACA,YACA,SACA,UACA,SACA,UAC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D,GAACD,EAAK,OAAL,CAAY,IAAKhC,EAAK,QAAQ,CAAC,EAAG,UAAWQ,EAAW,GAAIU,EAAI,GAAIC,EAAI,OAAQC,EAC9E,UAAA2D,GAAmB,OAAOA,GAAoB,SAC7C7E,EAACqC,EAAAf,EAAA,CAAM,KAAMuD,GAAqBG,EAAY,EAE9CH,EAGF7E,EAAC8B,EAAK,OAAL,CAAY,cAAemD,EAAW,IAAKnF,EAAK,QAAQmF,IAAc,SAAW,EAAI,CAAC,EACpF,SAAA5E,EACH,GACF,EACF,CAEJ,EVxBI,cAAAL,OAAA,6BAFJ,IAAMoF,GAAW,CAAC,CAAE,SAAA/E,EAAU,GAAAW,CAAG,IAE7BhB,GAAC8B,EAAK,OAAL,CACC,GAAIR,EAAA,CACF,oEAAqE,CACnE,mBAAoBxB,EAAK,QAAQ,CAAC,CACpC,EACA,iDAAkD,CAChD,MAAOA,EAAK,SAAS,MAAM,YAC7B,EACA,6BAA8B,CAC5B,MAAOA,EAAK,SAAS,MAAM,aAC7B,GACGkB,GAGJ,SAAAX,EACH,EAIEgF,GAAiB,OAAO,OAAOvB,EAAO,CAC1C,IAAKsB,GACL,MAAOL,EACP,MAAOL,EACP,WAAYD,EACZ,OAAQpC,CACV,CAAC","sourcesContent":["/** @jsxImportSource @emotion/react */\n\nimport { vars } from \"@imwebme/clay-token\";\nimport { Flex } from \"..\";\nimport { Label } from \"../Label\";\nimport { Radio } from \"./Radio\";\nimport { RadioHelperText } from \"./Radio.helperText\";\nimport { RadioLabel } from \"./Radio.label\";\nimport type { RadioSetProps } from \"./Radio.types\";\nimport { RadioGroup } from \"./RadioGroup\";\n\nconst RadioSet = ({ children, sx }: RadioSetProps) => {\n  return (\n    <Flex.Column\n      sx={{\n        '&:has([data-radio-icon_position=\"left\"]) [data-radio-helper_text]': {\n          paddingInlineStart: vars.spacing[6],\n        },\n        \"&:has(input:disabled) [data-radio-helper_text]\": {\n          color: vars.semantic.color.textDisabled,\n        },\n        \"& [data-radio-helper_text]\": {\n          color: vars.semantic.color.textSecondary,\n        },\n        ...sx,\n      }}\n    >\n      {children}\n    </Flex.Column>\n  );\n};\n\nconst RadioNamespace = Object.assign(Radio, {\n  Set: RadioSet,\n  Group: RadioGroup,\n  Label: RadioLabel,\n  HelperText: RadioHelperText,\n  Legend: Label,\n});\n\nexport { RadioNamespace as Radio };\n","/** @jsxImportSource @emotion/react */\n\nimport { vars } from \"@imwebme/clay-token\";\nimport type { ComponentPropsWithRef, ElementType, ReactElement } from \"react\";\nimport { forwardRef } from \"react\";\nimport type { ClayProps } from \"./Clay.types\";\n\nexport type ClayComponent = <C extends ElementType = \"div\">(\n  props: ClayProps<C> & {\n    ref?: ComponentPropsWithRef<C>[\"ref\"];\n  },\n) => ReactElement | null;\n\nconst Clay: ClayComponent = forwardRef(\n  <E extends ElementType>(\n    {\n      children,\n      className,\n      _hover,\n      _active,\n      _after,\n      _before,\n      _focus,\n      size,\n      width,\n      height,\n      shape,\n      sx,\n      as,\n      native,\n      ...props\n    }: ClayProps<E>,\n    ref: ComponentPropsWithRef<E>[\"ref\"],\n  ) => {\n    const Element = as || \"div\";\n\n    return (\n      <Element\n        ref={ref}\n        className={className}\n        css={{\n          width: size || width,\n          height: size || height,\n          ...(shape === \"circle\" && {\n            borderRadius: vars.rounded.full,\n          }),\n          \"&:hover\": _hover,\n          \"&:active\": _active,\n          \"&:after\": _after,\n          \"&:before\": _before,\n          \"&:focus\": _focus,\n          ...props,\n          ...sx,\n        }}\n        {...native}\n      >\n        {children}\n      </Element>\n    );\n  },\n);\n\nconst ClayNameSpace = Object.assign(Clay, { displayName: \"Clay\" });\n\nexport { ClayNameSpace as Clay };\n","import type { ComponentPropsWithRef, ElementType } from \"react\";\nimport { forwardRef } from \"react\";\nimport { Clay } from \"../Clay\";\nimport type { ClayComponent, ClayProps } from \"../Clay/Clay.types\";\n\nconst _Flex: ClayComponent = forwardRef(\n  <Element extends ElementType>(\n    props: ClayProps<Element>,\n    ref: ComponentPropsWithRef<Element>[\"ref\"],\n  ) => <Clay ref={ref} display=\"flex\" {...props} />,\n);\n\nconst Flex = Object.assign(_Flex, { displayName: \"Flex\" });\n\nconst _FlexCenter: ClayComponent = forwardRef(\n  <Element extends ElementType>(\n    props: ClayProps<Element>,\n    ref: ComponentPropsWithRef<Element>[\"ref\"],\n  ) => <Flex ref={ref} alignItems=\"center\" justifyContent=\"center\" {...props} />,\n);\n\nconst FlexCenter = Object.assign(_FlexCenter, { displayName: \"Flex.Center\" });\n\nconst _FlexColumn: ClayComponent = forwardRef(\n  <Element extends ElementType>(\n    { as = \"div\" as any, ...props }: ClayProps<Element>,\n    ref: ComponentPropsWithRef<Element>[\"ref\"],\n  ) => <Flex ref={ref} as={as} flexDirection=\"column\" {...props} />,\n);\n\nconst FlexColumn = Object.assign(_FlexColumn, { displayName: \"Flex.Column\" });\n\n/**\n * @deprecated Use `Flex.Column` instead\n */\nexport const Stack = FlexColumn;\n\nconst FlexNameSpace = Object.assign(Flex, { Center: FlexCenter, Column: FlexColumn });\n\nexport { FlexNameSpace as Flex };\n","/** @jsxImportSource @emotion/react */\n\nimport { vars } from \"@imwebme/clay-token\";\nimport type { ElementType, Ref } from \"react\";\nimport { forwardRef } from \"react\";\nimport { Typography } from \"..\";\nimport type { LabelProps } from \"./Label.types\";\n\nconst _Label = <Element extends ElementType>(\n  { type = \"primary\", className, text, bold = true, sx, as, children }: LabelProps<Element>,\n  ref: Ref<HTMLElement>,\n) => {\n  const Element = as || \"label\";\n\n  return (\n    <Element\n      ref={ref as any}\n      className={className}\n      css={{\n        display: \"flex\",\n        gap: vars.spacing[1],\n        alignItems: \"center\",\n        sx,\n      }}\n    >\n      <Typography\n        variant={bold ? \"label-medium-bold\" : \"label-medium\"}\n        colorToken={type === \"primary\" ? \"text\" : \"textSub\"}\n      >\n        {text}\n      </Typography>\n\n      {children}\n    </Element>\n  );\n};\n\nexport const Label = forwardRef(_Label);\n\nLabel.displayName = \"Label\";\n","/** @jsxImportSource @emotion/react */\n\nimport { classNames, vars } from \"@imwebme/clay-token\";\nimport type { ElementType, Ref } from \"react\";\nimport { forwardRef } from \"react\";\nimport type { TypographyProps } from \"./Typography.types\";\n\n/**\n * token은 두 가지 방법으로 넣어줄 수 있습니다. semanticToken, variant\n * 값은 body-medium이 default 입니다.\n */\nconst _Typography = <Element extends ElementType>(\n  {\n    as,\n    semanticToken,\n    variant = \"body-medium\",\n    className = \"\",\n    colorToken = \"text\",\n    children,\n    whiteSpace,\n    numOfLine,\n    sx,\n    textAlign,\n    native,\n  }: TypographyProps<Element>,\n  ref: Ref<HTMLElement>,\n) => {\n  const Element = as || \"p\";\n\n  return (\n    <Element\n      className={`${classNames.typography[semanticToken || variant]} ${className}`}\n      ref={ref as any}\n      css={{\n        color: vars.semantic.color[colorToken],\n        ...(numOfLine && {\n          display: \"-webkit-box\",\n          overflow: \"hidden\",\n          textOverflow: \"ellipsis\",\n          WebkitBoxOrient: \"vertical\",\n          WebkitLineClamp: numOfLine,\n        }),\n        whiteSpace,\n        textAlign,\n        ...sx,\n      }}\n      {...native}\n    >\n      {children}\n    </Element>\n  );\n};\n\nexport const Typography = forwardRef(_Typography);\n\nTypography.displayName = \"Typography\";\n","import { css } from \"@emotion/react\";\nimport { vars } from \"@imwebme/clay-token\";\n\nexport const radioLabelCSS = css({\n  display: \"inline-flex\",\n  alignItems: \"center\",\n  gap: vars.spacing[2],\n\n  padding: `${vars.spacing[\"05\"]} 0`,\n\n  cursor: \"pointer\",\n\n  \"&:has(input:disabled)\": {\n    cursor: \"not-allowed\",\n  },\n\n  \"&:has(input:disabled) [data-radio-label]\": {\n    color: vars.semantic.color.textDisabled,\n  },\n});\n\nexport const radioIconCSS = css({\n  outlineWidth: \"1px\",\n  outlineStyle: \"solid\",\n  outlineColor: vars.semantic.color.borderMinimal,\n\n  display: \"flex\",\n  alignItems: \"center\",\n  justifyContent: \"center\",\n\n  position: \"relative\",\n\n  backgroundColor: vars.semantic.color.actionSecondary,\n\n  transition: \"all ease-out 100ms\",\n  cursor: \"pointer\",\n\n  \"input:checked + &\": {\n    outlineColor: vars.semantic.color.actionPrimary,\n  },\n\n  \"input:checked:disabled + &\": {\n    outlineColor: vars.semantic.color.actionPrimary,\n    opacity: 0.3,\n    cursor: \"not-allowed\",\n  },\n\n  \"input:not(:checked):disabled + &\": {\n    outlineWidth: 0,\n    backgroundColor: vars.semantic.color.actionSecondaryDisabled,\n    cursor: \"not-allowed\",\n  },\n\n  \"&:after\": {\n    \"input:checked + &\": {\n      content: \"''\",\n      position: \"absolute\",\n      width: \"8px\",\n      height: \"8px\",\n      backgroundColor: vars.semantic.color.actionPrimary,\n      borderRadius: vars.rounded.full,\n    },\n  },\n\n  \"&:not(input:disabled + &):hover\": {\n    backgroundColor: vars.semantic.color.actionSecondaryHover,\n\n    \"&:after\": {\n      backgroundColor: vars.semantic.color.actionPrimaryHover,\n    },\n  },\n\n  \"&:not(input:disabled + &):not(input:checked + &):hover\": {\n    backgroundColor: vars.semantic.color.actionSecondaryHover,\n  },\n\n  \"&:where(input:disabled:not(:checked) + &)\": {\n    backgroundColor: vars.semantic.color.actionPrimaryDisabled,\n  },\n});\n","import type { PropsWithChildren } from \"react\";\nimport { createContext, useContext } from \"react\";\nimport type { RadioGroupProps } from \"./RadioGroup.types\";\n\nconst RadioGroupValueContext = createContext<any>(null);\nconst RadioGroupNameContext = createContext<string | null>(null);\nconst RadioGroupActionContext = createContext<undefined | ((val: any) => void)>(undefined);\n\nexport const RadioGroupProvider = <T,>({\n  value,\n  onChangeValue,\n  children,\n  name,\n}: PropsWithChildren<Pick<RadioGroupProps<T>, \"value\" | \"onChangeValue\">> & {\n  name: string | null;\n}) => {\n  return (\n    <RadioGroupActionContext.Provider value={onChangeValue}>\n      <RadioGroupNameContext.Provider value={name}>\n        <RadioGroupValueContext.Provider value={value}>{children}</RadioGroupValueContext.Provider>\n      </RadioGroupNameContext.Provider>\n    </RadioGroupActionContext.Provider>\n  );\n};\n\nexport const useRadioGroupValue = () => useContext(RadioGroupValueContext);\nexport const useRadioGroupAction = () => useContext(RadioGroupActionContext);\nexport const useRadioGroupName = () => useContext(RadioGroupNameContext);\n","/** @jsxImportSource @emotion/react */\n\nimport type { ChangeEventHandler } from \"react\";\nimport type { RadioProps } from \"..\";\nimport { Flex } from \"..\";\nimport { radioIconCSS } from \"./Radio.css\";\nimport {\n  useRadioGroupAction,\n  useRadioGroupName,\n  useRadioGroupValue,\n} from \"./RadioGroup/RadioGroup.provider\";\n\nconst RadioIcon = () => {\n  return (\n    <Flex\n      display=\"inline-flex\"\n      className=\"clay-radio-icon\"\n      shape=\"circle\"\n      size=\"16px\"\n      css={radioIconCSS}\n    />\n  );\n};\n\nexport const Radio = ({ onChange, onChangeValue, checked, name, ...restProps }: RadioProps) => {\n  const contextName = useRadioGroupName();\n  const contextValue = useRadioGroupValue();\n  const contextAction = useRadioGroupAction();\n  const contextIsChecked = contextValue ? contextValue === restProps.value : checked;\n\n  const _onChange: ChangeEventHandler<HTMLInputElement> = (e) => {\n    const newValue = e.target.value;\n\n    onChange?.(e);\n    contextAction?.(newValue);\n    onChangeValue?.(newValue);\n  };\n\n  return (\n    <Flex display=\"inline-flex\" as=\"label\" native={{ htmlFor: restProps.id }}>\n      <input\n        data-clay-blind\n        onChange={_onChange}\n        type=\"radio\"\n        name={contextName || name}\n        checked={contextIsChecked}\n        {...restProps}\n      />\n      <RadioIcon />\n    </Flex>\n  );\n};\n","import { Typography } from \"../Typography\";\nimport type { TypographyProps } from \"../Typography/Typography.types\";\n\nexport const RadioHelperText = ({ children, ...props }: Omit<TypographyProps<\"p\">, \"variant\">) => (\n  <Typography\n    native={{\n      \"data-radio-helper_text\": true,\n    }}\n    variant=\"body-small\"\n    {...props}\n  >\n    {children}\n  </Typography>\n);\n","/** @jsxImportSource @emotion/react */\n\nimport { Typography } from \"../Typography\";\nimport { Flex } from \"../utilities\";\nimport { Radio } from \"./Radio\";\nimport { radioLabelCSS } from \"./Radio.css\";\nimport type { RadioLabelProps } from \"./Radio.types\";\n\nexport const RadioLabel = ({\n  children,\n  iconPosition = \"left\",\n  text,\n  label,\n  ...restProps\n}: RadioLabelProps) => {\n  const deprecatedLabel = label || text;\n\n  return (\n    <Flex\n      as=\"label\"\n      alignItems=\"center\"\n      native={{\n        \"data-radio-icon_position\": iconPosition,\n      }}\n      flexDirection={iconPosition === \"right\" ? \"row-reverse\" : \"row\"}\n      justifyContent={iconPosition === \"right\" ? \"space-between\" : \"flex-start\"}\n      width={iconPosition === \"right\" ? \"100%\" : \"fit-content\"}\n      css={radioLabelCSS}\n    >\n      {children || <Radio {...restProps} />}\n\n      {deprecatedLabel && (\n        <Typography variant=\"label-medium\" native={{ \"data-radio-label\": true }}>\n          {deprecatedLabel}\n        </Typography>\n      )}\n    </Flex>\n  );\n};\n","import { vars } from \"@imwebme/clay-token\";\nimport { useId } from \"react\";\nimport { Flex, Label } from \"../..\";\nimport { RadioGroupProvider } from \"./RadioGroup.provider\";\nimport type { RadioGroupProps } from \"./RadioGroup.types\";\n\nexport const RadioGroup = <T,>({\n  children,\n  label,\n  labelProps,\n  direction = \"column\",\n  className,\n  sx,\n  value,\n  onChangeValue,\n  as,\n  native,\n  legend,\n}: RadioGroupProps<T>) => {\n  const id = useId();\n  const deprecatedLabel = label || legend;\n\n  return (\n    <RadioGroupProvider value={value} onChangeValue={onChangeValue} name={id}>\n      <Flex.Column gap={vars.spacing[1]} className={className} sx={sx} as={as} native={native}>\n        {deprecatedLabel && typeof deprecatedLabel === \"string\" ? (\n          <Label text={deprecatedLabel} {...labelProps} />\n        ) : (\n          deprecatedLabel\n        )}\n\n        <Flex.Column flexDirection={direction} gap={vars.spacing[direction === \"column\" ? 1 : 6]}>\n          {children}\n        </Flex.Column>\n      </Flex.Column>\n    </RadioGroupProvider>\n  );\n};\n"]}