@procore/core-react 12.14.0 → 12.16.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 (314) 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.js +3 -3
  6. package/dist/Banner/Banner.js.map +1 -1
  7. package/dist/Banner/Banner.styles.d.ts +3 -3
  8. package/dist/Banner/Banner.styles.js +16 -16
  9. package/dist/Banner/Banner.styles.js.map +1 -1
  10. package/dist/Box/Box.styles.js +1 -1
  11. package/dist/Breadcrumbs/Breadcrumbs.js +5 -2
  12. package/dist/Breadcrumbs/Breadcrumbs.js.map +1 -1
  13. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  14. package/dist/Button/Button.styles.js +5 -5
  15. package/dist/Calendar/Calendar.styles.js +8 -8
  16. package/dist/Card/Card.styles.js +1 -1
  17. package/dist/Checkbox/Checkbox.styles.js +6 -6
  18. package/dist/Checkbox/CheckboxTooltip.js +1 -1
  19. package/dist/ContactItem/ContactItem.styles.js +5 -5
  20. package/dist/Content/Content.styles.js +2 -2
  21. package/dist/DateInput/DateInput.js +1 -1
  22. package/dist/DateInput/DateInput.js.map +1 -1
  23. package/dist/DateInput/DateInput.styles.d.ts +1 -1
  24. package/dist/DateInput/DateInput.styles.js +6 -6
  25. package/dist/DateInput/DateInput.styles.js.map +1 -1
  26. package/dist/DetailPage/DetailPage.styles.js +7 -7
  27. package/dist/DetailPageTemplate/DetailPageTemplate.d.ts +11 -0
  28. package/dist/DetailPageTemplate/DetailPageTemplate.js +38 -0
  29. package/dist/DetailPageTemplate/DetailPageTemplate.js.map +1 -0
  30. package/dist/DetailPageTemplate/DetailPageTemplate.types.d.ts +13 -0
  31. package/dist/DetailPageTemplate/DetailPageTemplate.types.js +2 -0
  32. package/dist/DetailPageTemplate/DetailPageTemplate.types.js.map +1 -0
  33. package/dist/Dropdown/Dropdown.styles.js +3 -3
  34. package/dist/Dropdown/Dropdown.types.d.ts +5 -11
  35. package/dist/Dropdown/Dropdown.types.js.map +1 -1
  36. package/dist/DropdownFlyout/DropdownFlyout.js +6 -2
  37. package/dist/DropdownFlyout/DropdownFlyout.js.map +1 -1
  38. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  39. package/dist/DropdownFlyout/DropdownFlyout.types.d.ts +12 -14
  40. package/dist/DropdownFlyout/DropdownFlyout.types.js.map +1 -1
  41. package/dist/Dropzone/Dropzone.js +3 -2
  42. package/dist/Dropzone/Dropzone.js.map +1 -1
  43. package/dist/Dropzone/Dropzone.styles.js +9 -9
  44. package/dist/Dropzone/Dropzone.types.d.ts +22 -20
  45. package/dist/Dropzone/Dropzone.types.js.map +1 -1
  46. package/dist/EmptyState/EmptyState.styles.js +6 -6
  47. package/dist/Field/Field.styles.js +3 -3
  48. package/dist/FileList/FileList.styles.js +4 -4
  49. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  50. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  51. package/dist/FileSelect/FileSelect.styles.js +2 -2
  52. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  53. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  54. package/dist/FileSelect/GridSource/GridSource.js +3 -3
  55. package/dist/FileSelect/GridSource/GridSource.js.map +1 -1
  56. package/dist/FileSelect/GridSource/GridSource.styles.d.ts +3 -3
  57. package/dist/FileSelect/GridSource/GridSource.styles.js +12 -12
  58. package/dist/FileSelect/GridSource/GridSource.styles.js.map +1 -1
  59. package/dist/FileSelect/GridSource/GridSource.types.d.ts +14 -23
  60. package/dist/FileSelect/GridSource/GridSource.types.js.map +1 -1
  61. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  62. package/dist/FileSelect/LocalSource/LocalSource.types.d.ts +43 -47
  63. package/dist/FileSelect/LocalSource/LocalSource.types.js.map +1 -1
  64. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  65. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  66. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  67. package/dist/FileSelect/TreeSource/TreeSource.types.d.ts +3 -1
  68. package/dist/FileSelect/TreeSource/TreeSource.types.js.map +1 -1
  69. package/dist/FileToken/FileToken.styles.js +4 -4
  70. package/dist/FilterToken/FilterToken.styles.js +2 -2
  71. package/dist/FlexList/FlexList.styles.js +1 -1
  72. package/dist/Form/Form.js +12 -7
  73. package/dist/Form/Form.js.map +1 -1
  74. package/dist/Form/Form.styles.js +14 -14
  75. package/dist/Form/Form.types.d.ts +55 -67
  76. package/dist/Form/Form.types.js.map +1 -1
  77. package/dist/Form/StyledFormikForm.styles.js +2 -2
  78. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  79. package/dist/Grid/Grid.styles.js +2 -2
  80. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  81. package/dist/Input/Input.styles.js +1 -1
  82. package/dist/Link/Link.styles.js +1 -1
  83. package/dist/ListPage/ListPage.styles.js +8 -8
  84. package/dist/Loader/Loader.styles.js +4 -4
  85. package/dist/Loader/Loader.styles.js.map +1 -1
  86. package/dist/MenuImperative/MenuImperative.js +8 -5
  87. package/dist/MenuImperative/MenuImperative.js.map +1 -1
  88. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  89. package/dist/Modal/Modal.js +2 -2
  90. package/dist/Modal/Modal.js.map +1 -1
  91. package/dist/Modal/Modal.styles.d.ts +2 -2
  92. package/dist/Modal/Modal.styles.js +18 -18
  93. package/dist/Modal/Modal.styles.js.map +1 -1
  94. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  95. package/dist/MultiSelect/MultiSelect.types.d.ts +22 -15
  96. package/dist/MultiSelect/MultiSelect.types.js.map +1 -1
  97. package/dist/NextMenu/NextMenu.styles.js +3 -3
  98. package/dist/Notation/Notation.js +1 -1
  99. package/dist/NumberInput/NumberInput.js +2 -2
  100. package/dist/NumberInput/NumberInput.js.map +1 -1
  101. package/dist/NumberInput/NumberInput.styles.d.ts +2 -2
  102. package/dist/NumberInput/NumberInput.styles.js +11 -11
  103. package/dist/NumberInput/NumberInput.styles.js.map +1 -1
  104. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  105. package/dist/PageFooterTemplate/PageFooterTemplate.styles.js +2 -2
  106. package/dist/PageFooterTemplate/PageFooterTemplate.styles.js.map +1 -1
  107. package/dist/PageHeaderTemplate/PageHeaderTemplate.js +70 -23
  108. package/dist/PageHeaderTemplate/PageHeaderTemplate.js.map +1 -1
  109. package/dist/PageHeaderTemplate/PageHeaderTemplate.styles.d.ts +2 -0
  110. package/dist/PageHeaderTemplate/PageHeaderTemplate.styles.js +11 -1
  111. package/dist/PageHeaderTemplate/PageHeaderTemplate.styles.js.map +1 -1
  112. package/dist/PageHeaderTemplate/PageHeaderTemplate.utils.d.ts +11 -0
  113. package/dist/PageHeaderTemplate/PageHeaderTemplate.utils.js +88 -0
  114. package/dist/PageHeaderTemplate/PageHeaderTemplate.utils.js.map +1 -0
  115. package/dist/PageLayout/PageLayout.styles.js +16 -16
  116. package/dist/PageLayout/PageLayout.utils.d.ts +2 -0
  117. package/dist/PageLayout/PageLayout.utils.js +6 -0
  118. package/dist/PageLayout/PageLayout.utils.js.map +1 -1
  119. package/dist/PageTemplate/PageTemplate.js +6 -2
  120. package/dist/PageTemplate/PageTemplate.js.map +1 -1
  121. package/dist/PageTemplate/PageTemplate.styles.d.ts +5 -0
  122. package/dist/PageTemplate/PageTemplate.styles.js +24 -0
  123. package/dist/PageTemplate/PageTemplate.styles.js.map +1 -0
  124. package/dist/PageTemplate/PageTemplate.types.d.ts +1 -0
  125. package/dist/PageTemplate/PageTemplate.types.js.map +1 -1
  126. package/dist/Pagination/Pagination.styles.js +5 -5
  127. package/dist/Panel/Panel.styles.js +11 -11
  128. package/dist/Pill/Pill.styles.js +2 -2
  129. package/dist/Pill/Pill.types.d.ts +3 -1
  130. package/dist/Pill/Pill.types.js.map +1 -1
  131. package/dist/PillSelect/PillSelect.styles.js +4 -4
  132. package/dist/Popover/Popover.styles.js +2 -2
  133. package/dist/Portal/Portal.styles.js +1 -1
  134. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  135. package/dist/RadioButton/RadioButton.styles.js +3 -3
  136. package/dist/Required/Required.styles.js +3 -3
  137. package/dist/Search/Search.styles.js +5 -5
  138. package/dist/Search/Search.types.d.ts +4 -2
  139. package/dist/Search/Search.types.js.map +1 -1
  140. package/dist/Section/Section.styles.js +7 -7
  141. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  142. package/dist/Select/Select.js +6 -3
  143. package/dist/Select/Select.js.map +1 -1
  144. package/dist/Select/Select.styles.js +9 -8
  145. package/dist/Select/Select.styles.js.map +1 -1
  146. package/dist/Select/Select.types.d.ts +9 -1
  147. package/dist/Select/Select.types.js.map +1 -1
  148. package/dist/Semantic/Semantic.d.ts +3 -7
  149. package/dist/Semantic/Semantic.js +14 -2
  150. package/dist/Semantic/Semantic.js.map +1 -1
  151. package/dist/Semantic/Semantic.styles.d.ts +3 -3
  152. package/dist/Semantic/Semantic.styles.js +11 -11
  153. package/dist/Semantic/Semantic.styles.js.map +1 -1
  154. package/dist/Semantic/Semantic.types.d.ts +5 -0
  155. package/dist/Semantic/Semantic.types.js.map +1 -1
  156. package/dist/SettingsPageTemplate/SettingsPageTemplate.d.ts +7 -0
  157. package/dist/SettingsPageTemplate/SettingsPageTemplate.js +34 -0
  158. package/dist/SettingsPageTemplate/SettingsPageTemplate.js.map +1 -0
  159. package/dist/SettingsPageTemplate/SettingsPageTemplate.types.d.ts +9 -0
  160. package/dist/SettingsPageTemplate/SettingsPageTemplate.types.js +2 -0
  161. package/dist/SettingsPageTemplate/SettingsPageTemplate.types.js.map +1 -0
  162. package/dist/Slider/Slider.js +2 -2
  163. package/dist/Slider/Slider.js.map +1 -1
  164. package/dist/Slider/Slider.styles.d.ts +2 -2
  165. package/dist/Slider/Slider.styles.js +9 -9
  166. package/dist/Slider/Slider.styles.js.map +1 -1
  167. package/dist/Spinner/Spinner.styles.js +7 -7
  168. package/dist/Spinner/Spinner.types.d.ts +2 -5
  169. package/dist/Spinner/Spinner.types.js.map +1 -1
  170. package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
  171. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  172. package/dist/SuperSelect/SuperSelect.styles.js +37 -37
  173. package/dist/Switch/Switch.styles.js +4 -4
  174. package/dist/Table/Table.styles.js +28 -28
  175. package/dist/TableShelf/TableShelf.styles.js +5 -5
  176. package/dist/Tabs/Tabs.styles.js +15 -15
  177. package/dist/Tearsheet/Tearsheet.styles.js +7 -7
  178. package/dist/Tearsheet/Tearsheet.styles.js.map +1 -1
  179. package/dist/TextArea/TextArea.styles.js +1 -1
  180. package/dist/TextEditor/TextEditor.types.d.ts +12 -9
  181. package/dist/TextEditor/TextEditor.types.js.map +1 -1
  182. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  183. package/dist/Thumbnail/Thumbnail.js +25 -10
  184. package/dist/Thumbnail/Thumbnail.js.map +1 -1
  185. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  186. package/dist/Thumbnail/Thumbnail.types.d.ts +2 -3
  187. package/dist/Thumbnail/Thumbnail.types.js.map +1 -1
  188. package/dist/Thumbnail/ThumbnailCaption.js +2 -2
  189. package/dist/Thumbnail/ThumbnailCaption.js.map +1 -1
  190. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  191. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  192. package/dist/TieredSelect/TieredSelect.types.d.ts +64 -40
  193. package/dist/TieredSelect/TieredSelect.types.js.map +1 -1
  194. package/dist/Tile/Tile.styles.js +8 -8
  195. package/dist/Tile/Tile.types.d.ts +1 -1
  196. package/dist/Tile/Tile.types.js.map +1 -1
  197. package/dist/Title/Title.styles.js +7 -7
  198. package/dist/Toast/Toast.styles.js +3 -3
  199. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  200. package/dist/ToggleButton/ToggleButton.types.d.ts +1 -1
  201. package/dist/ToggleButton/ToggleButton.types.js.map +1 -1
  202. package/dist/Token/Token.styles.js +3 -3
  203. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  204. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  205. package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.d.ts +5 -0
  206. package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.js +44 -0
  207. package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.js.map +1 -0
  208. package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.types.d.ts +7 -0
  209. package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.types.js +2 -0
  210. package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.types.js.map +1 -0
  211. package/dist/Tooltip/Tooltip.styles.js +2 -2
  212. package/dist/Tree/Tree.js +3 -3
  213. package/dist/Tree/Tree.js.map +1 -1
  214. package/dist/Tree/Tree.styles.d.ts +9 -3
  215. package/dist/Tree/Tree.styles.js +23 -15
  216. package/dist/Tree/Tree.styles.js.map +1 -1
  217. package/dist/Tree/Tree.types.d.ts +40 -19
  218. package/dist/Tree/Tree.types.js.map +1 -1
  219. package/dist/Typeahead/Typeahead.styles.js +3 -3
  220. package/dist/Typography/Typography.js +1 -1
  221. package/dist/Typography/Typography.js.map +1 -1
  222. package/dist/Typography/Typography.styles.d.ts +2 -1
  223. package/dist/Typography/Typography.styles.js +3 -3
  224. package/dist/Typography/Typography.styles.js.map +1 -1
  225. package/dist/Typography/Typography.table.story.js +2 -2
  226. package/dist/_hooks/useCurrentMedia.d.ts +36 -0
  227. package/dist/_hooks/useCurrentMedia.js +73 -0
  228. package/dist/_hooks/useCurrentMedia.js.map +1 -0
  229. package/dist/_locales/en-AU.json +56 -56
  230. package/dist/_locales/en-CA.json +56 -56
  231. package/dist/_locales/en-GB.json +55 -55
  232. package/dist/_locales/es.json +2 -2
  233. package/dist/_locales/ja-JP.json +5 -5
  234. package/dist/_locales/pt-BR.json +1 -1
  235. package/dist/_locales/th-TH.json +1 -1
  236. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  237. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
  238. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  239. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  240. package/dist/_typedoc/Box/Box.types.json +68 -68
  241. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  242. package/dist/_typedoc/Button/Button.types.json +12 -12
  243. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  244. package/dist/_typedoc/Card/Card.types.json +6 -6
  245. package/dist/_typedoc/Checkbox/Checkbox.types.json +9 -9
  246. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  247. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  248. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  249. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  250. package/dist/_typedoc/Dropdown/Dropdown.types.json +39 -39
  251. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +35 -35
  252. package/dist/_typedoc/Dropzone/Dropzone.types.json +53 -53
  253. package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
  254. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  255. package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
  256. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +42 -42
  257. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +30 -30
  258. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +27 -27
  259. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  260. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  261. package/dist/_typedoc/Form/Form.types.json +1015 -975
  262. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  263. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  264. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +54 -54
  265. package/dist/_typedoc/Input/Input.types.json +2 -2
  266. package/dist/_typedoc/Link/Link.types.json +4 -4
  267. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  268. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  269. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  270. package/dist/_typedoc/Modal/Modal.types.json +46 -46
  271. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +35 -35
  272. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  273. package/dist/_typedoc/NumberInput/NumberInput.types.json +37 -37
  274. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
  275. package/dist/_typedoc/PageLayout/PageLayout.types.json +28 -28
  276. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  277. package/dist/_typedoc/Panel/Panel.types.json +28 -28
  278. package/dist/_typedoc/Pill/Pill.types.json +4 -4
  279. package/dist/_typedoc/PillSelect/PillSelect.types.json +58 -48
  280. package/dist/_typedoc/Popover/Popover.types.json +14 -14
  281. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
  282. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  283. package/dist/_typedoc/Required/Required.types.json +5 -5
  284. package/dist/_typedoc/Search/Search.types.json +22 -22
  285. package/dist/_typedoc/Section/Section.types.json +15 -15
  286. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
  287. package/dist/_typedoc/Select/Select.types.json +78 -58
  288. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  289. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  290. package/dist/_typedoc/Spinner/Spinner.types.json +11 -11
  291. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +12 -12
  292. package/dist/_typedoc/Switch/Switch.types.json +3 -3
  293. package/dist/_typedoc/Table/Table.types.json +112 -102
  294. package/dist/_typedoc/Tabs/Tabs.types.json +19 -19
  295. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
  296. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  297. package/dist/_typedoc/TextEditor/TextEditor.types.json +13 -13
  298. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  299. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +23 -23
  300. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +56 -56
  301. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +44 -44
  302. package/dist/_typedoc/Tile/Tile.types.json +32 -32
  303. package/dist/_typedoc/Title/Title.types.json +1 -1
  304. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  305. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +6 -6
  306. package/dist/_typedoc/Token/Token.types.json +4 -4
  307. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  308. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +7 -7
  309. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  310. package/dist/_typedoc/Tree/Tree.types.json +110 -110
  311. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  312. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  313. package/dist/_typedoc/_utils/types.json +3 -3
  314. package/package.json +2 -2
