@procore/core-react 12.42.0 → 12.43.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 (236) hide show
  1. package/CHANGELOG.md +49 -1
  2. package/dist/AnchorNavigation/AnchorNavigation.js +11 -5
  3. package/dist/AnchorNavigation/AnchorNavigation.js.map +1 -1
  4. package/dist/AnchorNavigation/AnchorNavigation.styles.d.ts +1 -0
  5. package/dist/AnchorNavigation/AnchorNavigation.styles.js +7 -3
  6. package/dist/AnchorNavigation/AnchorNavigation.styles.js.map +1 -1
  7. package/dist/AnchorNavigation/AnchorNavigation.types.d.ts +7 -1
  8. package/dist/AnchorNavigation/AnchorNavigation.types.js.map +1 -1
  9. package/dist/Avatar/Avatar.styles.js +5 -5
  10. package/dist/AvatarStack/AvatarStack.styles.d.ts +74 -74
  11. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  12. package/dist/Badge/Badge.styles.js +2 -2
  13. package/dist/BadgePill/BadgePill.styles.js +4 -4
  14. package/dist/Banner/Banner.styles.js +10 -10
  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/Button/Button.types.d.ts +1 -4
  19. package/dist/Button/Button.types.js.map +1 -1
  20. package/dist/Button/index.d.ts +1 -1
  21. package/dist/Button/index.js.map +1 -1
  22. package/dist/Calendar/Calendar.styles.js +9 -9
  23. package/dist/Card/Card.styles.js +1 -1
  24. package/dist/Checkbox/Checkbox.js +1 -0
  25. package/dist/Checkbox/Checkbox.js.map +1 -1
  26. package/dist/Checkbox/Checkbox.styles.js +6 -6
  27. package/dist/ContactItem/ContactItem.styles.js +5 -5
  28. package/dist/Content/Content.styles.js +2 -2
  29. package/dist/DateInput/DateInput.js +9 -0
  30. package/dist/DateInput/DateInput.js.map +1 -1
  31. package/dist/DateInput/DateInput.styles.js +6 -6
  32. package/dist/DetailPage/DetailPage.styles.js +7 -7
  33. package/dist/Dropdown/Dropdown.styles.js +3 -3
  34. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  35. package/dist/Dropzone/Dropzone.js +1 -1
  36. package/dist/Dropzone/Dropzone.styles.js +9 -9
  37. package/dist/EmptyState/EmptyState.styles.js +6 -6
  38. package/dist/Field/Field.styles.js +3 -3
  39. package/dist/FileList/FileList.styles.js +3 -3
  40. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  41. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  42. package/dist/FileSelect/FileSelect.styles.js +2 -2
  43. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  44. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  45. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  46. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  47. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  48. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.d.ts +1 -1
  49. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  50. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  51. package/dist/FileToken/FileToken.styles.js +6 -6
  52. package/dist/FileToken/FileTokenInner.js +1 -3
  53. package/dist/FileToken/FileTokenInner.js.map +1 -1
  54. package/dist/FilterToken/FilterToken.styles.js +5 -5
  55. package/dist/FlexList/FlexList.styles.js +1 -1
  56. package/dist/Form/Form.styles.js +13 -13
  57. package/dist/Form/StyledFormikForm.styles.d.ts +2 -2
  58. package/dist/Form/StyledFormikForm.styles.js +2 -2
  59. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  60. package/dist/Grid/Grid.styles.js +2 -2
  61. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  62. package/dist/Input/Input.styles.js +1 -1
  63. package/dist/Link/Link.styles.js +1 -1
  64. package/dist/ListPage/ListPage.styles.js +8 -8
  65. package/dist/Loader/Loader.styles.js +2 -2
  66. package/dist/MenuImperative/MenuImperative.styles.js +11 -11
  67. package/dist/Modal/Modal.js +8 -2
  68. package/dist/Modal/Modal.js.map +1 -1
  69. package/dist/Modal/Modal.styles.js +13 -13
  70. package/dist/MultiSelect/MultiSelect.js +7 -5
  71. package/dist/MultiSelect/MultiSelect.js.map +1 -1
  72. package/dist/MultiSelect/MultiSelect.styles.js +8 -8
  73. package/dist/NextMenu/NextMenu.styles.js +3 -3
  74. package/dist/Notation/Notation.js +1 -1
  75. package/dist/NumberInput/NumberInput.styles.js +7 -7
  76. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  77. package/dist/OverlayTrigger/a11yPresets.d.ts +6 -6
  78. package/dist/PageLayout/PageLayout.styles.d.ts +1 -1
  79. package/dist/PageLayout/PageLayout.styles.js +16 -16
  80. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
  81. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
  82. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
  83. package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
  84. package/dist/Pagination/Pagination.styles.js +5 -5
  85. package/dist/Panel/Panel.styles.js +11 -11
  86. package/dist/Pill/Pill.styles.js +3 -3
  87. package/dist/PillSelect/PillSelect.styles.js +4 -4
  88. package/dist/Popover/Popover.styles.js +2 -2
  89. package/dist/Portal/Portal.styles.js +1 -1
  90. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  91. package/dist/RadioButton/RadioButton.styles.js +3 -3
  92. package/dist/Required/Required.styles.js +3 -3
  93. package/dist/Search/Search.styles.js +5 -5
  94. package/dist/Section/Section.styles.js +7 -7
  95. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  96. package/dist/Select/Select.js +3 -2
  97. package/dist/Select/Select.js.map +1 -1
  98. package/dist/Select/Select.styles.js +8 -8
  99. package/dist/Semantic/Semantic.styles.d.ts +74 -74
  100. package/dist/Semantic/Semantic.styles.js +9 -9
  101. package/dist/Slider/Slider.styles.js +5 -5
  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 +35 -22
  105. package/dist/SuperSelect/SuperSelect.components.js.map +1 -1
  106. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  107. package/dist/SuperSelect/SuperSelect.styles.d.ts +4 -2
  108. package/dist/SuperSelect/SuperSelect.styles.js +49 -42
  109. package/dist/SuperSelect/SuperSelect.styles.js.map +1 -1
  110. package/dist/SuperSelect/SuperSelect.types.d.ts +3 -4
  111. package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
  112. package/dist/SuperSelect/presets/filterPreset.js +7 -2
  113. package/dist/SuperSelect/presets/filterPreset.js.map +1 -1
  114. package/dist/SuperSelect/useSuperSelect.d.ts +1 -1
  115. package/dist/SuperSelect/useSuperSelect.js +115 -88
  116. package/dist/SuperSelect/useSuperSelect.js.map +1 -1
  117. package/dist/Switch/Switch.styles.js +4 -4
  118. package/dist/Table/Table.styles.js +28 -28
  119. package/dist/TableShelf/TableShelf.styles.js +5 -5
  120. package/dist/Tabs/Tabs.js +1 -1
  121. package/dist/Tabs/Tabs.js.map +1 -1
  122. package/dist/Tabs/Tabs.styles.js +15 -15
  123. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  124. package/dist/TextArea/TextArea.styles.js +1 -1
  125. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  126. package/dist/Thumbnail/Thumbnail.hooks.d.ts +58 -58
  127. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  128. package/dist/ThumbnailGrid/ThumbnailGrid.styles.d.ts +1 -1
  129. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  130. package/dist/TieredSelect/TieredSelect.styles.d.ts +1 -1
  131. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  132. package/dist/Tile/Tile.styles.js +8 -8
  133. package/dist/Title/Title.styles.js +7 -7
  134. package/dist/Toast/Toast.styles.js +3 -3
  135. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  136. package/dist/Token/Token.js +1 -1
  137. package/dist/Token/Token.js.map +1 -1
  138. package/dist/Token/Token.styles.js +3 -3
  139. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  140. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  141. package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.d.ts +1 -1
  142. package/dist/Tooltip/Tooltip.styles.js +3 -3
  143. package/dist/Tree/Tree.js +1 -1
  144. package/dist/Tree/Tree.styles.js +10 -10
  145. package/dist/Typeahead/Typeahead.js +7 -3
  146. package/dist/Typeahead/Typeahead.js.map +1 -1
  147. package/dist/Typeahead/Typeahead.styles.js +3 -3
  148. package/dist/Typography/Typography.styles.js +1 -1
  149. package/dist/Typography/Typography.table.story.js +2 -2
  150. package/dist/Typography/Typography.types.d.ts +1 -0
  151. package/dist/Typography/Typography.types.js.map +1 -1
  152. package/dist/_hooks/I18n.d.ts +14 -0
  153. package/dist/_locales/en.json +7 -0
  154. package/dist/_locales/pseudo.json +7 -0
  155. package/dist/_storyHelpers_/components/Deprecation.styles.js +1 -1
  156. package/dist/_storyHelpers_/components/StoryGrid.js +3 -3
  157. package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +13 -3
  158. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  159. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +25 -25
  160. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  161. package/dist/_typedoc/Banner/Banner.types.json +15 -15
  162. package/dist/_typedoc/Box/Box.types.json +72 -72
  163. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  164. package/dist/_typedoc/Button/Button.types.json +17 -17
  165. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  166. package/dist/_typedoc/Card/Card.types.json +6 -6
  167. package/dist/_typedoc/Checkbox/Checkbox.types.json +8 -8
  168. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  169. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  170. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  171. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  172. package/dist/_typedoc/Dropdown/Dropdown.types.json +39 -39
  173. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +31 -31
  174. package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
  175. package/dist/_typedoc/EmptyState/EmptyState.types.json +16 -16
  176. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  177. package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
  178. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  179. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  180. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  181. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  182. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  183. package/dist/_typedoc/Form/Form.types.json +832 -832
  184. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  185. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  186. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +54 -54
  187. package/dist/_typedoc/Input/Input.types.json +2 -2
  188. package/dist/_typedoc/Link/Link.types.json +1 -1
  189. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  190. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  191. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +84 -84
  192. package/dist/_typedoc/Modal/Modal.types.json +48 -48
  193. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +33 -33
  194. package/dist/_typedoc/NextTile/NextTile.types.json +32 -32
  195. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  196. package/dist/_typedoc/NumberInput/NumberInput.types.json +54 -54
  197. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +33 -33
  198. package/dist/_typedoc/PageLayout/PageLayout.types.json +28 -28
  199. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  200. package/dist/_typedoc/Panel/Panel.types.json +27 -27
  201. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  202. package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
  203. package/dist/_typedoc/Popover/Popover.types.json +15 -15
  204. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
  205. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  206. package/dist/_typedoc/Required/Required.types.json +5 -5
  207. package/dist/_typedoc/Search/Search.types.json +18 -18
  208. package/dist/_typedoc/Section/Section.types.json +15 -15
  209. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
  210. package/dist/_typedoc/Select/Select.types.json +69 -69
  211. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  212. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  213. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  214. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +14 -14
  215. package/dist/_typedoc/Table/Table.types.json +102 -102
  216. package/dist/_typedoc/Tabs/Tabs.types.json +21 -21
  217. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
  218. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  219. package/dist/_typedoc/TextEditor/TextEditor.types.json +11 -11
  220. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  221. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  222. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +43 -43
  223. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +29 -29
  224. package/dist/_typedoc/Tile/Tile.types.json +8 -8
  225. package/dist/_typedoc/Title/Title.types.json +3 -3
  226. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  227. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  228. package/dist/_typedoc/Token/Token.types.json +7 -7
  229. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  230. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +10 -10
  231. package/dist/_typedoc/Tooltip/Tooltip.types.json +15 -15
  232. package/dist/_typedoc/Tree/Tree.types.json +90 -90
  233. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  234. package/dist/_typedoc/Typography/Typography.types.json +12 -11
  235. package/dist/_typedoc/_utils/types.json +3 -3
  236. package/package.json +2 -2
