@procore/core-react 12.53.3 → 12.53.4
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 +9 -0
- package/dist/AnchorNavigation/AnchorNavigation.styles.js +4 -4
- package/dist/Avatar/Avatar.styles.js +5 -5
- 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.styles.js +10 -10
- package/dist/Box/Box.styles.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
- package/dist/Button/Button.styles.js +5 -5
- package/dist/Calendar/Calendar.js +97 -10
- package/dist/Calendar/Calendar.js.map +1 -1
- package/dist/Calendar/Calendar.styles.d.ts +3 -0
- package/dist/Calendar/Calendar.styles.js +13 -9
- package/dist/Calendar/Calendar.styles.js.map +1 -1
- package/dist/Calendar/Calendar.types.js.map +1 -1
- 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.js +1 -1
- package/dist/DateInput/DateInput.js.map +1 -1
- package/dist/DateInput/DateInput.styles.js +8 -8
- package/dist/DateInput/DateInput.styles.js.map +1 -1
- package/dist/DateSelect/DateSelect.js +60 -29
- package/dist/DateSelect/DateSelect.js.map +1 -1
- package/dist/DateSelect/DateSelect.types.d.ts +2 -2
- package/dist/DateSelect/DateSelect.types.js.map +1 -1
- package/dist/DetailPage/DetailPage.styles.js +7 -7
- 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 +3 -3
- 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 +6 -6
- package/dist/FilterToken/FilterToken.styles.js +5 -5
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.js +5 -0
- package/dist/Form/Form.js.map +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 +8 -8
- package/dist/Loader/Loader.styles.js +2 -2
- package/dist/MenuImperative/MenuImperative.styles.js +11 -11
- package/dist/Modal/Modal.styles.js +13 -13
- package/dist/MultiSelect/MultiSelect.js +3 -1
- package/dist/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/MultiSelect/MultiSelect.styles.js +8 -8
- package/dist/MultiSelect/MultiSelect.types.d.ts +5 -0
- package/dist/MultiSelect/MultiSelect.types.js.map +1 -1
- 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/PageLayout/PageLayout.styles.js +16 -16
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +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 +11 -11
- package/dist/Pill/Pill.styles.js +3 -3
- package/dist/PillSelect/PillSelect.styles.js +5 -5
- 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 +0 -1
- package/dist/Section/Section.js.map +1 -1
- package/dist/Section/Section.styles.js +7 -7
- package/dist/SegmentedController/SegmentedController.styles.js +4 -4
- 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 +8 -8
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +40 -40
- package/dist/SuperSelect/SuperSelect.types.d.ts +7 -0
- package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
- package/dist/SuperSelect/useSuperSelect.d.ts +1 -1
- package/dist/SuperSelect/useSuperSelect.js +7 -2
- package/dist/SuperSelect/useSuperSelect.js.map +1 -1
- package/dist/Switch/Switch.styles.js +4 -4
- package/dist/Table/Table.styles.js +29 -29
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tabs.styles.js +16 -16
- package/dist/Tearsheet/Tearsheet.js +55 -31
- 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.js +21 -21
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
- package/dist/TieredSelect/LeafSelectionTieredSelect.js +3 -1
- package/dist/TieredSelect/LeafSelectionTieredSelect.js.map +1 -1
- package/dist/TieredSelect/TierSelectionTieredSelect.js +3 -1
- package/dist/TieredSelect/TierSelectionTieredSelect.js.map +1 -1
- 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 +5 -5
- package/dist/ToolHeader/ToolHeader.styles.js +6 -6
- package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
- 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/_storyHelpers_/components/Deprecation.styles.js +1 -1
- package/dist/_storyHelpers_/components/StoryGrid.js +3 -3
- 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 +17 -17
- 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 +45 -14
- 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 +875 -773
- 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 +99 -79
- 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 +43 -33
- 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 +33 -33
- package/dist/_typedoc/PageLayout/PageLayout.types.json +40 -40
- 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 +136 -105
- 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 +1 -1
|
@@ -48,38 +48,38 @@ var tableCellInputErrorBorder = "1px solid ".concat(colors.red50);
|
|
|
48
48
|
var tableRowBorderBottom = /*#__PURE__*/css(["border-bottom:", ";&:last-child{border-bottom:0;}"], tableBorder);
|
|
49
49
|
export var StyledTableHeaderCellSortableContainer = /*#__PURE__*/styled.div.withConfig({
|
|
50
50
|
displayName: "StyledTableHeaderCellSortableContainer",
|
|
51
|
-
componentId: "core-
|
|
51
|
+
componentId: "core-12_53_4__sc-9c7xd-0"
|
|
52
52
|
})([""]);
|
|
53
53
|
export var StyledTableHeaderCellLabel = /*#__PURE__*/styled.span.withConfig({
|
|
54
54
|
displayName: "StyledTableHeaderCellLabel",
|
|
55
|
-
componentId: "core-
|
|
55
|
+
componentId: "core-12_53_4__sc-9c7xd-1"
|
|
56
56
|
})(["display:inline-block;flex:1 1 auto;position:relative;"]);
|
|
57
57
|
export var StyledTableHeaderCellIconWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
58
58
|
displayName: "StyledTableHeaderCellIconWrapper",
|
|
59
|
-
componentId: "core-
|
|
59
|
+
componentId: "core-12_53_4__sc-9c7xd-2"
|
|
60
60
|
})(["height:20px;line-height:20px;padding:0 ", "px 0 ", "px;width:20px;"], spacing.lg, spacing.sm);
|
|
61
61
|
export var StyledTableHeaderCellSortIcon = /*#__PURE__*/styled(ArrowUp).withConfig({
|
|
62
62
|
displayName: "StyledTableHeaderCellSortIcon",
|
|
63
|
-
componentId: "core-
|
|
63
|
+
componentId: "core-12_53_4__sc-9c7xd-3"
|
|
64
64
|
})(["height:16px;width:16px;"]);
|
|
65
65
|
export var StyledTableHeaderCellSortButton = /*#__PURE__*/styled.button.withConfig({
|
|
66
66
|
displayName: "StyledTableHeaderCellSortButton",
|
|
67
|
-
componentId: "core-
|
|
67
|
+
componentId: "core-12_53_4__sc-9c7xd-4"
|
|
68
68
|
})(["background:transparent;border:none;color:inherit;display:flex;align-items:center;font:inherit;margin:0;min-height:", "px;padding:", "px;text-align:left;width:100%;&:focus-visible{", " outline-offset:-1px;}", "{min-height:14px;}", "{color:", ";opacity:0;transition:all 0.15s ease-in-out;position:absolute;}::before,::after{font-size:16px;}"], tableHeaderHeight, spacing.lg, getGapOutlineFocus('inside'), StyledTableHeaderCellLabel, StyledTableHeaderCellSortIcon, tableSortFontColor);
|
|
69
69
|
export var StyledCheckbox = /*#__PURE__*/styled(Checkbox).withConfig({
|
|
70
70
|
displayName: "StyledCheckbox",
|
|
71
|
-
componentId: "core-
|
|
71
|
+
componentId: "core-12_53_4__sc-9c7xd-5"
|
|
72
72
|
})([""]);
|
|
73
73
|
export var StyledTableBodyCell = /*#__PURE__*/styled.td.withConfig({
|
|
74
74
|
displayName: "StyledTableBodyCell",
|
|
75
|
-
componentId: "core-
|
|
75
|
+
componentId: "core-12_53_4__sc-9c7xd-6"
|
|
76
76
|
})(["position:relative;vertical-align:middle;", ""], function (_ref) {
|
|
77
77
|
var $snugfit = _ref.$snugfit;
|
|
78
78
|
return $snugfit && css(["white-space:nowrap;width:0.1%;"]);
|
|
79
79
|
});
|
|
80
80
|
export var StyledTableHeaderCell = /*#__PURE__*/styled.th.withConfig({
|
|
81
81
|
displayName: "StyledTableHeaderCell",
|
|
82
|
-
componentId: "core-
|
|
82
|
+
componentId: "core-12_53_4__sc-9c7xd-7"
|
|
83
83
|
})(["", " font-weight:", ";border-right:", ";color:", ";height:", "px;padding:", "px;position:relative;text-align:left;transition:background-color 0.2s ease-in-out;&:last-child{border-right:0;}", "{display:flex;align-items:center;}", " ", " ", " ", ""], getTypographyIntent('small'), tableHeaderFontWeight, tableHeaderBorderRight, tableHeaderFontColor, tableHeaderHeight, tableHeaderPadding, StyledTableHeaderCellSortableContainer, function (_ref2) {
|
|
84
84
|
var $sortable = _ref2.$sortable;
|
|
85
85
|
return $sortable && css(["padding:0;&:hover{background-color:", ";}"], tableHeaderBgColorHover);
|
|
@@ -95,15 +95,15 @@ export var StyledTableHeaderCell = /*#__PURE__*/styled.th.withConfig({
|
|
|
95
95
|
});
|
|
96
96
|
export var StyledHead = /*#__PURE__*/styled.thead.withConfig({
|
|
97
97
|
displayName: "StyledHead",
|
|
98
|
-
componentId: "core-
|
|
98
|
+
componentId: "core-12_53_4__sc-9c7xd-8"
|
|
99
99
|
})(["background-color:", ";transition:background-color 0.2s ease-in-out;", ""], tableHeaderBgColor, tableRowBorderBottom);
|
|
100
100
|
export var StyledCaratWrapper = /*#__PURE__*/styled(Button).withConfig({
|
|
101
101
|
displayName: "StyledCaratWrapper",
|
|
102
|
-
componentId: "core-
|
|
102
|
+
componentId: "core-12_53_4__sc-9c7xd-9"
|
|
103
103
|
})([""]);
|
|
104
104
|
export var StyledCarat = /*#__PURE__*/styled(ChevronRight).withConfig({
|
|
105
105
|
displayName: "StyledCarat",
|
|
106
|
-
componentId: "core-
|
|
106
|
+
componentId: "core-12_53_4__sc-9c7xd-10"
|
|
107
107
|
})(["", ""], function (_ref6) {
|
|
108
108
|
var $expanded = _ref6.$expanded;
|
|
109
109
|
return $expanded && css(["transform:rotate(90deg);"]);
|
|
@@ -111,7 +111,7 @@ export var StyledCarat = /*#__PURE__*/styled(ChevronRight).withConfig({
|
|
|
111
111
|
var cellInputCSS = /*#__PURE__*/css(["background-color:rgba(255,255,255,0);&&&{border:", ";border-radius:4px;width:100%;&::placeholder{color:", ";}&::-ms-clear{display:none;}&:hover{border-color:transparent;}&:focus{background-color:", ";border-style:solid;border-width:1px;border-color:", ";box-shadow:0 0 0 1px ", ";outline:none;}&:disabled{border:", ";color:", ";}}"], tableCellInputBorder, tableCellInputPlaceholderColor, colors.white, colors.blue40, colors.blue40, tableCellInputBorder, colors.gray70);
|
|
112
112
|
export var StyledTableCellSelect = /*#__PURE__*/styled(Select).withConfig({
|
|
113
113
|
displayName: "StyledTableCellSelect",
|
|
114
|
-
componentId: "core-
|
|
114
|
+
componentId: "core-12_53_4__sc-9c7xd-11"
|
|
115
115
|
})(["", ";background-color:transparent;border-color:transparent;height:auto;&:hover{background-color:transparent;}&:active:hover{border-color:", ";}&:focus,", ":focus-within &{background-color:", ";cursor:pointer;", " ", "{white-space:nowrap;}", "{opacity:1;pointer-events:all;}", " ", "}", " ", "{white-space:normal;}", ",& + ", "{opacity:0;pointer-events:none;}", " ", ""], cellInputCSS, colors.gray85, StyledSelectButtonWrapper, colors.white, getFocus(), StyledSelectButtonLabel, StyledSelectArrow, function (_ref7) {
|
|
116
116
|
var $hasClearIcon = _ref7.$hasClearIcon;
|
|
117
117
|
return $hasClearIcon && css(["& + ", "{opacity:1;pointer-events:all;}"], StyledSelectClearIcon);
|
|
@@ -132,25 +132,25 @@ export var StyledTableCellSelect = /*#__PURE__*/styled(Select).withConfig({
|
|
|
132
132
|
});
|
|
133
133
|
export var StyledTableCellInput = /*#__PURE__*/styled(Input).withConfig({
|
|
134
134
|
displayName: "StyledTableCellInput",
|
|
135
|
-
componentId: "core-
|
|
135
|
+
componentId: "core-12_53_4__sc-9c7xd-12"
|
|
136
136
|
})(["", ""], cellInputCSS);
|
|
137
137
|
export var StyledTableCellDateInput = /*#__PURE__*/styled(DateSelect).withConfig({
|
|
138
138
|
displayName: "StyledTableCellDateInput",
|
|
139
|
-
componentId: "core-
|
|
139
|
+
componentId: "core-12_53_4__sc-9c7xd-13"
|
|
140
140
|
})(["background-color:transparent;border-color:transparent;&:active:hover{border-color:", ";}&&&:focus-within{", ";background-color:", ";}", " ", "{opacity:0;}", "{&[data-qa-table-visible='false']{opacity:0;}}", "{&[data-placeholder='true']{opacity:0;}}&:focus-within{", "{opacity:1;}", "{&[data-qa-table-visible='false']{opacity:1;}}", "{&[data-placeholder='true']{opacity:1;}}}"], colors.gray45, getFocus(), colors.white, function (_ref10) {
|
|
141
141
|
var error = _ref10.error;
|
|
142
142
|
return error && css(["border-color:", ";"], colors.red50);
|
|
143
143
|
}, StyledDateInputIconContainer, StyledDateInputDelimiter, StyledDateInputSegment, StyledDateInputIconContainer, StyledDateInputDelimiter, StyledDateInputSegment);
|
|
144
144
|
export var StyledTableCellTextArea = /*#__PURE__*/styled(TextArea).withConfig({
|
|
145
145
|
displayName: "StyledTableCellTextArea",
|
|
146
|
-
componentId: "core-
|
|
146
|
+
componentId: "core-12_53_4__sc-9c7xd-14"
|
|
147
147
|
})(["", " &&{height:", "px;min-height:", "px;overflow:hidden;padding-top:", "px;resize:none;width:100%;", "}"], cellInputCSS, spacing.xxl, spacing.xxl, spacing.xs, function (_ref11) {
|
|
148
148
|
var $resizable = _ref11.$resizable;
|
|
149
149
|
return $resizable && css(["&:focus{min-height:64px;overflow:auto;resize:vertical;}"]);
|
|
150
150
|
});
|
|
151
151
|
export var StyledTableCellText = /*#__PURE__*/styled.div.withConfig({
|
|
152
152
|
displayName: "StyledTableCellText",
|
|
153
|
-
componentId: "core-
|
|
153
|
+
componentId: "core-12_53_4__sc-9c7xd-15"
|
|
154
154
|
})(["margin:", "px;display:flex;color:", ";", ""], spacing.lg, tableCellTextColor, function (_ref12) {
|
|
155
155
|
var $percent = _ref12.$percent,
|
|
156
156
|
$currency = _ref12.$currency;
|
|
@@ -158,22 +158,22 @@ export var StyledTableCellText = /*#__PURE__*/styled.div.withConfig({
|
|
|
158
158
|
});
|
|
159
159
|
export var StyledIconCell = /*#__PURE__*/styled.div.withConfig({
|
|
160
160
|
displayName: "StyledIconCell",
|
|
161
|
-
componentId: "core-
|
|
161
|
+
componentId: "core-12_53_4__sc-9c7xd-16"
|
|
162
162
|
})(["display:flex;color:", ";"], tableCellIconColor);
|
|
163
163
|
export var StyledOverdueIcon = /*#__PURE__*/styled(Error).withConfig({
|
|
164
164
|
displayName: "StyledOverdueIcon",
|
|
165
|
-
componentId: "core-
|
|
165
|
+
componentId: "core-12_53_4__sc-9c7xd-17"
|
|
166
166
|
})(["color:", ";flex-shrink:0;align-self:center;", ""], colors.red50, function (_ref13) {
|
|
167
167
|
var $rightAligned = _ref13.$rightAligned;
|
|
168
168
|
return $rightAligned ? css(["margin-right:", "px;"], spacing.sm) : css(["margin-left:", "px;"], spacing.sm);
|
|
169
169
|
});
|
|
170
170
|
export var StyledSelectCellWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
171
171
|
displayName: "StyledSelectCellWrapper",
|
|
172
|
-
componentId: "core-
|
|
172
|
+
componentId: "core-12_53_4__sc-9c7xd-18"
|
|
173
173
|
})(["display:flex;flex-direction:column;"]);
|
|
174
174
|
export var StyledTableInlineEditErrorBox = /*#__PURE__*/styled.div.withConfig({
|
|
175
175
|
displayName: "StyledTableInlineEditErrorBox",
|
|
176
|
-
componentId: "core-
|
|
176
|
+
componentId: "core-12_53_4__sc-9c7xd-19"
|
|
177
177
|
})(["", " color:", ";font-style:italic;background:", ";border-radius:0 2px 2px 2px;box-shadow:0 1px 2px rgba(0,0,0,0.2),0 1px 3px rgba(0,0,0,0.1);padding:6px ", "px;position:absolute;max-width:160px;z-index:1;", ""], getTypographyIntent('small'), colors.white, colors.red50, spacing.md, function (_ref14) {
|
|
178
178
|
var $size = _ref14.$size;
|
|
179
179
|
var sizes = {
|
|
@@ -191,7 +191,7 @@ export var StyledTableInlineEditErrorBox = /*#__PURE__*/styled.div.withConfig({
|
|
|
191
191
|
});
|
|
192
192
|
export var StyledTableInlineEditContainer = /*#__PURE__*/styled.div.withConfig({
|
|
193
193
|
displayName: "StyledTableInlineEditContainer",
|
|
194
|
-
componentId: "core-
|
|
194
|
+
componentId: "core-12_53_4__sc-9c7xd-20"
|
|
195
195
|
})(["background-color:", ";margin:", "px ", "px;position:relative;", " ", ""], tableBgColor, spacing.sm, spacing.xs, function (_ref15) {
|
|
196
196
|
var $error = _ref15.$error;
|
|
197
197
|
return $error && css(["position:static;background-color:", ";", ",", ",", ",", "{border:", ";border-radius:4px 4px 0 0;border-bottom:none;&:hover{border-bottom:none;}&:focus{background-color:", ";border:", ";border-bottom:none;}}"], tableCellInputErrorBgColor, StyledTableCellDateInput, StyledTableCellInput, StyledTableCellSelect, StyledTableCellTextArea, tableCellInputErrorBorder, tableCellInputFocusBgColor, tableCellInputFocusBorder);
|
|
@@ -215,26 +215,26 @@ export var StyledTableInlineEditContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
215
215
|
});
|
|
216
216
|
export var StyledTableBodyRow = /*#__PURE__*/styled.tr.withConfig({
|
|
217
217
|
displayName: "StyledTableBodyRow",
|
|
218
|
-
componentId: "core-
|
|
218
|
+
componentId: "core-12_53_4__sc-9c7xd-21"
|
|
219
219
|
})(["", " ", " &:focus-within{", "{background-color:", ";&.disabled{background-color:transparent;}}", ".error{background-color:", ";}}&:hover{", "{background-color:", ";cursor:pointer;&:hover{background-color:", ";}&.disabled{&,&:hover{background-color:transparent;cursor:default;}}}", ".error{background-color:", ";&:hover{background-color:", ";}", ",", ",", "{border:", ";border-bottom:none;&:hover{border-bottom:none;}&:focus{border:", ";border-bottom:none;}}}}"], tableRowBorderBottom, function (_ref17) {
|
|
220
220
|
var $overdue = _ref17.$overdue;
|
|
221
221
|
return $overdue && css(["", ",", ",", ",", ",", "{color:", ";}"], StyledTableCellText, StyledTableCellSelect, StyledTableCellInput, StyledTableCellDateInput, StyledTableCellTextArea, colors.red50);
|
|
222
222
|
}, StyledTableInlineEditContainer, tableCellInputRowHoverBgColor, StyledTableInlineEditContainer, tableCellInputErrorBgColor, StyledTableInlineEditContainer, tableCellInputRowHoverBgColor, tableCellInputHoverBgColor, StyledTableInlineEditContainer, tableCellInputErrorBgColor, tableCellInputErrorBgColor, StyledTableCellInput, StyledTableCellSelect, StyledTableCellTextArea, tableCellInputErrorBorder, tableCellInputFocusBorder);
|
|
223
223
|
export var StyledTableGroupRowContent = /*#__PURE__*/styled.div.withConfig({
|
|
224
224
|
displayName: "StyledTableGroupRowContent",
|
|
225
|
-
componentId: "core-
|
|
225
|
+
componentId: "core-12_53_4__sc-9c7xd-22"
|
|
226
226
|
})([""]);
|
|
227
227
|
export var StyledTableGroupRowHeader = /*#__PURE__*/styled.div.withConfig({
|
|
228
228
|
displayName: "StyledTableGroupRowHeader",
|
|
229
|
-
componentId: "core-
|
|
229
|
+
componentId: "core-12_53_4__sc-9c7xd-23"
|
|
230
230
|
})([""]);
|
|
231
231
|
export var StyledTableGroupRowTitle = /*#__PURE__*/styled.span.withConfig({
|
|
232
232
|
displayName: "StyledTableGroupRowTitle",
|
|
233
|
-
componentId: "core-
|
|
233
|
+
componentId: "core-12_53_4__sc-9c7xd-24"
|
|
234
234
|
})([""]);
|
|
235
235
|
export var StyledTableGroupRow = /*#__PURE__*/styled.tr.withConfig({
|
|
236
236
|
displayName: "StyledTableGroupRow",
|
|
237
|
-
componentId: "core-
|
|
237
|
+
componentId: "core-12_53_4__sc-9c7xd-25"
|
|
238
238
|
})(["background-color:", ";", " ", "{margin-left:", "px;padding:", "px 0;display:flex;flex-direction:row;}", "{display:flex;align-items:center;}", "{font-weight:", ";padding-left:", "px;}", ""], tableGroupRowBgColor, tableRowBorderBottom, StyledTableGroupRowContent, spacing.lg, spacing.lg, StyledTableGroupRowHeader, StyledTableGroupRowTitle, tableHeaderFontWeight, spacing.lg, function (_ref18) {
|
|
239
239
|
var $depth = _ref18.$depth;
|
|
240
240
|
if (typeof $depth !== 'number') {
|
|
@@ -244,7 +244,7 @@ export var StyledTableGroupRow = /*#__PURE__*/styled.tr.withConfig({
|
|
|
244
244
|
});
|
|
245
245
|
export var StyledTableWrapper = /*#__PURE__*/styled(Card).withConfig({
|
|
246
246
|
displayName: "StyledTableWrapper",
|
|
247
|
-
componentId: "core-
|
|
247
|
+
componentId: "core-12_53_4__sc-9c7xd-26"
|
|
248
248
|
})(["border-radius:", "px;border:", ";", ",tbody{&:first-child{tr:first-child{", ",td{&:first-child{border-top-left-radius:", "px;}&:last-child{border-top-right-radius:", "px;}}}}&:last-child{tr:last-child{", ",td{&:first-child{border-bottom-left-radius:", "px;}&:last-child{border-bottom-right-radius:", "px;}}}}}", ""], tableBorderRadius, tableBorder, StyledHead, StyledTableHeaderCell, tableBorderRadius, tableBorderRadius, StyledTableHeaderCell, tableBorderRadius, tableBorderRadius, function (_ref19) {
|
|
249
249
|
var $withShelf = _ref19.$withShelf;
|
|
250
250
|
return $withShelf && css(["position:relative;height:100%;"]);
|
|
@@ -253,7 +253,7 @@ var BodyRow = StyledTableBodyRow;
|
|
|
253
253
|
var GroupRow = StyledTableGroupRow;
|
|
254
254
|
export var StyledTable = /*#__PURE__*/styled.table.withConfig({
|
|
255
255
|
displayName: "StyledTable",
|
|
256
|
-
componentId: "core-
|
|
256
|
+
componentId: "core-12_53_4__sc-9c7xd-27"
|
|
257
257
|
})(["background-color:", ";border-collapse:collapse;border-radius:", "px;", " width:100%;td:first-child ", "{padding-left:", "px;}", " ", " + ", "{margin-left:", "px;padding-left:0;}", " ", " ", " + ", " > td{padding-left:", "px;}", " + ", " + ", " > td{padding-left:", "px;}", " + ", " + ", " + ", " > td{padding-left:", "px;}", " + ", " + ", " + ", " + ", " > td{padding-left:", "px;}", " ~ ", "{", "{padding-left:0;margin:0 ", "px;}& > td:first-child{padding-left:", "px;}}", " + ", " ~ ", "{& > td:first-child{padding-left:", "px;}}", " + ", " + ", " ~ ", "{& > td:first-child{padding-left:", "px;}}", " + ", " + ", " + ", " ~ ", "{& > td:first-child{padding-left:", "px;}}", " + ", " + ", " + ", " + ", " ~ ", "{& > td:first-child{padding-left:", "px;}}"], tableBgColor, tableBorderRadius, getTypographyIntent('body'), StyledCheckbox, spacing.lg, StyledTableGroupRow, StyledCaratWrapper, StyledCheckbox, spacing.xs, function (_ref20) {
|
|
258
258
|
var $fixed = _ref20.$fixed;
|
|
259
259
|
return $fixed && css(["table-layout:fixed;"]);
|
|
@@ -263,6 +263,6 @@ export var StyledTable = /*#__PURE__*/styled.table.withConfig({
|
|
|
263
263
|
}, GroupRow, GroupRow, tableGroupHeaderRowIndentation, GroupRow, GroupRow, GroupRow, 2 * tableGroupHeaderRowIndentation, GroupRow, GroupRow, GroupRow, GroupRow, 3 * tableGroupHeaderRowIndentation, GroupRow, GroupRow, GroupRow, GroupRow, GroupRow, 4 * tableGroupHeaderRowIndentation, GroupRow, BodyRow, StyledCheckbox, spacing.xs, tableGroupHeaderRowIndentation + tableGroupBodyRowIndentation, GroupRow, GroupRow, BodyRow, 2 * tableGroupHeaderRowIndentation + tableGroupBodyRowIndentation, GroupRow, GroupRow, GroupRow, BodyRow, 3 * tableGroupHeaderRowIndentation + tableGroupBodyRowIndentation, GroupRow, GroupRow, GroupRow, GroupRow, BodyRow, 4 * tableGroupHeaderRowIndentation + tableGroupBodyRowIndentation, GroupRow, GroupRow, GroupRow, GroupRow, GroupRow, BodyRow, 5 * tableGroupHeaderRowIndentation + tableGroupBodyRowIndentation);
|
|
264
264
|
export var StyledLoadingContainer = /*#__PURE__*/styled.div.withConfig({
|
|
265
265
|
displayName: "StyledLoadingContainer",
|
|
266
|
-
componentId: "core-
|
|
266
|
+
componentId: "core-12_53_4__sc-9c7xd-28"
|
|
267
267
|
})(["cursor:default;align-items:center;background:", ";display:flex;height:100%;justify-content:center;opacity:0.9;position:absolute;width:100%;z-index:2;"], colors.gray96);
|
|
268
268
|
//# 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_53_4__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_53_4__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_53_4__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_53_4__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_53_4__sc-a6498a-4"
|
|
24
24
|
})(["padding:", "px;line-height:13px;"], spacing.lg);
|
|
25
25
|
//# sourceMappingURL=TableShelf.styles.js.map
|
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_53_4__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_53_4__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_53_4__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_53_4__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_53_4__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_53_4__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_53_4__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_53_4__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_53_4__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_53_4__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_53_4__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_53_4__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_53_4__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_53_4__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_53_4__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_53_4__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);
|
|
@@ -78,6 +78,7 @@ export var Tearsheet = /*#__PURE__*/React.forwardRef(function Tearsheet(_ref, re
|
|
|
78
78
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
79
79
|
isVisible = _React$useState6[0],
|
|
80
80
|
setIsVisible = _React$useState6[1];
|
|
81
|
+
var animationGeneration = React.useRef(0);
|
|
81
82
|
var closeBtnRef = React.useRef(null);
|
|
82
83
|
var closeWithConfirmState = useCloseWithConfirmState();
|
|
83
84
|
var closeWithConfirm = closeWithConfirmState.closeWithConfirm;
|
|
@@ -107,10 +108,12 @@ export var Tearsheet = /*#__PURE__*/React.forwardRef(function Tearsheet(_ref, re
|
|
|
107
108
|
React.useEffect(function () {
|
|
108
109
|
// do not run 'closing' animation if the initial state is closed
|
|
109
110
|
if (open) {
|
|
111
|
+
animationGeneration.current += 1;
|
|
110
112
|
setStatus('opening');
|
|
111
113
|
}
|
|
112
114
|
}, []);
|
|
113
115
|
useUpdateEffect(function () {
|
|
116
|
+
animationGeneration.current += 1;
|
|
114
117
|
setStatus(open ? 'opening' : 'closing');
|
|
115
118
|
}, [open]);
|
|
116
119
|
function handleClose() {
|
|
@@ -123,14 +126,17 @@ export var Tearsheet = /*#__PURE__*/React.forwardRef(function Tearsheet(_ref, re
|
|
|
123
126
|
handler: handleClose
|
|
124
127
|
});
|
|
125
128
|
React.useEffect(function () {
|
|
126
|
-
;
|
|
129
|
+
var generation = animationGeneration.current;
|
|
130
|
+
var isCurrentAnimation = function isCurrentAnimation() {
|
|
131
|
+
return generation === animationGeneration.current;
|
|
132
|
+
};
|
|
127
133
|
_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
128
134
|
var _closeBtnRef$current, _registry$current$aft, _iterator, _step, openingPhase, _iterator2, _step2, closingPhase, _t, _t2;
|
|
129
135
|
return _regenerator().w(function (_context) {
|
|
130
136
|
while (1) switch (_context.p = _context.n) {
|
|
131
137
|
case 0:
|
|
132
138
|
if (!(status === 'opening')) {
|
|
133
|
-
_context.n =
|
|
139
|
+
_context.n = 11;
|
|
134
140
|
break;
|
|
135
141
|
}
|
|
136
142
|
setIsVisible(true);
|
|
@@ -139,7 +145,7 @@ export var Tearsheet = /*#__PURE__*/React.forwardRef(function Tearsheet(_ref, re
|
|
|
139
145
|
_iterator.s();
|
|
140
146
|
case 2:
|
|
141
147
|
if ((_step = _iterator.n()).done) {
|
|
142
|
-
_context.n =
|
|
148
|
+
_context.n = 5;
|
|
143
149
|
break;
|
|
144
150
|
}
|
|
145
151
|
openingPhase = _step.value;
|
|
@@ -147,71 +153,89 @@ export var Tearsheet = /*#__PURE__*/React.forwardRef(function Tearsheet(_ref, re
|
|
|
147
153
|
_context.n = 3;
|
|
148
154
|
return wait(animationSpeed[openingPhase]);
|
|
149
155
|
case 3:
|
|
150
|
-
|
|
151
|
-
|
|
156
|
+
if (isCurrentAnimation()) {
|
|
157
|
+
_context.n = 4;
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
return _context.a(2);
|
|
152
161
|
case 4:
|
|
153
|
-
_context.n =
|
|
162
|
+
_context.n = 2;
|
|
154
163
|
break;
|
|
155
164
|
case 5:
|
|
156
|
-
_context.
|
|
157
|
-
|
|
158
|
-
_iterator.e(_t);
|
|
165
|
+
_context.n = 7;
|
|
166
|
+
break;
|
|
159
167
|
case 6:
|
|
160
168
|
_context.p = 6;
|
|
161
|
-
|
|
162
|
-
|
|
169
|
+
_t = _context.v;
|
|
170
|
+
_iterator.e(_t);
|
|
163
171
|
case 7:
|
|
172
|
+
_context.p = 7;
|
|
173
|
+
_iterator.f();
|
|
174
|
+
return _context.f(7);
|
|
175
|
+
case 8:
|
|
164
176
|
setStatus('open');
|
|
165
177
|
setPhase('disabled');
|
|
166
178
|
(_closeBtnRef$current = closeBtnRef.current) === null || _closeBtnRef$current === void 0 || _closeBtnRef$current.focus();
|
|
167
|
-
_context.n =
|
|
179
|
+
_context.n = 9;
|
|
168
180
|
return wait(0);
|
|
169
|
-
case
|
|
181
|
+
case 9:
|
|
182
|
+
if (isCurrentAnimation()) {
|
|
183
|
+
_context.n = 10;
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
return _context.a(2);
|
|
187
|
+
case 10:
|
|
170
188
|
(_registry$current$aft = registry.current.afterShow) === null || _registry$current$aft === void 0 || _registry$current$aft.forEach(function (cb) {
|
|
171
189
|
return cb();
|
|
172
190
|
});
|
|
173
191
|
afterShow === null || afterShow === void 0 || afterShow();
|
|
174
192
|
return _context.a(2);
|
|
175
|
-
case
|
|
193
|
+
case 11:
|
|
176
194
|
if (!(status === 'closing')) {
|
|
177
|
-
_context.n =
|
|
195
|
+
_context.n = 20;
|
|
178
196
|
break;
|
|
179
197
|
}
|
|
180
198
|
_iterator2 = _createForOfIteratorHelper(closingPhasesInOrder);
|
|
181
|
-
_context.p =
|
|
199
|
+
_context.p = 12;
|
|
182
200
|
_iterator2.s();
|
|
183
|
-
case
|
|
201
|
+
case 13:
|
|
184
202
|
if ((_step2 = _iterator2.n()).done) {
|
|
185
|
-
_context.n =
|
|
203
|
+
_context.n = 16;
|
|
186
204
|
break;
|
|
187
205
|
}
|
|
188
206
|
closingPhase = _step2.value;
|
|
189
207
|
setPhase(closingPhase);
|
|
190
|
-
_context.n =
|
|
208
|
+
_context.n = 14;
|
|
191
209
|
return wait(animationSpeed[closingPhase]);
|
|
192
|
-
case
|
|
193
|
-
|
|
210
|
+
case 14:
|
|
211
|
+
if (isCurrentAnimation()) {
|
|
212
|
+
_context.n = 15;
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
return _context.a(2);
|
|
216
|
+
case 15:
|
|
217
|
+
_context.n = 13;
|
|
194
218
|
break;
|
|
195
|
-
case
|
|
196
|
-
_context.n =
|
|
219
|
+
case 16:
|
|
220
|
+
_context.n = 18;
|
|
197
221
|
break;
|
|
198
|
-
case
|
|
199
|
-
_context.p =
|
|
222
|
+
case 17:
|
|
223
|
+
_context.p = 17;
|
|
200
224
|
_t2 = _context.v;
|
|
201
225
|
_iterator2.e(_t2);
|
|
202
|
-
case
|
|
203
|
-
_context.p =
|
|
226
|
+
case 18:
|
|
227
|
+
_context.p = 18;
|
|
204
228
|
_iterator2.f();
|
|
205
|
-
return _context.f(
|
|
206
|
-
case
|
|
229
|
+
return _context.f(18);
|
|
230
|
+
case 19:
|
|
207
231
|
setStatus('closed');
|
|
208
232
|
setPhase('disabled');
|
|
209
233
|
setIsVisible(false);
|
|
210
234
|
afterHide === null || afterHide === void 0 || afterHide();
|
|
211
|
-
case
|
|
235
|
+
case 20:
|
|
212
236
|
return _context.a(2);
|
|
213
237
|
}
|
|
214
|
-
}, _callee, null, [[
|
|
238
|
+
}, _callee, null, [[12, 17, 18, 19], [1, 6, 7, 8]]);
|
|
215
239
|
}))();
|
|
216
240
|
}, [status]);
|
|
217
241
|
if (!isVisible) {
|