@procore/core-react 12.8.0 → 12.9.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 (255) 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.js +8 -1
  9. package/dist/Button/Button.js.map +1 -1
  10. package/dist/Button/Button.styles.js +15 -6
  11. package/dist/Button/Button.styles.js.map +1 -1
  12. package/dist/Button/Button.types.d.ts +1 -1
  13. package/dist/Button/Button.types.js.map +1 -1
  14. package/dist/Calendar/Calendar.styles.js +8 -8
  15. package/dist/Card/Card.styles.js +1 -1
  16. package/dist/Checkbox/Checkbox.styles.js +6 -6
  17. package/dist/Checkbox/CheckboxTooltip.js +1 -1
  18. package/dist/ContactItem/ContactItem.styles.js +5 -5
  19. package/dist/Content/Content.styles.js +2 -2
  20. package/dist/DateInput/DateInput.styles.js +6 -6
  21. package/dist/DetailPage/DetailPage.styles.js +8 -8
  22. package/dist/DetailPage/DetailPage.styles.js.map +1 -1
  23. package/dist/Dropdown/Dropdown.styles.js +3 -3
  24. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  25. package/dist/Dropzone/Dropzone.js +1 -1
  26. package/dist/Dropzone/Dropzone.styles.js +9 -9
  27. package/dist/EmptyState/EmptyState.styles.js +6 -6
  28. package/dist/Field/Field.styles.js +3 -3
  29. package/dist/FileList/FileList.styles.js +4 -4
  30. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  31. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  32. package/dist/FileSelect/FileSelect.styles.js +2 -2
  33. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  34. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  35. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  36. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  37. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  38. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  39. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  40. package/dist/FileToken/FileToken.styles.js +4 -4
  41. package/dist/FilterToken/FilterToken.styles.js +2 -2
  42. package/dist/FlexList/FlexList.styles.js +1 -1
  43. package/dist/Form/Form.styles.js +14 -14
  44. package/dist/Form/StyledFormikForm.styles.js +2 -2
  45. package/dist/Grid/Grid.styles.js +2 -2
  46. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  47. package/dist/Input/Input.styles.js +1 -1
  48. package/dist/Link/Link.styles.js +1 -1
  49. package/dist/ListPage/ListPage.d.ts +7 -0
  50. package/dist/ListPage/ListPage.js +8 -0
  51. package/dist/ListPage/ListPage.js.map +1 -1
  52. package/dist/ListPage/ListPage.styles.js +8 -8
  53. package/dist/Loader/Loader.styles.js +2 -2
  54. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  55. package/dist/Modal/Modal.styles.js +13 -13
  56. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  57. package/dist/NextMenu/NextMenu.styles.js +3 -3
  58. package/dist/Notation/Notation.js +1 -1
  59. package/dist/NumberInput/NumberInput.styles.js +7 -7
  60. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  61. package/dist/PageLayout/PageLayout.styles.d.ts +3 -1
  62. package/dist/PageLayout/PageLayout.styles.js +29 -23
  63. package/dist/PageLayout/PageLayout.styles.js.map +1 -1
  64. package/dist/Pagination/Pagination.styles.js +5 -5
  65. package/dist/Panel/Panel.styles.js +11 -11
  66. package/dist/Pill/Pill.styles.js +2 -2
  67. package/dist/PillSelect/PillSelect.styles.js +4 -4
  68. package/dist/Popover/Popover.styles.js +2 -2
  69. package/dist/Portal/Portal.styles.js +1 -1
  70. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  71. package/dist/RadioButton/RadioButton.styles.js +3 -3
  72. package/dist/Required/Required.styles.js +3 -3
  73. package/dist/Search/Search.styles.js +5 -5
  74. package/dist/Section/Section.js +4 -3
  75. package/dist/Section/Section.js.map +1 -1
  76. package/dist/Section/Section.styles.d.ts +1 -0
  77. package/dist/Section/Section.styles.js +10 -6
  78. package/dist/Section/Section.styles.js.map +1 -1
  79. package/dist/Section/Section.types.d.ts +4 -0
  80. package/dist/Section/Section.types.js.map +1 -1
  81. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  82. package/dist/Select/Select.styles.js +7 -7
  83. package/dist/Semantic/Semantic.styles.js +9 -9
  84. package/dist/Slider/Slider.styles.js +5 -5
  85. package/dist/Spinner/Spinner.styles.js +7 -7
  86. package/dist/SplitViewCard/SplitViewCard.context.d.ts +3 -4
  87. package/dist/SplitViewCard/SplitViewCard.context.js +27 -9
  88. package/dist/SplitViewCard/SplitViewCard.context.js.map +1 -1
  89. package/dist/SplitViewCard/SplitViewCard.d.ts +23 -22
  90. package/dist/SplitViewCard/SplitViewCard.js +106 -39
  91. package/dist/SplitViewCard/SplitViewCard.js.map +1 -1
  92. package/dist/SplitViewCard/SplitViewCard.styles.d.ts +9 -3
  93. package/dist/SplitViewCard/SplitViewCard.styles.js +30 -18
  94. package/dist/SplitViewCard/SplitViewCard.styles.js.map +1 -1
  95. package/dist/SplitViewCard/SplitViewCard.types.d.ts +29 -6
  96. package/dist/SplitViewCard/SplitViewCard.types.js.map +1 -1
  97. package/dist/SplitViewCard/index.d.ts +0 -2
  98. package/dist/SplitViewCard/index.js +0 -2
  99. package/dist/SplitViewCard/index.js.map +1 -1
  100. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  101. package/dist/SuperSelect/SuperSelect.styles.js +37 -37
  102. package/dist/Switch/Switch.styles.js +4 -4
  103. package/dist/Table/Table.styles.js +28 -28
  104. package/dist/TableShelf/TableShelf.styles.js +5 -5
  105. package/dist/Tabs/Tabs.js +3 -1
  106. package/dist/Tabs/Tabs.js.map +1 -1
  107. package/dist/Tabs/Tabs.styles.js +29 -24
  108. package/dist/Tabs/Tabs.styles.js.map +1 -1
  109. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  110. package/dist/TextArea/TextArea.styles.js +1 -1
  111. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  112. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  113. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  114. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  115. package/dist/Tile/Tile.styles.js +8 -8
  116. package/dist/Title/Title.styles.js +7 -7
  117. package/dist/Toast/Toast.styles.js +3 -3
  118. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  119. package/dist/Token/Token.styles.js +3 -3
  120. package/dist/ToolHeader/ToolHeader.d.ts +7 -0
  121. package/dist/ToolHeader/ToolHeader.js +8 -0
  122. package/dist/ToolHeader/ToolHeader.js.map +1 -1
  123. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  124. package/dist/ToolLandingPage/ToolLandingPage.d.ts +25 -0
  125. package/dist/ToolLandingPage/ToolLandingPage.js +78 -0
  126. package/dist/ToolLandingPage/ToolLandingPage.js.map +1 -0
  127. package/dist/ToolLandingPage/ToolLandingPage.styles.d.ts +4 -0
  128. package/dist/ToolLandingPage/ToolLandingPage.styles.js +16 -0
  129. package/dist/ToolLandingPage/ToolLandingPage.styles.js.map +1 -0
  130. package/dist/ToolLandingPage/ToolLandingPage.types.d.ts +11 -0
  131. package/dist/ToolLandingPage/ToolLandingPage.types.js +2 -0
  132. package/dist/ToolLandingPage/ToolLandingPage.types.js.map +1 -0
  133. package/dist/ToolLandingPage/index.d.ts +2 -0
  134. package/dist/ToolLandingPage/index.js +2 -0
  135. package/dist/ToolLandingPage/index.js.map +1 -0
  136. package/dist/Tooltip/Tooltip.styles.js +2 -2
  137. package/dist/Tree/Tree.styles.js +9 -9
  138. package/dist/Typeahead/Typeahead.styles.js +3 -3
  139. package/dist/Typography/Typography.styles.js +1 -1
  140. package/dist/Typography/Typography.table.story.js +2 -2
  141. package/dist/_hooks/I18n.d.ts +430 -0
  142. package/dist/_hooks/I18n.js +2 -0
  143. package/dist/_hooks/I18n.js.map +1 -1
  144. package/dist/_hooks/getI18nProviderLocale.js +1 -1
  145. package/dist/_hooks/getI18nProviderLocale.js.map +1 -1
  146. package/dist/_locales/de-DE.json +7 -2
  147. package/dist/_locales/en-AU.json +5 -0
  148. package/dist/_locales/en-CA.json +5 -0
  149. package/dist/_locales/en-GB.json +5 -0
  150. package/dist/_locales/es-ES.json +5 -0
  151. package/dist/_locales/es.json +10 -5
  152. package/dist/_locales/fr-CA.json +9 -4
  153. package/dist/_locales/fr-FR.json +12 -7
  154. package/dist/_locales/is-IS.json +5 -0
  155. package/dist/_locales/ja-JP.json +45 -40
  156. package/dist/_locales/pseudo.json +365 -0
  157. package/dist/_locales/pt-BR.json +7 -2
  158. package/dist/_locales/th-TH.json +5 -0
  159. package/dist/_locales/zh-SG.json +5 -0
  160. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  161. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +23 -23
  162. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  163. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  164. package/dist/_typedoc/Box/Box.types.json +68 -68
  165. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  166. package/dist/_typedoc/Button/Button.types.json +14 -14
  167. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  168. package/dist/_typedoc/Card/Card.types.json +6 -6
  169. package/dist/_typedoc/Checkbox/Checkbox.types.json +9 -9
  170. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  171. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  172. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  173. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  174. package/dist/_typedoc/Dropdown/Dropdown.types.json +39 -39
  175. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +30 -30
  176. package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
  177. package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
  178. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  179. package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
  180. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  181. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  182. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  183. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  184. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  185. package/dist/_typedoc/Form/Form.types.json +726 -726
  186. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  187. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  188. package/dist/_typedoc/Input/Input.types.json +2 -2
  189. package/dist/_typedoc/Link/Link.types.json +4 -4
  190. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  191. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  192. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  193. package/dist/_typedoc/Modal/Modal.types.json +46 -46
  194. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  195. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  196. package/dist/_typedoc/NumberInput/NumberInput.types.json +37 -37
  197. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
  198. package/dist/_typedoc/PageLayout/PageLayout.types.json +28 -28
  199. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  200. package/dist/_typedoc/Panel/Panel.types.json +38 -28
  201. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  202. package/dist/_typedoc/PillSelect/PillSelect.types.json +47 -47
  203. package/dist/_typedoc/Popover/Popover.types.json +14 -14
  204. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
  205. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  206. package/dist/_typedoc/Required/Required.types.json +5 -5
  207. package/dist/_typedoc/Search/Search.types.json +18 -18
  208. package/dist/_typedoc/Section/Section.types.json +24 -14
  209. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
  210. package/dist/_typedoc/Select/Select.types.json +58 -58
  211. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  212. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  213. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  214. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +134 -0
  215. package/dist/_typedoc/Switch/Switch.types.json +3 -3
  216. package/dist/_typedoc/Table/Table.types.json +99 -99
  217. package/dist/_typedoc/Tabs/Tabs.types.json +19 -19
  218. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
  219. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  220. package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
  221. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  222. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  223. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +44 -44
  224. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
  225. package/dist/_typedoc/Tile/Tile.types.json +30 -30
  226. package/dist/_typedoc/Title/Title.types.json +1 -1
  227. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  228. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +3 -3
  229. package/dist/_typedoc/Token/Token.types.json +4 -4
  230. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  231. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +84 -0
  232. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  233. package/dist/_typedoc/Tree/Tree.types.json +86 -86
  234. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  235. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  236. package/dist/_typedoc/_utils/types.json +3 -3
  237. package/dist/_utils/propsTypedoc.d.ts +2 -0
  238. package/dist/_utils/propsTypedoc.js +2 -0
  239. package/dist/_utils/propsTypedoc.js.map +1 -1
  240. package/dist/index.d.ts +2 -0
  241. package/dist/index.js +2 -0
  242. package/dist/index.js.map +1 -1
  243. package/package.json +3 -1
  244. package/dist/NextListPage/NextListPage.d.ts +0 -24
  245. package/dist/NextListPage/NextListPage.js +0 -44
  246. package/dist/NextListPage/NextListPage.js.map +0 -1
  247. package/dist/NextListPage/NextListPage.types.d.ts +0 -3
  248. package/dist/NextListPage/NextListPage.types.js +0 -2
  249. package/dist/NextListPage/NextListPage.types.js.map +0 -1
  250. package/dist/NextListPage/index.d.ts +0 -2
  251. package/dist/NextListPage/index.js +0 -2
  252. package/dist/NextListPage/index.js.map +0 -1
  253. package/dist/SplitViewCard/useSplitViewCard.d.ts +0 -5
  254. package/dist/SplitViewCard/useSplitViewCard.js +0 -14
  255. package/dist/SplitViewCard/useSplitViewCard.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Section.styles.js","names":["styled","css","StyledFormRow","Title","colors","spacing","StyledSectionInner","div","withConfig","displayName","componentId","StyledSectionCollapseHeading","sm","sectionClassnames","divide","levelAnonymous","level","num","concat","StyledSection","lg","gray85","xs","StyledSectionContentRegion","_ref","$closed","_ref2","$noHeader","xl","StyledSectionHeader","StyledTitle"],"sources":["../../src/Section/Section.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport { StyledFormRow } from '../Form/Form.styles'\nimport { Title } from '../Title/Title'\nimport { colors } from '../_styles/colors'\nimport { spacing } from '../_styles/spacing'\n\nexport const StyledSectionInner = styled.div``\n\nexport const StyledSectionCollapseHeading = styled.div`\n align-self: flex-start;\n margin-right: ${spacing.sm}px;\n`\n\nexport const sectionClassnames = {\n divide: 'section--divide',\n levelAnonymous: 'section--level-anon',\n level: (num: number) => `section--level-${num}`,\n}\n\nexport const StyledSection = styled.div`\n padding-left: ${spacing.lg}px;\n padding-right: ${spacing.lg}px;\n padding-bottom: ${spacing.lg}px;\n\n & > ${StyledSectionInner} {\n padding-top: ${spacing.lg}px;\n }\n\n // horizontal divider\n &.${sectionClassnames.divide} {\n & > ${StyledSectionInner} {\n border-top: 1px solid ${colors.gray85};\n }\n }\n\n // if leading, no horizontal divider\n &:first-child > ${StyledSectionInner} {\n border-top: 0;\n }\n\n & & {\n padding-left: 0;\n padding-right: 0;\n\n // if leading in nested, add the division back\n &:first-child > ${StyledSectionInner} {\n border-top: 1px solid ${colors.gray85};\n }\n\n &:last-child {\n padding-bottom: 0;\n }\n }\n\n // form rows have trailing space for error message\n ${StyledFormRow}:last-of-type {\n margin-bottom: ${spacing.lg * -1}px;\n }\n\n // form rows have trailing space for error message\n ${StyledFormRow} + &&& {\n padding-top: ${spacing.xs}px;\n }\n`\n\nexport const StyledSectionContentRegion = styled.div<{\n $closed: boolean\n $noHeader: boolean\n}>`\n padding-top: ${spacing.sm}px;\n\n ${({ $closed }) =>\n $closed &&\n css`\n padding-top: 0;\n `}\n\n ${({ $noHeader }) =>\n $noHeader &&\n css`\n padding-top: 0;\n `}\n\n // if a nested section isn't first\n // Section\n // P\n // Section <-- space above\n & > :not(${StyledSection}) + ${StyledSection} {\n padding-top: ${spacing.xl}px;\n }\n\n // nested sections, the last one doesn't need more trailing space\n ${StyledSection} ${StyledSection} &:last-of-type {\n padding-bottom: 0;\n }\n`\n\nexport const StyledSectionHeader = styled.div`\n align-items: center;\n display: flex;\n // min-height on header for alignment:\n // - when heading line height is less than the collapse button height\n // - when heading line height is less than the button size it will shift\n // the heading text when the section is opened and buttons appear\n min-height: 36px;\n word-break: break-word;\n`\n\nexport const StyledTitle = styled(Title)`\n width: 100%;\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,aAAa,QAAQ,qBAAqB;AACnD,SAASC,KAAK,QAAQ,gBAAgB;AACtC,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,OAAO,QAAQ,oBAAoB;AAE5C,OAAO,IAAMC,kBAAkB,gBAAGN,MAAM,CAACO,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,QAAE;AAE9C,OAAO,IAAMC,4BAA4B,gBAAGX,MAAM,CAACO,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,mDAEpCL,OAAO,CAACO,EAAE,CAC3B;AAED,OAAO,IAAMC,iBAAiB,GAAG;EAC/BC,MAAM,EAAE,iBAAiB;EACzBC,cAAc,EAAE,qBAAqB;EACrCC,KAAK,EAAE,SAAAA,MAACC,GAAW;IAAA,yBAAAC,MAAA,CAAuBD,GAAG;EAAA;AAC/C,CAAC;AAED,OAAO,IAAME,aAAa,gBAAGnB,MAAM,CAACO,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8WACrBL,OAAO,CAACe,EAAE,EACTf,OAAO,CAACe,EAAE,EACTf,OAAO,CAACe,EAAE,EAEtBd,kBAAkB,EACPD,OAAO,CAACe,EAAE,EAIvBP,iBAAiB,CAACC,MAAM,EACpBR,kBAAkB,EACEF,MAAM,CAACiB,MAAM,EAKvBf,kBAAkB,EAShBA,kBAAkB,EACVF,MAAM,CAACiB,MAAM,EASvCnB,aAAa,EACIG,OAAO,CAACe,EAAE,GAAG,CAAC,CAAC,EAIhClB,aAAa,EACEG,OAAO,CAACiB,EAAE,CAE5B;AAED,OAAO,IAAMC,0BAA0B,gBAAGvB,MAAM,CAACO,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,2HAInCL,OAAO,CAACO,EAAE,EAEvB,UAAAY,IAAA;EAAA,IAAGC,OAAO,GAAAD,IAAA,CAAPC,OAAO;EAAA,OACVA,OAAO,IACPxB,GAAG,oBAEF;AAAA,GAED,UAAAyB,KAAA;EAAA,IAAGC,SAAS,GAAAD,KAAA,CAATC,SAAS;EAAA,OACZA,SAAS,IACT1B,GAAG,oBAEF;AAAA,GAMQkB,aAAa,EAAOA,aAAa,EAC3Bd,OAAO,CAACuB,EAAE,EAIzBT,aAAa,EAAIA,aAAa,CAGjC;AAED,OAAO,IAAMU,mBAAmB,gBAAG7B,MAAM,CAACO,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8EAS5C;AAED,OAAO,IAAMoB,WAAW,gBAAG9B,MAAM,CAACG,KAAK,CAAC,CAAAK,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,mBAEvC"}
1
+ {"version":3,"file":"Section.styles.js","names":["styled","css","StyledFormRow","Title","colors","spacing","StyledSectionBanner","div","withConfig","displayName","componentId","sm","StyledSectionInner","StyledSectionCollapseHeading","sectionClassnames","divide","levelAnonymous","level","num","concat","StyledSection","lg","gray85","xs","StyledSectionContentRegion","_ref","$closed","_ref2","$noHeader","xl","StyledSectionHeader","StyledTitle"],"sources":["../../src/Section/Section.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport { StyledFormRow } from '../Form/Form.styles'\nimport { Title } from '../Title/Title'\nimport { colors } from '../_styles/colors'\nimport { spacing } from '../_styles/spacing'\n\nexport const StyledSectionBanner = styled.div`\n margin-bottom: ${spacing.sm}px;\n\n > * + * {\n margin-top: ${spacing.sm}px;\n }\n`\n\nexport const StyledSectionInner = styled.div``\n\nexport const StyledSectionCollapseHeading = styled.div`\n align-self: flex-start;\n margin-right: ${spacing.sm}px;\n`\n\nexport const sectionClassnames = {\n divide: 'section--divide',\n levelAnonymous: 'section--level-anon',\n level: (num: number) => `section--level-${num}`,\n}\n\nexport const StyledSection = styled.div`\n padding-left: ${spacing.lg}px;\n padding-right: ${spacing.lg}px;\n padding-bottom: ${spacing.lg}px;\n\n & > ${StyledSectionInner} {\n padding-top: ${spacing.lg}px;\n }\n\n // horizontal divider\n &.${sectionClassnames.divide} {\n & > ${StyledSectionInner} {\n border-top: 1px solid ${colors.gray85};\n }\n }\n\n // if leading, no horizontal divider\n &:first-child > ${StyledSectionInner} {\n border-top: 0;\n }\n\n & & {\n padding-left: 0;\n padding-right: 0;\n\n // if leading in nested, add the division back\n &:first-child > ${StyledSectionInner} {\n border-top: 1px solid ${colors.gray85};\n }\n\n &:last-child {\n padding-bottom: 0;\n }\n }\n\n // form rows have trailing space for error message\n ${StyledFormRow}:last-of-type {\n margin-bottom: ${spacing.lg * -1}px;\n }\n\n // form rows have trailing space for error message\n ${StyledFormRow} + &&& {\n padding-top: ${spacing.xs}px;\n }\n`\n\nexport const StyledSectionContentRegion = styled.div<{\n $closed: boolean\n $noHeader: boolean\n}>`\n padding-top: ${spacing.sm}px;\n\n ${({ $closed }) =>\n $closed &&\n css`\n padding-top: 0;\n `}\n\n ${({ $noHeader }) =>\n $noHeader &&\n css`\n padding-top: 0;\n `}\n\n // if a nested section isn't first\n // Section\n // P\n // Section <-- space above\n & > :not(${StyledSection}) + ${StyledSection} {\n padding-top: ${spacing.xl}px;\n }\n\n // nested sections, the last one doesn't need more trailing space\n ${StyledSection} ${StyledSection} &:last-of-type {\n padding-bottom: 0;\n }\n`\n\nexport const StyledSectionHeader = styled.div`\n align-items: center;\n display: flex;\n // min-height on header for alignment:\n // - when heading line height is less than the collapse button height\n // - when heading line height is less than the button size it will shift\n // the heading text when the section is opened and buttons appear\n min-height: 36px;\n word-break: break-word;\n`\n\nexport const StyledTitle = styled(Title)`\n width: 100%;\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,aAAa,QAAQ,qBAAqB;AACnD,SAASC,KAAK,QAAQ,gBAAgB;AACtC,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,OAAO,QAAQ,oBAAoB;AAE5C,OAAO,IAAMC,mBAAmB,gBAAGN,MAAM,CAACO,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yDAC1BL,OAAO,CAACM,EAAE,EAGXN,OAAO,CAACM,EAAE,CAE3B;AAED,OAAO,IAAMC,kBAAkB,gBAAGZ,MAAM,CAACO,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,QAAE;AAE9C,OAAO,IAAMG,4BAA4B,gBAAGb,MAAM,CAACO,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,mDAEpCL,OAAO,CAACM,EAAE,CAC3B;AAED,OAAO,IAAMG,iBAAiB,GAAG;EAC/BC,MAAM,EAAE,iBAAiB;EACzBC,cAAc,EAAE,qBAAqB;EACrCC,KAAK,EAAE,SAAAA,MAACC,GAAW;IAAA,yBAAAC,MAAA,CAAuBD,GAAG;EAAA;AAC/C,CAAC;AAED,OAAO,IAAME,aAAa,gBAAGpB,MAAM,CAACO,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8WACrBL,OAAO,CAACgB,EAAE,EACThB,OAAO,CAACgB,EAAE,EACThB,OAAO,CAACgB,EAAE,EAEtBT,kBAAkB,EACPP,OAAO,CAACgB,EAAE,EAIvBP,iBAAiB,CAACC,MAAM,EACpBH,kBAAkB,EACER,MAAM,CAACkB,MAAM,EAKvBV,kBAAkB,EAShBA,kBAAkB,EACVR,MAAM,CAACkB,MAAM,EASvCpB,aAAa,EACIG,OAAO,CAACgB,EAAE,GAAG,CAAC,CAAC,EAIhCnB,aAAa,EACEG,OAAO,CAACkB,EAAE,CAE5B;AAED,OAAO,IAAMC,0BAA0B,gBAAGxB,MAAM,CAACO,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,2HAInCL,OAAO,CAACM,EAAE,EAEvB,UAAAc,IAAA;EAAA,IAAGC,OAAO,GAAAD,IAAA,CAAPC,OAAO;EAAA,OACVA,OAAO,IACPzB,GAAG,oBAEF;AAAA,GAED,UAAA0B,KAAA;EAAA,IAAGC,SAAS,GAAAD,KAAA,CAATC,SAAS;EAAA,OACZA,SAAS,IACT3B,GAAG,oBAEF;AAAA,GAMQmB,aAAa,EAAOA,aAAa,EAC3Bf,OAAO,CAACwB,EAAE,EAIzBT,aAAa,EAAIA,aAAa,CAGjC;AAED,OAAO,IAAMU,mBAAmB,gBAAG9B,MAAM,CAACO,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8EAS5C;AAED,OAAO,IAAMqB,WAAW,gBAAG/B,MAAM,CAACG,KAAK,CAAC,CAAAK,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,mBAEvC"}
@@ -15,6 +15,10 @@ export interface SectionProps extends Props {
15
15
  actions?: React.ReactNode | ((section: {
16
16
  open: boolean;
17
17
  }) => React.ReactNode);
18
+ /**
19
+ * @since 12.9.0
20
+ */
21
+ banner?: React.ReactNode;
18
22
  /**
19
23
  * @description Enable the expand and collapse accordion feature.
20
24
  * Requires a unique ID across sections, unique within the provider (DetailPage.Card) and
@@ -1 +1 @@
1
- {"version":3,"file":"Section.types.js","names":[],"sources":["../../src/Section/Section.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { Props } from '../_utils/types'\n\nexport interface SectionProviderProps {\n /**\n * @since 10.19.0\n */\n children: React.ReactNode\n}\n\nexport interface SectionProps extends Props {\n /**\n * @description Actions of Buttons and Dropdowns to render. If a function,\n * the open state is provided as `open` key\n * @since 10.19.0\n */\n actions?: React.ReactNode | ((section: { open: boolean }) => React.ReactNode)\n /**\n * @description Enable the expand and collapse accordion feature.\n * Requires a unique ID across sections, unique within the provider (DetailPage.Card) and\n * requires a heading on the section. Closed sections will not render its children.\n * @since 10.19.0\n */\n expandId?: string | number\n /**\n * @description Heading text for the section\n * @since 10.19.0\n */\n heading?: string\n /**\n * @description If expandable, start open or closed\n * @since 10.19.0\n */\n initialIsOpen?: boolean\n /**\n * @description Title assets\n * @since 10.19.0\n */\n assets?: React.ReactNode\n /**\n * @description Title pills\n * @since 10.19.0\n */\n pills?: React.ReactNode\n /**\n * @description Title subtext\n * @since 10.19.0\n */\n subtext?: React.ReactNode\n}\n\nexport interface SectionContextAPI {\n /**\n * @since 10.19.0\n */\n open: { [id: string]: boolean }\n /**\n * @since 10.19.0\n */\n setSection: (id: string | number, open: boolean) => void\n /**\n * @since 10.19.0\n */\n toggleSection: (id: string | number) => void\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Section.types.js","names":[],"sources":["../../src/Section/Section.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { Props } from '../_utils/types'\n\nexport interface SectionProviderProps {\n /**\n * @since 10.19.0\n */\n children: React.ReactNode\n}\n\nexport interface SectionProps extends Props {\n /**\n * @description Actions of Buttons and Dropdowns to render. If a function,\n * the open state is provided as `open` key\n * @since 10.19.0\n */\n actions?: React.ReactNode | ((section: { open: boolean }) => React.ReactNode)\n /**\n * @since 12.9.0\n */\n banner?: React.ReactNode\n /**\n * @description Enable the expand and collapse accordion feature.\n * Requires a unique ID across sections, unique within the provider (DetailPage.Card) and\n * requires a heading on the section. Closed sections will not render its children.\n * @since 10.19.0\n */\n expandId?: string | number\n /**\n * @description Heading text for the section\n * @since 10.19.0\n */\n heading?: string\n /**\n * @description If expandable, start open or closed\n * @since 10.19.0\n */\n initialIsOpen?: boolean\n /**\n * @description Title assets\n * @since 10.19.0\n */\n assets?: React.ReactNode\n /**\n * @description Title pills\n * @since 10.19.0\n */\n pills?: React.ReactNode\n /**\n * @description Title subtext\n * @since 10.19.0\n */\n subtext?: React.ReactNode\n}\n\nexport interface SectionContextAPI {\n /**\n * @since 10.19.0\n */\n open: { [id: string]: boolean }\n /**\n * @since 10.19.0\n */\n setSection: (id: string | number, open: boolean) => void\n /**\n * @since 10.19.0\n */\n toggleSection: (id: string | number) => void\n}\n"],"mappings":""}
@@ -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_8_0__sc-ocai3-0"
8
+ componentId: "core-12_9_0__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_8_0__sc-ocai3-1"
18
+ componentId: "core-12_9_0__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_8_0__sc-ocai3-2"
40
+ componentId: "core-12_9_0__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_8_0__sc-ocai3-3"
44
+ componentId: "core-12_9_0__sc-ocai3-3"
45
45
  })(["", ";display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"], getTypographyIntent('body'));
