@procore/core-react 12.37.0 → 12.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
  3. package/dist/Avatar/Avatar.styles.js +5 -5
  4. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  5. package/dist/Badge/Badge.styles.js +2 -2
  6. package/dist/BadgePill/BadgePill.styles.js +4 -4
  7. package/dist/Banner/Banner.d.ts +2 -1
  8. package/dist/Banner/Banner.js +53 -34
  9. package/dist/Banner/Banner.js.map +1 -1
  10. package/dist/Banner/Banner.styles.js +10 -10
  11. package/dist/Banner/Banner.types.d.ts +6 -0
  12. package/dist/Banner/Banner.types.js.map +1 -1
  13. package/dist/Banner/index.d.ts +1 -1
  14. package/dist/Banner/index.js.map +1 -1
  15. package/dist/Box/Box.styles.js +1 -1
  16. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  17. package/dist/Button/Button.styles.js +5 -5
  18. package/dist/Calendar/Calendar.styles.js +9 -9
  19. package/dist/Card/Card.styles.js +1 -1
  20. package/dist/Checkbox/Checkbox.styles.js +6 -6
  21. package/dist/Checkbox/CheckboxTooltip.js +1 -1
  22. package/dist/ContactItem/ContactItem.styles.js +5 -5
  23. package/dist/Content/Content.styles.js +2 -2
  24. package/dist/DateInput/DateInput.styles.js +6 -6
  25. package/dist/DetailPage/DetailPage.styles.js +7 -7
  26. package/dist/Dropdown/Dropdown.styles.js +3 -3
  27. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  28. package/dist/Dropzone/Dropzone.js +1 -1
  29. package/dist/Dropzone/Dropzone.styles.js +9 -9
  30. package/dist/EmptyState/EmptyState.styles.js +6 -6
  31. package/dist/Field/Field.styles.js +3 -3
  32. package/dist/FileList/FileList.styles.js +4 -4
  33. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  34. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.js +3 -1
  35. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.js.map +1 -1
  36. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  37. package/dist/FileSelect/FileSelect.styles.js +2 -2
  38. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  39. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  40. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  41. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  42. package/dist/FileSelect/SourceItem/SourceItem.js +10 -5
  43. package/dist/FileSelect/SourceItem/SourceItem.js.map +1 -1
  44. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  45. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  46. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  47. package/dist/FileToken/FileToken.styles.js +4 -4
  48. package/dist/FilterToken/FilterToken.styles.js +5 -5
  49. package/dist/FlexList/FlexList.styles.js +1 -1
  50. package/dist/Form/Form.styles.js +14 -14
  51. package/dist/Form/StyledFormikForm.styles.js +2 -2
  52. package/dist/Form/stories/util.js +1 -12
  53. package/dist/Form/stories/util.js.map +1 -1
  54. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  55. package/dist/Grid/Grid.styles.js +2 -2
  56. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  57. package/dist/Input/Input.styles.js +1 -1
  58. package/dist/Link/Link.styles.js +1 -1
  59. package/dist/ListPage/ListPage.styles.js +8 -8
  60. package/dist/Loader/Loader.styles.js +2 -2
  61. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  62. package/dist/Modal/Modal.styles.js +13 -13
  63. package/dist/MultiSelect/MultiSelect.styles.js +7 -7
  64. package/dist/NextMenu/NextMenu.styles.js +3 -3
  65. package/dist/Notation/Notation.js +1 -1
  66. package/dist/NumberInput/NumberInput.styles.js +7 -7
  67. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  68. package/dist/OverlayTrigger/OverlayTrigger.js +4 -2
  69. package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
  70. package/dist/OverlayTrigger/OverlayTrigger.types.d.ts +8 -0
  71. package/dist/OverlayTrigger/OverlayTrigger.types.js.map +1 -1
  72. package/dist/PageLayout/PageLayout.styles.d.ts +1 -0
  73. package/dist/PageLayout/PageLayout.styles.js +17 -17
  74. package/dist/PageLayout/PageLayout.styles.js.map +1 -1
  75. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
  76. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
  77. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
  78. package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
  79. package/dist/Pagination/Pagination.styles.js +5 -5
  80. package/dist/Panel/Panel.styles.js +11 -11
  81. package/dist/Pill/Pill.styles.js +3 -3
  82. package/dist/PillSelect/PillSelect.styles.js +4 -4
  83. package/dist/Popover/Popover.js +2 -1
  84. package/dist/Popover/Popover.js.map +1 -1
  85. package/dist/Popover/Popover.styles.js +2 -2
  86. package/dist/Portal/Portal.styles.js +1 -1
  87. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  88. package/dist/RadioButton/RadioButton.styles.js +3 -3
  89. package/dist/Required/Required.styles.js +3 -3
  90. package/dist/Search/Search.styles.js +5 -5
  91. package/dist/Section/Section.styles.js +7 -7
  92. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  93. package/dist/Select/Select.js +35 -13
  94. package/dist/Select/Select.js.map +1 -1
  95. package/dist/Select/Select.styles.js +8 -8
  96. package/dist/Select/Select.types.d.ts +13 -0
  97. package/dist/Select/Select.types.js.map +1 -1
  98. package/dist/Semantic/Semantic.styles.js +9 -9
  99. package/dist/Slider/Slider.styles.js +5 -5
  100. package/dist/Spinner/Spinner.js +21 -6
  101. package/dist/Spinner/Spinner.js.map +1 -1
  102. package/dist/Spinner/Spinner.styles.js +7 -7
  103. package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
  104. package/dist/SuperSelect/SuperSelect.components.js +6 -15
  105. package/dist/SuperSelect/SuperSelect.components.js.map +1 -1
  106. package/dist/SuperSelect/SuperSelect.js +1 -1
  107. package/dist/SuperSelect/SuperSelect.js.map +1 -1
  108. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  109. package/dist/SuperSelect/SuperSelect.styles.js +38 -38
  110. package/dist/SuperSelect/SuperSelect.types.d.ts +0 -3
  111. package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
  112. package/dist/SuperSelect/useSuperSelect.d.ts +1 -1
  113. package/dist/SuperSelect/useSuperSelect.js +19 -52
  114. package/dist/SuperSelect/useSuperSelect.js.map +1 -1
  115. package/dist/Switch/Switch.styles.js +4 -4
  116. package/dist/Table/Table.styles.js +28 -28
  117. package/dist/TableShelf/TableShelf.styles.js +5 -5
  118. package/dist/Tabs/Tabs.styles.js +15 -15
  119. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  120. package/dist/Tearsheet/storybook/PageLayoutDemo.js +4 -1
  121. package/dist/Tearsheet/storybook/PageLayoutDemo.js.map +1 -1
  122. package/dist/TextArea/TextArea.styles.js +1 -1
  123. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  124. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  125. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  126. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  127. package/dist/Tile/Tile.styles.js +8 -8
  128. package/dist/Title/Title.styles.js +7 -7
  129. package/dist/Toast/Toast.styles.js +3 -3
  130. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  131. package/dist/Token/Token.styles.js +3 -3
  132. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  133. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  134. package/dist/Tooltip/Tooltip.styles.js +2 -2
  135. package/dist/Tree/Tree.js +1 -1
  136. package/dist/Tree/Tree.styles.js +10 -10
  137. package/dist/Typeahead/Typeahead.styles.js +3 -3
  138. package/dist/Typography/Typography.styles.js +1 -1
  139. package/dist/Typography/Typography.table.story.js +2 -2
  140. package/dist/_hooks/I18n.d.ts +4 -19
  141. package/dist/_locales/en.json +3 -1
  142. package/dist/_locales/pseudo.json +3 -1
  143. package/dist/_storyHelpers_/components/Deprecation.styles.js +1 -1
  144. package/dist/_storyHelpers_/components/StoryGrid.js +3 -3
  145. package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +3 -3
  146. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  147. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
  148. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  149. package/dist/_typedoc/Banner/Banner.types.json +39 -13
  150. package/dist/_typedoc/Box/Box.types.json +68 -68
  151. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  152. package/dist/_typedoc/Button/Button.types.json +13 -13
  153. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  154. package/dist/_typedoc/Card/Card.types.json +6 -6
  155. package/dist/_typedoc/Checkbox/Checkbox.types.json +8 -8
  156. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  157. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  158. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  159. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  160. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  161. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +31 -31
  162. package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
  163. package/dist/_typedoc/EmptyState/EmptyState.types.json +16 -16
  164. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  165. package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
  166. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  167. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  168. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  169. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  170. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  171. package/dist/_typedoc/Form/Form.types.json +750 -750
  172. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  173. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  174. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  175. package/dist/_typedoc/Input/Input.types.json +2 -2
  176. package/dist/_typedoc/Link/Link.types.json +1 -1
  177. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  178. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  179. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +77 -77
  180. package/dist/_typedoc/Modal/Modal.types.json +46 -46
  181. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  182. package/dist/_typedoc/NextTile/NextTile.types.json +32 -32
  183. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  184. package/dist/_typedoc/NumberInput/NumberInput.types.json +48 -48
  185. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +42 -32
  186. package/dist/_typedoc/PageLayout/PageLayout.types.json +26 -26
  187. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  188. package/dist/_typedoc/Panel/Panel.types.json +30 -30
  189. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  190. package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
  191. package/dist/_typedoc/Popover/Popover.types.json +15 -15
  192. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
  193. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  194. package/dist/_typedoc/Required/Required.types.json +5 -5
  195. package/dist/_typedoc/Search/Search.types.json +18 -18
  196. package/dist/_typedoc/Section/Section.types.json +15 -15
  197. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
  198. package/dist/_typedoc/Select/Select.types.json +95 -60
  199. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  200. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  201. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  202. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +14 -14
  203. package/dist/_typedoc/Table/Table.types.json +102 -102
  204. package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
  205. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
  206. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  207. package/dist/_typedoc/TextEditor/TextEditor.types.json +11 -11
  208. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  209. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  210. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +43 -43
  211. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +29 -29
  212. package/dist/_typedoc/Tile/Tile.types.json +8 -8
  213. package/dist/_typedoc/Title/Title.types.json +1 -1
  214. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  215. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  216. package/dist/_typedoc/Token/Token.types.json +7 -7
  217. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  218. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +8 -8
  219. package/dist/_typedoc/Tooltip/Tooltip.types.json +14 -14
  220. package/dist/_typedoc/Tree/Tree.types.json +88 -88
  221. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  222. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  223. package/dist/_typedoc/_utils/types.json +3 -3
  224. package/package.json +2 -2
