@commercetools/nimbus-mcp 3.0.0 → 3.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 (181) hide show
  1. package/data/docs/route-manifest.json +1407 -794
  2. package/data/docs/routes/components-data-display-data-table.json +66 -34
  3. package/data/docs/routes/components-data-display-draggable-list.json +62 -7
  4. package/data/docs/routes/components-inputs-checkbox.json +2 -2
  5. package/data/docs/routes/components-layout-splitter.json +654 -0
  6. package/data/docs/routes/components-utilities-region.json +265 -0
  7. package/data/docs/routes/home-getting-started-bundler-plugins.json +248 -0
  8. package/data/docs/routes/hooks-usedraganddrop.json +310 -0
  9. package/data/docs/routes/patterns-actions.json +78 -0
  10. package/data/docs/routes/patterns-dialogs-confirmation-dialog.json +391 -0
  11. package/data/docs/routes/patterns-dialogs-form-dialog.json +358 -0
  12. package/data/docs/routes/patterns-dialogs.json +2 -2
  13. package/data/docs/routes/patterns-pages-public-page-layout.json +371 -0
  14. package/data/docs/routes/patterns-pages.json +78 -0
  15. package/data/docs/search-index.json +1 -1
  16. package/data/docs/types/AccordionContent.json +32 -32
  17. package/data/docs/types/AccordionHeader.json +102 -102
  18. package/data/docs/types/AccordionItem.json +28 -28
  19. package/data/docs/types/AccordionRoot.json +15 -15
  20. package/data/docs/types/AlertDescription.json +8 -8
  21. package/data/docs/types/AlertDismissButton.json +89 -89
  22. package/data/docs/types/AlertTitle.json +8 -8
  23. package/data/docs/types/Avatar.json +2 -2
  24. package/data/docs/types/Badge.json +2 -2
  25. package/data/docs/types/Body.json +6 -6
  26. package/data/docs/types/Box.json +6 -6
  27. package/data/docs/types/Button.json +97 -97
  28. package/data/docs/types/Calendar.json +111 -65
  29. package/data/docs/types/Caption.json +6 -6
  30. package/data/docs/types/CardRoot.json +2 -2
  31. package/data/docs/types/Cell.json +20 -20
  32. package/data/docs/types/Checkbox.json +99 -99
  33. package/data/docs/types/Code.json +10 -10
  34. package/data/docs/types/CollapsibleMotionContent.json +2 -2
  35. package/data/docs/types/CollapsibleMotionRoot.json +2 -2
  36. package/data/docs/types/CollapsibleMotionTrigger.json +4 -4
  37. package/data/docs/types/Column.json +8 -8
  38. package/data/docs/types/ColumnGroup.json +8 -8
  39. package/data/docs/types/ColumnHeader.json +18 -18
  40. package/data/docs/types/ComboBoxListBox.json +80 -80
  41. package/data/docs/types/ComboBoxOption.json +77 -77
  42. package/data/docs/types/ComboBoxPopover.json +77 -77
  43. package/data/docs/types/ComboBoxRoot.json +8 -8
  44. package/data/docs/types/ComboBoxSection.json +29 -29
  45. package/data/docs/types/ComboBoxTrigger.json +6 -6
  46. package/data/docs/types/ConfirmationDialog.json +224 -0
  47. package/data/docs/types/Content.json +2 -2
  48. package/data/docs/types/DataTable.json +17 -2
  49. package/data/docs/types/DataTableBody.json +24 -24
  50. package/data/docs/types/DataTableHeader.json +31 -31
  51. package/data/docs/types/DataTableRoot.json +17 -2
  52. package/data/docs/types/DataTableTable.json +35 -20
  53. package/data/docs/types/DateInput.json +84 -84
  54. package/data/docs/types/DatePicker.json +65 -65
  55. package/data/docs/types/DateRangePicker.json +99 -99
  56. package/data/docs/types/DateRangePickerField.json +99 -99
  57. package/data/docs/types/DefaultPageBackLink.json +16 -16
  58. package/data/docs/types/DefaultPageRoot.json +2 -2
  59. package/data/docs/types/DialogCloseTrigger.json +87 -87
  60. package/data/docs/types/DialogTrigger.json +2 -2
  61. package/data/docs/types/DragAndDropItemData.json +9 -0
  62. package/data/docs/types/DragAndDropProps.json +9 -0
  63. package/data/docs/types/DraggableListField.json +159 -70
  64. package/data/docs/types/DraggableListItem.json +63 -63
  65. package/data/docs/types/DraggableListRoot.json +159 -70
  66. package/data/docs/types/DrawerCloseTrigger.json +87 -87
  67. package/data/docs/types/DrawerTrigger.json +2 -2
  68. package/data/docs/types/FieldErrors.json +2 -2
  69. package/data/docs/types/Flex.json +22 -22
  70. package/data/docs/types/Footer.json +6 -6
  71. package/data/docs/types/FormDialog.json +198 -0
  72. package/data/docs/types/FormFieldRoot.json +2 -2
  73. package/data/docs/types/Grid.json +24 -24
  74. package/data/docs/types/Group.json +12 -12
  75. package/data/docs/types/Header.json +6 -6
  76. package/data/docs/types/Heading.json +8 -8
  77. package/data/docs/types/Icon.json +4 -4
  78. package/data/docs/types/IconButton.json +97 -97
  79. package/data/docs/types/IconToggleButton.json +84 -84
  80. package/data/docs/types/Image.json +30 -30
  81. package/data/docs/types/Indicator.json +6 -6
  82. package/data/docs/types/InlineSvg.json +2 -2
  83. package/data/docs/types/Item.json +6 -6
  84. package/data/docs/types/Kbd.json +8 -8
  85. package/data/docs/types/Link.json +31 -31
  86. package/data/docs/types/ListIndicator.json +6 -6
  87. package/data/docs/types/ListItem.json +6 -6
  88. package/data/docs/types/ListRoot.json +10 -10
  89. package/data/docs/types/LoadingSpinner.json +2 -2
  90. package/data/docs/types/MakeElementFocusable.json +19 -19
  91. package/data/docs/types/MenuItem.json +75 -75
  92. package/data/docs/types/MenuRoot.json +63 -63
  93. package/data/docs/types/MenuSection.json +35 -54
  94. package/data/docs/types/MenuSubmenuTrigger.json +5 -5
  95. package/data/docs/types/MenuTrigger.json +102 -102
  96. package/data/docs/types/MultilineTextInput.json +134 -134
  97. package/data/docs/types/MultilineTextInputField.json +131 -131
  98. package/data/docs/types/NumberInput.json +100 -100
  99. package/data/docs/types/NumberInputField.json +95 -95
  100. package/data/docs/types/PageContentColumn.json +6 -6
  101. package/data/docs/types/PageContentRoot.json +6 -6
  102. package/data/docs/types/PasswordInput.json +129 -129
  103. package/data/docs/types/PasswordInputField.json +129 -129
  104. package/data/docs/types/ProgressBar.json +14 -14
  105. package/data/docs/types/PublicPageLayout.json +99 -0
  106. package/data/docs/types/RadioInputOption.json +64 -64
  107. package/data/docs/types/RadioInputRoot.json +55 -55
  108. package/data/docs/types/RangeCalendar.json +90 -71
  109. package/data/docs/types/Region.json +114 -0
  110. package/data/docs/types/RegionProvider.json +25 -0
  111. package/data/docs/types/RegionTarget.json +112 -0
  112. package/data/docs/types/RichTextInput.json +2 -2
  113. package/data/docs/types/Root.json +10 -10
  114. package/data/docs/types/Row.json +6 -6
  115. package/data/docs/types/SPLITTER_SIZE_TOKENS.json +9 -0
  116. package/data/docs/types/ScrollArea.json +2 -2
  117. package/data/docs/types/SearchInput.json +136 -136
  118. package/data/docs/types/SearchInputField.json +131 -131
  119. package/data/docs/types/SelectOption.json +66 -66
  120. package/data/docs/types/SelectOptionGroup.json +22 -22
  121. package/data/docs/types/SelectOptions.json +74 -74
  122. package/data/docs/types/SelectRoot.json +102 -102
  123. package/data/docs/types/Separator.json +4 -4
  124. package/data/docs/types/SimpleGrid.json +28 -28
  125. package/data/docs/types/SplitButton.json +12 -12
  126. package/data/docs/types/Splitter.json +12 -0
  127. package/data/docs/types/SplitterAside.json +27 -0
  128. package/data/docs/types/SplitterHandle.json +27 -0
  129. package/data/docs/types/SplitterMain.json +27 -0
  130. package/data/docs/types/SplitterRoot.json +271 -0
  131. package/data/docs/types/SplitterSizeToken.json +9 -0
  132. package/data/docs/types/Stack.json +2 -2
  133. package/data/docs/types/StepsNextTrigger.json +2 -2
  134. package/data/docs/types/StepsPrevTrigger.json +2 -2
  135. package/data/docs/types/StepsRoot.json +2 -2
  136. package/data/docs/types/StepsTrigger.json +2 -2
  137. package/data/docs/types/Switch.json +38 -38
  138. package/data/docs/types/TabNavItem.json +18 -18
  139. package/data/docs/types/TabNavRoot.json +2 -2
  140. package/data/docs/types/TableBody.json +6 -6
  141. package/data/docs/types/TableCaption.json +6 -6
  142. package/data/docs/types/TableCell.json +20 -20
  143. package/data/docs/types/TableColumn.json +8 -8
  144. package/data/docs/types/TableColumnGroup.json +8 -8
  145. package/data/docs/types/TableColumnHeader.json +18 -18
  146. package/data/docs/types/TableFooter.json +6 -6
  147. package/data/docs/types/TableHeader.json +6 -6
  148. package/data/docs/types/TableRoot.json +32 -32
  149. package/data/docs/types/TableRow.json +6 -6
  150. package/data/docs/types/TableScrollArea.json +6 -6
  151. package/data/docs/types/TabsTab.json +2 -2
  152. package/data/docs/types/TagGroupRoot.json +27 -27
  153. package/data/docs/types/TagGroupTag.json +68 -68
  154. package/data/docs/types/TagGroupTagList.json +18 -18
  155. package/data/docs/types/Text.json +8 -8
  156. package/data/docs/types/TextInput.json +132 -132
  157. package/data/docs/types/TextInputField.json +129 -129
  158. package/data/docs/types/TimeInput.json +78 -78
  159. package/data/docs/types/ToggleButton.json +86 -86
  160. package/data/docs/types/ToggleButtonGroupButton.json +33 -33
  161. package/data/docs/types/ToggleButtonGroupRoot.json +20 -20
  162. package/data/docs/types/Toolbar.json +12 -12
  163. package/data/docs/types/TooltipContent.json +31 -31
  164. package/data/docs/types/TooltipRoot.json +18 -18
  165. package/data/docs/types/Trigger.json +4 -4
  166. package/data/docs/types/UseDragAndDropOptions.json +9 -0
  167. package/data/docs/types/VisuallyHidden.json +7 -7
  168. package/data/docs/types/createArrayHandlers.json +12 -0
  169. package/data/docs/types/createItemsFromCsvDrop.json +833 -0
  170. package/data/docs/types/createItemsFromDirectoryDrop.json +833 -0
  171. package/data/docs/types/createItemsFromFileDrop.json +833 -0
  172. package/data/docs/types/createItemsFromImageDrop.json +833 -0
  173. package/data/docs/types/createItemsFromJsonDrop.json +833 -0
  174. package/data/docs/types/createItemsFromTextDrop.json +12 -0
  175. package/data/docs/types/createListDataHandlers.json +102 -0
  176. package/data/docs/types/manifest.json +30 -2
  177. package/data/docs/types/useDragAndDrop.json +174 -0
  178. package/data/docs/types/useFocusInputOnFieldClick.json +11 -0
  179. package/data/docs/types/useRegion.json +1052 -0
  180. package/data/docs/types/useResponsiveSplitterSizes.json +143 -0
  181. package/package.json +6 -6
