@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
|
@@ -40,7 +40,7 @@ interface RadioIndicatorProps extends Omit<React.ComponentPropsWithRef<typeof Ra
|
|
|
40
40
|
*
|
|
41
41
|
* @see {@link https://base-ui.com/react/components/radio-group | Base UI Radio Group}
|
|
42
42
|
*/
|
|
43
|
-
declare function
|
|
43
|
+
declare function RadioGroupRoot({
|
|
44
44
|
orientation,
|
|
45
45
|
className,
|
|
46
46
|
ref,
|
|
@@ -51,19 +51,13 @@ declare function RadioGroup({
|
|
|
51
51
|
/**
|
|
52
52
|
* A single radio button within a RadioGroup.
|
|
53
53
|
*/
|
|
54
|
-
declare function
|
|
54
|
+
declare function RadioRoot({
|
|
55
55
|
className,
|
|
56
56
|
ref,
|
|
57
57
|
...props
|
|
58
58
|
}: RadioProps & {
|
|
59
59
|
ref?: React.Ref<HTMLButtonElement>;
|
|
60
60
|
}): React.JSX.Element;
|
|
61
|
-
declare function RadioGroupItem({
|
|
62
|
-
children,
|
|
63
|
-
...props
|
|
64
|
-
}: RadioProps & {
|
|
65
|
-
ref?: React.Ref<HTMLButtonElement>;
|
|
66
|
-
}): React.JSX.Element;
|
|
67
61
|
/**
|
|
68
62
|
* The visual indicator for a Radio button.
|
|
69
63
|
*/
|
|
@@ -74,5 +68,12 @@ declare function RadioIndicator({
|
|
|
74
68
|
}: RadioIndicatorProps & {
|
|
75
69
|
ref?: React.Ref<HTMLSpanElement>;
|
|
76
70
|
}): React.JSX.Element;
|
|
71
|
+
declare const RadioGroup: {
|
|
72
|
+
Root: typeof RadioGroupRoot;
|
|
73
|
+
};
|
|
74
|
+
declare const Radio: {
|
|
75
|
+
Root: typeof RadioRoot;
|
|
76
|
+
Indicator: typeof RadioIndicator;
|
|
77
|
+
};
|
|
77
78
|
//#endregion
|
|
78
|
-
export { Radio, RadioGroup,
|
|
79
|
+
export { Radio, RadioGroup, RadioGroupProps, RadioIndicatorProps, RadioProps };
|
|
@@ -26,7 +26,7 @@ import { Radio as Radio$1 } from "@base-ui/react/radio";
|
|
|
26
26
|
*
|
|
27
27
|
* @see {@link https://base-ui.com/react/components/radio-group | Base UI Radio Group}
|
|
28
28
|
*/
|
|
29
|
-
function
|
|
29
|
+
function RadioGroupRoot({ orientation = "vertical", className = "", ref, ...props }) {
|
|
30
30
|
return /* @__PURE__ */ jsx(RadioGroup$1, {
|
|
31
31
|
ref,
|
|
32
32
|
"data-slot": "radio-group",
|
|
@@ -41,7 +41,7 @@ function RadioGroup({ orientation = "vertical", className = "", ref, ...props })
|
|
|
41
41
|
/**
|
|
42
42
|
* A single radio button within a RadioGroup.
|
|
43
43
|
*/
|
|
44
|
-
function
|
|
44
|
+
function RadioRoot({ className = "", ref, ...props }) {
|
|
45
45
|
const classes = ["radio", className].filter(Boolean).join(" ");
|
|
46
46
|
return /* @__PURE__ */ jsx(Radio$1.Root, {
|
|
47
47
|
ref,
|
|
@@ -50,12 +50,6 @@ function Radio({ className = "", ref, ...props }) {
|
|
|
50
50
|
...props
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
function RadioGroupItem({ children, ...props }) {
|
|
54
|
-
return /* @__PURE__ */ jsx(Radio, {
|
|
55
|
-
...props,
|
|
56
|
-
children: children ?? /* @__PURE__ */ jsx(RadioIndicator, {})
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
53
|
/**
|
|
60
54
|
* The visual indicator for a Radio button.
|
|
61
55
|
*/
|
|
@@ -68,5 +62,10 @@ function RadioIndicator({ className = "", ref, ...props }) {
|
|
|
68
62
|
...props
|
|
69
63
|
});
|
|
70
64
|
}
|
|
65
|
+
const RadioGroup = { Root: RadioGroupRoot };
|
|
66
|
+
const Radio = {
|
|
67
|
+
Root: RadioRoot,
|
|
68
|
+
Indicator: RadioIndicator
|
|
69
|
+
};
|
|
71
70
|
//#endregion
|
|
72
|
-
export { Radio, RadioGroup
|
|
71
|
+
export { Radio, RadioGroup };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Collapsible } from "./Collapsible.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Reasoning.d.ts
|
|
@@ -9,7 +9,7 @@ interface ReasoningContextValue {
|
|
|
9
9
|
duration?: number;
|
|
10
10
|
}
|
|
11
11
|
declare function useReasoning(): ReasoningContextValue;
|
|
12
|
-
interface ReasoningProps extends Omit<
|
|
12
|
+
interface ReasoningProps extends Omit<React.ComponentProps<typeof Collapsible.Root>, "className" | "onOpenChange" | "unstyled"> {
|
|
13
13
|
className?: string;
|
|
14
14
|
/**
|
|
15
15
|
* Whether the model is currently generating reasoning. When true the
|
|
@@ -52,7 +52,7 @@ declare function Reasoning({
|
|
|
52
52
|
}: ReasoningProps & {
|
|
53
53
|
ref?: React.Ref<HTMLDivElement>;
|
|
54
54
|
}): React.JSX.Element;
|
|
55
|
-
interface ReasoningTriggerProps extends Omit<
|
|
55
|
+
interface ReasoningTriggerProps extends Omit<React.ComponentProps<typeof Collapsible.Trigger>, "className" | "unstyled"> {
|
|
56
56
|
className?: string;
|
|
57
57
|
getThinkingMessage?: (isStreaming: boolean, duration?: number) => React.ReactNode;
|
|
58
58
|
}
|
|
@@ -69,7 +69,7 @@ declare function ReasoningTrigger({
|
|
|
69
69
|
}: ReasoningTriggerProps & {
|
|
70
70
|
ref?: React.Ref<HTMLButtonElement>;
|
|
71
71
|
}): React.JSX.Element;
|
|
72
|
-
interface ReasoningContentProps extends Omit<
|
|
72
|
+
interface ReasoningContentProps extends Omit<React.ComponentProps<typeof Collapsible.Panel>, "className" | "unstyled"> {
|
|
73
73
|
className?: string;
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Collapsible } from "./Collapsible.js";
|
|
2
2
|
import { t as cx } from "../class-names-9UtZwb0J.js";
|
|
3
|
-
import { c as ChevronRightIcon } from "../icons-
|
|
3
|
+
import { c as ChevronRightIcon } from "../icons-Ba9THQKz.js";
|
|
4
4
|
import { MessageResponse } from "./Message.js";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -99,8 +99,9 @@ function Reasoning({ className, isStreaming = false, duration, open, defaultOpen
|
|
|
99
99
|
]);
|
|
100
100
|
return /* @__PURE__ */ jsx(ReasoningContext.Provider, {
|
|
101
101
|
value: ctx,
|
|
102
|
-
children: /* @__PURE__ */ jsx(
|
|
102
|
+
children: /* @__PURE__ */ jsx(Collapsible.Root, {
|
|
103
103
|
ref,
|
|
104
|
+
"data-slot": "reasoning-trigger",
|
|
104
105
|
className: cx("reasoning", className),
|
|
105
106
|
open: currentOpen,
|
|
106
107
|
onOpenChange: handleOpenChange,
|
|
@@ -122,7 +123,7 @@ function defaultGetThinkingMessage(isStreaming, duration) {
|
|
|
122
123
|
*/
|
|
123
124
|
function ReasoningTrigger({ className, children, getThinkingMessage = defaultGetThinkingMessage, ref, ...props }) {
|
|
124
125
|
const { isStreaming, duration } = useReasoning();
|
|
125
|
-
if (children !== void 0 && children !== null) return /* @__PURE__ */ jsx(
|
|
126
|
+
if (children !== void 0 && children !== null) return /* @__PURE__ */ jsx(Collapsible.Trigger, {
|
|
126
127
|
ref,
|
|
127
128
|
className: cx("reasoning__trigger", className),
|
|
128
129
|
"data-streaming": isStreaming ? "" : void 0,
|
|
@@ -130,8 +131,9 @@ function ReasoningTrigger({ className, children, getThinkingMessage = defaultGet
|
|
|
130
131
|
unstyled: true,
|
|
131
132
|
children
|
|
132
133
|
});
|
|
133
|
-
return /* @__PURE__ */ jsxs(
|
|
134
|
+
return /* @__PURE__ */ jsxs(Collapsible.Trigger, {
|
|
134
135
|
ref,
|
|
136
|
+
"data-slot": "reasoning-trigger",
|
|
135
137
|
className: cx("reasoning__trigger", className),
|
|
136
138
|
"data-streaming": isStreaming ? "" : void 0,
|
|
137
139
|
...props,
|
|
@@ -140,6 +142,7 @@ function ReasoningTrigger({ className, children, getThinkingMessage = defaultGet
|
|
|
140
142
|
className: "reasoning__trigger-label",
|
|
141
143
|
children: getThinkingMessage(isStreaming, duration)
|
|
142
144
|
}), /* @__PURE__ */ jsx("span", {
|
|
145
|
+
"data-slot": "reasoning-trigger-icon",
|
|
143
146
|
className: "reasoning__trigger-icon",
|
|
144
147
|
"aria-hidden": "true",
|
|
145
148
|
children: /* @__PURE__ */ jsx(ChevronRightIcon, {})
|
|
@@ -151,8 +154,9 @@ function ReasoningTrigger({ className, children, getThinkingMessage = defaultGet
|
|
|
151
154
|
* long-form text; a muted left border visually distinguishes the block.
|
|
152
155
|
*/
|
|
153
156
|
function ReasoningContent({ className, children, ref, ...props }) {
|
|
154
|
-
return /* @__PURE__ */ jsx(
|
|
157
|
+
return /* @__PURE__ */ jsx(Collapsible.Panel, {
|
|
155
158
|
ref,
|
|
159
|
+
"data-slot": "reasoning-content",
|
|
156
160
|
className: cx("reasoning__content", className),
|
|
157
161
|
...props,
|
|
158
162
|
unstyled: true,
|
|
@@ -86,7 +86,6 @@ declare function ScrollAreaScrollbar({
|
|
|
86
86
|
}: ScrollAreaScrollbarProps & {
|
|
87
87
|
ref?: React.Ref<HTMLDivElement>;
|
|
88
88
|
}): React.JSX.Element;
|
|
89
|
-
declare const ScrollBar: typeof ScrollAreaScrollbar;
|
|
90
89
|
/**
|
|
91
90
|
* The draggable scrollbar thumb indicator.
|
|
92
91
|
*/
|
|
@@ -107,12 +106,6 @@ declare function ScrollAreaCorner({
|
|
|
107
106
|
}: ScrollAreaCornerProps & {
|
|
108
107
|
ref?: React.Ref<HTMLDivElement>;
|
|
109
108
|
}): React.JSX.Element;
|
|
110
|
-
declare function ScrollAreaDefault({
|
|
111
|
-
children,
|
|
112
|
-
...props
|
|
113
|
-
}: ScrollAreaRootProps & {
|
|
114
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
115
|
-
}): React.JSX.Element;
|
|
116
109
|
/**
|
|
117
110
|
* A native scroll container with custom-styled scrollbars.
|
|
118
111
|
* Provides smooth scrolling and customizable appearance.
|
|
@@ -149,7 +142,7 @@ declare function ScrollAreaDefault({
|
|
|
149
142
|
*
|
|
150
143
|
* @see {@link https://base-ui.com/react/components/scroll-area | Base UI ScrollArea}
|
|
151
144
|
*/
|
|
152
|
-
declare const ScrollArea:
|
|
145
|
+
declare const ScrollArea: {
|
|
153
146
|
Root: typeof ScrollAreaRoot;
|
|
154
147
|
Viewport: typeof ScrollAreaViewport;
|
|
155
148
|
Scrollbar: typeof ScrollAreaScrollbar;
|
|
@@ -157,4 +150,4 @@ declare const ScrollArea: typeof ScrollAreaDefault & {
|
|
|
157
150
|
Corner: typeof ScrollAreaCorner;
|
|
158
151
|
};
|
|
159
152
|
//#endregion
|
|
160
|
-
export { ScrollArea,
|
|
153
|
+
export { ScrollArea, ScrollAreaCornerProps, ScrollAreaRootProps, ScrollAreaScrollbarProps, ScrollAreaThumbProps, ScrollAreaViewportProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { jsx
|
|
1
|
+
import "react";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
|
|
4
4
|
//#region src/components/ScrollArea.tsx
|
|
5
5
|
/**
|
|
@@ -57,7 +57,6 @@ function ScrollAreaScrollbar({ className = "", orientation = "vertical", ref, ..
|
|
|
57
57
|
...props
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
-
const ScrollBar = ScrollAreaScrollbar;
|
|
61
60
|
/**
|
|
62
61
|
* The draggable scrollbar thumb indicator.
|
|
63
62
|
*/
|
|
@@ -81,23 +80,6 @@ function ScrollAreaCorner({ className = "", ref, ...props }) {
|
|
|
81
80
|
...props
|
|
82
81
|
});
|
|
83
82
|
}
|
|
84
|
-
function hasScrollAreaParts(children) {
|
|
85
|
-
return React.Children.toArray(children).some((child) => React.isValidElement(child) && (child.type === ScrollAreaViewport || child.type === ScrollAreaScrollbar || child.type === ScrollAreaCorner));
|
|
86
|
-
}
|
|
87
|
-
function ScrollAreaDefault({ children, ...props }) {
|
|
88
|
-
if (hasScrollAreaParts(children)) return /* @__PURE__ */ jsx(ScrollAreaRoot, {
|
|
89
|
-
...props,
|
|
90
|
-
children
|
|
91
|
-
});
|
|
92
|
-
return /* @__PURE__ */ jsxs(ScrollAreaRoot, {
|
|
93
|
-
...props,
|
|
94
|
-
children: [
|
|
95
|
-
/* @__PURE__ */ jsx(ScrollAreaViewport, { children }),
|
|
96
|
-
/* @__PURE__ */ jsx(ScrollAreaScrollbar, { children: /* @__PURE__ */ jsx(ScrollAreaThumb, {}) }),
|
|
97
|
-
/* @__PURE__ */ jsx(ScrollAreaCorner, {})
|
|
98
|
-
]
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
83
|
/**
|
|
102
84
|
* A native scroll container with custom-styled scrollbars.
|
|
103
85
|
* Provides smooth scrolling and customizable appearance.
|
|
@@ -134,12 +116,12 @@ function ScrollAreaDefault({ children, ...props }) {
|
|
|
134
116
|
*
|
|
135
117
|
* @see {@link https://base-ui.com/react/components/scroll-area | Base UI ScrollArea}
|
|
136
118
|
*/
|
|
137
|
-
const ScrollArea =
|
|
119
|
+
const ScrollArea = {
|
|
138
120
|
Root: ScrollAreaRoot,
|
|
139
121
|
Viewport: ScrollAreaViewport,
|
|
140
122
|
Scrollbar: ScrollAreaScrollbar,
|
|
141
123
|
Thumb: ScrollAreaThumb,
|
|
142
124
|
Corner: ScrollAreaCorner
|
|
143
|
-
}
|
|
125
|
+
};
|
|
144
126
|
//#endregion
|
|
145
|
-
export { ScrollArea
|
|
127
|
+
export { ScrollArea };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Select,
|
|
1
|
+
import { _ as SelectTriggerProps, a as SelectIconProps, c as SelectItemTextProps, d as SelectPortalProps, f as SelectPositionerProps, g as SelectSeparatorProps, h as SelectScrollUpArrowProps, i as SelectGroupProps, l as SelectListProps, m as SelectScrollDownArrowProps, n as SelectBackdropProps, o as SelectItemIndicatorProps, p as SelectProps, r as SelectGroupLabelProps, s as SelectItemProps, t as Select, u as SelectPopupProps, v as SelectValueProps } from "../Select-Dl_vF_Bt.js";
|
|
2
|
+
export { Select, SelectBackdropProps, SelectGroupLabelProps, SelectGroupProps, SelectIconProps, SelectItemIndicatorProps, SelectItemProps, SelectItemTextProps, SelectListProps, SelectPopupProps, SelectPortalProps, SelectPositionerProps, SelectProps, SelectScrollDownArrowProps, SelectScrollUpArrowProps, SelectSeparatorProps, SelectTriggerProps, SelectValueProps };
|
|
@@ -1,124 +1,90 @@
|
|
|
1
|
-
import { a as CheckIcon, i as ArrowUpIcon, t as ArrowDownIcon } from "../icons-
|
|
2
|
-
import
|
|
1
|
+
import { a as CheckIcon, i as ArrowUpIcon, t as ArrowDownIcon } from "../icons-Ba9THQKz.js";
|
|
2
|
+
import "react";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { Select as Select$1 } from "@base-ui/react/select";
|
|
5
5
|
//#region src/components/Select.tsx
|
|
6
|
-
const SelectLabelsContext = React.createContext(null);
|
|
7
6
|
/**
|
|
8
7
|
* A select component for choosing from a list of options.
|
|
9
8
|
*
|
|
10
9
|
* @example
|
|
11
10
|
* ```tsx
|
|
12
|
-
* <Select defaultValue="option1">
|
|
13
|
-
* <
|
|
14
|
-
* <
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* <
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
11
|
+
* <Select.Root defaultValue="option1">
|
|
12
|
+
* <Select.Trigger>
|
|
13
|
+
* <Select.Value placeholder="Select..." />
|
|
14
|
+
* <Select.Icon />
|
|
15
|
+
* </Select.Trigger>
|
|
16
|
+
* <Select.Portal>
|
|
17
|
+
* <Select.Positioner>
|
|
18
|
+
* <Select.Popup>
|
|
19
|
+
* <Select.List>
|
|
20
|
+
* <Select.Item value="option1"><Select.ItemText>Option 1</Select.ItemText></Select.Item>
|
|
21
|
+
* <Select.Item value="option2"><Select.ItemText>Option 2</Select.ItemText></Select.Item>
|
|
22
|
+
* </Select.List>
|
|
23
|
+
* </Select.Popup>
|
|
24
|
+
* </Select.Positioner>
|
|
25
|
+
* </Select.Portal>
|
|
26
|
+
* </Select.Root>
|
|
27
27
|
* ```
|
|
28
28
|
*
|
|
29
29
|
* @see {@link https://base-ui.com/react/components/select | Base UI Select}
|
|
30
30
|
*/
|
|
31
|
-
function
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const map = /* @__PURE__ */ new Map();
|
|
36
|
-
for (const item of items) map.set(item.value, item.label);
|
|
37
|
-
return map;
|
|
38
|
-
}, [items]);
|
|
39
|
-
const registerLabel = React.useCallback((value, label) => {
|
|
40
|
-
setLabels((prev) => {
|
|
41
|
-
if (prev.get(value) === label && prev.has(value)) return prev;
|
|
42
|
-
const next = new Map(prev);
|
|
43
|
-
next.set(value, label);
|
|
44
|
-
return next;
|
|
45
|
-
});
|
|
46
|
-
}, []);
|
|
47
|
-
const unregisterLabel = React.useCallback((value) => {
|
|
48
|
-
setLabels((prev) => {
|
|
49
|
-
if (!prev.has(value)) return prev;
|
|
50
|
-
const next = new Map(prev);
|
|
51
|
-
next.delete(value);
|
|
52
|
-
return next;
|
|
53
|
-
});
|
|
54
|
-
}, []);
|
|
55
|
-
const mergedLabels = React.useMemo(() => {
|
|
56
|
-
if (!itemLabels) return labels;
|
|
57
|
-
const merged = new Map(itemLabels);
|
|
58
|
-
for (const [k, v] of labels) merged.set(k, v);
|
|
59
|
-
return merged;
|
|
60
|
-
}, [labels, itemLabels]);
|
|
61
|
-
const contextValue = React.useMemo(() => ({
|
|
62
|
-
labels: mergedLabels,
|
|
63
|
-
registerLabel,
|
|
64
|
-
unregisterLabel
|
|
65
|
-
}), [
|
|
66
|
-
mergedLabels,
|
|
67
|
-
registerLabel,
|
|
68
|
-
unregisterLabel
|
|
69
|
-
]);
|
|
70
|
-
return /* @__PURE__ */ jsx(SelectLabelsContext.Provider, {
|
|
71
|
-
value: contextValue,
|
|
72
|
-
children: /* @__PURE__ */ jsx(Select$1.Root, {
|
|
73
|
-
"data-slot": "select",
|
|
74
|
-
...props
|
|
75
|
-
})
|
|
31
|
+
function SelectRoot(props) {
|
|
32
|
+
return /* @__PURE__ */ jsx(Select$1.Root, {
|
|
33
|
+
"data-slot": "select",
|
|
34
|
+
...props
|
|
76
35
|
});
|
|
77
36
|
}
|
|
78
|
-
function SelectTrigger({ size = "default", className = "",
|
|
37
|
+
function SelectTrigger({ size = "default", className = "", ref, ...props }) {
|
|
79
38
|
const normalizedSize = size === "md" ? "default" : size;
|
|
80
39
|
const classes = [
|
|
81
40
|
"select__trigger",
|
|
82
41
|
normalizedSize === "sm" && "select__trigger--sm",
|
|
83
42
|
className
|
|
84
43
|
].filter(Boolean).join(" ");
|
|
85
|
-
return /* @__PURE__ */
|
|
44
|
+
return /* @__PURE__ */ jsx(Select$1.Trigger, {
|
|
86
45
|
ref,
|
|
87
46
|
"data-slot": "select-trigger",
|
|
88
47
|
"data-size": normalizedSize,
|
|
89
48
|
className: classes,
|
|
90
|
-
...props
|
|
91
|
-
children: [children, /* @__PURE__ */ jsx(Select$1.Icon, {
|
|
92
|
-
className: "select__icon",
|
|
93
|
-
children: /* @__PURE__ */ jsx(ArrowDownIcon, {})
|
|
94
|
-
})]
|
|
49
|
+
...props
|
|
95
50
|
});
|
|
96
51
|
}
|
|
97
52
|
function SelectValue({ placeholder, children, ref, ...props }) {
|
|
98
|
-
|
|
99
|
-
if (children) return /* @__PURE__ */ jsx(Select$1.Value, {
|
|
53
|
+
return /* @__PURE__ */ jsx(Select$1.Value, {
|
|
100
54
|
ref,
|
|
101
55
|
"data-slot": "select-value",
|
|
102
56
|
placeholder,
|
|
103
57
|
...props,
|
|
104
58
|
children
|
|
105
59
|
});
|
|
106
|
-
|
|
60
|
+
}
|
|
61
|
+
function SelectIcon({ className = "", children, ref, ...props }) {
|
|
62
|
+
const classes = ["select__icon", className].filter(Boolean).join(" ");
|
|
63
|
+
return /* @__PURE__ */ jsx(Select$1.Icon, {
|
|
107
64
|
ref,
|
|
108
|
-
|
|
65
|
+
className: classes,
|
|
109
66
|
...props,
|
|
110
|
-
children: (
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
67
|
+
children: children ?? /* @__PURE__ */ jsx(ArrowDownIcon, {})
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function SelectBackdrop({ className = "", ref, ...props }) {
|
|
71
|
+
const classes = [
|
|
72
|
+
"select__backdrop",
|
|
73
|
+
"base-ui-backdrop",
|
|
74
|
+
className
|
|
75
|
+
].filter(Boolean).join(" ");
|
|
76
|
+
return /* @__PURE__ */ jsx(Select$1.Backdrop, {
|
|
77
|
+
ref,
|
|
78
|
+
className: classes,
|
|
79
|
+
...props
|
|
117
80
|
});
|
|
118
81
|
}
|
|
119
|
-
const SelectPortal = Select$1.Portal;
|
|
120
82
|
function SelectPositioner({ className = "", ref, ...props }) {
|
|
121
|
-
const classes = [
|
|
83
|
+
const classes = [
|
|
84
|
+
"select__positioner",
|
|
85
|
+
"base-ui-positioner",
|
|
86
|
+
className
|
|
87
|
+
].filter(Boolean).join(" ");
|
|
122
88
|
return /* @__PURE__ */ jsx(Select$1.Positioner, {
|
|
123
89
|
ref,
|
|
124
90
|
className: classes,
|
|
@@ -126,7 +92,11 @@ function SelectPositioner({ className = "", ref, ...props }) {
|
|
|
126
92
|
});
|
|
127
93
|
}
|
|
128
94
|
function SelectPopup({ className = "", ref, ...props }) {
|
|
129
|
-
const classes = [
|
|
95
|
+
const classes = [
|
|
96
|
+
"select__popup",
|
|
97
|
+
"base-ui-popup",
|
|
98
|
+
className
|
|
99
|
+
].filter(Boolean).join(" ");
|
|
130
100
|
return /* @__PURE__ */ jsx(Select$1.Popup, {
|
|
131
101
|
ref,
|
|
132
102
|
"data-slot": "select-content",
|
|
@@ -134,30 +104,6 @@ function SelectPopup({ className = "", ref, ...props }) {
|
|
|
134
104
|
...props
|
|
135
105
|
});
|
|
136
106
|
}
|
|
137
|
-
function SelectContent({ anchor, positionMethod, side, sideOffset = 4, align, alignOffset, collisionBoundary, collisionPadding, sticky, arrowPadding, disableAnchorTracking, collisionAvoidance, position, children, ...props }) {
|
|
138
|
-
return /* @__PURE__ */ jsx(Select$1.Portal, { children: /* @__PURE__ */ jsx(SelectPositioner, {
|
|
139
|
-
anchor,
|
|
140
|
-
positionMethod,
|
|
141
|
-
side,
|
|
142
|
-
sideOffset: position === "item-aligned" ? 0 : sideOffset,
|
|
143
|
-
align,
|
|
144
|
-
alignOffset,
|
|
145
|
-
collisionBoundary,
|
|
146
|
-
collisionPadding,
|
|
147
|
-
sticky,
|
|
148
|
-
arrowPadding,
|
|
149
|
-
disableAnchorTracking,
|
|
150
|
-
collisionAvoidance,
|
|
151
|
-
children: /* @__PURE__ */ jsxs(SelectPopup, {
|
|
152
|
-
...props,
|
|
153
|
-
children: [
|
|
154
|
-
/* @__PURE__ */ jsx(SelectScrollUpButton, {}),
|
|
155
|
-
/* @__PURE__ */ jsx(SelectList, { children }),
|
|
156
|
-
/* @__PURE__ */ jsx(SelectScrollDownButton, {})
|
|
157
|
-
]
|
|
158
|
-
})
|
|
159
|
-
}) });
|
|
160
|
-
}
|
|
161
107
|
function SelectList({ className = "", ref, ...props }) {
|
|
162
108
|
const classes = ["select__list", className].filter(Boolean).join(" ");
|
|
163
109
|
return /* @__PURE__ */ jsx(Select$1.List, {
|
|
@@ -167,35 +113,35 @@ function SelectList({ className = "", ref, ...props }) {
|
|
|
167
113
|
...props
|
|
168
114
|
});
|
|
169
115
|
}
|
|
170
|
-
function
|
|
171
|
-
const context = React.useContext(SelectLabelsContext);
|
|
172
|
-
const contextRef = React.useRef(context);
|
|
173
|
-
contextRef.current = context;
|
|
174
|
-
const childrenRef = React.useRef(children);
|
|
175
|
-
childrenRef.current = children;
|
|
176
|
-
React.useEffect(() => {
|
|
177
|
-
const ctx = contextRef.current;
|
|
178
|
-
if (ctx && value !== void 0) {
|
|
179
|
-
ctx.registerLabel(value, childrenRef.current);
|
|
180
|
-
return () => ctx.unregisterLabel(value);
|
|
181
|
-
}
|
|
182
|
-
}, [value]);
|
|
116
|
+
function SelectItem({ className = "", value, ref, ...props }) {
|
|
183
117
|
const classes = ["select__option", className].filter(Boolean).join(" ");
|
|
184
|
-
return /* @__PURE__ */
|
|
118
|
+
return /* @__PURE__ */ jsx(Select$1.Item, {
|
|
185
119
|
ref,
|
|
186
120
|
"data-slot": "select-item",
|
|
187
121
|
className: classes,
|
|
188
122
|
value,
|
|
123
|
+
...props
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
function SelectItemText({ className = "", ref, ...props }) {
|
|
127
|
+
const classes = ["select__item-text", className].filter(Boolean).join(" ");
|
|
128
|
+
return /* @__PURE__ */ jsx(Select$1.ItemText, {
|
|
129
|
+
ref,
|
|
130
|
+
className: classes,
|
|
131
|
+
...props
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
function SelectItemIndicator({ className = "", children, ref, ...props }) {
|
|
135
|
+
const classes = ["select__item-indicator", className].filter(Boolean).join(" ");
|
|
136
|
+
return /* @__PURE__ */ jsx(Select$1.ItemIndicator, {
|
|
137
|
+
ref,
|
|
138
|
+
"data-slot": "select-item-indicator",
|
|
139
|
+
className: classes,
|
|
189
140
|
...props,
|
|
190
|
-
children:
|
|
191
|
-
"data-slot": "select-item-indicator",
|
|
192
|
-
className: "select__item-indicator",
|
|
193
|
-
children: /* @__PURE__ */ jsx(Select$1.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, {}) })
|
|
194
|
-
}), /* @__PURE__ */ jsx(Select$1.ItemText, { children })]
|
|
141
|
+
children: children ?? /* @__PURE__ */ jsx(CheckIcon, {})
|
|
195
142
|
});
|
|
196
143
|
}
|
|
197
|
-
|
|
198
|
-
function SelectOptionGroup({ label, className = "", children, ref, ...props }) {
|
|
144
|
+
function SelectGroup({ label, className = "", children, ref, ...props }) {
|
|
199
145
|
const classes = ["select__option-group", className].filter(Boolean).join(" ");
|
|
200
146
|
return /* @__PURE__ */ jsxs(Select$1.Group, {
|
|
201
147
|
ref,
|
|
@@ -209,8 +155,7 @@ function SelectOptionGroup({ label, className = "", children, ref, ...props }) {
|
|
|
209
155
|
}), children]
|
|
210
156
|
});
|
|
211
157
|
}
|
|
212
|
-
|
|
213
|
-
function SelectLabel({ className = "", ref, ...props }) {
|
|
158
|
+
function SelectGroupLabel({ className = "", ref, ...props }) {
|
|
214
159
|
const classes = ["select__group-label", className].filter(Boolean).join(" ");
|
|
215
160
|
return /* @__PURE__ */ jsx(Select$1.GroupLabel, {
|
|
216
161
|
ref,
|
|
@@ -228,7 +173,7 @@ function SelectSeparator({ className = "", ref, ...props }) {
|
|
|
228
173
|
...props
|
|
229
174
|
});
|
|
230
175
|
}
|
|
231
|
-
function
|
|
176
|
+
function SelectScrollUpArrow({ className = "", children, ref, ...props }) {
|
|
232
177
|
const classes = [
|
|
233
178
|
"select__scroll-button",
|
|
234
179
|
"select__scroll-button--up",
|
|
@@ -242,7 +187,7 @@ function SelectScrollUpButton({ className = "", children, ref, ...props }) {
|
|
|
242
187
|
children: children ?? /* @__PURE__ */ jsx(ArrowUpIcon, {})
|
|
243
188
|
});
|
|
244
189
|
}
|
|
245
|
-
function
|
|
190
|
+
function SelectScrollDownArrow({ className = "", children, ref, ...props }) {
|
|
246
191
|
const classes = [
|
|
247
192
|
"select__scroll-button",
|
|
248
193
|
"select__scroll-button--down",
|
|
@@ -256,5 +201,26 @@ function SelectScrollDownButton({ className = "", children, ref, ...props }) {
|
|
|
256
201
|
children: children ?? /* @__PURE__ */ jsx(ArrowDownIcon, {})
|
|
257
202
|
});
|
|
258
203
|
}
|
|
204
|
+
const Select = {
|
|
205
|
+
Root: SelectRoot,
|
|
206
|
+
Label: Select$1.Label,
|
|
207
|
+
Trigger: SelectTrigger,
|
|
208
|
+
Value: SelectValue,
|
|
209
|
+
Icon: SelectIcon,
|
|
210
|
+
Portal: Select$1.Portal,
|
|
211
|
+
Backdrop: SelectBackdrop,
|
|
212
|
+
Positioner: SelectPositioner,
|
|
213
|
+
Popup: SelectPopup,
|
|
214
|
+
Arrow: Select$1.Arrow,
|
|
215
|
+
List: SelectList,
|
|
216
|
+
Item: SelectItem,
|
|
217
|
+
ItemText: SelectItemText,
|
|
218
|
+
ItemIndicator: SelectItemIndicator,
|
|
219
|
+
Separator: SelectSeparator,
|
|
220
|
+
Group: SelectGroup,
|
|
221
|
+
GroupLabel: SelectGroupLabel,
|
|
222
|
+
ScrollUpArrow: SelectScrollUpArrow,
|
|
223
|
+
ScrollDownArrow: SelectScrollDownArrow
|
|
224
|
+
};
|
|
259
225
|
//#endregion
|
|
260
|
-
export { Select
|
|
226
|
+
export { Select };
|
|
@@ -52,14 +52,9 @@ interface SliderOutputProps extends Omit<React.ComponentPropsWithRef<typeof Slid
|
|
|
52
52
|
*
|
|
53
53
|
* @see {@link https://base-ui.com/react/components/slider | Base UI Slider}
|
|
54
54
|
*/
|
|
55
|
-
declare function
|
|
55
|
+
declare function SliderRoot({
|
|
56
56
|
className,
|
|
57
|
-
children,
|
|
58
|
-
defaultValue,
|
|
59
|
-
max,
|
|
60
|
-
min,
|
|
61
57
|
ref,
|
|
62
|
-
value,
|
|
63
58
|
...props
|
|
64
59
|
}: SliderProps & {
|
|
65
60
|
ref?: React.Ref<HTMLDivElement>;
|
|
@@ -116,5 +111,13 @@ declare function SliderOutput({
|
|
|
116
111
|
}: SliderOutputProps & {
|
|
117
112
|
ref?: React.Ref<HTMLOutputElement>;
|
|
118
113
|
}): React.JSX.Element;
|
|
114
|
+
declare const Slider: {
|
|
115
|
+
Root: typeof SliderRoot;
|
|
116
|
+
Value: typeof SliderOutput;
|
|
117
|
+
Control: typeof SliderControl;
|
|
118
|
+
Track: typeof SliderTrack;
|
|
119
|
+
Indicator: typeof SliderIndicator;
|
|
120
|
+
Thumb: typeof SliderThumb;
|
|
121
|
+
};
|
|
119
122
|
//#endregion
|
|
120
|
-
export { Slider,
|
|
123
|
+
export { Slider, SliderControlProps, SliderIndicatorProps, SliderOutputProps, SliderProps, SliderThumbProps, SliderTrackProps };
|