@@ -1,5 +1,6 @@
1
1
  import styled, { css } from 'styled-components';
2
2
  import { Button } from '../Button';
3
+ import { StyledContent } from '../Button/Button.styles';
3
4
  import { Card } from '../Card';
4
5
  import { StyledCircle } from '../Spinner/Spinner.styles';
5
6
  import { getTypographyIntent } from '../Typography/Typography.styles';
@@ -16,34 +17,34 @@ export var tableSelectClassName = 'select--table';
16
17
  var styledSelectButtonDefaultWidth = 248;
17
18
  export var StyledSelectMenu = /*#__PURE__*/styled(Card).withConfig({
18
19
  displayName: "StyledSelectMenu",
19
- componentId: "core-12_14_0__sc-mr8gwe-0"
20
+ componentId: "core-12_16_0__sc-mr8gwe-0"
20
21
  })(["display:flex;max-height:40vh;max-width:", "px;min-width:inherit;"], styledSelectButtonDefaultWidth);
21
22
  export var StyledSelectButtonLabel = /*#__PURE__*/styled.div.withConfig({
22
23
  displayName: "StyledSelectButtonLabel",
23
- componentId: "core-12_14_0__sc-mr8gwe-1"
24
+ componentId: "core-12_16_0__sc-mr8gwe-1"
24
25
  })(["", " flex-grow:1;margin-right:", "px;outline:none;pointer-events:", ";user-select:none;"], getEllipsis(), spacing.sm, function (_ref) {
25
26
  var $hoverable = _ref.$hoverable;
26
27
  return $hoverable ? 'initial' : 'none';
27
28
  });
28
29
  export var StyledSelectSpinner = /*#__PURE__*/styled.div.withConfig({
29
30
  displayName: "StyledSelectSpinner",
30
- componentId: "core-12_14_0__sc-mr8gwe-2"
31
+ componentId: "core-12_16_0__sc-mr8gwe-2"
31
32
  })(["align-items:center;display:flex;flex:0 0 auto;justify-content:center;line-height:0;"]);
32
33
  export var StyledSelectArrowContainer = /*#__PURE__*/styled.div.withConfig({
33
34
  displayName: "StyledSelectArrowContainer",
34
- componentId: "core-12_14_0__sc-mr8gwe-3"
35
+ componentId: "core-12_16_0__sc-mr8gwe-3"
35
36
  })(["align-items:center;display:inline-flex;height:16px;justify-content:flex-end;margin-left:", "px;width:8px;"], spacing.sm);
36
37
  export var StyledSelectArrow = /*#__PURE__*/styled.div.withConfig({
37
38
  displayName: "StyledSelectArrow",
38
- componentId: "core-12_14_0__sc-mr8gwe-4"
39
+ componentId: "core-12_16_0__sc-mr8gwe-4"
39
40
  })(["position:relative;", ""], arrowDown(4, 'gray45'));
