@procore/core-react 12.34.1 → 12.36.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 (284) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
  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.d.ts +2 -2
  12. package/dist/Calendar/Calendar.js.map +1 -1
  13. package/dist/Calendar/Calendar.styles.d.ts +6 -3
  14. package/dist/Calendar/Calendar.styles.js +15 -9
  15. package/dist/Calendar/Calendar.styles.js.map +1 -1
  16. package/dist/Calendar/Calendar.types.d.ts +1 -31
  17. package/dist/Calendar/Calendar.types.js.map +1 -1
  18. package/dist/Card/Card.styles.js +1 -1
  19. package/dist/Checkbox/Checkbox.styles.js +6 -6
  20. package/dist/Checkbox/CheckboxTooltip.js +1 -1
  21. package/dist/ContactItem/ContactItem.styles.js +5 -5
  22. package/dist/ContactItem/ContactItem.types.d.ts +2 -0
  23. package/dist/ContactItem/ContactItem.types.js.map +1 -1
  24. package/dist/Content/Content.styles.js +2 -2
  25. package/dist/DateInput/DateInput.js +58 -53
  26. package/dist/DateInput/DateInput.js.map +1 -1
  27. package/dist/DateInput/DateInput.styles.js +9 -9
  28. package/dist/DateInput/DateInput.styles.js.map +1 -1
  29. package/dist/DetailPage/DetailPage.styles.js +7 -7
  30. package/dist/Dropdown/Dropdown.styles.js +3 -3
  31. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  32. package/dist/Dropzone/Dropzone.js +1 -1
  33. package/dist/Dropzone/Dropzone.styles.js +9 -9
  34. package/dist/EmptyState/EmptyState.styles.js +6 -6
  35. package/dist/Field/Field.styles.js +3 -3
  36. package/dist/FileList/FileList.styles.js +4 -4
  37. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  38. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  39. package/dist/FileSelect/FileSelect.styles.js +2 -2
  40. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  41. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  42. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  43. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  44. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  45. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  46. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  47. package/dist/FileToken/FileToken.styles.js +4 -4
  48. package/dist/FilterToken/FilterToken.styles.js +5 -5
  49. package/dist/FlexList/FlexList.styles.js +1 -1
  50. package/dist/Form/Form.styles.js +14 -14
  51. package/dist/Form/StyledFormikForm.styles.js +2 -2
  52. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  53. package/dist/Grid/Grid.styles.js +2 -2
  54. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  55. package/dist/Input/Input.styles.js +2 -2
  56. package/dist/Input/Input.styles.js.map +1 -1
  57. package/dist/Link/Link.styles.js +1 -1
  58. package/dist/ListPage/ListPage.styles.js +8 -8
  59. package/dist/Loader/Loader.styles.js +2 -2
  60. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  61. package/dist/Modal/Modal.styles.js +13 -13
  62. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  63. package/dist/NextMenu/NextMenu.styles.js +3 -3
  64. package/dist/Notation/Notation.js +1 -1
  65. package/dist/NumberInput/NumberInput.styles.js +9 -9
  66. package/dist/NumberInput/NumberInput.styles.js.map +1 -1
  67. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  68. package/dist/OverlayTrigger/OverlayTrigger.js +16 -0
  69. package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
  70. package/dist/PageLayout/PageLayout.styles.js +16 -16
  71. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
  72. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
  73. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
  74. package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
  75. package/dist/Pagination/Pagination.styles.js +6 -6
  76. package/dist/Pagination/Pagination.styles.js.map +1 -1
  77. package/dist/Pagination/Pagination.types.d.ts +4 -0
  78. package/dist/Pagination/Pagination.types.js.map +1 -1
  79. package/dist/Pagination/PaginationSelect.js +59 -3
  80. package/dist/Pagination/PaginationSelect.js.map +1 -1
  81. package/dist/Panel/Panel.js +6 -2
  82. package/dist/Panel/Panel.js.map +1 -1
  83. package/dist/Panel/Panel.styles.js +11 -11
  84. package/dist/Pill/Pill.styles.js +3 -3
  85. package/dist/PillSelect/PillSelect.styles.js +4 -4
  86. package/dist/Popover/Popover.styles.js +2 -2
  87. package/dist/Portal/Portal.js +4 -1
  88. package/dist/Portal/Portal.js.map +1 -1
  89. package/dist/Portal/Portal.styles.js +1 -1
  90. package/dist/Portal/Portal.types.d.ts +1 -1
  91. package/dist/Portal/Portal.types.js.map +1 -1
  92. package/dist/Portal/PortalProvider.d.ts +5 -0
  93. package/dist/Portal/PortalProvider.js +14 -0
  94. package/dist/Portal/PortalProvider.js.map +1 -0
  95. package/dist/Portal/PortalProvider.types.d.ts +4 -0
  96. package/dist/Portal/PortalProvider.types.js +2 -0
  97. package/dist/Portal/PortalProvider.types.js.map +1 -0
  98. package/dist/Portal/index.d.ts +2 -0
  99. package/dist/Portal/index.js +1 -0
  100. package/dist/Portal/index.js.map +1 -1
  101. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  102. package/dist/RadioButton/RadioButton.styles.js +4 -4
  103. package/dist/RadioButton/RadioButton.styles.js.map +1 -1
  104. package/dist/Required/Required.styles.js +3 -3
  105. package/dist/Search/Search.styles.js +5 -5
  106. package/dist/Section/Section.styles.js +7 -7
  107. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  108. package/dist/Select/Select.js +1 -0
  109. package/dist/Select/Select.js.map +1 -1
  110. package/dist/Select/Select.styles.js +10 -10
  111. package/dist/Select/Select.styles.js.map +1 -1
  112. package/dist/Semantic/Semantic.styles.js +9 -9
  113. package/dist/Slider/Slider.js +3 -1
  114. package/dist/Slider/Slider.js.map +1 -1
  115. package/dist/Slider/Slider.styles.js +5 -5
  116. package/dist/Spinner/Spinner.styles.js +7 -7
  117. package/dist/SplitViewCard/SplitViewCard.context.js +10 -2
  118. package/dist/SplitViewCard/SplitViewCard.context.js.map +1 -1
  119. package/dist/SplitViewCard/SplitViewCard.js +4 -2
  120. package/dist/SplitViewCard/SplitViewCard.js.map +1 -1
  121. package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
  122. package/dist/SplitViewCard/SplitViewCard.types.js.map +1 -1
  123. package/dist/SuperSelect/SuperSelect.components.js +3 -3
  124. package/dist/SuperSelect/SuperSelect.components.js.map +1 -1
  125. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  126. package/dist/SuperSelect/SuperSelect.styles.js +41 -41
  127. package/dist/SuperSelect/SuperSelect.styles.js.map +1 -1
  128. package/dist/SuperSelect/useSuperSelect.js +11 -11
  129. package/dist/SuperSelect/useSuperSelect.js.map +1 -1
  130. package/dist/Switch/Switch.styles.js +4 -4
  131. package/dist/Table/Table.d.ts +2 -2
  132. package/dist/Table/Table.js +58 -18
  133. package/dist/Table/Table.js.map +1 -1
  134. package/dist/Table/Table.styles.d.ts +3 -1
  135. package/dist/Table/Table.styles.js +34 -33
  136. package/dist/Table/Table.styles.js.map +1 -1
  137. package/dist/Table/Table.types.d.ts +5 -0
  138. package/dist/Table/Table.types.js.map +1 -1
  139. package/dist/TableShelf/TableShelf.styles.js +5 -5
  140. package/dist/Tabs/Tabs.styles.js +15 -15
  141. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  142. package/dist/TextArea/TextArea.js +1 -0
  143. package/dist/TextArea/TextArea.js.map +1 -1
  144. package/dist/TextArea/TextArea.styles.js +1 -1
  145. package/dist/TextEditor/TextEditor.d.ts +1 -1
  146. package/dist/TextEditor/TextEditor.js +67 -12
  147. package/dist/TextEditor/TextEditor.js.map +1 -1
  148. package/dist/TextEditor/TextEditor.types.d.ts +17 -0
  149. package/dist/TextEditor/TextEditor.types.js.map +1 -1
  150. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  151. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  152. package/dist/Thumbnail/ThumbnailDocumentIcon.d.ts +3 -1
  153. package/dist/Thumbnail/ThumbnailDocumentIcon.js +61 -21
  154. package/dist/Thumbnail/ThumbnailDocumentIcon.js.map +1 -1
  155. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  156. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  157. package/dist/Tile/Tile.styles.js +8 -8
  158. package/dist/Title/Title.styles.js +7 -7
  159. package/dist/Toast/Toast.js +1 -1
  160. package/dist/Toast/Toast.js.map +1 -1
  161. package/dist/Toast/Toast.styles.js +3 -3
  162. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  163. package/dist/Token/Token.styles.js +3 -3
  164. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  165. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  166. package/dist/Tooltip/Tooltip.styles.js +2 -2
  167. package/dist/Tree/Tree.hooks.js +11 -6
  168. package/dist/Tree/Tree.hooks.js.map +1 -1
  169. package/dist/Tree/Tree.js +142 -49
  170. package/dist/Tree/Tree.js.map +1 -1
  171. package/dist/Tree/Tree.styles.d.ts +5 -0
  172. package/dist/Tree/Tree.styles.js +17 -9
  173. package/dist/Tree/Tree.styles.js.map +1 -1
  174. package/dist/Tree/Tree.types.d.ts +21 -1
  175. package/dist/Tree/Tree.types.js.map +1 -1
  176. package/dist/Typeahead/Typeahead.styles.js +3 -3
  177. package/dist/Typography/Typography.styles.js +1 -1
  178. package/dist/Typography/Typography.table.story.js +2 -2
  179. package/dist/_hooks/I18n.d.ts +200 -11
  180. package/dist/_locales/de-DE.json +11 -3
  181. package/dist/_locales/en-AU.json +10 -2
  182. package/dist/_locales/en-CA.json +10 -2
  183. package/dist/_locales/en-GB.json +10 -2
  184. package/dist/_locales/en.json +6 -0
  185. package/dist/_locales/es-ES.json +12 -4
  186. package/dist/_locales/es.json +15 -7
  187. package/dist/_locales/fr-CA.json +11 -3
  188. package/dist/_locales/fr-FR.json +12 -4
  189. package/dist/_locales/is-IS.json +11 -3
  190. package/dist/_locales/it-IT.json +56 -48
  191. package/dist/_locales/ja-JP.json +12 -4
  192. package/dist/_locales/pl-PL.json +10 -2
  193. package/dist/_locales/pseudo.json +6 -0
  194. package/dist/_locales/pt-BR.json +11 -3
  195. package/dist/_locales/pt-PT.json +190 -182
  196. package/dist/_locales/th-TH.json +13 -5
  197. package/dist/_locales/zh-SG.json +10 -2
  198. package/dist/_locales/zh-TW.json +16 -8
  199. package/dist/_storyHelpers_/components/Deprecation.styles.js +1 -1
  200. package/dist/_storyHelpers_/components/StoryGrid.js +3 -3
  201. package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +3 -3
  202. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  203. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
  204. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  205. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  206. package/dist/_typedoc/Box/Box.types.json +68 -68
  207. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  208. package/dist/_typedoc/Button/Button.types.json +13 -13
  209. package/dist/_typedoc/Calendar/Calendar.types.json +89 -89
  210. package/dist/_typedoc/Card/Card.types.json +6 -6
  211. package/dist/_typedoc/Checkbox/Checkbox.types.json +8 -8
  212. package/dist/_typedoc/ContactItem/ContactItem.types.json +12 -10
  213. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  214. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  215. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  216. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  217. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +30 -30
  218. package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
  219. package/dist/_typedoc/EmptyState/EmptyState.types.json +16 -16
  220. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  221. package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
  222. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  223. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  224. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  225. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  226. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  227. package/dist/_typedoc/Form/Form.types.json +794 -754
  228. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  229. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  230. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  231. package/dist/_typedoc/Input/Input.types.json +2 -2
  232. package/dist/_typedoc/Link/Link.types.json +1 -1
  233. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  234. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  235. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +77 -77
  236. package/dist/_typedoc/Modal/Modal.types.json +46 -46
  237. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  238. package/dist/_typedoc/NextTile/NextTile.types.json +32 -32
  239. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  240. package/dist/_typedoc/NumberInput/NumberInput.types.json +48 -48
  241. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +34 -34
  242. package/dist/_typedoc/PageLayout/PageLayout.types.json +26 -26
  243. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  244. package/dist/_typedoc/Panel/Panel.types.json +30 -30
  245. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  246. package/dist/_typedoc/PillSelect/PillSelect.types.json +51 -51
  247. package/dist/_typedoc/Popover/Popover.types.json +15 -15
  248. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
  249. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  250. package/dist/_typedoc/Required/Required.types.json +5 -5
  251. package/dist/_typedoc/Search/Search.types.json +18 -18
  252. package/dist/_typedoc/Section/Section.types.json +15 -15
  253. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
  254. package/dist/_typedoc/Select/Select.types.json +64 -64
  255. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  256. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  257. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  258. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +14 -14
  259. package/dist/_typedoc/Table/Table.types.json +113 -103
  260. package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
  261. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
  262. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  263. package/dist/_typedoc/TextEditor/TextEditor.types.json +29 -9
  264. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  265. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  266. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +43 -43
  267. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +29 -29
  268. package/dist/_typedoc/Tile/Tile.types.json +8 -8
  269. package/dist/_typedoc/Title/Title.types.json +1 -1
  270. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  271. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  272. package/dist/_typedoc/Token/Token.types.json +7 -7
  273. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  274. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +8 -8
  275. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  276. package/dist/_typedoc/Tree/Tree.types.json +111 -86
  277. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  278. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  279. package/dist/_typedoc/_utils/types.json +3 -3
  280. package/dist/_typedoc/deprecations.json +1 -1
  281. package/dist/_utils/a11y.d.ts +1 -0
  282. package/dist/_utils/a11y.js +8 -0
  283. package/dist/_utils/a11y.js.map +1 -0
  284. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Table.styles.js","names":["CaretDown","CaretUp","ChevronRight","styled","css","Card","Checkbox","StyledDateInputDelimiter","StyledDateInputIconContainer","StyledDateInputSegment","DateSelect","Input","Select","StyledSelectArrow","StyledSelectButtonLabel","StyledSelectClearIcon","TextArea","getTypographyIntent","typographyWeights","colors","getFocus","spacing","tableBgColor","white","tableBorderRadius","tableBorderStyle","tableBorderWidth","tableBorderColor","gray85","tableBorder","concat","tableGroupRowBgColor","gray98","tableGroupBodyRowIndentation","md","tableGroupHeaderRowIndentation","xl","tableHeaderBgColor","gray96","tableHeaderBgColorHover","gray94","tableHeaderBgColorActive","tableHeaderBorderColor","gray90","tableHeaderBorderRight","tableHeaderFontColor","gray30","tableHeaderFontColorActive","gray15","tableHeaderFontWeight","semibold","tableHeaderHeight","tableHeaderPadding","lg","tableSortFontColor","gray70","tableSortFontColorHover","gray45","tableSortFontColorActive","blue50","tableCellTextColor","tableCellIconColor","tableCellInputPlaceholderColor","tableCellInputBorder","tableCellInputRowHoverBgColor","tableCellInputFocusBgColor","tableCellInputHoverBgColor","blue94","tableCellInputFocusBorder","tableCellInputErrorBgColor","red98","tableCellInputErrorBorder","red50","tableRowBorderBottom","StyledTableHeaderCellSortableContainer","div","withConfig","displayName","componentId","StyledTableHeaderCellLabel","StyledCheckbox","StyledTableBodyCell","td","_ref","$snugfit","StyledTableHeaderCell","th","_ref2","$sortable","StyledTableHeaderCellSortIconAsc","StyledTableHeaderCellSortIconDesc","_ref3","$sortOrder","_ref4","_ref5","_ref6","StyledTableHeaderCellIconWrapper","sm","StyledHead","thead","StyledCaratWrapper","xs","StyledCarat","_ref7","$expanded","cellInputCSS","blue40","StyledTableCellSelect","_ref8","$hasClearIcon","_ref9","_ref9$$placeholder","$placeholder","_ref0","_ref0$$placeholder","_ref1","loading","StyledTableCellInput","StyledTableCellDateInput","_ref10","error","StyledTableCellTextArea","xxl","_ref11","$resizable","StyledTableCellText","_ref12","$percent","$currency","StyledIconCell","StyledSelectCellWrapper","StyledTableInlineEditErrorBox","_ref13","$size","sizes","block","StyledTableInlineEditContainer","_ref14","$error","_ref15","StyledTableBodyRow","tr","_ref16","$overdue","StyledTableGroupRowContent","StyledTableGroupRowHeader","StyledTableGroupRowTitle","span","StyledTableGroupRow","_ref17","$depth","StyledTableWrapper","_ref18","$withShelf","BodyRow","GroupRow","StyledTable","table","_ref19","$fixed","_ref20","$inline","StyledLoadingContainer"],"sources":["../../src/Table/Table.styles.ts"],"sourcesContent":["import { CaretDown, CaretUp, ChevronRight } from '@procore/core-icons'\nimport styled, { css } from 'styled-components'\nimport { Card } from '../Card'\nimport { Checkbox } from '../Checkbox'\nimport {\n StyledDateInputDelimiter,\n StyledDateInputIconContainer,\n StyledDateInputSegment,\n} from '../DateInput/DateInput.styles'\nimport { DateSelect } from '../DateSelect'\nimport { Input } from '../Input'\nimport { Select } from '../Select'\nimport {\n StyledSelectArrow,\n StyledSelectButtonLabel,\n StyledSelectClearIcon,\n} from '../Select/Select.styles'\nimport { TextArea } from '../TextArea'\nimport {\n getTypographyIntent,\n typographyWeights,\n} from '../Typography/Typography.styles'\nimport { colors } from '../_styles/colors'\nimport { getFocus } from '../_styles/mixins'\nimport { spacing } from '../_styles/spacing'\nimport type { InputCellSize, TableColumnSortOrder } from './Table.types'\n\nconst tableBgColor = colors.white\nconst tableBorderRadius = 4\nconst tableBorderStyle = 'solid'\nconst tableBorderWidth = 1\nconst tableBorderColor = colors.gray85\nconst tableBorder = `${tableBorderWidth}px ${tableBorderStyle} ${tableBorderColor}`\n\nconst tableGroupRowBgColor = colors.gray98\nconst tableGroupBodyRowIndentation = spacing.md\nconst tableGroupHeaderRowIndentation = spacing.xl\n\nconst tableHeaderBgColor = colors.gray96\nconst tableHeaderBgColorHover = colors.gray94\nconst tableHeaderBgColorActive = colors.gray94\nconst tableHeaderBorderColor = colors.gray90\nconst tableHeaderBorderRight = `${tableBorderWidth}px ${tableBorderStyle} ${tableHeaderBorderColor}`\n\nconst tableHeaderFontColor = colors.gray30\nconst tableHeaderFontColorActive = colors.gray15\nconst tableHeaderFontWeight = typographyWeights.semibold\nconst tableHeaderHeight = 48\nconst tableHeaderPadding = spacing.lg\n\nconst tableSortFontColor = colors.gray70\nconst tableSortFontColorHover = colors.gray45\nconst tableSortFontColorActive = colors.blue50\n\nconst tableCellTextColor = colors.gray15\nconst tableCellIconColor = colors.gray45\nconst tableCellInputPlaceholderColor = colors.gray70\nconst tableCellInputBorder = '1px solid transparent'\nconst tableCellInputRowHoverBgColor = colors.gray96\nconst tableCellInputFocusBgColor = colors.white\nconst tableCellInputHoverBgColor = colors.blue94\nconst tableCellInputFocusBorder = `1px solid ${colors.blue50}`\nconst tableCellInputErrorBgColor = colors.red98\nconst tableCellInputErrorBorder = `1px solid ${colors.red50}`\n\nconst tableRowBorderBottom = css`\n border-bottom: ${tableBorder};\n\n &:last-child {\n border-bottom: 0;\n }\n`\n\nexport const StyledTableHeaderCellSortableContainer = styled.div``\n\nexport const StyledTableHeaderCellLabel = styled.div`\n display: inline-block;\n flex: 1 1 auto;\n position: relative;\n`\n\nexport const StyledCheckbox = styled(Checkbox)``\n\nexport const StyledTableBodyCell = styled.td<{ $snugfit: boolean }>`\n position: relative;\n vertical-align: middle;\n\n ${({ $snugfit }) =>\n $snugfit &&\n css`\n white-space: nowrap;\n width: 0.1%;\n `}\n`\n\nexport const StyledTableHeaderCell = styled.th<{\n $sortable: boolean\n $snugfit: boolean\n $sortOrder?: TableColumnSortOrder\n}>`\n ${getTypographyIntent('small')}\n font-weight: ${tableHeaderFontWeight};\n border-right: ${tableHeaderBorderRight};\n color: ${tableHeaderFontColor};\n height: ${tableHeaderHeight}px;\n padding: ${tableHeaderPadding}px;\n position: relative;\n text-align: left;\n transition: background-color 0.2s ease-in-out;\n\n &:last-child {\n border-right: 0;\n }\n\n ${StyledTableHeaderCellSortableContainer} {\n display: flex;\n align-items: center;\n }\n\n ${StyledTableHeaderCellSortableContainer} {\n ${StyledTableHeaderCellLabel} {\n min-height: 14px;\n }\n }\n\n ${({ $sortable }) =>\n $sortable &&\n css`\n cursor: pointer;\n padding: ${spacing.lg}px;\n\n ${StyledTableHeaderCellSortIconAsc},\n ${StyledTableHeaderCellSortIconDesc} {\n color: ${tableSortFontColor};\n opacity: 0;\n transition: all 0.15s ease-in-out;\n position: absolute;\n }\n\n ::before,\n ::after {\n font-size: 16px;\n }\n\n &:hover {\n background-color: ${tableHeaderBgColorHover};\n\n ${StyledTableHeaderCellSortIconAsc} {\n color: ${tableSortFontColorHover};\n }\n }\n `}\n\n ${({ $sortOrder }) =>\n ($sortOrder === 'asc' || $sortOrder === 'desc') &&\n css`\n background-color: ${tableHeaderBgColorActive};\n color: ${tableHeaderFontColorActive};\n\n &::before,\n &::after,\n ${StyledTableHeaderCellSortIconAsc},\n ${StyledTableHeaderCellSortIconDesc} {\n opacity: 1;\n }\n `}\n\n ${({ $sortOrder }) =>\n $sortOrder === 'asc' &&\n css`\n ${StyledTableHeaderCellSortIconAsc},\n &::before {\n color: ${tableSortFontColorActive};\n }\n\n &:hover {\n ${StyledTableHeaderCellSortIconAsc},\n &::before {\n color: ${tableSortFontColorActive};\n }\n ${StyledTableHeaderCellSortIconDesc},\n &::after {\n color: ${tableSortFontColorHover};\n }\n }\n `}\n\n ${({ $sortOrder }) =>\n $sortOrder === 'desc' &&\n css`\n ${StyledTableHeaderCellSortIconDesc},\n &::after {\n color: ${tableSortFontColorActive};\n }\n\n &:hover {\n ${StyledTableHeaderCellSortIconAsc},\n &::before {\n color: ${tableSortFontColorHover};\n }\n ${StyledTableHeaderCellSortIconDesc},\n &::after {\n color: ${tableSortFontColorActive};\n }\n }\n `}\n\n ${({ $snugfit }) =>\n $snugfit &&\n css`\n width: 0.1%;\n `}\n`\n\nexport const StyledTableHeaderCellIconWrapper = styled.div`\n height: 20px;\n line-height: 20px;\n padding: 0 ${spacing.lg}px 0 ${spacing.sm}px;\n width: 20px;\n`\n\nexport const StyledTableHeaderCellSortIconAsc = styled(CaretUp)`\n margin-top: -${spacing.sm}px;\n`\n\nexport const StyledTableHeaderCellSortIconDesc = styled(CaretDown)``\n\nexport const StyledHead = styled.thead`\n background-color: ${tableHeaderBgColor};\n transition: background-color 0.2s ease-in-out;\n ${tableRowBorderBottom}\n\n &:hover {\n ${StyledTableHeaderCell} {\n ${StyledTableHeaderCellSortIconAsc},\n ${StyledTableHeaderCellSortIconDesc} {\n &::after,\n &::before {\n opacity: 1;\n }\n }\n }\n }\n`\n\nexport const StyledCaratWrapper = styled.div`\n font-size: 16px;\n color: ${colors.gray70};\n padding-right: ${spacing.xs}px;\n transition: all 0.2s ease-in-out;\n\n & + ${StyledCheckbox} {\n margin: 0 ${spacing.xs}px;\n }\n`\n\nexport const StyledCarat = styled(ChevronRight)<{ $expanded: boolean }>`\n ${({ $expanded }) =>\n $expanded &&\n css`\n transform: rotate(90deg);\n `}\n`\n\nconst cellInputCSS = css`\n // Define particular color, simply not to rely on browser's choice of transparent value\n // https://stackoverflow.com/questions/46309641/what-happens-in-safari-with-the-transparent-color\n background-color: rgba(255, 255, 255, 0);\n\n &&& {\n border: ${tableCellInputBorder};\n border-radius: 4px;\n width: 100%;\n\n &::placeholder {\n color: ${tableCellInputPlaceholderColor};\n }\n\n &::-ms-clear {\n display: none;\n }\n\n &:hover {\n border-color: transparent;\n }\n\n &:focus {\n /**\n focus background overrides everything, so it is the only cell-defined background style.\n the rest come from StyledInlineEditContainer\n */\n background-color: ${colors.white};\n border-style: solid;\n border-width: 1px;\n border-color: ${colors.blue40};\n box-shadow: 0 0 0 1px ${colors.blue40};\n outline: none;\n }\n\n &:disabled {\n border: ${tableCellInputBorder};\n color: ${colors.gray70};\n }\n }\n`\n\nexport const StyledTableCellSelect = styled(Select)<{\n $hasClearIcon: boolean\n $placeholder: boolean\n}>`\n ${cellInputCSS};\n\n background-color: transparent;\n border-color: transparent;\n height: auto;\n\n &:hover {\n background-color: transparent;\n }\n\n &:active:hover {\n border-color: ${colors.gray85};\n }\n\n &:focus {\n background-color: ${colors.white};\n cursor: pointer;\n ${getFocus()}\n\n ${StyledSelectButtonLabel} {\n white-space: nowrap;\n }\n\n ${StyledSelectArrow} {\n opacity: 1;\n pointer-events: all;\n }\n\n ${({ $hasClearIcon }) =>\n $hasClearIcon &&\n css`\n ${StyledSelectClearIcon} {\n opacity: 1;\n pointer-events: all;\n }\n `}\n\n ${({ $placeholder = false }) =>\n $placeholder &&\n css`\n ${StyledSelectButtonLabel} {\n opacity: 1;\n pointer-events: all;\n }\n `}\n }\n\n ${StyledSelectButtonLabel} {\n white-space: normal;\n }\n\n ${StyledSelectArrow}, ${StyledSelectClearIcon} {\n opacity: 0;\n pointer-events: none;\n }\n\n ${({ $placeholder = false }) =>\n $placeholder &&\n css`\n ${StyledSelectButtonLabel} {\n opacity: 0;\n pointer-events: none;\n }\n `}\n\n ${({ loading }) =>\n loading &&\n css`\n background-color: ${colors.white};\n border-color: ${colors.gray85};\n\n ${StyledSelectButtonLabel} {\n white-space: nowrap;\n }\n `}\n`\nexport const StyledTableCellInput = styled(Input)`\n ${cellInputCSS}\n`\nexport const StyledTableCellDateInput = styled(DateSelect)`\n background-color: transparent;\n border-color: transparent;\n\n &:active:hover {\n border-color: ${colors.gray45};\n }\n\n // increase specificity to avoid border re-style\n &&&:focus-within {\n ${getFocus()};\n background-color: ${colors.white};\n }\n\n ${({ error }) =>\n error &&\n css`\n border-color: ${colors.red50};\n `}\n\n ${StyledDateInputIconContainer} {\n opacity: 0;\n }\n\n ${StyledDateInputDelimiter} {\n &[data-qa-table-visible='false'] {\n opacity: 0;\n }\n }\n\n ${StyledDateInputSegment} {\n &[data-placeholder='true'] {\n opacity: 0;\n }\n }\n\n &:focus-within {\n ${StyledDateInputIconContainer} {\n opacity: 1;\n }\n ${StyledDateInputDelimiter} {\n &[data-qa-table-visible='false'] {\n opacity: 1;\n }\n }\n ${StyledDateInputSegment} {\n &[data-placeholder='true'] {\n opacity: 1;\n }\n }\n }\n`\n\nexport const StyledTableCellTextArea = styled(TextArea)<{\n $resizable: boolean\n}>`\n ${cellInputCSS}\n && {\n height: ${spacing.xxl}px;\n min-height: ${spacing.xxl}px;\n overflow: hidden;\n padding-top: ${spacing.xs}px;\n resize: none;\n width: 100%;\n\n ${({ $resizable }) =>\n $resizable &&\n css`\n &:focus {\n min-height: 64px;\n overflow: auto;\n resize: vertical;\n }\n `}\n }\n`\n\nexport const StyledTableCellText = styled.div<{\n $percent?: boolean\n $currency?: boolean\n}>`\n margin: ${spacing.lg}px;\n display: flex;\n color: ${tableCellTextColor};\n\n ${({ $percent, $currency }) =>\n ($percent || $currency) &&\n css`\n justify-content: flex-end;\n `}\n`\n\nexport const StyledIconCell = styled.div`\n display: flex;\n color: ${tableCellIconColor};\n`\n\nexport const StyledSelectCellWrapper = styled.div`\n display: flex;\n flex-direction: column;\n`\n\nexport const StyledTableInlineEditErrorBox = styled.div<{\n $size?: InputCellSize\n}>`\n ${getTypographyIntent('small')}\n color: ${colors.white};\n font-style: italic;\n background: ${colors.red50};\n border-radius: 0 2px 2px 2px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);\n padding: 6px ${spacing.md}px;\n position: absolute;\n max-width: 160px;\n z-index: 1;\n\n ${({ $size }) => {\n const sizes: Record<InputCellSize, number | null> = {\n xs: 36,\n sm: 48,\n md: 80,\n lg: 112,\n block: null,\n xl: null,\n }\n\n if (!$size || !sizes[$size]) {\n return ''\n }\n\n return css`\n min-width: ${sizes[$size]}px;\n `\n }}\n`\n\ninterface StyledTableInlineEditContainerProps {\n $disabled?: boolean\n $error?: boolean\n $size: InputCellSize\n}\n\nexport const StyledTableInlineEditContainer = styled.div<StyledTableInlineEditContainerProps>`\n background-color: ${tableBgColor};\n margin: ${spacing.sm}px ${spacing.xs}px;\n position: relative;\n\n ${({ $error }) =>\n $error &&\n css`\n position: static;\n background-color: ${tableCellInputErrorBgColor};\n\n ${StyledTableCellDateInput},\n ${StyledTableCellInput},\n ${StyledTableCellSelect},\n ${StyledTableCellTextArea} {\n border: ${tableCellInputErrorBorder};\n border-radius: 4px 4px 0 0;\n border-bottom: none;\n\n &:hover {\n border-bottom: none;\n }\n\n &:focus {\n background-color: ${tableCellInputFocusBgColor};\n border: ${tableCellInputFocusBorder};\n border-bottom: none;\n }\n }\n `}\n\n ${({ $size }) => {\n const sizes: Record<InputCellSize, number | null> = {\n xs: 36,\n sm: 48,\n md: 80,\n lg: 112,\n block: null,\n xl: null,\n }\n\n if ($size === 'block') {\n return css`\n position: relative;\n\n ${StyledTableInlineEditErrorBox} {\n width: 100%;\n max-width: 100%;\n }\n `\n }\n\n if (!$size || !sizes[$size]) {\n return ''\n }\n\n return css`\n width: ${sizes[$size]}px;\n `\n }}\n`\n\nexport const StyledTableBodyRow = styled.tr<{\n $overdue: boolean\n}>`\n ${tableRowBorderBottom}\n\n ${({ $overdue }) =>\n $overdue &&\n css`\n ${StyledTableCellText},\n ${StyledTableCellSelect},\n ${StyledTableCellInput},\n ${StyledTableCellDateInput},\n ${StyledTableCellTextArea} {\n color: ${colors.red50};\n }\n `}\n\n &:focus-within {\n ${StyledTableInlineEditContainer} {\n background-color: ${tableCellInputRowHoverBgColor};\n\n &.disabled {\n background-color: transparent;\n }\n }\n ${StyledTableInlineEditContainer}.error {\n background-color: ${tableCellInputErrorBgColor};\n }\n }\n\n &:hover {\n ${StyledTableInlineEditContainer} {\n background-color: ${tableCellInputRowHoverBgColor};\n cursor: pointer;\n\n &:hover {\n background-color: ${tableCellInputHoverBgColor};\n }\n\n &.disabled {\n &,\n &:hover {\n background-color: transparent;\n cursor: default;\n }\n }\n }\n\n ${StyledTableInlineEditContainer}.error {\n background-color: ${tableCellInputErrorBgColor};\n\n &:hover {\n background-color: ${tableCellInputErrorBgColor};\n }\n\n ${StyledTableCellInput},\n ${StyledTableCellSelect},\n ${StyledTableCellTextArea} {\n border: ${tableCellInputErrorBorder};\n border-bottom: none;\n\n &:hover {\n border-bottom: none;\n }\n\n &:focus {\n border: ${tableCellInputFocusBorder};\n border-bottom: none;\n }\n }\n }\n }\n`\n\nexport const StyledTableGroupRowContent = styled.div``\n\nexport const StyledTableGroupRowHeader = styled.div``\n\nexport const StyledTableGroupRowTitle = styled.span``\n\nexport const StyledTableGroupRow = styled.tr<{ $depth?: number | boolean }>`\n background-color: ${tableGroupRowBgColor};\n ${tableRowBorderBottom}\n\n ${StyledTableGroupRowContent} {\n margin-left: ${spacing.lg}px;\n padding: ${spacing.lg}px 0;\n display: flex;\n flex-direction: row;\n }\n\n ${StyledTableGroupRowHeader} {\n display: flex;\n align-items: center;\n }\n\n ${StyledTableGroupRowTitle} {\n font-weight: ${tableHeaderFontWeight};\n padding-left: ${spacing.lg}px;\n }\n\n ${({ $depth }) => {\n if (typeof $depth !== 'number') {\n return ''\n }\n\n return css`\n > td {\n padding-left: ${$depth * tableGroupHeaderRowIndentation}px !important;\n }\n\n ~ ${StyledTableBodyRow} {\n > td:first-child {\n padding-left: ${($depth + 1) * tableGroupHeaderRowIndentation +\n tableGroupBodyRowIndentation}px !important;\n }\n }\n `\n }}\n`\n\nexport const StyledTableWrapper = styled(Card)<{ $withShelf: boolean }>`\n border-radius: ${tableBorderRadius}px;\n border: ${tableBorder};\n\n ${StyledHead}, tbody {\n &:first-child {\n tr:first-child {\n ${StyledTableHeaderCell}, td {\n &:first-child {\n border-top-left-radius: ${tableBorderRadius}px;\n }\n\n &:last-child {\n border-top-right-radius: ${tableBorderRadius}px;\n }\n }\n }\n }\n\n &:last-child {\n tr:last-child {\n ${StyledTableHeaderCell}, td {\n &:first-child {\n border-bottom-left-radius: ${tableBorderRadius}px;\n }\n &:last-child {\n border-bottom-right-radius: ${tableBorderRadius}px;\n }\n }\n }\n }\n }\n\n ${({ $withShelf }) =>\n $withShelf &&\n css`\n position: relative;\n height: 100%;\n `}\n`\n\nconst BodyRow = StyledTableBodyRow\n\nconst GroupRow = StyledTableGroupRow\n\nexport const StyledTable = styled.table<{ $inline?: boolean; $fixed: boolean }>`\n background-color: ${tableBgColor};\n border-collapse: collapse;\n border-radius: ${tableBorderRadius}px;\n ${getTypographyIntent('body')}\n width: 100%;\n\n td:first-child ${StyledCheckbox} {\n padding-left: ${spacing.lg}px;\n }\n\n ${StyledTableGroupRow} ${StyledCaratWrapper} + ${StyledCheckbox} {\n margin-left: ${spacing.xs}px;\n padding-left: 0;\n }\n\n ${({ $fixed }) =>\n $fixed &&\n css`\n table-layout: fixed;\n `}\n\n ${({ $inline }) =>\n $inline &&\n css`\n border-top: 1px solid ${colors.gray85};\n border-bottom: 1px solid ${colors.gray85};\n `}\n\n ${GroupRow} + ${GroupRow} > td {\n padding-left: ${tableGroupHeaderRowIndentation}px;\n }\n\n ${GroupRow} + ${GroupRow} + ${GroupRow} > td {\n padding-left: ${2 * tableGroupHeaderRowIndentation}px;\n }\n\n ${GroupRow} + ${GroupRow} + ${GroupRow} + ${GroupRow} > td {\n padding-left: ${3 * tableGroupHeaderRowIndentation}px;\n }\n\n ${GroupRow} + ${GroupRow} + ${GroupRow} + ${GroupRow} + ${GroupRow} > td {\n padding-left: ${4 * tableGroupHeaderRowIndentation}px;\n }\n\n ${GroupRow} ~ ${BodyRow} {\n ${StyledCheckbox} {\n padding-left: 0;\n margin: 0 ${spacing.xs}px;\n }\n\n & > td:first-child {\n padding-left: ${tableGroupHeaderRowIndentation +\n tableGroupBodyRowIndentation}px;\n }\n }\n\n ${GroupRow} + ${GroupRow} ~ ${BodyRow} {\n & > td:first-child {\n padding-left: ${2 * tableGroupHeaderRowIndentation +\n tableGroupBodyRowIndentation}px;\n }\n }\n\n ${GroupRow} + ${GroupRow} + ${GroupRow} ~ ${BodyRow} {\n & > td:first-child {\n padding-left: ${3 * tableGroupHeaderRowIndentation +\n tableGroupBodyRowIndentation}px;\n }\n }\n\n ${GroupRow} + ${GroupRow} + ${GroupRow} + ${GroupRow} ~ ${BodyRow} {\n & > td:first-child {\n padding-left: ${4 * tableGroupHeaderRowIndentation +\n tableGroupBodyRowIndentation}px;\n }\n }\n\n ${GroupRow} + ${GroupRow} + ${GroupRow} + ${GroupRow} + ${GroupRow} ~ ${BodyRow} {\n & > td:first-child {\n padding-left: ${5 * tableGroupHeaderRowIndentation +\n tableGroupBodyRowIndentation}px;\n }\n }\n`\n\nexport const StyledLoadingContainer = styled.div`\n cursor: default;\n align-items: center;\n background: ${colors.gray96};\n display: flex;\n height: 100%;\n justify-content: center;\n opacity: 0.9;\n position: absolute;\n width: 100%;\n z-index: 2;\n`\n"],"mappings":"AAAA,SAASA,SAAS,EAAEC,OAAO,EAAEC,YAAY,QAAQ,qBAAqB;AACtE,OAAOC,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,QAAQ,QAAQ,aAAa;AACtC,SACEC,wBAAwB,EACxBC,4BAA4B,EAC5BC,sBAAsB,QACjB,+BAA+B;AACtC,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,KAAK,QAAQ,UAAU;AAChC,SAASC,MAAM,QAAQ,WAA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,8BAA8B,GAClDF,4BAA4B,EAI9B0H,QAAQ,EAAMA,QAAQ,EAAMA,QAAQ,EAAMA,QAAQ,EAAMA,QAAQ,EAAMD,OAAO,EAE3D,CAAC,GAAGvH,8BAA8B,GAClDF,4BAA4B,CAGjC;AAED,OAAO,IAAMiI,sBAAsB,gBAAG/J,MAAM,CAACwE,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8JAGhC3D,MAAM,CAACmB,MAAM,CAQ5B"}
