@procore/core-react 12.8.0 → 12.9.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/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
- package/dist/Avatar/Avatar.styles.js +5 -5
- package/dist/AvatarStack/AvatarStack.styles.js +7 -7
- package/dist/Badge/Badge.styles.js +2 -2
- package/dist/Banner/Banner.styles.js +10 -10
- package/dist/Box/Box.styles.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
- package/dist/Button/Button.js +8 -1
- package/dist/Button/Button.js.map +1 -1
- package/dist/Button/Button.styles.js +15 -6
- package/dist/Button/Button.styles.js.map +1 -1
- package/dist/Button/Button.types.d.ts +1 -1
- package/dist/Button/Button.types.js.map +1 -1
- package/dist/Calendar/Calendar.styles.js +8 -8
- package/dist/Card/Card.styles.js +1 -1
- package/dist/Checkbox/Checkbox.styles.js +6 -6
- package/dist/Checkbox/CheckboxTooltip.js +1 -1
- 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 +8 -8
- package/dist/DetailPage/DetailPage.styles.js.map +1 -1
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- 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 +4 -4
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
- 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 +4 -4
- package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
- package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
- package/dist/FileToken/FileToken.styles.js +4 -4
- package/dist/FilterToken/FilterToken.styles.js +2 -2
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.styles.js +14 -14
- package/dist/Form/StyledFormikForm.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.d.ts +7 -0
- package/dist/ListPage/ListPage.js +8 -0
- package/dist/ListPage/ListPage.js.map +1 -1
- package/dist/ListPage/ListPage.styles.js +8 -8
- package/dist/Loader/Loader.styles.js +2 -2
- package/dist/MenuImperative/MenuImperative.styles.js +10 -10
- package/dist/Modal/Modal.styles.js +13 -13
- package/dist/MultiSelect/MultiSelect.styles.js +6 -6
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- 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/PageLayout/PageLayout.styles.d.ts +3 -1
- package/dist/PageLayout/PageLayout.styles.js +29 -23
- package/dist/PageLayout/PageLayout.styles.js.map +1 -1
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Panel/Panel.styles.js +11 -11
- package/dist/Pill/Pill.styles.js +2 -2
- package/dist/PillSelect/PillSelect.styles.js +4 -4
- 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.js +4 -3
- package/dist/Section/Section.js.map +1 -1
- package/dist/Section/Section.styles.d.ts +1 -0
- package/dist/Section/Section.styles.js +10 -6
- package/dist/Section/Section.styles.js.map +1 -1
- package/dist/Section/Section.types.d.ts +4 -0
- package/dist/Section/Section.types.js.map +1 -1
- package/dist/SegmentedController/SegmentedController.styles.js +4 -4
- package/dist/Select/Select.styles.js +7 -7
- 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.context.d.ts +3 -4
- package/dist/SplitViewCard/SplitViewCard.context.js +27 -9
- package/dist/SplitViewCard/SplitViewCard.context.js.map +1 -1
- package/dist/SplitViewCard/SplitViewCard.d.ts +23 -22
- package/dist/SplitViewCard/SplitViewCard.js +106 -39
- package/dist/SplitViewCard/SplitViewCard.js.map +1 -1
- package/dist/SplitViewCard/SplitViewCard.styles.d.ts +9 -3
- package/dist/SplitViewCard/SplitViewCard.styles.js +30 -18
- package/dist/SplitViewCard/SplitViewCard.styles.js.map +1 -1
- package/dist/SplitViewCard/SplitViewCard.types.d.ts +29 -6
- package/dist/SplitViewCard/SplitViewCard.types.js.map +1 -1
- package/dist/SplitViewCard/index.d.ts +0 -2
- package/dist/SplitViewCard/index.js +0 -2
- package/dist/SplitViewCard/index.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +37 -37
- package/dist/Switch/Switch.styles.js +4 -4
- package/dist/Table/Table.styles.js +28 -28
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tabs.js +3 -1
- package/dist/Tabs/Tabs.js.map +1 -1
- package/dist/Tabs/Tabs.styles.js +29 -24
- package/dist/Tabs/Tabs.styles.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.js +17 -17
- 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 +7 -7
- package/dist/Toast/Toast.styles.js +3 -3
- package/dist/ToggleButton/ToggleButton.styles.js +1 -1
- package/dist/Token/Token.styles.js +3 -3
- package/dist/ToolHeader/ToolHeader.d.ts +7 -0
- package/dist/ToolHeader/ToolHeader.js +8 -0
- package/dist/ToolHeader/ToolHeader.js.map +1 -1
- package/dist/ToolHeader/ToolHeader.styles.js +6 -6
- package/dist/ToolLandingPage/ToolLandingPage.d.ts +25 -0
- package/dist/ToolLandingPage/ToolLandingPage.js +78 -0
- package/dist/ToolLandingPage/ToolLandingPage.js.map +1 -0
- package/dist/ToolLandingPage/ToolLandingPage.styles.d.ts +4 -0
- package/dist/ToolLandingPage/ToolLandingPage.styles.js +16 -0
- package/dist/ToolLandingPage/ToolLandingPage.styles.js.map +1 -0
- package/dist/ToolLandingPage/ToolLandingPage.types.d.ts +11 -0
- package/dist/ToolLandingPage/ToolLandingPage.types.js +2 -0
- package/dist/ToolLandingPage/ToolLandingPage.types.js.map +1 -0
- package/dist/ToolLandingPage/index.d.ts +2 -0
- package/dist/ToolLandingPage/index.js +2 -0
- package/dist/ToolLandingPage/index.js.map +1 -0
- package/dist/Tooltip/Tooltip.styles.js +2 -2
- package/dist/Tree/Tree.styles.js +9 -9
- package/dist/Typeahead/Typeahead.styles.js +3 -3
- package/dist/Typography/Typography.styles.js +1 -1
- package/dist/Typography/Typography.table.story.js +2 -2
- package/dist/_hooks/I18n.d.ts +430 -0
- package/dist/_hooks/I18n.js +2 -0
- package/dist/_hooks/I18n.js.map +1 -1
- package/dist/_hooks/getI18nProviderLocale.js +1 -1
- package/dist/_hooks/getI18nProviderLocale.js.map +1 -1
- package/dist/_locales/de-DE.json +7 -2
- package/dist/_locales/en-AU.json +5 -0
- package/dist/_locales/en-CA.json +5 -0
- package/dist/_locales/en-GB.json +5 -0
- package/dist/_locales/es-ES.json +5 -0
- package/dist/_locales/es.json +10 -5
- package/dist/_locales/fr-CA.json +9 -4
- package/dist/_locales/fr-FR.json +12 -7
- package/dist/_locales/is-IS.json +5 -0
- package/dist/_locales/ja-JP.json +45 -40
- package/dist/_locales/pseudo.json +365 -0
- package/dist/_locales/pt-BR.json +7 -2
- package/dist/_locales/th-TH.json +5 -0
- package/dist/_locales/zh-SG.json +5 -0
- package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +23 -23
- package/dist/_typedoc/Badge/Badge.types.json +6 -6
- package/dist/_typedoc/Banner/Banner.types.json +13 -13
- package/dist/_typedoc/Box/Box.types.json +68 -68
- package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
- 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 +9 -9
- 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 +13 -13
- package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
- package/dist/_typedoc/Dropdown/Dropdown.types.json +39 -39
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +30 -30
- package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
- package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
- 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 +9 -9
- 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 +726 -726
- package/dist/_typedoc/Grid/Grid.types.json +8 -8
- package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
- package/dist/_typedoc/Input/Input.types.json +2 -2
- package/dist/_typedoc/Link/Link.types.json +4 -4
- 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 +74 -74
- package/dist/_typedoc/Modal/Modal.types.json +46 -46
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
- package/dist/_typedoc/Notation/Notation.types.json +4 -4
- package/dist/_typedoc/NumberInput/NumberInput.types.json +37 -37
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
- package/dist/_typedoc/PageLayout/PageLayout.types.json +28 -28
- package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
- package/dist/_typedoc/Panel/Panel.types.json +38 -28
- package/dist/_typedoc/Pill/Pill.types.json +2 -2
- package/dist/_typedoc/PillSelect/PillSelect.types.json +47 -47
- package/dist/_typedoc/Popover/Popover.types.json +14 -14
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
- 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 +24 -14
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
- package/dist/_typedoc/Select/Select.types.json +58 -58
- package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
- 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 +134 -0
- package/dist/_typedoc/Switch/Switch.types.json +3 -3
- package/dist/_typedoc/Table/Table.types.json +99 -99
- package/dist/_typedoc/Tabs/Tabs.types.json +19 -19
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
- package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
- package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
- 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 +44 -44
- package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
- package/dist/_typedoc/Tile/Tile.types.json +30 -30
- 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 +3 -3
- package/dist/_typedoc/Token/Token.types.json +4 -4
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
- package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +84 -0
- package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
- package/dist/_typedoc/Tree/Tree.types.json +86 -86
- 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/_utils/propsTypedoc.d.ts +2 -0
- package/dist/_utils/propsTypedoc.js +2 -0
- package/dist/_utils/propsTypedoc.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
- package/dist/NextListPage/NextListPage.d.ts +0 -24
- package/dist/NextListPage/NextListPage.js +0 -44
- package/dist/NextListPage/NextListPage.js.map +0 -1
- package/dist/NextListPage/NextListPage.types.d.ts +0 -3
- package/dist/NextListPage/NextListPage.types.js +0 -2
- package/dist/NextListPage/NextListPage.types.js.map +0 -1
- package/dist/NextListPage/index.d.ts +0 -2
- package/dist/NextListPage/index.js +0 -2
- package/dist/NextListPage/index.js.map +0 -1
- package/dist/SplitViewCard/useSplitViewCard.d.ts +0 -5
- package/dist/SplitViewCard/useSplitViewCard.js +0 -14
- package/dist/SplitViewCard/useSplitViewCard.js.map +0 -1
|
@@ -22,40 +22,40 @@ var styledSelectButtonDefaultWidth = 248;
|
|
|
22
22
|
export var extendedSelectMenuWidth = 360;
|
|
23
23
|
export var PillSelectOptionWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
24
24
|
displayName: "PillSelectOptionWrapper",
|
|
25
|
-
componentId: "core-
|
|
25
|
+
componentId: "core-12_9_0__sc-1uf5708-0"
|
|
26
26
|
})(["display:flex;align-items:center;justify-content:space-between;padding:", "px ", "px;"], spacing.xs, spacing.lg);
|
|
27
27
|
export var PillSelectLabel = /*#__PURE__*/styled(Pill).withConfig({
|
|
28
28
|
displayName: "PillSelectLabel",
|
|
29
|
-
componentId: "core-
|
|
29
|
+
componentId: "core-12_9_0__sc-1uf5708-1"
|
|
30
30
|
})(["", ""], getEllipsis);
|
|
31
31
|
export var PillSelectLabelWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
32
32
|
displayName: "PillSelectLabelWrapper",
|
|
33
|
-
componentId: "core-
|
|
33
|
+
componentId: "core-12_9_0__sc-1uf5708-2"
|
|
34
34
|
})(["display:flex;max-width:100%;pointer-events:auto;", ""], function (_ref) {
|
|
35
35
|
var disabled = _ref.disabled;
|
|
36
36
|
return disabled && css(["pointer-events:none;"]);
|
|
37
37
|
});
|
|
38
38
|
export var StyledCheckboxContainer = /*#__PURE__*/styled.div.withConfig({
|
|
39
39
|
displayName: "StyledCheckboxContainer",
|
|
40
|
-
componentId: "core-
|
|
40
|
+
componentId: "core-12_9_0__sc-1uf5708-3"
|
|
41
41
|
})(["padding-left:", "px;"], spacing.lg);
|
|
42
42
|
export var StyledCheckmarkContainer = /*#__PURE__*/styled.div.withConfig({
|
|
43
43
|
displayName: "StyledCheckmarkContainer",
|
|
44
|
-
componentId: "core-
|
|
44
|
+
componentId: "core-12_9_0__sc-1uf5708-4"
|
|
45
45
|
})(["align-items:center;color:", ";display:inline-flex;flex-shrink:0;padding:0 ", "px 0 ", "px;"], colors.blue50, spacing.lg, spacing.sm);
|
|
46
46
|
|
|
47
47
|
// Do not merge with StyledMenu, needed for max-height working in IE
|
|
48
48
|
export var StyledWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
49
49
|
displayName: "StyledWrapper",
|
|
50
|
-
componentId: "core-
|
|
50
|
+
componentId: "core-12_9_0__sc-1uf5708-5"
|
|
51
51
|
})(["display:flex;max-height:inherit;min-width:inherit;outline:none;width:inherit;"]);
|
|
52
52
|
export var StyledMenu = /*#__PURE__*/styled.div.withConfig({
|
|
53
53
|
displayName: "StyledMenu",
|
|
54
|
-
componentId: "core-
|
|
54
|
+
componentId: "core-12_9_0__sc-1uf5708-6"
|
|
55
55
|
})(["display:flex;flex-direction:column;outline:0;width:100%;"]);
|
|
56
56
|
export var StyledOptions = /*#__PURE__*/styled.div.withConfig({
|
|
57
57
|
displayName: "StyledOptions",
|
|
58
|
-
componentId: "core-
|
|
58
|
+
componentId: "core-12_9_0__sc-1uf5708-7"
|
|
59
59
|
})(["flex-basis:auto;flex-grow:1;flex-shrink:1;min-height:", "px;", ";padding:", "px 0;position:relative;overflow:hidden;&:focus{", " margin:-1px;}"], optionMinHeight, function (_ref2) {
|
|
60
60
|
var _ref2$$scrollable = _ref2.$scrollable,
|
|
61
61
|
$scrollable = _ref2$$scrollable === void 0 ? true : _ref2$$scrollable;
|
|
@@ -63,53 +63,53 @@ export var StyledOptions = /*#__PURE__*/styled.div.withConfig({
|
|
|
63
63
|
}, spacing.sm, getFocus());
|
|
64
64
|
export var StyledItemContent = /*#__PURE__*/styled.div.withConfig({
|
|
65
65
|
displayName: "StyledItemContent",
|
|
66
|
-
componentId: "core-
|
|
66
|
+
componentId: "core-12_9_0__sc-1uf5708-8"
|
|
67
67
|
})(["display:flex;flex-direction:row;align-items:center;"]);
|
|
68
68
|
export var StyledOptionGroupLabel = /*#__PURE__*/styled.div.withConfig({
|
|
69
69
|
displayName: "StyledOptionGroupLabel",
|
|
70
|
-
componentId: "core-
|
|
70
|
+
componentId: "core-12_9_0__sc-1uf5708-9"
|
|
71
71
|
})(["padding:", "px 0 ", "px ", "px;"], spacing.md, spacing.xs, spacing.lg);
|
|
72
72
|
export var StyledItemLabel = /*#__PURE__*/styled.div.withConfig({
|
|
73
73
|
displayName: "StyledItemLabel",
|
|
74
|
-
componentId: "core-
|
|
74
|
+
componentId: "core-12_9_0__sc-1uf5708-10"
|
|
75
75
|
})(["", ""], function (_ref3) {
|
|
76
76
|
var $draggable = _ref3.$draggable;
|
|
77
77
|
return css(["padding:", "px ", "px;overflow-wrap:anywhere;"], spacing.xs, $draggable ? 0 : spacing.lg);
|
|
78
78
|
});
|
|
79
79
|
export var StyledDraggableWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
80
80
|
displayName: "StyledDraggableWrapper",
|
|
81
|
-
componentId: "core-
|
|
81
|
+
componentId: "core-12_9_0__sc-1uf5708-11"
|
|
82
82
|
})(["display:flex;width:100%;align-items:center;"]);
|
|
83
83
|
export var StyledGrip = /*#__PURE__*/styled.div.withConfig({
|
|
84
84
|
displayName: "StyledGrip",
|
|
85
|
-
componentId: "core-
|
|
85
|
+
componentId: "core-12_9_0__sc-1uf5708-12"
|
|
86
86
|
})(["padding:0 2px;height:24px;visibility:hidden;"]);
|
|
87
87
|
export var StyledFooter = /*#__PURE__*/styled(Box).withConfig({
|
|
88
88
|
displayName: "StyledFooter",
|
|
89
|
-
componentId: "core-
|
|
89
|
+
componentId: "core-12_9_0__sc-1uf5708-13"
|
|
90
90
|
})(["border-top:1px solid ", ";"], colors.gray85);
|
|
91
91
|
export var StyledHeader = /*#__PURE__*/styled.div.withConfig({
|
|
92
92
|
displayName: "StyledHeader",
|
|
93
|
-
componentId: "core-
|
|
93
|
+
componentId: "core-12_9_0__sc-1uf5708-14"
|
|
94
94
|
})([""]);
|
|
95
95
|
export var StyledEmptyMessage = /*#__PURE__*/styled.div.withConfig({
|
|
96
96
|
displayName: "StyledEmptyMessage",
|
|
97
|
-
componentId: "core-
|
|
97
|
+
componentId: "core-12_9_0__sc-1uf5708-15"
|
|
98
98
|
})(["", ";padding:", "px ", "px;color:", ";"], getTypographyIntent('body'), spacing.md, spacing.lg, colors.gray45);
|
|
99
99
|
export var StyledSearchContainer = /*#__PURE__*/styled.div.withConfig({
|
|
100
100
|
displayName: "StyledSearchContainer",
|
|
101
|
-
componentId: "core-
|
|
101
|
+
componentId: "core-12_9_0__sc-1uf5708-16"
|
|
102
102
|
})(["padding:", "px ", "px ", "px;", " > *{pointer-events:none;}"], spacing.lg, spacing.lg, spacing.sm, StyledButton);
|
|
103
103
|
export var StyledGroup = /*#__PURE__*/styled.div.withConfig({
|
|
104
104
|
displayName: "StyledGroup",
|
|
105
|
-
componentId: "core-
|
|
105
|
+
componentId: "core-12_9_0__sc-1uf5708-17"
|
|
106
106
|
})(["", " color:", ";cursor:", ";font-weight:", ";padding:", "px ", "px;&:not(:first-child){padding-top:", "px;}&&{padding:0;}", "{padding:", "px ", " px;}&:not(:first-child){", "{padding-top:", " px;}}"], getTypographyIntent('body'), colors.gray15, function (_ref4) {
|
|
107
107
|
var $clickable = _ref4.$clickable;
|
|
108
108
|
return $clickable ? 'pointer' : 'default';
|
|
109
109
|
}, typographyWeights.semibold, spacing.xs, spacing.lg, spacing.md + spacing.xs, StyledOptionGroupLabel, spacing.xs, spacing.lg, StyledOptionGroupLabel, spacing.md + spacing.xs);
|
|
110
110
|
export var StyledItem = /*#__PURE__*/styled.div.withConfig({
|
|
111
111
|
displayName: "StyledItem",
|
|
112
|
-
componentId: "core-
|
|
112
|
+
componentId: "core-12_9_0__sc-1uf5708-18"
|
|
113
113
|
})(["", ";align-items:center;cursor:pointer;list-style-type:none;display:flex;padding:0;", " ", " ", " a{color:", ";display:block;margin:-", "px -", "px;padding:", "px ", "px;text-decoration:none;&:hover{color:", ";text-decoration:none;}}&[data-highlighted='true']{background-color:", ";}", " &:hover,&:active{", "{visibility:visible;}}", "{color:inherit;cursor:pointer;}", " ", " ", ""], getTypographyIntent('body'), function (_ref5) {
|
|
114
114
|
var $emptyMinHeight = _ref5.$emptyMinHeight;
|
|
115
115
|
return css(["&:empty{min-height:", "px;}"], $emptyMinHeight);
|
|
@@ -147,50 +147,50 @@ export var StyledItem = /*#__PURE__*/styled.div.withConfig({
|
|
|
147
147
|
});
|
|
148
148
|
export var StyledDroppable = /*#__PURE__*/styled.div.withConfig({
|
|
149
149
|
displayName: "StyledDroppable",
|
|
150
|
-
componentId: "core-
|
|
150
|
+
componentId: "core-12_9_0__sc-1uf5708-19"
|
|
151
151
|
})(["", ",", "{padding-left:28px;}"], StyledGroup, StyledItem);
|
|
152
152
|
export var StyledSelectMenu = /*#__PURE__*/styled(Card).withConfig({
|
|
153
153
|
displayName: "StyledSelectMenu",
|
|
154
|
-
componentId: "core-
|
|
154
|
+
componentId: "core-12_9_0__sc-1uf5708-20"
|
|
155
155
|
})(["display:flex;max-height:40vh;max-width:", "px;min-width:inherit;"], styledSelectButtonDefaultWidth);
|
|
156
156
|
export var StyledLabel = /*#__PURE__*/styled.div.withConfig({
|
|
157
157
|
displayName: "StyledLabel",
|
|
158
|
-
componentId: "core-
|
|
158
|
+
componentId: "core-12_9_0__sc-1uf5708-21"
|
|
159
159
|
})(["", " flex-grow:1;margin-right:", "px;outline:none;pointer-events:", ";user-select:none;"], getEllipsis(), spacing.sm, function (_ref12) {
|
|
160
160
|
var $hoverable = _ref12.$hoverable;
|
|
161
161
|
return $hoverable ? 'initial' : 'none';
|
|
162
162
|
});
|
|
163
163
|
export var StyledIndicators = /*#__PURE__*/styled.div.withConfig({
|
|
164
164
|
displayName: "StyledIndicators",
|
|
165
|
-
componentId: "core-
|
|
165
|
+
componentId: "core-12_9_0__sc-1uf5708-22"
|
|
166
166
|
})(["align-items:center;align-self:flex-start;display:flex;height:34px;justify-content:flex-end;margin-left:", "px;min-width:40px;width:40px;"], spacing.xs);
|
|
167
167
|
export var StyledClearIcon = /*#__PURE__*/styled(Button).withConfig({
|
|
168
168
|
displayName: "StyledClearIcon",
|
|
169
|
-
componentId: "core-
|
|
169
|
+
componentId: "core-12_9_0__sc-1uf5708-23"
|
|
170
170
|
})([""]);
|
|
171
171
|
export var StyledSpinner = /*#__PURE__*/styled.div.withConfig({
|
|
172
172
|
displayName: "StyledSpinner",
|
|
173
|
-
componentId: "core-
|
|
173
|
+
componentId: "core-12_9_0__sc-1uf5708-24"
|
|
174
174
|
})(["align-items:center;display:flex;flex:0 0 auto;justify-content:center;line-height:0;"]);
|
|
175
175
|
export var StyledArrowContainer = /*#__PURE__*/styled.div.withConfig({
|
|
176
176
|
displayName: "StyledArrowContainer",
|
|
177
|
-
componentId: "core-
|
|
177
|
+
componentId: "core-12_9_0__sc-1uf5708-25"
|
|
178
178
|
})(["align-items:center;display:inline-flex;height:16px;justify-content:flex-end;margin-left:", "px;width:8px;"], spacing.sm);
|
|
179
179
|
export var StyledArrow = /*#__PURE__*/styled.span.withConfig({
|
|
180
180
|
displayName: "StyledArrow",
|
|
181
|
-
componentId: "core-
|
|
181
|
+
componentId: "core-12_9_0__sc-1uf5708-26"
|
|
182
182
|
})(["display:inline-flex;svg{fill:", ";}"], colors.gray45);
|
|
183
183
|
export var StyledArrowOutline = /*#__PURE__*/styled.polygon.withConfig({
|
|
184
184
|
displayName: "StyledArrowOutline",
|
|
185
|
-
componentId: "core-
|
|
185
|
+
componentId: "core-12_9_0__sc-1uf5708-27"
|
|
186
186
|
})([""]);
|
|
187
187
|
export var StyledArrowFill = /*#__PURE__*/styled.polygon.withConfig({
|
|
188
188
|
displayName: "StyledArrowFill",
|
|
189
|
-
componentId: "core-
|
|
189
|
+
componentId: "core-12_9_0__sc-1uf5708-28"
|
|
190
190
|
})([""]);
|
|
191
191
|
export var StyledTrigger = /*#__PURE__*/styled.div.withConfig({
|
|
192
192
|
displayName: "StyledTrigger",
|
|
193
|
-
componentId: "core-
|
|
193
|
+
componentId: "core-12_9_0__sc-1uf5708-29"
|
|
194
194
|
})(["", " align-items:center;background-color:", ";border-color:", ";border-radius:", "px;border-style:solid;border-width:1px;color:", ";cursor:pointer;display:inline-flex;height:36px;min-height:36px;outline:none;padding:0 ", "px;position:relative;white-space:nowrap;width:", ";&::placeholder{border-color:", ";}&:hover,&:active,&[data-qa=", "]{background-color:", ";border-color:", ";color:", ";}&:focus,&[data-qa=", "]{", " ", "{stroke:", ";}}", " ", " ", " ", " ", " ", " ", "}"], getTypographyIntent('body'), colors.white, colors.gray70, borderRadius.md, colors.gray15, spacing.md, function (_ref13) {
|
|
195
195
|
var $block = _ref13.$block;
|
|
196
196
|
return $block ? '100%' : "".concat(styledSelectButtonDefaultWidth, "px");
|
|
@@ -225,31 +225,31 @@ export var StyledTrigger = /*#__PURE__*/styled.div.withConfig({
|
|
|
225
225
|
});
|
|
226
226
|
export var StyledOverlay = /*#__PURE__*/styled(Card).withConfig({
|
|
227
227
|
displayName: "StyledOverlay",
|
|
228
|
-
componentId: "core-
|
|
228
|
+
componentId: "core-12_9_0__sc-1uf5708-30"
|
|
229
229
|
})(["display:flex;flex-direction:column;"]);
|
|
230
230
|
export var StyledVirtuoso = /*#__PURE__*/styled(Virtuoso).withConfig({
|
|
231
231
|
displayName: "StyledVirtuoso",
|
|
232
|
-
componentId: "core-
|
|
232
|
+
componentId: "core-12_9_0__sc-1uf5708-31"
|
|
233
233
|
})(["flex:1 1 auto;"]);
|
|
234
234
|
export var StyledEllipses = /*#__PURE__*/styled.div.withConfig({
|
|
235
235
|
displayName: "StyledEllipses",
|
|
236
|
-
componentId: "core-
|
|
236
|
+
componentId: "core-12_9_0__sc-1uf5708-32"
|
|
237
237
|
})(["", " display:inline-flex;> div{display:inline-flex;width:100%;}"], getEllipsis());
|
|
238
238
|
export var StyledMultiValueContainer = /*#__PURE__*/styled.div.withConfig({
|
|
239
239
|
displayName: "StyledMultiValueContainer",
|
|
240
|
-
componentId: "core-
|
|
240
|
+
componentId: "core-12_9_0__sc-1uf5708-33"
|
|
241
241
|
})(["display:flex;flex-wrap:wrap;margin-bottom:2px;margin-right:", "px;margin-top:2px;min-width:0;width:100%;"], spacing.xs);
|
|
242
242
|
export var StyledMultiValue = /*#__PURE__*/styled.div.withConfig({
|
|
243
243
|
displayName: "StyledMultiValue",
|
|
244
|
-
componentId: "core-
|
|
244
|
+
componentId: "core-12_9_0__sc-1uf5708-34"
|
|
245
245
|
})(["margin-bottom:2px;margin-right:", "px;margin-top:2px;flex:0 1 auto;> div{max-width:178px;width:100%;}"], spacing.xs);
|
|
246
246
|
export var StyledMultiInputContainer = /*#__PURE__*/styled.div.withConfig({
|
|
247
247
|
displayName: "StyledMultiInputContainer",
|
|
248
|
-
componentId: "core-
|
|
248
|
+
componentId: "core-12_9_0__sc-1uf5708-35"
|
|
249
249
|
})(["margin-bottom:2px;margin-right:", "px;margin-top:2px;flex:1;max-width:100%;min-width:24px;"], spacing.xs);
|
|
250
250
|
export var StyledMultiInput = /*#__PURE__*/styled.input.withConfig({
|
|
251
251
|
displayName: "StyledMultiInput",
|
|
252
|
-
componentId: "core-
|
|
252
|
+
componentId: "core-12_9_0__sc-1uf5708-36"
|
|
253
253
|
})(["background-color:transparent;border-width:0;font-family:inherit;padding:0;height:24px;width:100%;", " ", " &::-ms-clear{display:none;}&:focus{box-shadow:none;outline:none;}&::placeholder{color:", ";}"], getTypographyIntent('body'), function (_ref21) {
|
|
254
254
|
var $isNavigatingTokens = _ref21.$isNavigatingTokens;
|
|
255
255
|
return $isNavigatingTokens && css(["color:transparent;"]);
|
|
@@ -8,19 +8,19 @@ var trackWidth = 36;
|
|
|
8
8
|
var toggleSize = 16;
|
|
9
9
|
export var StyledTrack = /*#__PURE__*/styled.div.withConfig({
|
|
10
10
|
displayName: "StyledTrack",
|
|
11
|
-
componentId: "core-
|
|
11
|
+
componentId: "core-12_9_0__sc-mwn4kg-0"
|
|
12
12
|
})(["background-color:", ";border-radius:", "px;height:", "px;width:", "px;position:relative;transition:0.2s;"], colors.gray70, trackHeight, trackHeight, trackWidth);
|
|
13
13
|
export var StyledToggle = /*#__PURE__*/styled.span.withConfig({
|
|
14
14
|
displayName: "StyledToggle",
|
|
15
|
-
componentId: "core-
|
|
15
|
+
componentId: "core-12_9_0__sc-mwn4kg-1"
|
|
16
16
|
})(["background-color:", ";border-radius:50%;bottom:2px;height:", "px;left:2px;position:absolute;transition:all 0.2s;width:", "px;"], colors.white, toggleSize, toggleSize);
|
|
17
17
|
export var StyledSwitchLabel = /*#__PURE__*/styled.span.withConfig({
|
|
18
18
|
displayName: "StyledSwitchLabel",
|
|
19
|
-
componentId: "core-
|
|
19
|
+
componentId: "core-12_9_0__sc-mwn4kg-2"
|
|
20
20
|
})(["", " padding-left:", "px;user-select:none;"], getTypographyIntent('body'), spacing.md);
|
|
21
21
|
export var StyledSwitchContainer = /*#__PURE__*/styled.label.withConfig({
|
|
22
22
|
displayName: "StyledSwitchContainer",
|
|
23
|
-
componentId: "core-
|
|
23
|
+
componentId: "core-12_9_0__sc-mwn4kg-3"
|
|
24
24
|
})(["cursor:pointer;display:grid;grid-template-columns:", "px 1fr;position:relative;& + &{margin-top:", "px;}", " ", " ", ""], trackWidth, spacing.md, function (_ref) {
|
|
25
25
|
var $checked = _ref.$checked;
|
|
26
26
|
return $checked && css(["", "{background-color:", ";", "{transform:translateX(", "px);}}"], StyledTrack, colors.blue50, StyledToggle, spacing.lg);
|
|
@@ -47,26 +47,26 @@ var tableCellInputErrorBorder = "1px solid ".concat(colors.red50);
|
|
|
47
47
|
var tableRowBorderBottom = /*#__PURE__*/css(["border-bottom:", ";&:last-child{border-bottom:0;}"], tableBorder);
|
|
48
48
|
export var StyledTableHeaderCellSortableContainer = /*#__PURE__*/styled.div.withConfig({
|
|
49
49
|
displayName: "StyledTableHeaderCellSortableContainer",
|
|
50
|
-
componentId: "core-
|
|
50
|
+
componentId: "core-12_9_0__sc-9c7xd-0"
|
|
51
51
|
})([""]);
|
|
52
52
|
export var StyledTableHeaderCellLabel = /*#__PURE__*/styled.div.withConfig({
|
|
53
53
|
displayName: "StyledTableHeaderCellLabel",
|
|
54
|
-
componentId: "core-
|
|
54
|
+
componentId: "core-12_9_0__sc-9c7xd-1"
|
|
55
55
|
})(["display:inline-block;flex:1 1 auto;position:relative;"]);
|
|
56
56
|
export var StyledCheckbox = /*#__PURE__*/styled(Checkbox).withConfig({
|
|
57
57
|
displayName: "StyledCheckbox",
|
|
58
|
-
componentId: "core-
|
|
58
|
+
componentId: "core-12_9_0__sc-9c7xd-2"
|
|
59
59
|
})([""]);
|
|
60
60
|
export var StyledTableBodyCell = /*#__PURE__*/styled.td.withConfig({
|
|
61
61
|
displayName: "StyledTableBodyCell",
|
|
62
|
-
componentId: "core-
|
|
62
|
+
componentId: "core-12_9_0__sc-9c7xd-3"
|
|
63
63
|
})(["position:relative;vertical-align:middle;", ""], function (_ref) {
|
|
64
64
|
var $snugfit = _ref.$snugfit;
|
|
65
65
|
return $snugfit && css(["white-space:nowrap;width:0.1%;"]);
|
|
66
66
|
});
|
|
67
67
|
export var StyledTableHeaderCell = /*#__PURE__*/styled.th.withConfig({
|
|
68
68
|
displayName: "StyledTableHeaderCell",
|
|
69
|
-
componentId: "core-
|
|
69
|
+
componentId: "core-12_9_0__sc-9c7xd-4"
|
|
70
70
|
})(["", " font-weight:", ";border-right:", ";color:", ";height:", "px;padding:", "px;position:relative;text-align:left;transition:background-color 0.2s ease-in-out;&:last-child{border-right:0;}", "{display:flex;align-items:center;}", "{", "{min-height:14px;}}", " ", " ", " ", " ", ""], getTypographyIntent('small'), tableHeaderFontWeight, tableHeaderBorderRight, tableHeaderFontColor, tableHeaderHeight, tableHeaderPadding, StyledTableHeaderCellSortableContainer, StyledTableHeaderCellSortableContainer, StyledTableHeaderCellLabel, function (_ref2) {
|
|
71
71
|
var $sortable = _ref2.$sortable;
|
|
72
72
|
return $sortable && css(["cursor:pointer;padding:", "px;", ",", "{color:", ";opacity:0;transition:all 0.15s ease-in-out;position:absolute;}::before,::after{font-size:16px;}&:hover{background-color:", ";", "{color:", ";}}"], spacing.lg, StyledTableHeaderCellSortIconAsc, StyledTableHeaderCellSortIconDesc, tableSortFontColor, tableHeaderBgColorHover, StyledTableHeaderCellSortIconAsc, tableSortFontColorHover);
|
|
@@ -85,27 +85,27 @@ export var StyledTableHeaderCell = /*#__PURE__*/styled.th.withConfig({
|
|
|
85
85
|
});
|
|
86
86
|
export var StyledTableHeaderCellIconWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
87
87
|
displayName: "StyledTableHeaderCellIconWrapper",
|
|
88
|
-
componentId: "core-
|
|
88
|
+
componentId: "core-12_9_0__sc-9c7xd-5"
|
|
89
89
|
})(["height:20px;line-height:20px;padding:0 ", "px 0 ", "px;width:20px;"], spacing.lg, spacing.sm);
|
|
90
90
|
export var StyledTableHeaderCellSortIconAsc = /*#__PURE__*/styled(CaretUp).withConfig({
|
|
91
91
|
displayName: "StyledTableHeaderCellSortIconAsc",
|
|
92
|
-
componentId: "core-
|
|
92
|
+
componentId: "core-12_9_0__sc-9c7xd-6"
|
|
93
93
|
})(["margin-top:-", "px;"], spacing.sm);
|
|
94
94
|
export var StyledTableHeaderCellSortIconDesc = /*#__PURE__*/styled(CaretDown).withConfig({
|
|
95
95
|
displayName: "StyledTableHeaderCellSortIconDesc",
|
|
96
|
-
componentId: "core-
|
|
96
|
+
componentId: "core-12_9_0__sc-9c7xd-7"
|
|
97
97
|
})([""]);
|
|
98
98
|
export var StyledHead = /*#__PURE__*/styled.thead.withConfig({
|
|
99
99
|
displayName: "StyledHead",
|
|
100
|
-
componentId: "core-
|
|
100
|
+
componentId: "core-12_9_0__sc-9c7xd-8"
|
|
101
101
|
})(["background-color:", ";transition:background-color 0.2s ease-in-out;", " &:hover{", "{", ",", "{&::after,&::before{opacity:1;}}}}"], tableHeaderBgColor, tableRowBorderBottom, StyledTableHeaderCell, StyledTableHeaderCellSortIconAsc, StyledTableHeaderCellSortIconDesc);
|
|
102
102
|
export var StyledCaratWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
103
103
|
displayName: "StyledCaratWrapper",
|
|
104
|
-
componentId: "core-
|
|
104
|
+
componentId: "core-12_9_0__sc-9c7xd-9"
|
|
105
105
|
})(["font-size:16px;color:", ";padding-right:", "px;transition:all 0.2s ease-in-out;& + ", "{margin:0 ", "px;}"], colors.gray70, spacing.xs, StyledCheckbox, spacing.xs);
|
|
106
106
|
export var StyledCarat = /*#__PURE__*/styled(ChevronRight).withConfig({
|
|
107
107
|
displayName: "StyledCarat",
|
|
108
|
-
componentId: "core-
|
|
108
|
+
componentId: "core-12_9_0__sc-9c7xd-10"
|
|
109
109
|
})(["", ""], function (_ref7) {
|
|
110
110
|
var $expanded = _ref7.$expanded;
|
|
111
111
|
return $expanded && css(["transform:rotate(90deg);"]);
|
|
@@ -113,7 +113,7 @@ export var StyledCarat = /*#__PURE__*/styled(ChevronRight).withConfig({
|
|
|
113
113
|
var cellInputCSS = /*#__PURE__*/css(["background-color:rgba(255,255,255,0);&&&{border:", ";border-radius:4px;width:100%;&::placeholder{color:", ";}&::-ms-clear{display:none;}&:hover{border-color:transparent;}&:focus{background-color:", ";border-style:solid;border-width:1px;border-color:", ";box-shadow:0 0 0 1px ", ";outline:none;}&:disabled{border:", ";color:", ";}}"], tableCellInputBorder, tableCellInputPlaceholderColor, colors.white, colors.blue40, colors.blue40, tableCellInputBorder, colors.gray70);
|
|
114
114
|
export var StyledTableCellSelect = /*#__PURE__*/styled(Select).withConfig({
|
|
115
115
|
displayName: "StyledTableCellSelect",
|
|
116
|
-
componentId: "core-
|
|
116
|
+
componentId: "core-12_9_0__sc-9c7xd-11"
|
|
117
117
|
})(["", ";background-color:transparent;border-color:transparent;height:auto;&:hover{background-color:transparent;}&:active:hover{border-color:", ";}&:focus{background-color:", ";cursor:pointer;", " ", "{white-space:nowrap;}", "{opacity:1;pointer-events:all;}", " ", "}", "{white-space:normal;}", ",", "{opacity:0;pointer-events:none;}", " ", ""], cellInputCSS, colors.gray85, colors.white, getFocus(), StyledSelectButtonLabel, StyledSelectArrow, function (_ref8) {
|
|
118
118
|
var $hasClearIcon = _ref8.$hasClearIcon;
|
|
119
119
|
return $hasClearIcon && css(["", "{opacity:1;pointer-events:all;}"], StyledSelectClearIcon);
|
|
@@ -131,25 +131,25 @@ export var StyledTableCellSelect = /*#__PURE__*/styled(Select).withConfig({
|
|
|
131
131
|
});
|
|
132
132
|
export var StyledTableCellInput = /*#__PURE__*/styled(Input).withConfig({
|
|
133
133
|
displayName: "StyledTableCellInput",
|
|
134
|
-
componentId: "core-
|
|
134
|
+
componentId: "core-12_9_0__sc-9c7xd-12"
|
|
135
135
|
})(["", ""], cellInputCSS);
|
|
136
136
|
export var StyledTableCellDateInput = /*#__PURE__*/styled(DateSelect).withConfig({
|
|
137
137
|
displayName: "StyledTableCellDateInput",
|
|
138
|
-
componentId: "core-
|
|
138
|
+
componentId: "core-12_9_0__sc-9c7xd-13"
|
|
139
139
|
})(["background-color:transparent;border-color:transparent;&:active:hover{border-color:", ";}&&&:focus-within{", ";background-color:", ";}", " ", "{opacity:0;}", "{&[data-qa-table-visible='false']{opacity:0;}}", "{&[data-placeholder='true']{opacity:0;}}&:focus-within{", "{opacity:1;}", "{&[data-qa-table-visible='false']{opacity:1;}}", "{&[data-placeholder='true']{opacity:1;}}}"], colors.gray45, getFocus(), colors.white, function (_ref12) {
|
|
140
140
|
var error = _ref12.error;
|
|
141
141
|
return error && css(["border-color:", ";"], colors.red50);
|
|
142
142
|
}, StyledDateInputIconContainer, StyledDateInputDelimiter, StyledDateInputSegment, StyledDateInputIconContainer, StyledDateInputDelimiter, StyledDateInputSegment);
|
|
143
143
|
export var StyledTableCellTextArea = /*#__PURE__*/styled(TextArea).withConfig({
|
|
144
144
|
displayName: "StyledTableCellTextArea",
|
|
145
|
-
componentId: "core-
|
|
145
|
+
componentId: "core-12_9_0__sc-9c7xd-14"
|
|
146
146
|
})(["", " &&{height:", "px;min-height:", "px;overflow:hidden;padding-top:", "px;resize:none;width:100%;", "}"], cellInputCSS, spacing.xxl, spacing.xxl, spacing.xs, function (_ref13) {
|
|
147
147
|
var $resizable = _ref13.$resizable;
|
|
148
148
|
return $resizable && css(["&:focus{min-height:64px;overflow:auto;resize:vertical;}"]);
|
|
149
149
|
});
|
|
150
150
|
export var StyledTableCellText = /*#__PURE__*/styled.div.withConfig({
|
|
151
151
|
displayName: "StyledTableCellText",
|
|
152
|
-
componentId: "core-
|
|
152
|
+
componentId: "core-12_9_0__sc-9c7xd-15"
|
|
153
153
|
})(["margin:", "px;display:flex;color:", ";", ""], spacing.lg, tableCellTextColor, function (_ref14) {
|
|
154
154
|
var $percent = _ref14.$percent,
|
|
155
155
|
$currency = _ref14.$currency;
|
|
@@ -157,15 +157,15 @@ export var StyledTableCellText = /*#__PURE__*/styled.div.withConfig({
|
|
|
157
157
|
});
|
|
158
158
|
export var StyledIconCell = /*#__PURE__*/styled.div.withConfig({
|
|
159
159
|
displayName: "StyledIconCell",
|
|
160
|
-
componentId: "core-
|
|
160
|
+
componentId: "core-12_9_0__sc-9c7xd-16"
|
|
161
161
|
})(["display:flex;color:", ";"], tableCellIconColor);
|
|
162
162
|
export var StyledSelectCellWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
163
163
|
displayName: "StyledSelectCellWrapper",
|
|
164
|
-
componentId: "core-
|
|
164
|
+
componentId: "core-12_9_0__sc-9c7xd-17"
|
|
165
165
|
})(["display:flex;flex-direction:column;"]);
|
|
166
166
|
export var StyledTableInlineEditErrorBox = /*#__PURE__*/styled.div.withConfig({
|
|
167
167
|
displayName: "StyledTableInlineEditErrorBox",
|
|
168
|
-
componentId: "core-
|
|
168
|
+
componentId: "core-12_9_0__sc-9c7xd-18"
|
|
169
169
|
})(["", " color:", ";font-style:italic;background:", ";border-radius:0 2px 2px 2px;box-shadow:0 1px 2px rgba(0,0,0,0.2),0 1px 3px rgba(0,0,0,0.1);padding:6px ", "px;position:absolute;max-width:160px;z-index:1;", ""], getTypographyIntent('small'), colors.white, colors.red50, spacing.md, function (_ref15) {
|
|
170
170
|
var $size = _ref15.$size;
|
|
171
171
|
var sizes = {
|
|
@@ -183,7 +183,7 @@ export var StyledTableInlineEditErrorBox = /*#__PURE__*/styled.div.withConfig({
|
|
|
183
183
|
});
|
|
184
184
|
export var StyledTableInlineEditContainer = /*#__PURE__*/styled.div.withConfig({
|
|
185
185
|
displayName: "StyledTableInlineEditContainer",
|
|
186
|
-
componentId: "core-
|
|
186
|
+
componentId: "core-12_9_0__sc-9c7xd-19"
|
|
187
187
|
})(["background-color:", ";margin:", "px ", "px;position:relative;", " ", ""], tableBgColor, spacing.sm, spacing.xs, function (_ref16) {
|
|
188
188
|
var $error = _ref16.$error;
|
|
189
189
|
return $error && css(["position:static;background-color:", ";", ",", ",", ",", "{border:", ";border-radius:4px 4px 0 0;border-bottom:none;&:hover{border-bottom:none;}&:focus{background-color:", ";border:", ";border-bottom:none;}}"], tableCellInputErrorBgColor, StyledTableCellDateInput, StyledTableCellInput, StyledTableCellSelect, StyledTableCellTextArea, tableCellInputErrorBorder, tableCellInputFocusBgColor, tableCellInputFocusBorder);
|
|
@@ -207,26 +207,26 @@ export var StyledTableInlineEditContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
207
207
|
});
|
|
208
208
|
export var StyledTableBodyRow = /*#__PURE__*/styled.tr.withConfig({
|
|
209
209
|
displayName: "StyledTableBodyRow",
|
|
210
|
-
componentId: "core-
|
|
210
|
+
componentId: "core-12_9_0__sc-9c7xd-20"
|
|
211
211
|
})(["", " ", " &:focus-within{", "{background-color:", ";&.disabled{background-color:transparent;}}", ".error{background-color:", ";}}&:hover{", "{background-color:", ";cursor:pointer;&:hover{background-color:", ";}&.disabled{&,&:hover{background-color:transparent;cursor:default;}}}", ".error{background-color:", ";&:hover{background-color:", ";}", ",", ",", "{border:", ";border-bottom:none;&:hover{border-bottom:none;}&:focus{border:", ";border-bottom:none;}}}}"], tableRowBorderBottom, function (_ref18) {
|
|
212
212
|
var $overdue = _ref18.$overdue;
|
|
213
213
|
return $overdue && css(["", ",", ",", ",", ",", "{color:", ";}"], StyledTableCellText, StyledTableCellSelect, StyledTableCellInput, StyledTableCellDateInput, StyledTableCellTextArea, colors.red50);
|
|
214
214
|
}, StyledTableInlineEditContainer, tableCellInputRowHoverBgColor, StyledTableInlineEditContainer, tableCellInputErrorBgColor, StyledTableInlineEditContainer, tableCellInputRowHoverBgColor, tableCellInputHoverBgColor, StyledTableInlineEditContainer, tableCellInputErrorBgColor, tableCellInputErrorBgColor, StyledTableCellInput, StyledTableCellSelect, StyledTableCellTextArea, tableCellInputErrorBorder, tableCellInputFocusBorder);
|
|
215
215
|
export var StyledTableGroupRowContent = /*#__PURE__*/styled.div.withConfig({
|
|
216
216
|
displayName: "StyledTableGroupRowContent",
|
|
217
|
-
componentId: "core-
|
|
217
|
+
componentId: "core-12_9_0__sc-9c7xd-21"
|
|
218
218
|
})([""]);
|
|
219
219
|
export var StyledTableGroupRowHeader = /*#__PURE__*/styled.div.withConfig({
|
|
220
220
|
displayName: "StyledTableGroupRowHeader",
|
|
221
|
-
componentId: "core-
|
|
221
|
+
componentId: "core-12_9_0__sc-9c7xd-22"
|
|
222
222
|
})([""]);
|
|
223
223
|
export var StyledTableGroupRowTitle = /*#__PURE__*/styled.span.withConfig({
|
|
224
224
|
displayName: "StyledTableGroupRowTitle",
|
|
225
|
-
componentId: "core-
|
|
225
|
+
componentId: "core-12_9_0__sc-9c7xd-23"
|
|
226
226
|
})([""]);
|
|
227
227
|
export var StyledTableGroupRow = /*#__PURE__*/styled.tr.withConfig({
|
|
228
228
|
displayName: "StyledTableGroupRow",
|
|
229
|
-
componentId: "core-
|
|
229
|
+
componentId: "core-12_9_0__sc-9c7xd-24"
|
|
230
230
|
})(["background-color:", ";", " ", "{margin-left:", "px;padding:", "px 0;display:flex;flex-direction:row;}", "{display:flex;align-items:center;}", "{font-weight:", ";padding-left:", "px;}", ""], tableGroupRowBgColor, tableRowBorderBottom, StyledTableGroupRowContent, spacing.lg, spacing.lg, StyledTableGroupRowHeader, StyledTableGroupRowTitle, tableHeaderFontWeight, spacing.lg, function (_ref19) {
|
|
231
231
|
var $depth = _ref19.$depth;
|
|
232
232
|
if (typeof $depth !== 'number') {
|
|
@@ -236,7 +236,7 @@ export var StyledTableGroupRow = /*#__PURE__*/styled.tr.withConfig({
|
|
|
236
236
|
});
|
|
237
237
|
export var StyledTableWrapper = /*#__PURE__*/styled(Card).withConfig({
|
|
238
238
|
displayName: "StyledTableWrapper",
|
|
239
|
-
componentId: "core-
|
|
239
|
+
componentId: "core-12_9_0__sc-9c7xd-25"
|
|
240
240
|
})(["border-radius:", "px;border:", ";", ",tbody{&:first-child{tr:first-child{", ",td{&:first-child{border-top-left-radius:", "px;}&:last-child{border-top-right-radius:", "px;}}}}&:last-child{tr:last-child{", ",td{&:first-child{border-bottom-left-radius:", "px;}&:last-child{border-bottom-right-radius:", "px;}}}}}", ""], tableBorderRadius, tableBorder, StyledHead, StyledTableHeaderCell, tableBorderRadius, tableBorderRadius, StyledTableHeaderCell, tableBorderRadius, tableBorderRadius, function (_ref20) {
|
|
241
241
|
var $withShelf = _ref20.$withShelf;
|
|
242
242
|
return $withShelf && css(["position:relative;height:100%;"]);
|
|
@@ -245,7 +245,7 @@ var BodyRow = StyledTableBodyRow;
|
|
|
245
245
|
var GroupRow = StyledTableGroupRow;
|
|
246
246
|
export var StyledTable = /*#__PURE__*/styled.table.withConfig({
|
|
247
247
|
displayName: "StyledTable",
|
|
248
|
-
componentId: "core-
|
|
248
|
+
componentId: "core-12_9_0__sc-9c7xd-26"
|
|
249
249
|
})(["background-color:", ";border-collapse:collapse;border-radius:", "px;", " width:100%;td:first-child ", "{padding-left:", "px;}", " ", " + ", "{margin-left:", "px;padding-left:0;}", " ", " ", " + ", " > td{padding-left:", "px;}", " + ", " + ", " > td{padding-left:", "px;}", " + ", " + ", " + ", " > td{padding-left:", "px;}", " + ", " + ", " + ", " + ", " > td{padding-left:", "px;}", " ~ ", "{", "{padding-left:0;margin:0 ", "px;}& > td:first-child{padding-left:", "px;}}", " + ", " ~ ", "{& > td:first-child{padding-left:", "px;}}", " + ", " + ", " ~ ", "{& > td:first-child{padding-left:", "px;}}", " + ", " + ", " + ", " ~ ", "{& > td:first-child{padding-left:", "px;}}", " + ", " + ", " + ", " + ", " ~ ", "{& > td:first-child{padding-left:", "px;}}"], tableBgColor, tableBorderRadius, getTypographyIntent('body'), StyledCheckbox, spacing.lg, StyledTableGroupRow, StyledCaratWrapper, StyledCheckbox, spacing.xs, function (_ref21) {
|
|
250
250
|
var $fixed = _ref21.$fixed;
|
|
251
251
|
return $fixed && css(["table-layout:fixed;"]);
|
|
@@ -255,6 +255,6 @@ export var StyledTable = /*#__PURE__*/styled.table.withConfig({
|
|
|
255
255
|
}, GroupRow, GroupRow, tableGroupHeaderRowIndentation, GroupRow, GroupRow, GroupRow, 2 * tableGroupHeaderRowIndentation, GroupRow, GroupRow, GroupRow, GroupRow, 3 * tableGroupHeaderRowIndentation, GroupRow, GroupRow, GroupRow, GroupRow, GroupRow, 4 * tableGroupHeaderRowIndentation, GroupRow, BodyRow, StyledCheckbox, spacing.xs, tableGroupHeaderRowIndentation + tableGroupBodyRowIndentation, GroupRow, GroupRow, BodyRow, 2 * tableGroupHeaderRowIndentation + tableGroupBodyRowIndentation, GroupRow, GroupRow, GroupRow, BodyRow, 3 * tableGroupHeaderRowIndentation + tableGroupBodyRowIndentation, GroupRow, GroupRow, GroupRow, GroupRow, BodyRow, 4 * tableGroupHeaderRowIndentation + tableGroupBodyRowIndentation, GroupRow, GroupRow, GroupRow, GroupRow, GroupRow, BodyRow, 5 * tableGroupHeaderRowIndentation + tableGroupBodyRowIndentation);
|
|
256
256
|
export var StyledLoadingContainer = /*#__PURE__*/styled.div.withConfig({
|
|
257
257
|
displayName: "StyledLoadingContainer",
|
|
258
|
-
componentId: "core-
|
|
258
|
+
componentId: "core-12_9_0__sc-9c7xd-27"
|
|
259
259
|
})(["cursor:default;align-items:center;background:", ";display:flex;height:100%;justify-content:center;opacity:0.9;position:absolute;width:100%;z-index:2;"], colors.gray96);
|
|
260
260
|
//# sourceMappingURL=Table.styles.js.map
|
|
@@ -4,22 +4,22 @@ import { spacing } from '../_styles/spacing';
|
|
|
4
4
|
var tableShelfShadow = '-4px 0px 5px 0px rgba(112, 112, 112, 0.1)';
|
|
5
5
|
export var StyledShelf = /*#__PURE__*/styled.div.withConfig({
|
|
6
6
|
displayName: "StyledShelf",
|
|
7
|
-
componentId: "core-
|
|
7
|
+
componentId: "core-12_9_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_9_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_9_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_9_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_9_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
|
@@ -33,6 +33,7 @@ import { getBoundingRect } from '../_utils/dom';
|
|
|
33
33
|
import { mergeRefs } from '../_utils/mergeRefs';
|
|
34
34
|
import { getStyledComponents, StyledOverlay, StyledTabList, StyledTabs } from './Tabs.styles';
|
|
35
35
|
var ExtraTabSpacing = spacing.xxl;
|
|
36
|
+
var HelixHeaderExtraTabSpacing = spacing.sm;
|
|
36
37
|
function noop() {}
|
|
37
38
|
export var Link = /*#__PURE__*/React.forwardRef(function Link(_ref, ref) {
|
|
38
39
|
var children = _ref.children,
|
|
@@ -179,9 +180,10 @@ var Tabs_ = /*#__PURE__*/React.forwardRef(function Tabs(_ref5, ref) {
|
|
|
179
180
|
return acc;
|
|
180
181
|
}
|
|
181
182
|
var rect = getBoundingRect(el);
|
|
183
|
+
var extraSpace = UNSAFE_helixHeader ? HelixHeaderExtraTabSpacing : ExtraTabSpacing;
|
|
182
184
|
return {
|
|
183
185
|
subtotals: [].concat(_toConsumableArray(acc.subtotals), [acc.total + rect.width]),
|
|
184
|
-
total: acc.total + rect.width +
|
|
186
|
+
total: acc.total + rect.width + extraSpace
|
|
185
187
|
};
|
|
186
188
|
}, {
|
|
187
189
|
subtotals: new Array(),
|
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","noop","Link","forwardRef","_ref","ref","children","_ref$UNSAFE_helixHead","UNSAFE_helixHeader","props","_objectWithoutProperties","_excluded","Styled","createElement","_extends","TabInternal","_ref2","as","disabled","role","_ref2$active","active","onBlur","onFocus","_ref2$onMount","onMount","_ref2$onUnmount","onUnmount","_ref2$overflowing","overflowing","_ref2$dropdown","dropdown","_ref2$variant","variant","_ref2$UNSAFE_helixHea","_excluded2","_ref3","onPress","_useButton","_objectSpread","elementType","isDisabled","type","buttonProps","a11yProps","$clickable","innerRef","useRef","useEffect","current","validChild","isValidElement","tabActive","Tab","$active","$dark","dark","TabInner","cloneElement","undefined","MoreMenu","_ref4","id","ctx","menuRef","_menuRef$current","_menuRef$current$el","_menuRef$current2","_menuRef$current3","el","focus","highlightFirst","highlightSelected","onSelect","selection","hide","event","Options","Children","map","child","i","Item","item","key","selected","Tabs_","Tabs","_ref5","className","_ref5$dark","qa","_ref5$UNSAFE_helixHea","_excluded3","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","subtotals","concat","_toConsumableArray","total","width","Array","index","findIndex","val","onResize","filtered","toArray","filter","slice","isOverflowingActive","some","elements","oldElements","autoFocus","beforeShow","afterHide","trigger","passA11yPropsToOverlay","placement","overlay","DropdownTab","length","DropdownTabInner","more","t","size","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 type {\n DivAttributes,\n NavAttributes,\n Props,\n SpanAttributes,\n} from '../_utils/types'\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\n\nfunction noop() {}\n\nexport const Link = React.forwardRef<\n HTMLSpanElement,\n SpanAttributes &\n Props & {\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 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 } = props as TabProps<'button'>\n\n const { buttonProps } = useButton(\n {\n ...props,\n onBlur: onBlur as (e: React.FocusEvent) => void,\n onFocus: onFocus as (e: React.FocusEvent) => void,\n elementType: role === 'link' ? 'a' : role === 'button' ? 'button' : 'div',\n isDisabled: disabled,\n onPress,\n type: 'button',\n },\n ref as any // TODO fix polymorphic type\n )\n\n const a11yProps =\n role === 'button'\n ? {\n ...buttonProps,\n 'aria-current': active,\n as: as || 'button',\n $clickable: !disabled,\n }\n : role === 'link'\n ? {\n ...buttonProps,\n 'aria-current': active,\n as: as || 'a',\n $clickable: !disabled,\n }\n : role === 'tab'\n ? { role: 'tab', onBlur, onFocus }\n : { 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 tabActive = active || variant === 'active'\n\n const Styled = getStyledComponents(UNSAFE_helixHeader)\n\n return (\n <Styled.Tab\n $active={tabActive}\n $dark={props.dark}\n // @ts-ignore\n ref={mergeRefs(ref, innerRef)}\n {...a11yProps}\n {...props}\n >\n <Styled.TabInner $active={tabActive} $dark={props.dark}>\n {validChild\n ? React.cloneElement(children as React.ReactElement<any, any>, {\n 'aria-current': tabActive ? true : undefined,\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 DivAttributes & TabDropdownProps\n>(function MoreMenu({ children, id }, 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 id={id} role=\"menu\" ref={menuRef} onSelect={onSelect}>\n <MenuImperative.Options>\n {React.Children.map(children, (child, i) => {\n if (React.isValidElement<BaseTabProps>(child)) {\n return (\n <MenuImperative.Item\n item={null}\n key={i}\n selected={child.props.active}\n >\n {React.cloneElement(child as any, { ref: null })}\n </MenuImperative.Item>\n )\n }\n })}\n </MenuImperative.Options>\n </MenuImperative>\n </StyledOverlay>\n )\n})\n\nconst Tabs_ = React.forwardRef<HTMLDivElement, NavAttributes & 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 return {\n subtotals: [...acc.subtotals, acc.total + rect.width],\n total: acc.total + rect.width + ExtraTabSpacing,\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\n const overflowing = filtered.slice(cutoffIndex - 1)\n\n const isOverflowingActive = React.Children.toArray(overflowing).some(\n (child) => React.isValidElement(child) && child.props.active\n )\n\n const Styled = getStyledComponents(UNSAFE_helixHeader)\n\n return (\n <StyledTabs ref={ref} dark={dark} index={cutoffIndex} {...props}>\n <StyledTabList ref={containerRef}>\n {filtered.map((child, i) => {\n if (React.isValidElement(child))\n return React.cloneElement(child, {\n dark,\n onMount: (el: HTMLDivElement) => {\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 } as any) // TODO fix type\n })}\n\n <OverlayTrigger\n autoFocus\n beforeShow={() => setMoreMenuIsShown(true)}\n afterHide={() => setMoreMenuIsShown(false)}\n trigger=\"click\"\n passA11yPropsToOverlay\n placement=\"bottom-right\"\n overlay={<MoreMenu>{overflowing}</MoreMenu>}\n ref={ref}\n role=\"menu\"\n >\n <Styled.DropdownTab\n $active={isOverflowingActive}\n $dark={dark}\n aria-hidden={!overflowing.length}\n as=\"button\"\n >\n <Styled.DropdownTabInner\n $active={isOverflowingActive}\n $dark={dark}\n >\n <Styled.Link data-qa={qa?.more}>\n {i18n.t('core.tabs.more')}\n </Styled.Link>\n {moreMenuIsShown ? (\n <CaretUp size=\"sm\" />\n ) : (\n <CaretDown size=\"sm\" />\n )}\n </Styled.DropdownTabInner>\n </Styled.DropdownTab>\n </OverlayTrigger>\n </StyledTabList>\n </StyledTabs>\n )\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;AAO/C,SACEC,mBAAmB,EACnBC,aAAa,EACbC,aAAa,EACbC,UAAU,QACL,eAAe;AAWtB,IAAMC,eAAe,GAAGR,OAAO,CAACS,GAAG;AAEnC,SAASC,IAAIA,CAAA,EAAG,CAAC;AAEjB,OAAO,IAAMC,IAAI,gBAAGlB,KAAK,CAACmB,UAAU,CAOlC,SAASD,IAAIA,CAAAE,IAAA,EAAqDC,GAAG,EAAE;EAAA,IAAvDC,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U;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAM5D,IAAI,GAAG/F,gBAAgB,CAClC;EACEU,IAAI,EAAJA,IAAI;EACJmD,GAAG,EAAHA;AACF,CAAC,EACDiC,KACF,CAAC"}
|
|
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","Link","forwardRef","_ref","ref","children","_ref$UNSAFE_helixHead","UNSAFE_helixHeader","props","_objectWithoutProperties","_excluded","Styled","createElement","_extends","TabInternal","_ref2","as","disabled","role","_ref2$active","active","onBlur","onFocus","_ref2$onMount","onMount","_ref2$onUnmount","onUnmount","_ref2$overflowing","overflowing","_ref2$dropdown","dropdown","_ref2$variant","variant","_ref2$UNSAFE_helixHea","_excluded2","_ref3","onPress","_useButton","_objectSpread","elementType","isDisabled","type","buttonProps","a11yProps","$clickable","innerRef","useRef","useEffect","current","validChild","isValidElement","tabActive","Tab","$active","$dark","dark","TabInner","cloneElement","undefined","MoreMenu","_ref4","id","ctx","menuRef","_menuRef$current","_menuRef$current$el","_menuRef$current2","_menuRef$current3","el","focus","highlightFirst","highlightSelected","onSelect","selection","hide","event","Options","Children","map","child","i","Item","item","key","selected","Tabs_","Tabs","_ref5","className","_ref5$dark","qa","_ref5$UNSAFE_helixHea","_excluded3","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","Array","index","findIndex","val","onResize","filtered","toArray","filter","slice","isOverflowingActive","some","elements","oldElements","autoFocus","beforeShow","afterHide","trigger","passA11yPropsToOverlay","placement","overlay","DropdownTab","length","DropdownTabInner","more","t","size","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 type {\n DivAttributes,\n NavAttributes,\n Props,\n SpanAttributes,\n} from '../_utils/types'\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() {}\n\nexport const Link = React.forwardRef<\n HTMLSpanElement,\n SpanAttributes &\n Props & {\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 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 } = props as TabProps<'button'>\n\n const { buttonProps } = useButton(\n {\n ...props,\n onBlur: onBlur as (e: React.FocusEvent) => void,\n onFocus: onFocus as (e: React.FocusEvent) => void,\n elementType: role === 'link' ? 'a' : role === 'button' ? 'button' : 'div',\n isDisabled: disabled,\n onPress,\n type: 'button',\n },\n ref as any // TODO fix polymorphic type\n )\n\n const a11yProps =\n role === 'button'\n ? {\n ...buttonProps,\n 'aria-current': active,\n as: as || 'button',\n $clickable: !disabled,\n }\n : role === 'link'\n ? {\n ...buttonProps,\n 'aria-current': active,\n as: as || 'a',\n $clickable: !disabled,\n }\n : role === 'tab'\n ? { role: 'tab', onBlur, onFocus }\n : { 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 tabActive = active || variant === 'active'\n\n const Styled = getStyledComponents(UNSAFE_helixHeader)\n\n return (\n <Styled.Tab\n $active={tabActive}\n $dark={props.dark}\n // @ts-ignore\n ref={mergeRefs(ref, innerRef)}\n {...a11yProps}\n {...props}\n >\n <Styled.TabInner $active={tabActive} $dark={props.dark}>\n {validChild\n ? React.cloneElement(children as React.ReactElement<any, any>, {\n 'aria-current': tabActive ? true : undefined,\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 DivAttributes & TabDropdownProps\n>(function MoreMenu({ children, id }, 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 id={id} role=\"menu\" ref={menuRef} onSelect={onSelect}>\n <MenuImperative.Options>\n {React.Children.map(children, (child, i) => {\n if (React.isValidElement<BaseTabProps>(child)) {\n return (\n <MenuImperative.Item\n item={null}\n key={i}\n selected={child.props.active}\n >\n {React.cloneElement(child as any, { ref: null })}\n </MenuImperative.Item>\n )\n }\n })}\n </MenuImperative.Options>\n </MenuImperative>\n </StyledOverlay>\n )\n})\n\nconst Tabs_ = React.forwardRef<HTMLDivElement, NavAttributes & 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\n const overflowing = filtered.slice(cutoffIndex - 1)\n\n const isOverflowingActive = React.Children.toArray(overflowing).some(\n (child) => React.isValidElement(child) && child.props.active\n )\n\n const Styled = getStyledComponents(UNSAFE_helixHeader)\n\n return (\n <StyledTabs ref={ref} dark={dark} index={cutoffIndex} {...props}>\n <StyledTabList ref={containerRef}>\n {filtered.map((child, i) => {\n if (React.isValidElement(child))\n return React.cloneElement(child, {\n dark,\n onMount: (el: HTMLDivElement) => {\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 } as any) // TODO fix type\n })}\n\n <OverlayTrigger\n autoFocus\n beforeShow={() => setMoreMenuIsShown(true)}\n afterHide={() => setMoreMenuIsShown(false)}\n trigger=\"click\"\n passA11yPropsToOverlay\n placement=\"bottom-right\"\n overlay={<MoreMenu>{overflowing}</MoreMenu>}\n ref={ref}\n role=\"menu\"\n >\n <Styled.DropdownTab\n $active={isOverflowingActive}\n $dark={dark}\n aria-hidden={!overflowing.length}\n as=\"button\"\n >\n <Styled.DropdownTabInner\n $active={isOverflowingActive}\n $dark={dark}\n >\n <Styled.Link data-qa={qa?.more}>\n {i18n.t('core.tabs.more')}\n </Styled.Link>\n {moreMenuIsShown ? (\n <CaretUp size=\"sm\" />\n ) : (\n <CaretDown size=\"sm\" />\n )}\n </Styled.DropdownTabInner>\n </Styled.DropdownTab>\n </OverlayTrigger>\n </StyledTabList>\n </StyledTabs>\n )\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,MA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