@procore/core-react 11.2.1-rc.0 → 11.3.0-rc.10

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 (186) hide show
  1. package/__mocks__/@react-aria/utils.js +10 -0
  2. package/dist/AvatarStack/AvatarStack.d.ts +1 -1
  3. package/dist/AvatarStack/AvatarStack.js +8 -2
  4. package/dist/AvatarStack/AvatarStack.js.map +1 -1
  5. package/dist/Button/Button.styles.js +1 -1
  6. package/dist/Button/Button.styles.js.map +1 -1
  7. package/dist/DateSelect/DateSelect.types.d.ts +1 -1
  8. package/dist/Dropdown/Dropdown.js +3 -2
  9. package/dist/Dropdown/Dropdown.js.map +1 -1
  10. package/dist/Dropdown/Dropdown.styles.js +1 -1
  11. package/dist/Dropdown/Dropdown.styles.js.map +1 -1
  12. package/dist/Dropdown/Dropdown.types.d.ts +1 -1
  13. package/dist/DropdownFlyout/DropdownFlyout.d.ts +2 -2
  14. package/dist/DropdownFlyout/DropdownFlyout.js +73 -55
  15. package/dist/DropdownFlyout/DropdownFlyout.js.map +1 -1
  16. package/dist/DropdownFlyout/DropdownFlyout.types.d.ts +7 -73
  17. package/dist/DropdownFlyout/DropdownFlyout.types.js.map +1 -1
  18. package/dist/DropdownFlyout/useDropdownFlyoutOverlay.d.ts +11 -0
  19. package/dist/DropdownFlyout/useDropdownFlyoutOverlay.js +14 -0
  20. package/dist/DropdownFlyout/useDropdownFlyoutOverlay.js.map +1 -0
  21. package/dist/MenuImperative/MenuImperative.js +45 -10
  22. package/dist/MenuImperative/MenuImperative.js.map +1 -1
  23. package/dist/MenuImperative/MenuImperative.types.d.ts +12 -0
  24. package/dist/MultiSelect/MultiSelect.js +1 -1
  25. package/dist/MultiSelect/MultiSelect.js.map +1 -1
  26. package/dist/NextMenu/NextMenu.d.ts +45 -3
  27. package/dist/NextMenu/NextMenu.js +97 -9
  28. package/dist/NextMenu/NextMenu.js.map +1 -1
  29. package/dist/NextMenu/NextMenu.styles.d.ts +6 -0
  30. package/dist/NextMenu/NextMenu.styles.js +14 -0
  31. package/dist/NextMenu/NextMenu.styles.js.map +1 -0
  32. package/dist/NextMenu/NextMenu.types.d.ts +51 -16
  33. package/dist/NextMenu/NextMenuItem.d.ts +10 -0
  34. package/dist/NextMenu/NextMenuItem.js +40 -0
  35. package/dist/NextMenu/NextMenuItem.js.map +1 -0
  36. package/dist/NextMenu/sampleData.d.ts +31 -0
  37. package/dist/NextMenu/sampleData.js +193 -0
  38. package/dist/NextMenu/sampleData.js.map +1 -0
  39. package/dist/NumberInput/NumberInput.js +2 -2
  40. package/dist/NumberInput/NumberInput.js.map +1 -1
  41. package/dist/NumberInput/NumberInput.utils.d.ts +1 -0
  42. package/dist/NumberInput/NumberInput.utils.js +5 -0
  43. package/dist/NumberInput/NumberInput.utils.js.map +1 -1
  44. package/dist/Overlay/Overlay.d.ts +1 -0
  45. package/dist/Overlay/Overlay.js.map +1 -1
  46. package/dist/Overlay/OverlayArrow.d.ts +11 -0
  47. package/dist/Overlay/OverlayArrow.js +25 -0
  48. package/dist/Overlay/OverlayArrow.js.map +1 -0
  49. package/dist/Overlay/OverlayArrow.styles.d.ts +2 -0
  50. package/dist/Overlay/OverlayArrow.styles.js +9 -0
  51. package/dist/Overlay/OverlayArrow.styles.js.map +1 -0
  52. package/dist/Overlay/useOverlay.d.ts +18 -0
  53. package/dist/Overlay/useOverlay.js +23 -0
  54. package/dist/Overlay/useOverlay.js.map +1 -0
  55. package/dist/OverlayTrigger/OverlayTrigger.d.ts +14 -63
  56. package/dist/OverlayTrigger/OverlayTrigger.js +111 -49
  57. package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
  58. package/dist/OverlayTrigger/OverlayTrigger.types.d.ts +92 -0
  59. package/dist/OverlayTrigger/OverlayTrigger.types.js +2 -0
  60. package/dist/OverlayTrigger/OverlayTrigger.types.js.map +1 -0
  61. package/dist/OverlayTrigger/a11yPresets.d.ts +14 -0
  62. package/dist/OverlayTrigger/a11yPresets.js +58 -0
  63. package/dist/OverlayTrigger/a11yPresets.js.map +1 -0
  64. package/dist/OverlayTrigger/index.d.ts +2 -1
  65. package/dist/OverlayTrigger/index.js.map +1 -1
  66. package/dist/Pagination/PaginationSelect.js +1 -1
  67. package/dist/Pagination/PaginationSelect.js.map +1 -1
  68. package/dist/Popover/Popover.js +2 -2
  69. package/dist/Popover/Popover.js.map +1 -1
  70. package/dist/Popover/Popover.styles.d.ts +1 -0
  71. package/dist/Popover/Popover.styles.js +3 -7
  72. package/dist/Popover/Popover.styles.js.map +1 -1
  73. package/dist/Popover/Popover.types.d.ts +6 -0
  74. package/dist/Select/Select.js +1 -1
  75. package/dist/Select/Select.js.map +1 -1
  76. package/dist/Select/Select.styles.js +1 -1
  77. package/dist/Select/Select.styles.js.map +1 -1
  78. package/dist/Spinner/Spinner.js +2 -2
  79. package/dist/Spinner/Spinner.js.map +1 -1
  80. package/dist/Spinner/Spinner.styles.d.ts +1 -0
  81. package/dist/Spinner/Spinner.styles.js +8 -3
  82. package/dist/Spinner/Spinner.styles.js.map +1 -1
  83. package/dist/Spinner/Spinner.types.d.ts +6 -0
  84. package/dist/Tabs/Tabs.js +3 -5
  85. package/dist/Tabs/Tabs.js.map +1 -1
  86. package/dist/TieredDropdown/TieredDropdown.js +5 -5
  87. package/dist/TieredDropdown/TieredDropdown.js.map +1 -1
  88. package/dist/TieredSelect/TierSelectionTieredSelect.js +1 -1
  89. package/dist/TieredSelect/TierSelectionTieredSelect.js.map +1 -1
  90. package/dist/TieredSelect/TieredSelect.styles.js +1 -1
  91. package/dist/TieredSelect/TieredSelect.styles.js.map +1 -1
  92. package/dist/TieredSelect/TieredSelectMenu.js +1 -1
  93. package/dist/TieredSelect/TieredSelectMenu.js.map +1 -1
  94. package/dist/Tooltip/Tooltip.js +3 -3
  95. package/dist/Tooltip/Tooltip.js.map +1 -1
  96. package/dist/Tooltip/Tooltip.styles.d.ts +1 -4
  97. package/dist/Tooltip/Tooltip.styles.js +2 -6
  98. package/dist/Tooltip/Tooltip.styles.js.map +1 -1
  99. package/dist/Tree/Tree.js +10 -14
  100. package/dist/Tree/Tree.js.map +1 -1
  101. package/dist/_hooks/DateTime/DateTime.d.ts +1 -0
  102. package/dist/_hooks/DateTime/DateTime.js +1 -0
  103. package/dist/_hooks/DateTime/DateTime.js.map +1 -1
  104. package/dist/_hooks/Trigger.js +3 -2
  105. package/dist/_hooks/Trigger.js.map +1 -1
  106. package/dist/_styles/arrows.d.ts +0 -2
  107. package/dist/_styles/arrows.js +1 -44
  108. package/dist/_styles/arrows.js.map +1 -1
  109. package/dist/_typedoc/Avatar/Avatar.types.json +17 -17
  110. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +22 -22
  111. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  112. package/dist/_typedoc/Banner/Banner.types.json +12 -12
  113. package/dist/_typedoc/Box/Box.types.json +66 -66
  114. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +7 -7
  115. package/dist/_typedoc/Button/Button.types.json +11 -11
  116. package/dist/_typedoc/Calendar/Calendar.types.json +79 -79
  117. package/dist/_typedoc/Card/Card.types.json +6 -6
  118. package/dist/_typedoc/Checkbox/Checkbox.types.json +7 -7
  119. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  120. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  121. package/dist/_typedoc/DateSelect/DateSelect.types.json +19 -19
  122. package/dist/_typedoc/DetailPage/DetailPage.types.json +4 -4
  123. package/dist/_typedoc/Dropdown/Dropdown.types.json +35 -35
  124. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +51 -81
  125. package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
  126. package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
  127. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  128. package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
  129. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  130. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  131. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  132. package/dist/_typedoc/Flex/Flex.types.json +26 -26
  133. package/dist/_typedoc/FlexList/FlexList.types.json +29 -29
  134. package/dist/_typedoc/Form/Form.types.json +700 -700
  135. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  136. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +51 -51
  137. package/dist/_typedoc/Input/Input.types.json +2 -2
  138. package/dist/_typedoc/Link/Link.types.json +4 -4
  139. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  140. package/dist/_typedoc/Menu/Menu.types.json +61 -61
  141. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +77 -67
  142. package/dist/_typedoc/Modal/Modal.types.json +27 -27
  143. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +30 -30
  144. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  145. package/dist/_typedoc/NumberInput/NumberInput.types.json +36 -36
  146. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.json +1 -188
  147. package/dist/_typedoc/PageLayout/PageLayout.types.json +7 -7
  148. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  149. package/dist/_typedoc/Panel/Panel.types.json +27 -27
  150. package/dist/_typedoc/Pill/Pill.types.json +1 -1
  151. package/dist/_typedoc/PillSelect/PillSelect.types.json +46 -46
  152. package/dist/_typedoc/Popover/Popover.types.json +19 -9
  153. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +5 -5
  154. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  155. package/dist/_typedoc/Required/Required.types.json +5 -5
  156. package/dist/_typedoc/Search/Search.types.json +18 -18
  157. package/dist/_typedoc/Section/Section.types.json +14 -14
  158. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
  159. package/dist/_typedoc/Select/Select.types.json +31 -31
  160. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  161. package/dist/_typedoc/Spinner/Spinner.types.json +18 -8
  162. package/dist/_typedoc/Switch/Switch.types.json +3 -3
  163. package/dist/_typedoc/Table/Table.types.json +100 -100
  164. package/dist/_typedoc/Tabs/Tabs.types.json +15 -15
  165. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +10 -10
  166. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  167. package/dist/_typedoc/TextEditor/TextEditor.types.json +7 -7
  168. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +3 -3
  169. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +25 -25
  170. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +41 -41
  171. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +27 -27
  172. package/dist/_typedoc/Tile/Tile.types.json +30 -30
  173. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  174. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +3 -3
  175. package/dist/_typedoc/Token/Token.types.json +4 -4
  176. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +8 -8
  177. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  178. package/dist/_typedoc/Tree/Tree.types.json +85 -85
  179. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  180. package/dist/_typedoc/Typography/Typography.types.json +8 -8
  181. package/dist/_typedoc/_utils/types.json +3 -3
  182. package/dist/_utils/placement.d.ts +2 -0
  183. package/dist/_utils/placement.js +14 -1
  184. package/dist/_utils/placement.js.map +1 -1
  185. package/dist/_utils/types.d.ts +3 -0
  186. package/package.json +5 -2