1
+ {"version":3,"file":"Table.styles.js","names":["CaretDown","CaretUp","ChevronRight","styled","css","Button","Card","Checkbox","StyledDateInputDelimiter","StyledDateInputIconContainer","StyledDateInputSegment","DateSelect","Input","Select","StyledSelectArrow","StyledSelectButtonLabel","StyledSelectClearIcon","TextArea","getTypographyIntent","typographyWeights","colors","getFocus","spacing","tableBgColor","white","tableBorderRadius","tableBorderStyle","tableBorderWidth","tableBorderColor","gray85","tableBorder","concat","tableGroupRowBgColor","gray98","tableGroupBodyRowIndentation","md","tableGroupHeaderRowIndentation","xl","tableHeaderBgColor","gray96","tableHeaderBgColorHover","gray94","tableHeaderBgColorActive","tableHeaderBorderColor","gray90","tableHeaderBorderRight","tableHeaderFontColor","gray30","tableHeaderFontColorActive","gray15","tableHeaderFontWeight","semibold","tableHeaderHeight","tableHeaderPadding","lg","tableSortFontColor","gray50","tableSortFontColorHover","gray40","tableSortFontColorActive","blue50","tableCellTextColor","tableCellIconColor","gray45","tableCellInputPlaceholderColor","gray70","tableCellInputBorder","tableCellInputRowHoverBgColor","tableCellInputFocusBgColor","tableCellInputHoverBgColor","blue94","tableCellInputFocusBorder","tableCellInputErrorBgColor","red98","tableCellInputErrorBorder","red50","tableRowBorderBottom","StyledTableHeaderCellSortableContainer","div","withConfig","displayName","componentId","StyledTableHeaderCellLabel","StyledCheckbox","StyledTableBodyCell","td","_ref","$snugfit","StyledTableHeaderCell","th","_ref2","$sortable","StyledTableHeaderCellSortIconAsc","StyledTableHeaderCellSortIconDesc","_ref3","$sortOrder","_ref4","_ref5","_ref6","StyledTableHeaderCellIconWrapper","sm","StyledHead","thead","StyledCaratWrapper","StyledCarat","_ref7","$expanded","cellInputCSS","blue40","StyledTableCellSelect","_ref8","$hasClearIcon","_ref9","_ref9$$placeholder","$placeholder","_ref0","_ref0$$placeholder","_ref1","loading","StyledTableCellInput","StyledTableCellDateInput","_ref10","error","StyledTableCellTextArea","xxl","xs","_ref11","$resizable","StyledTableCellText","_ref12","$percent","$currency","StyledIconCell","StyledSelectCellWrapper","StyledTableInlineEditErrorBox","_ref13","$size","sizes","block","StyledTableInlineEditContainer","_ref14","$error","_ref15","StyledTableBodyRow","tr","_ref16","$overdue","StyledTableGroupRowContent","StyledTableGroupRowHeader","StyledTableGroupRowTitle","span","StyledTableGroupRow","_ref17","$depth","StyledTableWrapper","_ref18","$withShelf","BodyRow","GroupRow","StyledTable","table","_ref19","$fixed","_ref20","$inline","StyledLoadingContainer"],"sources":["../../src/Table/Table.styles.ts"],"sourcesContent":["import { CaretDown, CaretUp, ChevronRight } from '@procore/core-icons'\nimport styled, { css } from 'styled-components'\nimport { Button } from '../Button'\nimport { Card } from '../Card'\nimport { Checkbox } from '../Checkbox'\nimport {\n StyledDateInputDelimiter,\n StyledDateInputIconContainer,\n StyledDateInputSegment,\n} from '../DateInput/DateInput.styles'\nimport { DateSelect } from '../DateSelect'\nimport { Input } from '../Input'\nimport { Select } from '../Select'\nimport {\n StyledSelectArrow,\n StyledSelectButtonLabel,\n StyledSelectClearIcon,\n} from '../Select/Select.styles'\nimport { TextArea } from '../TextArea'\nimport {\n getTypographyIntent,\n typographyWeights,\n} from '../Typography/Typography.styles'\nimport { colors } from '../_styles/colors'\nimport { getFocus } from '../_styles/mixins'\nimport { spacing } from '../_styles/spacing'\nimport type { InputCellSize, TableColumnSortOrder } from './Table.types'\n\nconst tableBgColor = colors.white\nconst tableBorderRadius = 4\nconst tableBorderStyle = 'solid'\nconst tableBorderWidth = 1\nconst tableBorderColor = colors.gray85\nconst tableBorder = `${tableBorderWidth}px ${tableBorderStyle} ${tableBorderColor}`\n\nconst tableGroupRowBgColor = colors.gray98\nconst tableGroupBodyRowIndentation = spacing.md\nconst tableGroupHeaderRowIndentation = spacing.xl\n\nconst tableHeaderBgColor = colors.gray96\nconst tableHeaderBgColorHover = colors.gray94\nconst tableHeaderBgColorActive = colors.gray94\nconst tableHeaderBorderColor = colors.gray90\nconst tableHeaderBorderRight = `${tableBorderWidth}px ${tableBorderStyle} ${tableHeaderBorderColor}`\n\nconst tableHeaderFontColor = colors.gray30\nconst tableHeaderFontColorActive = colors.gray15\nconst tableHeaderFontWeight = typographyWeights.semibold\nconst tableHeaderHeight = 48\nconst tableHeaderPadding = spacing.lg\n\nconst tableSortFontColor = colors.gray50\nconst tableSortFontColorHover = colors.gray40\nconst tableSortFontColorActive = colors.blue50\n\nconst tableCellTextColor = colors.gray15\nconst tableCellIconColor = colors.gray45\nconst tableCellInputPlaceholderColor = colors.gray70\nconst tableCellInputBorder = '1px solid transparent'\nconst tableCellInputRowHoverBgColor = colors.gray96\nconst tableCellInputFocusBgColor = colors.white\nconst tableCellInputHoverBgColor = colors.blue94\nconst tableCellInputFocusBorder = `1px solid ${colors.blue50}`\nconst tableCellInputErrorBgColor = colors.red98\nconst tableCellInputErrorBorder = `1px solid ${colors.red50}`\n\nconst tableRowBorderBottom = css`\n border-bottom: ${tableBorder};\n\n &:last-child {\n border-bottom: 0;\n }\n`\n\nexport const StyledTableHeaderCellSortableContainer = styled.div``\n\nexport const StyledTableHeaderCellLabel = styled.div`\n display: inline-block;\n flex: 1 1 auto;\n position: relative;\n`\n\nexport const StyledCheckbox = styled(Checkbox)``\n\nexport const StyledTableBodyCell = styled.td<{ $snugfit: boolean }>`\n position: relative;\n vertical-align: middle;\n\n ${({ $snugfit }) =>\n $snugfit &&\n css`\n white-space: nowrap;\n width: 0.1%;\n `}\n`\n\nexport const StyledTableHeaderCell = styled.th<{\n $sortable: boolean\n $snugfit: boolean\n $sortOrder?: TableColumnSortOrder\n}>`\n ${getTypographyIntent('small')}\n font-weight: ${tableHeaderFontWeight};\n border-right: ${tableHeaderBorderRight};\n color: ${tableHeaderFontColor};\n height: ${tableHeaderHeight}px;\n padding: ${tableHeaderPadding}px;\n position: relative;\n text-align: left;\n transition: background-color 0.2s ease-in-out;\n\n &:last-child {\n border-right: 0;\n }\n\n ${StyledTableHeaderCellSortableContainer} {\n display: flex;\n align-items: center;\n }\n\n ${StyledTableHeaderCellSortableContainer} {\n ${StyledTableHeaderCellLabel} {\n min-height: 14px;\n }\n }\n\n ${({ $sortable }) =>\n $sortable &&\n css`\n cursor: pointer;\n padding: ${spacing.lg}px;\n\n ${StyledTableHeaderCellSortIconAsc},\n ${StyledTableHeaderCellSortIconDesc} {\n color: ${tableSortFontColor};\n opacity: 0;\n transition: all 0.15s ease-in-out;\n position: absolute;\n }\n\n ::before,\n ::after {\n font-size: 16px;\n }\n\n &:hover {\n background-color: ${tableHeaderBgColorHover};\n\n ${StyledTableHeaderCellSortIconAsc} {\n color: ${tableSortFontColorHover};\n }\n }\n `}\n\n ${({ $sortOrder }) =>\n ($sortOrder === 'asc' || $sortOrder === 'desc') &&\n css`\n background-color: ${tableHeaderBgColorActive};\n color: ${tableHeaderFontColorActive};\n\n &::before,\n &::after,\n ${StyledTableHeaderCellSortIconAsc},\n ${StyledTableHeaderCellSortIconDesc} {\n opacity: 1;\n }\n `}\n\n ${({ $sortOrder }) =>\n $sortOrder === 'asc' &&\n css`\n ${StyledTableHeaderCellSortIconAsc},\n &::before {\n color: ${tableSortFontColorActive};\n }\n\n &:hover {\n ${StyledTableHeaderCellSortIconAsc},\n &::before {\n color: ${tableSortFontColorActive};\n }\n ${StyledTableHeaderCellSortIconDesc},\n &::after {\n color: ${tableSortFontColorHover};\n }\n }\n `}\n\n ${({ $sortOrder }) =>\n $sortOrder === 'desc' &&\n css`\n ${StyledTableHeaderCellSortIconDesc},\n &::after {\n color: ${tableSortFontColorActive};\n }\n\n &:hover {\n ${StyledTableHeaderCellSortIconAsc},\n &::before {\n color: ${tableSortFontColorHover};\n }\n ${StyledTableHeaderCellSortIconDesc},\n &::after {\n color: ${tableSortFontColorActive};\n }\n }\n `}\n\n ${({ $snugfit }) =>\n $snugfit &&\n css`\n width: 0.1%;\n `}\n`\n\nexport const StyledTableHeaderCellIconWrapper = styled.div`\n height: 20px;\n line-height: 20px;\n padding: 0 ${spacing.lg}px 0 ${spacing.sm}px;\n width: 20px;\n`\n\nexport const StyledTableHeaderCellSortIconAsc = styled(CaretUp)`\n margin-top: -${spacing.sm}px;\n`\n\nexport const StyledTableHeaderCellSortIconDesc = styled(CaretDown)``\n\nexport const StyledHead = styled.thead`\n background-color: ${tableHeaderBgColor};\n transition: background-color 0.2s ease-in-out;\n ${tableRowBorderBottom}\n\n &:hover {\n ${StyledTableHeaderCell} {\n ${StyledTableHeaderCellSortIconAsc},\n ${StyledTableHeaderCellSortIconDesc} {\n &::after,\n q &::before {\n opacity: 1;\n }\n }\n }\n }\n`\n\nexport const StyledCaratWrapper = styled(Button)``\n\nexport const StyledCarat = styled(ChevronRight)<{ $expanded: boolean }>`\n ${({ $expanded }) =>\n $expanded &&\n css`\n transform: rotate(90deg);\n `}\n`\n\nconst cellInputCSS = css`\n // Define particular color, simply not to rely on browser's choice of transparent value\n // https://stackoverflow.com/questions/46309641/what-happens-in-safari-with-the-transparent-color\n background-color: rgba(255, 255, 255, 0);\n\n &&& {\n border: ${tableCellInputBorder};\n border-radius: 4px;\n width: 100%;\n\n &::placeholder {\n color: ${tableCellInputPlaceholderColor};\n }\n\n &::-ms-clear {\n display: none;\n }\n\n &:hover {\n border-color: transparent;\n }\n\n &:focus {\n /**\n focus background overrides everything, so it is the only cell-defined background style.\n the rest come from StyledInlineEditContainer\n */\n background-color: ${colors.white};\n border-style: solid;\n border-width: 1px;\n border-color: ${colors.blue40};\n box-shadow: 0 0 0 1px ${colors.blue40};\n outline: none;\n }\n\n &:disabled {\n border: ${tableCellInputBorder};\n color: ${colors.gray70};\n }\n }\n`\n\nexport const StyledTableCellSelect = styled(Select)<{\n $hasClearIcon: boolean\n $placeholder: boolean\n}>`\n ${cellInputCSS};\n\n background-color: transparent;\n border-color: transparent;\n height: auto;\n\n &:hover {\n background-color: transparent;\n }\n\n &:active:hover {\n border-color: ${colors.gray85};\n }\n\n &:focus {\n background-color: ${colors.white};\n cursor: pointer;\n ${getFocus()}\n\n ${StyledSelectButtonLabel} {\n white-space: nowrap;\n }\n\n ${StyledSelectArrow} {\n opacity: 1;\n pointer-events: all;\n }\n\n ${({ $hasClearIcon }) =>\n $hasClearIcon &&\n css`\n ${StyledSelectClearIcon} {\n opacity: 1;\n pointer-events: all;\n }\n `}\n\n ${({ $placeholder = false }) =>\n $placeholder &&\n css`\n ${StyledSelectButtonLabel} {\n opacity: 1;\n pointer-events: all;\n }\n `}\n }\n\n ${StyledSelectButtonLabel} {\n white-space: normal;\n }\n\n ${StyledSelectArrow}, ${StyledSelectClearIcon} {\n opacity: 0;\n pointer-events: none;\n }\n\n ${({ $placeholder = false }) =>\n $placeholder &&\n css`\n ${StyledSelectButtonLabel} {\n opacity: 0;\n pointer-events: none;\n }\n `}\n\n ${({ loading }) =>\n loading &&\n css`\n background-color: ${colors.white};\n border-color: ${colors.gray85};\n\n ${StyledSelectButtonLabel} {\n white-space: nowrap;\n }\n `}\n`\nexport const StyledTableCellInput = styled(Input)`\n ${cellInputCSS}\n`\nexport const StyledTableCellDateInput = styled(DateSelect)`\n background-color: transparent;\n border-color: transparent;\n\n &:active:hover {\n border-color: ${colors.gray45};\n }\n\n // increase specificity to avoid border re-style\n &&&:focus-within {\n ${getFocus()};\n background-color: ${colors.white};\n }\n\n ${({ error }) =>\n error &&\n css`\n border-color: ${colors.red50};\n `}\n\n ${StyledDateInputIconContainer} {\n opacity: 0;\n }\n\n ${StyledDateInputDelimiter} {\n &[data-qa-table-visible='false'] {\n opacity: 0;\n }\n }\n\n ${StyledDateInputSegment} {\n &[data-placeholder='true'] {\n opacity: 0;\n }\n }\n\n &:focus-within {\n ${StyledDateInputIconContainer} {\n opacity: 1;\n }\n ${StyledDateInputDelimiter} {\n &[data-qa-table-visible='false'] {\n opacity: 1;\n }\n }\n ${StyledDateInputSegment} {\n &[data-placeholder='true'] {\n opacity: 1;\n }\n }\n }\n`\n\nexport const StyledTableCellTextArea = styled(TextArea)<{\n $resizable: boolean\n}>`\n ${cellInputCSS}\n && {\n height: ${spacing.xxl}px;\n min-height: ${spacing.xxl}px;\n overflow: hidden;\n padding-top: ${spacing.xs}px;\n resize: none;\n width: 100%;\n\n ${({ $resizable }) =>\n $resizable &&\n css`\n &:focus {\n min-height: 64px;\n overflow: auto;\n resize: vertical;\n }\n `}\n }\n`\n\nexport const StyledTableCellText = styled.div<{\n $percent?: boolean\n $currency?: boolean\n}>`\n margin: ${spacing.lg}px;\n display: flex;\n color: ${tableCellTextColor};\n\n ${({ $percent, $currency }) =>\n ($percent || $currency) &&\n css`\n justify-content: flex-end;\n `}\n`\n\nexport const StyledIconCell = styled.div`\n display: flex;\n color: ${tableCellIconColor};\n`\n\nexport const StyledSelectCellWrapper = styled.div`\n display: flex;\n flex-direction: column;\n`\n\nexport const StyledTableInlineEditErrorBox = styled.div<{\n $size?: InputCellSize\n}>`\n ${getTypographyIntent('small')}\n color: ${colors.white};\n font-style: italic;\n background: ${colors.red50};\n border-radius: 0 2px 2px 2px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);\n padding: 6px ${spacing.md}px;\n position: absolute;\n max-width: 160px;\n z-index: 1;\n\n ${({ $size }) => {\n const sizes: Record<InputCellSize, number | null> = {\n xs: 36,\n sm: 48,\n md: 80,\n lg: 112,\n block: null,\n xl: null,\n }\n\n if (!$size || !sizes[$size]) {\n return ''\n }\n\n return css`\n min-width: ${sizes[$size]}px;\n `\n }}\n`\n\ninterface StyledTableInlineEditContainerProps {\n $disabled?: boolean\n $error?: boolean\n $size: InputCellSize\n}\n\nexport const StyledTableInlineEditContainer = styled.div<StyledTableInlineEditContainerProps>`\n background-color: ${tableBgColor};\n margin: ${spacing.sm}px ${spacing.xs}px;\n position: relative;\n\n ${({ $error }) =>\n $error &&\n css`\n position: static;\n background-color: ${tableCellInputErrorBgColor};\n\n ${StyledTableCellDateInput},\n ${StyledTableCellInput},\n ${StyledTableCellSelect},\n ${StyledTableCellTextArea} {\n border: ${tableCellInputErrorBorder};\n border-radius: 4px 4px 0 0;\n border-bottom: none;\n\n &:hover {\n border-bottom: none;\n }\n\n &:focus {\n background-color: ${tableCellInputFocusBgColor};\n border: ${tableCellInputFocusBorder};\n border-bottom: none;\n }\n }\n `}\n\n ${({ $size }) => {\n const sizes: Record<InputCellSize, number | null> = {\n xs: 36,\n sm: 48,\n md: 80,\n lg: 112,\n block: null,\n xl: null,\n }\n\n if ($size === 'block') {\n return css`\n position: relative;\n\n ${StyledTableInlineEditErrorBox} {\n width: 100%;\n max-width: 100%;\n }\n `\n }\n\n if (!$size || !sizes[$size]) {\n return ''\n }\n\n return css`\n width: ${sizes[$size]}px;\n `\n }}\n`\n\nexport const StyledTableBodyRow = styled.tr<{\n $overdue: boolean\n}>`\n ${tableRowBorderBottom}\n\n ${({ $overdue }) =>\n $overdue &&\n css`\n ${StyledTableCellText},\n ${StyledTableCellSelect},\n ${StyledTableCellInput},\n ${StyledTableCellDateInput},\n ${StyledTableCellTextArea} {\n color: ${colors.red50};\n }\n `}\n\n &:focus-within {\n ${StyledTableInlineEditContainer} {\n background-color: ${tableCellInputRowHoverBgColor};\n\n &.disabled {\n background-color: transparent;\n }\n }\n ${StyledTableInlineEditContainer}.error {\n background-color: ${tableCellInputErrorBgColor};\n }\n }\n\n &:hover {\n ${StyledTableInlineEditContainer} {\n background-color: ${tableCellInputRowHoverBgColor};\n cursor: pointer;\n\n &:hover {\n background-color: ${tableCellInputHoverBgColor};\n }\n\n &.disabled {\n &,\n &:hover {\n background-color: transparent;\n cursor: default;\n }\n }\n }\n\n ${StyledTableInlineEditContainer}.error {\n background-color: ${tableCellInputErrorBgColor};\n\n &:hover {\n background-color: ${tableCellInputErrorBgColor};\n }\n\n ${StyledTableCellInput},\n ${StyledTableCellSelect},\n ${StyledTableCellTextArea} {\n border: ${tableCellInputErrorBorder};\n border-bottom: none;\n\n &:hover {\n border-bottom: none;\n }\n\n &:focus {\n border: ${tableCellInputFocusBorder};\n border-bottom: none;\n }\n }\n }\n }\n`\n\nexport const StyledTableGroupRowContent = styled.div``\n\nexport const StyledTableGroupRowHeader = styled.div``\n\nexport const StyledTableGroupRowTitle = styled.span``\n\nexport const StyledTableGroupRow = styled.tr<{ $depth?: number | boolean }>`\n background-color: ${tableGroupRowBgColor};\n ${tableRowBorderBottom}\n\n ${StyledTableGroupRowContent} {\n margin-left: ${spacing.lg}px;\n padding: ${spacing.lg}px 0;\n display: flex;\n flex-direction: row;\n }\n\n ${StyledTableGroupRowHeader} {\n display: flex;\n align-items: center;\n }\n\n ${StyledTableGroupRowTitle} {\n font-weight: ${tableHeaderFontWeight};\n padding-left: ${spacing.lg}px;\n }\n\n ${({ $depth }) => {\n if (typeof $depth !== 'number') {\n return ''\n }\n\n return css`\n > td {\n padding-left: ${$depth * tableGroupHeaderRowIndentation}px !important;\n }\n\n ~ ${StyledTableBodyRow} {\n > td:first-child {\n padding-left: ${($depth + 1) * tableGroupHeaderRowIndentation +\n tableGroupBodyRowIndentation}px !important;\n }\n }\n `\n }}\n`\n\nexport const StyledTableWrapper = styled(Card)<{ $withShelf: boolean }>`\n border-radius: ${tableBorderRadius}px;\n border: ${tableBorder};\n\n ${StyledHead}, tbody {\n &:first-child {\n tr:first-child {\n ${StyledTableHeaderCell}, td {\n &:first-child {\n border-top-left-radius: ${tableBorderRadius}px;\n }\n\n &:last-child {\n border-top-right-radius: ${tableBorderRadius}px;\n }\n }\n }\n }\n\n &:last-child {\n tr:last-child {\n ${StyledTableHeaderCell}, td {\n &:first-child {\n border-bottom-left-radius: ${tableBorderRadius}px;\n }\n &:last-child {\n border-bottom-right-radius: ${tableBorderRadius}px;\n }\n }\n }\n }\n }\n\n ${({ $withShelf }) =>\n $withShelf &&\n css`\n position: relative;\n height: 100%;\n `}\n`\n\nconst BodyRow = StyledTableBodyRow\n\nconst GroupRow = StyledTableGroupRow\n\nexport const StyledTable = styled.table<{ $inline?: boolean; $fixed: boolean }>`\n background-color: ${tableBgColor};\n border-collapse: collapse;\n border-radius: ${tableBorderRadius}px;\n ${getTypographyIntent('body')}\n width: 100%;\n\n td:first-child ${StyledCheckbox} {\n padding-left: ${spacing.lg}px;\n }\n\n ${StyledTableGroupRow} ${StyledCaratWrapper} + ${StyledCheckbox} {\n margin-left: ${spacing.xs}px;\n padding-left: 0;\n }\n\n ${({ $fixed }) =>\n $fixed &&\n css`\n table-layout: fixed;\n `}\n\n ${({ $inline }) =>\n $inline &&\n css`\n border-top: 1px solid ${colors.gray85};\n border-bottom: 1px solid ${colors.gray85};\n `}\n\n ${GroupRow} + ${GroupRow} > td {\n padding-left: ${tableGroupHeaderRowIndentation}px;\n }\n\n ${GroupRow} + ${GroupRow} + ${GroupRow} > td {\n padding-left: ${2 * tableGroupHeaderRowIndentation}px;\n }\n\n ${GroupRow} + ${GroupRow} + ${GroupRow} + ${GroupRow} > td {\n padding-left: ${3 * tableGroupHeaderRowIndentation}px;\n }\n\n ${GroupRow} + ${GroupRow} + ${GroupRow} + ${GroupRow} + ${GroupRow} > td {\n padding-left: ${4 * tableGroupHeaderRowIndentation}px;\n }\n\n ${GroupRow} ~ ${BodyRow} {\n ${StyledCheckbox} {\n padding-left: 0;\n margin: 0 ${spacing.xs}px;\n }\n\n & > td:first-child {\n padding-left: ${tableGroupHeaderRowIndentation +\n tableGroupBodyRowIndentation}px;\n }\n }\n\n ${GroupRow} + ${GroupRow} ~ ${BodyRow} {\n & > td:first-child {\n padding-left: ${2 * tableGroupHeaderRowIndentation +\n tableGroupBodyRowIndentation}px;\n }\n }\n\n ${GroupRow} + ${GroupRow} + ${GroupRow} ~ ${BodyRow} {\n & > td:first-child {\n padding-left: ${3 * tableGroupHeaderRowIndentation +\n tableGroupBodyRowIndentation}px;\n }\n }\n\n ${GroupRow} + ${GroupRow} + ${GroupRow} + ${GroupRow} ~ ${BodyRow} {\n & > td:first-child {\n padding-left: ${4 * tableGroupHeaderRowIndentation +\n tableGroupBodyRowIndentation}px;\n }\n }\n\n ${GroupRow} + ${GroupRow} + ${GroupRow} + ${GroupRow} + ${GroupRow} ~ ${BodyRow} {\n & > td:first-child {\n padding-left: ${5 * tableGroupHeaderRowIndentation +\n tableGroupBodyRowIndentation}px;\n }\n }\n`\n\nexport const StyledLoadingContainer = styled.div`\n cursor: default;\n align-items: center;\n background: ${colors.gray96};\n display: flex;\n height: 100%;\n justify-content: center;\n opacity: 0.9;\n position: absolute;\n width: 100%;\n z-index: 2;\n`\n"],"mappings":"AAAA,SAASA,SAAS,EAAEC,OAAO,EAAEC,YAAY,QAAQ,qBAAqB;AACtE,OAAOC,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,QAAQ,QAAQ,aAAa;AACtC,SACEC,wBAAwB,EACxBC,4BAA4B,EAC5BC,sBAAsB,QACjB,+BAA+B;AACtC,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,KAAK,QAAQ,UAAU;AAChC,SAASC,MAAM,QAAQ,WAAW;AAClC,SACEC,iBAAiB,EACjBC,uBAAuB,EACvBC,qBAAqB,QAChB,yBAAyB;AAChC,SAASC,QAAQ,QAAQ,aAAa;AACtC,SACEC,mBAAmB,EACnBC,iBAAiB,QACZ,iCAAiC;AACxC,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,OAAO,QAAQ,oBAAoB;AAG5C,IAAMC,YAAY,GAAGH,MAAM,CAACI,KAAK;AACjC,IAAMC,iBAAiB,GAAG,CAAC;AAC3B,IAAM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for the carat button. If not provided, defaults to internationalized "Expand" or "Collapse" based on expanded state.
47
+ * @since 12.34.0
48
+ */
49
+ 'aria-label'?: string;
45
50
  }
