@primereact/mcp 11.1.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.
Files changed (178) hide show
  1. package/data/llms/headless/components/accordion/api.json +9 -9
  2. package/data/llms/headless/components/animateonscroll/api.json +2 -2
  3. package/data/llms/headless/components/autocomplete/api.json +33 -33
  4. package/data/llms/headless/components/avatar/api.json +1 -1
  5. package/data/llms/headless/components/carousel/api.json +15 -15
  6. package/data/llms/headless/components/checkbox/api.json +18 -18
  7. package/data/llms/headless/components/collapsible/api.json +14 -14
  8. package/data/llms/headless/components/compare/api.json +3 -3
  9. package/data/llms/headless/components/contextmenu/api.json +2 -2
  10. package/data/llms/headless/components/datatable/api.json +19 -19
  11. package/data/llms/headless/components/dataview/api.json +3 -3
  12. package/data/llms/headless/components/datepicker/api.json +43 -43
  13. package/data/llms/headless/components/dialog/api.json +19 -19
  14. package/data/llms/headless/components/divider/api.json +3 -3
  15. package/data/llms/headless/components/drawer/api.json +13 -13
  16. package/data/llms/headless/components/fieldset/api.json +9 -9
  17. package/data/llms/headless/components/fileupload/api.json +5 -5
  18. package/data/llms/headless/components/focustrap/api.json +4 -4
  19. package/data/llms/headless/components/gallery/api.json +23 -23
  20. package/data/llms/headless/components/inplace/api.json +3 -3
  21. package/data/llms/headless/components/inputcolor/api.json +6 -6
  22. package/data/llms/headless/components/inputcolor.md +0 -1
  23. package/data/llms/headless/components/inputnumber/api.json +8 -8
  24. package/data/llms/headless/components/inputotp/api.json +7 -7
  25. package/data/llms/headless/components/inputpassword/api.json +4 -4
  26. package/data/llms/headless/components/inputpassword.md +3 -3
  27. package/data/llms/headless/components/inputtags/api.json +8 -8
  28. package/data/llms/headless/components/inputtext/api.json +1 -1
  29. package/data/llms/headless/components/knob/api.json +18 -18
  30. package/data/llms/headless/components/listbox/api.json +27 -27
  31. package/data/llms/headless/components/menu/api.json +10 -10
  32. package/data/llms/headless/components/message/api.json +1 -1
  33. package/data/llms/headless/components/metergroup/api.json +3 -3
  34. package/data/llms/headless/components/motion/api.json +1 -1
  35. package/data/llms/headless/components/navigationmenu/api.json +5 -5
  36. package/data/llms/headless/components/orderlist/api.json +5 -5
  37. package/data/llms/headless/components/organizationchart/api.json +6 -6
  38. package/data/llms/headless/components/paginator/api.json +5 -5
  39. package/data/llms/headless/components/panel/api.json +9 -9
  40. package/data/llms/headless/components/picklist/api.json +5 -5
  41. package/data/llms/headless/components/popover/api.json +16 -16
  42. package/data/llms/headless/components/positioner/api.json +7 -7
  43. package/data/llms/headless/components/progressbar/api.json +3 -3
  44. package/data/llms/headless/components/progressspinner/api.json +3 -3
  45. package/data/llms/headless/components/radiobutton/api.json +16 -16
  46. package/data/llms/headless/components/rating/api.json +5 -5
  47. package/data/llms/headless/components/scrollarea/api.json +6 -6
  48. package/data/llms/headless/components/select/api.json +34 -34
  49. package/data/llms/headless/components/sidebar/api.json +60 -60
  50. package/data/llms/headless/components/sidebar.md +4 -2
  51. package/data/llms/headless/components/slider/api.json +3 -3
  52. package/data/llms/headless/components/speeddial/api.json +4 -4
  53. package/data/llms/headless/components/splitter/api.json +5 -5
  54. package/data/llms/headless/components/stepper/api.json +13 -13
  55. package/data/llms/headless/components/styleclass/api.json +1 -1
  56. package/data/llms/headless/components/tabs/api.json +17 -17
  57. package/data/llms/headless/components/terminal/api.json +1 -1
  58. package/data/llms/headless/components/toast/api.json +4 -4
  59. package/data/llms/headless/components/togglebutton/api.json +27 -3
  60. package/data/llms/headless/components/toggleswitch/api.json +3 -3
  61. package/data/llms/headless/components/tooltip/api.json +17 -17
  62. package/data/llms/headless/components/tree/api.json +20 -20
  63. package/data/llms/headless/components/tree.md +1 -0
  64. package/data/llms/headless/components/treetable/api.json +19 -19
  65. package/data/llms/hooks/use-filter.md +2 -2
  66. package/data/llms/hooks/use-tree-filter.md +3 -1
  67. package/data/llms/llms-full.txt +485 -229
  68. package/data/llms/primitive/components/accordion/api.json +39 -39
  69. package/data/llms/primitive/components/animateonscroll/api.json +5 -5
  70. package/data/llms/primitive/components/autocomplete/api.json +105 -105
  71. package/data/llms/primitive/components/avatar/api.json +14 -14
  72. package/data/llms/primitive/components/badge/api.json +6 -6
  73. package/data/llms/primitive/components/breadcrumb/api.json +27 -27
  74. package/data/llms/primitive/components/button/api.json +8 -8
  75. package/data/llms/primitive/components/buttongroup/api.json +3 -3
  76. package/data/llms/primitive/components/card/api.json +24 -24
  77. package/data/llms/primitive/components/carousel/api.json +28 -28
  78. package/data/llms/primitive/components/checkbox/api.json +14 -14
  79. package/data/llms/primitive/components/checkboxgroup/api.json +5 -5
  80. package/data/llms/primitive/components/chip/api.json +19 -19
  81. package/data/llms/primitive/components/collapsible/api.json +18 -18
  82. package/data/llms/primitive/components/compare/api.json +18 -18
  83. package/data/llms/primitive/components/contextmenu/api.json +150 -1141
  84. package/data/llms/primitive/components/datatable/api.json +215 -164
  85. package/data/llms/primitive/components/dataview/api.json +17 -17
  86. package/data/llms/primitive/components/datepicker/api.json +230 -230
  87. package/data/llms/primitive/components/dialog/api.json +63 -63
  88. package/data/llms/primitive/components/divider/api.json +3 -3
  89. package/data/llms/primitive/components/drawer/api.json +47 -47
  90. package/data/llms/primitive/components/fieldset/api.json +31 -31
  91. package/data/llms/primitive/components/fileupload/api.json +53 -53
  92. package/data/llms/primitive/components/floatlabel/api.json +3 -3
  93. package/data/llms/primitive/components/focustrap/api.json +7 -7
  94. package/data/llms/primitive/components/gallery/api.json +91 -91
  95. package/data/llms/primitive/components/iconfield/api.json +7 -7
  96. package/data/llms/primitive/components/iftalabel/api.json +3 -3
  97. package/data/llms/primitive/components/inplace/api.json +18 -18
  98. package/data/llms/primitive/components/inputcolor/api.json +51 -51
  99. package/data/llms/primitive/components/inputnumber/api.json +10 -10
  100. package/data/llms/primitive/components/inputotp/api.json +12 -12
  101. package/data/llms/primitive/components/inputpassword/api.json +7 -7
  102. package/data/llms/primitive/components/inputtags/api.json +6 -6
  103. package/data/llms/primitive/components/inputtext/api.json +4 -4
  104. package/data/llms/primitive/components/knob/api.json +19 -19
  105. package/data/llms/primitive/components/label/api.json +3 -3
  106. package/data/llms/primitive/components/listbox/api.json +57 -57
  107. package/data/llms/primitive/components/menu/api.json +87 -279
  108. package/data/llms/primitive/components/message/api.json +22 -22
  109. package/data/llms/primitive/components/metergroup/api.json +27 -27
  110. package/data/llms/primitive/components/navigationmenu/api.json +8 -8
  111. package/data/llms/primitive/components/paginator/api.json +43 -43
  112. package/data/llms/primitive/components/panel/api.json +34 -34
  113. package/data/llms/primitive/components/popover/api.json +67 -67
  114. package/data/llms/primitive/components/portal/api.json +4 -4
  115. package/data/llms/primitive/components/progressbar/api.json +22 -22
  116. package/data/llms/primitive/components/progressspinner/api.json +18 -18
  117. package/data/llms/primitive/components/radiobutton/api.json +16 -16
  118. package/data/llms/primitive/components/rating/api.json +20 -20
  119. package/data/llms/primitive/components/scrollarea/api.json +23 -23
  120. package/data/llms/primitive/components/select/api.json +95 -95
  121. package/data/llms/primitive/components/sidebar/api.json +88 -88
  122. package/data/llms/primitive/components/sidebar.md +2 -1
  123. package/data/llms/primitive/components/skeleton/api.json +3 -3
  124. package/data/llms/primitive/components/slider/api.json +22 -22
  125. package/data/llms/primitive/components/speeddial/api.json +22 -22
  126. package/data/llms/primitive/components/splitter/api.json +18 -18
  127. package/data/llms/primitive/components/stepper/api.json +64 -64
  128. package/data/llms/primitive/components/tabs/api.json +51 -51
  129. package/data/llms/primitive/components/tag/api.json +3 -3
  130. package/data/llms/primitive/components/terminal/api.json +44 -44
  131. package/data/llms/primitive/components/textarea/api.json +4 -4
  132. package/data/llms/primitive/components/timeline/api.json +27 -27
  133. package/data/llms/primitive/components/toast/api.json +48 -48
  134. package/data/llms/primitive/components/togglebutton/api.json +10 -10
  135. package/data/llms/primitive/components/togglebuttongroup/api.json +5 -5
  136. package/data/llms/primitive/components/toggleswitch/api.json +12 -12
  137. package/data/llms/primitive/components/toolbar/api.json +15 -15
  138. package/data/llms/primitive/components/tooltip/api.json +52 -52
  139. package/data/llms/primitive/components/tree/api.json +73 -73
  140. package/data/llms/primitive/components/visuallyhidden/api.json +3 -3
  141. package/data/llms/primitive/guides/migration/updating-to-v11.md +2 -2
  142. package/data/llms/styled/add-ons/designer/ci.md +7 -7
  143. package/data/llms/styled/add-ons/uikit/guide/v3.md +1 -0
  144. package/data/llms/styled/components/button/api.json +8 -8
  145. package/data/llms/styled/components/carousel.md +65 -0
  146. package/data/llms/styled/components/datatable.md +94 -84
  147. package/data/llms/styled/components/floatlabel/api.json +3 -3
  148. package/data/llms/styled/components/fluid/api.json +3 -3
  149. package/data/llms/styled/components/iconfield/api.json +7 -7
  150. package/data/llms/styled/components/iftalabel/api.json +3 -3
  151. package/data/llms/styled/components/inputcolor.md +3 -0
  152. package/data/llms/styled/components/inputgroup/api.json +7 -7
  153. package/data/llms/styled/components/label/api.json +3 -3
  154. package/data/llms/styled/components/organizationchart/api.json +33 -33
  155. package/data/llms/styled/components/rating/api.json +11 -11
  156. package/data/llms/styled/components/select.md +6 -0
  157. package/data/llms/styled/components/sidebar.md +12 -8
  158. package/data/llms/styled/components/tree.md +5 -0
  159. package/data/llms/styled/components/treetable.md +171 -62
  160. package/data/llms/styled/guides/configuration.md +25 -0
  161. package/data/llms/styled/guides/migration/updating-to-v11.md +2 -2
  162. package/data/llms/styled/guides/theming/tailwind.md +25 -0
  163. package/data/llms/tailwind/components/button/api.json +8 -8
  164. package/data/llms/tailwind/components/datatable.md +33 -42
  165. package/data/llms/tailwind/components/inputgroup.md +0 -1
  166. package/data/llms/tailwind/components/select.md +3 -0
  167. package/data/llms/tailwind/components/sidebar.md +16 -11
  168. package/data/manifest.json +773 -778
  169. package/data/mcp-data.json +5 -29
  170. package/dist/index.d.ts +7 -2
  171. package/dist/index.js +1 -1
  172. package/package.json +9 -8
  173. package/data/llms/headless/guides/misc/locale.md +0 -280
  174. package/data/llms/primitive/guides/misc/locale.md +0 -280
  175. package/data/llms/styled/guides/installation/configuration.md +0 -135
  176. package/data/llms/styled/guides/misc/locale.md +0 -280
  177. package/data/llms/tailwind/guides/misc/locale.md +0 -280
  178. 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
  },