@@ -10,7 +10,7 @@
10
10
  "description": "",
11
11
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
12
12
  "sourceFile": "packages/core-react/src/Typeahead/Typeahead.types.ts",
13
- "sourceUrl": "https://github.com/procore/core/blob/de0a38d93/packages/core-react/src/Typeahead/Typeahead.types.ts#L15"
13
+ "sourceUrl": "https://github.com/procore/core/blob/36fc702d7/packages/core-react/src/Typeahead/Typeahead.types.ts#L15"
14
14
  },
15
15
  {
16
16
  "name": "onChange",
@@ -20,7 +20,7 @@
20
20
  "description": "",
21
21
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
22
22
  "sourceFile": "packages/core-react/src/Typeahead/Typeahead.types.ts",
23
- "sourceUrl": "https://github.com/procore/core/blob/de0a38d93/packages/core-react/src/Typeahead/Typeahead.types.ts#L19"
23
+ "sourceUrl": "https://github.com/procore/core/blob/36fc702d7/packages/core-react/src/Typeahead/Typeahead.types.ts#L19"
24
24
  }
25
25
  ],
26
26
  "description": ""
@@ -10,7 +10,7 @@
10
10
  "description": "<span>\n Change the HTML tag. This{' '}\n <Link href=\"https://styled-components.com/docs/api#as-polymorphic-prop\">\n prop is from styled-components\n </Link>\n .<em>WARNING</em>: If using TypeScript, it will not switch types and\n some props may error. You can add <Code>// @ts-expect-error</Code>.\n See{' '}\n <Link href=\"https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30117\">\n styled-components issue\n </Link>\n .\n</span>",