@@ -0,0 +1,12 @@
1
+ {
2
+ "tags": {
3
+ "param": "items - Raw drop items\ntype - The text MIME type to extract.",
4
+ "default": "\"text/plain\""
5
+ },
6
+ "filePath": "/home/runner/work/nimbus/nimbus/packages/nimbus/src/index.ts",
7
+ "description": "Extracts plain text items from a drop.\nItems whose `types` set does not include `type` are silently skipped.",
8
+ "displayName": "createItemsFromTextDrop",
9
+ "methods": [],
10
+ "props": {},
11
+ "supportsStyleProps": false
12
+ }
@@ -0,0 +1,102 @@
1
+ {
2
+ "tags": {
3
+ "example": "```tsx\nconst list = useListData({ initialItems, getKey });\nconst { dragAndDropHooks } = useDragAndDrop({\n ...createListDataHandlers(list),\n});\n```"
4
+ },
5
+ "filePath": "/home/runner/work/nimbus/nimbus/packages/nimbus/src/index.ts",
6
+ "description": "Creates state mutation callbacks for use with React Aria's `useListData`.\nSpread the result into `useDragAndDrop` options.",
7
+ "displayName": "createListDataHandlers",
8
+ "methods": [],
9
+ "props": {
10
+ "insertBefore": {
11
+ "defaultValue": null,
12
+ "description": "",
13
+ "name": "insertBefore",
14
+ "declarations": [
15
+ {
16
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/state-handlers.ts",
17
+ "name": "TypeLiteral"
18
+ }
19
+ ],
20
+ "required": true,
21
+ "type": {
22
+ "name": "(key: Key, ...items: T[]) => void"
23
+ }
24
+ },
25
+ "insertAfter": {
26
+ "defaultValue": null,
27
+ "description": "",
28
+ "name": "insertAfter",
29
+ "declarations": [
30
+ {
31
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/state-handlers.ts",
32
+ "name": "TypeLiteral"
33
+ }
34
+ ],
35
+ "required": true,
36
+ "type": {
37
+ "name": "(key: Key, ...items: T[]) => void"
38
+ }
39
+ },
40
+ "append": {
41
+ "defaultValue": null,
42
+ "description": "",
43
+ "name": "append",
44
+ "declarations": [
45
+ {
46
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/state-handlers.ts",
47
+ "name": "TypeLiteral"
48
+ }
49
+ ],
50
+ "required": true,
51
+ "type": {
52
+ "name": "(...items: T[]) => void"
53
+ }
54
+ },
55
+ "moveBefore": {
56
+ "defaultValue": null,
57
+ "description": "",
58
+ "name": "moveBefore",
59
+ "declarations": [
60
+ {
61
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/state-handlers.ts",
62
+ "name": "TypeLiteral"
63
+ }
64
+ ],
65
+ "required": true,
66
+ "type": {
67
+ "name": "(key: Key, keys: Set<Key>) => void"
68
+ }
69
+ },
70
+ "moveAfter": {
71
+ "defaultValue": null,
72
+ "description": "",
73
+ "name": "moveAfter",
74
+ "declarations": [
75
+ {
76
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/state-handlers.ts",
77
+ "name": "TypeLiteral"
78
+ }
79
+ ],
80
+ "required": true,
81
+ "type": {
82
+ "name": "(key: Key, keys: Set<Key>) => void"
83
+ }
84
+ },
85
+ "remove": {
86
+ "defaultValue": null,
87
+ "description": "",
88
+ "name": "remove",
89
+ "declarations": [
90
+ {
91
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/state-handlers.ts",
92
+ "name": "TypeLiteral"
93
+ }
94
+ ],
95
+ "required": true,
96
+ "type": {
97
+ "name": "(...keys: Key[]) => void"
98
+ }
99
+ }
100
+ },
101
+ "supportsStyleProps": false
102
+ }
@@ -262,13 +262,40 @@
262
262
  "ModalPageTabNav": "ModalPageTabNav",