46
46
  //# sourceMappingURL=SegmentedController.styles.js.map
@@ -16,34 +16,34 @@ export var tableSelectClassName = 'select--table';
16
16
  var styledSelectButtonDefaultWidth = 248;
17
17
  export var StyledSelectMenu = /*#__PURE__*/styled(Card).withConfig({
18
18
  displayName: "StyledSelectMenu",
19
- componentId: "core-12_8_0__sc-mr8gwe-0"
19
+ componentId: "core-12_9_0__sc-mr8gwe-0"
20
20
  })(["display:flex;max-height:40vh;max-width:", "px;min-width:inherit;"], styledSelectButtonDefaultWidth);
21
21
  export var StyledSelectButtonLabel = /*#__PURE__*/styled.div.withConfig({
22
22
  displayName: "StyledSelectButtonLabel",
23
- componentId: "core-12_8_0__sc-mr8gwe-1"
23
+ componentId: "core-12_9_0__sc-mr8gwe-1"
24
24
  })(["", " flex-grow:1;margin-right:", "px;outline:none;pointer-events:", ";user-select:none;"], getEllipsis(), spacing.sm, function (_ref) {
25
25
  var $hoverable = _ref.$hoverable;
26
26
  return $hoverable ? 'initial' : 'none';
27
27
  });
