@procore/core-react 12.17.0 → 12.17.2

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 (218) hide show
  1. package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
  2. package/dist/Avatar/Avatar.styles.js +5 -5
  3. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  4. package/dist/Badge/Badge.styles.js +2 -2
  5. package/dist/Banner/Banner.styles.js +10 -10
  6. package/dist/Box/Box.styles.js +1 -1
  7. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  8. package/dist/Button/Button.styles.js +5 -5
  9. package/dist/Calendar/Calendar.styles.js +8 -8
  10. package/dist/Card/Card.js +8 -2
  11. package/dist/Card/Card.js.map +1 -1
  12. package/dist/Card/Card.styles.js +1 -1
  13. package/dist/Checkbox/Checkbox.js +0 -1
  14. package/dist/Checkbox/Checkbox.js.map +1 -1
  15. package/dist/Checkbox/Checkbox.styles.js +6 -6
  16. package/dist/Checkbox/CheckboxTooltip.js +1 -1
  17. package/dist/ContactItem/ContactItem.styles.js +5 -5
  18. package/dist/Content/Content.styles.js +2 -2
  19. package/dist/DateInput/DateInput.styles.js +6 -6
  20. package/dist/DetailPage/DetailPage.styles.js +7 -7
  21. package/dist/Dropdown/Dropdown.styles.js +3 -3
  22. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  23. package/dist/Dropzone/Dropzone.hooks.js +8 -6
  24. package/dist/Dropzone/Dropzone.hooks.js.map +1 -1
  25. package/dist/Dropzone/Dropzone.js +45 -45
  26. package/dist/Dropzone/Dropzone.js.map +1 -1
  27. package/dist/Dropzone/Dropzone.styles.js +9 -9
  28. package/dist/Dropzone/Dropzone.utils.d.ts +3 -0
  29. package/dist/Dropzone/Dropzone.utils.js +7 -0
  30. package/dist/Dropzone/Dropzone.utils.js.map +1 -0
  31. package/dist/EmptyState/EmptyState.styles.js +6 -6
  32. package/dist/Field/Field.styles.js +3 -3
  33. package/dist/FileList/FileList.styles.js +4 -4
  34. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  35. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  36. package/dist/FileSelect/FileSelect.styles.js +2 -2
  37. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  38. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  39. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  40. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  41. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  42. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  43. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  44. package/dist/FileToken/FileToken.styles.js +4 -4
  45. package/dist/FilterToken/FilterToken.styles.js +2 -2
  46. package/dist/FlexList/FlexList.styles.js +1 -1
  47. package/dist/Form/Form.styles.js +14 -14
  48. package/dist/Form/StyledFormikForm.styles.js +2 -2
  49. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  50. package/dist/Grid/Grid.styles.js +2 -2
  51. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  52. package/dist/Input/Input.styles.js +1 -1
  53. package/dist/Link/Link.styles.js +1 -1
  54. package/dist/ListPage/ListPage.styles.js +8 -8
  55. package/dist/Loader/Loader.styles.js +2 -2
  56. package/dist/MenuImperative/MenuImperative.js +4 -1
  57. package/dist/MenuImperative/MenuImperative.js.map +1 -1
  58. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  59. package/dist/Modal/Modal.styles.js +13 -13
  60. package/dist/MultiSelect/MultiSelect.js +7 -1
  61. package/dist/MultiSelect/MultiSelect.js.map +1 -1
  62. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  63. package/dist/NextMenu/NextMenu.styles.js +3 -3
  64. package/dist/Notation/Notation.js +1 -1
  65. package/dist/NumberInput/NumberInput.styles.js +7 -7
  66. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  67. package/dist/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
  68. package/dist/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
  69. package/dist/PageLayout/PageLayout.styles.js +16 -16
  70. package/dist/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
  71. package/dist/PageTemplate/PageTemplate.styles.js +3 -3
  72. package/dist/Pagination/Pagination.styles.js +5 -5
  73. package/dist/Panel/Panel.styles.js +11 -11
  74. package/dist/Pill/Pill.styles.js +2 -2
  75. package/dist/PillSelect/PillSelect.styles.js +4 -4
  76. package/dist/Popover/Popover.styles.js +2 -2
  77. package/dist/Portal/Portal.styles.js +1 -1
  78. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  79. package/dist/RadioButton/RadioButton.styles.js +3 -3
  80. package/dist/Required/Required.styles.js +3 -3
  81. package/dist/Search/Search.styles.js +5 -5
  82. package/dist/Search/Search.types.d.ts +12 -2
  83. package/dist/Search/Search.types.js.map +1 -1
  84. package/dist/Section/Section.styles.js +7 -7
  85. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  86. package/dist/Select/Select.js +1 -1
  87. package/dist/Select/Select.js.map +1 -1
  88. package/dist/Select/Select.styles.js +7 -7
  89. package/dist/Semantic/Semantic.styles.js +9 -9
  90. package/dist/Slider/Slider.styles.js +5 -5
  91. package/dist/Spinner/Spinner.styles.js +7 -7
  92. package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
  93. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  94. package/dist/SuperSelect/SuperSelect.styles.js +37 -37
  95. package/dist/SuperSelect/SuperSelect.types.d.ts +1 -0
  96. package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
  97. package/dist/SuperSelect/useSuperSelect.d.ts +1 -1
  98. package/dist/SuperSelect/useSuperSelect.js +9 -5
  99. package/dist/SuperSelect/useSuperSelect.js.map +1 -1
  100. package/dist/Switch/Switch.styles.js +4 -4
  101. package/dist/Table/Table.styles.js +28 -28
  102. package/dist/TableShelf/TableShelf.styles.js +5 -5
  103. package/dist/Tabs/Tabs.styles.js +15 -15
  104. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  105. package/dist/TextArea/TextArea.styles.js +1 -1
  106. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  107. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  108. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  109. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  110. package/dist/Tile/Tile.styles.js +8 -8
  111. package/dist/Title/Title.styles.js +7 -7
  112. package/dist/Toast/Toast.styles.js +3 -3
  113. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  114. package/dist/Token/Token.styles.js +3 -3
  115. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  116. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  117. package/dist/Tooltip/Tooltip.styles.js +2 -2
  118. package/dist/Tree/Tree.styles.js +9 -9
  119. package/dist/Typeahead/Typeahead.styles.js +3 -3
  120. package/dist/Typography/Typography.styles.js +1 -1
  121. package/dist/Typography/Typography.table.story.js +2 -2
  122. package/dist/_hooks/I18n.d.ts +42 -0
  123. package/dist/_locales/de-DE.json +11 -9
  124. package/dist/_locales/en-AU.json +11 -9
  125. package/dist/_locales/en-CA.json +11 -9
  126. package/dist/_locales/en-GB.json +11 -9
  127. package/dist/_locales/en.json +16 -9
  128. package/dist/_locales/es-ES.json +11 -9
  129. package/dist/_locales/es.json +11 -9
  130. package/dist/_locales/fr-CA.json +11 -9
  131. package/dist/_locales/fr-FR.json +11 -9
  132. package/dist/_locales/is-IS.json +11 -9
  133. package/dist/_locales/ja-JP.json +11 -9
  134. package/dist/_locales/pl-PL.json +15 -13
  135. package/dist/_locales/pseudo.json +16 -9
  136. package/dist/_locales/pt-BR.json +11 -9
  137. package/dist/_locales/th-TH.json +11 -9
  138. package/dist/_locales/zh-SG.json +11 -9
  139. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  140. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
  141. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  142. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  143. package/dist/_typedoc/Box/Box.types.json +68 -68
  144. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  145. package/dist/_typedoc/Button/Button.types.json +12 -12
  146. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  147. package/dist/_typedoc/Card/Card.types.json +6 -6
  148. package/dist/_typedoc/Checkbox/Checkbox.types.json +9 -9
  149. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  150. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  151. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  152. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  153. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  154. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +29 -29
  155. package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
  156. package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
  157. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  158. package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
  159. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  160. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  161. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  162. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  163. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  164. package/dist/_typedoc/Form/Form.types.json +741 -741
  165. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  166. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  167. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  168. package/dist/_typedoc/Input/Input.types.json +2 -2
  169. package/dist/_typedoc/Link/Link.types.json +4 -4
  170. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  171. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  172. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  173. package/dist/_typedoc/Modal/Modal.types.json +46 -46
  174. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  175. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  176. package/dist/_typedoc/NumberInput/NumberInput.types.json +37 -37
  177. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
  178. package/dist/_typedoc/PageLayout/PageLayout.types.json +29 -29
  179. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  180. package/dist/_typedoc/Panel/Panel.types.json +28 -28
  181. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  182. package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
  183. package/dist/_typedoc/Popover/Popover.types.json +14 -14
  184. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
  185. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  186. package/dist/_typedoc/Required/Required.types.json +5 -5
  187. package/dist/_typedoc/Search/Search.types.json +35 -21
  188. package/dist/_typedoc/Section/Section.types.json +15 -15
  189. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
  190. package/dist/_typedoc/Select/Select.types.json +60 -60
  191. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  192. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  193. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  194. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +12 -12
  195. package/dist/_typedoc/Switch/Switch.types.json +3 -3
  196. package/dist/_typedoc/Table/Table.types.json +101 -101
  197. package/dist/_typedoc/Tabs/Tabs.types.json +19 -19
  198. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
  199. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  200. package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
  201. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  202. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  203. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
  204. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
  205. package/dist/_typedoc/Tile/Tile.types.json +30 -30
  206. package/dist/_typedoc/Title/Title.types.json +1 -1
  207. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  208. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  209. package/dist/_typedoc/Token/Token.types.json +4 -4
  210. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  211. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +7 -7
  212. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  213. package/dist/_typedoc/Tree/Tree.types.json +86 -86
  214. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  215. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  216. package/dist/_typedoc/_utils/types.json +3 -3
  217. package/dist/_typedoc/deprecations.json +1 -1
  218. package/package.json +2 -2
@@ -6,14 +6,14 @@ import { PillColorPalets } from './Pill.colorPalette';
6
6
  var pillButtonSize = 16;
