@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
@@ -24,7 +24,7 @@ function applyStylesOnlyToIE11(styles) {
24
24
  }
25
25
  export var StyledFormFieldMain = /*#__PURE__*/styled.div.withConfig({
26
26
  displayName: "StyledFormFieldMain",
27
- componentId: "core-12_14_0__sc-ncj3pf-0"
27
+ componentId: "core-12_16_0__sc-ncj3pf-0"
28
28
  })(["-ms-grid-row:2;grid-row:2;", " ", " ", ""], function (_ref) {
29
29
  var $colStart = _ref.$colStart,
30
30
  $colEnd = _ref.$colEnd,
@@ -36,15 +36,15 @@ export var StyledFormFieldMain = /*#__PURE__*/styled.div.withConfig({
36
36
  }, applyStylesOnlyToIE11("\n padding-left: ".concat(columnGutter, ";\n\n &:nth-child(2) {\n padding-left: 0;\n }\n ")));
37
37
  export var StyledLabel = /*#__PURE__*/styled(Label).withConfig({
38
38
  displayName: "StyledLabel",
39
- componentId: "core-12_14_0__sc-ncj3pf-1"
39
+ componentId: "core-12_16_0__sc-ncj3pf-1"
40
40
  })(["word-wrap:break-word;word-break:break-word;"]);
41
41
  export var StyledDescription = /*#__PURE__*/styled.div.withConfig({
42
42
  displayName: "StyledDescription",
43
- componentId: "core-12_14_0__sc-ncj3pf-2"
43
+ componentId: "core-12_16_0__sc-ncj3pf-2"
44
44
  })(["", " color:", ";word-wrap:break-word;word-break:break-word;"], getTypographyIntent('body'), colors.gray45);
45
45
  export var StyledCheckboxInlineDescription = /*#__PURE__*/styled(StyledDescription).withConfig({
46
46
  displayName: "StyledCheckboxInlineDescription",
47
- componentId: "core-12_14_0__sc-ncj3pf-3"
47
+ componentId: "core-12_16_0__sc-ncj3pf-3"
48
48
  })(["margin-top:", "px;", ""], spacing.xs, function (_ref3) {
49
49
  var $read = _ref3.$read;
50
50
  if (!$read) {
@@ -53,7 +53,7 @@ export var StyledCheckboxInlineDescription = /*#__PURE__*/styled(StyledDescripti
53
53
  });
54
54
  export var StyledFormFieldHeader = /*#__PURE__*/styled(StyledFieldHeader).withConfig({
55
55
  displayName: "StyledFormFieldHeader",
56
- componentId: "core-12_14_0__sc-ncj3pf-4"
56
+ componentId: "core-12_16_0__sc-ncj3pf-4"
57
57
  })(["-ms-grid-row:1;grid-row:1;align-self:end;margin-bottom:", "px;", " ", " * + ", "{margin-top:", "px;}"], spacing.xs, function (_ref4) {
58
58
  var $colStart = _ref4.$colStart,
59
59
  $colEnd = _ref4.$colEnd,
@@ -62,7 +62,7 @@ export var StyledFormFieldHeader = /*#__PURE__*/styled(StyledFieldHeader).withCo
62
62
  }, applyStylesOnlyToIE11("\n padding-left: ".concat(columnGutter, ";\n\n &:first-child {\n padding-left: 0;\n }\n\n ").concat(StyledFormFieldMain, " {\n padding-left: ").concat(columnGutter, ";\n\n &:nth-child(2) {\n padding-left: 0;\n }\n }\n ")), StyledDescription, spacing.xs);
63
63
  export var StyledFormFieldRequiredMark = /*#__PURE__*/styled(Required).withConfig({
64
64
  displayName: "StyledFormFieldRequiredMark",
65
- componentId: "core-12_14_0__sc-ncj3pf-5"
65
+ componentId: "core-12_16_0__sc-ncj3pf-5"
66
66
  })(["padding-left:", "px;vertical-align:top;"], spacing.xs);
67
67
  export var dataQaFieldTooltipIcon = 'form-field-tooltip-icon';
68
68
  export var StyledFormFieldTooltipIcon = /*#__PURE__*/styled(Help).attrs(function () {
@@ -71,19 +71,19 @@ export var StyledFormFieldTooltipIcon = /*#__PURE__*/styled(Help).attrs(function
71
71
  };
72
72
  }).withConfig({
73
73
  displayName: "StyledFormFieldTooltipIcon",
74
- componentId: "core-12_14_0__sc-ncj3pf-6"
74
+ componentId: "core-12_16_0__sc-ncj3pf-6"
75
75
  })(["margin-left:", "px;color:", ";vertical-align:middle;&:focus-visible{border-radius:50%;", " outline-offset:0;}"], spacing.sm, colors.gray45, getGapOutlineFocus);
76
76
  export var StyledFormFieldErrorIcon = /*#__PURE__*/styled(Error).withConfig({
77
77
  displayName: "StyledFormFieldErrorIcon",
78
- componentId: "core-12_14_0__sc-ncj3pf-7"
78
+ componentId: "core-12_16_0__sc-ncj3pf-7"
79
79
  })(["vertical-align:sub;"]);
80
80
  export var StyledFormFieldBanner = /*#__PURE__*/styled.div.withConfig({
81
81
  displayName: "StyledFormFieldBanner",
82
- componentId: "core-12_14_0__sc-ncj3pf-8"
82
+ componentId: "core-12_16_0__sc-ncj3pf-8"
83
83
  })(["display:flex;align-items:flex-start;min-height:22px;margin-top:", "px;margin-bottom:2px;word-break:break-word;word-wrap:break-word;color:", ";", ""], spacing.xs, colors.red50, getTypographyIntent('body'));
84
84
  export var StyledTraditionalFormColumn = /*#__PURE__*/styled.div.withConfig({
85
85
  displayName: "StyledTraditionalFormColumn",
86
- componentId: "core-12_14_0__sc-ncj3pf-9"
86
+ componentId: "core-12_16_0__sc-ncj3pf-9"
87
87
  })(["padding:", ";align-self:center;height:100%;&:nth-child(1){-ms-grid-column:1;}&:nth-child(2){-ms-grid-column:2;}&:nth-child(3){-ms-grid-column:3;}&:nth-child(4){-ms-grid-column:4;}", " ", ""], traditionalPadding, function (_ref5) {
88
88
  var _ref5$$fullWidth = _ref5.$fullWidth,
89
89
  $fullWidth = _ref5$$fullWidth === void 0 ? false : _ref5$$fullWidth;
@@ -95,15 +95,15 @@ export var StyledTraditionalFormColumn = /*#__PURE__*/styled.div.withConfig({
95
95
  });
96
96
  export var StyledFormOutputTextArea = /*#__PURE__*/styled.span.withConfig({
97
97
  displayName: "StyledFormOutputTextArea",
98
- componentId: "core-12_14_0__sc-ncj3pf-10"
98
+ componentId: "core-12_16_0__sc-ncj3pf-10"
99
99
  })(["white-space:pre-wrap;"]);
100
100
  export var StyledFormOutputFiledset = /*#__PURE__*/styled.fieldset.withConfig({
101
101
  displayName: "StyledFormOutputFiledset",
102
- componentId: "core-12_14_0__sc-ncj3pf-11"
102
+ componentId: "core-12_16_0__sc-ncj3pf-11"
103
103
  })(["border:none;padding:0;margin-top:", "px;"], spacing.xs);
104
104
  export var StyledFormRow = /*#__PURE__*/styled.div.withConfig({
105
105
  displayName: "StyledFormRow",
106
- componentId: "core-12_14_0__sc-ncj3pf-12"
106
+ componentId: "core-12_16_0__sc-ncj3pf-12"
107
107
  })(["", ""], function (_ref7) {
108
108
  var _ref7$$traditional = _ref7.$traditional,
109
109
  $traditional = _ref7$$traditional === void 0 ? false : _ref7$$traditional,
@@ -114,6 +114,6 @@ export var StyledFormRow = /*#__PURE__*/styled.div.withConfig({
114
114
  export var formWrapper = /*#__PURE__*/css(["display:inherit;flex-direction:inherit;height:inherit;max-height:inherit;"]);
115
115
  export var StyledForm = /*#__PURE__*/styled.div.withConfig({
116
116
  displayName: "StyledForm",
117
- componentId: "core-12_14_0__sc-ncj3pf-13"
117
+ componentId: "core-12_16_0__sc-ncj3pf-13"
118
118
  })(["", ""], formWrapper);
119
119
  //# sourceMappingURL=Form.styles.js.map
@@ -34,13 +34,13 @@ export interface FormContextAPI {
34
34
  */
35
35
  setFieldDifferent: (key: string, different: boolean) => void;
36
36
  /**
37
- * A <a href="https://github.com/jquense/yup">Yup</a> object schema to
37
+ * A [Yup](https://github.com/jquense/yup) object schema to
38
38
  * validate all values.
39
- * <CodeBlock>
39
+ * ```
40
40
  * {`Yup.object().shape({
41
41
  * input_name: Yup.mixed().required()
42
42
  * })`}
43
- * </CodeBlock>
43
+ * ```
44
44
  * This is a great way to get error messages into the component. In
45
45
  * addition, if using Yup for required, those fields will automatically
46
46
  * get the required asterisk and highlight error.
@@ -197,20 +197,18 @@ export interface BaseFieldProps<Value, ComponentProps extends FormFieldValueComp
197
197
  /**
198
198
  * Customize the input component, either a single component for all views
199
199
  * or an object with the keys of the views to render on that particular
200
- * view. This input component will receive the <Code>field</Code> prop.
200
+ * view. This input component will receive the `field` prop.
201
201
  * If using TypeScript, these components will need to extend a specific
202
- * type from Core React, read more about the{' '}
203
- * <a href="#typescript-and-as-prop-components">props per view</a>.
204
- * <br />
205
- * <br />
202
+ * type from Core React, read more about the [props per view](#typescript-ans-as-prop-components)
203
+ *
206
204
  * One of:
207
- * <br />
208
- * <Code>ReactComponent</Code>or
209
- * <Code>
205
+ *
206
+ * `ReactComponent` or
207
+ * `
210
208
  * {
211
209
  * '{ read: ReactComponent, create: ReactComponent, update: ReactComponent }'
212
210
  * }
213
- * </Code>
211
+ * `
214
212
  * @since 10.19.0
215
213
  */
216
214
  as?: ComponentWithFieldProp<Value, ComponentProps> | {
@@ -218,11 +216,10 @@ export interface BaseFieldProps<Value, ComponentProps extends FormFieldValueComp
218
216
  };
219
217
  /**
220
218
  * A subcomponent to render on a particular view.
221
- * <br />
222
- * <br />
219
+ *
223
220
  * One or all of:
224
- * <br />
225
- * <Code>Form.X.Create, Form.X.Read, Form.X.Update</Code>
221
+ *
222
+ * `Form.X.Create, Form.X.Read, Form.X.Update`
226
223
  * @since 10.19.0
227
224
  */
228
225
  children?: ((field: FormFieldAPI<Value>) => React.ReactNode) | React.ReactNode;
@@ -260,19 +257,19 @@ export interface BaseFieldProps<Value, ComponentProps extends FormFieldValueComp
260
257
  */
261
258
  description?: React.ReactNode;
262
259
  /**
263
- * Key path in store. Accepts <Code>bracket[notation]</Code> or{' '}
264
- * <Code>dot.notation</Code>.
260
+ * Key path in store. Accepts `bracket[notation]` or `dot.notation`.
265
261
  * @since 10.19.0
266
262
  */
267
263
  name: string;
268
264
  /**
269
- * The required asterisk if not using Yup <Code>required</Code>
270
- * <CodeBlock>
271
- * {`<Form
272
- * validationSchema={Yup.object().shape({
273
- * input_name: Yup.mixed().required(),
274
- * })}>`}
275
- * </CodeBlock>
265
+ * The required asterisk if not using Yup `required`
266
+ * ```
267
+ * <Form
268
+ * validationSchema={Yup.object().shape({
269
+ * input_name: Yup.mixed().required(),
270
+ * })}
271
+ * >
272
+ * ```
276
273
  * @since 10.19.0
277
274
  */
278
275
  required?: boolean;
@@ -282,9 +279,9 @@ export interface BaseFieldProps<Value, ComponentProps extends FormFieldValueComp
282
279
  tooltip?: TooltipProps['overlay'];
283
280
  /**
284
281
  * The validate function from Formik for single field validation.
285
- * <CodeBlock>
286
- * {`(value: Value = any) => undefined | string | Promise<Value>`}
287
- * </CodeBlock>
282
+ * ```
283
+ * (value: Value = any) => undefined | string | Promise<Value>
284
+ * ```
288
285
  * @since 10.19.0
289
286
  */
290
287
  validate?: FieldValidator;
@@ -314,15 +311,14 @@ export declare type OptionList<OptionShape = any> = {
314
311
  */
315
312
  getId: (option: OptionShape) => string | number;
316
313
  /**
317
- * <div>
318
- * The display label of an option
319
- * <Code>{'(option: OptionItem) => string'}</Code>
320
- * </div>
321
- * <br />
322
- * <div>
323
- * Default:
324
- * <Code>{'(option: OptionItem) => option.label || option.name'}</Code>
325
- * </div>
314
+ * The display label of an option
315
+ *
316
+ * `(option: OptionItem) => string`
317
+ *
318
+ * Default:
319
+ *
320
+ * `(option: OptionItem) => option.label || option.name`
321
+ *
326
322
  * @since 10.19.0
327
323
  */
328
324
  getLabel: (option: OptionShape) => string;
@@ -457,15 +453,12 @@ export interface GroupedOptionsConfig<OptionItem, GroupItem> extends OptionList<
457
453
  */
458
454
  getGroup: (option: OptionItem) => number | string;
459
455
  /**
460
- * <div>
461
- * The id of group{' '}
462
- * <Code>{'(group: GroupItem) => string | number'}</Code>
463
- * </div>
464
- * <br />
465
- * <div>
466
- * Default:
467
- * <Code>{'(group) => group.id'}</Code>
468
- * </div>
456
+ * The id of group `(group: GroupItem) => string | number`
457
+ *
458
+ * Default:
459
+ *
460
+ * `(group) => group.id`
461
+ *
469
462
  * @since 10.19.0
470
463
  */
471
464
  groupGetId: (group: GroupItem) => number | string;
@@ -490,9 +483,9 @@ export interface SelectOptionRendererProps extends SelectOptionProps {
490
483
  }
491
484
  export interface FieldSelectComponentProps<Value = FieldSelectValueType, OptionItem = FieldSelectOptionItem, GroupItem = FieldSelectGroupItem> extends FormFieldValueComponentProps<Value>, Partial<OptionList<OptionItem>>, Omit<SelectProps, 'onClear' | 'onSearch' | 'error' | 'children'> {
492
485
  /**
493
- * Callback for each entry in <Code>options</Code> to define relation to
494
- * group in <Code>optgroups</Code>
495
- * <Code>{'(option: OptionItem) => string | number'}</Code>
486
+ * Callback for each entry in `options` to define relation to
487
+ * group in `optgroups`
488
+ * `(option: OptionItem) => string | number`
496
489
  * @since 10.19.0
497
490
  * */
498
491
  getGroup?: (option: OptionItem) => number | string;
@@ -501,28 +494,23 @@ export interface FieldSelectComponentProps<Value = FieldSelectValueType, OptionI
501
494
  */
502
495
  groupGetId?: (group: GroupItem) => number | string;
503
496
  /**
504
- * <div>
505
- * The display label of a group
506
- * <Code>{'(group: GroupItem) => string'}</Code>
507
- * </div>
508
- * <br />
509
- * <div>
510
- * Default:
511
- * <Code>{'(group: GroupItem) => group.label || group.name'}</Code>
512
- * </div>
497
+ * The display label of a group
498
+ * `(group: GroupItem) => string`
499
+ *
500
+ * Default:
501
+ * `(group: GroupItem) => group.label || group.name`
513
502
  * @since 10.19.0
514
503
  */
515
504
  groupGetLabel?: (group: GroupItem) => string;
516
505
  /**
517
- * Callback for rendering header for each entry in <Code>optgroups</Code>
518
- * <Code>{'(group: GroupItem) => React.ReactNode'}</Code>
506
+ * Callback for rendering header for each entry in `optgroups`
507
+ * `(group: GroupItem) => React.ReactNode`
519
508
  * @since 10.19.0
520
509
  */
521
510
  groupHeaderRenderer?: (group: GroupItem) => React.ReactNode;
522
511
  /**
523
- * If nothing is selected, suggest this option. From{' '}
524
- * <Code>{'Select.Option suggested'}</Code>.
525
- * <Code>{'(option: OptionItem) => boolean'}</Code>
512
+ * If nothing is selected, suggest this option. From `Select.Option suggested`.
513
+ * `(option: OptionItem) => boolean`
526
514
  * @since 10.19.0
527
515
  */
528
516
  isSuggestedOption?: (option: OptionItem) => boolean;
@@ -532,8 +520,8 @@ export interface FieldSelectComponentProps<Value = FieldSelectValueType, OptionI
532
520
  */
533
521
  optgroups?: GroupItem[];
534
522
  /**
535
- * Callback for rendering each <Code>option</Code>
536
- * <Code>{'(option: OptionItem) => React.ReactNode'}</Code>
523
+ * Callback for rendering each `option`
524
+ * `(option: OptionItem) => React.ReactNode`
537
525
  * @since 10.19.0
538
526
  */
539
527
  optionRenderer?: (option: OptionItem, props?: SelectOptionRendererProps) => React.ReactNode;
@@ -552,8 +540,8 @@ export interface FieldSelectComponentProps<Value = FieldSelectValueType, OptionI
552
540
  */
553
541
  onSearch?: false | SelectProps['onSearch'];
554
542
  /**
555
- * <div>Customize how search works</div>
556
- * <Code>{'(query: string, value: string) => boolean'}</Code>
543
+ * Customize how search works
544
+ * `(query: string, value: string) => boolean`
557
545
  * @since 10.19.0
558
546
  */
559
547
  searchComparator?: (query: string, value: string) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Form.types.js","names":[],"sources":["../../src/Form/Form.types.ts"],"sourcesContent":["import type {\n FieldHelperProps,\n FieldInputProps,\n FieldMetaProps as FormikFieldMetaProps,\n FieldValidator,\n FormikConfig,\n} from 'formik'\nimport type React from 'react'\nimport type { CheckboxProps } from '../Checkbox/Checkbox.types'\nimport type { DateSelectProps } from '../DateSelect'\nimport type { GroupSelectProps } from '../GroupSelect/GroupSelect.types'\nimport type { InputProps } from '../Input/Input.types'\nimport type { MultiSelectProps } from '../MultiSelect/MultiSelect.types'\nimport type {\n CurrencyInputProps,\n InputValue as BaseNumberInputValueType,\n Locale,\n NumberInputProps,\n} from '../NumberInput/NumberInput.types'\nimport type { PillSelectProps } from '../PillSelect/PillSelect.types'\nimport type {\n SelectButtonProps,\n SelectOptionProps,\n SelectProps,\n} from '../Select/Select.types'\nimport type { TextAreaProps } from '../TextArea/TextArea.types'\nimport type { TextEditorProps } from '../TextEditor'\nimport type { TieredSelectProps } from '../TieredSelect/TieredSelect.types'\nimport type { TooltipProps } from '../Tooltip/Tooltip.types'\nimport type { Props } from '../_utils/types'\n\nexport type ValueInArray<V> = V[keyof V]\nexport type View = 'create' | 'read' | 'update'\nexport type Layout = 'wxp' | 'traditional'\n\nexport interface FormContextAPI {\n /**\n * @since 10.19.0\n */\n different: boolean\n /**\n * @since 10.19.0\n */\n disabled: boolean\n /**\n * @since 10.19.0\n */\n enableReinitialize?: boolean\n /**\n * @since 10.19.0\n */\n setFieldDifferent: (key: string, different: boolean) => void\n\n /**\n * A <a href=\"https://github.com/jquense/yup\">Yup</a> object schema to\n * validate all values.\n * <CodeBlock>\n * {`Yup.object().shape({\n * input_name: Yup.mixed().required()\n * })`}\n * </CodeBlock>\n * This is a great way to get error messages into the component. In\n * addition, if using Yup for required, those fields will automatically\n * get the required asterisk and highlight error.\n * @since 10.19.0\n */\n validationSchema?: FormikConfig<unknown>['validationSchema']\n\n /**\n * Toggle between modern and traditional form styles. Leave blank for the\n * modern label-above layout.\n * @since 10.19.0\n */\n variant: Layout\n\n /**\n * Determines show or edit state of form.\n * @default 'create'\n * @since 10.19.0\n */\n view: View\n}\n\ninterface FieldMetaProps<Value>\n extends Omit<FormikFieldMetaProps<Value>, 'error'> {\n /**\n * @since 10.19.0\n */\n disabled: boolean\n /**\n * @since 10.19.0\n */\n error: boolean\n /**\n * @since 10.19.0\n */\n required: boolean\n /**\n * @since 10.19.0\n */\n view: View\n}\n\nexport interface FieldConfig {\n /**\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * @since 10.19.0\n */\n error?: boolean | string\n /**\n * @since 10.19.0\n */\n getId?: (item: any) => string | number\n /**\n * @since 10.19.0\n */\n name: string\n /**\n * @since 10.19.0\n */\n required?: boolean\n /**\n * @since 10.19.0\n */\n validate?: FieldValidator\n /**\n * @since 10.19.0\n */\n view?: View\n}\n\nexport interface FormFieldAPI<Value> {\n /**\n * @since 10.19.0\n */\n input: FieldInputProps<Value>\n /**\n * @since 10.19.0\n */\n helpers: {\n setValue: (\n value: Value,\n shouldValidate?: boolean,\n shouldMarkDifferent?: boolean\n ) => void\n setTouched: FieldHelperProps<Value>['setTouched']\n setError: FieldHelperProps<Value>['setError']\n }\n\n /**\n * @since 10.19.0\n */\n messages: {\n error?: string\n }\n /**\n * @since 10.19.0\n */\n meta: FieldMetaProps<Value>\n}\n\nexport interface FormProps<Values> extends Partial<FormikConfig<Values>> {\n /**\n * @since 10.19.0\n */\n children: React.ReactNode\n\n /**\n * Enable a browser confirmation about losing of unsaved data when the\n * form values are visually different from the initial values. Uses\n * `window.onbeforeunload` and `window.confirm` for dialogs(Modal, Tearsheet).\n * **Requires `onSubmit` to return a promise to remove onbeforeunload.**\n * @a11y To prevent accidental data loss, it is recommended to enable.\n * @default false\n */\n enableConfirmNavigation?: boolean\n\n /**\n * Disable all fields at once.\n * @default false\n */\n disabled?: boolean\n\n /**\n * Submit the form. A promise is required to notify `Form` to make state changes like toggling `isSubmitting` and resetting `enableConfirmNavigation` (removing `window.onbeforeunload`) in the component.\n\n - Recommended: `onSubmit` returns a promise, it will wait for `onSuccess`.\n - Ok: `onSubmit` function is `async` and it returns undefined, it will always be considered a success.\n - Caution: `onSubmit` function is synchronous and it returns undefined, it will never reset certain states.\n\n A `button type='submit'` inside the `Form.Form` component (`form` tag) will trigger submission. If any validations fail, the submission will not continue.\n\n @example\n function(values, actions) {\n return new Promise(\n async function(onSuccess, onError) {\n const success = await _network(values)\n\n if (success) {\n return onSuccess('Successful Server Response')\n } else {\n actions.setFieldError('text', 'Example Error Message')\n return onError('Failed Server Response')\n }\n }\n )\n }\n\n */\n // TODO breaking change found v11 24-5-13\n // Our Partial<> usage above allows optional onSubmit,\n // even though Formik requires onSubmit. Keep ? for backwards compat.\n onSubmit?: FormikConfig<Values>['onSubmit']\n\n /**\n * Toggle between modern and traditional form styles. Leave blank for the modern label-above layout.\n *\n */\n variant?: Layout\n\n /**\n * Determines show or edit state of form.\n * @default 'create'\n */\n view?: View\n}\n\nexport type FormFieldValueComponentProps<Value = any> = {\n field: FormFieldAPI<Value>\n}\n\nexport type ComponentWithFieldProp<\n Value,\n Props extends FormFieldValueComponentProps<Value>\n> =\n | React.FunctionComponent<Props>\n | React.ForwardRefExoticComponent<Props>\n | ((p: Props) => React.ReactNode)\n\nexport interface BaseFieldProps<\n Value,\n ComponentProps extends FormFieldValueComponentProps<Value>\n> {\n /**\n * Customize the input component, either a single component for all views\n * or an object with the keys of the views to render on that particular\n * view. This input component will receive the <Code>field</Code> prop.\n * If using TypeScript, these components will need to extend a specific\n * type from Core React, read more about the{' '}\n * <a href=\"#typescript-and-as-prop-components\">props per view</a>.\n * <br />\n * <br />\n * One of:\n * <br />\n * <Code>ReactComponent</Code>or\n * <Code>\n * {\n * '{ read: ReactComponent, create: ReactComponent, update: ReactComponent }'\n * }\n * </Code>\n * @since 10.19.0\n */\n as?:\n | ComponentWithFieldProp<Value, ComponentProps>\n | { [V in View]: ComponentWithFieldProp<Value, ComponentProps> }\n\n /**\n * A subcomponent to render on a particular view.\n * <br />\n * <br />\n * One or all of:\n * <br />\n * <Code>Form.X.Create, Form.X.Read, Form.X.Update</Code>\n * @since 10.19.0\n */\n children?: ((field: FormFieldAPI<Value>) => React.ReactNode) | React.ReactNode\n\n /**\n * Starting location of column. For traditional variant, this does not exist\n * and is not necessary.\n * @since 10.19.0\n * */\n colStart?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12\n\n /**\n * Width of column. For traditional variant, will be either 6 or 12.\n * @default 6\n * @since 10.19.0\n */\n colWidth?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12\n /**\n * @since 10.19.0\n */\n ['data-qa']?: string\n\n /**\n * Specify disabled. Field disabled replaces the overall Form disabled state.\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * @since 10.19.0\n */\n error?: boolean | string\n /**\n * @since 10.19.0\n */\n label?: string\n /**\n * @since 11.25.0\n */\n description?: React.ReactNode\n /**\n * Key path in store. Accepts <Code>bracket[notation]</Code> or{' '}\n * <Code>dot.notation</Code>.\n * @since 10.19.0\n */\n name: string\n\n /**\n * The required asterisk if not using Yup <Code>required</Code>\n * <CodeBlock>\n * {`<Form\n * validationSchema={Yup.object().shape({\n * input_name: Yup.mixed().required(),\n * })}>`}\n * </CodeBlock>\n * @since 10.19.0\n */\n required?: boolean\n\n /**\n * @since 10.19.0\n */\n tooltip?: TooltipProps['overlay']\n\n /**\n * The validate function from Formik for single field validation.\n * <CodeBlock>\n * {`(value: Value = any) => undefined | string | Promise<Value>`}\n * </CodeBlock>\n * @since 10.19.0\n */\n validate?: FieldValidator\n\n /**\n * Determines show or edit state of field.\n * @since 10.19.0\n */\n view?: View\n}\n\nexport interface TraditionalBaseFieldProps<\n Value,\n ComponentProps extends FormFieldValueComponentProps<Value>\n> extends Omit<BaseFieldProps<Value, ComponentProps>, 'colWidth' | 'colStart'> {\n /**\n * @since 10.19.0\n */\n colWidth?: 6 | 12\n}\n\nexport interface FormFieldProps<Value>\n extends Omit<\n BaseFieldProps<Value, FormFieldValueComponentProps<Value>>,\n 'children'\n > {\n /**\n * @since 10.19.0\n */\n children?:\n | React.ReactElement<\n BaseFieldProps<Value, FormFieldValueComponentProps<Value>>\n >\n | React.ReactElement<\n BaseFieldProps<Value, FormFieldValueComponentProps<Value>>\n >[]\n}\n\nexport type OptionList<OptionShape = any> = {\n /**\n * The id of an option\n * @since 10.19.0\n * @default (option: OptionItem) => option.id\n */\n getId: (option: OptionShape) => string | number\n\n /**\n * <div>\n * The display label of an option\n * <Code>{'(option: OptionItem) => string'}</Code>\n * </div>\n * <br />\n * <div>\n * Default:\n * <Code>{'(option: OptionItem) => option.label || option.name'}</Code>\n * </div>\n * @since 10.19.0\n */\n getLabel: (option: OptionShape) => string\n\n /**\n * @since 10.19.0\n */\n options?: OptionShape[]\n}\n\nexport interface FormErrorBannerProps {\n /**\n * @since 10.19.0\n */\n i18nScope?: string\n /**\n * @since 10.19.0\n */\n item: string\n}\n\n// MAKE\n\nexport type ViewFieldProps<\n Value,\n FieldTypeProps extends FormFieldProps<Value>,\n ComponentProps extends FormFieldValueComponentProps<Value>\n> = Partial<Omit<FieldTypeProps, 'children'>> & {\n /**\n * @since 10.19.0\n */\n children?: BaseFieldProps<Value, ComponentProps>['children']\n}\n\n// TEXT\n\nexport type FieldTextValueType = string\n\nexport interface FieldTextComponentProps<Value = FieldTextValueType>\n extends FormFieldValueComponentProps<Value>,\n InputProps {}\nexport interface FormTextProps<Value = FieldTextValueType>\n extends FormFieldProps<Value>,\n Omit<InputProps, 'name' | 'children' | 'error'> {}\n\n// NUMBER\n\nexport type FieldNumberValueType = BaseNumberInputValueType\n\nexport interface FieldNumberComponentProps<Value = FieldNumberValueType>\n extends FormFieldValueComponentProps<Value>,\n NumberInputProps {\n /**\n * A string with a BCP 47 language tag or an array of such strings which specifies number formatting.\n * @defaultValue en-US\n * @since 10.19.0\n */\n locale?: Locale\n}\n\nexport interface FormNumberProps<Value = FieldNumberValueType>\n extends FormFieldProps<Value>,\n Omit<NumberInputProps, 'name' | 'children' | 'error'> {}\n\n// CURRENCY\n\nexport type FieldCurrencyValueType = BaseNumberInputValueType\n\nexport interface FieldCurrencyComponentProps<Value = FieldCurrencyValueType>\n extends FormFieldValueComponentProps<Value>,\n CurrencyInputProps {}\n\nexport interface FormCurrencyProps<Value = FieldCurrencyValueType>\n extends FormFieldProps<Value>,\n Omit<CurrencyInputProps, 'name' | 'children' | 'error'> {}\n\n// DATE\nexport type FieldDateValueType = null | string | Date\n\nexport interface FieldDateComponentProps<Value = FieldDateValueType>\n extends FormFieldValueComponentProps<Value>,\n DateSelectProps {}\n\nexport interface FormDateProps<Value = FieldDateValueType>\n extends FormFieldProps<Value>,\n Omit<DateSelectProps, 'error'> {}\n\n// CHECKBOX\n\nexport type FieldCheckboxValueType = boolean\n\nexport interface FieldCheckboxComponentProps<Value = FieldCheckboxValueType>\n extends FormFieldValueComponentProps<Value>,\n CheckboxProps {\n /**\n * Next to checkbox label\n * @since 11.25.0\n */\n inlineLabel?: string\n /**\n * @since 10.19.0\n */\n i18nScope?: string\n /**\n * @since 11.25.0\n */\n tooltip?: TooltipProps['overlay']\n /**\n * @since 11.25.0\n */\n hasRequiredMark?: boolean\n}\n\nexport interface FormCheckboxProps<Value = FieldCheckboxValueType>\n extends FormFieldProps<Value>,\n Omit<CheckboxProps, 'name' | 'error' | 'children'> {\n /**\n * Next to checkbox label\n * @since 11.25.0\n */\n inlineLabel?: string\n /**\n * Below checkbox description\n * @since 11.25.0\n */\n inlineDescription?: React.ReactNode\n /**\n * @since 10.19.0\n */\n i18nScope?: string\n}\n\n// TEXTAREA\n\nexport type FieldTextAreaValueType = string\n\nexport interface FieldTextAreaComponentProps<Value = FieldTextAreaValueType>\n extends FormFieldValueComponentProps<Value>,\n TextAreaProps {}\nexport interface FormTextAreaProps<Value = FieldTextAreaValueType>\n extends FormFieldProps<Value>,\n Omit<TextAreaProps, 'name' | 'error' | 'children'> {}\n\n// RICHTEXT\n\nexport type FieldRichTextValueType = string\n\nexport interface FieldRichTextComponentProps<Value = FieldRichTextValueType>\n extends FormFieldValueComponentProps<Value>,\n TextEditorProps {}\n\nexport interface FormRichTextProps<Value = FieldRichTextValueType>\n extends Omit<FormFieldProps<Value>, 'error'>,\n TextEditorProps {}\n\n// RADIO BUTTONS\n\nexport type FieldRadioButtonsValueType = any\n\nexport interface FieldRadioButtonsComponentProps<\n Value = FieldRadioButtonsValueType\n> extends FormFieldValueComponentProps<Value>,\n Partial<OptionList<Value>>,\n Pick<Props, 'className' | 'style'> {\n /**\n * @since 10.19.0\n */\n isDisabledOption?: (option: Value) => boolean\n}\n\nexport interface FormRadioButtonsProps<Value = FieldRadioButtonsValueType>\n extends FormFieldProps<Value>,\n Partial<OptionList<Value>>,\n Pick<Props, 'className' | 'style'>,\n Pick<FieldRadioButtonsComponentProps, 'isDisabledOption'> {}\n\n// CHECKBOXES\n\nexport type FieldCheckboxesValueType = any[]\n\nexport interface FieldCheckboxesComponentProps<Value = FieldCheckboxesValueType>\n extends FormFieldValueComponentProps<Value>,\n Partial<OptionList<ValueInArray<Value>>>,\n Pick<Props, 'className' | 'style'> {\n /**\n * @since 10.19.0\n */\n isDisabledOption?: (option: Value) => boolean\n /**\n * @since 10.19.0\n */\n isIndeterminateOption?: (option: Value) => boolean\n}\n\nexport interface FormCheckboxesProps<Value = FieldCheckboxesValueType>\n extends FormFieldProps<Value>,\n Partial<OptionList<ValueInArray<Value>>>,\n Pick<Props, 'className' | 'style'>,\n Pick<\n FieldCheckboxesComponentProps,\n 'isDisabledOption' | 'isIndeterminateOption'\n > {}\n\n// SELECT\n\nexport type FieldSelectValueType = any\nexport type FieldSelectOptionItem = FieldSelectValueType\nexport type FieldSelectGroupItem = any\nexport type FieldSelectGroupHeader = FieldSelectGroupItem & {\n isGroupHeader: boolean\n}\n\nexport interface GroupedOptionsConfig<OptionItem, GroupItem>\n extends OptionList<OptionItem> {\n /**\n * @since 10.19.0\n */\n comparator?: (query: string, value: string) => boolean\n /**\n * @since 10.19.0\n */\n getGroup: (option: OptionItem) => number | string\n /**\n * <div>\n * The id of group{' '}\n * <Code>{'(group: GroupItem) => string | number'}</Code>\n * </div>\n * <br />\n * <div>\n * Default:\n * <Code>{'(group) => group.id'}</Code>\n * </div>\n * @since 10.19.0\n */\n groupGetId: (group: GroupItem) => number | string\n /**\n * @since 10.19.0\n */\n optgroups?: GroupItem[]\n /**\n * @since 10.19.0\n */\n value?: OptionItem\n}\n\nexport interface SelectOptionRendererProps extends SelectOptionProps {\n /**\n * @since 12.13.0\n */\n getId: OptionList<FieldSelectOptionItem>['getId']\n\n /**\n * @since 12.13.0\n */\n getLabel: OptionList<FieldSelectOptionItem>['getLabel']\n}\n\nexport interface FieldSelectComponentProps<\n Value = FieldSelectValueType,\n OptionItem = FieldSelectOptionItem,\n GroupItem = FieldSelectGroupItem\n> extends FormFieldValueComponentProps<Value>,\n Partial<OptionList<OptionItem>>,\n Omit<SelectProps, 'onClear' | 'onSearch' | 'error' | 'children'> {\n /**\n * Callback for each entry in <Code>options</Code> to define relation to\n * group in <Code>optgroups</Code>\n * <Code>{'(option: OptionItem) => string | number'}</Code>\n * @since 10.19.0\n * */\n getGroup?: (option: OptionItem) => number | string\n /**\n * @since 10.19.0\n */\n groupGetId?: (group: GroupItem) => number | string\n\n /**\n * <div>\n * The display label of a group\n * <Code>{'(group: GroupItem) => string'}</Code>\n * </div>\n * <br />\n * <div>\n * Default:\n * <Code>{'(group: GroupItem) => group.label || group.name'}</Code>\n * </div>\n * @since 10.19.0\n */\n groupGetLabel?: (group: GroupItem) => string\n\n /**\n * Callback for rendering header for each entry in <Code>optgroups</Code>\n * <Code>{'(group: GroupItem) => React.ReactNode'}</Code>\n * @since 10.19.0\n */\n groupHeaderRenderer?: (group: GroupItem) => React.ReactNode\n\n /**\n * If nothing is selected, suggest this option. From{' '}\n * <Code>{'Select.Option suggested'}</Code>.\n * <Code>{'(option: OptionItem) => boolean'}</Code>\n * @since 10.19.0\n */\n isSuggestedOption?: (option: OptionItem) => boolean\n\n /**\n * Array of available option groups\n * @since 10.19.0\n */\n optgroups?: GroupItem[]\n\n /**\n * Callback for rendering each <Code>option</Code>\n * <Code>{'(option: OptionItem) => React.ReactNode'}</Code>\n * @since 10.19.0\n */\n optionRenderer?: (\n option: OptionItem,\n props?: SelectOptionRendererProps\n ) => React.ReactNode\n /**\n * @since 10.19.0\n */\n onBlur?: (e: React.FocusEvent<HTMLDivElement>) => void\n\n /**\n * Callback for when cleared. Default enabled, has clear icon.\n * @since 10.19.0\n */\n onClear?: false | SelectButtonProps['onClear']\n\n /**\n * Callback for when searching. Default enabled, has seach bar in menu.\n * @since 10.19.0\n */\n onSearch?: false | SelectProps['onSearch']\n\n /**\n * <div>Customize how search works</div>\n * <Code>{'(query: string, value: string) => boolean'}</Code>\n * @since 10.19.0\n */\n searchComparator?: (query: string, value: string) => boolean\n}\nexport interface FormSelectProps<\n Value = FieldSelectValueType,\n OptionItem = FieldSelectOptionItem,\n GroupItem = FieldSelectGroupItem\n> extends FormFieldProps<Value>,\n Partial<OptionList<OptionItem>>,\n Pick<\n FieldSelectComponentProps<Value, OptionItem, GroupItem>,\n | 'getGroup'\n | 'groupGetId'\n | 'groupGetLabel'\n | 'groupHeaderRenderer'\n | 'isSuggestedOption'\n | 'onBlur'\n | 'onClear'\n | 'optgroups'\n | 'onSearch'\n | 'optionRenderer'\n | 'searchComparator'\n >,\n Omit<\n SelectProps,\n 'onClear' | 'onSearch' | 'error' | 'children' | 'label'\n > {}\n\n// PILL SELECT\n\nexport type FieldPillSelectValueType = any\n\ninterface PillSelectCommon\n extends Omit<PillSelectProps, 'children' | 'onClear' | 'error' | 'value'> {\n /**\n * @since 10.19.0\n */\n onClear?: false | PillSelectProps['onClear']\n}\n\nexport interface FieldPillSelectComponentProps<Value = FieldPillSelectValueType>\n extends FormFieldValueComponentProps<Value>,\n PillSelectCommon {}\n\nexport interface FormPillSelectProps<Value = FieldPillSelectValueType>\n extends FormFieldProps<Value>,\n PillSelectCommon {}\n\n// MULTISELECT\n\nexport type FieldMultiSelectValueType = any[]\n\ninterface MultiSelectCommon<Value>\n extends Partial<OptionList<ValueInArray<Value>>>,\n Omit<MultiSelectProps, 'options' | 'getLabel' | 'getId' | 'error'> {}\n\nexport interface FieldMultiSelectComponentProps<\n Value = FieldMultiSelectValueType\n> extends FormFieldValueComponentProps<Value>,\n MultiSelectCommon<Value> {}\n\nexport interface FormMultiSelectProps<Value = FieldMultiSelectValueType>\n extends FormFieldProps<Value>,\n MultiSelectCommon<Value> {}\n\n// GROUP SELECT\n\nexport type FieldGroupSelectValueType = any[]\n\ninterface GroupSelectCommon<Value>\n extends Partial<OptionList<Value[keyof Value]>>,\n Omit<GroupSelectProps, 'options' | 'getLabel' | 'getId' | 'error'> {}\n\nexport interface FieldGroupSelectComponentProps<\n Value = FieldGroupSelectValueType\n> extends FormFieldValueComponentProps<Value>,\n GroupSelectCommon<Value> {}\n\nexport interface FormGroupSelectProps<Value = FieldGroupSelectValueType>\n extends FormFieldProps<Value>,\n GroupSelectCommon<Value> {}\n\n// TIERED SELECT\n\nexport type FieldTieredSelectValueType = any[]\n\ninterface TieredSelectCommon<Value>\n extends Partial<OptionList<Value[keyof Value]>>,\n Omit<\n TieredSelectProps,\n 'options' | 'getLabel' | 'getId' | 'error' | 'children'\n > {}\n\nexport interface FieldTieredSelectComponentProps<\n Value = FieldTieredSelectValueType\n> extends FormFieldValueComponentProps<Value>,\n TieredSelectCommon<Value> {}\n\nexport interface FormTieredSelectProps<Value = FieldTieredSelectValueType>\n extends FormFieldProps<Value>,\n TieredSelectCommon<Value> {}\n"],"mappings":""}
1
+ {"version":3,"file":"Form.types.js","names":[],"sources":["../../src/Form/Form.types.ts"],"sourcesContent":["import type {\n FieldHelperProps,\n FieldInputProps,\n FieldMetaProps as FormikFieldMetaProps,\n FieldValidator,\n FormikConfig,\n} from 'formik'\nimport type React from 'react'\nimport type { CheckboxProps } from '../Checkbox/Checkbox.types'\nimport type { DateSelectProps } from '../DateSelect'\nimport type { GroupSelectProps } from '../GroupSelect/GroupSelect.types'\nimport type { InputProps } from '../Input/Input.types'\nimport type { MultiSelectProps } from '../MultiSelect/MultiSelect.types'\nimport type {\n CurrencyInputProps,\n InputValue as BaseNumberInputValueType,\n Locale,\n NumberInputProps,\n} from '../NumberInput/NumberInput.types'\nimport type { PillSelectProps } from '../PillSelect/PillSelect.types'\nimport type {\n SelectButtonProps,\n SelectOptionProps,\n SelectProps,\n} from '../Select/Select.types'\nimport type { TextAreaProps } from '../TextArea/TextArea.types'\nimport type { TextEditorProps } from '../TextEditor'\nimport type { TieredSelectProps } from '../TieredSelect/TieredSelect.types'\nimport type { TooltipProps } from '../Tooltip/Tooltip.types'\nimport type { Props } from '../_utils/types'\n\nexport type ValueInArray<V> = V[keyof V]\nexport type View = 'create' | 'read' | 'update'\nexport type Layout = 'wxp' | 'traditional'\n\nexport interface FormContextAPI {\n /**\n * @since 10.19.0\n */\n different: boolean\n /**\n * @since 10.19.0\n */\n disabled: boolean\n /**\n * @since 10.19.0\n */\n enableReinitialize?: boolean\n /**\n * @since 10.19.0\n */\n setFieldDifferent: (key: string, different: boolean) => void\n\n /**\n * A [Yup](https://github.com/jquense/yup) object schema to\n * validate all values.\n * ```\n * {`Yup.object().shape({\n * input_name: Yup.mixed().required()\n * })`}\n * ```\n * This is a great way to get error messages into the component. In\n * addition, if using Yup for required, those fields will automatically\n * get the required asterisk and highlight error.\n * @since 10.19.0\n */\n validationSchema?: FormikConfig<unknown>['validationSchema']\n\n /**\n * Toggle between modern and traditional form styles. Leave blank for the\n * modern label-above layout.\n * @since 10.19.0\n */\n variant: Layout\n\n /**\n * Determines show or edit state of form.\n * @default 'create'\n * @since 10.19.0\n */\n view: View\n}\n\ninterface FieldMetaProps<Value>\n extends Omit<FormikFieldMetaProps<Value>, 'error'> {\n /**\n * @since 10.19.0\n */\n disabled: boolean\n /**\n * @since 10.19.0\n */\n error: boolean\n /**\n * @since 10.19.0\n */\n required: boolean\n /**\n * @since 10.19.0\n */\n view: View\n}\n\nexport interface FieldConfig {\n /**\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * @since 10.19.0\n */\n error?: boolean | string\n /**\n * @since 10.19.0\n */\n getId?: (item: any) => string | number\n /**\n * @since 10.19.0\n */\n name: string\n /**\n * @since 10.19.0\n */\n required?: boolean\n /**\n * @since 10.19.0\n */\n validate?: FieldValidator\n /**\n * @since 10.19.0\n */\n view?: View\n}\n\nexport interface FormFieldAPI<Value> {\n /**\n * @since 10.19.0\n */\n input: FieldInputProps<Value>\n /**\n * @since 10.19.0\n */\n helpers: {\n setValue: (\n value: Value,\n shouldValidate?: boolean,\n shouldMarkDifferent?: boolean\n ) => void\n setTouched: FieldHelperProps<Value>['setTouched']\n setError: FieldHelperProps<Value>['setError']\n }\n\n /**\n * @since 10.19.0\n */\n messages: {\n error?: string\n }\n /**\n * @since 10.19.0\n */\n meta: FieldMetaProps<Value>\n}\n\nexport interface FormProps<Values> extends Partial<FormikConfig<Values>> {\n /**\n * @since 10.19.0\n */\n children: React.ReactNode\n\n /**\n * Enable a browser confirmation about losing of unsaved data when the\n * form values are visually different from the initial values. Uses\n * `window.onbeforeunload` and `window.confirm` for dialogs(Modal, Tearsheet).\n * **Requires `onSubmit` to return a promise to remove onbeforeunload.**\n * @a11y To prevent accidental data loss, it is recommended to enable.\n * @default false\n */\n enableConfirmNavigation?: boolean\n\n /**\n * Disable all fields at once.\n * @default false\n */\n disabled?: boolean\n\n /**\n * Submit the form. A promise is required to notify `Form` to make state changes like toggling `isSubmitting` and resetting `enableConfirmNavigation` (removing `window.onbeforeunload`) in the component.\n\n - Recommended: `onSubmit` returns a promise, it will wait for `onSuccess`.\n - Ok: `onSubmit` function is `async` and it returns undefined, it will always be considered a success.\n - Caution: `onSubmit` function is synchronous and it returns undefined, it will never reset certain states.\n\n A `button type='submit'` inside the `Form.Form` component (`form` tag) will trigger submission. If any validations fail, the submission will not continue.\n\n @example\n function(values, actions) {\n return new Promise(\n async function(onSuccess, onError) {\n const success = await _network(values)\n\n if (success) {\n return onSuccess('Successful Server Response')\n } else {\n actions.setFieldError('text', 'Example Error Message')\n return onError('Failed Server Response')\n }\n }\n )\n }\n\n */\n // TODO breaking change found v11 24-5-13\n // Our Partial<> usage above allows optional onSubmit,\n // even though Formik requires onSubmit. Keep ? for backwards compat.\n onSubmit?: FormikConfig<Values>['onSubmit']\n\n /**\n * Toggle between modern and traditional form styles. Leave blank for the modern label-above layout.\n *\n */\n variant?: Layout\n\n /**\n * Determines show or edit state of form.\n * @default 'create'\n */\n view?: View\n}\n\nexport type FormFieldValueComponentProps<Value = any> = {\n field: FormFieldAPI<Value>\n}\n\nexport type ComponentWithFieldProp<\n Value,\n Props extends FormFieldValueComponentProps<Value>\n> =\n | React.FunctionComponent<Props>\n | React.ForwardRefExoticComponent<Props>\n | ((p: Props) => React.ReactNode)\n\nexport interface BaseFieldProps<\n Value,\n ComponentProps extends FormFieldValueComponentProps<Value>\n> {\n /**\n * Customize the input component, either a single component for all views\n * or an object with the keys of the views to render on that particular\n * view. This input component will receive the `field` prop.\n * If using TypeScript, these components will need to extend a specific\n * type from Core React, read more about the [props per view](#typescript-ans-as-prop-components)\n *\n * One of:\n *\n * `ReactComponent` or\n * `\n * {\n * '{ read: ReactComponent, create: ReactComponent, update: ReactComponent }'\n * }\n * `\n * @since 10.19.0\n */\n as?:\n | ComponentWithFieldProp<Value, ComponentProps>\n | { [V in View]: ComponentWithFieldProp<Value, ComponentProps> }\n\n /**\n * A subcomponent to render on a particular view.\n *\n * One or all of:\n *\n * `Form.X.Create, Form.X.Read, Form.X.Update`\n * @since 10.19.0\n */\n children?: ((field: FormFieldAPI<Value>) => React.ReactNode) | React.ReactNode\n\n /**\n * Starting location of column. For traditional variant, this does not exist\n * and is not necessary.\n * @since 10.19.0\n * */\n colStart?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12\n\n /**\n * Width of column. For traditional variant, will be either 6 or 12.\n * @default 6\n * @since 10.19.0\n */\n colWidth?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12\n /**\n * @since 10.19.0\n */\n ['data-qa']?: string\n\n /**\n * Specify disabled. Field disabled replaces the overall Form disabled state.\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * @since 10.19.0\n */\n error?: boolean | string\n /**\n * @since 10.19.0\n */\n label?: string\n /**\n * @since 11.25.0\n */\n description?: React.ReactNode\n /**\n * Key path in store. Accepts `bracket[notation]` or `dot.notation`.\n * @since 10.19.0\n */\n name: string\n\n /**\n * The required asterisk if not using Yup `required`\n * ```\n * <Form\n * validationSchema={Yup.object().shape({\n * input_name: Yup.mixed().required(),\n * })}\n * >\n * ```\n * @since 10.19.0\n */\n required?: boolean\n\n /**\n * @since 10.19.0\n */\n tooltip?: TooltipProps['overlay']\n\n /**\n * The validate function from Formik for single field validation.\n * ```\n * (value: Value = any) => undefined | string | Promise<Value>\n * ```\n * @since 10.19.0\n */\n validate?: FieldValidator\n\n /**\n * Determines show or edit state of field.\n * @since 10.19.0\n */\n view?: View\n}\n\nexport interface TraditionalBaseFieldProps<\n Value,\n ComponentProps extends FormFieldValueComponentProps<Value>\n> extends Omit<BaseFieldProps<Value, ComponentProps>, 'colWidth' | 'colStart'> {\n /**\n * @since 10.19.0\n */\n colWidth?: 6 | 12\n}\n\nexport interface FormFieldProps<Value>\n extends Omit<\n BaseFieldProps<Value, FormFieldValueComponentProps<Value>>,\n 'children'\n > {\n /**\n * @since 10.19.0\n */\n children?:\n | React.ReactElement<\n BaseFieldProps<Value, FormFieldValueComponentProps<Value>>\n >\n | React.ReactElement<\n BaseFieldProps<Value, FormFieldValueComponentProps<Value>>\n >[]\n}\n\nexport type OptionList<OptionShape = any> = {\n /**\n * The id of an option\n * @since 10.19.0\n * @default (option: OptionItem) => option.id\n */\n getId: (option: OptionShape) => string | number\n\n /**\n * The display label of an option\n *\n * `(option: OptionItem) => string`\n *\n * Default:\n *\n * `(option: OptionItem) => option.label || option.name`\n *\n * @since 10.19.0\n */\n getLabel: (option: OptionShape) => string\n\n /**\n * @since 10.19.0\n */\n options?: OptionShape[]\n}\n\nexport interface FormErrorBannerProps {\n /**\n * @since 10.19.0\n */\n i18nScope?: string\n /**\n * @since 10.19.0\n */\n item: string\n}\n\n// MAKE\n\nexport type ViewFieldProps<\n Value,\n FieldTypeProps extends FormFieldProps<Value>,\n ComponentProps extends FormFieldValueComponentProps<Value>\n> = Partial<Omit<FieldTypeProps, 'children'>> & {\n /**\n * @since 10.19.0\n */\n children?: BaseFieldProps<Value, ComponentProps>['children']\n}\n\n// TEXT\n\nexport type FieldTextValueType = string\n\nexport interface FieldTextComponentProps<Value = FieldTextValueType>\n extends FormFieldValueComponentProps<Value>,\n InputProps {}\nexport interface FormTextProps<Value = FieldTextValueType>\n extends FormFieldProps<Value>,\n Omit<InputProps, 'name' | 'children' | 'error'> {}\n\n// NUMBER\n\nexport type FieldNumberValueType = BaseNumberInputValueType\n\nexport interface FieldNumberComponentProps<Value = FieldNumberValueType>\n extends FormFieldValueComponentProps<Value>,\n NumberInputProps {\n /**\n * A string with a BCP 47 language tag or an array of such strings which specifies number formatting.\n * @defaultValue en-US\n * @since 10.19.0\n */\n locale?: Locale\n}\n\nexport interface FormNumberProps<Value = FieldNumberValueType>\n extends FormFieldProps<Value>,\n Omit<NumberInputProps, 'name' | 'children' | 'error'> {}\n\n// CURRENCY\n\nexport type FieldCurrencyValueType = BaseNumberInputValueType\n\nexport interface FieldCurrencyComponentProps<Value = FieldCurrencyValueType>\n extends FormFieldValueComponentProps<Value>,\n CurrencyInputProps {}\n\nexport interface FormCurrencyProps<Value = FieldCurrencyValueType>\n extends FormFieldProps<Value>,\n Omit<CurrencyInputProps, 'name' | 'children' | 'error'> {}\n\n// DATE\nexport type FieldDateValueType = null | string | Date\n\nexport interface FieldDateComponentProps<Value = FieldDateValueType>\n extends FormFieldValueComponentProps<Value>,\n DateSelectProps {}\n\nexport interface FormDateProps<Value = FieldDateValueType>\n extends FormFieldProps<Value>,\n Omit<DateSelectProps, 'error'> {}\n\n// CHECKBOX\n\nexport type FieldCheckboxValueType = boolean\n\nexport interface FieldCheckboxComponentProps<Value = FieldCheckboxValueType>\n extends FormFieldValueComponentProps<Value>,\n CheckboxProps {\n /**\n * Next to checkbox label\n * @since 11.25.0\n */\n inlineLabel?: string\n /**\n * @since 10.19.0\n */\n i18nScope?: string\n /**\n * @since 11.25.0\n */\n tooltip?: TooltipProps['overlay']\n /**\n * @since 11.25.0\n */\n hasRequiredMark?: boolean\n}\n\nexport interface FormCheckboxProps<Value = FieldCheckboxValueType>\n extends FormFieldProps<Value>,\n Omit<CheckboxProps, 'name' | 'error' | 'children'> {\n /**\n * Next to checkbox label\n * @since 11.25.0\n */\n inlineLabel?: string\n /**\n * Below checkbox description\n * @since 11.25.0\n */\n inlineDescription?: React.ReactNode\n /**\n * @since 10.19.0\n */\n i18nScope?: string\n}\n\n// TEXTAREA\n\nexport type FieldTextAreaValueType = string\n\nexport interface FieldTextAreaComponentProps<Value = FieldTextAreaValueType>\n extends FormFieldValueComponentProps<Value>,\n TextAreaProps {}\nexport interface FormTextAreaProps<Value = FieldTextAreaValueType>\n extends FormFieldProps<Value>,\n Omit<TextAreaProps, 'name' | 'error' | 'children'> {}\n\n// RICHTEXT\n\nexport type FieldRichTextValueType = string\n\nexport interface FieldRichTextComponentProps<Value = FieldRichTextValueType>\n extends FormFieldValueComponentProps<Value>,\n TextEditorProps {}\n\nexport interface FormRichTextProps<Value = FieldRichTextValueType>\n extends Omit<FormFieldProps<Value>, 'error'>,\n TextEditorProps {}\n\n// RADIO BUTTONS\n\nexport type FieldRadioButtonsValueType = any\n\nexport interface FieldRadioButtonsComponentProps<\n Value = FieldRadioButtonsValueType\n> extends FormFieldValueComponentProps<Value>,\n Partial<OptionList<Value>>,\n Pick<Props, 'className' | 'style'> {\n /**\n * @since 10.19.0\n */\n isDisabledOption?: (option: Value) => boolean\n}\n\nexport interface FormRadioButtonsProps<Value = FieldRadioButtonsValueType>\n extends FormFieldProps<Value>,\n Partial<OptionList<Value>>,\n Pick<Props, 'className' | 'style'>,\n Pick<FieldRadioButtonsComponentProps, 'isDisabledOption'> {}\n\n// CHECKBOXES\n\nexport type FieldCheckboxesValueType = any[]\n\nexport interface FieldCheckboxesComponentProps<Value = FieldCheckboxesValueType>\n extends FormFieldValueComponentProps<Value>,\n Partial<OptionList<ValueInArray<Value>>>,\n Pick<Props, 'className' | 'style'> {\n /**\n * @since 10.19.0\n */\n isDisabledOption?: (option: Value) => boolean\n /**\n * @since 10.19.0\n */\n isIndeterminateOption?: (option: Value) => boolean\n}\n\nexport interface FormCheckboxesProps<Value = FieldCheckboxesValueType>\n extends FormFieldProps<Value>,\n Partial<OptionList<ValueInArray<Value>>>,\n Pick<Props, 'className' | 'style'>,\n Pick<\n FieldCheckboxesComponentProps,\n 'isDisabledOption' | 'isIndeterminateOption'\n > {}\n\n// SELECT\n\nexport type FieldSelectValueType = any\nexport type FieldSelectOptionItem = FieldSelectValueType\nexport type FieldSelectGroupItem = any\nexport type FieldSelectGroupHeader = FieldSelectGroupItem & {\n isGroupHeader: boolean\n}\n\nexport interface GroupedOptionsConfig<OptionItem, GroupItem>\n extends OptionList<OptionItem> {\n /**\n * @since 10.19.0\n */\n comparator?: (query: string, value: string) => boolean\n /**\n * @since 10.19.0\n */\n getGroup: (option: OptionItem) => number | string\n /**\n * The id of group `(group: GroupItem) => string | number`\n *\n * Default:\n *\n * `(group) => group.id`\n *\n * @since 10.19.0\n */\n groupGetId: (group: GroupItem) => number | string\n /**\n * @since 10.19.0\n */\n optgroups?: GroupItem[]\n /**\n * @since 10.19.0\n */\n value?: OptionItem\n}\n\nexport interface SelectOptionRendererProps extends SelectOptionProps {\n /**\n * @since 12.13.0\n */\n getId: OptionList<FieldSelectOptionItem>['getId']\n\n /**\n * @since 12.13.0\n */\n getLabel: OptionList<FieldSelectOptionItem>['getLabel']\n}\n\nexport interface FieldSelectComponentProps<\n Value = FieldSelectValueType,\n OptionItem = FieldSelectOptionItem,\n GroupItem = FieldSelectGroupItem\n> extends FormFieldValueComponentProps<Value>,\n Partial<OptionList<OptionItem>>,\n Omit<SelectProps, 'onClear' | 'onSearch' | 'error' | 'children'> {\n /**\n * Callback for each entry in `options` to define relation to\n * group in `optgroups`\n * `(option: OptionItem) => string | number`\n * @since 10.19.0\n * */\n getGroup?: (option: OptionItem) => number | string\n /**\n * @since 10.19.0\n */\n groupGetId?: (group: GroupItem) => number | string\n\n /**\n * The display label of a group\n * `(group: GroupItem) => string`\n *\n * Default:\n * `(group: GroupItem) => group.label || group.name`\n * @since 10.19.0\n */\n groupGetLabel?: (group: GroupItem) => string\n\n /**\n * Callback for rendering header for each entry in `optgroups`\n * `(group: GroupItem) => React.ReactNode`\n * @since 10.19.0\n */\n groupHeaderRenderer?: (group: GroupItem) => React.ReactNode\n\n /**\n * If nothing is selected, suggest this option. From `Select.Option suggested`.\n * `(option: OptionItem) => boolean`\n * @since 10.19.0\n */\n isSuggestedOption?: (option: OptionItem) => boolean\n\n /**\n * Array of available option groups\n * @since 10.19.0\n */\n optgroups?: GroupItem[]\n\n /**\n * Callback for rendering each `option`\n * `(option: OptionItem) => React.ReactNode`\n * @since 10.19.0\n */\n optionRenderer?: (\n option: OptionItem,\n props?: SelectOptionRendererProps\n ) => React.ReactNode\n /**\n * @since 10.19.0\n */\n onBlur?: (e: React.FocusEvent<HTMLDivElement>) => void\n\n /**\n * Callback for when cleared. Default enabled, has clear icon.\n * @since 10.19.0\n */\n onClear?: false | SelectButtonProps['onClear']\n\n /**\n * Callback for when searching. Default enabled, has seach bar in menu.\n * @since 10.19.0\n */\n onSearch?: false | SelectProps['onSearch']\n\n /**\n * Customize how search works\n * `(query: string, value: string) => boolean`\n * @since 10.19.0\n */\n searchComparator?: (query: string, value: string) => boolean\n}\nexport interface FormSelectProps<\n Value = FieldSelectValueType,\n OptionItem = FieldSelectOptionItem,\n GroupItem = FieldSelectGroupItem\n> extends FormFieldProps<Value>,\n Partial<OptionList<OptionItem>>,\n Pick<\n FieldSelectComponentProps<Value, OptionItem, GroupItem>,\n | 'getGroup'\n | 'groupGetId'\n | 'groupGetLabel'\n | 'groupHeaderRenderer'\n | 'isSuggestedOption'\n | 'onBlur'\n | 'onClear'\n | 'optgroups'\n | 'onSearch'\n | 'optionRenderer'\n | 'searchComparator'\n >,\n Omit<\n SelectProps,\n 'onClear' | 'onSearch' | 'error' | 'children' | 'label'\n > {}\n\n// PILL SELECT\n\nexport type FieldPillSelectValueType = any\n\ninterface PillSelectCommon\n extends Omit<PillSelectProps, 'children' | 'onClear' | 'error' | 'value'> {\n /**\n * @since 10.19.0\n */\n onClear?: false | PillSelectProps['onClear']\n}\n\nexport interface FieldPillSelectComponentProps<Value = FieldPillSelectValueType>\n extends FormFieldValueComponentProps<Value>,\n PillSelectCommon {}\n\nexport interface FormPillSelectProps<Value = FieldPillSelectValueType>\n extends FormFieldProps<Value>,\n PillSelectCommon {}\n\n// MULTISELECT\n\nexport type FieldMultiSelectValueType = any[]\n\ninterface MultiSelectCommon<Value>\n extends Partial<OptionList<ValueInArray<Value>>>,\n Omit<MultiSelectProps, 'options' | 'getLabel' | 'getId' | 'error'> {}\n\nexport interface FieldMultiSelectComponentProps<\n Value = FieldMultiSelectValueType\n> extends FormFieldValueComponentProps<Value>,\n MultiSelectCommon<Value> {}\n\nexport interface FormMultiSelectProps<Value = FieldMultiSelectValueType>\n extends FormFieldProps<Value>,\n MultiSelectCommon<Value> {}\n\n// GROUP SELECT\n\nexport type FieldGroupSelectValueType = any[]\n\ninterface GroupSelectCommon<Value>\n extends Partial<OptionList<Value[keyof Value]>>,\n Omit<GroupSelectProps, 'options' | 'getLabel' | 'getId' | 'error'> {}\n\nexport interface FieldGroupSelectComponentProps<\n Value = FieldGroupSelectValueType\n> extends FormFieldValueComponentProps<Value>,\n GroupSelectCommon<Value> {}\n\nexport interface FormGroupSelectProps<Value = FieldGroupSelectValueType>\n extends FormFieldProps<Value>,\n GroupSelectCommon<Value> {}\n\n// TIERED SELECT\n\nexport type FieldTieredSelectValueType = any[]\n\ninterface TieredSelectCommon<Value>\n extends Partial<OptionList<Value[keyof Value]>>,\n Omit<\n TieredSelectProps,\n 'options' | 'getLabel' | 'getId' | 'error' | 'children'\n > {}\n\nexport interface FieldTieredSelectComponentProps<\n Value = FieldTieredSelectValueType\n> extends FormFieldValueComponentProps<Value>,\n TieredSelectCommon<Value> {}\n\nexport interface FormTieredSelectProps<Value = FieldTieredSelectValueType>\n extends FormFieldProps<Value>,\n TieredSelectCommon<Value> {}\n"],"mappings":""}
@@ -5,11 +5,11 @@ import { spacing } from '../_styles/spacing';
5
5
  import { formWrapper } from './Form.styles';
6
6
  export var StyledFormikForm = /*#__PURE__*/styled(FormikForm).withConfig({
7
7
  displayName: "StyledFormikForm",
8
- componentId: "core-12_14_0__sc-1ks7m0l-0"
8
+ componentId: "core-12_16_0__sc-1ks7m0l-0"
9
9
  })(["", ""], formWrapper);
10
10
  export var StyledTraditionalFormLabel = /*#__PURE__*/styled(Typography).withConfig({
11
11
  displayName: "StyledTraditionalFormLabel",
12
- componentId: "core-12_14_0__sc-1ks7m0l-1"
12
+ componentId: "core-12_16_0__sc-1ks7m0l-1"
13
13
  })(["display:inline-block;word-break:break-word;word-wrap:break-word;", ""], function (_ref) {
14
14
  var $view = _ref.$view;
15
15
  return ['create', 'update'].includes($view) && css(["padding-top:", "px;"], spacing.sm);
@@ -3,7 +3,7 @@ import { spacing } from '../_styles/spacing';
3
3
  var shimmerAnimation = /*#__PURE__*/keyframes(["0%{background-position:-1000px 500px;}100%{background-position:1000px 500px;}"]);
4
4
  export var PlaceholderItem = /*#__PURE__*/styled.div.withConfig({
5
5
  displayName: "PlaceholderItem",
6
- componentId: "core-12_14_0__sc-1nja302-0"
6
+ componentId: "core-12_16_0__sc-1nja302-0"
7
7
  })(["width:100%;min-height:24px;padding:10px 0;animation:", " 3s ease-out infinite;background:radial-gradient( ellipse at center,", " 0%,", " 50% );background-size:2000px 2000px;border-radius:", "px;"], shimmerAnimation, function (props) {
8
8
  return props.$startGradientColor;
9
9
  }, function (props) {
@@ -11,7 +11,7 @@ export var PlaceholderItem = /*#__PURE__*/styled.div.withConfig({
11
11
  }, spacing.sm);
12
12
  export var RoundPlaceholderItem = /*#__PURE__*/styled(PlaceholderItem).withConfig({
13
13
  displayName: "RoundPlaceholderItem",
14
- componentId: "core-12_14_0__sc-1nja302-1"
14
+ componentId: "core-12_16_0__sc-1nja302-1"
15
15
  })(["width:", ";height:", ";border-radius:50%;"], function (props) {
16
16
  return props.$small ? '24px' : '40px';
17
17
  }, function (props) {
@@ -75,7 +75,7 @@ var getRowGutterVertical = function getRowGutterVertical(gutterY, breakpoint) {
75
75
  };
76
76
  export var StyledGridRow = /*#__PURE__*/styled.div.withConfig({
77
77
  displayName: "StyledGridRow",
78
- componentId: "core-12_14_0__sc-8pinsp-0"
78
+ componentId: "core-12_16_0__sc-8pinsp-0"
79
79
  })(["", " display:flex;flex-wrap:wrap;"], function (_ref) {
80
80
  var $gutterX = _ref.$gutterX,
81
81
  $gutterY = _ref.$gutterY;
@@ -87,7 +87,7 @@ export var StyledGridRow = /*#__PURE__*/styled.div.withConfig({
87
87
  });
88
88
  export var StyledGridCol = /*#__PURE__*/styled.div.withConfig({
89
89
  displayName: "StyledGridCol",
90
- componentId: "core-12_14_0__sc-8pinsp-1"
90
+ componentId: "core-12_16_0__sc-8pinsp-1"
91
91
  })(["flex-shrink:0;width:100%;max-width:100%;", ""], function (_ref2) {
92
92
  var $span = _ref2.$span,
93
93
  $offset = _ref2.$offset,
@@ -3,7 +3,7 @@ import { MultiSelect } from '../MultiSelect/MultiSelect';
3
3
  import { colors } from '../_styles/colors';
4
4
  export var StyledGroupSelectOption = /*#__PURE__*/styled(MultiSelect.Option).withConfig({
5
5
  displayName: "StyledGroupSelectOption",
6
- componentId: "core-12_14_0__sc-u5gu8j-0"
6
+ componentId: "core-12_16_0__sc-u5gu8j-0"
7
7
  })(["", ""], function (_ref) {
8
8
  var disabled = _ref.disabled;
9
9
  return disabled && css(["color:", ";cursor:not-allowed;a,a:hover{color:", ";text-decoration:none;}"], colors.gray70, colors.gray70);
@@ -16,6 +16,6 @@ export function getInputStyles(_ref) {
16
16
  }
17
17
  export var StyledInput = /*#__PURE__*/styled.input.withConfig({
18
18
  displayName: "StyledInput",
19
- componentId: "core-12_14_0__sc-12sjkxg-0"
19
+ componentId: "core-12_16_0__sc-12sjkxg-0"
20
20
  })(["", " padding:0 ", "px;&::-ms-clear{display:none;}&[type='number']{-moz-appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;margin:0;}}"], getInputStyles, spacing.md);
21
21
  //# sourceMappingURL=Input.styles.js.map
@@ -17,6 +17,6 @@ function getLinkColors(_ref) {
17
17
  }
18
18
  export var StyledLink = /*#__PURE__*/styled.a.withConfig({
19
19
  displayName: "StyledLink",
20
- componentId: "core-12_14_0__sc-jfowrl-0"
20
+ componentId: "core-12_16_0__sc-jfowrl-0"
21
21
  })(["text-decoration:underline;&:hover{cursor:pointer;text-decoration:underline;}", " &.focus,&:focus{", ";}", ""], focusable, getBorderRadius('md'), getLinkColors);
22
22
  //# sourceMappingURL=Link.styles.js.map
@@ -3,19 +3,19 @@ import { colors } from '../_styles/colors';
3
3
  import { spacing } from '../_styles/spacing';
4
4
  export var StyledListPageMain = /*#__PURE__*/styled.div.withConfig({
5
5
  displayName: "StyledListPageMain",
6
- componentId: "core-12_14_0__sc-1eq7fzi-0"
6
+ componentId: "core-12_16_0__sc-1eq7fzi-0"
7
7
  })(["display:flex;flex:1 0 auto;flex-direction:column;min-width:0;padding:", "px ", "px;width:100%;"], spacing.lg, spacing.xl);
8
8
  export var StyledListPageBanner = /*#__PURE__*/styled.div.withConfig({
9
9
  displayName: "StyledListPageBanner",
10
- componentId: "core-12_14_0__sc-1eq7fzi-1"
10
+ componentId: "core-12_16_0__sc-1eq7fzi-1"
11
11
  })(["flex:0 0 auto;"]);
12
12
  export var StyledListPageToolHeader = /*#__PURE__*/styled.div.withConfig({
13
13
  displayName: "StyledListPageToolHeader",
14
- componentId: "core-12_14_0__sc-1eq7fzi-2"
14
+ componentId: "core-12_16_0__sc-1eq7fzi-2"
15
15
  })(["flex:0 0 auto;padding-bottom:", "px;"], spacing.lg);
16
16
  export var StyledListPageControl = /*#__PURE__*/styled.div.withConfig({
17
17
  displayName: "StyledListPageControl",
18
- componentId: "core-12_14_0__sc-1eq7fzi-3"
18
+ componentId: "core-12_16_0__sc-1eq7fzi-3"
19
19
  })(["flex:", ";", " ", ""], function (_ref) {
20
20
  var $block = _ref.$block;
21
21
  return $block ? '1 0 auto' : '0 0 auto';
@@ -32,18 +32,18 @@ export var StyledListPageControl = /*#__PURE__*/styled.div.withConfig({
32
32
  });
33
33
  export var StyledListPageContentControls = /*#__PURE__*/styled.div.withConfig({
34
34
  displayName: "StyledListPageContentControls",
35
- componentId: "core-12_14_0__sc-1eq7fzi-4"
35
+ componentId: "core-12_16_0__sc-1eq7fzi-4"
36
36
  })(["align-items:center;display:flex;flex:0 0 auto;justify-content:space-between;padding:", "px 0;", " + ", "{margin-left:", "px;}"], spacing.md, StyledListPageControl, StyledListPageControl, spacing.lg);
37
37
  export var StyledListPageBody = /*#__PURE__*/styled.div.withConfig({
38
38
  displayName: "StyledListPageBody",
39
- componentId: "core-12_14_0__sc-1eq7fzi-5"
39
+ componentId: "core-12_16_0__sc-1eq7fzi-5"
40
40
  })(["display:flex;flex:1 0 auto;padding-top:", "px;"], spacing.md);
41
41
  export var StyledListPageBodyContent = /*#__PURE__*/styled.div.withConfig({
42
42
  displayName: "StyledListPageBodyContent",
43
- componentId: "core-12_14_0__sc-1eq7fzi-6"
43
+ componentId: "core-12_16_0__sc-1eq7fzi-6"
44
44
  })(["flex:1 1 auto;"]);
45
45
  export var StyledListPage = /*#__PURE__*/styled.div.withConfig({
46
46
  displayName: "StyledListPage",
47
- componentId: "core-12_14_0__sc-1eq7fzi-7"
47
+ componentId: "core-12_16_0__sc-1eq7fzi-7"
48
48
  })(["display:flex;flex-direction:row;height:100%;width:100%;", " + ", "{padding-top:", "px;}", " + ", "{border-top-color:", ";border-top-style:solid;border-top-width:1px;}", " + ", ",", " + ", "{border-top-color:", ";border-top-style:solid;border-top-width:1px;}", " + ", "{padding-top:0;}"], StyledListPageBanner, StyledListPageToolHeader, spacing.lg, StyledListPageContentControls, StyledListPageContentControls, colors.gray85, StyledListPageToolHeader, StyledListPageContentControls, StyledListPageToolHeader, StyledListPageBody, colors.gray85, StyledListPageContentControls, StyledListPageBody);
49
49
  //# sourceMappingURL=ListPage.styles.js.map
@@ -1,17 +1,17 @@
1
1
  import styled, { css, keyframes } from 'styled-components';
2
2
  import { colors } from '../_styles/colors';
3
3
  var backgroundSize = 8;
4
- var color1 = colors.blue50;
5
- var color2 = colors.blue40;
4
+ var color1 = colors.blue70;
5
+ var color2 = colors.blue60;
6
6
  export var loaderTransitionDuration = 250;
7
7
  var movingStripes = /*#__PURE__*/keyframes(["from{background-position:", "px 0;}100%{background-position:0 ", "px;}"], backgroundSize, backgroundSize);
8
8
  export var StyledLoader = /*#__PURE__*/styled.div.withConfig({
9
9
  displayName: "StyledLoader",
10
- componentId: "core-12_14_0__sc-wgvjj9-0"
10
+ componentId: "core-12_16_0__sc-wgvjj9-0"
11
11
  })(["display:block;height:100%;left:0;min-width:12px;position:absolute;transition:width ", "ms ease-out;top:0;"], loaderTransitionDuration);
12
12
  export var StyledGradient = /*#__PURE__*/styled.div.withConfig({
13
13
  displayName: "StyledGradient",
14
- componentId: "core-12_14_0__sc-wgvjj9-1"
14
+ componentId: "core-12_16_0__sc-wgvjj9-1"
15
15
  })(["height:100%;", ""], function (_ref) {
16
16
  var $animated = _ref.$animated;
17
17
  return $animated ? css(["animation:", " 0.5s linear infinite;background-image:linear-gradient( 45deg,", " 26%,", " 25%,", " 51%,", " 50%,", " 76%,", " 75%,", " );background-size:", "px ", "px;"], movingStripes, color1, color2, color2, color1, color1, color2, color2, backgroundSize, backgroundSize) : css(["background-color:", ";"], colors.blue50);
@@ -1 +1 @@
1
- {"version":3,"file":"Loader.styles.js","names":["styled","css","keyframes","colors","backgroundSize","color1","blue50","color2","blue40","loaderTransitionDuration","movingStripes","StyledLoader","div","withConfig","displayName","componentId","StyledGradient","_ref","$animated"],"sources":["../../src/Loader/Loader.styles.ts"],"sourcesContent":["import styled, { css, keyframes } from 'styled-components'\nimport { colors } from '../_styles/colors'\n\nconst backgroundSize = 8\n\nconst color1 = colors.blue50\n\nconst color2 = colors.blue40\n\nexport const loaderTransitionDuration = 250\n\nconst movingStripes = keyframes`\n from {\n background-position: ${backgroundSize}px 0;\n }\n 100% {\n background-position: 0 ${backgroundSize}px;\n }\n`\n\nexport const StyledLoader = styled.div`\n display: block;\n height: 100%;\n left: 0;\n min-width: 12px; // TODO one-off value\n position: absolute;\n transition: width ${loaderTransitionDuration}ms ease-out; // TODO animation palette\n top: 0;\n`\n\nexport const StyledGradient = styled.div<{ $animated: boolean }>`\n height: 100%;\n\n ${({ $animated }) =>\n $animated\n ? css`\n animation: ${movingStripes} 0.5s linear infinite;\n background-image: linear-gradient(\n 45deg,\n ${color1} 26%,\n ${color2} 25%,\n ${color2} 51%,\n ${color1} 50%,\n ${color1} 76%,\n ${color2} 75%,\n ${color2}\n );\n background-size: ${backgroundSize}px ${backgroundSize}px;\n `\n : css`\n background-color: ${colors.blue50};\n `}\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,EAAEC,SAAS,QAAQ,mBAAmB;AAC1D,SAASC,MAAM,QAAQ,mBAAmB;AAE1C,IAAMC,cAAc,GAAG,CAAC;AAExB,IAAMC,MAAM,GAAGF,MAAM,CAACG,MAAM;AAE5B,IAAMC,MAAM,GAAGJ,MAAM,CAACK,MAAM;AAE5B,OAAO,IAAMC,wBAAwB,GAAG,GAAG;AAE3C,IAAMC,aAAa,gBAAGR,SAAS,6EAEJE,cAAc,EAGZA,cAAc,CAE1C;AAED,OAAO,IAAMO,YAAY,gBAAGX,MAAM,CAACY,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,kHAMhBN,wBAAwB,CAE7C;AAED,OAAO,IAAMO,cAAc,gBAAGhB,MAAM,CAACY,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yBAGpC,UAAAE,IAAA;EAAA,IAAGC,SAAS,GAAAD,IAAA,CAATC,SAAS;EAAA,OACZA,SAAS,GACLjB,GAAG,8KACYS,aAAa,EAGtBL,MAAM,EACNE,MAAM,EACNA,MAAM,EACNF,MAAM,EACNA,MAAM,EACNE,MAAM,EACNA,MAAM,EAESH,cAAc,EAAMA,cAAc,IAEvDH,GAAG,6BACmBE,MAAM,CAACG,MAAM,CAClC;AAAA,EACR"}
1
+ {"version":3,"file":"Loader.styles.js","names":["styled","css","keyframes","colors","backgroundSize","color1","blue70","color2","blue60","loaderTransitionDuration","movingStripes","StyledLoader","div","withConfig","displayName","componentId","StyledGradient","_ref","$animated","blue50"],"sources":["../../src/Loader/Loader.styles.ts"],"sourcesContent":["import styled, { css, keyframes } from 'styled-components'\nimport { colors } from '../_styles/colors'\n\nconst backgroundSize = 8\n\nconst color1 = colors.blue70\n\nconst color2 = colors.blue60\n\nexport const loaderTransitionDuration = 250\n\nconst movingStripes = keyframes`\n from {\n background-position: ${backgroundSize}px 0;\n }\n 100% {\n background-position: 0 ${backgroundSize}px;\n }\n`\n\nexport const StyledLoader = styled.div`\n display: block;\n height: 100%;\n left: 0;\n min-width: 12px; // TODO one-off value\n position: absolute;\n transition: width ${loaderTransitionDuration}ms ease-out; // TODO animation palette\n top: 0;\n`\n\nexport const StyledGradient = styled.div<{ $animated: boolean }>`\n height: 100%;\n\n ${({ $animated }) =>\n $animated\n ? css`\n animation: ${movingStripes} 0.5s linear infinite;\n background-image: linear-gradient(\n 45deg,\n ${color1} 26%,\n ${color2} 25%,\n ${color2} 51%,\n ${color1} 50%,\n ${color1} 76%,\n ${color2} 75%,\n ${color2}\n );\n background-size: ${backgroundSize}px ${backgroundSize}px;\n `\n : css`\n background-color: ${colors.blue50};\n `}\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,EAAEC,SAAS,QAAQ,mBAAmB;AAC1D,SAASC,MAAM,QAAQ,mBAAmB;AAE1C,IAAMC,cAAc,GAAG,CAAC;AAExB,IAAMC,MAAM,GAAGF,MAAM,CAACG,MAAM;AAE5B,IAAMC,MAAM,GAAGJ,MAAM,CAACK,MAAM;AAE5B,OAAO,IAAMC,wBAAwB,GAAG,GAAG;AAE3C,IAAMC,aAAa,gBAAGR,SAAS,6EAEJE,cAAc,EAGZA,cAAc,CAE1C;AAED,OAAO,IAAMO,YAAY,gBAAGX,MAAM,CAACY,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,kHAMhBN,wBAAwB,CAE7C;AAED,OAAO,IAAMO,cAAc,gBAAGhB,MAAM,CAACY,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yBAGpC,UAAAE,IAAA;EAAA,IAAGC,SAAS,GAAAD,IAAA,CAATC,SAAS;EAAA,OACZA,SAAS,GACLjB,GAAG,8KACYS,aAAa,EAGtBL,MAAM,EACNE,MAAM,EACNA,MAAM,EACNF,MAAM,EACNA,MAAM,EACNE,MAAM,EACNA,MAAM,EAESH,cAAc,EAAMA,cAAc,IAEvDH,GAAG,6BACmBE,MAAM,CAACgB,MAAM,CAClC;AAAA,EACR"}