263
263
  "ModalPageContent": "ModalPageContent",
264
264
  "ModalPageFooter": "ModalPageFooter",
265
+ "useRegion": "useRegion",
266
+ "Region": "Region",
267
+ "RegionTarget": "RegionTarget",
268
+ "RegionProvider": "RegionProvider",
269
+ "useResponsiveSplitterSizes": "useResponsiveSplitterSizes",
270
+ "SPLITTER_SIZE_TOKENS": "SPLITTER_SIZE_TOKENS",
271
+ "SplitterSizeToken": "SplitterSizeToken",
272
+ "Splitter": "Splitter",
273
+ "SplitterRoot": "SplitterRoot",
274
+ "SplitterAside": "SplitterAside",
275
+ "SplitterMain": "SplitterMain",
276
+ "SplitterHandle": "SplitterHandle",
265
277
  "useColorScheme": "useColorScheme",
266
278
  "useColorMode": "useColorMode",
267
279
  "useColorModeValue": "useColorModeValue",
268
280
  "useLocalizedStringFormatter": "useLocalizedStringFormatter",
269
281
  "LocalizedStringFormatter": "LocalizedStringFormatter",
270
- "InfoDialog": "InfoDialog",
282
+ "useDragAndDrop": "useDragAndDrop",
283
+ "DragAndDropProps": "DragAndDropProps",
284
+ "DragAndDropItemData": "DragAndDropItemData",
285
+ "UseDragAndDropOptions": "UseDragAndDropOptions",
286
+ "createItemsFromTextDrop": "createItemsFromTextDrop",
287
+ "createItemsFromFileDrop": "createItemsFromFileDrop",
288
+ "createItemsFromDirectoryDrop": "createItemsFromDirectoryDrop",
289
+ "createItemsFromJsonDrop": "createItemsFromJsonDrop",
290
+ "createItemsFromImageDrop": "createItemsFromImageDrop",
291
+ "createItemsFromCsvDrop": "createItemsFromCsvDrop",
292
+ "createListDataHandlers": "createListDataHandlers",
293
+ "createArrayHandlers": "createArrayHandlers",
294
+ "useFocusInputOnFieldClick": "useFocusInputOnFieldClick",
271
295
  "FormActionBar": "FormActionBar",