11
11
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<span>\n Change the HTML tag. This{' '}\n <Link href=\"https://styled-components.com/docs/api#as-polymorphic-prop\">\n prop is from styled-components\n </Link>\n .<em>WARNING</em>: If using TypeScript, it will not switch types and\n some props may error. You can add <Code>// @ts-expect-error</Code>.\n See{' '}\n <Link href=\"https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30117\">\n styled-components issue\n </Link>\n .\n</span></div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
12
12
  "sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
13
- "sourceUrl": "https://github.com/procore/core/blob/de0a38d93/packages/core-react/src/Typography/Typography.types.ts#L35"
13
+ "sourceUrl": "https://github.com/procore/core/blob/36fc702d7/packages/core-react/src/Typography/Typography.types.ts#L35"
14
14
  },
15
15
  {
16
16
  "name": "children",
@@ -20,7 +20,7 @@
20
20
  "description": "<span>\n When children are a string or multiple elements, they will be wrapped\n by a <Code>span</Code>. When it is a single element, classnames will\n be added to it instead\n</span>",
21
21
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<span>\n When children are a string or multiple elements, they will be wrapped\n by a <Code>span</Code>. When it is a single element, classnames will\n be added to it instead\n</span></div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
22
22
  "sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
23
- "sourceUrl": "https://github.com/procore/core/blob/de0a38d93/packages/core-react/src/Typography/Typography.types.ts#L17"
23
+ "sourceUrl": "https://github.com/procore/core/blob/36fc702d7/packages/core-react/src/Typography/Typography.types.ts#L17"
24
24
  },
