@procore/core-react 12.53.4 → 12.54.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.
- package/CHANGELOG.md +29 -0
- package/dist/AnchorNavigation/AnchorNavigation.styles.js +4 -4
- package/dist/Avatar/Avatar.styles.js +5 -5
- package/dist/AvatarStack/AvatarStack.js +2 -0
- package/dist/AvatarStack/AvatarStack.js.map +1 -1
- package/dist/AvatarStack/AvatarStack.styles.js +8 -8
- package/dist/Badge/Badge.styles.js +2 -2
- package/dist/BadgePill/BadgePill.styles.js +4 -4
- package/dist/Banner/Banner.d.ts +1 -0
- package/dist/Banner/Banner.js +31 -14
- package/dist/Banner/Banner.js.map +1 -1
- package/dist/Banner/Banner.styles.d.ts +10 -0
- package/dist/Banner/Banner.styles.js +29 -12
- package/dist/Banner/Banner.styles.js.map +1 -1
- package/dist/Banner/Banner.types.d.ts +1 -1
- package/dist/Banner/Banner.types.js.map +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/Banner/index.js.map +1 -1
- package/dist/Box/Box.styles.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.js +7 -6
- package/dist/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
- package/dist/Button/Button.styles.js +5 -5
- package/dist/Calendar/Calendar.styles.js +10 -10
- package/dist/Card/Card.styles.js +1 -1
- package/dist/Checkbox/Checkbox.styles.js +6 -6
- package/dist/ContactItem/ContactItem.styles.js +5 -5
- package/dist/Content/Content.styles.js +2 -2
- package/dist/DateInput/DateInput.styles.js +6 -6
- package/dist/DetailPage/DetailPage.styles.js +11 -9
- package/dist/DetailPage/DetailPage.styles.js.map +1 -1
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- package/dist/DropdownFlyout/DropdownFlyout.js +8 -0
- package/dist/DropdownFlyout/DropdownFlyout.js.map +1 -1
- package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
- package/dist/Dropzone/Dropzone.js +1 -1
- package/dist/Dropzone/Dropzone.styles.js +9 -9
- package/dist/EmptyState/EmptyState.styles.js +6 -6
- package/dist/Field/Field.styles.js +3 -3
- package/dist/FileList/FileList.styles.js +3 -3
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +17 -14
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.js.map +1 -1
- package/dist/FileSelect/FileExplorer/FileExplorerModal.js +4 -2
- package/dist/FileSelect/FileExplorer/FileExplorerModal.js.map +1 -1
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +5 -4
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js.map +1 -1
- package/dist/FileSelect/FileSelect.styles.js +2 -2
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
- package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
- package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
- package/dist/FileSelect/LocalSource/LocalSource.styles.js +6 -5
- package/dist/FileSelect/LocalSource/LocalSource.styles.js.map +1 -1
- package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +13 -11
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js.map +1 -1
- package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
- package/dist/FileToken/FileToken.styles.js +6 -6
- package/dist/FilterToken/FilterToken.styles.js +5 -5
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.styles.js +13 -13
- package/dist/Form/StyledFormikForm.styles.js +2 -2
- package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
- package/dist/Grid/Grid.styles.js +2 -2
- package/dist/GroupSelect/GroupSelect.styles.js +1 -1
- package/dist/Input/Input.styles.js +1 -1
- package/dist/Link/Link.styles.js +1 -1
- package/dist/ListPage/ListPage.styles.js +12 -11
- package/dist/ListPage/ListPage.styles.js.map +1 -1
- package/dist/Loader/Loader.styles.js +2 -2
- package/dist/MenuImperative/MenuImperative.styles.js +11 -11
- package/dist/Modal/Modal.js +0 -2
- package/dist/Modal/Modal.js.map +1 -1
- package/dist/Modal/Modal.styles.js +44 -32
- package/dist/Modal/Modal.styles.js.map +1 -1
- package/dist/MultiSelect/MultiSelect.styles.js +8 -8
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- package/dist/NextTile/NextTile.styles.js +5 -5
- package/dist/Notation/Notation.js +1 -1
- package/dist/NumberInput/NumberInput.styles.js +7 -7
- package/dist/Overlay/OverlayArrow.styles.js +1 -1
- package/dist/OverlayTrigger/OverlayTrigger.js +12 -3
- package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
- package/dist/OverlayTrigger/OverlayTrigger.types.d.ts +14 -0
- package/dist/OverlayTrigger/OverlayTrigger.types.js.map +1 -1
- package/dist/OverlayTrigger/a11yPresets.d.ts +19 -3
- package/dist/OverlayTrigger/a11yPresets.js +16 -6
- package/dist/OverlayTrigger/a11yPresets.js.map +1 -1
- package/dist/PageLayout/PageLayout.js +15 -4
- package/dist/PageLayout/PageLayout.js.map +1 -1
- package/dist/PageLayout/PageLayout.styles.js +35 -34
- package/dist/PageLayout/PageLayout.styles.js.map +1 -1
- package/dist/PageLayout/PageLayout.types.d.ts +1 -0
- package/dist/PageLayout/PageLayout.types.js.map +1 -1
- package/dist/PageLayout/PageLayout.utils.d.ts +11 -0
- package/dist/PageLayout/PageLayout.utils.js +45 -0
- package/dist/PageLayout/PageLayout.utils.js.map +1 -1
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.js +2 -2
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.js.map +1 -1
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.d.ts +5 -0
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +9 -2
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js.map +1 -1
- package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
- package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
- package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Panel/Panel.styles.js +17 -16
- package/dist/Panel/Panel.styles.js.map +1 -1
- package/dist/Pill/Pill.styles.js +3 -3
- package/dist/PillSelect/PillSelect.styles.js +5 -5
- package/dist/Popover/Popover.js +6 -1
- package/dist/Popover/Popover.js.map +1 -1
- package/dist/Popover/Popover.styles.js +2 -2
- package/dist/Portal/Portal.styles.js +1 -1
- package/dist/ProgressBar/ProgressBar.styles.js +2 -2
- package/dist/RadioButton/RadioButton.styles.js +3 -3
- package/dist/Required/Required.styles.js +3 -3
- package/dist/Search/Search.styles.js +5 -5
- package/dist/Section/Section.styles.js +7 -7
- package/dist/SegmentedController/SegmentedController.styles.js +4 -4
- package/dist/Select/Select.js +5 -2
- package/dist/Select/Select.js.map +1 -1
- package/dist/Select/Select.styles.js +8 -8
- package/dist/Semantic/Semantic.styles.js +9 -9
- package/dist/Slider/Slider.styles.js +5 -5
- package/dist/Spinner/Spinner.styles.js +7 -7
- package/dist/SplitViewCard/SplitViewCard.styles.js +15 -13
- package/dist/SplitViewCard/SplitViewCard.styles.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.js +8 -0
- package/dist/SuperSelect/SuperSelect.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +40 -40
- package/dist/SuperSelect/useSuperSelect.js +20 -4
- package/dist/SuperSelect/useSuperSelect.js.map +1 -1
- package/dist/Switch/Switch.styles.js +4 -4
- package/dist/Table/Table.js +63 -2
- package/dist/Table/Table.js.map +1 -1
- package/dist/Table/Table.styles.js +31 -30
- package/dist/Table/Table.styles.js.map +1 -1
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tabs.js +11 -3
- package/dist/Tabs/Tabs.js.map +1 -1
- package/dist/Tabs/Tabs.styles.js +16 -16
- package/dist/Tearsheet/Tearsheet.js +4 -3
- package/dist/Tearsheet/Tearsheet.js.map +1 -1
- package/dist/Tearsheet/Tearsheet.styles.js +5 -5
- package/dist/TextArea/TextArea.styles.js +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
- package/dist/Thumbnail/Thumbnail.styles.d.ts +1 -0
- package/dist/Thumbnail/Thumbnail.styles.js +22 -22
- package/dist/Thumbnail/Thumbnail.styles.js.map +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
- package/dist/TieredSelect/TieredSelect.styles.js +9 -9
- package/dist/Tile/Tile.styles.js +8 -8
- package/dist/Title/Title.styles.js +11 -9
- package/dist/Title/Title.styles.js.map +1 -1
- package/dist/Toast/Toast.styles.js +3 -3
- package/dist/ToggleButton/ToggleButton.styles.js +1 -1
- package/dist/Token/Token.styles.js +5 -5
- package/dist/ToolHeader/ToolHeader.styles.js +15 -10
- package/dist/ToolHeader/ToolHeader.styles.js.map +1 -1
- package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
- package/dist/Tooltip/Tooltip.js +7 -1
- package/dist/Tooltip/Tooltip.js.map +1 -1
- package/dist/Tooltip/Tooltip.styles.js +3 -3
- package/dist/Tree/Tree.js +1 -1
- package/dist/Tree/Tree.styles.js +10 -10
- package/dist/Typeahead/Typeahead.styles.js +4 -4
- package/dist/Typography/Typography.styles.js +1 -1
- package/dist/Typography/Typography.table.story.js +2 -2
- package/dist/_hooks/I18n.d.ts +33 -13
- package/dist/_hooks/I18n.js +2 -0
- package/dist/_hooks/I18n.js.map +1 -1
- package/dist/_locales/de-DE.json +1 -0
- package/dist/_locales/en-AU.json +1 -0
- package/dist/_locales/en-CA.json +1 -0
- package/dist/_locales/en-GB.json +1 -0
- package/dist/_locales/en.json +3 -1
- package/dist/_locales/es-ES.json +1 -0
- package/dist/_locales/es.json +1 -0
- package/dist/_locales/fr-CA.json +1 -0
- package/dist/_locales/fr-FR.json +1 -0
- package/dist/_locales/is-IS.json +1 -0
- package/dist/_locales/it-IT.json +1 -0
- package/dist/_locales/ja-JP.json +1 -0
- package/dist/_locales/nb-NO.json +2 -1
- package/dist/_locales/pl-PL.json +1 -0
- package/dist/_locales/pseudo.json +3 -1
- package/dist/_locales/pt-BR.json +1 -0
- package/dist/_locales/pt-PT.json +3 -2
- package/dist/_locales/th-TH.json +1 -0
- package/dist/_locales/zh-SG.json +1 -0
- package/dist/_locales/zh-TW.json +2 -1
- package/dist/_storyHelpers_/components/Deprecation.styles.js +1 -1
- package/dist/_storyHelpers_/components/StoryGrid.js +5 -4
- package/dist/_storyHelpers_/components/StoryGrid.js.map +1 -1
- package/dist/_storyHelpers_/highZoom.d.ts +68 -0
- package/dist/_storyHelpers_/highZoom.js +72 -0
- package/dist/_storyHelpers_/highZoom.js.map +1 -0
- package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +7 -7
- package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +25 -25
- package/dist/_typedoc/Badge/Badge.types.json +6 -6
- package/dist/_typedoc/Banner/Banner.types.json +18 -18
- package/dist/_typedoc/Box/Box.types.json +68 -68
- package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +12 -12
- package/dist/_typedoc/Button/Button.types.json +14 -14
- package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
- package/dist/_typedoc/Card/Card.types.json +6 -6
- package/dist/_typedoc/Checkbox/Checkbox.types.json +8 -8
- package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
- package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
- package/dist/_typedoc/DateSelect/DateSelect.types.json +17 -17
- package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
- package/dist/_typedoc/DetailPageTemplate/DetailPageTemplate.types.json +3 -3
- package/dist/_typedoc/Dropdown/Dropdown.types.json +38 -38
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +37 -37
- package/dist/_typedoc/Dropzone/Dropzone.types.json +50 -50
- package/dist/_typedoc/EmptyState/EmptyState.types.json +18 -18
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
- package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
- package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
- package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +17 -17
- package/dist/_typedoc/Flex/Flex.types.json +27 -27
- package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
- package/dist/_typedoc/Form/Form.types.json +783 -783
- package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
- package/dist/_typedoc/Grid/Grid.types.json +8 -8
- package/dist/_typedoc/GroupSelect/GroupSelect.types.json +81 -81
- package/dist/_typedoc/Input/Input.types.json +2 -2
- package/dist/_typedoc/Link/Link.types.json +1 -1
- package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
- package/dist/_typedoc/Menu/Menu.types.json +62 -62
- package/dist/_typedoc/MenuImperative/MenuImperative.types.json +90 -90
- package/dist/_typedoc/Modal/Modal.types.json +48 -48
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +34 -34
- package/dist/_typedoc/NextTile/NextTile.types.json +33 -33
- package/dist/_typedoc/Notation/Notation.types.json +4 -4
- package/dist/_typedoc/NumberInput/NumberInput.types.json +52 -52
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +44 -33
- package/dist/_typedoc/PageLayout/PageLayout.types.json +42 -42
- package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
- package/dist/_typedoc/Panel/Panel.types.json +28 -28
- package/dist/_typedoc/Pill/Pill.types.json +2 -2
- package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
- package/dist/_typedoc/Popover/Popover.types.json +15 -15
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
- package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
- package/dist/_typedoc/Required/Required.types.json +5 -5
- package/dist/_typedoc/Search/Search.types.json +18 -18
- package/dist/_typedoc/Section/Section.types.json +15 -15
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
- package/dist/_typedoc/Select/Select.types.json +67 -67
- package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
- package/dist/_typedoc/SettingsPageTemplate/SettingsPageTemplate.types.json +3 -3
- package/dist/_typedoc/Slider/Slider.types.json +6 -6
- package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
- package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +14 -14
- package/dist/_typedoc/Table/Table.types.json +108 -108
- package/dist/_typedoc/Tabs/Tablist.types.json +10 -10
- package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
- package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
- package/dist/_typedoc/TextEditor/TextEditor.types.json +11 -11
- package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
- package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
- package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +43 -43
- package/dist/_typedoc/TieredSelect/TieredSelect.types.json +29 -29
- package/dist/_typedoc/Tile/Tile.types.json +8 -8
- package/dist/_typedoc/Title/Title.types.json +1 -1
- package/dist/_typedoc/Toast/Toast.types.json +4 -4
- package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
- package/dist/_typedoc/Token/Token.types.json +7 -7
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
- package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +8 -8
- package/dist/_typedoc/ToolLandingPageTemplate/ToolLandingPageTemplate.types.json +2 -2
- package/dist/_typedoc/Tooltip/Tooltip.types.json +15 -15
- package/dist/_typedoc/Tree/Tree.types.json +132 -132
- package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
- package/dist/_typedoc/Typography/Typography.types.json +9 -9
- package/dist/_typedoc/_utils/types.json +3 -3
- package/dist/_typedoc/a11y-tips.json +1 -1
- package/package.json +2 -2
- package/dist/_hooks/ScrollLock.d.ts +0 -1
- package/dist/_hooks/ScrollLock.js +0 -31
- package/dist/_hooks/ScrollLock.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.styles.js","names":["ArrowUp","ChevronRight","Error","styled","css","Button","Card","Checkbox","StyledDateInputDelimiter","StyledDateInputIconContainer","StyledDateInputSegment","DateSelect","Input","Select","StyledSelectArrow","StyledSelectButtonLabel","StyledSelectButtonWrapper","StyledSelectClearIcon","TextArea","getTypographyIntent","typographyWeights","colors","getFocus","getGapOutlineFocus","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","span","StyledTableHeaderCellIconWrapper","sm","StyledTableHeaderCellSortIcon","StyledTableHeaderCellSortButton","button","StyledCheckbox","StyledTableBodyCell","td","_ref","$snugfit","StyledTableHeaderCell","th","_ref2","$sortable","_ref3","$sortOrder","_ref4","_ref5","StyledHead","thead","StyledCaratWrapper","StyledCarat","_ref6","$expanded","cellInputCSS","blue40","StyledTableCellSelect","_ref7","$hasClearIcon","_ref8","_ref8$$placeholder","$placeholder","_ref9","_ref0","_ref0$$placeholder","_ref1","loading","StyledTableCellInput","StyledTableCellDateInput","_ref10","error","StyledTableCellTextArea","xxl","xs","_ref11","$resizable","StyledTableCellText","_ref12","$percent","$currency","StyledIconCell","StyledOverdueIcon","_ref13","$rightAligned","StyledSelectCellWrapper","StyledTableInlineEditErrorBox","_ref14","$size","sizes","block","StyledTableInlineEditContainer","_ref15","$error","_ref16","StyledTableBodyRow","tr","_ref17","$overdue","StyledTableGroupRowContent","StyledTableGroupRowHeader","StyledTableGroupRowTitle","StyledTableGroupRow","_ref18","$depth","StyledTableWrapper","_ref19","$withShelf","BodyRow","GroupRow","StyledTable","table","_ref20","$fixed","_ref21","$inline","StyledLoadingContainer"],"sources":["../../src/Table/Table.styles.ts"],"sourcesContent":["import { ArrowUp, ChevronRight, Error } 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 StyledSelectButtonWrapper,\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, getGapOutlineFocus } 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.span`\n display: inline-block;\n flex: 1 1 auto;\n position: relative;\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 StyledTableHeaderCellSortIcon = styled(ArrowUp)`\n height: 16px;\n width: 16px;\n`\n\nexport const StyledTableHeaderCellSortButton = styled.button`\n background: transparent;\n border: none;\n color: inherit;\n display: flex;\n align-items: center;\n font: inherit;\n margin: 0;\n min-height: ${tableHeaderHeight}px;\n padding: ${spacing.lg}px;\n text-align: left;\n width: 100%;\n\n &:focus-visible {\n ${getGapOutlineFocus('inside')}\n outline-offset: -1px;\n }\n\n ${StyledTableHeaderCellLabel} {\n min-height: 14px;\n }\n\n ${StyledTableHeaderCellSortIcon} {\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\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 ${({ $sortable }) =>\n $sortable &&\n css`\n padding: 0;\n\n &:hover {\n background-color: ${tableHeaderBgColorHover};\n }\n `}\n\n ${({ $sortOrder }) =>\n ($sortOrder === 'asc' || $sortOrder === 'desc') &&\n css`\n background-color: ${tableHeaderBgColorActive};\n color: ${tableHeaderFontColorActive};\n\n ${StyledTableHeaderCellSortButton} ${StyledTableHeaderCellSortIcon} {\n color: ${tableSortFontColorActive};\n opacity: 1;\n }\n `}\n\n ${({ $sortOrder }) =>\n $sortOrder === 'desc' &&\n css`\n ${StyledTableHeaderCellSortButton} ${StyledTableHeaderCellSortIcon} {\n transform: scaleY(-1);\n }\n `}\n\n ${({ $snugfit }) =>\n $snugfit &&\n css`\n width: 0.1%;\n `}\n`\n\nexport const StyledHead = styled.thead`\n background-color: ${tableHeaderBgColor};\n transition: background-color 0.2s ease-in-out;\n ${tableRowBorderBottom}\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 ${StyledSelectButtonWrapper}:focus-within & {\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 ${({ $hasClearIcon }) =>\n $hasClearIcon &&\n css`\n & + ${StyledSelectClearIcon}:focus {\n opacity: 1;\n pointer-events: all;\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 StyledOverdueIcon = styled(Error)<{ $rightAligned?: boolean }>`\n color: ${colors.red50};\n flex-shrink: 0;\n align-self: center;\n\n ${({ $rightAligned }) =>\n $rightAligned\n ? css`\n margin-right: ${spacing.sm}px;\n `\n : css`\n margin-left: ${spacing.sm}px;\n `}\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,OAAO,EAAEC,YAAY,EAAEC,KAAK,QAAQ,qBAAqB;AAClE,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,yBAAyB,EACzBC,qBAAqB,QAChB,yBAAyB;AAChC,SAASC,QAAQ,QAAQ,aAAa;AACtC,SACEC,mBAAmB,EACnBC,iBAAiB,QACZ,iCAAiC;AACxC,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,QAAQ,EAAEC,kBAAkB,QAAQ,mBAAmB;AAChE,SAASC,OAAO,QAAQ,oBAAoB;AAG5C,IAAMC,YAAY,GAAGJ,MAAM,CAACK,KAAK;AACjC,IAAMC,iBAAiB,GAAG,CAAC;AAC3B,IAAMC,gBAAgB,GAAG,OAAO;AAChC,IAAMC,gBAAgB,GAAG,CAAC;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led","css","Button","Card","Checkbox","StyledDateInputDelimiter","StyledDateInputIconContainer","StyledDateInputSegment","DateSelect","Input","mediaBreakpointsDown","Select","StyledSelectArrow","StyledSelectButtonLabel","StyledSelectButtonWrapper","StyledSelectClearIcon","TextArea","getTypographyIntent","typographyWeights","colors","getFocus","getGapOutlineFocus","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","span","StyledTableHeaderCellIconWrapper","sm","StyledTableHeaderCellSortIcon","StyledTableHeaderCellSortButton","button","StyledCheckbox","StyledTableBodyCell","td","_ref","$snugfit","StyledTableHeaderCell","th","_ref2","$sortable","_ref3","$sortOrder","_ref4","_ref5","StyledHead","thead","StyledCaratWrapper","StyledCarat","_ref6","$expanded","cellInputCSS","blue40","StyledTableCellSelect","_ref7","$hasClearIcon","_ref8","_ref8$$placeholder","$placeholder","_ref9","_ref0","_ref0$$placeholder","_ref1","loading","StyledTableCellInput","StyledTableCellDateInput","_ref10","error","StyledTableCellTextArea","xxl","xs","_ref11","$resizable","StyledTableCellText","_ref12","$percent","$currency","StyledIconCell","StyledOverdueIcon","_ref13","$rightAligned","StyledSelectCellWrapper","StyledTableInlineEditErrorBox","_ref14","$size","sizes","block","StyledTableInlineEditContainer","_ref15","$error","_ref16","StyledTableBodyRow","tr","_ref17","$overdue","StyledTableGroupRowContent","StyledTableGroupRowHeader","StyledTableGroupRowTitle","StyledTableGroupRow","_ref18","$depth","StyledTableWrapper","tabletMd","_ref19","$withShelf","BodyRow","GroupRow","StyledTable","table","_ref20","$fixed","_ref21","$inline","StyledLoadingContainer"],"sources":["../../src/Table/Table.styles.ts"],"sourcesContent":["import { ArrowUp, ChevronRight, Error } 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 { mediaBreakpointsDown } from '../PageLayout/PageLayout.utils'\nimport { Select } from '../Select'\nimport {\n StyledSelectArrow,\n StyledSelectButtonLabel,\n StyledSelectButtonWrapper,\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, getGapOutlineFocus } 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.span`\n display: inline-block;\n flex: 1 1 auto;\n position: relative;\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 StyledTableHeaderCellSortIcon = styled(ArrowUp)`\n height: 16px;\n width: 16px;\n`\n\nexport const StyledTableHeaderCellSortButton = styled.button`\n background: transparent;\n border: none;\n color: inherit;\n display: flex;\n align-items: center;\n font: inherit;\n margin: 0;\n min-height: ${tableHeaderHeight}px;\n padding: ${spacing.lg}px;\n text-align: left;\n width: 100%;\n\n &:focus-visible {\n ${getGapOutlineFocus('inside')}\n outline-offset: -1px;\n }\n\n ${StyledTableHeaderCellLabel} {\n min-height: 14px;\n }\n\n ${StyledTableHeaderCellSortIcon} {\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\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 ${({ $sortable }) =>\n $sortable &&\n css`\n padding: 0;\n\n &:hover {\n background-color: ${tableHeaderBgColorHover};\n }\n `}\n\n ${({ $sortOrder }) =>\n ($sortOrder === 'asc' || $sortOrder === 'desc') &&\n css`\n background-color: ${tableHeaderBgColorActive};\n color: ${tableHeaderFontColorActive};\n\n ${StyledTableHeaderCellSortButton} ${StyledTableHeaderCellSortIcon} {\n color: ${tableSortFontColorActive};\n opacity: 1;\n }\n `}\n\n ${({ $sortOrder }) =>\n $sortOrder === 'desc' &&\n css`\n ${StyledTableHeaderCellSortButton} ${StyledTableHeaderCellSortIcon} {\n transform: scaleY(-1);\n }\n `}\n\n ${({ $snugfit }) =>\n $snugfit &&\n css`\n width: 0.1%;\n `}\n`\n\nexport const StyledHead = styled.thead`\n background-color: ${tableHeaderBgColor};\n transition: background-color 0.2s ease-in-out;\n ${tableRowBorderBottom}\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 ${StyledSelectButtonWrapper}:focus-within & {\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 ${({ $hasClearIcon }) =>\n $hasClearIcon &&\n css`\n & + ${StyledSelectClearIcon}:focus {\n opacity: 1;\n pointer-events: all;\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 StyledOverdueIcon = styled(Error)<{ $rightAligned?: boolean }>`\n color: ${colors.red50};\n flex-shrink: 0;\n align-self: center;\n\n ${({ $rightAligned }) =>\n $rightAligned\n ? css`\n margin-right: ${spacing.sm}px;\n `\n : css`\n margin-left: ${spacing.sm}px;\n `}\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 // High zoom: scroll the table, not the page\n @media ${mediaBreakpointsDown.tabletMd} {\n overflow-x: auto;\n }\n\n // Focusable while it scrolls\n &[tabindex]:focus-visible {\n ${getFocus()}\n }\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,OAAO,EAAEC,YAAY,EAAEC,KAAK,QAAQ,qBAAqB;AAClE,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,oBAAoB,QAAQ,gCAAgC;AACrE,SAASC,MAAM,QAAQ,WAAW;AAClC,SACEC,iBAAiB,EACjBC,uBAAuB,EACvBC,yBAAyB,EACzBC,qBAAqB,QAChB,yBAAyB;AAChC,SAASC,QAAQ,QAAQ,aAAa;AACtC,SACEC,mBAAmB,EACnBC,iBAAiB,QACZ,iCAAiC;AACxC,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,QAAQ,EAAEC,kBAAkB,QAAQ,mBAAmB;AAChE,SAASC,OAAO,QAAQ,oBAAoB;AAG5C,IAAMC,YAAY,GAAGJ,MAAM,CAACK,KAAK;AACjC,IAAMC,iBAAiB,GAAG,CAAC;AAC3B,IAAMC,gBAAgB,GAAG,OAAO;AAChC,IAAMC,gBAAgB,GAAG,CAAC;AAC1B,IAAMC,gBAAgB,GAAGT,MAAM,CAACU,MAAM;AACtC,IAAMC,WAAW,MAAAC,MAAA,CAAMJ,gBAAgB,SAAAI,MAA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|
|
5
5
|
export var StyledShelf = /*#__PURE__*/styled.div.withConfig({
|
|
6
6
|
displayName: "StyledShelf",
|
|
7
|
-
componentId: "core-
|
|
7
|
+
componentId: "core-12_54_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-
|
|
11
|
+
componentId: "core-12_54_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-
|
|
15
|
+
componentId: "core-12_54_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-
|
|
19
|
+
componentId: "core-12_54_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-
|
|
23
|
+
componentId: "core-12_54_0__sc-a6498a-4"
|
|
24
24
|
})(["padding:", "px;line-height:13px;"], spacing.lg);
|
|
25
25
|
//# sourceMappingURL=TableShelf.styles.js.map
|
package/dist/Tabs/Tabs.js
CHANGED
|
@@ -243,13 +243,20 @@ var Tabs_ = /*#__PURE__*/React.forwardRef(function Tabs(_ref5, ref) {
|
|
|
243
243
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
244
244
|
tabElements = _React$useState4[0],
|
|
245
245
|
setTabElements = _React$useState4[1];
|
|
246
|
-
|
|
246
|
+
// No reflow
|
|
247
|
+
var _React$useState5 = React.useState(-1),
|
|
247
248
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
248
249
|
cutoffIndex = _React$useState6[0],
|
|
249
250
|
setCutoffIndex = _React$useState6[1];
|
|
250
251
|
var containerRef = React.useRef(null);
|
|
251
252
|
function recalculate() {
|
|
252
253
|
var container = getBoundingRect(containerRef.current);
|
|
254
|
+
|
|
255
|
+
// Hidden container: nothing to measure
|
|
256
|
+
if (container.width === 0) {
|
|
257
|
+
setCutoffIndex(-1);
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
253
260
|
var _tabElements$reduce = tabElements.reduce(function (acc, el) {
|
|
254
261
|
if (!el) {
|
|
255
262
|
return acc;
|
|
@@ -277,7 +284,8 @@ var Tabs_ = /*#__PURE__*/React.forwardRef(function Tabs(_ref5, ref) {
|
|
|
277
284
|
var filtered = React.Children.toArray(children).filter(function (child) {
|
|
278
285
|
return child;
|
|
279
286
|
});
|
|
280
|
-
|
|
287
|
+
// The tab before the first overflowing one moves too, to make room for More
|
|
288
|
+
var overflowing = cutoffIndex >= 0 ? filtered.slice(Math.max(cutoffIndex - 1, 0)) : [];
|
|
281
289
|
var isOverflowingSelected = React.Children.toArray(overflowing).some(function (child) {
|
|
282
290
|
return /*#__PURE__*/React.isValidElement(child) && (child.props.active || child.props.selected);
|
|
283
291
|
});
|
|
@@ -289,7 +297,7 @@ var Tabs_ = /*#__PURE__*/React.forwardRef(function Tabs(_ref5, ref) {
|
|
|
289
297
|
moveRovingFocusWithinTablist(event);
|
|
290
298
|
}
|
|
291
299
|
} : {};
|
|
292
|
-
var moreDropdownTrigger = cutoffIndex >=
|
|
300
|
+
var moreDropdownTrigger = cutoffIndex >= 0 ? /*#__PURE__*/React.createElement(OverlayTrigger, {
|
|
293
301
|
"aria-label": i18n.t('core.tabs.more'),
|
|
294
302
|
beforeShow: function beforeShow() {
|
|
295
303
|
return setMoreMenuIsShown(true);
|
package/dist/Tabs/Tabs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.js","names":["CaretDown","CaretUp","React","useButton","MenuImperative","OverlayTrigger","useOverlayTriggerContext","useI18nContext","useResize","spacing","addSubcomponents","getBoundingRect","mergeRefs","getStyledComponents","StyledOverlay","StyledTabList","StyledTabs","ExtraTabSpacing","xxl","HelixHeaderExtraTabSpacing","sm","noop","ROVING_TAB_KEYS","moveRovingFocusWithinTablist","event","key","includes","preventDefault","current","currentTarget","tablist","closest","tabs","Array","from","querySelectorAll","filter","tab","hasAttribute","styles","window","getComputedStyle","isHidden","visibility","pointerEvents","length","currentIndex","indexOf","nextIndex","nextTab","tabIndex","focus","Link","forwardRef","_ref","ref","children","_ref$UNSAFE_helixHead","UNSAFE_helixHeader","props","_objectWithoutProperties","_excluded","Styled","createElement","_extends","TabInternal","_ref2","as","disabled","role","_ref2$active","active","_ref2$selected","selected","onBlur","onFocus","_ref2$onMount","onMount","_ref2$onUnmount","onUnmount","_ref2$overflowing","overflowing","_ref2$dropdown","dropdown","_ref2$variant","variant","_ref2$UNSAFE_helixHea","_excluded2","_ref3","onPress","onClick","value","buttonPropsBase","_excluded3","elementType","_useButton","_objectSpread","isDisabled","type","buttonProps","shouldDefaultToButton","onTablistTabKeyDown","defaultPrevented","click","a11yProps","$clickable","id","onKeyDown","href","innerRef","useRef","useEffect","validChild","isValidElement","tabSelected","roleSpecificProps","Tab","$selected","$dark","dark","TabInner","cloneElement","undefined","MoreMenu","_ref4","ctx","menuRef","_menuRef$current","_menuRef$current2","_menuRef$current3","el","highlightFirst","highlightSelected","onSelect","selection","hide","onChangeActiveDescendant","Options","Children","map","child","i","Item","item","Tabs_","Tabs","_ref5","className","_ref5$dark","qa","_ref5$UNSAFE_helixHea","_excluded4","i18n","_React$useState","useState","_React$useState2","_slicedToArray","moreMenuIsShown","setMoreMenuIsShown","_React$useState3","_React$useState4","tabElements","setTabElements","_React$useState5","_React$useState6","cutoffIndex","setCutoffIndex","containerRef","recalculate","container","_tabElements$reduce","reduce","acc","rect","extraSpace","subtotals","concat","_toConsumableArray","total","width","index","findIndex","val","onResize","filtered","toArray","slice","isOverflowingSelected","some","moreButtonProps","onMoreKeyDown","moreDropdownTrigger","t","beforeShow","afterHide","trigger","placement","overlay","DropdownTab","DropdownTabInner","more","size","$index","$helix","elements","oldElements","MoreLi","displayName"],"sources":["../../src/Tabs/Tabs.tsx"],"sourcesContent":["import { CaretDown, CaretUp } from '@procore/core-icons/dist'\nimport React from 'react'\n\nimport { useButton } from '@react-aria/button'\nimport { MenuImperative } from '../MenuImperative/MenuImperative'\nimport type { MenuRef, Selection } from '../MenuImperative/MenuImperative.types'\nimport {\n OverlayTrigger,\n useOverlayTriggerContext,\n} from '../OverlayTrigger/OverlayTrigger'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { useResize } from '../_hooks/Resize'\nimport { spacing } from '../_styles/spacing'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { getBoundingRect } from '../_utils/dom'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport {\n getStyledComponents,\n StyledOverlay,\n StyledTabList,\n StyledTabs,\n} from './Tabs.styles'\nimport type {\n BaseTabProps,\n TabDropdownProps,\n TabProps,\n TabRef,\n TabRole,\n TabRoleType,\n TabsProps,\n} from './Tabs.types'\n\nconst ExtraTabSpacing = spacing.xxl\nconst HelixHeaderExtraTabSpacing = spacing.sm\n\nfunction noop() {}\nconst ROVING_TAB_KEYS = ['ArrowRight', 'ArrowLeft', 'Home', 'End'] as const\n\nfunction moveRovingFocusWithinTablist(event: React.KeyboardEvent<HTMLElement>) {\n const key = event.key\n if (!ROVING_TAB_KEYS.includes(key as (typeof ROVING_TAB_KEYS)[number]))\n return false\n\n event.preventDefault()\n const current = event.currentTarget\n const tablist = current.closest('[role=\"tablist\"]')\n if (!tablist) return\n\n const tabs = Array.from(\n tablist.querySelectorAll<HTMLElement>('[role=\"tab\"], button')\n ).filter((tab) => {\n if (tab.hasAttribute('disabled')) return false\n\n const styles = window.getComputedStyle(tab)\n const isHidden =\n styles.visibility === 'hidden' || styles.pointerEvents === 'none'\n\n return !isHidden\n })\n if (!tabs.length) return\n\n const currentIndex = tabs.indexOf(current)\n if (currentIndex < 0) return\n\n let nextIndex = currentIndex\n if (key === 'ArrowRight') nextIndex = (currentIndex + 1) % tabs.length\n if (key === 'ArrowLeft')\n nextIndex = (currentIndex - 1 + tabs.length) % tabs.length\n if (key === 'Home') nextIndex = 0\n if (key === 'End') nextIndex = tabs.length - 1\n\n const nextTab = tabs[nextIndex]\n current.tabIndex = -1\n nextTab.tabIndex = 0\n nextTab.focus()\n}\n\nexport const Link = React.forwardRef<\n HTMLSpanElement,\n React.HTMLAttributes<HTMLSpanElement> & {\n /** @deprecated @experimental Alternative style variant. To be used on Helix Header ONLY */\n UNSAFE_helixHeader?: boolean\n }\n>(function Link({ children, UNSAFE_helixHeader = false, ...props }, ref) {\n const Styled = getStyledComponents(UNSAFE_helixHeader)\n\n return (\n <Styled.Link ref={ref} {...props}>\n {children}\n </Styled.Link>\n )\n})\n\nfunction TabInternal(\n {\n as,\n disabled,\n role,\n active = false,\n selected = false,\n children,\n onBlur,\n onFocus,\n onMount = noop,\n onUnmount = noop,\n overflowing = false,\n dropdown = false,\n variant = '',\n UNSAFE_helixHeader = false,\n ...props\n }: TabProps<TabRoleType>,\n ref: TabRef<TabRoleType>\n) {\n const { onPress, onClick, value, ...buttonPropsBase } =\n props as TabProps<'button'>\n\n const elementType =\n role === 'link' ? 'a' : role === 'button' ? 'button' : 'div'\n\n const { buttonProps } = useButton(\n {\n ...buttonPropsBase,\n onBlur: onBlur as (e: React.FocusEvent) => void,\n onFocus: onFocus as (e: React.FocusEvent) => void,\n elementType,\n isDisabled: disabled,\n // @ts-expect-error Type 'PressEvent' is missing properties from type 'MouseEvent<HTMLButtonElement, MouseEvent>', the expected type comes from property 'onPress' which is declared here on type 'AriaButtonOptions<ElementType>'\n onPress: onPress || onClick,\n type: 'button',\n },\n ref as unknown as React.RefObject<HTMLElement>\n )\n\n // See if we should make the component a button if event handlers are given.\n // The no role check addition allows overrides / opt-out, for like\n // role = presentation or role = link having click handlers for some reason.\n const shouldDefaultToButton = (!role && onPress) || (!role && onClick)\n\n function onTablistTabKeyDown(event: React.KeyboardEvent<HTMLElement>) {\n // props.onKeyDown?.(event)\n if (event.defaultPrevented) return\n\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault()\n ;(event.currentTarget as HTMLElement).click()\n return\n }\n\n moveRovingFocusWithinTablist(event as React.KeyboardEvent<HTMLElement>)\n }\n\n const a11yProps =\n role === 'button' || shouldDefaultToButton\n ? {\n ...buttonProps,\n role: 'button',\n 'aria-current': selected || active,\n as: as || 'button',\n $clickable: !disabled,\n }\n : role === 'link'\n ? {\n ...buttonProps,\n role: 'link',\n 'aria-current': selected || active,\n as: as || 'a',\n $clickable: !disabled,\n }\n : role === 'tab'\n ? {\n role: 'tab',\n id: props.id,\n 'aria-controls': props['aria-controls'],\n 'aria-selected': selected || active ? true : false,\n tabIndex: selected || active ? 0 : -1,\n onBlur,\n onFocus,\n onClick: onClick || onPress,\n onKeyDown: onTablistTabKeyDown,\n as: as ? as : (props as TabProps<'link'>).href ? 'a' : 'button',\n }\n : { as, role, onBlur, onFocus }\n\n const innerRef = React.useRef<HTMLDivElement>(null)\n\n React.useEffect(() => {\n onMount(innerRef.current)\n return onUnmount\n }, [])\n\n const validChild = React.isValidElement(children)\n const tabSelected = active || variant === 'active' || selected\n\n const Styled = getStyledComponents(UNSAFE_helixHeader)\n\n // For button/link roles, spread buttonPropsBase to preserve useButton's onClick\n // For other roles, spread all props\n const roleSpecificProps =\n role === 'button' || role === 'link' || shouldDefaultToButton\n ? (buttonPropsBase as Omit<\n TabProps<'button'>,\n 'onPress' | 'onClick' | 'value'\n >)\n : role === 'tab'\n ? (props as TabProps<'tab'>)\n : (props as TabProps<TabRoleType>)\n\n return (\n <Styled.Tab\n $selected={tabSelected}\n $dark={props.dark}\n ref={\n mergeRefs(\n (ref || null) as unknown as React.Ref<HTMLDivElement>,\n innerRef\n ) as unknown as React.RefCallback<HTMLDivElement>\n }\n {...(a11yProps as Record<string, unknown>)}\n {...(roleSpecificProps as Record<string, unknown>)}\n >\n <Styled.TabInner $selected={tabSelected} $dark={props.dark}>\n {validChild\n ? React.cloneElement(\n children as React.ReactElement<\n Record<string, unknown>,\n string | React.JSXElementConstructor<unknown>\n >,\n {\n 'aria-current': tabSelected ? true : undefined,\n }\n )\n : children}\n </Styled.TabInner>\n </Styled.Tab>\n )\n}\n\nexport const Tab = React.forwardRef(TabInternal) as <Role extends TabRole>(\n props:\n | TabProps<Role>\n | (BaseTabProps & { ref?: React.ComponentPropsWithRef<'div'>['ref'] })\n) => ReturnType<typeof TabInternal>\n\nexport const MoreMenu = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & TabDropdownProps\n>(function MoreMenu({ children, id, role }, ref) {\n const ctx = useOverlayTriggerContext()\n\n const menuRef = React.useRef<MenuRef | null>(null)\n\n React.useEffect(function () {\n menuRef.current?.el?.focus()\n menuRef.current?.highlightFirst()\n menuRef.current?.highlightSelected()\n }, [])\n\n function onSelect(selection: Selection) {\n ctx.hide(selection.event)\n }\n\n return (\n <StyledOverlay ref={ref}>\n <MenuImperative\n role=\"none\"\n id={id}\n ref={menuRef}\n onSelect={onSelect}\n onChangeActiveDescendant={() => null} // remove arrow keyboard\n >\n <MenuImperative.Options\n aria-label={null}\n // @ts-expect-error - JavaScript, Core-React use only for this specific hacky Tab case\n as=\"ol\"\n role=\"list\" // override MenuImperative forcing roles\n >\n {React.Children.map(children, (child, i) => {\n if (React.isValidElement<BaseTabProps>(child)) {\n return (\n <MenuImperative.Item\n as=\"li\"\n item={null}\n key={i}\n selected={child.props.selected || child.props.active}\n >\n {React.cloneElement(\n child as React.ReactElement<BaseTabProps>,\n {\n ref: null,\n tabIndex: 0,\n role:\n child.props.role === 'tab'\n ? undefined\n : child.props.role,\n } as Partial<BaseTabProps>\n )}\n </MenuImperative.Item>\n )\n }\n })}\n </MenuImperative.Options>\n </MenuImperative>\n </StyledOverlay>\n )\n})\n\nconst Tabs_ = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & TabsProps\n>(function Tabs(\n {\n children,\n className,\n dark = false,\n qa,\n UNSAFE_helixHeader = false,\n ...props\n },\n ref\n) {\n const i18n = useI18nContext()\n\n const [moreMenuIsShown, setMoreMenuIsShown] = React.useState(false)\n const [tabElements, setTabElements] = React.useState<\n (HTMLDivElement | null)[]\n >([])\n const [cutoffIndex, setCutoffIndex] = React.useState(0)\n\n const containerRef = React.useRef<HTMLDivElement>(null)\n\n function recalculate() {\n const container = getBoundingRect(containerRef.current!)\n\n const { subtotals } = tabElements.reduce(\n (acc, el) => {\n if (!el) {\n return acc\n }\n const rect = getBoundingRect(el)\n const extraSpace = UNSAFE_helixHeader\n ? HelixHeaderExtraTabSpacing\n : ExtraTabSpacing\n return {\n subtotals: [...acc.subtotals, acc.total + rect.width],\n total: acc.total + rect.width + extraSpace,\n }\n },\n { subtotals: new Array(), total: 0 }\n )\n\n const index = subtotals.findIndex((val: number) => val >= container.width)\n\n setCutoffIndex(index)\n }\n\n useResize({ onResize: recalculate })\n\n React.useEffect(recalculate)\n\n const filtered = React.Children.toArray(children).filter((child) => child)\n const overflowing = filtered.slice(cutoffIndex - 1)\n\n const isOverflowingSelected = React.Children.toArray(overflowing).some(\n (child) =>\n React.isValidElement(child) &&\n (child.props.active || child.props.selected)\n )\n\n const Styled = getStyledComponents(UNSAFE_helixHeader)\n\n const moreButtonProps =\n props.role === 'tablist'\n ? {\n role: 'tab',\n tabIndex: -1,\n onKeyDown: function onMoreKeyDown(\n event: React.KeyboardEvent<HTMLButtonElement>\n ) {\n moveRovingFocusWithinTablist(event)\n },\n }\n : {}\n const moreDropdownTrigger =\n cutoffIndex >= 1 ? (\n <OverlayTrigger\n aria-label={i18n.t('core.tabs.more')}\n beforeShow={() => setMoreMenuIsShown(true)}\n afterHide={() => setMoreMenuIsShown(false)}\n trigger=\"click\"\n placement=\"bottom-right\"\n overlay={<MoreMenu>{overflowing}</MoreMenu>}\n ref={ref}\n role=\"dialog\"\n >\n <Styled.DropdownTab\n $selected={isOverflowingSelected}\n $dark={dark}\n aria-hidden={!overflowing.length}\n as=\"button\"\n {...moreButtonProps}\n >\n <Styled.DropdownTabInner\n $selected={isOverflowingSelected}\n $dark={dark}\n >\n <Styled.Link data-qa={qa?.more}>\n {i18n.t('core.tabs.more')}\n </Styled.Link>\n {moreMenuIsShown ? <CaretUp size=\"sm\" /> : <CaretDown size=\"sm\" />}\n </Styled.DropdownTabInner>\n </Styled.DropdownTab>\n </OverlayTrigger>\n ) : null\n\n return (\n <StyledTabs\n ref={ref}\n role={props.role || 'group'}\n $dark={dark}\n $index={cutoffIndex}\n $helix={UNSAFE_helixHeader}\n {...props}\n >\n <StyledTabList\n as={props.role === 'navigation' ? 'ul' : 'div'}\n ref={containerRef}\n >\n {filtered.map((child, i) => {\n if (React.isValidElement(child))\n return React.cloneElement(\n child as React.ReactElement<\n BaseTabProps & {\n as?: React.ElementType\n dark?: boolean\n onMount?: (el: HTMLDivElement | null) => void\n onUnmount?: () => void\n }\n >,\n {\n as: props.role === 'navigation' ? 'li' : child.props.as,\n dark,\n onMount: (el: HTMLDivElement | null) => {\n setTabElements((elements) => {\n const oldElements = [...elements]\n oldElements[i] = el\n return oldElements\n })\n },\n onUnmount: () => {\n setTabElements((elements) => {\n const oldElements = [...elements]\n oldElements[i] = null\n return oldElements\n })\n },\n }\n )\n })}\n\n {props.role === 'navigation' && moreDropdownTrigger ? (\n <Styled.MoreLi $helix={UNSAFE_helixHeader}>\n {moreDropdownTrigger}\n </Styled.MoreLi>\n ) : (\n moreDropdownTrigger\n )}\n </StyledTabList>\n </StyledTabs>\n )\n})\n\nTabs_.displayName = 'Tabs'\n\nLink.displayName = 'Tabs.Link'\n\n// @ts-ignore\nTab.displayName = 'Tabs.Tab'\n\n/**\n\n We use tabs to navigate between different, but related content.\n Tabs are commonly used on tool landing pages and on item detail pages.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-tabs--demo)\n\n @see [Design Guidelines](https://design.procore.com/tabs)\n\n */\nexport const Tabs = addSubcomponents(\n {\n Link,\n Tab,\n },\n Tabs_\n)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,SAASA,SAAS,EAAEC,OAAO,QAAQ,0BAA0B;AAC7D,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,SAAS,QAAQ,oBAAoB;AAC9C,SAASC,cAAc,QAAQ,kCAAkC;AAEjE,SACEC,cAAc,EACdC,wBAAwB,QACnB,kCAAkC;AACzC,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,SAAS,QAAQ,kBAAkB;AAC5C,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,eAAe,QAAQ,eAAe;AAC/C,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,SACEC,mBAAmB,EACnBC,aAAa,EACbC,aAAa,EACbC,UAAU,QACL,eAAe;AAWtB,IAAMC,eAAe,GAAGR,OAAO,CAACS,GAAG;AACnC,IAAMC,0BAA0B,GAAGV,OAAO,CAACW,EAAE;AAE7C,SAASC,IAAIA,CAAA,EAAG,CAAC;AACjB,IAAMC,eAAe,GAAG,CAAC,YAAY,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,CAAU;AAE3E,SAASC,4BAA4BA,CAACC,KAAuC,EAAE;EAC7E,IAAMC,GAAG,GAAGD,KAAK,CAACC,GAAG;EACrB,IAAI,CAACH,eAAe,CAACI,QAAQ,CAACD,GAAuC,CAAC,EACpE,OAAO,KAAK;EAEdD,KAAK,CAACG,cAAc,CAAC,CAAC;EACtB,IAAMC,OAAO,GAAGJ,KAAK,CAACK,aAAa;EACnC,IA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,CAAC;UACjCC,WAAW,CAAChE,CAAC,CAAC,GAAG,IAAI;UACrB,OAAOgE,WAAW;QACpB,CAAC,CAAC;MACJ;IACF,CACF,CAAC;EACL,CAAC,CAAC,EAEDlJ,KAAK,CAACU,IAAI,KAAK,YAAY,IAAI0H,mBAAmB,gBACjD7L,KAAA,CAAA6D,aAAA,CAACD,MAAM,CAACgJ,MAAM;IAACH,MAAM,EAAEjJ;EAAmB,GACvCqI,mBACY,CAAC,GAEhBA,mBAEW,CACL,CAAC;AAEjB,CAAC,CAAC;AAEF/C,KAAK,CAAC+D,WAAW,GAAG,MAAM;AAE1B3J,IAAI,CAAC2J,WAAW,GAAG,WAAW;;AAE9B;AACA3F,GAAG,CAAC2F,WAAW,GAAG,UAAU;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAM9D,IAAI,GAAGvI,gBAAgB,CAClC;EACE0C,IAAI,EAAJA,IAAI;EACJgE,GAAG,EAAHA;AACF,CAAC,EACD4B,KACF,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"Tabs.js","names":["CaretDown","CaretUp","React","useButton","MenuImperative","OverlayTrigger","useOverlayTriggerContext","useI18nContext","useResize","spacing","addSubcomponents","getBoundingRect","mergeRefs","getStyledComponents","StyledOverlay","StyledTabList","StyledTabs","ExtraTabSpacing","xxl","HelixHeaderExtraTabSpacing","sm","noop","ROVING_TAB_KEYS","moveRovingFocusWithinTablist","event","key","includes","preventDefault","current","currentTarget","tablist","closest","tabs","Array","from","querySelectorAll","filter","tab","hasAttribute","styles","window","getComputedStyle","isHidden","visibility","pointerEvents","length","currentIndex","indexOf","nextIndex","nextTab","tabIndex","focus","Link","forwardRef","_ref","ref","children","_ref$UNSAFE_helixHead","UNSAFE_helixHeader","props","_objectWithoutProperties","_excluded","Styled","createElement","_extends","TabInternal","_ref2","as","disabled","role","_ref2$active","active","_ref2$selected","selected","onBlur","onFocus","_ref2$onMount","onMount","_ref2$onUnmount","onUnmount","_ref2$overflowing","overflowing","_ref2$dropdown","dropdown","_ref2$variant","variant","_ref2$UNSAFE_helixHea","_excluded2","_ref3","onPress","onClick","value","buttonPropsBase","_excluded3","elementType","_useButton","_objectSpread","isDisabled","type","buttonProps","shouldDefaultToButton","onTablistTabKeyDown","defaultPrevented","click","a11yProps","$clickable","id","onKeyDown","href","innerRef","useRef","useEffect","validChild","isValidElement","tabSelected","roleSpecificProps","Tab","$selected","$dark","dark","TabInner","cloneElement","undefined","MoreMenu","_ref4","ctx","menuRef","_menuRef$current","_menuRef$current2","_menuRef$current3","el","highlightFirst","highlightSelected","onSelect","selection","hide","onChangeActiveDescendant","Options","Children","map","child","i","Item","item","Tabs_","Tabs","_ref5","className","_ref5$dark","qa","_ref5$UNSAFE_helixHea","_excluded4","i18n","_React$useState","useState","_React$useState2","_slicedToArray","moreMenuIsShown","setMoreMenuIsShown","_React$useState3","_React$useState4","tabElements","setTabElements","_React$useState5","_React$useState6","cutoffIndex","setCutoffIndex","containerRef","recalculate","container","width","_tabElements$reduce","reduce","acc","rect","extraSpace","subtotals","concat","_toConsumableArray","total","index","findIndex","val","onResize","filtered","toArray","slice","Math","max","isOverflowingSelected","some","moreButtonProps","onMoreKeyDown","moreDropdownTrigger","t","beforeShow","afterHide","trigger","placement","overlay","DropdownTab","DropdownTabInner","more","size","$index","$helix","elements","oldElements","MoreLi","displayName"],"sources":["../../src/Tabs/Tabs.tsx"],"sourcesContent":["import { CaretDown, CaretUp } from '@procore/core-icons/dist'\nimport React from 'react'\n\nimport { useButton } from '@react-aria/button'\nimport { MenuImperative } from '../MenuImperative/MenuImperative'\nimport type { MenuRef, Selection } from '../MenuImperative/MenuImperative.types'\nimport {\n OverlayTrigger,\n useOverlayTriggerContext,\n} from '../OverlayTrigger/OverlayTrigger'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { useResize } from '../_hooks/Resize'\nimport { spacing } from '../_styles/spacing'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { getBoundingRect } from '../_utils/dom'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport {\n getStyledComponents,\n StyledOverlay,\n StyledTabList,\n StyledTabs,\n} from './Tabs.styles'\nimport type {\n BaseTabProps,\n TabDropdownProps,\n TabProps,\n TabRef,\n TabRole,\n TabRoleType,\n TabsProps,\n} from './Tabs.types'\n\nconst ExtraTabSpacing = spacing.xxl\nconst HelixHeaderExtraTabSpacing = spacing.sm\n\nfunction noop() {}\nconst ROVING_TAB_KEYS = ['ArrowRight', 'ArrowLeft', 'Home', 'End'] as const\n\nfunction moveRovingFocusWithinTablist(event: React.KeyboardEvent<HTMLElement>) {\n const key = event.key\n if (!ROVING_TAB_KEYS.includes(key as (typeof ROVING_TAB_KEYS)[number]))\n return false\n\n event.preventDefault()\n const current = event.currentTarget\n const tablist = current.closest('[role=\"tablist\"]')\n if (!tablist) return\n\n const tabs = Array.from(\n tablist.querySelectorAll<HTMLElement>('[role=\"tab\"], button')\n ).filter((tab) => {\n if (tab.hasAttribute('disabled')) return false\n\n const styles = window.getComputedStyle(tab)\n const isHidden =\n styles.visibility === 'hidden' || styles.pointerEvents === 'none'\n\n return !isHidden\n })\n if (!tabs.length) return\n\n const currentIndex = tabs.indexOf(current)\n if (currentIndex < 0) return\n\n let nextIndex = currentIndex\n if (key === 'ArrowRight') nextIndex = (currentIndex + 1) % tabs.length\n if (key === 'ArrowLeft')\n nextIndex = (currentIndex - 1 + tabs.length) % tabs.length\n if (key === 'Home') nextIndex = 0\n if (key === 'End') nextIndex = tabs.length - 1\n\n const nextTab = tabs[nextIndex]\n current.tabIndex = -1\n nextTab.tabIndex = 0\n nextTab.focus()\n}\n\nexport const Link = React.forwardRef<\n HTMLSpanElement,\n React.HTMLAttributes<HTMLSpanElement> & {\n /** @deprecated @experimental Alternative style variant. To be used on Helix Header ONLY */\n UNSAFE_helixHeader?: boolean\n }\n>(function Link({ children, UNSAFE_helixHeader = false, ...props }, ref) {\n const Styled = getStyledComponents(UNSAFE_helixHeader)\n\n return (\n <Styled.Link ref={ref} {...props}>\n {children}\n </Styled.Link>\n )\n})\n\nfunction TabInternal(\n {\n as,\n disabled,\n role,\n active = false,\n selected = false,\n children,\n onBlur,\n onFocus,\n onMount = noop,\n onUnmount = noop,\n overflowing = false,\n dropdown = false,\n variant = '',\n UNSAFE_helixHeader = false,\n ...props\n }: TabProps<TabRoleType>,\n ref: TabRef<TabRoleType>\n) {\n const { onPress, onClick, value, ...buttonPropsBase } =\n props as TabProps<'button'>\n\n const elementType =\n role === 'link' ? 'a' : role === 'button' ? 'button' : 'div'\n\n const { buttonProps } = useButton(\n {\n ...buttonPropsBase,\n onBlur: onBlur as (e: React.FocusEvent) => void,\n onFocus: onFocus as (e: React.FocusEvent) => void,\n elementType,\n isDisabled: disabled,\n // @ts-expect-error Type 'PressEvent' is missing properties from type 'MouseEvent<HTMLButtonElement, MouseEvent>', the expected type comes from property 'onPress' which is declared here on type 'AriaButtonOptions<ElementType>'\n onPress: onPress || onClick,\n type: 'button',\n },\n ref as unknown as React.RefObject<HTMLElement>\n )\n\n // See if we should make the component a button if event handlers are given.\n // The no role check addition allows overrides / opt-out, for like\n // role = presentation or role = link having click handlers for some reason.\n const shouldDefaultToButton = (!role && onPress) || (!role && onClick)\n\n function onTablistTabKeyDown(event: React.KeyboardEvent<HTMLElement>) {\n // props.onKeyDown?.(event)\n if (event.defaultPrevented) return\n\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault()\n ;(event.currentTarget as HTMLElement).click()\n return\n }\n\n moveRovingFocusWithinTablist(event as React.KeyboardEvent<HTMLElement>)\n }\n\n const a11yProps =\n role === 'button' || shouldDefaultToButton\n ? {\n ...buttonProps,\n role: 'button',\n 'aria-current': selected || active,\n as: as || 'button',\n $clickable: !disabled,\n }\n : role === 'link'\n ? {\n ...buttonProps,\n role: 'link',\n 'aria-current': selected || active,\n as: as || 'a',\n $clickable: !disabled,\n }\n : role === 'tab'\n ? {\n role: 'tab',\n id: props.id,\n 'aria-controls': props['aria-controls'],\n 'aria-selected': selected || active ? true : false,\n tabIndex: selected || active ? 0 : -1,\n onBlur,\n onFocus,\n onClick: onClick || onPress,\n onKeyDown: onTablistTabKeyDown,\n as: as ? as : (props as TabProps<'link'>).href ? 'a' : 'button',\n }\n : { as, role, onBlur, onFocus }\n\n const innerRef = React.useRef<HTMLDivElement>(null)\n\n React.useEffect(() => {\n onMount(innerRef.current)\n return onUnmount\n }, [])\n\n const validChild = React.isValidElement(children)\n const tabSelected = active || variant === 'active' || selected\n\n const Styled = getStyledComponents(UNSAFE_helixHeader)\n\n // For button/link roles, spread buttonPropsBase to preserve useButton's onClick\n // For other roles, spread all props\n const roleSpecificProps =\n role === 'button' || role === 'link' || shouldDefaultToButton\n ? (buttonPropsBase as Omit<\n TabProps<'button'>,\n 'onPress' | 'onClick' | 'value'\n >)\n : role === 'tab'\n ? (props as TabProps<'tab'>)\n : (props as TabProps<TabRoleType>)\n\n return (\n <Styled.Tab\n $selected={tabSelected}\n $dark={props.dark}\n ref={\n mergeRefs(\n (ref || null) as unknown as React.Ref<HTMLDivElement>,\n innerRef\n ) as unknown as React.RefCallback<HTMLDivElement>\n }\n {...(a11yProps as Record<string, unknown>)}\n {...(roleSpecificProps as Record<string, unknown>)}\n >\n <Styled.TabInner $selected={tabSelected} $dark={props.dark}>\n {validChild\n ? React.cloneElement(\n children as React.ReactElement<\n Record<string, unknown>,\n string | React.JSXElementConstructor<unknown>\n >,\n {\n 'aria-current': tabSelected ? true : undefined,\n }\n )\n : children}\n </Styled.TabInner>\n </Styled.Tab>\n )\n}\n\nexport const Tab = React.forwardRef(TabInternal) as <Role extends TabRole>(\n props:\n | TabProps<Role>\n | (BaseTabProps & { ref?: React.ComponentPropsWithRef<'div'>['ref'] })\n) => ReturnType<typeof TabInternal>\n\nexport const MoreMenu = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & TabDropdownProps\n>(function MoreMenu({ children, id, role }, ref) {\n const ctx = useOverlayTriggerContext()\n\n const menuRef = React.useRef<MenuRef | null>(null)\n\n React.useEffect(function () {\n menuRef.current?.el?.focus()\n menuRef.current?.highlightFirst()\n menuRef.current?.highlightSelected()\n }, [])\n\n function onSelect(selection: Selection) {\n ctx.hide(selection.event)\n }\n\n return (\n <StyledOverlay ref={ref}>\n <MenuImperative\n role=\"none\"\n id={id}\n ref={menuRef}\n onSelect={onSelect}\n onChangeActiveDescendant={() => null} // remove arrow keyboard\n >\n <MenuImperative.Options\n aria-label={null}\n // @ts-expect-error - JavaScript, Core-React use only for this specific hacky Tab case\n as=\"ol\"\n role=\"list\" // override MenuImperative forcing roles\n >\n {React.Children.map(children, (child, i) => {\n if (React.isValidElement<BaseTabProps>(child)) {\n return (\n <MenuImperative.Item\n as=\"li\"\n item={null}\n key={i}\n selected={child.props.selected || child.props.active}\n >\n {React.cloneElement(\n child as React.ReactElement<BaseTabProps>,\n {\n ref: null,\n tabIndex: 0,\n role:\n child.props.role === 'tab'\n ? undefined\n : child.props.role,\n } as Partial<BaseTabProps>\n )}\n </MenuImperative.Item>\n )\n }\n })}\n </MenuImperative.Options>\n </MenuImperative>\n </StyledOverlay>\n )\n})\n\nconst Tabs_ = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & TabsProps\n>(function Tabs(\n {\n children,\n className,\n dark = false,\n qa,\n UNSAFE_helixHeader = false,\n ...props\n },\n ref\n) {\n const i18n = useI18nContext()\n\n const [moreMenuIsShown, setMoreMenuIsShown] = React.useState(false)\n const [tabElements, setTabElements] = React.useState<\n (HTMLDivElement | null)[]\n >([])\n // No reflow\n const [cutoffIndex, setCutoffIndex] = React.useState(-1)\n\n const containerRef = React.useRef<HTMLDivElement>(null)\n\n function recalculate() {\n const container = getBoundingRect(containerRef.current!)\n\n // Hidden container: nothing to measure\n if (container.width === 0) {\n setCutoffIndex(-1)\n return\n }\n\n const { subtotals } = tabElements.reduce(\n (acc, el) => {\n if (!el) {\n return acc\n }\n const rect = getBoundingRect(el)\n const extraSpace = UNSAFE_helixHeader\n ? HelixHeaderExtraTabSpacing\n : ExtraTabSpacing\n return {\n subtotals: [...acc.subtotals, acc.total + rect.width],\n total: acc.total + rect.width + extraSpace,\n }\n },\n { subtotals: new Array(), total: 0 }\n )\n\n const index = subtotals.findIndex((val: number) => val >= container.width)\n\n setCutoffIndex(index)\n }\n\n useResize({ onResize: recalculate })\n\n React.useEffect(recalculate)\n\n const filtered = React.Children.toArray(children).filter((child) => child)\n // The tab before the first overflowing one moves too, to make room for More\n const overflowing =\n cutoffIndex >= 0 ? filtered.slice(Math.max(cutoffIndex - 1, 0)) : []\n\n const isOverflowingSelected = React.Children.toArray(overflowing).some(\n (child) =>\n React.isValidElement(child) &&\n (child.props.active || child.props.selected)\n )\n\n const Styled = getStyledComponents(UNSAFE_helixHeader)\n\n const moreButtonProps =\n props.role === 'tablist'\n ? {\n role: 'tab',\n tabIndex: -1,\n onKeyDown: function onMoreKeyDown(\n event: React.KeyboardEvent<HTMLButtonElement>\n ) {\n moveRovingFocusWithinTablist(event)\n },\n }\n : {}\n const moreDropdownTrigger =\n cutoffIndex >= 0 ? (\n <OverlayTrigger\n aria-label={i18n.t('core.tabs.more')}\n beforeShow={() => setMoreMenuIsShown(true)}\n afterHide={() => setMoreMenuIsShown(false)}\n trigger=\"click\"\n placement=\"bottom-right\"\n overlay={<MoreMenu>{overflowing}</MoreMenu>}\n ref={ref}\n role=\"dialog\"\n >\n <Styled.DropdownTab\n $selected={isOverflowingSelected}\n $dark={dark}\n aria-hidden={!overflowing.length}\n as=\"button\"\n {...moreButtonProps}\n >\n <Styled.DropdownTabInner\n $selected={isOverflowingSelected}\n $dark={dark}\n >\n <Styled.Link data-qa={qa?.more}>\n {i18n.t('core.tabs.more')}\n </Styled.Link>\n {moreMenuIsShown ? <CaretUp size=\"sm\" /> : <CaretDown size=\"sm\" />}\n </Styled.DropdownTabInner>\n </Styled.DropdownTab>\n </OverlayTrigger>\n ) : null\n\n return (\n <StyledTabs\n ref={ref}\n role={props.role || 'group'}\n $dark={dark}\n $index={cutoffIndex}\n $helix={UNSAFE_helixHeader}\n {...props}\n >\n <StyledTabList\n as={props.role === 'navigation' ? 'ul' : 'div'}\n ref={containerRef}\n >\n {filtered.map((child, i) => {\n if (React.isValidElement(child))\n return React.cloneElement(\n child as React.ReactElement<\n BaseTabProps & {\n as?: React.ElementType\n dark?: boolean\n onMount?: (el: HTMLDivElement | null) => void\n onUnmount?: () => void\n }\n >,\n {\n as: props.role === 'navigation' ? 'li' : child.props.as,\n dark,\n onMount: (el: HTMLDivElement | null) => {\n setTabElements((elements) => {\n const oldElements = [...elements]\n oldElements[i] = el\n return oldElements\n })\n },\n onUnmount: () => {\n setTabElements((elements) => {\n const oldElements = [...elements]\n oldElements[i] = null\n return oldElements\n })\n },\n }\n )\n })}\n\n {props.role === 'navigation' && moreDropdownTrigger ? (\n <Styled.MoreLi $helix={UNSAFE_helixHeader}>\n {moreDropdownTrigger}\n </Styled.MoreLi>\n ) : (\n moreDropdownTrigger\n )}\n </StyledTabList>\n </StyledTabs>\n )\n})\n\nTabs_.displayName = 'Tabs'\n\nLink.displayName = 'Tabs.Link'\n\n// @ts-ignore\nTab.displayName = 'Tabs.Tab'\n\n/**\n\n We use tabs to navigate between different, but related content.\n Tabs are commonly used on tool landing pages and on item detail pages.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-tabs--demo)\n\n @see [Design Guidelines](https://design.procore.com/tabs)\n\n */\nexport const Tabs = addSubcomponents(\n {\n Link,\n Tab,\n },\n Tabs_\n)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,SAASA,SAAS,EAAEC,OAAO,QAAQ,0BAA0B;AAC7D,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,SAAS,QAAQ,oBAAoB;AAC9C,SAASC,cAAc,QAAQ,kCAAkC;AAEjE,SACEC,cAAc,EACdC,wBAAwB,QACnB,kCAAkC;AACzC,SAASC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,GAEhBA,mBAEW,CACL,CAAC;AAEjB,CAAC,CAAC;AAEFjD,KAAK,CAACiE,WAAW,GAAG,MAAM;AAE1B7J,IAAI,CAAC6J,WAAW,GAAG,WAAW;;AAE9B;AACA7F,GAAG,CAAC6F,WAAW,GAAG,UAAU;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMhE,IAAI,GAAGvI,gBAAgB,CAClC;EACE0C,IAAI,EAAJA,IAAI;EACJgE,GAAG,EAAHA;AACF,CAAC,EACD4B,KACF,CAAC","ignoreList":[]}
|
package/dist/Tabs/Tabs.styles.js
CHANGED
|
@@ -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-
|
|
20
|
+
componentId: "core-12_54_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-
|
|
24
|
+
componentId: "core-12_54_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-
|
|
30
|
+
componentId: "core-12_54_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-
|
|
53
|
+
componentId: "core-12_54_0__sc-17s58xs-3"
|
|
54
54
|
})(["", ""], getTabStyle);
|
|
55
55
|
var StyledTabInner = /*#__PURE__*/styled(StyledTabInnerBase).withConfig({
|
|
56
56
|
displayName: "StyledTabInner",
|
|
57
|
-
componentId: "core-
|
|
57
|
+
componentId: "core-12_54_0__sc-17s58xs-4"
|
|
58
58
|
})(["", " padding:0 ", "px;font-weight:", ";&,> a{", ";color:", ";height:23px;}& a:focus-visible{outline:2px solid ", ";outline-offset:-1px;border-radius:", "px;}", ""], 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-
|
|
70
|
+
componentId: "core-12_54_0__sc-17s58xs-5"
|
|
71
71
|
})(["", ""], getTabStyle);
|
|
72
72
|
var StyledDropdownTabInner = /*#__PURE__*/styled(StyledTabInner).withConfig({
|
|
73
73
|
displayName: "StyledDropdownTabInner",
|
|
74
|
-
componentId: "core-
|
|
74
|
+
componentId: "core-12_54_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-
|
|
78
|
+
componentId: "core-12_54_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-
|
|
95
|
+
componentId: "core-12_54_0__sc-17s58xs-8"
|
|
96
96
|
})(["", ""], getHelixHeaderTabStyles);
|
|
97
97
|
var StyledGlobalNavigationDropdownTab = /*#__PURE__*/styled(StyledDropdownTabBase).withConfig({
|
|
98
98
|
displayName: "StyledGlobalNavigationDropdownTab",
|
|
99
|
-
componentId: "core-
|
|
99
|
+
componentId: "core-12_54_0__sc-17s58xs-9"
|
|
100
100
|
})(["", ""], getHelixHeaderTabStyles);
|
|
101
101
|
var StyledGlobalNavigationDropdownTabInner = /*#__PURE__*/styled(StyledTabInnerBase).withConfig({
|
|
102
102
|
displayName: "StyledGlobalNavigationDropdownTabInner",
|
|
103
|
-
componentId: "core-
|
|
103
|
+
componentId: "core-12_54_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-
|
|
107
|
+
componentId: "core-12_54_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-
|
|
114
|
+
componentId: "core-12_54_0__sc-17s58xs-12"
|
|
115
115
|
})(["max-height:40vh;", "{padding:0;display:flex;justify-content:center;a{color:unset;margin:unset;padding:unset;&:focus-visible{outline-offset:1px;}}}", "{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-
|
|
118
|
+
componentId: "core-12_54_0__sc-17s58xs-13"
|
|
119
119
|
})(["display:flex;list-style:none;margin:0;padding:0;width:100%;"]);
|
|
120
120
|
export var StyledTabs = /*#__PURE__*/styled.div.withConfig({
|
|
121
121
|
displayName: "StyledTabs",
|
|
122
|
-
componentId: "core-
|
|
122
|
+
componentId: "core-12_54_0__sc-17s58xs-14"
|
|
123
123
|
})(["background-color:", ";display:flex;overflow:", ";width:100%;", "{&:nth-child(1n + ", "){&:not(", "){", "}}}", ""], function (_ref6) {
|
|
124
124
|
var $dark = _ref6.$dark;
|
|
125
125
|
return $dark && colors.gray15;
|
|
@@ -136,7 +136,7 @@ export var StyledTabs = /*#__PURE__*/styled.div.withConfig({
|
|
|
136
136
|
});
|
|
137
137
|
var StyledMoreLi = /*#__PURE__*/styled.li.withConfig({
|
|
138
138
|
displayName: "StyledMoreLi",
|
|
139
|
-
componentId: "core-
|
|
139
|
+
componentId: "core-12_54_0__sc-17s58xs-15"
|
|
140
140
|
})(["", ""], function (_ref0) {
|
|
141
141
|
var $helix = _ref0.$helix;
|
|
142
142
|
return $helix ? css(["margin-left:", "px;"], spacing.sm) : css(["margin-left:", "px;"], spacing.xl);
|
|
@@ -20,7 +20,6 @@ import { useEventRegistry } from '../_hooks/EventRegistry';
|
|
|
20
20
|
import { OverridableFocusScope } from '../_hooks/FocusScopeOverride';
|
|
21
21
|
import { useHotkey } from '../_hooks/Hotkey';
|
|
22
22
|
import { useI18nContext } from '../_hooks/I18n';
|
|
23
|
-
import { useScrollLock } from '../_hooks/ScrollLock';
|
|
24
23
|
import { useUpdateEffect } from '../_hooks/useUpdateEffect';
|
|
25
24
|
import { CloseWithConfirmContext, useCloseWithConfirmState } from '../_utils/closeWithConfirm';
|
|
26
25
|
import { closingPhasesInOrder, openingPhasesInOrder } from './Tearsheet.constants';
|
|
@@ -91,7 +90,10 @@ export var Tearsheet = /*#__PURE__*/React.forwardRef(function Tearsheet(_ref, re
|
|
|
91
90
|
'aria-modal': undefined,
|
|
92
91
|
id: id,
|
|
93
92
|
isOpen: isVisible && status === 'open',
|
|
94
|
-
role: role
|
|
93
|
+
role: role,
|
|
94
|
+
// Keep the lock engaged through the opening/closing animation phases,
|
|
95
|
+
// not just while fully 'open'.
|
|
96
|
+
scrollLock: status !== 'closed'
|
|
95
97
|
}),
|
|
96
98
|
dialogProps = _useModalDialogLike.dialogProps,
|
|
97
99
|
focusScopeProps = _useModalDialogLike.focusScopeProps;
|
|
@@ -104,7 +106,6 @@ export var Tearsheet = /*#__PURE__*/React.forwardRef(function Tearsheet(_ref, re
|
|
|
104
106
|
placement: placement
|
|
105
107
|
};
|
|
106
108
|
}, [placement, addListener]);
|
|
107
|
-
useScrollLock(status !== 'closed');
|
|
108
109
|
React.useEffect(function () {
|
|
109
110
|
// do not run 'closing' animation if the initial state is closed
|
|
110
111
|
if (open) {
|