@@ -44,7 +44,7 @@ var getTileStyles = function getTileStyles(_ref) {
44
44
  };
45
45
  export var StyledLinkTile = /*#__PURE__*/styled.a.withConfig({
46
46
  displayName: "StyledLinkTile",
47
- componentId: "core-12_42_0__sc-8q9p0n-0"
47
+ componentId: "core-12_43_0__sc-8q9p0n-0"
48
48
  })(["", " text-decoration:none;color:inherit;"], function (_ref2) {
49
49
  var $orientation = _ref2.$orientation;
50
50
  return getTileStyles({
@@ -54,7 +54,7 @@ export var StyledLinkTile = /*#__PURE__*/styled.a.withConfig({
54
54
  });
55
55
  export var StyledSelectableTile = /*#__PURE__*/styled.div.withConfig({
56
56
  displayName: "StyledSelectableTile",
57
- componentId: "core-12_42_0__sc-8q9p0n-1"
57
+ componentId: "core-12_43_0__sc-8q9p0n-1"
58
58
  })(["", ""], function (_ref3) {
59
59
  var $orientation = _ref3.$orientation,
60
60
  $selected = _ref3.$selected,
@@ -72,7 +72,7 @@ export var StyledSelectableTile = /*#__PURE__*/styled.div.withConfig({
72
72
  });
73
73
  export var StyledInteractableTile = /*#__PURE__*/styled.div.withConfig({
74
74
  displayName: "StyledInteractableTile",
75
- componentId: "core-12_42_0__sc-8q9p0n-2"
75
+ componentId: "core-12_43_0__sc-8q9p0n-2"
76
76
  })(["", ""], function (_ref4) {
77
77
  var $orientation = _ref4.$orientation;
78
78
  return getTileStyles({
@@ -81,26 +81,26 @@ export var StyledInteractableTile = /*#__PURE__*/styled.div.withConfig({
81
81
  });
82
82
  export var StyledFooter = /*#__PURE__*/styled.div.withConfig({
83
83
  displayName: "StyledFooter",
84
- componentId: "core-12_42_0__sc-8q9p0n-3"
84
+ componentId: "core-12_43_0__sc-8q9p0n-3"
85
85
  })(["grid-area:footer;padding:", "px;> ", "{flex-wrap:wrap-reverse;}"], spacing.lg, StyledActions);
86
86
  export var StyledTileContent = /*#__PURE__*/styled(StyledContent).withConfig({
87
87
  displayName: "StyledTileContent",
88
- componentId: "core-12_42_0__sc-8q9p0n-4"
88
+ componentId: "core-12_43_0__sc-8q9p0n-4"
89
89
  })(["grid-column-start:hero-start;grid-column-end:body-end;padding:", "px;+ ", "{padding-top:0;}> ", ",> ", " > ", ",> ", "{grid-column-gap:", "px;}"], spacing.lg, StyledFooter, SFormRow, SForm, SFormRow, SFormRow, spacing.md);
90
90
  export var StyledHeroMedia = /*#__PURE__*/styled.figure.withConfig({
91
91
  displayName: "StyledHeroMedia",
92
- componentId: "core-12_42_0__sc-8q9p0n-5"
92
+ componentId: "core-12_43_0__sc-8q9p0n-5"
93
93
  })(["grid-area:hero;margin:0;position:relative;overflow:hidden;font-size:0;> *{font-size:initial;}+ ", "{grid-area:body;}> video{background-color:", ";}> img,> picture > img{object-fit:cover;}", ""], StyledTileContent, colors.black, function (_ref5) {
94
94
  var $orientation = _ref5.$orientation;
95
95
  return $orientation === 'landscape' && !isIE11() ? css(["border-top-left-radius:inherit;border-bottom-left-radius:inherit;> *,> picture > img{height:100%;width:100%;position:absolute;}@media ", "{> picture > img,> img{width:auto;left:50%;transform:translate(-50%,0);}}"], mediaIE11Hack) : css(["min-height:156px;max-height:567px;border-top-left-radius:inherit;border-top-right-radius:inherit;> *,> picture > img{min-height:inherit;max-height:inherit;height:auto;width:100%;}"]);
96
96
  });
97
97
  export var StyledHeroOverlay = /*#__PURE__*/styled.div.withConfig({
98
98
  displayName: "StyledHeroOverlay",
99
- componentId: "core-12_42_0__sc-8q9p0n-6"
99
+ componentId: "core-12_43_0__sc-8q9p0n-6"
100
100
  })(["position:absolute;width:100%;height:100%;top:0;left:0;z-index:1;"]);
101
101
  export var StyledHeroText = /*#__PURE__*/styled.div.withConfig({
102
102
  displayName: "StyledHeroText",
103
- componentId: "core-12_42_0__sc-8q9p0n-7"
103
+ componentId: "core-12_43_0__sc-8q9p0n-7"
104
104
  })(["grid-area:hero;+ ", "{grid-area:body;}padding:", "px;border-radius:inherit;", ""], StyledTileContent, spacing.lg, function (_ref6) {
105
105
  var $orientation = _ref6.$orientation;
106
106
  return $orientation === 'landscape' ? css(["display:flex;flex-direction:column;justify-content:center;padding-right:0;"]) : css(["padding-bottom:0;"]);
@@ -5,36 +5,36 @@ import { Typography } from '../Typography/Typography';
5
5
  import { spacing } from '../_styles/spacing';
6
6
  export var StyledTitle = /*#__PURE__*/styled.div.withConfig({
7
7
  displayName: "StyledTitle",
8
- componentId: "core-12_42_0__sc-1t2ye1d-0"
8
+ componentId: "core-12_43_0__sc-1t2ye1d-0"
9
9
  })(["display:flex;align-items:flex-start;"]);
10
10
  export var StyledAssets = /*#__PURE__*/styled.div.withConfig({
11
11
  displayName: "StyledAssets",
12
- componentId: "core-12_42_0__sc-1t2ye1d-1"
12
+ componentId: "core-12_43_0__sc-1t2ye1d-1"
13
13
  })(["margin-right:", "px;", ""], spacing.md, function (_ref) {
14
14
  var alignment = _ref.alignment;
15
15
  return css(["align-self:", ";"], alignment);
16
16
  });
17
17
  export var StyledTitleContent = /*#__PURE__*/styled.div.withConfig({
18
18
  displayName: "StyledTitleContent",
19
- componentId: "core-12_42_0__sc-1t2ye1d-2"
19
+ componentId: "core-12_43_0__sc-1t2ye1d-2"
20
20
  })(["align-self:center;", ""], function (_ref2) {
21
21
  var $hasActions = _ref2.$hasActions;
22
22
  return $hasActions && css(["margin-right:", "px;"], spacing.lg);
23
23
  });
24
24
  export var StyledText = /*#__PURE__*/styled.span.withConfig({
25
25
  displayName: "StyledText",
26
- componentId: "core-12_42_0__sc-1t2ye1d-3"
26
+ componentId: "core-12_43_0__sc-1t2ye1d-3"
27
27
  })(["> h1,> h2,> h3{display:inline;}"]);
28
28
  export var StyledTitlePill = /*#__PURE__*/styled.span.withConfig({
29
29
  displayName: "StyledTitlePill",
30
- componentId: "core-12_42_0__sc-1t2ye1d-4"
30
+ componentId: "core-12_43_0__sc-1t2ye1d-4"
31
31
  })(["margin-left:", "px;", "{vertical-align:text-top;}"], spacing.sm, StyledPill);
32
32
  export var StyledTitleActions = /*#__PURE__*/styled(StyledActions).withConfig({
33
33
  displayName: "StyledTitleActions",
34
- componentId: "core-12_42_0__sc-1t2ye1d-5"
34
+ componentId: "core-12_43_0__sc-1t2ye1d-5"
35
35
  })(["margin-left:auto;"]);
36
36
  export var StyledSubtext = /*#__PURE__*/styled(Typography).withConfig({
37
37
  displayName: "StyledSubtext",
38
- componentId: "core-12_42_0__sc-1t2ye1d-6"
38
+ componentId: "core-12_43_0__sc-1t2ye1d-6"
39
39
  })(["display:block;margin-top:", "px;"], spacing.xs);
40
40
  //# sourceMappingURL=Title.styles.js.map
@@ -7,7 +7,7 @@ import { getShadow } from '../_styles/shadows';
7
7
  import { spacing } from '../_styles/spacing';
8
8
  export var StyledToast = /*#__PURE__*/styled.div.withConfig({
9
9
  displayName: "StyledToast",
10
- componentId: "core-12_42_0__sc-1l6lk2n-0"
10
+ componentId: "core-12_43_0__sc-1l6lk2n-0"
11
11
  })(["", " align-items:center;background-color:", ";border-radius:", "px;color:", ";display:flex;min-height:48px;padding:", "px ", "px;width:550px;"], getShadow(4, 'bottom'), function (_ref) {
12
12
  var $variant = _ref.$variant;
13
13
  return $variant === 'success' ? colors.green30 : colors.red50;
@@ -16,13 +16,13 @@ export var StyledToast = /*#__PURE__*/styled.div.withConfig({
16
16
  // $legacy is direct string inside Toast. Next is with subcomponents
17
17
  export var StyledToastText = /*#__PURE__*/styled.span.withConfig({
18
18
  displayName: "StyledToastText",
19
- componentId: "core-12_42_0__sc-1l6lk2n-1"
19
+ componentId: "core-12_43_0__sc-1l6lk2n-1"
20
20
  })(["", " font-weight:", ";overflow:hidden;", ""], getTypographyIntent('body'), typographyWeights.semibold, function (_ref2) {
21
21
  var $legacy = _ref2.$legacy;
22
22
  return $legacy ? "margin-left: ".concat(spacing.lg, "px;") : "padding: 0 ".concat(spacing.lg, "px;");
23
23
  });
24
24
  export var StyledToastButton = /*#__PURE__*/styled(Button).withConfig({
25
25
  displayName: "StyledToastButton",
26
- componentId: "core-12_42_0__sc-1l6lk2n-2"
26
+ componentId: "core-12_43_0__sc-1l6lk2n-2"
27
27
  })(["line-height:0;color:", ";padding:0;margin-left:auto;"], colors.white);
28
28
  //# sourceMappingURL=Toast.styles.js.map
@@ -3,7 +3,7 @@ import { Button } from '../Button/Button';
3
3
  import { colors } from '../_styles/colors';
4
4
  export var StyledToggleButton = /*#__PURE__*/styled(Button).withConfig({
5
5
  displayName: "StyledToggleButton",
6
- componentId: "core-12_42_0__sc-1x59fxi-0"
6
+ componentId: "core-12_43_0__sc-1x59fxi-0"
7
7
  })(["", ""], function (_ref) {
8
8
  var $selected = _ref.$selected;
9
9
  return $selected && css(["background-color:", ";color:", ";[data-icon-prop='true']{color:", ";}&:hover{background-color:", ";color:", ";}&:focus{background-color:", ";color:", ";}&:disabled{background-color:", ";color:", ";[data-icon-prop='true']{color:", ";}circle{stroke:", ";}}"], colors.blue96, colors.blue45, colors.blue50, colors.blue90, colors.blue45, colors.blue96, colors.blue45, colors.blue96, colors.blue70, colors.blue70, colors.blue50);
@@ -36,7 +36,7 @@ var Parent = /*#__PURE__*/React.forwardRef(function Token(_ref, ref) {
36
36
  }
37
37
  }, /*#__PURE__*/React.createElement(StyledToken, _extends({
38
38
  ref: ref,
39
- tabIndex: 0
39
+ tabIndex: -1
40
40
  }, props, {
41
41
  $disabled: isDisabled,
42
42
  $focused: isFocused,
@@ -1 +1 @@
1
- {"version":3,"file":"Token.js","names":["Clear","useId","React","useI18nContext","addSubcomponents","StyledLabel","StyledRemove","StyledToken","TokenContext","createContext","labelId","removeId","isDisabled","Parent","forwardRef","Token","_ref","ref","children","_ref$disabled","disabled","_ref$focused","focused","_ref$error","error","variant","props","_objectWithoutProperties","_excluded","isFocused","createElement","Provider","value","_extends","tabIndex","$disabled","$focused","$error","Remove","TokenRemove","i18n","_React$useContext","useContext","t","concat","id","icon","role","size","Label","_ref2","_excluded2","_React$useContext2","displayName"],"sources":["../../src/Token/Token.tsx"],"sourcesContent":["import { Clear } from '@procore/core-icons'\nimport { useId } from '@react-aria/utils'\nimport React from 'react'\nimport type { ButtonProps } from '../Button'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport type { Props } from '../_utils/types'\nimport { StyledLabel, StyledRemove, StyledToken } from './Token.styles'\nimport type { TokenContextApi, TokenProps } from './Token.types'\n\nconst TokenContext = React.createContext<TokenContextApi>({\n labelId: '',\n removeId: '',\n isDisabled: false,\n})\n\nconst Parent = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & TokenProps\n>(function Token(\n {\n children,\n disabled = false,\n focused = false,\n error = false,\n variant,\n ...props\n },\n ref\n) {\n const labelId = useId()\n const removeId = useId()\n const isDisabled = disabled || variant === 'disabled'\n const isFocused = focused || variant === 'focused'\n\n return (\n <TokenContext.Provider value={{ labelId, removeId, isDisabled }}>\n <StyledToken\n ref={ref}\n tabIndex={0}\n {...props}\n $disabled={isDisabled}\n $focused={isFocused}\n $error={error}\n >\n {children}\n </StyledToken>\n </TokenContext.Provider>\n )\n})\n\nconst Remove = React.forwardRef<HTMLButtonElement, ButtonProps>(\n function TokenRemove(props, ref) {\n const i18n = useI18nContext()\n const { labelId, removeId, isDisabled } = React.useContext(TokenContext)\n\n return (\n <StyledRemove\n ref={ref}\n aria-hidden=\"false\"\n aria-label={i18n.t('core.token.remove')}\n aria-labelledby={`${removeId} ${labelId}`}\n id={removeId}\n disabled={isDisabled}\n {...props}\n icon={<Clear role=\"img\" />}\n size=\"sm\"\n variant=\"tertiary\"\n />\n )\n }\n)\n\nconst Label = React.forwardRef<\n HTMLSpanElement,\n React.HTMLAttributes<HTMLSpanElement> & Props\n>(function Label({ children, ...props }, ref) {\n const { labelId } = React.useContext(TokenContext)\n\n return (\n <StyledLabel id={labelId} ref={ref} {...props}>\n {children}\n </StyledLabel>\n )\n})\n\nParent.displayName = 'Token'\nRemove.displayName = 'Token.Remove'\nLabel.displayName = 'Token.Label'\n\n/**\n\n We use tokens in our multi select dropdowns and file attachers to indicate what\n has been selected or attached. Tokens in these components are removable.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-token--demo)\n\n @see [Design Guidelines](https://design.procore.com/tokens)\n\n */\nexport const Token = addSubcomponents(\n {\n Label,\n Remove,\n },\n Parent\n)\n"],"mappings":";;;;;AAAA,SAASA,KAAK,QAAQ,qBAAqB;AAC3C,SAASC,KAAK,QAAQ,mBAAmB;AACzC,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,gBAAgB,QAAQ,4BAA4B;AAE7D,SAASC,WAAW,EAAEC,YAAY,EAAEC,WAAW,QAAQ,gBAAgB;AAGvE,IAAMC,YAAY,gBAAGN,KAAK,CAACO,aAAa,CAAkB;EACxDC,OAAO,EAAE,EAAE;EACXC,QAAQ,EAAE,EAAE;EACZC,UAAU,EAAE;AACd,CAAC,CAAC;AAEF,IAAMC,MAAM,gBAAGX,KAAK,CAACY,UAAU,CAG7B,SAASC,KAAKA,CAAAC,IAAA,EASdC,GAAG,EACH;EAAA,IAREC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAAC,aAAA,GAAAH,IAAA,CACRI,QAAQ;IAARA,QAAQ,GAAAD,aAAA,cAAG,KAAK,GAAAA,aAAA;IAAAE,YAAA,GAAAL,IAAA,CAChBM,OAAO;IAAPA,OAAO,GA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":3,"file":"Token.js","names":["Clear","useId","React","useI18nContext","addSubcomponents","StyledLabel","StyledRemove","StyledToken","TokenContext","createContext","labelId","removeId","isDisabled","Parent","forwardRef","Token","_ref","ref","children","_ref$disabled","disabled","_ref$focused","focused","_ref$error","error","variant","props","_objectWithoutProperties","_excluded","isFocused","createElement","Provider","value","_extends","tabIndex","$disabled","$focused","$error","Remove","TokenRemove","i18n","_React$useContext","useContext","t","concat","id","icon","role","size","Label","_ref2","_excluded2","_React$useContext2","displayName"],"sources":["../../src/Token/Token.tsx"],"sourcesContent":["import { Clear } from '@procore/core-icons'\nimport { useId } from '@react-aria/utils'\nimport React from 'react'\nimport type { ButtonProps } from '../Button'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport type { Props } from '../_utils/types'\nimport { StyledLabel, StyledRemove, StyledToken } from './Token.styles'\nimport type { TokenContextApi, TokenProps } from './Token.types'\n\nconst TokenContext = React.createContext<TokenContextApi>({\n labelId: '',\n removeId: '',\n isDisabled: false,\n})\n\nconst Parent = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & TokenProps\n>(function Token(\n {\n children,\n disabled = false,\n focused = false,\n error = false,\n variant,\n ...props\n },\n ref\n) {\n const labelId = useId()\n const removeId = useId()\n const isDisabled = disabled || variant === 'disabled'\n const isFocused = focused || variant === 'focused'\n\n return (\n <TokenContext.Provider value={{ labelId, removeId, isDisabled }}>\n <StyledToken\n ref={ref}\n tabIndex={-1}\n {...props}\n $disabled={isDisabled}\n $focused={isFocused}\n $error={error}\n >\n {children}\n </StyledToken>\n </TokenContext.Provider>\n )\n})\n\nconst Remove = React.forwardRef<HTMLButtonElement, ButtonProps>(\n function TokenRemove(props, ref) {\n const i18n = useI18nContext()\n const { labelId, removeId, isDisabled } = React.useContext(TokenContext)\n\n return (\n <StyledRemove\n ref={ref}\n aria-hidden=\"false\"\n aria-label={i18n.t('core.token.remove')}\n aria-labelledby={`${removeId} ${labelId}`}\n id={removeId}\n disabled={isDisabled}\n {...props}\n icon={<Clear role=\"img\" />}\n size=\"sm\"\n variant=\"tertiary\"\n />\n )\n }\n)\n\nconst Label = React.forwardRef<\n HTMLSpanElement,\n React.HTMLAttributes<HTMLSpanElement> & Props\n>(function Label({ children, ...props }, ref) {\n const { labelId } = React.useContext(TokenContext)\n\n return (\n <StyledLabel id={labelId} ref={ref} {...props}>\n {children}\n </StyledLabel>\n )\n})\n\nParent.displayName = 'Token'\nRemove.displayName = 'Token.Remove'\nLabel.displayName = 'Token.Label'\n\n/**\n\n We use tokens in our multi select dropdowns and file attachers to indicate what\n has been selected or attached. Tokens in these components are removable.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-token--demo)\n\n @see [Design Guidelines](https://design.procore.com/tokens)\n\n */\nexport const Token = addSubcomponents(\n {\n Label,\n Remove,\n },\n Parent\n)\n"],"mappings":";;;;;AAAA,SAASA,KAAK,QAAQ,qBAAqB;AAC3C,SAASC,KAAK,QAAQ,mBAAmB;AACzC,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,gBAAgB,QAAQ,4BAA4B;AAE7D,SAASC,WAAW,EAAEC,YAAY,EAAEC,WAAW,QAAQ,gBAAgB;AAGvE,IAAMC,YAAY,gBAAGN,KAAK,CAACO,aAAa,CAAkB;EACxDC,OAAO,EAAE,EAAE;EACXC,QAAQ,EAAE,EAAE;EACZC,UAAU,EAAE;AACd,CAAC,CAAC;AAEF,IAAMC,MAAM,gBAAGX,KAAK,CAACY,UAAU,CAG7B,SAASC,KAAKA,CAAAC,IAAA,EASdC,GAAG,EACH;EAAA,IAREC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAAC,aAAA,GAAAH,IAAA,CACRI,QAAQ;IAARA,QAAQ,GAAAD,aAAA,cAAG,KAAK,GAAAA,aAAA;IAAAE,YAAA,GAAAL,IAAA,CAChBM,OAAO;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MACF,CAAC"}
@@ -6,15 +6,15 @@ 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_42_0__sc-zqi94b-0"
9
+ componentId: "core-12_43_0__sc-zqi94b-0"
10
10
  })(["", " ", " flex:0 1 auto;"], getTypographyIntent('body'), getEllipsis);
11
11
  export var StyledRemove = /*#__PURE__*/styled(Button).withConfig({
12
12
  displayName: "StyledRemove",
13
- componentId: "core-12_42_0__sc-zqi94b-1"
13
+ componentId: "core-12_43_0__sc-zqi94b-1"
14
14
  })(["border-radius:100%;color:", ";flex:0 0 auto;height:16px;margin:0 -", "px 0 ", "px;padding:0;width:16px;&:hover{background:", ";color:", ";}&:disabled,&[aria-disabled='true']{color:", ";}"], colors.white, spacing.sm, spacing.sm, colors.white, colors.blue40, colors.white);
15
15
  export var StyledToken = /*#__PURE__*/styled.div.withConfig({
16
16
  displayName: "StyledToken",
17
- componentId: "core-12_42_0__sc-zqi94b-2"
17
+ componentId: "core-12_43_0__sc-zqi94b-2"
18
18
  })(["align-items:center;background-color:", ";border-radius:200px;border:1px solid transparent;color:", ";cursor:default;display:inline-flex;height:24px;line-height:1;max-width:360px;min-width:48px;padding:", "px ", "px;&:hover,&.hover{background-color:", ";}", " ", " ", ""], colors.blue50, colors.white, spacing.xs, spacing.md, colors.blue45, function (_ref) {
19
19
  var _ref$$focused = _ref.$focused,
20
20
  $focused = _ref$$focused === void 0 ? false : _ref$$focused,
@@ -5,7 +5,7 @@ import { colors } from '../_styles/colors';
5
5
  import { spacing } from '../_styles/spacing';
6
6
  export var StyledHeaderBadge = /*#__PURE__*/styled.div.withConfig({
7
7
  displayName: "StyledHeaderBadge",
8
- componentId: "core-12_42_0__sc-1jpjx47-0"
8
+ componentId: "core-12_43_0__sc-1jpjx47-0"
9
9
  })(["", " border-radius:10px;border-style:solid;border-width:1px;display:inline-block;margin-bottom:", "px;padding:1px ", "px;", ""], getTypographyIntent('small'), spacing.sm, spacing.sm, function (_ref) {
10
10
  var $variant = _ref.$variant;
11
11
  if ($variant) {
@@ -18,22 +18,22 @@ export var StyledHeaderBadge = /*#__PURE__*/styled.div.withConfig({
18
18
  // TODO in v12 remove cursor: pointer;
19
19
  export var StyledToolHeaderIconContainer = /*#__PURE__*/styled.div.withConfig({
20
20
  displayName: "StyledToolHeaderIconContainer",
21
- componentId: "core-12_42_0__sc-1jpjx47-1"
21
+ componentId: "core-12_43_0__sc-1jpjx47-1"
22
22
  })(["color:", ";cursor:pointer;display:inline-flex;flex:0 0 auto;"], colors.orange50);
23
23
  export var StyledHeaderTabs = /*#__PURE__*/styled.div.withConfig({
24
24
  displayName: "StyledHeaderTabs",
25
- componentId: "core-12_42_0__sc-1jpjx47-2"
25
+ componentId: "core-12_43_0__sc-1jpjx47-2"
26
26
  })(["align-self:flex-end;flex:1 1 auto;min-width:100px;overflow:hidden;"]);
27
27
  export var StyledHeaderActions = /*#__PURE__*/styled.div.withConfig({
28
28
  displayName: "StyledHeaderActions",
29
- componentId: "core-12_42_0__sc-1jpjx47-3"
29
+ componentId: "core-12_43_0__sc-1jpjx47-3"
30
30
  })(["flex:0 0 auto;margin-left:auto;padding-left:", "px;"], spacing.lg);
31
31
  export var StyledToolHeaderTitle = /*#__PURE__*/styled(H1).withConfig({
32
32
  displayName: "StyledToolHeaderTitle",
33
- componentId: "core-12_42_0__sc-1jpjx47-4"
33
+ componentId: "core-12_43_0__sc-1jpjx47-4"
34
34
  })(["margin-right:", "px;white-space:nowrap;"], spacing.xl);
35
35
  export var StyledToolHeader = /*#__PURE__*/styled.div.withConfig({
36
36
  displayName: "StyledToolHeader",
37
- componentId: "core-12_42_0__sc-1jpjx47-5"
37
+ componentId: "core-12_43_0__sc-1jpjx47-5"
38
38
  })(["align-items:center;display:flex;min-height:36px;width:100%;", " + ", ",a + ", ",button + ", "{margin-left:", "px;}"], StyledToolHeaderIconContainer, StyledToolHeaderTitle, StyledToolHeaderTitle, StyledToolHeaderTitle, spacing.lg);
39
39
  //# sourceMappingURL=ToolHeader.styles.js.map
@@ -3,14 +3,14 @@ import { Page } from '../PageLayout';
3
3
  import { spacing } from '../_styles/spacing';
4
4
  export var StyledTitleOuter = /*#__PURE__*/styled(Page.Title).withConfig({
5
5
  displayName: "StyledTitleOuter",
6
- componentId: "core-12_42_0__sc-wa8j06-0"
6
+ componentId: "core-12_43_0__sc-wa8j06-0"
7
7
  })(["align-items:center;display:flex;gap:", "px;"], spacing.md);
8
8
  export var StyledTitleInner = /*#__PURE__*/styled.div.withConfig({
9
9
  displayName: "StyledTitleInner",
10
- componentId: "core-12_42_0__sc-wa8j06-1"
10
+ componentId: "core-12_43_0__sc-wa8j06-1"
11
11
  })(["width:100%;"]);
12
12
  export var StyledToolLandingPageBodyContent = /*#__PURE__*/styled.div.withConfig({
13
13
  displayName: "StyledToolLandingPageBodyContent",
14
- componentId: "core-12_42_0__sc-wa8j06-2"
14
+ componentId: "core-12_43_0__sc-wa8j06-2"
15
15
  })(["> * + *{margin-top:", "px;}"], spacing.sm);
16
16
  //# sourceMappingURL=ToolLandingPage.styles.js.map
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { ToolLandingPageHeaderTemplateProps } from './ToolLandingPageTemplate.types';
3
3
  export declare const ToolLandingPageHeaderTemplate: React.ForwardRefExoticComponent<Required<Pick<import("../PageTemplate/PageHeaderTemplate").PageHeaderTemplateProps, "heading">> & Partial<Pick<import("../PageTemplate/PageHeaderTemplate").PageHeaderTemplateProps, "banner" | "pills" | "actions" | "subheading" | "tabs">> & {
4
- settingsLink?: string | React.FunctionComponent<import("../Button/Button.types").AsLinkProps> | React.ForwardRefExoticComponent<import("../Button/Button.types").AsLinkProps> | undefined;
4
+ settingsLink?: string | React.FunctionComponent<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>> | React.ForwardRefExoticComponent<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>> | undefined;
5
5
  } & React.RefAttributes<HTMLDivElement>>;
6
6
  export declare const ToolLandingPageTemplate: React.ForwardRefExoticComponent<Pick<import("../PageTemplate/PageTemplate").PageTemplateProps, "children" | "header" | "pane"> & {
7
7
  headerProps?: ToolLandingPageHeaderTemplateProps | undefined;
@@ -8,16 +8,16 @@ import { getShadow } from '../_styles/shadows';
8
8
  import { spacing } from '../_styles/spacing';
9
9
  export var StyledTooltip = /*#__PURE__*/styled.span.withConfig({
10
10
  displayName: "StyledTooltip",
11
- componentId: "core-12_42_0__sc-1fawsi4-0"
11
+ componentId: "core-12_43_0__sc-1fawsi4-0"
12
12
  })(["", " color:", ";max-width:200px;padding:", "px ", "px;position:relative;word-wrap:break-word;overflow-wrap:break-word;white-space:normal;&:empty{display:none;}"], getTypographyIntent('small'), colors.white, spacing.sm, spacing.md);
13
13
  export var StyledContainer = /*#__PURE__*/styled.span.withConfig({
14
14
  displayName: "StyledContainer",
15
- componentId: "core-12_42_0__sc-1fawsi4-1"
15
+ componentId: "core-12_43_0__sc-1fawsi4-1"
16
16
  })(["display:inline-flex;background-color:", ";border-radius:", "px;", " & + [data-overlay-arrow]{background:", ";}&:has(> span:empty) + [data-overlay-arrow]{display:none;}"], colors.gray15, borderRadius.md, getShadow(3, 'bottom'), colors.gray15);
17
17
 
18
18
  // This is for the inline typography icon button. Note: not `Button` styles
19
19
  export var StyledTooltipButton = /*#__PURE__*/styled.button.withConfig({
20
20
  displayName: "StyledTooltipButton",
21
- componentId: "core-12_42_0__sc-1fawsi4-2"
21
+ componentId: "core-12_43_0__sc-1fawsi4-2"
22
22
  })(["", " border-radius:50%;color:", ";display:inline-flex;vertical-align:middle;&:focus-visible{", "}* + &{margin-left:", "px;}"], getUnstyledButton, colors.gray45, getGapOutlineFocus('ontop'), spacing.sm);
23
23
  //# sourceMappingURL=Tooltip.styles.js.map
package/dist/Tree/Tree.js CHANGED
@@ -565,7 +565,7 @@ var IconContainer = function IconContainer(_ref5) {
565
565
  };
566
566
  var StyledChevronIcon = /*#__PURE__*/styled(ChevronRight).withConfig({
567
567
  displayName: "StyledChevronIcon",
568
- componentId: "core-12_42_0__sc-f25ekl-0"
568
+ componentId: "core-12_43_0__sc-f25ekl-0"
569
569
  })(["transform:rotate(", "deg);transition:transform 150ms ease-out;"], function (_ref6) {
570
570
  var $isExpanded = _ref6.$isExpanded;
571
571
  return $isExpanded ? 90 : 0;
@@ -5,11 +5,11 @@ import { Typography } from '../Typography/Typography';
5
5
  import { colors } from '../_styles/colors';
6
6
  export var StyledFilenameCaption = /*#__PURE__*/styled(Typography).withConfig({
7
7
  displayName: "StyledFilenameCaption",
8
- componentId: "core-12_42_0__sc-2d45b5-0"
8
+ componentId: "core-12_43_0__sc-2d45b5-0"
9
9
  })(["display:flex;width:100%;"]);
10
10
  export var StyledTree = /*#__PURE__*/styled.div.withConfig({
11
11
  displayName: "StyledTree",
12
- componentId: "core-12_42_0__sc-2d45b5-1"
12
+ componentId: "core-12_43_0__sc-2d45b5-1"
13
13
  })(["width:100%;height:100%;min-height:36px;outline:none;overflow:auto;"]);
14
14
  export var StyledTreeRowContainer = /*#__PURE__*/styled(Typography).withConfig({
15
15
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -17,7 +17,7 @@ export var StyledTreeRowContainer = /*#__PURE__*/styled(Typography).withConfig({
17
17
  }
18
18
  }).withConfig({
19
19
  displayName: "StyledTreeRowContainer",
20
- componentId: "core-12_42_0__sc-2d45b5-2"
20
+ componentId: "core-12_43_0__sc-2d45b5-2"
21
21
  })(["display:flex;align-items:center;height:36px;background:transparent;box-shadow:inset 4px 0px 0px transparent;cursor:default;outline:none;", " &:hover{background:", ";}", " ", ""], function (_ref) {
22
22
  var isSelectable = _ref.isSelectable,
23
23
  $isSelectable = _ref.$isSelectable;
@@ -35,29 +35,29 @@ export var StyledTreeRowContainer = /*#__PURE__*/styled(Typography).withConfig({
35
35
  });
36
36
  export var StyledTreeRowContent = /*#__PURE__*/styled.div.withConfig({
37
37
  displayName: "StyledTreeRowContent",
38
- componentId: "core-12_42_0__sc-2d45b5-3"
38
+ componentId: "core-12_43_0__sc-2d45b5-3"
39
39
  })(["display:flex;align-items:center;"]);
40
40
  export var StyledTreeRowWrapper = /*#__PURE__*/styled.div.withConfig({
41
41
  displayName: "StyledTreeRowWrapper",
42
- componentId: "core-12_42_0__sc-2d45b5-4"
42
+ componentId: "core-12_43_0__sc-2d45b5-4"
43
43
  })(["outline:none;"]);
44
44
  var StyledIconBase = /*#__PURE__*/styled(Box).withConfig({
45
45
  displayName: "StyledIconBase",
46
- componentId: "core-12_42_0__sc-2d45b5-5"
46
+ componentId: "core-12_43_0__sc-2d45b5-5"
47
47
  })(["display:flex;justify-content:center;align-items:center;width:24px;height:24px;min-width:24px;min-height:24px;"]);
48
48
 
49
49
  /** @deprecated Use StyledChevronPlaceholder instead */
50
50
  export var StyledChevronContainer = /*#__PURE__*/styled(StyledIconBase).withConfig({
51
51
  displayName: "StyledChevronContainer",
52
- componentId: "core-12_42_0__sc-2d45b5-6"
52
+ componentId: "core-12_43_0__sc-2d45b5-6"
53
53
  })([""]);
54
54
  export var StyledChevronPlaceholder = /*#__PURE__*/styled(StyledIconBase).withConfig({
55
55
  displayName: "StyledChevronPlaceholder",
56
- componentId: "core-12_42_0__sc-2d45b5-7"
56
+ componentId: "core-12_43_0__sc-2d45b5-7"
57
57
  })([""]);
58
58
  export var StyledIconContainer = /*#__PURE__*/styled(StyledIconBase).withConfig({
59
59
  displayName: "StyledIconContainer",
60
- componentId: "core-12_42_0__sc-2d45b5-8"
60
+ componentId: "core-12_43_0__sc-2d45b5-8"
61
61
  })(["color:", ";"], function (_ref4) {
62
62
  var $isSelected = _ref4.$isSelected;
63
63
  return $isSelected ? colors.blue45 : colors.gray40;
@@ -66,7 +66,7 @@ export var StyledIconContainer = /*#__PURE__*/styled(StyledIconBase).withConfig(
66
66
  /** @deprecated TreeRowChevron now uses Button with inline styled icon */
67
67
  export var StyledChevron = /*#__PURE__*/styled(ChevronRight).withConfig({
68
68
  displayName: "StyledChevron",
69
- componentId: "core-12_42_0__sc-2d45b5-9"
69
+ componentId: "core-12_43_0__sc-2d45b5-9"
70
70
  })(["transform:rotate(", "deg);transition:transform 150ms ease-out;"], function (_ref5) {
71
71
  var $isExpanded = _ref5.$isExpanded;
72
72
  return $isExpanded ? 90 : 0;
@@ -12,6 +12,7 @@ import { Clear, Search } from '@procore/core-icons/dist';
12
12
  import React from 'react';
13
13
  import { Button } from '../Button';
14
14
  import { useLayoutEventListener } from '../_hooks/EventListener';
15
+ import { useI18nContext } from '../_hooks/I18n';
15
16
  import { mergeRefs } from '../_utils/mergeRefs';
16
17
  import { StyledIcon, StyledInput, StyledTypeahead } from './Typeahead.styles';
17
18
  /**
@@ -33,6 +34,7 @@ export var Typeahead = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
33
34
  var onChange = React.useCallback(function onChange(e) {
34
35
  onChange_ === null || onChange_ === void 0 ? void 0 : onChange_(e.target.value, e);
35
36
  }, [onChange_]);
37
+ var i18n = useI18nContext();
36
38
  var innerRef = React.useRef(null);
37
39
  useLayoutEventListener({
38
40
  dependencies: [onChange_, onKeyDown_],
@@ -60,6 +62,9 @@ export var Typeahead = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
60
62
  value: ''
61
63
  })
62
64
  }));
65
+ if (innerRef.current) {
66
+ innerRef.current.focus();
67
+ }
63
68
  }
64
69
  }, [disabled, onChange_]);
65
70
  return /*#__PURE__*/React.createElement(StyledTypeahead, {
@@ -76,14 +81,13 @@ export var Typeahead = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
76
81
  })), /*#__PURE__*/React.createElement(StyledIcon, {
77
82
  disabled: disabled
78
83
  }, value ? /*#__PURE__*/React.createElement(Button, {
79
- "aria-label": "Clear the input",
84
+ "aria-label": i18n.t('core.typeahead.clear'),
80
85
  "data-qa": "core-typeahead-clear-icon",
81
86
  size: "sm",
82
87
  variant: "tertiary",
83
88
  icon: /*#__PURE__*/React.createElement(Clear, null),
84
89
  disabled: disabled,
85
- onClick: onClickClear,
86
- tabIndex: -1 // TODO revisit this accessibility
90
+ onClick: onClickClear
87
91
  }) : /*#__PURE__*/React.createElement(Search, {
88
92
  "data-qa": "core-typeahead-search-icon",
89
93
  size: "sm"
@@ -1 +1 @@
1
- {"version":3,"file":"Typeahead.js","names":["Clear","Search","React","Button","useLayoutEventListener","mergeRefs","StyledIcon","StyledInput","StyledTypeahead","Typeahead","forwardRef","_ref","ref","className","disabled","onChange_","onChange","style","value","_ref$type","type","onKeyDown_","onKeyDown","props","_objectWithoutProperties","_excluded","useCallback","e","target","innerRef","useRef","dependencies","event","handler","key","stopPropagation","_objectSpread","scope","onClickClear","createElement","_extends","size","variant","icon","onClick","tabIndex"],"sources":["../../src/Typeahead/Typeahead.tsx"],"sourcesContent":["import { Clear, Search } from '@procore/core-icons/dist'\nimport React from 'react'\nimport { Button } from '../Button'\nimport { useLayoutEventListener } from '../_hooks/EventListener'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport { StyledIcon, StyledInput, StyledTypeahead } from './Typeahead.styles'\nimport type { TypeaheadInputProps, TypeaheadProps } from './Typeahead.types'\n\n/**\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-typeahead--demo)\n\n */\nexport const Typeahead = React.forwardRef<\n HTMLInputElement,\n TypeaheadInputProps & TypeaheadProps\n>(function (\n {\n className,\n disabled,\n onChange: onChange_,\n style,\n value,\n type = 'search',\n onKeyDown: onKeyDown_,\n ...props\n },\n ref\n) {\n const onChange = React.useCallback(\n function onChange(e: React.ChangeEvent<HTMLInputElement>) {\n onChange_?.(e.target.value, e)\n },\n [onChange_]\n )\n\n const innerRef = React.useRef(null)\n\n useLayoutEventListener({\n dependencies: [onChange_, onKeyDown_],\n event: 'keydown',\n handler: function onKeyDown(e: React.KeyboardEvent<HTMLInputElement>) {\n if (e.key === 'Escape' || e.key === 'Esc') {\n // stop propagation once to clear input\n if ((e.target as HTMLInputElement).value) {\n e.stopPropagation()\n }\n onChange_?.('', { ...e, target: { ...e.target, value: '' } })\n }\n\n onKeyDown_?.(e)\n },\n scope: innerRef,\n })\n\n const onClickClear = React.useCallback(\n function onClickClear(e: React.MouseEvent<HTMLButtonElement>) {\n if (!disabled) {\n onChange_?.('', { ...e, target: { ...e.target, value: '' } })\n }\n },\n [disabled, onChange_]\n )\n\n return (\n <StyledTypeahead\n className={className}\n style={style}\n data-qa={props['data-qa']}\n >\n <StyledInput\n {...props}\n type={type}\n data-qa=\"core-typeahead-input\"\n ref={mergeRefs(innerRef, ref)}\n onChange={onChange}\n disabled={disabled}\n value={value}\n />\n <StyledIcon disabled={disabled}>\n {value ? (\n <Button\n aria-label=\"Clear the input\"\n data-qa=\"core-typeahead-clear-icon\"\n size=\"sm\"\n variant=\"tertiary\"\n icon={<Clear />}\n disabled={disabled}\n onClick={onClickClear}\n tabIndex={-1} // TODO revisit this accessibility\n />\n ) : (\n <Search data-qa=\"core-typeahead-search-icon\" size=\"sm\" />\n )}\n </StyledIcon>\n </StyledTypeahead>\n )\n})\n"],"mappings":";;;;;;;;;;AAAA,SAASA,KAAK,EAAEC,MAAM,QAAQ,0BAA0B;AACxD,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,sBAAsB,QAAQ,yBAAyB;AAChE,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,SAASC,UAAU,EAAEC,WAAW,EAAEC,eAAe,QAAQ,oBAAoB;AAG7E;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,SAAS,gBAAGP,KAAK,CAACQ,UAAU,CAGvC,UAAAC,IAAA,EAWAC,GAAG,EACH;EAAA,IAVEC,SAAS,GAAAF,IAAA,CAATE,SAAS;IACTC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IACEC,SAAS,GAAAJ,IAAA,CAAnBK,QAAQ;IACRC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;EAAI,CAAE,CAEhD,CACG,CAAC;AAEtB,CAAC,CAAC"}
1
+ {"version":3,"file":"Typeahead.js","names":["Clear","Search","React","Button","useLayoutEventListener","useI18nContext","mergeRefs","StyledIcon","StyledInput","StyledTypeahead","Typeahead","forwardRef","_ref","ref","className","disabled","onChange_","onChange","style","value","_ref$type","type","onKeyDown_","onKeyDown","props","_objectWithoutProperties","_excluded","useCallback","e","target","i18n","innerRef","useRef","dependencies","event","handler","key","stopPropagation","_objectSpread","scope","onClickClear","current","focus","createElement","_extends","t","size","variant","icon","onClick"],"sources":["../../src/Typeahead/Typeahead.tsx"],"sourcesContent":["import { Clear, Search } from '@procore/core-icons/dist'\nimport React from 'react'\nimport { Button } from '../Button'\nimport { useLayoutEventListener } from '../_hooks/EventListener'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport { StyledIcon, StyledInput, StyledTypeahead } from './Typeahead.styles'\nimport type { TypeaheadInputProps, TypeaheadProps } from './Typeahead.types'\n\n/**\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-typeahead--demo)\n\n */\nexport const Typeahead = React.forwardRef<\n HTMLInputElement,\n TypeaheadInputProps & TypeaheadProps\n>(function (\n {\n className,\n disabled,\n onChange: onChange_,\n style,\n value,\n type = 'search',\n onKeyDown: onKeyDown_,\n ...props\n },\n ref\n) {\n const onChange = React.useCallback(\n function onChange(e: React.ChangeEvent<HTMLInputElement>) {\n onChange_?.(e.target.value, e)\n },\n [onChange_]\n )\n const i18n = useI18nContext()\n const innerRef = React.useRef<HTMLInputElement | null>(null)\n\n useLayoutEventListener({\n dependencies: [onChange_, onKeyDown_],\n event: 'keydown',\n handler: function onKeyDown(e: React.KeyboardEvent<HTMLInputElement>) {\n if (e.key === 'Escape' || e.key === 'Esc') {\n // stop propagation once to clear input\n if ((e.target as HTMLInputElement).value) {\n e.stopPropagation()\n }\n onChange_?.('', { ...e, target: { ...e.target, value: '' } })\n }\n\n onKeyDown_?.(e)\n },\n scope: innerRef,\n })\n\n const onClickClear = React.useCallback(\n function onClickClear(e: React.MouseEvent<HTMLButtonElement>) {\n if (!disabled) {\n onChange_?.('', { ...e, target: { ...e.target, value: '' } })\n\n if (innerRef.current) {\n innerRef.current.focus()\n }\n }\n },\n [disabled, onChange_]\n )\n\n return (\n <StyledTypeahead\n className={className}\n style={style}\n data-qa={props['data-qa']}\n >\n <StyledInput\n {...props}\n type={type}\n data-qa=\"core-typeahead-input\"\n ref={mergeRefs(innerRef, ref)}\n onChange={onChange}\n disabled={disabled}\n value={value}\n />\n <StyledIcon disabled={disabled}>\n {value ? (\n <Button\n aria-label={i18n.t('core.typeahead.clear')}\n data-qa=\"core-typeahead-clear-icon\"\n size=\"sm\"\n variant=\"tertiary\"\n icon={<Clear />}\n disabled={disabled}\n onClick={onClickClear}\n />\n ) : (\n <Search data-qa=\"core-typeahead-search-icon\" size=\"sm\" />\n )}\n </StyledIcon>\n </StyledTypeahead>\n )\n})\n"],"mappings":";;;;;;;;;;AAAA,SAASA,KAAK,EAAEC,MAAM,QAAQ,0BAA0B;AACxD,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,sBAAsB,QAAQ,yBAAyB;AAChE,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,SAASC,UAAU,EAAEC,WAAW,EAAEC,eAAe,QAAQ,oBAAoB;AAG7E;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,SAAS,gBAAGR,KAAK,CAACS,UAAU,CAGvC,UAAAC,IAAA,EAWAC,GAAG,EACH;EAAA,IAVEC,SAAS,GAAAF,IAAA,CAATE,SAAS;IACTC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IACEC,SAAS,GAAAJ,IAAA,CAAnBK,QAAQ;IACRC,KAAK,GAAAN,IAAA,CAALM,KAAK;IACLC,KAAK,GAAAP,IAAA,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,KAAA,CAAAyC,aAAA,CAAC1C,MAAM;IAAC,WAAQ,4BAA4B;IAAC6C,IAAI,EAAC;EAAI,CAAE,CAEhD,CACG,CAAC;AAEtB,CAAC,CAAC"}
@@ -5,11 +5,11 @@ import { spacing } from '../_styles/spacing';
5
5
  var inputHeight = 36;
6
6
  export var StyledInput = /*#__PURE__*/styled.input.withConfig({
7
7
  displayName: "StyledInput",
8
- componentId: "core-12_42_0__sc-gpc39h-0"
8
+ componentId: "core-12_43_0__sc-gpc39h-0"
9
9
  })(["", " padding-right:", "px;"], getSearchInputStyles(), spacing.xxl);
10
10
  export var StyledIcon = /*#__PURE__*/styled.div.withConfig({
11
11
  displayName: "StyledIcon",
12
- componentId: "core-12_42_0__sc-gpc39h-1"
12
+ componentId: "core-12_43_0__sc-gpc39h-1"
13
13
  })(["align-items:center;color:", ";display:flex;height:", "px;justify-content:center;pointer-events:", ";position:absolute;right:0;top:0;width:", "px;"], function (p) {
14
14
  return p.disabled ? colors.gray70 : colors.gray45;
15
15
  }, inputHeight, function (p) {
@@ -17,6 +17,6 @@ export var StyledIcon = /*#__PURE__*/styled.div.withConfig({
17
17
  }, inputHeight);
18
18
  export var StyledTypeahead = /*#__PURE__*/styled.div.withConfig({
19
19
  displayName: "StyledTypeahead",
20
- componentId: "core-12_42_0__sc-gpc39h-2"
20
+ componentId: "core-12_43_0__sc-gpc39h-2"
21
21
  })(["position:relative;width:100%;"]);
22
22
  //# sourceMappingURL=Typeahead.styles.js.map
@@ -35,7 +35,7 @@ export var semiboldRules = function semiboldRules() {
35
35
  };
36
36
  export var StyledTypography = /*#__PURE__*/styled.span.withConfig({
37
37
  displayName: "StyledTypography",
38
- componentId: "core-12_42_0__sc-1c4583t-0"
38
+ componentId: "core-12_43_0__sc-1c4583t-0"
39
39
  })(["", " color:", ";font-style:", ";font-weight:", ";", " ", " em,i{font-style:italic;}"], function (_ref) {
40
40
  var _ref$$intent = _ref.$intent,
41
41
  $intent = _ref$$intent === void 0 ? 'body' : _ref$$intent;
@@ -5,11 +5,11 @@ import { colors } from '../_styles/colors';
5
5
  import { getTypographyIntent } from './Typography.styles';
6
6
  var StyledBodyCell = /*#__PURE__*/styled(Table.BodyCell).withConfig({
7
7
  displayName: "StyledBodyCell",
8
- componentId: "core-12_42_0__sc-p4v7d-0"
8
+ componentId: "core-12_43_0__sc-p4v7d-0"
9
9
  })([""]);
10
10
  var StyledTextCell = /*#__PURE__*/styled(Table.TextCell).withConfig({
11
11
  displayName: "StyledTextCell",
12
- componentId: "core-12_42_0__sc-p4v7d-1"
12
+ componentId: "core-12_43_0__sc-p4v7d-1"
13
13
  })(["", " color:", ";"], getTypographyIntent('body'), colors.blue50);
14
14
  function BodyCell() {
15
15
  return /*#__PURE__*/React.createElement(StyledBodyCell, {
@@ -16,6 +16,7 @@ export interface TypographyProps extends Props {
16
16
  * [prop is from styled-components](https://styled-components.com/docs/api#as-polymorphic-prop)
17
17
  * __Warning__: If using TypeScript, it will not switch types and
18
18
  * some props may error. You can add `@ts-expect-error`.
19
+ * @a11y Typography controls visual styles; prefer semantic HTML via `as` when needed.
19
20
  * See [styled-components issue](https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30117)
20
21
  * @default 'span'
21
22
  * @since 10.19.0
@@ -1 +1 @@
1
- {"version":3,"file":"Typography.types.js","names":[],"sources":["../../src/Typography/Typography.types.ts"],"sourcesContent":["import type { Color } from '../_styles/colors'\nimport type { Props } from '../_utils/types'\n\nexport type Intent = 'h1' | 'h2' | 'h3' | 'body' | 'small' | 'label'\n\nexport type Weight = 'regular' | 'semibold' | 'bold'\n\nexport interface TypographyProps extends Props {\n /**\n * When children are a string or multiple elements, they will be wrapped\n * by a `span`. When it is a single element, classnames will\n * be added to it instead\n * @since 10.19.0\n * */\n children: React.ReactNode\n\n /**\n * Change the HTML tag. This\n * [prop is from styled-components](https://styled-components.com/docs/api#as-polymorphic-prop)\n * __Warning__: If using TypeScript, it will not switch types and\n * some props may error. You can add `@ts-expect-error`.\n * See [styled-components issue](https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30117)\n * @default 'span'\n * @since 10.19.0\n */\n as?: string | React.ComponentType<any> // styled-components as\n\n /**\n * Changes font color, can be any of the `colors` object HSL Palette\n * @default 'gray15'\n * @since 10.19.0\n */\n color?: Color\n\n /**\n * Changes the size of the font\n * @since 10.19.0\n */\n intent?: Intent\n\n /**\n * Applies `font-style: italic` if enabled\n * @since 10.19.0\n */\n italic?: boolean\n\n /**\n * Changes font weight if it is supported in the design system\n * @since 10.19.0\n */\n weight?: Weight\n\n /**\n * Enables word wrapping and breaking within the component\n * @since 12.0.0\n */\n breakWord?: boolean\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Typography.types.js","names":[],"sources":["../../src/Typography/Typography.types.ts"],"sourcesContent":["import type { Color } from '../_styles/colors'\nimport type { Props } from '../_utils/types'\n\nexport type Intent = 'h1' | 'h2' | 'h3' | 'body' | 'small' | 'label'\n\nexport type Weight = 'regular' | 'semibold' | 'bold'\n\nexport interface TypographyProps extends Props {\n /**\n * When children are a string or multiple elements, they will be wrapped\n * by a `span`. When it is a single element, classnames will\n * be added to it instead\n * @since 10.19.0\n * */\n children: React.ReactNode\n\n /**\n * Change the HTML tag. This\n * [prop is from styled-components](https://styled-components.com/docs/api#as-polymorphic-prop)\n * __Warning__: If using TypeScript, it will not switch types and\n * some props may error. You can add `@ts-expect-error`.\n * @a11y Typography controls visual styles; prefer semantic HTML via `as` when needed.\n * See [styled-components issue](https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30117)\n * @default 'span'\n * @since 10.19.0\n */\n as?: string | React.ComponentType<any> // styled-components as\n\n /**\n * Changes font color, can be any of the `colors` object HSL Palette\n * @default 'gray15'\n * @since 10.19.0\n */\n color?: Color\n\n /**\n * Changes the size of the font\n * @since 10.19.0\n */\n intent?: Intent\n\n /**\n * Applies `font-style: italic` if enabled\n * @since 10.19.0\n */\n italic?: boolean\n\n /**\n * Changes font weight if it is supported in the design system\n * @since 10.19.0\n */\n weight?: Weight\n\n /**\n * Enables word wrapping and breaking within the component\n * @since 12.0.0\n */\n breakWord?: boolean\n}\n"],"mappings":""}
@@ -413,6 +413,9 @@ export declare const coreTranslations: {
413
413
  breadcrumbs: {
414
414
  label: string;
415
415
  };
416
+ anchorNavigation: {
417
+ landmarkLabel: string;
418
+ };
416
419
  calendar: {
417
420
  navigationLabel: string;
418
421
  };
@@ -716,8 +719,12 @@ export declare const coreTranslations: {
716
719
  clear: string;
717
720
  search: string;
718
721
  selectAll: string;
722
+ selectedItems: string;
719
723
  noResult: string;
720
724
  };
725
+ typeahead: {
726
+ clear: string;
727
+ };
721
728
  splitViewCard: {
722
729
  a11y: {
723
730
  close: string;
@@ -4344,6 +4351,9 @@ export declare const coreTranslations: {
4344
4351
  breadcrumbs: {
4345
4352
  label: string;
4346
4353
  };
4354
+ anchorNavigation: {
4355
+ landmarkLabel: string;
4356
+ };
4347
4357
  calendar: {
4348
4358
  navigationLabel: string;
4349
4359
  };
@@ -4647,8 +4657,12 @@ export declare const coreTranslations: {
4647
4657
  clear: string;
4648
4658
  search: string;
4649
4659
  selectAll: string;
4660
+ selectedItems: string;
4650
4661
  noResult: string;
4651
4662
  };
4663
+ typeahead: {
4664
+ clear: string;
4665
+ };
4652
4666
  splitViewCard: {
4653
4667
  a11y: {
4654
4668
  close: string;
@@ -8,6 +8,9 @@
8
8
  "breadcrumbs": {
9
9
  "label": "Breadcrumb"
10
10
  },
11
+ "anchorNavigation": {
12
+ "landmarkLabel": "On this page"
13
+ },
11
14
  "calendar": {
12
15
  "navigationLabel": "Go to {{monthYear}}"
13
16
  },
@@ -311,8 +314,12 @@
311
314
  "clear": "Delete field",
312
315
  "search": "Search",
313
316
  "selectAll": "Select All",
317
+ "selectedItems": "Selected items",
314
318
  "noResult": "No results"
315
319
  },
320
+ "typeahead": {
321
+ "clear": "Clear the input"
322
+ },
316
323
  "splitViewCard": {
317
324
  "a11y": {
318
325
  "close": "Close"
@@ -8,6 +8,9 @@
8
8
  "breadcrumbs": {
9
9
  "label": "[ƁƁřḗȧḓƈřŭḿƀƀ]"
10
10
  },
11
+ "anchorNavigation": {
12
+ "landmarkLabel": "[ǾǾǾƞ · ŧħīş · ƥȧɠḗḗḗ]"
13
+ },
11
14
  "calendar": {
12
15
  "navigationLabel": "[ƓƓƓƓǿ · ŧǿ · {{ḿǿƞŧħẎḗȧř}}}}}]"
13
16
  },
@@ -311,8 +314,12 @@
311
314
  "clear": "[ḒḒḒḗŀḗŧḗ · ƒīḗŀḓḓḓ]",
312
315
  "search": "[ŞŞḗȧřƈħħ]",
313
316
  "selectAll": "[ŞŞḗŀḗƈŧ · Ȧŀŀŀ]",
317
+ "selectedItems": "[ŞŞŞḗŀḗƈŧḗḓ · īŧḗḿşşş]",
314
318
  "noResult": "[ȠȠǿ · řḗşŭŀŧşş]"
315
319
  },
320
+ "typeahead": {
321
+ "clear": "[ƇƇƇŀḗȧř · ŧħḗ · īƞƥŭŧŧŧ]"
322
+ },
316
323
  "splitViewCard": {
317
324
  "a11y": {
318
325
  "close": "[Ƈŀǿşḗ]"