25
25
  {
26
26
  "name": "className",
@@ -30,7 +30,7 @@
30
30
  "description": "Additional classNames",
31
31
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional classNames</p>\n</div></div>",
32
32
  "sourceFile": "packages/core-react/src/_utils/types.ts",
33
- "sourceUrl": "https://github.com/procore/core/blob/de0a38d93/packages/core-react/src/_utils/types.ts#L45"
33
+ "sourceUrl": "https://github.com/procore/core/blob/36fc702d7/packages/core-react/src/_utils/types.ts#L50"
34
34
  },
35
35
  {
36
36
  "name": "color",
@@ -40,7 +40,7 @@
40
40
  "description": "<span>\n Changes font color, can be any of the{' '}\n <Link to=\"/web/style/colors/#hsl-palette\">HSL Palette</Link> css\n strings\n</span>",
41
41
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<span>\n Changes font color, can be any of the{' '}\n <Link to=\"/web/style/colors/#hsl-palette\">HSL Palette</Link> css\n strings\n</span></div><dl class=\"tsd-comment-tags\"><dt>default</dt><dd><p>&#39;gray15&#39;</p>\n</dd><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
42
42
  "sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
43
- "sourceUrl": "https://github.com/procore/core/blob/de0a38d93/packages/core-react/src/Typography/Typography.types.ts#L46"
43
+ "sourceUrl": "https://github.com/procore/core/blob/36fc702d7/packages/core-react/src/Typography/Typography.types.ts#L46"
44
44
  },
