@procore/core-react 12.13.0 → 12.15.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/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
- package/dist/Avatar/Avatar.styles.js +5 -5
- package/dist/AvatarStack/AvatarStack.styles.js +7 -7
- package/dist/Badge/Badge.styles.js +2 -2
- package/dist/Banner/Banner.js +3 -3
- package/dist/Banner/Banner.js.map +1 -1
- package/dist/Banner/Banner.styles.d.ts +3 -3
- package/dist/Banner/Banner.styles.js +16 -16
- package/dist/Banner/Banner.styles.js.map +1 -1
- package/dist/Box/Box.styles.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.js +5 -2
- package/dist/Breadcrumbs/Breadcrumbs.js.map +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/ContactItem/ContactItem.styles.js +5 -5
- package/dist/Content/Content.styles.js +2 -2
- package/dist/DateInput/DateInput.js +1 -1
- package/dist/DateInput/DateInput.js.map +1 -1
- package/dist/DateInput/DateInput.styles.d.ts +1 -1
- package/dist/DateInput/DateInput.styles.js +6 -6
- package/dist/DateInput/DateInput.styles.js.map +1 -1
- package/dist/DetailPage/DetailPage.styles.js +7 -7
- package/dist/DetailPageTemplate/DetailPageTemplate.d.ts +11 -0
- package/dist/DetailPageTemplate/DetailPageTemplate.js +38 -0
- package/dist/DetailPageTemplate/DetailPageTemplate.js.map +1 -0
- package/dist/DetailPageTemplate/DetailPageTemplate.types.d.ts +13 -0
- package/dist/DetailPageTemplate/DetailPageTemplate.types.js +2 -0
- package/dist/DetailPageTemplate/DetailPageTemplate.types.js.map +1 -0
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- package/dist/Dropdown/Dropdown.types.d.ts +5 -11
- package/dist/Dropdown/Dropdown.types.js.map +1 -1
- package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
- package/dist/DropdownFlyout/DropdownFlyout.types.d.ts +12 -14
- package/dist/DropdownFlyout/DropdownFlyout.types.js.map +1 -1
- package/dist/Dropzone/Dropzone.js +3 -2
- package/dist/Dropzone/Dropzone.js.map +1 -1
- package/dist/Dropzone/Dropzone.styles.js +9 -9
- package/dist/Dropzone/Dropzone.types.d.ts +22 -20
- package/dist/Dropzone/Dropzone.types.js.map +1 -1
- package/dist/EmptyState/EmptyState.js +1 -1
- package/dist/EmptyState/EmptyState.js.map +1 -1
- package/dist/EmptyState/EmptyState.styles.d.ts +1 -1
- package/dist/EmptyState/EmptyState.styles.js +14 -14
- package/dist/EmptyState/EmptyState.styles.js.map +1 -1
- 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.js +3 -3
- package/dist/FileSelect/GridSource/GridSource.js.map +1 -1
- package/dist/FileSelect/GridSource/GridSource.styles.d.ts +3 -3
- package/dist/FileSelect/GridSource/GridSource.styles.js +12 -12
- package/dist/FileSelect/GridSource/GridSource.styles.js.map +1 -1
- package/dist/FileSelect/GridSource/GridSource.types.d.ts +14 -23
- package/dist/FileSelect/GridSource/GridSource.types.js.map +1 -1
- package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
- package/dist/FileSelect/LocalSource/LocalSource.types.d.ts +43 -47
- package/dist/FileSelect/LocalSource/LocalSource.types.js.map +1 -1
- package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
- package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
- package/dist/FileSelect/TreeSource/TreeSource.types.d.ts +3 -1
- package/dist/FileSelect/TreeSource/TreeSource.types.js.map +1 -1
- package/dist/FileToken/FileToken.styles.js +4 -4
- package/dist/FilterToken/FilterToken.styles.js +2 -2
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.js +14 -8
- package/dist/Form/Form.js.map +1 -1
- package/dist/Form/Form.styles.js +14 -14
- package/dist/Form/Form.types.d.ts +67 -69
- package/dist/Form/Form.types.js.map +1 -1
- package/dist/Form/StyledFormikForm.styles.js +2 -2
- package/dist/Form/index.d.ts +1 -1
- package/dist/Form/index.js.map +1 -1
- 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.js +8 -5
- package/dist/MenuImperative/MenuImperative.js.map +1 -1
- package/dist/MenuImperative/MenuImperative.styles.js +10 -10
- package/dist/Modal/Modal.js +2 -2
- package/dist/Modal/Modal.js.map +1 -1
- package/dist/Modal/Modal.styles.d.ts +2 -2
- package/dist/Modal/Modal.styles.js +17 -17
- package/dist/Modal/Modal.styles.js.map +1 -1
- package/dist/MultiSelect/MultiSelect.styles.js +6 -6
- package/dist/MultiSelect/MultiSelect.types.d.ts +23 -16
- package/dist/MultiSelect/MultiSelect.types.js.map +1 -1
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- package/dist/Notation/Notation.js +1 -1
- package/dist/NumberInput/NumberInput.js +2 -2
- package/dist/NumberInput/NumberInput.js.map +1 -1
- package/dist/NumberInput/NumberInput.styles.d.ts +2 -2
- package/dist/NumberInput/NumberInput.styles.js +11 -11
- package/dist/NumberInput/NumberInput.styles.js.map +1 -1
- package/dist/Overlay/OverlayArrow.styles.js +1 -1
- package/dist/PageFooterTemplate/PageFooterTemplate.d.ts +3 -0
- package/dist/PageFooterTemplate/PageFooterTemplate.js +28 -0
- package/dist/PageFooterTemplate/PageFooterTemplate.js.map +1 -0
- package/dist/PageFooterTemplate/PageFooterTemplate.styles.d.ts +1 -0
- package/dist/PageFooterTemplate/PageFooterTemplate.styles.js +8 -0
- package/dist/PageFooterTemplate/PageFooterTemplate.styles.js.map +1 -0
- package/dist/PageFooterTemplate/PageFooterTemplate.types.d.ts +6 -0
- package/dist/PageFooterTemplate/PageFooterTemplate.types.js +2 -0
- package/dist/PageFooterTemplate/PageFooterTemplate.types.js.map +1 -0
- package/dist/PageHeaderTemplate/PageHeaderTemplate.d.ts +3 -0
- package/dist/PageHeaderTemplate/PageHeaderTemplate.js +41 -0
- package/dist/PageHeaderTemplate/PageHeaderTemplate.js.map +1 -0
- package/dist/PageHeaderTemplate/PageHeaderTemplate.styles.d.ts +2 -0
- package/dist/PageHeaderTemplate/PageHeaderTemplate.styles.js +8 -0
- package/dist/PageHeaderTemplate/PageHeaderTemplate.styles.js.map +1 -0
- package/dist/PageHeaderTemplate/PageHeaderTemplate.types.d.ts +12 -0
- package/dist/PageHeaderTemplate/PageHeaderTemplate.types.js +2 -0
- package/dist/PageHeaderTemplate/PageHeaderTemplate.types.js.map +1 -0
- package/dist/PageLayout/PageLayout.styles.js +16 -16
- package/dist/PageTemplate/PageTemplate.d.ts +3 -0
- package/dist/PageTemplate/PageTemplate.js +18 -0
- package/dist/PageTemplate/PageTemplate.js.map +1 -0
- package/dist/PageTemplate/PageTemplate.types.d.ts +8 -0
- package/dist/PageTemplate/PageTemplate.types.js +2 -0
- package/dist/PageTemplate/PageTemplate.types.js.map +1 -0
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Panel/Panel.styles.js +11 -11
- package/dist/Pill/Pill.styles.js +2 -2
- package/dist/Pill/Pill.types.d.ts +3 -1
- package/dist/Pill/Pill.types.js.map +1 -1
- 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/Required/Required.types.d.ts +1 -1
- package/dist/Required/Required.types.js.map +1 -1
- package/dist/Search/Search.styles.js +5 -5
- package/dist/Search/Search.types.d.ts +4 -2
- package/dist/Search/Search.types.js.map +1 -1
- 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/Select/Select.types.d.ts +9 -1
- package/dist/Select/Select.types.js.map +1 -1
- package/dist/Semantic/Semantic.d.ts +3 -7
- package/dist/Semantic/Semantic.js +14 -2
- package/dist/Semantic/Semantic.js.map +1 -1
- package/dist/Semantic/Semantic.styles.d.ts +3 -3
- package/dist/Semantic/Semantic.styles.js +11 -11
- package/dist/Semantic/Semantic.styles.js.map +1 -1
- package/dist/Semantic/Semantic.types.d.ts +5 -0
- package/dist/Semantic/Semantic.types.js.map +1 -1
- package/dist/SettingsPageTemplate/SettingsPageTemplate.d.ts +7 -0
- package/dist/SettingsPageTemplate/SettingsPageTemplate.js +34 -0
- package/dist/SettingsPageTemplate/SettingsPageTemplate.js.map +1 -0
- package/dist/SettingsPageTemplate/SettingsPageTemplate.types.d.ts +9 -0
- package/dist/SettingsPageTemplate/SettingsPageTemplate.types.js +2 -0
- package/dist/SettingsPageTemplate/SettingsPageTemplate.types.js.map +1 -0
- package/dist/Slider/Slider.js +2 -2
- package/dist/Slider/Slider.js.map +1 -1
- package/dist/Slider/Slider.styles.d.ts +2 -2
- package/dist/Slider/Slider.styles.js +9 -9
- package/dist/Slider/Slider.styles.js.map +1 -1
- package/dist/Spinner/Spinner.js +2 -2
- package/dist/Spinner/Spinner.js.map +1 -1
- package/dist/Spinner/Spinner.styles.d.ts +1 -1
- package/dist/Spinner/Spinner.styles.js +9 -9
- package/dist/Spinner/Spinner.styles.js.map +1 -1
- package/dist/Spinner/Spinner.types.d.ts +2 -5
- package/dist/Spinner/Spinner.types.js.map +1 -1
- package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +37 -37
- 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/TextEditor/TextEditor.types.d.ts +12 -9
- package/dist/TextEditor/TextEditor.types.js.map +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
- package/dist/Thumbnail/Thumbnail.js +25 -10
- package/dist/Thumbnail/Thumbnail.js.map +1 -1
- package/dist/Thumbnail/Thumbnail.styles.js +17 -17
- package/dist/Thumbnail/Thumbnail.types.d.ts +2 -3
- package/dist/Thumbnail/Thumbnail.types.js.map +1 -1
- package/dist/Thumbnail/ThumbnailCaption.js +2 -2
- package/dist/Thumbnail/ThumbnailCaption.js.map +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
- package/dist/TieredSelect/TieredSelect.styles.js +9 -9
- package/dist/TieredSelect/TieredSelect.types.d.ts +64 -40
- package/dist/TieredSelect/TieredSelect.types.js.map +1 -1
- package/dist/Tile/Tile.styles.js +8 -8
- package/dist/Tile/Tile.types.d.ts +1 -1
- package/dist/Tile/Tile.types.js.map +1 -1
- 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/ToggleButton/ToggleButton.types.d.ts +1 -1
- package/dist/ToggleButton/ToggleButton.types.js.map +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/ToolLandingPageTemplate/ToolLandingPageTemplate.d.ts +5 -0
- package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.js +44 -0
- package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.js.map +1 -0
- package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.types.d.ts +7 -0
- package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.types.js +2 -0
- package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.types.js.map +1 -0
- package/dist/Tooltip/Tooltip.styles.js +2 -2
- package/dist/Tree/Tree.js +3 -3
- package/dist/Tree/Tree.js.map +1 -1
- package/dist/Tree/Tree.styles.d.ts +9 -3
- package/dist/Tree/Tree.styles.js +23 -15
- package/dist/Tree/Tree.styles.js.map +1 -1
- package/dist/Tree/Tree.types.d.ts +40 -19
- package/dist/Tree/Tree.types.js.map +1 -1
- package/dist/Typeahead/Typeahead.styles.js +3 -3
- package/dist/Typography/Typography.js +1 -1
- package/dist/Typography/Typography.js.map +1 -1
- package/dist/Typography/Typography.styles.d.ts +2 -1
- package/dist/Typography/Typography.styles.js +3 -3
- package/dist/Typography/Typography.styles.js.map +1 -1
- package/dist/Typography/Typography.table.story.js +2 -2
- package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
- 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 +68 -68
- package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
- package/dist/_typedoc/Button/Button.types.json +12 -12
- package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
- package/dist/_typedoc/Card/Card.types.json +6 -6
- package/dist/_typedoc/Checkbox/Checkbox.types.json +9 -9
- package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
- package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
- package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
- package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
- package/dist/_typedoc/Dropdown/Dropdown.types.json +39 -39
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +35 -35
- package/dist/_typedoc/Dropzone/Dropzone.types.json +53 -53
- package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
- package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +42 -42
- package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +30 -30
- package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +27 -27
- 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 +1088 -972
- 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 +54 -54
- package/dist/_typedoc/Input/Input.types.json +2 -2
- package/dist/_typedoc/Link/Link.types.json +4 -4
- package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
- package/dist/_typedoc/Menu/Menu.types.json +62 -62
- package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
- package/dist/_typedoc/Modal/Modal.types.json +46 -46
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +36 -36
- package/dist/_typedoc/Notation/Notation.types.json +4 -4
- package/dist/_typedoc/NumberInput/NumberInput.types.json +37 -37
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
- package/dist/_typedoc/PageLayout/PageLayout.types.json +28 -28
- package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
- package/dist/_typedoc/Panel/Panel.types.json +28 -28
- package/dist/_typedoc/Pill/Pill.types.json +4 -4
- package/dist/_typedoc/PillSelect/PillSelect.types.json +58 -48
- package/dist/_typedoc/Popover/Popover.types.json +14 -14
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
- package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
- package/dist/_typedoc/Required/Required.types.json +7 -7
- package/dist/_typedoc/Search/Search.types.json +22 -22
- package/dist/_typedoc/Section/Section.types.json +15 -15
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
- package/dist/_typedoc/Select/Select.types.json +78 -58
- 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 +11 -11
- package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +12 -12
- package/dist/_typedoc/Switch/Switch.types.json +3 -3
- package/dist/_typedoc/Table/Table.types.json +112 -102
- package/dist/_typedoc/Tabs/Tabs.types.json +19 -19
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
- package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
- package/dist/_typedoc/TextEditor/TextEditor.types.json +13 -13
- package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
- package/dist/_typedoc/Thumbnail/Thumbnail.types.json +23 -23
- package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +56 -56
- package/dist/_typedoc/TieredSelect/TieredSelect.types.json +44 -44
- package/dist/_typedoc/Tile/Tile.types.json +32 -32
- package/dist/_typedoc/Title/Title.types.json +1 -1
- package/dist/_typedoc/Toast/Toast.types.json +4 -4
- package/dist/_typedoc/ToggleButton/ToggleButton.types.json +6 -6
- package/dist/_typedoc/Token/Token.types.json +4 -4
- 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 +110 -110
- 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/package.json +9 -9
|
@@ -26,15 +26,14 @@ export interface GridSourceProps {
|
|
|
26
26
|
title: string;
|
|
27
27
|
/**
|
|
28
28
|
* Allows controlling the search input value. Can be used with
|
|
29
|
-
*
|
|
29
|
+
* `onSearch` to customize the default string-based search
|
|
30
30
|
* @since 10.19.0
|
|
31
31
|
*/
|
|
32
32
|
searchQuery?: string;
|
|
33
33
|
/**
|
|
34
34
|
* Allows customizing the default string-based search by passing a
|
|
35
|
-
* different set of
|
|
36
|
-
*
|
|
37
|
-
* parameter
|
|
35
|
+
* different set of `items` every time `onSearch` is called with
|
|
36
|
+
* query string as a single parameter
|
|
38
37
|
* @since 10.19.0
|
|
39
38
|
*/
|
|
40
39
|
onSearch?: (q: string) => void;
|
|
@@ -44,22 +43,19 @@ export interface GridSourceProps {
|
|
|
44
43
|
*/
|
|
45
44
|
children?: React.ReactNode;
|
|
46
45
|
/**
|
|
47
|
-
* An array of arbitrarily-shaped objects representing grid items.
|
|
48
|
-
*
|
|
49
|
-
* should be used to bind the target shape to a view.
|
|
46
|
+
* An array of arbitrarily-shaped objects representing grid items.
|
|
47
|
+
* `getId`, `getName` and `getThumbnail` should be used to bind the target shape to a view.
|
|
50
48
|
* @since 10.19.0
|
|
51
49
|
*/
|
|
52
50
|
items: GridItem[];
|
|
53
51
|
/**
|
|
54
|
-
*
|
|
55
|
-
* representing file groups
|
|
52
|
+
* `{ id: string | number, title: string }[]` object representing file groups
|
|
56
53
|
* @since 10.19.0
|
|
57
54
|
*/
|
|
58
55
|
groups?: ThumbnailGridGroup[];
|
|
59
56
|
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
* grid
|
|
57
|
+
* `{ text: string, image: string }` props for `EmptyState`
|
|
58
|
+
* component shown when there are no items in grid
|
|
63
59
|
* @since 10.19.0
|
|
64
60
|
*/
|
|
65
61
|
emptyState?: {
|
|
@@ -77,43 +73,38 @@ export interface GridSourceProps {
|
|
|
77
73
|
*/
|
|
78
74
|
isLoading?: boolean;
|
|
79
75
|
/**
|
|
80
|
-
* Optional
|
|
76
|
+
* Optional `function` that automatically executes when
|
|
81
77
|
* scrolling reaches the last item.
|
|
82
78
|
* @since 10.19.0
|
|
83
79
|
*/
|
|
84
80
|
onScrollBottom?: () => Promise<any>;
|
|
85
81
|
/**
|
|
86
82
|
* A function called returning ID of a given grid item that is used to
|
|
87
|
-
* identify the item. Returns
|
|
83
|
+
* identify the item. Returns `item.id` by default.
|
|
88
84
|
* @since 10.19.0
|
|
89
85
|
*/
|
|
90
86
|
getId?: GetId;
|
|
91
87
|
/**
|
|
92
88
|
* A function called returning thumbnail URL of a given grid item that is
|
|
93
|
-
* used to display the item's thumbnail image. Returns
|
|
94
|
-
* <Code>item.src</Code>
|
|
95
|
-
* by default.
|
|
89
|
+
* used to display the item's thumbnail image. Returns `item.src` by default.
|
|
96
90
|
* @since 10.19.0
|
|
97
91
|
*/
|
|
98
92
|
getThumbnailSource?: GetThumbnailSource;
|
|
99
93
|
/**
|
|
100
94
|
* A function called returning name of a given grid item that is used to
|
|
101
|
-
* display the item's thumbnail name. Returns
|
|
102
|
-
* default.
|
|
95
|
+
* display the item's thumbnail name. Returns `item.name` by default.
|
|
103
96
|
* @since 10.19.0
|
|
104
97
|
*/
|
|
105
98
|
getThumbnailName?: GetThumnbnailName;
|
|
106
99
|
/**
|
|
107
100
|
* A function called returning label of a given grid item that is used to
|
|
108
|
-
* display the item's thumbnail label. Returns
|
|
109
|
-
* by default.
|
|
101
|
+
* display the item's thumbnail label. Returns `item.label` by default.
|
|
110
102
|
* @since 10.19.0
|
|
111
103
|
*/
|
|
112
104
|
getThumbnailLabel?: GetThumbnailLabel;
|
|
113
105
|
/**
|
|
114
106
|
* A function called returning group ID of a given grid item that is used
|
|
115
|
-
* to sort items by group. Returns
|
|
116
|
-
* by default.
|
|
107
|
+
* to sort items by group. Returns `item.groupId` by default.
|
|
117
108
|
* @since 10.19.0
|
|
118
109
|
*/
|
|
119
110
|
getGroupId?: GetGroupId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridSource.types.js","names":[],"sources":["../../../src/FileSelect/GridSource/GridSource.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { ThumbnailGridGroup } from '../../ThumbnailGrid/ThumbnailGrid.types'\n\ninterface QaTags {\n grid?: string\n}\n\nexport type GridItem = object\n\nexport type GetId = (item: GridItem) => string | number\n\nexport type GetThumnbnailName = (item: GridItem) => string\n\nexport type GetThumbnailSource = (item: GridItem) => string\n\nexport type GetThumbnailLabel = (item: GridItem) => string\n\nexport type GetGroupId = (item: GridItem) => string | number\n\nexport interface GridSourceProps {\n /**\n * @since 10.19.0\n */\n sourceId: string\n /**\n * @deprecated String icon variant is deprecated, use the React components\n * directly from the `@procore/core-icons/dist` package\n * @since 10.19.0\n */\n icon: React.ReactNode\n /**\n * @since 10.19.0\n */\n title: string\n\n /**\n * Allows controlling the search input value. Can be used with\n *
|
|
1
|
+
{"version":3,"file":"GridSource.types.js","names":[],"sources":["../../../src/FileSelect/GridSource/GridSource.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { ThumbnailGridGroup } from '../../ThumbnailGrid/ThumbnailGrid.types'\n\ninterface QaTags {\n grid?: string\n}\n\nexport type GridItem = object\n\nexport type GetId = (item: GridItem) => string | number\n\nexport type GetThumnbnailName = (item: GridItem) => string\n\nexport type GetThumbnailSource = (item: GridItem) => string\n\nexport type GetThumbnailLabel = (item: GridItem) => string\n\nexport type GetGroupId = (item: GridItem) => string | number\n\nexport interface GridSourceProps {\n /**\n * @since 10.19.0\n */\n sourceId: string\n /**\n * @deprecated String icon variant is deprecated, use the React components\n * directly from the `@procore/core-icons/dist` package\n * @since 10.19.0\n */\n icon: React.ReactNode\n /**\n * @since 10.19.0\n */\n title: string\n\n /**\n * Allows controlling the search input value. Can be used with\n * `onSearch` to customize the default string-based search\n * @since 10.19.0\n */\n searchQuery?: string\n\n /**\n * Allows customizing the default string-based search by passing a\n * different set of `items` every time `onSearch` is called with\n * query string as a single parameter\n * @since 10.19.0\n */\n onSearch?: (q: string) => void\n\n /**\n * React nodes to be displayed next to the search bar\n * @since 10.19.0\n */\n children?: React.ReactNode\n\n /**\n * An array of arbitrarily-shaped objects representing grid items.\n * `getId`, `getName` and `getThumbnail` should be used to bind the target shape to a view.\n * @since 10.19.0\n */\n items: GridItem[]\n\n /**\n * `{ id: string | number, title: string }[]` object representing file groups\n * @since 10.19.0\n */\n groups?: ThumbnailGridGroup[]\n\n /**\n * `{ text: string, image: string }` props for `EmptyState`\n * component shown when there are no items in grid\n * @since 10.19.0\n */\n emptyState?: {\n text?: string\n image?: string\n }\n\n /**\n * Show/Hide loading indicator at the list bottom\n * @since 10.19.0\n */\n isLoadingMore?: boolean\n\n /**\n * Show/Hide loading indicator of the content\n * @since 10.19.0\n */\n isLoading?: boolean\n\n /**\n * Optional `function` that automatically executes when\n * scrolling reaches the last item.\n * @since 10.19.0\n */\n onScrollBottom?: () => Promise<any>\n\n /**\n * A function called returning ID of a given grid item that is used to\n * identify the item. Returns `item.id` by default.\n * @since 10.19.0\n */\n getId?: GetId\n\n /**\n * A function called returning thumbnail URL of a given grid item that is\n * used to display the item's thumbnail image. Returns `item.src` by default.\n * @since 10.19.0\n */\n getThumbnailSource?: GetThumbnailSource\n\n /**\n * A function called returning name of a given grid item that is used to\n * display the item's thumbnail name. Returns `item.name` by default.\n * @since 10.19.0\n */\n getThumbnailName?: GetThumnbnailName\n\n /**\n * A function called returning label of a given grid item that is used to\n * display the item's thumbnail label. Returns `item.label` by default.\n * @since 10.19.0\n */\n getThumbnailLabel?: GetThumbnailLabel\n\n /**\n * A function called returning group ID of a given grid item that is used\n * to sort items by group. Returns `item.groupId` by default.\n * @since 10.19.0\n */\n getGroupId?: GetGroupId\n /**\n * @since 10.19.0\n */\n qa?: QaTags\n}\n\nexport interface SearchBarProps {\n /**\n * @since 10.19.0\n */\n onChange: (e: React.ChangeEvent<HTMLInputElement>) => void\n /**\n * @since 10.19.0\n */\n query: string\n}\n"],"mappings":""}
|
|
@@ -15,21 +15,21 @@ var dropzoneHeightWithIcon = 176;
|
|
|
15
15
|
var sourceWidth = 568;
|
|
16
16
|
export var StyledLocalSource = /*#__PURE__*/styled.div.withConfig({
|
|
17
17
|
displayName: "StyledLocalSource",
|
|
18
|
-
componentId: "core-
|
|
18
|
+
componentId: "core-12_15_0__sc-psqe8z-0"
|
|
19
19
|
})(["display:flex;flex-grow:1;flex-direction:column;align-items:stretch;height:", "px;max-height:", "px;padding:", "px ", "px ", "px ", "px;overflow-y:hidden;"], contentHeight, contentHeight, spacing.xl, spacing.xl + spacing.lg, spacing.xl, spacing.xl);
|
|
20
20
|
export var StyledDropzoneErrorBanner = /*#__PURE__*/styled(DropzoneErrorBanner).withConfig({
|
|
21
21
|
displayName: "StyledDropzoneErrorBanner",
|
|
22
|
-
componentId: "core-
|
|
22
|
+
componentId: "core-12_15_0__sc-psqe8z-1"
|
|
23
23
|
})(["margin-top:", "px;margin-bottom:", "px;margin-right:2px;"], errorBannerMarginTop, errorBannerMarginBottom);
|
|
24
24
|
export var StyledDropzoneWrapper = /*#__PURE__*/styled(Dropzone).withConfig({
|
|
25
25
|
displayName: "StyledDropzoneWrapper",
|
|
26
|
-
componentId: "core-
|
|
26
|
+
componentId: "core-12_15_0__sc-psqe8z-2"
|
|
27
27
|
})(["display:flex;height:auto;min-height:", "px;> div:first-child{display:flex;height:auto;}> ", "{display:none;}@media ", "{width:", "px;> div:first-child{height:100%;}}"], function (_ref) {
|
|
28
28
|
var isIconVisible = _ref.isIconVisible;
|
|
29
29
|
return isIconVisible ? dropzoneHeightWithIcon : dropzoneHeight;
|
|
30
30
|
}, DropzoneErrorBanner, mediaIE11Hack, sourceWidth);
|
|
31
31
|
export var StyledThumbnailList = /*#__PURE__*/styled(ThumbnailList).withConfig({
|
|
32
32
|
displayName: "StyledThumbnailList",
|
|
33
|
-
componentId: "core-
|
|
33
|
+
componentId: "core-12_15_0__sc-psqe8z-3"
|
|
34
34
|
})(["margin-top:", "px;border:", "px solid ", ";"], listMarginTop, listBorderWidth, colors.gray85);
|
|
35
35
|
//# sourceMappingURL=LocalSource.styles.js.map
|
|
@@ -21,23 +21,24 @@ export interface UploaderProps extends Omit<DropzoneHookProps, 'value'> {
|
|
|
21
21
|
value: ThumbnailListItem[];
|
|
22
22
|
/**
|
|
23
23
|
* Callback function fired with currently selected array of items.
|
|
24
|
-
*
|
|
24
|
+
* ```
|
|
25
|
+
* (items: ThumbnailListItem[]) => void
|
|
26
|
+
* ```
|
|
25
27
|
* @since 10.19.0
|
|
26
28
|
*/
|
|
27
29
|
onChange: (items: ThumbnailListItem[]) => void;
|
|
28
30
|
/**
|
|
29
31
|
* Callback function fired when a previously selected file is removed.
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* <Code>(item: ThumbnailListItem) => void</Code>
|
|
32
|
+
*
|
|
33
|
+
* `(item: ThumbnailListItem) => void`
|
|
33
34
|
* @since 10.19.0
|
|
34
35
|
*/
|
|
35
36
|
onCancel?: (item: ThumbnailListItem) => void;
|
|
36
37
|
/**
|
|
37
38
|
* Error message if dropped files is rejected
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
39
|
+
* ```
|
|
40
|
+
* { type: DropErrorType, title: string, message: string }
|
|
41
|
+
* ```
|
|
41
42
|
* @since 10.19.0
|
|
42
43
|
*/
|
|
43
44
|
dropError?: DropError;
|
|
@@ -46,8 +47,8 @@ export interface UploaderProps extends Omit<DropzoneHookProps, 'value'> {
|
|
|
46
47
|
*/
|
|
47
48
|
onDropError: (err: DropError) => void;
|
|
48
49
|
/**
|
|
49
|
-
* An optional content renderer for the dropzone.
|
|
50
|
-
*
|
|
50
|
+
* An optional content renderer for the dropzone.
|
|
51
|
+
* Accepts `{ open, disabled, errorMessage }` as a single argument,
|
|
51
52
|
* allowing to control the dropzone and display different content depending
|
|
52
53
|
* on dropzone state
|
|
53
54
|
* @since 10.19.0
|
|
@@ -65,9 +66,8 @@ export interface LocalSourceProps {
|
|
|
65
66
|
sourceId: string;
|
|
66
67
|
/**
|
|
67
68
|
* Callback function fired when a previously selected file is removed.
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* <Code>(item: ThumbnailListItem) => void</Code>
|
|
69
|
+
*
|
|
70
|
+
* `(item: ThumbnailListItem) => void`
|
|
71
71
|
* @since 10.19.0
|
|
72
72
|
*/
|
|
73
73
|
onCancel?: UploaderProps['onCancel'];
|
|
@@ -77,28 +77,27 @@ export interface LocalSourceProps {
|
|
|
77
77
|
*/
|
|
78
78
|
accept?: UploaderProps['accept'];
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
* alternative to
|
|
80
|
+
* `(file: File) => string`
|
|
81
|
+
*
|
|
82
|
+
* A function returning an upload URL for a given file. An
|
|
83
|
+
* alternative to `uploadFile` which allows manual control of
|
|
84
84
|
* the network request for file upload.
|
|
85
85
|
* @since 10.19.0
|
|
86
86
|
*/
|
|
87
87
|
getEndpoint?: (file: File) => string;
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
* Returns
|
|
89
|
+
* `(file: File) => HTTPRequestMethod`
|
|
90
|
+
*
|
|
91
|
+
* A function returning an upload HTTP method for a given file.
|
|
92
|
+
* Returns `POST` by default.
|
|
93
93
|
* @since 10.19.0
|
|
94
94
|
*/
|
|
95
95
|
getMethod?: (file: File) => Method;
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* ignored.
|
|
97
|
+
* `(file: File) => FormData`
|
|
98
|
+
*
|
|
99
|
+
* A function returning an upload payload `FormData` object for
|
|
100
|
+
* a given file. When defined, `getPayloadKey` is ignored.
|
|
102
101
|
* @since 10.19.0
|
|
103
102
|
*/
|
|
104
103
|
getPayload?: (file: File) => FormData;
|
|
@@ -107,39 +106,37 @@ export interface LocalSourceProps {
|
|
|
107
106
|
* local file. If you want to restrict certain uploads, you can use this
|
|
108
107
|
* callback. Returning true continues the upload, while false will prevent
|
|
109
108
|
* upload.
|
|
110
|
-
*
|
|
109
|
+
* `(files: ThumbnailListItem[]) => Promise<boolean>`
|
|
111
110
|
* @since 10.19.0
|
|
112
111
|
*/
|
|
113
112
|
beforeLocalFileUpload: (files: ThumbnailListItem[]) => Promise<boolean>;
|
|
114
113
|
/**
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
114
|
+
* `(file: File) => string`
|
|
115
|
+
*
|
|
116
|
+
* A function returning an upload payload `FormData` key for
|
|
117
|
+
* a given file. Returns `file` by default.
|
|
119
118
|
* @since 10.19.0
|
|
120
119
|
*/
|
|
121
120
|
getPayloadKey?: (file: File) => string;
|
|
122
121
|
/**
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
* object by default.
|
|
122
|
+
* `(file: File) => object`
|
|
123
|
+
*
|
|
124
|
+
* A function returning an upload request headers.
|
|
125
|
+
* Returns empty object by default.
|
|
127
126
|
* @since 10.19.0
|
|
128
127
|
*/
|
|
129
128
|
getHeaders?: (file: File) => Record<string, string>;
|
|
130
129
|
/**
|
|
131
|
-
*
|
|
132
|
-
* (file: File,{
|
|
133
|
-
* {`{
|
|
130
|
+
* ```
|
|
131
|
+
* (file: File, {
|
|
134
132
|
* onProgress: (progress: number) => void
|
|
135
133
|
* onSuccess: (response: unknown) => void
|
|
136
134
|
* onError: (error: unknown) => void
|
|
137
|
-
* }
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
* upload. An alternative to using <Code>getEndpoint</Code> which handles
|
|
135
|
+
* }) => string
|
|
136
|
+
* ```
|
|
137
|
+
*
|
|
138
|
+
* A function for manually controlling the network request for file
|
|
139
|
+
* upload. An alternative to using `getEndpoint` which handles
|
|
143
140
|
* the network request itself.
|
|
144
141
|
* @since 10.19.0
|
|
145
142
|
*/
|
|
@@ -155,10 +152,9 @@ export interface LocalSourceProps {
|
|
|
155
152
|
*/
|
|
156
153
|
minFileSize?: number;
|
|
157
154
|
/**
|
|
158
|
-
* An optional content renderer for the dropzone. Accepts{
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
* on dropzone state
|
|
155
|
+
* An optional content renderer for the dropzone. Accepts `{ open, disabled, errorMessage }` as
|
|
156
|
+
* a single argument, allowing to control the dropzone and
|
|
157
|
+
* display different content depending on dropzone state
|
|
162
158
|
* @since 10.19.0
|
|
163
159
|
*/
|
|
164
160
|
dropzoneContentRenderer?: (props: DropzoneContentProps) => React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocalSource.types.js","names":[],"sources":["../../../src/FileSelect/LocalSource/LocalSource.types.ts"],"sourcesContent":["import type { Method } from 'axios'\nimport type {\n DropError,\n DropzoneContentProps,\n DropzoneHookProps,\n QaTags,\n} from '../../Dropzone/Dropzone.types'\nimport type { UNSAFE_UploadFile } from '../../_hooks/useFileUploader'\nimport type { ThumbnailListItem } from '../ThumbnailList/ThumbnailList.types'\n\nexport type ValueId = string | number\n\nexport interface UploaderProps extends Omit<DropzoneHookProps, 'value'> {\n /**\n * Allow drag 'n' drop (or selection from the file dialog) of multiple files\n * @since 10.19.0\n */\n multiple: boolean\n\n /**\n * @since 10.19.0\n */\n uploadedValue: ThumbnailListItem[]\n\n /**\n * Array of already selected items\n * @since 10.19.0\n */\n value: ThumbnailListItem[]\n\n /**\n * Callback function fired with currently selected array of items.\n *
|
|
1
|
+
{"version":3,"file":"LocalSource.types.js","names":[],"sources":["../../../src/FileSelect/LocalSource/LocalSource.types.ts"],"sourcesContent":["import type { Method } from 'axios'\nimport type {\n DropError,\n DropzoneContentProps,\n DropzoneHookProps,\n QaTags,\n} from '../../Dropzone/Dropzone.types'\nimport type { UNSAFE_UploadFile } from '../../_hooks/useFileUploader'\nimport type { ThumbnailListItem } from '../ThumbnailList/ThumbnailList.types'\n\nexport type ValueId = string | number\n\nexport interface UploaderProps extends Omit<DropzoneHookProps, 'value'> {\n /**\n * Allow drag 'n' drop (or selection from the file dialog) of multiple files\n * @since 10.19.0\n */\n multiple: boolean\n\n /**\n * @since 10.19.0\n */\n uploadedValue: ThumbnailListItem[]\n\n /**\n * Array of already selected items\n * @since 10.19.0\n */\n value: ThumbnailListItem[]\n\n /**\n * Callback function fired with currently selected array of items.\n * ```\n * (items: ThumbnailListItem[]) => void\n * ```\n * @since 10.19.0\n */\n onChange: (items: ThumbnailListItem[]) => void\n\n /**\n * Callback function fired when a previously selected file is removed.\n *\n * `(item: ThumbnailListItem) => void`\n * @since 10.19.0\n */\n onCancel?: (item: ThumbnailListItem) => void\n\n /**\n * Error message if dropped files is rejected\n * ```\n * { type: DropErrorType, title: string, message: string }\n * ```\n * @since 10.19.0\n */\n dropError?: DropError\n\n /**\n * @since 10.19.0\n */\n onDropError: (err: DropError) => void\n\n /**\n * An optional content renderer for the dropzone.\n * Accepts `{ open, disabled, errorMessage }` as a single argument,\n * allowing to control the dropzone and display different content depending\n * on dropzone state\n * @since 10.19.0\n */\n dropzoneContentRenderer?: (props: DropzoneContentProps) => React.ReactNode\n\n /**\n * @since 10.19.0\n */\n qa?: QaTags\n}\n\nexport interface LocalSourceProps {\n /**\n * @since 10.19.0\n */\n sourceId: string\n\n /**\n * Callback function fired when a previously selected file is removed.\n *\n * `(item: ThumbnailListItem) => void`\n * @since 10.19.0\n */\n onCancel?: UploaderProps['onCancel']\n\n /**\n * Set accepted file types. Accepts everything if left undefined\n * @since 10.19.0\n */\n accept?: UploaderProps['accept']\n\n /**\n * `(file: File) => string`\n *\n * A function returning an upload URL for a given file. An\n * alternative to `uploadFile` which allows manual control of\n * the network request for file upload.\n * @since 10.19.0\n */\n getEndpoint?: (file: File) => string\n\n /**\n * `(file: File) => HTTPRequestMethod`\n *\n * A function returning an upload HTTP method for a given file.\n * Returns `POST` by default.\n * @since 10.19.0\n */\n getMethod?: (file: File) => Method\n\n /**\n * `(file: File) => FormData`\n *\n * A function returning an upload payload `FormData` object for\n * a given file. When defined, `getPayloadKey` is ignored.\n * @since 10.19.0\n */\n getPayload?: (file: File) => FormData\n\n /**\n * Optional async function that is invoked when selecting or dropping in a\n * local file. If you want to restrict certain uploads, you can use this\n * callback. Returning true continues the upload, while false will prevent\n * upload.\n * `(files: ThumbnailListItem[]) => Promise<boolean>`\n * @since 10.19.0\n */\n beforeLocalFileUpload: (files: ThumbnailListItem[]) => Promise<boolean>\n\n /**\n * `(file: File) => string`\n *\n * A function returning an upload payload `FormData` key for\n * a given file. Returns `file` by default.\n * @since 10.19.0\n */\n getPayloadKey?: (file: File) => string\n\n /**\n * `(file: File) => object`\n *\n * A function returning an upload request headers.\n * Returns empty object by default.\n * @since 10.19.0\n */\n getHeaders?: (file: File) => Record<string, string>\n\n /**\n * ```\n * (file: File, {\n * onProgress: (progress: number) => void\n * onSuccess: (response: unknown) => void\n * onError: (error: unknown) => void\n * }) => string\n * ```\n *\n * A function for manually controlling the network request for file\n * upload. An alternative to using `getEndpoint` which handles\n * the network request itself.\n * @since 10.19.0\n */\n uploadFile?: UNSAFE_UploadFile\n\n /**\n * Maximum file size (in bytes)\n * @since 10.19.0\n */\n maxFileSize?: number\n\n /**\n * Minimum file size (in bytes)\n * @since 10.19.0\n */\n minFileSize?: number\n\n /**\n * An optional content renderer for the dropzone. Accepts `{ open, disabled, errorMessage }` as\n * a single argument, allowing to control the dropzone and\n * display different content depending on dropzone state\n * @since 10.19.0\n */\n dropzoneContentRenderer?: (props: DropzoneContentProps) => React.ReactNode\n /**\n * @since 10.19.0\n */\n qa?: UploaderProps['qa']\n}\n"],"mappings":""}
|
|
@@ -8,7 +8,7 @@ var sourceItemPadding = spacing.xl;
|
|
|
8
8
|
var focused = /*#__PURE__*/css(["", " padding:0 ", "px 0 ", "px;"], getFocus(), sourceItemPadding - 1, sourceItemPadding - 1);
|
|
9
9
|
export var StyledSourceItem = /*#__PURE__*/styled.div.withConfig({
|
|
10
10
|
displayName: "StyledSourceItem",
|
|
11
|
-
componentId: "core-
|
|
11
|
+
componentId: "core-12_15_0__sc-plcozv-0"
|
|
12
12
|
})(["position:relative;display:flex;align-items:center;padding:0 ", "px 0 ", "px;color:", ";", " cursor:pointer;height:", "px;&:before{content:'';position:absolute;top:0;left:0;display:block;width:4px;height:100%;background-color:", ";transform:scaleX(0);transform-origin:center left;transition:transform 200ms ease-out;z-index:1;}", " ", " ", " ", " ", " &:focus{", "}"], sourceItemPadding, sourceItemPadding, colors.gray45, getTypographyIntent('body'), sourceItemHeight, colors.blue45, function (_ref) {
|
|
13
13
|
var selected = _ref.selected;
|
|
14
14
|
return selected && "\n font-weight: 700;\n background-color: ".concat(colors.blue96, ";\n color: ").concat(colors.blue45, ";\n\n ").concat(StyledIcon, " {\n color: ").concat(colors.blue50, ";\n }\n\n &:before {\n transform: scaleX(1);\n }\n ");
|
|
@@ -28,10 +28,10 @@ export var StyledSourceItem = /*#__PURE__*/styled.div.withConfig({
|
|
|
28
28
|
}, focused);
|
|
29
29
|
export var StyledIcon = /*#__PURE__*/styled.div.withConfig({
|
|
30
30
|
displayName: "StyledIcon",
|
|
31
|
-
componentId: "core-
|
|
31
|
+
componentId: "core-12_15_0__sc-plcozv-1"
|
|
32
32
|
})(["display:flex;align-items:center;justify-content:center;flex-shrink:0;width:48px;height:48px;"]);
|
|
33
33
|
export var StyledLabel = /*#__PURE__*/styled.div.withConfig({
|
|
34
34
|
displayName: "StyledLabel",
|
|
35
|
-
componentId: "core-
|
|
35
|
+
componentId: "core-12_15_0__sc-plcozv-2"
|
|
36
36
|
})(["", ""], getEllipsis());
|
|
37
37
|
//# sourceMappingURL=SourceItem.styles.js.map
|
|
@@ -7,23 +7,23 @@ import { colors } from '../../_styles/colors';
|
|
|
7
7
|
import { spacing } from '../../_styles/spacing';
|
|
8
8
|
export var StyledThumbnailListContainer = /*#__PURE__*/styled.div.withConfig({
|
|
9
9
|
displayName: "StyledThumbnailListContainer",
|
|
10
|
-
componentId: "core-
|
|
10
|
+
componentId: "core-12_15_0__sc-1fz4ynb-0"
|
|
11
11
|
})(["display:flex;flex-direction:column;align-items:stretch;outline:none;"]);
|
|
12
12
|
export var StyledThumbnailList = /*#__PURE__*/styled(List).withConfig({
|
|
13
13
|
displayName: "StyledThumbnailList",
|
|
14
|
-
componentId: "core-
|
|
14
|
+
componentId: "core-12_15_0__sc-1fz4ynb-1"
|
|
15
15
|
})(["outline:none;"]);
|
|
16
16
|
export var StyledThumbnail = /*#__PURE__*/styled(Thumbnail).withConfig({
|
|
17
17
|
displayName: "StyledThumbnail",
|
|
18
|
-
componentId: "core-
|
|
18
|
+
componentId: "core-12_15_0__sc-1fz4ynb-2"
|
|
19
19
|
})(["flex-grow:1;justify-content:flex-start;"]);
|
|
20
20
|
export var StyledProgress = /*#__PURE__*/styled.div.withConfig({
|
|
21
21
|
displayName: "StyledProgress",
|
|
22
|
-
componentId: "core-
|
|
22
|
+
componentId: "core-12_15_0__sc-1fz4ynb-3"
|
|
23
23
|
})(["width:146px;padding:0 ", "px 0 ", "px;margin-left:auto;"], spacing.lg, spacing.xl);
|
|
24
24
|
export var StyledThumbnailListItem = /*#__PURE__*/styled.div.withConfig({
|
|
25
25
|
displayName: "StyledThumbnailListItem",
|
|
26
|
-
componentId: "core-
|
|
26
|
+
componentId: "core-12_15_0__sc-1fz4ynb-4"
|
|
27
27
|
})(["display:flex;flex-grow:1;align-items:center;padding:", "px ", "px ", "px ", "px;", " ", " ", " ", ""], spacing.sm, spacing.lg, spacing.sm, spacing.sm, getTypographyIntent('body'), function (_ref) {
|
|
28
28
|
var error = _ref.error;
|
|
29
29
|
return !error && "\n &:hover {\n background-color: ".concat(colors.gray96, ";\n }\n ");
|
|
@@ -37,6 +37,6 @@ export var StyledThumbnailListItem = /*#__PURE__*/styled.div.withConfig({
|
|
|
37
37
|
});
|
|
38
38
|
export var StyledDeleteIcon = /*#__PURE__*/styled(Button).withConfig({
|
|
39
39
|
displayName: "StyledDeleteIcon",
|
|
40
|
-
componentId: "core-
|
|
40
|
+
componentId: "core-12_15_0__sc-1fz4ynb-5"
|
|
41
41
|
})([""]);
|
|
42
42
|
//# sourceMappingURL=ThumbnailList.styles.js.map
|
|
@@ -2,6 +2,6 @@ import styled from 'styled-components';
|
|
|
2
2
|
import { modalBodyHeight } from '../FileExplorer/FileExplorer.styles';
|
|
3
3
|
export var StyledFileTreeSpinner = /*#__PURE__*/styled.div.withConfig({
|
|
4
4
|
displayName: "StyledFileTreeSpinner",
|
|
5
|
-
componentId: "core-
|
|
5
|
+
componentId: "core-12_15_0__sc-wwu3n8-0"
|
|
6
6
|
})(["display:flex;align-items:center;justify-content:center;height:", "px;"], modalBodyHeight);
|
|
7
7
|
//# sourceMappingURL=TreeSource.styles.js.map
|
|
@@ -13,7 +13,9 @@ export interface TreeSourceRef {
|
|
|
13
13
|
export interface FileTreeProps extends Pick<TreeProps<TreeNode>, 'options' | 'getRoot' | 'getChildren' | 'getLabel' | 'getParentId' | 'getType' | 'isSelectable' | 'isExpandable' | 'onExpand' | 'expanded'> {
|
|
14
14
|
/**
|
|
15
15
|
* Callback function fired with currently selected array of nodes.
|
|
16
|
-
*
|
|
16
|
+
* ```
|
|
17
|
+
* (nodes: TreeDefaultNode[]) => void
|
|
18
|
+
* ```
|
|
17
19
|
* @since 10.19.0
|
|
18
20
|
*/
|
|
19
21
|
onChange?: (nodes: TreeNode[]) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeSource.types.js","names":[],"sources":["../../../src/FileSelect/TreeSource/TreeSource.types.ts"],"sourcesContent":["import type {\n Node as TreeNode,\n TreeNodeId,\n TreeProps,\n} from '../../Tree/Tree.types'\n\nexport interface TreeSourceRef {\n /**\n * @since 10.19.0\n */\n setExpandedNodes: (expanded: TreeNodeId[]) => void\n /**\n * @since 10.19.0\n */\n setValue: <Node extends TreeNode = TreeNode>(nodes: Node[]) => void\n}\n\nexport interface FileTreeProps\n extends Pick<\n TreeProps<TreeNode>,\n | 'options'\n | 'getRoot'\n | 'getChildren'\n | 'getLabel'\n | 'getParentId'\n | 'getType'\n | 'isSelectable'\n | 'isExpandable'\n | 'onExpand'\n | 'expanded'\n > {\n /**\n * Callback function fired with currently selected array of nodes.\n *
|
|
1
|
+
{"version":3,"file":"TreeSource.types.js","names":[],"sources":["../../../src/FileSelect/TreeSource/TreeSource.types.ts"],"sourcesContent":["import type {\n Node as TreeNode,\n TreeNodeId,\n TreeProps,\n} from '../../Tree/Tree.types'\n\nexport interface TreeSourceRef {\n /**\n * @since 10.19.0\n */\n setExpandedNodes: (expanded: TreeNodeId[]) => void\n /**\n * @since 10.19.0\n */\n setValue: <Node extends TreeNode = TreeNode>(nodes: Node[]) => void\n}\n\nexport interface FileTreeProps\n extends Pick<\n TreeProps<TreeNode>,\n | 'options'\n | 'getRoot'\n | 'getChildren'\n | 'getLabel'\n | 'getParentId'\n | 'getType'\n | 'isSelectable'\n | 'isExpandable'\n | 'onExpand'\n | 'expanded'\n > {\n /**\n * Callback function fired with currently selected array of nodes.\n * ```\n * (nodes: TreeDefaultNode[]) => void\n * ```\n * @since 10.19.0\n */\n onChange?: (nodes: TreeNode[]) => void\n /**\n * @since 10.19.0\n */\n sourceId: string\n /**\n * @since 10.19.0\n */\n title: string\n /**\n * @deprecated String icon variant is deprecated, use the React components\n * directly from the `@procore/core-icons/dist` package\n * @since 10.19.0\n */\n icon: React.ReactNode\n\n /**\n * Show/Hide loading indicator of the content\n * @since 10.19.0\n */\n isLoading?: boolean\n}\n"],"mappings":""}
|
|
@@ -6,19 +6,19 @@ export var pulseAnimationDuration = 600;
|
|
|
6
6
|
var focusPulse = /*#__PURE__*/keyframes(["0%{box-shadow:0 0 0 0 ", ",0 0 0 0 ", ",0 0 0 0 ", ";}25%{box-shadow:0 0 0 0 ", ",0 0 0 0 ", ",0 0 0 0 ", ";}50%{box-shadow:0 0 0 1px ", ",0 0 0 3px ", ",0 0 0 2px ", ";}100%{box-shadow:0 0 0 1.5px ", ",0 0 0 3px ", ",0 0 0 6px ", ";}"], colors.blue60, colors.blue90, colors.blue94, colors.blue60, colors.blue90, colors.blue94, colors.blue60, colors.blue90, colors.blue94, colors.blue60, colors.blue90, colors.blue94);
|
|
7
7
|
export var StyledFilenameShortcut = /*#__PURE__*/styled.div.withConfig({
|
|
8
8
|
displayName: "StyledFilenameShortcut",
|
|
9
|
-
componentId: "core-
|
|
9
|
+
componentId: "core-12_15_0__sc-13jx4bx-0"
|
|
10
10
|
})(["display:flex;"]);
|
|
11
11
|
export var StyledFilename = /*#__PURE__*/styled.span.withConfig({
|
|
12
12
|
displayName: "StyledFilename",
|
|
13
|
-
componentId: "core-
|
|
13
|
+
componentId: "core-12_15_0__sc-13jx4bx-1"
|
|
14
14
|
})(["flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;"]);
|
|
15
15
|
export var StyledExtension = /*#__PURE__*/styled.span.withConfig({
|
|
16
16
|
displayName: "StyledExtension",
|
|
17
|
-
componentId: "core-
|
|
17
|
+
componentId: "core-12_15_0__sc-13jx4bx-2"
|
|
18
18
|
})(["flex-shrink:0;"]);
|
|
19
19
|
export var StyledFileToken = /*#__PURE__*/styled.div.withConfig({
|
|
20
20
|
displayName: "StyledFileToken",
|
|
21
|
-
componentId: "core-
|
|
21
|
+
componentId: "core-12_15_0__sc-13jx4bx-3"
|
|
22
22
|
})(["background-color:", ";border-radius:200px;max-width:100%;outline:none;overflow:hidden;position:relative;&:focus,&.focus{box-shadow:0 0 0 2px ", ";outline:none;", "{border-color:transparent;", "}}", "{background:none;color:", ";display:flex;user-select:none;}", "{overflow:hidden;", "{border-radius:200px 0 0 200px;color:", ";padding-right:0;transition:color 0s linear,background-color 0s linear;user-select:none;", "{flex:0 0 auto;}}}", ""], colors.gray96, colors.blue40, StyledToken, function (_ref) {
|
|
23
23
|
var $progressComplete = _ref.$progressComplete;
|
|
24
24
|
return $progressComplete && css(["background-color:", ";"], colors.blue45);
|
|
@@ -5,11 +5,11 @@ import { getEllipsis, getFocus } from '../_styles/mixins';
|
|
|
5
5
|
import { spacing } from '../_styles/spacing';
|
|
6
6
|
export var StyledLabel = /*#__PURE__*/styled.span.withConfig({
|
|
7
7
|
displayName: "StyledLabel",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-12_15_0__sc-1l1h29r-0"
|
|
9
9
|
})(["", " ", " ", " flex:0 1 auto;"], getTypographyIntent('body'), getEllipsis, semiboldRules);
|
|
10
10
|
export var StyledFilterToken = /*#__PURE__*/styled.div.withConfig({
|
|
11
11
|
displayName: "StyledFilterToken",
|
|
12
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-12_15_0__sc-1l1h29r-1"
|
|
13
13
|
})(["align-items:center;background-color:", ";border-radius:4px;border:1px solid transparent;color:", ";cursor:default;display:inline-flex;height:36px;justify-content:space-between;line-height:1;max-width:360px;min-width:48px;padding:", "px ", "px;&:hover,&.hover{background-color:", ";}", ""], colors.blue96, colors.blue45, spacing.sm, spacing.md, colors.blue90, function (_ref) {
|
|
14
14
|
var _ref$$focused = _ref.$focused,
|
|
15
15
|
$focused = _ref$$focused === void 0 ? false : _ref$$focused;
|
|
@@ -3,7 +3,7 @@ import { StyledBox } from '../Box/Box.styles';
|
|
|
3
3
|
import { Flex } from '../Flex/Flex';
|
|
4
4
|
export var StyledFlex = /*#__PURE__*/styled(Flex).withConfig({
|
|
5
5
|
displayName: "StyledFlex",
|
|
6
|
-
componentId: "core-
|
|
6
|
+
componentId: "core-12_15_0__sc-1quvv61-0"
|
|
7
7
|
})(["> ", "{", "}"], StyledBox, function (_ref) {
|
|
8
8
|
var $direction = _ref.$direction;
|
|
9
9
|
if ($direction !== null && $direction !== void 0 && $direction.includes('reverse')) {
|
package/dist/Form/Form.js
CHANGED
|
@@ -411,13 +411,18 @@ export function WXPField(_ref5) {
|
|
|
411
411
|
// but if not we want to render requiredMark and tooltip at FieldHeader
|
|
412
412
|
var hasLabelOrDoesntHaveBoth = label || !label && !singleCheckboxInlineLabel;
|
|
413
413
|
var hasInlineLabelAndDoesntHaveLabel = singleCheckboxInlineLabel && !label;
|
|
414
|
-
var singleCheckboxComponentProps =
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
414
|
+
var singleCheckboxComponentProps = {};
|
|
415
|
+
if (hasInlineLabelAndDoesntHaveLabel) {
|
|
416
|
+
singleCheckboxComponentProps = {
|
|
417
|
+
tooltip: tooltip,
|
|
418
|
+
hasRequiredMark: hasRequiredMark,
|
|
419
|
+
inlineLabel: singleCheckboxInlineLabel
|
|
420
|
+
};
|
|
421
|
+
} else if (singleCheckboxInlineLabel) {
|
|
422
|
+
singleCheckboxComponentProps = {
|
|
423
|
+
inlineLabel: singleCheckboxInlineLabel
|
|
424
|
+
};
|
|
425
|
+
}
|
|
421
426
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledFormFieldHeader, {
|
|
422
427
|
$colIeSpan: colWidth,
|
|
423
428
|
$colStart: colStart,
|
|
@@ -1208,7 +1213,7 @@ export var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(_ref
|
|
|
1208
1213
|
onSearch: _onSearch || _onSearch === undefined || searchComparator ? onSearch : undefined,
|
|
1209
1214
|
onSelect: onSelect,
|
|
1210
1215
|
ref: ref
|
|
1211
|
-
}, props), menu.list.map(function (option) {
|
|
1216
|
+
}, props), menu.list.map(function (option, index) {
|
|
1212
1217
|
if (option.isGroupHeader) {
|
|
1213
1218
|
return groupHeaderRenderer(option, {
|
|
1214
1219
|
getId: groupGetId,
|
|
@@ -1219,6 +1224,7 @@ export var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(_ref
|
|
|
1219
1224
|
});
|
|
1220
1225
|
}
|
|
1221
1226
|
return optionRenderer(option, {
|
|
1227
|
+
index: index,
|
|
1222
1228
|
getId: getId,
|
|
1223
1229
|
getLabel: getLabel,
|
|
1224
1230
|
// @ts-ignore
|