@@ -3,10 +3,10 @@ import { spacing } from '../_styles/spacing';
3
3
  import { FileTokenList } from './FileTokenList';
4
4
  export var StyledFileTokenList = /*#__PURE__*/styled(FileTokenList).withConfig({
5
5
  displayName: "StyledFileTokenList",
6
- componentId: "core-12_37_0__sc-1r3srjk-0"
6
+ componentId: "core-12_38_0__sc-1r3srjk-0"
7
7
  })(["margin-top:", "px;"], spacing.md);
8
8
  export var StyledFileSelect = /*#__PURE__*/styled.div.withConfig({
9
9
  displayName: "StyledFileSelect",
10
- componentId: "core-12_37_0__sc-1r3srjk-1"
10
+ componentId: "core-12_38_0__sc-1r3srjk-1"
11
11
  })(["display:flex;flex-direction:column;"]);
12
12
  //# sourceMappingURL=FileSelect.styles.js.map
@@ -5,20 +5,20 @@ import { spacing } from '../../_styles/spacing';
5
5
  export var dropzoneContainerAttr = 'data-dropzone-container';
6
6
  export var StyledDropzone = /*#__PURE__*/styled(Dropzone).withConfig({
7
7
  displayName: "StyledDropzone",
8
- componentId: "core-12_37_0__sc-ueh7d7-0"
8
+ componentId: "core-12_38_0__sc-ueh7d7-0"
9
9
  })(["", ""], function (_ref) {
10
10
  var hidden = _ref.hidden;
11
11
  return hidden && "\n [".concat(dropzoneContainerAttr, "] {\n align-self: flex-start;\n margin-bottom: ").concat(spacing.xs, "px;\n\n &,\n &:hover {\n width: auto;\n min-height: auto;\n border: none;\n padding: 0;\n background: transparent;\n cursor: default;\n }\n }\n \n ");
12
12
  });
13
13
  export var StyledDropzoneMessage = /*#__PURE__*/styled.span.withConfig({
14
14
  displayName: "StyledDropzoneMessage",
15
- componentId: "core-12_37_0__sc-ueh7d7-1"
15
+ componentId: "core-12_38_0__sc-ueh7d7-1"
16
16
  })(["", ""], function (_ref2) {
17
17
  var error = _ref2.error;
18
18
  return error && "\n color: ".concat(colors.gray15, ";\n ");
19
19
  });
20
20
  export var StyledUploadButtonWrapper = /*#__PURE__*/styled.div.withConfig({
21
21
  displayName: "StyledUploadButtonWrapper",
22
- componentId: "core-12_37_0__sc-ueh7d7-2"
22
+ componentId: "core-12_38_0__sc-ueh7d7-2"
23
23
  })(["display:block;margin-left:auto;margin-right:auto;margin-bottom:", "px;"], spacing.sm);
24
24
  //# sourceMappingURL=FileSelectDropzone.styles.js.map
