@procore/core-react 12.29.0 → 12.31.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/CHANGELOG.md +26 -0
- 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.d.ts +76 -76
- package/dist/AvatarStack/AvatarStack.styles.js +7 -7
- package/dist/AvatarStack/AvatarStack.types.d.ts +0 -2
- package/dist/AvatarStack/AvatarStack.types.js.map +1 -1
- package/dist/Badge/Badge.styles.js +2 -2
- package/dist/BadgePill/BadgePill.styles.js +4 -4
- package/dist/Banner/Banner.styles.js +10 -10
- package/dist/Box/Box.styles.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
- package/dist/Button/Button.styles.js +5 -5
- package/dist/Calendar/Calendar.styles.js +8 -8
- package/dist/Card/Card.styles.js +1 -1
- package/dist/Checkbox/Checkbox.styles.js +6 -6
- package/dist/Checkbox/CheckboxTooltip.js +1 -1
- package/dist/ComponentLifecycle.stories.mdx +130 -0
- package/dist/ContactItem/ContactItem.styles.js +5 -5
- package/dist/Content/Content.styles.js +2 -2
- package/dist/DateInput/DateInput.js +28 -0
- package/dist/DateInput/DateInput.js.map +1 -1
- package/dist/DateInput/DateInput.styles.js +6 -6
- package/dist/DetailPage/DetailPage.js +1 -1
- package/dist/DetailPage/DetailPage.js.map +1 -1
- package/dist/DetailPage/DetailPage.styles.js +7 -7
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- package/dist/DropdownFlyout/DropdownFlyout.js +7 -2
- package/dist/DropdownFlyout/DropdownFlyout.js.map +1 -1
- 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.d.ts +1 -1
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
- package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
- package/dist/FileToken/FileToken.styles.js +4 -4
- package/dist/FilterToken/FilterToken.styles.js +5 -5
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.styles.js +14 -14
- package/dist/Form/StyledFormikForm.styles.d.ts +2 -2
- package/dist/Form/StyledFormikForm.styles.js +2 -2
- package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
- 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/MenuImperative/MenuImperative.d.ts +1 -16
- package/dist/MenuImperative/MenuImperative.js +1 -0
- package/dist/MenuImperative/MenuImperative.js.map +1 -1
- package/dist/MenuImperative/MenuImperative.styles.js +10 -10
- package/dist/MenuImperative/MenuImperative.types.d.ts +14 -0
- package/dist/MenuImperative/MenuImperative.types.js.map +1 -1
- package/dist/MenuImperative/index.d.ts +46 -3
- package/dist/MenuImperative/index.js +31 -2
- package/dist/MenuImperative/index.js.map +1 -1
- package/dist/Modal/Modal.js +5 -2
- package/dist/Modal/Modal.js.map +1 -1
- package/dist/Modal/Modal.styles.js +13 -13
- package/dist/MultiSelect/MultiSelect.styles.d.ts +1 -1
- package/dist/MultiSelect/MultiSelect.styles.js +6 -6
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- package/dist/Notation/Notation.js +1 -1
- package/dist/NumberInput/NumberInput.styles.js +7 -7
- package/dist/Overlay/OverlayArrow.styles.js +1 -1
- package/dist/OverlayTrigger/a11yPresets.d.ts +6 -6
- package/dist/PageLayout/PageLayout.styles.d.ts +1 -1
- package/dist/PageLayout/PageLayout.styles.js +16 -16
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
- package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
- package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
- package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
- package/dist/PageTemplate/PageTemplate/PageTemplateCard.d.ts +3 -5
- package/dist/PageTemplate/PageTemplate/PageTemplateCard.js.map +1 -1
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Panel/Panel.styles.js +11 -11
- package/dist/Pill/Pill.styles.js +3 -3
- package/dist/PillSelect/PillSelect.styles.js +4 -4
- 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 +7 -7
- package/dist/SegmentedController/SegmentedController.styles.js +4 -4
- package/dist/Select/Select.js +6 -3
- package/dist/Select/Select.js.map +1 -1
- package/dist/Select/Select.styles.js +7 -7
- package/dist/Semantic/Semantic.styles.d.ts +78 -78
- 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/SplitViewCard/SplitViewCard.styles.js +8 -8
- package/dist/SuperSelect/SuperSelect.components.js +1 -1
- package/dist/SuperSelect/SuperSelect.components.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +38 -38
- package/dist/SuperSelect/useSuperSelect.js +377 -62
- package/dist/SuperSelect/useSuperSelect.js.map +1 -1
- package/dist/Switch/Switch.styles.js +4 -4
- package/dist/Table/Table.styles.js +28 -28
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tabs.styles.js +15 -15
- 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.hooks.d.ts +68 -68
- package/dist/Thumbnail/Thumbnail.styles.js +17 -17
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.d.ts +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
- package/dist/TieredSelect/TieredSelect.styles.d.ts +4 -4
- package/dist/TieredSelect/TieredSelect.styles.js +9 -9
- package/dist/Tile/Tile.styles.js +8 -8
- package/dist/Title/Title.styles.js +7 -7
- package/dist/Toast/Toast.styles.js +3 -3
- 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/ToolLandingPage/ToolLandingPage.styles.js +3 -3
- package/dist/Tooltip/Tooltip.styles.js +2 -2
- package/dist/Tree/Tree.styles.js +9 -9
- package/dist/Typeahead/Typeahead.styles.js +3 -3
- package/dist/Typography/Typography.styles.js +1 -1
- package/dist/Typography/Typography.table.story.js +2 -2
- package/dist/UNSAFE_TEMPLATES_index.d.ts +15 -0
- package/dist/UNSAFE_TEMPLATES_index.js +9 -0
- package/dist/UNSAFE_TEMPLATES_index.js.map +1 -0
- package/dist/_hooks/I18n.d.ts +1207 -20
- package/dist/_hooks/I18n.js +9 -1
- package/dist/_hooks/I18n.js.map +1 -1
- package/dist/_locales/de-DE.json +2 -1
- package/dist/_locales/en-AU.json +2 -1
- package/dist/_locales/en-CA.json +2 -1
- package/dist/_locales/en-GB.json +2 -1
- package/dist/_locales/en.json +2 -1
- package/dist/_locales/es-ES.json +2 -1
- package/dist/_locales/es.json +3 -2
- package/dist/_locales/fr-CA.json +2 -1
- package/dist/_locales/fr-FR.json +2 -1
- package/dist/_locales/is-IS.json +2 -1
- package/dist/_locales/it-IT.json +2 -1
- package/dist/_locales/ja-JP.json +2 -1
- package/dist/_locales/nb-NO.json +1 -0
- package/dist/_locales/pl-PL.json +2 -1
- package/dist/_locales/pseudo.json +2 -1
- package/dist/_locales/pt-BR.json +2 -1
- package/dist/_locales/pt-PT.json +2 -1
- package/dist/_locales/th-TH.json +2 -1
- package/dist/_locales/zh-SG.json +2 -1
- package/dist/_locales/zh-TW.json +4 -3
- package/dist/_storyHelpers_/components/Deprecation.styles.js +1 -1
- package/dist/_storyHelpers_/components/StoryGrid.js +3 -3
- package/dist/_storyHelpers_/constants.js +1 -1
- package/dist/_storyHelpers_/constants.js.map +1 -1
- package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +3 -3
- package/dist/_typedoc/Avatar/Avatar.types.json +22 -22
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +25 -27
- package/dist/_typedoc/Badge/Badge.types.json +6 -6
- package/dist/_typedoc/Banner/Banner.types.json +13 -13
- package/dist/_typedoc/Box/Box.types.json +72 -72
- package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
- package/dist/_typedoc/Button/Button.types.json +15 -15
- 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 +8 -8
- 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 +5 -5
- package/dist/_typedoc/Dropdown/Dropdown.types.json +39 -39
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +30 -30
- package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
- package/dist/_typedoc/EmptyState/EmptyState.types.json +16 -16
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
- 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 +9 -9
- 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 +815 -815
- package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
- package/dist/_typedoc/Grid/Grid.types.json +8 -8
- package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
- package/dist/_typedoc/Input/Input.types.json +2 -2
- package/dist/_typedoc/Link/Link.types.json +1 -1
- 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 +116 -74
- package/dist/_typedoc/Modal/Modal.types.json +46 -46
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
- package/dist/_typedoc/NextTile/NextTile.types.json +32 -32
- package/dist/_typedoc/Notation/Notation.types.json +4 -4
- package/dist/_typedoc/NumberInput/NumberInput.types.json +54 -54
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +32 -32
- 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 +30 -30
- package/dist/_typedoc/Pill/Pill.types.json +2 -2
- package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
- package/dist/_typedoc/Popover/Popover.types.json +15 -15
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
- 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 +15 -15
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
- package/dist/_typedoc/Select/Select.types.json +62 -62
- package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
- package/dist/_typedoc/Slider/Slider.types.json +6 -6
- package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
- package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +14 -14
- package/dist/_typedoc/Table/Table.types.json +101 -101
- package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
- 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 +8 -8
- package/dist/_typedoc/Title/Title.types.json +3 -3
- package/dist/_typedoc/Toast/Toast.types.json +4 -4
- package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
- package/dist/_typedoc/Token/Token.types.json +7 -7
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
- package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +7 -7
- package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
- package/dist/_typedoc/Tree/Tree.types.json +88 -88
- package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
- package/dist/_typedoc/Typography/Typography.types.json +9 -9
- package/dist/_typedoc/_utils/types.json +3 -3
- package/dist/_typedoc/deprecations.json +1 -1
- package/dist/_utils/CalendarHelpers.js +6 -2
- package/dist/_utils/CalendarHelpers.js.map +1 -1
- package/dist/_utils/TinyMCE.js +5 -1
- package/dist/_utils/TinyMCE.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
|
@@ -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/d7acf0a/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/d7acf0a/packages/core-react/src/Typeahead/Typeahead.types.ts#L19"
|
|
24
24
|
}
|
|
25
25
|
],
|
|
26
26
|
"description": ""
|
|
@@ -10,7 +10,7 @@
|
|
|
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/d7acf0a/packages/core-react/src/Typography/Typography.types.ts#L26"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"name": "breakWord",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"description": "Enables word wrapping and breaking within the component",
|
|
21
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
22
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
23
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
23
|
+
"sourceUrl": "https://github.com/procore/core/blob/d7acf0a/packages/core-react/src/Typography/Typography.types.ts#L57"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"name": "children",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
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",
|
|
31
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>",
|
|
32
32
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
33
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
33
|
+
"sourceUrl": "https://github.com/procore/core/blob/d7acf0a/packages/core-react/src/Typography/Typography.types.ts#L15"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
"name": "className",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"description": "Additional classNames",
|
|
41
41
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional classNames</p>\n</div></div>",
|
|
42
42
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
43
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
43
|
+
"sourceUrl": "https://github.com/procore/core/blob/d7acf0a/packages/core-react/src/_utils/types.ts#L47"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"name": "color",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"description": "Changes font color, can be any of the `colors` object HSL Palette",
|
|
51
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>",
|
|
52
52
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
53
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
53
|
+
"sourceUrl": "https://github.com/procore/core/blob/d7acf0a/packages/core-react/src/Typography/Typography.types.ts#L33"
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
"name": "intent",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"description": "Changes the size of the font",
|
|
61
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>",
|
|
62
62
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
63
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
63
|
+
"sourceUrl": "https://github.com/procore/core/blob/d7acf0a/packages/core-react/src/Typography/Typography.types.ts#L39"
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"name": "italic",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"description": "Applies `font-style: italic` if enabled",
|
|
71
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>",
|
|
72
72
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
73
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
73
|
+
"sourceUrl": "https://github.com/procore/core/blob/d7acf0a/packages/core-react/src/Typography/Typography.types.ts#L45"
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"name": "style",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"description": "Additional CSS styles",
|
|
81
81
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div></div>",
|
|
82
82
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
83
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
83
|
+
"sourceUrl": "https://github.com/procore/core/blob/d7acf0a/packages/core-react/src/_utils/types.ts#L52"
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
"name": "weight",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"description": "Changes font weight if it is supported in the design system",
|
|
91
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>",
|
|
92
92
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
93
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
93
|
+
"sourceUrl": "https://github.com/procore/core/blob/d7acf0a/packages/core-react/src/Typography/Typography.types.ts#L51"
|
|
94
94
|
}
|
|
95
95
|
],
|
|
96
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/d7acf0a/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/d7acf0a/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/d7acf0a/packages/core-react/src/_utils/types.ts#L52"
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
36
|
"description": ""
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"interface":"AvatarStackProps","property":"size","deprecatedSince":"12.18.0\n","message":"Size \"sm\" has been deprecated and will be removed in a future version.","deprecationKind":"prop"},{"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\" and \"sm\" have 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":"BaseTabProps","property":"UNSAFE_helixHeader","deprecatedSince":"","message":"@experimental Alternative style variant. To be used on Helix Header ONLY","deprecationKind":"prop"},{"interface":"BaseTabProps","property":"active","deprecatedSince":"12.18.0\n","message":"Please use `selected` instead","deprecationKind":"prop"},{"interface":"BaseTabProps","property":"dark","deprecatedSince":"12.8.0\n","message":"Custom styles intended for the global navigation header.\nFuture Core-React will look holistically at themes and dark mode support.\n\nAFTER - Regular Tab styles. If needing dark support, please reach out.","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 `selected` 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":"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":"BreadcrumbCrumbProps","property":"variant","deprecatedSince":"","message":"Handled by parent prop. Use `Breadcrumb variant=\"list\"` with anchors INSIDE `Breadcumb.Crumb`.","deprecationKind":"prop"},{"interface":"ButtonProps","property":"iconRight","deprecatedSince":"12.18.0","message":"iconRight has been deprecated and will be removed in a future version\n","deprecationKind":"prop"},{"interface":"ButtonProps","property":"variant","deprecatedSince":"12.18.0","message":"The variant \"tertiaryContrast\" has been deprecated and will be removed in a future version","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":"CardLevel","property":"CardLevel","deprecatedSince":"","message":"\n","deprecationKind":"component"},{"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":"ConfirmModalProps","property":"compact","deprecatedSince":"","message":"@experimental Changes the UI of modal to work on mobile breakpoints, to be used on Helix Header ONLY","deprecationKind":"prop"},{"interface":"CurrencyCellProps","property":"children","deprecatedSince":"11.28.0\n","message":"Please use `value` prop instead","deprecationKind":"prop"},{"interface":"DeprecatedDisplay","property":"DeprecatedDisplay","deprecatedSince":"10.20.0\n","message":"\n\nThese display modes are no longer valid, please use `direction` prop\n","deprecationKind":"component"},{"interface":"DeprecatedOverlayTriggerRef","property":"DeprecatedOverlayTriggerRef","deprecatedSince":"11.2.0","message":"To be replaced by OverlayTriggerProps#overlayRef in future release\n","deprecationKind":"component"},{"interface":"DropdownButtonProps","property":"iconRight","deprecatedSince":"12.18.0","message":"iconRight has been deprecated and will be removed in a future version\n","deprecationKind":"prop"},{"interface":"DropzoneProps","property":"tooltip","deprecatedSince":"12.19.0","message":"`tooltip` has been deprecated and will be removed in the future version. Please use `contentRenderer` instead\n","deprecationKind":"prop"},{"interface":"EmptyStateProps","property":"compact","deprecatedSince":"12.18.0","message":"compact has been deprecated and will be removed in a future version\n","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":"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":"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":"FormContextAPI","property":"variant","deprecatedSince":"12.18.0\n","message":"The `traditional` field layout variant is deprecated and `variant` property will be removed\n in a future version. Use the default field layout (`wxp`) instead.\n\n Note that in the default field layout, you need to explicitly specify the `colStart` property:\n\n BEFORE\n\n ```\n <Form.Row>\n <Form.Text />\n <Form.Number />\n </Form.Row>\n ```\n\n AFTER\n\n ```\n <Form.Row>\n <Form.Text colStart={1} />\n <Form.Number colStart={7} />\n </Form.Row>\n ```\n\n We plan to remove this limitation in a future release.\n","deprecationKind":"prop"},{"interface":"FormProps","property":"variant","deprecatedSince":"12.18.0\n","message":"The `traditional` field layout variant is deprecated and `variant` property will be removed\n in a future version. Use the default field layout (`wxp`) 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":"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":"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":"InputProps","property":"variant","deprecatedSince":"11","message":"Use the `error` prop instead","deprecationKind":"prop"},{"interface":"InternalTieredDropdownProps","property":"iconRight","deprecatedSince":"12.18.0","message":"iconRight has been deprecated and will be removed in a future version\n","deprecationKind":"prop"},{"interface":"LinkButtonProps","property":"iconRight","deprecatedSince":"12.18.0","message":"iconRight has been deprecated and will be removed in a future version\n","deprecationKind":"prop"},{"interface":"LinkProps","property":"variant","deprecatedSince":"12.18.0\n","message":"variant `gray` is deprecated and will be removed","deprecationKind":"prop"},{"interface":"ListPage","property":"ListPage","deprecatedSince":"12.9.0\n","message":"This `ListPage` layout is no longer supported and it is now recommended to use a `ToolLandingPage` layout instead.\n","deprecationKind":"component"},{"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":"ModalBodyProps","property":"compact","deprecatedSince":"","message":"@experimental Changes the UI of modal to work on mobile breakpoints, to be used on Helix Header ONLY","deprecationKind":"prop"},{"interface":"ModalCloseableHeaderProps","property":"compact","deprecatedSince":"","message":"@experimental Changes the UI of modal to work on mobile breakpoints, to be used on Helix Header ONLY","deprecationKind":"prop"},{"interface":"ModalContainerProps","property":"compact","deprecatedSince":"","message":"@experimental Changes the UI of modal to work on mobile breakpoints, to be used on Helix Header ONLY","deprecationKind":"prop"},{"interface":"ModalProps","property":"compact","deprecatedSince":"","message":"@experimental Changes the UI of modal to work on mobile breakpoints, to be used on Helix Header ONLY","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":"PanelHeaderActionProps","property":"iconRight","deprecatedSince":"12.18.0","message":"iconRight has been deprecated and will be removed in a future version\n","deprecationKind":"prop"},{"interface":"PopoverContentProps","property":"fluid","deprecatedSince":"12.18.0","message":"Use `block` as a drop-in replacement\n","deprecationKind":"prop"},{"interface":"SearchProps","property":"error","deprecatedSince":"12.18.0","message":"No known system use cases. Please raise with design if this pattern would be applicable to you.\n","deprecationKind":"prop"},{"interface":"SearchProps","property":"variant","deprecatedSince":"11","message":"Use the `error` prop instead","deprecationKind":"prop"},{"interface":"SegmentedControllerProps","property":"active","deprecatedSince":"12.18.0\n","message":"The property is not used anywhere","deprecationKind":"prop"},{"interface":"SegmentedControllerProps","property":"variant","deprecatedSince":"11","message":"Please use the `block` prop","deprecationKind":"prop"},{"interface":"SegmentedControllerSegmentProps","property":"active","deprecatedSince":"12.18.0\n","message":"Use `selected` instead","deprecationKind":"prop"},{"interface":"segmentedControllerSegmentVariant","property":"segmentedControllerSegmentVariant","deprecatedSince":"11\n","message":"Please use the `active` and `disabled` props","deprecationKind":"component"},{"interface":"SpinnerProps","property":"color","deprecatedSince":"12.18.0\n","message":"Use `variant` instead","deprecationKind":"prop"},{"interface":"SplitViewCardInternalContextAPI","property":"isClosable","deprecatedSince":"12.20.5\n","message":"dont support this feature","deprecationKind":"prop"},{"interface":"SplitViewCardProps","property":"isClosable","deprecatedSince":"12.20.5\n","message":"dont support this feature","deprecationKind":"prop"},{"interface":"TabsProps","property":"UNSAFE_helixHeader","deprecatedSince":"","message":"@experimental Alternative style variant. To be used on Helix Header ONLY","deprecationKind":"prop"},{"interface":"TabsProps","property":"dark","deprecatedSince":"12.8.0\n","message":"Custom styles intended for the global navigation header.\nFuture Core-React will look holistically at themes and dark mode support.\n\nAFTER - Regular Tab styles. If needing dark support, please reach out.","deprecationKind":"prop"},{"interface":"TearsheetProps","property":"placement","deprecatedSince":"12.18.0\n","message":"There will be only `right` placement, so the property will be removed","deprecationKind":"prop"},{"interface":"TearsheetProps","property":"stretch","deprecatedSince":"12.18.0\n","message":"Use `block` as a drop-in replacement","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":"TieredDropdownProps","property":"iconRight","deprecatedSince":"12.18.0","message":"iconRight has been deprecated and will be removed in a future version\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"},{"interface":"ToolHeader","property":"ToolHeader","deprecatedSince":"12.9.0\n","message":"This `ToolHeader` component is no longer supported and it is now recommended\nto use the layout `ToolLandingPage`, `ToolLandingPage.Title` (for the settings button),\n`ToolLandingPage.Tabs`, or based on content a `DetailPage`.\n","deprecationKind":"component"}]
|
|
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\" 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":"BaseTabProps","property":"UNSAFE_helixHeader","deprecatedSince":"","message":"@experimental Alternative style variant. To be used on Helix Header ONLY","deprecationKind":"prop"},{"interface":"BaseTabProps","property":"active","deprecatedSince":"12.18.0\n","message":"Please use `selected` instead","deprecationKind":"prop"},{"interface":"BaseTabProps","property":"dark","deprecatedSince":"12.8.0\n","message":"Custom styles intended for the global navigation header.\nFuture Core-React will look holistically at themes and dark mode support.\n\nAFTER - Regular Tab styles. If needing dark support, please reach out.","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 `selected` 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":"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":"BreadcrumbCrumbProps","property":"variant","deprecatedSince":"","message":"Handled by parent prop. Use `Breadcrumb variant=\"list\"` with anchors INSIDE `Breadcumb.Crumb`.","deprecationKind":"prop"},{"interface":"ButtonProps","property":"iconRight","deprecatedSince":"12.18.0","message":"iconRight has been deprecated and will be removed in a future version\n","deprecationKind":"prop"},{"interface":"ButtonProps","property":"variant","deprecatedSince":"12.18.0","message":"The variant \"tertiaryContrast\" has been deprecated and will be removed in a future version","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":"CardLevel","property":"CardLevel","deprecatedSince":"","message":"\n","deprecationKind":"component"},{"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":"ConfirmModalProps","property":"compact","deprecatedSince":"","message":"@experimental Changes the UI of modal to work on mobile breakpoints, to be used on Helix Header ONLY","deprecationKind":"prop"},{"interface":"CurrencyCellProps","property":"children","deprecatedSince":"11.28.0\n","message":"Please use `value` prop instead","deprecationKind":"prop"},{"interface":"DeprecatedDisplay","property":"DeprecatedDisplay","deprecatedSince":"10.20.0\n","message":"\n\nThese display modes are no longer valid, please use `direction` prop\n","deprecationKind":"component"},{"interface":"DeprecatedOverlayTriggerRef","property":"DeprecatedOverlayTriggerRef","deprecatedSince":"11.2.0","message":"To be replaced by OverlayTriggerProps#overlayRef in future release\n","deprecationKind":"component"},{"interface":"DropdownButtonProps","property":"iconRight","deprecatedSince":"12.18.0","message":"iconRight has been deprecated and will be removed in a future version\n","deprecationKind":"prop"},{"interface":"DropzoneProps","property":"tooltip","deprecatedSince":"12.19.0","message":"`tooltip` has been deprecated and will be removed in the future version. Please use `contentRenderer` instead\n","deprecationKind":"prop"},{"interface":"EmptyStateProps","property":"compact","deprecatedSince":"12.18.0","message":"compact has been deprecated and will be removed in a future version\n","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":"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":"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":"FormContextAPI","property":"variant","deprecatedSince":"12.18.0\n","message":"The `traditional` field layout variant is deprecated and `variant` property will be removed\n in a future version. Use the default field layout (`wxp`) instead.\n\n Note that in the default field layout, you need to explicitly specify the `colStart` property:\n\n BEFORE\n\n ```\n <Form.Row>\n <Form.Text />\n <Form.Number />\n </Form.Row>\n ```\n\n AFTER\n\n ```\n <Form.Row>\n <Form.Text colStart={1} />\n <Form.Number colStart={7} />\n </Form.Row>\n ```\n\n We plan to remove this limitation in a future release.\n","deprecationKind":"prop"},{"interface":"FormProps","property":"variant","deprecatedSince":"12.18.0\n","message":"The `traditional` field layout variant is deprecated and `variant` property will be removed\n in a future version. Use the default field layout (`wxp`) 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":"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":"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":"InputProps","property":"variant","deprecatedSince":"11","message":"Use the `error` prop instead","deprecationKind":"prop"},{"interface":"InternalTieredDropdownProps","property":"iconRight","deprecatedSince":"12.18.0","message":"iconRight has been deprecated and will be removed in a future version\n","deprecationKind":"prop"},{"interface":"LinkButtonProps","property":"iconRight","deprecatedSince":"12.18.0","message":"iconRight has been deprecated and will be removed in a future version\n","deprecationKind":"prop"},{"interface":"LinkProps","property":"variant","deprecatedSince":"12.18.0\n","message":"variant `gray` is deprecated and will be removed","deprecationKind":"prop"},{"interface":"ListPage","property":"ListPage","deprecatedSince":"12.9.0\n","message":"This `ListPage` layout is no longer supported and it is now recommended to use a `ToolLandingPage` layout instead.\n","deprecationKind":"component"},{"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":"ModalBodyProps","property":"compact","deprecatedSince":"","message":"@experimental Changes the UI of modal to work on mobile breakpoints, to be used on Helix Header ONLY","deprecationKind":"prop"},{"interface":"ModalCloseableHeaderProps","property":"compact","deprecatedSince":"","message":"@experimental Changes the UI of modal to work on mobile breakpoints, to be used on Helix Header ONLY","deprecationKind":"prop"},{"interface":"ModalContainerProps","property":"compact","deprecatedSince":"","message":"@experimental Changes the UI of modal to work on mobile breakpoints, to be used on Helix Header ONLY","deprecationKind":"prop"},{"interface":"ModalProps","property":"compact","deprecatedSince":"","message":"@experimental Changes the UI of modal to work on mobile breakpoints, to be used on Helix Header ONLY","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":"PanelHeaderActionProps","property":"iconRight","deprecatedSince":"12.18.0","message":"iconRight has been deprecated and will be removed in a future version\n","deprecationKind":"prop"},{"interface":"PopoverContentProps","property":"fluid","deprecatedSince":"12.18.0","message":"Use `block` as a drop-in replacement\n","deprecationKind":"prop"},{"interface":"SearchProps","property":"error","deprecatedSince":"12.18.0","message":"No known system use cases. Please raise with design if this pattern would be applicable to you.\n","deprecationKind":"prop"},{"interface":"SearchProps","property":"variant","deprecatedSince":"11","message":"Use the `error` prop instead","deprecationKind":"prop"},{"interface":"SegmentedControllerProps","property":"active","deprecatedSince":"12.18.0\n","message":"The property is not used anywhere","deprecationKind":"prop"},{"interface":"SegmentedControllerProps","property":"variant","deprecatedSince":"11","message":"Please use the `block` prop","deprecationKind":"prop"},{"interface":"SegmentedControllerSegmentProps","property":"active","deprecatedSince":"12.18.0\n","message":"Use `selected` instead","deprecationKind":"prop"},{"interface":"segmentedControllerSegmentVariant","property":"segmentedControllerSegmentVariant","deprecatedSince":"11\n","message":"Please use the `active` and `disabled` props","deprecationKind":"component"},{"interface":"SpinnerProps","property":"color","deprecatedSince":"12.18.0\n","message":"Use `variant` instead","deprecationKind":"prop"},{"interface":"SplitViewCardInternalContextAPI","property":"isClosable","deprecatedSince":"12.20.5\n","message":"dont support this feature","deprecationKind":"prop"},{"interface":"SplitViewCardProps","property":"isClosable","deprecatedSince":"12.20.5\n","message":"dont support this feature","deprecationKind":"prop"},{"interface":"TabsProps","property":"UNSAFE_helixHeader","deprecatedSince":"","message":"@experimental Alternative style variant. To be used on Helix Header ONLY","deprecationKind":"prop"},{"interface":"TabsProps","property":"dark","deprecatedSince":"12.8.0\n","message":"Custom styles intended for the global navigation header.\nFuture Core-React will look holistically at themes and dark mode support.\n\nAFTER - Regular Tab styles. If needing dark support, please reach out.","deprecationKind":"prop"},{"interface":"TearsheetProps","property":"placement","deprecatedSince":"12.18.0\n","message":"There will be only `right` placement, so the property will be removed","deprecationKind":"prop"},{"interface":"TearsheetProps","property":"stretch","deprecatedSince":"12.18.0\n","message":"Use `block` as a drop-in replacement","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":"TieredDropdownProps","property":"iconRight","deprecatedSince":"12.18.0","message":"iconRight has been deprecated and will be removed in a future version\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"},{"interface":"ToolHeader","property":"ToolHeader","deprecatedSince":"12.9.0\n","message":"This `ToolHeader` component is no longer supported and it is now recommended\nto use the layout `ToolLandingPage`, `ToolLandingPage.Title` (for the settings button),\n`ToolLandingPage.Tabs`, or based on content a `DetailPage`.\n","deprecationKind":"component"}]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DateTimeFormatter, getStartDayOfTheWeek } from '@procore/globalization-toolkit';
|
|
2
2
|
import { addDays as addDaysFn, addMonths as addMonthsFn, eachDayOfInterval as eachDayFn, format as formatFn, getDate as getDateFn, getDay as getDayFn, getMonth as getMonthFn, getYear as getYearFn, isAfter as isAfterFn, isBefore as isBeforeFn, isSameDay as isSameDayFn, isSameMonth as isSameMonthFn, isToday as isTodayFn, isWithinInterval as isWithinRangeFn, startOfMonth as startOfMonthFn, startOfWeek, subDays as subDaysFn, subMonths as subMonthsFn, subYears as subYearsFn } from 'date-fns';
|
|
3
|
-
import { de, enUS as en, es, fr, is, ja, pl, ptBR, th, zhCN } from 'date-fns/esm/locale';
|
|
3
|
+
import { de, enUS as en, es, fr, is, it, ja, nb, pl, pt, ptBR, th, zhCN, zhTW } from 'date-fns/esm/locale';
|
|
4
4
|
import { range, splitEvery } from 'ramda';
|
|
5
5
|
var dateFnsLocales = {
|
|
6
6
|
en: en,
|
|
@@ -20,7 +20,11 @@ var dateFnsLocales = {
|
|
|
20
20
|
'de-DE': de,
|
|
21
21
|
'zh-SG': zhCN,
|
|
22
22
|
pseudo: en,
|
|
23
|
-
'pl-PL': pl
|
|
23
|
+
'pl-PL': pl,
|
|
24
|
+
'nb-NO': nb,
|
|
25
|
+
'zh-TW': zhTW,
|
|
26
|
+
'it-IT': it,
|
|
27
|
+
'pt-PT': pt
|
|
24
28
|
};
|
|
25
29
|
export var maxMonth = 12;
|
|
26
30
|
export var minYear = 1000;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarHelpers.js","names":["DateTimeFormatter","getStartDayOfTheWeek","addDays","addDaysFn","addMonths","addMonthsFn","eachDayOfInterval","eachDayFn","format","formatFn","getDate","getDateFn","getDay","getDayFn","getMonth","getMonthFn","getYear","getYearFn","isAfter","isAfterFn","isBefore","isBeforeFn","isSameDay","isSameDayFn","isSameMonth","isSameMonthFn","isToday","isTodayFn","isWithinInterval","isWithinRangeFn","startOfMonth","startOfMonthFn","startOfWeek","subDays","subDaysFn","subMonths","subMonthsFn","subYears","subYearsFn","de","enUS","en","es","fr","is","ja","pl","ptBR","th","zhCN","range","splitEvery","dateFnsLocales","pseudo","maxMonth","minYear","getMaxYear","Date","getFullYear","calendarWeeks","daysInWeek","daysInCalendar","eachDay","date1","date2","start","end","formatMonth","month","normalizeNewDate","getDates","date","locale","startDayOfWeek","dayShift","getRows","normalizeExistingDate","isWithinRange","day","year","hour","arguments","length","undefined","minute","second","millisecond","normalizedDate","setFullYear","setHours","setMinutes","setSeconds","setMilliseconds","getMonthLabel","options","formatter","monthPart","formatDateTimeToParts","find","part","type","value","getMonthOptions","map","label","getYearOptions","Math","max","String","padStart","getDayOfWeekLabel","updateMonth","updateYear","CalendarHelpers"],"sources":["../../src/_utils/CalendarHelpers.ts"],"sourcesContent":["import type { DateTimeOptions } from '@procore/globalization-toolkit'\nimport {\n DateTimeFormatter,\n getStartDayOfTheWeek,\n} from '@procore/globalization-toolkit'\nimport {\n addDays as addDaysFn,\n addMonths as addMonthsFn,\n eachDayOfInterval as eachDayFn,\n format as formatFn,\n getDate as getDateFn,\n getDay as getDayFn,\n getMonth as getMonthFn,\n getYear as getYearFn,\n isAfter as isAfterFn,\n isBefore as isBeforeFn,\n isSameDay as isSameDayFn,\n isSameMonth as isSameMonthFn,\n isToday as isTodayFn,\n isWithinInterval as isWithinRangeFn,\n startOfMonth as startOfMonthFn,\n startOfWeek,\n subDays as subDaysFn,\n subMonths as subMonthsFn,\n subYears as subYearsFn,\n} from 'date-fns'\nimport {\n de,\n enUS as en,\n es,\n fr,\n is,\n ja,\n pl,\n ptBR,\n th,\n zhCN,\n} from 'date-fns/esm/locale'\nimport { range, splitEvery } from 'ramda'\nimport type { Locale } from '../_hooks/I18n'\n\ntype DateFnsLocales = { [key in Locale]: any }\n\nconst dateFnsLocales: DateFnsLocales = {\n en: en,\n 'en-CA': en,\n 'fr-CA': fr,\n 'fr-FR': fr,\n es: es,\n 'es-ES': es,\n 'en-AE': en,\n 'en-AU': en,\n 'en-GB': en,\n 'en-SG': en,\n 'th-TH': th,\n 'pt-BR': ptBR,\n 'ja-JP': ja,\n 'is-IS': is,\n 'de-DE': de,\n 'zh-SG': zhCN,\n pseudo: en,\n 'pl-PL': pl,\n}\n\nexport const maxMonth = 12\n\nexport const minYear: number = 1000\n\n// need to be function to make mocking of new Date works in tests.\nexport const getMaxYear = () => new Date().getFullYear() + 100\n\n// rows in calendar\nconst calendarWeeks: number = 6\n\nconst daysInWeek: number = 7\n\nexport const daysInCalendar: number = calendarWeeks * daysInWeek\n\nexport const addDays: (date: Date, num: number) => Date = addDaysFn\n\nexport const addMonths: (date: Date, num: number) => Date = addMonthsFn\n\nexport const eachDay: (date1: Date, date2: Date) => Date[] = (date1, date2) =>\n eachDayFn({ start: date1, end: date2 })\n\nexport const format: (date: Date, formatString: string) => string = formatFn\n\n// An entire date object has to be formed, format(month, 'MMM') breaks for month >= 10 (it just outputs 'Dec')\nexport const formatMonth: (month: number) => string = (month) =>\n formatFn(normalizeNewDate(2019, month, 2), 'MMM')\n\nexport const getDate: (date: Date) => number = getDateFn\n\nexport const getDates: (date: Date, locale: Locale) => Date[] = (\n date,\n locale\n) => {\n const startDayOfWeek: number = getStartDayOfTheWeek(locale)\n\n // Shift first day appearing on the calendar based on day of the week of the first day of the month and based on the start day of the week\n const dayShift = 7 - startDayOfWeek\n const subDays = (getDayFn(startOfMonthFn(date)) + dayShift) % 7\n\n const start = subDaysFn(startOfMonthFn(date), subDays)\n const end = addDaysFn(start, daysInCalendar - 1)\n\n return eachDayFn({ start, end })\n}\n\nexport const getMonth: (date: Date) => number = getMonthFn\n\nexport const getRows: (dates: Date[]) => Date[][] = splitEvery(7)\n\nexport const getYear: (date: Date) => number = getYearFn\n\nexport const isAfter: (date1: Date, date2: Date) => boolean = (date1, date2) =>\n isAfterFn(normalizeExistingDate(date1), normalizeExistingDate(date2))\n\nexport const isBefore: (date1: Date, date2: Date) => boolean = (date1, date2) =>\n isBeforeFn(normalizeExistingDate(date1), normalizeExistingDate(date2))\n\nexport const isSameDay: (date1: Date, date2: Date) => boolean = (\n date1,\n date2\n) => isSameDayFn(normalizeExistingDate(date1), normalizeExistingDate(date2))\n\nexport const isSameMonth: (date1: Date, date2: Date) => boolean = isSameMonthFn\n\nexport const isToday: (date: Date) => boolean = isTodayFn\n\nexport const isWithinRange: (\n date: Date,\n start?: Date,\n end?: Date\n) => boolean = (date, start, end) => {\n if (!start || !end || start > end) {\n return false\n }\n\n return isWithinRangeFn(normalizeExistingDate(date), {\n start: normalizeExistingDate(start),\n end: normalizeExistingDate(end),\n })\n}\n\nexport const normalizeExistingDate: (day: Date) => Date = (day) =>\n normalizeNewDate(getYearFn(day), getMonthFn(day), getDateFn(day))\n\nexport const normalizeNewDate: (\n year: number,\n month: number,\n day: number,\n hour?: number,\n minute?: number,\n second?: number,\n millisecond?: number\n) => Date = (\n year,\n month,\n day,\n hour = 0,\n minute = 0,\n second = 0,\n millisecond = 0\n) => {\n const normalizedDate = new Date()\n normalizedDate.setFullYear(year, month, day)\n normalizedDate.setHours(hour)\n normalizedDate.setMinutes(minute)\n normalizedDate.setSeconds(second)\n normalizedDate.setMilliseconds(millisecond)\n\n return normalizedDate\n}\n\ninterface SelectOption {\n label: string\n value: number\n}\n\nexport const getMonthLabel = (month: number, locale: Locale = 'en') => {\n const date: Date = normalizeNewDate(1970, month, 1)\n const options: DateTimeOptions = {\n locale: locale || 'en',\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n }\n const formatter = new DateTimeFormatter(options)\n const monthPart = formatter\n .formatDateTimeToParts(date)\n .find((part) => part.type === 'month')!.value\n return monthPart\n}\n\nexport const getMonthOptions = (locale: Locale): SelectOption[] => {\n return range(0, 12).map((value) => ({\n value,\n label: getMonthLabel(value, locale),\n }))\n}\n\nexport const getYearOptions = (date: Date): SelectOption[] => {\n const start = Math.max(minYear, getYear(subYearsFn(date, 10)))\n\n return range(start, start + 21).map((value) => ({\n value,\n label: String(value).padStart(4, '0'),\n }))\n}\n\nexport const getDayOfWeekLabel = (day: number, locale: Locale = 'en') => {\n return formatFn(addDaysFn(startOfWeek(new Date()), day), 'iiiiii', {\n locale: dateFnsLocales[locale],\n })\n}\n\nexport const updateMonth = (date: Date, month: number) => {\n return normalizeNewDate(getYear(date), month, getDate(date))\n}\n\nexport const updateYear = (date: Date, year: number) => {\n return normalizeNewDate(year, getMonth(date), getDate(date))\n}\n\nexport const subDays: (date: Date, num: number) => Date = subDaysFn\n\nexport const subMonths: (date: Date, num: number) => Date = subMonthsFn\n\nconst CalendarHelpers = {\n addDays,\n addMonths,\n eachDay,\n format,\n formatMonth,\n getDate,\n getDates,\n getMonth,\n getMonthLabel,\n getMonthOptions,\n getRows,\n getYear,\n getYearOptions,\n isAfter,\n isBefore,\n isSameDay,\n isSameMonth,\n isToday,\n isWithinRange,\n normalizeExistingDate,\n normalizeNewDate,\n subDays,\n subMonths,\n updateMonth,\n updateYear,\n}\n\nexport default CalendarHelpers\n"],"mappings":"AACA,SACEA,iBAAiB,EACjBC,oBAAoB,QACf,gCAAgC;AACvC,SACEC,OAAO,IAAIC,SAAS,EACpBC,SAAS,IAAIC,WAAW,EACxBC,iBAAiB,IAAIC,SAAS,EAC9BC,MAAM,IAAIC,QAAQ,EAClBC,OAAO,IAAIC,SAAS,EACpBC,MAAM,IAAIC,QAAQ,EAClBC,QAAQ,IAAIC,UAAU,EACtBC,OAAO,IAAIC,SAAS,EACpBC,OAAO,IAAIC,SAAS,EACpBC,QAAQ,IAAIC,UAAU,EACtBC,SAAS,IAAIC,WAAW,EACxBC,WAAW,IAAIC,aAAa,EAC5BC,OAAO,IAAIC,SAAS,EACpBC,gBAAgB,IAAIC,eAAe,EACnCC,YAAY,IAAIC,cAAc,EAC9BC,WAAW,EACXC,OAAO,IAAIC,SAAS,EACpBC,SAAS,IAAIC,WAAW,EACxBC,QAAQ,IAAIC,UAAU,QACjB,UAAU;AACjB,SACEC,EAAE,EACFC,IAAI,IAAIC,EAAE,EACVC,EAAE,EACFC,EAAE,EACFC,EAAE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AAbA,UAAUA,CAAIzC,IAAU,EAAEQ,IAAY,EAAK;EACtD,OAAOV,gBAAgB,CAACU,IAAI,EAAEjE,QAAQ,CAACyD,IAAI,CAAC,EAAE7D,OAAO,CAAC6D,IAAI,CAAC,CAAC;AAC9D,CAAC;AAED,OAAO,IAAMtC,OAA0C,GAAGC,SAAS;AAEnE,OAAO,IAAMC,SAA4C,GAAGC,WAAW;AAEvE,IAAM6E,eAAe,GAAG;EACtB/G,OAAO,EAAPA,OAAO;EACPE,SAAS,EAATA,SAAS;EACT0D,OAAO,EAAPA,OAAO;EACPtD,MAAM,EAANA,MAAM;EACN2D,WAAW,EAAXA,WAAW;EACXzD,OAAO,EAAPA,OAAO;EACP4D,QAAQ,EAARA,QAAQ;EACRxD,QAAQ,EAARA,QAAQ;EACR+E,aAAa,EAAbA,aAAa;EACbS,eAAe,EAAfA,eAAe;EACf3B,OAAO,EAAPA,OAAO;EACP3D,OAAO,EAAPA,OAAO;EACPyF,cAAc,EAAdA,cAAc;EACdvF,OAAO,EAAPA,OAAO;EACPE,QAAQ,EAARA,QAAQ;EACRE,SAAS,EAATA,SAAS;EACTE,WAAW,EAAXA,WAAW;EACXE,OAAO,EAAPA,OAAO;EACPmD,aAAa,EAAbA,aAAa;EACbD,qBAAqB,EAArBA,qBAAqB;EACrBP,gBAAgB,EAAhBA,gBAAgB;EAChBpC,OAAO,EAAPA,OAAO;EACPE,SAAS,EAATA,SAAS;EACT4E,WAAW,EAAXA,WAAW;EACXC,UAAU,EAAVA;AACF,CAAC;AAED,eAAeC,eAAe"}
|
|
1
|
+
{"version":3,"file":"CalendarHelpers.js","names":["DateTimeFormatter","getStartDayOfTheWeek","addDays","addDaysFn","addMonths","addMonthsFn","eachDayOfInterval","eachDayFn","format","formatFn","getDate","getDateFn","getDay","getDayFn","getMonth","getMonthFn","getYear","getYearFn","isAfter","isAfterFn","isBefore","isBeforeFn","isSameDay","isSameDayFn","isSameMonth","isSameMonthFn","isToday","isTodayFn","isWithinInterval","isWithinRangeFn","startOfMonth","startOfMonthFn","startOfWeek","subDays","subDaysFn","subMonths","subMonthsFn","subYears","subYearsFn","de","enUS","en","es","fr","is","it","ja","nb","pl","pt","ptBR","th","zhCN","zhTW","range","splitEvery","dateFnsLocales","pseudo","maxMonth","minYear","getMaxYear","Date","getFullYear","calendarWeeks","daysInWeek","daysInCalendar","eachDay","date1","date2","start","end","formatMonth","month","normalizeNewDate","getDates","date","locale","startDayOfWeek","dayShift","getRows","normalizeExistingDate","isWithinRange","day","year","hour","arguments","length","undefined","minute","second","millisecond","normalizedDate","setFullYear","setHours","setMinutes","setSeconds","setMilliseconds","getMonthLabel","options","formatter","monthPart","formatDateTimeToParts","find","part","type","value","getMonthOptions","map","label","getYearOptions","Math","max","String","padStart","getDayOfWeekLabel","updateMonth","updateYear","CalendarHelpers"],"sources":["../../src/_utils/CalendarHelpers.ts"],"sourcesContent":["import type { DateTimeOptions } from '@procore/globalization-toolkit'\nimport {\n DateTimeFormatter,\n getStartDayOfTheWeek,\n} from '@procore/globalization-toolkit'\nimport {\n addDays as addDaysFn,\n addMonths as addMonthsFn,\n eachDayOfInterval as eachDayFn,\n format as formatFn,\n getDate as getDateFn,\n getDay as getDayFn,\n getMonth as getMonthFn,\n getYear as getYearFn,\n isAfter as isAfterFn,\n isBefore as isBeforeFn,\n isSameDay as isSameDayFn,\n isSameMonth as isSameMonthFn,\n isToday as isTodayFn,\n isWithinInterval as isWithinRangeFn,\n startOfMonth as startOfMonthFn,\n startOfWeek,\n subDays as subDaysFn,\n subMonths as subMonthsFn,\n subYears as subYearsFn,\n} from 'date-fns'\nimport {\n de,\n enUS as en,\n es,\n fr,\n is,\n it,\n ja,\n nb,\n pl,\n pt,\n ptBR,\n th,\n zhCN,\n zhTW,\n} from 'date-fns/esm/locale'\nimport { range, splitEvery } from 'ramda'\nimport type { Locale } from '../_hooks/I18n'\n\ntype DateFnsLocales = { [key in Locale]: any }\n\nconst dateFnsLocales: DateFnsLocales = {\n en: en,\n 'en-CA': en,\n 'fr-CA': fr,\n 'fr-FR': fr,\n es: es,\n 'es-ES': es,\n 'en-AE': en,\n 'en-AU': en,\n 'en-GB': en,\n 'en-SG': en,\n 'th-TH': th,\n 'pt-BR': ptBR,\n 'ja-JP': ja,\n 'is-IS': is,\n 'de-DE': de,\n 'zh-SG': zhCN,\n pseudo: en,\n 'pl-PL': pl,\n 'nb-NO': nb,\n 'zh-TW': zhTW,\n 'it-IT': it,\n 'pt-PT': pt,\n}\n\nexport const maxMonth = 12\n\nexport const minYear: number = 1000\n\n// need to be function to make mocking of new Date works in tests.\nexport const getMaxYear = () => new Date().getFullYear() + 100\n\n// rows in calendar\nconst calendarWeeks: number = 6\n\nconst daysInWeek: number = 7\n\nexport const daysInCalendar: number = calendarWeeks * daysInWeek\n\nexport const addDays: (date: Date, num: number) => Date = addDaysFn\n\nexport const addMonths: (date: Date, num: number) => Date = addMonthsFn\n\nexport const eachDay: (date1: Date, date2: Date) => Date[] = (date1, date2) =>\n eachDayFn({ start: date1, end: date2 })\n\nexport const format: (date: Date, formatString: string) => string = formatFn\n\n// An entire date object has to be formed, format(month, 'MMM') breaks for month >= 10 (it just outputs 'Dec')\nexport const formatMonth: (month: number) => string = (month) =>\n formatFn(normalizeNewDate(2019, month, 2), 'MMM')\n\nexport const getDate: (date: Date) => number = getDateFn\n\nexport const getDates: (date: Date, locale: Locale) => Date[] = (\n date,\n locale\n) => {\n const startDayOfWeek: number = getStartDayOfTheWeek(locale)\n\n // Shift first day appearing on the calendar based on day of the week of the first day of the month and based on the start day of the week\n const dayShift = 7 - startDayOfWeek\n const subDays = (getDayFn(startOfMonthFn(date)) + dayShift) % 7\n\n const start = subDaysFn(startOfMonthFn(date), subDays)\n const end = addDaysFn(start, daysInCalendar - 1)\n\n return eachDayFn({ start, end })\n}\n\nexport const getMonth: (date: Date) => number = getMonthFn\n\nexport const getRows: (dates: Date[]) => Date[][] = splitEvery(7)\n\nexport const getYear: (date: Date) => number = getYearFn\n\nexport const isAfter: (date1: Date, date2: Date) => boolean = (date1, date2) =>\n isAfterFn(normalizeExistingDate(date1), normalizeExistingDate(date2))\n\nexport const isBefore: (date1: Date, date2: Date) => boolean = (date1, date2) =>\n isBeforeFn(normalizeExistingDate(date1), normalizeExistingDate(date2))\n\nexport const isSameDay: (date1: Date, date2: Date) => boolean = (\n date1,\n date2\n) => isSameDayFn(normalizeExistingDate(date1), normalizeExistingDate(date2))\n\nexport const isSameMonth: (date1: Date, date2: Date) => boolean = isSameMonthFn\n\nexport const isToday: (date: Date) => boolean = isTodayFn\n\nexport const isWithinRange: (\n date: Date,\n start?: Date,\n end?: Date\n) => boolean = (date, start, end) => {\n if (!start || !end || start > end) {\n return false\n }\n\n return isWithinRangeFn(normalizeExistingDate(date), {\n start: normalizeExistingDate(start),\n end: normalizeExistingDate(end),\n })\n}\n\nexport const normalizeExistingDate: (day: Date) => Date = (day) =>\n normalizeNewDate(getYearFn(day), getMonthFn(day), getDateFn(day))\n\nexport const normalizeNewDate: (\n year: number,\n month: number,\n day: number,\n hour?: number,\n minute?: number,\n second?: number,\n millisecond?: number\n) => Date = (\n year,\n month,\n day,\n hour = 0,\n minute = 0,\n second = 0,\n millisecond = 0\n) => {\n const normalizedDate = new Date()\n normalizedDate.setFullYear(year, month, day)\n normalizedDate.setHours(hour)\n normalizedDate.setMinutes(minute)\n normalizedDate.setSeconds(second)\n normalizedDate.setMilliseconds(millisecond)\n\n return normalizedDate\n}\n\ninterface SelectOption {\n label: string\n value: number\n}\n\nexport const getMonthLabel = (month: number, locale: Locale = 'en') => {\n const date: Date = normalizeNewDate(1970, month, 1)\n const options: DateTimeOptions = {\n locale: locale || 'en',\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n }\n const formatter = new DateTimeFormatter(options)\n const monthPart = formatter\n .formatDateTimeToParts(date)\n .find((part) => part.type === 'month')!.value\n return monthPart\n}\n\nexport const getMonthOptions = (locale: Locale): SelectOption[] => {\n return range(0, 12).map((value) => ({\n value,\n label: getMonthLabel(value, locale),\n }))\n}\n\nexport const getYearOptions = (date: Date): SelectOption[] => {\n const start = Math.max(minYear, getYear(subYearsFn(date, 10)))\n\n return range(start, start + 21).map((value) => ({\n value,\n label: String(value).padStart(4, '0'),\n }))\n}\n\nexport const getDayOfWeekLabel = (day: number, locale: Locale = 'en') => {\n return formatFn(addDaysFn(startOfWeek(new Date()), day), 'iiiiii', {\n locale: dateFnsLocales[locale],\n })\n}\n\nexport const updateMonth = (date: Date, month: number) => {\n return normalizeNewDate(getYear(date), month, getDate(date))\n}\n\nexport const updateYear = (date: Date, year: number) => {\n return normalizeNewDate(year, getMonth(date), getDate(date))\n}\n\nexport const subDays: (date: Date, num: number) => Date = subDaysFn\n\nexport const subMonths: (date: Date, num: number) => Date = subMonthsFn\n\nconst CalendarHelpers = {\n addDays,\n addMonths,\n eachDay,\n format,\n formatMonth,\n getDate,\n getDates,\n getMonth,\n getMonthLabel,\n getMonthOptions,\n getRows,\n getYear,\n getYearOptions,\n isAfter,\n isBefore,\n isSameDay,\n isSameMonth,\n isToday,\n isWithinRange,\n normalizeExistingDate,\n normalizeNewDate,\n subDays,\n subMonths,\n updateMonth,\n updateYear,\n}\n\nexport default CalendarHelpers\n"],"mappings":"AACA,SACEA,iBAAiB,EACjBC,oBAAoB,QACf,gCAAgC;AACvC,SACEC,OAAO,IAAIC,SAAS,EACpBC,SAAS,IAAIC,WAAW,EACxBC,iBAAiB,IAAIC,SAAS,EAC9BC,MAAM,IAAIC,QAAQ,EAClBC,OAAO,IAAIC,SAAS,EACpBC,MAAM,IAAIC,QAAQ,EAClBC,QAAQ,IAAIC,UAAU,EACtBC,OAAO,IAAIC,SAAS,EACpBC,OAAO,IAAIC,SAAS,EACpBC,QAAQ,IAAIC,UAAU,EACtBC,SAAS,IAAIC,WAAW,EACxBC,WAAW,IAAIC,aAAa,EAC5BC,OAAO,IAAIC,SAAS,EACpBC,gBAAgB,IAAIC,eAAe,EACnCC,YAAY,IAAIC,cAAc,EAC9BC,WAAW,EACX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U,EAAVA;AACF,CAAC;AAED,eAAeC,eAAe"}
|
package/dist/_utils/TinyMCE.js
CHANGED
|
@@ -24,7 +24,11 @@ var textEditorLocales = {
|
|
|
24
24
|
'de-DE': 'de',
|
|
25
25
|
'zh-SG': 'zh_CN',
|
|
26
26
|
pseudo: 'en',
|
|
27
|
-
'pl-PL': 'pl'
|
|
27
|
+
'pl-PL': 'pl',
|
|
28
|
+
'nb-NO': 'nb',
|
|
29
|
+
'zh-TW': 'zh_TW',
|
|
30
|
+
'it-IT': 'it',
|
|
31
|
+
'pt-PT': 'pt'
|
|
28
32
|
};
|
|
29
33
|
export var defaultPlugins = ['autolink', 'autoresize', 'lists', 'nonbreaking', 'paste', 'advlist'];
|
|
30
34
|
export var plugins = ['advlist', 'anchor', 'autolink', 'autoresize', 'autosave', 'bbcode', 'charmap', 'code', 'codesample', 'colorpicker', 'contextmenu', 'directionality', 'emoticons', 'fullpage', 'fullscreen', 'help', 'hr', 'image', 'imagetools', 'importcss', 'insertdatetime', 'legacyoutput', 'link', 'lists', 'media', 'nonbreaking', 'noneditable', 'pagebreak', 'paste', 'preview', 'print', 'save', 'searchreplace', 'spellchecker', 'tabfocus', 'table', 'template', 'textpattern', 'toc', 'visualblocks', 'visualchars', 'wordcount'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TinyMCE.js","names":["scriptId","tinyMCESource","tinyMCEVersion","textEditorLocales","en","es","pseudo","defaultPlugins","plugins","tinyMCETabMarkup","tinyMCEConfig","autoresize_overflow_padding","autoresize_bottom_margin","browser_spellcheck","convert_url","content_css","concat","extended_valid_elements","min_height","invalid_elements","menubar","nonbreaking_force_tab","paste_preprocess","_","args","content","replace","paste_remove_styles_if_webkit","paste_retain_style_properties","paste_word_valid_elements","relative_urls","remove_script_host","statusbar","skin_url","toolbar","toolbar_mode","getValidLookupLocale","locale","usesBuiltInText","generateLanguageUrl","lookupLocale","generatePluginUrl","plugin","generateExternalPlugins","basePlugins","arguments","length","undefined","Array","from","Set","reduce","acc","includes","Object","assign","_defineProperty"],"sources":["../../src/_utils/TinyMCE.ts"],"sourcesContent":["import type { Editor } from '@tinymce/tinymce-react'\nimport type { Locale } from '../_hooks/I18n'\n\nexport const scriptId = 'tiny-mce-core-source'\nexport const tinyMCESource = 'https://s3.amazonaws.com/procore-core/tinymce'\nexport const tinyMCEVersion = '5.8.1'\n\ntype TextEditorLocales = { [key in Locale]: string }\n\n// TinyMCE Supported Languages: https://www.tiny.cloud/docs/configure/localization/#supportedlanguages\nconst textEditorLocales: TextEditorLocales = {\n en: 'en',\n 'en-CA': 'en',\n 'fr-CA': 'fr_FR',\n 'fr-FR': 'fr_FR',\n es: 'es',\n 'es-ES': 'es',\n 'en-AE': 'en',\n 'en-AU': 'en',\n 'en-GB': 'en',\n 'en-SG': 'en',\n 'th-TH': 'th_TH',\n 'ja-JP': 'ja',\n 'pt-BR': 'pt_BR',\n 'is-IS': 'en',\n 'de-DE': 'de',\n 'zh-SG': 'zh_CN',\n pseudo: 'en',\n 'pl-PL': 'pl',\n}\n\nexport const defaultPlugins = [\n 'autolink',\n 'autoresize',\n 'lists',\n 'nonbreaking',\n 'paste',\n 'advlist',\n]\n\nexport const plugins = [\n 'advlist',\n 'anchor',\n 'autolink',\n 'autoresize',\n 'autosave',\n 'bbcode',\n 'charmap',\n 'code',\n 'codesample',\n 'colorpicker',\n 'contextmenu',\n 'directionality',\n 'emoticons',\n 'fullpage',\n 'fullscreen',\n 'help',\n 'hr',\n 'image',\n 'imagetools',\n 'importcss',\n 'insertdatetime',\n 'legacyoutput',\n 'link',\n 'lists',\n 'media',\n 'nonbreaking',\n 'noneditable',\n 'pagebreak',\n 'paste',\n 'preview',\n 'print',\n 'save',\n 'searchreplace',\n 'spellchecker',\n 'tabfocus',\n 'table',\n 'template',\n 'textpattern',\n 'toc',\n 'visualblocks',\n 'visualchars',\n 'wordcount',\n]\n\n/**\n * Historically, `nonbreaking_force_tab` has been set to `true`\n * and this takes the `Tab` keypress as input to add to the content.\n * e.g indent the start of the text block like a paragraph.\n * This is different from the TinyMCE tool and command 'Indent', which\n * indents the entire block. e.g. indent this entire text block and the\n * wrapped lines.\n * This is the HTML it outputs when `nonbreaking_force_tab: true`\n */\nexport const tinyMCETabMarkup = `<span class=\\\"mce-nbsp-wrap\\\" contenteditable=\\\"false\\\"> </span>`\n\nexport const tinyMCEConfig: any & Editor = {\n autoresize_overflow_padding: 12,\n autoresize_bottom_margin: 0,\n browser_spellcheck: true,\n convert_url: false,\n content_css: `${tinyMCESource}/${tinyMCEVersion}/skins/content/default/content.min.css`,\n extended_valid_elements:\n 'table[class=mce-table|border:1px double #000|cellpadding: 3px|style=border-collapse: collapse; border-color: #000]',\n min_height: 96,\n invalid_elements: 'form,script',\n menubar: false,\n nonbreaking_force_tab: true,\n paste_preprocess: (_: any, args: any) => {\n args.content = args.content.replace(/<pre>/gi, '<p>')\n args.content = args.content.replace(/<\\/pre>/gi, '</p>')\n },\n paste_remove_styles_if_webkit: true,\n paste_retain_style_properties: 'font-size,text-decoration',\n paste_word_valid_elements:\n '@[style],pre,-strong/b,-em/i,-span,-p,-ol,-ul,-li,-table,-tr,-td[colspan|rowspan],-th,-thead,-tfoot,-tbody,-a[href|name],sub,sup,strike,br,u',\n relative_urls: false,\n remove_script_host: false,\n statusbar: false,\n skin_url: `${tinyMCESource}/${tinyMCEVersion}/skins/ui/oxide`,\n toolbar:\n 'bold italic underline strikethrough | alignleft aligncenter alignright | bullist numlist | outdent indent | cut paste pastetext | fontsizeselect | forecolor backcolor | link table image | undo redo',\n toolbar_mode: 'floating',\n}\n\nexport function getValidLookupLocale(locale: Locale): string {\n return textEditorLocales[locale] || textEditorLocales.en\n}\n\nfunction usesBuiltInText(locale: string) {\n return locale === textEditorLocales.en\n}\n\nexport function generateLanguageUrl(locale: Locale) {\n const lookupLocale = getValidLookupLocale(locale)\n return usesBuiltInText(lookupLocale)\n ? ''\n : `${tinyMCESource}/${tinyMCEVersion}/langs/${lookupLocale}.js`\n}\n\nfunction generatePluginUrl(plugin: string) {\n return `${tinyMCESource}/${tinyMCEVersion}/plugins/${plugin}/plugin.min.js`\n}\n\nexport function generateExternalPlugins(\n plugins: Array<string>,\n basePlugins = defaultPlugins\n) {\n return Array.from(new Set(plugins.concat(basePlugins))).reduce(\n (acc, plugin) => {\n return plugins.includes(plugin)\n ? Object.assign(acc, { [plugin]: generatePluginUrl(plugin) })\n : acc\n },\n {}\n )\n}\n"],"mappings":";;;;AAGA,OAAO,IAAMA,QAAQ,GAAG,sBAAsB;AAC9C,OAAO,IAAMC,aAAa,GAAG,+CAA+C;AAC5E,OAAO,IAAMC,cAAc,GAAG,OAAO;AAIrC;AACA,IAAMC,iBAAoC,GAAG;EAC3CC,EAAE,EAAE,IAAI;EACR,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,OAAO;EAChB,OAAO,EAAE,OAAO;EAChBC,EAAE,EAAE,IAAI;EACR,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,OAAO;EAChB,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,OAAO;EAChB,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,OAAO;EAChBC,MAAM,EAAE,IAAI;EACZ,OAAO,EAAE;AACX,CAAC;AAED,OAAO,IAAMC,cAAc,GAAG,CAC5B,UAAU,EACV,YAAY,EACZ,OAAO,EACP,aAAa,EACb,OAAO,EACP,SAAS,CACV;AAED,OAAO,IAAMC,OAAO,GAAG,CACrB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,SAAS,EACT,MAAM,EACN,YAAY,EACZ,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,YAAY,EACZ,MAAM,EACN,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,WAA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o","defaultPlugins","plugins","tinyMCETabMarkup","tinyMCEConfig","autoresize_overflow_padding","autoresize_bottom_margin","browser_spellcheck","convert_url","content_css","concat","extended_valid_elements","min_height","invalid_elements","menubar","nonbreaking_force_tab","paste_preprocess","_","args","content","replace","paste_remove_styles_if_webkit","paste_retain_style_properties","paste_word_valid_elements","relative_urls","remove_script_host","statusbar","skin_url","toolbar","toolbar_mode","getValidLookupLocale","locale","usesBuiltInText","generateLanguageUrl","lookupLocale","generatePluginUrl","plugin","generateExternalPlugins","basePlugins","arguments","length","undefined","Array","from","Set","reduce","acc","includes","Object","assign","_defineProperty"],"sources":["../../src/_utils/TinyMCE.ts"],"sourcesContent":["import type { Editor } from '@tinymce/tinymce-react'\nimport type { Locale } from '../_hooks/I18n'\n\nexport const scriptId = 'tiny-mce-core-source'\nexport const tinyMCESource = 'https://s3.amazonaws.com/procore-core/tinymce'\nexport const tinyMCEVersion = '5.8.1'\n\ntype TextEditorLocales = { [key in Locale]: string }\n\n// TinyMCE Supported Languages: https://www.tiny.cloud/docs/configure/localization/#supportedlanguages\nconst textEditorLocales: TextEditorLocales = {\n en: 'en',\n 'en-CA': 'en',\n 'fr-CA': 'fr_FR',\n 'fr-FR': 'fr_FR',\n es: 'es',\n 'es-ES': 'es',\n 'en-AE': 'en',\n 'en-AU': 'en',\n 'en-GB': 'en',\n 'en-SG': 'en',\n 'th-TH': 'th_TH',\n 'ja-JP': 'ja',\n 'pt-BR': 'pt_BR',\n 'is-IS': 'en',\n 'de-DE': 'de',\n 'zh-SG': 'zh_CN',\n pseudo: 'en',\n 'pl-PL': 'pl',\n 'nb-NO': 'nb',\n 'zh-TW': 'zh_TW',\n 'it-IT': 'it',\n 'pt-PT': 'pt',\n}\n\nexport const defaultPlugins = [\n 'autolink',\n 'autoresize',\n 'lists',\n 'nonbreaking',\n 'paste',\n 'advlist',\n]\n\nexport const plugins = [\n 'advlist',\n 'anchor',\n 'autolink',\n 'autoresize',\n 'autosave',\n 'bbcode',\n 'charmap',\n 'code',\n 'codesample',\n 'colorpicker',\n 'contextmenu',\n 'directionality',\n 'emoticons',\n 'fullpage',\n 'fullscreen',\n 'help',\n 'hr',\n 'image',\n 'imagetools',\n 'importcss',\n 'insertdatetime',\n 'legacyoutput',\n 'link',\n 'lists',\n 'media',\n 'nonbreaking',\n 'noneditable',\n 'pagebreak',\n 'paste',\n 'preview',\n 'print',\n 'save',\n 'searchreplace',\n 'spellchecker',\n 'tabfocus',\n 'table',\n 'template',\n 'textpattern',\n 'toc',\n 'visualblocks',\n 'visualchars',\n 'wordcount',\n]\n\n/**\n * Historically, `nonbreaking_force_tab` has been set to `true`\n * and this takes the `Tab` keypress as input to add to the content.\n * e.g indent the start of the text block like a paragraph.\n * This is different from the TinyMCE tool and command 'Indent', which\n * indents the entire block. e.g. indent this entire text block and the\n * wrapped lines.\n * This is the HTML it outputs when `nonbreaking_force_tab: true`\n */\nexport const tinyMCETabMarkup = `<span class=\\\"mce-nbsp-wrap\\\" contenteditable=\\\"false\\\"> </span>`\n\nexport const tinyMCEConfig: any & Editor = {\n autoresize_overflow_padding: 12,\n autoresize_bottom_margin: 0,\n browser_spellcheck: true,\n convert_url: false,\n content_css: `${tinyMCESource}/${tinyMCEVersion}/skins/content/default/content.min.css`,\n extended_valid_elements:\n 'table[class=mce-table|border:1px double #000|cellpadding: 3px|style=border-collapse: collapse; border-color: #000]',\n min_height: 96,\n invalid_elements: 'form,script',\n menubar: false,\n nonbreaking_force_tab: true,\n paste_preprocess: (_: any, args: any) => {\n args.content = args.content.replace(/<pre>/gi, '<p>')\n args.content = args.content.replace(/<\\/pre>/gi, '</p>')\n },\n paste_remove_styles_if_webkit: true,\n paste_retain_style_properties: 'font-size,text-decoration',\n paste_word_valid_elements:\n '@[style],pre,-strong/b,-em/i,-span,-p,-ol,-ul,-li,-table,-tr,-td[colspan|rowspan],-th,-thead,-tfoot,-tbody,-a[href|name],sub,sup,strike,br,u',\n relative_urls: false,\n remove_script_host: false,\n statusbar: false,\n skin_url: `${tinyMCESource}/${tinyMCEVersion}/skins/ui/oxide`,\n toolbar:\n 'bold italic underline strikethrough | alignleft aligncenter alignright | bullist numlist | outdent indent | cut paste pastetext | fontsizeselect | forecolor backcolor | link table image | undo redo',\n toolbar_mode: 'floating',\n}\n\nexport function getValidLookupLocale(locale: Locale): string {\n return textEditorLocales[locale] || textEditorLocales.en\n}\n\nfunction usesBuiltInText(locale: string) {\n return locale === textEditorLocales.en\n}\n\nexport function generateLanguageUrl(locale: Locale) {\n const lookupLocale = getValidLookupLocale(locale)\n return usesBuiltInText(lookupLocale)\n ? ''\n : `${tinyMCESource}/${tinyMCEVersion}/langs/${lookupLocale}.js`\n}\n\nfunction generatePluginUrl(plugin: string) {\n return `${tinyMCESource}/${tinyMCEVersion}/plugins/${plugin}/plugin.min.js`\n}\n\nexport function generateExternalPlugins(\n plugins: Array<string>,\n basePlugins = defaultPlugins\n) {\n return Array.from(new Set(plugins.concat(basePlugins))).reduce(\n (acc, plugin) => {\n return plugins.includes(plugin)\n ? Object.assign(acc, { [plugin]: generatePluginUrl(plugin) })\n : acc\n },\n {}\n )\n}\n"],"mappings":";;;;AAGA,OAAO,IAAMA,QAAQ,GAAG,sBAAsB;AAC9C,OAAO,IAAMC,aAAa,GAAG,+CAA+C;AAC5E,OAAO,IAAMC,cAAc,GAAG,OAAO;AAIrC;AACA,IAAMC,iBAAoC,GAAG;EAC3CC,EAAE,EAAE,IAAI;EACR,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,OAAO;EAChB,OAAO,EAAE,OAAO;EAChBC,EAAE,EAAE,IAAI;EACR,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,OAAO;EAChB,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,OAAO;EAChB,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,OAA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AA,QAAAE,SAAA,GAAAF,SAAA,MAAGtC,cAAc;EAE5B,OAAOyC,KAAK,CAACC,IAAI,CAAC,IAAIC,GAAG,CAAC1C,OAAO,CAACQ,MAAM,CAAC4B,WAAW,CAAC,CAAC,CAAC,CAACO,MAAM,CAC5D,UAACC,GAAG,EAAEV,MAAM,EAAK;IACf,OAAOlC,OAAO,CAAC6C,QAAQ,CAACX,MAAM,CAAC,GAC3BY,MAAM,CAACC,MAAM,CAACH,GAAG,EAAAI,eAAA,KAAKd,MAAM,EAAGD,iBAAiB,CAACC,MAAM,CAAC,CAAE,CAAC,GAC3DU,GAAG;EACT,CAAC,EACD,CAAC,CACH,CAAC;AACH"}
|
package/dist/index.d.ts
CHANGED
|
@@ -91,6 +91,8 @@ export * from './Tooltip';
|
|
|
91
91
|
export * from './Tree';
|
|
92
92
|
export * from './Typeahead';
|
|
93
93
|
export * from './Typography';
|
|
94
|
+
/** UNSAFE Template exports */
|
|
95
|
+
export * from './UNSAFE_TEMPLATES_index';
|
|
94
96
|
export * from './_hooks/Anchor';
|
|
95
97
|
export * from './_hooks/Buffer';
|
|
96
98
|
export * from './_hooks/ClickOutside';
|
|
@@ -99,6 +101,10 @@ export * from './_hooks/DelayedCallback';
|
|
|
99
101
|
export * from './_hooks/DelayedToggle';
|
|
100
102
|
export * from './_hooks/Deprecation';
|
|
101
103
|
export * from './_hooks/EventListener';
|
|
104
|
+
/**
|
|
105
|
+
* @deprecated
|
|
106
|
+
*/
|
|
107
|
+
export { OverridableFocusScope as UNSAFE_OverridableFocusScope, useOverridableFocusScope as UNSAFE_useOverridableFocusScope, } from './_hooks/FocusScopeOverride';
|
|
102
108
|
export { getI18nProviderLocale } from './_hooks/getI18nProviderLocale';
|
|
103
109
|
export * from './_hooks/Hotkey';
|
|
104
110
|
export * from './_hooks/I18n';
|
package/dist/index.js
CHANGED
|
@@ -97,6 +97,8 @@ export * from './Tooltip';
|
|
|
97
97
|
export * from './Tree';
|
|
98
98
|
export * from './Typeahead';
|
|
99
99
|
export * from './Typography';
|
|
100
|
+
/** UNSAFE Template exports */
|
|
101
|
+
export * from './UNSAFE_TEMPLATES_index';
|
|
100
102
|
export * from './_hooks/Anchor';
|
|
101
103
|
export * from './_hooks/Buffer';
|
|
102
104
|
export * from './_hooks/ClickOutside';
|
|
@@ -105,6 +107,10 @@ export * from './_hooks/DelayedCallback';
|
|
|
105
107
|
export * from './_hooks/DelayedToggle';
|
|
106
108
|
export * from './_hooks/Deprecation';
|
|
107
109
|
export * from './_hooks/EventListener';
|
|
110
|
+
/**
|
|
111
|
+
* @deprecated
|
|
112
|
+
*/
|
|
113
|
+
export { OverridableFocusScope as UNSAFE_OverridableFocusScope, useOverridableFocusScope as UNSAFE_useOverridableFocusScope } from './_hooks/FocusScopeOverride';
|
|
108
114
|
export { getI18nProviderLocale } from './_hooks/getI18nProviderLocale';
|
|
109
115
|
export * from './_hooks/Hotkey';
|
|
110
116
|
export * from './_hooks/I18n';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["defaultPlugins","generateExternalPlugins","generateLanguageUrl","tinyMCEConfig","StyledFieldHeader","BETA_makeField","getI18nProviderLocale","useResizeObserver","UNSAFE_useResizeObserver","borderRadius","getBorderRadius","UNSAFE_getBorderRadius","getEllipsis","UNSAFE_getEllipsis","getFocus","UNSAFE_getFocus","getLineClamp","UNSAFE_getLineClamp","addSubcomponents","UNSAFE_addSubcomponents","getMonthLabel","intlDateTimeFormat","parseFilename","UNSAFE_parseFilename","mergeRefs","UNSAFE_mergeRefs","docsProps","UNSAFE_props","tinyMCE","config"],"sources":["../src/index.ts"],"sourcesContent":["import {\n defaultPlugins,\n generateExternalPlugins,\n generateLanguageUrl,\n tinyMCEConfig,\n} from './_utils/TinyMCE'\n\n// export const version = process.env.VERSION\nexport * from './AnchorNavigation'\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 './DetailPageTemplate'\nexport * from './Dropdown'\nexport * from './DropdownFlyout'\nexport * from './Dropzone'\nexport * from './EmptyState'\nexport { StyledFieldHeader } from './Field'\nexport * from './FileList'\nexport * from './FileSelect'\nexport * from './FileSelect/ThumbnailList'\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 './GhostPlaceholder'\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 './NextTile'\nexport * from './Notation'\nexport * from './NumberInput'\nexport * from './Overlay'\nexport * from './OverlayTrigger'\nexport * from './PageLayout'\nexport * from './PageTemplate'\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 { type SectionProps } from './Section'\nexport * from './SegmentedController'\nexport * from './Select'\nexport * from './Semantic'\nexport * from './SettingsPage'\nexport * from './SettingsPageTemplate'\nexport * from './Slider'\nexport * from './Spinner'\nexport * from './SplitViewCard'\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 './TextInput'\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 './ToolLandingPage'\nexport * from './ToolLandingPageTemplate'\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 { getI18nProviderLocale } 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'\nexport { getMonthLabel } from './_utils/CalendarHelpers'\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 { DivAttributes, Placement, SpanAttributes } from './_utils/types'\n\n/** @deprecated */\nexport const tinyMCE = {\n defaultPlugins,\n generateExternalPlugins,\n generateLanguageUrl,\n config: tinyMCEConfig,\n}\n"],"mappings":"AAAA,SACEA,cAAc,EACdC,uBAAuB,EACvBC,mBAAmB,EACnBC,aAAa,QACR,kBAAkB;;AAEzB;AACA,cAAc,oBAAoB;AAClC,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,sBAAsB;AACpC,cAAc,YAAY;AAC1B,cAAc,kBAAkB;AAChC,cAAc,YAAY;AAC1B,cAAc,cAAc;AAC5B,SAASC,iBAAiB,QAAQ,SAAS;AAC3C,cAAc,YAAY;AAC1B,cAAc,cAAc;AAC5B,cAAc,4BAA4B;AAC1C,cAAc,aAAa;AAC3B,cAAc,eAAe;AAC7B,cAAc,QAAQ;AACtB,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA,SAASC,cAAc,QAAQ,QAAQ;AACvC,cAAc,oBAAoB;AAClC,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,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Ac,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,SAASC,aAAa,QAAQ,0BAA0B;AACxD;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;AAG1D;AACA,OAAO,IAAMC,OAAO,GAAG;
|
|
1
|
+
{"version":3,"file":"index.js","names":["defaultPlugins","generateExternalPlugins","generateLanguageUrl","tinyMCEConfig","StyledFieldHeader","BETA_makeField","OverridableFocusScope","UNSAFE_OverridableFocusScope","useOverridableFocusScope","UNSAFE_useOverridableFocusScope","getI18nProviderLocale","useResizeObserver","UNSAFE_useResizeObserver","borderRadius","getBorderRadius","UNSAFE_getBorderRadius","getEllipsis","UNSAFE_getEllipsis","getFocus","UNSAFE_getFocus","getLineClamp","UNSAFE_getLineClamp","addSubcomponents","UNSAFE_addSubcomponents","getMonthLabel","intlDateTimeFormat","parseFilename","UNSAFE_parseFilename","mergeRefs","UNSAFE_mergeRefs","docsProps","UNSAFE_props","tinyMCE","config"],"sources":["../src/index.ts"],"sourcesContent":["import {\n defaultPlugins,\n generateExternalPlugins,\n generateLanguageUrl,\n tinyMCEConfig,\n} from './_utils/TinyMCE'\n\n// export const version = process.env.VERSION\nexport * from './AnchorNavigation'\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 './DetailPageTemplate'\nexport * from './Dropdown'\nexport * from './DropdownFlyout'\nexport * from './Dropzone'\nexport * from './EmptyState'\nexport { StyledFieldHeader } from './Field'\nexport * from './FileList'\nexport * from './FileSelect'\nexport * from './FileSelect/ThumbnailList'\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 './GhostPlaceholder'\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 './NextTile'\nexport * from './Notation'\nexport * from './NumberInput'\nexport * from './Overlay'\nexport * from './OverlayTrigger'\nexport * from './PageLayout'\nexport * from './PageTemplate'\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 { type SectionProps } from './Section'\nexport * from './SegmentedController'\nexport * from './Select'\nexport * from './Semantic'\nexport * from './SettingsPage'\nexport * from './SettingsPageTemplate'\nexport * from './Slider'\nexport * from './Spinner'\nexport * from './SplitViewCard'\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 './TextInput'\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 './ToolLandingPage'\nexport * from './ToolLandingPageTemplate'\nexport * from './Tooltip'\nexport * from './Tree'\nexport * from './Typeahead'\nexport * from './Typography'\n/** UNSAFE Template exports */\nexport * from './UNSAFE_TEMPLATES_index'\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'\n/**\n * @deprecated\n */\nexport {\n OverridableFocusScope as UNSAFE_OverridableFocusScope,\n useOverridableFocusScope as UNSAFE_useOverridableFocusScope,\n} from './_hooks/FocusScopeOverride'\nexport { getI18nProviderLocale } 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'\nexport { getMonthLabel } from './_utils/CalendarHelpers'\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 { DivAttributes, Placement, SpanAttributes } from './_utils/types'\n\n/** @deprecated */\nexport const tinyMCE = {\n defaultPlugins,\n generateExternalPlugins,\n generateLanguageUrl,\n config: tinyMCEConfig,\n}\n"],"mappings":"AAAA,SACEA,cAAc,EACdC,uBAAuB,EACvBC,mBAAmB,EACnBC,aAAa,QACR,kBAAkB;;AAEzB;AACA,cAAc,oBAAoB;AAClC,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,sBAAsB;AACpC,cAAc,YAAY;AAC1B,cAAc,kBAAkB;AAChC,cAAc,YAAY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;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;AAG1D;AACA,OAAO,IAAMC,OAAO,GAAG;EACrBhC,cAAc,EAAdA,cAAc;EACdC,uBAAuB,EAAvBA,uBAAuB;EACvBC,mBAAmB,EAAnBA,mBAAmB;EACnB+B,MAAM,EAAE9B;AACV,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/core-react",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.31.0",
|
|
4
4
|
"description": "React library of Procore Design Guidelines",
|
|
5
5
|
"author": "Procore Technologies",
|
|
6
6
|
"homepage": "https://github.com/procore/core/tree/main/packages/core-react",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@floating-ui/react-dom": "2.0.2",
|
|
86
86
|
"@procore/cdn-translations": "0.1.13",
|
|
87
87
|
"@procore/core-i18n-js": "^10.29.3",
|
|
88
|
-
"@procore/core-icons": "^12.10.
|
|
88
|
+
"@procore/core-icons": "^12.10.1",
|
|
89
89
|
"@react-aria/button": "3.6.4",
|
|
90
90
|
"@react-aria/checkbox": "3.6.0",
|
|
91
91
|
"@react-aria/focus": "3.16.2",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"@react-aria/visually-hidden": "3.4.1",
|
|
98
98
|
"@react-types/checkbox": "3.4.1",
|
|
99
99
|
"@tinymce/tinymce-react": "6.1.0",
|
|
100
|
-
"axios": "^1.12.
|
|
100
|
+
"axios": "^1.12.2",
|
|
101
101
|
"classnames": "2.3.2",
|
|
102
102
|
"date-fns": "2.29.1",
|
|
103
103
|
"date-fns-tz": "2.0.0",
|
|
@@ -127,6 +127,7 @@
|
|
|
127
127
|
"@babel/preset-typescript": "7.18.6",
|
|
128
128
|
"@babel/register": "7.18.9",
|
|
129
129
|
"@dotenvx/dotenvx": "1.24.0",
|
|
130
|
+
"@etchteam/storybook-addon-status": "4.2.4",
|
|
130
131
|
"@figma/code-connect": "^1.3.1",
|
|
131
132
|
"@procore/globalization-toolkit": "3.0.0",
|
|
132
133
|
"@procore/pseudolocalize": "^0.1.1",
|