45
45
  {
46
46
  "name": "intent",
@@ -50,7 +50,7 @@
50
50
  "description": "Changes the size of the font",
51
51
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Changes the size of the font</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
52
52
  "sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
53
- "sourceUrl": "https://github.com/procore/core/blob/de0a38d93/packages/core-react/src/Typography/Typography.types.ts#L52"
53
+ "sourceUrl": "https://github.com/procore/core/blob/36fc702d7/packages/core-react/src/Typography/Typography.types.ts#L52"
54
54
  },
55
55
  {
56
56
  "name": "italic",
@@ -60,7 +60,7 @@
60
60
  "description": "Applies `font-style: italic` if enabled",
61
61
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Applies <code>font-style: italic</code> if enabled</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
62
62
  "sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
63
- "sourceUrl": "https://github.com/procore/core/blob/de0a38d93/packages/core-react/src/Typography/Typography.types.ts#L58"
63
+ "sourceUrl": "https://github.com/procore/core/blob/36fc702d7/packages/core-react/src/Typography/Typography.types.ts#L58"
64
64
  },
65
65
  {
66
66
  "name": "style",
@@ -70,7 +70,7 @@
70
70
  "description": "Additional CSS styles",
71
71
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div></div>",
72
72
  "sourceFile": "packages/core-react/src/_utils/types.ts",
73
- "sourceUrl": "https://github.com/procore/core/blob/de0a38d93/packages/core-react/src/_utils/types.ts#L50"
73
+ "sourceUrl": "https://github.com/procore/core/blob/36fc702d7/packages/core-react/src/_utils/types.ts#L55"
74
74
  },
75
75
  {
76
76
  "name": "weight",
@@ -80,7 +80,7 @@
80
80
  "description": "Changes font weight if it is supported in the design system",
81
81
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Changes font weight if it is supported in the design system</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
82
82
  "sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
83
- "sourceUrl": "https://github.com/procore/core/blob/de0a38d93/packages/core-react/src/Typography/Typography.types.ts#L64"
83
+ "sourceUrl": "https://github.com/procore/core/blob/36fc702d7/packages/core-react/src/Typography/Typography.types.ts#L64"
84
84
  }
85
85
  ],
86
86
  "description": ""
@@ -10,7 +10,7 @@
10
10
  "description": "Instead of using the default children, you can pass in your own.",
11
11
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Instead of using the default children, you can pass in your own.</p>\n</div></div>",
12
12
  "sourceFile": "packages/core-react/src/_utils/types.ts",
13
- "sourceUrl": "https://github.com/procore/core/blob/de0a38d93/packages/core-react/src/_utils/types.ts#L40"
13
+ "sourceUrl": "https://github.com/procore/core/blob/36fc702d7/packages/core-react/src/_utils/types.ts#L45"
14
14
  },
15
15
  {
16
16
  "name": "className",
@@ -20,7 +20,7 @@
20
20
  "description": "Additional classNames",
21
21
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional classNames</p>\n</div></div>",
22
22
  "sourceFile": "packages/core-react/src/_utils/types.ts",
23
- "sourceUrl": "https://github.com/procore/core/blob/de0a38d93/packages/core-react/src/_utils/types.ts#L45"
23
+ "sourceUrl": "https://github.com/procore/core/blob/36fc702d7/packages/core-react/src/_utils/types.ts#L50"
24
24
  },
25
25
  {
26
26
  "name": "style",
@@ -30,7 +30,7 @@
30
30
  "description": "Additional CSS styles",
31
31
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div></div>",
32
32
  "sourceFile": "packages/core-react/src/_utils/types.ts",
33
- "sourceUrl": "https://github.com/procore/core/blob/de0a38d93/packages/core-react/src/_utils/types.ts#L50"
33
+ "sourceUrl": "https://github.com/procore/core/blob/36fc702d7/packages/core-react/src/_utils/types.ts#L55"
34
34
  }