28
28
  export var StyledSelectSpinner = /*#__PURE__*/styled.div.withConfig({
29
29
  displayName: "StyledSelectSpinner",
30
- componentId: "core-12_8_0__sc-mr8gwe-2"
30
+ componentId: "core-12_9_0__sc-mr8gwe-2"
31
31
  })(["align-items:center;display:flex;flex:0 0 auto;justify-content:center;line-height:0;"]);
32
32
  export var StyledSelectArrowContainer = /*#__PURE__*/styled.div.withConfig({
33
33
  displayName: "StyledSelectArrowContainer",
34
- componentId: "core-12_8_0__sc-mr8gwe-3"
34
+ componentId: "core-12_9_0__sc-mr8gwe-3"
35
35
  })(["align-items:center;display:inline-flex;height:16px;justify-content:flex-end;margin-left:", "px;width:8px;"], spacing.sm);
36
36
  export var StyledSelectArrow = /*#__PURE__*/styled.div.withConfig({
37
37
  displayName: "StyledSelectArrow",
38
- componentId: "core-12_8_0__sc-mr8gwe-4"
38
+ componentId: "core-12_9_0__sc-mr8gwe-4"
39
39
  })(["position:relative;", ""], arrowDown(4, 'gray45'));
40
40
  export var StyledSelectClearIcon = /*#__PURE__*/styled(Button).withConfig({
41
41
  displayName: "StyledSelectClearIcon",
42
- componentId: "core-12_8_0__sc-mr8gwe-5"
42
+ componentId: "core-12_9_0__sc-mr8gwe-5"
43
43
  })([""]);
