@mcp-b/react-components 0.1.1 → 0.1.3
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/dist/Button-QCM8ZKgR.d.ts +98 -0
- package/dist/CodeBlock-CttHhWcb.js +356 -0
- package/dist/CodeBlock-V6pgafSS.d.ts +174 -0
- package/dist/Select-CRsKCJ9x.d.ts +200 -0
- package/dist/class-names-9UtZwb0J.js +12 -0
- package/dist/components/Accordion.d.ts +81 -0
- package/dist/components/Accordion.js +97 -0
- package/dist/components/AgentConnection.d.ts +69 -0
- package/dist/components/AgentConnection.js +176 -0
- package/dist/components/AlertDialog.d.ts +148 -0
- package/dist/components/AlertDialog.js +141 -0
- package/dist/components/Artifact.d.ts +128 -0
- package/dist/components/Artifact.js +115 -0
- package/dist/components/Autocomplete.d.ts +186 -0
- package/dist/components/Autocomplete.js +186 -0
- package/dist/components/Avatar.d.ts +134 -0
- package/dist/components/Avatar.js +118 -0
- package/dist/components/Badge.d.ts +68 -0
- package/dist/components/Badge.js +108 -0
- package/dist/components/Button.d.ts +2 -0
- package/dist/components/Button.js +73 -0
- package/dist/components/Card.d.ts +87 -0
- package/dist/components/Card.js +81 -0
- package/dist/components/ChainOfThought.d.ts +153 -0
- package/dist/components/ChainOfThought.js +157 -0
- package/dist/components/Checkbox.d.ts +35 -0
- package/dist/components/Checkbox.js +47 -0
- package/dist/components/CheckboxGroup.d.ts +76 -0
- package/dist/components/CheckboxGroup.js +69 -0
- package/dist/components/CodeBlock.d.ts +2 -0
- package/dist/components/CodeBlock.js +2 -0
- package/dist/components/Collapsible.d.ts +127 -0
- package/dist/components/Collapsible.js +103 -0
- package/dist/components/Combobox.d.ts +177 -0
- package/dist/components/Combobox.js +179 -0
- package/dist/components/Commit.d.ts +265 -0
- package/dist/components/Commit.js +282 -0
- package/dist/components/Context.d.ts +129 -0
- package/dist/components/Context.js +309 -0
- package/dist/components/ContextMenu.d.ts +282 -0
- package/dist/components/ContextMenu.js +270 -0
- package/dist/components/Conversation.d.ts +166 -0
- package/dist/components/Conversation.js +202 -0
- package/dist/components/Dialog.d.ts +120 -0
- package/dist/components/Dialog.js +114 -0
- package/dist/components/EnvironmentVariables.d.ts +176 -0
- package/dist/components/EnvironmentVariables.js +221 -0
- package/dist/components/Field.d.ts +281 -0
- package/dist/components/Field.js +274 -0
- package/dist/components/Fieldset.d.ts +93 -0
- package/dist/components/Fieldset.js +81 -0
- package/dist/components/FileTree.d.ts +116 -0
- package/dist/components/FileTree.js +310 -0
- package/dist/components/Form.d.ts +94 -0
- package/dist/components/Form.js +88 -0
- package/dist/components/GithubMotionMark.d.ts +13 -0
- package/dist/components/GithubMotionMark.js +23 -0
- package/dist/components/Input.d.ts +33 -0
- package/dist/components/Input.js +27 -0
- package/dist/components/Label.d.ts +44 -0
- package/dist/components/Label.js +41 -0
- package/dist/components/Menu.d.ts +395 -0
- package/dist/components/Menu.js +338 -0
- package/dist/components/Menubar.d.ts +331 -0
- package/dist/components/Menubar.js +299 -0
- package/dist/components/Message.d.ts +216 -0
- package/dist/components/Message.js +245 -0
- package/dist/components/Meter.d.ts +151 -0
- package/dist/components/Meter.js +121 -0
- package/dist/components/ModelSelector.d.ts +198 -0
- package/dist/components/ModelSelector.js +306 -0
- package/dist/components/NaniteScene.d.ts +33 -0
- package/dist/components/NaniteScene.js +405 -0
- package/dist/components/NavigationMenu.d.ts +256 -0
- package/dist/components/NavigationMenu.js +228 -0
- package/dist/components/NumberField.d.ts +159 -0
- package/dist/components/NumberField.js +123 -0
- package/dist/components/Popover.d.ts +278 -0
- package/dist/components/Popover.js +245 -0
- package/dist/components/PreviewCard.d.ts +156 -0
- package/dist/components/PreviewCard.js +156 -0
- package/dist/components/PricingPage.d.ts +209 -0
- package/dist/components/PricingPage.js +506 -0
- package/dist/components/Progress.d.ts +58 -0
- package/dist/components/Progress.js +51 -0
- package/dist/components/PromptInput.d.ts +399 -0
- package/dist/components/PromptInput.js +737 -0
- package/dist/components/Queue.d.ts +241 -0
- package/dist/components/Queue.js +225 -0
- package/dist/components/RadioGroup.d.ts +78 -0
- package/dist/components/RadioGroup.js +72 -0
- package/dist/components/Reasoning.d.ts +88 -0
- package/dist/components/Reasoning.js +187 -0
- package/dist/components/ScrollArea.d.ts +160 -0
- package/dist/components/ScrollArea.js +145 -0
- package/dist/components/Select.d.ts +2 -0
- package/dist/components/Select.js +260 -0
- package/dist/components/Separator.d.ts +45 -0
- package/dist/components/Separator.js +40 -0
- package/dist/components/Shell.d.ts +163 -0
- package/dist/components/Shell.js +137 -0
- package/dist/components/Slider.d.ts +120 -0
- package/dist/components/Slider.js +115 -0
- package/dist/components/Sources.d.ts +91 -0
- package/dist/components/Sources.js +121 -0
- package/dist/components/Stepper.d.ts +190 -0
- package/dist/components/Stepper.js +315 -0
- package/dist/components/Switch.d.ts +57 -0
- package/dist/components/Switch.js +55 -0
- package/dist/components/Tabs.d.ts +84 -0
- package/dist/components/Tabs.js +78 -0
- package/dist/components/Task.d.ts +100 -0
- package/dist/components/Task.js +120 -0
- package/dist/components/Terminal.d.ts +118 -0
- package/dist/components/Terminal.js +234 -0
- package/dist/components/TestResults.d.ts +236 -0
- package/dist/components/TestResults.js +346 -0
- package/dist/components/Toast.d.ts +192 -0
- package/dist/components/Toast.js +163 -0
- package/dist/components/Toggle.d.ts +69 -0
- package/dist/components/Toggle.js +66 -0
- package/dist/components/ToggleGroup.d.ts +69 -0
- package/dist/components/ToggleGroup.js +99 -0
- package/dist/components/Tool.d.ts +119 -0
- package/dist/components/Tool.js +192 -0
- package/dist/components/Toolbar.d.ts +162 -0
- package/dist/components/Toolbar.js +126 -0
- package/dist/components/Tooltip.d.ts +81 -0
- package/dist/components/Tooltip.js +74 -0
- package/dist/components/WebPreview.d.ts +143 -0
- package/dist/components/WebPreview.js +280 -0
- package/dist/components/useStickToBottom.d.ts +30 -0
- package/dist/components/useStickToBottom.js +95 -0
- package/dist/copy-button-BIATcZWZ.d.ts +16 -0
- package/dist/copy-button-BNgclDrO.js +43 -0
- package/dist/icons-BsWc8g4E.js +221 -0
- package/dist/styles/accordion.css +10 -10
- package/dist/styles/agent-connection.css +18 -17
- package/dist/styles/alert-dialog.css +48 -29
- package/dist/styles/artifact.css +10 -10
- package/dist/styles/autocomplete.css +25 -24
- package/dist/styles/avatar.css +96 -6
- package/dist/styles/badge.css +78 -14
- package/dist/styles/base.css +9 -9
- package/dist/styles/button.css +57 -38
- package/dist/styles/card.css +57 -10
- package/dist/styles/chain-of-thought.css +47 -33
- package/dist/styles/checkbox.css +24 -10
- package/dist/styles/code-block.css +22 -15
- package/dist/styles/collapsible.css +14 -12
- package/dist/styles/combobox.css +26 -25
- package/dist/styles/commit.css +49 -24
- package/dist/styles/context-menu.css +70 -16
- package/dist/styles/context.css +15 -15
- package/dist/styles/conversation.css +12 -12
- package/dist/styles/dialog.css +52 -16
- package/dist/styles/environment-variables.css +19 -19
- package/dist/styles/field.css +184 -22
- package/dist/styles/fieldset.css +5 -4
- package/dist/styles/file-tree.css +17 -17
- package/dist/styles/index.css.d.ts +1 -0
- package/dist/styles/input.css +45 -11
- package/dist/styles/label.css +21 -4
- package/dist/styles/menu.css +55 -32
- package/dist/styles/menubar.css +80 -28
- package/dist/styles/message.css +22 -13
- package/dist/styles/meter.css +8 -8
- package/dist/styles/model-selector.css +33 -21
- package/dist/styles/navigation-menu.css +26 -24
- package/dist/styles/number-field.css +20 -18
- package/dist/styles/popover.css +38 -28
- package/dist/styles/preview-card.css +15 -13
- package/dist/styles/pricing-page.css +53 -53
- package/dist/styles/progress.css +7 -7
- package/dist/styles/prompt-input.css +73 -24
- package/dist/styles/queue.css +58 -32
- package/dist/styles/radio.css +26 -11
- package/dist/styles/reasoning.css +15 -11
- package/dist/styles/scroll-area.css +6 -6
- package/dist/styles/scrollbars.css +4 -4
- package/dist/styles/select.css +84 -25
- package/dist/styles/separator.css +1 -1
- package/dist/styles/shell.css +21 -20
- package/dist/styles/slider.css +35 -11
- package/dist/styles/sources.css +20 -20
- package/dist/styles/stepper.css +22 -22
- package/dist/styles/switch.css +29 -13
- package/dist/styles/tabs.css +23 -16
- package/dist/styles/task.css +27 -23
- package/dist/styles/terminal.css +16 -13
- package/dist/styles/test-results.css +79 -32
- package/dist/styles/toast.css +26 -25
- package/dist/styles/toggle-group.css +12 -12
- package/dist/styles/toggle.css +29 -11
- package/dist/styles/tool.css +54 -32
- package/dist/styles/toolbar.css +30 -28
- package/dist/styles/tooltip.css +10 -8
- package/dist/styles/web-preview.css +37 -21
- package/dist/utils/structured-code.d.ts +10 -0
- package/dist/utils/structured-code.js +81 -0
- package/package.json +17 -8
- package/dist/index.d.ts +0 -7236
- package/dist/index.js +0 -8945
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Combobox as Combobox$1 } from "@base-ui/react/combobox";
|
|
4
|
+
//#region src/components/Combobox.tsx
|
|
5
|
+
function ComboboxInput({ className = "", ref, ...props }) {
|
|
6
|
+
const classes = ["combobox__input", className].filter(Boolean).join(" ");
|
|
7
|
+
return /* @__PURE__ */ jsx(Combobox$1.Input, {
|
|
8
|
+
ref,
|
|
9
|
+
"data-slot": "combobox-input",
|
|
10
|
+
className: classes,
|
|
11
|
+
...props
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function ComboboxTrigger({ className = "", ref, ...props }) {
|
|
15
|
+
const classes = ["combobox__trigger", className].filter(Boolean).join(" ");
|
|
16
|
+
return /* @__PURE__ */ jsx(Combobox$1.Trigger, {
|
|
17
|
+
ref,
|
|
18
|
+
"data-slot": "combobox-trigger",
|
|
19
|
+
className: classes,
|
|
20
|
+
...props
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function Clear({ className = "", ref, ...props }) {
|
|
24
|
+
const classes = ["combobox__clear", className].filter(Boolean).join(" ");
|
|
25
|
+
return /* @__PURE__ */ jsx(Combobox$1.Clear, {
|
|
26
|
+
ref,
|
|
27
|
+
"data-slot": "combobox-clear",
|
|
28
|
+
className: classes,
|
|
29
|
+
...props
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function ComboboxPositioner({ className = "", ref, ...props }) {
|
|
33
|
+
const classes = ["combobox__positioner", className].filter(Boolean).join(" ");
|
|
34
|
+
return /* @__PURE__ */ jsx(Combobox$1.Positioner, {
|
|
35
|
+
ref,
|
|
36
|
+
"data-slot": "combobox-positioner",
|
|
37
|
+
className: classes,
|
|
38
|
+
...props
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function ComboboxPopup({ className = "", tabIndex = 0, ref, ...props }) {
|
|
42
|
+
const classes = ["combobox__popup", className].filter(Boolean).join(" ");
|
|
43
|
+
return /* @__PURE__ */ jsx(Combobox$1.Popup, {
|
|
44
|
+
ref,
|
|
45
|
+
"data-slot": "combobox-content",
|
|
46
|
+
tabIndex,
|
|
47
|
+
className: classes,
|
|
48
|
+
...props
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function ComboboxList({ className = "", ref, ...props }) {
|
|
52
|
+
const classes = ["combobox__list", className].filter(Boolean).join(" ");
|
|
53
|
+
return /* @__PURE__ */ jsx(Combobox$1.List, {
|
|
54
|
+
ref,
|
|
55
|
+
"data-slot": "combobox-list",
|
|
56
|
+
className: classes,
|
|
57
|
+
...props
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function ComboboxItem({ className = "", ref, ...props }) {
|
|
61
|
+
const classes = ["combobox__item", className].filter(Boolean).join(" ");
|
|
62
|
+
return /* @__PURE__ */ jsx(Combobox$1.Item, {
|
|
63
|
+
ref,
|
|
64
|
+
"data-slot": "combobox-item",
|
|
65
|
+
className: classes,
|
|
66
|
+
...props
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
function ItemIndicator({ className = "", ref, ...props }) {
|
|
70
|
+
const classes = ["combobox__item-indicator", className].filter(Boolean).join(" ");
|
|
71
|
+
return /* @__PURE__ */ jsx(Combobox$1.ItemIndicator, {
|
|
72
|
+
ref,
|
|
73
|
+
"data-slot": "combobox-item-indicator",
|
|
74
|
+
className: classes,
|
|
75
|
+
...props
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
function ComboboxEmpty({ className = "", ref, ...props }) {
|
|
79
|
+
const classes = ["combobox__empty", className].filter(Boolean).join(" ");
|
|
80
|
+
return /* @__PURE__ */ jsx(Combobox$1.Empty, {
|
|
81
|
+
ref,
|
|
82
|
+
"data-slot": "combobox-empty",
|
|
83
|
+
className: classes,
|
|
84
|
+
...props
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function ComboboxGroup({ className = "", ref, ...props }) {
|
|
88
|
+
const classes = ["combobox__group", className].filter(Boolean).join(" ");
|
|
89
|
+
return /* @__PURE__ */ jsx(Combobox$1.Group, {
|
|
90
|
+
ref,
|
|
91
|
+
"data-slot": "combobox-group",
|
|
92
|
+
className: classes,
|
|
93
|
+
...props
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function ComboboxLabel({ className = "", ref, ...props }) {
|
|
97
|
+
const classes = ["combobox__group-label", className].filter(Boolean).join(" ");
|
|
98
|
+
return /* @__PURE__ */ jsx(Combobox$1.GroupLabel, {
|
|
99
|
+
ref,
|
|
100
|
+
"data-slot": "combobox-group-label",
|
|
101
|
+
className: classes,
|
|
102
|
+
...props
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* An input combined with a filterable list of predefined items.
|
|
107
|
+
* Supports single and multiple selection, async search, and grouping.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```tsx
|
|
111
|
+
* // Basic single select
|
|
112
|
+
* const fruits = [
|
|
113
|
+
* { label: 'Apple', value: 'apple' },
|
|
114
|
+
* { label: 'Banana', value: 'banana' },
|
|
115
|
+
* { label: 'Orange', value: 'orange' },
|
|
116
|
+
* ];
|
|
117
|
+
*
|
|
118
|
+
* <Combobox.Root items={fruits}>
|
|
119
|
+
* <Combobox.Input placeholder="Select a fruit" />
|
|
120
|
+
* <Combobox.Trigger>
|
|
121
|
+
* <ChevronDownIcon />
|
|
122
|
+
* </Combobox.Trigger>
|
|
123
|
+
* <Combobox.Portal>
|
|
124
|
+
* <Combobox.Positioner>
|
|
125
|
+
* <Combobox.Popup>
|
|
126
|
+
* <Combobox.List>
|
|
127
|
+
* {(item) => (
|
|
128
|
+
* <Combobox.Item value={item}>
|
|
129
|
+
* <Combobox.ItemIndicator>
|
|
130
|
+
* <CheckIcon />
|
|
131
|
+
* </Combobox.ItemIndicator>
|
|
132
|
+
* {item.label}
|
|
133
|
+
* </Combobox.Item>
|
|
134
|
+
* )}
|
|
135
|
+
* </Combobox.List>
|
|
136
|
+
* <Combobox.Empty>No results found</Combobox.Empty>
|
|
137
|
+
* </Combobox.Popup>
|
|
138
|
+
* </Combobox.Positioner>
|
|
139
|
+
* </Combobox.Portal>
|
|
140
|
+
* </Combobox.Root>
|
|
141
|
+
* ```
|
|
142
|
+
*
|
|
143
|
+
* @see {@link https://base-ui.com/react/components/combobox | Base UI Combobox}
|
|
144
|
+
*/
|
|
145
|
+
const ComboboxContent = ComboboxPopup;
|
|
146
|
+
const ComboboxValue = Combobox$1.Value;
|
|
147
|
+
const ComboboxChips = Combobox$1.Chips;
|
|
148
|
+
const ComboboxChip = Combobox$1.Chip;
|
|
149
|
+
const ComboboxChipsInput = ComboboxInput;
|
|
150
|
+
const ComboboxCollection = Combobox$1.Collection;
|
|
151
|
+
const ComboboxSeparator = Combobox$1.Separator;
|
|
152
|
+
function useComboboxAnchor() {
|
|
153
|
+
return React.useRef(null);
|
|
154
|
+
}
|
|
155
|
+
const Combobox = Object.assign(Combobox$1.Root, {
|
|
156
|
+
Root: Combobox$1.Root,
|
|
157
|
+
Input: ComboboxInput,
|
|
158
|
+
Trigger: ComboboxTrigger,
|
|
159
|
+
Clear,
|
|
160
|
+
Portal: Combobox$1.Portal,
|
|
161
|
+
Positioner: ComboboxPositioner,
|
|
162
|
+
Popup: ComboboxPopup,
|
|
163
|
+
Content: ComboboxContent,
|
|
164
|
+
List: ComboboxList,
|
|
165
|
+
Item: ComboboxItem,
|
|
166
|
+
ItemIndicator,
|
|
167
|
+
Empty: ComboboxEmpty,
|
|
168
|
+
Group: ComboboxGroup,
|
|
169
|
+
GroupLabel: ComboboxLabel,
|
|
170
|
+
Label: ComboboxLabel,
|
|
171
|
+
Value: ComboboxValue,
|
|
172
|
+
Chips: ComboboxChips,
|
|
173
|
+
Chip: ComboboxChip,
|
|
174
|
+
ChipsInput: ComboboxChipsInput,
|
|
175
|
+
Collection: ComboboxCollection,
|
|
176
|
+
Separator: ComboboxSeparator
|
|
177
|
+
});
|
|
178
|
+
//#endregion
|
|
179
|
+
export { Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxPopup, ComboboxPositioner, ComboboxSeparator, ComboboxTrigger, ComboboxValue, useComboboxAnchor };
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import { r as ButtonProps } from "../Button-QCM8ZKgR.js";
|
|
2
|
+
import { CollapsiblePanelProps, CollapsibleRootProps, CollapsibleTriggerProps } from "./Collapsible.js";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/Commit.d.ts
|
|
6
|
+
type CommitFileStatusValue = "added" | "modified" | "deleted" | "renamed";
|
|
7
|
+
interface CommitProps extends Omit<CollapsibleRootProps, "className" | "unstyled"> {
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A collapsible git commit card. Compose CommitHeader with metadata
|
|
12
|
+
* (CommitAuthor, CommitInfo, etc.) and CommitContent with a CommitFiles list.
|
|
13
|
+
*
|
|
14
|
+
* Built internally for git and agent review surfaces. Use it for commit
|
|
15
|
+
* summaries with expandable file details. Do not use it as a generic
|
|
16
|
+
* accordion; use Collapsible or Accordion directly.
|
|
17
|
+
*
|
|
18
|
+
* Styling consumes Sigvelo surface, border, spacing, radius, badge, and focus
|
|
19
|
+
* tokens. Add shared metadata/file affordances here instead of forking commit
|
|
20
|
+
* cards in apps.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* <Commit defaultOpen>
|
|
25
|
+
* <CommitHeader>
|
|
26
|
+
* <CommitAuthor>
|
|
27
|
+
* <CommitAuthorAvatar initials="AN" />
|
|
28
|
+
* <CommitInfo>
|
|
29
|
+
* <CommitMessage>Improve Storybook docs</CommitMessage>
|
|
30
|
+
* <CommitMetadata>
|
|
31
|
+
* <CommitHash hash="abc1234" />
|
|
32
|
+
* </CommitMetadata>
|
|
33
|
+
* </CommitInfo>
|
|
34
|
+
* </CommitAuthor>
|
|
35
|
+
* </CommitHeader>
|
|
36
|
+
* <CommitContent>
|
|
37
|
+
* <CommitFiles>
|
|
38
|
+
* <CommitFile status="modified">
|
|
39
|
+
* <CommitFilePath>packages/react-components/src/Button.tsx</CommitFilePath>
|
|
40
|
+
* </CommitFile>
|
|
41
|
+
* </CommitFiles>
|
|
42
|
+
* </CommitContent>
|
|
43
|
+
* </Commit>
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
declare function Commit({
|
|
47
|
+
className,
|
|
48
|
+
ref,
|
|
49
|
+
...props
|
|
50
|
+
}: CommitProps & {
|
|
51
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
52
|
+
}): React.JSX.Element;
|
|
53
|
+
interface CommitHeaderProps extends Omit<CollapsibleTriggerProps, "className" | "unstyled"> {
|
|
54
|
+
className?: string;
|
|
55
|
+
}
|
|
56
|
+
declare function CommitHeader({
|
|
57
|
+
className,
|
|
58
|
+
children,
|
|
59
|
+
ref,
|
|
60
|
+
...props
|
|
61
|
+
}: CommitHeaderProps & {
|
|
62
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
63
|
+
}): React.JSX.Element;
|
|
64
|
+
interface CommitAuthorProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
65
|
+
declare function CommitAuthor({
|
|
66
|
+
className,
|
|
67
|
+
children,
|
|
68
|
+
ref,
|
|
69
|
+
...props
|
|
70
|
+
}: CommitAuthorProps & {
|
|
71
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
72
|
+
}): React.JSX.Element;
|
|
73
|
+
interface CommitAuthorAvatarProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
74
|
+
initials: string;
|
|
75
|
+
src?: string;
|
|
76
|
+
alt?: string;
|
|
77
|
+
}
|
|
78
|
+
declare function CommitAuthorAvatar({
|
|
79
|
+
className,
|
|
80
|
+
initials,
|
|
81
|
+
src,
|
|
82
|
+
alt,
|
|
83
|
+
ref,
|
|
84
|
+
...props
|
|
85
|
+
}: CommitAuthorAvatarProps & {
|
|
86
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
87
|
+
}): React.JSX.Element;
|
|
88
|
+
interface CommitInfoProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
89
|
+
interface CommitMessageProps extends React.HTMLAttributes<HTMLSpanElement> {}
|
|
90
|
+
interface CommitMetadataProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
91
|
+
interface CommitSeparatorProps extends React.HTMLAttributes<HTMLSpanElement> {}
|
|
92
|
+
declare function CommitInfo({
|
|
93
|
+
className,
|
|
94
|
+
children,
|
|
95
|
+
ref,
|
|
96
|
+
...props
|
|
97
|
+
}: CommitInfoProps & {
|
|
98
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
99
|
+
}): React.JSX.Element;
|
|
100
|
+
declare function CommitMessage({
|
|
101
|
+
className,
|
|
102
|
+
children,
|
|
103
|
+
ref,
|
|
104
|
+
...props
|
|
105
|
+
}: CommitMessageProps & {
|
|
106
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
107
|
+
}): React.JSX.Element;
|
|
108
|
+
declare function CommitMetadata({
|
|
109
|
+
className,
|
|
110
|
+
children,
|
|
111
|
+
ref,
|
|
112
|
+
...props
|
|
113
|
+
}: CommitMetadataProps & {
|
|
114
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
115
|
+
}): React.JSX.Element;
|
|
116
|
+
declare function CommitSeparator({
|
|
117
|
+
className,
|
|
118
|
+
children,
|
|
119
|
+
ref,
|
|
120
|
+
...props
|
|
121
|
+
}: CommitSeparatorProps & {
|
|
122
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
123
|
+
}): React.JSX.Element;
|
|
124
|
+
interface CommitHashProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
125
|
+
hash?: string;
|
|
126
|
+
}
|
|
127
|
+
declare function CommitHash({
|
|
128
|
+
className,
|
|
129
|
+
children,
|
|
130
|
+
hash,
|
|
131
|
+
ref,
|
|
132
|
+
...props
|
|
133
|
+
}: CommitHashProps & {
|
|
134
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
135
|
+
}): React.JSX.Element;
|
|
136
|
+
interface CommitCopyButtonProps extends Omit<ButtonProps, "children" | "variant" | "size" | "color" | "className" | "onClick"> {
|
|
137
|
+
hash: string;
|
|
138
|
+
label?: string;
|
|
139
|
+
className?: string;
|
|
140
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
141
|
+
}
|
|
142
|
+
declare function CommitCopyButton({
|
|
143
|
+
className,
|
|
144
|
+
hash,
|
|
145
|
+
label,
|
|
146
|
+
onClick,
|
|
147
|
+
...props
|
|
148
|
+
}: CommitCopyButtonProps): React.JSX.Element;
|
|
149
|
+
interface CommitTimestampProps extends React.HTMLAttributes<HTMLTimeElement> {
|
|
150
|
+
date: Date;
|
|
151
|
+
}
|
|
152
|
+
declare function CommitTimestamp({
|
|
153
|
+
className,
|
|
154
|
+
children,
|
|
155
|
+
date,
|
|
156
|
+
ref,
|
|
157
|
+
...props
|
|
158
|
+
}: CommitTimestampProps & {
|
|
159
|
+
ref?: React.Ref<HTMLTimeElement>;
|
|
160
|
+
}): React.JSX.Element;
|
|
161
|
+
interface CommitActionsProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
162
|
+
declare function CommitActions({
|
|
163
|
+
className,
|
|
164
|
+
children,
|
|
165
|
+
ref,
|
|
166
|
+
...props
|
|
167
|
+
}: CommitActionsProps & {
|
|
168
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
169
|
+
}): React.JSX.Element;
|
|
170
|
+
interface CommitContentProps extends Omit<CollapsiblePanelProps, "className" | "unstyled"> {
|
|
171
|
+
className?: string;
|
|
172
|
+
}
|
|
173
|
+
declare function CommitContent({
|
|
174
|
+
className,
|
|
175
|
+
children,
|
|
176
|
+
ref,
|
|
177
|
+
...props
|
|
178
|
+
}: CommitContentProps & {
|
|
179
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
180
|
+
}): React.JSX.Element;
|
|
181
|
+
interface CommitFilesProps extends React.HTMLAttributes<HTMLUListElement> {}
|
|
182
|
+
declare function CommitFiles({
|
|
183
|
+
className,
|
|
184
|
+
children,
|
|
185
|
+
ref,
|
|
186
|
+
...props
|
|
187
|
+
}: CommitFilesProps & {
|
|
188
|
+
ref?: React.Ref<HTMLUListElement>;
|
|
189
|
+
}): React.JSX.Element;
|
|
190
|
+
interface CommitFileProps extends React.LiHTMLAttributes<HTMLLIElement> {}
|
|
191
|
+
declare function CommitFile({
|
|
192
|
+
className,
|
|
193
|
+
children,
|
|
194
|
+
ref,
|
|
195
|
+
...props
|
|
196
|
+
}: CommitFileProps & {
|
|
197
|
+
ref?: React.Ref<HTMLLIElement>;
|
|
198
|
+
}): React.JSX.Element;
|
|
199
|
+
interface CommitFileStatusProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "color"> {
|
|
200
|
+
status: CommitFileStatusValue;
|
|
201
|
+
}
|
|
202
|
+
declare function CommitFileStatus({
|
|
203
|
+
className,
|
|
204
|
+
status,
|
|
205
|
+
ref,
|
|
206
|
+
...props
|
|
207
|
+
}: CommitFileStatusProps & {
|
|
208
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
209
|
+
}): React.JSX.Element;
|
|
210
|
+
interface CommitFileIconProps extends React.HTMLAttributes<HTMLSpanElement> {}
|
|
211
|
+
declare function CommitFileIcon({
|
|
212
|
+
className,
|
|
213
|
+
ref,
|
|
214
|
+
...props
|
|
215
|
+
}: CommitFileIconProps & {
|
|
216
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
217
|
+
}): React.JSX.Element;
|
|
218
|
+
interface CommitFilePathProps extends React.HTMLAttributes<HTMLSpanElement> {}
|
|
219
|
+
interface CommitFileInfoProps extends React.HTMLAttributes<HTMLSpanElement> {}
|
|
220
|
+
declare function CommitFilePath({
|
|
221
|
+
className,
|
|
222
|
+
children,
|
|
223
|
+
ref,
|
|
224
|
+
...props
|
|
225
|
+
}: CommitFilePathProps & {
|
|
226
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
227
|
+
}): React.JSX.Element;
|
|
228
|
+
declare const CommitFileInfo: typeof CommitFilePath;
|
|
229
|
+
interface CommitFileAdditionsProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
230
|
+
count: number;
|
|
231
|
+
}
|
|
232
|
+
declare function CommitFileAdditions({
|
|
233
|
+
className,
|
|
234
|
+
count,
|
|
235
|
+
ref,
|
|
236
|
+
...props
|
|
237
|
+
}: CommitFileAdditionsProps & {
|
|
238
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
239
|
+
}): React.JSX.Element | null;
|
|
240
|
+
interface CommitFileDeletionsProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
241
|
+
count: number;
|
|
242
|
+
}
|
|
243
|
+
interface CommitFileChangesProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
244
|
+
additions?: number;
|
|
245
|
+
deletions?: number;
|
|
246
|
+
}
|
|
247
|
+
declare function CommitFileDeletions({
|
|
248
|
+
className,
|
|
249
|
+
count,
|
|
250
|
+
ref,
|
|
251
|
+
...props
|
|
252
|
+
}: CommitFileDeletionsProps & {
|
|
253
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
254
|
+
}): React.JSX.Element | null;
|
|
255
|
+
declare function CommitFileChanges({
|
|
256
|
+
className,
|
|
257
|
+
additions,
|
|
258
|
+
deletions,
|
|
259
|
+
ref,
|
|
260
|
+
...props
|
|
261
|
+
}: CommitFileChangesProps & {
|
|
262
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
263
|
+
}): React.JSX.Element;
|
|
264
|
+
//#endregion
|
|
265
|
+
export { Commit, CommitActions, CommitActionsProps, CommitAuthor, CommitAuthorAvatar, CommitAuthorAvatarProps, CommitAuthorProps, CommitContent, CommitContentProps, CommitCopyButton, CommitCopyButtonProps, CommitFile, CommitFileAdditions, CommitFileAdditionsProps, CommitFileChanges, CommitFileChangesProps, CommitFileDeletions, CommitFileDeletionsProps, CommitFileIcon, CommitFileIconProps, CommitFileInfo, CommitFileInfoProps, CommitFilePath, CommitFilePathProps, CommitFileProps, CommitFileStatus, CommitFileStatusProps, CommitFileStatusValue, CommitFiles, CommitFilesProps, CommitHash, CommitHashProps, CommitHeader, CommitHeaderProps, CommitInfo, CommitInfoProps, CommitMessage, CommitMessageProps, CommitMetadata, CommitMetadataProps, CommitProps, CommitSeparator, CommitSeparatorProps, CommitTimestamp, CommitTimestampProps };
|