@@ -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
  {
@@ -37,19 +37,19 @@
37
37
  },
38
38
  {
39
39
  "name": "style",
40
- "type": "CSSProperties | ((instance?: RatingOptionInstance) => CSSProperties)",
40
+ "type": "CSSProperties | ((instance?: RatingOptionInstance) => 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?: RatingOptionInstance) => string)",
46
+ "type": "string | ((instance?: RatingOptionInstance) => 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
  },
@@ -147,7 +147,7 @@
147
147
  },
148
148
  {
149
149
  "name": "optionRef",
150
- "type": "RefObject<Element>",
150
+ "type": "RefObject<null | Element>",
151
151
  "default": "",
152
152
  "description": "Ref to the option's root DOM element, used internally for pointer position calculations."
153
153
  },
@@ -189,7 +189,7 @@
189
189
  },
190
190
  {
191
191
  "name": "halfInputProps",
192
- "type": "InputHTMLAttributes<HTMLInputElement>",
192
+ "type": "null | InputHTMLAttributes<HTMLInputElement>",
193
193
  "default": "",
194
194
  "description": "Pre-built props for the half-value sr-only radio input. Null when allowHalf is false."
195
195
  },
@@ -201,7 +201,7 @@
201
201
  },
202
202
  {
203
203
  "name": "rating",
204
- "type": "RatingRootInstance",
204
+ "type": "undefined | null | RatingRootInstance",
205
205
  "default": "",
206
206
  "description": "The parent Rating component instance."
207
207
  }
