@mcp-b/react-components 0.12.0 → 0.13.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/dist/{AgentChat-CRmsKg9B.d.ts → AgentChat-Br6tKEl8.d.ts} +29 -5
- package/dist/{Button-Ct5I6aTu.d.ts → Button-FX_hpqxm.d.ts} +8 -11
- package/dist/{CodeBlock-XNQOupQ3.js → CodeBlock-BUFXG8HW.js} +22 -12
- package/dist/{CodeBlock-CxQXv3C4.d.ts → CodeBlock-DUh9WOGo.d.ts} +13 -7
- package/dist/{Combobox-D9anamNr.d.ts → Combobox-B9Fcd6q-.d.ts} +4 -14
- package/dist/{FileTree-wMyZhhHO.js → FileTree-mpEIcfzA.js} +1 -1
- package/dist/{Menu-BLhnNnRK.d.ts → Menu-Bgu-ufb5.d.ts} +26 -65
- package/dist/{ModelSelector-BB-xB-Es.js → ModelSelector-DVgVBdvw.js} +7 -7
- package/dist/{PromptInput-IyM6ZETj.d.ts → PromptInput-p5KmOmt1.d.ts} +302 -46
- package/dist/Select-Dl_vF_Bt.d.ts +213 -0
- package/dist/{Tabs-D9EAq09D.d.ts → Tabs-3Zc4tb9D.d.ts} +9 -6
- package/dist/{ThinkChat-B3wYahor.js → ThinkChat-7DQ2CogF.js} +34 -2
- package/dist/{ThinkChatActivity-F4KFPcJA.d.ts → ThinkChatActivity-Cuk28Js_.d.ts} +1 -1
- package/dist/{attachment-preview-ChtC3HiU.js → attachment-preview-DIs50Q0h.js} +3 -3
- package/dist/components/Accordion.d.ts +17 -6
- package/dist/components/Accordion.js +23 -36
- package/dist/components/Activity.d.ts +5 -5
- package/dist/components/Activity.js +9 -9
- package/dist/components/AgentChat.d.ts +1 -1
- package/dist/components/AgentChat.js +304 -116
- package/dist/components/AgentConnection.js +2 -2
- package/dist/components/AlertDialog.d.ts +40 -32
- package/dist/components/AlertDialog.js +46 -39
- package/dist/components/Artifact.d.ts +1 -1
- package/dist/components/Artifact.js +5 -5
- package/dist/components/Autocomplete.js +10 -2
- package/dist/components/Avatar.d.ts +2 -2
- package/dist/components/Avatar.js +3 -3
- package/dist/components/Badge.d.ts +11 -14
- package/dist/components/Badge.js +10 -18
- package/dist/components/BrowserLiveView.js +26 -36
- package/dist/components/BrowserReplay.js +4 -4
- package/dist/components/BrowserRunPanel.js +1 -1
- package/dist/components/Button.d.ts +2 -2
- package/dist/components/Button.js +7 -30
- package/dist/components/ChainOfThought.d.ts +5 -5
- package/dist/components/ChainOfThought.js +8 -5
- package/dist/components/ChatGptSignInScreen.js +3 -3
- package/dist/components/Checkbox.d.ts +10 -2
- package/dist/components/Checkbox.js +13 -6
- package/dist/components/CheckboxGroup.d.ts +6 -6
- package/dist/components/CheckboxGroup.js +6 -6
- package/dist/components/CodeBlock.d.ts +1 -1
- package/dist/components/CodeBlock.js +1 -1
- package/dist/components/CodexModelSelector.d.ts +23 -28
- package/dist/components/CodexModelSelector.js +116 -94
- package/dist/components/Collapsible.d.ts +2 -4
- package/dist/components/Collapsible.js +9 -7
- package/dist/components/Combobox.d.ts +2 -2
- package/dist/components/Combobox.js +20 -22
- package/dist/components/Commit.d.ts +5 -5
- package/dist/components/Commit.js +6 -6
- package/dist/components/Context.js +5 -1
- package/dist/components/ContextMenu.d.ts +20 -72
- package/dist/components/ContextMenu.js +46 -56
- package/dist/components/Conversation.d.ts +1 -1
- package/dist/components/Conversation.js +1 -1
- package/dist/components/Dialog.d.ts +38 -30
- package/dist/components/Dialog.js +46 -34
- package/dist/components/EnvironmentVariables.d.ts +1 -1
- package/dist/components/EnvironmentVariables.js +5 -5
- package/dist/components/Field.d.ts +3 -3
- package/dist/components/Field.js +7 -8
- package/dist/components/Fieldset.d.ts +2 -2
- package/dist/components/Fieldset.js +2 -2
- package/dist/components/FileTree.js +1 -1
- package/dist/components/Label.d.ts +1 -1
- package/dist/components/Label.js +1 -1
- package/dist/components/McpServerPicker.js +21 -19
- package/dist/components/Menu.d.ts +2 -2
- package/dist/components/Menu.js +39 -49
- package/dist/components/Menubar.d.ts +16 -52
- package/dist/components/Menubar.js +44 -56
- package/dist/components/Message.d.ts +1 -1
- package/dist/components/Message.js +6 -6
- package/dist/components/MessageScroller.d.ts +1 -1
- package/dist/components/MessageScroller.js +1 -1
- package/dist/components/Meter.js +5 -0
- package/dist/components/ModelSelector.d.ts +1 -1
- package/dist/components/ModelSelector.js +1 -1
- package/dist/components/NavigationMenu.d.ts +3 -14
- package/dist/components/NavigationMenu.js +22 -38
- package/dist/components/NumberField.js +6 -0
- package/dist/components/Popover.d.ts +21 -44
- package/dist/components/Popover.js +33 -23
- package/dist/components/PreviewCard.d.ts +20 -18
- package/dist/components/PreviewCard.js +30 -20
- package/dist/components/PricingPage.js +30 -29
- package/dist/components/Progress.d.ts +7 -3
- package/dist/components/Progress.js +9 -4
- package/dist/components/PromptInput.d.ts +2 -2
- package/dist/components/PromptInput.js +139 -54
- package/dist/components/Queue.d.ts +7 -7
- package/dist/components/Queue.js +6 -6
- package/dist/components/RadioGroup.d.ts +10 -9
- package/dist/components/RadioGroup.js +8 -9
- package/dist/components/Reasoning.d.ts +4 -4
- package/dist/components/Reasoning.js +10 -6
- package/dist/components/ScrollArea.d.ts +2 -9
- package/dist/components/ScrollArea.js +5 -23
- package/dist/components/Select.d.ts +2 -2
- package/dist/components/Select.js +100 -134
- package/dist/components/Slider.d.ts +10 -7
- package/dist/components/Slider.js +12 -11
- package/dist/components/Sources.d.ts +4 -4
- package/dist/components/Sources.js +8 -5
- package/dist/components/Stepper.js +1 -1
- package/dist/components/Switch.d.ts +6 -3
- package/dist/components/Switch.js +7 -4
- package/dist/components/Tabs.d.ts +2 -2
- package/dist/components/Tabs.js +9 -4
- package/dist/components/Task.d.ts +4 -4
- package/dist/components/Task.js +10 -6
- package/dist/components/Terminal.d.ts +2 -2
- package/dist/components/Terminal.js +5 -5
- package/dist/components/TestResults.d.ts +4 -4
- package/dist/components/TestResults.js +5 -5
- package/dist/components/ThinkChat.d.ts +9 -2
- package/dist/components/ThinkChat.js +1 -1
- package/dist/components/ThinkChatActivity.d.ts +1 -1
- package/dist/components/ThinkChatActivity.js +1 -1
- package/dist/components/ThinkChatToolPanels.js +8 -8
- package/dist/components/ThinkExecutionWorkbench.js +28 -28
- package/dist/components/ThinkFullApp.js +8 -8
- package/dist/components/ThinkThreadPicker.js +1 -1
- package/dist/components/ThinkThreadShell.js +5 -5
- package/dist/components/Toast.js +7 -0
- package/dist/components/ToggleGroup.d.ts +6 -2
- package/dist/components/ToggleGroup.js +6 -2
- package/dist/components/Toolbar.js +6 -0
- package/dist/components/Tooltip.d.ts +36 -27
- package/dist/components/Tooltip.js +45 -29
- package/dist/components/WebPreview.d.ts +1 -1
- package/dist/components/WebPreview.js +3 -3
- package/dist/components/WorkspaceExplorer.d.ts +6 -8
- package/dist/components/WorkspaceExplorer.js +6 -6
- package/dist/components/icons.d.ts +2 -2
- package/dist/components/icons.js +2 -2
- package/dist/{copy-button-C6JSKtFE.js → copy-button-DUMLYdsk.js} +7 -6
- package/dist/{copy-button-BKXqGiNm.d.ts → copy-button-DtPMgN7e.d.ts} +3 -2
- package/dist/icons-Ba9THQKz.js +64 -0
- package/dist/icons-CUCz_Sft.d.ts +210 -0
- package/dist/styles/accessibility.css +14 -0
- package/dist/styles/accordion.css +21 -61
- package/dist/styles/activity.css +23 -58
- package/dist/styles/agent-chat.css +45 -4
- package/dist/styles/agent-connection.css +8 -10
- package/dist/styles/alert-dialog.css +20 -26
- package/dist/styles/artifact.css +6 -6
- package/dist/styles/attachment-preview.css +1 -1
- package/dist/styles/autocomplete.css +5 -170
- package/dist/styles/avatar.css +8 -8
- package/dist/styles/badge.css +8 -10
- package/dist/styles/base-ui-motion.css +176 -0
- package/dist/styles/base.css +19 -25
- package/dist/styles/browser-live-view.css +7 -7
- package/dist/styles/browser-replay.css +5 -5
- package/dist/styles/browser-run-panel.css +5 -5
- package/dist/styles/button.css +48 -43
- package/dist/styles/card.css +3 -5
- package/dist/styles/chain-of-thought.css +14 -70
- package/dist/styles/chatgpt-sign-in-screen.css +3 -3
- package/dist/styles/checkbox-group.css +1 -1
- package/dist/styles/checkbox.css +3 -7
- package/dist/styles/code-block.css +10 -10
- package/dist/styles/codex-model-selector.css +33 -44
- package/dist/styles/collapsible.css +11 -27
- package/dist/styles/combobox.css +3 -149
- package/dist/styles/commit.css +19 -35
- package/dist/styles/context-menu.css +1 -77
- package/dist/styles/context.css +12 -12
- package/dist/styles/conversation.css +7 -7
- package/dist/styles/dialog.css +34 -55
- package/dist/styles/environment-variables.css +10 -10
- package/dist/styles/field.css +16 -58
- package/dist/styles/fieldset.css +2 -2
- package/dist/styles/file-tree.css +7 -9
- package/dist/styles/index.css +8 -1
- package/dist/styles/input.css +1 -51
- package/dist/styles/label.css +2 -2
- package/dist/styles/marker.css +2 -4
- package/dist/styles/mcp-server-picker.css +5 -5
- package/dist/styles/menu.css +6 -153
- package/dist/styles/menubar.css +6 -105
- package/dist/styles/message-scroller.css +1 -1
- package/dist/styles/message.css +86 -8
- package/dist/styles/meter.css +4 -20
- package/dist/styles/model-selector.css +13 -13
- package/dist/styles/navigation-menu.css +14 -54
- package/dist/styles/number-field.css +8 -23
- package/dist/styles/popover.css +13 -68
- package/dist/styles/preview-card.css +5 -46
- package/dist/styles/pricing-page.css +43 -43
- package/dist/styles/progress.css +7 -16
- package/dist/styles/prompt-input.css +95 -44
- package/dist/styles/queue.css +12 -28
- package/dist/styles/radio.css +4 -8
- package/dist/styles/reasoning.css +3 -62
- package/dist/styles/recipes.css +475 -0
- package/dist/styles/select.css +7 -103
- package/dist/styles/shell.css +3 -3
- package/dist/styles/slider.css +5 -7
- package/dist/styles/sources.css +9 -66
- package/dist/styles/stepper.css +16 -14
- package/dist/styles/streamdown.css +9 -9
- package/dist/styles/switch.css +4 -7
- package/dist/styles/tabs.css +7 -8
- package/dist/styles/task.css +13 -42
- package/dist/styles/terminal.css +7 -7
- package/dist/styles/test-results.css +21 -37
- package/dist/styles/think-execution-workbench.css +23 -23
- package/dist/styles/think-full-app.css +12 -20
- package/dist/styles/think-resize-handle.css +2 -2
- package/dist/styles/think-thread-picker.css +19 -10
- package/dist/styles/think-thread-shell.css +7 -7
- package/dist/styles/toast.css +14 -25
- package/dist/styles/toggle-group.css +16 -14
- package/dist/styles/toggle.css +14 -15
- package/dist/styles/toolbar.css +13 -25
- package/dist/styles/tooltip.css +6 -16
- package/dist/styles/web-preview.css +15 -15
- package/dist/styles/workspace-explorer.css +14 -13
- package/dist/utils/codex-model-catalog.d.ts +142 -0
- package/dist/utils/codex-model-catalog.js +112 -0
- package/dist/utils/structured-code.d.ts +1 -1
- package/package.json +8 -2
- package/dist/Select-CRsKCJ9x.d.ts +0 -200
- package/dist/icons-CbjtbIJK.d.ts +0 -51
- package/dist/icons-D2Q5n5C1.js +0 -291
package/dist/components/Menu.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import "react";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Menu as Menu$1 } from "@base-ui/react/menu";
|
|
4
4
|
//#region src/components/Menu.tsx
|
|
5
5
|
/**
|
|
@@ -36,6 +36,7 @@ function MenuTrigger({ className = "", unstyled = false, ref, ...props }) {
|
|
|
36
36
|
return /* @__PURE__ */ jsx(Menu$1.Trigger, {
|
|
37
37
|
ref,
|
|
38
38
|
"data-slot": "dropdown-menu-trigger",
|
|
39
|
+
"data-unstyled": unstyled || void 0,
|
|
39
40
|
className: classes,
|
|
40
41
|
...props
|
|
41
42
|
});
|
|
@@ -53,7 +54,11 @@ const MenuPortal = (props) => {
|
|
|
53
54
|
* Positions the menu popup relative to the trigger.
|
|
54
55
|
*/
|
|
55
56
|
function MenuPositioner({ className = "", ref, ...props }) {
|
|
56
|
-
const classes = [
|
|
57
|
+
const classes = [
|
|
58
|
+
"menu__positioner",
|
|
59
|
+
"base-ui-positioner",
|
|
60
|
+
className
|
|
61
|
+
].filter(Boolean).join(" ");
|
|
57
62
|
return /* @__PURE__ */ jsx(Menu$1.Positioner, {
|
|
58
63
|
ref,
|
|
59
64
|
"data-slot": "dropdown-menu-positioner",
|
|
@@ -65,7 +70,11 @@ function MenuPositioner({ className = "", ref, ...props }) {
|
|
|
65
70
|
* Container for menu items.
|
|
66
71
|
*/
|
|
67
72
|
function MenuPopup({ className = "", ref, ...props }) {
|
|
68
|
-
const classes = [
|
|
73
|
+
const classes = [
|
|
74
|
+
"menu__popup",
|
|
75
|
+
"base-ui-popup",
|
|
76
|
+
className
|
|
77
|
+
].filter(Boolean).join(" ");
|
|
69
78
|
return /* @__PURE__ */ jsx(Menu$1.Popup, {
|
|
70
79
|
ref,
|
|
71
80
|
"data-slot": "dropdown-menu-content",
|
|
@@ -73,22 +82,19 @@ function MenuPopup({ className = "", ref, ...props }) {
|
|
|
73
82
|
...props
|
|
74
83
|
});
|
|
75
84
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
collisionAvoidance,
|
|
90
|
-
children: /* @__PURE__ */ jsx(MenuPopup, { ...props })
|
|
91
|
-
}) });
|
|
85
|
+
/**
|
|
86
|
+
* Transition container for content that changes as a menu moves between
|
|
87
|
+
* triggers. Pair the adaptive classes from `base-ui-motion.css` with the
|
|
88
|
+
* positioner, popup, and this viewport when that behavior is needed.
|
|
89
|
+
*/
|
|
90
|
+
function MenuViewport({ className = "", ref, ...props }) {
|
|
91
|
+
const classes = ["menu__viewport", className].filter(Boolean).join(" ");
|
|
92
|
+
return /* @__PURE__ */ jsx(Menu$1.Viewport, {
|
|
93
|
+
ref,
|
|
94
|
+
"data-slot": "dropdown-menu-viewport",
|
|
95
|
+
className: classes,
|
|
96
|
+
...props
|
|
97
|
+
});
|
|
92
98
|
}
|
|
93
99
|
/**
|
|
94
100
|
* Interactive menu item.
|
|
@@ -137,7 +143,6 @@ function MenuGroupLabel({ className = "", inset, ref, ...props }) {
|
|
|
137
143
|
...props
|
|
138
144
|
});
|
|
139
145
|
}
|
|
140
|
-
const MenuLabel = MenuGroupLabel;
|
|
141
146
|
/**
|
|
142
147
|
* Arrow pointing to the trigger.
|
|
143
148
|
*/
|
|
@@ -177,14 +182,13 @@ function MenuRadioGroup({ className = "", ref, ...props }) {
|
|
|
177
182
|
/**
|
|
178
183
|
* Radio item for exclusive selection.
|
|
179
184
|
*/
|
|
180
|
-
function MenuRadioItem({ className = "",
|
|
185
|
+
function MenuRadioItem({ className = "", ref, ...props }) {
|
|
181
186
|
const classes = ["menu__radio-item", className].filter(Boolean).join(" ");
|
|
182
187
|
return /* @__PURE__ */ jsx(Menu$1.RadioItem, {
|
|
183
188
|
ref,
|
|
184
189
|
"data-slot": "dropdown-menu-radio-item",
|
|
185
190
|
className: classes,
|
|
186
|
-
...props
|
|
187
|
-
children: hasChildOfType(children, MenuRadioItemIndicator) ? children : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(MenuRadioItemIndicator, {}), children] })
|
|
191
|
+
...props
|
|
188
192
|
});
|
|
189
193
|
}
|
|
190
194
|
/**
|
|
@@ -202,14 +206,13 @@ function MenuRadioItemIndicator({ className = "", ref, ...props }) {
|
|
|
202
206
|
/**
|
|
203
207
|
* Checkbox item for toggling options.
|
|
204
208
|
*/
|
|
205
|
-
function MenuCheckboxItem({ className = "",
|
|
209
|
+
function MenuCheckboxItem({ className = "", ref, ...props }) {
|
|
206
210
|
const classes = ["menu__checkbox-item", className].filter(Boolean).join(" ");
|
|
207
211
|
return /* @__PURE__ */ jsx(Menu$1.CheckboxItem, {
|
|
208
212
|
ref,
|
|
209
213
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
210
214
|
className: classes,
|
|
211
|
-
...props
|
|
212
|
-
children: hasChildOfType(children, MenuCheckboxItemIndicator) ? children : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(MenuCheckboxItemIndicator, {}), children] })
|
|
215
|
+
...props
|
|
213
216
|
});
|
|
214
217
|
}
|
|
215
218
|
/**
|
|
@@ -232,21 +235,12 @@ function MenuShortcut({ className = "", ref, ...props }) {
|
|
|
232
235
|
...props
|
|
233
236
|
});
|
|
234
237
|
}
|
|
235
|
-
function
|
|
238
|
+
function MenuSubmenuRoot(props) {
|
|
236
239
|
return /* @__PURE__ */ jsx(Menu$1.SubmenuRoot, {
|
|
237
240
|
"data-slot": "dropdown-menu-sub",
|
|
238
241
|
...props
|
|
239
242
|
});
|
|
240
243
|
}
|
|
241
|
-
function MenuSubContent({ side = "right", align, sideOffset = 4, ...props }) {
|
|
242
|
-
return /* @__PURE__ */ jsx(MenuContent, {
|
|
243
|
-
"data-slot": "dropdown-menu-sub-content",
|
|
244
|
-
side,
|
|
245
|
-
align,
|
|
246
|
-
sideOffset,
|
|
247
|
-
...props
|
|
248
|
-
});
|
|
249
|
-
}
|
|
250
244
|
/**
|
|
251
245
|
* Trigger that opens a submenu.
|
|
252
246
|
*/
|
|
@@ -264,10 +258,6 @@ function MenuSubmenuTrigger({ className = "", inset, ref, ...props }) {
|
|
|
264
258
|
...props
|
|
265
259
|
});
|
|
266
260
|
}
|
|
267
|
-
const MenuSubTrigger = MenuSubmenuTrigger;
|
|
268
|
-
function hasChildOfType(children, type) {
|
|
269
|
-
return React.Children.toArray(children).some((child) => React.isValidElement(child) && child.type === type);
|
|
270
|
-
}
|
|
271
261
|
/**
|
|
272
262
|
* A dropdown menu with keyboard navigation support.
|
|
273
263
|
* Provides items, groups, checkboxes, radio selections, and nested submenus.
|
|
@@ -310,17 +300,19 @@ function hasChildOfType(children, type) {
|
|
|
310
300
|
*
|
|
311
301
|
* @see {@link https://base-ui.com/react/components/menu | Base UI Menu}
|
|
312
302
|
*/
|
|
313
|
-
const Menu =
|
|
303
|
+
const Menu = {
|
|
304
|
+
createHandle: Menu$1.createHandle,
|
|
314
305
|
Root: MenuRoot,
|
|
315
306
|
Trigger: MenuTrigger,
|
|
316
307
|
Portal: MenuPortal,
|
|
317
308
|
Positioner: MenuPositioner,
|
|
318
309
|
Popup: MenuPopup,
|
|
319
|
-
|
|
310
|
+
Viewport: MenuViewport,
|
|
311
|
+
Backdrop: Menu$1.Backdrop,
|
|
320
312
|
Item: MenuItem,
|
|
321
313
|
Group: MenuGroup,
|
|
322
314
|
GroupLabel: MenuGroupLabel,
|
|
323
|
-
|
|
315
|
+
LinkItem: Menu$1.LinkItem,
|
|
324
316
|
Arrow: MenuArrow,
|
|
325
317
|
Separator: MenuSeparator,
|
|
326
318
|
RadioGroup: MenuRadioGroup,
|
|
@@ -329,10 +321,8 @@ const Menu = Object.assign(MenuRoot, {
|
|
|
329
321
|
CheckboxItem: MenuCheckboxItem,
|
|
330
322
|
CheckboxItemIndicator: MenuCheckboxItemIndicator,
|
|
331
323
|
Shortcut: MenuShortcut,
|
|
332
|
-
|
|
333
|
-
SubContent: MenuSubContent,
|
|
334
|
-
SubTrigger: MenuSubTrigger,
|
|
324
|
+
SubmenuRoot: MenuSubmenuRoot,
|
|
335
325
|
SubmenuTrigger: MenuSubmenuTrigger
|
|
336
|
-
}
|
|
326
|
+
};
|
|
337
327
|
//#endregion
|
|
338
|
-
export { Menu
|
|
328
|
+
export { Menu };
|
|
@@ -80,14 +80,11 @@ interface MenubarRadioItemProps extends Omit<React.ComponentPropsWithoutRef<type
|
|
|
80
80
|
className?: string;
|
|
81
81
|
}
|
|
82
82
|
interface MenubarShortcutProps extends React.HTMLAttributes<HTMLSpanElement> {}
|
|
83
|
-
interface
|
|
84
|
-
interface
|
|
83
|
+
interface MenubarSubmenuRootProps extends React.ComponentPropsWithoutRef<typeof Menu.SubmenuRoot> {}
|
|
84
|
+
interface MenubarSubmenuTriggerProps extends Omit<React.ComponentPropsWithoutRef<typeof Menu.SubmenuTrigger>, "className"> {
|
|
85
85
|
className?: string;
|
|
86
86
|
inset?: boolean;
|
|
87
87
|
}
|
|
88
|
-
type MenubarPlacementProps = Pick<MenubarPositionerProps, "anchor" | "positionMethod" | "side" | "sideOffset" | "align" | "alignOffset" | "collisionBoundary" | "collisionPadding" | "sticky" | "arrowPadding" | "disableAnchorTracking" | "collisionAvoidance">;
|
|
89
|
-
type MenubarContentProps = MenubarPopupProps & MenubarPlacementProps;
|
|
90
|
-
type MenubarSubContentProps = MenubarContentProps;
|
|
91
88
|
/**
|
|
92
89
|
* Root menubar container.
|
|
93
90
|
*
|
|
@@ -118,10 +115,6 @@ declare function MenubarRoot({
|
|
|
118
115
|
}: MenubarProps & {
|
|
119
116
|
ref?: React.Ref<HTMLDivElement>;
|
|
120
117
|
}): React.JSX.Element;
|
|
121
|
-
/**
|
|
122
|
-
* Individual menu within the menubar.
|
|
123
|
-
*/
|
|
124
|
-
declare const MenubarMenu: (props: MenubarMenuProps) => React.JSX.Element;
|
|
125
118
|
/**
|
|
126
119
|
* Button that opens the menu.
|
|
127
120
|
*/
|
|
@@ -132,10 +125,6 @@ declare function MenubarTrigger({
|
|
|
132
125
|
}: MenubarTriggerProps & {
|
|
133
126
|
ref?: React.Ref<HTMLButtonElement>;
|
|
134
127
|
}): React.JSX.Element;
|
|
135
|
-
/**
|
|
136
|
-
* Renders menu content in a portal.
|
|
137
|
-
*/
|
|
138
|
-
declare const MenubarPortal: (props: MenubarPortalProps) => React.JSX.Element;
|
|
139
128
|
/**
|
|
140
129
|
* Positions the menu popup.
|
|
141
130
|
*/
|
|
@@ -156,23 +145,6 @@ declare function MenubarPopup({
|
|
|
156
145
|
}: MenubarPopupProps & {
|
|
157
146
|
ref?: React.Ref<HTMLDivElement>;
|
|
158
147
|
}): React.JSX.Element;
|
|
159
|
-
declare function MenubarContent({
|
|
160
|
-
anchor,
|
|
161
|
-
positionMethod,
|
|
162
|
-
side,
|
|
163
|
-
sideOffset,
|
|
164
|
-
align,
|
|
165
|
-
alignOffset,
|
|
166
|
-
collisionBoundary,
|
|
167
|
-
collisionPadding,
|
|
168
|
-
sticky,
|
|
169
|
-
arrowPadding,
|
|
170
|
-
disableAnchorTracking,
|
|
171
|
-
collisionAvoidance,
|
|
172
|
-
...props
|
|
173
|
-
}: MenubarContentProps & {
|
|
174
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
175
|
-
}): React.JSX.Element;
|
|
176
148
|
/**
|
|
177
149
|
* Interactive menu item.
|
|
178
150
|
*/
|
|
@@ -216,15 +188,14 @@ declare function MenubarGroupLabel({
|
|
|
216
188
|
}: MenubarGroupLabelProps & {
|
|
217
189
|
ref?: React.Ref<HTMLDivElement>;
|
|
218
190
|
}): React.JSX.Element;
|
|
219
|
-
declare const MenubarLabel: typeof MenubarGroupLabel;
|
|
220
191
|
declare function MenubarCheckboxItem({
|
|
221
192
|
className,
|
|
222
|
-
children,
|
|
223
193
|
ref,
|
|
224
194
|
...props
|
|
225
195
|
}: MenubarCheckboxItemProps & {
|
|
226
196
|
ref?: React.Ref<HTMLDivElement>;
|
|
227
197
|
}): React.JSX.Element;
|
|
198
|
+
declare function MenubarCheckboxItemIndicator(props: Menu.CheckboxItemIndicator.Props): React.JSX.Element;
|
|
228
199
|
declare function MenubarRadioGroup({
|
|
229
200
|
className,
|
|
230
201
|
ref,
|
|
@@ -234,12 +205,12 @@ declare function MenubarRadioGroup({
|
|
|
234
205
|
}): React.JSX.Element;
|
|
235
206
|
declare function MenubarRadioItem({
|
|
236
207
|
className,
|
|
237
|
-
children,
|
|
238
208
|
ref,
|
|
239
209
|
...props
|
|
240
210
|
}: MenubarRadioItemProps & {
|
|
241
211
|
ref?: React.Ref<HTMLDivElement>;
|
|
242
212
|
}): React.JSX.Element;
|
|
213
|
+
declare function MenubarRadioItemIndicator(props: Menu.RadioItemIndicator.Props): React.JSX.Element;
|
|
243
214
|
declare function MenubarShortcut({
|
|
244
215
|
className,
|
|
245
216
|
ref,
|
|
@@ -247,22 +218,13 @@ declare function MenubarShortcut({
|
|
|
247
218
|
}: MenubarShortcutProps & {
|
|
248
219
|
ref?: React.Ref<HTMLSpanElement>;
|
|
249
220
|
}): React.JSX.Element;
|
|
250
|
-
declare function
|
|
251
|
-
declare function
|
|
252
|
-
side,
|
|
253
|
-
align,
|
|
254
|
-
sideOffset,
|
|
255
|
-
...props
|
|
256
|
-
}: MenubarSubContentProps & {
|
|
257
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
258
|
-
}): React.JSX.Element;
|
|
259
|
-
declare function MenubarSubTrigger({
|
|
221
|
+
declare function MenubarSubmenuRoot(props: MenubarSubmenuRootProps): React.JSX.Element;
|
|
222
|
+
declare function MenubarSubmenuTrigger({
|
|
260
223
|
className,
|
|
261
224
|
inset,
|
|
262
|
-
children,
|
|
263
225
|
ref,
|
|
264
226
|
...props
|
|
265
|
-
}:
|
|
227
|
+
}: MenubarSubmenuTriggerProps & {
|
|
266
228
|
ref?: React.Ref<HTMLDivElement>;
|
|
267
229
|
}): React.JSX.Element;
|
|
268
230
|
/**
|
|
@@ -306,26 +268,28 @@ declare function MenubarSubTrigger({
|
|
|
306
268
|
*
|
|
307
269
|
* @see {@link https://base-ui.com/react/components/menubar | Base UI Menubar}
|
|
308
270
|
*/
|
|
309
|
-
declare const Menubar:
|
|
271
|
+
declare const Menubar: {
|
|
310
272
|
Root: typeof MenubarRoot;
|
|
311
273
|
Menu: (props: MenubarMenuProps) => React.JSX.Element;
|
|
312
274
|
Trigger: typeof MenubarTrigger;
|
|
313
275
|
Portal: (props: MenubarPortalProps) => React.JSX.Element;
|
|
314
276
|
Positioner: typeof MenubarPositioner;
|
|
315
277
|
Popup: typeof MenubarPopup;
|
|
316
|
-
|
|
278
|
+
Backdrop: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
279
|
+
Arrow: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
317
280
|
Item: typeof MenubarItem;
|
|
318
281
|
Separator: typeof MenubarSeparator;
|
|
319
282
|
Group: typeof MenubarGroup;
|
|
320
283
|
GroupLabel: typeof MenubarGroupLabel;
|
|
321
|
-
|
|
284
|
+
LinkItem: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuLinkItemProps, "ref"> & React.RefAttributes<Element>>;
|
|
322
285
|
CheckboxItem: typeof MenubarCheckboxItem;
|
|
286
|
+
CheckboxItemIndicator: typeof MenubarCheckboxItemIndicator;
|
|
323
287
|
RadioGroup: typeof MenubarRadioGroup;
|
|
324
288
|
RadioItem: typeof MenubarRadioItem;
|
|
289
|
+
RadioItemIndicator: typeof MenubarRadioItemIndicator;
|
|
325
290
|
Shortcut: typeof MenubarShortcut;
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
SubTrigger: typeof MenubarSubTrigger;
|
|
291
|
+
SubmenuRoot: typeof MenubarSubmenuRoot;
|
|
292
|
+
SubmenuTrigger: typeof MenubarSubmenuTrigger;
|
|
329
293
|
};
|
|
330
294
|
//#endregion
|
|
331
|
-
export { Menubar,
|
|
295
|
+
export { Menubar, MenubarCheckboxItemProps, MenubarGroupLabelProps, MenubarGroupProps, MenubarItemProps, MenubarMenuProps, MenubarPopupProps, MenubarPortalProps, MenubarPositionerProps, MenubarProps, MenubarRadioGroupProps, MenubarRadioItemProps, MenubarSeparatorProps, MenubarShortcutProps, MenubarSubmenuRootProps, MenubarSubmenuTriggerProps, MenubarTriggerProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as CheckIcon,
|
|
1
|
+
import { a as CheckIcon, u as DotIcon } from "../icons-Ba9THQKz.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import { jsx
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Menu } from "@base-ui/react/menu";
|
|
5
5
|
import { Menubar as Menubar$1 } from "@base-ui/react/menubar";
|
|
6
6
|
//#region src/components/Menubar.tsx
|
|
@@ -66,7 +66,11 @@ const MenubarPortal = (props) => {
|
|
|
66
66
|
* Positions the menu popup.
|
|
67
67
|
*/
|
|
68
68
|
function MenubarPositioner({ className = "", ref, ...props }) {
|
|
69
|
-
const classes = [
|
|
69
|
+
const classes = [
|
|
70
|
+
"menubar__positioner",
|
|
71
|
+
"base-ui-positioner",
|
|
72
|
+
className
|
|
73
|
+
].filter(Boolean).join(" ");
|
|
70
74
|
return /* @__PURE__ */ jsx(Menu.Positioner, {
|
|
71
75
|
ref,
|
|
72
76
|
"data-slot": "menubar-positioner",
|
|
@@ -78,7 +82,11 @@ function MenubarPositioner({ className = "", ref, ...props }) {
|
|
|
78
82
|
* Container for menu items.
|
|
79
83
|
*/
|
|
80
84
|
function MenubarPopup({ className = "", ref, ...props }) {
|
|
81
|
-
const classes = [
|
|
85
|
+
const classes = [
|
|
86
|
+
"menubar__popup",
|
|
87
|
+
"base-ui-popup",
|
|
88
|
+
className
|
|
89
|
+
].filter(Boolean).join(" ");
|
|
82
90
|
return /* @__PURE__ */ jsx(Menu.Popup, {
|
|
83
91
|
ref,
|
|
84
92
|
"data-slot": "menubar-content",
|
|
@@ -86,23 +94,6 @@ function MenubarPopup({ className = "", ref, ...props }) {
|
|
|
86
94
|
...props
|
|
87
95
|
});
|
|
88
96
|
}
|
|
89
|
-
function MenubarContent({ anchor, positionMethod, side, sideOffset = 8, align = "start", alignOffset = -4, collisionBoundary, collisionPadding, sticky, arrowPadding, disableAnchorTracking, collisionAvoidance, ...props }) {
|
|
90
|
-
return /* @__PURE__ */ jsx(Menu.Portal, { children: /* @__PURE__ */ jsx(MenubarPositioner, {
|
|
91
|
-
anchor,
|
|
92
|
-
positionMethod,
|
|
93
|
-
side,
|
|
94
|
-
sideOffset,
|
|
95
|
-
align,
|
|
96
|
-
alignOffset,
|
|
97
|
-
collisionBoundary,
|
|
98
|
-
collisionPadding,
|
|
99
|
-
sticky,
|
|
100
|
-
arrowPadding,
|
|
101
|
-
disableAnchorTracking,
|
|
102
|
-
collisionAvoidance,
|
|
103
|
-
children: /* @__PURE__ */ jsx(MenubarPopup, { ...props })
|
|
104
|
-
}) });
|
|
105
|
-
}
|
|
106
97
|
/**
|
|
107
98
|
* Interactive menu item.
|
|
108
99
|
*/
|
|
@@ -162,18 +153,20 @@ function MenubarGroupLabel({ className = "", inset, ref, ...props }) {
|
|
|
162
153
|
...props
|
|
163
154
|
});
|
|
164
155
|
}
|
|
165
|
-
|
|
166
|
-
function MenubarCheckboxItem({ className = "", children, ref, ...props }) {
|
|
156
|
+
function MenubarCheckboxItem({ className = "", ref, ...props }) {
|
|
167
157
|
const classes = ["menubar__checkbox-item", className].filter(Boolean).join(" ");
|
|
168
|
-
return /* @__PURE__ */
|
|
158
|
+
return /* @__PURE__ */ jsx(Menu.CheckboxItem, {
|
|
169
159
|
ref,
|
|
170
160
|
"data-slot": "menubar-checkbox-item",
|
|
171
161
|
className: classes,
|
|
162
|
+
...props
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
function MenubarCheckboxItemIndicator(props) {
|
|
166
|
+
return /* @__PURE__ */ jsx(Menu.CheckboxItemIndicator, {
|
|
167
|
+
className: "menubar__indicator",
|
|
172
168
|
...props,
|
|
173
|
-
children:
|
|
174
|
-
className: "menubar__indicator",
|
|
175
|
-
children: /* @__PURE__ */ jsx(CheckIcon, {})
|
|
176
|
-
}), children]
|
|
169
|
+
children: props.children ?? /* @__PURE__ */ jsx(CheckIcon, {})
|
|
177
170
|
});
|
|
178
171
|
}
|
|
179
172
|
function MenubarRadioGroup({ className = "", ref, ...props }) {
|
|
@@ -185,17 +178,20 @@ function MenubarRadioGroup({ className = "", ref, ...props }) {
|
|
|
185
178
|
...props
|
|
186
179
|
});
|
|
187
180
|
}
|
|
188
|
-
function MenubarRadioItem({ className = "",
|
|
181
|
+
function MenubarRadioItem({ className = "", ref, ...props }) {
|
|
189
182
|
const classes = ["menubar__radio-item", className].filter(Boolean).join(" ");
|
|
190
|
-
return /* @__PURE__ */
|
|
183
|
+
return /* @__PURE__ */ jsx(Menu.RadioItem, {
|
|
191
184
|
ref,
|
|
192
185
|
"data-slot": "menubar-radio-item",
|
|
193
186
|
className: classes,
|
|
187
|
+
...props
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
function MenubarRadioItemIndicator(props) {
|
|
191
|
+
return /* @__PURE__ */ jsx(Menu.RadioItemIndicator, {
|
|
192
|
+
className: "menubar__indicator",
|
|
194
193
|
...props,
|
|
195
|
-
children:
|
|
196
|
-
className: "menubar__indicator",
|
|
197
|
-
children: /* @__PURE__ */ jsx(DotIcon, { size: 8 })
|
|
198
|
-
}), children]
|
|
194
|
+
children: props.children ?? /* @__PURE__ */ jsx(DotIcon, { size: 8 })
|
|
199
195
|
});
|
|
200
196
|
}
|
|
201
197
|
function MenubarShortcut({ className = "", ref, ...props }) {
|
|
@@ -206,31 +202,21 @@ function MenubarShortcut({ className = "", ref, ...props }) {
|
|
|
206
202
|
...props
|
|
207
203
|
});
|
|
208
204
|
}
|
|
209
|
-
function
|
|
205
|
+
function MenubarSubmenuRoot(props) {
|
|
210
206
|
return /* @__PURE__ */ jsx(Menu.SubmenuRoot, { ...props });
|
|
211
207
|
}
|
|
212
|
-
function
|
|
213
|
-
return /* @__PURE__ */ jsx(MenubarContent, {
|
|
214
|
-
"data-slot": "menubar-sub-content",
|
|
215
|
-
side,
|
|
216
|
-
align,
|
|
217
|
-
sideOffset,
|
|
218
|
-
...props
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
function MenubarSubTrigger({ className = "", inset, children, ref, ...props }) {
|
|
208
|
+
function MenubarSubmenuTrigger({ className = "", inset, ref, ...props }) {
|
|
222
209
|
const classes = [
|
|
223
210
|
"menubar__submenu-trigger",
|
|
224
211
|
inset && "menubar__item--inset",
|
|
225
212
|
className
|
|
226
213
|
].filter(Boolean).join(" ");
|
|
227
|
-
return /* @__PURE__ */
|
|
214
|
+
return /* @__PURE__ */ jsx(Menu.SubmenuTrigger, {
|
|
228
215
|
ref,
|
|
229
216
|
"data-slot": "menubar-sub-trigger",
|
|
230
217
|
"data-inset": inset || void 0,
|
|
231
218
|
className: classes,
|
|
232
|
-
...props
|
|
233
|
-
children: [children, /* @__PURE__ */ jsx(ChevronRightIcon, { className: "menubar__submenu-icon" })]
|
|
219
|
+
...props
|
|
234
220
|
});
|
|
235
221
|
}
|
|
236
222
|
/**
|
|
@@ -274,26 +260,28 @@ function MenubarSubTrigger({ className = "", inset, children, ref, ...props }) {
|
|
|
274
260
|
*
|
|
275
261
|
* @see {@link https://base-ui.com/react/components/menubar | Base UI Menubar}
|
|
276
262
|
*/
|
|
277
|
-
const Menubar =
|
|
263
|
+
const Menubar = {
|
|
278
264
|
Root: MenubarRoot,
|
|
279
265
|
Menu: MenubarMenu,
|
|
280
266
|
Trigger: MenubarTrigger,
|
|
281
267
|
Portal: MenubarPortal,
|
|
282
268
|
Positioner: MenubarPositioner,
|
|
283
269
|
Popup: MenubarPopup,
|
|
284
|
-
|
|
270
|
+
Backdrop: Menu.Backdrop,
|
|
271
|
+
Arrow: Menu.Arrow,
|
|
285
272
|
Item: MenubarItem,
|
|
286
273
|
Separator: MenubarSeparator,
|
|
287
274
|
Group: MenubarGroup,
|
|
288
275
|
GroupLabel: MenubarGroupLabel,
|
|
289
|
-
|
|
276
|
+
LinkItem: Menu.LinkItem,
|
|
290
277
|
CheckboxItem: MenubarCheckboxItem,
|
|
278
|
+
CheckboxItemIndicator: MenubarCheckboxItemIndicator,
|
|
291
279
|
RadioGroup: MenubarRadioGroup,
|
|
292
280
|
RadioItem: MenubarRadioItem,
|
|
281
|
+
RadioItemIndicator: MenubarRadioItemIndicator,
|
|
293
282
|
Shortcut: MenubarShortcut,
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
});
|
|
283
|
+
SubmenuRoot: MenubarSubmenuRoot,
|
|
284
|
+
SubmenuTrigger: MenubarSubmenuTrigger
|
|
285
|
+
};
|
|
298
286
|
//#endregion
|
|
299
|
-
export { Menubar
|
|
287
|
+
export { Menubar };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-9UtZwb0J.js";
|
|
2
|
-
import { h as FileIcon, n as ArrowLeftIcon, r as ArrowRightIcon } from "../icons-
|
|
2
|
+
import { h as FileIcon, n as ArrowLeftIcon, r as ArrowRightIcon } from "../icons-Ba9THQKz.js";
|
|
3
3
|
import { Button } from "./Button.js";
|
|
4
|
-
import { Tooltip
|
|
5
|
-
import { t as AttachmentPreview } from "../attachment-preview-
|
|
4
|
+
import { Tooltip } from "./Tooltip.js";
|
|
5
|
+
import { t as AttachmentPreview } from "../attachment-preview-DIs50Q0h.js";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { cjk } from "@streamdown/cjk";
|
|
@@ -114,7 +114,7 @@ function MessageActions({ className, children, ref, ...props }) {
|
|
|
114
114
|
return /* @__PURE__ */ jsx("div", {
|
|
115
115
|
ref,
|
|
116
116
|
className: cx("message__actions", className),
|
|
117
|
-
role: "
|
|
117
|
+
role: "group",
|
|
118
118
|
...props,
|
|
119
119
|
children
|
|
120
120
|
});
|
|
@@ -136,9 +136,9 @@ function MessageAction({ className, label, tooltip, variant = "ghost", color = "
|
|
|
136
136
|
children
|
|
137
137
|
});
|
|
138
138
|
if (!tooltip) return button;
|
|
139
|
-
return /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(
|
|
139
|
+
return /* @__PURE__ */ jsxs(Tooltip.Root, { children: [/* @__PURE__ */ jsx(Tooltip.Trigger, { render: button }), /* @__PURE__ */ jsx(Tooltip.Portal, { children: /* @__PURE__ */ jsx(Tooltip.Positioner, {
|
|
140
140
|
sideOffset: 6,
|
|
141
|
-
children: /* @__PURE__ */ jsx(
|
|
141
|
+
children: /* @__PURE__ */ jsx(Tooltip.Popup, { children: tooltip })
|
|
142
142
|
}) })] });
|
|
143
143
|
}
|
|
144
144
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as ButtonProps } from "../Button-
|
|
1
|
+
import { r as ButtonProps } from "../Button-FX_hpqxm.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { MessageScroller as MessageScroller$1, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from "@shadcn/react/message-scroller";
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-9UtZwb0J.js";
|
|
2
|
-
import { t as ArrowDownIcon } from "../icons-
|
|
2
|
+
import { t as ArrowDownIcon } from "../icons-Ba9THQKz.js";
|
|
3
3
|
import { Button } from "./Button.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
package/dist/components/Meter.js
CHANGED
|
@@ -22,6 +22,7 @@ function MeterRoot({ className = "", ref, ...props }) {
|
|
|
22
22
|
const classes = ["meter", className].filter(Boolean).join(" ");
|
|
23
23
|
return /* @__PURE__ */ jsx(Meter$1.Root, {
|
|
24
24
|
ref,
|
|
25
|
+
"data-slot": "meter",
|
|
25
26
|
className: classes,
|
|
26
27
|
...props
|
|
27
28
|
});
|
|
@@ -33,6 +34,7 @@ function MeterTrack({ className = "", ref, ...props }) {
|
|
|
33
34
|
const classes = ["meter__track", className].filter(Boolean).join(" ");
|
|
34
35
|
return /* @__PURE__ */ jsx(Meter$1.Track, {
|
|
35
36
|
ref,
|
|
37
|
+
"data-slot": "meter-track",
|
|
36
38
|
className: classes,
|
|
37
39
|
...props
|
|
38
40
|
});
|
|
@@ -44,6 +46,7 @@ function MeterIndicator({ className = "", ref, ...props }) {
|
|
|
44
46
|
const classes = ["meter__indicator", className].filter(Boolean).join(" ");
|
|
45
47
|
return /* @__PURE__ */ jsx(Meter$1.Indicator, {
|
|
46
48
|
ref,
|
|
49
|
+
"data-slot": "meter-indicator",
|
|
47
50
|
className: classes,
|
|
48
51
|
...props
|
|
49
52
|
});
|
|
@@ -55,6 +58,7 @@ function MeterLabel({ className = "", ref, ...props }) {
|
|
|
55
58
|
const classes = ["meter__label", className].filter(Boolean).join(" ");
|
|
56
59
|
return /* @__PURE__ */ jsx(Meter$1.Label, {
|
|
57
60
|
ref,
|
|
61
|
+
"data-slot": "meter-label",
|
|
58
62
|
className: classes,
|
|
59
63
|
...props
|
|
60
64
|
});
|
|
@@ -66,6 +70,7 @@ function MeterValue({ className = "", ref, ...props }) {
|
|
|
66
70
|
const classes = ["meter__value", className].filter(Boolean).join(" ");
|
|
67
71
|
return /* @__PURE__ */ jsx(Meter$1.Value, {
|
|
68
72
|
ref,
|
|
73
|
+
"data-slot": "meter-value",
|
|
69
74
|
className: classes,
|
|
70
75
|
...props
|
|
71
76
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as getCloudflareModelProvider, a as ModelSelectorEmpty, b as normalizeCloudflareModelSelectorModels, c as ModelSelectorItem, d as ModelSelectorLogoGroup, f as ModelSelectorName, g as formatCloudflareModelProvider, h as ModelSelectorTrigger, i as ModelSelectorDialog, l as ModelSelectorList, m as ModelSelectorShortcut, n as ModelSelector, o as ModelSelectorGroup, p as ModelSelectorSeparator, r as ModelSelectorContent, s as ModelSelectorInput, t as CloudflareModelSelector, u as ModelSelectorLogo, v as isCloudflareRunnableModelId, x as readCloudflareModelId, y as listCloudflareModelSelectorOptions } from "../ModelSelector-
|
|
1
|
+
import { _ as getCloudflareModelProvider, a as ModelSelectorEmpty, b as normalizeCloudflareModelSelectorModels, c as ModelSelectorItem, d as ModelSelectorLogoGroup, f as ModelSelectorName, g as formatCloudflareModelProvider, h as ModelSelectorTrigger, i as ModelSelectorDialog, l as ModelSelectorList, m as ModelSelectorShortcut, n as ModelSelector, o as ModelSelectorGroup, p as ModelSelectorSeparator, r as ModelSelectorContent, s as ModelSelectorInput, t as CloudflareModelSelector, u as ModelSelectorLogo, v as isCloudflareRunnableModelId, x as readCloudflareModelId, y as listCloudflareModelSelectorOptions } from "../ModelSelector-DVgVBdvw.js";
|
|
2
2
|
export { CloudflareModelSelector, ModelSelector, ModelSelectorContent, ModelSelectorDialog, ModelSelectorEmpty, ModelSelectorGroup, ModelSelectorInput, ModelSelectorItem, ModelSelectorList, ModelSelectorLogo, ModelSelectorLogoGroup, ModelSelectorName, ModelSelectorSeparator, ModelSelectorShortcut, ModelSelectorTrigger, formatCloudflareModelProvider, getCloudflareModelProvider, isCloudflareRunnableModelId, listCloudflareModelSelectorOptions, normalizeCloudflareModelSelectorModels, readCloudflareModelId };
|