@@ -3,10 +3,10 @@ import { FileToken } from '../../FileToken/FileToken';
3
3
  import { spacing } from '../../_styles/spacing';
4
4
  export var StyledTokenList = /*#__PURE__*/styled.div.withConfig({
5
5
  displayName: "StyledTokenList",
6
- componentId: "core-12_37_0__sc-u9tli5-0"
6
+ componentId: "core-12_38_0__sc-u9tli5-0"
7
7
  })(["display:flex;flex-wrap:wrap;"]);
8
8
  export var StyledFileToken = /*#__PURE__*/styled(FileToken).withConfig({
9
9
  displayName: "StyledFileToken",
10
- componentId: "core-12_37_0__sc-u9tli5-1"
10
+ componentId: "core-12_38_0__sc-u9tli5-1"
11
11
  })(["margin-bottom:", "px;margin-right:", "px;"], spacing.sm, spacing.sm);
12
12
  //# sourceMappingURL=FileTokenList.styles.js.map
@@ -13,7 +13,7 @@ export var contentHeight = modalBodyWidth - modalBodyBorderTopWidth - toolbarHei
13
13
  // TODO Update box-shadow to use getShadow instead
14
14
  export var StyledToolbar = /*#__PURE__*/styled.div.withConfig({
15
15
  displayName: "StyledToolbar",
16
- componentId: "core-12_37_0__sc-1sj6hvp-0"
16
+ componentId: "core-12_38_0__sc-1sj6hvp-0"
17
17
  })(["display:flex;align-items:center;flex-direction:row;width:100%;min-height:", "px;padding:16px 24px;", " ", " & > * + *{margin-left:", "px;}"], toolbarHeight, function (_ref) {
18
18
  var $alignRight = _ref.$alignRight;
19
19
  return css(["justify-content:", ";"], $alignRight ? 'flex-end' : 'space-between');
@@ -23,23 +23,23 @@ export var StyledToolbar = /*#__PURE__*/styled.div.withConfig({
23
23
  }, spacing.sm);
24
24
  export var StyledSearchWrapper = /*#__PURE__*/styled.div.withConfig({
25
25
  displayName: "StyledSearchWrapper",
26
- componentId: "core-12_37_0__sc-1sj6hvp-1"
26
+ componentId: "core-12_38_0__sc-1sj6hvp-1"
27
27
  })(["width:286px;flex-shrink:1;min-width:180px;"]);
28
28
  export var StyledEmptyStateWrapper = /*#__PURE__*/styled.div.withConfig({
29
29
  displayName: "StyledEmptyStateWrapper",
30
- componentId: "core-12_37_0__sc-1sj6hvp-2"
30
+ componentId: "core-12_38_0__sc-1sj6hvp-2"
31
31
  })(["width:100%;height:100%;display:flex;justify-content:center;align-items:center;"]);
32
32
  export var StyledEmptyState = /*#__PURE__*/styled(EmptyState).withConfig({
33
33
  displayName: "StyledEmptyState",
34
- componentId: "core-12_37_0__sc-1sj6hvp-3"
34
+ componentId: "core-12_38_0__sc-1sj6hvp-3"
35
35
  })(["margin-top:0;margin-bottom:0;img{width:160px;}"]);
36
36
  export var StyledSpinnerWrapper = /*#__PURE__*/styled.div.withConfig({
37
37
  displayName: "StyledSpinnerWrapper",
38
- componentId: "core-12_37_0__sc-1sj6hvp-4"
38
+ componentId: "core-12_38_0__sc-1sj6hvp-4"
39
39
  })(["height:", "px;width:100%;display:flex;align-items:center;justify-content:center;"], contentHeight);
40
40
  export var StyledGrid = /*#__PURE__*/styled.div.withConfig({
41
41
  displayName: "StyledGrid",
42
- componentId: "core-12_37_0__sc-1sj6hvp-5"
42
+ componentId: "core-12_38_0__sc-1sj6hvp-5"
43
43
  })(["display:flex;flex-direction:column;", ""], function (_ref3) {
44
44
  var $isEmpty = _ref3.$isEmpty;
45
45
  return $isEmpty && 'height: 100%;';
@@ -15,21 +15,21 @@ var dropzoneHeightWithIcon = 176;
15
15
  var sourceWidth = 568;
16
16
  export var StyledLocalSource = /*#__PURE__*/styled.div.withConfig({
17
17
  displayName: "StyledLocalSource",
18
- componentId: "core-12_37_0__sc-psqe8z-0"
18
+ componentId: "core-12_38_0__sc-psqe8z-0"
19
19
  })(["display:flex;flex-grow:1;flex-direction:column;align-items:stretch;height:", "px;max-height:", "px;padding:", "px ", "px ", "px ", "px;overflow-y:hidden;"], contentHeight, contentHeight, spacing.xl, spacing.xl + spacing.lg, spacing.xl, spacing.xl);
20
20
  export var StyledDropzoneErrorBanner = /*#__PURE__*/styled(DropzoneErrorBanner).withConfig({
21
21
  displayName: "StyledDropzoneErrorBanner",
22
- componentId: "core-12_37_0__sc-psqe8z-1"
22
+ componentId: "core-12_38_0__sc-psqe8z-1"
23
23
  })(["margin-top:", "px;margin-bottom:", "px;margin-right:2px;"], errorBannerMarginTop, errorBannerMarginBottom);
24
24
  export var StyledDropzoneWrapper = /*#__PURE__*/styled(Dropzone).withConfig({
25
25
  displayName: "StyledDropzoneWrapper",
26
- componentId: "core-12_37_0__sc-psqe8z-2"
26
+ componentId: "core-12_38_0__sc-psqe8z-2"
27
27
  })(["display:flex;height:auto;min-height:", "px;> div:first-child{display:flex;height:auto;}> ", "{display:none;}@media ", "{width:", "px;> div:first-child{height:100%;}}"], function (_ref) {
28
28
  var isIconVisible = _ref.isIconVisible;
29
29
  return isIconVisible ? dropzoneHeightWithIcon : dropzoneHeight;
30
30
  }, DropzoneErrorBanner, mediaIE11Hack, sourceWidth);
31
31
  export var StyledThumbnailList = /*#__PURE__*/styled(ThumbnailList).withConfig({
32
32
  displayName: "StyledThumbnailList",
33
- componentId: "core-12_37_0__sc-psqe8z-3"
33
+ componentId: "core-12_38_0__sc-psqe8z-3"
34
34
  })(["margin-top:", "px;border:", "px solid ", ";"], listMarginTop, listBorderWidth, colors.gray85);
35
35
  //# sourceMappingURL=LocalSource.styles.js.map
@@ -4,8 +4,8 @@ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i
4
4
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
5
  import { Error } from '@procore/core-icons/dist';
6
6
  import React from 'react';
7
- import { Spinner } from '../../Spinner/Spinner';
8
- import { Tooltip } from '../../Tooltip/Tooltip';
7
+ import { Spinner } from '../../Spinner';
8
+ import { Tooltip } from '../../Tooltip';
9
9
  import { OverflowObserver } from '../../_hooks/OverflowObserver';
10
10
  import { StyledIcon, StyledLabel, StyledSourceItem } from './SourceItem.styles';
11
11
  function formatCount(count, truncationThreshold) {
@@ -38,9 +38,11 @@ export var SourceItem = /*#__PURE__*/React.forwardRef(function SourceItem(_ref,
38
38
  _ref$tabIndex = _ref.tabIndex,
39
39
  tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex,
40
40
  props = _objectWithoutProperties(_ref, _excluded);
41
- var tabIndexAttribute = !disabled ? {
41
+ var tabIndexAttribute = disabled ? {
42
+ tabIndex: -1
43
+ } : {
42
44
  tabIndex: tabIndex
43
- } : {};
45
+ };
44
46
  var tooltipId = React.useId();
45
47
  var iconElement = /*#__PURE__*/React.createElement(StyledIcon, null, function () {
46
48
  if (error) {
@@ -58,7 +60,10 @@ export var SourceItem = /*#__PURE__*/React.forwardRef(function SourceItem(_ref,
58
60
  var isOverflowing = _ref2.isOverflowing,
59
61
  labelRef = _ref2.ref;
60
62
  var sourceItem = /*#__PURE__*/React.createElement(StyledSourceItem, _extends({
61
- ref: ref
63
+ ref: ref,
64
+ role: "option",
65
+ "aria-selected": selected,
66
+ "aria-disabled": disabled
62
67
  }, tabIndexAttribute, props, {
63
68
  error: error,
64
69
  selected: selected,
@@ -1 +1 @@
1
- {"version":3,"file":"SourceItem.js","names":["Error","React","Spinner","Tooltip","OverflowObserver","StyledIcon","StyledLabel","StyledSourceItem","formatCount","count","truncationThreshold","concat","SourceItem","forwardRef","_ref","ref","_ref$icon","icon","_ref$count","_ref$countTruncationT","countTruncationThreshold","_ref$loading","loading","_ref$error","error","_ref$selected","selected","_ref$disabled","disabled","_ref$focused","focused","children","_ref$tabIndex","tabIndex","props","_objectWithoutProperties","_excluded","tabIndexAttribute","tooltipId","useId","iconElement","createElement","size","countElement","_ref2","isOverflowing","labelRef","sourceItem","_extends","undefined","showDelay","trigger","overlay","Content","id"],"sources":["../../../src/FileSelect/SourceItem/SourceItem.tsx"],"sourcesContent":["import { Error } from '@procore/core-icons/dist'\nimport React from 'react'\nimport { Spinner } from '../../Spinner/Spinner'\nimport { Tooltip } from '../../Tooltip/Tooltip'\nimport { OverflowObserver } from '../../_hooks/OverflowObserver'\nimport type { Props } from '../../_utils/types'\nimport { StyledIcon, StyledLabel, StyledSourceItem } from './SourceItem.styles'\n\nexport interface SourceItemProps extends Props {\n /**\n * @since 10.19.0\n */\n icon?: React.ReactNode\n /**\n * @since 10.19.0\n */\n count?: number\n /**\n * @since 10.19.0\n */\n countTruncationThreshold?: number\n /**\n * @since 10.19.0\n */\n loading?: boolean\n /**\n * @since 10.19.0\n */\n error?: boolean\n /**\n * @since 10.19.0\n */\n selected?: boolean\n /**\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * @since 10.19.0\n */\n focused?: boolean\n}\n\nfunction formatCount(count: number, truncationThreshold: number): string {\n if (count === 0) {\n return ''\n } else if (count > truncationThreshold) {\n return `(${truncationThreshold}+)`\n } else {\n return `(${count})`\n }\n}\n\nexport const SourceItem = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & SourceItemProps\n>(function SourceItem(\n {\n icon = '',\n count = 0,\n countTruncationThreshold = 99,\n loading = false,\n error = false,\n selected = false,\n disabled = false,\n focused = false,\n children,\n tabIndex = 0,\n ...props\n },\n ref\n) {\n const tabIndexAttribute = !disabled ? { tabIndex } : {}\n const tooltipId = React.useId()\n\n const iconElement = (\n <StyledIcon>\n {(() => {\n if (error) {\n return <Error />\n }\n\n if (loading) {\n return <Spinner size=\"xs\" />\n }\n\n return icon\n })()}\n </StyledIcon>\n )\n\n const countElement = (\n <div>&nbsp;{formatCount(count, countTruncationThreshold)}</div>\n )\n\n return (\n <OverflowObserver>\n {({ isOverflowing, ref: labelRef }: any) => {\n const sourceItem = (\n <StyledSourceItem\n ref={ref}\n {...tabIndexAttribute}\n {...props}\n error={error}\n selected={selected}\n disabled={disabled}\n focused={focused}\n aria-describedby={isOverflowing ? tooltipId : undefined}\n >\n {iconElement}\n <StyledLabel ref={labelRef}>{children}</StyledLabel>\n {countElement}\n </StyledSourceItem>\n )\n\n return isOverflowing ? (\n <Tooltip\n showDelay={500}\n trigger={['hover', 'focus']}\n overlay={\n <Tooltip.Content id={tooltipId}>{children}</Tooltip.Content>\n }\n >\n {sourceItem}\n </Tooltip>\n ) : (\n sourceItem\n )\n }}\n </OverflowObserver>\n )\n})\n"],"mappings":"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"}
1
+ {"version":3,"file":"SourceItem.js","names":["Error","React","Spinner","Tooltip","OverflowObserver","StyledIcon","StyledLabel","StyledSourceItem","formatCount","count","truncationThreshold","concat","SourceItem","forwardRef","_ref","ref","_ref$icon","icon","_ref$count","_ref$countTruncationT","countTruncationThreshold","_ref$loading","loading","_ref$error","error","_ref$selected","selected","_ref$disabled","disabled","_ref$focused","focused","children","_ref$tabIndex","tabIndex","props","_objectWithoutProperties","_excluded","tabIndexAttribute","tooltipId","useId","iconElement","createElement","size","countElement","_ref2","isOverflowing","labelRef","sourceItem","_extends","role","undefined","showDelay","trigger","overlay","Content","id"],"sources":["../../../src/FileSelect/SourceItem/SourceItem.tsx"],"sourcesContent":["import { Error } from '@procore/core-icons/dist'\nimport React from 'react'\nimport { Spinner } from '../../Spinner'\nimport { Tooltip } from '../../Tooltip'\nimport { OverflowObserver } from '../../_hooks/OverflowObserver'\nimport type { Props } from '../../_utils/types'\nimport { StyledIcon, StyledLabel, StyledSourceItem } from './SourceItem.styles'\n\nexport interface SourceItemProps extends Props {\n /**\n * @since 10.19.0\n */\n icon?: React.ReactNode\n /**\n * @since 10.19.0\n */\n count?: number\n /**\n * @since 10.19.0\n */\n countTruncationThreshold?: number\n /**\n * @since 10.19.0\n */\n loading?: boolean\n /**\n * @since 10.19.0\n */\n error?: boolean\n /**\n * @since 10.19.0\n */\n selected?: boolean\n /**\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * @since 10.19.0\n */\n focused?: boolean\n}\n\nfunction formatCount(count: number, truncationThreshold: number): string {\n if (count === 0) {\n return ''\n } else if (count > truncationThreshold) {\n return `(${truncationThreshold}+)`\n } else {\n return `(${count})`\n }\n}\n\nexport const SourceItem = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & SourceItemProps\n>(function SourceItem(\n {\n icon = '',\n count = 0,\n countTruncationThreshold = 99,\n loading = false,\n error = false,\n selected = false,\n disabled = false,\n focused = false,\n children,\n tabIndex = 0,\n ...props\n },\n ref\n) {\n const tabIndexAttribute = disabled ? { tabIndex: -1 } : { tabIndex }\n const tooltipId = React.useId()\n\n const iconElement = (\n <StyledIcon>\n {(() => {\n if (error) {\n return <Error />\n }\n\n if (loading) {\n return <Spinner size=\"xs\" />\n }\n\n return icon\n })()}\n </StyledIcon>\n )\n\n const countElement = (\n <div>&nbsp;{formatCount(count, countTruncationThreshold)}</div>\n )\n\n return (\n <OverflowObserver>\n {({ isOverflowing, ref: labelRef }: any) => {\n const sourceItem = (\n <StyledSourceItem\n ref={ref}\n role=\"option\"\n aria-selected={selected}\n aria-disabled={disabled}\n {...tabIndexAttribute}\n {...props}\n error={error}\n selected={selected}\n disabled={disabled}\n focused={focused}\n aria-describedby={isOverflowing ? tooltipId : undefined}\n >\n {iconElement}\n <StyledLabel ref={labelRef}>{children}</StyledLabel>\n {countElement}\n </StyledSourceItem>\n )\n\n return isOverflowing ? (\n <Tooltip\n showDelay={500}\n trigger={['hover', 'focus']}\n overlay={\n <Tooltip.Content id={tooltipId}>{children}</Tooltip.Content>\n }\n >\n {sourceItem}\n </Tooltip>\n ) : (\n sourceItem\n )\n }}\n </OverflowObserver>\n )\n})\n"],"mappings":"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"}
@@ -8,7 +8,7 @@ var sourceItemPadding = spacing.xl;
8
8
  var focused = /*#__PURE__*/css(["", " padding:0 ", "px 0 ", "px;"], getFocus(), sourceItemPadding - 1, sourceItemPadding - 1);
9
9
  export var StyledSourceItem = /*#__PURE__*/styled.div.withConfig({
10
10
  displayName: "StyledSourceItem",
11
- componentId: "core-12_37_0__sc-plcozv-0"
11
+ componentId: "core-12_38_0__sc-plcozv-0"
12
12
  })(["position:relative;display:flex;align-items:center;padding:0 ", "px 0 ", "px;color:", ";", " cursor:pointer;height:", "px;&:before{content:'';position:absolute;top:0;left:0;display:block;width:4px;height:100%;background-color:", ";transform:scaleX(0);transform-origin:center left;transition:transform 200ms ease-out;z-index:1;}", " ", " ", " ", " ", " &:focus{", "}"], sourceItemPadding, sourceItemPadding, colors.gray45, getTypographyIntent('body'), sourceItemHeight, colors.blue45, function (_ref) {
13
13
  var selected = _ref.selected;
14
14
  return selected && "\n font-weight: 700;\n background-color: ".concat(colors.blue96, ";\n color: ").concat(colors.blue45, ";\n\n ").concat(StyledIcon, " {\n color: ").concat(colors.blue50, ";\n }\n\n &:before {\n transform: scaleX(1);\n }\n ");
@@ -28,10 +28,10 @@ export var StyledSourceItem = /*#__PURE__*/styled.div.withConfig({
28
28
  }, focused);
29
29
  export var StyledIcon = /*#__PURE__*/styled.div.withConfig({
30
30
  displayName: "StyledIcon",
31
- componentId: "core-12_37_0__sc-plcozv-1"
31
+ componentId: "core-12_38_0__sc-plcozv-1"
32
32
  })(["display:flex;align-items:center;justify-content:center;flex-shrink:0;width:48px;height:48px;"]);
33
33
  export var StyledLabel = /*#__PURE__*/styled.div.withConfig({
34
34
  displayName: "StyledLabel",
35
- componentId: "core-12_37_0__sc-plcozv-2"
35
+ componentId: "core-12_38_0__sc-plcozv-2"
36
36
  })(["", ""], getEllipsis());
37
37
  //# sourceMappingURL=SourceItem.styles.js.map
@@ -7,23 +7,23 @@ import { colors } from '../../_styles/colors';
7
7
  import { spacing } from '../../_styles/spacing';
8
8
  export var StyledThumbnailListContainer = /*#__PURE__*/styled.div.withConfig({
9
9
  displayName: "StyledThumbnailListContainer",
10
- componentId: "core-12_37_0__sc-1fz4ynb-0"
10
+ componentId: "core-12_38_0__sc-1fz4ynb-0"
11
11
  })(["display:flex;flex-direction:column;align-items:stretch;outline:none;"]);
12
12
  export var StyledThumbnailList = /*#__PURE__*/styled(List).withConfig({
13
13
  displayName: "StyledThumbnailList",
14
- componentId: "core-12_37_0__sc-1fz4ynb-1"
14
+ componentId: "core-12_38_0__sc-1fz4ynb-1"
15
15
  })(["outline:none;"]);
16
16
  export var StyledThumbnail = /*#__PURE__*/styled(Thumbnail).withConfig({
17
17
  displayName: "StyledThumbnail",
18
- componentId: "core-12_37_0__sc-1fz4ynb-2"
18
+ componentId: "core-12_38_0__sc-1fz4ynb-2"
19
19
  })(["flex-grow:1;justify-content:flex-start;"]);
20
20
  export var StyledProgress = /*#__PURE__*/styled.div.withConfig({
21
21
  displayName: "StyledProgress",
22
- componentId: "core-12_37_0__sc-1fz4ynb-3"
22
+ componentId: "core-12_38_0__sc-1fz4ynb-3"
23
23
  })(["width:146px;padding:0 ", "px 0 ", "px;margin-left:auto;"], spacing.lg, spacing.xl);
24
24
  export var StyledThumbnailListItem = /*#__PURE__*/styled.div.withConfig({
25
25
  displayName: "StyledThumbnailListItem",
26
- componentId: "core-12_37_0__sc-1fz4ynb-4"
26
+ componentId: "core-12_38_0__sc-1fz4ynb-4"
27
27
  })(["display:flex;flex-grow:1;align-items:center;padding:", "px ", "px ", "px ", "px;", " ", " ", " ", ""], spacing.sm, spacing.lg, spacing.sm, spacing.sm, getTypographyIntent('body'), function (_ref) {
28
28
  var error = _ref.error;
29
29
  return !error && "\n &:hover {\n background-color: ".concat(colors.gray96, ";\n }\n ");
@@ -37,6 +37,6 @@ export var StyledThumbnailListItem = /*#__PURE__*/styled.div.withConfig({
37
37
  });
38
38
  export var StyledDeleteIcon = /*#__PURE__*/styled(Button).withConfig({
39
39
  displayName: "StyledDeleteIcon",
40
- componentId: "core-12_37_0__sc-1fz4ynb-5"
40
+ componentId: "core-12_38_0__sc-1fz4ynb-5"
41
41
  })([""]);
42
42
  //# sourceMappingURL=ThumbnailList.styles.js.map
@@ -2,6 +2,6 @@ import styled from 'styled-components';
2
2
  import { modalBodyHeight } from '../FileExplorer/FileExplorer.styles';
3
3
  export var StyledFileTreeSpinner = /*#__PURE__*/styled.div.withConfig({
4
4
  displayName: "StyledFileTreeSpinner",
5
- componentId: "core-12_37_0__sc-wwu3n8-0"
5
+ componentId: "core-12_38_0__sc-wwu3n8-0"
6
6
  })(["display:flex;align-items:center;justify-content:center;height:", "px;"], modalBodyHeight);
7
7
  //# sourceMappingURL=TreeSource.styles.js.map
@@ -6,19 +6,19 @@ export var pulseAnimationDuration = 600;
6
6
  var focusPulse = /*#__PURE__*/keyframes(["0%{box-shadow:0 0 0 0 ", ",0 0 0 0 ", ",0 0 0 0 ", ";}25%{box-shadow:0 0 0 0 ", ",0 0 0 0 ", ",0 0 0 0 ", ";}50%{box-shadow:0 0 0 1px ", ",0 0 0 3px ", ",0 0 0 2px ", ";}100%{box-shadow:0 0 0 1.5px ", ",0 0 0 3px ", ",0 0 0 6px ", ";}"], colors.blue60, colors.blue90, colors.blue94, colors.blue60, colors.blue90, colors.blue94, colors.blue60, colors.blue90, colors.blue94, colors.blue60, colors.blue90, colors.blue94);
7
7
  export var StyledFilenameShortcut = /*#__PURE__*/styled.div.withConfig({
8
8
  displayName: "StyledFilenameShortcut",
9
- componentId: "core-12_37_0__sc-13jx4bx-0"
9
+ componentId: "core-12_38_0__sc-13jx4bx-0"
10
10
  })(["display:flex;"]);
11
11
  export var StyledFilename = /*#__PURE__*/styled.span.withConfig({
12
12
  displayName: "StyledFilename",
13
- componentId: "core-12_37_0__sc-13jx4bx-1"
13
+ componentId: "core-12_38_0__sc-13jx4bx-1"
14
14
  })(["flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;"]);
15
15
  export var StyledExtension = /*#__PURE__*/styled.span.withConfig({
16
16
  displayName: "StyledExtension",
17
- componentId: "core-12_37_0__sc-13jx4bx-2"
17
+ componentId: "core-12_38_0__sc-13jx4bx-2"
18
18
  })(["flex-shrink:0;"]);
19
19
  export var StyledFileToken = /*#__PURE__*/styled.div.withConfig({
20
20
  displayName: "StyledFileToken",
21
- componentId: "core-12_37_0__sc-13jx4bx-3"
21
+ componentId: "core-12_38_0__sc-13jx4bx-3"
22
22
  })(["background-color:", ";border-radius:200px;max-width:100%;outline:none;overflow:hidden;position:relative;&:focus,&.focus{box-shadow:0 0 0 2px ", ";outline:none;", "{border-color:transparent;", "}}", "{background:none;color:", ";display:flex;user-select:none;", "{color:", ";}}", "{overflow:hidden;", "{border-radius:200px 0 0 200px;color:", ";padding-right:0;transition:color 0s linear,background-color 0s linear;user-select:none;", "{flex:0 0 auto;}}}", ""], colors.gray96, colors.blue40, StyledToken, function (_ref) {
23
23
  var $progressComplete = _ref.$progressComplete;
24
24
  return $progressComplete && css(["background-color:", ";"], colors.blue45);
@@ -6,11 +6,11 @@ import { getEllipsis, getFocus } from '../_styles/mixins';
6
6
  import { spacing } from '../_styles/spacing';
7
7
  export var StyledLabel = /*#__PURE__*/styled.span.withConfig({
8
8
  displayName: "StyledLabel",
9
- componentId: "core-12_37_0__sc-1l1h29r-0"
9
+ componentId: "core-12_38_0__sc-1l1h29r-0"
10
10
  })(["", " ", " ", " flex:0 1 auto;"], getTypographyIntent('body'), getEllipsis, semiboldRules);
11
11
  export var StyledFilterToken = /*#__PURE__*/styled.div.withConfig({
12
12
  displayName: "StyledFilterToken",
13
- componentId: "core-12_37_0__sc-1l1h29r-1"
13
+ componentId: "core-12_38_0__sc-1l1h29r-1"
14
14
  })(["align-items:center;background-color:", ";border-radius:4px;border:1px solid transparent;color:", ";cursor:default;display:inline-flex;height:36px;justify-content:space-between;line-height:1;max-width:360px;min-width:48px;padding:", "px ", "px;&:hover,&.hover{background-color:", ";}", ""], colors.blue96, colors.blue45, spacing.sm, spacing.md, colors.blue90, function (_ref) {
15
15
  var _ref$$focused = _ref.$focused,
16
16
  $focused = _ref$$focused === void 0 ? false : _ref$$focused;
@@ -18,17 +18,17 @@ export var StyledFilterToken = /*#__PURE__*/styled.div.withConfig({
18
18
  });
19
19
  export var StyledFilterRemoveButton = /*#__PURE__*/styled.button.withConfig({
20
20
  displayName: "StyledFilterRemoveButton",
21
- componentId: "core-12_37_0__sc-1l1h29r-2"
21
+ componentId: "core-12_38_0__sc-1l1h29r-2"
22
22
  })(["", " ", ";background:transparent;color:", ";&:active,&:focus,&:hover{background:", ";color:", ";}&:disabled{pointer-events:none;user-select:none;}&:disabled,&[aria-disabled='true']{background:transparent;color:", ";}height:24px;margin:0 0 0 6px;padding:0 ", "px;[data-icon-prop='true']{pointer-events:none;height:16px;width:16px;}"], function (_ref2) {
23
23
  var $disabled = _ref2.$disabled;
24
24
  return getButtonStyles(false, $disabled, false, 'sm', 'tertiary');
25
25
  }, getTypographyIntent('small'), colors.blue45, colors.white, colors.blue45, colors.blue45, spacing.xs);
26
26
  export var StyledContent = /*#__PURE__*/styled.span.withConfig({
27
27
  displayName: "StyledContent",
28
- componentId: "core-12_37_0__sc-1l1h29r-3"
28
+ componentId: "core-12_38_0__sc-1l1h29r-3"
29
29
  })(["align-items:center;display:flex;overflow:hidden;"]);
30
30
  export var StyledContentLabel = /*#__PURE__*/styled.span.withConfig({
31
31
  displayName: "StyledContentLabel",
32
- componentId: "core-12_37_0__sc-1l1h29r-4"
32
+ componentId: "core-12_38_0__sc-1l1h29r-4"
33
33
  })(["overflow:hidden;padding:0 6px;text-overflow:ellipsis;white-space:nowrap;& + span{padding-left:0;}"]);
34
34
  //# sourceMappingURL=FilterToken.styles.js.map
@@ -3,7 +3,7 @@ import { StyledBox } from '../Box/Box.styles';
3
3
  import { Flex } from '../Flex/Flex';
4
4
  export var StyledFlex = /*#__PURE__*/styled(Flex).withConfig({
5
5
  displayName: "StyledFlex",
6
- componentId: "core-12_37_0__sc-1quvv61-0"
6
+ componentId: "core-12_38_0__sc-1quvv61-0"
7
7
  })(["> ", "{", "}"], StyledBox, function (_ref) {
8
8
  var $direction = _ref.$direction;
9
9
  if ($direction !== null && $direction !== void 0 && $direction.includes('reverse')) {
@@ -24,7 +24,7 @@ function applyStylesOnlyToIE11(styles) {
24
24
  }
25
25
  export var StyledFormFieldMain = /*#__PURE__*/styled.div.withConfig({
26
26
  displayName: "StyledFormFieldMain",
27
- componentId: "core-12_37_0__sc-ncj3pf-0"
27
+ componentId: "core-12_38_0__sc-ncj3pf-0"
28
28
  })(["-ms-grid-row:2;grid-row:2;", " ", " ", ""], function (_ref) {
29
29
  var $colStart = _ref.$colStart,
30
30
  $colEnd = _ref.$colEnd,
@@ -36,15 +36,15 @@ export var StyledFormFieldMain = /*#__PURE__*/styled.div.withConfig({
36
36
  }, applyStylesOnlyToIE11("\n padding-left: ".concat(columnGutter, ";\n\n &:nth-child(2) {\n padding-left: 0;\n }\n ")));
37
37
  export var StyledLabel = /*#__PURE__*/styled(Label).withConfig({
38
38
  displayName: "StyledLabel",
39
- componentId: "core-12_37_0__sc-ncj3pf-1"
39
+ componentId: "core-12_38_0__sc-ncj3pf-1"
40
40
  })(["word-wrap:break-word;word-break:break-word;"]);
41
41
  export var StyledDescription = /*#__PURE__*/styled.div.withConfig({
42
42
  displayName: "StyledDescription",
43
- componentId: "core-12_37_0__sc-ncj3pf-2"
43
+ componentId: "core-12_38_0__sc-ncj3pf-2"
44
44
  })(["", " color:", ";word-wrap:break-word;word-break:break-word;"], getTypographyIntent('body'), colors.gray45);
45
45
  export var StyledCheckboxInlineDescription = /*#__PURE__*/styled(StyledDescription).withConfig({
46
46
  displayName: "StyledCheckboxInlineDescription",
47
- componentId: "core-12_37_0__sc-ncj3pf-3"
47
+ componentId: "core-12_38_0__sc-ncj3pf-3"
48
48
  })(["margin-top:", "px;", ""], spacing.xs, function (_ref3) {
49
49
  var $read = _ref3.$read;
50
50
  if (!$read) {
@@ -53,7 +53,7 @@ export var StyledCheckboxInlineDescription = /*#__PURE__*/styled(StyledDescripti
53
53
  });
54
54
  export var StyledFormFieldHeader = /*#__PURE__*/styled(StyledFieldHeader).withConfig({
55
55
  displayName: "StyledFormFieldHeader",
56
- componentId: "core-12_37_0__sc-ncj3pf-4"
56
+ componentId: "core-12_38_0__sc-ncj3pf-4"
57
57
  })(["-ms-grid-row:1;grid-row:1;align-self:end;margin-bottom:", "px;", " ", " * + ", "{margin-top:", "px;}"], spacing.xs, function (_ref4) {
58
58
  var $colStart = _ref4.$colStart,
59
59
  $colEnd = _ref4.$colEnd,
@@ -62,7 +62,7 @@ export var StyledFormFieldHeader = /*#__PURE__*/styled(StyledFieldHeader).withCo
62
62
  }, applyStylesOnlyToIE11("\n padding-left: ".concat(columnGutter, ";\n\n &:first-child {\n padding-left: 0;\n }\n\n ").concat(StyledFormFieldMain, " {\n padding-left: ").concat(columnGutter, ";\n\n &:nth-child(2) {\n padding-left: 0;\n }\n }\n ")), StyledDescription, spacing.xs);
63
63
  export var StyledFormFieldRequiredMark = /*#__PURE__*/styled(Required).withConfig({
64
64
  displayName: "StyledFormFieldRequiredMark",
65
- componentId: "core-12_37_0__sc-ncj3pf-5"
65
+ componentId: "core-12_38_0__sc-ncj3pf-5"
66
66
  })(["padding-left:", "px;vertical-align:top;"], spacing.xs);
67
67
  export var dataQaFieldTooltipIcon = 'form-field-tooltip-icon';
68
68
  export var StyledFormFieldTooltipIcon = /*#__PURE__*/styled(Help).attrs(function () {
@@ -71,20 +71,20 @@ export var StyledFormFieldTooltipIcon = /*#__PURE__*/styled(Help).attrs(function
71
71
  };
72
72
  }).withConfig({
73
73
  displayName: "StyledFormFieldTooltipIcon",
74
- componentId: "core-12_37_0__sc-ncj3pf-6"
74
+ componentId: "core-12_38_0__sc-ncj3pf-6"
75
75
  })(["margin-left:", "px;color:", ";vertical-align:middle;&:focus-visible{border-radius:50%;", " outline-offset:0;}"], spacing.sm, colors.gray45, getGapOutlineFocus);
76
76
  export var StyledFormFieldErrorIcon = /*#__PURE__*/styled(Error).withConfig({
77
77
  displayName: "StyledFormFieldErrorIcon",
78
- componentId: "core-12_37_0__sc-ncj3pf-7"
78
+ componentId: "core-12_38_0__sc-ncj3pf-7"
79
79
  })(["vertical-align:sub;"]);
80
80
  export var StyledFormFieldBanner = /*#__PURE__*/styled.div.withConfig({
81
81
  displayName: "StyledFormFieldBanner",
82
- componentId: "core-12_37_0__sc-ncj3pf-8"
82
+ componentId: "core-12_38_0__sc-ncj3pf-8"
83
83
  })(["display:flex;align-items:flex-start;min-height:22px;margin-top:", "px;margin-bottom:2px;word-break:break-word;word-wrap:break-word;color:", ";", ""], spacing.xs, colors.red50, getTypographyIntent('body'));
84
84
  /** @deprecated The traditional field layout is deprecated */
85
85
  export var StyledTraditionalFormColumn = /*#__PURE__*/styled.div.withConfig({
86
86
  displayName: "StyledTraditionalFormColumn",
87
- componentId: "core-12_37_0__sc-ncj3pf-9"
87
+ componentId: "core-12_38_0__sc-ncj3pf-9"
88
88
  })(["padding:", ";align-self:center;height:100%;&:nth-child(1){-ms-grid-column:1;}&:nth-child(2){-ms-grid-column:2;}&:nth-child(3){-ms-grid-column:3;}&:nth-child(4){-ms-grid-column:4;}", " ", ""], traditionalPadding, function (_ref5) {
89
89
  var _ref5$$fullWidth = _ref5.$fullWidth,
90
90
  $fullWidth = _ref5$$fullWidth === void 0 ? false : _ref5$$fullWidth;
@@ -96,15 +96,15 @@ export var StyledTraditionalFormColumn = /*#__PURE__*/styled.div.withConfig({
96
96
  });
97
97
  export var StyledFormOutputTextArea = /*#__PURE__*/styled.span.withConfig({
98
98
  displayName: "StyledFormOutputTextArea",
99
- componentId: "core-12_37_0__sc-ncj3pf-10"
99
+ componentId: "core-12_38_0__sc-ncj3pf-10"
100
100
  })(["white-space:pre-wrap;"]);
101
101
  export var StyledFormOutputFiledset = /*#__PURE__*/styled.fieldset.withConfig({
102
102
  displayName: "StyledFormOutputFiledset",
103
- componentId: "core-12_37_0__sc-ncj3pf-11"
103
+ componentId: "core-12_38_0__sc-ncj3pf-11"
104
104
  })(["border:none;padding:0;margin-top:", "px;"], spacing.xs);
105
105
  export var StyledFormRow = /*#__PURE__*/styled.div.withConfig({
106
106
  displayName: "StyledFormRow",
107
- componentId: "core-12_37_0__sc-ncj3pf-12"
107
+ componentId: "core-12_38_0__sc-ncj3pf-12"
108
108
  })(["", ""], function (_ref7) {
109
109
  var _ref7$$traditional = _ref7.$traditional,
110
110
  $traditional = _ref7$$traditional === void 0 ? false : _ref7$$traditional,
@@ -115,6 +115,6 @@ export var StyledFormRow = /*#__PURE__*/styled.div.withConfig({
115
115
  export var formWrapper = /*#__PURE__*/css(["display:inherit;flex-direction:inherit;height:inherit;max-height:inherit;"]);
116
116
  export var StyledForm = /*#__PURE__*/styled.div.withConfig({
117
117
  displayName: "StyledForm",
118
- componentId: "core-12_37_0__sc-ncj3pf-13"
118
+ componentId: "core-12_38_0__sc-ncj3pf-13"
119
119
  })(["", ""], formWrapper);
120
120
  //# sourceMappingURL=Form.styles.js.map
@@ -5,13 +5,13 @@ import { spacing } from '../_styles/spacing';
5
5
  import { formWrapper } from './Form.styles';
6
6
  export var StyledFormikForm = /*#__PURE__*/styled(FormikForm).withConfig({
7
7
  displayName: "StyledFormikForm",
8
- componentId: "core-12_37_0__sc-1ks7m0l-0"
8
+ componentId: "core-12_38_0__sc-1ks7m0l-0"
9
9
  })(["", ""], formWrapper);
10
10
 
11
11
  /** @deprecated The traditional field layout is deprecated */
12
12
  export var StyledTraditionalFormLabel = /*#__PURE__*/styled(Typography).withConfig({
13
13
  displayName: "StyledTraditionalFormLabel",
14
- componentId: "core-12_37_0__sc-1ks7m0l-1"
14
+ componentId: "core-12_38_0__sc-1ks7m0l-1"
15
15
  })(["display:inline-block;word-break:break-word;word-wrap:break-word;", ""], function (_ref) {
16
16
  var $view = _ref.$view;
17
17
  return ['create', 'update'].includes($view) && css(["padding-top:", "px;"], spacing.sm);
@@ -111,17 +111,6 @@ var SingleForm = function SingleForm(_ref) {
111
111
  } : {
112
112
  description: 'Disabled Initial Description'
113
113
  }, columnTwo, props))), /*#__PURE__*/React.createElement(Form.Row, null, /*#__PURE__*/React.createElement(FieldComponent, _extends({
114
- name: "error-empty",
115
- error: true
116
- }, useLabelAsInlineLabel ? {
117
- inlineLabel: 'Error Boolean Empty Text'
118
- } : {
119
- label: 'Error Boolean Empty Text'
120
- }, useDescriptionAsInlineDescription ? {
121
- inlineDescription: 'Error Boolean Description'
122
- } : {
123
- description: 'Error Boolean Description'
124
- }, columnOne, props)), /*#__PURE__*/React.createElement(FieldComponent, _extends({
125
114
  name: "error-value",
126
115
  error: "Some error message that should be read red"
127
116
  }, useLabelAsInlineLabel ? {
@@ -132,7 +121,7 @@ var SingleForm = function SingleForm(_ref) {
132
121
  inlineDescription: 'Error Message Initial Description'
133
122
  } : {
134
123
  description: 'Error Message Initial Description'
135
- }, columnTwo, props)))));
124
+ }, columnOne, props)))));
136
125
  };
137
126
  export var DemoForm = function DemoForm(_ref2) {
138
127
  var _ref2$view = _ref2.view,