7
7
  export var StyledPill = /*#__PURE__*/styled.span.withConfig({
8
8
  displayName: "StyledPill",
9
- componentId: "core-12_17_0__sc-99e1t5-0"
9
+ componentId: "core-12_17_2__sc-99e1t5-0"
10
10
  })(["", " display:inline-block;padding:1px ", "px;border:1px solid;border-radius:10px;font-weight:600;& + &{margin-left:", "px;}", ""], getTypographyIntent('small'), spacing.sm, spacing.xs, function (_ref) {
11
11
  var $color = _ref.$color;
12
12
  return css(["background-color:", ";border-color:", ";color:", ";"], PillColorPalets[$color].backgroundColor, PillColorPalets[$color].borderColor, PillColorPalets[$color].color);
13
13
  });
14
14
  export var StyledRemove = /*#__PURE__*/styled(Clear).withConfig({
15
15
  displayName: "StyledRemove",
16
- componentId: "core-12_17_0__sc-99e1t5-1"
16
+ componentId: "core-12_17_2__sc-99e1t5-1"
17
17
  })(["border-radius:100%;cursor:pointer;flex:0 0 auto;height:", "px;margin:0 -", "px 0 ", "px;width:", "px;vertical-align:top;", ""], pillButtonSize, pillButtonSize / 2 - spacing.xxs, spacing.xxs, pillButtonSize, function (_ref2) {
18
18
  var $color = _ref2.$color;
19
19
  return css(["&:hover{background:", ";color:", ";}"], PillColorPalets[$color].color, PillColorPalets[$color].backgroundColor);
@@ -6,19 +6,19 @@ import { spacing } from '../_styles/spacing';
6
6
  var checkedIconPlaceholderWidth = 32;
7
7
  export var PillSelectOptionWrapper = /*#__PURE__*/styled.div.withConfig({
8
8
  displayName: "PillSelectOptionWrapper",
9
- componentId: "core-12_17_0__sc-1ai2ze0-0"
9
+ componentId: "core-12_17_2__sc-1ai2ze0-0"
10
10
  })(["display:flex;align-items:center;justify-content:space-between;"]);
11
11
  export var PillSelectCheckedContainer = /*#__PURE__*/styled.div.withConfig({
12
12
  displayName: "PillSelectCheckedContainer",
13
- componentId: "core-12_17_0__sc-1ai2ze0-1"
13
+ componentId: "core-12_17_2__sc-1ai2ze0-1"
14
14
  })(["align-items:center;color:", ";display:inline-flex;padding-left:", "px;width:", "px;"], colors.blue50, spacing.sm, checkedIconPlaceholderWidth);
15
15
  export var PillSelectLabel = /*#__PURE__*/styled(Pill).withConfig({
16
16
  displayName: "PillSelectLabel",
17
- componentId: "core-12_17_0__sc-1ai2ze0-2"
17
+ componentId: "core-12_17_2__sc-1ai2ze0-2"
18
18
  })(["", ""], getEllipsis);
19
19
  export var PillSelectLabelWrapper = /*#__PURE__*/styled.div.withConfig({
20
20
  displayName: "PillSelectLabelWrapper",
21
- componentId: "core-12_17_0__sc-1ai2ze0-3"
21
+ componentId: "core-12_17_2__sc-1ai2ze0-3"
22
22
  })(["display:flex;max-width:100%;pointer-events:auto;", ""], function (_ref) {
23
23
  var disabled = _ref.disabled;
24
24
  return disabled && css(["pointer-events:none;"]);
@@ -5,7 +5,7 @@ import { getShadow } from '../_styles/shadows';
5
5
  export var popoverArrowSize = 6;
6
6
  export var StyledPopoverContent = /*#__PURE__*/styled.span.withConfig({
7
7
  displayName: "StyledPopoverContent",
8
- componentId: "core-12_17_0__sc-1cd0ihn-0"
8
+ componentId: "core-12_17_2__sc-1cd0ihn-0"
9
9
  })(["background-color:", ";border-radius:", "px;color:", ";display:inline-block;max-width:250px;position:relative;", ""], colors.white, borderRadius.md, colors.gray15, function (_ref) {
10
10
  var $fluid = _ref.$fluid;
11
11
  if ($fluid) {
@@ -14,6 +14,6 @@ export var StyledPopoverContent = /*#__PURE__*/styled.span.withConfig({
14
14
  });
15
15
  export var StyledPopover = /*#__PURE__*/styled.div.withConfig({
16
16
  displayName: "StyledPopover",
17
- componentId: "core-12_17_0__sc-1cd0ihn-1"
17
+ componentId: "core-12_17_2__sc-1cd0ihn-1"
18
18
  })(["display:inline-block;", " & + [data-overlay-arrow]{background:", ";}"], getShadow(3), colors.white);
19
19
  //# sourceMappingURL=Popover.styles.js.map
@@ -1,6 +1,6 @@
1
1
  import styled from 'styled-components';
2
2
  export var StyledPortal = /*#__PURE__*/styled.div.withConfig({
3
3
  displayName: "StyledPortal",
4
- componentId: "core-12_17_0__sc-15o1h2-0"
4
+ componentId: "core-12_17_2__sc-15o1h2-0"
5
5
  })(["left:0;pointer-events:none;position:fixed;top:0;> *{pointer-events:all;}"]);
6
6
  //# sourceMappingURL=Portal.styles.js.map
@@ -7,11 +7,11 @@ var animationDelay = '300ms';
7
7
  var fadeIn = /*#__PURE__*/keyframes(["from{opacity:1;}to{opacity:0;}"]);
8
8
  export var StyledProgressBarLoader = /*#__PURE__*/styled(Loader).withConfig({
9
9
  displayName: "StyledProgressBarLoader",
10
- componentId: "core-12_17_0__sc-vdy2wl-0"
10
+ componentId: "core-12_17_2__sc-vdy2wl-0"
11
11
  })([""]);
12
12
  export var StyledProgressBar = /*#__PURE__*/styled.div.withConfig({
13
13
  displayName: "StyledProgressBar",
14
- componentId: "core-12_17_0__sc-vdy2wl-1"
14
+ componentId: "core-12_17_2__sc-vdy2wl-1"
15
15
  })(["overflow:hidden;position:relative;display:block;height:", "px;background-color:", ";border-radius:", "px;margin:", "px 0;transition:background-color 0s linear;", " ", ""], loaderGridUnit, function (_ref) {
16
16
  var $complete = _ref.$complete;
17
17
  return $complete ? colors.blue50 : colors.gray94;
@@ -9,7 +9,7 @@ export var dataQa = {
9
9
  var radioButtonSize = 20;
10
10
  export var StyledRadioButton = /*#__PURE__*/styled.label.withConfig({
11
11
  displayName: "StyledRadioButton",
12
- componentId: "core-12_17_0__sc-nd95zs-0"
12
+ componentId: "core-12_17_2__sc-nd95zs-0"
13
13
  })(["color:", ";display:flex;position:relative;vertical-align:middle;& + &{margin-top:", "px;}", " ", ""], colors.gray15, spacing.md, function (_ref) {
14
14
  var $error = _ref.$error;
15
15
  return $error && css(["", ":before,", ":checked:not(:disabled) + ", ":before{border-color:", ";}", ":checked:disabled + ", ":before{border-color:", ";}"], StyledRadioButtonLabel, StyledRadioButtonInput, StyledRadioButtonLabel, colors.red50, StyledRadioButtonInput, StyledRadioButtonLabel, colors.gray85);
@@ -19,10 +19,10 @@ export var StyledRadioButton = /*#__PURE__*/styled.label.withConfig({
19
19
  });
20
20
  export var StyledRadioButtonLabel = /*#__PURE__*/styled.span.withConfig({
21
21
  displayName: "StyledRadioButtonLabel",
22
- componentId: "core-12_17_0__sc-nd95zs-1"
22
+ componentId: "core-12_17_2__sc-nd95zs-1"
23
23
  })(["", ";cursor:default;display:flex;&:before{background:", ";border-radius:100%;border:2px solid ", ";content:'';display:inline-block;flex:0;height:", "px;min-width:", "px;width:", "px;}"], getTypographyIntent('body'), colors.white, colors.gray70, radioButtonSize, radioButtonSize, radioButtonSize);
24
24
  export var StyledRadioButtonInput = /*#__PURE__*/styled.input.withConfig({
25
25
  displayName: "StyledRadioButtonInput",
26
- componentId: "core-12_17_0__sc-nd95zs-2"
26
+ componentId: "core-12_17_2__sc-nd95zs-2"
27
27
  })(["left:0;margin:0;opacity:0;padding:0;position:absolute;top:0;&:focus:not(:checked),&[data-qa=", "]:not(:checked){&:not(:disabled) + ", ":before{", "}}&:focus:checked:not(:disabled),&[data-qa=", "]:checked:not(:disabled){+ ", ":before{box-shadow:0 0 0 2px ", ";}}&:checked + ", ":before{border:6px solid ", ";}&:disabled + ", ":before{border-color:", ";}&:disabled:checked + ", ":before{border-color:", ";}"], dataQa.focused, StyledRadioButtonLabel, getFocus(), dataQa.focused, StyledRadioButtonLabel, colors.blue40, StyledRadioButtonLabel, colors.blue50, StyledRadioButtonLabel, colors.gray85, StyledRadioButtonLabel, colors.blue85);
28
28
  //# sourceMappingURL=RadioButton.styles.js.map
@@ -5,7 +5,7 @@ import { colors } from '../_styles/colors';
5
5
  import { spacing } from '../_styles/spacing';
6
6
  export var StyledRequiredMark = /*#__PURE__*/styled.span.withConfig({
7
7
  displayName: "StyledRequiredMark",
8
- componentId: "core-12_17_0__sc-bja1ql-0"
8
+ componentId: "core-12_17_2__sc-bja1ql-0"
9
9
  })(["color:", ";", ""], colors.red50, function (_ref) {
10
10
  var $showLabel = _ref.$showLabel;
11
11
  if ($showLabel) {
@@ -15,10 +15,10 @@ export var StyledRequiredMark = /*#__PURE__*/styled.span.withConfig({
15
15
  });
16
16
  export var StyledRequiredContainer = /*#__PURE__*/styled.span.withConfig({
17
17
  displayName: "StyledRequiredContainer",
18
- componentId: "core-12_17_0__sc-bja1ql-1"
18
+ componentId: "core-12_17_2__sc-bja1ql-1"
19
19
  })(["", " ", " > &{margin-left:", "px;}"], getTypographyIntent('small'), StyledCheckboxLabel, spacing.xs);
20
20
  export var StyledRequiredText = /*#__PURE__*/styled.span.withConfig({
21
21
  displayName: "StyledRequiredText",
22
- componentId: "core-12_17_0__sc-bja1ql-2"
22
+ componentId: "core-12_17_2__sc-bja1ql-2"
23
23
  })(["font-style:italic;color:", ";margin-left:4px;"], colors.gray45);
24
24
  //# sourceMappingURL=Required.styles.js.map
@@ -27,22 +27,22 @@ export function getSearchInputStyles() {
27
27
  }
28
28
  export var StyledInput = /*#__PURE__*/styled.input.withConfig({
29
29
  displayName: "StyledInput",
30
- componentId: "core-12_17_0__sc-3j8khv-0"
30
+ componentId: "core-12_17_2__sc-3j8khv-0"
31
31
  })(["", ""], getSearchInputStyles);
32
32
  var StyledButton = /*#__PURE__*/styled(Button).withConfig({
33
33
  displayName: "StyledButton",
34
- componentId: "core-12_17_0__sc-3j8khv-1"
34
+ componentId: "core-12_17_2__sc-3j8khv-1"
35
35
  })(["position:absolute;top:", "px;"], buttonTop);
36
36
  export var StyledSearchButton = /*#__PURE__*/styled(StyledButton).withConfig({
37
37
  displayName: "StyledSearchButton",
38
- componentId: "core-12_17_0__sc-3j8khv-2"
38
+ componentId: "core-12_17_2__sc-3j8khv-2"
39
39
  })([""]);
40
40
  export var StyledClearButton = /*#__PURE__*/styled(StyledButton).withConfig({
41
41
  displayName: "StyledClearButton",
42
- componentId: "core-12_17_0__sc-3j8khv-3"
42
+ componentId: "core-12_17_2__sc-3j8khv-3"
43
43
  })([""]);
44
44
  export var StyledSearch = /*#__PURE__*/styled.div.withConfig({
45
45
  displayName: "StyledSearch",
46
- componentId: "core-12_17_0__sc-3j8khv-4"
46
+ componentId: "core-12_17_2__sc-3j8khv-4"
47
47
  })(["position:relative;width:100%;", "{padding-right:", "px;}", "{right:", "px;}", "{right:", "px;}"], StyledInput, inputRight, StyledSearchButton, searchRight, StyledClearButton, clearRight);
48
48
  //# sourceMappingURL=Search.styles.js.map
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { InputProps } from '../Input/Input.types';
2
+ import type { InputProps } from '../Input';
3
3
  import type { ChangeEvent } from '../_hooks/TextEntry';
4
4
  export interface SearchHookConfig {
5
5
  /**
@@ -70,11 +70,21 @@ export interface SearchHook {
70
70
  */
71
71
  value: string;
72
72
  }
73
- export interface SearchProps extends Omit<InputProps, 'onSubmit'>, SearchHookConfig {
73
+ export interface SearchProps extends Omit<InputProps, 'onSubmit' | 'disabled' | 'error'>, SearchHookConfig {
74
74
  /**
75
75
  * @since 10.19.0
76
76
  */
77
77
  autoFocus?: boolean;
78
+ /**
79
+ * @deprecatedSince 12.18.0
80
+ * @deprecated
81
+ * */
82
+ disabled?: InputProps['disabled'];
83
+ /**
84
+ * @deprecatedSince 12.18.0
85
+ * @deprecated
86
+ * */
87
+ error?: InputProps['error'];
78
88
  /**
79
89
  * @since 10.19.0
80
90
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Search.types.js","names":[],"sources":["../../src/Search/Search.types.ts"],"sourcesContent":["import type { InputProps } from '../Input/Input.types'\nimport type { ChangeEvent } from '../_hooks/TextEntry'\n\nexport interface SearchHookConfig {\n /**\n * @since 10.19.0\n */\n initialValue?: string\n /**\n * @deprecated\n *\n * The `onChange` prop has been deprecated and will be removed in a future version.\n *\n * A new component, `Typeahead`, has been introduced with specific UX for typeahead-like\n * behavior. Please use this component instead.\n *\n * **Before**\n *\n * <Search typeahead onChange={() => { ... }} />\n *\n * **After**\n *\n * <Typeahead onChange={() => { ... }} />\n *\n * @deprecatedSince 10.20.0\n *\n * @see https://core.procore.com/latest/web/components/typeahead/react/\n * @since 10.19.0\n */\n onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void\n /**\n * @since 10.19.0\n */\n onClear?: () => void\n\n /**\n * Input handler for search variant\n * ```\n * (value: string) => void\n * ```\n * @since 10.19.0\n */\n onSubmit?: (value: string) => void\n}\n\nexport interface SearchHook {\n /**\n * @since 10.19.0\n */\n domHandlers: {\n onChange: (e: ChangeEvent) => void\n onKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void\n }\n /**\n * @since 10.19.0\n */\n clear: () => void\n /**\n * @since 10.19.0\n */\n isEmpty: boolean\n /**\n * @since 10.19.0\n */\n onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void\n /**\n * @since 10.19.0\n */\n submit: () => void\n /**\n * @since 10.19.0\n */\n value: string\n}\n\nexport interface SearchProps\n extends Omit<InputProps, 'onSubmit'>,\n SearchHookConfig {\n /**\n * @since 10.19.0\n */\n autoFocus?: boolean\n /**\n * @since 10.19.0\n */\n usingHook?: SearchHook\n\n /**\n * Initial value string\n * @default ''\n * @since 10.19.0\n */\n value?: string\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Search.types.js","names":[],"sources":["../../src/Search/Search.types.ts"],"sourcesContent":["import type { InputProps } from '../Input'\nimport type { ChangeEvent } from '../_hooks/TextEntry'\n\nexport interface SearchHookConfig {\n /**\n * @since 10.19.0\n */\n initialValue?: string\n /**\n * @deprecated\n *\n * The `onChange` prop has been deprecated and will be removed in a future version.\n *\n * A new component, `Typeahead`, has been introduced with specific UX for typeahead-like\n * behavior. Please use this component instead.\n *\n * **Before**\n *\n * <Search typeahead onChange={() => { ... }} />\n *\n * **After**\n *\n * <Typeahead onChange={() => { ... }} />\n *\n * @deprecatedSince 10.20.0\n *\n * @see https://core.procore.com/latest/web/components/typeahead/react/\n * @since 10.19.0\n */\n onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void\n /**\n * @since 10.19.0\n */\n onClear?: () => void\n\n /**\n * Input handler for search variant\n * ```\n * (value: string) => void\n * ```\n * @since 10.19.0\n */\n onSubmit?: (value: string) => void\n}\n\nexport interface SearchHook {\n /**\n * @since 10.19.0\n */\n domHandlers: {\n onChange: (e: ChangeEvent) => void\n onKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void\n }\n /**\n * @since 10.19.0\n */\n clear: () => void\n /**\n * @since 10.19.0\n */\n isEmpty: boolean\n /**\n * @since 10.19.0\n */\n onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void\n /**\n * @since 10.19.0\n */\n submit: () => void\n /**\n * @since 10.19.0\n */\n value: string\n}\n\nexport interface SearchProps\n extends Omit<InputProps, 'onSubmit' | 'disabled' | 'error'>,\n SearchHookConfig {\n /**\n * @since 10.19.0\n */\n autoFocus?: boolean\n /**\n * @deprecatedSince 12.18.0\n * @deprecated\n * */\n disabled?: InputProps['disabled']\n /**\n * @deprecatedSince 12.18.0\n * @deprecated\n * */\n error?: InputProps['error']\n /**\n * @since 10.19.0\n */\n usingHook?: SearchHook\n /**\n * Initial value string\n * @default ''\n * @since 10.19.0\n */\n value?: string\n}\n"],"mappings":""}
@@ -5,15 +5,15 @@ import { colors } from '../_styles/colors';
5
5
  import { spacing } from '../_styles/spacing';
6
6
  export var StyledSectionBanner = /*#__PURE__*/styled.div.withConfig({
7
7
  displayName: "StyledSectionBanner",
8
- componentId: "core-12_17_0__sc-1lxbrwv-0"
8
+ componentId: "core-12_17_2__sc-1lxbrwv-0"
9
9
  })(["margin-bottom:", "px;> * + *{margin-top:", "px;}"], spacing.sm, spacing.sm);
10
10
  export var StyledSectionInner = /*#__PURE__*/styled.div.withConfig({
11
11
  displayName: "StyledSectionInner",
12
- componentId: "core-12_17_0__sc-1lxbrwv-1"
12
+ componentId: "core-12_17_2__sc-1lxbrwv-1"
13
13
  })([""]);
14
14
  export var StyledSectionCollapseHeading = /*#__PURE__*/styled.div.withConfig({
15
15
  displayName: "StyledSectionCollapseHeading",
16
- componentId: "core-12_17_0__sc-1lxbrwv-2"
16
+ componentId: "core-12_17_2__sc-1lxbrwv-2"
17
17
  })(["align-self:flex-start;margin-right:", "px;"], spacing.sm);
18
18
  export var sectionClassnames = {
19
19
  divide: 'section--divide',
@@ -24,11 +24,11 @@ export var sectionClassnames = {
24
24
  };
25
25
  export var StyledSection = /*#__PURE__*/styled.div.withConfig({
26
26
  displayName: "StyledSection",
27
- componentId: "core-12_17_0__sc-1lxbrwv-3"
27
+ componentId: "core-12_17_2__sc-1lxbrwv-3"
28
28
  })(["padding-left:", "px;padding-right:", "px;padding-bottom:", "px;& > ", "{padding-top:", "px;}&.", "{& > ", "{border-top:1px solid ", ";}}&:first-child > ", "{border-top:0;}& &{padding-left:0;padding-right:0;&:first-child > ", "{border-top:1px solid ", ";}&:last-child{padding-bottom:0;}}", ":last-of-type{margin-bottom:", "px;}", " + &&&{padding-top:", "px;}"], spacing.lg, spacing.lg, spacing.lg, StyledSectionInner, spacing.lg, sectionClassnames.divide, StyledSectionInner, colors.gray85, StyledSectionInner, StyledSectionInner, colors.gray85, StyledFormRow, spacing.lg * -1, StyledFormRow, spacing.xs);
29
29
  export var StyledSectionContentRegion = /*#__PURE__*/styled.div.withConfig({
30
30
  displayName: "StyledSectionContentRegion",
31
- componentId: "core-12_17_0__sc-1lxbrwv-4"
31
+ componentId: "core-12_17_2__sc-1lxbrwv-4"
32
32
  })(["padding-top:", "px;", " ", " & > :not(", ") + ", "{padding-top:", "px;}", " ", " &:last-of-type{padding-bottom:0;}"], spacing.sm, function (_ref) {
33
33
  var $closed = _ref.$closed;
34
34
  return $closed && css(["padding-top:0;"]);
@@ -38,10 +38,10 @@ export var StyledSectionContentRegion = /*#__PURE__*/styled.div.withConfig({
38
38
  }, StyledSection, StyledSection, spacing.xl, StyledSection, StyledSection);
39
39
  export var StyledSectionHeader = /*#__PURE__*/styled.div.withConfig({
40
40
  displayName: "StyledSectionHeader",
41
- componentId: "core-12_17_0__sc-1lxbrwv-5"
41
+ componentId: "core-12_17_2__sc-1lxbrwv-5"
42
42
  })(["align-items:center;display:flex;min-height:36px;word-break:break-word;"]);
43
43
  export var StyledTitle = /*#__PURE__*/styled(Title).withConfig({
44
44
  displayName: "StyledTitle",
45
- componentId: "core-12_17_0__sc-1lxbrwv-6"
45
+ componentId: "core-12_17_2__sc-1lxbrwv-6"
46
46
  })(["width:100%;"]);
47
47
  //# sourceMappingURL=Section.styles.js.map
@@ -5,7 +5,7 @@ import { colors } from '../_styles/colors';
5
5
  import { spacing } from '../_styles/spacing';
6
6
  export var StyledContainer = /*#__PURE__*/styled.div.withConfig({
7
7
  displayName: "StyledContainer",
8
- componentId: "core-12_17_0__sc-ocai3-0"
8
+ componentId: "core-12_17_2__sc-ocai3-0"
9
9
  })(["align-items:center;display:", ";height:36px;justify-content:center;width:", ";"], function (_ref) {
10
10
  var block = _ref.block;
11
11
  return block ? 'flex' : 'inline-flex';
@@ -15,7 +15,7 @@ export var StyledContainer = /*#__PURE__*/styled.div.withConfig({
15
15
  });
16
16
  export var StyledSegment = /*#__PURE__*/styled.label.withConfig({
17
17
  displayName: "StyledSegment",
18
- componentId: "core-12_17_0__sc-ocai3-1"
18
+ componentId: "core-12_17_2__sc-ocai3-1"
19
19
  })(["align-items:center;border-radius:0;border:1px solid ", ";cursor:pointer;display:flex;flex:1 1 auto;height:100%;justify-content:center;min-width:0;outline:0;padding:0 ", "px;position:relative;background-color:", ";color:", ";&:hover{background-color:", ";border-color:", ";color:", ";}", " ", ";"], colors.gray85, spacing.md, colors.white, colors.gray45, colors.gray94, colors.gray85, colors.gray45, function (_ref3) {
20
20
  var _ref3$$focused = _ref3.$focused,
21
21
  $focused = _ref3$$focused === void 0 ? false : _ref3$$focused;
@@ -37,10 +37,10 @@ export var StyledSegment = /*#__PURE__*/styled.label.withConfig({
37
37
  });
38
38
  export var StyledSegmentDisabledInteractiveWrapper = /*#__PURE__*/styled.div.withConfig({
39
39
  displayName: "StyledSegmentDisabledInteractiveWrapper",
40
- componentId: "core-12_17_0__sc-ocai3-2"
40
+ componentId: "core-12_17_2__sc-ocai3-2"
41
41
  })(["display:flex;flex:1 1 auto;min-width:0;height:100%;margin-right:-1px;&:first-child ", "{border-bottom-left-radius:", "px;border-top-left-radius:", "px;}&:last-child ", "{border-bottom-right-radius:", "px;border-top-right-radius:", "px;}"], StyledSegment, borderRadius.md, borderRadius.md, StyledSegment, borderRadius.md, borderRadius.md);
42
42
  export var StyledLabel = /*#__PURE__*/styled.span.withConfig({
43
43
  displayName: "StyledLabel",
44
- componentId: "core-12_17_0__sc-ocai3-3"
44
+ componentId: "core-12_17_2__sc-ocai3-3"
45
45
  })(["", ";display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"], getTypographyIntent('body'));
46
46
  //# sourceMappingURL=SegmentedController.styles.js.map
@@ -84,8 +84,8 @@ export var Button = /*#__PURE__*/React.forwardRef(function Button(_ref3, ref) {
84
84
  }) : focus
85
85
  }),
86
86
  ref: ref,
87
- tabIndex: disabled ? -1 : tabIndex,
88
87
  role: "button",
88
+ tabIndex: disabled ? -1 : tabIndex,
89
89
  $block: block,
90
90
  $error: error,
91
91
  $disabled: disabled,
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","names":["Clear","classNames","isNil","React","Box","MenuImperative","useMenuImperativeControlNavigation","Notation","OverlayTrigger","useOverlayTriggerContext","Spinner","Tooltip","useI18nContext","OverflowObserver","addSubcomponents","StyledSelectArrow","StyledSelectArrowContainer","StyledSelectButton","StyledSelectButtonLabel","StyledSelectClearIcon","StyledSelectMenu","StyledSelectSpinner","noop","isFunction","obj","isOpen","_ref","_ref$open","open","OptGroup","forwardRef","props","ref","createElement","Group","_extends","clickable","Option","_ref2","value","_objectWithoutProperties","_excluded","Item","item","Button","_ref3","_ref3$block","block","children","className","clearRef","_ref3$disabled","disabled","_ref3$error","error","_ref3$focus","focus","label","_ref3$loading","loading","onClear","_ref3$open","placeholder","qa","_ref3$tabIndex","tabIndex","_ref3$isMenuOpened","isMenuOpened","_excluded2","i18n","hasClearIcon","Boolean","content","role","$block","$error","$disabled","$hasClearIcon","$loading","$open","$placeholder","_ref4","isOverflowingX","overflowRef","showTooltip","trigger","$hoverable","overlay","t","clear","size","variant","icon","onClick","onMouseDown","e","preventDefault","color","SelectMenu","_ref5","onSearch_","onSearch","header","footer","emptyMessage","optionsRef","i18nScope","_ref5$onSelect","onSelect","onSelect_","menuRef","_excluded3","ctx","_React$useState","useState","_React$useState2","_slicedToArray","searchValue","setSearchValue","_useMenuImperativeCon","menuProps","menuNavigationTriggerProps","useEffect","_menuRef$current","current","highlightFirst","_menuRef$current2","_menuRef$current3","highlightSuggested","highlightSelected","onKeyDown","_props$onKeyDown","call","key","stopPropagation","selection","hide","event","target","shadowStrength","circular","Search","autoComplete","onChange","Header","Children","count","Options","padding","Footer","Select_","Select","_ref6","_ref6$afterHide","afterHide","afterHide_","_ref6$afterShow","afterShow","afterShow_","_ref6$beforeHide","beforeHide","_ref6$beforeShow","beforeShow","_ref6$block","container","_ref6$disabled","_ref6$emptyMessage","_ref6$error","_ref6$hideDelay","hideDelay","_ref6$i18nScope","_ref6$label","_ref6$loading","onClear_","_ref6$onKeyDown","onScrollBottom","_ref6$onSelect","_ref6$placement","placement","_ref6$restoreFocusOnH","restoreFocusOnHide","_ref6$showDelay","showDelay","_ref6$tabIndex","_excluded4","useRef","overlayTriggerRef","_React$useState3","_React$useState4","setIsMenuOpened","useCallback","_overlayTriggerRef$cu","autoFocus","canFlip","displayName"],"sources":["../../src/Select/Select.tsx"],"sourcesContent":["import { Clear } from '@procore/core-icons/dist'\nimport classNames from 'classnames'\nimport { isNil } from 'ramda'\nimport React from 'react'\nimport { Box } from '../Box/Box'\nimport {\n MenuImperative,\n useMenuImperativeControlNavigation,\n} from '../MenuImperative/MenuImperative'\nimport type { MenuRef, Selection } from '../MenuImperative/MenuImperative.types'\nimport { Notation } from '../Notation/Notation'\nimport {\n OverlayTrigger,\n useOverlayTriggerContext,\n} from '../OverlayTrigger/OverlayTrigger'\nimport { Spinner } from '../Spinner/Spinner'\nimport { Tooltip } from '../Tooltip/Tooltip'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { OverflowObserver } from '../_hooks/OverflowObserver'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport type { Props } from '../_utils/types'\nimport {\n StyledSelectArrow,\n StyledSelectArrowContainer,\n StyledSelectButton,\n StyledSelectButtonLabel,\n StyledSelectClearIcon,\n StyledSelectMenu,\n StyledSelectSpinner,\n} from './Select.styles'\nimport type {\n SelectButtonProps,\n SelectMenuProps,\n SelectOptionProps,\n SelectProps,\n} from './Select.types'\n\nfunction noop() {}\nfunction isFunction(obj: any) {\n return typeof obj === 'function'\n}\nfunction isOpen({ open = false }) {\n return open\n}\n\nexport const OptGroup = React.forwardRef<HTMLDivElement, Props>(\n (props, ref) => (\n <MenuImperative.Group {...props} clickable={false} ref={ref} />\n )\n)\n\nexport const Option = React.forwardRef<HTMLDivElement, SelectOptionProps>(\n ({ value, ...props }, ref) => (\n <MenuImperative.Item ref={ref} {...props} item={value} />\n )\n)\n\nexport const Button = React.forwardRef<HTMLDivElement, SelectButtonProps>(\n function Button(\n {\n block = false,\n children,\n className,\n clearRef,\n disabled = false,\n error = false,\n focus = false,\n label,\n loading = false,\n onClear,\n open = false,\n placeholder,\n qa,\n tabIndex = 0,\n isMenuOpened = false,\n ...props\n },\n ref\n ) {\n const i18n = useI18nContext()\n const hasClearIcon = !disabled && !loading && Boolean(label)\n\n const content = children || label || placeholder\n\n return (\n <StyledSelectButton\n className={classNames(className, {\n focus: isFunction(focus) ? (focus as Function)({ open }) : focus,\n })}\n ref={ref}\n tabIndex={disabled ? -1 : tabIndex}\n role=\"button\"\n $block={block}\n $error={error}\n $disabled={disabled}\n $hasClearIcon={hasClearIcon}\n $loading={loading}\n $open={open}\n $placeholder={!label}\n {...props}\n >\n <OverflowObserver>\n {({ isOverflowingX, ref: overflowRef }) => {\n const showTooltip = !disabled && isOverflowingX && !isMenuOpened\n const trigger = (\n <StyledSelectButtonLabel\n data-qa={qa?.label}\n $hoverable={showTooltip}\n ref={overflowRef}\n >\n {content}\n </StyledSelectButtonLabel>\n )\n\n return showTooltip ? (\n <Tooltip trigger=\"hover\" overlay={content}>\n {trigger}\n </Tooltip>\n ) : (\n trigger\n )\n }}\n </OverflowObserver>\n {onClear && (\n <StyledSelectClearIcon\n aria-hidden={true} // prevents reading \"delete field\" button when select in focus\n aria-label={i18n.t('core.select.clear')}\n ref={clearRef}\n data-qa={qa?.clear || 'core-select-clear'}\n size=\"sm\"\n variant=\"tertiary\"\n icon={<Clear />}\n onClick={onClear}\n onMouseDown={(e) => e.preventDefault()} // prevents an element from getting the focus\n tabIndex={-1} // TODO revisit this accessibility\n />\n )}\n {loading ? (\n <StyledSelectSpinner>\n <Spinner color=\"blue50\" size=\"xs\" />\n </StyledSelectSpinner>\n ) : (\n <StyledSelectArrowContainer>\n <StyledSelectArrow />\n </StyledSelectArrowContainer>\n )}\n </StyledSelectButton>\n )\n }\n)\n\nconst SelectMenu = React.forwardRef<HTMLDivElement, SelectMenuProps>(\n function SelectMenu(\n {\n onSearch: onSearch_,\n header,\n footer,\n emptyMessage,\n optionsRef,\n children,\n i18nScope,\n onSelect: onSelect_ = noop,\n menuRef,\n ...props\n },\n ref\n ) {\n const ctx = useOverlayTriggerContext()\n\n const [searchValue, setSearchValue] = React.useState('')\n const { menuProps, menuNavigationTriggerProps } =\n useMenuImperativeControlNavigation(menuRef, Boolean(onSearch_))\n\n React.useEffect(() => {\n menuRef.current?.highlightFirst()\n }, [menuRef, searchValue])\n\n React.useEffect(() => {\n menuRef.current?.highlightSuggested()\n menuRef.current?.highlightSelected()\n }, [menuRef])\n\n function onKeyDown(e: React.KeyboardEvent<HTMLDivElement>) {\n props.onKeyDown?.(e)\n // This is disconnected from the OverlayTrigger closing on Escape.\n // Closing a dropdown with Escape will not close a Modal, because stopP.\n // It is called only once because the menu component is unmounted.\n // The next Escape will propagate.\n if (e.key === 'Escape' || e.key === 'Esc') {\n e.stopPropagation()\n }\n }\n\n function onSelect(selection: Selection) {\n onSelect_(selection)\n\n ctx.hide(selection.event)\n }\n\n function onSearch(event: React.ChangeEvent<HTMLInputElement>) {\n setSearchValue(event.target.value)\n\n onSearch_?.(event)\n }\n\n return (\n <StyledSelectMenu ref={ref} shadowStrength={2}>\n <MenuImperative\n {...props}\n {...menuProps}\n ref={menuRef}\n role=\"listbox\"\n onKeyDown={onKeyDown}\n onSelect={onSelect}\n circular\n >\n {onSearch_ && (\n <MenuImperative.Search\n autoComplete=\"false\"\n i18nScope={i18nScope}\n onChange={onSearch}\n {...menuNavigationTriggerProps}\n />\n )}\n {header && <MenuImperative.Header>{header}</MenuImperative.Header>}\n {React.Children.count(children) ? (\n <MenuImperative.Options ref={optionsRef}>\n {children}\n </MenuImperative.Options>\n ) : (\n <Box padding=\"md lg\">\n <Notation variant=\"pagination\">{emptyMessage}</Notation>\n </Box>\n )}\n {footer && <MenuImperative.Footer>{footer}</MenuImperative.Footer>}\n </MenuImperative>\n </StyledSelectMenu>\n )\n }\n)\n\nconst Select_ = React.forwardRef<HTMLDivElement, SelectProps>(function Select(\n {\n afterHide: afterHide_ = noop,\n afterShow: afterShow_ = noop,\n beforeHide = () => true,\n beforeShow = () => true,\n block = false,\n children,\n className,\n container,\n disabled = false,\n emptyMessage = 'No results',\n error = false,\n header,\n footer,\n hideDelay = 100,\n i18nScope = 'core.select',\n label = '',\n loading = false,\n onClear: onClear_,\n onKeyDown = noop,\n onScrollBottom,\n onSearch,\n onSelect = noop,\n optionsRef,\n placeholder,\n placement = 'bottom-left',\n restoreFocusOnHide = 'core-react',\n showDelay = 0,\n tabIndex = 0,\n qa,\n ...props\n },\n forwardRef\n) {\n const menuRef = React.useRef<MenuRef>(null)\n const overlayTriggerRef = React.useRef<HTMLDivElement>(null)\n const ref =\n (forwardRef as React.RefObject<HTMLDivElement>) || overlayTriggerRef\n const [isMenuOpened, setIsMenuOpened] = React.useState(false)\n\n const clearRef = React.useRef<HTMLButtonElement>(null)\n\n function afterHide() {\n afterHide_()\n setIsMenuOpened(false)\n onSearch?.({\n target: { value: '' },\n } as React.ChangeEvent<HTMLInputElement>)\n }\n\n const onClear = React.useCallback(\n (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => {\n onClear_?.(e)\n // IE 11 fix\n // Return focus back to trigger instead of the clear button\n overlayTriggerRef?.current?.focus()\n },\n [onClear_]\n )\n\n function afterShow() {\n afterShow_()\n setIsMenuOpened(true)\n }\n\n return (\n <OverlayTrigger\n autoFocus\n afterHide={afterHide}\n afterShow={afterShow}\n beforeHide={(e: Event) => {\n if (e.target === clearRef.current) {\n return false\n }\n\n return beforeHide(e)\n }}\n beforeShow={beforeShow}\n canFlip={true}\n container={container}\n hideDelay={hideDelay}\n restoreFocusOnHide={restoreFocusOnHide}\n overlay={\n <SelectMenu\n onSearch={onSearch}\n header={header}\n footer={footer}\n emptyMessage={emptyMessage}\n optionsRef={optionsRef}\n i18nScope={i18nScope}\n onSelect={onSelect}\n onScrollBottom={onScrollBottom}\n menuRef={menuRef}\n >\n {children}\n </SelectMenu>\n }\n placement={placement}\n ref={ref}\n showDelay={showDelay}\n trigger={disabled ? 'none' : 'click'}\n >\n <Button\n {...props}\n block={block}\n className={className}\n clearRef={clearRef}\n disabled={disabled}\n error={error}\n focus={onSearch ? false : isOpen}\n label={label}\n loading={loading}\n placeholder={placeholder}\n onKeyDown={onKeyDown}\n onClear={isNil(onClear_) ? onClear_ : onClear}\n isMenuOpened={isMenuOpened}\n tabIndex={tabIndex}\n qa={qa}\n />\n </OverlayTrigger>\n )\n})\n\nSelect_.displayName = 'Select'\n\nButton.displayName = 'Select.Button'\n\nOption.displayName = 'Select.Option'\n\nOptGroup.displayName = 'Select.OptGroup'\n\n/**\n\n We use single selects to allow our users to choose a single option from a list,\n presented in a dropdown. We typically see these selects on forms.\n\n If you want users to select multiple options, use a multi select, group select,\n and tiered select if you want users to select from a tiered set of options,\n use a tiered select.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-select--demo)\n\n @see [Design Guidelines](https://design.procore.com/select)\n\n */\nexport const Select = addSubcomponents(\n {\n Button,\n Option,\n OptGroup,\n },\n Select_\n)\n"],"mappings":";;;;;;;;;;;;;AAAA,SAASA,KAAK,QAAQ,0BAA0B;AAChD,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,KAAK,QAAQ,OAAO;AAC7B,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,QAAQ,YAAY;AAChC,SACEC,cAAc,EACdC,kCAAkC,QAC7B,kCAAkC;AAEzC,SAASC,QAAQ,QAAQ,sBAAsB;AAC/C,SACEC,cAAc,EACdC,wBAAwB,QACnB,kCAAkC;AACzC,SAASC,OA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KAAK,EAAEA,KAAM;IACbE,SAAS,EAAEA,SAAU;IACrBC,QAAQ,EAAEA,QAAS;IACnBE,QAAQ,EAAEA,QAAS;IACnBE,KAAK,EAAEA,KAAM;IACbE,KAAK,EAAE6C,QAAQ,GAAG,KAAK,GAAG5E,MAAO;IACjCgC,KAAK,EAAEA,KAAM;IACbE,OAAO,EAAEA,OAAQ;IACjBG,WAAW,EAAEA,WAAY;IACzBoE,SAAS,EAAEA,SAAU;IACrBtE,OAAO,EAAE1D,KAAK,CAAC2K,QAAQ,CAAC,GAAGA,QAAQ,GAAGjH,OAAQ;IAC9CO,YAAY,EAAEA,YAAa;IAC3BF,QAAQ,EAAEA,QAAS;IACnBF,EAAE,EAAEA;EAAG,EACR,CACa,CAAC;AAErB,CAAC,CAAC;AAEFuF,OAAO,CAAC4C,WAAW,GAAG,QAAQ;AAE9BtJ,MAAM,CAACsJ,WAAW,GAAG,eAAe;AAEpC7J,MAAM,CAAC6J,WAAW,GAAG,eAAe;AAEpCrK,QAAQ,CAACqK,WAAW,GAAG,iBAAiB;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAM3C,MAAM,GAAGzI,gBAAgB,CACpC;EACE8B,MAAM,EAANA,MAAM;EACNP,MAAM,EAANA,MAAM;EACNR,QAAQ,EAARA;AACF,CAAC,EACDyH,OACF,CAAC"}
1
+ {"version":3,"file":"Select.js","names":["Clear","classNames","isNil","React","Box","MenuImperative","useMenuImperativeControlNavigation","Notation","OverlayTrigger","useOverlayTriggerContext","Spinner","Tooltip","useI18nContext","OverflowObserver","addSubcomponents","StyledSelectArrow","StyledSelectArrowContainer","StyledSelectButton","StyledSelectButtonLabel","StyledSelectClearIcon","StyledSelectMenu","StyledSelectSpinner","noop","isFunction","obj","isOpen","_ref","_ref$open","open","OptGroup","forwardRef","props","ref","createElement","Group","_extends","clickable","Option","_ref2","value","_objectWithoutProperties","_excluded","Item","item","Button","_ref3","_ref3$block","block","children","className","clearRef","_ref3$disabled","disabled","_ref3$error","error","_ref3$focus","focus","label","_ref3$loading","loading","onClear","_ref3$open","placeholder","qa","_ref3$tabIndex","tabIndex","_ref3$isMenuOpened","isMenuOpened","_excluded2","i18n","hasClearIcon","Boolean","content","role","$block","$error","$disabled","$hasClearIcon","$loading","$open","$placeholder","_ref4","isOverflowingX","overflowRef","showTooltip","trigger","$hoverable","overlay","t","clear","size","variant","icon","onClick","onMouseDown","e","preventDefault","color","SelectMenu","_ref5","onSearch_","onSearch","header","footer","emptyMessage","optionsRef","i18nScope","_ref5$onSelect","onSelect","onSelect_","menuRef","_excluded3","ctx","_React$useState","useState","_React$useState2","_slicedToArray","searchValue","setSearchValue","_useMenuImperativeCon","menuProps","menuNavigationTriggerProps","useEffect","_menuRef$current","current","highlightFirst","_menuRef$current2","_menuRef$current3","highlightSuggested","highlightSelected","onKeyDown","_props$onKeyDown","call","key","stopPropagation","selection","hide","event","target","shadowStrength","circular","Search","autoComplete","onChange","Header","Children","count","Options","padding","Footer","Select_","Select","_ref6","_ref6$afterHide","afterHide","afterHide_","_ref6$afterShow","afterShow","afterShow_","_ref6$beforeHide","beforeHide","_ref6$beforeShow","beforeShow","_ref6$block","container","_ref6$disabled","_ref6$emptyMessage","_ref6$error","_ref6$hideDelay","hideDelay","_ref6$i18nScope","_ref6$label","_ref6$loading","onClear_","_ref6$onKeyDown","onScrollBottom","_ref6$onSelect","_ref6$placement","placement","_ref6$restoreFocusOnH","restoreFocusOnHide","_ref6$showDelay","showDelay","_ref6$tabIndex","_excluded4","useRef","overlayTriggerRef","_React$useState3","_React$useState4","setIsMenuOpened","useCallback","_overlayTriggerRef$cu","autoFocus","canFlip","displayName"],"sources":["../../src/Select/Select.tsx"],"sourcesContent":["import { Clear } from '@procore/core-icons/dist'\nimport classNames from 'classnames'\nimport { isNil } from 'ramda'\nimport React from 'react'\nimport { Box } from '../Box/Box'\nimport {\n MenuImperative,\n useMenuImperativeControlNavigation,\n} from '../MenuImperative/MenuImperative'\nimport type { MenuRef, Selection } from '../MenuImperative/MenuImperative.types'\nimport { Notation } from '../Notation/Notation'\nimport {\n OverlayTrigger,\n useOverlayTriggerContext,\n} from '../OverlayTrigger/OverlayTrigger'\nimport { Spinner } from '../Spinner/Spinner'\nimport { Tooltip } from '../Tooltip/Tooltip'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { OverflowObserver } from '../_hooks/OverflowObserver'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport type { Props } from '../_utils/types'\nimport {\n StyledSelectArrow,\n StyledSelectArrowContainer,\n StyledSelectButton,\n StyledSelectButtonLabel,\n StyledSelectClearIcon,\n StyledSelectMenu,\n StyledSelectSpinner,\n} from './Select.styles'\nimport type {\n SelectButtonProps,\n SelectMenuProps,\n SelectOptionProps,\n SelectProps,\n} from './Select.types'\n\nfunction noop() {}\nfunction isFunction(obj: any) {\n return typeof obj === 'function'\n}\nfunction isOpen({ open = false }) {\n return open\n}\n\nexport const OptGroup = React.forwardRef<HTMLDivElement, Props>(\n (props, ref) => (\n <MenuImperative.Group {...props} clickable={false} ref={ref} />\n )\n)\n\nexport const Option = React.forwardRef<HTMLDivElement, SelectOptionProps>(\n ({ value, ...props }, ref) => (\n <MenuImperative.Item ref={ref} {...props} item={value} />\n )\n)\n\nexport const Button = React.forwardRef<HTMLDivElement, SelectButtonProps>(\n function Button(\n {\n block = false,\n children,\n className,\n clearRef,\n disabled = false,\n error = false,\n focus = false,\n label,\n loading = false,\n onClear,\n open = false,\n placeholder,\n qa,\n tabIndex = 0,\n isMenuOpened = false,\n ...props\n },\n ref\n ) {\n const i18n = useI18nContext()\n const hasClearIcon = !disabled && !loading && Boolean(label)\n\n const content = children || label || placeholder\n\n return (\n <StyledSelectButton\n className={classNames(className, {\n focus: isFunction(focus) ? (focus as Function)({ open }) : focus,\n })}\n ref={ref}\n role=\"button\"\n tabIndex={disabled ? -1 : tabIndex}\n $block={block}\n $error={error}\n $disabled={disabled}\n $hasClearIcon={hasClearIcon}\n $loading={loading}\n $open={open}\n $placeholder={!label}\n {...props}\n >\n <OverflowObserver>\n {({ isOverflowingX, ref: overflowRef }) => {\n const showTooltip = !disabled && isOverflowingX && !isMenuOpened\n const trigger = (\n <StyledSelectButtonLabel\n data-qa={qa?.label}\n $hoverable={showTooltip}\n ref={overflowRef}\n >\n {content}\n </StyledSelectButtonLabel>\n )\n\n return showTooltip ? (\n <Tooltip trigger=\"hover\" overlay={content}>\n {trigger}\n </Tooltip>\n ) : (\n trigger\n )\n }}\n </OverflowObserver>\n {onClear && (\n <StyledSelectClearIcon\n aria-hidden={true} // prevents reading \"delete field\" button when select in focus\n aria-label={i18n.t('core.select.clear')}\n ref={clearRef}\n data-qa={qa?.clear || 'core-select-clear'}\n size=\"sm\"\n variant=\"tertiary\"\n icon={<Clear />}\n onClick={onClear}\n onMouseDown={(e) => e.preventDefault()} // prevents an element from getting the focus\n tabIndex={-1} // TODO revisit this accessibility\n />\n )}\n {loading ? (\n <StyledSelectSpinner>\n <Spinner color=\"blue50\" size=\"xs\" />\n </StyledSelectSpinner>\n ) : (\n <StyledSelectArrowContainer>\n <StyledSelectArrow />\n </StyledSelectArrowContainer>\n )}\n </StyledSelectButton>\n )\n }\n)\n\nconst SelectMenu = React.forwardRef<HTMLDivElement, SelectMenuProps>(\n function SelectMenu(\n {\n onSearch: onSearch_,\n header,\n footer,\n emptyMessage,\n optionsRef,\n children,\n i18nScope,\n onSelect: onSelect_ = noop,\n menuRef,\n ...props\n },\n ref\n ) {\n const ctx = useOverlayTriggerContext()\n\n const [searchValue, setSearchValue] = React.useState('')\n const { menuProps, menuNavigationTriggerProps } =\n useMenuImperativeControlNavigation(menuRef, Boolean(onSearch_))\n\n React.useEffect(() => {\n menuRef.current?.highlightFirst()\n }, [menuRef, searchValue])\n\n React.useEffect(() => {\n menuRef.current?.highlightSuggested()\n menuRef.current?.highlightSelected()\n }, [menuRef])\n\n function onKeyDown(e: React.KeyboardEvent<HTMLDivElement>) {\n props.onKeyDown?.(e)\n // This is disconnected from the OverlayTrigger closing on Escape.\n // Closing a dropdown with Escape will not close a Modal, because stopP.\n // It is called only once because the menu component is unmounted.\n // The next Escape will propagate.\n if (e.key === 'Escape' || e.key === 'Esc') {\n e.stopPropagation()\n }\n }\n\n function onSelect(selection: Selection) {\n onSelect_(selection)\n\n ctx.hide(selection.event)\n }\n\n function onSearch(event: React.ChangeEvent<HTMLInputElement>) {\n setSearchValue(event.target.value)\n\n onSearch_?.(event)\n }\n\n return (\n <StyledSelectMenu ref={ref} shadowStrength={2}>\n <MenuImperative\n {...props}\n {...menuProps}\n ref={menuRef}\n role=\"listbox\"\n onKeyDown={onKeyDown}\n onSelect={onSelect}\n circular\n >\n {onSearch_ && (\n <MenuImperative.Search\n autoComplete=\"false\"\n i18nScope={i18nScope}\n onChange={onSearch}\n {...menuNavigationTriggerProps}\n />\n )}\n {header && <MenuImperative.Header>{header}</MenuImperative.Header>}\n {React.Children.count(children) ? (\n <MenuImperative.Options ref={optionsRef}>\n {children}\n </MenuImperative.Options>\n ) : (\n <Box padding=\"md lg\">\n <Notation variant=\"pagination\">{emptyMessage}</Notation>\n </Box>\n )}\n {footer && <MenuImperative.Footer>{footer}</MenuImperative.Footer>}\n </MenuImperative>\n </StyledSelectMenu>\n )\n }\n)\n\nconst Select_ = React.forwardRef<HTMLDivElement, SelectProps>(function Select(\n {\n afterHide: afterHide_ = noop,\n afterShow: afterShow_ = noop,\n beforeHide = () => true,\n beforeShow = () => true,\n block = false,\n children,\n className,\n container,\n disabled = false,\n emptyMessage = 'No results',\n error = false,\n header,\n footer,\n hideDelay = 100,\n i18nScope = 'core.select',\n label = '',\n loading = false,\n onClear: onClear_,\n onKeyDown = noop,\n onScrollBottom,\n onSearch,\n onSelect = noop,\n optionsRef,\n placeholder,\n placement = 'bottom-left',\n restoreFocusOnHide = 'core-react',\n showDelay = 0,\n tabIndex = 0,\n qa,\n ...props\n },\n forwardRef\n) {\n const menuRef = React.useRef<MenuRef>(null)\n const overlayTriggerRef = React.useRef<HTMLDivElement>(null)\n const ref =\n (forwardRef as React.RefObject<HTMLDivElement>) || overlayTriggerRef\n const [isMenuOpened, setIsMenuOpened] = React.useState(false)\n\n const clearRef = React.useRef<HTMLButtonElement>(null)\n\n function afterHide() {\n afterHide_()\n setIsMenuOpened(false)\n onSearch?.({\n target: { value: '' },\n } as React.ChangeEvent<HTMLInputElement>)\n }\n\n const onClear = React.useCallback(\n (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => {\n onClear_?.(e)\n // IE 11 fix\n // Return focus back to trigger instead of the clear button\n overlayTriggerRef?.current?.focus()\n },\n [onClear_]\n )\n\n function afterShow() {\n afterShow_()\n setIsMenuOpened(true)\n }\n\n return (\n <OverlayTrigger\n autoFocus\n afterHide={afterHide}\n afterShow={afterShow}\n beforeHide={(e: Event) => {\n if (e.target === clearRef.current) {\n return false\n }\n\n return beforeHide(e)\n }}\n beforeShow={beforeShow}\n canFlip={true}\n container={container}\n hideDelay={hideDelay}\n restoreFocusOnHide={restoreFocusOnHide}\n overlay={\n <SelectMenu\n onSearch={onSearch}\n header={header}\n footer={footer}\n emptyMessage={emptyMessage}\n optionsRef={optionsRef}\n i18nScope={i18nScope}\n onSelect={onSelect}\n onScrollBottom={onScrollBottom}\n menuRef={menuRef}\n >\n {children}\n </SelectMenu>\n }\n placement={placement}\n ref={ref}\n showDelay={showDelay}\n trigger={disabled ? 'none' : 'click'}\n >\n <Button\n {...props}\n block={block}\n className={className}\n clearRef={clearRef}\n disabled={disabled}\n error={error}\n focus={onSearch ? false : isOpen}\n label={label}\n loading={loading}\n placeholder={placeholder}\n onKeyDown={onKeyDown}\n onClear={isNil(onClear_) ? onClear_ : onClear}\n isMenuOpened={isMenuOpened}\n tabIndex={tabIndex}\n qa={qa}\n />\n </OverlayTrigger>\n )\n})\n\nSelect_.displayName = 'Select'\n\nButton.displayName = 'Select.Button'\n\nOption.displayName = 'Select.Option'\n\nOptGroup.displayName = 'Select.OptGroup'\n\n/**\n\n We use single selects to allow our users to choose a single option from a list,\n presented in a dropdown. We typically see these selects on forms.\n\n If you want users to select multiple options, use a multi select, group select,\n and tiered select if you want users to select from a tiered set of options,\n use a tiered select.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-select--demo)\n\n @see [Design Guidelines](https://design.procore.com/select)\n\n */\nexport const Select = addSubcomponents(\n {\n Button,\n Option,\n OptGroup,\n },\n Select_\n)\n"],"mappings":";;;;;;;;;;;;;AAAA,SAASA,KAAK,QAAQ,0BAA0B;AAChD,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,KAAK,QAAQ,OAAO;AAC7B,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,QAAQ,YAAY;AAChC,SACEC,cAAc,EACdC,kCAAkC,QAC7B,kCAAkC;AAEzC,SAASC,QAAQ,QAAQ,sBAAsB;AAC/C,SACEC,cAAc,EACdC,wBAAwB,QACnB,kCAAkC;AACzC,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,gBAAgB,QAAQ,4BAA4B;AAE7D,SACEC,iBAAiB,EACjBC,0BAA0B,EAC1BC,kBAAkB,EAClBC,uBAAuB,EACvBC,qBAAqB,EACrBC,gBAAgB,EAChBC,mBAAmB,QACd,iBAAiB;AAQxB,SAASC,IAAIA,CAAA,EAAG,CAAC;AACjB,SAASC,UAAUA,CAACC,GAAQ,EAAE;EAC5B,OAAO,OAAOA,GAAG,KAAK,UAAU;AAClC;AACA,SAASC,MAAMA,CAAAC,IAAA,EAAmB;EAAA,IAAAC,SAAA,GAAAD,IAAA,CAAhBE,IAAI;IAAJA,IAAI,GAAAD,SAAA,cAAG,KAAK,GAAAA,SAAA;EAC5B,OAAOC,IAAI;AACb;AAEA,OAAO,IAAMC,QA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,GAAG,eAAe;AAEpCrK,QAAQ,CAACqK,WAAW,GAAG,iBAAiB;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAM3C,MAAM,GAAGzI,gBAAgB,CACpC;EACE8B,MAAM,EAANA,MAAM;EACNP,MAAM,EAANA,MAAM;EACNR,QAAQ,EAARA;AACF,CAAC,EACDyH,OACF,CAAC"}
@@ -17,34 +17,34 @@ export var tableSelectClassName = 'select--table';
17
17
  var styledSelectButtonDefaultWidth = 248;
18
18
  export var StyledSelectMenu = /*#__PURE__*/styled(Card).withConfig({
19
19
  displayName: "StyledSelectMenu",
20
- componentId: "core-12_17_0__sc-mr8gwe-0"
20
+ componentId: "core-12_17_2__sc-mr8gwe-0"
21
21
  })(["display:flex;max-height:40vh;max-width:", "px;min-width:inherit;"], styledSelectButtonDefaultWidth);
22
22
  export var StyledSelectButtonLabel = /*#__PURE__*/styled.div.withConfig({
23
23
  displayName: "StyledSelectButtonLabel",
24
- componentId: "core-12_17_0__sc-mr8gwe-1"
24
+ componentId: "core-12_17_2__sc-mr8gwe-1"
25
25
  })(["", " flex-grow:1;margin-right:", "px;outline:none;pointer-events:", ";user-select:none;"], getEllipsis(), spacing.sm, function (_ref) {
26
26
  var $hoverable = _ref.$hoverable;
27
27
  return $hoverable ? 'initial' : 'none';
28
28
  });
29
29
  export var StyledSelectSpinner = /*#__PURE__*/styled.div.withConfig({
30
30
  displayName: "StyledSelectSpinner",
31
- componentId: "core-12_17_0__sc-mr8gwe-2"
31
+ componentId: "core-12_17_2__sc-mr8gwe-2"
32
32
  })(["align-items:center;display:flex;flex:0 0 auto;justify-content:center;line-height:0;"]);
33
33
  export var StyledSelectArrowContainer = /*#__PURE__*/styled.div.withConfig({
34
34
  displayName: "StyledSelectArrowContainer",
35
- componentId: "core-12_17_0__sc-mr8gwe-3"
35
+ componentId: "core-12_17_2__sc-mr8gwe-3"
36
36
  })(["align-items:center;display:inline-flex;height:16px;justify-content:flex-end;margin-left:", "px;width:8px;"], spacing.sm);
37
37
  export var StyledSelectArrow = /*#__PURE__*/styled.div.withConfig({
38
38
  displayName: "StyledSelectArrow",
39
- componentId: "core-12_17_0__sc-mr8gwe-4"
39
+ componentId: "core-12_17_2__sc-mr8gwe-4"
40
40
  })(["position:relative;", ""], arrowDown(4, 'gray45'));
41
41
  export var StyledSelectClearIcon = /*#__PURE__*/styled(Button).withConfig({
42
42
  displayName: "StyledSelectClearIcon",
43
- componentId: "core-12_17_0__sc-mr8gwe-5"
43
+ componentId: "core-12_17_2__sc-mr8gwe-5"
44
44
  })(["", "{pointer-events:none;}"], StyledContent);
45
45
  export var StyledSelectButton = /*#__PURE__*/styled.div.withConfig({
46
46
  displayName: "StyledSelectButton",
47
- componentId: "core-12_17_0__sc-mr8gwe-6"
47
+ componentId: "core-12_17_2__sc-mr8gwe-6"
48
48
  })(["", " align-items:center;background-color:", ";border-color:", ";border-radius:", "px;border-style:solid;border-width:1px;color:", ";cursor:pointer;display:inline-flex;height:36px;min-height:36px;outline:none;padding:0 ", "px;position:relative;white-space:nowrap;width:", ";&::placeholder{border-color:", ";}&:hover,&:active,&[data-qa=", "]{background-color:", ";border-color:", ";color:", ";}&.focus,&:focus,&[data-qa=", "]{", " ", "{stroke:", ";}}", " ", " ", " ", " ", " &.", "{", " ", " ", "}"], getTypographyIntent('body'), colors.white, colors.gray70, borderRadius.md, colors.gray15, spacing.md, function (_ref2) {
49
49
  var $block = _ref2.$block;
50
50
  return $block ? '100%' : "".concat(styledSelectButtonDefaultWidth, "px");
@@ -5,15 +5,15 @@ import { colors } from '../_styles/colors';
5
5
  import { spacing } from '../_styles/spacing';
6
6
  export var StyledH1 = /*#__PURE__*/styled.h1.withConfig({
7
7
  displayName: "StyledH1",
8
- componentId: "core-12_17_0__sc-172j5qh-0"
8
+ componentId: "core-12_17_2__sc-172j5qh-0"
9
9
  })(["color:", ";", " margin:0;"], colors.gray15, getTypographyIntent('h1'));
10
10
  export var StyledH2 = /*#__PURE__*/styled.h2.withConfig({
11
11
  displayName: "StyledH2",
12
- componentId: "core-12_17_0__sc-172j5qh-1"
12
+ componentId: "core-12_17_2__sc-172j5qh-1"
13
13
  })(["color:", ";", " margin:0;"], colors.gray15, getTypographyIntent('h2'));
14
14
  export var StyledH3 = /*#__PURE__*/styled.h3.withConfig({
15
15
  displayName: "StyledH3",
16
- componentId: "core-12_17_0__sc-172j5qh-2"
16
+ componentId: "core-12_17_2__sc-172j5qh-2"
17
17
  })(["color:", ";", " margin:0;"], colors.gray15, getTypographyIntent('h3'));
18
18
  var topMarginRules = function topMarginRules() {
19
19
  return css(["& + &,p + &,ol + &,ul + &{margin-top:", "px;}"], spacing.lg);
@@ -28,11 +28,11 @@ export function getSmallIconBodyTextRules() {
28
28
  }
29
29
  export var StyledP = /*#__PURE__*/styled.p.withConfig({
30
30
  displayName: "StyledP",
31
- componentId: "core-12_17_0__sc-172j5qh-3"
31
+ componentId: "core-12_17_2__sc-172j5qh-3"
32
32
  })(["color:", ";", " ", " ", ""], colors.gray15, getTypographyIntent('body'), topMarginRules, semiboldRules);
33
33
  export var StyledUL = /*#__PURE__*/styled.ul.withConfig({
34
34
  displayName: "StyledUL",
35
- componentId: "core-12_17_0__sc-172j5qh-4"
35
+ componentId: "core-12_17_2__sc-172j5qh-4"
36
36
  })(["color:", ";margin:0;padding:0;", " ", " padding-left:", "px;list-style-type:", ";"], colors.gray15, getTypographyIntent('body'), topMarginRules, spacing.lg, function (props) {
37
37
  return props.$listStyleType || 'disc';
38
38
  });
@@ -40,7 +40,7 @@ export var StyledOL = /*#__PURE__*/styled(StyledUL).attrs({
40
40
  as: 'ol'
41
41
  }).withConfig({
42
42
  displayName: "StyledOL",
43
- componentId: "core-12_17_0__sc-172j5qh-5"
43
+ componentId: "core-12_17_2__sc-172j5qh-5"
44
44
  })(["list-style-type:", ";"], function (props) {
45
45
  return props.$listStyleType || 'decimal';
46
46
  });
@@ -52,7 +52,7 @@ function enforceLabelTypography(props) {
52
52
  }
53
53
  export var StyledLabel = /*#__PURE__*/styled(StyledTypography).attrs(enforceLabelTypography).withConfig({
54
54
  displayName: "StyledLabel",
55
- componentId: "core-12_17_0__sc-172j5qh-6"
55
+ componentId: "core-12_17_2__sc-172j5qh-6"
56
56
  })(["", " ", " > ", "{margin-left:", "px;vertical-align:top;}"], function (_ref) {
57
57
  var _ref$$block = _ref.$block,
58
58
  $block = _ref$$block === void 0 ? false : _ref$$block;
@@ -70,7 +70,7 @@ export function getUnstyledButton() {
70
70
  */
71
71
  export var StyledUnstyledButton = /*#__PURE__*/styled.button.withConfig({
72
72
  displayName: "StyledUnstyledButton",
73
- componentId: "core-12_17_0__sc-172j5qh-7"
73
+ componentId: "core-12_17_2__sc-172j5qh-7"
74
74
  })(["", ""], getUnstyledButton);
75
75
 
76
76
  /**
@@ -78,6 +78,6 @@ export var StyledUnstyledButton = /*#__PURE__*/styled.button.withConfig({
78
78
  */
79
79
  export var StyledAnchor = /*#__PURE__*/styled.a.withConfig({
80
80
  displayName: "StyledAnchor",
81
- componentId: "core-12_17_0__sc-172j5qh-8"
81
+ componentId: "core-12_17_2__sc-172j5qh-8"
82
82
  })([""]);
83
83
  //# sourceMappingURL=Semantic.styles.js.map
@@ -21,13 +21,13 @@ var getTrackBackgroundDisabled = function getTrackBackgroundDisabled(percent) {
21
21
  var getThumbDisabledStyles = /*#__PURE__*/css(["cursor:not-allowed;border:2px solid ", ";"], colors.blue85);
22
22
  export var StyledContainer = /*#__PURE__*/styled.div.withConfig({
23
23
  displayName: "StyledContainer",
24
- componentId: "core-12_17_0__sc-12icguw-0"
24
+ componentId: "core-12_17_2__sc-12icguw-0"
25
25
  })(["position:relative;", ";"], function (props) {
26
26
  return props.$showLabel && 'padding-bottom: 10px';
27
27
  });
28
28
  export var StyledSlider = /*#__PURE__*/styled.input.withConfig({
29
29
  displayName: "StyledSlider",
30
- componentId: "core-12_17_0__sc-12icguw-1"
30
+ componentId: "core-12_17_2__sc-12icguw-1"
31
31
  })(["-webkit-appearance:none;margin:0;padding-top:5px;padding-bottom:5px;width:100%;border:1px solid transparent;background-color:transparent;font-size:12px;&:focus{outline:none;", ";padding-top:5px;padding-bottom:5px;border-radius:2px;}&::-webkit-slider-runnable-track{", " ", "}&:disabled::-webkit-slider-runnable-track{cursor:not-allowed;", "}&::-webkit-slider-thumb{", " -webkit-appearance:none;margin-top:-5px;}&:disabled::-webkit-slider-thumb{", "}&::-moz-range-track{", " ", "}&:disabled::-moz-range-track{cursor:not-allowed;", "}&::-moz-range-thumb{", " height:12px;width:12px;}&:disabled::-moz-range-thumb{", "}&::-ms-track{", " height:", "px;color:transparent;", "}&:disabled::-ms-track{cursor:not-allowed;", "}&::-ms-fill-lower{background:", ";border:0px solid ", ";border-radius:2px;box-shadow:1px 1px 1px ", ";}&::-ms-fill-upper{background:", ";border:0px solid ", ";border-radius:2px;box-shadow:1px 1px 1px ", ";}&::-ms-thumb{", "}&:disabled::-ms-thumb{", "}&:focus::-ms-fill-lower{background:", ";}&:focus::-ms-fill-upper{background:", ";}"], function (props) {
32
32
  return props.$isDragging ? "border: 1px solid transparent" : "border: 1px solid ".concat(colors.blue40);
33
33
  }, getTrackStyles, function (props) {
@@ -45,14 +45,14 @@ export var StyledSlider = /*#__PURE__*/styled.input.withConfig({
45
45
  }, colors.blue50, colors.black, colors.black, colors.gray70, colors.black, colors.black, getThumbStyles, getThumbDisabledStyles, colors.blue50, colors.gray70);
46
46
  export var StyledIncrementOverlay = /*#__PURE__*/styled.div.withConfig({
47
47
  displayName: "StyledIncrementOverlay",
48
- componentId: "core-12_17_0__sc-12icguw-2"
48
+ componentId: "core-12_17_2__sc-12icguw-2"
49
49
  })(["position:relative;width:0;&::before{content:'';height:", "px;width:2px;background-color:white;display:block;}z-index:2;"], TRACK_HEIGHT);
50
50
  export var StyledIncrementContainer = /*#__PURE__*/styled.div.withConfig({
51
51
  displayName: "StyledIncrementContainer",
52
- componentId: "core-12_17_0__sc-12icguw-3"
52
+ componentId: "core-12_17_2__sc-12icguw-3"
53
53
  })(["position:absolute;display:flex;justify-content:space-between;top:6px;", " left:5px;right:5px;> :first-child{visibility:hidden;}> :last-child{visibility:hidden;}"], applyStylesOnlyToFF("\n top: 12px;\n "));
54
54
  export var StyledLabel = /*#__PURE__*/styled(Typography).withConfig({
55
55
  displayName: "StyledLabel",
56
- componentId: "core-12_17_0__sc-12icguw-4"
56
+ componentId: "core-12_17_2__sc-12icguw-4"
57
57
  })(["visibility:visible;position:absolute;left:50%;transform:translateX(-50%);margin-top:8px;"]);
58
58
  //# sourceMappingURL=Slider.styles.js.map