296
+ "ConfirmationDialog": "ConfirmationDialog",
297
+ "InfoDialog": "InfoDialog",
298
+ "FormDialog": "FormDialog",
272
299
  "DateRangePickerField": "DateRangePickerField",
273
300
  "MoneyInputField": "MoneyInputField",
274
301
  "MoneyInputFieldProps": "MoneyInputFieldProps",
@@ -279,5 +306,6 @@
279
306
  "SearchInputField": "SearchInputField",
280
307
  "PasswordInputField": "PasswordInputField",
281
308
  "PasswordInputFieldProps": "PasswordInputFieldProps",
282
- "TextInputField": "TextInputField"
309
+ "TextInputField": "TextInputField",
310
+ "PublicPageLayout": "PublicPageLayout"
283
311
  }
@@ -0,0 +1,174 @@
1
+ {
2
+ "tags": {},
3
+ "filePath": "/home/runner/work/nimbus/nimbus/packages/nimbus/src/index.ts",
4
+ "description": "Shared drag-and-drop hook for Nimbus collection components.\n\nWraps React Aria's `useDragAndDrop` with namespace isolation, external drop\nsupport, outgoing format serialization, and auto-keying. Returns\n`{ dragAndDropHooks }` to pass to any React Aria collection component.",
5
+ "displayName": "useDragAndDrop",
6
+ "methods": [],
7
+ "props": {
8
+ "dragNamespace": {
9
+ "defaultValue": null,
10
+ "description": "Isolate drag-and-drop to collections sharing the same namespace.\nWhen set, only collections with a matching `dragNamespace` can exchange items.",
11
+ "name": "dragNamespace",
12
+ "declarations": [
13
+ {
14
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/use-drag-and-drop.types.ts",
15
+ "name": "TypeLiteral"
16
+ }
17
+ ],
18
+ "required": false,
19
+ "type": {
20
+ "name": "string"
21
+ }
22
+ },
23
+ "onExternalDrop": {
24
+ "defaultValue": null,
25
+ "description": "Convert external drops (text, files, directories) into collection items.\nWhen provided, the collection accepts drops of the types specified in `acceptExternalTypes`.",
26
+ "name": "onExternalDrop",
27
+ "declarations": [
28
+ {
29
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/use-drag-and-drop.types.ts",
30
+ "name": "TypeLiteral"
31
+ }
32
+ ],
33
+ "required": false,
34
+ "type": {
35
+ "name": "((items: DropItem[]) => T[] | Promise<T[]>)"
36
+ }
37
+ },
38
+ "acceptExternalTypes": {
39
+ "defaultValue": null,
40
+ "description": "Drag types to accept from external sources.\nSupports MIME types (`\"text/plain\"`), custom strings, or `DIRECTORY_DRAG_TYPE` (symbol).\nOnly effective when `onExternalDrop` is provided.",
41
+ "name": "acceptExternalTypes",
42
+ "declarations": [
43
+ {
44
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/use-drag-and-drop.types.ts",
45
+ "name": "TypeLiteral"
46
+ }
47
+ ],
48
+ "required": false,
49
+ "type": {
50
+ "name": "(string | symbol)[]"
51
+ }
52
+ },
53
+ "externalDropOperation": {
54
+ "defaultValue": {
55
+ "value": "\"copy\""
56
+ },
57
+ "description": "Drop operation for items from external sources.\nInternal reorders always use `\"move\"`. Returns `\"cancel\"` when the\nsource does not include this operation in its `allowedOperations`.",
58
+ "name": "externalDropOperation",
59
+ "declarations": [
60
+ {
61
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/use-drag-and-drop.types.ts",
62
+ "name": "TypeLiteral"
63
+ }
64
+ ],
65
+ "required": false,
66
+ "type": {
67
+ "name": "enum",
68
+ "raw": "\"link\" | \"copy\" | \"move\"",
69
+ "value": [
70
+ {
71
+ "value": "\"link\""
72
+ },
73
+ {
74
+ "value": "\"copy\""
75
+ },
76
+ {
77
+ "value": "\"move\""
78
+ }
79
+ ]
80
+ }
81
+ },
82
+ "serializeDragItem": {
83
+ "defaultValue": null,
84
+ "description": "Additional format representations for outgoing drags.\nEach key/value pair is added alongside the internal format when items are dragged out.",
85
+ "name": "serializeDragItem",
86
+ "declarations": [
87
+ {
88
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/use-drag-and-drop.types.ts",
89
+ "name": "TypeLiteral"
90
+ }
91
+ ],
92
+ "required": false,
93
+ "type": {
94
+ "name": "((item: T) => Record<string, string>)"
95
+ }
96
+ },
97
+ "dataFormatBase": {
98
+ "defaultValue": null,
99
+ "description": "Override the base data format string used for internal serialization.\nDefaults to `\"nimbus-collection-item\"`. DraggableList passes its own\nvalue for backward compatibility.",
100
+ "name": "dataFormatBase",
101
+ "declarations": [
102
+ {
103
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/use-drag-and-drop.types.ts",
104
+ "name": "TypeLiteral"
105
+ }
106
+ ],
107
+ "required": false,
108
+ "type": {
109
+ "name": "string"
110
+ }
111
+ },
112
+ "onInsertItems": {
113
+ "defaultValue": null,
114
+ "description": "Insert items at a target position (before/after an existing item).",
115
+ "name": "onInsertItems",
116
+ "declarations": [
117
+ {
118
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/use-drag-and-drop.types.ts",
119
+ "name": "TypeLiteral"
120
+ }
121
+ ],
122
+ "required": false,
123
+ "type": {
124
+ "name": "((items: T[], target: ItemDropTarget) => void)"
125
+ }
126
+ },
127
+ "onAppendItems": {
128
+ "defaultValue": null,
129
+ "description": "Append items (drop on root / empty collection).",
130
+ "name": "onAppendItems",
131
+ "declarations": [
132
+ {
133
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/use-drag-and-drop.types.ts",
134
+ "name": "TypeLiteral"
135
+ }
136
+ ],
137
+ "required": false,
138
+ "type": {
139
+ "name": "((items: T[]) => void)"
140
+ }
141
+ },
142
+ "onReorder": {
143
+ "defaultValue": null,
144
+ "description": "Reorder items within the collection.",
145
+ "name": "onReorder",
146
+ "declarations": [
147
+ {
148
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/use-drag-and-drop.types.ts",
149
+ "name": "TypeLiteral"
150
+ }
151
+ ],
152
+ "required": false,
153
+ "type": {
154
+ "name": "((keys: Set<Key>, target: ItemDropTarget) => void)"
155
+ }
156
+ },
157
+ "onRemoveItems": {
158
+ "defaultValue": null,
159
+ "description": "Remove items from this collection after a successful external move.",
160
+ "name": "onRemoveItems",
161
+ "declarations": [
162
+ {
163
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/use-drag-and-drop.types.ts",
164
+ "name": "TypeLiteral"
165
+ }
166
+ ],
167
+ "required": false,
168
+ "type": {
169
+ "name": "((keys: Set<Key>) => void)"
170
+ }
171
+ }
172
+ },
173
+ "supportsStyleProps": false
174
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "tags": {
3
+ "param": "rootRef - Ref to the field's root/wrapper element\ninputRef - Ref to the inner `<input>` to focus"
4
+ },
5
+ "filePath": "/home/runner/work/nimbus/nimbus/packages/nimbus/src/index.ts",
6
+ "description": "Focuses the inner input when the user presses down on the surrounding field\nchrome (leading/trailing icons, padding, or empty space), mirroring the\nnative click-to-focus behavior of a bare `<input>` for composite field\ncomponents like TextInput and SearchInput.\n\nThe listener is attached natively to the root element rather than as an\n`onMouseDown` prop so it never clobbers a consumer-forwarded handler. Using\n`mousedown` (over `click`) lets us preventDefault before focus moves, avoiding\na focus/selection flicker. Clicks on the input itself or on interactive\nchildren (e.g. a clear button) are ignored so they keep their own behavior.",
7
+ "displayName": "useFocusInputOnFieldClick",
8
+ "methods": [],
9
+ "props": {},
10
+ "supportsStyleProps": false
11
+ }