@usememos/ui 26.10.0 → 26.10.2
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/LICENSE +21 -0
- package/README.md +67 -92
- package/dist/index.js +3 -48
- package/dist/index.js.map +7 -0
- package/dist/styles.css +1 -0
- package/dist/tokens.css +1 -0
- package/dist/types/components/avatar/index.d.ts +16 -0
- package/dist/types/components/badge/index.d.ts +10 -0
- package/dist/types/components/button/index.d.ts +29 -0
- package/dist/types/components/checkbox/index.d.ts +11 -0
- package/dist/types/components/collapsible/index.d.ts +15 -0
- package/dist/types/components/combobox/index.d.ts +66 -0
- package/dist/types/components/dialog/alert-dialog.d.ts +19 -0
- package/dist/types/components/dialog/index.d.ts +22 -0
- package/dist/types/components/dialog/parts.d.ts +34 -0
- package/dist/types/components/field/fieldset.d.ts +11 -0
- package/dist/types/components/field/index.d.ts +24 -0
- package/dist/types/components/input/index.d.ts +19 -0
- package/dist/types/components/kbd/index.d.ts +5 -0
- package/dist/types/components/link/index.d.ts +11 -0
- package/dist/types/components/menu/index.d.ts +67 -0
- package/dist/types/components/popover/index.d.ts +28 -0
- package/dist/types/components/prose/index.d.ts +11 -0
- package/dist/types/components/radio-group/index.d.ts +15 -0
- package/dist/types/components/select/index.d.ts +46 -0
- package/dist/types/components/separator/index.d.ts +5 -0
- package/dist/types/components/skeleton/index.d.ts +13 -0
- package/dist/types/components/spinner/index.d.ts +10 -0
- package/dist/types/components/switch/index.d.ts +11 -0
- package/dist/types/components/table/index.d.ts +42 -0
- package/dist/types/components/tabs/index.d.ts +22 -0
- package/dist/types/components/textarea/index.d.ts +9 -0
- package/dist/types/components/toast/index.d.ts +19 -0
- package/dist/types/components/toggle/index.d.ts +11 -0
- package/dist/types/components/toggle-group/index.d.ts +13 -0
- package/dist/types/components/tooltip/index.d.ts +24 -0
- package/dist/types/index.d.ts +30 -0
- package/dist/types/internal/class-name.d.ts +7 -0
- package/dist/types/internal/popup.d.ts +9 -0
- package/dist/types/internal/size.d.ts +5 -0
- package/dist/types/types.d.ts +7 -0
- package/llms-full.txt +2181 -0
- package/llms.txt +53 -0
- package/package.json +34 -157
- package/dist/button.cjs +0 -74
- package/dist/button.d.cts +0 -15
- package/dist/button.d.ts +0 -15
- package/dist/button.js +0 -7
- package/dist/checkbox.cjs +0 -98
- package/dist/checkbox.d.cts +0 -16
- package/dist/checkbox.d.ts +0 -16
- package/dist/checkbox.js +0 -7
- package/dist/chunk-3DNMGJFC.js +0 -216
- package/dist/chunk-3VYNJ6UM.js +0 -27
- package/dist/chunk-3YY2G3JK.js +0 -125
- package/dist/chunk-5GQEJQKE.js +0 -60
- package/dist/chunk-6TNEFWVX.js +0 -9
- package/dist/chunk-BH4MPO4N.js +0 -25
- package/dist/chunk-F6GH4X7N.js +0 -34
- package/dist/chunk-HYN2P4OY.js +0 -84
- package/dist/chunk-OIUVLPTE.js +0 -54
- package/dist/chunk-S6LVYCE6.js +0 -157
- package/dist/chunk-SNSDJKJP.js +0 -44
- package/dist/chunk-WPO54YPG.js +0 -328
- package/dist/chunk-Z3ME5VRQ.js +0 -98
- package/dist/control-size-Bz2gyuyO.d.cts +0 -3
- package/dist/control-size-Bz2gyuyO.d.ts +0 -3
- package/dist/dialog.cjs +0 -203
- package/dist/dialog.d.cts +0 -34
- package/dist/dialog.d.ts +0 -34
- package/dist/dialog.js +0 -8
- package/dist/dropdown-menu.cjs +0 -378
- package/dist/dropdown-menu.d.cts +0 -60
- package/dist/dropdown-menu.d.ts +0 -60
- package/dist/dropdown-menu.js +0 -8
- package/dist/index.cjs +0 -1223
- package/dist/index.d.cts +0 -21
- package/dist/index.d.ts +0 -21
- package/dist/input.cjs +0 -67
- package/dist/input.d.cts +0 -11
- package/dist/input.d.ts +0 -11
- package/dist/input.js +0 -7
- package/dist/popover.cjs +0 -175
- package/dist/popover.d.cts +0 -53
- package/dist/popover.d.ts +0 -53
- package/dist/popover.js +0 -8
- package/dist/radio-group.cjs +0 -122
- package/dist/radio-group.d.cts +0 -25
- package/dist/radio-group.d.ts +0 -25
- package/dist/radio-group.js +0 -7
- package/dist/select.cjs +0 -266
- package/dist/select.d.cts +0 -45
- package/dist/select.d.ts +0 -45
- package/dist/select.js +0 -8
- package/dist/separator.cjs +0 -82
- package/dist/separator.d.cts +0 -12
- package/dist/separator.d.ts +0 -12
- package/dist/separator.js +0 -7
- package/dist/switch.cjs +0 -92
- package/dist/switch.d.cts +0 -16
- package/dist/switch.d.ts +0 -16
- package/dist/switch.js +0 -7
- package/dist/theme.css +0 -1097
- package/dist/tooltip.cjs +0 -148
- package/dist/tooltip.d.cts +0 -24
- package/dist/tooltip.d.ts +0 -24
- package/dist/tooltip.js +0 -8
package/dist/select.cjs
DELETED
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// src/select.ts
|
|
31
|
-
var select_exports = {};
|
|
32
|
-
__export(select_exports, {
|
|
33
|
-
Select: () => Select2
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(select_exports);
|
|
36
|
-
|
|
37
|
-
// src/selection/select.tsx
|
|
38
|
-
var import_lucide_react = require("lucide-react");
|
|
39
|
-
|
|
40
|
-
// ../primitives/src/selection/select.tsx
|
|
41
|
-
var React = __toESM(require("react"), 1);
|
|
42
|
-
var import_select = require("@base-ui/react/select");
|
|
43
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
44
|
-
var Root = (props) => {
|
|
45
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.Select.Root, { "data-scope": "select", "data-part": "root", ...props });
|
|
46
|
-
};
|
|
47
|
-
var Group = (props) => {
|
|
48
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.Select.Group, { "data-scope": "select", "data-part": "group", ...props });
|
|
49
|
-
};
|
|
50
|
-
var Value = React.forwardRef((props, ref) => {
|
|
51
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.Select.Value, { ref, "data-scope": "select", "data-part": "value", ...props });
|
|
52
|
-
});
|
|
53
|
-
var Trigger = React.forwardRef((props, ref) => {
|
|
54
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.Select.Trigger, { ref, "data-scope": "select", "data-part": "trigger", ...props });
|
|
55
|
-
});
|
|
56
|
-
var Portal = (props) => {
|
|
57
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.Select.Portal, { "data-scope": "select", "data-part": "portal", ...props });
|
|
58
|
-
};
|
|
59
|
-
var Content = React.forwardRef(
|
|
60
|
-
({
|
|
61
|
-
className,
|
|
62
|
-
children,
|
|
63
|
-
finalFocus,
|
|
64
|
-
align = "start",
|
|
65
|
-
collisionPadding = 8,
|
|
66
|
-
sideOffset = 4,
|
|
67
|
-
...props
|
|
68
|
-
}, ref) => {
|
|
69
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
70
|
-
import_select.Select.Positioner,
|
|
71
|
-
{
|
|
72
|
-
"data-scope": "select",
|
|
73
|
-
"data-part": "positioner",
|
|
74
|
-
align,
|
|
75
|
-
collisionPadding,
|
|
76
|
-
sideOffset,
|
|
77
|
-
...props,
|
|
78
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
79
|
-
import_select.Select.Popup,
|
|
80
|
-
{
|
|
81
|
-
ref,
|
|
82
|
-
"data-scope": "select",
|
|
83
|
-
"data-part": "content",
|
|
84
|
-
className,
|
|
85
|
-
finalFocus,
|
|
86
|
-
children
|
|
87
|
-
}
|
|
88
|
-
)
|
|
89
|
-
}
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
);
|
|
93
|
-
var Viewport = React.forwardRef((props, ref) => {
|
|
94
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.Select.List, { ref, "data-scope": "select", "data-part": "viewport", ...props });
|
|
95
|
-
});
|
|
96
|
-
var Label = React.forwardRef((props, ref) => {
|
|
97
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.Select.GroupLabel, { ref, "data-scope": "select", "data-part": "label", ...props });
|
|
98
|
-
});
|
|
99
|
-
var Item = React.forwardRef((props, ref) => {
|
|
100
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.Select.Item, { ref, "data-scope": "select", "data-part": "item", ...props });
|
|
101
|
-
});
|
|
102
|
-
var ItemText = React.forwardRef((props, ref) => {
|
|
103
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.Select.ItemText, { ref, "data-scope": "select", "data-part": "item-text", ...props });
|
|
104
|
-
});
|
|
105
|
-
var ItemIndicator = React.forwardRef((props, ref) => {
|
|
106
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.Select.ItemIndicator, { ref, "data-scope": "select", "data-part": "item-indicator", ...props });
|
|
107
|
-
});
|
|
108
|
-
var Separator = React.forwardRef((props, ref) => {
|
|
109
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.Select.Separator, { ref, "data-scope": "select", "data-part": "separator", ...props });
|
|
110
|
-
});
|
|
111
|
-
var ScrollUpButton = React.forwardRef((props, ref) => {
|
|
112
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.Select.ScrollUpArrow, { ref, "data-scope": "select", "data-part": "scroll-up-button", ...props });
|
|
113
|
-
});
|
|
114
|
-
var ScrollDownButton = React.forwardRef((props, ref) => {
|
|
115
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.Select.ScrollDownArrow, { ref, "data-scope": "select", "data-part": "scroll-down-button", ...props });
|
|
116
|
-
});
|
|
117
|
-
Root.displayName = "Select.Root";
|
|
118
|
-
Group.displayName = "Select.Group";
|
|
119
|
-
Value.displayName = "Select.Value";
|
|
120
|
-
Trigger.displayName = "Select.Trigger";
|
|
121
|
-
Portal.displayName = "Select.Portal";
|
|
122
|
-
Content.displayName = "Select.Content";
|
|
123
|
-
Viewport.displayName = "Select.Viewport";
|
|
124
|
-
Label.displayName = "Select.Label";
|
|
125
|
-
Item.displayName = "Select.Item";
|
|
126
|
-
ItemText.displayName = "Select.ItemText";
|
|
127
|
-
ItemIndicator.displayName = "Select.ItemIndicator";
|
|
128
|
-
Separator.displayName = "Select.Separator";
|
|
129
|
-
ScrollUpButton.displayName = "Select.ScrollUpButton";
|
|
130
|
-
ScrollDownButton.displayName = "Select.ScrollDownButton";
|
|
131
|
-
var Select = {
|
|
132
|
-
Root,
|
|
133
|
-
Group,
|
|
134
|
-
Value,
|
|
135
|
-
Trigger,
|
|
136
|
-
Portal,
|
|
137
|
-
Content,
|
|
138
|
-
Viewport,
|
|
139
|
-
Label,
|
|
140
|
-
Item,
|
|
141
|
-
ItemText,
|
|
142
|
-
ItemIndicator,
|
|
143
|
-
Separator,
|
|
144
|
-
ScrollUpButton,
|
|
145
|
-
ScrollDownButton
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
// src/overlay/layer-context.tsx
|
|
149
|
-
var React2 = __toESM(require("react"), 1);
|
|
150
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
151
|
-
var OverlayLayerContext = React2.createContext("root");
|
|
152
|
-
function useOverlayLayerProps(props) {
|
|
153
|
-
const layer = React2.useContext(OverlayLayerContext);
|
|
154
|
-
if (layer === "root") {
|
|
155
|
-
return props;
|
|
156
|
-
}
|
|
157
|
-
return {
|
|
158
|
-
...props,
|
|
159
|
-
"data-mui-layer": layer
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
// src/shared/cx.ts
|
|
164
|
-
var import_clsx = require("clsx");
|
|
165
|
-
function cx(...values) {
|
|
166
|
-
return (0, import_clsx.clsx)(values);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
// src/selection/select.tsx
|
|
170
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
171
|
-
var Root2 = Select.Root;
|
|
172
|
-
var Group2 = Select.Group;
|
|
173
|
-
var Value2 = Select.Value;
|
|
174
|
-
function Trigger2({
|
|
175
|
-
className,
|
|
176
|
-
children,
|
|
177
|
-
size = "md",
|
|
178
|
-
...props
|
|
179
|
-
}) {
|
|
180
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
181
|
-
Select.Trigger,
|
|
182
|
-
{
|
|
183
|
-
className: cx("mui-select__trigger", className),
|
|
184
|
-
"data-size": size,
|
|
185
|
-
...props,
|
|
186
|
-
children: [
|
|
187
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "mui-select__value-slot", children }),
|
|
188
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "mui-select__icon-slot", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react.ChevronDownIcon, { className: "mui-select__icon", size: 12 }) })
|
|
189
|
-
]
|
|
190
|
-
}
|
|
191
|
-
);
|
|
192
|
-
}
|
|
193
|
-
function Content2({
|
|
194
|
-
className,
|
|
195
|
-
children,
|
|
196
|
-
...props
|
|
197
|
-
}) {
|
|
198
|
-
const layerProps = useOverlayLayerProps(props);
|
|
199
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
200
|
-
Select.Content,
|
|
201
|
-
{
|
|
202
|
-
className: cx("mui-select__content", className),
|
|
203
|
-
...layerProps,
|
|
204
|
-
children: [
|
|
205
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Select.ScrollUpButton, { className: "mui-select__scroll-button", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react.ChevronUpIcon, { size: 12 }) }),
|
|
206
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Select.Viewport, { className: "mui-select__viewport", children }),
|
|
207
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Select.ScrollDownButton, { className: "mui-select__scroll-button", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react.ChevronDownIcon, { size: 12 }) })
|
|
208
|
-
]
|
|
209
|
-
}
|
|
210
|
-
) });
|
|
211
|
-
}
|
|
212
|
-
function Label2({
|
|
213
|
-
className,
|
|
214
|
-
...props
|
|
215
|
-
}) {
|
|
216
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
217
|
-
Select.Label,
|
|
218
|
-
{
|
|
219
|
-
className: cx("mui-select__label", className),
|
|
220
|
-
...props
|
|
221
|
-
}
|
|
222
|
-
);
|
|
223
|
-
}
|
|
224
|
-
function Item2({
|
|
225
|
-
className,
|
|
226
|
-
children,
|
|
227
|
-
...props
|
|
228
|
-
}) {
|
|
229
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
230
|
-
Select.Item,
|
|
231
|
-
{
|
|
232
|
-
className: cx("mui-select__item", className),
|
|
233
|
-
...props,
|
|
234
|
-
children: [
|
|
235
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "mui-select__item-leading", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Select.ItemIndicator, { className: "mui-select__item-indicator", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react.CheckIcon, { size: 10 }) }) }),
|
|
236
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Select.ItemText, { className: "mui-select__item-text", children })
|
|
237
|
-
]
|
|
238
|
-
}
|
|
239
|
-
);
|
|
240
|
-
}
|
|
241
|
-
function Separator2({
|
|
242
|
-
className,
|
|
243
|
-
...props
|
|
244
|
-
}) {
|
|
245
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
246
|
-
Select.Separator,
|
|
247
|
-
{
|
|
248
|
-
className: cx("mui-select__separator", className),
|
|
249
|
-
...props
|
|
250
|
-
}
|
|
251
|
-
);
|
|
252
|
-
}
|
|
253
|
-
var Select2 = {
|
|
254
|
-
Root: Root2,
|
|
255
|
-
Group: Group2,
|
|
256
|
-
Value: Value2,
|
|
257
|
-
Trigger: Trigger2,
|
|
258
|
-
Content: Content2,
|
|
259
|
-
Label: Label2,
|
|
260
|
-
Item: Item2,
|
|
261
|
-
Separator: Separator2
|
|
262
|
-
};
|
|
263
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
264
|
-
0 && (module.exports = {
|
|
265
|
-
Select
|
|
266
|
-
});
|
package/dist/select.d.cts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as _base_ui_react from '@base-ui/react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { Select as Select$2 } from '@base-ui/react/select';
|
|
5
|
-
import { C as ControlSize } from './control-size-Bz2gyuyO.cjs';
|
|
6
|
-
|
|
7
|
-
declare const Select$1: {
|
|
8
|
-
Root: React.FC<Select$2.Root.Props<unknown, boolean | undefined>>;
|
|
9
|
-
Group: React.FC<Omit<Omit<_base_ui_react.SelectGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">>;
|
|
10
|
-
Value: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SelectValueProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
11
|
-
Trigger: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SelectTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
-
Portal: React.FC<Omit<Omit<_base_ui_react.SelectPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">>;
|
|
13
|
-
Content: React.ForwardRefExoticComponent<Omit<Omit<Omit<_base_ui_react.SelectPositionerProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "className" | "children"> & Pick<Omit<Omit<_base_ui_react.SelectPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "children" | "finalFocus"> & {
|
|
14
|
-
className?: string;
|
|
15
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
-
Viewport: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SelectListProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
Label: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SelectGroupLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
-
Item: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SelectItemProps, "ref"> & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
19
|
-
ItemText: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SelectItemTextProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
-
ItemIndicator: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SelectItemIndicatorProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
21
|
-
Separator: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
-
ScrollUpButton: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SelectScrollUpArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
-
ScrollDownButton: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SelectScrollDownArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
type SelectTriggerProps = React.ComponentPropsWithoutRef<typeof Select$1.Trigger> & {
|
|
27
|
-
size?: ControlSize;
|
|
28
|
-
};
|
|
29
|
-
declare function Trigger({ className, children, size, ...props }: SelectTriggerProps): react_jsx_runtime.JSX.Element;
|
|
30
|
-
declare function Content({ className, children, ...props }: React.ComponentPropsWithoutRef<typeof Select$1.Content>): react_jsx_runtime.JSX.Element;
|
|
31
|
-
declare function Label({ className, ...props }: React.ComponentPropsWithoutRef<typeof Select$1.Label>): react_jsx_runtime.JSX.Element;
|
|
32
|
-
declare function Item({ className, children, ...props }: React.ComponentPropsWithoutRef<typeof Select$1.Item>): react_jsx_runtime.JSX.Element;
|
|
33
|
-
declare function Separator({ className, ...props }: React.ComponentPropsWithoutRef<typeof Select$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
34
|
-
declare const Select: {
|
|
35
|
-
Root: React.FC<_base_ui_react.SelectRoot.Props<unknown, boolean | undefined>>;
|
|
36
|
-
Group: React.FC<Omit<Omit<_base_ui_react.SelectGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">>;
|
|
37
|
-
Value: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SelectValueProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
38
|
-
Trigger: typeof Trigger;
|
|
39
|
-
Content: typeof Content;
|
|
40
|
-
Label: typeof Label;
|
|
41
|
-
Item: typeof Item;
|
|
42
|
-
Separator: typeof Separator;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export { Select };
|
package/dist/select.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as _base_ui_react from '@base-ui/react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { Select as Select$2 } from '@base-ui/react/select';
|
|
5
|
-
import { C as ControlSize } from './control-size-Bz2gyuyO.js';
|
|
6
|
-
|
|
7
|
-
declare const Select$1: {
|
|
8
|
-
Root: React.FC<Select$2.Root.Props<unknown, boolean | undefined>>;
|
|
9
|
-
Group: React.FC<Omit<Omit<_base_ui_react.SelectGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">>;
|
|
10
|
-
Value: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SelectValueProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
11
|
-
Trigger: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SelectTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
-
Portal: React.FC<Omit<Omit<_base_ui_react.SelectPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">>;
|
|
13
|
-
Content: React.ForwardRefExoticComponent<Omit<Omit<Omit<_base_ui_react.SelectPositionerProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "className" | "children"> & Pick<Omit<Omit<_base_ui_react.SelectPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "children" | "finalFocus"> & {
|
|
14
|
-
className?: string;
|
|
15
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
-
Viewport: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SelectListProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
Label: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SelectGroupLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
-
Item: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SelectItemProps, "ref"> & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
19
|
-
ItemText: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SelectItemTextProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
-
ItemIndicator: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SelectItemIndicatorProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
21
|
-
Separator: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
-
ScrollUpButton: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SelectScrollUpArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
-
ScrollDownButton: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SelectScrollDownArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
type SelectTriggerProps = React.ComponentPropsWithoutRef<typeof Select$1.Trigger> & {
|
|
27
|
-
size?: ControlSize;
|
|
28
|
-
};
|
|
29
|
-
declare function Trigger({ className, children, size, ...props }: SelectTriggerProps): react_jsx_runtime.JSX.Element;
|
|
30
|
-
declare function Content({ className, children, ...props }: React.ComponentPropsWithoutRef<typeof Select$1.Content>): react_jsx_runtime.JSX.Element;
|
|
31
|
-
declare function Label({ className, ...props }: React.ComponentPropsWithoutRef<typeof Select$1.Label>): react_jsx_runtime.JSX.Element;
|
|
32
|
-
declare function Item({ className, children, ...props }: React.ComponentPropsWithoutRef<typeof Select$1.Item>): react_jsx_runtime.JSX.Element;
|
|
33
|
-
declare function Separator({ className, ...props }: React.ComponentPropsWithoutRef<typeof Select$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
34
|
-
declare const Select: {
|
|
35
|
-
Root: React.FC<_base_ui_react.SelectRoot.Props<unknown, boolean | undefined>>;
|
|
36
|
-
Group: React.FC<Omit<Omit<_base_ui_react.SelectGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">>;
|
|
37
|
-
Value: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SelectValueProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
38
|
-
Trigger: typeof Trigger;
|
|
39
|
-
Content: typeof Content;
|
|
40
|
-
Label: typeof Label;
|
|
41
|
-
Item: typeof Item;
|
|
42
|
-
Separator: typeof Separator;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export { Select };
|
package/dist/select.js
DELETED
package/dist/separator.cjs
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// src/separator.ts
|
|
31
|
-
var separator_exports = {};
|
|
32
|
-
__export(separator_exports, {
|
|
33
|
-
Separator: () => Separator2
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(separator_exports);
|
|
36
|
-
|
|
37
|
-
// ../primitives/src/foundation/separator.tsx
|
|
38
|
-
var React = __toESM(require("react"), 1);
|
|
39
|
-
var import_separator = require("@base-ui/react/separator");
|
|
40
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
41
|
-
var Root = React.forwardRef((props, ref) => {
|
|
42
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
43
|
-
import_separator.Separator,
|
|
44
|
-
{
|
|
45
|
-
ref,
|
|
46
|
-
"data-scope": "separator",
|
|
47
|
-
"data-part": "root",
|
|
48
|
-
...props
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
});
|
|
52
|
-
Root.displayName = "Separator.Root";
|
|
53
|
-
var Separator = {
|
|
54
|
-
Root
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
// src/shared/cx.ts
|
|
58
|
-
var import_clsx = require("clsx");
|
|
59
|
-
function cx(...values) {
|
|
60
|
-
return (0, import_clsx.clsx)(values);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// src/foundation/separator.tsx
|
|
64
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
65
|
-
function Separator2({
|
|
66
|
-
className,
|
|
67
|
-
orientation = "horizontal",
|
|
68
|
-
...props
|
|
69
|
-
}) {
|
|
70
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
71
|
-
Separator.Root,
|
|
72
|
-
{
|
|
73
|
-
className: cx("mui-separator", className),
|
|
74
|
-
orientation,
|
|
75
|
-
...props
|
|
76
|
-
}
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
80
|
-
0 && (module.exports = {
|
|
81
|
-
Separator
|
|
82
|
-
});
|
package/dist/separator.d.cts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import * as _base_ui_react from '@base-ui/react';
|
|
4
|
-
|
|
5
|
-
declare const Separator$1: {
|
|
6
|
-
Root: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
type SeparatorProps = React.ComponentPropsWithoutRef<typeof Separator$1.Root>;
|
|
10
|
-
declare function Separator({ className, orientation, ...props }: SeparatorProps): react_jsx_runtime.JSX.Element;
|
|
11
|
-
|
|
12
|
-
export { Separator, type SeparatorProps };
|
package/dist/separator.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import * as _base_ui_react from '@base-ui/react';
|
|
4
|
-
|
|
5
|
-
declare const Separator$1: {
|
|
6
|
-
Root: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
type SeparatorProps = React.ComponentPropsWithoutRef<typeof Separator$1.Root>;
|
|
10
|
-
declare function Separator({ className, orientation, ...props }: SeparatorProps): react_jsx_runtime.JSX.Element;
|
|
11
|
-
|
|
12
|
-
export { Separator, type SeparatorProps };
|
package/dist/separator.js
DELETED
package/dist/switch.cjs
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// src/switch.ts
|
|
31
|
-
var switch_exports = {};
|
|
32
|
-
__export(switch_exports, {
|
|
33
|
-
Switch: () => Switch2
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(switch_exports);
|
|
36
|
-
|
|
37
|
-
// ../primitives/src/foundation/switch.tsx
|
|
38
|
-
var React = __toESM(require("react"), 1);
|
|
39
|
-
var import_switch = require("@base-ui/react/switch");
|
|
40
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
41
|
-
var Root = React.forwardRef((props, ref) => {
|
|
42
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
43
|
-
import_switch.Switch.Root,
|
|
44
|
-
{
|
|
45
|
-
ref,
|
|
46
|
-
"data-scope": "switch",
|
|
47
|
-
"data-part": "root",
|
|
48
|
-
...props
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
});
|
|
52
|
-
var Thumb = React.forwardRef((props, ref) => {
|
|
53
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
54
|
-
import_switch.Switch.Thumb,
|
|
55
|
-
{
|
|
56
|
-
ref,
|
|
57
|
-
"data-scope": "switch",
|
|
58
|
-
"data-part": "thumb",
|
|
59
|
-
...props
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
});
|
|
63
|
-
Root.displayName = "Switch.Root";
|
|
64
|
-
Thumb.displayName = "Switch.Thumb";
|
|
65
|
-
var Switch = {
|
|
66
|
-
Root,
|
|
67
|
-
Thumb
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
// src/shared/cx.ts
|
|
71
|
-
var import_clsx = require("clsx");
|
|
72
|
-
function cx(...values) {
|
|
73
|
-
return (0, import_clsx.clsx)(values);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// src/foundation/switch.tsx
|
|
77
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
78
|
-
function Switch2({ className, size = "md", ...props }) {
|
|
79
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
80
|
-
Switch.Root,
|
|
81
|
-
{
|
|
82
|
-
className: cx("mui-switch", className),
|
|
83
|
-
"data-size": size,
|
|
84
|
-
...props,
|
|
85
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Switch.Thumb, { className: "mui-switch__thumb" })
|
|
86
|
-
}
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
90
|
-
0 && (module.exports = {
|
|
91
|
-
Switch
|
|
92
|
-
});
|
package/dist/switch.d.cts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import * as _base_ui_react from '@base-ui/react';
|
|
4
|
-
import { C as ControlSize } from './control-size-Bz2gyuyO.cjs';
|
|
5
|
-
|
|
6
|
-
declare const Switch$1: {
|
|
7
|
-
Root: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SwitchRootProps, "ref"> & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
8
|
-
Thumb: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SwitchThumbProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
type SwitchProps = React.ComponentPropsWithoutRef<typeof Switch$1.Root> & {
|
|
12
|
-
size?: ControlSize;
|
|
13
|
-
};
|
|
14
|
-
declare function Switch({ className, size, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
15
|
-
|
|
16
|
-
export { Switch, type SwitchProps };
|
package/dist/switch.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import * as _base_ui_react from '@base-ui/react';
|
|
4
|
-
import { C as ControlSize } from './control-size-Bz2gyuyO.js';
|
|
5
|
-
|
|
6
|
-
declare const Switch$1: {
|
|
7
|
-
Root: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SwitchRootProps, "ref"> & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
8
|
-
Thumb: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SwitchThumbProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
type SwitchProps = React.ComponentPropsWithoutRef<typeof Switch$1.Root> & {
|
|
12
|
-
size?: ControlSize;
|
|
13
|
-
};
|
|
14
|
-
declare function Switch({ className, size, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
15
|
-
|
|
16
|
-
export { Switch, type SwitchProps };
|