{"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAeM,SAAS,0CAAY,KAAuB;IACjD,IAAI,YACF,QAAQ,aACR,SAAS,UACT,MAAM,YACN,QAAQ,EACT,GAAG;IACJ,IAAI,qBAAqB,YAAY;IACrC,qBACE,0DAAC,CAAA,GAAA,8BAAG;QACF,gBAAe;QACf,QAAQ;QACR,UAAU;QACV,kBACE,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,mDAAK,GACL,sBACA,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,mDAAc,GACd,4BACA,wCACA;YAAC,kDAAkD;QAAkB;qBAI3E,0DAAC;QACC,WACA,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,mDAAK,GACL,uBACA,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,mDAAc,GACd;qBAIJ,0DAAC;QACC,WACE,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,mDAAK,GACL;OAGH,YAGJ,oCACC,0DAAC;QAAI,WAAW,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAc,GAAG;OAAoC;AAIxF","sources":["packages/@adobe/react-spectrum/src/table/DragPreview.tsx"],"sourcesContent":["/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames} from '../utils/classNames';\nimport {Flex} from '../layout/Flex';\nimport React, {ReactNode} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/table/vars.css';\nimport stylesOverrides from './table.css';\n\ninterface DragPreviewProps {\n  itemText: string,\n  itemCount: number,\n  height: number,\n  maxWidth: number\n}\n\nexport function DragPreview(props: DragPreviewProps): ReactNode {\n  let {\n    itemText,\n    itemCount,\n    height,\n    maxWidth\n  } = props;\n  let isDraggingMultiple = itemCount > 1;\n  return (\n    <Flex\n      justifyContent=\"space-between\"\n      height={height}\n      maxWidth={maxWidth}\n      UNSAFE_className={\n        classNames(\n          styles,\n          'spectrum-Table-row',\n          classNames(\n            stylesOverrides,\n            'react-spectrum-Table-row',\n            'react-spectrum-Table-row-dragPreview',\n            {'react-spectrum-Table-row-dragPreview--multiple': isDraggingMultiple}\n          )\n        )\n      }>\n      <div\n        className={\n        classNames(\n          styles,\n          'spectrum-Table-cell',\n          classNames(\n            stylesOverrides,\n            'react-spectrum-Table-cell'\n          )\n        )\n      }>\n        <span\n          className={\n            classNames(\n              styles,\n              'spectrum-Table-cellContents'\n            )\n        }>\n          {itemText}\n        </span>\n      </div>\n      {isDraggingMultiple &&\n        <div className={classNames(stylesOverrides, 'react-spectrum-Table-row-badge')}>{itemCount}</div>\n      }\n    </Flex>\n  );\n}\n"],"names":[],"version":3,"file":"DragPreview.cjs.map"}