{"version":3,"file":"gapSize.mjs","sources":["../../../../../../packages/components/flex/src/gapSize.ts"],"sourcesContent":["import type { SizeType } from '@antdv/types';\n\nexport function isPresetSize(size?: SizeType | string | number): size is SizeType {\n  return ['small', 'middle', 'large'].includes(size as string);\n}\n\nexport function isValidGapNumber(size?: SizeType | string | number): size is number {\n  if (!size) {\n    // The case of size = 0 is deliberately excluded here, because the default value of the gap attribute in CSS is 0, so if the user passes 0 in, we can directly ignore it.\n    return false;\n  }\n  return typeof size === 'number' && !Number.isNaN(size);\n}\n"],"names":[],"mappings":"AAEO,SAAS,aAAa,IAAqD,EAAA;AAChF,EAAA,OAAO,CAAC,OAAS,EAAA,QAAA,EAAU,OAAO,CAAA,CAAE,SAAS,IAAc,CAAA,CAAA;AAC7D,CAAA;AAEO,SAAS,iBAAiB,IAAmD,EAAA;AAClF,EAAA,IAAI,CAAC,IAAM,EAAA;AAET,IAAO,OAAA,KAAA,CAAA;AAAA,GACT;AACA,EAAA,OAAO,OAAO,IAAS,KAAA,QAAA,IAAY,CAAC,MAAA,CAAO,MAAM,IAAI,CAAA,CAAA;AACvD;;;;"}