@cascivo/react 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -11
- package/dist/combobox/combobox.js +73 -73
- package/dist/command-menu/command-menu.js +2 -2
- package/dist/date-picker/date-picker.js +95 -95
- package/dist/field/field.js +24 -15
- package/dist/filter/filter.js +12 -12
- package/dist/index.d.ts +74 -8
- package/dist/index.js +2 -0
- package/dist/node/accordion/accordion.js +95 -0
- package/dist/node/accordion/accordion.module.js +13 -0
- package/dist/node/action-sheet/action-sheet.js +91 -0
- package/dist/node/action-sheet/action-sheet.module.js +14 -0
- package/dist/node/alert/alert.js +55 -0
- package/dist/node/alert/alert.module.js +13 -0
- package/dist/node/alert-dialog/alert-dialog.js +68 -0
- package/dist/node/alert-dialog/alert-dialog.module.js +13 -0
- package/dist/node/app-shell/app-shell.js +80 -0
- package/dist/node/app-shell/app-shell.module.js +14 -0
- package/dist/node/aspect-ratio/aspect-ratio.js +22 -0
- package/dist/node/aspect-ratio/aspect-ratio.module.js +8 -0
- package/dist/node/avatar/avatar.js +57 -0
- package/dist/node/avatar/avatar.module.js +10 -0
- package/dist/node/avatar-group/avatar-group.js +26 -0
- package/dist/node/avatar-group/avatar-group.module.js +8 -0
- package/dist/node/badge/badge.js +17 -0
- package/dist/node/badge/badge.module.js +5 -0
- package/dist/node/blockquote/blockquote.js +18 -0
- package/dist/node/blockquote/blockquote.module.js +8 -0
- package/dist/node/bottom-sheet/bottom-sheet.js +111 -0
- package/dist/node/bottom-sheet/bottom-sheet.module.js +16 -0
- package/dist/node/breadcrumb/breadcrumb.js +28 -0
- package/dist/node/breadcrumb/breadcrumb.module.js +5 -0
- package/dist/node/button/button.js +31 -0
- package/dist/node/button/button.module.js +5 -0
- package/dist/node/button-group/button-group.js +39 -0
- package/dist/node/button-group/button-group.module.js +5 -0
- package/dist/node/calendar/calendar.js +195 -0
- package/dist/node/calendar/calendar.module.js +16 -0
- package/dist/node/card/card.js +45 -0
- package/dist/node/card/card.module.js +11 -0
- package/dist/node/carousel/carousel.js +138 -0
- package/dist/node/carousel/carousel.module.js +15 -0
- package/dist/node/chat-bubble/chat-bubble.js +33 -0
- package/dist/node/chat-bubble/chat-bubble.module.js +13 -0
- package/dist/node/checkbox/checkbox.js +38 -0
- package/dist/node/checkbox/checkbox.module.js +10 -0
- package/dist/node/checkbox-card/checkbox-card.js +48 -0
- package/dist/node/checkbox-card/checkbox-card.module.js +13 -0
- package/dist/node/code/code.js +16 -0
- package/dist/node/code/code.module.js +5 -0
- package/dist/node/code-snippet/code-snippet.js +116 -0
- package/dist/node/code-snippet/code-snippet.module.js +19 -0
- package/dist/node/code-snippet/highlight.js +69 -0
- package/dist/node/collapsible/collapsible.js +42 -0
- package/dist/node/collapsible/collapsible.module.js +10 -0
- package/dist/node/color-picker/color-picker.js +268 -0
- package/dist/node/color-picker/color-picker.module.js +20 -0
- package/dist/node/combobox/combobox.js +164 -0
- package/dist/node/combobox/combobox.module.js +21 -0
- package/dist/node/command-menu/command-menu.js +425 -0
- package/dist/node/command-menu/command-menu.module.js +36 -0
- package/dist/node/comparison/comparison.js +69 -0
- package/dist/node/comparison/comparison.module.js +11 -0
- package/dist/node/contained-list/contained-list.js +41 -0
- package/dist/node/contained-list/contained-list.module.js +13 -0
- package/dist/node/context-menu/context-menu.js +89 -0
- package/dist/node/context-menu/context-menu.module.js +9 -0
- package/dist/node/copy-button/copy-button.js +58 -0
- package/dist/node/copy-button/copy-button.module.js +8 -0
- package/dist/node/data-list/data-list.js +27 -0
- package/dist/node/data-list/data-list.module.js +10 -0
- package/dist/node/data-table/data-table.js +370 -0
- package/dist/node/data-table/data-table.module.js +35 -0
- package/dist/node/date-picker/date-picker.js +218 -0
- package/dist/node/date-picker/date-picker.module.js +25 -0
- package/dist/node/date-range-picker/date-range-picker.js +196 -0
- package/dist/node/date-range-picker/date-range-picker.module.js +20 -0
- package/dist/node/dock/dock.js +34 -0
- package/dist/node/dock/dock.module.js +10 -0
- package/dist/node/drawer/drawer.js +95 -0
- package/dist/node/drawer/drawer.module.js +15 -0
- package/dist/node/dropdown/dropdown.js +109 -0
- package/dist/node/dropdown/dropdown.module.js +11 -0
- package/dist/node/editable/editable.js +67 -0
- package/dist/node/editable/editable.module.js +13 -0
- package/dist/node/empty-state/empty-state.js +34 -0
- package/dist/node/empty-state/empty-state.module.js +11 -0
- package/dist/node/fab/fab.js +93 -0
- package/dist/node/fab/fab.module.js +14 -0
- package/dist/node/field/field.js +48 -0
- package/dist/node/field/field.module.js +9 -0
- package/dist/node/file-uploader/file-uploader.js +122 -0
- package/dist/node/file-uploader/file-uploader.module.js +20 -0
- package/dist/node/filter/filter.js +34 -0
- package/dist/node/filter/filter.module.js +8 -0
- package/dist/node/form/form.js +95 -0
- package/dist/node/form/form.module.js +5 -0
- package/dist/node/header/header.js +44 -0
- package/dist/node/header/header.module.js +13 -0
- package/dist/node/header-panel/header-panel.js +74 -0
- package/dist/node/header-panel/header-panel.module.js +11 -0
- package/dist/node/heading/heading.js +24 -0
- package/dist/node/heading/heading.module.js +5 -0
- package/dist/node/hover-card/hover-card.js +84 -0
- package/dist/node/hover-card/hover-card.module.js +8 -0
- package/dist/node/icon-button/icon-button.js +21 -0
- package/dist/node/icon-button/icon-button.module.js +5 -0
- package/dist/node/image/image.js +64 -0
- package/dist/node/image/image.module.js +11 -0
- package/dist/node/index.js +2 -0
- package/dist/node/indicator/indicator.js +18 -0
- package/dist/node/indicator/indicator.module.js +8 -0
- package/dist/node/inline-loading/inline-loading.js +76 -0
- package/dist/node/inline-loading/inline-loading.module.js +11 -0
- package/dist/node/input/input.js +54 -0
- package/dist/node/input/input.module.js +11 -0
- package/dist/node/input-group/input-group.js +41 -0
- package/dist/node/input-group/input-group.module.js +11 -0
- package/dist/node/item/item.js +52 -0
- package/dist/node/item/item.module.js +12 -0
- package/dist/node/join/join.js +14 -0
- package/dist/node/join/join.module.js +5 -0
- package/dist/node/kbd/kbd.js +16 -0
- package/dist/node/kbd/kbd.module.js +5 -0
- package/dist/node/label/label.js +25 -0
- package/dist/node/label/label.module.js +9 -0
- package/dist/node/layouts/src/auto-grid/auto-grid.js +19 -0
- package/dist/node/layouts/src/auto-grid/auto-grid.module.js +6 -0
- package/dist/node/layouts/src/center/center.js +18 -0
- package/dist/node/layouts/src/center/center.module.js +5 -0
- package/dist/node/layouts/src/columns/columns.js +23 -0
- package/dist/node/layouts/src/columns/columns.module.js +8 -0
- package/dist/node/layouts/src/flex/flex.js +22 -0
- package/dist/node/layouts/src/flex/flex.module.js +5 -0
- package/dist/node/layouts/src/grid/grid.js +57 -0
- package/dist/node/layouts/src/grid/grid.module.js +9 -0
- package/dist/node/layouts/src/spacer/spacer.js +19 -0
- package/dist/node/layouts/src/spacer/spacer.module.js +5 -0
- package/dist/node/link/link.js +22 -0
- package/dist/node/link/link.module.js +5 -0
- package/dist/node/list/list.js +23 -0
- package/dist/node/list/list.module.js +8 -0
- package/dist/node/log-viewer/log-viewer.js +184 -0
- package/dist/node/log-viewer/log-viewer.module.js +18 -0
- package/dist/node/menu/menu.js +121 -0
- package/dist/node/menu/menu.module.js +10 -0
- package/dist/node/menu-button/menu-button.js +92 -0
- package/dist/node/menu-button/menu-button.module.js +10 -0
- package/dist/node/menubar/menubar.js +103 -0
- package/dist/node/menubar/menubar.module.js +10 -0
- package/dist/node/modal/modal.js +70 -0
- package/dist/node/modal/modal.module.js +13 -0
- package/dist/node/multi-select/multi-select.js +106 -0
- package/dist/node/multi-select/multi-select.module.js +17 -0
- package/dist/node/native-select/native-select.js +37 -0
- package/dist/node/native-select/native-select.module.js +9 -0
- package/dist/node/navigation-menu/navigation-menu.js +99 -0
- package/dist/node/navigation-menu/navigation-menu.module.js +12 -0
- package/dist/node/notification/notification.js +134 -0
- package/dist/node/notification/notification.module.js +13 -0
- package/dist/node/number-input/number-input.js +145 -0
- package/dist/node/number-input/number-input.module.js +14 -0
- package/dist/node/otp-input/otp-input.js +70 -0
- package/dist/node/otp-input/otp-input.module.js +8 -0
- package/dist/node/overflow-menu/overflow-menu.js +65 -0
- package/dist/node/overflow-menu/overflow-menu.module.js +9 -0
- package/dist/node/pagination/pagination.js +92 -0
- package/dist/node/pagination/pagination.module.js +13 -0
- package/dist/node/password-input/password-input.js +80 -0
- package/dist/node/password-input/password-input.module.js +13 -0
- package/dist/node/popover/popover.js +49 -0
- package/dist/node/popover/popover.module.js +8 -0
- package/dist/node/popover/use-popover.js +57 -0
- package/dist/node/progress/progress.js +17 -0
- package/dist/node/progress/progress.module.js +8 -0
- package/dist/node/progress-bar/progress-bar.js +44 -0
- package/dist/node/progress-bar/progress-bar.module.js +13 -0
- package/dist/node/progress-circle/progress-circle.js +48 -0
- package/dist/node/progress-circle/progress-circle.module.js +11 -0
- package/dist/node/progress-indicator/progress-indicator.js +36 -0
- package/dist/node/progress-indicator/progress-indicator.module.js +12 -0
- package/dist/node/prose/prose.js +15 -0
- package/dist/node/prose/prose.module.js +5 -0
- package/dist/node/pull-to-refresh/pull-to-refresh.js +82 -0
- package/dist/node/pull-to-refresh/pull-to-refresh.module.js +11 -0
- package/dist/node/qr-code/encode.js +585 -0
- package/dist/node/qr-code/qr-code.js +41 -0
- package/dist/node/qr-code/qr-code.module.js +8 -0
- package/dist/node/radial-progress/radial-progress.js +28 -0
- package/dist/node/radial-progress/radial-progress.module.js +8 -0
- package/dist/node/radio/radio.js +49 -0
- package/dist/node/radio/radio.module.js +11 -0
- package/dist/node/radio-card/radio-card.js +63 -0
- package/dist/node/radio-card/radio-card.module.js +13 -0
- package/dist/node/rating-group/rating-group.js +37 -0
- package/dist/node/rating-group/rating-group.module.js +8 -0
- package/dist/node/react/src/index.js +138 -0
- package/dist/node/react/src/theme.js +54 -0
- package/dist/node/relative-time/relative-time.js +66 -0
- package/dist/node/relative-time/relative-time.module.js +5 -0
- package/dist/node/resizable/resizable.js +80 -0
- package/dist/node/resizable/resizable.module.js +10 -0
- package/dist/node/scroll-area/scroll-area.js +38 -0
- package/dist/node/scroll-area/scroll-area.module.js +5 -0
- package/dist/node/search/search.js +94 -0
- package/dist/node/search/search.module.js +11 -0
- package/dist/node/segmented-control/segmented-control.js +43 -0
- package/dist/node/segmented-control/segmented-control.module.js +8 -0
- package/dist/node/select/select.js +71 -0
- package/dist/node/select/select.module.js +13 -0
- package/dist/node/separator/separator.js +21 -0
- package/dist/node/separator/separator.module.js +5 -0
- package/dist/node/sheet/sheet.js +50 -0
- package/dist/node/sheet/sheet.module.js +11 -0
- package/dist/node/shell-header/shell-header.js +166 -0
- package/dist/node/shell-header/shell-header.module.js +25 -0
- package/dist/node/side-nav/side-nav.js +333 -0
- package/dist/node/side-nav/side-nav.module.js +33 -0
- package/dist/node/skeleton/skeleton.js +25 -0
- package/dist/node/skeleton/skeleton.module.js +9 -0
- package/dist/node/skip-nav/skip-nav.js +27 -0
- package/dist/node/skip-nav/skip-nav.module.js +5 -0
- package/dist/node/slider/slider.js +29 -0
- package/dist/node/slider/slider.module.js +9 -0
- package/dist/node/spinner/spinner.js +18 -0
- package/dist/node/spinner/spinner.module.js +8 -0
- package/dist/node/stack/stack.js +19 -0
- package/dist/node/stack/stack.module.js +8 -0
- package/dist/node/stat/stat.js +41 -0
- package/dist/node/stat/stat.module.js +13 -0
- package/dist/node/status/status.js +20 -0
- package/dist/node/status/status.module.js +9 -0
- package/dist/node/steps/steps.js +35 -0
- package/dist/node/steps/steps.module.js +10 -0
- package/dist/node/storage/src/drivers.js +36 -0
- package/dist/node/storage/src/persisted-signal.js +43 -0
- package/dist/node/structured-list/structured-list.js +101 -0
- package/dist/node/structured-list/structured-list.module.js +14 -0
- package/dist/node/swap/swap.js +36 -0
- package/dist/node/swap/swap.module.js +9 -0
- package/dist/node/swipe-item/swipe-item.js +62 -0
- package/dist/node/swipe-item/swipe-item.module.js +14 -0
- package/dist/node/switcher/switcher.js +32 -0
- package/dist/node/switcher/switcher.module.js +10 -0
- package/dist/node/tabs/tabs.js +95 -0
- package/dist/node/tabs/tabs.module.js +10 -0
- package/dist/node/tag/tag.js +26 -0
- package/dist/node/tag/tag.module.js +8 -0
- package/dist/node/tags-input/tags-input.js +64 -0
- package/dist/node/tags-input/tags-input.module.js +10 -0
- package/dist/node/text/text.js +18 -0
- package/dist/node/text/text.module.js +5 -0
- package/dist/node/textarea/textarea.js +56 -0
- package/dist/node/textarea/textarea.module.js +11 -0
- package/dist/node/tile/tile.js +39 -0
- package/dist/node/tile/tile.module.js +9 -0
- package/dist/node/time-picker/time-picker.js +62 -0
- package/dist/node/time-picker/time-picker.module.js +11 -0
- package/dist/node/timeline/timeline.js +41 -0
- package/dist/node/timeline/timeline.module.js +13 -0
- package/dist/node/toast/toast.js +85 -0
- package/dist/node/toast/toast.module.js +13 -0
- package/dist/node/toc/toc.js +42 -0
- package/dist/node/toc/toc.module.js +5 -0
- package/dist/node/toc/use-toc-from-region.js +18 -0
- package/dist/node/toggle/toggle.js +39 -0
- package/dist/node/toggle/toggle.module.js +10 -0
- package/dist/node/toggle-group/toggle-group.js +55 -0
- package/dist/node/toggle-group/toggle-group.module.js +8 -0
- package/dist/node/toggletip/toggletip.js +49 -0
- package/dist/node/toggletip/toggletip.module.js +9 -0
- package/dist/node/tooltip/tooltip.js +58 -0
- package/dist/node/tooltip/tooltip.module.js +8 -0
- package/dist/node/tree-view/tree-view.js +201 -0
- package/dist/node/tree-view/tree-view.module.js +15 -0
- package/dist/node/user/user.js +37 -0
- package/dist/node/user/user.module.js +11 -0
- package/dist/node/visually-hidden/visually-hidden.js +15 -0
- package/dist/node/visually-hidden/visually-hidden.module.js +5 -0
- package/dist/number-input/number-input.js +41 -41
- package/dist/react/src/theme.js +42 -31
- package/dist/search/search.js +35 -35
- package/dist/swap/swap.js +12 -12
- package/dist/time-picker/time-picker.js +24 -24
- package/dist/toggle/toggle.js +12 -12
- package/package.json +7 -6
- package/readme.body.md +24 -11
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { Calendar as e } from "../calendar/calendar.js";
|
|
4
|
+
import t from "./date-range-picker.module.js";
|
|
5
|
+
import { batch as n, cn as r, useControllableSignal as i, useSignal as a, useSignalEffect as o, useSignals as s } from "@cascivo/core";
|
|
6
|
+
import { builtin as c, currentLocale as ee, t as l } from "@cascivo/i18n";
|
|
7
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
8
|
+
import { useRef as f } from "react";
|
|
9
|
+
//#region ../components/src/date-range-picker/date-range-picker.tsx
|
|
10
|
+
function p(e) {
|
|
11
|
+
return Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate());
|
|
12
|
+
}
|
|
13
|
+
function m(e, t) {
|
|
14
|
+
return !e || !t ? !1 : p(e) === p(t);
|
|
15
|
+
}
|
|
16
|
+
function h(e, t, n) {
|
|
17
|
+
let r = new Date(Date.UTC(e, t + n, 1));
|
|
18
|
+
return {
|
|
19
|
+
year: r.getUTCFullYear(),
|
|
20
|
+
month: r.getUTCMonth()
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function g({ value: g, defaultValue: _, onValueChange: te, min: v, max: y, disabled: b, presets: x, locale: S, placeholder: C, size: w = "md", labels: T, className: ne }) {
|
|
24
|
+
s();
|
|
25
|
+
let E = S ?? ee(), re = C ?? l(c.dateRangePicker.placeholder), D = T?.apply ?? l(c.dateRangePicker.apply), O = T?.clear ?? l(c.dateRangePicker.clear), k = T?.previousMonth ?? l(c.calendar.previousMonth), A = T?.nextMonth ?? l(c.calendar.nextMonth), [j, M] = i({
|
|
26
|
+
value: g === void 0 ? void 0 : g,
|
|
27
|
+
defaultValue: _ ?? null,
|
|
28
|
+
onChange: (e) => {
|
|
29
|
+
e && te?.(e);
|
|
30
|
+
}
|
|
31
|
+
}), N = a(!1), P = a(null), F = a(null), I = j.value?.start ?? _?.start ?? /* @__PURE__ */ new Date(), L = a(I.getUTCFullYear()), R = a(I.getUTCMonth()), z = f(null);
|
|
32
|
+
o(() => {
|
|
33
|
+
if (!N.value) return;
|
|
34
|
+
let e = (e) => {
|
|
35
|
+
z.current && !z.current.contains(e.target) && (N.value = !1);
|
|
36
|
+
};
|
|
37
|
+
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
38
|
+
});
|
|
39
|
+
let B = () => {
|
|
40
|
+
N.value = !0;
|
|
41
|
+
}, V = () => {
|
|
42
|
+
N.value = !1;
|
|
43
|
+
}, H = (e) => {
|
|
44
|
+
let t = h(L.value, R.value, e);
|
|
45
|
+
n(() => {
|
|
46
|
+
L.value = t.year, R.value = t.month;
|
|
47
|
+
});
|
|
48
|
+
}, U = (e) => {
|
|
49
|
+
let t = P.value;
|
|
50
|
+
if (t === null) {
|
|
51
|
+
P.value = e;
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
if (m(t, e)) {
|
|
55
|
+
n(() => {
|
|
56
|
+
P.value = null, F.value = null;
|
|
57
|
+
}), M(null);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
let r = p(t) <= p(e) ? {
|
|
61
|
+
start: t,
|
|
62
|
+
end: e
|
|
63
|
+
} : {
|
|
64
|
+
start: e,
|
|
65
|
+
end: t
|
|
66
|
+
};
|
|
67
|
+
n(() => {
|
|
68
|
+
P.value = null, F.value = null;
|
|
69
|
+
}), M(r);
|
|
70
|
+
}, W = (e) => {
|
|
71
|
+
n(() => {
|
|
72
|
+
P.value = null, F.value = null, L.value = e.range.start.getUTCFullYear(), R.value = e.range.start.getUTCMonth();
|
|
73
|
+
}), M(e.range);
|
|
74
|
+
}, G = () => {
|
|
75
|
+
n(() => {
|
|
76
|
+
P.value = null, F.value = null;
|
|
77
|
+
}), M(null);
|
|
78
|
+
}, K = P.value ?? j.value?.start ?? null, q = P.value ? F.value ?? null : j.value?.end ?? null, J = K && q ? Math.min(p(K), p(q)) : null, Y = K && q ? Math.max(p(K), p(q)) : null, ie = (e) => {
|
|
79
|
+
if (J === null || Y === null) return !1;
|
|
80
|
+
let t = p(e);
|
|
81
|
+
return t > J && t < Y;
|
|
82
|
+
}, ae = (e) => m(e, K) || J !== null && p(e) === J, oe = (e) => m(e, q) || Y !== null && p(e) === Y, X = new Intl.DateTimeFormat(E, {
|
|
83
|
+
year: "numeric",
|
|
84
|
+
month: "short",
|
|
85
|
+
day: "numeric"
|
|
86
|
+
}), Z = j.value ? `${X.format(j.value.start)} → ${X.format(j.value.end)}` : "", Q = h(L.value, R.value, 1), $ = {
|
|
87
|
+
locale: E,
|
|
88
|
+
size: w,
|
|
89
|
+
...v === void 0 ? {} : { min: v },
|
|
90
|
+
...y === void 0 ? {} : { max: y },
|
|
91
|
+
...b === void 0 ? {} : { disabled: b },
|
|
92
|
+
hideNav: !0,
|
|
93
|
+
isInRange: ie,
|
|
94
|
+
isRangeStart: ae,
|
|
95
|
+
isRangeEnd: oe,
|
|
96
|
+
onValueChange: U,
|
|
97
|
+
onDayHover: (e) => {
|
|
98
|
+
F.value = e;
|
|
99
|
+
},
|
|
100
|
+
labels: {
|
|
101
|
+
previousMonth: k,
|
|
102
|
+
nextMonth: A
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
return /* @__PURE__ */ d("div", {
|
|
106
|
+
ref: z,
|
|
107
|
+
className: r(t.wrapper, ne),
|
|
108
|
+
"data-size": w,
|
|
109
|
+
onKeyDown: (e) => {
|
|
110
|
+
e.key === "Escape" && N.value && (e.stopPropagation(), V());
|
|
111
|
+
},
|
|
112
|
+
children: [/* @__PURE__ */ d("button", {
|
|
113
|
+
type: "button",
|
|
114
|
+
role: "combobox",
|
|
115
|
+
"aria-expanded": N.value,
|
|
116
|
+
"aria-haspopup": "dialog",
|
|
117
|
+
"aria-label": T?.label ?? l(c.dateRangePicker.label),
|
|
118
|
+
className: t.trigger,
|
|
119
|
+
onClick: N.value ? V : B,
|
|
120
|
+
children: [/* @__PURE__ */ u("span", {
|
|
121
|
+
className: r(t.value, Z ? void 0 : t.placeholder),
|
|
122
|
+
children: Z || re
|
|
123
|
+
}), /* @__PURE__ */ u("span", {
|
|
124
|
+
className: t.icon,
|
|
125
|
+
"aria-hidden": "true",
|
|
126
|
+
children: "📅"
|
|
127
|
+
})]
|
|
128
|
+
}), /* @__PURE__ */ d("div", {
|
|
129
|
+
role: "dialog",
|
|
130
|
+
className: t.panel,
|
|
131
|
+
"data-state": N.value ? "open" : "closed",
|
|
132
|
+
children: [
|
|
133
|
+
x && x.length > 0 && /* @__PURE__ */ u("div", {
|
|
134
|
+
className: t.presets,
|
|
135
|
+
children: x.map((e) => /* @__PURE__ */ u("button", {
|
|
136
|
+
type: "button",
|
|
137
|
+
className: t.preset,
|
|
138
|
+
onClick: () => W(e),
|
|
139
|
+
children: e.label
|
|
140
|
+
}, e.label))
|
|
141
|
+
}),
|
|
142
|
+
/* @__PURE__ */ d("div", {
|
|
143
|
+
className: t.calendars,
|
|
144
|
+
children: [
|
|
145
|
+
/* @__PURE__ */ u("div", {
|
|
146
|
+
className: t.calNav,
|
|
147
|
+
children: /* @__PURE__ */ u("button", {
|
|
148
|
+
type: "button",
|
|
149
|
+
className: t.navButton,
|
|
150
|
+
"aria-label": k,
|
|
151
|
+
onClick: () => H(-1),
|
|
152
|
+
children: "‹"
|
|
153
|
+
})
|
|
154
|
+
}),
|
|
155
|
+
/* @__PURE__ */ u(e, {
|
|
156
|
+
month: R.value,
|
|
157
|
+
year: L.value,
|
|
158
|
+
...$
|
|
159
|
+
}),
|
|
160
|
+
/* @__PURE__ */ u(e, {
|
|
161
|
+
month: Q.month,
|
|
162
|
+
year: Q.year,
|
|
163
|
+
...$
|
|
164
|
+
}),
|
|
165
|
+
/* @__PURE__ */ u("div", {
|
|
166
|
+
className: t.calNav,
|
|
167
|
+
children: /* @__PURE__ */ u("button", {
|
|
168
|
+
type: "button",
|
|
169
|
+
className: t.navButton,
|
|
170
|
+
"aria-label": A,
|
|
171
|
+
onClick: () => H(1),
|
|
172
|
+
children: "›"
|
|
173
|
+
})
|
|
174
|
+
})
|
|
175
|
+
]
|
|
176
|
+
}),
|
|
177
|
+
/* @__PURE__ */ d("div", {
|
|
178
|
+
className: t.footer,
|
|
179
|
+
children: [/* @__PURE__ */ u("button", {
|
|
180
|
+
type: "button",
|
|
181
|
+
className: t.clearBtn,
|
|
182
|
+
onClick: G,
|
|
183
|
+
children: O
|
|
184
|
+
}), /* @__PURE__ */ u("button", {
|
|
185
|
+
type: "button",
|
|
186
|
+
className: t.applyBtn,
|
|
187
|
+
onClick: V,
|
|
188
|
+
children: D
|
|
189
|
+
})]
|
|
190
|
+
})
|
|
191
|
+
]
|
|
192
|
+
})]
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
//#endregion
|
|
196
|
+
export { g as DateRangePicker };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
var e = {
|
|
4
|
+
wrapper: "_wrapper_k1szr_2",
|
|
5
|
+
trigger: "_trigger_k1szr_25",
|
|
6
|
+
value: "_value_k1szr_55",
|
|
7
|
+
placeholder: "_placeholder_k1szr_61",
|
|
8
|
+
icon: "_icon_k1szr_64",
|
|
9
|
+
panel: "_panel_k1szr_69",
|
|
10
|
+
calendars: "_calendars_k1szr_104",
|
|
11
|
+
calNav: "_calNav_k1szr_110",
|
|
12
|
+
navButton: "_navButton_k1szr_116",
|
|
13
|
+
presets: "_presets_k1szr_139",
|
|
14
|
+
preset: "_preset_k1szr_139",
|
|
15
|
+
footer: "_footer_k1szr_166",
|
|
16
|
+
clearBtn: "_clearBtn_k1szr_175",
|
|
17
|
+
applyBtn: "_applyBtn_k1szr_176"
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { e as default };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import e from "./dock.module.js";
|
|
4
|
+
import { getLinkComponent as t, useSignals as n } from "@cascivo/core";
|
|
5
|
+
import { builtin as r, t as i } from "@cascivo/i18n";
|
|
6
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
+
//#region ../components/src/dock/dock.tsx
|
|
8
|
+
function s({ items: s, activeIndex: c, className: l, ariaLabel: u }) {
|
|
9
|
+
return n(), /* @__PURE__ */ a("nav", {
|
|
10
|
+
"aria-label": u ?? i(r.dock.nav),
|
|
11
|
+
className: [e.dock, l].filter(Boolean).join(" "),
|
|
12
|
+
children: s.map((n, r) => {
|
|
13
|
+
let i = r === c;
|
|
14
|
+
return /* @__PURE__ */ o(n.href ? t() : "button", {
|
|
15
|
+
className: e.item,
|
|
16
|
+
"data-active": i || void 0,
|
|
17
|
+
"aria-current": i ? "page" : void 0,
|
|
18
|
+
...n.href ? { href: n.href } : {},
|
|
19
|
+
type: n.href ? void 0 : "button",
|
|
20
|
+
onClick: n.onClick,
|
|
21
|
+
children: [/* @__PURE__ */ a("span", {
|
|
22
|
+
className: e.icon,
|
|
23
|
+
"aria-hidden": "true",
|
|
24
|
+
children: n.icon
|
|
25
|
+
}), /* @__PURE__ */ a("span", {
|
|
26
|
+
className: e.label,
|
|
27
|
+
children: n.label
|
|
28
|
+
})]
|
|
29
|
+
}, r);
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { s as Dock };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import e from "./drawer.module.js";
|
|
4
|
+
import { DismissableLayer as t, FocusScope as n, Portal as r, Presence as i, cn as a, useControllableSignal as o, useDraggable as s, useScrollLock as c, useSignals as l } from "@cascivo/core";
|
|
5
|
+
import { builtin as u, t as d } from "@cascivo/i18n";
|
|
6
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
7
|
+
import { useId as m } from "react";
|
|
8
|
+
//#region ../components/src/drawer/drawer.tsx
|
|
9
|
+
var h = 80;
|
|
10
|
+
function g({ open: g, defaultOpen: _, onOpenChange: v, side: y = "end", size: b, title: x, description: S, children: C, labels: w, className: T, swipeToDismiss: E = !1 }) {
|
|
11
|
+
l();
|
|
12
|
+
let [D, O] = o({
|
|
13
|
+
value: g,
|
|
14
|
+
defaultValue: _ ?? !1,
|
|
15
|
+
onChange: v
|
|
16
|
+
});
|
|
17
|
+
c(D);
|
|
18
|
+
let k = y === "top" || y === "bottom" ? "y" : "x", { handleRef: A, offset: j, isDragging: M, reset: N } = s({
|
|
19
|
+
isDisabled: !E,
|
|
20
|
+
axis: k,
|
|
21
|
+
onDragEnd: (e) => {
|
|
22
|
+
let t = k === "y" ? e.y : e.x, n = y === "end" && t > h || y === "start" && t < -80 || y === "bottom" && t > h || y === "top" && t < -80;
|
|
23
|
+
N(), n && O(!1);
|
|
24
|
+
}
|
|
25
|
+
}), P = m(), F = m(), I = w?.close ?? d(u.drawer.close), L = {
|
|
26
|
+
...b ? { "--_drawer-size": b } : {},
|
|
27
|
+
...E ? {
|
|
28
|
+
"--_drawer-drag-x": `${j.value.x}px`,
|
|
29
|
+
"--_drawer-drag-y": `${j.value.y}px`
|
|
30
|
+
} : {}
|
|
31
|
+
};
|
|
32
|
+
return /* @__PURE__ */ f(r, { children: /* @__PURE__ */ f(i, {
|
|
33
|
+
present: D,
|
|
34
|
+
children: /* @__PURE__ */ f("div", {
|
|
35
|
+
className: e.overlay,
|
|
36
|
+
"data-side": y,
|
|
37
|
+
children: /* @__PURE__ */ f(t, {
|
|
38
|
+
onDismiss: () => O(!1),
|
|
39
|
+
children: /* @__PURE__ */ f(n, {
|
|
40
|
+
trapped: !0,
|
|
41
|
+
restoreFocus: !0,
|
|
42
|
+
autoFocus: !0,
|
|
43
|
+
children: /* @__PURE__ */ p("div", {
|
|
44
|
+
role: "dialog",
|
|
45
|
+
"aria-modal": "true",
|
|
46
|
+
"aria-labelledby": x ? P : void 0,
|
|
47
|
+
"aria-describedby": S ? F : void 0,
|
|
48
|
+
"data-side": y,
|
|
49
|
+
"data-dragging": E && M.value ? "" : void 0,
|
|
50
|
+
className: a(e.panel, T),
|
|
51
|
+
style: L,
|
|
52
|
+
children: [(x || S) && /* @__PURE__ */ p("div", {
|
|
53
|
+
className: e.header,
|
|
54
|
+
ref: E ? A : void 0,
|
|
55
|
+
children: [/* @__PURE__ */ p("div", {
|
|
56
|
+
className: e.heading,
|
|
57
|
+
children: [x && /* @__PURE__ */ f("h2", {
|
|
58
|
+
id: P,
|
|
59
|
+
className: e.title,
|
|
60
|
+
children: x
|
|
61
|
+
}), S && /* @__PURE__ */ f("p", {
|
|
62
|
+
id: F,
|
|
63
|
+
className: e.description,
|
|
64
|
+
children: S
|
|
65
|
+
})]
|
|
66
|
+
}), /* @__PURE__ */ f("button", {
|
|
67
|
+
type: "button",
|
|
68
|
+
"aria-label": I,
|
|
69
|
+
onClick: () => O(!1),
|
|
70
|
+
className: e.close,
|
|
71
|
+
children: /* @__PURE__ */ f("svg", {
|
|
72
|
+
"aria-hidden": "true",
|
|
73
|
+
viewBox: "0 0 16 16",
|
|
74
|
+
className: e.closeIcon,
|
|
75
|
+
children: /* @__PURE__ */ f("path", {
|
|
76
|
+
d: "M4 4l8 8M12 4l-8 8",
|
|
77
|
+
fill: "none",
|
|
78
|
+
stroke: "currentColor",
|
|
79
|
+
strokeWidth: "1.5",
|
|
80
|
+
strokeLinecap: "round"
|
|
81
|
+
})
|
|
82
|
+
})
|
|
83
|
+
})]
|
|
84
|
+
}), /* @__PURE__ */ f("div", {
|
|
85
|
+
className: e.body,
|
|
86
|
+
children: C
|
|
87
|
+
})]
|
|
88
|
+
})
|
|
89
|
+
})
|
|
90
|
+
})
|
|
91
|
+
})
|
|
92
|
+
}) });
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
export { g as Drawer };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
var e = {
|
|
4
|
+
overlay: "_overlay_cbcjg_2",
|
|
5
|
+
panel: "_panel_cbcjg_39",
|
|
6
|
+
header: "_header_cbcjg_124",
|
|
7
|
+
heading: "_heading_cbcjg_134",
|
|
8
|
+
title: "_title_cbcjg_140",
|
|
9
|
+
description: "_description_cbcjg_147",
|
|
10
|
+
close: "_close_cbcjg_153",
|
|
11
|
+
closeIcon: "_closeIcon_cbcjg_181",
|
|
12
|
+
body: "_body_cbcjg_186"
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { e as default };
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import e from "./dropdown.module.js";
|
|
4
|
+
import { composeRefs as t, createMachine as n, useMachine as r, useSignal as i, useSignalEffect as a, useSignals as o } from "@cascivo/core";
|
|
5
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
|
+
import { cloneElement as l, useRef as u } from "react";
|
|
7
|
+
//#region ../components/src/dropdown/dropdown.tsx
|
|
8
|
+
var d = n({
|
|
9
|
+
initial: "closed",
|
|
10
|
+
states: {
|
|
11
|
+
closed: { on: { OPEN: "open" } },
|
|
12
|
+
open: { on: { CLOSE: "closed" } }
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
function f({ trigger: n, items: f, onSelect: p, placement: m = "bottom-start", open: h, onOpenChange: g }) {
|
|
16
|
+
o();
|
|
17
|
+
let [_, v] = r(d), y = u(null), b = u(null), x = u(null), S = u([]), C = i(-1), w = h !== void 0, T = w ? h : _.value === "open", E = i(T);
|
|
18
|
+
E.value = T;
|
|
19
|
+
let D = f.map((e, t) => ({
|
|
20
|
+
item: e,
|
|
21
|
+
index: t
|
|
22
|
+
})).filter(({ item: e }) => !e.separator && !e.disabled).map(({ index: e }) => e), O = (e) => {
|
|
23
|
+
w || v(e ? "OPEN" : "CLOSE"), g?.(e);
|
|
24
|
+
};
|
|
25
|
+
a(() => {
|
|
26
|
+
let e = C.value;
|
|
27
|
+
E.value && e >= 0 && S.current[e]?.focus();
|
|
28
|
+
}), a(() => {
|
|
29
|
+
E.value ? C.value = D[0] ?? -1 : C.value = -1;
|
|
30
|
+
}), a(() => {
|
|
31
|
+
E.value ? x.current?.showPopover() : x.current?.hidePopover();
|
|
32
|
+
}), a(() => {
|
|
33
|
+
let e = x.current;
|
|
34
|
+
if (!e) return;
|
|
35
|
+
let t = (e) => {
|
|
36
|
+
e.newState === "closed" && O(!1);
|
|
37
|
+
};
|
|
38
|
+
return e.addEventListener("toggle", t), () => e.removeEventListener("toggle", t);
|
|
39
|
+
});
|
|
40
|
+
let k = (e) => {
|
|
41
|
+
let t = f[e];
|
|
42
|
+
!t || t.separator || t.disabled || (p?.(t.value), O(!1), b.current?.focus());
|
|
43
|
+
}, A = (e) => {
|
|
44
|
+
D.length !== 0 && (C.value = D[(D.indexOf(C.value) + e + D.length) % D.length] ?? -1);
|
|
45
|
+
}, j = (e) => {
|
|
46
|
+
switch (e.key) {
|
|
47
|
+
case "ArrowDown":
|
|
48
|
+
e.preventDefault(), A(1);
|
|
49
|
+
break;
|
|
50
|
+
case "ArrowUp":
|
|
51
|
+
e.preventDefault(), A(-1);
|
|
52
|
+
break;
|
|
53
|
+
case "Home":
|
|
54
|
+
e.preventDefault(), C.value = D[0] ?? -1;
|
|
55
|
+
break;
|
|
56
|
+
case "End":
|
|
57
|
+
e.preventDefault(), C.value = D[D.length - 1] ?? -1;
|
|
58
|
+
break;
|
|
59
|
+
case "Escape":
|
|
60
|
+
e.preventDefault(), O(!1), b.current?.focus();
|
|
61
|
+
break;
|
|
62
|
+
case "Enter":
|
|
63
|
+
case " ":
|
|
64
|
+
e.preventDefault(), k(C.value);
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
}, M = n, N = l(M, {
|
|
68
|
+
ref: t(b, M.props.ref),
|
|
69
|
+
onClick: (e) => {
|
|
70
|
+
M.props.onClick?.(e), O(!T);
|
|
71
|
+
},
|
|
72
|
+
"aria-haspopup": "menu",
|
|
73
|
+
"aria-expanded": T
|
|
74
|
+
});
|
|
75
|
+
return /* @__PURE__ */ c("div", {
|
|
76
|
+
ref: y,
|
|
77
|
+
className: e.root,
|
|
78
|
+
children: [N, /* @__PURE__ */ s("div", {
|
|
79
|
+
ref: x,
|
|
80
|
+
popover: "auto",
|
|
81
|
+
role: "menu",
|
|
82
|
+
"data-placement": m,
|
|
83
|
+
"data-state": T ? "open" : "closed",
|
|
84
|
+
className: e.menu,
|
|
85
|
+
onKeyDown: j,
|
|
86
|
+
children: f.map((t, n) => t.separator ? /* @__PURE__ */ s("div", {
|
|
87
|
+
role: "separator",
|
|
88
|
+
className: e.separator
|
|
89
|
+
}, `sep-${n}`) : /* @__PURE__ */ c("button", {
|
|
90
|
+
type: "button",
|
|
91
|
+
role: "menuitem",
|
|
92
|
+
ref: (e) => {
|
|
93
|
+
S.current[n] = e;
|
|
94
|
+
},
|
|
95
|
+
tabIndex: C.value === n ? 0 : -1,
|
|
96
|
+
disabled: t.disabled,
|
|
97
|
+
className: e.item,
|
|
98
|
+
onClick: () => k(n),
|
|
99
|
+
children: [t.icon && /* @__PURE__ */ s("span", {
|
|
100
|
+
className: e.icon,
|
|
101
|
+
"aria-hidden": "true",
|
|
102
|
+
children: t.icon
|
|
103
|
+
}), t.label]
|
|
104
|
+
}, t.value))
|
|
105
|
+
})]
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
export { f as Dropdown };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import e from "./editable.module.js";
|
|
4
|
+
import { cn as t, useSignal as n, useSignalEffect as r, useSignals as i } from "@cascivo/core";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
import { useRef as s } from "react";
|
|
7
|
+
//#region ../components/src/editable/editable.tsx
|
|
8
|
+
function c({ value: c, onValueChange: l, placeholder: u, disabled: d = !1, submitOnBlur: f = !0, onCancel: p, className: m, ...h }) {
|
|
9
|
+
i();
|
|
10
|
+
let g = n(!1), _ = n(c), v = s(null), y = s(p);
|
|
11
|
+
y.current = p;
|
|
12
|
+
let b = s(l);
|
|
13
|
+
b.current = l, g.value || (_.value = c), r(() => {
|
|
14
|
+
if (g.value) {
|
|
15
|
+
let e = v.current;
|
|
16
|
+
e && (e.focus(), e.select());
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
function x() {
|
|
20
|
+
b.current(_.value), g.value = !1;
|
|
21
|
+
}
|
|
22
|
+
function S() {
|
|
23
|
+
_.value = c, g.value = !1, y.current?.();
|
|
24
|
+
}
|
|
25
|
+
return g.value ? /* @__PURE__ */ a("div", {
|
|
26
|
+
className: t(e.wrapper, e.editing, m),
|
|
27
|
+
...h,
|
|
28
|
+
children: /* @__PURE__ */ a("input", {
|
|
29
|
+
ref: v,
|
|
30
|
+
className: e.input,
|
|
31
|
+
value: _.value,
|
|
32
|
+
onChange: (e) => {
|
|
33
|
+
_.value = e.currentTarget.value;
|
|
34
|
+
},
|
|
35
|
+
onKeyDown: (e) => {
|
|
36
|
+
e.key === "Enter" ? (e.preventDefault(), x()) : e.key === "Escape" && (e.preventDefault(), S());
|
|
37
|
+
},
|
|
38
|
+
onBlur: () => {
|
|
39
|
+
f ? x() : S();
|
|
40
|
+
}
|
|
41
|
+
})
|
|
42
|
+
}) : /* @__PURE__ */ a("div", {
|
|
43
|
+
className: t(e.wrapper, m),
|
|
44
|
+
"data-disabled": d ? "" : void 0,
|
|
45
|
+
...h,
|
|
46
|
+
children: /* @__PURE__ */ o("button", {
|
|
47
|
+
type: "button",
|
|
48
|
+
className: e.preview,
|
|
49
|
+
disabled: d,
|
|
50
|
+
onClick: () => {
|
|
51
|
+
d || (g.value = !0);
|
|
52
|
+
},
|
|
53
|
+
children: [/* @__PURE__ */ a("span", {
|
|
54
|
+
className: e["preview-text"],
|
|
55
|
+
children: c || /* @__PURE__ */ a("span", {
|
|
56
|
+
className: e.placeholder,
|
|
57
|
+
children: u
|
|
58
|
+
})
|
|
59
|
+
}), /* @__PURE__ */ a("span", {
|
|
60
|
+
className: e["edit-icon"],
|
|
61
|
+
"aria-hidden": "true"
|
|
62
|
+
})]
|
|
63
|
+
})
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
export { c as Editable };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
var e = {
|
|
4
|
+
wrapper: "_wrapper_5e6r0_2",
|
|
5
|
+
preview: "_preview_5e6r0_8",
|
|
6
|
+
"preview-text": "_preview-text_5e6r0_42",
|
|
7
|
+
placeholder: "_placeholder_5e6r0_46",
|
|
8
|
+
"edit-icon": "_edit-icon_5e6r0_50",
|
|
9
|
+
editing: "_editing_5e6r0_69",
|
|
10
|
+
input: "_input_5e6r0_70"
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { e as default };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import e from "./empty-state.module.js";
|
|
4
|
+
import { cn as t } from "@cascivo/core";
|
|
5
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
6
|
+
//#region ../components/src/empty-state/empty-state.tsx
|
|
7
|
+
function i({ icon: i, title: a, description: o, action: s, size: c = "md", className: l, ...u }) {
|
|
8
|
+
return /* @__PURE__ */ r("div", {
|
|
9
|
+
"data-size": c,
|
|
10
|
+
className: t(e["empty-state"], l),
|
|
11
|
+
...u,
|
|
12
|
+
children: [
|
|
13
|
+
i && /* @__PURE__ */ n("span", {
|
|
14
|
+
className: e.icon,
|
|
15
|
+
"aria-hidden": "true",
|
|
16
|
+
children: i
|
|
17
|
+
}),
|
|
18
|
+
/* @__PURE__ */ n("h3", {
|
|
19
|
+
className: e.title,
|
|
20
|
+
children: a
|
|
21
|
+
}),
|
|
22
|
+
o && /* @__PURE__ */ n("p", {
|
|
23
|
+
className: e.description,
|
|
24
|
+
children: o
|
|
25
|
+
}),
|
|
26
|
+
s && /* @__PURE__ */ n("div", {
|
|
27
|
+
className: e.action,
|
|
28
|
+
children: s
|
|
29
|
+
})
|
|
30
|
+
]
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { i as EmptyState };
|