@procore/core-react 11.12.1 → 11.13.0-rc.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/Modal/Modal.d.ts +3 -1
- package/dist/Modal/Modal.js +72 -19
- package/dist/Modal/Modal.js.map +1 -1
- package/dist/Modal/Modal.types.d.ts +59 -3
- package/dist/OverlayTrigger/OverlayTrigger.d.ts +6 -6
- package/dist/OverlayTrigger/OverlayTrigger.js +43 -32
- package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
- package/dist/OverlayTrigger/OverlayTrigger.types.d.ts +15 -7
- package/dist/OverlayTrigger/a11yPresets.d.ts +202 -1
- package/dist/OverlayTrigger/a11yPresets.js +210 -0
- package/dist/OverlayTrigger/a11yPresets.js.map +1 -1
- package/dist/Popover/Popover.d.ts +24 -2
- package/dist/Popover/Popover.js +6 -4
- package/dist/Popover/Popover.js.map +1 -1
- package/dist/Popover/Popover.types.d.ts +15 -2
- package/dist/Portal/Portal.d.ts +1 -1
- package/dist/Portal/Portal.js +24 -2
- package/dist/Portal/Portal.js.map +1 -1
- package/dist/Section/Section.d.ts +4 -0
- package/dist/Section/Section.js +12 -6
- package/dist/Section/Section.js.map +1 -1
- package/dist/Semantic/Semantic.d.ts +8 -0
- package/dist/Semantic/Semantic.js +28 -0
- package/dist/Semantic/Semantic.js.map +1 -1
- package/dist/Semantic/Semantic.types.d.ts +1 -1
- package/dist/Tearsheet/Tearsheet.d.ts +7 -1
- package/dist/Tearsheet/Tearsheet.js +32 -19
- package/dist/Tearsheet/Tearsheet.js.map +1 -1
- package/dist/Tearsheet/Tearsheet.types.d.ts +24 -0
- package/dist/_hooks/I18n.d.ts +1 -0
- package/dist/_locales/en.json +2 -1
- package/dist/_typedoc/Avatar/Avatar.types.json +28 -28
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +22 -22
- package/dist/_typedoc/Badge/Badge.types.json +10 -10
- package/dist/_typedoc/Banner/Banner.types.json +19 -19
- package/dist/_typedoc/Box/Box.types.json +70 -70
- package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +14 -14
- package/dist/_typedoc/Button/Button.types.json +11 -11
- package/dist/_typedoc/Calendar/Calendar.types.json +98 -98
- package/dist/_typedoc/Card/Card.types.json +8 -8
- package/dist/_typedoc/Checkbox/Checkbox.types.json +7 -7
- package/dist/_typedoc/ContactItem/ContactItem.types.json +11 -11
- package/dist/_typedoc/DateInput/DateInput.types.json +37 -37
- package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
- package/dist/_typedoc/DetailPage/DetailPage.types.json +6 -6
- package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +31 -31
- package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
- package/dist/_typedoc/EmptyState/EmptyState.types.json +22 -22
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
- package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
- package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
- package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
- package/dist/_typedoc/Flex/Flex.types.json +29 -29
- package/dist/_typedoc/FlexList/FlexList.types.json +32 -32
- package/dist/_typedoc/Form/Form.types.json +698 -698
- 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 +6 -6
- package/dist/_typedoc/ListPage/ListPage.types.json +19 -19
- package/dist/_typedoc/Menu/Menu.types.json +68 -68
- package/dist/_typedoc/MenuImperative/MenuImperative.types.json +75 -75
- package/dist/_typedoc/Modal/Modal.types.json +213 -70
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
- package/dist/_typedoc/Notation/Notation.types.json +6 -6
- package/dist/_typedoc/NumberInput/NumberInput.types.json +38 -38
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +76 -34
- package/dist/_typedoc/PageLayout/PageLayout.types.json +32 -32
- package/dist/_typedoc/Pagination/Pagination.types.json +9 -9
- package/dist/_typedoc/Panel/Panel.types.json +29 -29
- package/dist/_typedoc/Pill/Pill.types.json +1 -1
- package/dist/_typedoc/PillSelect/PillSelect.types.json +46 -46
- package/dist/_typedoc/Popover/Popover.types.json +60 -38
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +8 -8
- package/dist/_typedoc/RadioButton/RadioButton.types.json +8 -8
- 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 +16 -16
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +26 -26
- package/dist/_typedoc/Select/Select.types.json +32 -32
- package/dist/_typedoc/Slider/Slider.types.json +6 -6
- package/dist/_typedoc/Spinner/Spinner.types.json +11 -11
- package/dist/_typedoc/Switch/Switch.types.json +5 -5
- package/dist/_typedoc/Table/Table.types.json +116 -116
- package/dist/_typedoc/Tabs/Tabs.types.json +21 -21
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +70 -10
- 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 +3 -3
- package/dist/_typedoc/Thumbnail/Thumbnail.types.json +21 -21
- 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 +42 -42
- package/dist/_typedoc/Toast/Toast.types.json +6 -6
- package/dist/_typedoc/ToggleButton/ToggleButton.types.json +3 -3
- package/dist/_typedoc/Token/Token.types.json +4 -4
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +14 -14
- package/dist/_typedoc/Tooltip/Tooltip.types.json +17 -17
- 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 +8 -8
- package/dist/_typedoc/_utils/types.json +5 -5
- package/dist/_utils/polymorphic.d.ts +4 -4
- package/dist/_utils/types.d.ts +0 -3
- package/package.json +3 -2
|
@@ -2,15 +2,57 @@
|
|
|
2
2
|
"ConfirmModalProps": {
|
|
3
3
|
"name": "ConfirmModalProps",
|
|
4
4
|
"properties": [
|
|
5
|
+
{
|
|
6
|
+
"name": "aria-describedby",
|
|
7
|
+
"required": false,
|
|
8
|
+
"type": "<span class=\"tsd-signature-type\">string</span>",
|
|
9
|
+
"typeDetail": "<span class=\"tsd-signature-type\">string</span>",
|
|
10
|
+
"description": "",
|
|
11
|
+
"descriptionHtml": "",
|
|
12
|
+
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
13
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L39"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "aria-details",
|
|
17
|
+
"required": false,
|
|
18
|
+
"type": "<span class=\"tsd-signature-type\">string</span>",
|
|
19
|
+
"typeDetail": "<span class=\"tsd-signature-type\">string</span>",
|
|
20
|
+
"description": "",
|
|
21
|
+
"descriptionHtml": "",
|
|
22
|
+
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
23
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L40"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "aria-label",
|
|
27
|
+
"required": false,
|
|
28
|
+
"type": "<span class=\"tsd-signature-type\">string</span>",
|
|
29
|
+
"typeDetail": "<span class=\"tsd-signature-type\">string</span>",
|
|
30
|
+
"description": "",
|
|
31
|
+
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><dl class=\"tsd-comment-tags\"><dt>a11y</dt><dd><p><code>role='dialog'</code> MUST be labelled. Prefer <code>aria-labelledby</code> over <code>aria-label</code>.</p>\n</dd><dt>since</dt><dd><p>11.12.0</p>\n</dd></dl></div>",
|
|
32
|
+
"a11y": "`role='dialog'` MUST be labelled. Prefer `aria-labelledby` over `aria-label`.",
|
|
33
|
+
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
34
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L50"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "aria-labelledby",
|
|
38
|
+
"required": false,
|
|
39
|
+
"type": "<span class=\"tsd-signature-type\">string</span>",
|
|
40
|
+
"typeDetail": "<span class=\"tsd-signature-type\">string</span>",
|
|
41
|
+
"description": "",
|
|
42
|
+
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><dl class=\"tsd-comment-tags\"><dt>a11y</dt><dd><p><code>role='dialog'</code> MUST be labelled. Prefer <code>aria-labelledby</code> over <code>aria-label</code>.</p>\n</dd><dt>since</dt><dd><p>11.12.0</p>\n</dd></dl></div>",
|
|
43
|
+
"a11y": "`role='dialog'` MUST be labelled. Prefer `aria-labelledby` over `aria-label`.",
|
|
44
|
+
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
45
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L45"
|
|
46
|
+
},
|
|
5
47
|
{
|
|
6
48
|
"name": "children",
|
|
7
49
|
"required": false,
|
|
8
50
|
"type": "<span class=\"tsd-signature-type\">ReactNode</span>",
|
|
9
51
|
"typeDetail": "<span class=\"tsd-signature-type\">ReactNode</span>",
|
|
10
|
-
"description": "
|
|
11
|
-
"descriptionHtml": "
|
|
52
|
+
"description": "",
|
|
53
|
+
"descriptionHtml": "",
|
|
12
54
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
13
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
55
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/_utils/types.ts#L42"
|
|
14
56
|
},
|
|
15
57
|
{
|
|
16
58
|
"name": "className",
|
|
@@ -20,7 +62,7 @@
|
|
|
20
62
|
"description": "Additional classNames",
|
|
21
63
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional classNames</p>\n</div></div>",
|
|
22
64
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
23
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
65
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/_utils/types.ts#L47"
|
|
24
66
|
},
|
|
25
67
|
{
|
|
26
68
|
"name": "headline",
|
|
@@ -30,7 +72,28 @@
|
|
|
30
72
|
"description": "Headline message",
|
|
31
73
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Headline message</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
32
74
|
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
33
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
75
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L117"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "howToClose",
|
|
79
|
+
"required": false,
|
|
80
|
+
"type": "<a class=\"tsd-signature-type\" data-tsd-kind=\"Type alias\">ModalOptionalCloseStartegy</a><span class=\"tsd-signature-symbol\">[]</span>",
|
|
81
|
+
"typeDetail": "<a class=\"tsd-signature-type\" data-tsd-kind=\"Type alias\">ModalOptionalCloseStartegy</a><span class=\"tsd-signature-symbol\">[]</span>",
|
|
82
|
+
"description": "This adds additional UI or UX to close. Escape key will always close a dialog, see `onClose`.",
|
|
83
|
+
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>This adds additional UI or UX to close. Escape key will always close a dialog, see <code>onClose</code>.</p>\n</div><div><p>NOTE 'footer-button': Footer Cancel button still requires at least a rendered self closing <code>Modal.FooterButtons</code>.</p>\n<p>NOTE 'x': The X button still requires a rendered <code>Modal.Header</code> component.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>defaultvalue</dt><dd><p>[]</p>\n</dd><dt>since</dt><dd><p>11.12.0</p>\n</dd></dl></div>",
|
|
84
|
+
"defaultValue": "[]",
|
|
85
|
+
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
86
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L60"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "id",
|
|
90
|
+
"required": false,
|
|
91
|
+
"type": "<span class=\"tsd-signature-type\">string</span>",
|
|
92
|
+
"typeDetail": "<span class=\"tsd-signature-type\">string</span>",
|
|
93
|
+
"description": "Aligns with `role` and `ref` location.",
|
|
94
|
+
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Aligns with <code>role</code> and <code>ref</code> location.</p>\n</div></div>",
|
|
95
|
+
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
96
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L64"
|
|
34
97
|
},
|
|
35
98
|
{
|
|
36
99
|
"name": "open",
|
|
@@ -41,7 +104,7 @@
|
|
|
41
104
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Modal open state</p>\n</div><dl class=\"tsd-comment-tags\"><dt>defaultvalue</dt><dd><p>false</p>\n</dd><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
42
105
|
"defaultValue": "false",
|
|
43
106
|
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
44
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
107
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L82"
|
|
45
108
|
},
|
|
46
109
|
{
|
|
47
110
|
"name": "placement",
|
|
@@ -52,7 +115,17 @@
|
|
|
52
115
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Vertical placement of the modal</p>\n</div><dl class=\"tsd-comment-tags\"><dt>defaultvalue</dt><dd><p>center</p>\n</dd><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
53
116
|
"defaultValue": "center",
|
|
54
117
|
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
55
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
118
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L92"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "role",
|
|
122
|
+
"required": false,
|
|
123
|
+
"type": "<span class=\"tsd-signature-type\">"dialog"</span>",
|
|
124
|
+
"typeDetail": "<span class=\"tsd-signature-type\">"dialog"</span>",
|
|
125
|
+
"description": "Enable dialog props. REQUIRES `onClose` to enable Escape key and focus management. MUST be labelled, prefer `aria-labelledby` over `aria-label`.",
|
|
126
|
+
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Enable dialog props. REQUIRES <code>onClose</code> to enable Escape key and focus management. MUST be labelled, prefer <code>aria-labelledby</code> over <code>aria-label</code>.</p>\n</div></div>",
|
|
127
|
+
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
128
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L86"
|
|
56
129
|
},
|
|
57
130
|
{
|
|
58
131
|
"name": "style",
|
|
@@ -62,7 +135,7 @@
|
|
|
62
135
|
"description": "Additional CSS styles",
|
|
63
136
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div></div>",
|
|
64
137
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
65
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
138
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/_utils/types.ts#L52"
|
|
66
139
|
},
|
|
67
140
|
{
|
|
68
141
|
"name": "width",
|
|
@@ -72,7 +145,7 @@
|
|
|
72
145
|
"description": "Sets a width on the container and uses next centering.\nFuture will default to `md`",
|
|
73
146
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Sets a width on the container and uses next centering.\nFuture will default to <code>md</code></p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
74
147
|
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
75
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
148
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L98"
|
|
76
149
|
},
|
|
77
150
|
{
|
|
78
151
|
"name": "onClickOverlay",
|
|
@@ -82,7 +155,7 @@
|
|
|
82
155
|
"description": "Callback for clicking the overlay",
|
|
83
156
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Callback for clicking the overlay</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
84
157
|
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
85
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
158
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L69"
|
|
86
159
|
},
|
|
87
160
|
{
|
|
88
161
|
"name": "onClose",
|
|
@@ -92,7 +165,7 @@
|
|
|
92
165
|
"description": "The dismiss onClick callback",
|
|
93
166
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>The dismiss onClick callback</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
94
167
|
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
95
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
168
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L123"
|
|
96
169
|
}
|
|
97
170
|
],
|
|
98
171
|
"description": ""
|
|
@@ -109,53 +182,49 @@
|
|
|
109
182
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Removes left, right paddings from the modal body when true</p>\n</div><dl class=\"tsd-comment-tags\"><dt>defaultvalue</dt><dd><p>false</p>\n</dd><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
110
183
|
"defaultValue": "false",
|
|
111
184
|
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
112
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
185
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L147"
|
|
113
186
|
}
|
|
114
187
|
],
|
|
115
188
|
"description": ""
|
|
116
189
|
},
|
|
117
|
-
"
|
|
118
|
-
"name": "
|
|
190
|
+
"ModalCloseContextApi": {
|
|
191
|
+
"name": "ModalCloseContextApi",
|
|
119
192
|
"properties": [
|
|
120
193
|
{
|
|
121
|
-
"name": "
|
|
122
|
-
"required":
|
|
123
|
-
"type": "<span class=\"tsd-signature-type\">
|
|
124
|
-
"typeDetail": "<span class=\"tsd-signature-type\">
|
|
125
|
-
"description": "
|
|
126
|
-
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>
|
|
127
|
-
"sourceFile": "packages/core-react/src/
|
|
128
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
194
|
+
"name": "howToClose",
|
|
195
|
+
"required": true,
|
|
196
|
+
"type": "<span class=\"tsd-signature-type\">undefined</span><span class=\"tsd-signature-symbol\"> | </span><a class=\"tsd-signature-type\" data-tsd-kind=\"Type alias\">ModalOptionalCloseStartegy</a><span class=\"tsd-signature-symbol\">[]</span>",
|
|
197
|
+
"typeDetail": "<span class=\"tsd-signature-type\">undefined</span><span class=\"tsd-signature-symbol\"> | </span><a class=\"tsd-signature-type\" data-tsd-kind=\"Type alias\">ModalOptionalCloseStartegy</a><span class=\"tsd-signature-symbol\">[]</span>",
|
|
198
|
+
"description": "Escape key will always close a dialog. This adds additional UI or UX to close.",
|
|
199
|
+
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Escape key will always close a dialog. This adds additional UI or UX to close.</p>\n</div></div>",
|
|
200
|
+
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
201
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L30"
|
|
129
202
|
},
|
|
130
203
|
{
|
|
131
|
-
"name": "
|
|
132
|
-
"required":
|
|
133
|
-
"type": "<span class=\"tsd-signature-type\">
|
|
134
|
-
"typeDetail": "<span class=\"tsd-signature-type\">
|
|
135
|
-
"description": "
|
|
136
|
-
"descriptionHtml": "
|
|
137
|
-
"sourceFile": "packages/core-react/src/
|
|
138
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
139
|
-
}
|
|
204
|
+
"name": "onClose",
|
|
205
|
+
"required": true,
|
|
206
|
+
"type": "<span class=\"tsd-signature-type\">undefined</span><span class=\"tsd-signature-symbol\"> | </span><span class=\"tsd-signature-type\">ModalOnClose</span>",
|
|
207
|
+
"typeDetail": "<span class=\"tsd-signature-type\">undefined</span><span class=\"tsd-signature-symbol\"> | </span><span class=\"tsd-signature-type\">ModalOnClose</span>",
|
|
208
|
+
"description": "",
|
|
209
|
+
"descriptionHtml": "",
|
|
210
|
+
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
211
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L31"
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"description": ""
|
|
215
|
+
},
|
|
216
|
+
"ModalCloseableHeaderProps": {
|
|
217
|
+
"name": "ModalCloseableHeaderProps",
|
|
218
|
+
"properties": [
|
|
140
219
|
{
|
|
141
220
|
"name": "qa",
|
|
142
221
|
"required": false,
|
|
143
222
|
"type": "<span class=\"tsd-signature-symbol\">{ </span>closeButton<span class=\"tsd-signature-symbol\">?: </span><span class=\"tsd-signature-type\">string</span><span class=\"tsd-signature-symbol\"> }</span>",
|
|
144
223
|
"typeDetail": "<span class=\"tsd-signature-symbol\">{ </span>closeButton<span class=\"tsd-signature-symbol\">?: </span><span class=\"tsd-signature-type\">string</span><span class=\"tsd-signature-symbol\"> }</span>",
|
|
145
224
|
"description": "",
|
|
146
|
-
"descriptionHtml": "
|
|
225
|
+
"descriptionHtml": "",
|
|
147
226
|
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
148
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"name": "style",
|
|
152
|
-
"required": false,
|
|
153
|
-
"type": "<span class=\"tsd-signature-type\">CSSProperties</span>",
|
|
154
|
-
"typeDetail": "<span class=\"tsd-signature-type\">CSSProperties</span>",
|
|
155
|
-
"description": "Additional CSS styles",
|
|
156
|
-
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div></div>",
|
|
157
|
-
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
158
|
-
"sourceUrl": "https://github.com/procore/core/blob/579e2b7a4/packages/core-react/src/_utils/types.ts#L55"
|
|
227
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L35"
|
|
159
228
|
},
|
|
160
229
|
{
|
|
161
230
|
"name": "onClose",
|
|
@@ -165,7 +234,7 @@
|
|
|
165
234
|
"description": "",
|
|
166
235
|
"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>",
|
|
167
236
|
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
168
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
237
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L134"
|
|
169
238
|
}
|
|
170
239
|
],
|
|
171
240
|
"description": ""
|
|
@@ -178,10 +247,10 @@
|
|
|
178
247
|
"required": false,
|
|
179
248
|
"type": "<span class=\"tsd-signature-type\">ReactNode</span>",
|
|
180
249
|
"typeDetail": "<span class=\"tsd-signature-type\">ReactNode</span>",
|
|
181
|
-
"description": "
|
|
182
|
-
"descriptionHtml": "
|
|
250
|
+
"description": "",
|
|
251
|
+
"descriptionHtml": "",
|
|
183
252
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
184
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
253
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/_utils/types.ts#L42"
|
|
185
254
|
},
|
|
186
255
|
{
|
|
187
256
|
"name": "className",
|
|
@@ -191,7 +260,7 @@
|
|
|
191
260
|
"description": "Additional classNames",
|
|
192
261
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional classNames</p>\n</div></div>",
|
|
193
262
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
194
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
263
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/_utils/types.ts#L47"
|
|
195
264
|
},
|
|
196
265
|
{
|
|
197
266
|
"name": "placement",
|
|
@@ -201,7 +270,7 @@
|
|
|
201
270
|
"description": "",
|
|
202
271
|
"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>",
|
|
203
272
|
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
204
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
273
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L105"
|
|
205
274
|
},
|
|
206
275
|
{
|
|
207
276
|
"name": "style",
|
|
@@ -211,7 +280,7 @@
|
|
|
211
280
|
"description": "Additional CSS styles",
|
|
212
281
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div></div>",
|
|
213
282
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
214
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
283
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/_utils/types.ts#L52"
|
|
215
284
|
},
|
|
216
285
|
{
|
|
217
286
|
"name": "width",
|
|
@@ -221,7 +290,7 @@
|
|
|
221
290
|
"description": "",
|
|
222
291
|
"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>",
|
|
223
292
|
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
224
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
293
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L109"
|
|
225
294
|
}
|
|
226
295
|
],
|
|
227
296
|
"description": ""
|
|
@@ -229,15 +298,57 @@
|
|
|
229
298
|
"ModalProps": {
|
|
230
299
|
"name": "ModalProps",
|
|
231
300
|
"properties": [
|
|
301
|
+
{
|
|
302
|
+
"name": "aria-describedby",
|
|
303
|
+
"required": false,
|
|
304
|
+
"type": "<span class=\"tsd-signature-type\">string</span>",
|
|
305
|
+
"typeDetail": "<span class=\"tsd-signature-type\">string</span>",
|
|
306
|
+
"description": "",
|
|
307
|
+
"descriptionHtml": "",
|
|
308
|
+
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
309
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L39"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"name": "aria-details",
|
|
313
|
+
"required": false,
|
|
314
|
+
"type": "<span class=\"tsd-signature-type\">string</span>",
|
|
315
|
+
"typeDetail": "<span class=\"tsd-signature-type\">string</span>",
|
|
316
|
+
"description": "",
|
|
317
|
+
"descriptionHtml": "",
|
|
318
|
+
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
319
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L40"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"name": "aria-label",
|
|
323
|
+
"required": false,
|
|
324
|
+
"type": "<span class=\"tsd-signature-type\">string</span>",
|
|
325
|
+
"typeDetail": "<span class=\"tsd-signature-type\">string</span>",
|
|
326
|
+
"description": "",
|
|
327
|
+
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><dl class=\"tsd-comment-tags\"><dt>a11y</dt><dd><p><code>role='dialog'</code> MUST be labelled. Prefer <code>aria-labelledby</code> over <code>aria-label</code>.</p>\n</dd><dt>since</dt><dd><p>11.12.0</p>\n</dd></dl></div>",
|
|
328
|
+
"a11y": "`role='dialog'` MUST be labelled. Prefer `aria-labelledby` over `aria-label`.",
|
|
329
|
+
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
330
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L50"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"name": "aria-labelledby",
|
|
334
|
+
"required": false,
|
|
335
|
+
"type": "<span class=\"tsd-signature-type\">string</span>",
|
|
336
|
+
"typeDetail": "<span class=\"tsd-signature-type\">string</span>",
|
|
337
|
+
"description": "",
|
|
338
|
+
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><dl class=\"tsd-comment-tags\"><dt>a11y</dt><dd><p><code>role='dialog'</code> MUST be labelled. Prefer <code>aria-labelledby</code> over <code>aria-label</code>.</p>\n</dd><dt>since</dt><dd><p>11.12.0</p>\n</dd></dl></div>",
|
|
339
|
+
"a11y": "`role='dialog'` MUST be labelled. Prefer `aria-labelledby` over `aria-label`.",
|
|
340
|
+
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
341
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L45"
|
|
342
|
+
},
|
|
232
343
|
{
|
|
233
344
|
"name": "children",
|
|
234
345
|
"required": false,
|
|
235
346
|
"type": "<span class=\"tsd-signature-type\">ReactNode</span>",
|
|
236
347
|
"typeDetail": "<span class=\"tsd-signature-type\">ReactNode</span>",
|
|
237
|
-
"description": "
|
|
238
|
-
"descriptionHtml": "
|
|
348
|
+
"description": "",
|
|
349
|
+
"descriptionHtml": "",
|
|
239
350
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
240
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
351
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/_utils/types.ts#L42"
|
|
241
352
|
},
|
|
242
353
|
{
|
|
243
354
|
"name": "className",
|
|
@@ -247,7 +358,39 @@
|
|
|
247
358
|
"description": "Additional classNames",
|
|
248
359
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional classNames</p>\n</div></div>",
|
|
249
360
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
250
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
361
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/_utils/types.ts#L47"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"name": "howToClose",
|
|
365
|
+
"required": false,
|
|
366
|
+
"type": "<a class=\"tsd-signature-type\" data-tsd-kind=\"Type alias\">ModalOptionalCloseStartegy</a><span class=\"tsd-signature-symbol\">[]</span>",
|
|
367
|
+
"typeDetail": "<a class=\"tsd-signature-type\" data-tsd-kind=\"Type alias\">ModalOptionalCloseStartegy</a><span class=\"tsd-signature-symbol\">[]</span>",
|
|
368
|
+
"description": "This adds additional UI or UX to close. Escape key will always close a dialog, see `onClose`.",
|
|
369
|
+
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>This adds additional UI or UX to close. Escape key will always close a dialog, see <code>onClose</code>.</p>\n</div><div><p>NOTE 'footer-button': Footer Cancel button still requires at least a rendered self closing <code>Modal.FooterButtons</code>.</p>\n<p>NOTE 'x': The X button still requires a rendered <code>Modal.Header</code> component.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>defaultvalue</dt><dd><p>[]</p>\n</dd><dt>since</dt><dd><p>11.12.0</p>\n</dd></dl></div>",
|
|
370
|
+
"defaultValue": "[]",
|
|
371
|
+
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
372
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L60"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"name": "id",
|
|
376
|
+
"required": false,
|
|
377
|
+
"type": "<span class=\"tsd-signature-type\">string</span>",
|
|
378
|
+
"typeDetail": "<span class=\"tsd-signature-type\">string</span>",
|
|
379
|
+
"description": "Aligns with `role` and `ref` location.",
|
|
380
|
+
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Aligns with <code>role</code> and <code>ref</code> location.</p>\n</div></div>",
|
|
381
|
+
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
382
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L64"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"name": "onClose",
|
|
386
|
+
"required": false,
|
|
387
|
+
"type": "<span class=\"tsd-signature-type\">ModalOnClose</span>",
|
|
388
|
+
"typeDetail": "<span class=\"tsd-signature-type\">ModalOnClose</span>",
|
|
389
|
+
"description": "When a user closes the Modal by some approved `howToClose` method or the Escape key. This also opts-in to dialog focus management.",
|
|
390
|
+
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>When a user closes the Modal by some approved <code>howToClose</code> method or the Escape key. This also opts-in to dialog focus management.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>a11y</dt><dd><p>Future default! Moves focus into and cycles focus in the Modal, and returning focus\nto the trigger when closed. Also enables the Escape key to close the Modal.</p>\n</dd><dt>since</dt><dd><p>11.6.0</p>\n</dd></dl></div>",
|
|
391
|
+
"a11y": "Future default! Moves focus into and cycles focus in the Modal, and returning focus\nto the trigger when closed. Also enables the Escape key to close the Modal.",
|
|
392
|
+
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
393
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L76"
|
|
251
394
|
},
|
|
252
395
|
{
|
|
253
396
|
"name": "open",
|
|
@@ -258,7 +401,7 @@
|
|
|
258
401
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Modal open state</p>\n</div><dl class=\"tsd-comment-tags\"><dt>defaultvalue</dt><dd><p>false</p>\n</dd><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
259
402
|
"defaultValue": "false",
|
|
260
403
|
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
261
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
404
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L82"
|
|
262
405
|
},
|
|
263
406
|
{
|
|
264
407
|
"name": "placement",
|
|
@@ -269,7 +412,17 @@
|
|
|
269
412
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Vertical placement of the modal</p>\n</div><dl class=\"tsd-comment-tags\"><dt>defaultvalue</dt><dd><p>center</p>\n</dd><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
270
413
|
"defaultValue": "center",
|
|
271
414
|
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
272
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
415
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L92"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"name": "role",
|
|
419
|
+
"required": false,
|
|
420
|
+
"type": "<span class=\"tsd-signature-type\">"dialog"</span>",
|
|
421
|
+
"typeDetail": "<span class=\"tsd-signature-type\">"dialog"</span>",
|
|
422
|
+
"description": "Enable dialog props. REQUIRES `onClose` to enable Escape key and focus management. MUST be labelled, prefer `aria-labelledby` over `aria-label`.",
|
|
423
|
+
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Enable dialog props. REQUIRES <code>onClose</code> to enable Escape key and focus management. MUST be labelled, prefer <code>aria-labelledby</code> over <code>aria-label</code>.</p>\n</div></div>",
|
|
424
|
+
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
425
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L86"
|
|
273
426
|
},
|
|
274
427
|
{
|
|
275
428
|
"name": "style",
|
|
@@ -279,7 +432,7 @@
|
|
|
279
432
|
"description": "Additional CSS styles",
|
|
280
433
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div></div>",
|
|
281
434
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
282
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
435
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/_utils/types.ts#L52"
|
|
283
436
|
},
|
|
284
437
|
{
|
|
285
438
|
"name": "width",
|
|
@@ -289,7 +442,7 @@
|
|
|
289
442
|
"description": "Sets a width on the container and uses next centering.\nFuture will default to `md`",
|
|
290
443
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Sets a width on the container and uses next centering.\nFuture will default to <code>md</code></p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
291
444
|
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
292
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
445
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L98"
|
|
293
446
|
},
|
|
294
447
|
{
|
|
295
448
|
"name": "onClickOverlay",
|
|
@@ -299,17 +452,7 @@
|
|
|
299
452
|
"description": "Callback for clicking the overlay",
|
|
300
453
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Callback for clicking the overlay</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
301
454
|
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
302
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
"name": "onClose",
|
|
306
|
-
"required": false,
|
|
307
|
-
"type": "Function",
|
|
308
|
-
"typeDetail": "on<wbr/>Close<span class=\"tsd-signature-symbol\">(</span>event<span class=\"tsd-signature-symbol\">: </span><span class=\"tsd-signature-type\">KeyboardEvent</span><span class=\"tsd-signature-symbol\"><</span><span class=\"tsd-signature-type\">HTMLDivElement</span><span class=\"tsd-signature-symbol\">></span><span class=\"tsd-signature-symbol\">)</span><span class=\"tsd-signature-symbol\">: </span><span class=\"tsd-signature-type\">void</span>",
|
|
309
|
-
"description": "Dismiss onClick callback to enable focus management and Escape key to close",
|
|
310
|
-
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Dismiss onClick callback to enable focus management and Escape key to close</p>\n</div><dl class=\"tsd-comment-tags\"><dt>a11y</dt><dd><p>Moves focus into and cycles focus in the Modal, abd returning focus\nto the trigger when closed. Also enables the Escape key to close the Modal.</p>\n</dd><dt>since</dt><dd><p>11.6.0</p>\n</dd></dl></div>",
|
|
311
|
-
"sourceFile": "packages/core-react/src/Modal/Modal.types.ts",
|
|
312
|
-
"sourceUrl": "https://github.com/procore/core/blob/579e2b7a4/packages/core-react/src/Modal/Modal.types.ts#L19"
|
|
455
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Modal/Modal.types.ts#L69"
|
|
313
456
|
}
|
|
314
457
|
],
|
|
315
458
|
"description": ""
|