@@ -310,19 +310,19 @@
310
310
  },
311
311
  {
312
312
  "name": "style",
313
- "type": "CSSProperties | ((instance?: RatingRootInstance) => CSSProperties)",
313
+ "type": "CSSProperties | ((instance?: RatingRootInstance) => undefined | CSSProperties)",
314
314
  "default": "",
315
315
  "description": "The style to apply to the component."
316
316
  },
317
317
  {
318
318
  "name": "className",
319
- "type": "string | ((instance?: RatingRootInstance) => string)",
319
+ "type": "string | ((instance?: RatingRootInstance) => undefined | string)",
320
320
  "default": "",
321
321
  "description": "The class name to apply to the component."
322
322
  },
323
323
  {
324
324
  "name": "as",
325
- "type": "string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
325
+ "type": "null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>",
326
326
  "default": "",
327
327
  "description": "The component type to render."
328
328
  },
@@ -512,7 +512,7 @@
512
512
  },
513
513
  {
514
514
  "name": "resolvePointerValue",
515
- "type": "(e: MouseEvent<Element, MouseEvent> | PointerEvent<Element>, optionEl: Element, idx: number) => number",
515
+ "type": "(e: MouseEvent<Element, MouseEvent> | PointerEvent<Element>, optionEl: null | Element, idx: number) => number",
516
516
  "default": "",
517
517
  "description": "Resolves the value to set from a pointer event, taking allowHalf and element position into account."
518
518
  },