44
44
  export var StyledSelectButton = /*#__PURE__*/styled.div.withConfig({
45
45
  displayName: "StyledSelectButton",
46
- componentId: "core-12_8_0__sc-mr8gwe-6"
46
+ componentId: "core-12_9_0__sc-mr8gwe-6"
47
47
  })(["", " 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
48
  var $block = _ref2.$block;
49
49
  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_8_0__sc-172j5qh-0"
8
+ componentId: "core-12_9_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_8_0__sc-172j5qh-1"
12
+ componentId: "core-12_9_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_8_0__sc-172j5qh-2"
16
+ componentId: "core-12_9_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,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_8_0__sc-172j5qh-3"
31
+ componentId: "core-12_9_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_8_0__sc-172j5qh-4"
35
+ componentId: "core-12_9_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
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_8_0__sc-172j5qh-5"
43
+ componentId: "core-12_9_0__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_8_0__sc-172j5qh-6"
55
+ componentId: "core-12_9_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_8_0__sc-172j5qh-7"
73
+ componentId: "core-12_9_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_8_0__sc-172j5qh-8"
81
+ componentId: "core-12_9_0__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_8_0__sc-12icguw-0"
24
+ componentId: "core-12_9_0__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_8_0__sc-12icguw-1"
30
+ componentId: "core-12_9_0__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_8_0__sc-12icguw-2"
48
+ componentId: "core-12_9_0__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_8_0__sc-12icguw-3"
52
+ componentId: "core-12_9_0__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_8_0__sc-12icguw-4"
56
+ componentId: "core-12_9_0__sc-12icguw-4"
57
57
  })(["visibility:visible;position:absolute;left:50%;transform:translateX(-50%);margin-top:8px;"]);