46
51
  export interface ContainerProps {
47
52
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Table.types.js","names":[],"sources":["../../src/Table/Table.types.ts"],"sourcesContent":["import type { CurrencyOptions } from '@procore/globalization-toolkit'\nimport type React from 'react'\nimport type { DateSelectProps } from '../DateSelect'\nimport type { InputProps } from '../Input'\nimport type { SelectProps } from '../Select'\nimport type { Props, Size } from '../_utils/types'\n\nexport type InputCellSize = Extract<\n Size,\n 'block' | 'lg' | 'md' | 'sm' | 'xl' | 'xs'\n>\n\nexport type TableVariant = '' | 'fixed'\n\nexport type TableColumnSortOrder = 'asc' | 'desc' | ''\n\nexport type TableCellVariant = '' | 'asc' | 'desc' | 'snugfit'\n\nexport interface BodyCellProps extends Props {\n /**\n * Shrink the cell around the contents\n * @since 10.19.0\n */\n snugfit?: boolean\n\n /**\n * The table body cell variant\n * @since 10.19.0\n * @deprecated Please use `sortOrder` prop instead of `esc/desc` variants, and `snugfit` prop instead of `snugfit` variant\n * @deprecatedSince 11.15.1\n */\n variant?: TableCellVariant\n}\n\nexport interface BodyProps extends Props {}\n\nexport interface BodyRowProps extends Props {\n /**\n * Sets row text color to red to signify overdue items\n * @since 10.19.0\n */\n overdue?: boolean\n}\n\nexport interface CaratProps {\n /**\n * Whether or not the carat is rotated\n * @since 10.19.0\n */\n expanded?: boolean\n\n /**\n * Callback to fire when clicked\n * @since 10.19.0\n */\n onClick?: React.EventHandler<any>\n}\n\nexport interface ContainerProps {\n /**\n * @since 10.19.0\n */\n children?: React.ReactNode\n\n /**\n * Adjust the container to support a table shelf\n * @default false\n * @since 10.19.0\n * */\n shelf?: boolean\n}\n\nexport interface CurrencyCellProps extends Omit<Props, 'children'> {\n /**\n * @deprecated Please use `value` prop instead\n * @deprecatedSince 11.28.0\n */\n children?: React.ReactNode\n\n /**\n * Optional formatting configs\n * @since 11.28.0\n */\n currencyOptions?: CurrencyOptions\n\n /**\n * Unformatted value to be displayed\n * @since 11.28.0\n */\n value?: number\n}\n\nexport interface GroupProps extends Props {\n /**\n * Number of columns in table\n * @since 10.19.0\n */\n colSpan?: number\n\n /**\n * Determines indentation of the group and content\n * @since 10.19.0\n */\n depth?: number\n}\n\nexport interface GroupTitleProps extends Props {}\n\nexport interface TableHeaderCellProps extends BodyCellProps {\n /**\n * Is this the column sortable\n * @since 10.19.0\n * @deprecated Please use `sortOrder` prop instead\n * @deprecatedSince 11.15.1\n */\n sortable?: boolean\n\n /**\n * Column sorting order\n * @since 11.15.1\n */\n sortOrder?: TableColumnSortOrder\n\n /**\n * Column sorting order change callback.\n * Loops over from \"asc\" to \"desc\" to \"\", set should be assigned to `sortOrder` prop.\n * @since 11.15.1\n */\n onSortOrderChange?: (nextSortOrder: TableColumnSortOrder) => void\n}\n\nexport interface HeaderProps extends Props {}\n\nexport interface HeaderRowProps extends Props {}\n\nexport interface IconCellProps extends Props {}\n\nexport interface InputCellProps extends Omit<InputProps, 'size'> {\n /**\n * Message to be displayed below the input during an error\n * @since 10.19.0\n */\n errorMessage?: string\n\n /**\n * Triggers the spinner for processing inline editable content\n * @default false\n * @since 10.19.0\n */\n processing?: boolean\n\n /**\n * The size of the input cell and corresponding error message\n * @default 'block'\n * @since 10.19.0\n */\n size?: InputCellSize\n}\n\nexport interface LinkCellProps extends Props {\n /**\n * Destination url\n * @default ''\n * @since 10.19.0\n * */\n href: string\n}\n\nexport interface PercentCellProps extends Props {}\n\nexport interface TableSelectCellProps extends SelectProps {\n /**\n * Message to be displayed below the select during an error\n * @default ''\n * @since 10.19.0\n */\n errorMessage?: string\n\n /**\n * Triggers the spinner that covers inline editable content\n * @default false\n * @since 10.19.0\n */\n processing?: boolean\n}\n\nexport interface DateSelectCellProps extends DateSelectProps {\n /**\n * @since 10.19.0\n */\n className?: string\n\n /**\n * Message to be displayed below the date select during an error\n * @default ''\n * @since 10.19.0\n */\n errorMessage?: string\n\n /**\n * Triggers the spinner that covers inline editable content\n * @default false\n * @since 10.19.0\n */\n processing?: boolean\n}\n\nexport interface TableProps extends Props {\n /**\n * @since 10.19.0\n */\n inline?: boolean\n\n /**\n * The table variant\n * @since 10.19.0\n */\n variant?: TableVariant\n}\n\nexport interface TextAreaCellProps extends Props {\n /**\n * Message to be displayed below the textarea during an error\n * @since 10.19.0\n */\n errorMessage?: string\n\n /**\n * Triggers the spinner for processing inline editable content\n * @since 10.19.0\n */\n processing?: boolean\n\n /**\n * Sets whether it is resizable\n * @since 10.19.0\n */\n resizable?: boolean\n}\n\nexport interface TableTextCellProps extends Props {}\n"],"mappings":""}
1
+ {"version":3,"file":"Table.types.js","names":[],"sources":["../../src/Table/Table.types.ts"],"sourcesContent":["import type { CurrencyOptions } from '@procore/globalization-toolkit'\nimport type React from 'react'\nimport type { DateSelectProps } from '../DateSelect'\nimport type { InputProps } from '../Input'\nimport type { SelectProps } from '../Select'\nimport type { Props, Size } from '../_utils/types'\n\nexport type InputCellSize = Extract<\n Size,\n 'block' | 'lg' | 'md' | 'sm' | 'xl' | 'xs'\n>\n\nexport type TableVariant = '' | 'fixed'\n\nexport type TableColumnSortOrder = 'asc' | 'desc' | ''\n\nexport type TableCellVariant = '' | 'asc' | 'desc' | 'snugfit'\n\nexport interface BodyCellProps extends Props {\n /**\n * Shrink the cell around the contents\n * @since 10.19.0\n */\n snugfit?: boolean\n\n /**\n * The table body cell variant\n * @since 10.19.0\n * @deprecated Please use `sortOrder` prop instead of `esc/desc` variants, and `snugfit` prop instead of `snugfit` variant\n * @deprecatedSince 11.15.1\n */\n variant?: TableCellVariant\n}\n\nexport interface BodyProps extends Props {}\n\nexport interface BodyRowProps extends Props {\n /**\n * Sets row text color to red to signify overdue items\n * @since 10.19.0\n */\n overdue?: boolean\n}\n\nexport interface CaratProps {\n /**\n * Whether or not the carat is rotated\n * @since 10.19.0\n */\n expanded?: boolean\n\n /**\n * Callback to fire when clicked\n * @since 10.19.0\n */\n onClick?: React.EventHandler<any>\n\n /**\n * Custom aria-label for the carat button. If not provided, defaults to internationalized \"Expand\" or \"Collapse\" based on expanded state.\n * @since 12.34.0\n */\n 'aria-label'?: string\n}\n\nexport interface ContainerProps {\n /**\n * @since 10.19.0\n */\n children?: React.ReactNode\n\n /**\n * Adjust the container to support a table shelf\n * @default false\n * @since 10.19.0\n * */\n shelf?: boolean\n}\n\nexport interface CurrencyCellProps extends Omit<Props, 'children'> {\n /**\n * @deprecated Please use `value` prop instead\n * @deprecatedSince 11.28.0\n */\n children?: React.ReactNode\n\n /**\n * Optional formatting configs\n * @since 11.28.0\n */\n currencyOptions?: CurrencyOptions\n\n /**\n * Unformatted value to be displayed\n * @since 11.28.0\n */\n value?: number\n}\n\nexport interface GroupProps extends Props {\n /**\n * Number of columns in table\n * @since 10.19.0\n */\n colSpan?: number\n\n /**\n * Determines indentation of the group and content\n * @since 10.19.0\n */\n depth?: number\n}\n\nexport interface GroupTitleProps extends Props {}\n\nexport interface TableHeaderCellProps extends BodyCellProps {\n /**\n * Is this the column sortable\n * @since 10.19.0\n * @deprecated Please use `sortOrder` prop instead\n * @deprecatedSince 11.15.1\n */\n sortable?: boolean\n\n /**\n * Column sorting order\n * @since 11.15.1\n */\n sortOrder?: TableColumnSortOrder\n\n /**\n * Column sorting order change callback.\n * Loops over from \"asc\" to \"desc\" to \"\", set should be assigned to `sortOrder` prop.\n * @since 11.15.1\n */\n onSortOrderChange?: (nextSortOrder: TableColumnSortOrder) => void\n}\n\nexport interface HeaderProps extends Props {}\n\nexport interface HeaderRowProps extends Props {}\n\nexport interface IconCellProps extends Props {}\n\nexport interface InputCellProps extends Omit<InputProps, 'size'> {\n /**\n * Message to be displayed below the input during an error\n * @since 10.19.0\n */\n errorMessage?: string\n\n /**\n * Triggers the spinner for processing inline editable content\n * @default false\n * @since 10.19.0\n */\n processing?: boolean\n\n /**\n * The size of the input cell and corresponding error message\n * @default 'block'\n * @since 10.19.0\n */\n size?: InputCellSize\n}\n\nexport interface LinkCellProps extends Props {\n /**\n * Destination url\n * @default ''\n * @since 10.19.0\n * */\n href: string\n}\n\nexport interface PercentCellProps extends Props {}\n\nexport interface TableSelectCellProps extends SelectProps {\n /**\n * Message to be displayed below the select during an error\n * @default ''\n * @since 10.19.0\n */\n errorMessage?: string\n\n /**\n * Triggers the spinner that covers inline editable content\n * @default false\n * @since 10.19.0\n */\n processing?: boolean\n}\n\nexport interface DateSelectCellProps extends DateSelectProps {\n /**\n * @since 10.19.0\n */\n className?: string\n\n /**\n * Message to be displayed below the date select during an error\n * @default ''\n * @since 10.19.0\n */\n errorMessage?: string\n\n /**\n * Triggers the spinner that covers inline editable content\n * @default false\n * @since 10.19.0\n */\n processing?: boolean\n}\n\nexport interface TableProps extends Props {\n /**\n * @since 10.19.0\n */\n inline?: boolean\n\n /**\n * The table variant\n * @since 10.19.0\n */\n variant?: TableVariant\n}\n\nexport interface TextAreaCellProps extends Props {\n /**\n * Message to be displayed below the textarea during an error\n * @since 10.19.0\n */\n errorMessage?: string\n\n /**\n * Triggers the spinner for processing inline editable content\n * @since 10.19.0\n */\n processing?: boolean\n\n /**\n * Sets whether it is resizable\n * @since 10.19.0\n */\n resizable?: boolean\n}\n\nexport interface TableTextCellProps extends Props {}\n"],"mappings":""}
@@ -4,22 +4,22 @@ import { spacing } from '../_styles/spacing';
4
4
  var tableShelfShadow = '-4px 0px 5px 0px rgba(112, 112, 112, 0.1)';
5
5
  export var StyledShelf = /*#__PURE__*/styled.div.withConfig({
6
6
  displayName: "StyledShelf",
7
- componentId: "core-12_34_1__sc-a6498a-0"
7
+ componentId: "core-12_36_0__sc-a6498a-0"
8
8
  })(["position:absolute;right:0;top:0;bottom:0;box-shadow:", ";background-color:", ";"], tableShelfShadow, colors.white);
9
9
  export var StyledHead = /*#__PURE__*/styled.div.withConfig({
10
10
  displayName: "StyledHead",
11
- componentId: "core-12_34_1__sc-a6498a-1"
11
+ componentId: "core-12_36_0__sc-a6498a-1"
12
12
  })(["background-color:", ";transition:background-color 0.2s ease-in-out;"], colors.gray96);
13
13
  export var StyledBodyRow = /*#__PURE__*/styled.div.withConfig({
14
14
  displayName: "StyledBodyRow",
15
- componentId: "core-12_34_1__sc-a6498a-2"
15
+ componentId: "core-12_36_0__sc-a6498a-2"
16
16
  })(["border-top:1px solid ", ";transition:background-color 0.2s ease-in-out;"], colors.gray85);
17
17
  export var StyledHeadCell = /*#__PURE__*/styled.div.withConfig({
18
18
  displayName: "StyledHeadCell",
19
- componentId: "core-12_34_1__sc-a6498a-3"
19
+ componentId: "core-12_36_0__sc-a6498a-3"
20
20
  })(["text-align:left;padding:", "px;line-height:13px;"], spacing.lg);
21
21
  export var StyledBodyCell = /*#__PURE__*/styled.div.withConfig({
22
22
  displayName: "StyledBodyCell",
23
- componentId: "core-12_34_1__sc-a6498a-4"
23
+ componentId: "core-12_36_0__sc-a6498a-4"
24
24
  })(["padding:", "px;line-height:13px;"], spacing.lg);
25
25
  //# sourceMappingURL=TableShelf.styles.js.map
@@ -17,17 +17,17 @@ var borderRadius = /*#__PURE__*/css(["border-radius:", "px ", "px 0 0;"], spacin
17
17
  */
18
18
  var StyledTabBase = /*#__PURE__*/styled.div.withConfig({
19
19
  displayName: "StyledTabBase",
20
- componentId: "core-12_34_1__sc-17s58xs-0"
20
+ componentId: "core-12_36_0__sc-17s58xs-0"
21
21
  })(["align-items:center;box-sizing:border-box;cursor:pointer;display:inline-flex;flex:0 0 auto;justify-content:center;position:relative;white-space:nowrap;text-decoration:none;background-color:transparent;border:none;font-family:inherit;padding:0;"]);
22
22
  var StyledTabInnerBase = /*#__PURE__*/styled.div.withConfig({
23
23
  displayName: "StyledTabInnerBase",
24
- componentId: "core-12_34_1__sc-17s58xs-1"
24
+ componentId: "core-12_36_0__sc-17s58xs-1"
25
25
  })(["align-self:baseline;box-sizing:border-box;&,> a{display:flex;text-decoration:none;width:100%;}"]);
26
26
 
27
27
  // This so that it can be visible/hidden via CSS down below
28
28
  var StyledDropdownTabBase = /*#__PURE__*/styled(StyledTabBase).withConfig({
29
29
  displayName: "StyledDropdownTabBase",
30
- componentId: "core-12_34_1__sc-17s58xs-2"
30
+ componentId: "core-12_36_0__sc-17s58xs-2"
31
31
  })(["", ""], hiddenTab);
32
32
 
33
33
  //// END BASE LAYOUT COMPONENTS FOR TABS ////
@@ -50,11 +50,11 @@ function getTabStyle() {
50
50
  }
51
51
  var StyledTab = /*#__PURE__*/styled(StyledTabBase).withConfig({
52
52
  displayName: "StyledTab",
53
- componentId: "core-12_34_1__sc-17s58xs-3"
53
+ componentId: "core-12_36_0__sc-17s58xs-3"
54
54
  })(["", ""], getTabStyle);
55
55
  var StyledTabInner = /*#__PURE__*/styled(StyledTabInnerBase).withConfig({
56
56
  displayName: "StyledTabInner",
57
- componentId: "core-12_34_1__sc-17s58xs-4"
57
+ componentId: "core-12_36_0__sc-17s58xs-4"
58
58
  })(["", " padding:0 ", "px;font-weight:", ";&,> a{", ";color:", ";height:23px;}", ""], getTypographyIntent('body'), spacing.xs, function (_ref3) {
59
59
  var $selected = _ref3.$selected;
60
60
  return $selected ? 600 : 400;
@@ -67,15 +67,15 @@ var StyledTabInner = /*#__PURE__*/styled(StyledTabInnerBase).withConfig({
67
67
  });
68
68
  var StyledDropdownTab = /*#__PURE__*/styled(StyledDropdownTabBase).withConfig({
69
69
  displayName: "StyledDropdownTab",
70
- componentId: "core-12_34_1__sc-17s58xs-5"
70
+ componentId: "core-12_36_0__sc-17s58xs-5"
71
71
  })(["", ""], getTabStyle);
72
72
  var StyledDropdownTabInner = /*#__PURE__*/styled(StyledTabInner).withConfig({
73
73
  displayName: "StyledDropdownTabInner",
74
- componentId: "core-12_34_1__sc-17s58xs-6"
74
+ componentId: "core-12_36_0__sc-17s58xs-6"
75
75
  })(["align-items:center;cursor:pointer;display:inline-flex;"]);
76
76
  var StyledLink = /*#__PURE__*/styled.span.withConfig({
77
77
  displayName: "StyledLink",
78
- componentId: "core-12_34_1__sc-17s58xs-7"
78
+ componentId: "core-12_36_0__sc-17s58xs-7"
79
79
  })(["align-items:center;display:flex;height:23px;", ";box-sizing:border-box;"], borderRadius);
80
80
 
81
81
  //// END TRADITIONAL DESIGN SYSTEM TAB STYLES ////
@@ -92,34 +92,34 @@ function getHelixHeaderTabStyles() {
92
92
  }
93
93
  var StyledGlobalNavigationTab = /*#__PURE__*/styled(StyledTabBase).withConfig({
94
94
  displayName: "StyledGlobalNavigationTab",
95
- componentId: "core-12_34_1__sc-17s58xs-8"
95
+ componentId: "core-12_36_0__sc-17s58xs-8"
96
96
  })(["", ""], getHelixHeaderTabStyles);
97
97
  var StyledGlobalNavigationDropdownTab = /*#__PURE__*/styled(StyledDropdownTabBase).withConfig({
98
98
  displayName: "StyledGlobalNavigationDropdownTab",
99
- componentId: "core-12_34_1__sc-17s58xs-9"
99
+ componentId: "core-12_36_0__sc-17s58xs-9"
100
100
  })(["", ""], getHelixHeaderTabStyles);
101
101
  var StyledGlobalNavigationDropdownTabInner = /*#__PURE__*/styled(StyledTabInnerBase).withConfig({
102
102
  displayName: "StyledGlobalNavigationDropdownTabInner",
103
- componentId: "core-12_34_1__sc-17s58xs-10"
103
+ componentId: "core-12_36_0__sc-17s58xs-10"
104
104
  })(["align-items:center;cursor:pointer;display:inline-flex;"]);
105
105
  var StyledGlobalNavigationLink = /*#__PURE__*/styled.span.withConfig({
106
106
  displayName: "StyledGlobalNavigationLink",
107
- componentId: "core-12_34_1__sc-17s58xs-11"
107
+ componentId: "core-12_36_0__sc-17s58xs-11"
108
108
  })(["padding-left:6px;padding-right:6px;"]);
109
109
 
110
110
  //// END HELIX GLOBAL NAVIGATION TAB STYLES ////
111
111
 
112
112
  export var StyledOverlay = /*#__PURE__*/styled(Card).withConfig({
113
113
  displayName: "StyledOverlay",
114
- componentId: "core-12_34_1__sc-17s58xs-12"
114
+ componentId: "core-12_36_0__sc-17s58xs-12"
115
115
  })(["max-height:40vh;", "{padding:0;display:flex;justify-content:center;a{margin:unset;padding:unset;}}", "{padding:0;display:flex;}", "{padding:2px 16px 4px 16px;}", ",", "{color:", ";border-radius:0;display:flex;width:100%;background:inherit;font-weight:inherit;font-size:inherit;padding:0;}[data-selected='true']{", ",", "{border-bottom-color:transparent;color:", ";}}"], StyledItem, StyledLink, StyledTabInnerBase, StyledLink, StyledTabBase, colors.gray15, StyledLink, StyledTabBase, colors.blue50);
116
116
  export var StyledTabList = /*#__PURE__*/styled.div.withConfig({
117
117
  displayName: "StyledTabList",
118
- componentId: "core-12_34_1__sc-17s58xs-13"
118
+ componentId: "core-12_36_0__sc-17s58xs-13"
119
119
  })(["display:flex;width:100%;"]);
120
120
  export var StyledTabs = /*#__PURE__*/styled.nav.withConfig({
121
121
  displayName: "StyledTabs",
122
- componentId: "core-12_34_1__sc-17s58xs-14"
122
+ componentId: "core-12_36_0__sc-17s58xs-14"
123
123
  })(["background-color:", ";display:flex;overflow:hidden;width:100%;", "{&:nth-child(1n + ", "){&:not(", "){", "}}}", ""], function (_ref6) {
124
124
  var $dark = _ref6.$dark;
125
125
  return $dark && colors.gray15;
@@ -48,7 +48,7 @@ var getSlideOutAnimation = function getSlideOutAnimation($placement) {
48
48
  };
49
49
  export var StyledTearsheetContent = /*#__PURE__*/styled.div.withConfig({
50
50
  displayName: "StyledTearsheetContent",
51
- componentId: "core-12_34_1__sc-ljrxoq-0"
51
+ componentId: "core-12_36_0__sc-ljrxoq-0"
52
52
  })(["display:flex;z-index:2;width:100%;", " ", " ", " ", ""], function (_ref) {
53
53
  var $open = _ref.$open,
54
54
  $placement = _ref.$placement;
@@ -68,7 +68,7 @@ export var StyledTearsheetContent = /*#__PURE__*/styled.div.withConfig({
68
68
  export var minScrimSize = spacing.xxl * 3;
69
69
  export var StyledTearsheetBody = /*#__PURE__*/styled.div.withConfig({
70
70
  displayName: "StyledTearsheetBody",
71
- componentId: "core-12_34_1__sc-ljrxoq-1"
71
+ componentId: "core-12_36_0__sc-ljrxoq-1"
72
72
  })(["display:flex;overflow-y:auto;flex-direction:column;background-color:", ";&:focus-visible{", "}", " ", "}"], colors.white, getFocusInset(), function (_ref5) {
73
73
  var $block = _ref5.$block,
74
74
  $placement = _ref5.$placement,
@@ -89,7 +89,7 @@ var zoomIn = /*#__PURE__*/keyframes(["from{transform:scale(0);}to{transform:scal
89
89
  var zoomOut = /*#__PURE__*/keyframes(["from{transform:scale(1);}to{transform:scale(0);}"]);
90
90
  export var StyledScrimContainer = /*#__PURE__*/styled.div.withConfig({
91
91
  displayName: "StyledScrimContainer",
92
- componentId: "core-12_34_1__sc-ljrxoq-2"
92
+ componentId: "core-12_36_0__sc-ljrxoq-2"
93
93
  })(["", ""], function (_ref7) {
94
94
  var $placement = _ref7.$placement;
95
95
  var minSizeProp = ['top', 'bottom'].includes($placement) ? 'min-height' : 'min-width';
@@ -97,7 +97,7 @@ export var StyledScrimContainer = /*#__PURE__*/styled.div.withConfig({
97
97
  });
98
98
  export var StyledButtonContainer = /*#__PURE__*/styled.div.withConfig({
99
99
  displayName: "StyledButtonContainer",
100
- componentId: "core-12_34_1__sc-ljrxoq-3"
100
+ componentId: "core-12_36_0__sc-ljrxoq-3"
101
101
  })(["", ""], function (_ref8) {
102
102
  var $placement = _ref8.$placement;
103
103
  switch ($placement) {
@@ -112,7 +112,7 @@ export var StyledButtonContainer = /*#__PURE__*/styled.div.withConfig({
112
112
  });
113
113
  export var StyledButtonCard = /*#__PURE__*/styled(Card).withConfig({
114
114
  displayName: "StyledButtonCard",
115
- componentId: "core-12_34_1__sc-ljrxoq-4"
115
+ componentId: "core-12_36_0__sc-ljrxoq-4"
116
116
  })(["display:inline-flex;margin:", "px;", " ", " ", ""], spacing.xl, function (_ref9) {
117
117
  var $open = _ref9.$open;
118
118
  return $open ? css(["transform:scale(1);"]) : css(["transform:scale(0);"]);
@@ -29,6 +29,7 @@ export var TextArea = /*#__PURE__*/React.forwardRef(function TextArea(_ref, ref)
29
29
  $error: error,
30
30
  $variant: variant
31
31
  }, props, {
32
+ "aria-invalid": error || variant === 'error' ? 'true' : 'false',
32
33
  ref: ref
33
34
  }));
34
35
  });
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.js","names":["React","StyledTextArea","TextArea","forwardRef","_ref","ref","_ref$resize","resize","error","variant","props","_objectWithoutProperties","_excluded","createElement","_extends","$resize","$error","$variant","displayName"],"sources":["../../src/TextArea/TextArea.tsx"],"sourcesContent":["import React from 'react'\nimport { StyledTextArea } from './TextArea.styles'\nimport type { TextAreaProps } from './TextArea.types'\n\n/**\n\n Text areas give our users space to input unformatted text. All text areas are\n manually expandable by dragging the bottom right corner to the desired size.\n\n If users need to add formatted text, see Text Editor.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-textarea--demo)\n\n @see [Design Guidelines](https://design.procore.com/text-area)\n\n */\nexport const TextArea = React.forwardRef<HTMLTextAreaElement, TextAreaProps>(\n function TextArea({ resize = 'both', error, variant, ...props }, ref) {\n return (\n <StyledTextArea\n $resize={resize}\n $error={error}\n $variant={variant}\n {...props}\n ref={ref}\n />\n )\n }\n)\n\nTextArea.displayName = 'TextArea'\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,mBAAmB;AAGlD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,QAAQ,gBAAGF,KAAK,CAACG,UAAU,CACtC,SAASD,QAAQA,CAAAE,IAAA,EAAgDC,GAAG,EAAE;EAAA,IAAAC,WAAA,GAAAF,IAAA,CAAlDG,MAAM;IAANA,MAAM,GAAAD,WAAA,cAAG,MAAM,GAAAA,WAAA;IAAEE,KAAK,GAAAJ,IAAA,CAALI,KAAK;IAAEC,OAAO,GAAAL,IAAA,CAAPK,OAAO;IAAKC,KAAK,GAAAC,wBAAA,CAAAP,IAAA,EAAAQ,SAAA;EAC3D,oBACEZ,KAAA,CAAAa,aAAA,CAACZ,cAAc,EAAAa,QAAA;IACbC,OAAO,EAAER,MAAO;IAChBS,MAAM,EAAER,KAAM;IACdS,QAAQ,EAAER;EAAQ,GACdC,KAAK;IACTL,GAAG,EAAEA;EAAI,EACV,CAAC;AAEN,CACF,CAAC;AAEDH,QAAQ,CAACgB,WAAW,GAAG,UAAU"}
1
+ {"version":3,"file":"TextArea.js","names":["React","StyledTextArea","TextArea","forwardRef","_ref","ref","_ref$resize","resize","error","variant","props","_objectWithoutProperties","_excluded","createElement","_extends","$resize","$error","$variant","displayName"],"sources":["../../src/TextArea/TextArea.tsx"],"sourcesContent":["import React from 'react'\nimport { StyledTextArea } from './TextArea.styles'\nimport type { TextAreaProps } from './TextArea.types'\n\n/**\n\n Text areas give our users space to input unformatted text. All text areas are\n manually expandable by dragging the bottom right corner to the desired size.\n\n If users need to add formatted text, see Text Editor.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-textarea--demo)\n\n @see [Design Guidelines](https://design.procore.com/text-area)\n\n */\nexport const TextArea = React.forwardRef<HTMLTextAreaElement, TextAreaProps>(\n function TextArea({ resize = 'both', error, variant, ...props }, ref) {\n return (\n <StyledTextArea\n $resize={resize}\n $error={error}\n $variant={variant}\n {...props}\n aria-invalid={error || variant === 'error' ? 'true' : 'false'}\n ref={ref}\n />\n )\n }\n)\n\nTextArea.displayName = 'TextArea'\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,mBAAmB;AAGlD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,QAAQ,gBAAGF,KAAK,CAACG,UAAU,CACtC,SAASD,QAAQA,CAAAE,IAAA,EAAgDC,GAAG,EAAE;EAAA,IAAAC,WAAA,GAAAF,IAAA,CAAlDG,MAAM;IAANA,MAAM,GAAAD,WAAA,cAAG,MAAM,GAAAA,WAAA;IAAEE,KAAK,GAAAJ,IAAA,CAALI,KAAK;IAAEC,OAAO,GAAAL,IAAA,CAAPK,OAAO;IAAKC,KAAK,GAAAC,wBAAA,CAAAP,IAAA,EAAAQ,SAAA;EAC3D,oBACEZ,KAAA,CAAAa,aAAA,CAACZ,cAAc,EAAAa,QAAA;IACbC,OAAO,EAAER,MAAO;IAChBS,MAAM,EAAER,KAAM;IACdS,QAAQ,EAAER;EAAQ,GACdC,KAAK;IACT,gBAAcF,KAAK,IAAIC,OAAO,KAAK,OAAO,GAAG,MAAM,GAAG,OAAQ;IAC9DJ,GAAG,EAAEA;EAAI,EACV,CAAC;AAEN,CACF,CAAC;AAEDH,QAAQ,CAACgB,WAAW,GAAG,UAAU"}
@@ -3,7 +3,7 @@ import { getInputStyles } from '../Input/Input.styles';
3
3
  import { spacing } from '../_styles/spacing';
4
4
  export var StyledTextArea = /*#__PURE__*/styled.textarea.withConfig({
5
5
  displayName: "StyledTextArea",
6
- componentId: "core-12_34_1__sc-u5mow1-0"
6
+ componentId: "core-12_36_0__sc-u5mow1-0"
7
7
  })(["", ";height:auto;min-height:64px;padding:", "px ", "px;resize:", ";"], getInputStyles, spacing.sm, spacing.md, function (_ref) {
8
8
  var _ref$$resize = _ref.$resize,
9
9
  $resize = _ref$$resize === void 0 ? 'both' : _ref$$resize;
@@ -14,7 +14,7 @@ export declare function TextEditorProvider({ children, features, }: TextEditorPr
14
14
  @see [Design Guidelines](https://design.procore.com/text-editor)
15
15
 
16
16
  */
17
- export declare function TextEditor({ error, init: initOverrides, locale, onChange, onInit: _onInit, plugins, ...props }: TextEditorProps): React.JSX.Element;
17
+ export declare function TextEditor(allProps: TextEditorProps): React.JSX.Element;
18
18
  export declare namespace TextEditor {
19
19
  var displayName: string;
20
20
  }
@@ -98,17 +98,19 @@ function useFocusScopePatch(plugins) {
98
98
  @see [Design Guidelines](https://design.procore.com/text-editor)
99
99
 
100
100
  */
101
- export function TextEditor(_ref2) {
101
+ export function TextEditor(allProps) {
102
102
  var _props$initialValue, _props$value;
103
- var error = _ref2.error,
104
- initOverrides = _ref2.init,
105
- locale = _ref2.locale,
106
- _ref2$onChange = _ref2.onChange,
107
- onChange = _ref2$onChange === void 0 ? noop : _ref2$onChange,
108
- _onInit = _ref2.onInit,
109
- _ref2$plugins = _ref2.plugins,
110
- plugins = _ref2$plugins === void 0 ? defaultPlugins : _ref2$plugins,
111
- props = _objectWithoutProperties(_ref2, _excluded);
103
+ var error = allProps.error,
104
+ initOverrides = allProps.init,
105
+ locale = allProps.locale,
106
+ _allProps$onChange = allProps.onChange,
107
+ onChange = _allProps$onChange === void 0 ? noop : _allProps$onChange,
108
+ _onInit = allProps.onInit,
109
+ _allProps$plugins = allProps.plugins,
110
+ plugins = _allProps$plugins === void 0 ? defaultPlugins : _allProps$plugins,
111
+ props = _objectWithoutProperties(allProps, _excluded);
112
+ var ariaLabel = allProps['aria-label'];
113
+ var ariaDescription = allProps['aria-description'];
112
114
  var _useI18nContext = useI18nContext(),
113
115
  contextLocale = _useI18nContext.locale;
114
116
  var _useZIndexContext = useZIndexContext(),
@@ -131,6 +133,11 @@ export function TextEditor(_ref2) {
131
133
  onChange(editor.getContent(), editor.isDirty());
132
134
  };
133
135
  var ref = React.useRef();
136
+ var editorRef = React.useRef(null);
137
+ var _React$useState = React.useState(false),
138
+ _React$useState2 = _slicedToArray(_React$useState, 2),
139
+ isEditorReady = _React$useState2[0],
140
+ setIsEditorReady = _React$useState2[1];
134
141
  var updateError = function updateError() {
135
142
  if (ref.current) {
136
143
  if (error) {
@@ -138,31 +145,79 @@ export function TextEditor(_ref2) {
138
145
  } else {
139
146
  ref.current.style.borderColor = '';
140
147
  }
148
+ ref.current.setAttribute('aria-invalid', error ? 'true' : 'false');
141
149
  }
142
150
  };
143
151
  React.useEffect(function () {
144
152
  updateError();
145
153
  }, [error]);
154
+
155
+ // Update aria-label when prop changes
156
+ React.useEffect(function () {
157
+ if (!isEditorReady || !editorRef.current) {
158
+ return;
159
+ }
160
+ var body = editorRef.current.getBody();
161
+ if (body) {
162
+ if (ariaLabel) {
163
+ body.setAttribute('aria-label', ariaLabel);
164
+ } else {
165
+ body.removeAttribute('aria-label');
166
+ }
167
+ }
168
+ }, [ariaLabel, isEditorReady]);
169
+
170
+ // Update aria-description when prop changes
171
+ React.useEffect(function () {
172
+ if (!isEditorReady || !editorRef.current) {
173
+ return;
174
+ }
175
+ var body = editorRef.current.getBody();
176
+ if (body) {
177
+ if (ariaDescription) {
178
+ body.setAttribute('aria-description', ariaDescription);
179
+ } else {
180
+ body.removeAttribute('aria-description');
181
+ }
182
+ }
183
+ }, [ariaDescription, isEditorReady]);
146
184
  useFocusScopePatch(plugins);
147
185
  var onInit = function onInit(event, editor) {
148
186
  ref.current = editor.editorContainer;
187
+ editorRef.current = editor;
188
+ setIsEditorReady(true);
149
189
  updateError();
190
+
191
+ // Set accessible label and description on the editable body element if provided
192
+ // This provides the accessible name/description for screen readers
193
+ var body = editor.getBody();
194
+ if (body) {
195
+ if (ariaLabel) {
196
+ body.setAttribute('aria-label', ariaLabel);
197
+ }
198
+ if (ariaDescription) {
199
+ body.setAttribute('aria-description', ariaDescription);
200
+ }
201
+ }
150
202
  _onInit && _onInit(event, editor);
151
203
  };
152
204
  var _useState = useState((_props$initialValue = props.initialValue) !== null && _props$initialValue !== void 0 ? _props$initialValue : props.value),
153
205
  _useState2 = _slicedToArray(_useState, 1),
154
206
  derivedInitial = _useState2[0];
207
+ var accessibilityConfig = ariaLabel ? {
208
+ iframe_aria_text: ariaLabel
209
+ } : {};
155
210
 
156
211
  // zIndex + 1 because on first render zIndex of Portal(Modal) is higher
157
212
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(GlobalStyle, {
158
213
  $zIndex: zIndex + 1
159
214
  }), /*#__PURE__*/React.createElement(Editor, _extends({
160
- init: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, tinyMCEConfig), {}, {
215
+ init: _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, tinyMCEConfig), {}, {
161
216
  external_plugins: generateExternalPlugins(plugins),
162
217
  language_url: generateLanguageUrl(locale || contextLocale),
163
218
  language: getValidLookupLocale(locale || contextLocale),
164
219
  content_style: "p { margin: 0; }"
165
- }, stickyToolbar), tabControls), initOverrides),
220
+ }, stickyToolbar), tabControls), accessibilityConfig), initOverrides),
166
221
  tinymceScriptSrc: "".concat(tinyMCESource, "/").concat(tinyMCEVersion, "/tinymce.min.js"),
167
222
  onInit: onInit,
168
223
  onEditorChange: onEditorChange