@@ -728,7 +728,7 @@
728
728
  },
729
729
  {
730
730
  "name": "resolvePointerValue",
731
- "type": "(e: MouseEvent<Element, MouseEvent> | PointerEvent<Element>, optionEl: Element, idx: number) => number",
731
+ "type": "(e: MouseEvent<Element, MouseEvent> | PointerEvent<Element>, optionEl: null | Element, idx: number) => number",
732
732
  "default": "",
733
733
  "description": "Resolves the value to set from a pointer event, taking allowHalf and element position into account."
734
734
  },
@@ -2008,11 +2008,14 @@ const nodes: TreeNodeData[] = [
2008
2008
  function findPath(list: TreeNodeData[], key: string, trail: string[] = []): { path: string[]; label: string } | undefined {
2009
2009
  for (const node of list) {
2010
2010
  if (node.key === key) return { path: trail, label: node.label as string };
2011
+
2011
2012
  if (node.children) {
2012
2013
  const found = findPath(node.children, key, [...trail, node.key as string]);
2014
+
2013
2015
  if (found) return found;
2014
2016
  }
2015
2017
  }
2018
+
2016
2019
  return undefined;
2017
2020
  }
2018
2021
 
@@ -2027,9 +2030,12 @@ export default function TreeDemo() {
2027
2030
  // Expand the path to the selected node when the popup opens.
2028
2031
  const onOpenChange = (e: SelectOpenChangeEvent) => {
2029
2032
  const isOpen = !!e.value;
2033
+
2030
2034
  setOpen(isOpen);
2035
+
2031
2036
  if (isOpen && selectedInfo) {
2032
2037
  const next: TreeExpandedKeys = {};
2038
+
2033
2039
  for (const key of selectedInfo.path) next[key] = true;
2034
2040
  setExpandedKeys(next);
2035
2041
  }