@matbea-ui/matbea-ui 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/matbea-ui.cjs.js +1 -933
- package/dist/matbea-ui.cjs10.js +1 -0
- package/dist/matbea-ui.cjs11.js +1 -0
- package/dist/matbea-ui.cjs12.js +1 -0
- package/dist/matbea-ui.cjs13.js +1 -0
- package/dist/matbea-ui.cjs14.js +1 -0
- package/dist/matbea-ui.cjs15.js +1 -0
- package/dist/matbea-ui.cjs16.js +1 -0
- package/dist/matbea-ui.cjs17.js +1 -0
- package/dist/matbea-ui.cjs18.js +1 -0
- package/dist/matbea-ui.cjs19.js +1 -0
- package/dist/matbea-ui.cjs2.js +1 -0
- package/dist/matbea-ui.cjs20.js +1 -0
- package/dist/matbea-ui.cjs21.js +1 -0
- package/dist/matbea-ui.cjs22.js +1 -0
- package/dist/matbea-ui.cjs23.js +1 -0
- package/dist/matbea-ui.cjs24.js +1 -0
- package/dist/matbea-ui.cjs25.js +1 -0
- package/dist/matbea-ui.cjs26.js +1 -0
- package/dist/matbea-ui.cjs27.js +1 -0
- package/dist/matbea-ui.cjs28.js +1 -0
- package/dist/matbea-ui.cjs29.js +63 -0
- package/dist/matbea-ui.cjs3.js +1 -0
- package/dist/matbea-ui.cjs30.js +34 -0
- package/dist/matbea-ui.cjs31.js +44 -0
- package/dist/matbea-ui.cjs32.js +1 -0
- package/dist/matbea-ui.cjs33.js +11 -0
- package/dist/matbea-ui.cjs34.js +71 -0
- package/dist/matbea-ui.cjs35.js +14 -0
- package/dist/matbea-ui.cjs36.js +11 -0
- package/dist/matbea-ui.cjs37.js +1 -0
- package/dist/matbea-ui.cjs38.js +1 -0
- package/dist/matbea-ui.cjs39.js +37 -0
- package/dist/matbea-ui.cjs4.js +1 -0
- package/dist/matbea-ui.cjs40.js +62 -0
- package/dist/matbea-ui.cjs41.js +102 -0
- package/dist/matbea-ui.cjs42.js +103 -0
- package/dist/matbea-ui.cjs43.js +7 -0
- package/dist/matbea-ui.cjs44.js +1 -0
- package/dist/matbea-ui.cjs45.js +1 -0
- package/dist/matbea-ui.cjs46.js +55 -0
- package/dist/matbea-ui.cjs47.js +23 -0
- package/dist/matbea-ui.cjs48.js +38 -0
- package/dist/matbea-ui.cjs49.js +51 -0
- package/dist/matbea-ui.cjs5.js +1 -0
- package/dist/matbea-ui.cjs50.js +1 -0
- package/dist/matbea-ui.cjs51.js +27 -0
- package/dist/matbea-ui.cjs52.js +48 -0
- package/dist/matbea-ui.cjs53.js +1 -0
- package/dist/matbea-ui.cjs54.js +1 -0
- package/dist/matbea-ui.cjs55.js +1 -0
- package/dist/matbea-ui.cjs56.js +34 -0
- package/dist/matbea-ui.cjs57.js +11 -0
- package/dist/matbea-ui.cjs58.js +24 -0
- package/dist/matbea-ui.cjs59.js +27 -0
- package/dist/matbea-ui.cjs6.js +1 -0
- package/dist/matbea-ui.cjs60.js +29 -0
- package/dist/matbea-ui.cjs61.js +1 -0
- package/dist/matbea-ui.cjs62.js +20 -0
- package/dist/matbea-ui.cjs63.js +1 -0
- package/dist/matbea-ui.cjs64.js +1 -0
- package/dist/matbea-ui.cjs65.js +1 -0
- package/dist/matbea-ui.cjs66.js +6 -0
- package/dist/matbea-ui.cjs67.js +6 -0
- package/dist/matbea-ui.cjs68.js +1 -0
- package/dist/matbea-ui.cjs69.js +1 -0
- package/dist/matbea-ui.cjs7.js +1 -0
- package/dist/matbea-ui.cjs70.js +1 -0
- package/dist/matbea-ui.cjs71.js +1 -0
- package/dist/matbea-ui.cjs72.js +1 -0
- package/dist/matbea-ui.cjs8.js +1 -0
- package/dist/matbea-ui.cjs9.js +1 -0
- package/dist/matbea-ui.es.js +54 -2670
- package/dist/matbea-ui.es10.js +10 -0
- package/dist/matbea-ui.es11.js +47 -0
- package/dist/matbea-ui.es12.js +178 -0
- package/dist/matbea-ui.es13.js +188 -0
- package/dist/matbea-ui.es14.js +12 -0
- package/dist/matbea-ui.es15.js +31 -0
- package/dist/matbea-ui.es16.js +25 -0
- package/dist/matbea-ui.es17.js +40 -0
- package/dist/matbea-ui.es18.js +43 -0
- package/dist/matbea-ui.es19.js +25 -0
- package/dist/matbea-ui.es2.js +38 -0
- package/dist/matbea-ui.es20.js +13 -0
- package/dist/matbea-ui.es21.js +33 -0
- package/dist/matbea-ui.es22.js +16 -0
- package/dist/matbea-ui.es23.js +25 -0
- package/dist/matbea-ui.es24.js +36 -0
- package/dist/matbea-ui.es25.js +29 -0
- package/dist/matbea-ui.es26.js +30 -0
- package/dist/matbea-ui.es27.js +20 -0
- package/dist/matbea-ui.es28.js +5 -0
- package/dist/matbea-ui.es29.js +163 -0
- package/dist/matbea-ui.es3.js +24 -0
- package/dist/matbea-ui.es30.js +40 -0
- package/dist/matbea-ui.es31.js +330 -0
- package/dist/matbea-ui.es32.js +15 -0
- package/dist/matbea-ui.es33.js +26 -0
- package/dist/matbea-ui.es34.js +85 -0
- package/dist/matbea-ui.es35.js +18 -0
- package/dist/matbea-ui.es36.js +18 -0
- package/dist/matbea-ui.es37.js +24 -0
- package/dist/matbea-ui.es38.js +10 -0
- package/dist/matbea-ui.es39.js +42 -0
- package/dist/matbea-ui.es4.js +31 -0
- package/dist/matbea-ui.es40.js +70 -0
- package/dist/matbea-ui.es41.js +119 -0
- package/dist/matbea-ui.es42.js +131 -0
- package/dist/matbea-ui.es43.js +13 -0
- package/dist/matbea-ui.es44.js +25 -0
- package/dist/matbea-ui.es45.js +34 -0
- package/dist/matbea-ui.es46.js +64 -0
- package/dist/matbea-ui.es47.js +39 -0
- package/dist/matbea-ui.es48.js +44 -0
- package/dist/matbea-ui.es49.js +58 -0
- package/dist/matbea-ui.es5.js +19 -0
- package/dist/matbea-ui.es50.js +26 -0
- package/dist/matbea-ui.es51.js +58 -0
- package/dist/matbea-ui.es52.js +62 -0
- package/dist/matbea-ui.es53.js +12 -0
- package/dist/matbea-ui.es54.js +12 -0
- package/dist/matbea-ui.es55.js +15 -0
- package/dist/matbea-ui.es56.js +74 -0
- package/dist/matbea-ui.es57.js +17 -0
- package/dist/matbea-ui.es58.js +55 -0
- package/dist/matbea-ui.es59.js +57 -0
- package/dist/matbea-ui.es6.js +62 -0
- package/dist/matbea-ui.es60.js +59 -0
- package/dist/matbea-ui.es61.js +21 -0
- package/dist/matbea-ui.es62.js +34 -0
- package/dist/matbea-ui.es63.js +10 -0
- package/dist/matbea-ui.es64.js +4 -0
- package/dist/matbea-ui.es65.js +26 -0
- package/dist/matbea-ui.es66.js +236 -0
- package/dist/matbea-ui.es67.js +10 -0
- package/dist/matbea-ui.es68.js +9 -0
- package/dist/matbea-ui.es69.js +12 -0
- package/dist/matbea-ui.es7.js +5 -0
- package/dist/matbea-ui.es70.js +4 -0
- package/dist/matbea-ui.es71.js +4 -0
- package/dist/matbea-ui.es72.js +17 -0
- package/dist/matbea-ui.es8.js +6 -0
- package/dist/matbea-ui.es9.js +27 -0
- package/package.json +1 -1
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { __exports as s } from "./matbea-ui.es71.js";
|
|
2
|
+
import J from "react";
|
|
3
|
+
var j;
|
|
4
|
+
function Z() {
|
|
5
|
+
return j ? s : (j = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
6
|
+
function l(e) {
|
|
7
|
+
if (e == null) return null;
|
|
8
|
+
if (typeof e == "function")
|
|
9
|
+
return e.$$typeof === G ? null : e.displayName || e.name || null;
|
|
10
|
+
if (typeof e == "string") return e;
|
|
11
|
+
switch (e) {
|
|
12
|
+
case f:
|
|
13
|
+
return "Fragment";
|
|
14
|
+
case F:
|
|
15
|
+
return "Profiler";
|
|
16
|
+
case D:
|
|
17
|
+
return "StrictMode";
|
|
18
|
+
case M:
|
|
19
|
+
return "Suspense";
|
|
20
|
+
case z:
|
|
21
|
+
return "SuspenseList";
|
|
22
|
+
case q:
|
|
23
|
+
return "Activity";
|
|
24
|
+
}
|
|
25
|
+
if (typeof e == "object")
|
|
26
|
+
switch (typeof e.tag == "number" && console.error(
|
|
27
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
28
|
+
), e.$$typeof) {
|
|
29
|
+
case $:
|
|
30
|
+
return "Portal";
|
|
31
|
+
case L:
|
|
32
|
+
return e.displayName || "Context";
|
|
33
|
+
case W:
|
|
34
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
35
|
+
case U:
|
|
36
|
+
var r = e.render;
|
|
37
|
+
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
38
|
+
case V:
|
|
39
|
+
return r = e.displayName || null, r !== null ? r : l(e.type) || "Memo";
|
|
40
|
+
case m:
|
|
41
|
+
r = e._payload, e = e._init;
|
|
42
|
+
try {
|
|
43
|
+
return l(e(r));
|
|
44
|
+
} catch {
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
function R(e) {
|
|
50
|
+
return "" + e;
|
|
51
|
+
}
|
|
52
|
+
function T(e) {
|
|
53
|
+
try {
|
|
54
|
+
R(e);
|
|
55
|
+
var r = !1;
|
|
56
|
+
} catch {
|
|
57
|
+
r = !0;
|
|
58
|
+
}
|
|
59
|
+
if (r) {
|
|
60
|
+
r = console;
|
|
61
|
+
var t = r.error, a = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
62
|
+
return t.call(
|
|
63
|
+
r,
|
|
64
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
65
|
+
a
|
|
66
|
+
), R(e);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
function i(e) {
|
|
70
|
+
if (e === f) return "<>";
|
|
71
|
+
if (typeof e == "object" && e !== null && e.$$typeof === m)
|
|
72
|
+
return "<...>";
|
|
73
|
+
try {
|
|
74
|
+
var r = l(e);
|
|
75
|
+
return r ? "<" + r + ">" : "<...>";
|
|
76
|
+
} catch {
|
|
77
|
+
return "<...>";
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
function N() {
|
|
81
|
+
var e = _.A;
|
|
82
|
+
return e === null ? null : e.getOwner();
|
|
83
|
+
}
|
|
84
|
+
function p() {
|
|
85
|
+
return Error("react-stack-top-frame");
|
|
86
|
+
}
|
|
87
|
+
function C(e) {
|
|
88
|
+
if (y.call(e, "key")) {
|
|
89
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
90
|
+
if (r && r.isReactWarning) return !1;
|
|
91
|
+
}
|
|
92
|
+
return e.key !== void 0;
|
|
93
|
+
}
|
|
94
|
+
function x(e, r) {
|
|
95
|
+
function t() {
|
|
96
|
+
A || (A = !0, console.error(
|
|
97
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
98
|
+
r
|
|
99
|
+
));
|
|
100
|
+
}
|
|
101
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
102
|
+
get: t,
|
|
103
|
+
configurable: !0
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
function Y() {
|
|
107
|
+
var e = l(this.type);
|
|
108
|
+
return S[e] || (S[e] = !0, console.error(
|
|
109
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
110
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
111
|
+
}
|
|
112
|
+
function I(e, r, t, a, u, b) {
|
|
113
|
+
var n = t.ref;
|
|
114
|
+
return e = {
|
|
115
|
+
$$typeof: g,
|
|
116
|
+
type: e,
|
|
117
|
+
key: r,
|
|
118
|
+
props: t,
|
|
119
|
+
_owner: a
|
|
120
|
+
}, (n !== void 0 ? n : null) !== null ? Object.defineProperty(e, "ref", {
|
|
121
|
+
enumerable: !1,
|
|
122
|
+
get: Y
|
|
123
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
124
|
+
configurable: !1,
|
|
125
|
+
enumerable: !1,
|
|
126
|
+
writable: !0,
|
|
127
|
+
value: 0
|
|
128
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
129
|
+
configurable: !1,
|
|
130
|
+
enumerable: !1,
|
|
131
|
+
writable: !0,
|
|
132
|
+
value: null
|
|
133
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
134
|
+
configurable: !1,
|
|
135
|
+
enumerable: !1,
|
|
136
|
+
writable: !0,
|
|
137
|
+
value: u
|
|
138
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
139
|
+
configurable: !1,
|
|
140
|
+
enumerable: !1,
|
|
141
|
+
writable: !0,
|
|
142
|
+
value: b
|
|
143
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
144
|
+
}
|
|
145
|
+
function v(e, r, t, a, u, b) {
|
|
146
|
+
var n = r.children;
|
|
147
|
+
if (n !== void 0)
|
|
148
|
+
if (a)
|
|
149
|
+
if (X(n)) {
|
|
150
|
+
for (a = 0; a < n.length; a++)
|
|
151
|
+
O(n[a]);
|
|
152
|
+
Object.freeze && Object.freeze(n);
|
|
153
|
+
} else
|
|
154
|
+
console.error(
|
|
155
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
156
|
+
);
|
|
157
|
+
else O(n);
|
|
158
|
+
if (y.call(r, "key")) {
|
|
159
|
+
n = l(e);
|
|
160
|
+
var o = Object.keys(r).filter(function(K) {
|
|
161
|
+
return K !== "key";
|
|
162
|
+
});
|
|
163
|
+
a = 0 < o.length ? "{key: someKey, " + o.join(": ..., ") + ": ...}" : "{key: someKey}", h[n + a] || (o = 0 < o.length ? "{" + o.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
164
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
165
|
+
let props = %s;
|
|
166
|
+
<%s {...props} />
|
|
167
|
+
React keys must be passed directly to JSX without using spread:
|
|
168
|
+
let props = %s;
|
|
169
|
+
<%s key={someKey} {...props} />`,
|
|
170
|
+
a,
|
|
171
|
+
n,
|
|
172
|
+
o,
|
|
173
|
+
n
|
|
174
|
+
), h[n + a] = !0);
|
|
175
|
+
}
|
|
176
|
+
if (n = null, t !== void 0 && (T(t), n = "" + t), C(r) && (T(r.key), n = "" + r.key), "key" in r) {
|
|
177
|
+
t = {};
|
|
178
|
+
for (var E in r)
|
|
179
|
+
E !== "key" && (t[E] = r[E]);
|
|
180
|
+
} else t = r;
|
|
181
|
+
return n && x(
|
|
182
|
+
t,
|
|
183
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
184
|
+
), I(
|
|
185
|
+
e,
|
|
186
|
+
n,
|
|
187
|
+
t,
|
|
188
|
+
N(),
|
|
189
|
+
u,
|
|
190
|
+
b
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
function O(e) {
|
|
194
|
+
k(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === m && (e._payload.status === "fulfilled" ? k(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
195
|
+
}
|
|
196
|
+
function k(e) {
|
|
197
|
+
return typeof e == "object" && e !== null && e.$$typeof === g;
|
|
198
|
+
}
|
|
199
|
+
var c = J, g = Symbol.for("react.transitional.element"), $ = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), D = Symbol.for("react.strict_mode"), F = Symbol.for("react.profiler"), W = Symbol.for("react.consumer"), L = Symbol.for("react.context"), U = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), z = Symbol.for("react.suspense_list"), V = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), q = Symbol.for("react.activity"), G = Symbol.for("react.client.reference"), _ = c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, y = Object.prototype.hasOwnProperty, X = Array.isArray, d = console.createTask ? console.createTask : function() {
|
|
200
|
+
return null;
|
|
201
|
+
};
|
|
202
|
+
c = {
|
|
203
|
+
react_stack_bottom_frame: function(e) {
|
|
204
|
+
return e();
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
var A, S = {}, w = c.react_stack_bottom_frame.bind(
|
|
208
|
+
c,
|
|
209
|
+
p
|
|
210
|
+
)(), P = d(i(p)), h = {};
|
|
211
|
+
s.Fragment = f, s.jsx = function(e, r, t) {
|
|
212
|
+
var a = 1e4 > _.recentlyCreatedOwnerStacks++;
|
|
213
|
+
return v(
|
|
214
|
+
e,
|
|
215
|
+
r,
|
|
216
|
+
t,
|
|
217
|
+
!1,
|
|
218
|
+
a ? Error("react-stack-top-frame") : w,
|
|
219
|
+
a ? d(i(e)) : P
|
|
220
|
+
);
|
|
221
|
+
}, s.jsxs = function(e, r, t) {
|
|
222
|
+
var a = 1e4 > _.recentlyCreatedOwnerStacks++;
|
|
223
|
+
return v(
|
|
224
|
+
e,
|
|
225
|
+
r,
|
|
226
|
+
t,
|
|
227
|
+
!0,
|
|
228
|
+
a ? Error("react-stack-top-frame") : w,
|
|
229
|
+
a ? d(i(e)) : P
|
|
230
|
+
);
|
|
231
|
+
};
|
|
232
|
+
})(), s);
|
|
233
|
+
}
|
|
234
|
+
export {
|
|
235
|
+
Z as __require
|
|
236
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { j as o } from "./matbea-ui.es28.js";
|
|
2
|
+
import { Icon as t } from "./matbea-ui.es72.js";
|
|
3
|
+
const e = (r) => /* @__PURE__ */ o.jsxs(t, { ...r, children: [
|
|
4
|
+
/* @__PURE__ */ o.jsx("circle", { cx: "12", cy: "12", r: "9", stroke: "#5E6F8D", "stroke-width": "2" }),
|
|
5
|
+
/* @__PURE__ */ o.jsx("path", { d: "M7 12L10.3333 15L17 9", stroke: "#5E6F8D", "stroke-width": "2" })
|
|
6
|
+
] });
|
|
7
|
+
export {
|
|
8
|
+
e as CheckIcon
|
|
9
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { j as C } from "./matbea-ui.es28.js";
|
|
2
|
+
import { Icon as H } from "./matbea-ui.es72.js";
|
|
3
|
+
const t = (o) => /* @__PURE__ */ C.jsx(H, { ...o, viewBox: "0 0 18 18", children: /* @__PURE__ */ C.jsx(
|
|
4
|
+
"path",
|
|
5
|
+
{
|
|
6
|
+
d: "M10.4999 16.5H2.9999C2.59796 16.514 2.20826 16.3604 1.92387 16.076C1.63948 15.7916 1.48593 15.4019 1.4999 15V7.50001C1.48593 7.09807 1.63948 6.70837 1.92387 6.42399C2.20826 6.1396 2.59796 5.98605 2.9999 6.00002H5.9999V3.00002C5.98593 2.59807 6.13948 2.20837 6.42387 1.92399C6.70826 1.6396 7.09796 1.48605 7.49991 1.50002H14.9999C15.4018 1.48605 15.7915 1.6396 16.0759 1.92399C16.3603 2.20837 16.5139 2.59807 16.4999 3.00002V10.5C16.5136 10.9019 16.36 11.2915 16.0757 11.5758C15.7914 11.8601 15.4018 12.0137 14.9999 12H11.9999V15C12.0136 15.4019 11.86 15.7915 11.5757 16.0758C11.2914 16.3601 10.9018 16.5137 10.4999 16.5ZM2.9999 7.50001V15H10.4999V12H7.49991C7.09802 12.0137 6.70845 11.8601 6.42411 11.5758C6.13977 11.2915 5.98616 10.9019 5.9999 10.5V7.50001H2.9999ZM7.49991 3.00002V10.5H14.9999V3.00002H7.49991Z",
|
|
7
|
+
fill: "#5E6F8D"
|
|
8
|
+
}
|
|
9
|
+
) });
|
|
10
|
+
export {
|
|
11
|
+
t as CopyIcon
|
|
12
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { j as n } from "./matbea-ui.es28.js";
|
|
2
|
+
import "react";
|
|
3
|
+
const w = ({ size: t = 24, children: o, ...r }) => /* @__PURE__ */ n.jsx(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
width: t,
|
|
7
|
+
height: t,
|
|
8
|
+
viewBox: "0 0 24 24",
|
|
9
|
+
fill: "none",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
...r,
|
|
12
|
+
children: o
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
export {
|
|
16
|
+
w as Icon
|
|
17
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { j as n } from "./matbea-ui.es28.js";
|
|
2
|
+
import { useState as c, useCallback as l } from "react";
|
|
3
|
+
import { CloseIcon as p } from "./matbea-ui.es37.js";
|
|
4
|
+
import { HamburgerIcon as u } from "./matbea-ui.es38.js";
|
|
5
|
+
import { Button as f } from "./matbea-ui.es2.js";
|
|
6
|
+
const k = ({
|
|
7
|
+
open: r,
|
|
8
|
+
onToggle: s
|
|
9
|
+
}) => {
|
|
10
|
+
const [e, a] = c(!1), t = r !== void 0, o = t ? r : e, m = l(() => {
|
|
11
|
+
const i = !o;
|
|
12
|
+
t || a(i), s?.(i);
|
|
13
|
+
}, [t, o, s]);
|
|
14
|
+
return /* @__PURE__ */ n.jsx(
|
|
15
|
+
f,
|
|
16
|
+
{
|
|
17
|
+
iconPosition: "only",
|
|
18
|
+
variant: "tertiary",
|
|
19
|
+
icon: o ? /* @__PURE__ */ n.jsx(p, {}) : /* @__PURE__ */ n.jsx(u, {}),
|
|
20
|
+
size: "small",
|
|
21
|
+
onClick: m
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
k as HamburgerButton
|
|
27
|
+
};
|