{"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAeM,SAAS,0CAAY,KAAuB;IACjD,IAAI,YAAC,QAAQ,aAAE,SAAS,UAAE,MAAM,YAAE,QAAQ,EAAC,GAAG;IAC9C,IAAI,qBAAqB,YAAY;IACrC,qBACE,gCAAC,CAAA,GAAA,yCAAG;QACF,gBAAe;QACf,QAAQ;QACR,UAAU;QACV,kBAAkB,CAAA,GAAA,yCAAS,EACzB,CAAA,GAAA,kDAAK,GACL,sBACA,CAAA,GAAA,yCAAS,EACP,CAAA,GAAA,6CAAc,GACd,4BACA,wCACA;YAAC,kDAAkD;QAAkB;qBAGzE,gCAAC;QACC,WAAW,CAAA,GAAA,yCAAS,EAClB,CAAA,GAAA,kDAAK,GACL,uBACA,CAAA,GAAA,yCAAS,EAAE,CAAA,GAAA,6CAAc,GAAG;qBAE9B,gCAAC;QAAK,WAAW,CAAA,GAAA,yCAAS,EAAE,CAAA,GAAA,kDAAK,GAAG;OAAiC,YAEtE,oCACC,gCAAC;QAAI,WAAW,CAAA,GAAA,yCAAS,EAAE,CAAA,GAAA,6CAAc,GAAG;OACzC;AAKX","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 {itemText, itemCount, height, maxWidth} = props;\n  let isDraggingMultiple = itemCount > 1;\n  return (\n    <Flex\n      justifyContent=\"space-between\"\n      height={height}\n      maxWidth={maxWidth}\n      UNSAFE_className={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      <div\n        className={classNames(\n          styles,\n          'spectrum-Table-cell',\n          classNames(stylesOverrides, 'react-spectrum-Table-cell')\n        )}>\n        <span className={classNames(styles, 'spectrum-Table-cellContents')}>{itemText}</span>\n      </div>\n      {isDraggingMultiple && (\n        <div className={classNames(stylesOverrides, 'react-spectrum-Table-row-badge')}>\n          {itemCount}\n        </div>\n      )}\n    </Flex>\n  );\n}\n"],"names":[],"version":3,"file":"DragPreview.mjs.map"}