40
41
  export var StyledSelectClearIcon = /*#__PURE__*/styled(Button).withConfig({
41
42
  displayName: "StyledSelectClearIcon",
42
- componentId: "core-12_14_0__sc-mr8gwe-5"
43
- })([""]);
43
+ componentId: "core-12_16_0__sc-mr8gwe-5"
44
+ })(["", "{pointer-events:none;}"], StyledContent);
44
45
  export var StyledSelectButton = /*#__PURE__*/styled.div.withConfig({
45
46
  displayName: "StyledSelectButton",
46
- componentId: "core-12_14_0__sc-mr8gwe-6"
47
+ componentId: "core-12_16_0__sc-mr8gwe-6"
47
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) {
48
49
  var $block = _ref2.$block;
49
50
  return $block ? '100%' : "".concat(styledSelectButtonDefaultWidth, "px");
@@ -1 +1 @@
1
- {"version":3,"file":"Select.styles.js","names":["styled","css","Button","Card","StyledCircle","getTypographyIntent","arrowDown","arrowUp","borderRadius","colors","getEllipsis","getFocus","spacing","dataQa","focused","hovered","tableSelectClassName","styledSelectButtonDefaultWidth","StyledSelectMenu","withConfig","displayName","componentId","StyledSelectButtonLabel","div","sm","_ref","$hoverable","StyledSelectSpinner","StyledSelectArrowContainer","StyledSelectArrow","StyledSelectClearIcon","StyledSelectButton","white","gray70","md","gray15","_ref2","$block","concat","gray45","blue50","_ref3","_ref3$$placeholder","$placeholder","_ref4","$disabled","gray94","_ref5","$error","$loading","red50","_ref6","$hasClearIcon","_ref7","$open","_ref8","_ref9","_ref10","_ref10$$placeholder"],"sources":["../../src/Select/Select.styles.tsx"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport { Button } from '../Button'\nimport { Card } from '../Card'\nimport { StyledCircle } from '../Spinner/Spinner.styles'\nimport { getTypographyIntent } from '../Typography/Typography.styles'\nimport { arrowDown, arrowUp } from '../_styles/arrows'\nimport { borderRadius } from '../_styles/borderRadius'\nimport { colors } from '../_styles/colors'\nimport { getEllipsis, getFocus } from '../_styles/mixins'\nimport { spacing } from '../_styles/spacing'\n\nexport const dataQa = {\n focused: 'core-select-focused',\n hovered: 'core-select-hovered',\n}\n\nexport const tableSelectClassName = 'select--table'\nconst styledSelectButtonDefaultWidth = 248\n\nexport const StyledSelectMenu = styled(Card)`\n display: flex;\n max-height: 40vh;\n max-width: ${styledSelectButtonDefaultWidth}px;\n min-width: inherit;\n`\n\nexport const StyledSelectButtonLabel = styled.div<{ $hoverable: boolean }>`\n ${getEllipsis()}\n flex-grow: 1;\n margin-right: ${spacing.sm}px;\n outline: none;\n pointer-events: ${({ $hoverable }) => ($hoverable ? 'initial' : 'none')};\n user-select: none;\n`\n\nexport const StyledSelectSpinner = styled.div`\n align-items: center;\n display: flex;\n flex: 0 0 auto;\n justify-content: center;\n line-height: 0;\n`\n\nexport const StyledSelectArrowContainer = styled.div`\n align-items: center;\n display: inline-flex;\n height: 16px;\n justify-content: flex-end;\n margin-left: ${spacing.sm}px;\n width: 8px;\n`\n\nexport const StyledSelectArrow = styled.div`\n position: relative;\n ${arrowDown(4, 'gray45')}\n`\n\nexport const StyledSelectClearIcon = styled(Button)``\n\nexport const StyledSelectButton = styled.div<{\n $block: boolean\n $disabled: boolean\n $error: boolean\n $loading: boolean\n $open: boolean\n $placeholder?: boolean\n $hasClearIcon: boolean\n}>`\n ${getTypographyIntent('body')}\n\n align-items: center;\n background-color: ${colors.white};\n border-color: ${colors.gray70};\n border-radius: ${borderRadius.md}px;\n border-style: solid;\n border-width: 1px;\n color: ${colors.gray15};\n cursor: pointer;\n display: inline-flex;\n height: 36px;\n min-height: 36px;\n outline: none;\n padding: 0 ${spacing.md}px;\n position: relative;\n white-space: nowrap;\n width: ${({ $block }) =>\n $block ? '100%' : `${styledSelectButtonDefaultWidth}px`};\n\n &::placeholder {\n border-color: ${colors.gray45};\n }\n\n &:hover,\n &:active,\n &[data-qa=${dataQa.hovered}] {\n background-color: ${colors.white};\n border-color: ${colors.gray45};\n color: ${colors.gray15};\n }\n\n &.focus,\n &:focus,\n &[data-qa=${dataQa.focused}] {\n ${getFocus()}\n\n ${StyledCircle} {\n stroke: ${colors.blue50};\n }\n }\n\n ${({ $placeholder = false }) =>\n $placeholder &&\n css`\n ${StyledSelectButtonLabel} {\n color: ${colors.gray45};\n }\n `}\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n background-color: ${colors.gray94};\n border-color: ${colors.gray70};\n color: ${colors.gray45};\n cursor: default;\n pointer-events: none;\n\n ${StyledSelectButtonLabel} {\n color: ${colors.gray70};\n }\n\n ${StyledSelectArrow} {\n ${arrowDown(4, 'gray70')}\n }\n `}\n\n ${({ $error, $disabled, $loading }) => {\n if ($error && !$disabled) {\n return css`\n &,\n &:hover {\n border-color: ${colors.red50};\n border-color: var(--core-input-error-border-color, ${colors.red50});\n }\n &:hover:focus {\n ${getFocus()}\n }\n `\n }\n }}\n\n ${({ $hasClearIcon }) => css`\n ${StyledSelectClearIcon} {\n opacity: ${$hasClearIcon ? 1 : 0};\n }\n `}\n\n ${({ $open }) =>\n $open &&\n css`\n ${StyledSelectArrow} {\n ${arrowUp(4, 'gray45')}\n }\n `}\n\n &.${tableSelectClassName} {\n ${({ $open }) =>\n $open &&\n css`\n background-color: ${colors.white};\n\n ${StyledSelectButtonLabel} {\n white-space: nowrap;\n }\n\n ${StyledSelectArrow} {\n opacity: 1;\n pointer-events: all;\n }\n `}\n\n ${({ $open, $hasClearIcon }) =>\n $open &&\n $hasClearIcon &&\n css`\n ${StyledSelectClearIcon} {\n opacity: 1;\n pointer-events: all;\n }\n `}\n \n ${({ $open, $placeholder = false }) =>\n $open &&\n $placeholder &&\n css`\n ${StyledSelectButtonLabel} {\n opacity: 1;\n pointer-events: all;\n }\n `}\n }\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB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AY;IAAZA,YAAY,GAAAe,mBAAA,cAAG,KAAK,GAAAA,mBAAA;EAAA,OAC9BJ,KAAK,IACLX,YAAY,IACZ1C,GAAG,0CACCqB,uBAAuB,CAI1B;AAAA,EAEN"}
1
+ {"version":3,"file":"Select.styles.js","names":["styled","css","Button","StyledContent","Card","StyledCircle","getTypographyIntent","arrowDown","arrowUp","borderRadius","colors","getEllipsis","getFocus","spacing","dataQa","focused","hovered","tableSelectClassName","styledSelectButtonDefaultWidth","StyledSelectMenu","withConfig","displayName","componentId","StyledSelectButtonLabel","div","sm","_ref","$hoverable","StyledSelectSpinner","StyledSelectArrowContainer","StyledSelectArrow","StyledSelectClearIcon","StyledSelectButton","white","gray70","md","gray15","_ref2","$block","concat","gray45","blue50","_ref3","_ref3$$placeholder","$placeholder","_ref4","$disabled","gray94","_ref5","$error","$loading","red50","_ref6","$hasClearIcon","_ref7","$open","_ref8","_ref9","_ref10","_ref10$$placeholder"],"sources":["../../src/Select/Select.styles.tsx"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport { Button } from '../Button'\nimport { StyledContent } from '../Button/Button.styles'\nimport { Card } from '../Card'\nimport { StyledCircle } from '../Spinner/Spinner.styles'\nimport { getTypographyIntent } from '../Typography/Typography.styles'\nimport { arrowDown, arrowUp } from '../_styles/arrows'\nimport { borderRadius } from '../_styles/borderRadius'\nimport { colors } from '../_styles/colors'\nimport { getEllipsis, getFocus } from '../_styles/mixins'\nimport { spacing } from '../_styles/spacing'\n\nexport const dataQa = {\n focused: 'core-select-focused',\n hovered: 'core-select-hovered',\n}\n\nexport const tableSelectClassName = 'select--table'\nconst styledSelectButtonDefaultWidth = 248\n\nexport const StyledSelectMenu = styled(Card)`\n display: flex;\n max-height: 40vh;\n max-width: ${styledSelectButtonDefaultWidth}px;\n min-width: inherit;\n`\n\nexport const StyledSelectButtonLabel = styled.div<{ $hoverable: boolean }>`\n ${getEllipsis()}\n flex-grow: 1;\n margin-right: ${spacing.sm}px;\n outline: none;\n pointer-events: ${({ $hoverable }) => ($hoverable ? 'initial' : 'none')};\n user-select: none;\n`\n\nexport const StyledSelectSpinner = styled.div`\n align-items: center;\n display: flex;\n flex: 0 0 auto;\n justify-content: center;\n line-height: 0;\n`\n\nexport const StyledSelectArrowContainer = styled.div`\n align-items: center;\n display: inline-flex;\n height: 16px;\n justify-content: flex-end;\n margin-left: ${spacing.sm}px;\n width: 8px;\n`\n\nexport const StyledSelectArrow = styled.div`\n position: relative;\n ${arrowDown(4, 'gray45')}\n`\n\nexport const StyledSelectClearIcon = styled(Button)`\n ${StyledContent} {\n pointer-events: none;\n }\n`\n\nexport const StyledSelectButton = styled.div<{\n $block: boolean\n $disabled: boolean\n $error: boolean\n $loading: boolean\n $open: boolean\n $placeholder?: boolean\n $hasClearIcon: boolean\n}>`\n ${getTypographyIntent('body')}\n\n align-items: center;\n background-color: ${colors.white};\n border-color: ${colors.gray70};\n border-radius: ${borderRadius.md}px;\n border-style: solid;\n border-width: 1px;\n color: ${colors.gray15};\n cursor: pointer;\n display: inline-flex;\n height: 36px;\n min-height: 36px;\n outline: none;\n padding: 0 ${spacing.md}px;\n position: relative;\n white-space: nowrap;\n width: ${({ $block }) =>\n $block ? '100%' : `${styledSelectButtonDefaultWidth}px`};\n\n &::placeholder {\n border-color: ${colors.gray45};\n }\n\n &:hover,\n &:active,\n &[data-qa=${dataQa.hovered}] {\n background-color: ${colors.white};\n border-color: ${colors.gray45};\n color: ${colors.gray15};\n }\n\n &.focus,\n &:focus,\n &[data-qa=${dataQa.focused}] {\n ${getFocus()}\n\n ${StyledCircle} {\n stroke: ${colors.blue50};\n }\n }\n\n ${({ $placeholder = false }) =>\n $placeholder &&\n css`\n ${StyledSelectButtonLabel} {\n color: ${colors.gray45};\n }\n `}\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n background-color: ${colors.gray94};\n border-color: ${colors.gray70};\n color: ${colors.gray45};\n cursor: default;\n pointer-events: none;\n\n ${StyledSelectButtonLabel} {\n color: ${colors.gray70};\n }\n\n ${StyledSelectArrow} {\n ${arrowDown(4, 'gray70')}\n }\n `}\n\n ${({ $error, $disabled, $loading }) => {\n if ($error && !$disabled) {\n return css`\n &,\n &:hover {\n border-color: ${colors.red50};\n border-color: var(--core-input-error-border-color, ${colors.red50});\n }\n &:hover:focus {\n ${getFocus()}\n }\n `\n }\n }}\n\n ${({ $hasClearIcon }) => css`\n ${StyledSelectClearIcon} {\n opacity: ${$hasClearIcon ? 1 : 0};\n }\n `}\n\n ${({ $open }) =>\n $open &&\n css`\n ${StyledSelectArrow} {\n ${arrowUp(4, 'gray45')}\n }\n `}\n\n &.${tableSelectClassName} {\n ${({ $open }) =>\n $open &&\n css`\n background-color: ${colors.white};\n\n ${StyledSelectButtonLabel} {\n white-space: nowrap;\n }\n\n ${StyledSelectArrow} {\n opacity: 1;\n pointer-events: all;\n }\n `}\n\n ${({ $open, $hasClearIcon }) =>\n $open &&\n $hasClearIcon &&\n css`\n ${StyledSelectClearIcon} {\n opacity: 1;\n pointer-events: all;\n }\n `}\n \n ${({ $open, $placeholder = false }) =>\n $open &&\n $placeholder &&\n css`\n ${StyledSelectButtonLabel} {\n opacity: 1;\n pointer-events: all;\n }\n `}\n }\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,aAAa,QAAQ,yBAAyB;AACvD,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,YAAY,QAAQ,2BAA2B;AACxD,SAASC,mBAAmB,QAAQ,iCAAiC;AACrE,SAASC,SAAS,EAAEC,OAAO,QAAQ,mBAAmB;AACtD,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,WAAW,EAAEC,QAAQ,QAAQ,mBAAmB;AACzD,SAASC,OAAO,QAAQ,oBAAoB;AAE5C,OAAO,IAAMC,MAAM,GAAG;EACpBC,OAAO,EAAE,qBAAqB;EA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,CAACyC,KAAK,EAG/DvC,QAAQ,CAAC,CAAC;EAGlB;AACF,CAAC,EAEC,UAAAwC,KAAA;EAAA,IAAGC,aAAa,GAAAD,KAAA,CAAbC,aAAa;EAAA,OAAOpD,GAAG,0BACxB8B,qBAAqB,EACVsB,aAAa,GAAG,CAAC,GAAG,CAAC;AAAA,CAEnC,EAEC,UAAAC,KAAA;EAAA,IAAGC,KAAK,GAAAD,KAAA,CAALC,KAAK;EAAA,OACRA,KAAK,IACLtD,GAAG,iBACC6B,iBAAiB,EACftB,OAAO,CAAC,CAAC,EAAE,QAAQ,CAAC,CAEzB;AAAA,GAECS,oBAAoB,EACpB,UAAAuC,KAAA;EAAA,IAAGD,KAAK,GAAAC,KAAA,CAALD,KAAK;EAAA,OACRA,KAAK,IACLtD,GAAG,yFACmBS,MAAM,CAACuB,KAAK,EAE9BV,uBAAuB,EAIvBO,iBAAiB,CAIpB;AAAA,GAED,UAAA2B,KAAA;EAAA,IAAGF,KAAK,GAAAE,KAAA,CAALF,KAAK;IAAEF,aAAa,GAAAI,KAAA,CAAbJ,aAAa;EAAA,OACvBE,KAAK,IACLF,aAAa,IACbpD,GAAG,0CACC8B,qBAAqB,CAIxB;AAAA,GAED,UAAA2B,MAAA;EAAA,IAAGH,KAAK,GAAAG,MAAA,CAALH,KAAK;IAAAI,mBAAA,GAAAD,MAAA,CAAEd,YAAY;IAAZA,YAAY,GAAAe,mBAAA,cAAG,KAAK,GAAAA,mBAAA;EAAA,OAC9BJ,KAAK,IACLX,YAAY,IACZ3C,GAAG,0CACCsB,uBAAuB,CAI1B;AAAA,EAEN"}
@@ -11,6 +11,10 @@ export interface SelectMenuProps extends Omit<DivProps, 'onSelect' | 'onDragEnd'
11
11
  * @since 10.19.0
12
12
  */
13
13
  emptyMessage?: string;
14
+ /**
15
+ * @since 12.15.0
16
+ */
17
+ header?: React.ReactNode;
14
18
  /**
15
19
  * @since 10.19.0
16
20
  */
@@ -119,6 +123,10 @@ export interface SelectProps extends Omit<DivProps, 'onSelect'>, Pick<PortalProp
119
123
  * @since 10.19.0
120
124
  */
121
125
  error?: boolean;
126
+ /**
127
+ * @since 12.15.0
128
+ */
129
+ header?: React.ReactNode;
122
130
  /**
123
131
  * @since 10.19.0
124
132
  */
@@ -150,7 +158,7 @@ export interface SelectProps extends Omit<DivProps, 'onSelect'>, Pick<PortalProp
150
158
  */
151
159
  onClear?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
152
160
  /**
153
- * Optional <Code>function</Code> that automatically executes when
161
+ * Optional `function` that automatically executes when
154
162
  * scrolling reaches the last item.
155
163
  * @since 10.19.0
156
164
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Select.types.js","names":[],"sources":["../../src/Select/Select.types.ts"],"sourcesContent":["import type { ButtonProps } from '../Button/Button.types'\nimport type { DropdownPlacement } from '../Dropdown/Dropdown.types'\nimport type { MenuProps, MenuRef } from '../MenuImperative/MenuImperative.types'\nimport type { OverlayTriggerProps } from '../OverlayTrigger'\nimport type { PortalProps } from '../Portal/Portal.types'\n\nexport type SelectPlacement = DropdownPlacement\n\ntype DivProps = React.ComponentPropsWithoutRef<'div'>\n\nexport interface SelectMenuProps\n extends Omit<DivProps, 'onSelect' | 'onDragEnd'>,\n Pick<PortalProps, 'container'> {\n /**\n * @since 10.19.0\n */\n emptyMessage?: string\n /**\n * @since 10.19.0\n */\n footer?: React.ReactNode\n /**\n * @since 10.19.0\n */\n i18nScope?: string\n /**\n * @since 10.19.0\n */\n onClear?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void\n /**\n * @since 10.19.0\n */\n onScrollBottom?: MenuProps['onScrollBottom']\n /**\n * @since 10.19.0\n */\n onSearch?: (event: React.ChangeEvent<HTMLInputElement>) => void\n /**\n * @since 10.19.0\n */\n onSelect?: MenuProps['onSelect']\n /**\n * @since 10.19.0\n */\n optionsRef?: React.RefObject<HTMLDivElement>\n /**\n * @since 10.19.0\n */\n menuRef: React.RefObject<MenuRef>\n}\n\nexport interface SelectOptionProps extends DivProps {\n /**\n * @since 10.19.0\n */\n index?: number\n /**\n * @since 10.19.0\n */\n value: any\n /**\n * @since 10.19.0\n */\n disabled?: boolean\n\n /**\n * Represents the currently selected value. This option will be styled\n * differently as well as receive UX to scroll into view and start list\n * navigation from this element.\n * @since 10.19.0\n */\n selected?: boolean\n\n /**\n * If nothing is selected, suggest this option. Suggested options mimic the\n * UX of a selected option, scroll into view and start list navigation from\n * this element.\n * @since 10.19.0\n */\n suggested?: boolean\n}\n\ninterface QaTags {\n /**\n * @since 10.19.0\n */\n label: string\n /**\n * @since 10.19.0\n */\n clear: string\n}\n\nexport interface SelectProps\n extends Omit<DivProps, 'onSelect'>,\n Pick<PortalProps, 'container'> {\n /**\n * @since 10.19.0\n */\n afterHide?: OverlayTriggerProps['afterHide']\n /**\n * @since 10.19.0\n */\n afterShow?: OverlayTriggerProps['afterShow']\n /**\n * @since 10.19.0\n */\n beforeHide?: OverlayTriggerProps['beforeHide']\n /**\n * @since 10.19.0\n */\n beforeShow?: OverlayTriggerProps['beforeShow']\n\n /**\n * Make the Select button 100% width\n * @since 10.19.0\n */\n block?: boolean\n\n /**\n * @default false\n * @since 10.19.0\n */\n disabled?: boolean\n\n /**\n * When there are no children this will render\n * @since 10.19.0\n */\n emptyMessage?: string\n\n /**\n * @default false\n * @since 10.19.0\n */\n error?: boolean\n /**\n * @since 10.19.0\n */\n footer?: React.ReactNode\n /**\n * @since 10.19.0\n */\n hideDelay?: number\n /**\n * The i18n key to use for the select's configurable strings.\n * Defaults to using the core library's default strings.\n * @since 10.19.0\n */\n i18nScope?: string\n /**\n * @since 10.19.0\n */\n label?: React.ReactNode\n\n /**\n * If the select is loading\n * @default false\n * @since 10.19.0\n */\n loading?: boolean\n\n /**\n * It is possible for this component to have an empty value\n * (render placeholder). Enables the x icon.\n * @since 10.19.0\n */\n onClear?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void\n\n /**\n * Optional <Code>function</Code> that automatically executes when\n * scrolling reaches the last item.\n * @since 10.19.0\n */\n onScrollBottom?: MenuProps['onScrollBottom']\n\n /**\n * Adds a search bar to the select.\n * @since 10.19.0\n */\n onSearch?: (event: React.ChangeEvent<HTMLInputElement>) => void\n /**\n * @since 10.19.0\n */\n onSelect?: MenuProps['onSelect']\n /**\n * @since 10.19.0\n */\n optionsRef?: React.RefObject<HTMLDivElement>\n\n /**\n * Renders when the label is blank\n * @since 10.19.0\n */\n placeholder?: string\n\n /**\n * The placement of the overlay\n * @default 'bottom-left'\n * @since 10.19.0\n */\n placement?: SelectPlacement\n /**\n * @since 10.19.0\n */\n qa?: Partial<QaTags>\n\n /**\n * Restore focus to the target after the overlay is hidden.\n * 'core-react' will use internal logic to restore focus,\n * 'react-aria-focus-scope' will use 'FocusScope' component from '@react-aria',\n * true will use both.\n * @default 'core-react'\n * @since 12.11.0\n */\n restoreFocusOnHide?: OverlayTriggerProps['restoreFocusOnHide']\n\n /**\n * @since 10.19.0\n */\n showDelay?: number\n\n /**\n * Configurable tabIndex for the select button\n * @default 0\n * @since 10.19.0\n */\n tabIndex?: number\n}\n\nexport interface SelectButtonProps extends DivProps {\n /**\n * @since 10.19.0\n */\n block?: ButtonProps['block']\n /**\n * @since 10.19.0\n */\n clearRef?: React.RefObject<HTMLButtonElement>\n /**\n * @since 10.19.0\n */\n disabled?: ButtonProps['disabled']\n /**\n * @since 10.19.0\n */\n dropdown?: boolean\n /**\n * @since 10.19.0\n */\n error?: boolean\n /**\n * @since 11.9.0\n * If the component should apply a focus appeareance. This is\n * not DOM focus management, and purely visual.\n */\n focus?: boolean | ((obj: { open: boolean }) => boolean)\n /**\n * @since 10.19.0\n */\n icon?: ButtonProps['icon']\n /**\n * @since 10.19.0\n */\n label?: React.ReactNode\n /**\n * @since 10.19.0\n */\n loading?: ButtonProps['loading']\n /**\n * @since 10.19.0\n */\n onClear?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void\n /**\n * @since 10.19.0\n */\n open?: boolean\n /**\n * @since 10.19.0\n */\n placeholder?: string\n /**\n * @since 10.19.0\n */\n qa?: Partial<QaTags>\n /**\n * @since 10.19.0\n */\n size?: ButtonProps['size']\n /**\n * @since 10.19.0\n */\n tabIndex?: number\n /**\n * @since 10.19.0\n */\n type?: ButtonProps['type']\n /**\n * @since 10.19.0\n */\n variant?: ButtonProps['variant']\n /**\n * @since 10.19.0\n */\n isMenuOpened?: boolean\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Select.types.js","names":[],"sources":["../../src/Select/Select.types.ts"],"sourcesContent":["import type { ButtonProps } from '../Button/Button.types'\nimport type { DropdownPlacement } from '../Dropdown/Dropdown.types'\nimport type { MenuProps, MenuRef } from '../MenuImperative/MenuImperative.types'\nimport type { OverlayTriggerProps } from '../OverlayTrigger'\nimport type { PortalProps } from '../Portal/Portal.types'\n\nexport type SelectPlacement = DropdownPlacement\n\ntype DivProps = React.ComponentPropsWithoutRef<'div'>\n\nexport interface SelectMenuProps\n extends Omit<DivProps, 'onSelect' | 'onDragEnd'>,\n Pick<PortalProps, 'container'> {\n /**\n * @since 10.19.0\n */\n emptyMessage?: string\n /**\n * @since 12.15.0\n */\n header?: React.ReactNode\n /**\n * @since 10.19.0\n */\n footer?: React.ReactNode\n /**\n * @since 10.19.0\n */\n i18nScope?: string\n /**\n * @since 10.19.0\n */\n onClear?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void\n /**\n * @since 10.19.0\n */\n onScrollBottom?: MenuProps['onScrollBottom']\n /**\n * @since 10.19.0\n */\n onSearch?: (event: React.ChangeEvent<HTMLInputElement>) => void\n /**\n * @since 10.19.0\n */\n onSelect?: MenuProps['onSelect']\n /**\n * @since 10.19.0\n */\n optionsRef?: React.RefObject<HTMLDivElement>\n /**\n * @since 10.19.0\n */\n menuRef: React.RefObject<MenuRef>\n}\n\nexport interface SelectOptionProps extends DivProps {\n /**\n * @since 10.19.0\n */\n index?: number\n /**\n * @since 10.19.0\n */\n value: any\n /**\n * @since 10.19.0\n */\n disabled?: boolean\n\n /**\n * Represents the currently selected value. This option will be styled\n * differently as well as receive UX to scroll into view and start list\n * navigation from this element.\n * @since 10.19.0\n */\n selected?: boolean\n\n /**\n * If nothing is selected, suggest this option. Suggested options mimic the\n * UX of a selected option, scroll into view and start list navigation from\n * this element.\n * @since 10.19.0\n */\n suggested?: boolean\n}\n\ninterface QaTags {\n /**\n * @since 10.19.0\n */\n label: string\n /**\n * @since 10.19.0\n */\n clear: string\n}\n\nexport interface SelectProps\n extends Omit<DivProps, 'onSelect'>,\n Pick<PortalProps, 'container'> {\n /**\n * @since 10.19.0\n */\n afterHide?: OverlayTriggerProps['afterHide']\n /**\n * @since 10.19.0\n */\n afterShow?: OverlayTriggerProps['afterShow']\n /**\n * @since 10.19.0\n */\n beforeHide?: OverlayTriggerProps['beforeHide']\n /**\n * @since 10.19.0\n */\n beforeShow?: OverlayTriggerProps['beforeShow']\n\n /**\n * Make the Select button 100% width\n * @since 10.19.0\n */\n block?: boolean\n\n /**\n * @default false\n * @since 10.19.0\n */\n disabled?: boolean\n\n /**\n * When there are no children this will render\n * @since 10.19.0\n */\n emptyMessage?: string\n\n /**\n * @default false\n * @since 10.19.0\n */\n error?: boolean\n /**\n * @since 12.15.0\n */\n header?: React.ReactNode\n /**\n * @since 10.19.0\n */\n footer?: React.ReactNode\n /**\n * @since 10.19.0\n */\n hideDelay?: number\n /**\n * The i18n key to use for the select's configurable strings.\n * Defaults to using the core library's default strings.\n * @since 10.19.0\n */\n i18nScope?: string\n /**\n * @since 10.19.0\n */\n label?: React.ReactNode\n\n /**\n * If the select is loading\n * @default false\n * @since 10.19.0\n */\n loading?: boolean\n\n /**\n * It is possible for this component to have an empty value\n * (render placeholder). Enables the x icon.\n * @since 10.19.0\n */\n onClear?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void\n\n /**\n * Optional `function` that automatically executes when\n * scrolling reaches the last item.\n * @since 10.19.0\n */\n onScrollBottom?: MenuProps['onScrollBottom']\n\n /**\n * Adds a search bar to the select.\n * @since 10.19.0\n */\n onSearch?: (event: React.ChangeEvent<HTMLInputElement>) => void\n /**\n * @since 10.19.0\n */\n onSelect?: MenuProps['onSelect']\n /**\n * @since 10.19.0\n */\n optionsRef?: React.RefObject<HTMLDivElement>\n\n /**\n * Renders when the label is blank\n * @since 10.19.0\n */\n placeholder?: string\n\n /**\n * The placement of the overlay\n * @default 'bottom-left'\n * @since 10.19.0\n */\n placement?: SelectPlacement\n /**\n * @since 10.19.0\n */\n qa?: Partial<QaTags>\n\n /**\n * Restore focus to the target after the overlay is hidden.\n * 'core-react' will use internal logic to restore focus,\n * 'react-aria-focus-scope' will use 'FocusScope' component from '@react-aria',\n * true will use both.\n * @default 'core-react'\n * @since 12.11.0\n */\n restoreFocusOnHide?: OverlayTriggerProps['restoreFocusOnHide']\n\n /**\n * @since 10.19.0\n */\n showDelay?: number\n\n /**\n * Configurable tabIndex for the select button\n * @default 0\n * @since 10.19.0\n */\n tabIndex?: number\n}\n\nexport interface SelectButtonProps extends DivProps {\n /**\n * @since 10.19.0\n */\n block?: ButtonProps['block']\n /**\n * @since 10.19.0\n */\n clearRef?: React.RefObject<HTMLButtonElement>\n /**\n * @since 10.19.0\n */\n disabled?: ButtonProps['disabled']\n /**\n * @since 10.19.0\n */\n dropdown?: boolean\n /**\n * @since 10.19.0\n */\n error?: boolean\n /**\n * @since 11.9.0\n * If the component should apply a focus appeareance. This is\n * not DOM focus management, and purely visual.\n */\n focus?: boolean | ((obj: { open: boolean }) => boolean)\n /**\n * @since 10.19.0\n */\n icon?: ButtonProps['icon']\n /**\n * @since 10.19.0\n */\n label?: React.ReactNode\n /**\n * @since 10.19.0\n */\n loading?: ButtonProps['loading']\n /**\n * @since 10.19.0\n */\n onClear?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void\n /**\n * @since 10.19.0\n */\n open?: boolean\n /**\n * @since 10.19.0\n */\n placeholder?: string\n /**\n * @since 10.19.0\n */\n qa?: Partial<QaTags>\n /**\n * @since 10.19.0\n */\n size?: ButtonProps['size']\n /**\n * @since 10.19.0\n */\n tabIndex?: number\n /**\n * @since 10.19.0\n */\n type?: ButtonProps['type']\n /**\n * @since 10.19.0\n */\n variant?: ButtonProps['variant']\n /**\n * @since 10.19.0\n */\n isMenuOpened?: boolean\n}\n"],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { HeadingProps } from './Semantic.types';
2
+ import type { HeadingProps, ListProps } from './Semantic.types';
3
3
  export declare const H1: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
4
4
  export declare const H2: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
5
5
  export declare const H3: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
@@ -12,12 +12,8 @@ export declare const H6: React.ForwardRefExoticComponent<HeadingProps & React.Re
12
12
  */
13
13
  export declare function getHeadingComponent(level: string | number): React.ForwardRefExoticComponent<HeadingProps>;
14
14
  export declare const P: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
15
- export declare const UL: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLOListElement | HTMLUListElement> & {
16
- listStyleType?: string | undefined;
17
- } & React.RefAttributes<HTMLUListElement>>;
18
- export declare const OL: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLOListElement | HTMLUListElement> & {
19
- listStyleType?: string | undefined;
20
- } & React.RefAttributes<HTMLOListElement>>;
15
+ export declare const UL: React.ForwardRefExoticComponent<ListProps & React.RefAttributes<HTMLUListElement>>;
16
+ export declare const OL: React.ForwardRefExoticComponent<ListProps & React.RefAttributes<HTMLOListElement>>;
21
17
  export declare const Label: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLLabelElement> & {
22
18
  htmlFor?: string | undefined;
23
19
  block?: boolean | undefined;
@@ -1,3 +1,7 @@
1
+ var _excluded = ["listStyleType"],
2
+ _excluded2 = ["listStyleType"];
3
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
1
5
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
6
  import React from 'react';
3
7
  import { StyledH1, StyledH2, StyledH3, StyledLabel, StyledOL, StyledP, StyledUL } from './Semantic.styles';
@@ -71,12 +75,20 @@ export var P = /*#__PURE__*/React.forwardRef(function P(props, ref) {
71
75
  }));
72
76
  });
73
77
  export var UL = /*#__PURE__*/React.forwardRef(function UL(props, ref) {
74
- return /*#__PURE__*/React.createElement(StyledUL, _extends({}, props, {
78
+ var listStyleType = props.listStyleType,
79
+ restProps = _objectWithoutProperties(props, _excluded);
80
+ return /*#__PURE__*/React.createElement(StyledUL, _extends({
81
+ $listStyleType: listStyleType
82
+ }, restProps, {
75
83
  ref: ref
76
84
  }));
77
85
  });
78
86
  export var OL = /*#__PURE__*/React.forwardRef(function OL(props, ref) {
79
- return /*#__PURE__*/React.createElement(StyledOL, _extends({}, props, {
87
+ var listStyleType = props.listStyleType,
88
+ restProps = _objectWithoutProperties(props, _excluded2);
89
+ return /*#__PURE__*/React.createElement(StyledOL, _extends({
90
+ $listStyleType: listStyleType
91
+ }, restProps, {
80
92
  ref: ref
81
93
  }));
82
94
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Semantic.js","names":["React","StyledH1","StyledH2","StyledH3","StyledLabel","StyledOL","StyledP","StyledUL","H1","forwardRef","props","ref","createElement","_extends","H2","H3","H4","as","H5","style","fontSize","H6","UnknownHeading","levelToComponent","getHeadingComponent","level","String","P","UL","OL","Label","displayName"],"sources":["../../src/Semantic/Semantic.tsx"],"sourcesContent":["import React from 'react'\nimport type { StyledListProps } from './Semantic.styles'\nimport {\n StyledH1,\n StyledH2,\n StyledH3,\n StyledLabel,\n StyledOL,\n StyledP,\n StyledUL,\n} from './Semantic.styles'\nimport type { HeadingProps } from './Semantic.types'\n\nexport const H1 = React.forwardRef<HTMLHeadingElement, HeadingProps>(\n function H1(props, ref) {\n return <StyledH1 {...props} ref={ref} />\n }\n)\n\nexport const H2 = React.forwardRef<HTMLHeadingElement, HeadingProps>(\n function H2(props, ref) {\n return <StyledH2 {...props} ref={ref} />\n }\n)\n\nexport const H3 = React.forwardRef<HTMLHeadingElement, HeadingProps>(\n function H3(props, ref) {\n return <StyledH3 {...props} ref={ref} />\n }\n)\n\nexport const H4 = React.forwardRef<HTMLHeadingElement, HeadingProps>(\n function H4(props, ref) {\n return <H3 as=\"h4\" {...props} ref={ref} />\n }\n)\n\nexport const H5 = React.forwardRef<HTMLHeadingElement, HeadingProps>(\n function H5(props, ref) {\n return <H3 as=\"h5\" style={{ fontSize: '90%' }} {...props} ref={ref} />\n }\n)\n\nexport const H6 = React.forwardRef<HTMLHeadingElement, HeadingProps>(\n function H6(props, ref) {\n return <H3 as=\"h6\" style={{ fontSize: '85%' }} {...props} ref={ref} />\n }\n)\n\nconst UnknownHeading = React.forwardRef<HTMLHeadingElement, HeadingProps>(\n function UnknownHeading(props, ref) {\n return <strong {...props} ref={ref} />\n }\n)\n\nconst levelToComponent = {\n '1': H1,\n '2': H2,\n '3': H3,\n '4': H4,\n '5': H5,\n '6': H6,\n}\n\n/**\n * @param level 1 - 6\n * @returns H1 - H6 component\n */\nexport function getHeadingComponent(\n level: string | number\n): React.ForwardRefExoticComponent<HeadingProps> {\n // @ts-ignore\n return levelToComponent[String(level)] || UnknownHeading\n}\n\nexport const P = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(function P(props, ref) {\n return <StyledP {...props} ref={ref} />\n})\n\nexport const UL = React.forwardRef<HTMLUListElement, StyledListProps>(\n function UL(props, ref) {\n return <StyledUL {...props} ref={ref} />\n }\n)\n\nexport const OL = React.forwardRef<HTMLOListElement, StyledListProps>(\n function OL(props, ref) {\n return <StyledOL {...props} ref={ref} />\n }\n)\n\nexport const Label = React.forwardRef<\n HTMLLabelElement,\n React.HTMLAttributes<HTMLLabelElement> & { htmlFor?: string; block?: boolean }\n>(function Label(props, ref) {\n return <StyledLabel {...props} ref={ref} />\n})\n\nH1.displayName = 'H1'\n\nH2.displayName = 'H2'\n\nH3.displayName = 'H3'\n\nP.displayName = 'P'\n\nUL.displayName = 'UL'\n\nOL.displayName = 'OL'\n\nLabel.displayName = 'Label'\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SACEC,QAAQ,EACRC,QAAQ,EACRC,QAAQ,EACRC,WAAW,EACXC,QAAQ,EACRC,OAAO,EACPC,QAAQ,QACH,mBAAmB;AAG1B,OAAO,IAAMC,EAAE,gBAAGR,KAAK,CAACS,UAAU,CAChC,SAASD,EAAEA,CAACE,KAAK,EAAEC,GAAG,EAAE;EACtB,oBAAOX,KAAA,CAAAY,aAAA,CAACX,QAAQ,EAAAY,QAAA,KAAKH,KAAK;IAAEC,GAAG,EAAEA;EAAI,EAAE,CAAC;AAC1C,CACF,CAAC;AAED,OAAO,IAAMG,EAAE,gBAAGd,KAAK,CAACS,UAAU,CAChC,SAASK,EAAEA,CAACJ,KAAK,EAAEC,GAAG,EAAE;EACtB,oBAAOX,KAAA,CAAAY,aAAA,CAACV,QAAQ,EAAAW,QAAA,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AU,CAGnC,SAASqB,KAAKA,CAACpB,KAAK,EAAEC,GAAG,EAAE;EAC3B,oBAAOX,KAAA,CAAAY,aAAA,CAACR,WAAW,EAAAS,QAAA,KAAKH,KAAK;IAAEC,GAAG,EAAEA;EAAI,EAAE,CAAC;AAC7C,CAAC,CAAC;AAEFH,EAAE,CAACuB,WAAW,GAAG,IAAI;AAErBjB,EAAE,CAACiB,WAAW,GAAG,IAAI;AAErBhB,EAAE,CAACgB,WAAW,GAAG,IAAI;AAErBJ,CAAC,CAACI,WAAW,GAAG,GAAG;AAEnBH,EAAE,CAACG,WAAW,GAAG,IAAI;AAErBF,EAAE,CAACE,WAAW,GAAG,IAAI;AAErBD,KAAK,CAACC,WAAW,GAAG,OAAO"}
1
+ {"version":3,"file":"Semantic.js","names":["React","StyledH1","StyledH2","StyledH3","StyledLabel","StyledOL","StyledP","StyledUL","H1","forwardRef","props","ref","createElement","_extends","H2","H3","H4","as","H5","style","fontSize","H6","UnknownHeading","levelToComponent","getHeadingComponent","level","String","P","UL","listStyleType","restProps","_objectWithoutProperties","_excluded","$listStyleType","OL","_excluded2","Label","displayName"],"sources":["../../src/Semantic/Semantic.tsx"],"sourcesContent":["import React from 'react'\nimport {\n StyledH1,\n StyledH2,\n StyledH3,\n StyledLabel,\n StyledOL,\n StyledP,\n StyledUL,\n} from './Semantic.styles'\nimport type { HeadingProps, ListProps } from './Semantic.types'\n\nexport const H1 = React.forwardRef<HTMLHeadingElement, HeadingProps>(\n function H1(props, ref) {\n return <StyledH1 {...props} ref={ref} />\n }\n)\n\nexport const H2 = React.forwardRef<HTMLHeadingElement, HeadingProps>(\n function H2(props, ref) {\n return <StyledH2 {...props} ref={ref} />\n }\n)\n\nexport const H3 = React.forwardRef<HTMLHeadingElement, HeadingProps>(\n function H3(props, ref) {\n return <StyledH3 {...props} ref={ref} />\n }\n)\n\nexport const H4 = React.forwardRef<HTMLHeadingElement, HeadingProps>(\n function H4(props, ref) {\n return <H3 as=\"h4\" {...props} ref={ref} />\n }\n)\n\nexport const H5 = React.forwardRef<HTMLHeadingElement, HeadingProps>(\n function H5(props, ref) {\n return <H3 as=\"h5\" style={{ fontSize: '90%' }} {...props} ref={ref} />\n }\n)\n\nexport const H6 = React.forwardRef<HTMLHeadingElement, HeadingProps>(\n function H6(props, ref) {\n return <H3 as=\"h6\" style={{ fontSize: '85%' }} {...props} ref={ref} />\n }\n)\n\nconst UnknownHeading = React.forwardRef<HTMLHeadingElement, HeadingProps>(\n function UnknownHeading(props, ref) {\n return <strong {...props} ref={ref} />\n }\n)\n\nconst levelToComponent = {\n '1': H1,\n '2': H2,\n '3': H3,\n '4': H4,\n '5': H5,\n '6': H6,\n}\n\n/**\n * @param level 1 - 6\n * @returns H1 - H6 component\n */\nexport function getHeadingComponent(\n level: string | number\n): React.ForwardRefExoticComponent<HeadingProps> {\n // @ts-ignore\n return levelToComponent[String(level)] || UnknownHeading\n}\n\nexport const P = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(function P(props, ref) {\n return <StyledP {...props} ref={ref} />\n})\n\nexport const UL = React.forwardRef<HTMLUListElement, ListProps>(function UL(\n props,\n ref\n) {\n const { listStyleType, ...restProps } = props\n return <StyledUL $listStyleType={listStyleType} {...restProps} ref={ref} />\n})\n\nexport const OL = React.forwardRef<HTMLOListElement, ListProps>(function OL(\n props,\n ref\n) {\n const { listStyleType, ...restProps } = props\n return <StyledOL $listStyleType={listStyleType} {...restProps} ref={ref} />\n})\n\nexport const Label = React.forwardRef<\n HTMLLabelElement,\n React.HTMLAttributes<HTMLLabelElement> & { htmlFor?: string; block?: boolean }\n>(function Label(props, ref) {\n return <StyledLabel {...props} ref={ref} />\n})\n\nH1.displayName = 'H1'\n\nH2.displayName = 'H2'\n\nH3.displayName = 'H3'\n\nP.displayName = 'P'\n\nUL.displayName = 'UL'\n\nOL.displayName = 'OL'\n\nLabel.displayName = 'Label'\n"],"mappings":";;;;;AAAA,OAAOA,KAAK,MAAM,OA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W,GAAG,OAAO"}
@@ -1,7 +1,7 @@
1
1
  import type React from 'react';
2
2
  import type { TypographyProps } from '../Typography';
3
3
  export declare type StyledListProps = React.HTMLAttributes<HTMLUListElement | HTMLOListElement> & {
4
- listStyleType?: string;
4
+ $listStyleType?: string;
5
5
  };
6
6
  export declare const StyledH1: import("styled-components").StyledComponent<"h1", any, {}, never>;
7
7
  export declare const StyledH2: import("styled-components").StyledComponent<"h2", any, {}, never>;
@@ -10,10 +10,10 @@ export declare const StyledH3: import("styled-components").StyledComponent<"h3",
10
10
  export declare function getSmallIconBodyTextRules(): import("styled-components").FlattenSimpleInterpolation;
11
11
  export declare const StyledP: import("styled-components").StyledComponent<"p", any, {}, never>;
12
12
  export declare const StyledUL: import("styled-components").StyledComponent<"ul", any, React.HTMLAttributes<HTMLOListElement | HTMLUListElement> & {
13
- listStyleType?: string | undefined;
13
+ $listStyleType?: string | undefined;
14
14
  }, never>;
15
15
  export declare const StyledOL: import("styled-components").StyledComponent<"ul", any, React.HTMLAttributes<HTMLOListElement | HTMLUListElement> & {
16
- listStyleType?: string | undefined;
16
+ $listStyleType?: string | undefined;
17
17
  } & {
18
18
  as: string;
19
19
  }, "as">;
@@ -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_14_0__sc-172j5qh-0"
8
+ componentId: "core-12_16_0__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_14_0__sc-172j5qh-1"
12
+ componentId: "core-12_16_0__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_14_0__sc-172j5qh-2"
16
+ componentId: "core-12_16_0__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,21 +28,21 @@ export function getSmallIconBodyTextRules() {
28
28
  }
29
29
  export var StyledP = /*#__PURE__*/styled.p.withConfig({
30
30
  displayName: "StyledP",
31
- componentId: "core-12_14_0__sc-172j5qh-3"
31
+ componentId: "core-12_16_0__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_14_0__sc-172j5qh-4"
35
+ componentId: "core-12_16_0__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
- return props.listStyleType || 'disc';
37
+ return props.$listStyleType || 'disc';
38
38
  });
39
39
  export var StyledOL = /*#__PURE__*/styled(StyledUL).attrs({
40
40
  as: 'ol'
41
41
  }).withConfig({
42
42
  displayName: "StyledOL",
43
- componentId: "core-12_14_0__sc-172j5qh-5"
43
+ componentId: "core-12_16_0__sc-172j5qh-5"
44
44
  })(["list-style-type:", ";"], function (props) {
45
- return props.listStyleType || 'decimal';
45
+ return props.$listStyleType || 'decimal';
46
46
  });
47
47
  function enforceLabelTypography(props) {
48
48
  return {
@@ -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_14_0__sc-172j5qh-6"
55
+ componentId: "core-12_16_0__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_14_0__sc-172j5qh-7"
73
+ componentId: "core-12_16_0__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_14_0__sc-172j5qh-8"
81
+ componentId: "core-12_16_0__sc-172j5qh-8"
82
82
  })([""]);
83
83
  //# sourceMappingURL=Semantic.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Semantic.styles.js","names":["styled","css","StyledRequiredContainer","getTypographyIntent","semiboldRules","StyledTypography","colors","spacing","StyledH1","h1","withConfig","displayName","componentId","gray15","StyledH2","h2","StyledH3","h3","topMarginRules","lg","getSmallIconBodyTextRules","space","xs","spaceWhenTouch","sm","StyledP","p","StyledUL","ul","props","listStyleType","StyledOL","attrs","as","enforceLabelTypography","intent","StyledLabel","_ref","_ref$block","block","getUnstyledButton","StyledUnstyledButton","button","StyledAnchor","a"],"sources":["../../src/Semantic/Semantic.styles.ts"],"sourcesContent":["import type React from 'react'\nimport styled, { css } from 'styled-components'\nimport { StyledRequiredContainer } from '../Required/Required.styles'\nimport type { TypographyProps } from '../Typography'\nimport {\n getTypographyIntent,\n semiboldRules,\n StyledTypography,\n} from '../Typography/Typography.styles'\nimport { colors } from '../_styles/colors'\nimport { spacing } from '../_styles/spacing'\n\nexport type StyledListProps = React.HTMLAttributes<\n HTMLUListElement | HTMLOListElement\n> & {\n listStyleType?: string\n}\n\nexport const StyledH1 = styled.h1`\n color: ${colors.gray15};\n ${getTypographyIntent('h1')}\n margin: 0;\n`\nexport const StyledH2 = styled.h2`\n color: ${colors.gray15};\n ${getTypographyIntent('h2')}\n margin: 0;\n`\nexport const StyledH3 = styled.h3`\n color: ${colors.gray15};\n ${getTypographyIntent('h3')}\n margin: 0;\n`\n\nconst topMarginRules = () => {\n return css`\n & + &,\n p + &,\n ol + &,\n ul + & {\n margin-top: ${spacing.lg}px;\n }\n `\n}\n\n// Should this be on Typography? body | label\n/** Small icons align with font and line height */\nexport function getSmallIconBodyTextRules() {\n const space = spacing.xs\n const spaceWhenTouch = spacing.sm\n\n return css`\n & > [data-qa^='ci'] {\n height: 16px;\n width: 16px;\n vertical-align: middle;\n margin-left: ${space}px;\n\n &[tabindex='0'] {\n margin-left: ${spaceWhenTouch}px;\n }\n\n &:first-child {\n margin-left: 0;\n margin-right: ${space}px;\n vertical-align: sub;\n\n &[tabindex='0'] {\n margin-right: ${spaceWhenTouch}px;\n }\n }\n }\n `\n}\n\nexport const StyledP = styled.p`\n color: ${colors.gray15};\n ${getTypographyIntent('body')}\n ${topMarginRules}\n ${semiboldRules}\n`\n\nexport const StyledUL = styled.ul<StyledListProps>`\n color: ${colors.gray15};\n margin: 0;\n padding: 0;\n ${getTypographyIntent('body')}\n ${topMarginRules}\n padding-left: ${spacing.lg}px;\n list-style-type: ${(props) => props.listStyleType || 'disc'};\n`\n\nexport const StyledOL = styled(StyledUL).attrs({ as: 'ol' })<StyledListProps>`\n list-style-type: ${(props) => props.listStyleType || 'decimal'};\n`\n\nfunction enforceLabelTypography(props: TypographyProps) {\n return {\n as: props.as || 'label',\n intent: 'label',\n }\n}\n\nexport const StyledLabel = styled(StyledTypography).attrs(\n enforceLabelTypography\n)`\n ${({ block = false }) => block && `display: block;`}\n ${getSmallIconBodyTextRules}\n\n > ${StyledRequiredContainer} {\n margin-left: ${spacing.xs}px;\n vertical-align: top;\n }\n`\n\n/**\n * An unstyled `button`, browser reset\n */\nexport function getUnstyledButton() {\n return css`\n border: none;\n background: none;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n padding: 0;\n text-transform: none;\n -webkit-appearance: button;\n `\n}\n/**\n * An unstyled `button`, browser reset\n */\nexport const StyledUnstyledButton = styled.button`\n ${getUnstyledButton}\n`\n\n/**\n * An a styled component a\n */\nexport const StyledAnchor = styled.a``\n"],"mappings":"AACA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,uBAAuB,QAAQ,6BAA6B;AAErE,SACEC,mBAAmB,EACnBC,aAAa,EACbC,gBAAgB,QACX,iCAAiC;AACxC,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,OAAO,QAAQ,oBAAoB;AAQ5C,OAAO,IAAMC,QAAQ,gBAAGR,MAAM,CAACS,EAAE,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,kCACtBN,MAAM,CAACO,MAAM,EACpBV,mBAAmB,CAAC,IAAI,CAAC,CAE5B;AACD,OAAO,IAAMW,QAAQ,gBAAGd,MAAM,CAACe,EAAE,CAAAL,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,kCACtBN,MAAM,CAACO,MAAM,EACpBV,mBAAmB,CAAC,IAAI,CAAC,CAE5B;AACD,OAAO,IAAMa,QAAQ,gBAAGhB,MAAM,CAACiB,EAAE,CAAAP,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,kCACtBN,MAAM,CAACO,MAAM,EACpBV,mBAAmB,CAAC,IAAI,CAAC,CAE5B;AAED,IAAMe,cAAc,GAAG,SAAjBA,cAAcA,CAAA,EAAS;EAC3B,OAAOjB,GAAG,oDAKQM,OAAO,CAACY,EAAE;AAG9B,CAAC;;AAED;AACA;AACA,OAAO,SAASC,yBAAyBA,CAAA,EAAG;EAC1C,IAAMC,KAAK,GAAGd,OAAO,CAACe,EAAE;EACxB,IAAMC,cAAc,GAAGhB,OAAO,CAACiB,EAAE;EAEj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AAyB,EAEvBlB,uBAAuB,EACVK,OAAO,CAACe,EAAE,CAG5B;;AAED;AACA;AACA;AACA,OAAO,SAASkB,iBAAiBA,CAAA,EAAG;EAClC,OAAOvC,GAAG;AAWZ;AACA;AACA;AACA;AACA,OAAO,IAAMwC,oBAAoB,gBAAGzC,MAAM,CAAC0C,MAAM,CAAAhC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,aAC7C4B,iBAAiB,CACpB;;AAED;AACA;AACA;AACA,OAAO,IAAMG,YAAY,gBAAG3C,MAAM,CAAC4C,CAAC,CAAAlC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,QAAE"}
1
+ {"version":3,"file":"Semantic.styles.js","names":["styled","css","StyledRequiredContainer","getTypographyIntent","semiboldRules","StyledTypography","colors","spacing","StyledH1","h1","withConfig","displayName","componentId","gray15","StyledH2","h2","StyledH3","h3","topMarginRules","lg","getSmallIconBodyTextRules","space","xs","spaceWhenTouch","sm","StyledP","p","StyledUL","ul","props","$listStyleType","StyledOL","attrs","as","enforceLabelTypography","intent","StyledLabel","_ref","_ref$block","block","getUnstyledButton","StyledUnstyledButton","button","StyledAnchor","a"],"sources":["../../src/Semantic/Semantic.styles.ts"],"sourcesContent":["import type React from 'react'\nimport styled, { css } from 'styled-components'\nimport { StyledRequiredContainer } from '../Required/Required.styles'\nimport type { TypographyProps } from '../Typography'\nimport {\n getTypographyIntent,\n semiboldRules,\n StyledTypography,\n} from '../Typography/Typography.styles'\nimport { colors } from '../_styles/colors'\nimport { spacing } from '../_styles/spacing'\n\nexport type StyledListProps = React.HTMLAttributes<\n HTMLUListElement | HTMLOListElement\n> & {\n $listStyleType?: string\n}\n\nexport const StyledH1 = styled.h1`\n color: ${colors.gray15};\n ${getTypographyIntent('h1')}\n margin: 0;\n`\nexport const StyledH2 = styled.h2`\n color: ${colors.gray15};\n ${getTypographyIntent('h2')}\n margin: 0;\n`\nexport const StyledH3 = styled.h3`\n color: ${colors.gray15};\n ${getTypographyIntent('h3')}\n margin: 0;\n`\n\nconst topMarginRules = () => {\n return css`\n & + &,\n p + &,\n ol + &,\n ul + & {\n margin-top: ${spacing.lg}px;\n }\n `\n}\n\n// Should this be on Typography? body | label\n/** Small icons align with font and line height */\nexport function getSmallIconBodyTextRules() {\n const space = spacing.xs\n const spaceWhenTouch = spacing.sm\n\n return css`\n & > [data-qa^='ci'] {\n height: 16px;\n width: 16px;\n vertical-align: middle;\n margin-left: ${space}px;\n\n &[tabindex='0'] {\n margin-left: ${spaceWhenTouch}px;\n }\n\n &:first-child {\n margin-left: 0;\n margin-right: ${space}px;\n vertical-align: sub;\n\n &[tabindex='0'] {\n margin-right: ${spaceWhenTouch}px;\n }\n }\n }\n `\n}\n\nexport const StyledP = styled.p`\n color: ${colors.gray15};\n ${getTypographyIntent('body')}\n ${topMarginRules}\n ${semiboldRules}\n`\n\nexport const StyledUL = styled.ul<StyledListProps>`\n color: ${colors.gray15};\n margin: 0;\n padding: 0;\n ${getTypographyIntent('body')}\n ${topMarginRules}\n padding-left: ${spacing.lg}px;\n list-style-type: ${(props) => props.$listStyleType || 'disc'};\n`\n\nexport const StyledOL = styled(StyledUL).attrs({ as: 'ol' })<StyledListProps>`\n list-style-type: ${(props) => props.$listStyleType || 'decimal'};\n`\n\nfunction enforceLabelTypography(props: TypographyProps) {\n return {\n as: props.as || 'label',\n intent: 'label',\n }\n}\n\nexport const StyledLabel = styled(StyledTypography).attrs(\n enforceLabelTypography\n)`\n ${({ block = false }) => block && `display: block;`}\n ${getSmallIconBodyTextRules}\n\n > ${StyledRequiredContainer} {\n margin-left: ${spacing.xs}px;\n vertical-align: top;\n }\n`\n\n/**\n * An unstyled `button`, browser reset\n */\nexport function getUnstyledButton() {\n return css`\n border: none;\n background: none;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n padding: 0;\n text-transform: none;\n -webkit-appearance: button;\n `\n}\n/**\n * An unstyled `button`, browser reset\n */\nexport const StyledUnstyledButton = styled.button`\n ${getU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AAM,CAAC0C,MAAM,CAAAhC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,aAC7C4B,iBAAiB,CACpB;;AAED;AACA;AACA;AACA,OAAO,IAAMG,YAAY,gBAAG3C,MAAM,CAAC4C,CAAC,CAAAlC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,QAAE"}
@@ -1,3 +1,4 @@
1
+ import type React from 'react';
1
2
  import type { HeadingAttributes } from '../_utils/types';
2
3
  export interface HeadingProps extends HeadingAttributes {
3
4
  /**
@@ -6,3 +7,7 @@ export interface HeadingProps extends HeadingAttributes {
6
7
  */
7
8
  as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
8
9
  }
10
+ export interface ListProps extends React.HTMLAttributes<HTMLUListElement | HTMLOListElement> {
11
+ /** @since 11.25.1 */
12
+ listStyleType?: string;
13
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"Semantic.types.js","names":[],"sources":["../../src/Semantic/Semantic.types.ts"],"sourcesContent":["import type { HeadingAttributes } from '../_utils/types'\n\nexport interface HeadingProps extends HeadingAttributes {\n /**\n * Change the HTML tag.\n * @since 11.12.0\n */\n as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Semantic.types.js","names":[],"sources":["../../src/Semantic/Semantic.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { HeadingAttributes } from '../_utils/types'\n\nexport interface HeadingProps extends HeadingAttributes {\n /**\n * Change the HTML tag.\n * @since 11.12.0\n */\n as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'\n}\n\nexport interface ListProps\n extends React.HTMLAttributes<HTMLUListElement | HTMLOListElement> {\n /** @since 11.25.1 */\n listStyleType?: string\n}\n"],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare const SettingsPageTemplate: React.ForwardRefExoticComponent<import("../PageTemplate/PageTemplate.types").PageTemplateProps & Omit<import("../PageHeaderTemplate/PageHeaderTemplate.types").PageHeaderTemplateProps, "actions"> & {
3
+ headerActions?: React.ReactNode;
4
+ footerActions?: React.ReactNode;
5
+ footerNotation?: React.ReactNode;
6
+ footerRequired?: string | boolean | undefined;
7
+ } & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,34 @@
1
+ var _excluded = ["children", "header", "footer", "pane", "innerPane", "headerActions", "footerActions", "footerNotation", "footerRequired"];
2
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
+ import React from 'react';
6
+ import { PageFooterTemplate } from '../PageFooterTemplate/PageFooterTemplate';
7
+ import { PageHeaderTemplate } from '../PageHeaderTemplate/PageHeaderTemplate';
8
+ import { PageTemplate } from '../PageTemplate/PageTemplate';
9
+ export var SettingsPageTemplate = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
10
+ var children = _ref.children,
11
+ header = _ref.header,
12
+ footer = _ref.footer,
13
+ pane = _ref.pane,
14
+ innerPane = _ref.innerPane,
15
+ headerActions = _ref.headerActions,
16
+ footerActions = _ref.footerActions,
17
+ footerNotation = _ref.footerNotation,
18
+ footerRequired = _ref.footerRequired,
19
+ headerProps = _objectWithoutProperties(_ref, _excluded);
20
+ return /*#__PURE__*/React.createElement(PageTemplate, {
21
+ header: header !== null && header !== void 0 ? header : /*#__PURE__*/React.createElement(PageHeaderTemplate, _extends({
22
+ actions: headerActions
23
+ }, headerProps)),
24
+ footer: footer !== null && footer !== void 0 ? footer : /*#__PURE__*/React.createElement(PageFooterTemplate, {
25
+ actions: footerActions,
26
+ notation: footerNotation,
27
+ required: footerRequired
28
+ }),
29
+ pane: pane,
30
+ innerPane: innerPane,
31
+ ref: ref
32
+ }, children);
33
+ });
34
+ //# sourceMappingURL=SettingsPageTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SettingsPageTemplate.js","names":["React","PageFooterTemplate","PageHeaderTemplate","PageTemplate","SettingsPageTemplate","forwardRef","_ref","ref","children","header","footer","pane","innerPane","headerActions","footerActions","footerNotation","footerRequired","headerProps","_objectWithoutProperties","_excluded","createElement","_extends","actions","notation","required"],"sources":["../../src/SettingsPageTemplate/SettingsPageTemplate.tsx"],"sourcesContent":["import React from 'react'\nimport { PageFooterTemplate } from '../PageFooterTemplate/PageFooterTemplate'\nimport { PageHeaderTemplate } from '../PageHeaderTemplate/PageHeaderTemplate'\nimport { PageTemplate } from '../PageTemplate/PageTemplate'\nimport type { SettingsPageTemplateProps } from './SettingsPageTemplate.types'\n\nexport const SettingsPageTemplate = React.forwardRef<\n HTMLDivElement,\n SettingsPageTemplateProps\n>(\n (\n {\n children,\n header,\n footer,\n pane,\n innerPane,\n headerActions,\n footerActions,\n footerNotation,\n footerRequired,\n ...headerProps\n }: SettingsPageTemplateProps,\n ref\n ) => (\n <PageTemplate\n header={\n header ?? (\n <PageHeaderTemplate actions={headerActions} {...headerProps} />\n )\n }\n footer={\n footer ?? (\n <PageFooterTemplate\n actions={footerActions}\n notation={footerNotation}\n required={footerRequired}\n />\n )\n }\n pane={pane}\n innerPane={innerPane}\n ref={ref}\n >\n {children}\n </PageTemplate>\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emplate.types';
2
+ import type { PageHeaderTemplateProps } from '../PageHeaderTemplate/PageHeaderTemplate.types';
3
+ import type { PageTemplateProps } from '../PageTemplate/PageTemplate.types';
4
+ export declare type SettingsPageTemplateProps = PageTemplateProps & Omit<PageHeaderTemplateProps, 'actions'> & {
5
+ headerActions?: PageHeaderTemplateProps['actions'];
6
+ footerActions?: PageFooterTemplateProps['actions'];
7
+ footerNotation?: PageFooterTemplateProps['notation'];
8
+ footerRequired?: PageFooterTemplateProps['required'];
9
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SettingsPageTemplate.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SettingsPageTemplate.types.js","names":[],"sources":["../../src/SettingsPageTemplate/SettingsPageTemplate.types.ts"],"sourcesContent":["import type { PageFooterTemplateProps } from '../PageFooterTemplate/PageFooterTemplate.types'\nimport type { PageHeaderTemplateProps } from '../PageHeaderTemplate/PageHeaderTemplate.types'\nimport type { PageTemplateProps } from '../PageTemplate/PageTemplate.types'\n\nexport type SettingsPageTemplateProps = PageTemplateProps &\n Omit<PageHeaderTemplateProps, 'actions'> & {\n headerActions?: PageHeaderTemplateProps['actions']\n footerActions?: PageFooterTemplateProps['actions']\n footerNotation?: PageFooterTemplateProps['notation']\n footerRequired?: PageFooterTemplateProps['required']\n }\n"],"mappings":""}
@@ -103,7 +103,7 @@ export var Slider = /*#__PURE__*/React.forwardRef(function Slider(_ref5, ref) {
103
103
  return /*#__PURE__*/React.createElement(StyledContainer, {
104
104
  className: className,
105
105
  style: style,
106
- showLabel: showLabel
106
+ $showLabel: showLabel
107
107
  }, /*#__PURE__*/React.createElement(StyledSlider, _extends({}, props, {
108
108
  disabled: disabled,
109
109
  onChange: onChange,
@@ -124,7 +124,7 @@ export var Slider = /*#__PURE__*/React.forwardRef(function Slider(_ref5, ref) {
124
124
  onMouseUp: function onMouseUp() {
125
125
  return setIsDragging(false);
126
126
  },
127
- isDragging: isDragging
127
+ $isDragging: isDragging
128
128
  })), step && /*#__PURE__*/React.createElement(StyledIncrementContainer, null, Array(Math.floor(increments) + 1).fill(null).map(function (_, index) {
129
129
  return /*#__PURE__*/React.createElement(StyledIncrementOverlay, {
130
130
  key: "core-slider-increment-overlay-".concat(index, "-").concat(min, "-").concat(max, "-").concat(step)
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.js","names":["React","StyledContainer","StyledIncrementContainer","StyledIncrementOverlay","StyledLabel","StyledSlider","getIncrements","_ref","min","max","step","getPercentage","_ref2","value","getLabel","_ref3","index","getDefaultValue","_ref4","defaultVal","Math","round","Slider","forwardRef","_ref5","ref","className","disabled","onChange","_ref5$max","_ref5$min","showLabel","style","value_","props","_objectWithoutProperties","_excluded","_React$useState","useState","_React$useState2","_slicedToArray","isDragging","setIsDragging","increments","console","warn","createElement","_extends","$percent","type","onMouseDown","onMouseUp","Array","floor","fill","map","_","key","concat","intent"],"sources":["../../src/Slider/Slider.tsx"],"sourcesContent":["import React from 'react'\nimport {\n StyledContainer,\n StyledIncrementContainer,\n StyledIncrementOverlay,\n StyledLabel,\n StyledSlider,\n} from './Slider.styles'\nimport type { SliderProps } from './Slider.types'\n\nexport const getIncrements = ({\n min,\n max,\n step,\n}: {\n min: number\n max: number\n step?: number\n}): number => {\n if (!step) {\n return 0\n }\n return (max - min) / step\n}\n\nexport const getPercentage = ({\n max,\n min,\n value,\n}: {\n max: number\n min: number\n value: number\n}): number => {\n return ((value - min) / (max - min)) * 100\n}\n\nexport const getLabel = ({\n max,\n min,\n step,\n index,\n}: {\n max: number\n min: number\n step: number\n index: number\n}): number => {\n if (min === 0) {\n return index * step\n } else if (min >= 0) {\n return index * step + min\n } else if (min <= 0) {\n return (index - getIncrements({ max, min, step })) * step + max\n } else {\n return 0\n }\n}\n\nexport const getDefaultValue = ({\n min,\n max,\n step,\n}: {\n min: number\n max: number\n step?: number\n}): number => {\n // See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/range#value\n const defaultVal = max < min ? min : min + (max - min) / 2\n return step ? Math.round(defaultVal / step) * step : defaultVal\n}\n\n/**\n\n A slider is a bar with selectable/grabbable handle. It allows users to click\n and drag horizontally to a desired value. It is used when users need to select\n a value from a predefined range of values. Sliders should always have a\n corresponding value or increment displayed within proximity of the component.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-slider--demo)\n\n @see [Design Guidelines](https://design.procore.com/slider)\n\n */\nexport const Slider = React.forwardRef<HTMLInputElement, SliderProps>(\n function Slider(\n {\n className,\n disabled,\n onChange,\n max = 100,\n min = 0,\n showLabel,\n step,\n style,\n value: value_,\n ...props\n },\n ref\n ) {\n const [isDragging, setIsDragging] = React.useState<boolean>(false)\n\n const value = value_ ?? getDefaultValue({ max, min, step })\n const increments = getIncrements({ max, min, step })\n\n // check if the \"step\" value does not cleanly\n // divide into max - min\n if (increments % 1 !== 0) {\n console.warn(\n '@procore/core-react: SLIDER COMPONENT WARNING: Your step value does not cleanly divide into max - min. This will cause your Slider to display incorrectly.'\n )\n }\n\n return (\n <StyledContainer\n className={className}\n style={style}\n showLabel={showLabel}\n >\n <StyledSlider\n {...props}\n disabled={disabled}\n onChange={onChange}\n max={max}\n min={min}\n $percent={getPercentage({ max, min, value })}\n ref={ref}\n step={step}\n type=\"range\"\n value={value}\n onMouseDown={() => setIsDragging(true)}\n onMouseUp={() => setIsDragging(false)}\n isDragging={isDragging}\n />\n {step && (\n <StyledIncrementContainer>\n {Array(Math.floor(increments) + 1)\n .fill(null)\n .map((_, index) => {\n return (\n <StyledIncrementOverlay\n key={`core-slider-increment-overlay-${index}-${min}-${max}-${step}`}\n >\n {showLabel && (\n <StyledLabel intent=\"small\">\n {getLabel({\n min,\n max,\n step,\n index,\n })}\n </StyledLabel>\n )}\n </StyledIncrementOverlay>\n )\n })}\n </StyledIncrementContainer>\n )}\n </StyledContainer>\n )\n }\n)\n"],"mappings":";;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,eAAe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AC;IACtCD,UAAU,EAAEA;EAAW,EACxB,CAAC,EACD/B,IAAI,iBACHV,KAAA,CAAA8C,aAAA,CAAC5C,wBAAwB,QACtBkD,KAAK,CAAChC,IAAI,CAACiC,KAAK,CAACV,UAAU,CAAC,GAAG,CAAC,CAAC,CAC/BW,IAAI,CAAC,IAAI,CAAC,CACVC,GAAG,CAAC,UAACC,CAAC,EAAExC,KAAK,EAAK;IACjB,oBACEhB,KAAA,CAAA8C,aAAA,CAAC3C,sBAAsB;MACrBsD,GAAG,mCAAAC,MAAA,CAAmC1C,KAAK,OAAA0C,MAAA,CAAIlD,GAAG,OAAAkD,MAAA,CAAIjD,GAAG,OAAAiD,MAAA,CAAIhD,IAAI;IAAG,GAEnEqB,SAAS,iBACR/B,KAAA,CAAA8C,aAAA,CAAC1C,WAAW;MAACuD,MAAM,EAAC;IAAO,GACxB7C,QAAQ,CAAC;MACRN,GAAG,EAAHA,GAAG;MACHC,GAAG,EAAHA,GAAG;MACHC,IAAI,EAAJA,IAAI;MACJM,KAAK,EAALA;IACF,CAAC,CACU,CAEO,CAAC;EAE7B,CAAC,CACqB,CAEb,CAAC;AAEtB,CACF,CAAC"}
1
+ {"version":3,"file":"Slider.js","names":["React","StyledContainer","StyledIncrementContainer","StyledIncrementOverlay","StyledLabel","StyledSlider","getIncrements","_ref","min","max","step","getPercentage","_ref2","value","getLabel","_ref3","index","getDefaultValue","_ref4","defaultVal","Math","round","Slider","forwardRef","_ref5","ref","className","disabled","onChange","_ref5$max","_ref5$min","showLabel","style","value_","props","_objectWithoutProperties","_excluded","_React$useState","useState","_React$useState2","_slicedToArray","isDragging","setIsDragging","increments","console","warn","createElement","$showLabel","_extends","$percent","type","onMouseDown","onMouseUp","$isDragging","Array","floor","fill","map","_","key","concat","intent"],"sources":["../../src/Slider/Slider.tsx"],"sourcesContent":["import React from 'react'\nimport {\n StyledContainer,\n StyledIncrementContainer,\n StyledIncrementOverlay,\n StyledLabel,\n StyledSlider,\n} from './Slider.styles'\nimport type { SliderProps } from './Slider.types'\n\nexport const getIncrements = ({\n min,\n max,\n step,\n}: {\n min: number\n max: number\n step?: number\n}): number => {\n if (!step) {\n return 0\n }\n return (max - min) / step\n}\n\nexport const getPercentage = ({\n max,\n min,\n value,\n}: {\n max: number\n min: number\n value: number\n}): number => {\n return ((value - min) / (max - min)) * 100\n}\n\nexport const getLabel = ({\n max,\n min,\n step,\n index,\n}: {\n max: number\n min: number\n step: number\n index: number\n}): number => {\n if (min === 0) {\n return index * step\n } else if (min >= 0) {\n return index * step + min\n } else if (min <= 0) {\n return (index - getIncrements({ max, min, step })) * step + max\n } else {\n return 0\n }\n}\n\nexport const getDefaultValue = ({\n min,\n max,\n step,\n}: {\n min: number\n max: number\n step?: number\n}): number => {\n // See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/range#value\n const defaultVal = max < min ? min : min + (max - min) / 2\n return step ? Math.round(defaultVal / step) * step : defaultVal\n}\n\n/**\n\n A slider is a bar with selectable/grabbable handle. It allows users to click\n and drag horizontally to a desired value. It is used when users need to select\n a value from a predefined range of values. Sliders should always have a\n corresponding value or increment displayed within proximity of the component.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-slider--demo)\n\n @see [Design Guidelines](https://design.procore.com/slider)\n\n */\nexport const Slider = React.forwardRef<HTMLInputElement, SliderProps>(\n function Slider(\n {\n className,\n disabled,\n onChange,\n max = 100,\n min = 0,\n showLabel,\n step,\n style,\n value: value_,\n ...props\n },\n ref\n ) {\n const [isDragging, setIsDragging] = React.useState<boolean>(false)\n\n const value = value_ ?? getDefaultValue({ max, min, step })\n const increments = getIncrements({ max, min, step })\n\n // check if the \"step\" value does not cleanly\n // divide into max - min\n if (increments % 1 !== 0) {\n console.warn(\n '@procore/core-react: SLIDER COMPONENT WARNING: Your step value does not cleanly divide into max - min. This will cause your Slider to display incorrectly.'\n )\n }\n\n return (\n <StyledContainer\n className={className}\n style={style}\n $showLabel={showLabel}\n >\n <StyledSlider\n {...props}\n disabled={disabled}\n onChange={onChange}\n max={max}\n min={min}\n $percent={getPercentage({ max, min, value })}\n ref={ref}\n step={step}\n type=\"range\"\n value={value}\n onMouseDown={() => setIsDragging(true)}\n onMouseUp={() => setIsDragging(false)}\n $isDragging={isDragging}\n />\n {step && (\n <StyledIncrementContainer>\n {Array(Math.floor(increments) + 1)\n .fill(null)\n .map((_, index) => {\n return (\n <StyledIncrementOverlay\n key={`core-slider-increment-overlay-${index}-${min}-${max}-${step}`}\n >\n {showLabel && (\n <StyledLabel intent=\"small\">\n {getLabel({\n min,\n max,\n step,\n index,\n })}\n </StyledLabel>\n )}\n </StyledIncrementOverlay>\n )\n })}\n </StyledIncrementContainer>\n )}\n </StyledContainer>\n )\n }\n)\n"],"mappings":";;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,eAAe,EACfC,wBAAwB,EACxBC,sBAAsB,EACtBC,WAAW,EACXC,YAAY,QACP,iBAAiB;AAGxB,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAaA,CAAAC,IAAA,EAQZ;EAAA,IAPZC,GAAG,GAAAD,IAAA,CAAHC,GAAG;IACHC,GAAG,GAAAF,IAAA,CAAHE,GAAG;IACHC,IAAI,GAAAH,IAAA,CAAJG,IAAI;EAMJ,IAAI,CAACA,IAAI,EAAE;IACT,OAAO,CAAC;EACV;EACA,OAAO,CAACD,GAAG,GAAGD,GAAG,IAAIE,IAAI;AAC3B,CAAC;AAED,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAaA,CAAAC,KAAA,EAQZ;EAAA,IAPZH,GAAG,GAAAG,KAAA,CAAHH,GAAG;IACHD,GAAG,GAAAI,KAAA,CAAHJ,GAAG;IACHK,KAAK,GAAAD,KAAA,CAALC,KAAK;EAML,OAAQ,CAACA,KAAK,GAAGL,GAAG,KAAKC,GAAG,GAAGD,GAAG,CAAC,GAAI,GAAG;AAC5C,CAAC;AAED,OAAO,IAAMM,QAAQ,GAAG,S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C,CACqB,CAEb,CAAC;AAEtB,CACF,CAAC"}
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  export declare const StyledContainer: import("styled-components").StyledComponent<"div", any, {
3
- showLabel?: boolean | undefined;
3
+ $showLabel?: boolean | undefined;
4
4
  }, never>;
5
5
  export declare const StyledSlider: import("styled-components").StyledComponent<"input", any, {
6
6
  $percent: number;
7
7
  ref: any;
8
- isDragging: boolean;
8
+ $isDragging: boolean;
9
9
  }, never>;
10
10
  export declare const StyledIncrementOverlay: import("styled-components").StyledComponent<"div", any, {}, never>;
11
11
  export declare const StyledIncrementContainer: import("styled-components").StyledComponent<"div", any, {}, never>;