{"version":3,"file":"PaginationDots.cjs","sources":["../../../../src/components/Pagination/PaginationDots/PaginationDots.tsx"],"sourcesContent":["import {\n  Box,\n  BoxProps,\n  CompoundStylesApiProps,\n  ElementProps,\n  factory,\n  Factory,\n  useProps,\n} from '../../../core';\nimport { usePaginationContext } from '../Pagination.context';\nimport { PaginationDotsIcon, PaginationIconProps } from '../Pagination.icons';\n\nexport type PaginationDotsStylesNames = 'dots';\n\nexport interface PaginationDotsProps\n  extends BoxProps,\n    CompoundStylesApiProps<PaginationDotsFactory>,\n    ElementProps<'div'> {\n  /** Custom dots icon component, must accept svg element props and size prop */\n  icon?: React.FC<PaginationIconProps>;\n}\n\nexport type PaginationDotsFactory = Factory<{\n  props: PaginationDotsProps;\n  ref: HTMLDivElement;\n  stylesNames: PaginationDotsStylesNames;\n  compound: true;\n}>;\n\nconst defaultProps: Partial<PaginationDotsProps> = {\n  icon: PaginationDotsIcon,\n};\n\nexport const PaginationDots = factory<PaginationDotsFactory>((_props, ref) => {\n  const props = useProps('PaginationDots', defaultProps, _props);\n  const { classNames, className, style, styles, vars, icon, ...others } = props;\n  const ctx = usePaginationContext();\n  const Icon = icon!;\n\n  return (\n    <Box ref={ref} {...ctx.getStyles('dots', { className, style, styles, classNames })} {...others}>\n      <Icon\n        style={{\n          width: 'calc(var(--pagination-control-size) / 1.8)',\n          height: 'calc(var(--pagination-control-size) / 1.8)',\n        }}\n      />\n    </Box>\n  );\n});\n\nPaginationDots.displayName = '@raikou/core/PaginationDots';\n"],"names":["PaginationDotsIcon","factory","useProps","usePaginationContext","jsx","Box"],"mappings":";;;;;;;;;;;;;;AA6BA,MAAM,YAA6C,GAAA;AAAA,EACjD,IAAM,EAAAA;AACR,CAAA;AAEO,MAAM,cAAiB,GAAAC,eAAA,CAA+B,CAAC,MAAA,EAAQ,GAAQ,KAAA;AAC5E,EAAA,MAAM,KAAQ,GAAAC,iBAAA,CAAS,gBAAkB,EAAA,YAAA,EAAc,MAAM,CAAA;AAC7D,EAAM,MAAA,EAAE,YAAY,SAAW,EAAA,KAAA,EAAO,QAAQ,IAAM,EAAA,IAAA,EAAM,GAAG,MAAA,EAAW,GAAA,KAAA;AACxE,EAAA,MAAM,MAAMC,uCAAqB,EAAA;AACjC,EAAA,MAAM,IAAO,GAAA,IAAA;AAEb,EAAA,uBACGC,cAAA,CAAAC,OAAA,EAAA,EAAI,GAAW,EAAA,GAAG,IAAI,SAAU,CAAA,MAAA,EAAQ,EAAE,SAAA,EAAW,OAAO,MAAQ,EAAA,UAAA,EAAY,CAAA,EAAI,GAAG,MACtF,EAAA,QAAA,kBAAAD,cAAA;AAAA,IAAC,IAAA;AAAA,IAAA;AAAA,MACC,KAAO,EAAA;AAAA,QACL,KAAO,EAAA,4CAAA;AAAA,QACP,MAAQ,EAAA;AAAA;AACV;AAAA,GAEJ,EAAA,CAAA;AAEJ,CAAC;AAED,cAAA,CAAe,WAAc,GAAA,6BAAA;;;;"}