@univerjs/design 0.6.7 → 0.6.8

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.
@@ -0,0 +1,470 @@
1
+ function de(i) {
2
+ return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
3
+ }
4
+ var A = { exports: {} }, I = { exports: {} }, _e = I.exports, re;
5
+ function $e() {
6
+ return re || (re = 1, function(i, v) {
7
+ (function(d, a) {
8
+ i.exports = a();
9
+ })(_e, function() {
10
+ var d = 1e3, a = 6e4, h = 36e5, p = "millisecond", c = "second", m = "minute", x = "hour", S = "day", W = "week", b = "month", G = "quarter", g = "year", P = "date", X = "Invalid Date", he = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ye = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, me = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(o) {
11
+ var r = ["th", "st", "nd", "rd"], e = o % 100;
12
+ return "[" + o + (r[(e - 20) % 10] || r[e] || r[0]) + "]";
13
+ } }, E = function(o, r, e) {
14
+ var n = String(o);
15
+ return !n || n.length >= r ? o : "" + Array(r + 1 - n.length).join(e) + o;
16
+ }, ve = { s: E, z: function(o) {
17
+ var r = -o.utcOffset(), e = Math.abs(r), n = Math.floor(e / 60), t = e % 60;
18
+ return (r <= 0 ? "+" : "-") + E(n, 2, "0") + ":" + E(t, 2, "0");
19
+ }, m: function o(r, e) {
20
+ if (r.date() < e.date()) return -o(e, r);
21
+ var n = 12 * (e.year() - r.year()) + (e.month() - r.month()), t = r.clone().add(n, b), s = e - t < 0, u = r.clone().add(n + (s ? -1 : 1), b);
22
+ return +(-(n + (e - t) / (s ? t - u : u - t)) || 0);
23
+ }, a: function(o) {
24
+ return o < 0 ? Math.ceil(o) || 0 : Math.floor(o);
25
+ }, p: function(o) {
26
+ return { M: b, y: g, w: W, d: S, D: P, h: x, m, s: c, ms: p, Q: G }[o] || String(o || "").toLowerCase().replace(/s$/, "");
27
+ }, u: function(o) {
28
+ return o === void 0;
29
+ } }, H = "en", O = {};
30
+ O[H] = me;
31
+ var ee = "$isDayjsObject", K = function(o) {
32
+ return o instanceof z || !(!o || !o[ee]);
33
+ }, F = function o(r, e, n) {
34
+ var t;
35
+ if (!r) return H;
36
+ if (typeof r == "string") {
37
+ var s = r.toLowerCase();
38
+ O[s] && (t = s), e && (O[s] = e, t = s);
39
+ var u = r.split("-");
40
+ if (!t && u.length > 1) return o(u[0]);
41
+ } else {
42
+ var l = r.name;
43
+ O[l] = r, t = l;
44
+ }
45
+ return !n && t && (H = t), t || !n && H;
46
+ }, _ = function(o, r) {
47
+ if (K(o)) return o.clone();
48
+ var e = typeof r == "object" ? r : {};
49
+ return e.date = o, e.args = arguments, new z(e);
50
+ }, f = ve;
51
+ f.l = F, f.i = K, f.w = function(o, r) {
52
+ return _(o, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
53
+ };
54
+ var z = function() {
55
+ function o(e) {
56
+ this.$L = F(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[ee] = !0;
57
+ }
58
+ var r = o.prototype;
59
+ return r.parse = function(e) {
60
+ this.$d = function(n) {
61
+ var t = n.date, s = n.utc;
62
+ if (t === null) return /* @__PURE__ */ new Date(NaN);
63
+ if (f.u(t)) return /* @__PURE__ */ new Date();
64
+ if (t instanceof Date) return new Date(t);
65
+ if (typeof t == "string" && !/Z$/i.test(t)) {
66
+ var u = t.match(he);
67
+ if (u) {
68
+ var l = u[2] - 1 || 0, y = (u[7] || "0").substring(0, 3);
69
+ return s ? new Date(Date.UTC(u[1], l, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, y)) : new Date(u[1], l, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, y);
70
+ }
71
+ }
72
+ return new Date(t);
73
+ }(e), this.init();
74
+ }, r.init = function() {
75
+ var e = this.$d;
76
+ this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds();
77
+ }, r.$utils = function() {
78
+ return f;
79
+ }, r.isValid = function() {
80
+ return this.$d.toString() !== X;
81
+ }, r.isSame = function(e, n) {
82
+ var t = _(e);
83
+ return this.startOf(n) <= t && t <= this.endOf(n);
84
+ }, r.isAfter = function(e, n) {
85
+ return _(e) < this.startOf(n);
86
+ }, r.isBefore = function(e, n) {
87
+ return this.endOf(n) < _(e);
88
+ }, r.$g = function(e, n, t) {
89
+ return f.u(e) ? this[n] : this.set(t, e);
90
+ }, r.unix = function() {
91
+ return Math.floor(this.valueOf() / 1e3);
92
+ }, r.valueOf = function() {
93
+ return this.$d.getTime();
94
+ }, r.startOf = function(e, n) {
95
+ var t = this, s = !!f.u(n) || n, u = f.p(e), l = function(j, D) {
96
+ var w = f.w(t.$u ? Date.UTC(t.$y, D, j) : new Date(t.$y, D, j), t);
97
+ return s ? w : w.endOf(S);
98
+ }, y = function(j, D) {
99
+ return f.w(t.toDate()[j].apply(t.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(D)), t);
100
+ }, $ = this.$W, M = this.$M, Y = this.$D, q = "set" + (this.$u ? "UTC" : "");
101
+ switch (u) {
102
+ case g:
103
+ return s ? l(1, 0) : l(31, 11);
104
+ case b:
105
+ return s ? l(1, M) : l(0, M + 1);
106
+ case W:
107
+ var T = this.$locale().weekStart || 0, L = ($ < T ? $ + 7 : $) - T;
108
+ return l(s ? Y - L : Y + (6 - L), M);
109
+ case S:
110
+ case P:
111
+ return y(q + "Hours", 0);
112
+ case x:
113
+ return y(q + "Minutes", 1);
114
+ case m:
115
+ return y(q + "Seconds", 2);
116
+ case c:
117
+ return y(q + "Milliseconds", 3);
118
+ default:
119
+ return this.clone();
120
+ }
121
+ }, r.endOf = function(e) {
122
+ return this.startOf(e, !1);
123
+ }, r.$set = function(e, n) {
124
+ var t, s = f.p(e), u = "set" + (this.$u ? "UTC" : ""), l = (t = {}, t[S] = u + "Date", t[P] = u + "Date", t[b] = u + "Month", t[g] = u + "FullYear", t[x] = u + "Hours", t[m] = u + "Minutes", t[c] = u + "Seconds", t[p] = u + "Milliseconds", t)[s], y = s === S ? this.$D + (n - this.$W) : n;
125
+ if (s === b || s === g) {
126
+ var $ = this.clone().set(P, 1);
127
+ $.$d[l](y), $.init(), this.$d = $.set(P, Math.min(this.$D, $.daysInMonth())).$d;
128
+ } else l && this.$d[l](y);
129
+ return this.init(), this;
130
+ }, r.set = function(e, n) {
131
+ return this.clone().$set(e, n);
132
+ }, r.get = function(e) {
133
+ return this[f.p(e)]();
134
+ }, r.add = function(e, n) {
135
+ var t, s = this;
136
+ e = Number(e);
137
+ var u = f.p(n), l = function(M) {
138
+ var Y = _(s);
139
+ return f.w(Y.date(Y.date() + Math.round(M * e)), s);
140
+ };
141
+ if (u === b) return this.set(b, this.$M + e);
142
+ if (u === g) return this.set(g, this.$y + e);
143
+ if (u === S) return l(1);
144
+ if (u === W) return l(7);
145
+ var y = (t = {}, t[m] = a, t[x] = h, t[c] = d, t)[u] || 1, $ = this.$d.getTime() + e * y;
146
+ return f.w($, this);
147
+ }, r.subtract = function(e, n) {
148
+ return this.add(-1 * e, n);
149
+ }, r.format = function(e) {
150
+ var n = this, t = this.$locale();
151
+ if (!this.isValid()) return t.invalidDate || X;
152
+ var s = e || "YYYY-MM-DDTHH:mm:ssZ", u = f.z(this), l = this.$H, y = this.$m, $ = this.$M, M = t.weekdays, Y = t.months, q = t.meridiem, T = function(D, w, k, Z) {
153
+ return D && (D[w] || D(n, s)) || k[w].slice(0, Z);
154
+ }, L = function(D) {
155
+ return f.s(l % 12 || 12, D, "0");
156
+ }, j = q || function(D, w, k) {
157
+ var Z = D < 12 ? "AM" : "PM";
158
+ return k ? Z.toLowerCase() : Z;
159
+ };
160
+ return s.replace(ye, function(D, w) {
161
+ return w || function(k) {
162
+ switch (k) {
163
+ case "YY":
164
+ return String(n.$y).slice(-2);
165
+ case "YYYY":
166
+ return f.s(n.$y, 4, "0");
167
+ case "M":
168
+ return $ + 1;
169
+ case "MM":
170
+ return f.s($ + 1, 2, "0");
171
+ case "MMM":
172
+ return T(t.monthsShort, $, Y, 3);
173
+ case "MMMM":
174
+ return T(Y, $);
175
+ case "D":
176
+ return n.$D;
177
+ case "DD":
178
+ return f.s(n.$D, 2, "0");
179
+ case "d":
180
+ return String(n.$W);
181
+ case "dd":
182
+ return T(t.weekdaysMin, n.$W, M, 2);
183
+ case "ddd":
184
+ return T(t.weekdaysShort, n.$W, M, 3);
185
+ case "dddd":
186
+ return M[n.$W];
187
+ case "H":
188
+ return String(l);
189
+ case "HH":
190
+ return f.s(l, 2, "0");
191
+ case "h":
192
+ return L(1);
193
+ case "hh":
194
+ return L(2);
195
+ case "a":
196
+ return j(l, y, !0);
197
+ case "A":
198
+ return j(l, y, !1);
199
+ case "m":
200
+ return String(y);
201
+ case "mm":
202
+ return f.s(y, 2, "0");
203
+ case "s":
204
+ return String(n.$s);
205
+ case "ss":
206
+ return f.s(n.$s, 2, "0");
207
+ case "SSS":
208
+ return f.s(n.$ms, 3, "0");
209
+ case "Z":
210
+ return u;
211
+ }
212
+ return null;
213
+ }(D) || u.replace(":", "");
214
+ });
215
+ }, r.utcOffset = function() {
216
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
217
+ }, r.diff = function(e, n, t) {
218
+ var s, u = this, l = f.p(n), y = _(e), $ = (y.utcOffset() - this.utcOffset()) * a, M = this - y, Y = function() {
219
+ return f.m(u, y);
220
+ };
221
+ switch (l) {
222
+ case g:
223
+ s = Y() / 12;
224
+ break;
225
+ case b:
226
+ s = Y();
227
+ break;
228
+ case G:
229
+ s = Y() / 3;
230
+ break;
231
+ case W:
232
+ s = (M - $) / 6048e5;
233
+ break;
234
+ case S:
235
+ s = (M - $) / 864e5;
236
+ break;
237
+ case x:
238
+ s = M / h;
239
+ break;
240
+ case m:
241
+ s = M / a;
242
+ break;
243
+ case c:
244
+ s = M / d;
245
+ break;
246
+ default:
247
+ s = M;
248
+ }
249
+ return t ? s : f.a(s);
250
+ }, r.daysInMonth = function() {
251
+ return this.endOf(b).$D;
252
+ }, r.$locale = function() {
253
+ return O[this.$L];
254
+ }, r.locale = function(e, n) {
255
+ if (!e) return this.$L;
256
+ var t = this.clone(), s = F(e, n, !0);
257
+ return s && (t.$L = s), t;
258
+ }, r.clone = function() {
259
+ return f.w(this.$d, this);
260
+ }, r.toDate = function() {
261
+ return new Date(this.valueOf());
262
+ }, r.toJSON = function() {
263
+ return this.isValid() ? this.toISOString() : null;
264
+ }, r.toISOString = function() {
265
+ return this.$d.toISOString();
266
+ }, r.toString = function() {
267
+ return this.$d.toUTCString();
268
+ }, o;
269
+ }(), te = z.prototype;
270
+ return _.prototype = te, [["$ms", p], ["$s", c], ["$m", m], ["$H", x], ["$W", S], ["$M", b], ["$y", g], ["$D", P]].forEach(function(o) {
271
+ te[o[1]] = function(r) {
272
+ return this.$g(r, o[0], o[1]);
273
+ };
274
+ }), _.extend = function(o, r) {
275
+ return o.$i || (o(r, z, _), o.$i = !0), _;
276
+ }, _.locale = F, _.isDayjs = K, _.unix = function(o) {
277
+ return _(1e3 * o);
278
+ }, _.en = O[H], _.Ls = O, _.p = {}, _;
279
+ });
280
+ }(I)), I.exports;
281
+ }
282
+ var Me = A.exports, ne;
283
+ function xe() {
284
+ return ne || (ne = 1, function(i, v) {
285
+ (function(d, a) {
286
+ i.exports = a($e());
287
+ })(Me, function(d) {
288
+ function a(c) {
289
+ return c && typeof c == "object" && "default" in c ? c : { default: c };
290
+ }
291
+ var h = a(d), p = { name: "zh-tw", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "週日_週一_週二_週三_週四_週五_週六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(c, m) {
292
+ return m === "W" ? c + "週" : c + "日";
293
+ }, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日 HH:mm", LLLL: "YYYY年M月D日dddd HH:mm", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s內", past: "%s前", s: "幾秒", m: "1 分鐘", mm: "%d 分鐘", h: "1 小時", hh: "%d 小時", d: "1 天", dd: "%d 天", M: "1 個月", MM: "%d 個月", y: "1 年", yy: "%d 年" }, meridiem: function(c, m) {
294
+ var x = 100 * c + m;
295
+ return x < 600 ? "凌晨" : x < 900 ? "早上" : x < 1100 ? "上午" : x < 1300 ? "中午" : x < 1800 ? "下午" : "晚上";
296
+ } };
297
+ return h.default.locale(p, null, !0), p;
298
+ });
299
+ }(A)), A.exports;
300
+ }
301
+ var De = xe();
302
+ const Ye = /* @__PURE__ */ de(De);
303
+ var C = {}, N = { exports: {} }, ie;
304
+ function be() {
305
+ return ie || (ie = 1, function(i) {
306
+ function v(d) {
307
+ return d && d.__esModule ? d : {
308
+ default: d
309
+ };
310
+ }
311
+ i.exports = v, i.exports.__esModule = !0, i.exports.default = i.exports;
312
+ }(N)), N.exports;
313
+ }
314
+ var U = { exports: {} }, J = { exports: {} }, B = { exports: {} }, V = { exports: {} }, oe;
315
+ function pe() {
316
+ return oe || (oe = 1, function(i) {
317
+ function v(d) {
318
+ "@babel/helpers - typeof";
319
+ return i.exports = v = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
320
+ return typeof a;
321
+ } : function(a) {
322
+ return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
323
+ }, i.exports.__esModule = !0, i.exports.default = i.exports, v(d);
324
+ }
325
+ i.exports = v, i.exports.__esModule = !0, i.exports.default = i.exports;
326
+ }(V)), V.exports;
327
+ }
328
+ var Q = { exports: {} }, se;
329
+ function Se() {
330
+ return se || (se = 1, function(i) {
331
+ var v = pe().default;
332
+ function d(a, h) {
333
+ if (v(a) != "object" || !a) return a;
334
+ var p = a[Symbol.toPrimitive];
335
+ if (p !== void 0) {
336
+ var c = p.call(a, h || "default");
337
+ if (v(c) != "object") return c;
338
+ throw new TypeError("@@toPrimitive must return a primitive value.");
339
+ }
340
+ return (h === "string" ? String : Number)(a);
341
+ }
342
+ i.exports = d, i.exports.__esModule = !0, i.exports.default = i.exports;
343
+ }(Q)), Q.exports;
344
+ }
345
+ var ue;
346
+ function ge() {
347
+ return ue || (ue = 1, function(i) {
348
+ var v = pe().default, d = Se();
349
+ function a(h) {
350
+ var p = d(h, "string");
351
+ return v(p) == "symbol" ? p : p + "";
352
+ }
353
+ i.exports = a, i.exports.__esModule = !0, i.exports.default = i.exports;
354
+ }(B)), B.exports;
355
+ }
356
+ var ae;
357
+ function we() {
358
+ return ae || (ae = 1, function(i) {
359
+ var v = ge();
360
+ function d(a, h, p) {
361
+ return (h = v(h)) in a ? Object.defineProperty(a, h, {
362
+ value: p,
363
+ enumerable: !0,
364
+ configurable: !0,
365
+ writable: !0
366
+ }) : a[h] = p, a;
367
+ }
368
+ i.exports = d, i.exports.__esModule = !0, i.exports.default = i.exports;
369
+ }(J)), J.exports;
370
+ }
371
+ var ce;
372
+ function Oe() {
373
+ return ce || (ce = 1, function(i) {
374
+ var v = we();
375
+ function d(h, p) {
376
+ var c = Object.keys(h);
377
+ if (Object.getOwnPropertySymbols) {
378
+ var m = Object.getOwnPropertySymbols(h);
379
+ p && (m = m.filter(function(x) {
380
+ return Object.getOwnPropertyDescriptor(h, x).enumerable;
381
+ })), c.push.apply(c, m);
382
+ }
383
+ return c;
384
+ }
385
+ function a(h) {
386
+ for (var p = 1; p < arguments.length; p++) {
387
+ var c = arguments[p] != null ? arguments[p] : {};
388
+ p % 2 ? d(Object(c), !0).forEach(function(m) {
389
+ v(h, m, c[m]);
390
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(h, Object.getOwnPropertyDescriptors(c)) : d(Object(c)).forEach(function(m) {
391
+ Object.defineProperty(h, m, Object.getOwnPropertyDescriptor(c, m));
392
+ });
393
+ }
394
+ return h;
395
+ }
396
+ i.exports = a, i.exports.__esModule = !0, i.exports.default = i.exports;
397
+ }(U)), U.exports;
398
+ }
399
+ var R = {}, fe;
400
+ function Te() {
401
+ return fe || (fe = 1, Object.defineProperty(R, "__esModule", {
402
+ value: !0
403
+ }), R.commonLocale = void 0, R.commonLocale = {
404
+ yearFormat: "YYYY",
405
+ dayFormat: "D",
406
+ cellMeridiemFormat: "A",
407
+ monthBeforeYear: !0
408
+ }), R;
409
+ }
410
+ var le;
411
+ function je() {
412
+ if (le) return C;
413
+ le = 1;
414
+ var i = be().default;
415
+ Object.defineProperty(C, "__esModule", {
416
+ value: !0
417
+ }), C.default = void 0;
418
+ var v = i(Oe()), d = Te(), a = (0, v.default)((0, v.default)({}, d.commonLocale), {}, {
419
+ locale: "zh_TW",
420
+ today: "今天",
421
+ now: "此刻",
422
+ backToToday: "返回今天",
423
+ ok: "確定",
424
+ timeSelect: "選擇時間",
425
+ dateSelect: "選擇日期",
426
+ weekSelect: "選擇周",
427
+ clear: "清除",
428
+ month: "月",
429
+ year: "年",
430
+ previousMonth: "上個月 (翻頁上鍵)",
431
+ nextMonth: "下個月 (翻頁下鍵)",
432
+ monthSelect: "選擇月份",
433
+ yearSelect: "選擇年份",
434
+ decadeSelect: "選擇年代",
435
+ yearFormat: "YYYY年",
436
+ dateFormat: "YYYY年M月D日",
437
+ dateTimeFormat: "YYYY年M月D日 HH時mm分ss秒",
438
+ previousYear: "上一年 (Control鍵加左方向鍵)",
439
+ nextYear: "下一年 (Control鍵加右方向鍵)",
440
+ previousDecade: "上一年代",
441
+ nextDecade: "下一年代",
442
+ previousCentury: "上一世紀",
443
+ nextCentury: "下一世紀",
444
+ cellDateFormat: "D",
445
+ monthBeforeYear: !1
446
+ });
447
+ return C.default = a, C;
448
+ }
449
+ var Pe = je();
450
+ const qe = /* @__PURE__ */ de(Pe), He = {
451
+ design: {
452
+ Confirm: {
453
+ cancel: "取消",
454
+ confirm: "確定"
455
+ },
456
+ Picker: {
457
+ ...Ye,
458
+ ...qe
459
+ },
460
+ CascaderList: {
461
+ empty: "無"
462
+ },
463
+ Select: {
464
+ empty: "無"
465
+ }
466
+ }
467
+ };
468
+ export {
469
+ He as default
470
+ };
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export interface ISideMenuItem {
17
+ text: string;
18
+ level: number;
19
+ id: string;
20
+ isTitle?: boolean;
21
+ }
22
+ export interface ISideMenuProps {
23
+ menus?: ISideMenuItem[];
24
+ onClick?: (menu: ISideMenuItem) => void;
25
+ className?: string;
26
+ style?: React.CSSProperties;
27
+ mode?: 'float' | 'side-bar';
28
+ maxHeight: number;
29
+ activeId?: string;
30
+ open?: boolean;
31
+ onOpenChange?: (open: boolean) => void;
32
+ maxWidth?: number;
33
+ wrapperClass?: string;
34
+ wrapperStyle?: React.CSSProperties;
35
+ iconClass?: string;
36
+ iconStyle?: React.CSSProperties;
37
+ }
38
+ export interface ISideMenuInstance {
39
+ scrollTo: (id: string) => void;
40
+ }
41
+ export declare const SideMenu: import('react').ForwardRefExoticComponent<ISideMenuProps & import('react').RefAttributes<ISideMenuInstance>>;
@@ -0,0 +1,16 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { SideMenu } from './index';
3
+ declare const meta: Meta<typeof SideMenu>;
4
+ export default meta;
5
+ export declare const SideMenuBasic: {
6
+ render(): import("react/jsx-runtime").JSX.Element;
7
+ };
8
+ export declare const EmptySideMenu: {
9
+ render(): import("react/jsx-runtime").JSX.Element;
10
+ };
11
+ export declare const CustomStyledSideMenu: {
12
+ render(): import("react/jsx-runtime").JSX.Element;
13
+ };
14
+ export declare const MultiLevelSideMenu: {
15
+ render(): import("react/jsx-runtime").JSX.Element;
16
+ };
@@ -52,3 +52,4 @@ export { isBrowser } from './helper/is-browser';
52
52
  export { DropdownMenu, type IDropdownProps } from './components/dropdown-menu';
53
53
  export { Separator } from './components/separator';
54
54
  export { DateRangePicker } from './components/date-range-picker';
55
+ export * from './components/side-menu';