@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
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"name": "style",
|
|
40
|
-
"type": "CSSProperties | ((instance?: FloatLabelInstance) => CSSProperties)",
|
|
40
|
+
"type": "CSSProperties | ((instance?: FloatLabelInstance) => undefined | CSSProperties)",
|
|
41
41
|
"default": "",
|
|
42
42
|
"description": "The style to apply to the component."
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"name": "className",
|
|
46
|
-
"type": "string | ((instance?: FloatLabelInstance) => string)",
|
|
46
|
+
"type": "string | ((instance?: FloatLabelInstance) => undefined | string)",
|
|
47
47
|
"default": "",
|
|
48
48
|
"description": "The class name to apply to the component."
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"name": "as",
|
|
52
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
52
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
53
53
|
"default": "",
|
|
54
54
|
"description": "The component type to render."
|
|
55
55
|
},
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"name": "style",
|
|
40
|
-
"type": "CSSProperties | ((instance?: FluidInstance) => CSSProperties)",
|
|
40
|
+
"type": "CSSProperties | ((instance?: FluidInstance) => undefined | CSSProperties)",
|
|
41
41
|
"default": "",
|
|
42
42
|
"description": "The style to apply to the component."
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"name": "className",
|
|
46
|
-
"type": "string | ((instance?: FluidInstance) => string)",
|
|
46
|
+
"type": "string | ((instance?: FluidInstance) => undefined | string)",
|
|
47
47
|
"default": "",
|
|
48
48
|
"description": "The class name to apply to the component."
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"name": "as",
|
|
52
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
52
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
53
53
|
"default": "",
|
|
54
54
|
"description": "The component type to render."
|
|
55
55
|
},
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"name": "style",
|
|
40
|
-
"type": "CSSProperties | ((instance?: IconFieldInsetInstance) => CSSProperties)",
|
|
40
|
+
"type": "CSSProperties | ((instance?: IconFieldInsetInstance) => undefined | CSSProperties)",
|
|
41
41
|
"default": "",
|
|
42
42
|
"description": "The style to apply to the component."
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"name": "className",
|
|
46
|
-
"type": "string | ((instance?: IconFieldInsetInstance) => string)",
|
|
46
|
+
"type": "string | ((instance?: IconFieldInsetInstance) => undefined | string)",
|
|
47
47
|
"default": "",
|
|
48
48
|
"description": "The class name to apply to the component."
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"name": "as",
|
|
52
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
52
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
53
53
|
"default": "",
|
|
54
54
|
"description": "The component type to render."
|
|
55
55
|
},
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"props": [
|
|
135
135
|
{
|
|
136
136
|
"name": "iconfield",
|
|
137
|
-
"type": "IconFieldRootInstance",
|
|
137
|
+
"type": "undefined | null | IconFieldRootInstance",
|
|
138
138
|
"default": "",
|
|
139
139
|
"description": "The IconField component instance."
|
|
140
140
|
}
|
|
@@ -199,19 +199,19 @@
|
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
201
|
"name": "style",
|
|
202
|
-
"type": "CSSProperties | ((instance?: IconFieldRootInstance) => CSSProperties)",
|
|
202
|
+
"type": "CSSProperties | ((instance?: IconFieldRootInstance) => undefined | CSSProperties)",
|
|
203
203
|
"default": "",
|
|
204
204
|
"description": "The style to apply to the component."
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
"name": "className",
|
|
208
|
-
"type": "string | ((instance?: IconFieldRootInstance) => string)",
|
|
208
|
+
"type": "string | ((instance?: IconFieldRootInstance) => undefined | string)",
|
|
209
209
|
"default": "",
|
|
210
210
|
"description": "The class name to apply to the component."
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
"name": "as",
|
|
214
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
214
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
215
215
|
"default": "",
|
|
216
216
|
"description": "The component type to render."
|
|
217
217
|
},
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"name": "style",
|
|
40
|
-
"type": "CSSProperties | ((instance?: IftaLabelInstance) => CSSProperties)",
|
|
40
|
+
"type": "CSSProperties | ((instance?: IftaLabelInstance) => undefined | CSSProperties)",
|
|
41
41
|
"default": "",
|
|
42
42
|
"description": "The style to apply to the component."
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"name": "className",
|
|
46
|
-
"type": "string | ((instance?: IftaLabelInstance) => string)",
|
|
46
|
+
"type": "string | ((instance?: IftaLabelInstance) => undefined | string)",
|
|
47
47
|
"default": "",
|
|
48
48
|
"description": "The class name to apply to the component."
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"name": "as",
|
|
52
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
52
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
53
53
|
"default": "",
|
|
54
54
|
"description": "The component type to render."
|
|
55
55
|
},
|
|
@@ -13,6 +13,7 @@ import { InputGroup } from '@primereact/ui/inputgroup';
|
|
|
13
13
|
import { InputText } from '@primereact/ui/inputtext';
|
|
14
14
|
import { Select, type SelectValueChangeEvent } from '@primereact/ui/select';
|
|
15
15
|
import * as React from 'react';
|
|
16
|
+
|
|
16
17
|
const options = [
|
|
17
18
|
{ label: 'HEX', value: 'hex' },
|
|
18
19
|
{ label: 'RGBA', value: 'rgba' },
|
|
@@ -158,6 +159,7 @@ import { InputGroup } from '@primereact/ui/inputgroup';
|
|
|
158
159
|
import { InputText } from '@primereact/ui/inputtext';
|
|
159
160
|
import { Select, type SelectValueChangeEvent } from '@primereact/ui/select';
|
|
160
161
|
import * as React from 'react';
|
|
162
|
+
|
|
161
163
|
const options = [
|
|
162
164
|
{ label: 'HEX', value: 'hex' },
|
|
163
165
|
{ label: 'RGBA', value: 'rgba' },
|
|
@@ -370,6 +372,7 @@ import { Button } from '@primereact/ui/button';
|
|
|
370
372
|
import { InputColor, type InputColorRootChangeEvent } from '@primereact/ui/inputcolor';
|
|
371
373
|
import { InputText } from '@primereact/ui/inputtext';
|
|
372
374
|
import * as React from 'react';
|
|
375
|
+
|
|
373
376
|
export default function ControlledDemo() {
|
|
374
377
|
const [value, setValue] = React.useState<ColorInstance>(parseColor('#000000'));
|
|
375
378
|
const [endValue, setEndValue] = React.useState<ColorInstance>(parseColor('#000000'));
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"name": "style",
|
|
40
|
-
"type": "CSSProperties | ((instance?: InputGroupAddonInstance) => CSSProperties)",
|
|
40
|
+
"type": "CSSProperties | ((instance?: InputGroupAddonInstance) => undefined | CSSProperties)",
|
|
41
41
|
"default": "",
|
|
42
42
|
"description": "The style to apply to the component."
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"name": "className",
|
|
46
|
-
"type": "string | ((instance?: InputGroupAddonInstance) => string)",
|
|
46
|
+
"type": "string | ((instance?: InputGroupAddonInstance) => undefined | string)",
|
|
47
47
|
"default": "",
|
|
48
48
|
"description": "The class name to apply to the component."
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"name": "as",
|
|
52
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
52
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
53
53
|
"default": "",
|
|
54
54
|
"description": "The component type to render."
|
|
55
55
|
},
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"props": [
|
|
135
135
|
{
|
|
136
136
|
"name": "inputgroup",
|
|
137
|
-
"type": "InputGroupRootInstance",
|
|
137
|
+
"type": "undefined | null | InputGroupRootInstance",
|
|
138
138
|
"default": "",
|
|
139
139
|
"description": "Instance of the InputGroup component."
|
|
140
140
|
}
|
|
@@ -216,19 +216,19 @@
|
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
218
|
"name": "style",
|
|
219
|
-
"type": "CSSProperties | ((instance?: InputGroupRootInstance) => CSSProperties)",
|
|
219
|
+
"type": "CSSProperties | ((instance?: InputGroupRootInstance) => undefined | CSSProperties)",
|
|
220
220
|
"default": "",
|
|
221
221
|
"description": "The style to apply to the component."
|
|
222
222
|
},
|
|
223
223
|
{
|
|
224
224
|
"name": "className",
|
|
225
|
-
"type": "string | ((instance?: InputGroupRootInstance) => string)",
|
|
225
|
+
"type": "string | ((instance?: InputGroupRootInstance) => undefined | string)",
|
|
226
226
|
"default": "",
|
|
227
227
|
"description": "The class name to apply to the component."
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
230
|
"name": "as",
|
|
231
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
231
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
232
232
|
"default": "",
|
|
233
233
|
"description": "The component type to render."
|
|
234
234
|
},
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"name": "style",
|
|
40
|
-
"type": "CSSProperties | ((instance?: LabelInstance) => CSSProperties)",
|
|
40
|
+
"type": "CSSProperties | ((instance?: LabelInstance) => undefined | CSSProperties)",
|
|
41
41
|
"default": "",
|
|
42
42
|
"description": "The style to apply to the component."
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"name": "className",
|
|
46
|
-
"type": "string | ((instance?: LabelInstance) => string)",
|
|
46
|
+
"type": "string | ((instance?: LabelInstance) => undefined | string)",
|
|
47
47
|
"default": "",
|
|
48
48
|
"description": "The class name to apply to the component."
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"name": "as",
|
|
52
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
52
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
53
53
|
"default": "",
|
|
54
54
|
"description": "The component type to render."
|
|
55
55
|
},
|
|
@@ -829,7 +829,7 @@ export default function InlineDemo() {
|
|
|
829
829
|
<ChevronDown className="size-3.5 transition-transform duration-200 [[data-open]>*>&]:rotate-180" />
|
|
830
830
|
</Menu.SubmenuIndicator>
|
|
831
831
|
</Menu.SubmenuTrigger>
|
|
832
|
-
<Menu.List className="ms-6! hidden! in-data-[part=
|
|
832
|
+
<Menu.List className="ms-6! hidden! in-data-[part=submenu]:in-data-open:flex!">
|
|
833
833
|
<Menu.Group>
|
|
834
834
|
<Menu.Item>
|
|
835
835
|
<Briefcase />
|
|
@@ -1082,58 +1082,47 @@ export default function TieredMenuDemo() {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
```
|
|
1084
1084
|
|
|
1085
|
-
###
|
|
1085
|
+
### Emoji Picker
|
|
1086
1086
|
|
|
1087
|
-
The Menu component can be customized
|
|
1087
|
+
The Menu component can be customized into a grid-based picker. By applying custom classes to `Menu.List` and `Menu.Item`, the menu layout becomes a categorized emoji grid, with `Menu.Label` marking each category and `Menu.Root`'s `onSelect` reporting the chosen emoji.
|
|
1088
1088
|
|
|
1089
1089
|
```tsx
|
|
1090
|
-
|
|
1091
|
-
import { Calendar } from '@primeicons/react/calendar';
|
|
1092
|
-
import { ChartLine } from '@primeicons/react/chart-line';
|
|
1093
|
-
import { Cloud } from '@primeicons/react/cloud';
|
|
1094
|
-
import { Cog } from '@primeicons/react/cog';
|
|
1095
|
-
import { Envelope } from '@primeicons/react/envelope';
|
|
1096
|
-
import { Image } from '@primeicons/react/image';
|
|
1097
|
-
import { MapMarker } from '@primeicons/react/map-marker';
|
|
1098
|
-
import { Search } from '@primeicons/react/search';
|
|
1099
|
-
import { Video } from '@primeicons/react/video';
|
|
1090
|
+
'use client';
|
|
1100
1091
|
import { Button } from '@primereact/ui/button';
|
|
1101
|
-
import { Menu } from '@primereact/ui/menu';
|
|
1092
|
+
import { Menu, type MenuItemSelectEvent } from '@primereact/ui/menu';
|
|
1102
1093
|
import * as React from 'react';
|
|
1103
1094
|
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
{ label: 'Maps', icon: <MapMarker />, gradient: 'from-emerald-500 to-green-600' },
|
|
1107
|
-
{ label: 'Mail', icon: <Envelope />, gradient: 'from-orange-400 to-red-500' },
|
|
1108
|
-
{ label: 'Drive', icon: <Cloud />, gradient: 'from-blue-500 to-indigo-600' },
|
|
1109
|
-
{ label: 'Calendar', icon: <Calendar />, gradient: 'from-violet-500 to-purple-600' },
|
|
1110
|
-
{ label: 'Photos', icon: <Image />, gradient: 'from-fuchsia-500 to-pink-600' },
|
|
1111
|
-
{ label: 'Videos', icon: <Video />, gradient: 'from-red-500 to-rose-600' },
|
|
1112
|
-
{ label: 'Analytics', icon: <ChartLine />, gradient: 'from-cyan-500 to-blue-600' },
|
|
1113
|
-
{ label: 'Settings', icon: <Cog />, gradient: 'from-slate-500 to-zinc-700' }
|
|
1114
|
-
];
|
|
1095
|
+
export default function EmojiPickerDemo() {
|
|
1096
|
+
const [selected, setSelected] = React.useState<string | null>(null);
|
|
1115
1097
|
|
|
1116
|
-
export default function AppsDemo() {
|
|
1117
1098
|
return (
|
|
1118
1099
|
<div className="flex justify-center">
|
|
1119
|
-
<Menu.Root>
|
|
1120
|
-
<Menu.Trigger as={Button} severity="secondary" variant="outlined"
|
|
1121
|
-
<
|
|
1100
|
+
<Menu.Root onSelect={(e: MenuItemSelectEvent) => setSelected(e.value)}>
|
|
1101
|
+
<Menu.Trigger as={Button} severity="secondary" variant="outlined" aria-label="Pick an emoji">
|
|
1102
|
+
<span className="text-lg leading-none">{selected ?? '🙂'}</span>
|
|
1103
|
+
Add reaction
|
|
1122
1104
|
</Menu.Trigger>
|
|
1123
1105
|
|
|
1124
1106
|
<Menu.Portal>
|
|
1125
|
-
<Menu.Positioner align="
|
|
1126
|
-
<Menu.Popup>
|
|
1127
|
-
<Menu.List className="grid! grid-cols-
|
|
1128
|
-
{
|
|
1129
|
-
<
|
|
1130
|
-
<
|
|
1131
|
-
|
|
1132
|
-
>
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1107
|
+
<Menu.Positioner align="start" sideOffset={12}>
|
|
1108
|
+
<Menu.Popup className="w-80">
|
|
1109
|
+
<Menu.List className="grid! grid-cols-8! gap-0.5! p-1.5! max-h-72 overflow-y-auto">
|
|
1110
|
+
{categories.map((category) => (
|
|
1111
|
+
<React.Fragment key={category.label}>
|
|
1112
|
+
<Menu.Label className="col-span-full px-1 pt-2 pb-0.5 text-xs font-medium text-surface-500 dark:text-surface-400">
|
|
1113
|
+
{category.label}
|
|
1114
|
+
</Menu.Label>
|
|
1115
|
+
{category.emojis.map((emoji) => (
|
|
1116
|
+
<Menu.Item
|
|
1117
|
+
key={emoji}
|
|
1118
|
+
value={emoji}
|
|
1119
|
+
aria-label={emoji}
|
|
1120
|
+
className="flex! items-center justify-center aspect-square p-0! text-2xl! leading-none rounded-md cursor-pointer data-focused:bg-surface-100 dark:data-focused:bg-surface-800"
|
|
1121
|
+
>
|
|
1122
|
+
{emoji}
|
|
1123
|
+
</Menu.Item>
|
|
1124
|
+
))}
|
|
1125
|
+
</React.Fragment>
|
|
1137
1126
|
))}
|
|
1138
1127
|
</Menu.List>
|
|
1139
1128
|
</Menu.Popup>
|
|
@@ -1143,6 +1132,15 @@ export default function AppsDemo() {
|
|
|
1143
1132
|
</div>
|
|
1144
1133
|
);
|
|
1145
1134
|
}
|
|
1135
|
+
|
|
1136
|
+
const categories = [
|
|
1137
|
+
{ label: 'Smileys', emojis: ['😀', '😃', '😄', '😁', '😆', '😅', '😂', '🙂', '😉', '😊', '😍', '🥰', '😘', '😎', '🤩', '🤔'] },
|
|
1138
|
+
{ label: 'Gestures', emojis: ['👍', '👎', '👌', '✌️', '🤞', '🤟', '👏', '🙌', '🙏', '💪', '👋', '🤝'] },
|
|
1139
|
+
{ label: 'Animals', emojis: ['🐶', '🐱', '🐭', '🐹', '🐰', '🦊', '🐻', '🐼', '🐨', '🐯', '🦁', '🐮'] },
|
|
1140
|
+
{ label: 'Food', emojis: ['🍎', '🍓', '🍕', '🍔', '🍟', '🌮', '🍣', '🍩', '🍪', '🎂', '🍫', '☕'] },
|
|
1141
|
+
{ label: 'Activities', emojis: ['⚽', '🏀', '🎮', '🎲', '🎸', '🎨', '🎬', '🏆', '🎯', '🎧', '🥁', '🎤'] },
|
|
1142
|
+
{ label: 'Symbols', emojis: ['❤️', '🧡', '💛', '💚', '💙', '💜', '🔥', '⭐', '✨', '🎉', '💯', '✅'] }
|
|
1143
|
+
];
|
|
1146
1144
|
```
|
|
1147
1145
|
|
|
1148
1146
|
## Related
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"name": "style",
|
|
40
|
-
"type": "CSSProperties | ((instance?: OrganizationChartContentInstance) => CSSProperties)",
|
|
40
|
+
"type": "CSSProperties | ((instance?: OrganizationChartContentInstance) => undefined | CSSProperties)",
|
|
41
41
|
"default": "",
|
|
42
42
|
"description": "The style to apply to the component."
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"name": "className",
|
|
46
|
-
"type": "string | ((instance?: OrganizationChartContentInstance) => string)",
|
|
46
|
+
"type": "string | ((instance?: OrganizationChartContentInstance) => undefined | string)",
|
|
47
47
|
"default": "",
|
|
48
48
|
"description": "The class name to apply to the component."
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"name": "as",
|
|
52
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
52
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
53
53
|
"default": "",
|
|
54
54
|
"description": "The component type to render."
|
|
55
55
|
},
|
|
@@ -186,19 +186,19 @@
|
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
"name": "style",
|
|
189
|
-
"type": "CSSProperties | ((instance?: OrganizationChartLabelInstance) => CSSProperties)",
|
|
189
|
+
"type": "CSSProperties | ((instance?: OrganizationChartLabelInstance) => undefined | CSSProperties)",
|
|
190
190
|
"default": "",
|
|
191
191
|
"description": "The style to apply to the component."
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
194
|
"name": "className",
|
|
195
|
-
"type": "string | ((instance?: OrganizationChartLabelInstance) => string)",
|
|
195
|
+
"type": "string | ((instance?: OrganizationChartLabelInstance) => undefined | string)",
|
|
196
196
|
"default": "",
|
|
197
197
|
"description": "The class name to apply to the component."
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
200
|
"name": "as",
|
|
201
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
201
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
202
202
|
"default": "",
|
|
203
203
|
"description": "The component type to render."
|
|
204
204
|
},
|
|
@@ -335,19 +335,19 @@
|
|
|
335
335
|
},
|
|
336
336
|
{
|
|
337
337
|
"name": "style",
|
|
338
|
-
"type": "CSSProperties | ((instance?: OrganizationChartNodeInstance) => CSSProperties)",
|
|
338
|
+
"type": "CSSProperties | ((instance?: OrganizationChartNodeInstance) => undefined | CSSProperties)",
|
|
339
339
|
"default": "",
|
|
340
340
|
"description": "The style to apply to the component."
|
|
341
341
|
},
|
|
342
342
|
{
|
|
343
343
|
"name": "className",
|
|
344
|
-
"type": "string | ((instance?: OrganizationChartNodeInstance) => string)",
|
|
344
|
+
"type": "string | ((instance?: OrganizationChartNodeInstance) => undefined | string)",
|
|
345
345
|
"default": "",
|
|
346
346
|
"description": "The class name to apply to the component."
|
|
347
347
|
},
|
|
348
348
|
{
|
|
349
349
|
"name": "as",
|
|
350
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
350
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
351
351
|
"default": "",
|
|
352
352
|
"description": "The component type to render."
|
|
353
353
|
},
|
|
@@ -408,7 +408,7 @@
|
|
|
408
408
|
{
|
|
409
409
|
"name": "uKey",
|
|
410
410
|
"type": "string",
|
|
411
|
-
"default": "",
|
|
411
|
+
"default": "''",
|
|
412
412
|
"description": "The unique key identifying this node in the data. Used to resolve node state from the headless layer."
|
|
413
413
|
},
|
|
414
414
|
{
|
|
@@ -438,7 +438,7 @@
|
|
|
438
438
|
"props": [
|
|
439
439
|
{
|
|
440
440
|
"name": "node",
|
|
441
|
-
"type": "TreeNode",
|
|
441
|
+
"type": "undefined | TreeNode",
|
|
442
442
|
"default": "",
|
|
443
443
|
"description": "The resolved node data, or undefined when the key is unknown."
|
|
444
444
|
},
|
|
@@ -515,19 +515,19 @@
|
|
|
515
515
|
},
|
|
516
516
|
{
|
|
517
517
|
"name": "style",
|
|
518
|
-
"type": "CSSProperties | ((instance?: OrganizationChartNodesInstance) => CSSProperties)",
|
|
518
|
+
"type": "CSSProperties | ((instance?: OrganizationChartNodesInstance) => undefined | CSSProperties)",
|
|
519
519
|
"default": "",
|
|
520
520
|
"description": "The style to apply to the component."
|
|
521
521
|
},
|
|
522
522
|
{
|
|
523
523
|
"name": "className",
|
|
524
|
-
"type": "string | ((instance?: OrganizationChartNodesInstance) => string)",
|
|
524
|
+
"type": "string | ((instance?: OrganizationChartNodesInstance) => undefined | string)",
|
|
525
525
|
"default": "",
|
|
526
526
|
"description": "The class name to apply to the component."
|
|
527
527
|
},
|
|
528
528
|
{
|
|
529
529
|
"name": "as",
|
|
530
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
530
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
531
531
|
"default": "",
|
|
532
532
|
"description": "The component type to render."
|
|
533
533
|
},
|
|
@@ -664,19 +664,19 @@
|
|
|
664
664
|
},
|
|
665
665
|
{
|
|
666
666
|
"name": "style",
|
|
667
|
-
"type": "CSSProperties | ((instance?: OrganizationChartRootInstance) => CSSProperties)",
|
|
667
|
+
"type": "CSSProperties | ((instance?: OrganizationChartRootInstance) => undefined | CSSProperties)",
|
|
668
668
|
"default": "",
|
|
669
669
|
"description": "The style to apply to the component."
|
|
670
670
|
},
|
|
671
671
|
{
|
|
672
672
|
"name": "className",
|
|
673
|
-
"type": "string | ((instance?: OrganizationChartRootInstance) => string)",
|
|
673
|
+
"type": "string | ((instance?: OrganizationChartRootInstance) => undefined | string)",
|
|
674
674
|
"default": "",
|
|
675
675
|
"description": "The class name to apply to the component."
|
|
676
676
|
},
|
|
677
677
|
{
|
|
678
678
|
"name": "as",
|
|
679
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
679
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
680
680
|
"default": "",
|
|
681
681
|
"description": "The component type to render."
|
|
682
682
|
},
|
|
@@ -836,7 +836,7 @@
|
|
|
836
836
|
},
|
|
837
837
|
{
|
|
838
838
|
"name": "findNodeByKey",
|
|
839
|
-
"type": "(key: string) => TreeNode",
|
|
839
|
+
"type": "(key: string) => undefined | TreeNode",
|
|
840
840
|
"default": "",
|
|
841
841
|
"description": "Looks up a node by its key."
|
|
842
842
|
},
|
|
@@ -848,13 +848,13 @@
|
|
|
848
848
|
},
|
|
849
849
|
{
|
|
850
850
|
"name": "toggleNodeSelect",
|
|
851
|
-
"type": "(key?: string, event?: SyntheticEvent) => void",
|
|
851
|
+
"type": "(key?: string, event?: SyntheticEvent<Element, Event>) => void",
|
|
852
852
|
"default": "",
|
|
853
853
|
"description": "Toggle the selection state of a node (respecting `selectionMode` )."
|
|
854
854
|
},
|
|
855
855
|
{
|
|
856
856
|
"name": "toggleNodeCollapse",
|
|
857
|
-
"type": "(key?: string, event?: SyntheticEvent) => void",
|
|
857
|
+
"type": "(key?: string, event?: SyntheticEvent<Element, Event>) => void",
|
|
858
858
|
"default": "",
|
|
859
859
|
"description": "Toggle the collapsed state of a node."
|
|
860
860
|
},
|
|
@@ -896,19 +896,19 @@
|
|
|
896
896
|
},
|
|
897
897
|
{
|
|
898
898
|
"name": "getTreeProps",
|
|
899
|
-
"type": "(node: TreeNode, level: number) => UseOrganizationChartTreeProps",
|
|
899
|
+
"type": "(node: undefined | TreeNode, level: number) => UseOrganizationChartTreeProps",
|
|
900
900
|
"default": "",
|
|
901
901
|
"description": "Returns pre-built props for a tree (connector wrapper) element."
|
|
902
902
|
},
|
|
903
903
|
{
|
|
904
904
|
"name": "getNodeProps",
|
|
905
|
-
"type": "(node: TreeNode, handleClick: (event: MouseEvent<HTMLDivElement>) => void) => UseOrganizationChartNodeProps",
|
|
905
|
+
"type": "(node: undefined | TreeNode, handleClick: (event: MouseEvent<HTMLDivElement>) => void) => UseOrganizationChartNodeProps",
|
|
906
906
|
"default": "",
|
|
907
907
|
"description": "Returns pre-built props for a node element."
|
|
908
908
|
},
|
|
909
909
|
{
|
|
910
910
|
"name": "getCollapseButtonProps",
|
|
911
|
-
"type": "(node: TreeNode, handleClick: (event: MouseEvent<HTMLButtonElement>) => void) => { data-scope: \"organizationchart\"; data-part: \"toggle\"; onClick: (event: MouseEvent<HTMLButtonElement>) => void; onKeyDown: (event: KeyboardEvent<HTMLButtonElement>) => void }",
|
|
911
|
+
"type": "(node: undefined | TreeNode, handleClick: (event: MouseEvent<HTMLButtonElement>) => void) => { data-scope: \"organizationchart\"; data-part: \"toggle\"; onClick: (event: MouseEvent<HTMLButtonElement>) => void; onKeyDown: (event: KeyboardEvent<HTMLButtonElement>) => void }",
|
|
912
912
|
"default": "",
|
|
913
913
|
"description": "Returns pre-built props for a collapse toggle button element."
|
|
914
914
|
},
|
|
@@ -1003,19 +1003,19 @@
|
|
|
1003
1003
|
},
|
|
1004
1004
|
{
|
|
1005
1005
|
"name": "style",
|
|
1006
|
-
"type": "CSSProperties | ((instance?: OrganizationChartSelectionInstance) => CSSProperties)",
|
|
1006
|
+
"type": "CSSProperties | ((instance?: OrganizationChartSelectionInstance) => undefined | CSSProperties)",
|
|
1007
1007
|
"default": "",
|
|
1008
1008
|
"description": "The style to apply to the component."
|
|
1009
1009
|
},
|
|
1010
1010
|
{
|
|
1011
1011
|
"name": "className",
|
|
1012
|
-
"type": "string | ((instance?: OrganizationChartSelectionInstance) => string)",
|
|
1012
|
+
"type": "string | ((instance?: OrganizationChartSelectionInstance) => undefined | string)",
|
|
1013
1013
|
"default": "",
|
|
1014
1014
|
"description": "The class name to apply to the component."
|
|
1015
1015
|
},
|
|
1016
1016
|
{
|
|
1017
1017
|
"name": "as",
|
|
1018
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
1018
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
1019
1019
|
"default": "",
|
|
1020
1020
|
"description": "The component type to render."
|
|
1021
1021
|
},
|
|
@@ -1177,19 +1177,19 @@
|
|
|
1177
1177
|
},
|
|
1178
1178
|
{
|
|
1179
1179
|
"name": "style",
|
|
1180
|
-
"type": "CSSProperties | ((instance?: OrganizationChartToggleInstance) => CSSProperties)",
|
|
1180
|
+
"type": "CSSProperties | ((instance?: OrganizationChartToggleInstance) => undefined | CSSProperties)",
|
|
1181
1181
|
"default": "",
|
|
1182
1182
|
"description": "The style to apply to the component."
|
|
1183
1183
|
},
|
|
1184
1184
|
{
|
|
1185
1185
|
"name": "className",
|
|
1186
|
-
"type": "string | ((instance?: OrganizationChartToggleInstance) => string)",
|
|
1186
|
+
"type": "string | ((instance?: OrganizationChartToggleInstance) => undefined | string)",
|
|
1187
1187
|
"default": "",
|
|
1188
1188
|
"description": "The class name to apply to the component."
|
|
1189
1189
|
},
|
|
1190
1190
|
{
|
|
1191
1191
|
"name": "as",
|
|
1192
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
1192
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
1193
1193
|
"default": "",
|
|
1194
1194
|
"description": "The component type to render."
|
|
1195
1195
|
},
|
|
@@ -1333,19 +1333,19 @@
|
|
|
1333
1333
|
},
|
|
1334
1334
|
{
|
|
1335
1335
|
"name": "style",
|
|
1336
|
-
"type": "CSSProperties | ((instance?: OrganizationChartToggleIndicatorInstance) => CSSProperties)",
|
|
1336
|
+
"type": "CSSProperties | ((instance?: OrganizationChartToggleIndicatorInstance) => undefined | CSSProperties)",
|
|
1337
1337
|
"default": "",
|
|
1338
1338
|
"description": "The style to apply to the component."
|
|
1339
1339
|
},
|
|
1340
1340
|
{
|
|
1341
1341
|
"name": "className",
|
|
1342
|
-
"type": "string | ((instance?: OrganizationChartToggleIndicatorInstance) => string)",
|
|
1342
|
+
"type": "string | ((instance?: OrganizationChartToggleIndicatorInstance) => undefined | string)",
|
|
1343
1343
|
"default": "",
|
|
1344
1344
|
"description": "The class name to apply to the component."
|
|
1345
1345
|
},
|
|
1346
1346
|
{
|
|
1347
1347
|
"name": "as",
|
|
1348
|
-
"type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
1348
|
+
"type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
|
|
1349
1349
|
"default": "",
|
|
1350
1350
|
"description": "The component type to render."
|
|
1351
1351
|
},
|
|
@@ -1406,7 +1406,7 @@
|
|
|
1406
1406
|
{
|
|
1407
1407
|
"name": "match",
|
|
1408
1408
|
"type": "OrganizationChartToggleIndicatorMatch",
|
|
1409
|
-
"default": "",
|
|
1409
|
+
"default": "'always'",
|
|
1410
1410
|
"description": "Render this slot only when the toggle state matches. `always` renders regardless of state."
|
|
1411
1411
|
},
|
|
1412
1412
|
{
|