@saas-ui/react 3.0.0-alpha.4 → 3.0.0-alpha.6
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +19 -0
- package/dist/chunk-2EUACKRH.js +26 -0
- package/dist/chunk-3Z2C27LI.js +51 -0
- package/dist/chunk-4TR3AOMG.js +33 -0
- package/dist/chunk-6LOMIKR5.js +69 -0
- package/dist/chunk-6ZNR6N2K.js +45 -0
- package/dist/chunk-7C3IZBNJ.js +38 -0
- package/dist/chunk-BCNPBZZK.js +45 -0
- package/dist/{chunk-KHRLZUV4.js → chunk-BFA5FCA2.js} +16 -1
- package/dist/chunk-CTOVNZVS.js +1 -0
- package/dist/chunk-DPMEXCSG.js +137 -0
- package/dist/chunk-F3CVOMG5.js +160 -0
- package/dist/chunk-FJFNGSPL.js +23 -0
- package/dist/chunk-GEPWRHHH.js +65 -0
- package/dist/chunk-HELHPHIQ.js +35 -0
- package/dist/chunk-I2RXEKTB.js +38 -0
- package/dist/chunk-L356FPLY.js +20 -0
- package/dist/chunk-LIYUBUOP.js +119 -0
- package/dist/chunk-M7FOBCOV.js +184 -0
- package/dist/chunk-NSD5HRIP.js +46 -0
- package/dist/chunk-QMG6HP7Z.js +87 -0
- package/dist/chunk-QSNSWCTM.js +32 -0
- package/dist/chunk-S3CQW7GD.js +100 -0
- package/dist/chunk-SA3OGTOO.js +23 -0
- package/dist/chunk-UCQ3LZIE.js +43 -0
- package/dist/chunk-ULAJ3JEO.js +32 -0
- package/dist/chunk-VF3BV2BY.js +87 -0
- package/dist/chunk-WYLMBMAH.js +22 -0
- package/dist/chunk-YWJZWB6I.js +1892 -0
- package/dist/chunk-ZWSZQZ5G.js +73 -0
- package/dist/components/app-shell/index.js +3 -40
- package/dist/components/avatar/index.cjs +69 -0
- package/dist/components/avatar/index.d.cts +18 -0
- package/dist/components/avatar/index.d.ts +18 -0
- package/dist/components/avatar/index.js +10 -0
- package/dist/components/breadcrumbs/index.js +3 -32
- package/dist/components/button/index.js +3 -40
- package/dist/components/checkbox/index.js +3 -15
- package/dist/components/command/index.js +3 -28
- package/dist/components/dialog/index.js +5 -67
- package/dist/components/drawer/index.d.cts +2 -2
- package/dist/components/drawer/index.d.ts +2 -2
- package/dist/components/drawer/index.js +5 -59
- package/dist/components/empty-state/index.js +3 -18
- package/dist/components/grid-list/index.js +3 -40
- package/dist/components/icon-badge/index.js +3 -33
- package/dist/components/link/index.js +2 -14
- package/dist/components/loading-overlay/index.js +5 -1885
- package/dist/components/menu/index.cjs +263 -0
- package/dist/components/menu/index.d.cts +30 -0
- package/dist/components/menu/index.d.ts +30 -0
- package/dist/components/menu/index.js +9 -0
- package/dist/components/navbar/index.d.cts +4 -4
- package/dist/components/navbar/index.d.ts +4 -4
- package/dist/components/navbar/index.js +3 -45
- package/dist/components/number-input/index.js +3 -26
- package/dist/components/password-input/index.js +4 -225
- package/dist/components/persona/index.js +6 -178
- package/dist/components/pin-input/index.js +3 -21
- package/dist/components/radio/index.js +4 -16
- package/dist/components/search-input/index.js +4 -114
- package/dist/components/segmented-control/index.cjs +2 -0
- package/dist/components/segmented-control/index.d.cts +2 -0
- package/dist/components/segmented-control/index.d.ts +2 -0
- package/dist/components/segmented-control/index.js +2 -0
- package/dist/components/select/index.js +4 -94
- package/dist/components/sidebar/index.d.cts +11 -11
- package/dist/components/sidebar/index.d.ts +11 -11
- package/dist/components/sidebar/index.js +7 -129
- package/dist/components/steps/index.js +5 -64
- package/dist/components/switch/index.js +3 -18
- package/dist/components/toaster/index.cjs +54 -0
- package/dist/components/toaster/index.d.cts +10 -0
- package/dist/components/toaster/index.d.ts +10 -0
- package/dist/components/toaster/index.js +10 -0
- package/dist/components/tooltip/index.cjs +57 -0
- package/dist/components/tooltip/index.d.cts +14 -0
- package/dist/components/tooltip/index.d.ts +14 -0
- package/dist/components/tooltip/index.js +8 -0
- package/dist/index.cjs +3707 -8
- package/dist/index.d.cts +37 -2
- package/dist/index.d.ts +37 -2
- package/dist/index.js +285 -4
- package/package.json +4 -4
@@ -0,0 +1,263 @@
|
|
1
|
+
'use client'
|
2
|
+
"use strict";
|
3
|
+
var __create = Object.create;
|
4
|
+
var __defProp = Object.defineProperty;
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
9
|
+
var __export = (target, all) => {
|
10
|
+
for (var name in all)
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
12
|
+
};
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
15
|
+
for (let key of __getOwnPropNames(from))
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
18
|
+
}
|
19
|
+
return to;
|
20
|
+
};
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
27
|
+
mod
|
28
|
+
));
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
30
|
+
|
31
|
+
// src/components/menu/index.ts
|
32
|
+
var menu_exports2 = {};
|
33
|
+
__export(menu_exports2, {
|
34
|
+
Menu: () => menu_exports
|
35
|
+
});
|
36
|
+
module.exports = __toCommonJS(menu_exports2);
|
37
|
+
|
38
|
+
// src/components/menu/menu.tsx
|
39
|
+
var menu_exports = {};
|
40
|
+
__export(menu_exports, {
|
41
|
+
Arrow: () => MenuArrow,
|
42
|
+
CheckboxItem: () => MenuCheckboxItem,
|
43
|
+
Content: () => MenuContent,
|
44
|
+
ContextTrigger: () => MenuContextTrigger,
|
45
|
+
Item: () => MenuItem,
|
46
|
+
ItemCommand: () => MenuItemCommand,
|
47
|
+
ItemGroup: () => MenuItemGroup,
|
48
|
+
ItemText: () => MenuItemText,
|
49
|
+
RadioItem: () => MenuRadioItem,
|
50
|
+
RadioItemGroup: () => MenuRadioItemGroup,
|
51
|
+
Root: () => MenuRoot,
|
52
|
+
Separator: () => MenuSeparator,
|
53
|
+
Trigger: () => MenuTrigger,
|
54
|
+
TriggerItem: () => MenuTriggerItem
|
55
|
+
});
|
56
|
+
var import_react3 = require("react");
|
57
|
+
var import_react4 = require("@chakra-ui/react");
|
58
|
+
|
59
|
+
// ../../node_modules/react-icons/lib/iconBase.mjs
|
60
|
+
var import_react2 = __toESM(require("react"), 1);
|
61
|
+
|
62
|
+
// ../../node_modules/react-icons/lib/iconContext.mjs
|
63
|
+
var import_react = __toESM(require("react"), 1);
|
64
|
+
var DefaultContext = {
|
65
|
+
color: void 0,
|
66
|
+
size: void 0,
|
67
|
+
className: void 0,
|
68
|
+
style: void 0,
|
69
|
+
attr: void 0
|
70
|
+
};
|
71
|
+
var IconContext = import_react.default.createContext && /* @__PURE__ */ import_react.default.createContext(DefaultContext);
|
72
|
+
|
73
|
+
// ../../node_modules/react-icons/lib/iconBase.mjs
|
74
|
+
var _excluded = ["attr", "size", "title"];
|
75
|
+
function _objectWithoutProperties(source, excluded) {
|
76
|
+
if (source == null) return {};
|
77
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
78
|
+
var key, i;
|
79
|
+
if (Object.getOwnPropertySymbols) {
|
80
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
81
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
82
|
+
key = sourceSymbolKeys[i];
|
83
|
+
if (excluded.indexOf(key) >= 0) continue;
|
84
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
85
|
+
target[key] = source[key];
|
86
|
+
}
|
87
|
+
}
|
88
|
+
return target;
|
89
|
+
}
|
90
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
91
|
+
if (source == null) return {};
|
92
|
+
var target = {};
|
93
|
+
for (var key in source) {
|
94
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
95
|
+
if (excluded.indexOf(key) >= 0) continue;
|
96
|
+
target[key] = source[key];
|
97
|
+
}
|
98
|
+
}
|
99
|
+
return target;
|
100
|
+
}
|
101
|
+
function _extends() {
|
102
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
103
|
+
for (var i = 1; i < arguments.length; i++) {
|
104
|
+
var source = arguments[i];
|
105
|
+
for (var key in source) {
|
106
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
107
|
+
target[key] = source[key];
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
return target;
|
112
|
+
};
|
113
|
+
return _extends.apply(this, arguments);
|
114
|
+
}
|
115
|
+
function ownKeys(e, r) {
|
116
|
+
var t = Object.keys(e);
|
117
|
+
if (Object.getOwnPropertySymbols) {
|
118
|
+
var o = Object.getOwnPropertySymbols(e);
|
119
|
+
r && (o = o.filter(function(r2) {
|
120
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
121
|
+
})), t.push.apply(t, o);
|
122
|
+
}
|
123
|
+
return t;
|
124
|
+
}
|
125
|
+
function _objectSpread(e) {
|
126
|
+
for (var r = 1; r < arguments.length; r++) {
|
127
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
128
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
|
129
|
+
_defineProperty(e, r2, t[r2]);
|
130
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
|
131
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
132
|
+
});
|
133
|
+
}
|
134
|
+
return e;
|
135
|
+
}
|
136
|
+
function _defineProperty(obj, key, value) {
|
137
|
+
key = _toPropertyKey(key);
|
138
|
+
if (key in obj) {
|
139
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
140
|
+
} else {
|
141
|
+
obj[key] = value;
|
142
|
+
}
|
143
|
+
return obj;
|
144
|
+
}
|
145
|
+
function _toPropertyKey(t) {
|
146
|
+
var i = _toPrimitive(t, "string");
|
147
|
+
return "symbol" == typeof i ? i : i + "";
|
148
|
+
}
|
149
|
+
function _toPrimitive(t, r) {
|
150
|
+
if ("object" != typeof t || !t) return t;
|
151
|
+
var e = t[Symbol.toPrimitive];
|
152
|
+
if (void 0 !== e) {
|
153
|
+
var i = e.call(t, r || "default");
|
154
|
+
if ("object" != typeof i) return i;
|
155
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
156
|
+
}
|
157
|
+
return ("string" === r ? String : Number)(t);
|
158
|
+
}
|
159
|
+
function Tree2Element(tree) {
|
160
|
+
return tree && tree.map((node, i) => /* @__PURE__ */ import_react2.default.createElement(node.tag, _objectSpread({
|
161
|
+
key: i
|
162
|
+
}, node.attr), Tree2Element(node.child)));
|
163
|
+
}
|
164
|
+
function GenIcon(data) {
|
165
|
+
return (props) => /* @__PURE__ */ import_react2.default.createElement(IconBase, _extends({
|
166
|
+
attr: _objectSpread({}, data.attr)
|
167
|
+
}, props), Tree2Element(data.child));
|
168
|
+
}
|
169
|
+
function IconBase(props) {
|
170
|
+
var elem = (conf) => {
|
171
|
+
var {
|
172
|
+
attr,
|
173
|
+
size,
|
174
|
+
title
|
175
|
+
} = props, svgProps = _objectWithoutProperties(props, _excluded);
|
176
|
+
var computedSize = size || conf.size || "1em";
|
177
|
+
var className;
|
178
|
+
if (conf.className) className = conf.className;
|
179
|
+
if (props.className) className = (className ? className + " " : "") + props.className;
|
180
|
+
return /* @__PURE__ */ import_react2.default.createElement("svg", _extends({
|
181
|
+
stroke: "currentColor",
|
182
|
+
fill: "currentColor",
|
183
|
+
strokeWidth: "0"
|
184
|
+
}, conf.attr, attr, svgProps, {
|
185
|
+
className,
|
186
|
+
style: _objectSpread(_objectSpread({
|
187
|
+
color: props.color || conf.color
|
188
|
+
}, conf.style), props.style),
|
189
|
+
height: computedSize,
|
190
|
+
width: computedSize,
|
191
|
+
xmlns: "http://www.w3.org/2000/svg"
|
192
|
+
}), title && /* @__PURE__ */ import_react2.default.createElement("title", null, title), props.children);
|
193
|
+
};
|
194
|
+
return IconContext !== void 0 ? /* @__PURE__ */ import_react2.default.createElement(IconContext.Consumer, null, (conf) => elem(conf)) : elem(DefaultContext);
|
195
|
+
}
|
196
|
+
|
197
|
+
// ../../node_modules/react-icons/lu/index.mjs
|
198
|
+
function LuCheck(props) {
|
199
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "polyline", "attr": { "points": "20 6 9 17 4 12" }, "child": [] }] })(props);
|
200
|
+
}
|
201
|
+
function LuChevronRight(props) {
|
202
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "d": "m9 18 6-6-6-6" }, "child": [] }] })(props);
|
203
|
+
}
|
204
|
+
|
205
|
+
// src/components/menu/menu.tsx
|
206
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
207
|
+
var MenuContent = (0, import_react3.forwardRef)(
|
208
|
+
function MenuContent2(props, ref) {
|
209
|
+
const { portalled = true, portalRef, ...rest } = props;
|
210
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react4.Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react4.Menu.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react4.Menu.Content, { ref, ...rest }) }) });
|
211
|
+
}
|
212
|
+
);
|
213
|
+
var MenuArrow = (0, import_react3.forwardRef)(
|
214
|
+
function MenuArrow2(props, ref) {
|
215
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react4.Menu.Arrow, { ref, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react4.Menu.ArrowTip, {}) });
|
216
|
+
}
|
217
|
+
);
|
218
|
+
var MenuCheckboxItem = (0, import_react3.forwardRef)(function MenuCheckboxItem2(props, ref) {
|
219
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react4.Menu.CheckboxItem, { ref, ...props, children: [
|
220
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react4.Menu.ItemIndicator, { hidden: false, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LuCheck, {}) }),
|
221
|
+
props.children
|
222
|
+
] });
|
223
|
+
});
|
224
|
+
var MenuRadioItem = (0, import_react3.forwardRef)(
|
225
|
+
function MenuRadioItem2(props, ref) {
|
226
|
+
const { children, ...rest } = props;
|
227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react4.Menu.RadioItem, { ps: "8", ref, ...rest, children: [
|
228
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react4.AbsoluteCenter, { axis: "horizontal", left: "4", asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react4.Menu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LuCheck, {}) }) }),
|
229
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react4.Menu.ItemText, { children })
|
230
|
+
] });
|
231
|
+
}
|
232
|
+
);
|
233
|
+
var MenuItemGroup = (0, import_react3.forwardRef)(
|
234
|
+
function MenuItemGroup2(props, ref) {
|
235
|
+
const { title, children, ...rest } = props;
|
236
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react4.Menu.ItemGroup, { ref, ...rest, children: [
|
237
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react4.Menu.ItemGroupLabel, { userSelect: "none", children: title }),
|
238
|
+
children
|
239
|
+
] });
|
240
|
+
}
|
241
|
+
);
|
242
|
+
var MenuTriggerItem = (0, import_react3.forwardRef)(
|
243
|
+
function MenuTriggerItem2(props, ref) {
|
244
|
+
const { startIcon, children, ...rest } = props;
|
245
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react4.Menu.TriggerItem, { ref, ...rest, children: [
|
246
|
+
startIcon,
|
247
|
+
children,
|
248
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(LuChevronRight, {})
|
249
|
+
] });
|
250
|
+
}
|
251
|
+
);
|
252
|
+
var MenuRadioItemGroup = import_react4.Menu.RadioItemGroup;
|
253
|
+
var MenuContextTrigger = import_react4.Menu.ContextTrigger;
|
254
|
+
var MenuRoot = import_react4.Menu.Root;
|
255
|
+
var MenuSeparator = import_react4.Menu.Separator;
|
256
|
+
var MenuItem = import_react4.Menu.Item;
|
257
|
+
var MenuItemText = import_react4.Menu.ItemText;
|
258
|
+
var MenuItemCommand = import_react4.Menu.ItemCommand;
|
259
|
+
var MenuTrigger = import_react4.Menu.Trigger;
|
260
|
+
// Annotate the CommonJS export names for ESM import in node:
|
261
|
+
0 && (module.exports = {
|
262
|
+
Menu
|
263
|
+
});
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import * as react from 'react';
|
2
|
+
import { Menu } from '@chakra-ui/react';
|
3
|
+
|
4
|
+
interface MenuContentProps extends Menu.ContentProps {
|
5
|
+
portalled?: boolean;
|
6
|
+
portalRef?: React.RefObject<HTMLElement>;
|
7
|
+
}
|
8
|
+
declare const MenuContent: react.ForwardRefExoticComponent<MenuContentProps & react.RefAttributes<HTMLDivElement>>;
|
9
|
+
declare const MenuArrow: react.ForwardRefExoticComponent<Menu.ArrowProps & react.RefAttributes<HTMLDivElement>>;
|
10
|
+
declare const MenuCheckboxItem: react.ForwardRefExoticComponent<Menu.CheckboxItemProps & react.RefAttributes<HTMLDivElement>>;
|
11
|
+
declare const MenuRadioItem: react.ForwardRefExoticComponent<Menu.RadioItemProps & react.RefAttributes<HTMLDivElement>>;
|
12
|
+
declare const MenuItemGroup: react.ForwardRefExoticComponent<Menu.ItemGroupProps & react.RefAttributes<HTMLDivElement>>;
|
13
|
+
interface MenuTriggerItemProps extends Menu.ItemProps {
|
14
|
+
startIcon?: React.ReactNode;
|
15
|
+
}
|
16
|
+
declare const MenuTriggerItem: react.ForwardRefExoticComponent<MenuTriggerItemProps & react.RefAttributes<HTMLDivElement>>;
|
17
|
+
declare const MenuRadioItemGroup: react.ForwardRefExoticComponent<Menu.RadioItemGroupProps & react.RefAttributes<HTMLDivElement>>;
|
18
|
+
declare const MenuContextTrigger: react.ForwardRefExoticComponent<Menu.ContextTriggerProps & react.RefAttributes<HTMLElement>>;
|
19
|
+
declare const MenuRoot: react.FC<Menu.RootProps>;
|
20
|
+
declare const MenuSeparator: react.ForwardRefExoticComponent<Menu.SeparatorProps & react.RefAttributes<HTMLDivElement>>;
|
21
|
+
declare const MenuItem: react.ForwardRefExoticComponent<Menu.ItemProps & react.RefAttributes<HTMLDivElement>>;
|
22
|
+
declare const MenuItemText: react.ForwardRefExoticComponent<Menu.ItemTextProps & react.RefAttributes<HTMLDivElement>>;
|
23
|
+
declare const MenuItemCommand: react.ForwardRefExoticComponent<Menu.CommandProps & react.RefAttributes<HTMLElement>>;
|
24
|
+
declare const MenuTrigger: react.ForwardRefExoticComponent<Menu.TriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
25
|
+
|
26
|
+
declare namespace menu {
|
27
|
+
export { MenuArrow as Arrow, MenuCheckboxItem as CheckboxItem, MenuContent as Content, type MenuContentProps as ContentProps, MenuContextTrigger as ContextTrigger, MenuItem as Item, MenuItemCommand as ItemCommand, MenuItemGroup as ItemGroup, MenuItemText as ItemText, MenuRadioItem as RadioItem, MenuRadioItemGroup as RadioItemGroup, MenuRoot as Root, MenuSeparator as Separator, MenuTrigger as Trigger, MenuTriggerItem as TriggerItem, type MenuTriggerItemProps as TriggerItemProps };
|
28
|
+
}
|
29
|
+
|
30
|
+
export { menu as Menu };
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import * as react from 'react';
|
2
|
+
import { Menu } from '@chakra-ui/react';
|
3
|
+
|
4
|
+
interface MenuContentProps extends Menu.ContentProps {
|
5
|
+
portalled?: boolean;
|
6
|
+
portalRef?: React.RefObject<HTMLElement>;
|
7
|
+
}
|
8
|
+
declare const MenuContent: react.ForwardRefExoticComponent<MenuContentProps & react.RefAttributes<HTMLDivElement>>;
|
9
|
+
declare const MenuArrow: react.ForwardRefExoticComponent<Menu.ArrowProps & react.RefAttributes<HTMLDivElement>>;
|
10
|
+
declare const MenuCheckboxItem: react.ForwardRefExoticComponent<Menu.CheckboxItemProps & react.RefAttributes<HTMLDivElement>>;
|
11
|
+
declare const MenuRadioItem: react.ForwardRefExoticComponent<Menu.RadioItemProps & react.RefAttributes<HTMLDivElement>>;
|
12
|
+
declare const MenuItemGroup: react.ForwardRefExoticComponent<Menu.ItemGroupProps & react.RefAttributes<HTMLDivElement>>;
|
13
|
+
interface MenuTriggerItemProps extends Menu.ItemProps {
|
14
|
+
startIcon?: React.ReactNode;
|
15
|
+
}
|
16
|
+
declare const MenuTriggerItem: react.ForwardRefExoticComponent<MenuTriggerItemProps & react.RefAttributes<HTMLDivElement>>;
|
17
|
+
declare const MenuRadioItemGroup: react.ForwardRefExoticComponent<Menu.RadioItemGroupProps & react.RefAttributes<HTMLDivElement>>;
|
18
|
+
declare const MenuContextTrigger: react.ForwardRefExoticComponent<Menu.ContextTriggerProps & react.RefAttributes<HTMLElement>>;
|
19
|
+
declare const MenuRoot: react.FC<Menu.RootProps>;
|
20
|
+
declare const MenuSeparator: react.ForwardRefExoticComponent<Menu.SeparatorProps & react.RefAttributes<HTMLDivElement>>;
|
21
|
+
declare const MenuItem: react.ForwardRefExoticComponent<Menu.ItemProps & react.RefAttributes<HTMLDivElement>>;
|
22
|
+
declare const MenuItemText: react.ForwardRefExoticComponent<Menu.ItemTextProps & react.RefAttributes<HTMLDivElement>>;
|
23
|
+
declare const MenuItemCommand: react.ForwardRefExoticComponent<Menu.CommandProps & react.RefAttributes<HTMLElement>>;
|
24
|
+
declare const MenuTrigger: react.ForwardRefExoticComponent<Menu.TriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
25
|
+
|
26
|
+
declare namespace menu {
|
27
|
+
export { MenuArrow as Arrow, MenuCheckboxItem as CheckboxItem, MenuContent as Content, type MenuContentProps as ContentProps, MenuContextTrigger as ContextTrigger, MenuItem as Item, MenuItemCommand as ItemCommand, MenuItemGroup as ItemGroup, MenuItemText as ItemText, MenuRadioItem as RadioItem, MenuRadioItemGroup as RadioItemGroup, MenuRoot as Root, MenuSeparator as Separator, MenuTrigger as Trigger, MenuTriggerItem as TriggerItem, type MenuTriggerItemProps as TriggerItemProps };
|
28
|
+
}
|
29
|
+
|
30
|
+
export { menu as Menu };
|