58
58
  //# sourceMappingURL=Slider.styles.js.map
@@ -10,7 +10,7 @@ var zOverlay = 2;
10
10
  var dash = /*#__PURE__*/keyframes(["0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}"]);
11
11
  export var StyledCircle = /*#__PURE__*/styled.circle.withConfig({
12
12
  displayName: "StyledCircle",
13
- componentId: "core-12_8_0__sc-1igww3-0"
13
+ componentId: "core-12_9_0__sc-1igww3-0"
14
14
  })(["animation:", " ", "ms ease-in-out ", "ms infinite;stroke-linecap:round;"], dash, duration, function (p) {
15
15
  var animationDelay = -(p.mountTime % duration);
16
16
  return animationDelay;
@@ -43,16 +43,16 @@ function getStrokeColor(_ref2) {
43
43
  }
44
44
  export var StyledSpinnerContainer = /*#__PURE__*/styled.div.withConfig({
45
45
  displayName: "StyledSpinnerContainer",
46
- componentId: "core-12_8_0__sc-1igww3-1"
46
+ componentId: "core-12_9_0__sc-1igww3-1"
47
47
  })(["border-radius:100%;box-sizing:border-box;display:block;flex-shrink:0;position:relative;", " ", "{", "}"], getHeightWidthStroke, StyledCircle, getStrokeColor);
48
48
  export var StyledSpinnerOverlayLabel = /*#__PURE__*/styled.span.withConfig({
49
49
  displayName: "StyledSpinnerOverlayLabel",
50
- componentId: "core-12_8_0__sc-1igww3-2"
50
+ componentId: "core-12_9_0__sc-1igww3-2"
51
51
  })(["", " color:", ";display:block;min-height:20px;padding-top:", "px;text-align:center;text-transform:uppercase;transition:opacity ", ";"], getTypographyIntent('body'), colors.gray15, spacing.md, transition);
52
52
  var rotate = /*#__PURE__*/keyframes(["to{transform:rotate(360deg);}"]);
53
53
  export var StyledSpinnerSVG = /*#__PURE__*/styled.svg.withConfig({
54
54
  displayName: "StyledSpinnerSVG",
55
- componentId: "core-12_8_0__sc-1igww3-3"
55
+ componentId: "core-12_9_0__sc-1igww3-3"
56
56
  })(["animation:", " ", "ms linear ", "ms infinite;fill:none;height:100%;left:0;margin:auto;position:absolute;right:0;top:0;width:100%;z-index:2;"], rotate, duration - durationOffset, function (p) {
57
57
  var animationDelay = -(p.mountTime % (duration - durationOffset));
58
58
  return animationDelay;
@@ -60,15 +60,15 @@ export var StyledSpinnerSVG = /*#__PURE__*/styled.svg.withConfig({
60
60
  var startsWithNoInteraction = /*#__PURE__*/css(["opacity:0;pointer-events:none;transition:opacity ", ";"], transition);
61
61
  export var StyledSpinnerOverlay = /*#__PURE__*/styled.div.withConfig({
62
62
  displayName: "StyledSpinnerOverlay",
63
- componentId: "core-12_8_0__sc-1igww3-4"
63
+ componentId: "core-12_9_0__sc-1igww3-4"
64
64
  })(["", " background-color:", ";bottom:0;left:0;position:absolute;right:0;top:0;z-index:", ";"], startsWithNoInteraction, colors.white, zOverlay);
65
65
  export var StyledSpinnerContainerWithLabel = /*#__PURE__*/styled.div.withConfig({
66
66
  displayName: "StyledSpinnerContainerWithLabel",
67
- componentId: "core-12_8_0__sc-1igww3-5"
67
+ componentId: "core-12_9_0__sc-1igww3-5"
68
68
  })(["", " align-items:center;display:flex;flex-direction:column;height:100%;max-height:400px;justify-content:center;position:absolute;top:0;width:100%;z-index:", ";"], startsWithNoInteraction, zContainer);
69
69
  export var StyledSpinnerOverlayContainer = /*#__PURE__*/styled.div.withConfig({
70
70
  displayName: "StyledSpinnerOverlayContainer",
71
- componentId: "core-12_8_0__sc-1igww3-6"
71
+ componentId: "core-12_9_0__sc-1igww3-6"
72
72
  })(["min-height:150px;position:relative;", " ", ""], function (_ref3) {
73
73
  var $loading = _ref3.$loading;
74
74
  if ($loading) {
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { Props } from '../_utils/types';
3
- import type { SplitViewCardContextAPI } from './SplitViewCard.types';
3
+ import type { SplitViewCardContextAPI, SplitViewCardProps } from './SplitViewCard.types';
4
4
  export declare const SplitViewCardContext: React.Context<SplitViewCardContextAPI>;
5
- export declare const SplitViewCardContextProvider: ({ children, defaultValue, }: React.PropsWithChildren<Props & {
6
- defaultValue?: boolean | undefined;
7
- }>) => React.JSX.Element;
5
+ export declare const SplitViewCardContextProvider: ({ children, isInitiallyOpen, onClose, isClosable, }: React.PropsWithChildren<Props & SplitViewCardProps>) => React.JSX.Element;
6
+ export declare const useSplitViewCard: () => SplitViewCardContextAPI;
@@ -8,28 +8,46 @@ import React from 'react';
8
8
  export var SplitViewCardContext = /*#__PURE__*/React.createContext({
9
9
  open: false,
10
10
  onOpen: function onOpen() {},
11
- onClose: function onClose() {}
11
+ onClose: function onClose() {},
12
+ isClosable: true,
13
+ isScrolling: false,
14
+ setIsScrolling: function setIsScrolling() {}
12
15
  });
13
16
  export var SplitViewCardContextProvider = function SplitViewCardContextProvider(_ref) {
14
17
  var children = _ref.children,
15
- _ref$defaultValue = _ref.defaultValue,
16
- defaultValue = _ref$defaultValue === void 0 ? false : _ref$defaultValue;
17
- var _React$useState = React.useState(defaultValue),
18
+ _ref$isInitiallyOpen = _ref.isInitiallyOpen,
19
+ isInitiallyOpen = _ref$isInitiallyOpen === void 0 ? false : _ref$isInitiallyOpen,
20
+ onClose = _ref.onClose,
21
+ isClosable = _ref.isClosable;
22
+ var _React$useState = React.useState(isInitiallyOpen),
18
23
  _React$useState2 = _slicedToArray(_React$useState, 2),
19
24
  open = _React$useState2[0],
20
25
  setOpen = _React$useState2[1];
26
+ var _React$useState3 = React.useState(false),
27
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
28
+ isScrolling = _React$useState4[0],
29
+ setIsScrolling = _React$useState4[1];
21
30
  var onOpen = function onOpen() {
22
- return setOpen(true);
23
- };
24
- var onClose = function onClose() {
25
- return setOpen(false);
31
+ setOpen(true);
26
32
  };
33
+ var handleClose = React.useCallback(function () {
34
+ setOpen(false);
35
+ if (onClose) {
36
+ onClose();
37
+ }
38
+ }, [onClose]);
27
39
  return /*#__PURE__*/React.createElement(SplitViewCardContext.Provider, {
28
40
  value: {
29
41
  open: open,
30
42
  onOpen: onOpen,
31
- onClose: onClose
43
+ onClose: handleClose,
44
+ isClosable: isClosable,
45
+ isScrolling: isScrolling,
46
+ setIsScrolling: setIsScrolling
32
47
  }
33
48
  }, children);
34
49
  };
50
+ export var useSplitViewCard = function useSplitViewCard() {
51
+ return React.useContext(SplitViewCardContext);
52
+ };
35
53
  //# sourceMappingURL=SplitViewCard.context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SplitViewCard.context.js","names":["React","SplitViewCardContext","createContext","open","onOpen","onClose","SplitViewCardContextProvider","_ref","children","_ref$defaultValue","defaultValue","_React$useState","useState","_React$useState2","_slicedToArray","setOpen","createElement","Provider","value"],"sources":["../../src/SplitViewCard/SplitViewCard.context.tsx"],"sourcesContent":["import React from 'react'\nimport type { Props } from '../_utils/types'\nimport type { SplitViewCardContextAPI } from './SplitViewCard.types'\n\nexport const SplitViewCardContext =\n React.createContext<SplitViewCardContextAPI>({\n open: false,\n onOpen: () => {},\n onClose: () => {},\n })\n\nexport const SplitViewCardContextProvider = ({\n children,\n defaultValue = false,\n}: React.PropsWithChildren<Props & { defaultValue?: boolean }>) => {\n const [open, setOpen] = React.useState(defaultValue)\n\n const onOpen = () => setOpen(true)\n const onClose = () => setOpen(false)\n\n return (\n <SplitViewCardContext.Provider value={{ open, onOpen, onClose }}>\n {children}\n </SplitViewCardContext.Provider>\n )\n}\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAIzB,OAAO,IAAMC,oBAAoB,gBAC/BD,KAAK,CAACE,aAAa,CAA0B;EAC3CC,IAAI,EAAE,KAAK;EACXC,MAAM,EAAE,SAAAA,OAAA,EAAM,CAAC,CAAC;EAChBC,OAAO,EAAE,SAAAA,QAAA,EAAM,CAAC;AAClB,CAAC,CAAC;AAEJ,OAAO,IAAMC,4BAA4B,GAAG,SAA/BA,4BAA4BA,CAAAC,IAAA,EAG0B;EAAA,IAFjEC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAAC,iBAAA,GAAAF,IAAA,CACRG,YAAY;IAAZA,YAAY,GAAAD,iBAAA,cAAG,KAAK,GAAAA,iBAAA;EAEpB,IAAAE,eAAA,GAAwBX,KAAK,CAACY,QAAQ,CAACF,YAAY,CAAC;IAAAG,gBAAA,GAAAC,cAAA,CAAAH,eAAA;IAA7CR,IAAI,GAAAU,gBAAA;IAAEE,OAAO,GAAAF,gBAAA;EAEpB,IAAMT,MAAM,GAAG,SAATA,MAAMA,CAAA;IAAA,OAASW,OAAO,CAAC,IAAI,CAAC;EAAA;EAClC,IAAMV,OAAO,GAAG,SAAVA,OAAOA,CAAA;IAAA,OAASU,OAAO,CAAC,KAAK,CAAC;EAAA;EAEpC,oBACEf,KAAA,CAAAgB,aAAA,CAACf,oBAAoB,CAACgB,QAAQ;IAACC,KAAK,EAAE;MAAEf,IAAI,EAAJA,IAAI;MAAEC,MAAM,EAANA,MAAM;MAAEC,OAAO,EAAPA;IAAQ;EAAE,GAC7DG,QAC4B,CAAC;AAEpC,CAAC"}
1
+ {"version":3,"file":"SplitViewCard.context.js","names":["React","SplitViewCardContext","createContext","open","onOpen","onClose","isClosable","isScrolling","setIsScrolling","SplitViewCardContextProvider","_ref","children","_ref$isInitiallyOpen","isInitiallyOpen","_React$useState","useState","_React$useState2","_slicedToArray","setOpen","_React$useState3","_React$useState4","handleClose","useCallback","createElement","Provider","value","useSplitViewCard","useContext"],"sources":["../../src/SplitViewCard/SplitViewCard.context.tsx"],"sourcesContent":["import React from 'react'\nimport type { Props } from '../_utils/types'\nimport type {\n SplitViewCardContextAPI,\n SplitViewCardProps,\n} from './SplitViewCard.types'\n\nexport const SplitViewCardContext =\n React.createContext<SplitViewCardContextAPI>({\n open: false,\n onOpen: () => {},\n onClose: () => {},\n isClosable: true,\n isScrolling: false,\n setIsScrolling: () => {},\n })\n\nexport const SplitViewCardContextProvider = ({\n children,\n isInitiallyOpen = false,\n onClose,\n isClosable,\n}: React.PropsWithChildren<Props & SplitViewCardProps>) => {\n const [open, setOpen] = React.useState(isInitiallyOpen)\n const [isScrolling, setIsScrolling] = React.useState(false)\n\n const onOpen = () => {\n setOpen(true)\n }\n\n const handleClose = React.useCallback(() => {\n setOpen(false)\n\n if (onClose) {\n onClose()\n }\n }, [onClose])\n\n return (\n <SplitViewCardContext.Provider\n value={{\n open,\n onOpen,\n onClose: handleClose,\n isClosable,\n isScrolling,\n setIsScrolling,\n }}\n >\n {children}\n </SplitViewCardContext.Provider>\n )\n}\n\nexport const useSplitViewCard = () => React.useContext(SplitViewCardContext)\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAOzB,OAAO,IAAMC,oBAAoB,gBAC/BD,KAAK,CAACE,aAAa,CAA0B;EAC3CC,IAAI,EAAE,KAAK;EACXC,MAAM,EAAE,SAAAA,OAAA,EAAM,CAAC,CAAC;EAChBC,OAAO,EAAE,SAAAA,QAAA,EAAM,CAAC,CAAC;EACjBC,UAAU,EAAE,IAAI;EAChBC,WAAW,EAAE,KAAK;EAClBC,cAAc,EAAE,SAAAA,eAAA,EAAM,CAAC;AACzB,CAAC,CAAC;AAEJ,OAAO,IAAMC,4BAA4B,GAAG,SAA/BA,4BAA4BA,CAAAC,IAAA,EAKkB;EAAA,IAJzDC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAAC,oBAAA,GAAAF,IAAA,CACRG,eAAe;IAAfA,eAAe,GAAAD,oBAAA,cAAG,KAAK,GAAAA,oBAAA;IACvBP,OAAO,GAAAK,IAAA,CAAPL,OAAO;IACPC,UAAU,GAAAI,IAAA,CAAVJ,UAAU;EAEV,IAAAQ,eAAA,GAAwBd,KAAK,CAACe,QAAQ,CAACF,eAAe,CAAC;IAAAG,gBAAA,GAAAC,cAAA,CAAAH,eAAA;IAAhDX,IAAI,GAAAa,gBAAA;IAAEE,OAAO,GAAAF,gBAAA;EACpB,IAAAG,gBAAA,GAAsCnB,KAAK,CAACe,QAAQ,CAAC,KAAK,CAAC;IAAAK,gBAAA,GAAAH,cAAA,CAAAE,gBAAA;IAApDZ,WAAW,GAAAa,gBAAA;IAAEZ,cAAc,GAAAY,gBAAA;EAElC,IAAMhB,MAAM,GAAG,SAATA,MAAMA,CAAA,EAAS;IACnBc,OAAO,CAAC,IAAI,CAAC;EACf,CAAC;EAED,IAAMG,WAAW,GAAGrB,KAAK,CAACsB,WAAW,CAAC,YAAM;IAC1CJ,OAAO,CAAC,KAAK,CAAC;IAEd,IAAIb,OAAO,EAAE;MACXA,OAAO,CAAC,CAAC;IACX;EACF,CAAC,EAAE,CAACA,OAAO,CAAC,CAAC;EAEb,oBACEL,KAAA,CAAAuB,aAAA,CAACtB,oBAAoB,CAACuB,QAAQ;IAC5BC,KAAK,EAAE;MACLtB,IAAI,EAAJA,IAAI;MACJC,MAAM,EAANA,MAAM;MACNC,OAAO,EAAEgB,WAAW;MACpBf,UAAU,EAAVA,UAAU;MACVC,WAAW,EAAXA,WAAW;MACXC,cAAc,EAAdA;IACF;EAAE,GAEDG,QAC4B,CAAC;AAEpC,CAAC;AAED,OAAO,IAAMe,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAA;EAAA,OAAS1B,KAAK,CAAC2B,UAAU,CAAC1B,oBAAoB,CAAC;AAAA"}
@@ -2,42 +2,43 @@ import React from 'react';
2
2
  import type { Props } from '../_utils/types';
3
3
  import type { SplitViewCardProps } from './SplitViewCard.types';
4
4
  export declare const Main: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
5
- export declare const Aside: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
6
- export declare const Heading: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
7
- export declare const Title: React.ForwardRefExoticComponent<SplitViewCardProps & React.RefAttributes<HTMLDivElement>>;
8
- export declare const Header: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
9
- export declare const Body: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
10
- export declare const Footer: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
5
+ export declare const Panel: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
6
+ export declare const PanelHeading: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
7
+ export declare const PanelTitle: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
8
+ export declare const PanelHeader: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
9
+ export declare const PanelBody: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
10
+ export declare const PanelFooter: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
11
11
  /**
12
12
 
13
- A split view card component is used to support a split view page layout.
13
+ A SplitViewCard component is used to display additional details
14
+ of an item from a collection inside a panel of a card.
14
15
 
15
16
  - SplitViewCard
16
17
  - SplitViewCard.Main
17
18
  - SplitViewCard.Section
18
19
  - Table or some other main content
19
- - SplitViewCard.Aside
20
- - SplitViewCard.Header
21
- - SplitViewCard.Title
22
- - SplitViewCard.Heading
23
- - Title
20
+ - SplitViewCard.Panel
21
+ - SplitViewCard.PanelHeader
22
+ - SplitViewCard.PanelTitle
23
+ - text
24
24
  - Tabs
25
- - SplitViewCard.Body
25
+ - SplitViewCard.PanelBody
26
26
  - Content
27
- - SplitViewCard.Footer
27
+ - SplitViewCard.PanelFooter
28
+ - SplitViewCard.Actions
28
29
 
29
- @since 12.4.2
30
+ @since 12.9.0
30
31
 
31
32
  @see [Storybook](https://stories.core.procore.com/?path=/story/demos-splitviewcard--demo)
32
33
 
33
34
  */
34
- export declare const SplitViewCard: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>> & {
35
+ export declare const SplitViewCard: React.ForwardRefExoticComponent<SplitViewCardProps & React.RefAttributes<HTMLDivElement>> & {
36
+ Actions: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
35
37
  Main: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
36
38
  Section: React.ForwardRefExoticComponent<import("../Section").SectionProps & React.RefAttributes<HTMLDivElement>>;
37
- Aside: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
38
- Heading: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
39
- Title: React.ForwardRefExoticComponent<SplitViewCardProps & React.RefAttributes<HTMLDivElement>>;
40
- Header: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
41
- Body: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
42
- Footer: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
39
+ Panel: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
40
+ PanelTitle: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
41
+ PanelHeader: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
42
+ PanelBody: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
43
+ PanelFooter: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
43
44
  };