@commercetools/nimbus-mcp 3.2.0 → 3.4.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/README.md +9 -1
- package/data/docs/route-manifest.json +1608 -143
- package/data/docs/routes/components-buttons-button.json +25 -2
- package/data/docs/routes/components-chat-chat-message-list.json +448 -0
- package/data/docs/routes/components-chat-chat-message.json +580 -0
- package/data/docs/routes/components-content-markdown.json +548 -0
- package/data/docs/routes/components-data-display-item-group.json +413 -0
- package/data/docs/routes/components-data-display-item.json +611 -0
- package/data/docs/routes/components-feedback-activity-indicator.json +396 -0
- package/data/docs/routes/components-feedback-skeleton.json +481 -0
- package/data/docs/routes/components-feedback-skeletoncircle.json +429 -0
- package/data/docs/routes/components-feedback-skeletontext.json +417 -0
- package/data/docs/routes/components-feedback-tooltip.json +23 -1
- package/data/docs/routes/components-inputs-drop-zone.json +562 -0
- package/data/docs/routes/components-inputs-file-trigger.json +421 -0
- package/data/docs/routes/components-inputs-range-slider.json +633 -0
- package/data/docs/routes/components-inputs-slider.json +611 -0
- package/data/docs/routes/components-layout-splitter.json +3 -3
- package/data/docs/routes/components-media-avatar.json +16 -5
- package/data/docs/routes/components-navigation-breadcrumbs.json +565 -0
- package/data/docs/routes/components-navigation-menu.json +1 -1
- package/data/docs/routes/components-navigation-tabnav.json +80 -14
- package/data/docs/routes/components-navigation-tabs.json +44 -11
- package/data/docs/routes/components-navigation-tree.json +445 -0
- package/data/docs/routes/home-getting-started-mcp-server-overview.json +2 -2
- package/data/docs/routes/home-getting-started-mcp-server-setup.json +2 -2
- package/data/docs/routes/icons.json +3 -3
- package/data/docs/routes/patterns-buttons-floating-action-button.json +392 -0
- package/data/docs/routes/patterns-buttons.json +58 -0
- package/data/docs/search-index.json +1 -1
- package/data/docs/types/AccordionContent.json +24 -24
- package/data/docs/types/AccordionHeader.json +88 -88
- package/data/docs/types/AccordionItem.json +20 -20
- package/data/docs/types/AccordionRoot.json +14 -14
- package/data/docs/types/ActivityIndicator.json +202 -0
- package/data/docs/types/AlertDescription.json +8 -8
- package/data/docs/types/AlertDismissButton.json +98 -81
- package/data/docs/types/AlertTitle.json +8 -8
- package/data/docs/types/Avatar.json +19 -2
- package/data/docs/types/Badge.json +2 -2
- package/data/docs/types/Body.json +6 -6
- package/data/docs/types/Box.json +6 -6
- package/data/docs/types/Breadcrumbs.json +12 -0
- package/data/docs/types/BreadcrumbsItem.json +296 -0
- package/data/docs/types/BreadcrumbsItemProps.json +9 -0
- package/data/docs/types/BreadcrumbsProps.json +9 -0
- package/data/docs/types/BreadcrumbsRoot.json +110 -0
- package/data/docs/types/Button.json +106 -89
- package/data/docs/types/Calendar.json +56 -56
- package/data/docs/types/Caption.json +6 -6
- package/data/docs/types/CardRoot.json +2 -2
- package/data/docs/types/Cell.json +6 -6
- package/data/docs/types/ChatMessage.json +12 -0
- package/data/docs/types/ChatMessageActions.json +42 -0
- package/data/docs/types/ChatMessageAvatar.json +140 -0
- package/data/docs/types/ChatMessageBody.json +42 -0
- package/data/docs/types/ChatMessageList.json +12 -0
- package/data/docs/types/ChatMessageListItem.json +42 -0
- package/data/docs/types/ChatMessageListRoot.json +78 -0
- package/data/docs/types/ChatMessageMeta.json +42 -0
- package/data/docs/types/ChatMessageRoot.json +119 -0
- package/data/docs/types/ChatMessageTyping.json +42 -0
- package/data/docs/types/Checkbox.json +86 -86
- package/data/docs/types/Code.json +11 -11
- package/data/docs/types/Column.json +6 -6
- package/data/docs/types/ColumnGroup.json +6 -6
- package/data/docs/types/ColumnHeader.json +6 -6
- package/data/docs/types/ComboBoxListBox.json +70 -70
- package/data/docs/types/ComboBoxOption.json +64 -64
- package/data/docs/types/ComboBoxPopover.json +91 -70
- package/data/docs/types/ComboBoxRoot.json +8 -8
- package/data/docs/types/ComboBoxSection.json +24 -24
- package/data/docs/types/ComboBoxTrigger.json +6 -6
- package/data/docs/types/DataTable.json +2 -2
- package/data/docs/types/DataTableBody.json +20 -20
- package/data/docs/types/DataTableHeader.json +25 -25
- package/data/docs/types/DataTableRoot.json +2 -2
- package/data/docs/types/DataTableTable.json +6 -6
- package/data/docs/types/DateInput.json +73 -73
- package/data/docs/types/DatePicker.json +58 -58
- package/data/docs/types/DateRangePicker.json +86 -86
- package/data/docs/types/DateRangePickerField.json +86 -86
- package/data/docs/types/DefaultPageRoot.json +2 -2
- package/data/docs/types/DialogCloseTrigger.json +96 -79
- package/data/docs/types/DraggableListField.json +88 -60
- package/data/docs/types/DraggableListItem.json +52 -52
- package/data/docs/types/DraggableListRoot.json +88 -60
- package/data/docs/types/DrawerCloseTrigger.json +96 -79
- package/data/docs/types/DropZone.json +161 -0
- package/data/docs/types/FieldErrors.json +2 -2
- package/data/docs/types/FileTrigger.json +130 -0
- package/data/docs/types/Flex.json +22 -22
- package/data/docs/types/FloatingActionButton.json +1036 -0
- package/data/docs/types/Footer.json +6 -6
- package/data/docs/types/FormActionBar.json +1 -1
- package/data/docs/types/FormFieldRoot.json +2 -2
- package/data/docs/types/Grid.json +24 -24
- package/data/docs/types/Group.json +12 -12
- package/data/docs/types/Header.json +6 -6
- package/data/docs/types/Heading.json +8 -8
- package/data/docs/types/Icon.json +4 -4
- package/data/docs/types/IconButton.json +106 -89
- package/data/docs/types/IconToggleButton.json +71 -71
- package/data/docs/types/Image.json +43 -43
- package/data/docs/types/Indicator.json +6 -6
- package/data/docs/types/InlineSvg.json +2 -2
- package/data/docs/types/Item.json +6 -6
- package/data/docs/types/ItemActions.json +27 -0
- package/data/docs/types/ItemContent.json +27 -0
- package/data/docs/types/ItemDescription.json +27 -0
- package/data/docs/types/ItemFooter.json +27 -0
- package/data/docs/types/ItemGroup.json +12 -0
- package/data/docs/types/ItemGroupRoot.json +27 -0
- package/data/docs/types/ItemGroupSeparator.json +27 -0
- package/data/docs/types/ItemHeader.json +27 -0
- package/data/docs/types/ItemMedia.json +56 -0
- package/data/docs/types/ItemRoot.json +239 -0
- package/data/docs/types/ItemTitle.json +27 -0
- package/data/docs/types/Kbd.json +8 -8
- package/data/docs/types/Link.json +14 -14
- package/data/docs/types/ListIndicator.json +6 -6
- package/data/docs/types/ListItem.json +6 -6
- package/data/docs/types/ListRoot.json +11 -11
- package/data/docs/types/LoadingSpinner.json +2 -2
- package/data/docs/types/MakeElementFocusable.json +18 -18
- package/data/docs/types/Markdown.json +183 -0
- package/data/docs/types/MenuItem.json +62 -62
- package/data/docs/types/MenuRoot.json +55 -55
- package/data/docs/types/MenuSection.json +30 -30
- package/data/docs/types/MenuSubmenuTrigger.json +4 -4
- package/data/docs/types/MenuTrigger.json +88 -88
- package/data/docs/types/MultilineTextInput.json +104 -104
- package/data/docs/types/MultilineTextInputField.json +102 -102
- package/data/docs/types/NumberInput.json +86 -86
- package/data/docs/types/NumberInputField.json +82 -82
- package/data/docs/types/PageContentColumn.json +6 -6
- package/data/docs/types/PageContentRoot.json +6 -6
- package/data/docs/types/PasswordInput.json +100 -100
- package/data/docs/types/PasswordInputField.json +100 -100
- package/data/docs/types/ProgressBar.json +13 -13
- package/data/docs/types/RadioInputOption.json +56 -56
- package/data/docs/types/RadioInputRoot.json +48 -48
- package/data/docs/types/RangeCalendar.json +58 -58
- package/data/docs/types/RangeSlider.json +337 -0
- package/data/docs/types/RangeSliderProps.json +9 -0
- package/data/docs/types/Region.json +6 -6
- package/data/docs/types/RegionTarget.json +6 -6
- package/data/docs/types/RichTextInput.json +2 -2
- package/data/docs/types/Root.json +11 -11
- package/data/docs/types/Row.json +6 -6
- package/data/docs/types/ScrollArea.json +2 -2
- package/data/docs/types/SearchInput.json +106 -106
- package/data/docs/types/SearchInputField.json +102 -102
- package/data/docs/types/SelectOption.json +54 -54
- package/data/docs/types/SelectOptionGroup.json +18 -18
- package/data/docs/types/SelectOptions.json +64 -64
- package/data/docs/types/SelectRoot.json +92 -92
- package/data/docs/types/Separator.json +4 -4
- package/data/docs/types/SimpleGrid.json +28 -28
- package/data/docs/types/Skeleton.json +129 -0
- package/data/docs/types/SkeletonCircle.json +103 -0
- package/data/docs/types/SkeletonCircleProps.json +9 -0
- package/data/docs/types/SkeletonProps.json +9 -0
- package/data/docs/types/SkeletonText.json +62 -0
- package/data/docs/types/SkeletonTextProps.json +9 -0
- package/data/docs/types/Slider.json +337 -0
- package/data/docs/types/SlidingIndicatorGeometry.json +9 -0
- package/data/docs/types/SlidingIndicatorRects.json +9 -0
- package/data/docs/types/SplitButton.json +16 -20
- package/data/docs/types/Stack.json +2 -2
- package/data/docs/types/StepsRoot.json +2 -2
- package/data/docs/types/Switch.json +34 -34
- package/data/docs/types/TabNavItem.json +5 -5
- package/data/docs/types/TabNavRoot.json +5 -5
- package/data/docs/types/TableBody.json +6 -6
- package/data/docs/types/TableCaption.json +6 -6
- package/data/docs/types/TableCell.json +6 -6
- package/data/docs/types/TableColumn.json +6 -6
- package/data/docs/types/TableColumnGroup.json +6 -6
- package/data/docs/types/TableColumnHeader.json +6 -6
- package/data/docs/types/TableFooter.json +6 -6
- package/data/docs/types/TableHeader.json +6 -6
- package/data/docs/types/TableRoot.json +19 -19
- package/data/docs/types/TableRow.json +6 -6
- package/data/docs/types/TableScrollArea.json +6 -6
- package/data/docs/types/TabsList.json +2 -2
- package/data/docs/types/TabsPanel.json +2 -2
- package/data/docs/types/TabsPanels.json +2 -2
- package/data/docs/types/TabsRoot.json +3 -3
- package/data/docs/types/TabsTab.json +2 -2
- package/data/docs/types/TagGroupRoot.json +24 -24
- package/data/docs/types/TagGroupTag.json +56 -56
- package/data/docs/types/TagGroupTagList.json +14 -14
- package/data/docs/types/Text.json +8 -8
- package/data/docs/types/TextInput.json +102 -102
- package/data/docs/types/TextInputField.json +100 -100
- package/data/docs/types/TimeInput.json +68 -68
- package/data/docs/types/ToggleButton.json +73 -73
- package/data/docs/types/ToggleButtonGroupButton.json +30 -30
- package/data/docs/types/ToggleButtonGroupRoot.json +20 -20
- package/data/docs/types/Toolbar.json +9 -9
- package/data/docs/types/TooltipContent.json +28 -28
- package/data/docs/types/TooltipRoot.json +16 -16
- package/data/docs/types/Tree.json +12 -0
- package/data/docs/types/TreeIndicator.json +828 -0
- package/data/docs/types/TreeItem.json +559 -0
- package/data/docs/types/TreeItemContent.json +27 -0
- package/data/docs/types/TreeRoot.json +636 -0
- package/data/docs/types/TreeSubTree.json +40 -0
- package/data/docs/types/VisuallyHidden.json +6 -6
- package/data/docs/types/createItemsFromCsvDrop.json +4 -4
- package/data/docs/types/createItemsFromDirectoryDrop.json +4 -4
- package/data/docs/types/createItemsFromFileDrop.json +4 -4
- package/data/docs/types/createItemsFromImageDrop.json +4 -4
- package/data/docs/types/createItemsFromJsonDrop.json +4 -4
- package/data/docs/types/manifest.json +50 -0
- package/data/docs/types/useRegion.json +2 -2
- package/data/docs/types/useSlidingIndicator.json +145 -0
- package/data/docs/types/useTree.json +267 -0
- package/data/tokens.json +21 -0
- package/data/uikit-tokens.json +894 -0
- package/dist/index.js +3298 -109
- package/package.json +8 -6
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tags": {
|
|
3
|
+
"see": "{@link https://nimbus-documentation.vercel.app/components/inputs/dropzone}",
|
|
4
|
+
"supportsStyleProps": ""
|
|
5
|
+
},
|
|
6
|
+
"filePath": "/home/runner/work/nimbus/nimbus/packages/nimbus/src/index.ts",
|
|
7
|
+
"description": "# DropZone\n\nAn area into which files (or other draggable data) can be dragged and\ndropped. DropZone does not itself provide a file picker — compose the\nNimbus `FileTrigger` component in its children for click-to-upload.\n\nFeatures:\n\n- Wraps React Aria's `DropZone` for full drag-and-drop behavior and\n keyboard accessibility\n- Renders a default upload icon and localized instruction label when no\n children are provided; children, when provided, fully replace that\n default (for example a composed `FileTrigger` + `Button`, or a\n dropped-file list)\n- Forwards `aria-label` / `aria-labelledby` straight to React Aria's\n `DropZone`, which applies them to its focusable element. An explicit\n label overrides only the accessible name — the default icon and visible\n instruction still render — because the default's visible text is opted\n out of the name via `slot={null}` and so never conflicts with it\n- Supports Nimbus style props",
|
|
8
|
+
"displayName": "DropZone",
|
|
9
|
+
"methods": [],
|
|
10
|
+
"props": {
|
|
11
|
+
"onDrop": {
|
|
12
|
+
"defaultValue": null,
|
|
13
|
+
"description": "Handler that is called when a valid drag is dropped on the drop target.",
|
|
14
|
+
"name": "onDrop",
|
|
15
|
+
"parent": {
|
|
16
|
+
"fileName": "nimbus/node_modules/.pnpm/react-aria@3.50.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria/dist/types/src/dnd/useDrop.d.ts",
|
|
17
|
+
"name": "DropOptions"
|
|
18
|
+
},
|
|
19
|
+
"declarations": [
|
|
20
|
+
{
|
|
21
|
+
"fileName": "nimbus/node_modules/.pnpm/react-aria@3.50.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria/dist/types/src/dnd/useDrop.d.ts",
|
|
22
|
+
"name": "DropOptions"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"required": false,
|
|
26
|
+
"type": {
|
|
27
|
+
"name": "((e: DropEvent) => void)"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"isDisabled": {
|
|
31
|
+
"defaultValue": null,
|
|
32
|
+
"description": "Whether the drop target is disabled. If true, the drop target will not accept any drops.",
|
|
33
|
+
"name": "isDisabled",
|
|
34
|
+
"parent": {
|
|
35
|
+
"fileName": "nimbus/node_modules/.pnpm/react-aria@3.50.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria/dist/types/src/dnd/useDrop.d.ts",
|
|
36
|
+
"name": "DropOptions"
|
|
37
|
+
},
|
|
38
|
+
"declarations": [
|
|
39
|
+
{
|
|
40
|
+
"fileName": "nimbus/node_modules/.pnpm/react-aria@3.50.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria/dist/types/src/dnd/useDrop.d.ts",
|
|
41
|
+
"name": "DropOptions"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"required": false,
|
|
45
|
+
"type": {
|
|
46
|
+
"name": "boolean"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"getDropOperation": {
|
|
50
|
+
"defaultValue": null,
|
|
51
|
+
"description": "A function returning the drop operation to be performed when items matching the given types are\ndropped on the drop target.",
|
|
52
|
+
"name": "getDropOperation",
|
|
53
|
+
"parent": {
|
|
54
|
+
"fileName": "nimbus/node_modules/.pnpm/react-aria@3.50.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria/dist/types/src/dnd/useDrop.d.ts",
|
|
55
|
+
"name": "DropOptions"
|
|
56
|
+
},
|
|
57
|
+
"declarations": [
|
|
58
|
+
{
|
|
59
|
+
"fileName": "nimbus/node_modules/.pnpm/react-aria@3.50.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria/dist/types/src/dnd/useDrop.d.ts",
|
|
60
|
+
"name": "DropOptions"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"required": false,
|
|
64
|
+
"type": {
|
|
65
|
+
"name": "((types: DragTypes, allowedOperations: DropOperation[]) => DropOperation)"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"onDropEnter": {
|
|
69
|
+
"defaultValue": null,
|
|
70
|
+
"description": "Handler that is called when a valid drag enters the drop target.",
|
|
71
|
+
"name": "onDropEnter",
|
|
72
|
+
"parent": {
|
|
73
|
+
"fileName": "nimbus/node_modules/.pnpm/react-aria@3.50.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria/dist/types/src/dnd/useDrop.d.ts",
|
|
74
|
+
"name": "DropOptions"
|
|
75
|
+
},
|
|
76
|
+
"declarations": [
|
|
77
|
+
{
|
|
78
|
+
"fileName": "nimbus/node_modules/.pnpm/react-aria@3.50.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria/dist/types/src/dnd/useDrop.d.ts",
|
|
79
|
+
"name": "DropOptions"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"required": false,
|
|
83
|
+
"type": {
|
|
84
|
+
"name": "((e: DropEnterEvent) => void)"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"onDropMove": {
|
|
88
|
+
"defaultValue": null,
|
|
89
|
+
"description": "Handler that is called when a valid drag is moved within the drop target.",
|
|
90
|
+
"name": "onDropMove",
|
|
91
|
+
"parent": {
|
|
92
|
+
"fileName": "nimbus/node_modules/.pnpm/react-aria@3.50.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria/dist/types/src/dnd/useDrop.d.ts",
|
|
93
|
+
"name": "DropOptions"
|
|
94
|
+
},
|
|
95
|
+
"declarations": [
|
|
96
|
+
{
|
|
97
|
+
"fileName": "nimbus/node_modules/.pnpm/react-aria@3.50.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria/dist/types/src/dnd/useDrop.d.ts",
|
|
98
|
+
"name": "DropOptions"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"required": false,
|
|
102
|
+
"type": {
|
|
103
|
+
"name": "((e: DropMoveEvent) => void)"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"onDropActivate": {
|
|
107
|
+
"defaultValue": null,
|
|
108
|
+
"description": "Handler that is called after a valid drag is held over the drop target for a period of time.\nThis typically opens the item so that the user can drop within it.",
|
|
109
|
+
"name": "onDropActivate",
|
|
110
|
+
"parent": {
|
|
111
|
+
"fileName": "nimbus/node_modules/.pnpm/react-aria@3.50.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria/dist/types/src/dnd/useDrop.d.ts",
|
|
112
|
+
"name": "DropOptions"
|
|
113
|
+
},
|
|
114
|
+
"declarations": [
|
|
115
|
+
{
|
|
116
|
+
"fileName": "nimbus/node_modules/.pnpm/react-aria@3.50.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria/dist/types/src/dnd/useDrop.d.ts",
|
|
117
|
+
"name": "DropOptions"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"required": false,
|
|
121
|
+
"type": {
|
|
122
|
+
"name": "((e: DropActivateEvent) => void)"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"onDropExit": {
|
|
126
|
+
"defaultValue": null,
|
|
127
|
+
"description": "Handler that is called when a valid drag exits the drop target.",
|
|
128
|
+
"name": "onDropExit",
|
|
129
|
+
"parent": {
|
|
130
|
+
"fileName": "nimbus/node_modules/.pnpm/react-aria@3.50.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria/dist/types/src/dnd/useDrop.d.ts",
|
|
131
|
+
"name": "DropOptions"
|
|
132
|
+
},
|
|
133
|
+
"declarations": [
|
|
134
|
+
{
|
|
135
|
+
"fileName": "nimbus/node_modules/.pnpm/react-aria@3.50.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria/dist/types/src/dnd/useDrop.d.ts",
|
|
136
|
+
"name": "DropOptions"
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"required": false,
|
|
140
|
+
"type": {
|
|
141
|
+
"name": "((e: DropExitEvent) => void)"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"ref": {
|
|
145
|
+
"defaultValue": null,
|
|
146
|
+
"description": "Ref forwarding to the root element.",
|
|
147
|
+
"name": "ref",
|
|
148
|
+
"declarations": [
|
|
149
|
+
{
|
|
150
|
+
"fileName": "nimbus/packages/nimbus/src/components/drop-zone/drop-zone.types.ts",
|
|
151
|
+
"name": "TypeLiteral"
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
"required": false,
|
|
155
|
+
"type": {
|
|
156
|
+
"name": "Ref<HTMLDivElement>"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"supportsStyleProps": true
|
|
161
|
+
}
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"description": "If `true`, the element will opt out of the theme styles.",
|
|
14
14
|
"name": "unstyled",
|
|
15
15
|
"parent": {
|
|
16
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
16
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/styled-system/factory.types.d.ts",
|
|
17
17
|
"name": "UnstyledProp"
|
|
18
18
|
},
|
|
19
19
|
"declarations": [
|
|
20
20
|
{
|
|
21
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
21
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/styled-system/factory.types.d.ts",
|
|
22
22
|
"name": "UnstyledProp"
|
|
23
23
|
}
|
|
24
24
|
],
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tags": {
|
|
3
|
+
"see": "{@link https://nimbus-documentation.vercel.app/components/inputs/filetrigger}"
|
|
4
|
+
},
|
|
5
|
+
"filePath": "/home/runner/work/nimbus/nimbus/packages/nimbus/src/index.ts",
|
|
6
|
+
"description": "# FileTrigger\n\nA thin, behavior-only wrapper around React Aria's `FileTrigger`. It wraps a\npressable child (e.g. a Nimbus `Button`) and a visually-hidden file input,\nopening the native file picker when the child is activated. It renders no\nvisual styling of its own — the child provides the visual treatment.",
|
|
7
|
+
"displayName": "FileTrigger",
|
|
8
|
+
"methods": [],
|
|
9
|
+
"props": {
|
|
10
|
+
"children": {
|
|
11
|
+
"defaultValue": null,
|
|
12
|
+
"description": "The pressable element that opens the file picker when activated, typically a\nNimbus `Button` or `IconButton`. Any React Aria pressable component works.",
|
|
13
|
+
"name": "children",
|
|
14
|
+
"declarations": [
|
|
15
|
+
{
|
|
16
|
+
"fileName": "nimbus/packages/nimbus/src/components/file-trigger/file-trigger.types.ts",
|
|
17
|
+
"name": "TypeLiteral"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"required": true,
|
|
21
|
+
"type": {
|
|
22
|
+
"name": "ReactNode"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"onSelect": {
|
|
26
|
+
"defaultValue": null,
|
|
27
|
+
"description": "Handler called when the user finishes selecting files. Receives the native\n`FileList` (or `null` if the selection was cleared). The React Aria\nsignature is preserved — use `Array.from(files)` to iterate.",
|
|
28
|
+
"name": "onSelect",
|
|
29
|
+
"declarations": [
|
|
30
|
+
{
|
|
31
|
+
"fileName": "nimbus/packages/nimbus/src/components/file-trigger/file-trigger.types.ts",
|
|
32
|
+
"name": "TypeLiteral"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"required": false,
|
|
36
|
+
"type": {
|
|
37
|
+
"name": "((files: FileList | null) => void)"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"acceptedFileTypes": {
|
|
41
|
+
"defaultValue": null,
|
|
42
|
+
"description": "The mime types or file extensions the picker should allow, e.g.\n`[\"image/png\", \".pdf\"]`. Maps to the hidden input's `accept` attribute.",
|
|
43
|
+
"name": "acceptedFileTypes",
|
|
44
|
+
"declarations": [
|
|
45
|
+
{
|
|
46
|
+
"fileName": "nimbus/packages/nimbus/src/components/file-trigger/file-trigger.types.ts",
|
|
47
|
+
"name": "TypeLiteral"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"required": false,
|
|
51
|
+
"type": {
|
|
52
|
+
"name": "readonly string[]"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"allowsMultiple": {
|
|
56
|
+
"defaultValue": {
|
|
57
|
+
"value": "false"
|
|
58
|
+
},
|
|
59
|
+
"description": "Whether more than one file can be selected at a time. Maps to the hidden\ninput's `multiple` attribute.",
|
|
60
|
+
"name": "allowsMultiple",
|
|
61
|
+
"declarations": [
|
|
62
|
+
{
|
|
63
|
+
"fileName": "nimbus/packages/nimbus/src/components/file-trigger/file-trigger.types.ts",
|
|
64
|
+
"name": "TypeLiteral"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"required": false,
|
|
68
|
+
"type": {
|
|
69
|
+
"name": "boolean"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"acceptDirectory": {
|
|
73
|
+
"defaultValue": {
|
|
74
|
+
"value": "false"
|
|
75
|
+
},
|
|
76
|
+
"description": "Enables selecting a directory instead of individual files. Maps to the\nhidden input's directory-selection attributes (e.g. `webkitdirectory`).",
|
|
77
|
+
"name": "acceptDirectory",
|
|
78
|
+
"declarations": [
|
|
79
|
+
{
|
|
80
|
+
"fileName": "nimbus/packages/nimbus/src/components/file-trigger/file-trigger.types.ts",
|
|
81
|
+
"name": "TypeLiteral"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"required": false,
|
|
85
|
+
"type": {
|
|
86
|
+
"name": "boolean"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"defaultCamera": {
|
|
90
|
+
"defaultValue": null,
|
|
91
|
+
"description": "Hints which camera a mobile device should use to capture media. Maps to the\nhidden input's `capture` attribute and is ignored by desktop browsers.",
|
|
92
|
+
"name": "defaultCamera",
|
|
93
|
+
"declarations": [
|
|
94
|
+
{
|
|
95
|
+
"fileName": "nimbus/packages/nimbus/src/components/file-trigger/file-trigger.types.ts",
|
|
96
|
+
"name": "TypeLiteral"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"required": false,
|
|
100
|
+
"type": {
|
|
101
|
+
"name": "enum",
|
|
102
|
+
"raw": "\"user\" | \"environment\"",
|
|
103
|
+
"value": [
|
|
104
|
+
{
|
|
105
|
+
"value": "\"user\""
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"value": "\"environment\""
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"ref": {
|
|
114
|
+
"defaultValue": null,
|
|
115
|
+
"description": "Ref forwarded to the underlying hidden `<input type=\"file\">` element.",
|
|
116
|
+
"name": "ref",
|
|
117
|
+
"declarations": [
|
|
118
|
+
{
|
|
119
|
+
"fileName": "nimbus/packages/nimbus/src/components/file-trigger/file-trigger.types.ts",
|
|
120
|
+
"name": "TypeLiteral"
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"required": false,
|
|
124
|
+
"type": {
|
|
125
|
+
"name": "Ref<HTMLInputElement>"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"supportsStyleProps": false
|
|
130
|
+
}
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"description": "",
|
|
15
15
|
"name": "css",
|
|
16
16
|
"parent": {
|
|
17
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
17
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/styled-system/factory.types.d.ts",
|
|
18
18
|
"name": "JsxStyleProps"
|
|
19
19
|
},
|
|
20
20
|
"declarations": [
|
|
21
21
|
{
|
|
22
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
22
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/styled-system/factory.types.d.ts",
|
|
23
23
|
"name": "JsxStyleProps"
|
|
24
24
|
}
|
|
25
25
|
],
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"description": "",
|
|
34
34
|
"name": "align",
|
|
35
35
|
"parent": {
|
|
36
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
36
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/components/flex/flex.d.ts",
|
|
37
37
|
"name": "FlexOptions"
|
|
38
38
|
},
|
|
39
39
|
"declarations": [
|
|
40
40
|
{
|
|
41
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
41
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/components/flex/flex.d.ts",
|
|
42
42
|
"name": "FlexOptions"
|
|
43
43
|
}
|
|
44
44
|
],
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"description": "",
|
|
53
53
|
"name": "justify",
|
|
54
54
|
"parent": {
|
|
55
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
55
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/components/flex/flex.d.ts",
|
|
56
56
|
"name": "FlexOptions"
|
|
57
57
|
},
|
|
58
58
|
"declarations": [
|
|
59
59
|
{
|
|
60
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
60
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/components/flex/flex.d.ts",
|
|
61
61
|
"name": "FlexOptions"
|
|
62
62
|
}
|
|
63
63
|
],
|
|
@@ -71,12 +71,12 @@
|
|
|
71
71
|
"description": "",
|
|
72
72
|
"name": "wrap",
|
|
73
73
|
"parent": {
|
|
74
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
74
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/components/flex/flex.d.ts",
|
|
75
75
|
"name": "FlexOptions"
|
|
76
76
|
},
|
|
77
77
|
"declarations": [
|
|
78
78
|
{
|
|
79
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
79
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/components/flex/flex.d.ts",
|
|
80
80
|
"name": "FlexOptions"
|
|
81
81
|
}
|
|
82
82
|
],
|
|
@@ -90,12 +90,12 @@
|
|
|
90
90
|
"description": "",
|
|
91
91
|
"name": "direction",
|
|
92
92
|
"parent": {
|
|
93
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
93
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/components/flex/flex.d.ts",
|
|
94
94
|
"name": "FlexOptions"
|
|
95
95
|
},
|
|
96
96
|
"declarations": [
|
|
97
97
|
{
|
|
98
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
98
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/components/flex/flex.d.ts",
|
|
99
99
|
"name": "FlexOptions"
|
|
100
100
|
}
|
|
101
101
|
],
|
|
@@ -109,12 +109,12 @@
|
|
|
109
109
|
"description": "",
|
|
110
110
|
"name": "basis",
|
|
111
111
|
"parent": {
|
|
112
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
112
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/components/flex/flex.d.ts",
|
|
113
113
|
"name": "FlexOptions"
|
|
114
114
|
},
|
|
115
115
|
"declarations": [
|
|
116
116
|
{
|
|
117
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
117
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/components/flex/flex.d.ts",
|
|
118
118
|
"name": "FlexOptions"
|
|
119
119
|
}
|
|
120
120
|
],
|
|
@@ -128,12 +128,12 @@
|
|
|
128
128
|
"description": "",
|
|
129
129
|
"name": "grow",
|
|
130
130
|
"parent": {
|
|
131
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
131
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/components/flex/flex.d.ts",
|
|
132
132
|
"name": "FlexOptions"
|
|
133
133
|
},
|
|
134
134
|
"declarations": [
|
|
135
135
|
{
|
|
136
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
136
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/components/flex/flex.d.ts",
|
|
137
137
|
"name": "FlexOptions"
|
|
138
138
|
}
|
|
139
139
|
],
|
|
@@ -147,12 +147,12 @@
|
|
|
147
147
|
"description": "",
|
|
148
148
|
"name": "shrink",
|
|
149
149
|
"parent": {
|
|
150
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
150
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/components/flex/flex.d.ts",
|
|
151
151
|
"name": "FlexOptions"
|
|
152
152
|
},
|
|
153
153
|
"declarations": [
|
|
154
154
|
{
|
|
155
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
155
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/components/flex/flex.d.ts",
|
|
156
156
|
"name": "FlexOptions"
|
|
157
157
|
}
|
|
158
158
|
],
|
|
@@ -166,12 +166,12 @@
|
|
|
166
166
|
"description": "",
|
|
167
167
|
"name": "inline",
|
|
168
168
|
"parent": {
|
|
169
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
169
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/components/flex/flex.d.ts",
|
|
170
170
|
"name": "FlexOptions"
|
|
171
171
|
},
|
|
172
172
|
"declarations": [
|
|
173
173
|
{
|
|
174
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
174
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/components/flex/flex.d.ts",
|
|
175
175
|
"name": "FlexOptions"
|
|
176
176
|
}
|
|
177
177
|
],
|
|
@@ -185,12 +185,12 @@
|
|
|
185
185
|
"description": "",
|
|
186
186
|
"name": "as",
|
|
187
187
|
"parent": {
|
|
188
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
188
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/styled-system/factory.types.d.ts",
|
|
189
189
|
"name": "PolymorphicProps"
|
|
190
190
|
},
|
|
191
191
|
"declarations": [
|
|
192
192
|
{
|
|
193
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
193
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/styled-system/factory.types.d.ts",
|
|
194
194
|
"name": "PolymorphicProps"
|
|
195
195
|
}
|
|
196
196
|
],
|
|
@@ -204,12 +204,12 @@
|
|
|
204
204
|
"description": "",
|
|
205
205
|
"name": "asChild",
|
|
206
206
|
"parent": {
|
|
207
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
207
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/styled-system/factory.types.d.ts",
|
|
208
208
|
"name": "PolymorphicProps"
|
|
209
209
|
},
|
|
210
210
|
"declarations": [
|
|
211
211
|
{
|
|
212
|
-
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.
|
|
212
|
+
"fileName": "nimbus/node_modules/.pnpm/@chakra-ui+react@3.36.1_@emotion+react@11.14.0_@types+react@19.2.17_react@19.2.0__react_481d5ee5504b18c9383bebdcb4b66737/node_modules/@chakra-ui/react/dist/types/styled-system/factory.types.d.ts",
|
|
213
213
|
"name": "PolymorphicProps"
|
|
214
214
|
}
|
|
215
215
|
],
|