@primereact/mcp 11.0.0 → 11.2.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/data/llms/headless/components/accordion/api.json +9 -9
- package/data/llms/headless/components/animateonscroll/api.json +2 -2
- package/data/llms/headless/components/autocomplete/api.json +33 -33
- package/data/llms/headless/components/avatar/api.json +1 -1
- package/data/llms/headless/components/carousel/api.json +15 -15
- package/data/llms/headless/components/checkbox/api.json +18 -18
- package/data/llms/headless/components/collapsible/api.json +14 -14
- package/data/llms/headless/components/compare/api.json +3 -3
- package/data/llms/headless/components/contextmenu/api.json +2 -2
- package/data/llms/headless/components/datatable/api.json +19 -19
- package/data/llms/headless/components/dataview/api.json +3 -3
- package/data/llms/headless/components/datepicker/api.json +43 -43
- package/data/llms/headless/components/dialog/api.json +19 -19
- package/data/llms/headless/components/divider/api.json +3 -3
- package/data/llms/headless/components/drawer/api.json +13 -13
- package/data/llms/headless/components/fieldset/api.json +9 -9
- package/data/llms/headless/components/fileupload/api.json +5 -5
- package/data/llms/headless/components/focustrap/api.json +4 -4
- package/data/llms/headless/components/gallery/api.json +23 -23
- package/data/llms/headless/components/inplace/api.json +3 -3
- package/data/llms/headless/components/inputcolor/api.json +6 -6
- package/data/llms/headless/components/inputcolor.md +0 -1
- package/data/llms/headless/components/inputnumber/api.json +8 -8
- package/data/llms/headless/components/inputotp/api.json +7 -7
- package/data/llms/headless/components/inputpassword/api.json +4 -4
- package/data/llms/headless/components/inputpassword.md +3 -3
- package/data/llms/headless/components/inputtags/api.json +8 -8
- package/data/llms/headless/components/inputtext/api.json +1 -1
- package/data/llms/headless/components/knob/api.json +18 -18
- package/data/llms/headless/components/listbox/api.json +27 -27
- package/data/llms/headless/components/menu/api.json +10 -10
- package/data/llms/headless/components/message/api.json +1 -1
- package/data/llms/headless/components/metergroup/api.json +3 -3
- package/data/llms/headless/components/motion/api.json +1 -1
- package/data/llms/headless/components/navigationmenu/api.json +5 -5
- package/data/llms/headless/components/orderlist/api.json +5 -5
- package/data/llms/headless/components/organizationchart/api.json +6 -6
- package/data/llms/headless/components/paginator/api.json +5 -5
- package/data/llms/headless/components/panel/api.json +9 -9
- package/data/llms/headless/components/picklist/api.json +5 -5
- package/data/llms/headless/components/popover/api.json +16 -16
- package/data/llms/headless/components/positioner/api.json +7 -7
- package/data/llms/headless/components/progressbar/api.json +3 -3
- package/data/llms/headless/components/progressspinner/api.json +3 -3
- package/data/llms/headless/components/radiobutton/api.json +16 -16
- package/data/llms/headless/components/rating/api.json +5 -5
- package/data/llms/headless/components/scrollarea/api.json +6 -6
- package/data/llms/headless/components/select/api.json +34 -34
- package/data/llms/headless/components/sidebar/api.json +1116 -141
- package/data/llms/headless/components/sidebar.md +4 -2
- package/data/llms/headless/components/slider/api.json +3 -3
- package/data/llms/headless/components/speeddial/api.json +4 -4
- package/data/llms/headless/components/splitter/api.json +5 -5
- package/data/llms/headless/components/stepper/api.json +13 -13
- package/data/llms/headless/components/styleclass/api.json +1 -1
- package/data/llms/headless/components/tabs/api.json +17 -17
- package/data/llms/headless/components/terminal/api.json +1 -1
- package/data/llms/headless/components/toast/api.json +4 -4
- package/data/llms/headless/components/togglebutton/api.json +27 -3
- package/data/llms/headless/components/toggleswitch/api.json +3 -3
- package/data/llms/headless/components/tooltip/api.json +17 -17
- package/data/llms/headless/components/tree/api.json +20 -20
- package/data/llms/headless/components/tree.md +1 -0
- package/data/llms/headless/components/treetable/api.json +19 -19
- package/data/llms/headless/guides/misc/internationalization.md +282 -0
- package/data/llms/hooks/use-filter.md +2 -2
- package/data/llms/hooks/use-tree-filter.md +3 -1
- package/data/llms/llms-full.txt +10444 -1743
- package/data/llms/llms.txt +15 -0
- package/data/llms/primitive/components/accordion/api.json +39 -39
- package/data/llms/primitive/components/animateonscroll/api.json +5 -5
- package/data/llms/primitive/components/autocomplete/api.json +105 -105
- package/data/llms/primitive/components/avatar/api.json +14 -14
- package/data/llms/primitive/components/badge/api.json +6 -6
- package/data/llms/primitive/components/breadcrumb/api.json +27 -27
- package/data/llms/primitive/components/button/api.json +8 -8
- package/data/llms/primitive/components/buttongroup/api.json +3 -3
- package/data/llms/primitive/components/card/api.json +24 -24
- package/data/llms/primitive/components/carousel/api.json +28 -28
- package/data/llms/primitive/components/checkbox/api.json +14 -14
- package/data/llms/primitive/components/checkboxgroup/api.json +5 -5
- package/data/llms/primitive/components/chip/api.json +19 -19
- package/data/llms/primitive/components/collapsible/api.json +18 -18
- package/data/llms/primitive/components/compare/api.json +18 -18
- package/data/llms/primitive/components/contextmenu/api.json +150 -1141
- package/data/llms/primitive/components/datatable/api.json +215 -164
- package/data/llms/primitive/components/dataview/api.json +17 -17
- package/data/llms/primitive/components/datepicker/api.json +230 -230
- package/data/llms/primitive/components/dialog/api.json +63 -63
- package/data/llms/primitive/components/divider/api.json +3 -3
- package/data/llms/primitive/components/drawer/api.json +47 -47
- package/data/llms/primitive/components/fieldset/api.json +31 -31
- package/data/llms/primitive/components/fileupload/api.json +53 -53
- package/data/llms/primitive/components/floatlabel/api.json +3 -3
- package/data/llms/primitive/components/focustrap/api.json +7 -7
- package/data/llms/primitive/components/gallery/api.json +91 -91
- package/data/llms/primitive/components/iconfield/api.json +7 -7
- package/data/llms/primitive/components/iftalabel/api.json +3 -3
- package/data/llms/primitive/components/inplace/api.json +18 -18
- package/data/llms/primitive/components/inputcolor/api.json +51 -51
- package/data/llms/primitive/components/inputnumber/api.json +10 -10
- package/data/llms/primitive/components/inputotp/api.json +12 -12
- package/data/llms/primitive/components/inputpassword/api.json +7 -7
- package/data/llms/primitive/components/inputtags/api.json +6 -6
- package/data/llms/primitive/components/inputtext/api.json +4 -4
- package/data/llms/primitive/components/knob/api.json +19 -19
- package/data/llms/primitive/components/label/api.json +3 -3
- package/data/llms/primitive/components/listbox/api.json +57 -57
- package/data/llms/primitive/components/menu/api.json +87 -279
- package/data/llms/primitive/components/message/api.json +22 -22
- package/data/llms/primitive/components/metergroup/api.json +27 -27
- package/data/llms/primitive/components/navigationmenu/api.json +8 -8
- package/data/llms/primitive/components/paginator/api.json +43 -43
- package/data/llms/primitive/components/panel/api.json +34 -34
- package/data/llms/primitive/components/popover/api.json +67 -67
- package/data/llms/primitive/components/portal/api.json +4 -4
- package/data/llms/primitive/components/progressbar/api.json +22 -22
- package/data/llms/primitive/components/progressspinner/api.json +18 -18
- package/data/llms/primitive/components/radiobutton/api.json +16 -16
- package/data/llms/primitive/components/rating/api.json +20 -20
- package/data/llms/primitive/components/scrollarea/api.json +23 -23
- package/data/llms/primitive/components/select/api.json +95 -95
- package/data/llms/primitive/components/sidebar/api.json +215 -121
- package/data/llms/primitive/components/sidebar.md +2 -1
- package/data/llms/primitive/components/skeleton/api.json +3 -3
- package/data/llms/primitive/components/slider/api.json +22 -22
- package/data/llms/primitive/components/speeddial/api.json +22 -22
- package/data/llms/primitive/components/splitter/api.json +18 -18
- package/data/llms/primitive/components/stepper/api.json +64 -64
- package/data/llms/primitive/components/tabs/api.json +51 -51
- package/data/llms/primitive/components/tag/api.json +3 -3
- package/data/llms/primitive/components/terminal/api.json +44 -44
- package/data/llms/primitive/components/textarea/api.json +4 -4
- package/data/llms/primitive/components/timeline/api.json +27 -27
- package/data/llms/primitive/components/toast/api.json +48 -48
- package/data/llms/primitive/components/togglebutton/api.json +10 -10
- package/data/llms/primitive/components/togglebuttongroup/api.json +5 -5
- package/data/llms/primitive/components/toggleswitch/api.json +12 -12
- package/data/llms/primitive/components/toolbar/api.json +15 -15
- package/data/llms/primitive/components/tooltip/api.json +52 -52
- package/data/llms/primitive/components/tree/api.json +73 -73
- package/data/llms/primitive/components/visuallyhidden/api.json +3 -3
- package/data/llms/primitive/guides/migration/updating-to-v11.md +2219 -0
- package/data/llms/primitive/guides/misc/internationalization.md +287 -0
- package/data/llms/styled/add-ons/designer/ci.md +273 -0
- package/data/llms/styled/add-ons/designer/guide.md +99 -0
- package/data/llms/styled/add-ons/designer/overview.md +194 -0
- package/data/llms/styled/add-ons/uikit/guide/v3.md +182 -0
- package/data/llms/styled/add-ons/uikit/guide/v4.md +163 -0
- package/data/llms/styled/add-ons/uikit/overview.md +204 -0
- package/data/llms/styled/components/button/api.json +8 -8
- package/data/llms/styled/components/carousel.md +65 -0
- package/data/llms/styled/components/datatable.md +101 -88
- package/data/llms/styled/components/floatlabel/api.json +3 -3
- package/data/llms/styled/components/fluid/api.json +3 -3
- package/data/llms/styled/components/iconfield/api.json +7 -7
- package/data/llms/styled/components/iftalabel/api.json +3 -3
- package/data/llms/styled/components/inputcolor.md +3 -0
- package/data/llms/styled/components/inputgroup/api.json +7 -7
- package/data/llms/styled/components/label/api.json +3 -3
- package/data/llms/styled/components/menu.md +39 -41
- package/data/llms/styled/components/organizationchart/api.json +33 -33
- package/data/llms/styled/components/rating/api.json +11 -11
- package/data/llms/styled/components/select.md +6 -0
- package/data/llms/styled/components/sidebar.md +12 -8
- package/data/llms/styled/components/tree.md +5 -0
- package/data/llms/styled/components/treetable.md +171 -62
- package/data/llms/styled/guides/configuration.md +223 -0
- package/data/llms/styled/guides/form/formik.md +448 -0
- package/data/llms/styled/guides/form/react-hook-form.md +503 -0
- package/data/llms/styled/guides/form/tanstack.md +502 -0
- package/data/llms/styled/guides/migration/updating-to-v11.md +2219 -0
- package/data/llms/styled/guides/misc/internationalization.md +379 -0
- package/data/llms/styled/guides/theming/tailwind.md +25 -0
- package/data/llms/tailwind/components/button/api.json +8 -8
- package/data/llms/tailwind/components/datatable.md +33 -42
- package/data/llms/tailwind/components/inputgroup.md +0 -1
- package/data/llms/tailwind/components/menu.md +5 -5
- package/data/llms/tailwind/components/select.md +3 -0
- package/data/llms/tailwind/components/sidebar.md +16 -11
- package/data/llms/tailwind/components/tooltip.md +4 -13
- package/data/llms/tailwind/guides/misc/internationalization.md +287 -0
- package/data/manifest.json +1089 -779
- package/data/mcp-data.json +263 -32
- package/dist/index.d.ts +7 -2
- package/dist/index.js +1 -1
- package/package.json +9 -8
- package/data/llms/styled/guides/installation/configuration.md +0 -135
- package/data/llms/tailwind/guides/theming/guide.md +0 -179
|
@@ -38,19 +38,19 @@
|
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"name": "style",
|
|
41
|
-
"type": "CSSProperties | ((instance?: ContextMenuArrowInstance) => CSSProperties)",
|
|
41
|
+
"type": "CSSProperties | ((instance?: ContextMenuArrowInstance) => undefined | CSSProperties)",
|
|
42
42
|
"default": "",
|
|
43
43
|
"description": "The style to apply to the component."
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"name": "className",
|
|
47
|
-
"type": "string | ((instance?: ContextMenuArrowInstance) => string)",
|
|
47
|
+
"type": "string | ((instance?: ContextMenuArrowInstance) => undefined | string)",
|
|
48
48
|
"default": "",
|
|
49
49
|
"description": "The class name to apply to the component."
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"name": "as",
|
|
53
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
53
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
54
54
|
"default": "",
|
|
55
55
|
"description": "The component type to render."
|
|
56
56
|
},
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"props": [
|
|
136
136
|
{
|
|
137
137
|
"name": "contextmenu",
|
|
138
|
-
"type": "ContextMenuRootInstance",
|
|
138
|
+
"type": "undefined | null | ContextMenuRootInstance",
|
|
139
139
|
"default": "",
|
|
140
140
|
"description": "The ContextMenu component instance."
|
|
141
141
|
}
|
|
@@ -156,169 +156,6 @@
|
|
|
156
156
|
"variables": {}
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
|
-
{
|
|
160
|
-
"name": "ContextMenuIndicator",
|
|
161
|
-
"source": "apps/showcase/assets/apidoc/contextmenuindicator.json",
|
|
162
|
-
"data": {
|
|
163
|
-
"description": "ContextMenuIndicator is a component that conditionally renders content based on the state of the parent menu element.",
|
|
164
|
-
"interfaces": {
|
|
165
|
-
"ContextMenuIndicatorPassThrough": {
|
|
166
|
-
"description": "Defines passthrough(pt) options of ContextMenuIndicator component.",
|
|
167
|
-
"relatedProp": "",
|
|
168
|
-
"extendedTypes": "MenuIndicatorPassThrough",
|
|
169
|
-
"props": [
|
|
170
|
-
{
|
|
171
|
-
"name": "root",
|
|
172
|
-
"type": "MenuIndicatorPassThroughType<HTMLAttributes<HTMLSpanElement>>",
|
|
173
|
-
"default": "",
|
|
174
|
-
"description": "Used to pass attributes to the root's DOM element."
|
|
175
|
-
}
|
|
176
|
-
],
|
|
177
|
-
"methods": []
|
|
178
|
-
},
|
|
179
|
-
"ContextMenuIndicatorProps": {
|
|
180
|
-
"description": "Defines valid properties in ContextMenuIndicator component.",
|
|
181
|
-
"relatedProp": "",
|
|
182
|
-
"extendedTypes": "BaseComponentProps<ContextMenuIndicatorInstance, unknown, ContextMenuIndicatorPassThrough>",
|
|
183
|
-
"props": [
|
|
184
|
-
{
|
|
185
|
-
"name": "ref",
|
|
186
|
-
"type": "Ref<unknown>",
|
|
187
|
-
"default": "",
|
|
188
|
-
"description": "The reference to the component instance."
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"name": "pIf",
|
|
192
|
-
"type": "boolean",
|
|
193
|
-
"default": "true",
|
|
194
|
-
"description": "Whether the component should be rendered."
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"name": "style",
|
|
198
|
-
"type": "CSSProperties | ((instance?: ContextMenuIndicatorInstance) => CSSProperties)",
|
|
199
|
-
"default": "",
|
|
200
|
-
"description": "The style to apply to the component."
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"name": "className",
|
|
204
|
-
"type": "string | ((instance?: ContextMenuIndicatorInstance) => string)",
|
|
205
|
-
"default": "",
|
|
206
|
-
"description": "The class name to apply to the component."
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"name": "as",
|
|
210
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
211
|
-
"default": "",
|
|
212
|
-
"description": "The component type to render."
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
"name": "asChild",
|
|
216
|
-
"type": "boolean",
|
|
217
|
-
"default": "false",
|
|
218
|
-
"description": "Whether the component should be rendered as a child component."
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"name": "instance",
|
|
222
|
-
"type": "ContextMenuIndicatorInstance",
|
|
223
|
-
"default": "",
|
|
224
|
-
"description": "The instance to pass to the component."
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
"name": "pt",
|
|
228
|
-
"type": "SafeRecord<ContextMenuIndicatorPassThrough>",
|
|
229
|
-
"default": "",
|
|
230
|
-
"description": "The pass-through props to pass to the component."
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
"name": "ptOptions",
|
|
234
|
-
"type": "PassThroughOptions",
|
|
235
|
-
"default": "",
|
|
236
|
-
"description": "The pass-through options to pass to the component."
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
"name": "unstyled",
|
|
240
|
-
"type": "boolean",
|
|
241
|
-
"default": "",
|
|
242
|
-
"description": "Whether the component should be rendered without classes."
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
"name": "dt",
|
|
246
|
-
"type": "unknown",
|
|
247
|
-
"default": "",
|
|
248
|
-
"description": "The design token to use for the component."
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
"name": "styles",
|
|
252
|
-
"type": "StylesOptions<ComponentInstance>",
|
|
253
|
-
"default": "",
|
|
254
|
-
"description": "The styles to use for the component."
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
"name": "render",
|
|
258
|
-
"type": "(instance: ContextMenuIndicatorInstance) => ReactNode",
|
|
259
|
-
"default": "",
|
|
260
|
-
"description": "The render function to render the component with instance access."
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
"name": "children",
|
|
264
|
-
"type": "any",
|
|
265
|
-
"default": "",
|
|
266
|
-
"description": "The children to render.\n\nAccepts `React.ReactNode` for static content or a render function `(instance: I) => React.ReactNode` for instance access.\nTyped as `any` to avoid JSX type errors when used directly in templates."
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
"name": "match",
|
|
270
|
-
"type": "\"checked\" | \"unchecked\" | \"open\" | \"closed\"",
|
|
271
|
-
"default": "",
|
|
272
|
-
"description": "Determines which state the indicator should match to render its content."
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
"name": "[key: string]",
|
|
276
|
-
"type": "any",
|
|
277
|
-
"description": ""
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
"name": "pt-{optionName}-*",
|
|
281
|
-
"type": "-",
|
|
282
|
-
"default": "",
|
|
283
|
-
"description": "Pass through attributes for customizing component parts.",
|
|
284
|
-
"deprecated": false
|
|
285
|
-
}
|
|
286
|
-
],
|
|
287
|
-
"methods": []
|
|
288
|
-
},
|
|
289
|
-
"ContextMenuIndicatorState": {
|
|
290
|
-
"description": "Defines valid state in ContextMenuIndicator component.",
|
|
291
|
-
"relatedProp": "",
|
|
292
|
-
"props": [],
|
|
293
|
-
"methods": []
|
|
294
|
-
},
|
|
295
|
-
"ContextMenuIndicatorExposes": {
|
|
296
|
-
"description": "Defines the methods and properties exposed by ContextMenuIndicator component.",
|
|
297
|
-
"relatedProp": "",
|
|
298
|
-
"props": [
|
|
299
|
-
{
|
|
300
|
-
"name": "contextmenu",
|
|
301
|
-
"type": "ContextMenuRootInstance",
|
|
302
|
-
"default": "",
|
|
303
|
-
"description": "The ContextMenu component instance."
|
|
304
|
-
}
|
|
305
|
-
],
|
|
306
|
-
"methods": []
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
|
-
"types": {
|
|
310
|
-
"ContextMenuIndicatorPassThroughType": {
|
|
311
|
-
"description": "Defines passthrough(pt) options type in ContextMenuIndicator component.",
|
|
312
|
-
"values": "PassThroughType<ContextMenuIndicatorInstance, E>"
|
|
313
|
-
},
|
|
314
|
-
"ContextMenuIndicatorInstance": {
|
|
315
|
-
"description": "Instance of ContextMenuIndicator component.",
|
|
316
|
-
"values": "ComponentInstance<ContextMenuIndicatorProps, ContextMenuIndicatorState, ContextMenuIndicatorExposes>"
|
|
317
|
-
}
|
|
318
|
-
},
|
|
319
|
-
"variables": {}
|
|
320
|
-
}
|
|
321
|
-
},
|
|
322
159
|
{
|
|
323
160
|
"name": "ContextMenuItem",
|
|
324
161
|
"source": "apps/showcase/assets/apidoc/contextmenuitem.json",
|
|
@@ -357,19 +194,19 @@
|
|
|
357
194
|
},
|
|
358
195
|
{
|
|
359
196
|
"name": "style",
|
|
360
|
-
"type": "CSSProperties | ((instance?: ContextMenuItemInstance) => CSSProperties)",
|
|
197
|
+
"type": "CSSProperties | ((instance?: ContextMenuItemInstance) => undefined | CSSProperties)",
|
|
361
198
|
"default": "",
|
|
362
199
|
"description": "The style to apply to the component."
|
|
363
200
|
},
|
|
364
201
|
{
|
|
365
202
|
"name": "className",
|
|
366
|
-
"type": "string | ((instance?: ContextMenuItemInstance) => string)",
|
|
203
|
+
"type": "string | ((instance?: ContextMenuItemInstance) => undefined | string)",
|
|
367
204
|
"default": "",
|
|
368
205
|
"description": "The class name to apply to the component."
|
|
369
206
|
},
|
|
370
207
|
{
|
|
371
208
|
"name": "as",
|
|
372
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
209
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
373
210
|
"default": "",
|
|
374
211
|
"description": "The component type to render."
|
|
375
212
|
},
|
|
@@ -478,25 +315,25 @@
|
|
|
478
315
|
"props": [
|
|
479
316
|
{
|
|
480
317
|
"name": "contextmenu",
|
|
481
|
-
"type": "ContextMenuRootInstance",
|
|
318
|
+
"type": "undefined | null | ContextMenuRootInstance",
|
|
482
319
|
"default": "",
|
|
483
320
|
"description": "Instance of the ContextMenu component."
|
|
484
321
|
},
|
|
485
322
|
{
|
|
486
323
|
"name": "submenu",
|
|
487
|
-
"type": "ContextMenuSubmenuInstance",
|
|
324
|
+
"type": "undefined | null | ContextMenuSubmenuInstance",
|
|
488
325
|
"default": "",
|
|
489
326
|
"description": "Instance of the ContextMenuSubmenu component."
|
|
490
327
|
},
|
|
491
328
|
{
|
|
492
329
|
"name": "portal",
|
|
493
|
-
"type": "ContextMenuPortalInstance",
|
|
330
|
+
"type": "undefined | null | ContextMenuPortalInstance",
|
|
494
331
|
"default": "",
|
|
495
332
|
"description": "Instance of the ContextMenuPortal component."
|
|
496
333
|
},
|
|
497
334
|
{
|
|
498
335
|
"name": "itemId",
|
|
499
|
-
"type": "string",
|
|
336
|
+
"type": "undefined | string",
|
|
500
337
|
"default": "",
|
|
501
338
|
"description": "ID of the item element."
|
|
502
339
|
},
|
|
@@ -568,19 +405,19 @@
|
|
|
568
405
|
},
|
|
569
406
|
{
|
|
570
407
|
"name": "style",
|
|
571
|
-
"type": "CSSProperties | ((instance?: ContextMenuLabelInstance) => CSSProperties)",
|
|
408
|
+
"type": "CSSProperties | ((instance?: ContextMenuLabelInstance) => undefined | CSSProperties)",
|
|
572
409
|
"default": "",
|
|
573
410
|
"description": "The style to apply to the component."
|
|
574
411
|
},
|
|
575
412
|
{
|
|
576
413
|
"name": "className",
|
|
577
|
-
"type": "string | ((instance?: ContextMenuLabelInstance) => string)",
|
|
414
|
+
"type": "string | ((instance?: ContextMenuLabelInstance) => undefined | string)",
|
|
578
415
|
"default": "",
|
|
579
416
|
"description": "The class name to apply to the component."
|
|
580
417
|
},
|
|
581
418
|
{
|
|
582
419
|
"name": "as",
|
|
583
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
420
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
584
421
|
"default": "",
|
|
585
422
|
"description": "The component type to render."
|
|
586
423
|
},
|
|
@@ -665,7 +502,7 @@
|
|
|
665
502
|
"props": [
|
|
666
503
|
{
|
|
667
504
|
"name": "contextmenu",
|
|
668
|
-
"type": "ContextMenuRootInstance",
|
|
505
|
+
"type": "undefined | null | ContextMenuRootInstance",
|
|
669
506
|
"default": "",
|
|
670
507
|
"description": "The ContextMenu component instance."
|
|
671
508
|
}
|
|
@@ -731,19 +568,19 @@
|
|
|
731
568
|
},
|
|
732
569
|
{
|
|
733
570
|
"name": "style",
|
|
734
|
-
"type": "CSSProperties | ((instance?: ContextMenuListInstance) => CSSProperties)",
|
|
571
|
+
"type": "CSSProperties | ((instance?: ContextMenuListInstance) => undefined | CSSProperties)",
|
|
735
572
|
"default": "",
|
|
736
573
|
"description": "The style to apply to the component."
|
|
737
574
|
},
|
|
738
575
|
{
|
|
739
576
|
"name": "className",
|
|
740
|
-
"type": "string | ((instance?: ContextMenuListInstance) => string)",
|
|
577
|
+
"type": "string | ((instance?: ContextMenuListInstance) => undefined | string)",
|
|
741
578
|
"default": "",
|
|
742
579
|
"description": "The class name to apply to the component."
|
|
743
580
|
},
|
|
744
581
|
{
|
|
745
582
|
"name": "as",
|
|
746
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
583
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
747
584
|
"default": "",
|
|
748
585
|
"description": "The component type to render."
|
|
749
586
|
},
|
|
@@ -828,7 +665,7 @@
|
|
|
828
665
|
"props": [
|
|
829
666
|
{
|
|
830
667
|
"name": "contextmenu",
|
|
831
|
-
"type": "ContextMenuRootInstance",
|
|
668
|
+
"type": "undefined | null | ContextMenuRootInstance",
|
|
832
669
|
"default": "",
|
|
833
670
|
"description": "The ContextMenu component instance."
|
|
834
671
|
}
|
|
@@ -888,19 +725,19 @@
|
|
|
888
725
|
},
|
|
889
726
|
{
|
|
890
727
|
"name": "style",
|
|
891
|
-
"type": "CSSProperties | ((instance?: ContextMenuPopupInstance) => CSSProperties)",
|
|
728
|
+
"type": "CSSProperties | ((instance?: ContextMenuPopupInstance) => undefined | CSSProperties)",
|
|
892
729
|
"default": "",
|
|
893
730
|
"description": "The style to apply to the component."
|
|
894
731
|
},
|
|
895
732
|
{
|
|
896
733
|
"name": "className",
|
|
897
|
-
"type": "string | ((instance?: ContextMenuPopupInstance) => string)",
|
|
734
|
+
"type": "string | ((instance?: ContextMenuPopupInstance) => undefined | string)",
|
|
898
735
|
"default": "",
|
|
899
736
|
"description": "The class name to apply to the component."
|
|
900
737
|
},
|
|
901
738
|
{
|
|
902
739
|
"name": "as",
|
|
903
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
740
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
904
741
|
"default": "",
|
|
905
742
|
"description": "The component type to render."
|
|
906
743
|
},
|
|
@@ -991,7 +828,7 @@
|
|
|
991
828
|
"props": [
|
|
992
829
|
{
|
|
993
830
|
"name": "contextmenu",
|
|
994
|
-
"type": "ContextMenuRootInstance",
|
|
831
|
+
"type": "undefined | null | ContextMenuRootInstance",
|
|
995
832
|
"default": "",
|
|
996
833
|
"description": "The ContextMenu component instance."
|
|
997
834
|
}
|
|
@@ -1051,19 +888,19 @@
|
|
|
1051
888
|
},
|
|
1052
889
|
{
|
|
1053
890
|
"name": "style",
|
|
1054
|
-
"type": "(CSSProperties | ((instance?: PortalInstance) => CSSProperties)) & (CSSProperties | ((instance?: ContextMenuPortalInstance) => CSSProperties))",
|
|
891
|
+
"type": "(CSSProperties | ((instance?: PortalInstance | undefined) => CSSProperties | undefined)) & (CSSProperties | ((instance?: ContextMenuPortalInstance | undefined) => CSSProperties | undefined))",
|
|
1055
892
|
"default": "",
|
|
1056
893
|
"description": "The style to apply to the component."
|
|
1057
894
|
},
|
|
1058
895
|
{
|
|
1059
896
|
"name": "className",
|
|
1060
|
-
"type": "(string | ((instance?: PortalInstance) => string)) & (string | ((instance?: ContextMenuPortalInstance) => string))",
|
|
897
|
+
"type": "(string | ((instance?: PortalInstance | undefined) => string | undefined)) & (string | ((instance?: ContextMenuPortalInstance | undefined) => string | undefined))",
|
|
1061
898
|
"default": "",
|
|
1062
899
|
"description": "The class name to apply to the component."
|
|
1063
900
|
},
|
|
1064
901
|
{
|
|
1065
902
|
"name": "as",
|
|
1066
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
903
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
1067
904
|
"default": "",
|
|
1068
905
|
"description": "The component type to render."
|
|
1069
906
|
},
|
|
@@ -1141,7 +978,7 @@
|
|
|
1141
978
|
},
|
|
1142
979
|
{
|
|
1143
980
|
"name": "elementRef",
|
|
1144
|
-
"type": "RefObject<HTMLElement>",
|
|
981
|
+
"type": "RefObject<null | HTMLElement>",
|
|
1145
982
|
"default": "",
|
|
1146
983
|
"description": "The element reference to be rendered as the portal."
|
|
1147
984
|
},
|
|
@@ -1178,7 +1015,7 @@
|
|
|
1178
1015
|
"props": [
|
|
1179
1016
|
{
|
|
1180
1017
|
"name": "contextmenu",
|
|
1181
|
-
"type": "ContextMenuRootInstance",
|
|
1018
|
+
"type": "undefined | null | ContextMenuRootInstance",
|
|
1182
1019
|
"default": "",
|
|
1183
1020
|
"description": "The ContextMenu component instance."
|
|
1184
1021
|
}
|
|
@@ -1238,19 +1075,19 @@
|
|
|
1238
1075
|
},
|
|
1239
1076
|
{
|
|
1240
1077
|
"name": "style",
|
|
1241
|
-
"type": "CSSProperties | ((instance?: ContextMenuPositionerInstance) => CSSProperties)",
|
|
1078
|
+
"type": "CSSProperties | ((instance?: ContextMenuPositionerInstance) => undefined | CSSProperties)",
|
|
1242
1079
|
"default": "",
|
|
1243
1080
|
"description": "The style to apply to the component."
|
|
1244
1081
|
},
|
|
1245
1082
|
{
|
|
1246
1083
|
"name": "className",
|
|
1247
|
-
"type": "string | ((instance?: ContextMenuPositionerInstance) => string)",
|
|
1084
|
+
"type": "string | ((instance?: ContextMenuPositionerInstance) => undefined | string)",
|
|
1248
1085
|
"default": "",
|
|
1249
1086
|
"description": "The class name to apply to the component."
|
|
1250
1087
|
},
|
|
1251
1088
|
{
|
|
1252
1089
|
"name": "as",
|
|
1253
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
1090
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
1254
1091
|
"default": "",
|
|
1255
1092
|
"description": "The component type to render."
|
|
1256
1093
|
},
|
|
@@ -1311,13 +1148,13 @@
|
|
|
1311
1148
|
{
|
|
1312
1149
|
"name": "side",
|
|
1313
1150
|
"type": "SideType",
|
|
1314
|
-
"default": "",
|
|
1151
|
+
"default": "'bottom'",
|
|
1315
1152
|
"description": "The side of the positioner."
|
|
1316
1153
|
},
|
|
1317
1154
|
{
|
|
1318
1155
|
"name": "align",
|
|
1319
1156
|
"type": "AlignType",
|
|
1320
|
-
"default": "",
|
|
1157
|
+
"default": "'center'",
|
|
1321
1158
|
"description": "The align of the positioner."
|
|
1322
1159
|
},
|
|
1323
1160
|
{
|
|
@@ -1329,25 +1166,25 @@
|
|
|
1329
1166
|
{
|
|
1330
1167
|
"name": "alignOffset",
|
|
1331
1168
|
"type": "number",
|
|
1332
|
-
"default": "",
|
|
1169
|
+
"default": "0",
|
|
1333
1170
|
"description": "The align offset of the positioner."
|
|
1334
1171
|
},
|
|
1335
1172
|
{
|
|
1336
1173
|
"name": "flip",
|
|
1337
1174
|
"type": "boolean",
|
|
1338
|
-
"default": "",
|
|
1175
|
+
"default": "true",
|
|
1339
1176
|
"description": "Whether to flip the positioner."
|
|
1340
1177
|
},
|
|
1341
1178
|
{
|
|
1342
1179
|
"name": "shift",
|
|
1343
1180
|
"type": "boolean",
|
|
1344
|
-
"default": "",
|
|
1181
|
+
"default": "true",
|
|
1345
1182
|
"description": "Whether to shift the positioner."
|
|
1346
1183
|
},
|
|
1347
1184
|
{
|
|
1348
1185
|
"name": "hideWhenDetached",
|
|
1349
1186
|
"type": "boolean",
|
|
1350
|
-
"default": "",
|
|
1187
|
+
"default": "false",
|
|
1351
1188
|
"description": "Whether to hide the positioner when detached."
|
|
1352
1189
|
},
|
|
1353
1190
|
{
|
|
@@ -1376,7 +1213,7 @@
|
|
|
1376
1213
|
},
|
|
1377
1214
|
{
|
|
1378
1215
|
"name": "arrow",
|
|
1379
|
-
"type": "HTMLDivElement",
|
|
1216
|
+
"type": "null | HTMLDivElement",
|
|
1380
1217
|
"default": "",
|
|
1381
1218
|
"description": "The arrow element."
|
|
1382
1219
|
},
|
|
@@ -1425,7 +1262,7 @@
|
|
|
1425
1262
|
"props": [
|
|
1426
1263
|
{
|
|
1427
1264
|
"name": "contextmenu",
|
|
1428
|
-
"type": "ContextMenuRootInstance",
|
|
1265
|
+
"type": "undefined | null | ContextMenuRootInstance",
|
|
1429
1266
|
"default": "",
|
|
1430
1267
|
"description": "The ContextMenu component instance."
|
|
1431
1268
|
}
|
|
@@ -1447,300 +1284,93 @@
|
|
|
1447
1284
|
}
|
|
1448
1285
|
},
|
|
1449
1286
|
{
|
|
1450
|
-
"name": "
|
|
1451
|
-
"source": "apps/showcase/assets/apidoc/
|
|
1287
|
+
"name": "ContextMenuRoot",
|
|
1288
|
+
"source": "apps/showcase/assets/apidoc/contextmenuroot.json",
|
|
1452
1289
|
"data": {
|
|
1453
|
-
"description": "
|
|
1290
|
+
"description": "ContextMenu ContextMenu uses Menu component and displays an overlay menu to display actions related to a trigger.",
|
|
1454
1291
|
"interfaces": {
|
|
1455
|
-
"
|
|
1456
|
-
"description": "
|
|
1292
|
+
"ContextMenuRootPassThrough": {
|
|
1293
|
+
"description": "Defines passthrough(pt) options of ContextMenu component.",
|
|
1457
1294
|
"relatedProp": "",
|
|
1295
|
+
"extendedTypes": "MenuRootPassThrough",
|
|
1458
1296
|
"props": [
|
|
1459
1297
|
{
|
|
1460
|
-
"name": "
|
|
1461
|
-
"type": "
|
|
1462
|
-
"default": ""
|
|
1298
|
+
"name": "root",
|
|
1299
|
+
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLDivElement>>",
|
|
1300
|
+
"default": "",
|
|
1301
|
+
"description": "Used to pass attributes to the root's DOM element."
|
|
1463
1302
|
},
|
|
1464
1303
|
{
|
|
1465
|
-
"name": "
|
|
1466
|
-
"type": "
|
|
1467
|
-
"default": ""
|
|
1304
|
+
"name": "list",
|
|
1305
|
+
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLDivElement>>",
|
|
1306
|
+
"default": "",
|
|
1307
|
+
"description": "Used to pass attributes to the list's DOM element."
|
|
1468
1308
|
},
|
|
1469
1309
|
{
|
|
1470
|
-
"name": "
|
|
1471
|
-
"type": "
|
|
1472
|
-
"default": ""
|
|
1473
|
-
}
|
|
1474
|
-
],
|
|
1475
|
-
"methods": []
|
|
1476
|
-
},
|
|
1477
|
-
"ContextMenuRadioGroupPassThrough": {
|
|
1478
|
-
"description": "Defines passthrough(pt) options of ContextMenuRadioGroup component.",
|
|
1479
|
-
"relatedProp": "",
|
|
1480
|
-
"props": [],
|
|
1481
|
-
"methods": []
|
|
1482
|
-
},
|
|
1483
|
-
"ContextMenuRadioGroupValueChangeEvent": {
|
|
1484
|
-
"description": "Event object for the onValueChange callback.",
|
|
1485
|
-
"relatedProp": "",
|
|
1486
|
-
"props": [
|
|
1487
|
-
{
|
|
1488
|
-
"name": "value",
|
|
1489
|
-
"type": "unknown",
|
|
1310
|
+
"name": "item",
|
|
1311
|
+
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLDivElement>>",
|
|
1490
1312
|
"default": "",
|
|
1491
|
-
"description": "
|
|
1492
|
-
}
|
|
1493
|
-
],
|
|
1494
|
-
"methods": []
|
|
1495
|
-
},
|
|
1496
|
-
"ContextMenuRadioGroupProps": {
|
|
1497
|
-
"description": "Defines valid properties in ContextMenuRadioGroup component.",
|
|
1498
|
-
"relatedProp": "",
|
|
1499
|
-
"extendedTypes": "BaseComponentProps<ContextMenuRadioGroupInstance, unknown, ContextMenuRadioGroupPassThrough>",
|
|
1500
|
-
"props": [
|
|
1313
|
+
"description": "Used to pass attributes to the item's DOM element."
|
|
1314
|
+
},
|
|
1501
1315
|
{
|
|
1502
|
-
"name": "
|
|
1503
|
-
"type": "
|
|
1316
|
+
"name": "label",
|
|
1317
|
+
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLDivElement>>",
|
|
1504
1318
|
"default": "",
|
|
1505
|
-
"description": "
|
|
1319
|
+
"description": "Used to pass attributes to the label's DOM element."
|
|
1506
1320
|
},
|
|
1507
1321
|
{
|
|
1508
|
-
"name": "
|
|
1509
|
-
"type": "
|
|
1510
|
-
"default": "
|
|
1511
|
-
"description": "
|
|
1322
|
+
"name": "sub",
|
|
1323
|
+
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLDivElement>>",
|
|
1324
|
+
"default": "",
|
|
1325
|
+
"description": "Used to pass attributes to the submenu's DOM element."
|
|
1512
1326
|
},
|
|
1513
1327
|
{
|
|
1514
|
-
"name": "
|
|
1515
|
-
"type": "
|
|
1328
|
+
"name": "trigger",
|
|
1329
|
+
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLButtonElement>>",
|
|
1516
1330
|
"default": "",
|
|
1517
|
-
"description": "
|
|
1331
|
+
"description": "Used to pass attributes to the trigger's DOM element."
|
|
1518
1332
|
},
|
|
1519
1333
|
{
|
|
1520
|
-
"name": "
|
|
1521
|
-
"type": "
|
|
1334
|
+
"name": "subtrigger",
|
|
1335
|
+
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLDivElement>>",
|
|
1522
1336
|
"default": "",
|
|
1523
|
-
"description": "
|
|
1337
|
+
"description": "Used to pass attributes to the subtrigger's DOM element."
|
|
1524
1338
|
},
|
|
1525
1339
|
{
|
|
1526
|
-
"name": "
|
|
1527
|
-
"type": "
|
|
1340
|
+
"name": "checkboxItemIndicator",
|
|
1341
|
+
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLSpanElement>>",
|
|
1528
1342
|
"default": "",
|
|
1529
|
-
"description": "
|
|
1343
|
+
"description": "Used to pass attributes to the checkbox item indicator's DOM element."
|
|
1530
1344
|
},
|
|
1531
1345
|
{
|
|
1532
|
-
"name": "
|
|
1533
|
-
"type": "
|
|
1534
|
-
"default": "
|
|
1535
|
-
"description": "
|
|
1346
|
+
"name": "radioItemIndicator",
|
|
1347
|
+
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLSpanElement>>",
|
|
1348
|
+
"default": "",
|
|
1349
|
+
"description": "Used to pass attributes to the radio item indicator's DOM element."
|
|
1536
1350
|
},
|
|
1537
1351
|
{
|
|
1538
|
-
"name": "
|
|
1539
|
-
"type": "
|
|
1352
|
+
"name": "submenuIndicator",
|
|
1353
|
+
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLSpanElement>>",
|
|
1540
1354
|
"default": "",
|
|
1541
|
-
"description": "
|
|
1355
|
+
"description": "Used to pass attributes to the submenu indicator's DOM element."
|
|
1542
1356
|
},
|
|
1543
1357
|
{
|
|
1544
|
-
"name": "
|
|
1545
|
-
"type": "
|
|
1358
|
+
"name": "separator",
|
|
1359
|
+
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLDivElement>>",
|
|
1546
1360
|
"default": "",
|
|
1547
|
-
"description": "
|
|
1361
|
+
"description": "Used to pass attributes to the separator's DOM element."
|
|
1548
1362
|
},
|
|
1549
1363
|
{
|
|
1550
|
-
"name": "
|
|
1551
|
-
"type": "
|
|
1364
|
+
"name": "popup",
|
|
1365
|
+
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLDivElement>>",
|
|
1552
1366
|
"default": "",
|
|
1553
|
-
"description": "
|
|
1367
|
+
"description": "Used to pass attributes to the popup's DOM element."
|
|
1554
1368
|
},
|
|
1555
1369
|
{
|
|
1556
|
-
"name": "
|
|
1557
|
-
"type": "
|
|
1370
|
+
"name": "arrow",
|
|
1371
|
+
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLDivElement>>",
|
|
1558
1372
|
"default": "",
|
|
1559
|
-
"description": "
|
|
1560
|
-
},
|
|
1561
|
-
{
|
|
1562
|
-
"name": "dt",
|
|
1563
|
-
"type": "unknown",
|
|
1564
|
-
"default": "",
|
|
1565
|
-
"description": "The design token to use for the component."
|
|
1566
|
-
},
|
|
1567
|
-
{
|
|
1568
|
-
"name": "styles",
|
|
1569
|
-
"type": "StylesOptions<ComponentInstance>",
|
|
1570
|
-
"default": "",
|
|
1571
|
-
"description": "The styles to use for the component."
|
|
1572
|
-
},
|
|
1573
|
-
{
|
|
1574
|
-
"name": "render",
|
|
1575
|
-
"type": "(instance: ContextMenuRadioGroupInstance) => ReactNode",
|
|
1576
|
-
"default": "",
|
|
1577
|
-
"description": "The render function to render the component with instance access."
|
|
1578
|
-
},
|
|
1579
|
-
{
|
|
1580
|
-
"name": "children",
|
|
1581
|
-
"type": "any",
|
|
1582
|
-
"default": "",
|
|
1583
|
-
"description": "The children to render.\n\nAccepts `React.ReactNode` for static content or a render function `(instance: I) => React.ReactNode` for instance access.\nTyped as `any` to avoid JSX type errors when used directly in templates."
|
|
1584
|
-
},
|
|
1585
|
-
{
|
|
1586
|
-
"name": "value",
|
|
1587
|
-
"type": "unknown",
|
|
1588
|
-
"default": "",
|
|
1589
|
-
"description": "Value of the selected radio item."
|
|
1590
|
-
},
|
|
1591
|
-
{
|
|
1592
|
-
"name": "defaultValue",
|
|
1593
|
-
"type": "unknown",
|
|
1594
|
-
"default": "",
|
|
1595
|
-
"description": "Default value of the selected radio item."
|
|
1596
|
-
},
|
|
1597
|
-
{
|
|
1598
|
-
"name": "name",
|
|
1599
|
-
"type": "string",
|
|
1600
|
-
"default": "",
|
|
1601
|
-
"description": "Name for the radio group."
|
|
1602
|
-
},
|
|
1603
|
-
{
|
|
1604
|
-
"name": "onValueChange",
|
|
1605
|
-
"type": "(event: ContextMenuRadioGroupValueChangeEvent) => void",
|
|
1606
|
-
"default": "",
|
|
1607
|
-
"description": "Callback to invoke when value changes."
|
|
1608
|
-
},
|
|
1609
|
-
{
|
|
1610
|
-
"name": "[key: string]",
|
|
1611
|
-
"type": "any",
|
|
1612
|
-
"description": ""
|
|
1613
|
-
}
|
|
1614
|
-
],
|
|
1615
|
-
"methods": []
|
|
1616
|
-
},
|
|
1617
|
-
"ContextMenuRadioGroupState": {
|
|
1618
|
-
"description": "Defines valid state in ContextMenuRadioGroup component.",
|
|
1619
|
-
"relatedProp": "",
|
|
1620
|
-
"props": [],
|
|
1621
|
-
"methods": []
|
|
1622
|
-
},
|
|
1623
|
-
"ContextMenuRadioGroupExposes": {
|
|
1624
|
-
"description": "Defines the methods and properties exposed by ContextMenuRadioGroup component.",
|
|
1625
|
-
"relatedProp": "",
|
|
1626
|
-
"props": [
|
|
1627
|
-
{
|
|
1628
|
-
"name": "contextmenu",
|
|
1629
|
-
"type": "ContextMenuRootInstance",
|
|
1630
|
-
"default": "",
|
|
1631
|
-
"description": "The ContextMenu component instance."
|
|
1632
|
-
},
|
|
1633
|
-
{
|
|
1634
|
-
"name": "context",
|
|
1635
|
-
"type": "ContextMenuRadioGroupContextInterface",
|
|
1636
|
-
"default": "",
|
|
1637
|
-
"description": "Context value for the radio group containing the current selection state, change handler, and optional group name."
|
|
1638
|
-
}
|
|
1639
|
-
],
|
|
1640
|
-
"methods": []
|
|
1641
|
-
}
|
|
1642
|
-
},
|
|
1643
|
-
"types": {
|
|
1644
|
-
"ContextMenuRadioGroupPassThroughType": {
|
|
1645
|
-
"description": "Defines passthrough(pt) options type in ContextMenuRadioGroup component.",
|
|
1646
|
-
"values": "PassThroughType<ContextMenuRadioGroupInstance, E>"
|
|
1647
|
-
},
|
|
1648
|
-
"ContextMenuRadioGroupInstance": {
|
|
1649
|
-
"description": "Instance of ContextMenuRadioGroup component.",
|
|
1650
|
-
"values": "ComponentInstance<ContextMenuRadioGroupProps, ContextMenuRadioGroupState, ContextMenuRadioGroupExposes>"
|
|
1651
|
-
}
|
|
1652
|
-
},
|
|
1653
|
-
"variables": {}
|
|
1654
|
-
}
|
|
1655
|
-
},
|
|
1656
|
-
{
|
|
1657
|
-
"name": "ContextMenuRoot",
|
|
1658
|
-
"source": "apps/showcase/assets/apidoc/contextmenuroot.json",
|
|
1659
|
-
"data": {
|
|
1660
|
-
"description": "ContextMenu ContextMenu uses Menu component and displays an overlay menu to display actions related to a trigger.",
|
|
1661
|
-
"interfaces": {
|
|
1662
|
-
"ContextMenuRootPassThrough": {
|
|
1663
|
-
"description": "Defines passthrough(pt) options of ContextMenu component.",
|
|
1664
|
-
"relatedProp": "",
|
|
1665
|
-
"extendedTypes": "MenuRootPassThrough",
|
|
1666
|
-
"props": [
|
|
1667
|
-
{
|
|
1668
|
-
"name": "root",
|
|
1669
|
-
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLDivElement>>",
|
|
1670
|
-
"default": "",
|
|
1671
|
-
"description": "Used to pass attributes to the root's DOM element."
|
|
1672
|
-
},
|
|
1673
|
-
{
|
|
1674
|
-
"name": "list",
|
|
1675
|
-
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLDivElement>>",
|
|
1676
|
-
"default": "",
|
|
1677
|
-
"description": "Used to pass attributes to the list's DOM element."
|
|
1678
|
-
},
|
|
1679
|
-
{
|
|
1680
|
-
"name": "item",
|
|
1681
|
-
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLDivElement>>",
|
|
1682
|
-
"default": "",
|
|
1683
|
-
"description": "Used to pass attributes to the item's DOM element."
|
|
1684
|
-
},
|
|
1685
|
-
{
|
|
1686
|
-
"name": "label",
|
|
1687
|
-
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLDivElement>>",
|
|
1688
|
-
"default": "",
|
|
1689
|
-
"description": "Used to pass attributes to the label's DOM element."
|
|
1690
|
-
},
|
|
1691
|
-
{
|
|
1692
|
-
"name": "sub",
|
|
1693
|
-
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLDivElement>>",
|
|
1694
|
-
"default": "",
|
|
1695
|
-
"description": "Used to pass attributes to the submenu's DOM element."
|
|
1696
|
-
},
|
|
1697
|
-
{
|
|
1698
|
-
"name": "trigger",
|
|
1699
|
-
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLButtonElement>>",
|
|
1700
|
-
"default": "",
|
|
1701
|
-
"description": "Used to pass attributes to the trigger's DOM element."
|
|
1702
|
-
},
|
|
1703
|
-
{
|
|
1704
|
-
"name": "subtrigger",
|
|
1705
|
-
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLDivElement>>",
|
|
1706
|
-
"default": "",
|
|
1707
|
-
"description": "Used to pass attributes to the subtrigger's DOM element."
|
|
1708
|
-
},
|
|
1709
|
-
{
|
|
1710
|
-
"name": "checkboxItemIndicator",
|
|
1711
|
-
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLSpanElement>>",
|
|
1712
|
-
"default": "",
|
|
1713
|
-
"description": "Used to pass attributes to the checkbox item indicator's DOM element."
|
|
1714
|
-
},
|
|
1715
|
-
{
|
|
1716
|
-
"name": "radioItemIndicator",
|
|
1717
|
-
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLSpanElement>>",
|
|
1718
|
-
"default": "",
|
|
1719
|
-
"description": "Used to pass attributes to the radio item indicator's DOM element."
|
|
1720
|
-
},
|
|
1721
|
-
{
|
|
1722
|
-
"name": "submenuIndicator",
|
|
1723
|
-
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLSpanElement>>",
|
|
1724
|
-
"default": "",
|
|
1725
|
-
"description": "Used to pass attributes to the submenu indicator's DOM element."
|
|
1726
|
-
},
|
|
1727
|
-
{
|
|
1728
|
-
"name": "separator",
|
|
1729
|
-
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLDivElement>>",
|
|
1730
|
-
"default": "",
|
|
1731
|
-
"description": "Used to pass attributes to the separator's DOM element."
|
|
1732
|
-
},
|
|
1733
|
-
{
|
|
1734
|
-
"name": "popup",
|
|
1735
|
-
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLDivElement>>",
|
|
1736
|
-
"default": "",
|
|
1737
|
-
"description": "Used to pass attributes to the popup's DOM element."
|
|
1738
|
-
},
|
|
1739
|
-
{
|
|
1740
|
-
"name": "arrow",
|
|
1741
|
-
"type": "MenuRootPassThroughType<HTMLAttributes<HTMLDivElement>>",
|
|
1742
|
-
"default": "",
|
|
1743
|
-
"description": "Used to pass attributes to the arrow's DOM element."
|
|
1373
|
+
"description": "Used to pass attributes to the arrow's DOM element."
|
|
1744
1374
|
},
|
|
1745
1375
|
{
|
|
1746
1376
|
"name": "positioner",
|
|
@@ -1808,19 +1438,19 @@
|
|
|
1808
1438
|
},
|
|
1809
1439
|
{
|
|
1810
1440
|
"name": "style",
|
|
1811
|
-
"type": "CSSProperties | ((instance?: ContextMenuRootInstance) => CSSProperties)",
|
|
1441
|
+
"type": "CSSProperties | ((instance?: ContextMenuRootInstance) => undefined | CSSProperties)",
|
|
1812
1442
|
"default": "",
|
|
1813
1443
|
"description": "The style to apply to the component."
|
|
1814
1444
|
},
|
|
1815
1445
|
{
|
|
1816
1446
|
"name": "className",
|
|
1817
|
-
"type": "string | ((instance?: ContextMenuRootInstance) => string)",
|
|
1447
|
+
"type": "string | ((instance?: ContextMenuRootInstance) => undefined | string)",
|
|
1818
1448
|
"default": "",
|
|
1819
1449
|
"description": "The class name to apply to the component."
|
|
1820
1450
|
},
|
|
1821
1451
|
{
|
|
1822
1452
|
"name": "as",
|
|
1823
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
1453
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
1824
1454
|
"default": "",
|
|
1825
1455
|
"description": "The component type to render."
|
|
1826
1456
|
},
|
|
@@ -2148,19 +1778,19 @@
|
|
|
2148
1778
|
},
|
|
2149
1779
|
{
|
|
2150
1780
|
"name": "style",
|
|
2151
|
-
"type": "CSSProperties | ((instance?: ContextMenuSeparatorInstance) => CSSProperties)",
|
|
1781
|
+
"type": "CSSProperties | ((instance?: ContextMenuSeparatorInstance) => undefined | CSSProperties)",
|
|
2152
1782
|
"default": "",
|
|
2153
1783
|
"description": "The style to apply to the component."
|
|
2154
1784
|
},
|
|
2155
1785
|
{
|
|
2156
1786
|
"name": "className",
|
|
2157
|
-
"type": "string | ((instance?: ContextMenuSeparatorInstance) => string)",
|
|
1787
|
+
"type": "string | ((instance?: ContextMenuSeparatorInstance) => undefined | string)",
|
|
2158
1788
|
"default": "",
|
|
2159
1789
|
"description": "The class name to apply to the component."
|
|
2160
1790
|
},
|
|
2161
1791
|
{
|
|
2162
1792
|
"name": "as",
|
|
2163
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
1793
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
2164
1794
|
"default": "",
|
|
2165
1795
|
"description": "The component type to render."
|
|
2166
1796
|
},
|
|
@@ -2245,7 +1875,7 @@
|
|
|
2245
1875
|
"props": [
|
|
2246
1876
|
{
|
|
2247
1877
|
"name": "contextmenu",
|
|
2248
|
-
"type": "ContextMenuRootInstance",
|
|
1878
|
+
"type": "undefined | null | ContextMenuRootInstance",
|
|
2249
1879
|
"default": "",
|
|
2250
1880
|
"description": "The ContextMenu component instance."
|
|
2251
1881
|
}
|
|
@@ -2325,19 +1955,19 @@
|
|
|
2325
1955
|
},
|
|
2326
1956
|
{
|
|
2327
1957
|
"name": "style",
|
|
2328
|
-
"type": "CSSProperties | ((instance?: ContextMenuSubmenuInstance) => CSSProperties)",
|
|
1958
|
+
"type": "CSSProperties | ((instance?: ContextMenuSubmenuInstance) => undefined | CSSProperties)",
|
|
2329
1959
|
"default": "",
|
|
2330
1960
|
"description": "The style to apply to the component."
|
|
2331
1961
|
},
|
|
2332
1962
|
{
|
|
2333
1963
|
"name": "className",
|
|
2334
|
-
"type": "string | ((instance?: ContextMenuSubmenuInstance) => string)",
|
|
1964
|
+
"type": "string | ((instance?: ContextMenuSubmenuInstance) => undefined | string)",
|
|
2335
1965
|
"default": "",
|
|
2336
1966
|
"description": "The class name to apply to the component."
|
|
2337
1967
|
},
|
|
2338
1968
|
{
|
|
2339
1969
|
"name": "as",
|
|
2340
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
1970
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
2341
1971
|
"default": "",
|
|
2342
1972
|
"description": "The component type to render."
|
|
2343
1973
|
},
|
|
@@ -2448,7 +2078,7 @@
|
|
|
2448
2078
|
"props": [
|
|
2449
2079
|
{
|
|
2450
2080
|
"name": "contextmenu",
|
|
2451
|
-
"type": "ContextMenuRootInstance",
|
|
2081
|
+
"type": "undefined | null | ContextMenuRootInstance",
|
|
2452
2082
|
"default": "",
|
|
2453
2083
|
"description": "The ContextMenu component instance."
|
|
2454
2084
|
},
|
|
@@ -2460,7 +2090,7 @@
|
|
|
2460
2090
|
},
|
|
2461
2091
|
{
|
|
2462
2092
|
"name": "subtriggerProps",
|
|
2463
|
-
"type": "{ ref: (node: HTMLElement) => void }",
|
|
2093
|
+
"type": "{ ref: (node: null | HTMLElement) => void }",
|
|
2464
2094
|
"default": "",
|
|
2465
2095
|
"description": "Props for the subtrigger element."
|
|
2466
2096
|
},
|
|
@@ -2472,7 +2102,7 @@
|
|
|
2472
2102
|
},
|
|
2473
2103
|
{
|
|
2474
2104
|
"name": "listProps",
|
|
2475
|
-
"type": "{ ref: (node: HTMLDivElement) => void; data-scope: \"menu\"; data-part: \"list\" }",
|
|
2105
|
+
"type": "{ ref: (node: null | HTMLDivElement) => void; data-scope: \"menu\"; data-part: \"list\" }",
|
|
2476
2106
|
"default": "",
|
|
2477
2107
|
"description": "Props for the list element."
|
|
2478
2108
|
},
|
|
@@ -2512,29 +2142,29 @@
|
|
|
2512
2142
|
}
|
|
2513
2143
|
},
|
|
2514
2144
|
{
|
|
2515
|
-
"name": "
|
|
2516
|
-
"source": "apps/showcase/assets/apidoc/
|
|
2145
|
+
"name": "ContextMenuSubmenuTrigger",
|
|
2146
|
+
"source": "apps/showcase/assets/apidoc/contextmenusubmenutrigger.json",
|
|
2517
2147
|
"data": {
|
|
2518
|
-
"description": "
|
|
2148
|
+
"description": "ContextMenuSubmenuTrigger is a component that displays the trigger for a submenu item.",
|
|
2519
2149
|
"interfaces": {
|
|
2520
|
-
"
|
|
2521
|
-
"description": "Defines passthrough(pt) options of
|
|
2150
|
+
"ContextMenuSubmenuTriggerPassThrough": {
|
|
2151
|
+
"description": "Defines passthrough(pt) options of ContextMenuSubmenuTrigger component.",
|
|
2522
2152
|
"relatedProp": "",
|
|
2523
|
-
"extendedTypes": "
|
|
2153
|
+
"extendedTypes": "MenuSubmenuTriggerPassThrough",
|
|
2524
2154
|
"props": [
|
|
2525
2155
|
{
|
|
2526
2156
|
"name": "root",
|
|
2527
|
-
"type": "
|
|
2157
|
+
"type": "MenuSubmenuTriggerPassThroughType<HTMLAttributes<HTMLDivElement>>",
|
|
2528
2158
|
"default": "",
|
|
2529
2159
|
"description": "Used to pass attributes to the root's DOM element."
|
|
2530
2160
|
}
|
|
2531
2161
|
],
|
|
2532
2162
|
"methods": []
|
|
2533
2163
|
},
|
|
2534
|
-
"
|
|
2535
|
-
"description": "Defines valid properties in
|
|
2164
|
+
"ContextMenuSubmenuTriggerProps": {
|
|
2165
|
+
"description": "Defines valid properties in ContextMenuSubmenuTrigger component.",
|
|
2536
2166
|
"relatedProp": "",
|
|
2537
|
-
"extendedTypes": "BaseComponentProps<
|
|
2167
|
+
"extendedTypes": "BaseComponentProps<ContextMenuSubmenuTriggerInstance, unknown, ContextMenuSubmenuTriggerPassThrough>",
|
|
2538
2168
|
"props": [
|
|
2539
2169
|
{
|
|
2540
2170
|
"name": "ref",
|
|
@@ -2550,19 +2180,19 @@
|
|
|
2550
2180
|
},
|
|
2551
2181
|
{
|
|
2552
2182
|
"name": "style",
|
|
2553
|
-
"type": "CSSProperties | ((instance?:
|
|
2183
|
+
"type": "CSSProperties | ((instance?: ContextMenuSubmenuTriggerInstance) => undefined | CSSProperties)",
|
|
2554
2184
|
"default": "",
|
|
2555
2185
|
"description": "The style to apply to the component."
|
|
2556
2186
|
},
|
|
2557
2187
|
{
|
|
2558
2188
|
"name": "className",
|
|
2559
|
-
"type": "string | ((instance?:
|
|
2189
|
+
"type": "string | ((instance?: ContextMenuSubmenuTriggerInstance) => undefined | string)",
|
|
2560
2190
|
"default": "",
|
|
2561
2191
|
"description": "The class name to apply to the component."
|
|
2562
2192
|
},
|
|
2563
2193
|
{
|
|
2564
2194
|
"name": "as",
|
|
2565
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
2195
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
2566
2196
|
"default": "",
|
|
2567
2197
|
"description": "The component type to render."
|
|
2568
2198
|
},
|
|
@@ -2574,13 +2204,13 @@
|
|
|
2574
2204
|
},
|
|
2575
2205
|
{
|
|
2576
2206
|
"name": "instance",
|
|
2577
|
-
"type": "
|
|
2207
|
+
"type": "ContextMenuSubmenuTriggerInstance",
|
|
2578
2208
|
"default": "",
|
|
2579
2209
|
"description": "The instance to pass to the component."
|
|
2580
2210
|
},
|
|
2581
2211
|
{
|
|
2582
2212
|
"name": "pt",
|
|
2583
|
-
"type": "SafeRecord<
|
|
2213
|
+
"type": "SafeRecord<ContextMenuSubmenuTriggerPassThrough>",
|
|
2584
2214
|
"default": "",
|
|
2585
2215
|
"description": "The pass-through props to pass to the component."
|
|
2586
2216
|
},
|
|
@@ -2610,7 +2240,7 @@
|
|
|
2610
2240
|
},
|
|
2611
2241
|
{
|
|
2612
2242
|
"name": "render",
|
|
2613
|
-
"type": "(instance:
|
|
2243
|
+
"type": "(instance: ContextMenuSubmenuTriggerInstance) => ReactNode",
|
|
2614
2244
|
"default": "",
|
|
2615
2245
|
"description": "The render function to render the component with instance access."
|
|
2616
2246
|
},
|
|
@@ -2620,12 +2250,6 @@
|
|
|
2620
2250
|
"default": "",
|
|
2621
2251
|
"description": "The children to render.\n\nAccepts `React.ReactNode` for static content or a render function `(instance: I) => React.ReactNode` for instance access.\nTyped as `any` to avoid JSX type errors when used directly in templates."
|
|
2622
2252
|
},
|
|
2623
|
-
{
|
|
2624
|
-
"name": "motionProps",
|
|
2625
|
-
"type": "useMotionProps",
|
|
2626
|
-
"default": "",
|
|
2627
|
-
"description": "Used to apply motion to the subpopup element. It accepts the same properties as useMotion hook."
|
|
2628
|
-
},
|
|
2629
2253
|
{
|
|
2630
2254
|
"name": "[key: string]",
|
|
2631
2255
|
"type": "any",
|
|
@@ -2641,69 +2265,62 @@
|
|
|
2641
2265
|
],
|
|
2642
2266
|
"methods": []
|
|
2643
2267
|
},
|
|
2644
|
-
"
|
|
2645
|
-
"description": "Defines valid state in
|
|
2268
|
+
"ContextMenuSubmenuTriggerState": {
|
|
2269
|
+
"description": "Defines valid state in ContextMenuSubmenuTrigger component.",
|
|
2646
2270
|
"relatedProp": "",
|
|
2647
2271
|
"props": [],
|
|
2648
2272
|
"methods": []
|
|
2649
2273
|
},
|
|
2650
|
-
"
|
|
2651
|
-
"description": "Defines the methods and properties exposed by
|
|
2274
|
+
"ContextMenuSubmenuTriggerExposes": {
|
|
2275
|
+
"description": "Defines the methods and properties exposed by ContextMenuSubmenuTrigger component.",
|
|
2652
2276
|
"relatedProp": "",
|
|
2653
2277
|
"props": [
|
|
2654
2278
|
{
|
|
2655
2279
|
"name": "contextmenu",
|
|
2656
|
-
"type": "ContextMenuRootInstance",
|
|
2280
|
+
"type": "undefined | null | ContextMenuRootInstance",
|
|
2657
2281
|
"default": "",
|
|
2658
2282
|
"description": "The ContextMenu component instance."
|
|
2659
|
-
},
|
|
2660
|
-
{
|
|
2661
|
-
"name": "subcontextmenu",
|
|
2662
|
-
"type": "ContextMenuSubInstance",
|
|
2663
|
-
"default": "",
|
|
2664
|
-
"description": "The ContextMenuSub component instance."
|
|
2665
2283
|
}
|
|
2666
2284
|
],
|
|
2667
2285
|
"methods": []
|
|
2668
2286
|
}
|
|
2669
2287
|
},
|
|
2670
2288
|
"types": {
|
|
2671
|
-
"
|
|
2672
|
-
"description": "Defines passthrough(pt) options type in
|
|
2673
|
-
"values": "PassThroughType<
|
|
2289
|
+
"ContextMenuSubmenuTriggerPassThroughType": {
|
|
2290
|
+
"description": "Defines passthrough(pt) options type in ContextMenuSubmenuTrigger component.",
|
|
2291
|
+
"values": "PassThroughType<ContextMenuSubmenuTriggerInstance, E>"
|
|
2674
2292
|
},
|
|
2675
|
-
"
|
|
2676
|
-
"description": "Instance of
|
|
2677
|
-
"values": "ComponentInstance<
|
|
2293
|
+
"ContextMenuSubmenuTriggerInstance": {
|
|
2294
|
+
"description": "Instance of ContextMenuSubmenuTrigger component.",
|
|
2295
|
+
"values": "ComponentInstance<ContextMenuSubmenuTriggerProps, ContextMenuSubmenuTriggerState, ContextMenuSubmenuTriggerExposes>"
|
|
2678
2296
|
}
|
|
2679
2297
|
},
|
|
2680
2298
|
"variables": {}
|
|
2681
2299
|
}
|
|
2682
2300
|
},
|
|
2683
2301
|
{
|
|
2684
|
-
"name": "
|
|
2685
|
-
"source": "apps/showcase/assets/apidoc/
|
|
2302
|
+
"name": "ContextMenuTrigger",
|
|
2303
|
+
"source": "apps/showcase/assets/apidoc/contextmenutrigger.json",
|
|
2686
2304
|
"data": {
|
|
2687
|
-
"description": "
|
|
2305
|
+
"description": "ContextMenuTrigger is a component that displays trigger.",
|
|
2688
2306
|
"interfaces": {
|
|
2689
|
-
"
|
|
2690
|
-
"description": "Defines passthrough(pt) options of
|
|
2307
|
+
"ContextMenuTriggerPassThrough": {
|
|
2308
|
+
"description": "Defines passthrough(pt) options of ContextMenuTrigger component.",
|
|
2691
2309
|
"relatedProp": "",
|
|
2692
|
-
"extendedTypes": "MenuSubPortalPassThrough",
|
|
2693
2310
|
"props": [
|
|
2694
2311
|
{
|
|
2695
2312
|
"name": "root",
|
|
2696
|
-
"type": "
|
|
2313
|
+
"type": "ContextMenuTriggerPassThroughType<HTMLAttributes<HTMLDivElement>>",
|
|
2697
2314
|
"default": "",
|
|
2698
2315
|
"description": "Used to pass attributes to the root's DOM element."
|
|
2699
2316
|
}
|
|
2700
2317
|
],
|
|
2701
2318
|
"methods": []
|
|
2702
2319
|
},
|
|
2703
|
-
"
|
|
2704
|
-
"description": "Defines valid properties in
|
|
2320
|
+
"ContextMenuTriggerProps": {
|
|
2321
|
+
"description": "Defines valid properties in ContextMenuTrigger component.",
|
|
2705
2322
|
"relatedProp": "",
|
|
2706
|
-
"extendedTypes": "BaseComponentProps<
|
|
2323
|
+
"extendedTypes": "BaseComponentProps<ContextMenuTriggerInstance, unknown, ContextMenuTriggerPassThrough>",
|
|
2707
2324
|
"props": [
|
|
2708
2325
|
{
|
|
2709
2326
|
"name": "ref",
|
|
@@ -2719,19 +2336,19 @@
|
|
|
2719
2336
|
},
|
|
2720
2337
|
{
|
|
2721
2338
|
"name": "style",
|
|
2722
|
-
"type": "
|
|
2339
|
+
"type": "CSSProperties | ((instance?: ContextMenuTriggerInstance) => undefined | CSSProperties)",
|
|
2723
2340
|
"default": "",
|
|
2724
2341
|
"description": "The style to apply to the component."
|
|
2725
2342
|
},
|
|
2726
2343
|
{
|
|
2727
2344
|
"name": "className",
|
|
2728
|
-
"type": "
|
|
2345
|
+
"type": "string | ((instance?: ContextMenuTriggerInstance) => undefined | string)",
|
|
2729
2346
|
"default": "",
|
|
2730
2347
|
"description": "The class name to apply to the component."
|
|
2731
2348
|
},
|
|
2732
2349
|
{
|
|
2733
2350
|
"name": "as",
|
|
2734
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
2351
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
2735
2352
|
"default": "",
|
|
2736
2353
|
"description": "The component type to render."
|
|
2737
2354
|
},
|
|
@@ -2743,13 +2360,13 @@
|
|
|
2743
2360
|
},
|
|
2744
2361
|
{
|
|
2745
2362
|
"name": "instance",
|
|
2746
|
-
"type": "
|
|
2363
|
+
"type": "ContextMenuTriggerInstance",
|
|
2747
2364
|
"default": "",
|
|
2748
2365
|
"description": "The instance to pass to the component."
|
|
2749
2366
|
},
|
|
2750
2367
|
{
|
|
2751
2368
|
"name": "pt",
|
|
2752
|
-
"type": "
|
|
2369
|
+
"type": "SafeRecord<ContextMenuTriggerPassThrough>",
|
|
2753
2370
|
"default": "",
|
|
2754
2371
|
"description": "The pass-through props to pass to the component."
|
|
2755
2372
|
},
|
|
@@ -2779,7 +2396,7 @@
|
|
|
2779
2396
|
},
|
|
2780
2397
|
{
|
|
2781
2398
|
"name": "render",
|
|
2782
|
-
"type": "(instance:
|
|
2399
|
+
"type": "(instance: ContextMenuTriggerInstance) => ReactNode",
|
|
2783
2400
|
"default": "",
|
|
2784
2401
|
"description": "The render function to render the component with instance access."
|
|
2785
2402
|
},
|
|
@@ -2789,36 +2406,6 @@
|
|
|
2789
2406
|
"default": "",
|
|
2790
2407
|
"description": "The children to render.\n\nAccepts `React.ReactNode` for static content or a render function `(instance: I) => React.ReactNode` for instance access.\nTyped as `any` to avoid JSX type errors when used directly in templates."
|
|
2791
2408
|
},
|
|
2792
|
-
{
|
|
2793
|
-
"name": "onMounted",
|
|
2794
|
-
"type": "() => void",
|
|
2795
|
-
"default": "",
|
|
2796
|
-
"description": "Callback function to invoke when the portal is mounted."
|
|
2797
|
-
},
|
|
2798
|
-
{
|
|
2799
|
-
"name": "onUnmounted",
|
|
2800
|
-
"type": "() => void",
|
|
2801
|
-
"default": "",
|
|
2802
|
-
"description": "Callback function to invoke when the portal is unmounted."
|
|
2803
|
-
},
|
|
2804
|
-
{
|
|
2805
|
-
"name": "element",
|
|
2806
|
-
"type": "HTMLElement | ReactNode",
|
|
2807
|
-
"default": "",
|
|
2808
|
-
"description": "The element to be rendered as the portal."
|
|
2809
|
-
},
|
|
2810
|
-
{
|
|
2811
|
-
"name": "elementRef",
|
|
2812
|
-
"type": "RefObject<HTMLElement>",
|
|
2813
|
-
"default": "",
|
|
2814
|
-
"description": "The element reference to be rendered as the portal."
|
|
2815
|
-
},
|
|
2816
|
-
{
|
|
2817
|
-
"name": "appendTo",
|
|
2818
|
-
"type": "string | HTMLElement | ((instance: PortalInstance) => HTMLElement)",
|
|
2819
|
-
"default": "'body'",
|
|
2820
|
-
"description": "The DOM element where the portal should be appended to."
|
|
2821
|
-
},
|
|
2822
2409
|
{
|
|
2823
2410
|
"name": "[key: string]",
|
|
2824
2411
|
"type": "any",
|
|
@@ -2834,603 +2421,25 @@
|
|
|
2834
2421
|
],
|
|
2835
2422
|
"methods": []
|
|
2836
2423
|
},
|
|
2837
|
-
"
|
|
2838
|
-
"description": "Defines valid state in
|
|
2424
|
+
"ContextMenuTriggerState": {
|
|
2425
|
+
"description": "Defines valid state in ContextMenuTrigger component.",
|
|
2839
2426
|
"relatedProp": "",
|
|
2840
2427
|
"props": [],
|
|
2841
2428
|
"methods": []
|
|
2842
2429
|
},
|
|
2843
|
-
"
|
|
2844
|
-
"description": "Defines the methods and properties exposed by
|
|
2430
|
+
"ContextMenuTriggerExposes": {
|
|
2431
|
+
"description": "Defines the methods and properties exposed by ContextMenuTrigger component.",
|
|
2845
2432
|
"relatedProp": "",
|
|
2846
2433
|
"props": [
|
|
2847
2434
|
{
|
|
2848
2435
|
"name": "contextmenu",
|
|
2849
|
-
"type": "ContextMenuRootInstance",
|
|
2850
|
-
"default": "",
|
|
2851
|
-
"description": "The ContextMenu component instance."
|
|
2852
|
-
},
|
|
2853
|
-
{
|
|
2854
|
-
"name": "subcontextmenu",
|
|
2855
|
-
"type": "ContextMenuSubInstance",
|
|
2856
|
-
"default": "",
|
|
2857
|
-
"description": "The ContextMenuSub component instance."
|
|
2858
|
-
}
|
|
2859
|
-
],
|
|
2860
|
-
"methods": []
|
|
2861
|
-
}
|
|
2862
|
-
},
|
|
2863
|
-
"types": {
|
|
2864
|
-
"ContextMenuSubPortalPassThroughType": {
|
|
2865
|
-
"description": "Defines passthrough(pt) options type in ContextMenuSubPortal component.",
|
|
2866
|
-
"values": "PassThroughType<ContextMenuSubPortalInstance, E>"
|
|
2867
|
-
},
|
|
2868
|
-
"ContextMenuSubPortalInstance": {
|
|
2869
|
-
"description": "Instance of ContextMenuSubPortal component.",
|
|
2870
|
-
"values": "ComponentInstance<ContextMenuSubPortalProps, ContextMenuSubPortalState, ContextMenuSubPortalExposes>"
|
|
2871
|
-
}
|
|
2872
|
-
},
|
|
2873
|
-
"variables": {}
|
|
2874
|
-
}
|
|
2875
|
-
},
|
|
2876
|
-
{
|
|
2877
|
-
"name": "ContextMenuSubmenuPositioner",
|
|
2878
|
-
"source": "apps/showcase/assets/apidoc/contextmenusubpositioner.json",
|
|
2879
|
-
"data": {
|
|
2880
|
-
"description": "ContextMenuSubPositioner is a component that positions the submenu list relative to the subtrigger element using usePositioner.",
|
|
2881
|
-
"interfaces": {
|
|
2882
|
-
"ContextMenuSubPositionerPassThrough": {
|
|
2883
|
-
"description": "Defines passthrough(pt) options of ContextMenuSubPositioner component.",
|
|
2884
|
-
"relatedProp": "",
|
|
2885
|
-
"extendedTypes": "MenuSubPositionerPassThrough",
|
|
2886
|
-
"props": [
|
|
2887
|
-
{
|
|
2888
|
-
"name": "root",
|
|
2889
|
-
"type": "MenuSubPositionerPassThroughType<HTMLAttributes<HTMLDivElement>>",
|
|
2890
|
-
"default": "",
|
|
2891
|
-
"description": "Used to pass attributes to the root's DOM element."
|
|
2892
|
-
}
|
|
2893
|
-
],
|
|
2894
|
-
"methods": []
|
|
2895
|
-
},
|
|
2896
|
-
"ContextMenuSubPositionerProps": {
|
|
2897
|
-
"description": "Defines valid properties in ContextMenuSubPositioner component.",
|
|
2898
|
-
"relatedProp": "",
|
|
2899
|
-
"extendedTypes": "BaseComponentProps<ContextMenuSubPositionerInstance, usePositionerProps, ContextMenuSubPositionerPassThrough>",
|
|
2900
|
-
"props": [
|
|
2901
|
-
{
|
|
2902
|
-
"name": "ref",
|
|
2903
|
-
"type": "Ref<unknown>",
|
|
2904
|
-
"default": "",
|
|
2905
|
-
"description": "The reference to the component instance."
|
|
2906
|
-
},
|
|
2907
|
-
{
|
|
2908
|
-
"name": "pIf",
|
|
2909
|
-
"type": "boolean",
|
|
2910
|
-
"default": "true",
|
|
2911
|
-
"description": "Whether the component should be rendered."
|
|
2912
|
-
},
|
|
2913
|
-
{
|
|
2914
|
-
"name": "style",
|
|
2915
|
-
"type": "CSSProperties | ((instance?: ContextMenuSubPositionerInstance) => CSSProperties)",
|
|
2916
|
-
"default": "",
|
|
2917
|
-
"description": "The style to apply to the component."
|
|
2918
|
-
},
|
|
2919
|
-
{
|
|
2920
|
-
"name": "className",
|
|
2921
|
-
"type": "string | ((instance?: ContextMenuSubPositionerInstance) => string)",
|
|
2922
|
-
"default": "",
|
|
2923
|
-
"description": "The class name to apply to the component."
|
|
2924
|
-
},
|
|
2925
|
-
{
|
|
2926
|
-
"name": "as",
|
|
2927
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
2928
|
-
"default": "",
|
|
2929
|
-
"description": "The component type to render."
|
|
2930
|
-
},
|
|
2931
|
-
{
|
|
2932
|
-
"name": "asChild",
|
|
2933
|
-
"type": "boolean",
|
|
2934
|
-
"default": "false",
|
|
2935
|
-
"description": "Whether the component should be rendered as a child component."
|
|
2936
|
-
},
|
|
2937
|
-
{
|
|
2938
|
-
"name": "instance",
|
|
2939
|
-
"type": "ContextMenuSubPositionerInstance",
|
|
2940
|
-
"default": "",
|
|
2941
|
-
"description": "The instance to pass to the component."
|
|
2942
|
-
},
|
|
2943
|
-
{
|
|
2944
|
-
"name": "pt",
|
|
2945
|
-
"type": "SafeRecord<ContextMenuSubPositionerPassThrough>",
|
|
2946
|
-
"default": "",
|
|
2947
|
-
"description": "The pass-through props to pass to the component."
|
|
2948
|
-
},
|
|
2949
|
-
{
|
|
2950
|
-
"name": "ptOptions",
|
|
2951
|
-
"type": "PassThroughOptions",
|
|
2952
|
-
"default": "",
|
|
2953
|
-
"description": "The pass-through options to pass to the component."
|
|
2954
|
-
},
|
|
2955
|
-
{
|
|
2956
|
-
"name": "unstyled",
|
|
2957
|
-
"type": "boolean",
|
|
2958
|
-
"default": "",
|
|
2959
|
-
"description": "Whether the component should be rendered without classes."
|
|
2960
|
-
},
|
|
2961
|
-
{
|
|
2962
|
-
"name": "dt",
|
|
2963
|
-
"type": "unknown",
|
|
2964
|
-
"default": "",
|
|
2965
|
-
"description": "The design token to use for the component."
|
|
2966
|
-
},
|
|
2967
|
-
{
|
|
2968
|
-
"name": "styles",
|
|
2969
|
-
"type": "StylesOptions<ComponentInstance>",
|
|
2970
|
-
"default": "",
|
|
2971
|
-
"description": "The styles to use for the component."
|
|
2972
|
-
},
|
|
2973
|
-
{
|
|
2974
|
-
"name": "render",
|
|
2975
|
-
"type": "(instance: ContextMenuSubPositionerInstance) => ReactNode",
|
|
2976
|
-
"default": "",
|
|
2977
|
-
"description": "The render function to render the component with instance access."
|
|
2978
|
-
},
|
|
2979
|
-
{
|
|
2980
|
-
"name": "children",
|
|
2981
|
-
"type": "any",
|
|
2982
|
-
"default": "",
|
|
2983
|
-
"description": "The children to render.\n\nAccepts `React.ReactNode` for static content or a render function `(instance: I) => React.ReactNode` for instance access.\nTyped as `any` to avoid JSX type errors when used directly in templates."
|
|
2984
|
-
},
|
|
2985
|
-
{
|
|
2986
|
-
"name": "side",
|
|
2987
|
-
"type": "SideType",
|
|
2988
|
-
"default": "",
|
|
2989
|
-
"description": "The side of the positioner."
|
|
2990
|
-
},
|
|
2991
|
-
{
|
|
2992
|
-
"name": "align",
|
|
2993
|
-
"type": "AlignType",
|
|
2994
|
-
"default": "",
|
|
2995
|
-
"description": "The align of the positioner."
|
|
2996
|
-
},
|
|
2997
|
-
{
|
|
2998
|
-
"name": "sideOffset",
|
|
2999
|
-
"type": "number",
|
|
3000
|
-
"default": "",
|
|
3001
|
-
"description": "The side offset of the positioner."
|
|
3002
|
-
},
|
|
3003
|
-
{
|
|
3004
|
-
"name": "alignOffset",
|
|
3005
|
-
"type": "number",
|
|
3006
|
-
"default": "",
|
|
3007
|
-
"description": "The align offset of the positioner."
|
|
3008
|
-
},
|
|
3009
|
-
{
|
|
3010
|
-
"name": "flip",
|
|
3011
|
-
"type": "boolean",
|
|
3012
|
-
"default": "",
|
|
3013
|
-
"description": "Whether to flip the positioner."
|
|
3014
|
-
},
|
|
3015
|
-
{
|
|
3016
|
-
"name": "shift",
|
|
3017
|
-
"type": "boolean",
|
|
3018
|
-
"default": "",
|
|
3019
|
-
"description": "Whether to shift the positioner."
|
|
3020
|
-
},
|
|
3021
|
-
{
|
|
3022
|
-
"name": "hideWhenDetached",
|
|
3023
|
-
"type": "boolean",
|
|
3024
|
-
"default": "",
|
|
3025
|
-
"description": "Whether to hide the positioner when detached."
|
|
3026
|
-
},
|
|
3027
|
-
{
|
|
3028
|
-
"name": "strategy",
|
|
3029
|
-
"type": "\"fixed\" | \"absolute\"",
|
|
3030
|
-
"default": "'fixed'",
|
|
3031
|
-
"description": "The positioning strategy."
|
|
3032
|
-
},
|
|
3033
|
-
{
|
|
3034
|
-
"name": "boundary",
|
|
3035
|
-
"type": "HTMLElement",
|
|
3036
|
-
"default": "",
|
|
3037
|
-
"description": "The boundary element that constrains the positioner placement.\nUsed in JS fallback mode only; CSS Anchor mode uses the containing block."
|
|
3038
|
-
},
|
|
3039
|
-
{
|
|
3040
|
-
"name": "anchor",
|
|
3041
|
-
"type": "HTMLElement",
|
|
3042
|
-
"default": "",
|
|
3043
|
-
"description": "The anchor element."
|
|
3044
|
-
},
|
|
3045
|
-
{
|
|
3046
|
-
"name": "content",
|
|
3047
|
-
"type": "HTMLDivElement",
|
|
3048
|
-
"default": "",
|
|
3049
|
-
"description": "The content element."
|
|
3050
|
-
},
|
|
3051
|
-
{
|
|
3052
|
-
"name": "arrow",
|
|
3053
|
-
"type": "HTMLDivElement",
|
|
3054
|
-
"default": "",
|
|
3055
|
-
"description": "The arrow element."
|
|
3056
|
-
},
|
|
3057
|
-
{
|
|
3058
|
-
"name": "autoZIndex",
|
|
3059
|
-
"type": "boolean",
|
|
3060
|
-
"default": "true",
|
|
3061
|
-
"description": "Whether to automatically manage layering."
|
|
3062
|
-
},
|
|
3063
|
-
{
|
|
3064
|
-
"name": "baseZIndex",
|
|
3065
|
-
"type": "number",
|
|
3066
|
-
"default": "0",
|
|
3067
|
-
"description": "Base zIndex value to use in layering."
|
|
3068
|
-
},
|
|
3069
|
-
{
|
|
3070
|
-
"name": "onPlacementChange",
|
|
3071
|
-
"type": "(placement: { side: SideType; align: AlignType }) => void",
|
|
3072
|
-
"default": "",
|
|
3073
|
-
"description": "Callback invoked when the actual placement changes due to flip or shift."
|
|
3074
|
-
},
|
|
3075
|
-
{
|
|
3076
|
-
"name": "[key: string]",
|
|
3077
|
-
"type": "any",
|
|
3078
|
-
"description": ""
|
|
3079
|
-
},
|
|
3080
|
-
{
|
|
3081
|
-
"name": "pt-{optionName}-*",
|
|
3082
|
-
"type": "-",
|
|
3083
|
-
"default": "",
|
|
3084
|
-
"description": "Pass through attributes for customizing component parts.",
|
|
3085
|
-
"deprecated": false
|
|
3086
|
-
}
|
|
3087
|
-
],
|
|
3088
|
-
"methods": []
|
|
3089
|
-
},
|
|
3090
|
-
"ContextMenuSubPositionerState": {
|
|
3091
|
-
"description": "Defines valid state in ContextMenuSubPositioner component.",
|
|
3092
|
-
"relatedProp": "",
|
|
3093
|
-
"props": [],
|
|
3094
|
-
"methods": []
|
|
3095
|
-
},
|
|
3096
|
-
"ContextMenuSubPositionerExposes": {
|
|
3097
|
-
"description": "Defines the methods and properties exposed by ContextMenuSubPositioner component.",
|
|
3098
|
-
"relatedProp": "",
|
|
3099
|
-
"props": [
|
|
3100
|
-
{
|
|
3101
|
-
"name": "contextmenu",
|
|
3102
|
-
"type": "ContextMenuRootInstance",
|
|
3103
|
-
"default": "",
|
|
3104
|
-
"description": "The ContextMenu component instance."
|
|
3105
|
-
},
|
|
3106
|
-
{
|
|
3107
|
-
"name": "subcontextmenu",
|
|
3108
|
-
"type": "ContextMenuSubInstance",
|
|
3109
|
-
"default": "",
|
|
3110
|
-
"description": "The ContextMenuSub component instance."
|
|
3111
|
-
},
|
|
3112
|
-
{
|
|
3113
|
-
"name": "positioner",
|
|
3114
|
-
"type": "usePositionerExposes",
|
|
3115
|
-
"default": "",
|
|
3116
|
-
"description": "The positioner instance."
|
|
3117
|
-
}
|
|
3118
|
-
],
|
|
3119
|
-
"methods": []
|
|
3120
|
-
}
|
|
3121
|
-
},
|
|
3122
|
-
"types": {
|
|
3123
|
-
"ContextMenuSubPositionerPassThroughType": {
|
|
3124
|
-
"description": "Defines passthrough(pt) options type in ContextMenuSubPositioner component.",
|
|
3125
|
-
"values": "PassThroughType<ContextMenuSubPositionerInstance, E>"
|
|
3126
|
-
},
|
|
3127
|
-
"ContextMenuSubPositionerInstance": {
|
|
3128
|
-
"description": "Instance of ContextMenuSubPositioner component.",
|
|
3129
|
-
"values": "ComponentInstance<ContextMenuSubPositionerProps, ContextMenuSubPositionerState, ContextMenuSubPositionerExposes>"
|
|
3130
|
-
}
|
|
3131
|
-
},
|
|
3132
|
-
"variables": {}
|
|
3133
|
-
}
|
|
3134
|
-
},
|
|
3135
|
-
{
|
|
3136
|
-
"name": "ContextMenuSubmenuTrigger",
|
|
3137
|
-
"source": "apps/showcase/assets/apidoc/contextmenusubmenutrigger.json",
|
|
3138
|
-
"data": {
|
|
3139
|
-
"description": "ContextMenuSubmenuTrigger is a component that displays the trigger for a submenu item.",
|
|
3140
|
-
"interfaces": {
|
|
3141
|
-
"ContextMenuSubmenuTriggerPassThrough": {
|
|
3142
|
-
"description": "Defines passthrough(pt) options of ContextMenuSubmenuTrigger component.",
|
|
3143
|
-
"relatedProp": "",
|
|
3144
|
-
"extendedTypes": "MenuSubmenuTriggerPassThrough",
|
|
3145
|
-
"props": [
|
|
3146
|
-
{
|
|
3147
|
-
"name": "root",
|
|
3148
|
-
"type": "MenuSubmenuTriggerPassThroughType<HTMLAttributes<HTMLDivElement>>",
|
|
3149
|
-
"default": "",
|
|
3150
|
-
"description": "Used to pass attributes to the root's DOM element."
|
|
3151
|
-
}
|
|
3152
|
-
],
|
|
3153
|
-
"methods": []
|
|
3154
|
-
},
|
|
3155
|
-
"ContextMenuSubmenuTriggerProps": {
|
|
3156
|
-
"description": "Defines valid properties in ContextMenuSubmenuTrigger component.",
|
|
3157
|
-
"relatedProp": "",
|
|
3158
|
-
"extendedTypes": "BaseComponentProps<ContextMenuSubmenuTriggerInstance, unknown, ContextMenuSubmenuTriggerPassThrough>",
|
|
3159
|
-
"props": [
|
|
3160
|
-
{
|
|
3161
|
-
"name": "ref",
|
|
3162
|
-
"type": "Ref<unknown>",
|
|
3163
|
-
"default": "",
|
|
3164
|
-
"description": "The reference to the component instance."
|
|
3165
|
-
},
|
|
3166
|
-
{
|
|
3167
|
-
"name": "pIf",
|
|
3168
|
-
"type": "boolean",
|
|
3169
|
-
"default": "true",
|
|
3170
|
-
"description": "Whether the component should be rendered."
|
|
3171
|
-
},
|
|
3172
|
-
{
|
|
3173
|
-
"name": "style",
|
|
3174
|
-
"type": "CSSProperties | ((instance?: ContextMenuSubmenuTriggerInstance) => CSSProperties)",
|
|
3175
|
-
"default": "",
|
|
3176
|
-
"description": "The style to apply to the component."
|
|
3177
|
-
},
|
|
3178
|
-
{
|
|
3179
|
-
"name": "className",
|
|
3180
|
-
"type": "string | ((instance?: ContextMenuSubmenuTriggerInstance) => string)",
|
|
3181
|
-
"default": "",
|
|
3182
|
-
"description": "The class name to apply to the component."
|
|
3183
|
-
},
|
|
3184
|
-
{
|
|
3185
|
-
"name": "as",
|
|
3186
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
3187
|
-
"default": "",
|
|
3188
|
-
"description": "The component type to render."
|
|
3189
|
-
},
|
|
3190
|
-
{
|
|
3191
|
-
"name": "asChild",
|
|
3192
|
-
"type": "boolean",
|
|
3193
|
-
"default": "false",
|
|
3194
|
-
"description": "Whether the component should be rendered as a child component."
|
|
3195
|
-
},
|
|
3196
|
-
{
|
|
3197
|
-
"name": "instance",
|
|
3198
|
-
"type": "ContextMenuSubmenuTriggerInstance",
|
|
3199
|
-
"default": "",
|
|
3200
|
-
"description": "The instance to pass to the component."
|
|
3201
|
-
},
|
|
3202
|
-
{
|
|
3203
|
-
"name": "pt",
|
|
3204
|
-
"type": "SafeRecord<ContextMenuSubmenuTriggerPassThrough>",
|
|
3205
|
-
"default": "",
|
|
3206
|
-
"description": "The pass-through props to pass to the component."
|
|
3207
|
-
},
|
|
3208
|
-
{
|
|
3209
|
-
"name": "ptOptions",
|
|
3210
|
-
"type": "PassThroughOptions",
|
|
3211
|
-
"default": "",
|
|
3212
|
-
"description": "The pass-through options to pass to the component."
|
|
3213
|
-
},
|
|
3214
|
-
{
|
|
3215
|
-
"name": "unstyled",
|
|
3216
|
-
"type": "boolean",
|
|
3217
|
-
"default": "",
|
|
3218
|
-
"description": "Whether the component should be rendered without classes."
|
|
3219
|
-
},
|
|
3220
|
-
{
|
|
3221
|
-
"name": "dt",
|
|
3222
|
-
"type": "unknown",
|
|
3223
|
-
"default": "",
|
|
3224
|
-
"description": "The design token to use for the component."
|
|
3225
|
-
},
|
|
3226
|
-
{
|
|
3227
|
-
"name": "styles",
|
|
3228
|
-
"type": "StylesOptions<ComponentInstance>",
|
|
3229
|
-
"default": "",
|
|
3230
|
-
"description": "The styles to use for the component."
|
|
3231
|
-
},
|
|
3232
|
-
{
|
|
3233
|
-
"name": "render",
|
|
3234
|
-
"type": "(instance: ContextMenuSubmenuTriggerInstance) => ReactNode",
|
|
3235
|
-
"default": "",
|
|
3236
|
-
"description": "The render function to render the component with instance access."
|
|
3237
|
-
},
|
|
3238
|
-
{
|
|
3239
|
-
"name": "children",
|
|
3240
|
-
"type": "any",
|
|
3241
|
-
"default": "",
|
|
3242
|
-
"description": "The children to render.\n\nAccepts `React.ReactNode` for static content or a render function `(instance: I) => React.ReactNode` for instance access.\nTyped as `any` to avoid JSX type errors when used directly in templates."
|
|
3243
|
-
},
|
|
3244
|
-
{
|
|
3245
|
-
"name": "[key: string]",
|
|
3246
|
-
"type": "any",
|
|
3247
|
-
"description": ""
|
|
3248
|
-
},
|
|
3249
|
-
{
|
|
3250
|
-
"name": "pt-{optionName}-*",
|
|
3251
|
-
"type": "-",
|
|
3252
|
-
"default": "",
|
|
3253
|
-
"description": "Pass through attributes for customizing component parts.",
|
|
3254
|
-
"deprecated": false
|
|
3255
|
-
}
|
|
3256
|
-
],
|
|
3257
|
-
"methods": []
|
|
3258
|
-
},
|
|
3259
|
-
"ContextMenuSubmenuTriggerState": {
|
|
3260
|
-
"description": "Defines valid state in ContextMenuSubmenuTrigger component.",
|
|
3261
|
-
"relatedProp": "",
|
|
3262
|
-
"props": [],
|
|
3263
|
-
"methods": []
|
|
3264
|
-
},
|
|
3265
|
-
"ContextMenuSubmenuTriggerExposes": {
|
|
3266
|
-
"description": "Defines the methods and properties exposed by ContextMenuSubmenuTrigger component.",
|
|
3267
|
-
"relatedProp": "",
|
|
3268
|
-
"props": [
|
|
3269
|
-
{
|
|
3270
|
-
"name": "contextmenu",
|
|
3271
|
-
"type": "ContextMenuRootInstance",
|
|
3272
|
-
"default": "",
|
|
3273
|
-
"description": "The ContextMenu component instance."
|
|
3274
|
-
}
|
|
3275
|
-
],
|
|
3276
|
-
"methods": []
|
|
3277
|
-
}
|
|
3278
|
-
},
|
|
3279
|
-
"types": {
|
|
3280
|
-
"ContextMenuSubmenuTriggerPassThroughType": {
|
|
3281
|
-
"description": "Defines passthrough(pt) options type in ContextMenuSubmenuTrigger component.",
|
|
3282
|
-
"values": "PassThroughType<ContextMenuSubmenuTriggerInstance, E>"
|
|
3283
|
-
},
|
|
3284
|
-
"ContextMenuSubmenuTriggerInstance": {
|
|
3285
|
-
"description": "Instance of ContextMenuSubmenuTrigger component.",
|
|
3286
|
-
"values": "ComponentInstance<ContextMenuSubmenuTriggerProps, ContextMenuSubmenuTriggerState, ContextMenuSubmenuTriggerExposes>"
|
|
3287
|
-
}
|
|
3288
|
-
},
|
|
3289
|
-
"variables": {}
|
|
3290
|
-
}
|
|
3291
|
-
},
|
|
3292
|
-
{
|
|
3293
|
-
"name": "ContextMenuTrigger",
|
|
3294
|
-
"source": "apps/showcase/assets/apidoc/contextmenutrigger.json",
|
|
3295
|
-
"data": {
|
|
3296
|
-
"description": "ContextMenuTrigger is a component that displays trigger.",
|
|
3297
|
-
"interfaces": {
|
|
3298
|
-
"ContextMenuTriggerPassThrough": {
|
|
3299
|
-
"description": "Defines passthrough(pt) options of ContextMenuTrigger component.",
|
|
3300
|
-
"relatedProp": "",
|
|
3301
|
-
"props": [
|
|
3302
|
-
{
|
|
3303
|
-
"name": "root",
|
|
3304
|
-
"type": "ContextMenuTriggerPassThroughType<HTMLAttributes<HTMLDivElement>>",
|
|
3305
|
-
"default": "",
|
|
3306
|
-
"description": "Used to pass attributes to the root's DOM element."
|
|
3307
|
-
}
|
|
3308
|
-
],
|
|
3309
|
-
"methods": []
|
|
3310
|
-
},
|
|
3311
|
-
"ContextMenuTriggerProps": {
|
|
3312
|
-
"description": "Defines valid properties in ContextMenuTrigger component.",
|
|
3313
|
-
"relatedProp": "",
|
|
3314
|
-
"extendedTypes": "BaseComponentProps<ContextMenuTriggerInstance, unknown, ContextMenuTriggerPassThrough>",
|
|
3315
|
-
"props": [
|
|
3316
|
-
{
|
|
3317
|
-
"name": "ref",
|
|
3318
|
-
"type": "Ref<unknown>",
|
|
3319
|
-
"default": "",
|
|
3320
|
-
"description": "The reference to the component instance."
|
|
3321
|
-
},
|
|
3322
|
-
{
|
|
3323
|
-
"name": "pIf",
|
|
3324
|
-
"type": "boolean",
|
|
3325
|
-
"default": "true",
|
|
3326
|
-
"description": "Whether the component should be rendered."
|
|
3327
|
-
},
|
|
3328
|
-
{
|
|
3329
|
-
"name": "style",
|
|
3330
|
-
"type": "CSSProperties | ((instance?: ContextMenuTriggerInstance) => CSSProperties)",
|
|
3331
|
-
"default": "",
|
|
3332
|
-
"description": "The style to apply to the component."
|
|
3333
|
-
},
|
|
3334
|
-
{
|
|
3335
|
-
"name": "className",
|
|
3336
|
-
"type": "string | ((instance?: ContextMenuTriggerInstance) => string)",
|
|
3337
|
-
"default": "",
|
|
3338
|
-
"description": "The class name to apply to the component."
|
|
3339
|
-
},
|
|
3340
|
-
{
|
|
3341
|
-
"name": "as",
|
|
3342
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
3343
|
-
"default": "",
|
|
3344
|
-
"description": "The component type to render."
|
|
3345
|
-
},
|
|
3346
|
-
{
|
|
3347
|
-
"name": "asChild",
|
|
3348
|
-
"type": "boolean",
|
|
3349
|
-
"default": "false",
|
|
3350
|
-
"description": "Whether the component should be rendered as a child component."
|
|
3351
|
-
},
|
|
3352
|
-
{
|
|
3353
|
-
"name": "instance",
|
|
3354
|
-
"type": "ContextMenuTriggerInstance",
|
|
3355
|
-
"default": "",
|
|
3356
|
-
"description": "The instance to pass to the component."
|
|
3357
|
-
},
|
|
3358
|
-
{
|
|
3359
|
-
"name": "pt",
|
|
3360
|
-
"type": "SafeRecord<ContextMenuTriggerPassThrough>",
|
|
3361
|
-
"default": "",
|
|
3362
|
-
"description": "The pass-through props to pass to the component."
|
|
3363
|
-
},
|
|
3364
|
-
{
|
|
3365
|
-
"name": "ptOptions",
|
|
3366
|
-
"type": "PassThroughOptions",
|
|
3367
|
-
"default": "",
|
|
3368
|
-
"description": "The pass-through options to pass to the component."
|
|
3369
|
-
},
|
|
3370
|
-
{
|
|
3371
|
-
"name": "unstyled",
|
|
3372
|
-
"type": "boolean",
|
|
3373
|
-
"default": "",
|
|
3374
|
-
"description": "Whether the component should be rendered without classes."
|
|
3375
|
-
},
|
|
3376
|
-
{
|
|
3377
|
-
"name": "dt",
|
|
3378
|
-
"type": "unknown",
|
|
3379
|
-
"default": "",
|
|
3380
|
-
"description": "The design token to use for the component."
|
|
3381
|
-
},
|
|
3382
|
-
{
|
|
3383
|
-
"name": "styles",
|
|
3384
|
-
"type": "StylesOptions<ComponentInstance>",
|
|
3385
|
-
"default": "",
|
|
3386
|
-
"description": "The styles to use for the component."
|
|
3387
|
-
},
|
|
3388
|
-
{
|
|
3389
|
-
"name": "render",
|
|
3390
|
-
"type": "(instance: ContextMenuTriggerInstance) => ReactNode",
|
|
3391
|
-
"default": "",
|
|
3392
|
-
"description": "The render function to render the component with instance access."
|
|
3393
|
-
},
|
|
3394
|
-
{
|
|
3395
|
-
"name": "children",
|
|
3396
|
-
"type": "any",
|
|
3397
|
-
"default": "",
|
|
3398
|
-
"description": "The children to render.\n\nAccepts `React.ReactNode` for static content or a render function `(instance: I) => React.ReactNode` for instance access.\nTyped as `any` to avoid JSX type errors when used directly in templates."
|
|
3399
|
-
},
|
|
3400
|
-
{
|
|
3401
|
-
"name": "[key: string]",
|
|
3402
|
-
"type": "any",
|
|
3403
|
-
"description": ""
|
|
3404
|
-
},
|
|
3405
|
-
{
|
|
3406
|
-
"name": "pt-{optionName}-*",
|
|
3407
|
-
"type": "-",
|
|
3408
|
-
"default": "",
|
|
3409
|
-
"description": "Pass through attributes for customizing component parts.",
|
|
3410
|
-
"deprecated": false
|
|
3411
|
-
}
|
|
3412
|
-
],
|
|
3413
|
-
"methods": []
|
|
3414
|
-
},
|
|
3415
|
-
"ContextMenuTriggerState": {
|
|
3416
|
-
"description": "Defines valid state in ContextMenuTrigger component.",
|
|
3417
|
-
"relatedProp": "",
|
|
3418
|
-
"props": [],
|
|
3419
|
-
"methods": []
|
|
3420
|
-
},
|
|
3421
|
-
"ContextMenuTriggerExposes": {
|
|
3422
|
-
"description": "Defines the methods and properties exposed by ContextMenuTrigger component.",
|
|
3423
|
-
"relatedProp": "",
|
|
3424
|
-
"props": [
|
|
3425
|
-
{
|
|
3426
|
-
"name": "contextmenu",
|
|
3427
|
-
"type": "ContextMenuRootInstance",
|
|
2436
|
+
"type": "undefined | null | ContextMenuRootInstance",
|
|
3428
2437
|
"default": "",
|
|
3429
2438
|
"description": "The ContextMenu component instance."
|
|
3430
2439
|
},
|
|
3431
2440
|
{
|
|
3432
2441
|
"name": "menu",
|
|
3433
|
-
"type": "MenuRootInstance",
|
|
2442
|
+
"type": "undefined | null | MenuRootInstance",
|
|
3434
2443
|
"default": "",
|
|
3435
2444
|
"description": "Instance of the Menu component."
|
|
3436
2445
|
}
|