35
35
  ],
36
36
  "description": ""
@@ -1 +1,3 @@
1
+ import { OverlayPlacement } from '../Overlay/useOverlay';
1
2
  export declare type Placement = 'bottom' | 'bottom-left' | 'bottom-right' | 'center' | 'left' | 'left-bottom' | 'left-top' | 'right' | 'right-bottom' | 'right-top' | 'top' | 'top-left' | 'top-right';
3
+ export declare const getPlacement: (p: Placement) => OverlayPlacement;
@@ -1,2 +1,15 @@
1
- export {};
1
+ export var getPlacement = function (p) {
2
+ var _a;
3
+ var jointPlacements = {
4
+ 'right-top': 'right-start',
5
+ 'right-bottom': 'right-end',
6
+ 'left-top': 'left-start',
7
+ 'left-bottom': 'left-end',
8
+ 'bottom-left': 'bottom-start',
9
+ 'bottom-right': 'bottom-end',
10
+ 'top-left': 'top-start',
11
+ 'top-right': 'top-end',
12
+ };
13
+ return (_a = jointPlacements[p]) !== null && _a !== void 0 ? _a : p;
14
+ };
2
15
  //# sourceMappingURL=placement.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"placement.js","sourceRoot":"","sources":["../../src/_utils/placement.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"placement.js","sourceRoot":"","sources":["../../src/_utils/placement.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAC,IAAM,YAAY,GAAG,UAAC,CAAY;;IACvC,IAAM,eAAe,GAAiD;QACpE,WAAW,EAAE,aAAa;QAC1B,cAAc,EAAE,WAAW;QAC3B,UAAU,EAAE,YAAY;QACxB,aAAa,EAAE,UAAU;QACzB,aAAa,EAAE,cAAc;QAC7B,cAAc,EAAE,YAAY;QAC5B,UAAU,EAAE,WAAW;QACvB,WAAW,EAAE,SAAS;KACvB,CAAA;IAED,OAAO,MAAA,eAAe,CAAC,CAAC,CAAC,mCAAK,CAAsB,CAAA;AACtD,CAAC,CAAA"}
@@ -1,4 +1,7 @@
1
1
  import React from 'react';
2
+ export interface ReactElementWithRef<T extends any = any> extends React.ReactElement<T> {
3
+ ref?: React.Ref<T>;
4
+ }
2
5
  export declare type Size = 'auto' | 'block' | 'inherit' | 'lg' | 'md' | 'none' | 'sm' | 'xl' | 'xs' | 'xxl';
3
6
  export declare type Placement = 'bottom' | 'bottom-left' | 'bottom-right' | 'center' | 'left' | 'left-bottom' | 'left-top' | 'right' | 'right-bottom' | 'right-top' | 'top' | 'top-left' | 'top-right';
4
7
  export interface RenderProp<T> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@procore/core-react",
3
- "version": "11.2.1-rc.0",
3
+ "version": "11.3.0-rc.10",
4
4
  "description": "React library of Procore Design Guidelines",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -111,8 +111,11 @@
111
111
  "yup": "0.32.11"
112
112
  },
113
113
  "dependencies": {
114
+ "@floating-ui/react-dom": "1.0.0",
114
115
  "@procore/core-i18n-js": "^10.27.4",
115
116
  "@procore/core-icons": "^11.0.4",
117
+ "@react-aria/label": "3.4.0",
118
+ "@react-aria/utils": "3.13.2",
116
119
  "@tinymce/tinymce-react": "4.1.0",
117
120
  "axios": "0.27.2",
118
121
  "classnames": "2.3.1",
@@ -135,5 +138,5 @@
135
138
  "react-dom": ">=16.8.0 < 18",
136
139
  "styled-components": ">= 5.1.1 < 6"
137
140
  },
138
- "gitHead": "de0a38d93c3a4742fd7c5c93b9e643afb170ced3"
141
+ "gitHead": "36fc702d7bcc9a354b6905408e243761a4b815b6"
139
142
  }