@procore/core-react 12.45.0 → 12.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/AnchorNavigation/AnchorNavigation.styles.js +4 -4
  3. package/dist/Avatar/Avatar.styles.js +5 -5
  4. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  5. package/dist/Badge/Badge.styles.js +2 -2
  6. package/dist/BadgePill/BadgePill.styles.js +4 -4
  7. package/dist/Banner/Banner.styles.js +10 -10
  8. package/dist/Box/Box.styles.js +1 -1
  9. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  10. package/dist/Button/Button.styles.js +5 -5
  11. package/dist/Calendar/Calendar.styles.js +9 -9
  12. package/dist/Card/Card.styles.js +1 -1
  13. package/dist/Checkbox/Checkbox.styles.js +6 -6
  14. package/dist/ContactItem/ContactItem.styles.js +5 -5
  15. package/dist/Content/Content.styles.js +2 -2
  16. package/dist/DateInput/DateInput.styles.js +6 -6
  17. package/dist/DetailPage/DetailPage.styles.js +7 -7
  18. package/dist/Dropdown/Dropdown.styles.js +3 -3
  19. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  20. package/dist/Dropzone/Dropzone.js +1 -1
  21. package/dist/Dropzone/Dropzone.styles.js +9 -9
  22. package/dist/EmptyState/EmptyState.d.ts +3 -5
  23. package/dist/EmptyState/EmptyState.js.map +1 -1
  24. package/dist/EmptyState/EmptyState.styles.d.ts +2 -2
  25. package/dist/EmptyState/EmptyState.styles.js +10 -10
  26. package/dist/EmptyState/EmptyState.styles.js.map +1 -1
  27. package/dist/EmptyState/EmptyState.types.d.ts +11 -0
  28. package/dist/EmptyState/EmptyState.types.js.map +1 -1
  29. package/dist/Field/Field.styles.js +3 -3
  30. package/dist/FileList/FileList.styles.js +3 -3
  31. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  32. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  33. package/dist/FileSelect/FileSelect.styles.js +2 -2
  34. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  35. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  36. package/dist/FileSelect/GridSource/GridSource.js +1 -0
  37. package/dist/FileSelect/GridSource/GridSource.js.map +1 -1
  38. package/dist/FileSelect/GridSource/GridSource.styles.d.ts +2 -4
  39. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  40. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  41. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  42. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  43. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  44. package/dist/FileToken/FileToken.styles.js +6 -6
  45. package/dist/FilterToken/FilterToken.styles.js +5 -5
  46. package/dist/FlexList/FlexList.styles.js +1 -1
  47. package/dist/Form/Form.styles.js +13 -13
  48. package/dist/Form/StyledFormikForm.styles.js +2 -2
  49. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  50. package/dist/Grid/Grid.styles.js +2 -2
  51. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  52. package/dist/Input/Input.styles.js +1 -1
  53. package/dist/Link/Link.styles.js +1 -1
  54. package/dist/ListPage/ListPage.styles.js +8 -8
  55. package/dist/Loader/Loader.styles.js +2 -2
  56. package/dist/MenuImperative/MenuImperative.styles.js +11 -11
  57. package/dist/Modal/Modal.styles.js +13 -13
  58. package/dist/MultiSelect/MultiSelect.styles.js +8 -8
  59. package/dist/NextMenu/NextMenu.styles.js +3 -3
  60. package/dist/Notation/Notation.js +1 -1
  61. package/dist/NumberInput/NumberInput.styles.js +7 -7
  62. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  63. package/dist/PageLayout/PageLayout.styles.js +16 -16
  64. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
  65. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
  66. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
  67. package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
  68. package/dist/Pagination/Pagination.styles.js +5 -5
  69. package/dist/Panel/Panel.styles.js +11 -11
  70. package/dist/Pill/Pill.styles.js +3 -3
  71. package/dist/PillSelect/PillSelect.styles.js +4 -4
  72. package/dist/Popover/Popover.styles.js +2 -2
  73. package/dist/Portal/Portal.styles.js +1 -1
  74. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  75. package/dist/RadioButton/RadioButton.styles.js +3 -3
  76. package/dist/Required/Required.styles.js +3 -3
  77. package/dist/Search/Search.styles.js +5 -5
  78. package/dist/Section/Section.styles.js +7 -7
  79. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  80. package/dist/Select/Select.styles.js +8 -8
  81. package/dist/Semantic/Semantic.styles.js +9 -9
  82. package/dist/Slider/Slider.styles.js +5 -5
  83. package/dist/Spinner/Spinner.styles.js +7 -7
  84. package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
  85. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  86. package/dist/SuperSelect/SuperSelect.styles.js +39 -39
  87. package/dist/Switch/Switch.styles.js +4 -4
  88. package/dist/Table/OverdueContext.d.ts +4 -0
  89. package/dist/Table/OverdueContext.js +10 -0
  90. package/dist/Table/OverdueContext.js.map +1 -0
  91. package/dist/Table/OverdueContext.types.d.ts +6 -0
  92. package/dist/Table/OverdueContext.types.js +2 -0
  93. package/dist/Table/OverdueContext.types.js.map +1 -0
  94. package/dist/Table/Table.js +58 -10
  95. package/dist/Table/Table.js.map +1 -1
  96. package/dist/Table/Table.styles.d.ts +9 -0
  97. package/dist/Table/Table.styles.js +52 -45
  98. package/dist/Table/Table.styles.js.map +1 -1
  99. package/dist/Table/Table.types.d.ts +7 -0
  100. package/dist/Table/Table.types.js.map +1 -1
  101. package/dist/TableShelf/TableShelf.styles.js +5 -5
  102. package/dist/Tabs/Tabs.styles.js +16 -16
  103. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  104. package/dist/TextArea/TextArea.styles.js +1 -1
  105. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  106. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  107. package/dist/ThumbnailGrid/ThumbnailGrid.d.ts +1 -1
  108. package/dist/ThumbnailGrid/ThumbnailGrid.js +14 -4
  109. package/dist/ThumbnailGrid/ThumbnailGrid.js.map +1 -1
  110. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  111. package/dist/ThumbnailGrid/ThumbnailGrid.types.d.ts +34 -6
  112. package/dist/ThumbnailGrid/ThumbnailGrid.types.js.map +1 -1
  113. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  114. package/dist/Tile/Tile.styles.js +8 -8
  115. package/dist/Title/Title.styles.js +7 -7
  116. package/dist/Toast/Toast.styles.js +3 -3
  117. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  118. package/dist/Token/Token.js +20 -4
  119. package/dist/Token/Token.js.map +1 -1
  120. package/dist/Token/Token.styles.d.ts +2 -0
  121. package/dist/Token/Token.styles.js +14 -5
  122. package/dist/Token/Token.styles.js.map +1 -1
  123. package/dist/Token/Token.types.d.ts +3 -1
  124. package/dist/Token/Token.types.js.map +1 -1
  125. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  126. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  127. package/dist/Tooltip/Tooltip.js +23 -18
  128. package/dist/Tooltip/Tooltip.js.map +1 -1
  129. package/dist/Tooltip/Tooltip.styles.js +3 -3
  130. package/dist/Tree/Tree.js +1 -1
  131. package/dist/Tree/Tree.styles.js +10 -10
  132. package/dist/Typeahead/Typeahead.styles.js +3 -3
  133. package/dist/Typography/Typography.styles.js +1 -1
  134. package/dist/Typography/Typography.table.story.js +2 -2
  135. package/dist/_hooks/I18n.d.ts +49 -11
  136. package/dist/_locales/de-DE.json +2 -0
  137. package/dist/_locales/en-AU.json +2 -0
  138. package/dist/_locales/en-CA.json +2 -0
  139. package/dist/_locales/en-GB.json +2 -0
  140. package/dist/_locales/en.json +3 -1
  141. package/dist/_locales/es-ES.json +2 -0
  142. package/dist/_locales/es.json +2 -0
  143. package/dist/_locales/fr-CA.json +2 -0
  144. package/dist/_locales/fr-FR.json +2 -0
  145. package/dist/_locales/is-IS.json +2 -0
  146. package/dist/_locales/it-IT.json +3 -1
  147. package/dist/_locales/ja-JP.json +2 -0
  148. package/dist/_locales/nb-NO.json +6 -4
  149. package/dist/_locales/pl-PL.json +2 -0
  150. package/dist/_locales/pseudo.json +3 -1
  151. package/dist/_locales/pt-BR.json +2 -0
  152. package/dist/_locales/pt-PT.json +4 -2
  153. package/dist/_locales/th-TH.json +2 -0
  154. package/dist/_locales/zh-SG.json +2 -0
  155. package/dist/_locales/zh-TW.json +2 -0
  156. package/dist/_storyHelpers_/components/Deprecation.styles.js +1 -1
  157. package/dist/_storyHelpers_/components/StoryGrid.js +3 -3
  158. package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +4 -4
  159. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  160. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +25 -25
  161. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  162. package/dist/_typedoc/Banner/Banner.types.json +15 -15
  163. package/dist/_typedoc/Box/Box.types.json +68 -68
  164. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  165. package/dist/_typedoc/Button/Button.types.json +14 -14
  166. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  167. package/dist/_typedoc/Card/Card.types.json +6 -6
  168. package/dist/_typedoc/Checkbox/Checkbox.types.json +8 -8
  169. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  170. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  171. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  172. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  173. package/dist/_typedoc/Dropdown/Dropdown.types.json +38 -38
  174. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +31 -31
  175. package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
  176. package/dist/_typedoc/EmptyState/EmptyState.types.json +39 -16
  177. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  178. package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
  179. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  180. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  181. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  182. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  183. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  184. package/dist/_typedoc/Form/Form.types.json +760 -760
  185. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  186. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  187. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +54 -54
  188. package/dist/_typedoc/Input/Input.types.json +2 -2
  189. package/dist/_typedoc/Link/Link.types.json +1 -1
  190. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  191. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  192. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +84 -84
  193. package/dist/_typedoc/Modal/Modal.types.json +48 -48
  194. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +33 -33
  195. package/dist/_typedoc/NextTile/NextTile.types.json +32 -32
  196. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  197. package/dist/_typedoc/NumberInput/NumberInput.types.json +48 -48
  198. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +33 -33
  199. package/dist/_typedoc/PageLayout/PageLayout.types.json +28 -28
  200. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  201. package/dist/_typedoc/Panel/Panel.types.json +28 -28
  202. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  203. package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
  204. package/dist/_typedoc/Popover/Popover.types.json +15 -15
  205. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
  206. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  207. package/dist/_typedoc/Required/Required.types.json +5 -5
  208. package/dist/_typedoc/Search/Search.types.json +18 -18
  209. package/dist/_typedoc/Section/Section.types.json +15 -15
  210. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
  211. package/dist/_typedoc/Select/Select.types.json +67 -67
  212. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  213. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  214. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  215. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +14 -14
  216. package/dist/_typedoc/Table/Table.types.json +122 -102
  217. package/dist/_typedoc/Tabs/Tabs.types.json +21 -21
  218. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
  219. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  220. package/dist/_typedoc/TextEditor/TextEditor.types.json +11 -11
  221. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  222. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  223. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +43 -43
  224. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +29 -29
  225. package/dist/_typedoc/Tile/Tile.types.json +8 -8
  226. package/dist/_typedoc/Title/Title.types.json +1 -1
  227. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  228. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  229. package/dist/_typedoc/Token/Token.types.json +11 -11
  230. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  231. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +8 -8
  232. package/dist/_typedoc/Tooltip/Tooltip.types.json +15 -15
  233. package/dist/_typedoc/Tree/Tree.types.json +88 -88
  234. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  235. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  236. package/dist/_typedoc/_utils/types.json +3 -3
  237. package/dist/_typedoc/deprecations.json +1 -1
  238. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Table.js","names":["CurrencyFormatter","useId","VisuallyHidden","cx","React","Link","LinkElement","tableSelectClassName","Spinner","useI18nContext","mergeAriaIds","addSubcomponents","StyledCarat","StyledCaratWrapper","StyledCheckbox","StyledHead","StyledIconCell","StyledLoadingContainer","StyledSelectCellWrapper","StyledTable","StyledTableBodyCell","StyledTableBodyRow","StyledTableCellDateInput","StyledTableCellInput","StyledTableCellSelect","StyledTableCellText","StyledTableCellTextArea","StyledTableGroupRow","StyledTableGroupRowContent","StyledTableGroupRowHeader","StyledTableGroupRowTitle","StyledTableHeaderCell","StyledTableHeaderCellIconWrapper","StyledTableHeaderCellLabel","StyledTableHeaderCellSortableContainer","StyledTableHeaderCellSortButton","StyledTableHeaderCellSortIcon","StyledTableInlineEditContainer","StyledTableInlineEditErrorBox","StyledTableWrapper","Table_","forwardRef","Table","_ref","ref","children","inline","variant","props","_objectWithoutProperties","_excluded","createElement","_extends","$inline","$fixed","Carat","_ref2","_ref2$expanded","expanded","ariaLabel","_excluded2","I18n","defaultLabel","t","scope","size","icon","$expanded","Container","_ref3","_ref3$shelf","shelf","_excluded3","shadowStrength","$withShelf","Header","_ref4","_excluded4","HeaderRow","_ref5","_excluded5","HeaderCell","_ref6","sortOrder_","sortOrder","onClick","onKeyUp","onSortOrderChange_","onSortOrderChange","sortable","_ref6$snugfit","snugfit","ariaDescribedByProp","_excluded6","descriptionId","undefined","isSortable","ariaSortValues","asc","desc","nextValue","role","$sortable","$sortOrder","$snugfit","e","Fragment","type","id","Body","_ref7","_excluded7","Checkbox","GroupTitle","_ref8","_excluded8","Group","_ref9","_ref9$colSpan","colSpan","_ref9$depth","depth","_excluded9","$depth","BodyRow","_ref0","_ref0$overdue","overdue","_excluded0","$overdue","BodyCell","_ref1","_ref1$snugfit","_ref1$variant","_excluded1","CurrencyCell","_ref10","value","currencyOptions","_excluded10","$currency","internalCurrencyOptions","_objectSpread","locale","currencyIsoCode","formatter","internalValue","formatCurrency","DateSelectCell","_ref11","className","_ref11$disabled","disabled","errorMessage","_ref11$processing","processing","_excluded11","error","Boolean","errorId","showErrorMessage","$disabled","$error","$size","loading","IconCell","_ref12","_excluded12","InputCell","_ref13","_ref13$disabled","_ref13$errorMessage","_ref13$processing","_ref13$size","_excluded13","LinkCell","_ref14","_ref14$href","href","_excluded14","TextCell","PercentCell","_ref15","_excluded15","$percent","SelectCell","_ref16","_ref16$block","block","_ref16$processing","_excluded16","hasClearIcon","label","$placeholder","$hasClearIcon","TextAreaCell","_ref17","_ref17$errorMessage","_ref17$processing","_ref17$resizable","resizable","_excluded17","textareaRef","createRef","setHeight","current","style","height","concat","scrollHeight","$resizable","onBlur","event","resize","rows","_ref18","_excluded18","displayName"],"sources":["../../src/Table/Table.tsx"],"sourcesContent":["import type { CurrencyOptions } from '@procore/globalization-toolkit'\nimport { CurrencyFormatter } from '@procore/globalization-toolkit'\nimport { useId } from '@react-aria/utils'\nimport { VisuallyHidden } from '@react-aria/visually-hidden'\nimport cx from 'classnames'\nimport React from 'react'\nimport type { CheckboxProps } from '../Checkbox'\nimport { Link as LinkElement } from '../Link'\nimport { tableSelectClassName } from '../Select/Select.styles'\nimport { Spinner } from '../Spinner'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { mergeAriaIds } from '../_utils/a11y'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport {\n StyledCarat,\n StyledCaratWrapper,\n StyledCheckbox,\n StyledHead,\n StyledIconCell,\n StyledLoadingContainer,\n StyledSelectCellWrapper,\n StyledTable,\n StyledTableBodyCell,\n StyledTableBodyRow,\n StyledTableCellDateInput,\n StyledTableCellInput,\n StyledTableCellSelect,\n StyledTableCellText,\n StyledTableCellTextArea,\n StyledTableGroupRow,\n StyledTableGroupRowContent,\n StyledTableGroupRowHeader,\n StyledTableGroupRowTitle,\n StyledTableHeaderCell,\n StyledTableHeaderCellIconWrapper,\n StyledTableHeaderCellLabel,\n StyledTableHeaderCellSortableContainer,\n StyledTableHeaderCellSortButton,\n StyledTableHeaderCellSortIcon,\n StyledTableInlineEditContainer,\n StyledTableInlineEditErrorBox,\n StyledTableWrapper,\n} from './Table.styles'\nimport type {\n BodyCellProps,\n BodyProps,\n BodyRowProps,\n CaratProps,\n ContainerProps,\n CurrencyCellProps,\n DateSelectCellProps,\n GroupProps,\n GroupTitleProps,\n HeaderProps,\n HeaderRowProps,\n IconCellProps,\n InputCellProps,\n LinkCellProps,\n PercentCellProps,\n TableColumnSortOrder,\n TableHeaderCellProps,\n TableProps,\n TableSelectCellProps,\n TableTextCellProps,\n TextAreaCellProps,\n} from './Table.types'\n\nexport const Table_ = React.forwardRef<\n HTMLTableElement,\n React.TableHTMLAttributes<HTMLTableElement> & TableProps\n>(function Table({ children, inline, variant, ...props }, ref) {\n return (\n <StyledTable\n ref={ref}\n {...props}\n $inline={inline}\n $fixed={variant === 'fixed'}\n >\n {children}\n </StyledTable>\n )\n})\n\nexport const Carat = React.forwardRef<\n HTMLButtonElement,\n React.ButtonHTMLAttributes<HTMLButtonElement> & CaratProps\n>(function Carat({ expanded = false, 'aria-label': ariaLabel, ...props }, ref) {\n const I18n = useI18nContext()\n\n const defaultLabel = I18n.t(expanded ? 'collapse' : 'expand', {\n scope: 'core.table.a11y',\n })\n\n return (\n <StyledCaratWrapper\n ref={ref}\n aria-label={ariaLabel ?? defaultLabel}\n aria-expanded={expanded}\n variant=\"tertiary\"\n size=\"sm\"\n icon={<StyledCarat $expanded={expanded} />}\n {...props}\n />\n )\n})\n\nexport const Container = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & ContainerProps\n>(function Container({ children, shelf = false, ...props }, ref) {\n return (\n <StyledTableWrapper\n {...props}\n ref={ref}\n shadowStrength={0}\n $withShelf={shelf}\n >\n {children}\n </StyledTableWrapper>\n )\n})\n\nexport const Header = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement> & HeaderProps\n>(function Header({ children, ...props }, ref) {\n return (\n <StyledHead ref={ref} {...props}>\n {children}\n </StyledHead>\n )\n})\n\nexport const HeaderRow = React.forwardRef<\n HTMLTableRowElement,\n React.HTMLAttributes<HTMLTableRowElement> & HeaderRowProps\n>(function HeaderRow({ children, ...props }, ref) {\n return (\n <tr ref={ref} {...props}>\n {children}\n </tr>\n )\n})\n\nexport const HeaderCell = React.forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes<HTMLTableCellElement> & TableHeaderCellProps\n>(function HeaderCell(\n {\n sortOrder: sortOrder_,\n onClick,\n onKeyUp,\n onSortOrderChange: onSortOrderChange_,\n sortable,\n children,\n snugfit = false,\n variant,\n 'aria-describedby': ariaDescribedByProp,\n ...props\n },\n ref\n) {\n const I18n = useI18nContext()\n const descriptionId = useId()\n const sortOrder: TableColumnSortOrder | undefined =\n sortOrder_ ?? (variant !== 'snugfit' ? variant : undefined)\n const isSortable = sortOrder !== undefined && sortable !== false\n\n const ariaSortValues = {\n asc: 'ascending',\n desc: 'descending',\n '': 'none',\n } as const\n\n const onSortOrderChange = () => {\n if (!onSortOrderChange_) {\n return\n }\n\n const nextValue =\n sortOrder === '' ? 'asc' : sortOrder === 'asc' ? 'desc' : ''\n onSortOrderChange_(nextValue)\n }\n\n return (\n <StyledTableHeaderCell\n ref={ref}\n {...props}\n role=\"columnheader\"\n aria-sort={isSortable ? ariaSortValues[sortOrder ?? ''] : undefined}\n aria-describedby={isSortable ? undefined : ariaDescribedByProp}\n $sortable={isSortable}\n $sortOrder={sortOrder}\n $snugfit={snugfit || variant === 'snugfit'}\n {...(isSortable\n ? {}\n : {\n onKeyUp: (e: React.KeyboardEvent<HTMLTableHeaderCellElement>) => {\n return onKeyUp?.(e)\n },\n onClick: (e: React.MouseEvent<HTMLTableHeaderCellElement>) => {\n return onClick?.(e)\n },\n })}\n >\n <StyledTableHeaderCellSortableContainer>\n {isSortable ? (\n <>\n <StyledTableHeaderCellSortButton\n type=\"button\"\n aria-describedby={mergeAriaIds(\n descriptionId,\n ariaDescribedByProp\n )}\n onClick={(e: React.MouseEvent<HTMLButtonElement>) => {\n onSortOrderChange()\n onClick?.(\n e as unknown as React.MouseEvent<HTMLTableHeaderCellElement>\n )\n }}\n onKeyUp={(e: React.KeyboardEvent<HTMLButtonElement>) => {\n onKeyUp?.(\n e as unknown as React.KeyboardEvent<HTMLTableHeaderCellElement>\n )\n }}\n >\n <StyledTableHeaderCellLabel>\n {children}\n </StyledTableHeaderCellLabel>\n <StyledTableHeaderCellIconWrapper aria-hidden=\"true\">\n <StyledTableHeaderCellSortIcon />\n </StyledTableHeaderCellIconWrapper>\n </StyledTableHeaderCellSortButton>\n <VisuallyHidden aria-hidden=\"true\" id={descriptionId}>\n {I18n.t('core.table.sortableColumn')}\n </VisuallyHidden>\n </>\n ) : (\n <StyledTableHeaderCellLabel>{children}</StyledTableHeaderCellLabel>\n )}\n </StyledTableHeaderCellSortableContainer>\n </StyledTableHeaderCell>\n )\n})\n\nexport const Body = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement> & BodyProps\n>(function Body({ children, ...props }, ref) {\n return (\n <tbody ref={ref} {...props}>\n {children}\n </tbody>\n )\n})\n\nexport const Checkbox = React.forwardRef<HTMLInputElement, CheckboxProps>(\n function Checkbox(props, ref) {\n const I18n = useI18nContext()\n\n return (\n <StyledCheckbox\n aria-label={I18n.t('core.table.checkboxLabel')}\n ref={ref}\n {...props}\n />\n )\n }\n)\n\nexport const GroupTitle = React.forwardRef<\n HTMLSpanElement,\n React.HTMLAttributes<HTMLSpanElement> & GroupTitleProps\n>(function GroupTitle({ children, ...props }, ref) {\n return (\n <StyledTableGroupRowTitle ref={ref} {...props}>\n {children}\n </StyledTableGroupRowTitle>\n )\n})\n\nexport const Group = React.forwardRef<\n HTMLTableRowElement,\n React.HTMLAttributes<HTMLTableRowElement> & GroupProps\n>(function Group({ children, colSpan = 1000, depth = false, ...props }, ref) {\n return (\n <StyledTableGroupRow ref={ref} $depth={depth} {...props}>\n <td colSpan={colSpan}>\n <StyledTableGroupRowContent>\n <StyledTableGroupRowHeader>{children}</StyledTableGroupRowHeader>\n </StyledTableGroupRowContent>\n </td>\n </StyledTableGroupRow>\n )\n})\n\nexport const BodyRow = React.forwardRef<\n HTMLTableRowElement,\n React.HTMLAttributes<HTMLTableRowElement> & BodyRowProps\n>(function BodyRow({ children, overdue = false, ...props }, ref) {\n return (\n <StyledTableBodyRow ref={ref} $overdue={overdue} {...props}>\n {children}\n </StyledTableBodyRow>\n )\n})\n\nexport const BodyCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes<HTMLTableCellElement> & BodyCellProps\n>(function BodyCell(\n { children, snugfit = false, variant = '', ...props },\n ref\n) {\n return (\n <StyledTableBodyCell\n ref={ref}\n $snugfit={snugfit || variant === 'snugfit'}\n {...props}\n >\n {children}\n </StyledTableBodyCell>\n )\n})\n\nexport const CurrencyCell = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & CurrencyCellProps\n>(function CurrencyCell({ children, value, currencyOptions, ...props }, ref) {\n const I18n = useI18nContext()\n\n if (children) {\n return (\n <StyledTableCellText $currency ref={ref} {...props}>\n {children}\n </StyledTableCellText>\n )\n }\n\n const internalCurrencyOptions: CurrencyOptions = {\n locale: I18n.locale,\n currencyIsoCode: 'USD', // fallback to USD if currencyIsoCode is not provided\n ...currencyOptions,\n }\n const formatter = new CurrencyFormatter(internalCurrencyOptions)\n\n const internalValue = value ? formatter.formatCurrency(value) : null\n\n return (\n <StyledTableCellText $currency ref={ref} {...props}>\n {internalValue}\n </StyledTableCellText>\n )\n})\n\nexport const DateSelectCell = React.forwardRef<\n HTMLDivElement,\n React.PropsWithChildren<DateSelectCellProps>\n>(function DateSelectCell(\n {\n children,\n className,\n disabled = false,\n errorMessage,\n processing = false,\n ...props\n },\n ref\n) {\n const error = Boolean(errorMessage)\n const errorId = useId()\n const showErrorMessage = !processing && error\n\n return (\n <StyledTableInlineEditContainer\n $disabled={disabled}\n $error={error}\n $size=\"block\"\n className={cx({ disabled, error })}\n >\n {processing && (\n <StyledLoadingContainer>\n <Spinner loading={processing} size=\"md\" />\n </StyledLoadingContainer>\n )}\n <StyledTableCellDateInput\n aria-invalid={props.error || error}\n aria-describedby={showErrorMessage ? errorId : undefined}\n {...props}\n disabled={processing || disabled}\n ref={ref}\n variant={error ? 'error' : ''}\n error={props.error || error}\n />\n {showErrorMessage && (\n <StyledTableInlineEditErrorBox id={errorId}>\n {errorMessage}\n </StyledTableInlineEditErrorBox>\n )}\n </StyledTableInlineEditContainer>\n )\n})\n\nexport const IconCell = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & IconCellProps\n>(function IconCell({ children, ...props }, ref) {\n return (\n <StyledIconCell ref={ref} {...props}>\n {children}\n </StyledIconCell>\n )\n})\n\nexport const InputCell = React.forwardRef<HTMLInputElement, InputCellProps>(\n function InputCell(\n {\n disabled = false,\n errorMessage = '',\n processing = false,\n size = 'block', // TODO FIX THIS TYPE\n ...props\n },\n ref\n ) {\n const error = Boolean(errorMessage)\n const errorId = useId()\n const showErrorMessage = !processing && error\n\n return (\n <StyledTableInlineEditContainer\n $disabled={disabled}\n $error={error}\n $size={size}\n className={cx({ disabled, error })}\n >\n {processing && (\n <StyledLoadingContainer>\n <Spinner loading={processing} size=\"md\" />\n </StyledLoadingContainer>\n )}\n <StyledTableCellInput\n aria-describedby={mergeAriaIds(\n props['aria-describedby'],\n showErrorMessage ? errorId : undefined\n )}\n {...props}\n ref={ref}\n error={props.error || error}\n disabled={processing || disabled}\n />\n {showErrorMessage && (\n <StyledTableInlineEditErrorBox $size={size} id={errorId}>\n {errorMessage}\n </StyledTableInlineEditErrorBox>\n )}\n </StyledTableInlineEditContainer>\n )\n }\n)\n\nexport const LinkCell = React.forwardRef<\n HTMLDivElement,\n React.AnchorHTMLAttributes<HTMLAnchorElement> & LinkCellProps\n>(function LinkCell({ children, href = '', ...props }, ref) {\n return (\n <TextCell ref={ref}>\n <LinkElement href={href} {...props}>\n {children}\n </LinkElement>\n </TextCell>\n )\n})\n\nexport const PercentCell = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & PercentCellProps\n>(function PercentCell({ children, ...props }, ref) {\n return (\n <StyledTableCellText $percent ref={ref} {...props}>\n {children}\n </StyledTableCellText>\n )\n})\n\nexport const SelectCell = React.forwardRef<\n HTMLDivElement,\n TableSelectCellProps\n>(function SelectCell(\n {\n block = true,\n children,\n disabled,\n errorMessage,\n className,\n processing = false,\n ...props\n },\n ref\n) {\n const errorId = useId()\n const error = Boolean(errorMessage)\n const hasClearIcon = !disabled && !props.loading && Boolean(props.label)\n const showErrorMessage = !processing && error\n\n return (\n <StyledTableInlineEditContainer\n $disabled={disabled}\n $error={error}\n $size=\"block\"\n className={cx({ disabled, error })}\n >\n {processing && (\n <StyledLoadingContainer>\n <Spinner loading={processing} size=\"md\" />\n </StyledLoadingContainer>\n )}\n <StyledSelectCellWrapper>\n <StyledTableCellSelect\n aria-invalid={props.error || error}\n aria-describedby={mergeAriaIds(\n props['aria-describedby'],\n showErrorMessage ? errorId : undefined\n )}\n {...props}\n $placeholder={!props.label}\n $hasClearIcon={hasClearIcon}\n block={block}\n className={cx(tableSelectClassName, className)}\n disabled={processing || disabled}\n error={props.error || error}\n ref={ref}\n >\n {children}\n </StyledTableCellSelect>\n </StyledSelectCellWrapper>\n {showErrorMessage && (\n <StyledTableInlineEditErrorBox id={errorId}>\n {errorMessage}\n </StyledTableInlineEditErrorBox>\n )}\n </StyledTableInlineEditContainer>\n )\n})\n\nexport const TextAreaCell = React.forwardRef<\n HTMLTextAreaElement,\n React.TextareaHTMLAttributes<HTMLTextAreaElement> & TextAreaCellProps\n>(function TextAreaCell(\n {\n disabled,\n errorMessage = '',\n processing = false,\n resizable = false,\n ...props\n },\n ref\n) {\n const errorId = useId()\n const textareaRef =\n (ref as React.RefObject<HTMLTextAreaElement>) ||\n React.createRef<HTMLTextAreaElement>()\n\n const setHeight = () => {\n if (textareaRef && textareaRef.current) {\n textareaRef.current.style.height = 'auto'\n textareaRef.current.style.height = `${textareaRef.current.scrollHeight}px`\n }\n }\n const error = Boolean(errorMessage)\n const showErrorMessage = !processing && error\n\n return (\n <StyledTableInlineEditContainer\n $disabled={disabled}\n $error={error}\n $size=\"block\"\n className={cx({ disabled, error })}\n >\n {processing && (\n <StyledLoadingContainer>\n <Spinner loading={processing} size=\"md\" />\n </StyledLoadingContainer>\n )}\n <StyledTableCellTextArea\n aria-invalid={error}\n aria-describedby={mergeAriaIds(\n props['aria-describedby'],\n showErrorMessage ? errorId : undefined\n )}\n {...props}\n $resizable={resizable}\n disabled={processing || disabled}\n onBlur={(event: React.FocusEvent<HTMLTextAreaElement>) => {\n setHeight()\n props.onBlur && props.onBlur(event)\n }}\n ref={textareaRef}\n resize=\"none\"\n rows={1}\n error={error}\n />\n {showErrorMessage && (\n <StyledTableInlineEditErrorBox id={errorId}>\n {errorMessage}\n </StyledTableInlineEditErrorBox>\n )}\n </StyledTableInlineEditContainer>\n )\n})\n\nexport const TextCell = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & TableTextCellProps\n>(function TextCell({ children, ...props }, ref) {\n return (\n <StyledTableCellText ref={ref} {...props}>\n {children}\n </StyledTableCellText>\n )\n})\n\nTable_.displayName = 'Table'\n\nBody.displayName = 'Table.Body'\n\nBodyCell.displayName = 'Table.BodyCell'\n\nBodyRow.displayName = 'Table.BodyRow'\n\nCarat.displayName = 'Table.Carat'\n\nCheckbox.displayName = 'Table.Checkbox'\n\nContainer.displayName = 'Table.Container'\n\nCurrencyCell.displayName = 'Table.CurrencyCell'\n\nDateSelectCell.displayName = 'Table.DateSelect'\n\nGroup.displayName = 'Table.Group'\n\nGroupTitle.displayName = 'Table.GroupTitle'\n\nHeader.displayName = 'Table.Header'\n\nHeaderCell.displayName = 'Table.HeaderCell'\n\nHeaderRow.displayName = 'Table.HeaderRow'\n\nIconCell.displayName = 'Table.IconCell'\n\nInputCell.displayName = 'Table.InputCell'\n\nLinkCell.displayName = 'Table.LinkCell'\n\nPercentCell.displayName = 'Table.ParentCell'\n\nTextAreaCell.displayName = 'Table.TextAreaCell'\n\nTextCell.displayName = 'Table.TextCell'\n\n/**\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-table--demo)\n\n */\nexport const Table = addSubcomponents(\n {\n Body,\n BodyCell,\n BodyRow,\n Carat,\n Checkbox,\n Container,\n CurrencyCell,\n DateSelectCell,\n Group,\n GroupTitle,\n Header,\n HeaderCell,\n HeaderRow,\n IconCell,\n InputCell,\n LinkCell,\n PercentCell,\n SelectCell,\n TextAreaCell,\n TextCell,\n },\n Table_\n)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAASA,iBAAiB,QAAQ,gCAAgC;AAClE,SAASC,KAAK,QAAQ,mBAAmB;AACzC,SAASC,cAAc,QAAQ,6BAA6B;AAC5D,OAAOC,EAAE,MAAM,YAAY;AAC3B,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,IAAI,IAAIC,WAAW,QAAQ,SAAS;AAC7C,SAASC,oBAAoB,QAAQ,yBAAyB;AAC9D,SAASC,OAAO,QAAQ,YAAY;AACpC,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SACEC,WAAW,EACXC,kBAAkB,EAClBC,cAAc,EACdC,UAAU,EACVC,c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H,SAAS,EAATA,SAAS;EACTuF,QAAQ,EAARA,QAAQ;EACRG,SAAS,EAATA,SAAS;EACTO,QAAQ,EAARA,QAAQ;EACRM,WAAW,EAAXA,WAAW;EACXI,UAAU,EAAVA,UAAU;EACVU,YAAY,EAAZA,YAAY;EACZf,QAAQ,EAARA;AACF,CAAC,EACD5I,MACF,CAAC"}
1
+ {"version":3,"file":"Table.js","names":["CurrencyFormatter","useId","VisuallyHidden","cx","React","Link","LinkElement","tableSelectClassName","Spinner","useI18nContext","mergeAriaIds","addSubcomponents","CellOverdueIconContext","OverdueContext","StyledCarat","StyledCaratWrapper","StyledCheckbox","StyledHead","StyledIconCell","StyledLoadingContainer","StyledOverdueIcon","StyledSelectCellWrapper","StyledTable","StyledTableBodyCell","StyledTableBodyRow","StyledTableCellDateInput","StyledTableCellInput","StyledTableCellSelect","StyledTableCellText","StyledTableCellTextArea","StyledTableGroupRow","StyledTableGroupRowContent","StyledTableGroupRowHeader","StyledTableGroupRowTitle","StyledTableHeaderCell","StyledTableHeaderCellIconWrapper","StyledTableHeaderCellLabel","StyledTableHeaderCellSortableContainer","StyledTableHeaderCellSortButton","StyledTableHeaderCellSortIcon","StyledTableInlineEditContainer","StyledTableInlineEditErrorBox","StyledTableWrapper","Table_","forwardRef","Table","_ref","ref","children","inline","variant","props","_objectWithoutProperties","_excluded","createElement","_extends","$inline","$fixed","Carat","_ref2","_ref2$expanded","expanded","ariaLabel","_excluded2","I18n","defaultLabel","t","scope","size","icon","$expanded","Container","_ref3","_ref3$shelf","shelf","_excluded3","shadowStrength","$withShelf","Header","_ref4","_excluded4","HeaderRow","_ref5","_excluded5","HeaderCell","_ref6","sortOrder_","sortOrder","onClick","onKeyUp","onSortOrderChange_","onSortOrderChange","sortable","_ref6$snugfit","snugfit","ariaDescribedByProp","_excluded6","descriptionId","undefined","isSortable","ariaSortValues","asc","desc","nextValue","role","$sortable","$sortOrder","$snugfit","e","Fragment","type","id","Body","_ref7","_excluded7","Checkbox","GroupTitle","_ref8","_excluded8","Group","_ref9","_ref9$colSpan","colSpan","_ref9$depth","depth","_excluded9","$depth","BodyRow","_ref0","_ref0$overdue","overdue","_excluded0","iconClaimedRef","useRef","current","hasExplicitIcon","useMemo","Children","toArray","some","child","isValidElement","overdueIcon","overdueContext","Provider","value","$overdue","BodyCell","_ref1","_ref1$overdueIcon","_ref1$snugfit","_ref1$variant","_excluded1","CurrencyCell","_ref10","currencyOptions","_excluded10","useOverdueIcon","$currency","internalCurrencyOptions","_objectSpread","locale","currencyIsoCode","formatter","internalValue","formatCurrency","DateSelectCell","_ref11","className","_ref11$disabled","disabled","errorMessage","_ref11$processing","processing","_excluded11","error","Boolean","errorId","showErrorMessage","$disabled","$error","$size","loading","IconCell","_ref12","_excluded12","InputCell","_ref13","_ref13$disabled","_ref13$errorMessage","_ref13$processing","_ref13$size","_excluded13","LinkCell","_ref14","_ref14$href","href","_excluded14","TextCell","PercentCell","_ref15","_excluded15","$percent","SelectCell","_ref16","_ref16$block","block","_ref16$processing","_excluded16","hasClearIcon","label","$placeholder","$hasClearIcon","TextAreaCell","_ref17","_ref17$errorMessage","_ref17$processing","_ref17$resizable","resizable","_excluded17","textareaRef","createRef","setHeight","style","height","concat","scrollHeight","$resizable","onBlur","event","resize","rows","rightAligned","_React$useContext","useContext","cellOverdueIcon","show","$rightAligned","_ref18","_excluded18","displayName"],"sources":["../../src/Table/Table.tsx"],"sourcesContent":["import type { CurrencyOptions } from '@procore/globalization-toolkit'\nimport { CurrencyFormatter } from '@procore/globalization-toolkit'\nimport { useId } from '@react-aria/utils'\nimport { VisuallyHidden } from '@react-aria/visually-hidden'\nimport cx from 'classnames'\nimport React from 'react'\nimport type { CheckboxProps } from '../Checkbox'\nimport { Link as LinkElement } from '../Link'\nimport { tableSelectClassName } from '../Select/Select.styles'\nimport { Spinner } from '../Spinner'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { mergeAriaIds } from '../_utils/a11y'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { CellOverdueIconContext, OverdueContext } from './OverdueContext'\nimport {\n StyledCarat,\n StyledCaratWrapper,\n StyledCheckbox,\n StyledHead,\n StyledIconCell,\n StyledLoadingContainer,\n StyledOverdueIcon,\n StyledSelectCellWrapper,\n StyledTable,\n StyledTableBodyCell,\n StyledTableBodyRow,\n StyledTableCellDateInput,\n StyledTableCellInput,\n StyledTableCellSelect,\n StyledTableCellText,\n StyledTableCellTextArea,\n StyledTableGroupRow,\n StyledTableGroupRowContent,\n StyledTableGroupRowHeader,\n StyledTableGroupRowTitle,\n StyledTableHeaderCell,\n StyledTableHeaderCellIconWrapper,\n StyledTableHeaderCellLabel,\n StyledTableHeaderCellSortableContainer,\n StyledTableHeaderCellSortButton,\n StyledTableHeaderCellSortIcon,\n StyledTableInlineEditContainer,\n StyledTableInlineEditErrorBox,\n StyledTableWrapper,\n} from './Table.styles'\nimport type {\n BodyCellProps,\n BodyProps,\n BodyRowProps,\n CaratProps,\n ContainerProps,\n CurrencyCellProps,\n DateSelectCellProps,\n GroupProps,\n GroupTitleProps,\n HeaderProps,\n HeaderRowProps,\n IconCellProps,\n InputCellProps,\n LinkCellProps,\n PercentCellProps,\n TableColumnSortOrder,\n TableHeaderCellProps,\n TableProps,\n TableSelectCellProps,\n TableTextCellProps,\n TextAreaCellProps,\n} from './Table.types'\n\nexport const Table_ = React.forwardRef<\n HTMLTableElement,\n React.TableHTMLAttributes<HTMLTableElement> & TableProps\n>(function Table({ children, inline, variant, ...props }, ref) {\n return (\n <StyledTable\n ref={ref}\n {...props}\n $inline={inline}\n $fixed={variant === 'fixed'}\n >\n {children}\n </StyledTable>\n )\n})\n\nexport const Carat = React.forwardRef<\n HTMLButtonElement,\n React.ButtonHTMLAttributes<HTMLButtonElement> & CaratProps\n>(function Carat({ expanded = false, 'aria-label': ariaLabel, ...props }, ref) {\n const I18n = useI18nContext()\n\n const defaultLabel = I18n.t(expanded ? 'collapse' : 'expand', {\n scope: 'core.table.a11y',\n })\n\n return (\n <StyledCaratWrapper\n ref={ref}\n aria-label={ariaLabel ?? defaultLabel}\n aria-expanded={expanded}\n variant=\"tertiary\"\n size=\"sm\"\n icon={<StyledCarat $expanded={expanded} />}\n {...props}\n />\n )\n})\n\nexport const Container = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & ContainerProps\n>(function Container({ children, shelf = false, ...props }, ref) {\n return (\n <StyledTableWrapper\n {...props}\n ref={ref}\n shadowStrength={0}\n $withShelf={shelf}\n >\n {children}\n </StyledTableWrapper>\n )\n})\n\nexport const Header = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement> & HeaderProps\n>(function Header({ children, ...props }, ref) {\n return (\n <StyledHead ref={ref} {...props}>\n {children}\n </StyledHead>\n )\n})\n\nexport const HeaderRow = React.forwardRef<\n HTMLTableRowElement,\n React.HTMLAttributes<HTMLTableRowElement> & HeaderRowProps\n>(function HeaderRow({ children, ...props }, ref) {\n return (\n <tr ref={ref} {...props}>\n {children}\n </tr>\n )\n})\n\nexport const HeaderCell = React.forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes<HTMLTableCellElement> & TableHeaderCellProps\n>(function HeaderCell(\n {\n sortOrder: sortOrder_,\n onClick,\n onKeyUp,\n onSortOrderChange: onSortOrderChange_,\n sortable,\n children,\n snugfit = false,\n variant,\n 'aria-describedby': ariaDescribedByProp,\n ...props\n },\n ref\n) {\n const I18n = useI18nContext()\n const descriptionId = useId()\n const sortOrder: TableColumnSortOrder | undefined =\n sortOrder_ ?? (variant !== 'snugfit' ? variant : undefined)\n const isSortable = sortOrder !== undefined && sortable !== false\n\n const ariaSortValues = {\n asc: 'ascending',\n desc: 'descending',\n '': 'none',\n } as const\n\n const onSortOrderChange = () => {\n if (!onSortOrderChange_) {\n return\n }\n\n const nextValue =\n sortOrder === '' ? 'asc' : sortOrder === 'asc' ? 'desc' : ''\n onSortOrderChange_(nextValue)\n }\n\n return (\n <StyledTableHeaderCell\n ref={ref}\n {...props}\n role=\"columnheader\"\n aria-sort={isSortable ? ariaSortValues[sortOrder ?? ''] : undefined}\n aria-describedby={isSortable ? undefined : ariaDescribedByProp}\n $sortable={isSortable}\n $sortOrder={sortOrder}\n $snugfit={snugfit || variant === 'snugfit'}\n {...(isSortable\n ? {}\n : {\n onKeyUp: (e: React.KeyboardEvent<HTMLTableHeaderCellElement>) => {\n return onKeyUp?.(e)\n },\n onClick: (e: React.MouseEvent<HTMLTableHeaderCellElement>) => {\n return onClick?.(e)\n },\n })}\n >\n <StyledTableHeaderCellSortableContainer>\n {isSortable ? (\n <>\n <StyledTableHeaderCellSortButton\n type=\"button\"\n aria-describedby={mergeAriaIds(\n descriptionId,\n ariaDescribedByProp\n )}\n onClick={(e: React.MouseEvent<HTMLButtonElement>) => {\n onSortOrderChange()\n onClick?.(\n e as unknown as React.MouseEvent<HTMLTableHeaderCellElement>\n )\n }}\n onKeyUp={(e: React.KeyboardEvent<HTMLButtonElement>) => {\n onKeyUp?.(\n e as unknown as React.KeyboardEvent<HTMLTableHeaderCellElement>\n )\n }}\n >\n <StyledTableHeaderCellLabel>\n {children}\n </StyledTableHeaderCellLabel>\n <StyledTableHeaderCellIconWrapper aria-hidden=\"true\">\n <StyledTableHeaderCellSortIcon />\n </StyledTableHeaderCellIconWrapper>\n </StyledTableHeaderCellSortButton>\n <VisuallyHidden aria-hidden=\"true\" id={descriptionId}>\n {I18n.t('core.table.sortableColumn')}\n </VisuallyHidden>\n </>\n ) : (\n <StyledTableHeaderCellLabel>{children}</StyledTableHeaderCellLabel>\n )}\n </StyledTableHeaderCellSortableContainer>\n </StyledTableHeaderCell>\n )\n})\n\nexport const Body = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement> & BodyProps\n>(function Body({ children, ...props }, ref) {\n return (\n <tbody ref={ref} {...props}>\n {children}\n </tbody>\n )\n})\n\nexport const Checkbox = React.forwardRef<HTMLInputElement, CheckboxProps>(\n function Checkbox(props, ref) {\n const I18n = useI18nContext()\n\n return (\n <StyledCheckbox\n aria-label={I18n.t('core.table.checkboxLabel')}\n ref={ref}\n {...props}\n />\n )\n }\n)\n\nexport const GroupTitle = React.forwardRef<\n HTMLSpanElement,\n React.HTMLAttributes<HTMLSpanElement> & GroupTitleProps\n>(function GroupTitle({ children, ...props }, ref) {\n return (\n <StyledTableGroupRowTitle ref={ref} {...props}>\n {children}\n </StyledTableGroupRowTitle>\n )\n})\n\nexport const Group = React.forwardRef<\n HTMLTableRowElement,\n React.HTMLAttributes<HTMLTableRowElement> & GroupProps\n>(function Group({ children, colSpan = 1000, depth = false, ...props }, ref) {\n return (\n <StyledTableGroupRow ref={ref} $depth={depth} {...props}>\n <td colSpan={colSpan}>\n <StyledTableGroupRowContent>\n <StyledTableGroupRowHeader>{children}</StyledTableGroupRowHeader>\n </StyledTableGroupRowContent>\n </td>\n </StyledTableGroupRow>\n )\n})\n\nexport const BodyRow = React.forwardRef<\n HTMLTableRowElement,\n React.HTMLAttributes<HTMLTableRowElement> & BodyRowProps\n>(function BodyRow({ children, overdue = false, ...props }, ref) {\n const iconClaimedRef = React.useRef(false)\n iconClaimedRef.current = false\n\n const hasExplicitIcon = React.useMemo(\n () =>\n overdue &&\n React.Children.toArray(children).some(\n (child) => React.isValidElement(child) && child.props.overdueIcon\n ),\n [children, overdue]\n )\n\n const overdueContext = React.useMemo(\n () => ({ overdue, hasExplicitIcon, iconClaimedRef }),\n [overdue, hasExplicitIcon]\n )\n\n return (\n <OverdueContext.Provider value={overdueContext}>\n <StyledTableBodyRow ref={ref} $overdue={overdue} {...props}>\n {children}\n </StyledTableBodyRow>\n </OverdueContext.Provider>\n )\n})\n\nexport const BodyCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes<HTMLTableCellElement> & BodyCellProps\n>(function BodyCell(\n { children, overdueIcon = false, snugfit = false, variant = '', ...props },\n ref\n) {\n return (\n <CellOverdueIconContext.Provider value={overdueIcon}>\n <StyledTableBodyCell\n ref={ref}\n $snugfit={snugfit || variant === 'snugfit'}\n {...props}\n >\n {children}\n </StyledTableBodyCell>\n </CellOverdueIconContext.Provider>\n )\n})\n\nexport const CurrencyCell = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & CurrencyCellProps\n>(function CurrencyCell({ children, value, currencyOptions, ...props }, ref) {\n const I18n = useI18nContext()\n const icon = useOverdueIcon(true)\n\n if (children) {\n return (\n <StyledTableCellText $currency ref={ref} {...props}>\n {icon}\n {children}\n </StyledTableCellText>\n )\n }\n\n const internalCurrencyOptions: CurrencyOptions = {\n locale: I18n.locale,\n currencyIsoCode: 'USD', // fallback to USD if currencyIsoCode is not provided\n ...currencyOptions,\n }\n const formatter = new CurrencyFormatter(internalCurrencyOptions)\n\n const internalValue = value ? formatter.formatCurrency(value) : null\n\n return (\n <StyledTableCellText $currency ref={ref} {...props}>\n {icon}\n {internalValue}\n </StyledTableCellText>\n )\n})\n\nexport const DateSelectCell = React.forwardRef<\n HTMLDivElement,\n React.PropsWithChildren<DateSelectCellProps>\n>(function DateSelectCell(\n {\n children,\n className,\n disabled = false,\n errorMessage,\n processing = false,\n ...props\n },\n ref\n) {\n const error = Boolean(errorMessage)\n const errorId = useId()\n const showErrorMessage = !processing && error\n\n return (\n <StyledTableInlineEditContainer\n $disabled={disabled}\n $error={error}\n $size=\"block\"\n className={cx({ disabled, error })}\n >\n {processing && (\n <StyledLoadingContainer>\n <Spinner loading={processing} size=\"md\" />\n </StyledLoadingContainer>\n )}\n <StyledTableCellDateInput\n aria-invalid={props.error || error}\n aria-describedby={showErrorMessage ? errorId : undefined}\n {...props}\n disabled={processing || disabled}\n ref={ref}\n variant={error ? 'error' : ''}\n error={props.error || error}\n />\n {showErrorMessage && (\n <StyledTableInlineEditErrorBox id={errorId}>\n {errorMessage}\n </StyledTableInlineEditErrorBox>\n )}\n </StyledTableInlineEditContainer>\n )\n})\n\nexport const IconCell = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & IconCellProps\n>(function IconCell({ children, ...props }, ref) {\n return (\n <StyledIconCell ref={ref} {...props}>\n {children}\n </StyledIconCell>\n )\n})\n\nexport const InputCell = React.forwardRef<HTMLInputElement, InputCellProps>(\n function InputCell(\n {\n disabled = false,\n errorMessage = '',\n processing = false,\n size = 'block', // TODO FIX THIS TYPE\n ...props\n },\n ref\n ) {\n const error = Boolean(errorMessage)\n const errorId = useId()\n const showErrorMessage = !processing && error\n\n return (\n <StyledTableInlineEditContainer\n $disabled={disabled}\n $error={error}\n $size={size}\n className={cx({ disabled, error })}\n >\n {processing && (\n <StyledLoadingContainer>\n <Spinner loading={processing} size=\"md\" />\n </StyledLoadingContainer>\n )}\n <StyledTableCellInput\n aria-describedby={mergeAriaIds(\n props['aria-describedby'],\n showErrorMessage ? errorId : undefined\n )}\n {...props}\n ref={ref}\n error={props.error || error}\n disabled={processing || disabled}\n />\n {showErrorMessage && (\n <StyledTableInlineEditErrorBox $size={size} id={errorId}>\n {errorMessage}\n </StyledTableInlineEditErrorBox>\n )}\n </StyledTableInlineEditContainer>\n )\n }\n)\n\nexport const LinkCell = React.forwardRef<\n HTMLDivElement,\n React.AnchorHTMLAttributes<HTMLAnchorElement> & LinkCellProps\n>(function LinkCell({ children, href = '', ...props }, ref) {\n return (\n <TextCell ref={ref}>\n <LinkElement href={href} {...props}>\n {children}\n </LinkElement>\n </TextCell>\n )\n})\n\nexport const PercentCell = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & PercentCellProps\n>(function PercentCell({ children, ...props }, ref) {\n const icon = useOverdueIcon(true)\n return (\n <StyledTableCellText $percent ref={ref} {...props}>\n {icon}\n {children}\n </StyledTableCellText>\n )\n})\n\nexport const SelectCell = React.forwardRef<\n HTMLDivElement,\n TableSelectCellProps\n>(function SelectCell(\n {\n block = true,\n children,\n disabled,\n errorMessage,\n className,\n processing = false,\n ...props\n },\n ref\n) {\n const errorId = useId()\n const error = Boolean(errorMessage)\n const hasClearIcon = !disabled && !props.loading && Boolean(props.label)\n const showErrorMessage = !processing && error\n\n return (\n <StyledTableInlineEditContainer\n $disabled={disabled}\n $error={error}\n $size=\"block\"\n className={cx({ disabled, error })}\n >\n {processing && (\n <StyledLoadingContainer>\n <Spinner loading={processing} size=\"md\" />\n </StyledLoadingContainer>\n )}\n <StyledSelectCellWrapper>\n <StyledTableCellSelect\n aria-invalid={props.error || error}\n aria-describedby={mergeAriaIds(\n props['aria-describedby'],\n showErrorMessage ? errorId : undefined\n )}\n {...props}\n $placeholder={!props.label}\n $hasClearIcon={hasClearIcon}\n block={block}\n className={cx(tableSelectClassName, className)}\n disabled={processing || disabled}\n error={props.error || error}\n ref={ref}\n >\n {children}\n </StyledTableCellSelect>\n </StyledSelectCellWrapper>\n {showErrorMessage && (\n <StyledTableInlineEditErrorBox id={errorId}>\n {errorMessage}\n </StyledTableInlineEditErrorBox>\n )}\n </StyledTableInlineEditContainer>\n )\n})\n\nexport const TextAreaCell = React.forwardRef<\n HTMLTextAreaElement,\n React.TextareaHTMLAttributes<HTMLTextAreaElement> & TextAreaCellProps\n>(function TextAreaCell(\n {\n disabled,\n errorMessage = '',\n processing = false,\n resizable = false,\n ...props\n },\n ref\n) {\n const errorId = useId()\n const textareaRef =\n (ref as React.RefObject<HTMLTextAreaElement>) ||\n React.createRef<HTMLTextAreaElement>()\n\n const setHeight = () => {\n if (textareaRef && textareaRef.current) {\n textareaRef.current.style.height = 'auto'\n textareaRef.current.style.height = `${textareaRef.current.scrollHeight}px`\n }\n }\n const error = Boolean(errorMessage)\n const showErrorMessage = !processing && error\n\n return (\n <StyledTableInlineEditContainer\n $disabled={disabled}\n $error={error}\n $size=\"block\"\n className={cx({ disabled, error })}\n >\n {processing && (\n <StyledLoadingContainer>\n <Spinner loading={processing} size=\"md\" />\n </StyledLoadingContainer>\n )}\n <StyledTableCellTextArea\n aria-invalid={error}\n aria-describedby={mergeAriaIds(\n props['aria-describedby'],\n showErrorMessage ? errorId : undefined\n )}\n {...props}\n $resizable={resizable}\n disabled={processing || disabled}\n onBlur={(event: React.FocusEvent<HTMLTextAreaElement>) => {\n setHeight()\n props.onBlur && props.onBlur(event)\n }}\n ref={textareaRef}\n resize=\"none\"\n rows={1}\n error={error}\n />\n {showErrorMessage && (\n <StyledTableInlineEditErrorBox id={errorId}>\n {errorMessage}\n </StyledTableInlineEditErrorBox>\n )}\n </StyledTableInlineEditContainer>\n )\n})\n\nfunction useOverdueIcon(rightAligned?: boolean) {\n const { overdue, hasExplicitIcon, iconClaimedRef } =\n React.useContext(OverdueContext)\n const cellOverdueIcon = React.useContext(CellOverdueIconContext)\n const I18n = useI18nContext()\n\n if (!overdue) return null\n\n let show = false\n if (hasExplicitIcon) {\n show = cellOverdueIcon\n } else if (!iconClaimedRef.current) {\n iconClaimedRef.current = true\n show = true\n }\n\n if (!show) return null\n return (\n <StyledOverdueIcon\n aria-hidden={false}\n size=\"sm\"\n role=\"img\"\n aria-label={I18n.t('core.table.a11y.overdue')}\n $rightAligned={rightAligned}\n />\n )\n}\n\nexport const TextCell = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & TableTextCellProps\n>(function TextCell({ children, ...props }, ref) {\n const icon = useOverdueIcon()\n return (\n <StyledTableCellText ref={ref} {...props}>\n {children}\n {icon}\n </StyledTableCellText>\n )\n})\n\nTable_.displayName = 'Table'\n\nBody.displayName = 'Table.Body'\n\nBodyCell.displayName = 'Table.BodyCell'\n\nBodyRow.displayName = 'Table.BodyRow'\n\nCarat.displayName = 'Table.Carat'\n\nCheckbox.displayName = 'Table.Checkbox'\n\nContainer.displayName = 'Table.Container'\n\nCurrencyCell.displayName = 'Table.CurrencyCell'\n\nDateSelectCell.displayName = 'Table.DateSelect'\n\nGroup.displayName = 'Table.Group'\n\nGroupTitle.displayName = 'Table.GroupTitle'\n\nHeader.displayName = 'Table.Header'\n\nHeaderCell.displayName = 'Table.HeaderCell'\n\nHeaderRow.displayName = 'Table.HeaderRow'\n\nIconCell.displayName = 'Table.IconCell'\n\nInputCell.displayName = 'Table.InputCell'\n\nLinkCell.displayName = 'Table.LinkCell'\n\nPercentCell.displayName = 'Table.ParentCell'\n\nTextAreaCell.displayName = 'Table.TextAreaCell'\n\nTextCell.displayName = 'Table.TextCell'\n\n/**\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-table--demo)\n\n */\nexport const Table = addSubcomponents(\n {\n Body,\n BodyCell,\n BodyRow,\n Carat,\n Checkbox,\n Container,\n CurrencyCell,\n DateSelectCell,\n Group,\n GroupTitle,\n Header,\n HeaderCell,\n HeaderRow,\n IconCell,\n InputCell,\n LinkCell,\n PercentCell,\n SelectCell,\n TextAreaCell,\n TextCell,\n },\n Table_\n)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAASA,iBAAiB,QAAQ,gCAAgC;AAClE,SAASC,KAAK,QAAQ,mBAAmB;AACzC,SAASC,cAAc,QAAQ,6BAA6B;AAC5D,OAAOC,EAAE,MAAM,YAAY;AAC3B,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,IAAI,IAAIC,WAAW,QAAQ,SAAS;AAC7C,SAASC,oBAAoB,QAAQ,yBAAyB;AAC9D,SAASC,OAAO,QAAQ,YAAY;AACpC,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,sBAAsB,EAAEC,cAAc,QAAQ,kBAAkB;AACzE,SACEC,WAAW,EACXC,kBAAkB,EAClBC,cAAc,EACdC,UAAU,EACVC,cAAc,EACdC,sBAAsB,EACtBC,iBAAiB,EACjBC,uBAAuB,EACvBC,WAAW,EACXC,mBAAmB,EACnBC,kBAAkB,EAClBC,wBAAwB,EACxBC,oBAAoB,EACpBC,qBAAqB,EACrBC,mBAAmB,EACnBC,uBAAuB,EACvBC,mBAAmB,EACnBC,0BAA0B,EAC1BC,yBA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BAAiB;AAEzC/C,QAAQ,CAAC+C,WAAW,GAAG,gBAAgB;AAEvCzC,WAAW,CAACyC,WAAW,GAAG,kBAAkB;AAE5C3B,YAAY,CAAC2B,WAAW,GAAG,oBAAoB;AAE/C1C,QAAQ,CAAC0C,WAAW,GAAG,gBAAgB;;AAEvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMnM,KAAK,GAAGlC,gBAAgB,CACnC;EACEqG,IAAI,EAAJA,IAAI;EACJmC,QAAQ,EAARA,QAAQ;EACRpB,OAAO,EAAPA,OAAO;EACPrE,KAAK,EAALA,KAAK;EACLyD,QAAQ,EAARA,QAAQ;EACR5C,SAAS,EAATA,SAAS;EACTkF,YAAY,EAAZA,YAAY;EACZa,cAAc,EAAdA,cAAc;EACd/C,KAAK,EAALA,KAAK;EACLH,UAAU,EAAVA,UAAU;EACVtC,MAAM,EAANA,MAAM;EACNM,UAAU,EAAVA,UAAU;EACVH,SAAS,EAATA,SAAS;EACTsG,QAAQ,EAARA,QAAQ;EACRG,SAAS,EAATA,SAAS;EACTO,QAAQ,EAARA,QAAQ;EACRM,WAAW,EAAXA,WAAW;EACXI,UAAU,EAAVA,UAAU;EACVU,YAAY,EAAZA,YAAY;EACZf,QAAQ,EAARA;AACF,CAAC,EACD3J,MACF,CAAC"}
@@ -61,6 +61,15 @@ export declare const StyledTableCellText: import("styled-components/dist/types")
61
61
  $currency?: boolean | undefined;
62
62
  }>> & string;
63
63
  export declare const StyledIconCell: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
64
+ export declare const StyledOverdueIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
65
+ size?: import("@procore/core-icons/dist/Icon").IconSize | undefined;
66
+ } & import("react").SVGAttributes<SVGElement> & import("react").RefAttributes<SVGSVGElement>, "ref"> & {
67
+ ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
68
+ }, {
69
+ $rightAligned?: boolean | undefined;
70
+ }>> & string & Omit<import("react").ForwardRefExoticComponent<{
71
+ size?: import("@procore/core-icons/dist/Icon").IconSize | undefined;
72
+ } & import("react").SVGAttributes<SVGElement> & import("react").RefAttributes<SVGSVGElement>>, keyof import("react").Component<any, {}, any>>;
64
73
  export declare const StyledSelectCellWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
65
74
  export declare const StyledTableInlineEditErrorBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
66
75
  $size?: InputCellSize | undefined;
@@ -1,4 +1,4 @@
1
- import { ArrowUp, ChevronRight } from '@procore/core-icons';
1
+ import { ArrowUp, ChevronRight, Error } from '@procore/core-icons';
2
2
  import styled, { css } from 'styled-components';
3
3
  import { Button } from '../Button';
4
4
  import { Card } from '../Card';
@@ -48,38 +48,38 @@ var tableCellInputErrorBorder = "1px solid ".concat(colors.red50);
48
48
  var tableRowBorderBottom = /*#__PURE__*/css(["border-bottom:", ";&:last-child{border-bottom:0;}"], tableBorder);
49
49
  export var StyledTableHeaderCellSortableContainer = /*#__PURE__*/styled.div.withConfig({
50
50
  displayName: "StyledTableHeaderCellSortableContainer",
51
- componentId: "core-12_45_0__sc-9c7xd-0"
51
+ componentId: "core-12_46_0__sc-9c7xd-0"
52
52
  })([""]);
53
53
  export var StyledTableHeaderCellLabel = /*#__PURE__*/styled.span.withConfig({
54
54
  displayName: "StyledTableHeaderCellLabel",
55
- componentId: "core-12_45_0__sc-9c7xd-1"
55
+ componentId: "core-12_46_0__sc-9c7xd-1"
56
56
  })(["display:inline-block;flex:1 1 auto;position:relative;"]);
57
57
  export var StyledTableHeaderCellIconWrapper = /*#__PURE__*/styled.div.withConfig({
58
58
  displayName: "StyledTableHeaderCellIconWrapper",
59
- componentId: "core-12_45_0__sc-9c7xd-2"
59
+ componentId: "core-12_46_0__sc-9c7xd-2"
60
60
  })(["height:20px;line-height:20px;padding:0 ", "px 0 ", "px;width:20px;"], spacing.lg, spacing.sm);
61
61
  export var StyledTableHeaderCellSortIcon = /*#__PURE__*/styled(ArrowUp).withConfig({
62
62
  displayName: "StyledTableHeaderCellSortIcon",
63
- componentId: "core-12_45_0__sc-9c7xd-3"
63
+ componentId: "core-12_46_0__sc-9c7xd-3"
64
64
  })(["height:16px;width:16px;"]);
65
65
  export var StyledTableHeaderCellSortButton = /*#__PURE__*/styled.button.withConfig({
66
66
  displayName: "StyledTableHeaderCellSortButton",
67
- componentId: "core-12_45_0__sc-9c7xd-4"
67
+ componentId: "core-12_46_0__sc-9c7xd-4"
68
68
  })(["background:transparent;border:none;display:flex;align-items:center;font:inherit;margin:0;min-height:", "px;padding:", "px;text-align:left;width:100%;&:focus-visible{", " outline-offset:-1px;}", "{min-height:14px;}", "{color:", ";opacity:0;transition:all 0.15s ease-in-out;position:absolute;}::before,::after{font-size:16px;}"], tableHeaderHeight, spacing.lg, getGapOutlineFocus('inside'), StyledTableHeaderCellLabel, StyledTableHeaderCellSortIcon, tableSortFontColor);
69
69
  export var StyledCheckbox = /*#__PURE__*/styled(Checkbox).withConfig({
70
70
  displayName: "StyledCheckbox",
71
- componentId: "core-12_45_0__sc-9c7xd-5"
71
+ componentId: "core-12_46_0__sc-9c7xd-5"
72
72
  })([""]);
73
73
  export var StyledTableBodyCell = /*#__PURE__*/styled.td.withConfig({
74
74
  displayName: "StyledTableBodyCell",
75
- componentId: "core-12_45_0__sc-9c7xd-6"
75
+ componentId: "core-12_46_0__sc-9c7xd-6"
76
76
  })(["position:relative;vertical-align:middle;", ""], function (_ref) {
77
77
  var $snugfit = _ref.$snugfit;
78
78
  return $snugfit && css(["white-space:nowrap;width:0.1%;"]);
79
79
  });
80
80
  export var StyledTableHeaderCell = /*#__PURE__*/styled.th.withConfig({
81
81
  displayName: "StyledTableHeaderCell",
82
- componentId: "core-12_45_0__sc-9c7xd-7"
82
+ componentId: "core-12_46_0__sc-9c7xd-7"
83
83
  })(["", " font-weight:", ";border-right:", ";color:", ";height:", "px;padding:", "px;position:relative;text-align:left;transition:background-color 0.2s ease-in-out;&:last-child{border-right:0;}", "{display:flex;align-items:center;}", " ", " ", " ", ""], getTypographyIntent('small'), tableHeaderFontWeight, tableHeaderBorderRight, tableHeaderFontColor, tableHeaderHeight, tableHeaderPadding, StyledTableHeaderCellSortableContainer, function (_ref2) {
84
84
  var $sortable = _ref2.$sortable;
85
85
  return $sortable && css(["padding:0;&:hover{background-color:", ";}"], tableHeaderBgColorHover);
@@ -95,15 +95,15 @@ export var StyledTableHeaderCell = /*#__PURE__*/styled.th.withConfig({
95
95
  });
96
96
  export var StyledHead = /*#__PURE__*/styled.thead.withConfig({
97
97
  displayName: "StyledHead",
98
- componentId: "core-12_45_0__sc-9c7xd-8"
98
+ componentId: "core-12_46_0__sc-9c7xd-8"
99
99
  })(["background-color:", ";transition:background-color 0.2s ease-in-out;", ""], tableHeaderBgColor, tableRowBorderBottom);
100
100
  export var StyledCaratWrapper = /*#__PURE__*/styled(Button).withConfig({
101
101
  displayName: "StyledCaratWrapper",
102
- componentId: "core-12_45_0__sc-9c7xd-9"
102
+ componentId: "core-12_46_0__sc-9c7xd-9"
103
103
  })([""]);
104
104
  export var StyledCarat = /*#__PURE__*/styled(ChevronRight).withConfig({
105
105
  displayName: "StyledCarat",
106
- componentId: "core-12_45_0__sc-9c7xd-10"
106
+ componentId: "core-12_46_0__sc-9c7xd-10"
107
107
  })(["", ""], function (_ref6) {
108
108
  var $expanded = _ref6.$expanded;
109
109
  return $expanded && css(["transform:rotate(90deg);"]);
@@ -111,7 +111,7 @@ export var StyledCarat = /*#__PURE__*/styled(ChevronRight).withConfig({
111
111
  var cellInputCSS = /*#__PURE__*/css(["background-color:rgba(255,255,255,0);&&&{border:", ";border-radius:4px;width:100%;&::placeholder{color:", ";}&::-ms-clear{display:none;}&:hover{border-color:transparent;}&:focus{background-color:", ";border-style:solid;border-width:1px;border-color:", ";box-shadow:0 0 0 1px ", ";outline:none;}&:disabled{border:", ";color:", ";}}"], tableCellInputBorder, tableCellInputPlaceholderColor, colors.white, colors.blue40, colors.blue40, tableCellInputBorder, colors.gray70);
112
112
  export var StyledTableCellSelect = /*#__PURE__*/styled(Select).withConfig({
113
113
  displayName: "StyledTableCellSelect",
114
- componentId: "core-12_45_0__sc-9c7xd-11"
114
+ componentId: "core-12_46_0__sc-9c7xd-11"
115
115
  })(["", ";background-color:transparent;border-color:transparent;height:auto;&:hover{background-color:transparent;}&:active:hover{border-color:", ";}&:focus,", ":focus-within &{background-color:", ";cursor:pointer;", " ", "{white-space:nowrap;}", "{opacity:1;pointer-events:all;}", " ", "}", " ", "{white-space:normal;}", ",& + ", "{opacity:0;pointer-events:none;}", " ", ""], cellInputCSS, colors.gray85, StyledSelectButtonWrapper, colors.white, getFocus(), StyledSelectButtonLabel, StyledSelectArrow, function (_ref7) {
116
116
  var $hasClearIcon = _ref7.$hasClearIcon;
117
117
  return $hasClearIcon && css(["& + ", "{opacity:1;pointer-events:all;}"], StyledSelectClearIcon);
@@ -132,25 +132,25 @@ export var StyledTableCellSelect = /*#__PURE__*/styled(Select).withConfig({
132
132
  });
133
133
  export var StyledTableCellInput = /*#__PURE__*/styled(Input).withConfig({
134
134
  displayName: "StyledTableCellInput",
135
- componentId: "core-12_45_0__sc-9c7xd-12"
135
+ componentId: "core-12_46_0__sc-9c7xd-12"
136
136
  })(["", ""], cellInputCSS);
137
137
  export var StyledTableCellDateInput = /*#__PURE__*/styled(DateSelect).withConfig({
138
138
  displayName: "StyledTableCellDateInput",
139
- componentId: "core-12_45_0__sc-9c7xd-13"
139
+ componentId: "core-12_46_0__sc-9c7xd-13"
140
140
  })(["background-color:transparent;border-color:transparent;&:active:hover{border-color:", ";}&&&:focus-within{", ";background-color:", ";}", " ", "{opacity:0;}", "{&[data-qa-table-visible='false']{opacity:0;}}", "{&[data-placeholder='true']{opacity:0;}}&:focus-within{", "{opacity:1;}", "{&[data-qa-table-visible='false']{opacity:1;}}", "{&[data-placeholder='true']{opacity:1;}}}"], colors.gray45, getFocus(), colors.white, function (_ref10) {
141
141
  var error = _ref10.error;
142
142
  return error && css(["border-color:", ";"], colors.red50);
143
143
  }, StyledDateInputIconContainer, StyledDateInputDelimiter, StyledDateInputSegment, StyledDateInputIconContainer, StyledDateInputDelimiter, StyledDateInputSegment);
144
144
  export var StyledTableCellTextArea = /*#__PURE__*/styled(TextArea).withConfig({
145
145
  displayName: "StyledTableCellTextArea",
146
- componentId: "core-12_45_0__sc-9c7xd-14"
146
+ componentId: "core-12_46_0__sc-9c7xd-14"
147
147
  })(["", " &&{height:", "px;min-height:", "px;overflow:hidden;padding-top:", "px;resize:none;width:100%;", "}"], cellInputCSS, spacing.xxl, spacing.xxl, spacing.xs, function (_ref11) {
148
148
  var $resizable = _ref11.$resizable;
149
149
  return $resizable && css(["&:focus{min-height:64px;overflow:auto;resize:vertical;}"]);
150
150
  });
151
151
  export var StyledTableCellText = /*#__PURE__*/styled.div.withConfig({
152
152
  displayName: "StyledTableCellText",
153
- componentId: "core-12_45_0__sc-9c7xd-15"
153
+ componentId: "core-12_46_0__sc-9c7xd-15"
154
154
  })(["margin:", "px;display:flex;color:", ";", ""], spacing.lg, tableCellTextColor, function (_ref12) {
155
155
  var $percent = _ref12.$percent,
156
156
  $currency = _ref12.$currency;
@@ -158,17 +158,24 @@ export var StyledTableCellText = /*#__PURE__*/styled.div.withConfig({
158
158
  });
159
159
  export var StyledIconCell = /*#__PURE__*/styled.div.withConfig({
160
160
  displayName: "StyledIconCell",
161
- componentId: "core-12_45_0__sc-9c7xd-16"
161
+ componentId: "core-12_46_0__sc-9c7xd-16"
162
162
  })(["display:flex;color:", ";"], tableCellIconColor);
163
+ export var StyledOverdueIcon = /*#__PURE__*/styled(Error).withConfig({
164
+ displayName: "StyledOverdueIcon",
165
+ componentId: "core-12_46_0__sc-9c7xd-17"
166
+ })(["color:", ";flex-shrink:0;align-self:center;", ""], colors.red50, function (_ref13) {
167
+ var $rightAligned = _ref13.$rightAligned;
168
+ return $rightAligned ? css(["margin-right:", "px;"], spacing.sm) : css(["margin-left:", "px;"], spacing.sm);
169
+ });
163
170
  export var StyledSelectCellWrapper = /*#__PURE__*/styled.div.withConfig({
164
171
  displayName: "StyledSelectCellWrapper",
165
- componentId: "core-12_45_0__sc-9c7xd-17"
172
+ componentId: "core-12_46_0__sc-9c7xd-18"
166
173
  })(["display:flex;flex-direction:column;"]);
167
174
  export var StyledTableInlineEditErrorBox = /*#__PURE__*/styled.div.withConfig({
168
175
  displayName: "StyledTableInlineEditErrorBox",
169
- componentId: "core-12_45_0__sc-9c7xd-18"
170
- })(["", " color:", ";font-style:italic;background:", ";border-radius:0 2px 2px 2px;box-shadow:0 1px 2px rgba(0,0,0,0.2),0 1px 3px rgba(0,0,0,0.1);padding:6px ", "px;position:absolute;max-width:160px;z-index:1;", ""], getTypographyIntent('small'), colors.white, colors.red50, spacing.md, function (_ref13) {
171
- var $size = _ref13.$size;
176
+ componentId: "core-12_46_0__sc-9c7xd-19"
177
+ })(["", " color:", ";font-style:italic;background:", ";border-radius:0 2px 2px 2px;box-shadow:0 1px 2px rgba(0,0,0,0.2),0 1px 3px rgba(0,0,0,0.1);padding:6px ", "px;position:absolute;max-width:160px;z-index:1;", ""], getTypographyIntent('small'), colors.white, colors.red50, spacing.md, function (_ref14) {
178
+ var $size = _ref14.$size;
172
179
  var sizes = {
173
180
  xs: 36,
174
181
  sm: 48,
@@ -184,12 +191,12 @@ export var StyledTableInlineEditErrorBox = /*#__PURE__*/styled.div.withConfig({
184
191
  });
185
192
  export var StyledTableInlineEditContainer = /*#__PURE__*/styled.div.withConfig({
186
193
  displayName: "StyledTableInlineEditContainer",
187
- componentId: "core-12_45_0__sc-9c7xd-19"
188
- })(["background-color:", ";margin:", "px ", "px;position:relative;", " ", ""], tableBgColor, spacing.sm, spacing.xs, function (_ref14) {
189
- var $error = _ref14.$error;
194
+ componentId: "core-12_46_0__sc-9c7xd-20"
195
+ })(["background-color:", ";margin:", "px ", "px;position:relative;", " ", ""], tableBgColor, spacing.sm, spacing.xs, function (_ref15) {
196
+ var $error = _ref15.$error;
190
197
  return $error && css(["position:static;background-color:", ";", ",", ",", ",", "{border:", ";border-radius:4px 4px 0 0;border-bottom:none;&:hover{border-bottom:none;}&:focus{background-color:", ";border:", ";border-bottom:none;}}"], tableCellInputErrorBgColor, StyledTableCellDateInput, StyledTableCellInput, StyledTableCellSelect, StyledTableCellTextArea, tableCellInputErrorBorder, tableCellInputFocusBgColor, tableCellInputFocusBorder);
191
- }, function (_ref15) {
192
- var $size = _ref15.$size;
198
+ }, function (_ref16) {
199
+ var $size = _ref16.$size;
193
200
  var sizes = {
194
201
  xs: 36,
195
202
  sm: 48,
@@ -208,28 +215,28 @@ export var StyledTableInlineEditContainer = /*#__PURE__*/styled.div.withConfig({
208
215
  });
209
216
  export var StyledTableBodyRow = /*#__PURE__*/styled.tr.withConfig({
210
217
  displayName: "StyledTableBodyRow",
211
- componentId: "core-12_45_0__sc-9c7xd-20"
212
- })(["", " ", " &:focus-within{", "{background-color:", ";&.disabled{background-color:transparent;}}", ".error{background-color:", ";}}&:hover{", "{background-color:", ";cursor:pointer;&:hover{background-color:", ";}&.disabled{&,&:hover{background-color:transparent;cursor:default;}}}", ".error{background-color:", ";&:hover{background-color:", ";}", ",", ",", "{border:", ";border-bottom:none;&:hover{border-bottom:none;}&:focus{border:", ";border-bottom:none;}}}}"], tableRowBorderBottom, function (_ref16) {
213
- var $overdue = _ref16.$overdue;
218
+ componentId: "core-12_46_0__sc-9c7xd-21"
219
+ })(["", " ", " &:focus-within{", "{background-color:", ";&.disabled{background-color:transparent;}}", ".error{background-color:", ";}}&:hover{", "{background-color:", ";cursor:pointer;&:hover{background-color:", ";}&.disabled{&,&:hover{background-color:transparent;cursor:default;}}}", ".error{background-color:", ";&:hover{background-color:", ";}", ",", ",", "{border:", ";border-bottom:none;&:hover{border-bottom:none;}&:focus{border:", ";border-bottom:none;}}}}"], tableRowBorderBottom, function (_ref17) {
220
+ var $overdue = _ref17.$overdue;
214
221
  return $overdue && css(["", ",", ",", ",", ",", "{color:", ";}"], StyledTableCellText, StyledTableCellSelect, StyledTableCellInput, StyledTableCellDateInput, StyledTableCellTextArea, colors.red50);
215
222
  }, StyledTableInlineEditContainer, tableCellInputRowHoverBgColor, StyledTableInlineEditContainer, tableCellInputErrorBgColor, StyledTableInlineEditContainer, tableCellInputRowHoverBgColor, tableCellInputHoverBgColor, StyledTableInlineEditContainer, tableCellInputErrorBgColor, tableCellInputErrorBgColor, StyledTableCellInput, StyledTableCellSelect, StyledTableCellTextArea, tableCellInputErrorBorder, tableCellInputFocusBorder);
216
223
  export var StyledTableGroupRowContent = /*#__PURE__*/styled.div.withConfig({
217
224
  displayName: "StyledTableGroupRowContent",
218
- componentId: "core-12_45_0__sc-9c7xd-21"
225
+ componentId: "core-12_46_0__sc-9c7xd-22"
219
226
  })([""]);
220
227
  export var StyledTableGroupRowHeader = /*#__PURE__*/styled.div.withConfig({
221
228
  displayName: "StyledTableGroupRowHeader",
222
- componentId: "core-12_45_0__sc-9c7xd-22"
229
+ componentId: "core-12_46_0__sc-9c7xd-23"
223
230
  })([""]);
224
231
  export var StyledTableGroupRowTitle = /*#__PURE__*/styled.span.withConfig({
225
232
  displayName: "StyledTableGroupRowTitle",
226
- componentId: "core-12_45_0__sc-9c7xd-23"
233
+ componentId: "core-12_46_0__sc-9c7xd-24"
227
234
  })([""]);
228
235
  export var StyledTableGroupRow = /*#__PURE__*/styled.tr.withConfig({
229
236
  displayName: "StyledTableGroupRow",
230
- componentId: "core-12_45_0__sc-9c7xd-24"
231
- })(["background-color:", ";", " ", "{margin-left:", "px;padding:", "px 0;display:flex;flex-direction:row;}", "{display:flex;align-items:center;}", "{font-weight:", ";padding-left:", "px;}", ""], tableGroupRowBgColor, tableRowBorderBottom, StyledTableGroupRowContent, spacing.lg, spacing.lg, StyledTableGroupRowHeader, StyledTableGroupRowTitle, tableHeaderFontWeight, spacing.lg, function (_ref17) {
232
- var $depth = _ref17.$depth;
237
+ componentId: "core-12_46_0__sc-9c7xd-25"
238
+ })(["background-color:", ";", " ", "{margin-left:", "px;padding:", "px 0;display:flex;flex-direction:row;}", "{display:flex;align-items:center;}", "{font-weight:", ";padding-left:", "px;}", ""], tableGroupRowBgColor, tableRowBorderBottom, StyledTableGroupRowContent, spacing.lg, spacing.lg, StyledTableGroupRowHeader, StyledTableGroupRowTitle, tableHeaderFontWeight, spacing.lg, function (_ref18) {
239
+ var $depth = _ref18.$depth;
233
240
  if (typeof $depth !== 'number') {
234
241
  return '';
235
242
  }
@@ -237,25 +244,25 @@ export var StyledTableGroupRow = /*#__PURE__*/styled.tr.withConfig({
237
244
  });
238
245
  export var StyledTableWrapper = /*#__PURE__*/styled(Card).withConfig({
239
246
  displayName: "StyledTableWrapper",
240
- componentId: "core-12_45_0__sc-9c7xd-25"
241
- })(["border-radius:", "px;border:", ";", ",tbody{&:first-child{tr:first-child{", ",td{&:first-child{border-top-left-radius:", "px;}&:last-child{border-top-right-radius:", "px;}}}}&:last-child{tr:last-child{", ",td{&:first-child{border-bottom-left-radius:", "px;}&:last-child{border-bottom-right-radius:", "px;}}}}}", ""], tableBorderRadius, tableBorder, StyledHead, StyledTableHeaderCell, tableBorderRadius, tableBorderRadius, StyledTableHeaderCell, tableBorderRadius, tableBorderRadius, function (_ref18) {
242
- var $withShelf = _ref18.$withShelf;
247
+ componentId: "core-12_46_0__sc-9c7xd-26"
248
+ })(["border-radius:", "px;border:", ";", ",tbody{&:first-child{tr:first-child{", ",td{&:first-child{border-top-left-radius:", "px;}&:last-child{border-top-right-radius:", "px;}}}}&:last-child{tr:last-child{", ",td{&:first-child{border-bottom-left-radius:", "px;}&:last-child{border-bottom-right-radius:", "px;}}}}}", ""], tableBorderRadius, tableBorder, StyledHead, StyledTableHeaderCell, tableBorderRadius, tableBorderRadius, StyledTableHeaderCell, tableBorderRadius, tableBorderRadius, function (_ref19) {
249
+ var $withShelf = _ref19.$withShelf;
243
250
  return $withShelf && css(["position:relative;height:100%;"]);
244
251
  });
245
252
  var BodyRow = StyledTableBodyRow;
246
253
  var GroupRow = StyledTableGroupRow;
247
254
  export var StyledTable = /*#__PURE__*/styled.table.withConfig({
248
255
  displayName: "StyledTable",
249
- componentId: "core-12_45_0__sc-9c7xd-26"
250
- })(["background-color:", ";border-collapse:collapse;border-radius:", "px;", " width:100%;td:first-child ", "{padding-left:", "px;}", " ", " + ", "{margin-left:", "px;padding-left:0;}", " ", " ", " + ", " > td{padding-left:", "px;}", " + ", " + ", " > td{padding-left:", "px;}", " + ", " + ", " + ", " > td{padding-left:", "px;}", " + ", " + ", " + ", " + ", " > td{padding-left:", "px;}", " ~ ", "{", "{padding-left:0;margin:0 ", "px;}& > td:first-child{padding-left:", "px;}}", " + ", " ~ ", "{& > td:first-child{padding-left:", "px;}}", " + ", " + ", " ~ ", "{& > td:first-child{padding-left:", "px;}}", " + ", " + ", " + ", " ~ ", "{& > td:first-child{padding-left:", "px;}}", " + ", " + ", " + ", " + ", " ~ ", "{& > td:first-child{padding-left:", "px;}}"], tableBgColor, tableBorderRadius, getTypographyIntent('body'), StyledCheckbox, spacing.lg, StyledTableGroupRow, StyledCaratWrapper, StyledCheckbox, spacing.xs, function (_ref19) {
251
- var $fixed = _ref19.$fixed;
256
+ componentId: "core-12_46_0__sc-9c7xd-27"
257
+ })(["background-color:", ";border-collapse:collapse;border-radius:", "px;", " width:100%;td:first-child ", "{padding-left:", "px;}", " ", " + ", "{margin-left:", "px;padding-left:0;}", " ", " ", " + ", " > td{padding-left:", "px;}", " + ", " + ", " > td{padding-left:", "px;}", " + ", " + ", " + ", " > td{padding-left:", "px;}", " + ", " + ", " + ", " + ", " > td{padding-left:", "px;}", " ~ ", "{", "{padding-left:0;margin:0 ", "px;}& > td:first-child{padding-left:", "px;}}", " + ", " ~ ", "{& > td:first-child{padding-left:", "px;}}", " + ", " + ", " ~ ", "{& > td:first-child{padding-left:", "px;}}", " + ", " + ", " + ", " ~ ", "{& > td:first-child{padding-left:", "px;}}", " + ", " + ", " + ", " + ", " ~ ", "{& > td:first-child{padding-left:", "px;}}"], tableBgColor, tableBorderRadius, getTypographyIntent('body'), StyledCheckbox, spacing.lg, StyledTableGroupRow, StyledCaratWrapper, StyledCheckbox, spacing.xs, function (_ref20) {
258
+ var $fixed = _ref20.$fixed;
252
259
  return $fixed && css(["table-layout:fixed;"]);
253
- }, function (_ref20) {
254
- var $inline = _ref20.$inline;
260
+ }, function (_ref21) {
261
+ var $inline = _ref21.$inline;
255
262
  return $inline && css(["border-top:1px solid ", ";border-bottom:1px solid ", ";"], colors.gray85, colors.gray85);
256
263
  }, GroupRow, GroupRow, tableGroupHeaderRowIndentation, GroupRow, GroupRow, GroupRow, 2 * tableGroupHeaderRowIndentation, GroupRow, GroupRow, GroupRow, GroupRow, 3 * tableGroupHeaderRowIndentation, GroupRow, GroupRow, GroupRow, GroupRow, GroupRow, 4 * tableGroupHeaderRowIndentation, GroupRow, BodyRow, StyledCheckbox, spacing.xs, tableGroupHeaderRowIndentation + tableGroupBodyRowIndentation, GroupRow, GroupRow, BodyRow, 2 * tableGroupHeaderRowIndentation + tableGroupBodyRowIndentation, GroupRow, GroupRow, GroupRow, BodyRow, 3 * tableGroupHeaderRowIndentation + tableGroupBodyRowIndentation, GroupRow, GroupRow, GroupRow, GroupRow, BodyRow, 4 * tableGroupHeaderRowIndentation + tableGroupBodyRowIndentation, GroupRow, GroupRow, GroupRow, GroupRow, GroupRow, BodyRow, 5 * tableGroupHeaderRowIndentation + tableGroupBodyRowIndentation);
257
264
  export var StyledLoadingContainer = /*#__PURE__*/styled.div.withConfig({
258
265
  displayName: "StyledLoadingContainer",
259
- componentId: "core-12_45_0__sc-9c7xd-27"
266
+ componentId: "core-12_46_0__sc-9c7xd-28"
260
267
  })(["cursor:default;align-items:center;background:", ";display:flex;height:100%;justify-content:center;opacity:0.9;position:absolute;width:100%;z-index:2;"], colors.gray96);
261
268
  //# sourceMappingURL=Table.styles.js.map