@procore/core-react 11.33.0 → 12.0.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.
- package/README.md +7 -1
- package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
- package/dist/Avatar/Avatar.styles.js +5 -5
- package/dist/Avatar/Avatar.types.d.ts +1 -1
- package/dist/Avatar/Avatar.types.js.map +1 -1
- package/dist/AvatarStack/AvatarStack.styles.js +7 -7
- package/dist/Badge/Badge.styles.js +2 -2
- package/dist/Banner/Banner.d.ts +0 -5
- package/dist/Banner/Banner.js +11 -30
- package/dist/Banner/Banner.js.map +1 -1
- package/dist/Banner/Banner.styles.js +10 -20
- package/dist/Banner/Banner.styles.js.map +1 -1
- package/dist/Banner/Banner.types.d.ts +1 -5
- package/dist/Banner/Banner.types.js.map +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/Banner/index.js.map +1 -1
- package/dist/Box/Box.styles.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
- package/dist/Breadcrumbs/Breadcrumbs.types.d.ts +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.types.js.map +1 -1
- package/dist/Button/Button.styles.js +5 -5
- package/dist/Calendar/Calendar.d.ts +72 -0
- package/dist/Calendar/Calendar.js +81 -0
- package/dist/Calendar/Calendar.js.map +1 -1
- package/dist/Calendar/Calendar.styles.js +8 -8
- package/dist/Card/Card.styles.js +1 -1
- package/dist/Checkbox/Checkbox.js +3 -2
- package/dist/Checkbox/Checkbox.js.map +1 -1
- package/dist/Checkbox/Checkbox.styles.js +6 -6
- package/dist/Checkbox/CheckboxTooltip.d.ts +4 -0
- package/dist/Checkbox/CheckboxTooltip.js +26 -0
- package/dist/Checkbox/CheckboxTooltip.js.map +1 -0
- package/dist/ContactItem/ContactItem.styles.js +5 -5
- package/dist/Content/Content.styles.js +4 -4
- package/dist/Content/Content.styles.js.map +1 -1
- package/dist/DateInput/DateInput.styles.js +6 -6
- package/dist/DetailPage/DetailPage.styles.js +7 -7
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
- package/dist/Dropzone/Dropzone.js +1 -1
- package/dist/Dropzone/Dropzone.styles.js +9 -9
- package/dist/EmptyState/EmptyState.styles.js +6 -6
- package/dist/Field/Field.styles.js +3 -3
- package/dist/FileList/FileList.styles.js +4 -4
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
- package/dist/FileSelect/FileSelect.styles.js +2 -2
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
- package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
- package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
- package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
- package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
- package/dist/FileSelect/ThumbnailList/index.d.ts +1 -0
- package/dist/FileSelect/ThumbnailList/index.js.map +1 -1
- package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
- package/dist/FileSelect/TreeSource/TreeSource.types.d.ts +1 -1
- package/dist/FileSelect/TreeSource/TreeSource.types.js.map +1 -1
- package/dist/FileSelect/index.d.ts +1 -1
- package/dist/FileSelect/index.js.map +1 -1
- package/dist/FileSelect/storyHelpers.d.ts +2 -2
- package/dist/FileSelect/storyHelpers.js.map +1 -1
- package/dist/FileToken/FileToken.styles.js +4 -4
- package/dist/FilterToken/FilterToken.styles.js +2 -2
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.d.ts +1 -1
- package/dist/Form/Form.js +5 -4
- package/dist/Form/Form.js.map +1 -1
- package/dist/Form/Form.styles.d.ts +1 -5
- package/dist/Form/Form.styles.js +20 -33
- package/dist/Form/Form.styles.js.map +1 -1
- package/dist/Form/Form.types.d.ts +7 -1
- package/dist/Form/Form.types.js.map +1 -1
- package/dist/Form/StyledFormikForm.styles.d.ts +6 -0
- package/dist/Form/StyledFormikForm.styles.js +17 -0
- package/dist/Form/StyledFormikForm.styles.js.map +1 -0
- package/dist/Form/index.d.ts +3 -2
- package/dist/Form/index.js +2 -1
- package/dist/Form/index.js.map +1 -1
- package/dist/Grid/Grid.styles.js +2 -2
- package/dist/GroupSelect/GroupSelect.styles.js +1 -1
- package/dist/Input/Input.styles.js +1 -1
- package/dist/Link/Link.styles.js +1 -1
- package/dist/ListPage/ListPage.styles.js +8 -8
- package/dist/Loader/Loader.styles.js +2 -2
- package/dist/Menu/index.d.ts +1 -1
- package/dist/Menu/index.js.map +1 -1
- package/dist/MenuImperative/MenuImperative.styles.js +10 -10
- package/dist/Modal/Modal.js +1 -1
- package/dist/Modal/Modal.js.map +1 -1
- package/dist/Modal/Modal.styles.js +13 -13
- package/dist/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/MultiSelect/MultiSelect.styles.js +6 -6
- package/dist/MultiSelect/MultiSelect.types.d.ts +4 -4
- package/dist/MultiSelect/MultiSelect.types.js.map +1 -1
- package/dist/MultiSelect/index.d.ts +1 -1
- package/dist/MultiSelect/index.js.map +1 -1
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- package/dist/Notation/Notation.js +1 -1
- package/dist/NumberInput/NumberInput.js +2 -3
- package/dist/NumberInput/NumberInput.js.map +1 -1
- package/dist/NumberInput/NumberInput.styles.js +7 -7
- package/dist/NumberInput/NumberInput.types.d.ts +15 -11
- package/dist/NumberInput/NumberInput.types.js.map +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js.map +1 -1
- package/dist/Overlay/OverlayArrow.styles.js +1 -1
- package/dist/OverlayTrigger/OverlayTrigger.js +0 -4
- package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
- package/dist/PageLayout/PageLayout.d.ts +53 -0
- package/dist/PageLayout/PageLayout.js +63 -8
- package/dist/PageLayout/PageLayout.js.map +1 -1
- package/dist/PageLayout/PageLayout.styles.d.ts +1 -4
- package/dist/PageLayout/PageLayout.styles.js +26 -26
- package/dist/PageLayout/PageLayout.styles.js.map +1 -1
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js.map +1 -1
- package/dist/Panel/Panel.styles.js +11 -11
- package/dist/Pill/Pill.styles.js +2 -2
- package/dist/PillSelect/PillSelect.styles.js +4 -4
- package/dist/PillSelect/index.d.ts +1 -1
- package/dist/PillSelect/index.js.map +1 -1
- package/dist/Popover/Popover.styles.js +2 -2
- package/dist/Portal/Portal.styles.js +1 -1
- package/dist/ProgressBar/ProgressBar.styles.js +2 -2
- package/dist/RadioButton/RadioButton.styles.js +3 -3
- package/dist/Required/Required.styles.js +3 -3
- package/dist/Search/Search.styles.js +5 -5
- package/dist/Section/Section.styles.js +6 -6
- package/dist/SegmentedController/SegmentedController.styles.js +4 -4
- package/dist/Select/Select.styles.js +7 -7
- package/dist/Semantic/Semantic.styles.js +9 -9
- package/dist/Slider/Slider.styles.js +5 -5
- package/dist/Spinner/Spinner.styles.js +7 -7
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +37 -37
- package/dist/SuperSelect/index.d.ts +1 -1
- package/dist/SuperSelect/index.js.map +1 -1
- package/dist/Switch/Switch.styles.js +4 -4
- package/dist/Table/Table.d.ts +5 -5
- package/dist/Table/Table.js.map +1 -1
- package/dist/Table/Table.styles.js +28 -28
- package/dist/Table/Table.types.d.ts +2 -2
- package/dist/Table/Table.types.js.map +1 -1
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js.map +1 -1
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tabs.styles.js +8 -8
- package/dist/Tearsheet/Tearsheet.js +1 -1
- package/dist/Tearsheet/Tearsheet.js.map +1 -1
- package/dist/Tearsheet/Tearsheet.styles.js +5 -5
- package/dist/TextArea/TextArea.styles.js +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
- package/dist/Thumbnail/Thumbnail.styles.js +17 -17
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
- package/dist/TieredSelect/TieredSelect.styles.js +9 -9
- package/dist/TieredSelect/index.d.ts +1 -1
- package/dist/TieredSelect/index.js.map +1 -1
- package/dist/Tile/Tile.styles.js +10 -10
- package/dist/Tile/Tile.styles.js.map +1 -1
- package/dist/Title/Title.styles.js +7 -7
- package/dist/Toast/Toast.styles.js +3 -3
- package/dist/Toast/index.d.ts +1 -1
- package/dist/Toast/index.js.map +1 -1
- package/dist/ToggleButton/ToggleButton.styles.js +1 -1
- package/dist/Token/Token.styles.js +3 -3
- package/dist/ToolHeader/ToolHeader.styles.js +6 -6
- package/dist/Tooltip/Tooltip.styles.js +2 -2
- package/dist/Tree/Tree.js.map +1 -1
- package/dist/Tree/Tree.styles.js +9 -9
- package/dist/Tree/Tree.types.d.ts +1 -1
- package/dist/Tree/Tree.types.js.map +1 -1
- package/dist/Tree/index.d.ts +1 -1
- package/dist/Tree/index.js.map +1 -1
- package/dist/Typeahead/Typeahead.styles.js +3 -3
- package/dist/Typography/Typography.js +4 -2
- package/dist/Typography/Typography.js.map +1 -1
- package/dist/Typography/Typography.styles.js +6 -3
- package/dist/Typography/Typography.styles.js.map +1 -1
- package/dist/Typography/Typography.table.story.js +2 -2
- package/dist/Typography/Typography.types.d.ts +5 -0
- package/dist/Typography/Typography.types.js.map +1 -1
- package/dist/Typography/index.d.ts +1 -1
- package/dist/Typography/index.js +1 -1
- package/dist/Typography/index.js.map +1 -1
- package/dist/_hooks/Anchor.d.ts +0 -15
- package/dist/_hooks/Anchor.js +1 -29
- package/dist/_hooks/Anchor.js.map +1 -1
- package/dist/_hooks/Buffer.d.ts +0 -19
- package/dist/_hooks/Buffer.js +1 -41
- package/dist/_hooks/Buffer.js.map +1 -1
- package/dist/_hooks/DateTime/index.d.ts +1 -1
- package/dist/_hooks/DateTime/index.js +1 -1
- package/dist/_hooks/DateTime/index.js.map +1 -1
- package/dist/_hooks/InjectedScript.d.ts +0 -18
- package/dist/_hooks/InjectedScript.js +1 -39
- package/dist/_hooks/InjectedScript.js.map +1 -1
- package/dist/_hooks/ListNavigation.d.ts +0 -35
- package/dist/_hooks/ListNavigation.js +1 -53
- package/dist/_hooks/ListNavigation.js.map +1 -1
- package/dist/_hooks/ResizeObserver.js +1 -5
- package/dist/_hooks/ResizeObserver.js.map +1 -1
- package/dist/_hooks/TextEntry.d.ts +1 -29
- package/dist/_hooks/TextEntry.js +1 -42
- package/dist/_hooks/TextEntry.js.map +1 -1
- package/dist/_hooks/Timer.d.ts +0 -19
- package/dist/_hooks/Timer.js +0 -38
- package/dist/_hooks/Timer.js.map +1 -1
- package/dist/_hooks/Trigger.d.ts +0 -20
- package/dist/_hooks/Trigger.js +1 -47
- package/dist/_hooks/Trigger.js.map +1 -1
- package/dist/_hooks/Visibility.d.ts +0 -18
- package/dist/_hooks/Visibility.js +1 -41
- package/dist/_hooks/Visibility.js.map +1 -1
- package/dist/_typedoc/Avatar/Avatar.types.json +22 -22
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +23 -23
- package/dist/_typedoc/Badge/Badge.types.json +6 -6
- package/dist/_typedoc/Banner/Banner.types.json +16 -16
- package/dist/_typedoc/Box/Box.types.json +68 -68
- package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +12 -12
- package/dist/_typedoc/Button/Button.types.json +12 -12
- package/dist/_typedoc/Calendar/Calendar.json +68 -0
- package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
- package/dist/_typedoc/Card/Card.types.json +6 -6
- package/dist/_typedoc/Checkbox/Checkbox.types.json +9 -9
- package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
- package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
- package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
- package/dist/_typedoc/DetailPage/DetailPage.types.json +4 -4
- package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +29 -29
- package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
- package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
- package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
- package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
- package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +11 -11
- package/dist/_typedoc/Flex/Flex.types.json +27 -27
- package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
- package/dist/_typedoc/Form/Form.types.json +746 -765
- package/dist/_typedoc/Grid/Grid.types.json +8 -8
- package/dist/_typedoc/GroupSelect/GroupSelect.types.json +53 -53
- package/dist/_typedoc/Input/Input.types.json +2 -2
- package/dist/_typedoc/Link/Link.types.json +4 -4
- package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
- package/dist/_typedoc/Menu/Menu.types.json +62 -62
- package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
- package/dist/_typedoc/Modal/Modal.types.json +41 -41
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +32 -32
- package/dist/_typedoc/Notation/Notation.types.json +4 -4
- package/dist/_typedoc/NumberInput/NumberInput.types.json +71 -88
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
- package/dist/_typedoc/PageLayout/PageLayout.json +36 -0
- package/dist/_typedoc/PageLayout/PageLayout.types.json +26 -26
- package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
- package/dist/_typedoc/Panel/Panel.types.json +27 -27
- package/dist/_typedoc/Pill/Pill.types.json +2 -2
- package/dist/_typedoc/PillSelect/PillSelect.types.json +47 -47
- package/dist/_typedoc/Popover/Popover.types.json +14 -14
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
- package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
- package/dist/_typedoc/Required/Required.types.json +5 -5
- package/dist/_typedoc/Search/Search.types.json +18 -18
- package/dist/_typedoc/Section/Section.types.json +14 -14
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
- package/dist/_typedoc/Select/Select.types.json +57 -57
- package/dist/_typedoc/Slider/Slider.types.json +6 -6
- package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
- package/dist/_typedoc/Switch/Switch.types.json +3 -3
- package/dist/_typedoc/Table/Table.types.json +99 -99
- package/dist/_typedoc/Tabs/Tabs.types.json +17 -17
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
- package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
- package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
- package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
- package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
- package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
- package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
- package/dist/_typedoc/Tile/Tile.types.json +30 -30
- package/dist/_typedoc/Title/Title.types.json +1 -1
- package/dist/_typedoc/Toast/Toast.types.json +4 -4
- package/dist/_typedoc/ToggleButton/ToggleButton.types.json +3 -3
- package/dist/_typedoc/Token/Token.types.json +4 -4
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
- package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
- package/dist/_typedoc/Tree/Tree.types.json +128 -128
- package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
- package/dist/_typedoc/Typography/Typography.types.json +18 -8
- package/dist/_typedoc/_utils/types.json +3 -3
- package/dist/_typedoc/deprecations.json +1 -1
- package/dist/_utils/closeWithConfirm.js.map +1 -0
- package/dist/_utils/propsTypedoc.d.ts +3 -1
- package/dist/_utils/propsTypedoc.js +2 -0
- package/dist/_utils/propsTypedoc.js.map +1 -1
- package/dist/index.d.ts +1 -5
- package/dist/index.js +4 -9
- package/dist/index.js.map +1 -1
- package/package.json +15 -5
- package/dist/Form/closeWithConfirm.js.map +0 -1
- package/dist/Sidebar/Sidebar.d.ts +0 -50
- package/dist/Sidebar/Sidebar.js +0 -117
- package/dist/Sidebar/Sidebar.js.map +0 -1
- package/dist/Sidebar/Sidebar.styles.d.ts +0 -9
- package/dist/Sidebar/Sidebar.styles.js +0 -38
- package/dist/Sidebar/Sidebar.styles.js.map +0 -1
- package/dist/Sidebar/index.d.ts +0 -1
- package/dist/Sidebar/index.js +0 -2
- package/dist/Sidebar/index.js.map +0 -1
- package/dist/_hooks/Analytics.d.ts +0 -36
- package/dist/_hooks/Analytics.js +0 -54
- package/dist/_hooks/Analytics.js.map +0 -1
- package/dist/_hooks/Autofocus.d.ts +0 -32
- package/dist/_hooks/Autofocus.js +0 -70
- package/dist/_hooks/Autofocus.js.map +0 -1
- package/dist/_hooks/BoundingRect.d.ts +0 -41
- package/dist/_hooks/BoundingRect.js +0 -90
- package/dist/_hooks/BoundingRect.js.map +0 -1
- package/dist/_hooks/Event.d.ts +0 -42
- package/dist/_hooks/Event.js +0 -83
- package/dist/_hooks/Event.js.map +0 -1
- package/dist/_utils/genericAnalyticsClient.d.ts +0 -25
- package/dist/_utils/genericAnalyticsClient.js +0 -46
- package/dist/_utils/genericAnalyticsClient.js.map +0 -1
- /package/dist/{Form → _utils}/closeWithConfirm.d.ts +0 -0
- /package/dist/{Form → _utils}/closeWithConfirm.js +0 -0
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"description": "",
|
|
11
11
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
12
12
|
"sourceFile": "packages/core-react/src/Typeahead/Typeahead.types.ts",
|
|
13
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
13
|
+
"sourceUrl": "https://github.com/procore/core/blob/2a86714/packages/core-react/src/Typeahead/Typeahead.types.ts#L15"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"name": "onChange",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"description": "",
|
|
21
21
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
22
22
|
"sourceFile": "packages/core-react/src/Typeahead/Typeahead.types.ts",
|
|
23
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
23
|
+
"sourceUrl": "https://github.com/procore/core/blob/2a86714/packages/core-react/src/Typeahead/Typeahead.types.ts#L19"
|
|
24
24
|
}
|
|
25
25
|
],
|
|
26
26
|
"description": ""
|
|
@@ -10,7 +10,17 @@
|
|
|
10
10
|
"description": "Change the HTML tag. This\n[prop is from styled-components](https://styled-components.com/docs/api#as-polymorphic-prop)\n__Warning__: If using TypeScript, it will not switch types and\nsome props may error. You can add `@ts-expect-error`.\nSee [styled-components issue](https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30117)",
|
|
11
11
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Change the HTML tag. This\n<a href=\"https://styled-components.com/docs/api#as-polymorphic-prop\">prop is from styled-components</a>\n<strong>Warning</strong>: If using TypeScript, it will not switch types and\nsome props may error. You can add <code>@ts-expect-error</code>.\nSee <a href=\"https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30117\">styled-components issue</a></p>\n</div><dl class=\"tsd-comment-tags\"><dt>default</dt><dd><p>'span'</p>\n</dd><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
12
12
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
13
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
13
|
+
"sourceUrl": "https://github.com/procore/core/blob/2a86714/packages/core-react/src/Typography/Typography.types.ts#L26"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "breakWord",
|
|
17
|
+
"required": false,
|
|
18
|
+
"type": "<span class=\"tsd-signature-type\">boolean</span>",
|
|
19
|
+
"typeDetail": "<span class=\"tsd-signature-type\">boolean</span>",
|
|
20
|
+
"description": "Enables word wrapping and breaking within the component",
|
|
21
|
+
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Enables word wrapping and breaking within the component</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>12.0.0</p>\n</dd></dl></div>",
|
|
22
|
+
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
23
|
+
"sourceUrl": "https://github.com/procore/core/blob/2a86714/packages/core-react/src/Typography/Typography.types.ts#L57"
|
|
14
24
|
},
|
|
15
25
|
{
|
|
16
26
|
"name": "children",
|
|
@@ -20,7 +30,7 @@
|
|
|
20
30
|
"description": "When children are a string or multiple elements, they will be wrapped\nby a `span`. When it is a single element, classnames will\nbe added to it instead",
|
|
21
31
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>When children are a string or multiple elements, they will be wrapped\nby a <code>span</code>. When it is a single element, classnames will\nbe added to it instead</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
22
32
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
23
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
33
|
+
"sourceUrl": "https://github.com/procore/core/blob/2a86714/packages/core-react/src/Typography/Typography.types.ts#L15"
|
|
24
34
|
},
|
|
25
35
|
{
|
|
26
36
|
"name": "className",
|
|
@@ -30,7 +40,7 @@
|
|
|
30
40
|
"description": "Additional classNames",
|
|
31
41
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional classNames</p>\n</div></div>",
|
|
32
42
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
33
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
43
|
+
"sourceUrl": "https://github.com/procore/core/blob/2a86714/packages/core-react/src/_utils/types.ts#L47"
|
|
34
44
|
},
|
|
35
45
|
{
|
|
36
46
|
"name": "color",
|
|
@@ -40,7 +50,7 @@
|
|
|
40
50
|
"description": "Changes font color, can be any of the `colors` object HSL Palette",
|
|
41
51
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Changes font color, can be any of the <code>colors</code> object HSL Palette</p>\n</div><dl class=\"tsd-comment-tags\"><dt>default</dt><dd><p>'gray15'</p>\n</dd><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
42
52
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
43
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
53
|
+
"sourceUrl": "https://github.com/procore/core/blob/2a86714/packages/core-react/src/Typography/Typography.types.ts#L33"
|
|
44
54
|
},
|
|
45
55
|
{
|
|
46
56
|
"name": "intent",
|
|
@@ -50,7 +60,7 @@
|
|
|
50
60
|
"description": "Changes the size of the font",
|
|
51
61
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Changes the size of the font</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
52
62
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
53
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
63
|
+
"sourceUrl": "https://github.com/procore/core/blob/2a86714/packages/core-react/src/Typography/Typography.types.ts#L39"
|
|
54
64
|
},
|
|
55
65
|
{
|
|
56
66
|
"name": "italic",
|
|
@@ -60,7 +70,7 @@
|
|
|
60
70
|
"description": "Applies `font-style: italic` if enabled",
|
|
61
71
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Applies <code>font-style: italic</code> if enabled</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
62
72
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
63
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
73
|
+
"sourceUrl": "https://github.com/procore/core/blob/2a86714/packages/core-react/src/Typography/Typography.types.ts#L45"
|
|
64
74
|
},
|
|
65
75
|
{
|
|
66
76
|
"name": "style",
|
|
@@ -70,7 +80,7 @@
|
|
|
70
80
|
"description": "Additional CSS styles",
|
|
71
81
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div></div>",
|
|
72
82
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
73
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
83
|
+
"sourceUrl": "https://github.com/procore/core/blob/2a86714/packages/core-react/src/_utils/types.ts#L52"
|
|
74
84
|
},
|
|
75
85
|
{
|
|
76
86
|
"name": "weight",
|
|
@@ -80,7 +90,7 @@
|
|
|
80
90
|
"description": "Changes font weight if it is supported in the design system",
|
|
81
91
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Changes font weight if it is supported in the design system</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
82
92
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
83
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
93
|
+
"sourceUrl": "https://github.com/procore/core/blob/2a86714/packages/core-react/src/Typography/Typography.types.ts#L51"
|
|
84
94
|
}
|
|
85
95
|
],
|
|
86
96
|
"description": ""
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"description": "",
|
|
11
11
|
"descriptionHtml": "",
|
|
12
12
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
13
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
13
|
+
"sourceUrl": "https://github.com/procore/core/blob/2a86714/packages/core-react/src/_utils/types.ts#L42"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"name": "className",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"description": "Additional classNames",
|
|
21
21
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional classNames</p>\n</div></div>",
|
|
22
22
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
23
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
23
|
+
"sourceUrl": "https://github.com/procore/core/blob/2a86714/packages/core-react/src/_utils/types.ts#L47"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"name": "style",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"description": "Additional CSS styles",
|
|
31
31
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div></div>",
|
|
32
32
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
33
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
33
|
+
"sourceUrl": "https://github.com/procore/core/blob/2a86714/packages/core-react/src/_utils/types.ts#L52"
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
36
|
"description": ""
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"interface":"BaseAvatarProps","property":"clickable","deprecatedSince":"TBD","message":"Reviewing for removal from system, prefer accessible `role` for interactive UI."},{"interface":"BaseAvatarProps","property":"size","deprecatedSince":"10.20.0","message":"\n\nSize \"xl\" has been deprecated and will be removed in a future version.\nPlease use \"lg\" instead of \"xl\".\n\n**Before**\n\n`<Avatar size=\"xl\" />`\n\n**After**\n\n`<Avatar size=\"lg\" />`\n"},{"interface":"BreadcrumbCrumbProps","property":"variant","deprecatedSince":"","message":"Handled by parent prop."},{"interface":"CalendarProps","property":"children","deprecatedSince":"11.6.0","message":"Subcomponents intended for internal library development. Export will be removed in a future release.\n\nAFTER\n```\n<Calendar onSelect />\n```\n"},{"interface":"CardProps","property":"level","deprecatedSince":"10.20.0","message":"\n\nThe `level` prop has been deprecated and will be removed in a future version.\nPlease use the `shadowStrength` prop instead.\n\n**Before**\n\n<Card level={20} />\n\n**After**\n\n<Card shadowStrength={2} />\n"},{"interface":"FileSelect","property":"FileSelect","deprecatedSince":"11.23.3\n\n","message":"\nThis component has been removed from the system. The File Select base component is now managed in documents-js-monorepo."},{"interface":"GridSourceProps","property":"icon","deprecatedSince":"","message":"String icon variant is deprecated, use the React components\ndirectly from the `@procore/core-icons/dist` package"},{"interface":"FileTreeProps","property":"icon","deprecatedSince":"","message":"String icon variant is deprecated, use the React components\ndirectly from the `@procore/core-icons/dist` package"},{"interface":"FieldCurrencyComponentProps","property":"locale","deprecatedSince":"10.27.0","message":"Remove this prop and NumberInput will use the locale of the nearest I18nProvider.\n"},{"interface":"FieldNumberComponentProps","property":"locale","deprecatedSince":"10.27.0","message":"Remove this prop and NumberInput will use the locale of the nearest I18nProvider.\n"},{"interface":"FieldRichTextComponentProps","property":"initialValue","deprecatedSince":"10.20.0","message":"\n`initialValue` has been deprecated and will be removed in a future version.\nPlease use the `value` prop instead\n\nThe first value passed into `value` prop will be the `TextEditor` initial\nvalue. Changing the value will update the text of the `TextEditor`.\nThe editor should be controlled via the combination of `value`\nand `onChange` props.\n\n**Before**\n\n`<TextEditor initialValue=\"Hello World\" />`\n\n**After**\n\n`<TextEditor value=\"Hello World\" />`\n"},{"interface":"FieldTextAreaComponentProps","property":"variant","deprecatedSince":"10.20.0","message":"\nThe `variant` prop has been deprecated and will be removed in a future version.\nPlease use the `error` boolean prop instead.\n\n**Before**\n\n`<TextArea variant=\"error\" />`\n\n**After**\n\n`<TextArea error />`\n"},{"interface":"FieldTextComponentProps","property":"variant","deprecatedSince":"11","message":"Use the `error` prop instead"},{"interface":"FormCurrencyProps","property":"locale","deprecatedSince":"10.27.0","message":"Remove this prop and NumberInput will use the locale of the nearest I18nProvider.\n"},{"interface":"FormNumberProps","property":"locale","deprecatedSince":"10.27.0","message":"Remove this prop and NumberInput will use the locale of the nearest I18nProvider.\n"},{"interface":"FormRichTextProps","property":"initialValue","deprecatedSince":"10.20.0","message":"\n`initialValue` has been deprecated and will be removed in a future version.\nPlease use the `value` prop instead\n\nThe first value passed into `value` prop will be the `TextEditor` initial\nvalue. Changing the value will update the text of the `TextEditor`.\nThe editor should be controlled via the combination of `value`\nand `onChange` props.\n\n**Before**\n\n`<TextEditor initialValue=\"Hello World\" />`\n\n**After**\n\n`<TextEditor value=\"Hello World\" />`\n"},{"interface":"FormTextAreaProps","property":"variant","deprecatedSince":"10.20.0","message":"\nThe `variant` prop has been deprecated and will be removed in a future version.\nPlease use the `error` boolean prop instead.\n\n**Before**\n\n`<TextArea variant=\"error\" />`\n\n**After**\n\n`<TextArea error />`\n"},{"interface":"FormTextProps","property":"variant","deprecatedSince":"11","message":"Use the `error` prop instead"},{"interface":"InputProps","property":"variant","deprecatedSince":"11","message":"Use the `error` prop instead"},{"interface":"ListPageControlProps","property":"variant","deprecatedSince":"11","message":"please use the equivalent boolean prop instead"},{"interface":"MenuProps","property":"UNSAFE_closesOnSelect","deprecatedSince":"9","message":"Never offically documented/supported"},{"interface":"MenuProps","property":"isSelectable","deprecatedSince":"10.20.0","message":"\n\nThe `isSelectable` prop has been deprecated and will be removed in a future version.\nMenu item selection is now handled internally and there is no need to configure this\nanymore.\n"},{"interface":"MenuProps","property":"usingHook","deprecatedSince":"9","message":"Never offically documented/supported. Please migrate to the other props like `onSelect` and `onSearch` on the `Menu` component. In v11, the **internal only** `useMenu` removed its search state. You should not be using `useMenu` nor this `usingHook` prop."},{"interface":"Notation","property":"Notation","deprecatedSince":"11\n","message":"Please use `<Typography italic />` component for plain text\nnotations or the `<Required />` component for required notations. `Notation`\nwill be removed in a future version."},{"interface":"CurrencyInputProps","property":"locale","deprecatedSince":"10.27.0","message":"Remove this prop and NumberInput will use the locale of the nearest I18nProvider.\n"},{"interface":"NumberInputProps","property":"locale","deprecatedSince":"10.27.0","message":"Remove this prop and NumberInput will use the locale of the nearest I18nProvider.\n"},{"interface":"UseNumberFormatConfig","property":"locale","deprecatedSince":"10.27.0","message":"Remove this prop and NumberInput will use the locale of the nearest I18nProvider.\n"},{"interface":"SearchProps","property":"variant","deprecatedSince":"11","message":"Use the `error` prop instead"},{"interface":"SegmentedControllerProps","property":"variant","deprecatedSince":"11","message":"Please use the `block` prop"},{"interface":"segmentedControllerSegmentVariant","property":"segmentedControllerSegmentVariant","deprecatedSince":"11\n","message":"Please use the `active` and `disabled` props"},{"interface":"SpinnerProps","property":"variant","deprecatedSince":"11","message":"\"variant\" prop will be removed in a future version.\nUse \"color\" prop instead to set a spinner's color."},{"interface":"BodyCellProps","property":"variant","deprecatedSince":"11.15.1\n","message":"Please use `sortOrder` prop instead of `esc/desc` variants, and `snugfit` prop instead of `snugfit` variant"},{"interface":"CurrencyCellProps","property":"children","deprecatedSince":"11.28.0\n","message":"Please use `value` prop instead"},{"interface":"HeaderCellProps","property":"sortable","deprecatedSince":"11.15.1\n","message":"Please use `sortOrder` prop instead"},{"interface":"HeaderCellProps","property":"variant","deprecatedSince":"11.15.1\n","message":"Please use `sortOrder` prop instead of `esc/desc` variants, and `snugfit` prop instead of `snugfit` variant"},{"interface":"InputCellProps","property":"variant","deprecatedSince":"11","message":"Use the `error` prop instead"},{"interface":"BaseTabProps","property":"dropdown","deprecatedSince":"11","message":"This was never intended to be a public facing API and does not\ndo anything. It will be removed in the future."},{"interface":"BaseTabProps","property":"overflowing","deprecatedSince":"11","message":"This was never intended to be a public facing API and does not\ndo anything. It will be removed in the future."},{"interface":"BaseTabProps","property":"variant","deprecatedSince":"11","message":"please use the `active` and `dark` props to configure style. The\n`dropdown`, `hover`, and `overflowing` variants were only for internal use\nand should not be used in clients"},{"interface":"TextAreaProps","property":"variant","deprecatedSince":"10.20.0","message":"\nThe `variant` prop has been deprecated and will be removed in a future version.\nPlease use the `error` boolean prop instead.\n\n**Before**\n\n`<TextArea variant=\"error\" />`\n\n**After**\n\n`<TextArea error />`\n"},{"interface":"TextEditorProps","property":"initialValue","deprecatedSince":"10.20.0","message":"\n`initialValue` has been deprecated and will be removed in a future version.\nPlease use the `value` prop instead\n\nThe first value passed into `value` prop will be the `TextEditor` initial\nvalue. Changing the value will update the text of the `TextEditor`.\nThe editor should be controlled via the combination of `value`\nand `onChange` props.\n\n**Before**\n\n`<TextEditor initialValue=\"Hello World\" />`\n\n**After**\n\n`<TextEditor value=\"Hello World\" />`\n"},{"interface":"TokenProps","property":"variant","deprecatedSince":"10.27.0\n","message":"\n\nAll variants have been deprecated and will be removed in a future version.\nPlease use `Token.Remove` component or `disabled` boolean prop instead.\n\n**Before**\n\n`<Token variant='icon'>\n <Token.Icon icon=\"x\" />\n</Token>`\n\n**After**\n\n`<Token>\n <Token.Remove />\n</Token>`\n"}]
|
|
1
|
+
[{"interface":"BaseAvatarProps","property":"clickable","deprecatedSince":"TBD","message":"Reviewing for removal from system, prefer accessible `role=\"link\"` or `role=\"button\"` for interactive UI.","deprecationKind":"prop"},{"interface":"BaseAvatarProps","property":"size","deprecatedSince":"10.20.0","message":"\n\nSize \"xl\" has been deprecated and will be removed in a future version.\nPlease use \"lg\" instead of \"xl\".\n\n**Before**\n\n`<Avatar size=\"xl\" />`\n\n**After**\n\n`<Avatar size=\"lg\" />`\n","deprecationKind":"prop"},{"interface":"BreadcrumbCrumbProps","property":"variant","deprecatedSince":"","message":"Handled by parent prop. Use `Breadcrumb variant=\"list\"` with anchors INSIDE `Breadcumb.Crumb`.","deprecationKind":"prop"},{"interface":"Calendar.Container","property":"Calendar.Container","deprecatedSince":"11.6.0","message":"Subcomponents intended for internal library development. Export will be removed in a future release,\nplease use the parent as a self closing tag.\n\nAFTER `<Calendar onSelect />`\n","deprecationKind":"component"},{"interface":"Calendar.Day","property":"Calendar.Day","deprecatedSince":"11.6.0","message":"Subcomponents intended for internal library development. Export will be removed in a future release,\nplease use the parent as a self closing tag.\n\nAFTER `<Calendar onSelect />`\n","deprecationKind":"component"},{"interface":"Calendar.Navigation","property":"Calendar.Navigation","deprecatedSince":"11.6.0","message":"Subcomponents intended for internal library development. Export will be removed in a future release,\nplease use the parent as a self closing tag.\n\nAFTER `<Calendar onSelect />`\n","deprecationKind":"component"},{"interface":"Calendar.Next","property":"Calendar.Next","deprecatedSince":"11.6.0","message":"Subcomponents intended for internal library development. Export will be removed in a future release,\nplease use the parent as a self closing tag.\n\nAFTER `<Calendar onSelect />`\n","deprecationKind":"component"},{"interface":"Calendar.Prev","property":"Calendar.Prev","deprecatedSince":"11.6.0","message":"Subcomponents intended for internal library development. Export will be removed in a future release,\nplease use the parent as a self closing tag.\n\nAFTER `<Calendar onSelect />`\n","deprecationKind":"component"},{"interface":"Calendar.Select","property":"Calendar.Select","deprecatedSince":"11.6.0","message":"Subcomponents intended for internal library development. Export will be removed in a future release,\nplease use the parent as a self closing tag.\n\nAFTER `<Calendar onSelect />`\n","deprecationKind":"component"},{"interface":"Calendar.Week","property":"Calendar.Week","deprecatedSince":"11.6.0","message":"Subcomponents intended for internal library development. Export will be removed in a future release,\nplease use the parent as a self closing tag.\n\nAFTER `<Calendar onSelect />`\n","deprecationKind":"component"},{"interface":"Calendar.Weekdays","property":"Calendar.Weekdays","deprecatedSince":"11.6.0","message":"Subcomponents intended for internal library development. Export will be removed in a future release,\nplease use the parent as a self closing tag.\n\nAFTER `<Calendar onSelect />`\n","deprecationKind":"component"},{"interface":"CalendarProps","property":"children","deprecatedSince":"11.6.0","message":"Subcomponents intended for internal library development. Export will be removed in a future release.\n\nAFTER\n```\n<Calendar onSelect />\n```\n","deprecationKind":"prop"},{"interface":"CardProps","property":"level","deprecatedSince":"10.20.0","message":"\n\nThe `level` prop has been deprecated and will be removed in a future version.\nPlease use the `shadowStrength` prop instead.\n\n**Before**\n\n<Card level={20} />\n\n**After**\n\n<Card shadowStrength={2} />\n","deprecationKind":"prop"},{"interface":"FileSelect","property":"FileSelect","deprecatedSince":"11.23.3\n\n","message":"\nThis component has been removed from the system. The File Select base component is now managed in documents-js-monorepo.","deprecationKind":"component"},{"interface":"GridSourceProps","property":"icon","deprecatedSince":"","message":"String icon variant is deprecated, use the React components\ndirectly from the `@procore/core-icons/dist` package","deprecationKind":"prop"},{"interface":"FileTreeProps","property":"icon","deprecatedSince":"","message":"String icon variant is deprecated, use the React components\ndirectly from the `@procore/core-icons/dist` package","deprecationKind":"prop"},{"interface":"FieldRichTextComponentProps","property":"initialValue","deprecatedSince":"10.20.0","message":"\n`initialValue` has been deprecated and will be removed in a future version.\nPlease use the `value` prop instead\n\nThe first value passed into `value` prop will be the `TextEditor` initial\nvalue. Changing the value will update the text of the `TextEditor`.\nThe editor should be controlled via the combination of `value`\nand `onChange` props.\n\n**Before**\n\n`<TextEditor initialValue=\"Hello World\" />`\n\n**After**\n\n`<TextEditor value=\"Hello World\" />`\n","deprecationKind":"prop"},{"interface":"FieldTextAreaComponentProps","property":"variant","deprecatedSince":"10.20.0","message":"\nThe `variant` prop has been deprecated and will be removed in a future version.\nPlease use the `error` boolean prop instead.\n\n**Before**\n\n`<TextArea variant=\"error\" />`\n\n**After**\n\n`<TextArea error />`\n","deprecationKind":"prop"},{"interface":"FieldTextComponentProps","property":"variant","deprecatedSince":"11","message":"Use the `error` prop instead","deprecationKind":"prop"},{"interface":"FormRichTextProps","property":"initialValue","deprecatedSince":"10.20.0","message":"\n`initialValue` has been deprecated and will be removed in a future version.\nPlease use the `value` prop instead\n\nThe first value passed into `value` prop will be the `TextEditor` initial\nvalue. Changing the value will update the text of the `TextEditor`.\nThe editor should be controlled via the combination of `value`\nand `onChange` props.\n\n**Before**\n\n`<TextEditor initialValue=\"Hello World\" />`\n\n**After**\n\n`<TextEditor value=\"Hello World\" />`\n","deprecationKind":"prop"},{"interface":"FormTextAreaProps","property":"variant","deprecatedSince":"10.20.0","message":"\nThe `variant` prop has been deprecated and will be removed in a future version.\nPlease use the `error` boolean prop instead.\n\n**Before**\n\n`<TextArea variant=\"error\" />`\n\n**After**\n\n`<TextArea error />`\n","deprecationKind":"prop"},{"interface":"FormTextProps","property":"variant","deprecatedSince":"11","message":"Use the `error` prop instead","deprecationKind":"prop"},{"interface":"InputProps","property":"variant","deprecatedSince":"11","message":"Use the `error` prop instead","deprecationKind":"prop"},{"interface":"ListPageControlProps","property":"variant","deprecatedSince":"11","message":"please use the equivalent boolean prop instead","deprecationKind":"prop"},{"interface":"MenuProps","property":"UNSAFE_closesOnSelect","deprecatedSince":"9","message":"Never offically documented/supported","deprecationKind":"prop"},{"interface":"MenuProps","property":"isSelectable","deprecatedSince":"10.20.0","message":"\n\nThe `isSelectable` prop has been deprecated and will be removed in a future version.\nMenu item selection is now handled internally and there is no need to configure this\nanymore.\n","deprecationKind":"prop"},{"interface":"MenuProps","property":"usingHook","deprecatedSince":"9","message":"Never offically documented/supported. Please migrate to the other props like `onSelect` and `onSearch` on the `Menu` component. In v11, the **internal only** `useMenu` removed its search state. You should not be using `useMenu` nor this `usingHook` prop.","deprecationKind":"prop"},{"interface":"Notation","property":"Notation","deprecatedSince":"11\n","message":"Please use `<Typography italic />` component for plain text\nnotations or the `<Required />` component for required notations. `Notation`\nwill be removed in a future version.","deprecationKind":"component"},{"interface":"Page.Column","property":"Page.Column","deprecatedSince":"12\n","message":"A wrapper around Grid, please use Grid instead. Page already sets\na default gutterX in context for children grid components.\n\nBEFORE `Page.Column` AFTER `Grid.Col`","deprecationKind":"component"},{"interface":"Page.Row","property":"Page.Row","deprecatedSince":"12\n","message":"A wrapper around Grid, please use Grid instead. Page already sets\na default gutterX in context for children grid components.\n\nBEFORE `Page.Row` AFTER `Grid.Row`","deprecationKind":"component"},{"interface":"SearchProps","property":"variant","deprecatedSince":"11","message":"Use the `error` prop instead","deprecationKind":"prop"},{"interface":"SegmentedControllerProps","property":"variant","deprecatedSince":"11","message":"Please use the `block` prop","deprecationKind":"prop"},{"interface":"segmentedControllerSegmentVariant","property":"segmentedControllerSegmentVariant","deprecatedSince":"11\n","message":"Please use the `active` and `disabled` props","deprecationKind":"component"},{"interface":"SpinnerProps","property":"variant","deprecatedSince":"11","message":"\"variant\" prop will be removed in a future version.\nUse \"color\" prop instead to set a spinner's color.","deprecationKind":"prop"},{"interface":"BodyCellProps","property":"variant","deprecatedSince":"11.15.1\n","message":"Please use `sortOrder` prop instead of `esc/desc` variants, and `snugfit` prop instead of `snugfit` variant","deprecationKind":"prop"},{"interface":"CurrencyCellProps","property":"children","deprecatedSince":"11.28.0\n","message":"Please use `value` prop instead","deprecationKind":"prop"},{"interface":"HeaderCellProps","property":"sortable","deprecatedSince":"11.15.1\n","message":"Please use `sortOrder` prop instead","deprecationKind":"prop"},{"interface":"HeaderCellProps","property":"variant","deprecatedSince":"11.15.1\n","message":"Please use `sortOrder` prop instead of `esc/desc` variants, and `snugfit` prop instead of `snugfit` variant","deprecationKind":"prop"},{"interface":"InputCellProps","property":"variant","deprecatedSince":"11","message":"Use the `error` prop instead","deprecationKind":"prop"},{"interface":"BaseTabProps","property":"dropdown","deprecatedSince":"11","message":"This was never intended to be a public facing API and does not\ndo anything. It will be removed in the future.","deprecationKind":"prop"},{"interface":"BaseTabProps","property":"overflowing","deprecatedSince":"11","message":"This was never intended to be a public facing API and does not\ndo anything. It will be removed in the future.","deprecationKind":"prop"},{"interface":"BaseTabProps","property":"variant","deprecatedSince":"11","message":"please use the `active` and `dark` props to configure style. The\n`dropdown`, `hover`, and `overflowing` variants were only for internal use\nand should not be used in clients","deprecationKind":"prop"},{"interface":"TextAreaProps","property":"variant","deprecatedSince":"10.20.0","message":"\nThe `variant` prop has been deprecated and will be removed in a future version.\nPlease use the `error` boolean prop instead.\n\n**Before**\n\n`<TextArea variant=\"error\" />`\n\n**After**\n\n`<TextArea error />`\n","deprecationKind":"prop"},{"interface":"TextEditorProps","property":"initialValue","deprecatedSince":"10.20.0","message":"\n`initialValue` has been deprecated and will be removed in a future version.\nPlease use the `value` prop instead\n\nThe first value passed into `value` prop will be the `TextEditor` initial\nvalue. Changing the value will update the text of the `TextEditor`.\nThe editor should be controlled via the combination of `value`\nand `onChange` props.\n\n**Before**\n\n`<TextEditor initialValue=\"Hello World\" />`\n\n**After**\n\n`<TextEditor value=\"Hello World\" />`\n","deprecationKind":"prop"},{"interface":"TokenProps","property":"variant","deprecatedSince":"10.27.0\n","message":"\n\nAll variants have been deprecated and will be removed in a future version.\nPlease use `Token.Remove` component or `disabled` boolean prop instead.\n\n**Before**\n\n`<Token variant='icon'>\n <Token.Icon icon=\"x\" />\n</Token>`\n\n**After**\n\n`<Token>\n <Token.Remove />\n</Token>`\n","deprecationKind":"prop"}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"closeWithConfirm.js","names":["React","useI18nContext","useCloseWithConfirmState","I18n","_React$useState","useState","_React$useState2","_slicedToArray","isFormDifferent","setFormIsDifferent","closeWithConfirm","useCallback","onClose","_len","arguments","length","args","Array","_key","window","confirm","t","apply","undefined","CloseWithConfirmContext","createContext","useCloseWithConfirmContext","useContext"],"sources":["../../src/_utils/closeWithConfirm.tsx"],"sourcesContent":["import React from 'react'\nimport { useI18nContext } from '../_hooks/I18n'\n\ntype ConditionalCloseFunction<\n onClose extends undefined | ((...args: any[]) => any)\n> = onClose extends (...args: any[]) => any ? onClose : undefined\n\ninterface UseCloseWithConfirmState {\n closeWithConfirm: <onClose extends undefined | ((...args: any[]) => any)>(\n func: onClose\n ) => ConditionalCloseFunction<onClose>\n setFormIsDifferent: React.Dispatch<React.SetStateAction<boolean>>\n}\n\nexport const useCloseWithConfirmState = (): UseCloseWithConfirmState => {\n const I18n = useI18nContext()\n const [isFormDifferent, setFormIsDifferent] = React.useState(false)\n\n const closeWithConfirm = React.useCallback(\n (onClose: Function | undefined) =>\n onClose\n ? (...args: any[]) => {\n if (isFormDifferent && onClose) {\n if (\n window.confirm(\n I18n.t('core.form.closeWithConfirm.confirmMessage')\n )\n ) {\n return onClose(...args)\n }\n } else {\n return onClose?.(...args)\n }\n }\n : undefined,\n [isFormDifferent]\n ) as unknown as UseCloseWithConfirmState['closeWithConfirm']\n\n return {\n closeWithConfirm,\n setFormIsDifferent,\n }\n}\n\nexport const CloseWithConfirmContext =\n React.createContext<UseCloseWithConfirmState>({\n setFormIsDifferent: () => {},\n // @ts-ignore\n closeWithConfirm: (onClose) => onClose,\n })\n\nexport const useCloseWithConfirmContext = () => {\n return React.useContext(CloseWithConfirmContext)\n}\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,gBAAgB;AAa/C,OAAO,IAAMC,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAA,EAAmC;EACtE,IAAMC,IAAI,GAAGF,cAAc,CAAC,CAAC;EAC7B,IAAAG,eAAA,GAA8CJ,KAAK,CAACK,QAAQ,CAAC,KAAK,CAAC;IAAAC,gBAAA,GAAAC,cAAA,CAAAH,eAAA;IAA5DI,eAAe,GAAAF,gBAAA;IAAEG,kBAAkB,GAAAH,gBAAA;EAE1C,IAAMI,gBAAgB,GAAGV,KAAK,CAACW,WAAW,CACxC,UAACC,OAA6B;IAAA,OAC5BA,OAAO,GACH,YAAoB;MAAA,SAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAhBC,IAAI,OAAAC,KAAA,CAAAJ,IAAA,GAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;QAAJF,IAAI,CAAAE,IAAA,IAAAJ,SAAA,CAAAI,IAAA;MAAA;MACN,IAAIV,eAAe,IAAII,OAAO,EAAE;QAC9B,IACEO,MAAM,CAACC,OAAO,CACZjB,IAAI,CAACkB,CAAC,CAAC,2CAA2C,CACpD,CAAC,EACD;UACA,OAAOT,OAAO,CAAAU,KAAA,SAAIN,IAAI,CAAC;QACzB;MACF,CAAC,MAAM;QACL,OAAOJ,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAAU,KAAA,SAAMN,IAAI,CAAC;MAC3B;IACF,CAAC,GACDO,SAAS;EAAA,GACf,CAACf,eAAe,CAClB,CAA4D;EAE5D,OAAO;IACLE,gBAAgB,EAAhBA,gBAAgB;IAChBD,kBAAkB,EAAlBA;EACF,CAAC;AACH,CAAC;AAED,OAAO,IAAMe,uBAAuB,gBAClCxB,KAAK,CAACyB,aAAa,CAA2B;EAC5ChB,kBAAkB,EAAE,SAAAA,mBAAA,EAAM,CAAC,CAAC;EAC5B;EACAC,gBAAgB,EAAE,SAAAA,iBAACE,OAAO;IAAA,OAAKA,OAAO;EAAA;AACxC,CAAC,CAAC;AAEJ,OAAO,IAAMc,0BAA0B,GAAG,SAA7BA,0BAA0BA,CAAA,EAAS;EAC9C,OAAO1B,KAAK,CAAC2B,UAAU,CAACH,uBAAuB,CAAC;AAClD,CAAC"}
|
|
@@ -5,6 +5,7 @@ export * from '../Banner/Banner.types';
|
|
|
5
5
|
export * from '../Box/Box.types';
|
|
6
6
|
export * from '../Breadcrumbs/Breadcrumbs.types';
|
|
7
7
|
export * from '../Button/Button.types';
|
|
8
|
+
export * from '../Calendar/Calendar';
|
|
8
9
|
export type { BodyProps, CalendarContainerProps, CalendarProps, DayProps, NavigationProps, NextPrevProps, SelectProps as CalendarSelectProps, WeekdaysProps, WeekProps, } from '../Calendar/Calendar.types';
|
|
9
10
|
export * from '../Card/Card.types';
|
|
10
11
|
export * from '../Checkbox/Checkbox.types';
|
|
@@ -38,6 +39,7 @@ export * from '../Notation/Notation';
|
|
|
38
39
|
export * from '../Notation/Notation.types';
|
|
39
40
|
export * from '../NumberInput/NumberInput.types';
|
|
40
41
|
export * from '../OverlayTrigger/OverlayTrigger.types';
|
|
42
|
+
export * from '../PageLayout/PageLayout';
|
|
41
43
|
export * from '../PageLayout/PageLayout.types';
|
|
42
44
|
export type { PresetPaginationProps } from '../Pagination/Pagination.types';
|
|
43
45
|
export * from '../Panel/Panel.types';
|
|
@@ -54,7 +56,7 @@ export * from '../Select/Select.types';
|
|
|
54
56
|
export * from '../Slider/Slider.types';
|
|
55
57
|
export * from '../Spinner/Spinner.types';
|
|
56
58
|
export * from '../Switch/Switch.types';
|
|
57
|
-
export type { BodyCellProps, BodyRowProps, CaratProps, CurrencyCellProps, DateSelectCellProps, GroupProps, GroupTitleProps,
|
|
59
|
+
export type { BodyCellProps, BodyRowProps, CaratProps, CurrencyCellProps, DateSelectCellProps, GroupProps, GroupTitleProps, IconCellProps, InputCellProps, LinkCellProps, TableHeaderCellProps as HeaderCellProps, TableProps, TableSelectCellProps as SelectCellProps, TableTextCellProps as TextCellProps, TextAreaCellProps, } from '../Table/Table.types';
|
|
58
60
|
export type { BaseTabProps, TabsProps } from '../Tabs/Tabs.types';
|
|
59
61
|
export * from '../Tearsheet/Tearsheet.types';
|
|
60
62
|
export * from '../TextArea/TextArea.types';
|
|
@@ -6,6 +6,7 @@ export * from '../Banner/Banner.types';
|
|
|
6
6
|
export * from '../Box/Box.types';
|
|
7
7
|
export * from '../Breadcrumbs/Breadcrumbs.types';
|
|
8
8
|
export * from '../Button/Button.types';
|
|
9
|
+
export * from '../Calendar/Calendar';
|
|
9
10
|
export * from '../Card/Card.types';
|
|
10
11
|
export * from '../Checkbox/Checkbox.types';
|
|
11
12
|
export * from '../ContactItem/ContactItem.types';
|
|
@@ -33,6 +34,7 @@ export * from '../Notation/Notation';
|
|
|
33
34
|
export * from '../Notation/Notation.types';
|
|
34
35
|
export * from '../NumberInput/NumberInput.types';
|
|
35
36
|
export * from '../OverlayTrigger/OverlayTrigger.types';
|
|
37
|
+
export * from '../PageLayout/PageLayout';
|
|
36
38
|
export * from '../PageLayout/PageLayout.types';
|
|
37
39
|
export * from '../Panel/Panel.types';
|
|
38
40
|
export * from '../Pill/Pill.types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propsTypedoc.js","names":[],"sources":["../../src/_utils/propsTypedoc.ts"],"sourcesContent":["export * from '../Avatar/Avatar.types'\nexport * from '../AvatarStack/AvatarStack.types'\nexport * from '../Badge/Badge.types'\nexport * from '../Banner/Banner.types'\n/* Layouts */\nexport * from '../Box/Box.types'\nexport * from '../Breadcrumbs/Breadcrumbs.types'\nexport * from '../Button/Button.types'\nexport type {\n BodyProps,\n CalendarContainerProps,\n CalendarProps,\n DayProps,\n NavigationProps,\n NextPrevProps,\n SelectProps as CalendarSelectProps,\n WeekdaysProps,\n WeekProps,\n} from '../Calendar/Calendar.types'\nexport * from '../Card/Card.types'\nexport * from '../Checkbox/Checkbox.types'\nexport * from '../ContactItem/ContactItem.types'\nexport * from '../DateInput/DateInput.types'\nexport * from '../DateSelect/DateSelect.types'\nexport type { DetailPageProps } from '../DetailPage/DetailPage.types'\nexport * from '../Dropdown/Dropdown.types'\nexport * from '../DropdownFlyout/DropdownFlyout.types'\nexport * from '../Dropzone/Dropzone.types'\nexport * from '../EmptyState/EmptyState.types'\nexport * from '../FileList/FileList.types'\nexport * from '../FileSelect/FileSelect'\nexport type {\n FileSelectProps,\n QaTags as FileSelectQaTags,\n} from '../FileSelect/FileSelect.types'\nexport * from '../FileSelect/GridSource/GridSource.types'\nexport type { LocalSourceProps } from '../FileSelect/LocalSource/LocalSource.types'\nexport * from '../FileSelect/TreeSource/TreeSource.types'\nexport * from '../Flex/Flex.types'\nexport * from '../FlexList/FlexList.types'\nexport * from '../Form/Form.types'\nexport * from '../Grid/Grid.types'\nexport * from '../GroupSelect/GroupSelect.types'\nexport * from '../Input/Input.types'\nexport * from '../Link/Link.types'\nexport * from '../ListPage/ListPage.types'\nexport type {\n MenuFooterProps,\n MenuGroupProps,\n MenuHeaderProps,\n MenuItemProps,\n MenuOptionsProps,\n MenuProps,\n MenuSearchProps,\n} from '../Menu/Menu.types'\nexport * from '../MenuImperative/MenuImperative.types'\nexport * from '../Modal/Modal.types'\nexport type { MultiSelectProps } from '../MultiSelect/MultiSelect.types'\nexport * from '../Notation/Notation'\nexport * from '../Notation/Notation.types'\nexport * from '../NumberInput/NumberInput.types'\nexport * from '../OverlayTrigger/OverlayTrigger.types'\nexport * from '../PageLayout/PageLayout.types'\nexport type { PresetPaginationProps } from '../Pagination/Pagination.types'\nexport * from '../Panel/Panel.types'\nexport * from '../Pill/Pill.types'\nexport * from '../PillSelect/PillSelect.types'\nexport * from '../Popover/Popover.types'\nexport * from '../ProgressBar/ProgressBar.types'\nexport * from '../RadioButton/RadioButton.types'\nexport * from '../Required/Required.types'\nexport * from '../Search/Search.types'\nexport * from '../Section/Section.types'\nexport * from '../SegmentedController/SegmentedController.types'\nexport * from '../Select/Select.types'\nexport * from '../Slider/Slider.types'\nexport * from '../Spinner/Spinner.types'\nexport * from '../Switch/Switch.types'\nexport type {\n BodyCellProps,\n BodyRowProps,\n CaratProps,\n CurrencyCellProps,\n DateSelectCellProps,\n GroupProps,\n GroupTitleProps,\n
|
|
1
|
+
{"version":3,"file":"propsTypedoc.js","names":[],"sources":["../../src/_utils/propsTypedoc.ts"],"sourcesContent":["export * from '../Avatar/Avatar.types'\nexport * from '../AvatarStack/AvatarStack.types'\nexport * from '../Badge/Badge.types'\nexport * from '../Banner/Banner.types'\n/* Layouts */\nexport * from '../Box/Box.types'\nexport * from '../Breadcrumbs/Breadcrumbs.types'\nexport * from '../Button/Button.types'\nexport * from '../Calendar/Calendar'\nexport type {\n BodyProps,\n CalendarContainerProps,\n CalendarProps,\n DayProps,\n NavigationProps,\n NextPrevProps,\n SelectProps as CalendarSelectProps,\n WeekdaysProps,\n WeekProps,\n} from '../Calendar/Calendar.types'\nexport * from '../Card/Card.types'\nexport * from '../Checkbox/Checkbox.types'\nexport * from '../ContactItem/ContactItem.types'\nexport * from '../DateInput/DateInput.types'\nexport * from '../DateSelect/DateSelect.types'\nexport type { DetailPageProps } from '../DetailPage/DetailPage.types'\nexport * from '../Dropdown/Dropdown.types'\nexport * from '../DropdownFlyout/DropdownFlyout.types'\nexport * from '../Dropzone/Dropzone.types'\nexport * from '../EmptyState/EmptyState.types'\nexport * from '../FileList/FileList.types'\nexport * from '../FileSelect/FileSelect'\nexport type {\n FileSelectProps,\n QaTags as FileSelectQaTags,\n} from '../FileSelect/FileSelect.types'\nexport * from '../FileSelect/GridSource/GridSource.types'\nexport type { LocalSourceProps } from '../FileSelect/LocalSource/LocalSource.types'\nexport * from '../FileSelect/TreeSource/TreeSource.types'\nexport * from '../Flex/Flex.types'\nexport * from '../FlexList/FlexList.types'\nexport * from '../Form/Form.types'\nexport * from '../Grid/Grid.types'\nexport * from '../GroupSelect/GroupSelect.types'\nexport * from '../Input/Input.types'\nexport * from '../Link/Link.types'\nexport * from '../ListPage/ListPage.types'\nexport type {\n MenuFooterProps,\n MenuGroupProps,\n MenuHeaderProps,\n MenuItemProps,\n MenuOptionsProps,\n MenuProps,\n MenuSearchProps,\n} from '../Menu/Menu.types'\nexport * from '../MenuImperative/MenuImperative.types'\nexport * from '../Modal/Modal.types'\nexport type { MultiSelectProps } from '../MultiSelect/MultiSelect.types'\nexport * from '../Notation/Notation'\nexport * from '../Notation/Notation.types'\nexport * from '../NumberInput/NumberInput.types'\nexport * from '../OverlayTrigger/OverlayTrigger.types'\nexport * from '../PageLayout/PageLayout'\nexport * from '../PageLayout/PageLayout.types'\nexport type { PresetPaginationProps } from '../Pagination/Pagination.types'\nexport * from '../Panel/Panel.types'\nexport * from '../Pill/Pill.types'\nexport * from '../PillSelect/PillSelect.types'\nexport * from '../Popover/Popover.types'\nexport * from '../ProgressBar/ProgressBar.types'\nexport * from '../RadioButton/RadioButton.types'\nexport * from '../Required/Required.types'\nexport * from '../Search/Search.types'\nexport * from '../Section/Section.types'\nexport * from '../SegmentedController/SegmentedController.types'\nexport * from '../Select/Select.types'\nexport * from '../Slider/Slider.types'\nexport * from '../Spinner/Spinner.types'\nexport * from '../Switch/Switch.types'\nexport type {\n BodyCellProps,\n BodyRowProps,\n CaratProps,\n CurrencyCellProps,\n DateSelectCellProps,\n GroupProps,\n GroupTitleProps,\n IconCellProps,\n InputCellProps,\n LinkCellProps,\n TableHeaderCellProps as HeaderCellProps,\n TableProps,\n TableSelectCellProps as SelectCellProps,\n TableTextCellProps as TextCellProps,\n TextAreaCellProps,\n} from '../Table/Table.types'\nexport type { BaseTabProps, TabsProps } from '../Tabs/Tabs.types'\nexport * from '../Tearsheet/Tearsheet.types'\nexport * from '../TextArea/TextArea.types'\nexport * from '../TextEditor/TextEditor.types'\nexport * from '../TextEditorOutput/TextEditorOutput.types'\nexport type {\n BaseThumbnailProps,\n PlaceholderProps,\n ThumbnailProps,\n} from '../Thumbnail/Thumbnail.types'\nexport * from '../TieredDropdown/TieredDropdown.types'\nexport type { TieredSelectProps } from '../TieredSelect/TieredSelect.types'\nexport * from '../Tile/Tile.types'\nexport * from '../Title/Title.types'\nexport * from '../Toast/Toast.types'\nexport * from '../ToggleButton/ToggleButton.types'\nexport * from '../Token/Token.types'\nexport * from '../ToolHeader/ToolHeader.types'\nexport * from '../Tooltip/Tooltip.types'\nexport * from '../Tree/Tree.types'\nexport * from '../Typeahead/Typeahead.types'\nexport * from '../Typography/Typography.types'\n/* Utilities */\nexport type { Props } from './types'\n\n/* Components without a .types file */\n// export * from '../CurrencyInput/CurrencyInput.types'\n// export * from \"../Semantic/Semantic.types\"\n"],"mappings":"AAAA,cAAc,wBAAwB;AACtC,cAAc,kCAAkC;AAChD,cAAc,sBAAsB;AACpC,cAAc,wBAAwB;AACtC;AACA,cAAc,kBAAkB;AAChC,cAAc,kCAAkC;AAChD,cAAc,wBAAwB;AACtC,cAAc,sBAAsB;AAYpC,cAAc,oBAAoB;AAClC,cAAc,4BAA4B;AAC1C,cAAc,kCAAkC;AAChD,cAAc,8BAA8B;AAC5C,cAAc,gCAAgC;AAE9C,cAAc,4BAA4B;AAC1C,cAAc,wCAAwC;AACtD,cAAc,4BAA4B;AAC1C,cAAc,gCAAgC;AAC9C,cAAc,4BAA4B;AAC1C,cAAc,0BAA0B;AAKxC,cAAc,2CAA2C;AAEzD,cAAc,2CAA2C;AACzD,cAAc,oBAAoB;AAClC,cAAc,4BAA4B;AAC1C,cAAc,oBAAoB;AAClC,cAAc,oBAAoB;AAClC,cAAc,kCAAkC;AAChD,cAAc,sBAAsB;AACpC,cAAc,oBAAoB;AAClC,cAAc,4BAA4B;AAU1C,cAAc,wCAAwC;AACtD,cAAc,sBAAsB;AAEpC,cAAc,sBAAsB;AACpC,cAAc,4BAA4B;AAC1C,cAAc,kCAAkC;AAChD,cAAc,wCAAwC;AACtD,cAAc,0BAA0B;AACxC,cAAc,gCAAgC;AAE9C,cAAc,sBAAsB;AACpC,cAAc,oBAAoB;AAClC,cAAc,gCAAgC;AAC9C,cAAc,0BAA0B;AACxC,cAAc,kCAAkC;AAChD,cAAc,kCAAkC;AAChD,cAAc,4BAA4B;AAC1C,cAAc,wBAAwB;AACtC,cAAc,0BAA0B;AACxC,cAAc,kDAAkD;AAChE,cAAc,wBAAwB;AACtC,cAAc,wBAAwB;AACtC,cAAc,0BAA0B;AACxC,cAAc,wBAAwB;AAmBtC,cAAc,8BAA8B;AAC5C,cAAc,4BAA4B;AAC1C,cAAc,gCAAgC;AAC9C,cAAc,4CAA4C;AAM1D,cAAc,wCAAwC;AAEtD,cAAc,oBAAoB;AAClC,cAAc,sBAAsB;AACpC,cAAc,sBAAsB;AACpC,cAAc,oCAAoC;AAClD,cAAc,sBAAsB;AACpC,cAAc,gCAAgC;AAC9C,cAAc,0BAA0B;AACxC,cAAc,oBAAoB;AAClC,cAAc,8BAA8B;AAC5C,cAAc,gCAAgC;AAC9C;;AAGA;AACA;AACA;AAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -52,7 +52,6 @@ export * from './Search';
|
|
|
52
52
|
export * from './SegmentedController';
|
|
53
53
|
export * from './Select';
|
|
54
54
|
export * from './Semantic';
|
|
55
|
-
export * from './Sidebar';
|
|
56
55
|
export * from './Slider';
|
|
57
56
|
export * from './Spinner';
|
|
58
57
|
export * from './SuperSelect';
|
|
@@ -77,17 +76,13 @@ export * from './Tooltip';
|
|
|
77
76
|
export * from './Tree';
|
|
78
77
|
export * from './Typeahead';
|
|
79
78
|
export * from './Typography';
|
|
80
|
-
export * from './_hooks/Analytics';
|
|
81
79
|
export * from './_hooks/Anchor';
|
|
82
|
-
export * from './_hooks/Autofocus';
|
|
83
|
-
export * from './_hooks/BoundingRect';
|
|
84
80
|
export * from './_hooks/Buffer';
|
|
85
81
|
export * from './_hooks/ClickOutside';
|
|
86
82
|
export * from './_hooks/DateTime';
|
|
87
83
|
export * from './_hooks/DelayedCallback';
|
|
88
84
|
export * from './_hooks/DelayedToggle';
|
|
89
85
|
export * from './_hooks/Deprecation';
|
|
90
|
-
export * from './_hooks/Event';
|
|
91
86
|
export * from './_hooks/EventListener';
|
|
92
87
|
export * from './_hooks/getI18nProviderLocale';
|
|
93
88
|
export * from './_hooks/Hotkey';
|
|
@@ -106,3 +101,4 @@ export { borderRadius, getBorderRadius as UNSAFE_getBorderRadius, } from './_sty
|
|
|
106
101
|
export * from './_styles/colors';
|
|
107
102
|
export * from './_styles/spacing';
|
|
108
103
|
export { docsProps as UNSAFE_props } from './_utils/props';
|
|
104
|
+
export type { Placement } from './_utils/types';
|
package/dist/index.js
CHANGED
|
@@ -58,7 +58,6 @@ export * from './Search';
|
|
|
58
58
|
export * from './SegmentedController';
|
|
59
59
|
export * from './Select';
|
|
60
60
|
export * from './Semantic';
|
|
61
|
-
export * from './Sidebar';
|
|
62
61
|
export * from './Slider';
|
|
63
62
|
export * from './Spinner';
|
|
64
63
|
export * from './SuperSelect';
|
|
@@ -83,17 +82,13 @@ export * from './Tooltip';
|
|
|
83
82
|
export * from './Tree';
|
|
84
83
|
export * from './Typeahead';
|
|
85
84
|
export * from './Typography';
|
|
86
|
-
export * from './_hooks/Analytics';
|
|
87
85
|
export * from './_hooks/Anchor';
|
|
88
|
-
export * from './_hooks/Autofocus';
|
|
89
|
-
export * from './_hooks/BoundingRect';
|
|
90
86
|
export * from './_hooks/Buffer';
|
|
91
87
|
export * from './_hooks/ClickOutside';
|
|
92
88
|
export * from './_hooks/DateTime';
|
|
93
89
|
export * from './_hooks/DelayedCallback';
|
|
94
90
|
export * from './_hooks/DelayedToggle';
|
|
95
91
|
export * from './_hooks/Deprecation';
|
|
96
|
-
export * from './_hooks/Event';
|
|
97
92
|
export * from './_hooks/EventListener';
|
|
98
93
|
export * from './_hooks/getI18nProviderLocale';
|
|
99
94
|
export * from './_hooks/Hotkey';
|
|
@@ -102,6 +97,10 @@ export * from './_hooks/InjectedScript';
|
|
|
102
97
|
export * from './_hooks/ListNavigation';
|
|
103
98
|
export * from './_hooks/OverflowObserver';
|
|
104
99
|
export * from './_hooks/Resize';
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
export { useResizeObserver as UNSAFE_useResizeObserver } from './_hooks/ResizeObserver';
|
|
105
104
|
export * from './_hooks/Scroll';
|
|
106
105
|
export * from './_hooks/TextEntry';
|
|
107
106
|
export * from './_hooks/Timer';
|
|
@@ -132,10 +131,6 @@ export { intlDateTimeFormat } from './_utils/dateTime';
|
|
|
132
131
|
* @internal
|
|
133
132
|
*/
|
|
134
133
|
export { parseFilename as UNSAFE_parseFilename } from './_utils/filename';
|
|
135
|
-
/**
|
|
136
|
-
* @internal
|
|
137
|
-
*/
|
|
138
|
-
|
|
139
134
|
/**
|
|
140
135
|
* @internal
|
|
141
136
|
*/
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["BETA_makeField","borderRadius","getBorderRadius","UNSAFE_getBorderRadius","getEllipsis","UNSAFE_getEllipsis","getFocus","UNSAFE_getFocus","getLineClamp","UNSAFE_getLineClamp","addSubcomponents","UNSAFE_addSubcomponents","intlDateTimeFormat","parseFilename","UNSAFE_parseFilename","mergeRefs","UNSAFE_mergeRefs","docsProps","UNSAFE_props"],"sources":["../src/index.ts"],"sourcesContent":["// export const version = process.env.VERSION\nexport * from './Avatar'\nexport * from './AvatarStack'\nexport * from './Badge'\nexport * from './Banner'\nexport * from './Box'\nexport * from './Breadcrumbs'\nexport * from './Button'\nexport * from './Calendar'\nexport * from './Card'\nexport * from './Checkbox'\nexport * from './ClickOutside'\nexport * from './ContactItem'\nexport * from './Content'\nexport * from './DateInput'\nexport * from './DateSelect'\nexport * from './DetailPage'\nexport * from './Dropdown'\nexport * from './DropdownFlyout'\nexport * from './Dropzone'\nexport * from './EmptyState'\nexport * from './FileList'\nexport * from './FileSelect'\nexport * from './FileToken'\nexport * from './FilterToken'\nexport * from './Flex'\nexport * from './FlexList'\nexport * from './Form'\n/**\n * @internal\n * Will require extending types FormFieldProps and FormFieldValueComponentProps\n */\nexport { BETA_makeField } from './Form'\nexport * from './Grid'\nexport * from './GroupSelect'\nexport * from './Input'\nexport * from './Link'\nexport * from './ListPage'\nexport * from './Menu'\nexport * from './MenuImperative'\nexport * from './Modal'\nexport * from './MultiSelect'\nexport * from './Notation'\nexport * from './NumberInput'\nexport * from './Overlay'\nexport * from './OverlayTrigger'\nexport * from './PageLayout'\nexport * from './Pagination'\nexport * from './Panel'\nexport * from './Pill'\nexport * from './PillSelect'\nexport * from './Popover'\nexport * from './Portal'\nexport * from './ProgressBar'\nexport * from './RadioButton'\nexport * from './Required'\nexport * from './Search'\nexport * from './SegmentedController'\nexport * from './Select'\nexport * from './Semantic'\nexport * from './
|
|
1
|
+
{"version":3,"file":"index.js","names":["BETA_makeField","useResizeObserver","UNSAFE_useResizeObserver","borderRadius","getBorderRadius","UNSAFE_getBorderRadius","getEllipsis","UNSAFE_getEllipsis","getFocus","UNSAFE_getFocus","getLineClamp","UNSAFE_getLineClamp","addSubcomponents","UNSAFE_addSubcomponents","intlDateTimeFormat","parseFilename","UNSAFE_parseFilename","mergeRefs","UNSAFE_mergeRefs","docsProps","UNSAFE_props"],"sources":["../src/index.ts"],"sourcesContent":["// export const version = process.env.VERSION\nexport * from './Avatar'\nexport * from './AvatarStack'\nexport * from './Badge'\nexport * from './Banner'\nexport * from './Box'\nexport * from './Breadcrumbs'\nexport * from './Button'\nexport * from './Calendar'\nexport * from './Card'\nexport * from './Checkbox'\nexport * from './ClickOutside'\nexport * from './ContactItem'\nexport * from './Content'\nexport * from './DateInput'\nexport * from './DateSelect'\nexport * from './DetailPage'\nexport * from './Dropdown'\nexport * from './DropdownFlyout'\nexport * from './Dropzone'\nexport * from './EmptyState'\nexport * from './FileList'\nexport * from './FileSelect'\nexport * from './FileToken'\nexport * from './FilterToken'\nexport * from './Flex'\nexport * from './FlexList'\nexport * from './Form'\n/**\n * @internal\n * Will require extending types FormFieldProps and FormFieldValueComponentProps\n */\nexport { BETA_makeField } from './Form'\nexport * from './Grid'\nexport * from './GroupSelect'\nexport * from './Input'\nexport * from './Link'\nexport * from './ListPage'\nexport * from './Menu'\nexport * from './MenuImperative'\nexport * from './Modal'\nexport * from './MultiSelect'\nexport * from './Notation'\nexport * from './NumberInput'\nexport * from './Overlay'\nexport * from './OverlayTrigger'\nexport * from './PageLayout'\nexport * from './Pagination'\nexport * from './Panel'\nexport * from './Pill'\nexport * from './PillSelect'\nexport * from './Popover'\nexport * from './Portal'\nexport * from './ProgressBar'\nexport * from './RadioButton'\nexport * from './Required'\nexport * from './Search'\nexport * from './SegmentedController'\nexport * from './Select'\nexport * from './Semantic'\nexport * from './Slider'\nexport * from './Spinner'\nexport * from './SuperSelect'\nexport * from './Switch'\nexport * from './Table'\nexport * from './TableShelf'\nexport * from './Tabs'\nexport * from './Tearsheet'\nexport * from './TextArea'\nexport * from './TextEditor'\nexport * from './TextEditorOutput'\nexport * from './Thumbnail'\nexport * from './TieredDropdown'\nexport * from './TieredSelect'\nexport * from './Tile'\nexport * from './Title'\nexport * from './Toast'\nexport * from './ToggleButton'\nexport * from './Token'\nexport * from './ToolHeader'\nexport * from './Tooltip'\nexport * from './Tree'\nexport * from './Typeahead'\nexport * from './Typography'\nexport * from './_hooks/Anchor'\nexport * from './_hooks/Buffer'\nexport * from './_hooks/ClickOutside'\nexport * from './_hooks/DateTime'\nexport * from './_hooks/DelayedCallback'\nexport * from './_hooks/DelayedToggle'\nexport * from './_hooks/Deprecation'\nexport * from './_hooks/EventListener'\nexport * from './_hooks/getI18nProviderLocale'\nexport * from './_hooks/Hotkey'\nexport * from './_hooks/I18n'\nexport * from './_hooks/InjectedScript'\nexport * from './_hooks/ListNavigation'\nexport * from './_hooks/OverflowObserver'\nexport * from './_hooks/Resize'\n/**\n * @internal\n */\nexport { useResizeObserver as UNSAFE_useResizeObserver } from './_hooks/ResizeObserver'\nexport * from './_hooks/Scroll'\nexport * from './_hooks/TextEntry'\nexport * from './_hooks/Timer'\nexport * from './_hooks/Trigger'\n/**\n * @internal\n */\nexport {\n type UNSAFE_GetEndpoint,\n type UNSAFE_GetPayloadKey,\n type UNSAFE_UploadFile,\n} from './_hooks/useFileUploader'\nexport * from './_hooks/Visibility'\nexport * from './_hooks/ZIndex'\n// Style Stuff\nexport {\n borderRadius,\n getBorderRadius as UNSAFE_getBorderRadius,\n} from './_styles/borderRadius'\nexport * from './_styles/colors'\n/**\n * @internal\n */\nexport {\n getEllipsis as UNSAFE_getEllipsis,\n getFocus as UNSAFE_getFocus,\n getLineClamp as UNSAFE_getLineClamp,\n} from './_styles/mixins'\nexport * from './_styles/spacing'\n/**\n * @internal\n */\nexport { addSubcomponents as UNSAFE_addSubcomponents } from './_utils/addSubcomponents'\n/**\n * @internal\n */\nexport { intlDateTimeFormat } from './_utils/dateTime'\n/**\n * @internal\n */\nexport { parseFilename as UNSAFE_parseFilename } from './_utils/filename'\n/**\n * @internal\n */\nexport { mergeRefs as UNSAFE_mergeRefs } from './_utils/mergeRefs'\n// export { getTypographyIntent, typographyWeights } from './Typography'\n// For documentation only\nexport { docsProps as UNSAFE_props } from './_utils/props'\nexport type { Placement } from './_utils/types'\n"],"mappings":"AAAA;AACA,cAAc,UAAU;AACxB,cAAc,eAAe;AAC7B,cAAc,SAAS;AACvB,cAAc,UAAU;AACxB,cAAc,OAAO;AACrB,cAAc,eAAe;AAC7B,cAAc,UAAU;AACxB,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB,cAAc,YAAY;AAC1B,cAAc,gBAAgB;AAC9B,cAAc,eAAe;AAC7B,cAAc,WAAW;AACzB,cAAc,aAAa;AAC3B,cAAc,cAAc;AAC5B,cAAc,cAAc;AAC5B,cAAc,YAAY;AAC1B,cAAc,kBAAkB;AAChC,cAAc,YAAY;AAC1B,cAAc,cAAc;AAC5B,cAAc,YAAY;AAC1B,cAAc,cAAc;AAC5B,cAAc,aAAa;AAC3B,cAAc,eAAe;AAC7B,cAAc,QAAQ;AACtB,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA,SAASA,cAAc,QAAQ,QAAQ;AACvC,cAAc,QAAQ;AACtB,cAAc,eAAe;AAC7B,cAAc,SAAS;AACvB,cAAc,QAAQ;AACtB,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB,cAAc,kBAAkB;AAChC,cAAc,SAAS;AACvB,cAAc,eAAe;AAC7B,cAAc,YAAY;AAC1B,cAAc,eAAe;AAC7B,cAAc,WAAW;AACzB,cAAc,kBAAkB;AAChC,cAAc,cAAc;AAC5B,cAAc,cAAc;AAC5B,cAAc,SAAS;AACvB,cAAc,QAAQ;AACtB,cAAc,cAAc;AAC5B,cAAc,WAAW;AACzB,cAAc,UAAU;AACxB,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB,cAAc,uBAAuB;AACrC,cAAc,UAAU;AACxB,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB,cAAc,WAAW;AACzB,cAAc,eAAe;AAC7B,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,cAAc;AAC5B,cAAc,QAAQ;AACtB,cAAc,aAAa;AAC3B,cAAc,YAAY;AAC1B,cAAc,cAAc;AAC5B,cAAc,oBAAoB;AAClC,cAAc,aAAa;AAC3B,cAAc,kBAAkB;AAChC,cAAc,gBAAgB;AAC9B,cAAc,QAAQ;AACtB,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,gBAAgB;AAC9B,cAAc,SAAS;AACvB,cAAc,cAAc;AAC5B,cAAc,WAAW;AACzB,cAAc,QAAQ;AACtB,cAAc,aAAa;AAC3B,cAAc,cAAc;AAC5B,cAAc,iBAAiB;AAC/B,cAAc,iBAAiB;AAC/B,cAAc,uBAAuB;AACrC,cAAc,mBAAmB;AACjC,cAAc,0BAA0B;AACxC,cAAc,wBAAwB;AACtC,cAAc,sBAAsB;AACpC,cAAc,wBAAwB;AACtC,cAAc,gCAAgC;AAC9C,cAAc,iBAAiB;AAC/B,cAAc,eAAe;AAC7B,cAAc,yBAAyB;AACvC,cAAc,yBAAyB;AACvC,cAAc,2BAA2B;AACzC,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA,SAASC,iBAAiB,IAAIC,wBAAwB,QAAQ,yBAAyB;AACvF,cAAc,iBAAiB;AAC/B,cAAc,oBAAoB;AAClC,cAAc,gBAAgB;AAC9B,cAAc,kBAAkB;AAChC;AACA;AACA;;AAMA,cAAc,qBAAqB;AACnC,cAAc,iBAAiB;AAC/B;AACA,SACEC,YAAY,EACZC,eAAe,IAAIC,sBAAsB,QACpC,wBAAwB;AAC/B,cAAc,kBAAkB;AAChC;AACA;AACA;AACA,SACEC,WAAW,IAAIC,kBAAkB,EACjCC,QAAQ,IAAIC,eAAe,EAC3BC,YAAY,IAAIC,mBAAmB,QAC9B,kBAAkB;AACzB,cAAc,mBAAmB;AACjC;AACA;AACA;AACA,SAASC,gBAAgB,IAAIC,uBAAuB,QAAQ,2BAA2B;AACvF;AACA;AACA;AACA,SAASC,kBAAkB,QAAQ,mBAAmB;AACtD;AACA;AACA;AACA,SAASC,aAAa,IAAIC,oBAAoB,QAAQ,mBAAmB;AACzE;AACA;AACA;AACA,SAASC,SAAS,IAAIC,gBAAgB,QAAQ,oBAAoB;AAClE;AACA;AACA,SAASC,SAAS,IAAIC,YAAY,QAAQ,gBAAgB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/core-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"description": "React library of Procore Design Guidelines",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
"./dist/OverlayTrigger/OverlayTrigger.js",
|
|
10
10
|
"./dist/_hooks/ResizeObserver.js"
|
|
11
11
|
],
|
|
12
|
+
"exports": {
|
|
13
|
+
".": "./dist/index.js",
|
|
14
|
+
"./dist/_typedoc/*.json": "./dist/_typedoc/*.json",
|
|
15
|
+
"./dist/_typedoc/**/*.json": "./dist/_typedoc/**/*.json"
|
|
16
|
+
},
|
|
12
17
|
"publishConfig": {
|
|
13
18
|
"access": "public"
|
|
14
19
|
},
|
|
@@ -40,6 +45,7 @@
|
|
|
40
45
|
"@babel/preset-react": "7.18.6",
|
|
41
46
|
"@babel/preset-typescript": "7.18.6",
|
|
42
47
|
"@babel/register": "7.18.9",
|
|
48
|
+
"@procore/globalization-toolkit": "3.0.0",
|
|
43
49
|
"@procore/storybook-addon": "^4.0.0",
|
|
44
50
|
"@storybook/addon-docs": "^7.5.3",
|
|
45
51
|
"@storybook/addon-interactions": "^7.5.3",
|
|
@@ -90,13 +96,13 @@
|
|
|
90
96
|
"eslint-config-prettier": "8.6.0",
|
|
91
97
|
"eslint-config-react-app": "^7.0.1",
|
|
92
98
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
93
|
-
"formik": "2.2.9",
|
|
94
99
|
"glob": "8.1.0",
|
|
95
100
|
"jest": "29.4.1",
|
|
96
101
|
"jest-axe": "^7.0.1",
|
|
97
102
|
"jest-styled-components": "7.0.8",
|
|
98
103
|
"miragejs": "^0.1.47",
|
|
99
104
|
"react": "17.0.2",
|
|
105
|
+
"react-beautiful-dnd": "13.1.1",
|
|
100
106
|
"react-dom": "17.0.2",
|
|
101
107
|
"storybook": "^7.5.3",
|
|
102
108
|
"styled-components": "5.3.6",
|
|
@@ -112,7 +118,6 @@
|
|
|
112
118
|
"@floating-ui/react-dom": "2.0.2",
|
|
113
119
|
"@procore/core-i18n-js": "10.28.0",
|
|
114
120
|
"@procore/core-icons": "12.0.0",
|
|
115
|
-
"@procore/globalization-toolkit": "2.0.0",
|
|
116
121
|
"@react-aria/button": "3.6.4",
|
|
117
122
|
"@react-aria/checkbox": "3.6.0",
|
|
118
123
|
"@react-aria/focus": "3.16.2",
|
|
@@ -136,21 +141,26 @@
|
|
|
136
141
|
"lodash.times": "4.3.2",
|
|
137
142
|
"lodash.uniq": "4.5.0",
|
|
138
143
|
"ramda": "0.28.0",
|
|
139
|
-
"react-beautiful-dnd": "13.1.1",
|
|
140
144
|
"react-dropzone": "11.5.1",
|
|
141
145
|
"react-stately": "3.20.0",
|
|
142
146
|
"react-virtuoso": "2.16.1",
|
|
143
147
|
"react-window": "1.8.7",
|
|
144
148
|
"react-window-infinite-loader": "1.0.8",
|
|
145
|
-
"resize-observer-polyfill": "1.5.1",
|
|
146
149
|
"ulid": "2.3.0"
|
|
147
150
|
},
|
|
148
151
|
"peerDependencies": {
|
|
152
|
+
"@procore/globalization-toolkit": ">= 3 < 4",
|
|
149
153
|
"formik": ">= 2.1.5 < 3",
|
|
150
154
|
"react": ">=16.8.0 < 19",
|
|
155
|
+
"react-beautiful-dnd": "^13.1.1",
|
|
151
156
|
"react-dom": ">=16.8.0 < 19",
|
|
152
157
|
"styled-components": ">= 5.1.1 < 6"
|
|
153
158
|
},
|
|
159
|
+
"peerDependenciesMeta": {
|
|
160
|
+
"formik": {
|
|
161
|
+
"optional": true
|
|
162
|
+
}
|
|
163
|
+
},
|
|
154
164
|
"homepage": "https://github.com/procore/core#readme",
|
|
155
165
|
"repository": {
|
|
156
166
|
"type": "git",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"closeWithConfirm.js","names":["React","useI18nContext","useCloseWithConfirmState","I18n","_React$useState","useState","_React$useState2","_slicedToArray","isFormDifferent","setFormIsDifferent","closeWithConfirm","useCallback","onClose","_len","arguments","length","args","Array","_key","window","confirm","t","apply","undefined","CloseWithConfirmContext","createContext","useCloseWithConfirmContext","useContext"],"sources":["../../src/Form/closeWithConfirm.tsx"],"sourcesContent":["import React from 'react'\nimport { useI18nContext } from '../_hooks/I18n'\n\ntype ConditionalCloseFunction<\n onClose extends undefined | ((...args: any[]) => any)\n> = onClose extends (...args: any[]) => any ? onClose : undefined\n\ninterface UseCloseWithConfirmState {\n closeWithConfirm: <onClose extends undefined | ((...args: any[]) => any)>(\n func: onClose\n ) => ConditionalCloseFunction<onClose>\n setFormIsDifferent: React.Dispatch<React.SetStateAction<boolean>>\n}\n\nexport const useCloseWithConfirmState = (): UseCloseWithConfirmState => {\n const I18n = useI18nContext()\n const [isFormDifferent, setFormIsDifferent] = React.useState(false)\n\n const closeWithConfirm = React.useCallback(\n (onClose: Function | undefined) =>\n onClose\n ? (...args: any[]) => {\n if (isFormDifferent && onClose) {\n if (\n window.confirm(\n I18n.t('core.form.closeWithConfirm.confirmMessage')\n )\n ) {\n return onClose(...args)\n }\n } else {\n return onClose?.(...args)\n }\n }\n : undefined,\n [isFormDifferent]\n ) as unknown as UseCloseWithConfirmState['closeWithConfirm']\n\n return {\n closeWithConfirm,\n setFormIsDifferent,\n }\n}\n\nexport const CloseWithConfirmContext =\n React.createContext<UseCloseWithConfirmState>({\n setFormIsDifferent: () => {},\n // @ts-ignore\n closeWithConfirm: (onClose) => onClose,\n })\n\nexport const useCloseWithConfirmContext = () => {\n return React.useContext(CloseWithConfirmContext)\n}\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,gBAAgB;AAa/C,OAAO,IAAMC,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAA,EAAmC;EACtE,IAAMC,IAAI,GAAGF,cAAc,CAAC,CAAC;EAC7B,IAAAG,eAAA,GAA8CJ,KAAK,CAACK,QAAQ,CAAC,KAAK,CAAC;IAAAC,gBAAA,GAAAC,cAAA,CAAAH,eAAA;IAA5DI,eAAe,GAAAF,gBAAA;IAAEG,kBAAkB,GAAAH,gBAAA;EAE1C,IAAMI,gBAAgB,GAAGV,KAAK,CAACW,WAAW,CACxC,UAACC,OAA6B;IAAA,OAC5BA,OAAO,GACH,YAAoB;MAAA,SAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAhBC,IAAI,OAAAC,KAAA,CAAAJ,IAAA,GAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;QAAJF,IAAI,CAAAE,IAAA,IAAAJ,SAAA,CAAAI,IAAA;MAAA;MACN,IAAIV,eAAe,IAAII,OAAO,EAAE;QAC9B,IACEO,MAAM,CAACC,OAAO,CACZjB,IAAI,CAACkB,CAAC,CAAC,2CAA2C,CACpD,CAAC,EACD;UACA,OAAOT,OAAO,CAAAU,KAAA,SAAIN,IAAI,CAAC;QACzB;MACF,CAAC,MAAM;QACL,OAAOJ,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAAU,KAAA,SAAMN,IAAI,CAAC;MAC3B;IACF,CAAC,GACDO,SAAS;EAAA,GACf,CAACf,eAAe,CAClB,CAA4D;EAE5D,OAAO;IACLE,gBAAgB,EAAhBA,gBAAgB;IAChBD,kBAAkB,EAAlBA;EACF,CAAC;AACH,CAAC;AAED,OAAO,IAAMe,uBAAuB,gBAClCxB,KAAK,CAACyB,aAAa,CAA2B;EAC5ChB,kBAAkB,EAAE,SAAAA,mBAAA,EAAM,CAAC,CAAC;EAC5B;EACAC,gBAAgB,EAAE,SAAAA,iBAACE,OAAO;IAAA,OAAKA,OAAO;EAAA;AACxC,CAAC,CAAC;AAEJ,OAAO,IAAMc,0BAA0B,GAAG,SAA7BA,0BAA0BA,CAAA,EAAS;EAC9C,OAAO1B,KAAK,CAAC2B,UAAU,CAACH,uBAAuB,CAAC;AAClD,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { AnchorAttributes, DivAttributes, HeadingAttributes, LiAttributes, OlAttributes, Props } from '../_utils/types';
|
|
3
|
-
interface SidebarMenuItemProps extends Props {
|
|
4
|
-
/**
|
|
5
|
-
* @since 10.19.0
|
|
6
|
-
*/
|
|
7
|
-
active?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const Sidebar_: React.ForwardRefExoticComponent<DivAttributes & Props & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
export declare const Divider: React.ForwardRefExoticComponent<DivAttributes & Props & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
-
export declare const Button: React.ForwardRefExoticComponent<DivAttributes & Props & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
export declare const Header: React.ForwardRefExoticComponent<DivAttributes & Props & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
export declare const HeaderLabel: React.ForwardRefExoticComponent<HeadingAttributes & Props & React.RefAttributes<HTMLHeadingElement>>;
|
|
14
|
-
export declare const HeaderAction: React.ForwardRefExoticComponent<AnchorAttributes & Props & React.RefAttributes<HTMLAnchorElement>>;
|
|
15
|
-
export declare const Menu: React.ForwardRefExoticComponent<OlAttributes & Props & React.RefAttributes<HTMLOListElement>>;
|
|
16
|
-
export declare const MenuItem: React.ForwardRefExoticComponent<LiAttributes & SidebarMenuItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated
|
|
19
|
-
* This design has been removed from the system. The sidebar concepts are incoportated into other components. Instead you may want one of the following:
|
|
20
|
-
* - `Panel`
|
|
21
|
-
* - `Page.Aside` for layout location
|
|
22
|
-
* - `Title`
|
|
23
|
-
* - `Button`, `ButtonLink`, `Link` placed in a `Title.Actions` or `Panel.HeaderActions`
|
|
24
|
-
* - `Menu`
|
|
25
|
-
*/
|
|
26
|
-
/** @deprecatedSince 10.19.0 */
|
|
27
|
-
export declare const Sidebar: React.ForwardRefExoticComponent<DivAttributes & Props & React.RefAttributes<HTMLDivElement>> & {
|
|
28
|
-
/** @deprecated Visual dividers are a parent of Panel.Section */
|
|
29
|
-
/** @deprecatedSince 10.19.0 */
|
|
30
|
-
Divider: React.ForwardRefExoticComponent<DivAttributes & Props & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
-
/** @deprecated Try block prop on a Button */
|
|
32
|
-
/** @deprecatedSince 10.19.0 */
|
|
33
|
-
Button: React.ForwardRefExoticComponent<DivAttributes & Props & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
-
/** @deprecated Try Title */
|
|
35
|
-
/** @deprecatedSince 10.19.0 */
|
|
36
|
-
Header: React.ForwardRefExoticComponent<DivAttributes & Props & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
-
/** @deprecated Try Title and Title.Text or Panel componenls } */
|
|
38
|
-
/** @deprecatedSince 10.19.0 */
|
|
39
|
-
HeaderLabel: React.ForwardRefExoticComponent<HeadingAttributes & Props & React.RefAttributes<HTMLHeadingElement>>;
|
|
40
|
-
/** @deprecated Try Title.Actions or Panel.HeaderActions */
|
|
41
|
-
/** @deprecatedSince 10.19.0 */
|
|
42
|
-
HeaderAction: React.ForwardRefExoticComponent<AnchorAttributes & Props & React.RefAttributes<HTMLAnchorElement>>;
|
|
43
|
-
/** @deprecated See Menu component */
|
|
44
|
-
/** @deprecatedSince 10.19.0 */
|
|
45
|
-
Menu: React.ForwardRefExoticComponent<OlAttributes & Props & React.RefAttributes<HTMLOListElement>>;
|
|
46
|
-
/** @deprecated See Menu component */
|
|
47
|
-
/** @deprecatedSince 10.19.0 */
|
|
48
|
-
MenuItem: React.ForwardRefExoticComponent<LiAttributes & SidebarMenuItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
49
|
-
};
|
|
50
|
-
export {};
|