@lunejs/admin-ui 0.1.4 → 0.2.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/dist/_virtual/index10.js +5 -2
- package/dist/_virtual/index11.js +4 -0
- package/dist/_virtual/index6.js +3 -3
- package/dist/_virtual/index8.js +3 -5
- package/dist/lib/api/fetchers/gql-fetcher.js +6 -6
- package/dist/lib/collections/components/collection-details/cards/general-card.js +20 -14
- package/dist/lib/custom-fields/components/fields/color.js +3 -3
- package/dist/lib/dashboard/pages/dashboard-page.js +5 -5
- package/dist/lib/product/components/product-details/cards/general-product-card.js +18 -12
- package/dist/node_modules/@tiptap/core/dist/index.js +3562 -0
- package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +17 -0
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js +80 -0
- package/dist/node_modules/@tiptap/extension-document/dist/index.js +13 -0
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +64 -0
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js +78 -0
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +305 -0
- package/dist/node_modules/@tiptap/extension-list/dist/index.js +713 -0
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +42 -0
- package/dist/node_modules/@tiptap/extension-table/dist/index.js +380 -0
- package/dist/node_modules/@tiptap/extension-text/dist/index.js +14 -0
- package/dist/node_modules/@tiptap/extension-text-style/dist/index.js +240 -0
- package/dist/node_modules/@tiptap/extension-underline/dist/index.js +66 -0
- package/dist/node_modules/@tiptap/react/dist/index.js +481 -0
- package/dist/node_modules/eventemitter3/index.js +1 -1
- package/dist/node_modules/eventemitter3/index2.js +1 -1
- package/dist/node_modules/fast-equals/dist/es/index.js +324 -0
- package/dist/node_modules/linkifyjs/dist/linkify.js +707 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/baseline.js +10 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/between-horizontal-end.js +10 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/between-vertical-end.js +10 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/bold.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/grid-2x2-plus.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/grid-2x2-x.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/italic.js +10 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/link.js +9 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/list-ordered.js +13 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/table-columns-split.js +18 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/table-rows-split.js +18 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/table.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/underline.js +9 -0
- package/dist/node_modules/orderedmap/dist/index.js +103 -0
- package/dist/node_modules/prosemirror-commands/dist/index.js +388 -0
- package/dist/node_modules/prosemirror-keymap/dist/index.js +62 -0
- package/dist/node_modules/prosemirror-model/dist/index.js +2733 -0
- package/dist/node_modules/prosemirror-schema-list/dist/index.js +88 -0
- package/dist/node_modules/prosemirror-state/dist/index.js +822 -0
- package/dist/node_modules/prosemirror-tables/dist/index.js +1446 -0
- package/dist/node_modules/prosemirror-transform/dist/index.js +1520 -0
- package/dist/node_modules/prosemirror-view/dist/index.js +3772 -0
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/recharts/es6/util/Events.js +1 -1
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +1 -1
- package/dist/node_modules/use-sync-external-store/shim/index.js +1 -1
- package/dist/node_modules/w3c-keyname/index.js +93 -0
- package/dist/packages/lune-ui/dist/_virtual/index3.js +2 -5
- package/dist/packages/lune-ui/dist/_virtual/index6.js +5 -2
- package/dist/packages/lune-ui/dist/components/popover.js +15 -11
- package/dist/packages/lune-ui/dist/components/select.js +6 -6
- package/dist/packages/lune-ui/dist/form/form-date-picker.js +2 -2
- package/dist/packages/lune-ui/dist/form/form.js +4 -4
- package/dist/packages/lune-ui/dist/node_modules/@radix-ui/react-popover/dist/index.js +39 -38
- package/dist/packages/lune-ui/dist/node_modules/prop-types/index.js +1 -1
- package/dist/packages/lune-ui/dist/packages/lune-ui/node_modules/recharts/es6/util/Events.js +1 -1
- package/dist/shared/components/color-picker/color-picker.d.ts +2 -1
- package/dist/shared/components/color-picker/color-picker.js +11 -11
- package/dist/shared/components/data-table/data-table-filter.js +4 -4
- package/dist/shared/components/rich-editor/rich-editor.d.ts +6 -0
- package/dist/shared/components/rich-editor/rich-editor.js +93 -0
- package/dist/shared/components/rich-editor/toolbar/bold/rich-editor-toolbar-bold.d.ts +1 -0
- package/dist/shared/components/rich-editor/toolbar/bold/rich-editor-toolbar-bold.js +65 -0
- package/dist/shared/components/rich-editor/toolbar/color/rich-editor-toolbar-color.d.ts +1 -0
- package/dist/shared/components/rich-editor/toolbar/color/rich-editor-toolbar-color.js +65 -0
- package/dist/shared/components/rich-editor/toolbar/heading/rich-editor-toolbar-heading.d.ts +1 -0
- package/dist/shared/components/rich-editor/toolbar/heading/rich-editor-toolbar-heading.js +114 -0
- package/dist/shared/components/rich-editor/toolbar/italic/rich-editor-toolbar-italic.d.ts +1 -0
- package/dist/shared/components/rich-editor/toolbar/italic/rich-editor-toolbar-italic.js +65 -0
- package/dist/shared/components/rich-editor/toolbar/link/rich-editor-toolbar-link-form.d.ts +2 -0
- package/dist/shared/components/rich-editor/toolbar/link/rich-editor-toolbar-link-form.js +103 -0
- package/dist/shared/components/rich-editor/toolbar/link/rich-editor-toolbar-link.d.ts +1 -0
- package/dist/shared/components/rich-editor/toolbar/link/rich-editor-toolbar-link.js +63 -0
- package/dist/shared/components/rich-editor/toolbar/ol-list/rich-editor-toolbar-ul-list.d.ts +1 -0
- package/dist/shared/components/rich-editor/toolbar/ol-list/rich-editor-toolbar-ul-list.js +65 -0
- package/dist/shared/components/rich-editor/toolbar/table/rich-editor-toolbar-table.d.ts +1 -0
- package/dist/shared/components/rich-editor/toolbar/table/rich-editor-toolbar-table.js +107 -0
- package/dist/shared/components/rich-editor/toolbar/toolbar.d.ts +1 -0
- package/dist/shared/components/rich-editor/toolbar/toolbar.js +64 -0
- package/dist/shared/components/rich-editor/toolbar/ul-list/rich-editor-toolbar-ul-list.d.ts +1 -0
- package/dist/shared/components/rich-editor/toolbar/ul-list/rich-editor-toolbar-ul-list.js +65 -0
- package/dist/shared/components/rich-editor/toolbar/underline/rich-editor-toolbar-underline.d.ts +1 -0
- package/dist/shared/components/rich-editor/toolbar/underline/rich-editor-toolbar-underline.js +65 -0
- package/package.json +6 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import f from "../../../../_virtual/get.js";
|
|
2
2
|
import { isValidElement as m, Children as y } from "react";
|
|
3
|
-
import { r as c } from "../../../../_virtual/
|
|
3
|
+
import { r as c } from "../../../../_virtual/index8.js";
|
|
4
4
|
import { isNullish as d } from "./DataUtils.js";
|
|
5
5
|
import { SVGElementPropKeys as E, EventKeys as A, FilteredElementKeyMap as o } from "./types.js";
|
|
6
6
|
var s = (r) => typeof r == "string" ? r : r ? r.displayName || r.name || "Component" : "", p = null, u = null, v = (r) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as r } from "../../../_virtual/
|
|
1
|
+
import { __module as r } from "../../../_virtual/index7.js";
|
|
2
2
|
import { __require as o } from "../cjs/use-sync-external-store-shim.production.js";
|
|
3
3
|
import { __require as i } from "../cjs/use-sync-external-store-shim.development.js";
|
|
4
4
|
var e;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
var t = {
|
|
2
|
+
8: "Backspace",
|
|
3
|
+
9: "Tab",
|
|
4
|
+
10: "Enter",
|
|
5
|
+
12: "NumLock",
|
|
6
|
+
13: "Enter",
|
|
7
|
+
16: "Shift",
|
|
8
|
+
17: "Control",
|
|
9
|
+
18: "Alt",
|
|
10
|
+
20: "CapsLock",
|
|
11
|
+
27: "Escape",
|
|
12
|
+
32: " ",
|
|
13
|
+
33: "PageUp",
|
|
14
|
+
34: "PageDown",
|
|
15
|
+
35: "End",
|
|
16
|
+
36: "Home",
|
|
17
|
+
37: "ArrowLeft",
|
|
18
|
+
38: "ArrowUp",
|
|
19
|
+
39: "ArrowRight",
|
|
20
|
+
40: "ArrowDown",
|
|
21
|
+
44: "PrintScreen",
|
|
22
|
+
45: "Insert",
|
|
23
|
+
46: "Delete",
|
|
24
|
+
59: ";",
|
|
25
|
+
61: "=",
|
|
26
|
+
91: "Meta",
|
|
27
|
+
92: "Meta",
|
|
28
|
+
106: "*",
|
|
29
|
+
107: "+",
|
|
30
|
+
108: ",",
|
|
31
|
+
109: "-",
|
|
32
|
+
110: ".",
|
|
33
|
+
111: "/",
|
|
34
|
+
144: "NumLock",
|
|
35
|
+
145: "ScrollLock",
|
|
36
|
+
160: "Shift",
|
|
37
|
+
161: "Shift",
|
|
38
|
+
162: "Control",
|
|
39
|
+
163: "Control",
|
|
40
|
+
164: "Alt",
|
|
41
|
+
165: "Alt",
|
|
42
|
+
173: "-",
|
|
43
|
+
186: ";",
|
|
44
|
+
187: "=",
|
|
45
|
+
188: ",",
|
|
46
|
+
189: "-",
|
|
47
|
+
190: ".",
|
|
48
|
+
191: "/",
|
|
49
|
+
192: "`",
|
|
50
|
+
219: "[",
|
|
51
|
+
220: "\\",
|
|
52
|
+
221: "]",
|
|
53
|
+
222: "'"
|
|
54
|
+
}, a = {
|
|
55
|
+
48: ")",
|
|
56
|
+
49: "!",
|
|
57
|
+
50: "@",
|
|
58
|
+
51: "#",
|
|
59
|
+
52: "$",
|
|
60
|
+
53: "%",
|
|
61
|
+
54: "^",
|
|
62
|
+
55: "&",
|
|
63
|
+
56: "*",
|
|
64
|
+
57: "(",
|
|
65
|
+
59: ":",
|
|
66
|
+
61: "+",
|
|
67
|
+
173: "_",
|
|
68
|
+
186: ":",
|
|
69
|
+
187: "+",
|
|
70
|
+
188: "<",
|
|
71
|
+
189: "_",
|
|
72
|
+
190: ">",
|
|
73
|
+
191: "?",
|
|
74
|
+
192: "~",
|
|
75
|
+
219: "{",
|
|
76
|
+
220: "|",
|
|
77
|
+
221: "}",
|
|
78
|
+
222: '"'
|
|
79
|
+
}, n = typeof navigator < "u" && /Mac/.test(navigator.platform), y = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
80
|
+
for (var r = 0; r < 10; r++) t[48 + r] = t[96 + r] = String(r);
|
|
81
|
+
for (var r = 1; r <= 24; r++) t[r + 111] = "F" + r;
|
|
82
|
+
for (var r = 65; r <= 90; r++)
|
|
83
|
+
t[r] = String.fromCharCode(r + 32), a[r] = String.fromCharCode(r);
|
|
84
|
+
for (var i in t) a.hasOwnProperty(i) || (a[i] = t[i]);
|
|
85
|
+
function g(o) {
|
|
86
|
+
var f = n && o.metaKey && o.shiftKey && !o.ctrlKey && !o.altKey || y && o.shiftKey && o.key && o.key.length == 1 || o.key == "Unidentified", e = !f && o.key || (o.shiftKey ? a : t)[o.keyCode] || o.key || "Unidentified";
|
|
87
|
+
return e == "Esc" && (e = "Escape"), e == "Del" && (e = "Delete"), e == "Left" && (e = "ArrowLeft"), e == "Up" && (e = "ArrowUp"), e == "Right" && (e = "ArrowRight"), e == "Down" && (e = "ArrowDown"), e;
|
|
88
|
+
}
|
|
89
|
+
export {
|
|
90
|
+
t as base,
|
|
91
|
+
g as keyName,
|
|
92
|
+
a as shift
|
|
93
|
+
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { __require as o } from "../node_modules/eventemitter3/index2.js";
|
|
3
|
-
var t = o();
|
|
4
|
-
const m = /* @__PURE__ */ r(t);
|
|
1
|
+
var e = { exports: {} };
|
|
5
2
|
export {
|
|
6
|
-
|
|
3
|
+
e as __module
|
|
7
4
|
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as o } from "../node_modules/eventemitter3/index2.js";
|
|
3
|
+
var t = o();
|
|
4
|
+
const m = /* @__PURE__ */ r(t);
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
m as default
|
|
4
7
|
};
|
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import {
|
|
4
|
-
import { cn as
|
|
5
|
-
function c({ ...o }) {
|
|
6
|
-
return /* @__PURE__ */ t(n, { "data-slot": "popover", ...o });
|
|
7
|
-
}
|
|
3
|
+
import { Close as n, Root as s, Trigger as i, Portal as d, Content as p } from "../node_modules/@radix-ui/react-popover/dist/index.js";
|
|
4
|
+
import { cn as l } from "../lib/utils.js";
|
|
8
5
|
function u({ ...o }) {
|
|
6
|
+
return /* @__PURE__ */ t(s, { "data-slot": "popover", ...o });
|
|
7
|
+
}
|
|
8
|
+
function v({ ...o }) {
|
|
9
9
|
return /* @__PURE__ */ t(i, { "data-slot": "popover-trigger", ...o });
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function h({ ...o }) {
|
|
12
|
+
return /* @__PURE__ */ t(n, { "data-slot": "popover-close", ...o });
|
|
13
|
+
}
|
|
14
|
+
function P({
|
|
12
15
|
className: o,
|
|
13
16
|
align: e = "center",
|
|
14
17
|
sideOffset: a = 4,
|
|
15
18
|
...r
|
|
16
19
|
}) {
|
|
17
20
|
return /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(
|
|
18
|
-
|
|
21
|
+
p,
|
|
19
22
|
{
|
|
20
23
|
"data-slot": "popover-content",
|
|
21
24
|
align: e,
|
|
22
25
|
sideOffset: a,
|
|
23
|
-
className:
|
|
26
|
+
className: l(
|
|
24
27
|
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
25
28
|
o
|
|
26
29
|
),
|
|
@@ -29,7 +32,8 @@ function v({
|
|
|
29
32
|
) });
|
|
30
33
|
}
|
|
31
34
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
u as Popover,
|
|
36
|
+
h as PopoverClose,
|
|
37
|
+
P as PopoverContent,
|
|
38
|
+
v as PopoverTrigger
|
|
35
39
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { Root as i, Trigger as d, Icon as c, Value as u, Portal as m, Content as p, Viewport as f,
|
|
3
|
+
import { Root as i, Trigger as d, Icon as c, Value as u, Portal as m, Content as p, Viewport as f, Group as g, Label as h, Item as v, ItemIndicator as x, ItemText as b, ScrollUpButton as w, ScrollDownButton as N } from "../node_modules/@radix-ui/react-select/dist/index.js";
|
|
4
4
|
import { cn as o } from "../lib/utils.js";
|
|
5
5
|
import n from "../../../../node_modules/lucide-react/dist/esm/icons/chevron-down.js";
|
|
6
6
|
import y from "../../../../node_modules/lucide-react/dist/esm/icons/check.js";
|
|
@@ -9,7 +9,7 @@ function V({ ...t }) {
|
|
|
9
9
|
return /* @__PURE__ */ e(i, { "data-slot": "select", ...t });
|
|
10
10
|
}
|
|
11
11
|
function D({ ...t }) {
|
|
12
|
-
return /* @__PURE__ */ e(
|
|
12
|
+
return /* @__PURE__ */ e(g, { "data-slot": "select-group", ...t });
|
|
13
13
|
}
|
|
14
14
|
function G({ ...t }) {
|
|
15
15
|
return /* @__PURE__ */ e(u, { "data-slot": "select-value", ...t });
|
|
@@ -73,7 +73,7 @@ function P({
|
|
|
73
73
|
}
|
|
74
74
|
function R({ className: t, ...a }) {
|
|
75
75
|
return /* @__PURE__ */ e(
|
|
76
|
-
|
|
76
|
+
h,
|
|
77
77
|
{
|
|
78
78
|
"data-slot": "select-label",
|
|
79
79
|
className: o("text-muted-foreground px-2 py-1.5 text-xs", t),
|
|
@@ -87,7 +87,7 @@ function q({
|
|
|
87
87
|
...s
|
|
88
88
|
}) {
|
|
89
89
|
return /* @__PURE__ */ l(
|
|
90
|
-
|
|
90
|
+
v,
|
|
91
91
|
{
|
|
92
92
|
"data-slot": "select-item",
|
|
93
93
|
className: o(
|
|
@@ -96,8 +96,8 @@ function q({
|
|
|
96
96
|
),
|
|
97
97
|
...s,
|
|
98
98
|
children: [
|
|
99
|
-
/* @__PURE__ */ e("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(
|
|
100
|
-
/* @__PURE__ */ e(
|
|
99
|
+
/* @__PURE__ */ e("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(y, { className: "size-4" }) }) }),
|
|
100
|
+
/* @__PURE__ */ e(b, { children: a })
|
|
101
101
|
]
|
|
102
102
|
}
|
|
103
103
|
);
|
|
@@ -12,7 +12,7 @@ import "../node_modules/sonner/dist/index.js";
|
|
|
12
12
|
import "../components/toggle-group.js";
|
|
13
13
|
import { FormField as v, FormItem as N, FormLabel as g, FormControl as w, FormDescription as x, FormMessage as F } from "./form.js";
|
|
14
14
|
import P from "../node_modules/date-fns/format.js";
|
|
15
|
-
import
|
|
15
|
+
import C from "../../../../node_modules/lucide-react/dist/esm/icons/calendar.js";
|
|
16
16
|
const q = ({
|
|
17
17
|
name: s,
|
|
18
18
|
label: o,
|
|
@@ -39,7 +39,7 @@ const q = ({
|
|
|
39
39
|
),
|
|
40
40
|
children: [
|
|
41
41
|
a.value ? P(a.value, "PPP") : /* @__PURE__ */ e("span", { children: i }),
|
|
42
|
-
/* @__PURE__ */ e(
|
|
42
|
+
/* @__PURE__ */ e(C, { size: 16, className: "ml-auto opacity-50" })
|
|
43
43
|
]
|
|
44
44
|
}
|
|
45
45
|
) }) }),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import * as a from "react";
|
|
3
3
|
import { Root as f } from "../packages/lune-ui/node_modules/@radix-ui/react-slot/dist/index.js";
|
|
4
|
-
import {
|
|
4
|
+
import { Controller as u, useFormContext as F, useFormState as p, FormProvider as I } from "../../../../node_modules/react-hook-form/dist/index.esm.js";
|
|
5
5
|
import { Label as g } from "../components/label.js";
|
|
6
6
|
import { cn as i } from "../lib/utils.js";
|
|
7
|
-
const C =
|
|
7
|
+
const C = I, c = a.createContext({}), b = ({
|
|
8
8
|
...r
|
|
9
|
-
}) => /* @__PURE__ */ s(c.Provider, { value: { name: r.name }, children: /* @__PURE__ */ s(
|
|
10
|
-
const r = a.useContext(c), e = a.useContext(l), { getFieldState: o } =
|
|
9
|
+
}) => /* @__PURE__ */ s(c.Provider, { value: { name: r.name }, children: /* @__PURE__ */ s(u, { ...r }) }), d = () => {
|
|
10
|
+
const r = a.useContext(c), e = a.useContext(l), { getFieldState: o } = F(), t = p({ name: r.name }), m = o(r.name, t);
|
|
11
11
|
if (!r)
|
|
12
12
|
throw new Error("useFormField should be used within <FormField>");
|
|
13
13
|
const { id: n } = e;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import * as i from "react";
|
|
2
2
|
import { composeEventHandlers as m } from "../../primitive/dist/index.js";
|
|
3
3
|
import { useComposedRefs as R } from "../../react-compose-refs/dist/index.js";
|
|
4
|
-
import { createContextScope as
|
|
5
|
-
import { DismissableLayer as
|
|
6
|
-
import { useFocusGuards as
|
|
7
|
-
import { FocusScope as
|
|
4
|
+
import { createContextScope as K } from "../../react-context/dist/index.js";
|
|
5
|
+
import { DismissableLayer as L } from "../../react-dismissable-layer/dist/index.js";
|
|
6
|
+
import { useFocusGuards as j } from "../../react-focus-guards/dist/index.js";
|
|
7
|
+
import { FocusScope as G } from "../../react-focus-scope/dist/index.js";
|
|
8
8
|
import { useId as B } from "../../react-id/dist/index.js";
|
|
9
|
-
import { createPopperScope as _, Anchor as A, Content as
|
|
10
|
-
import { Portal as
|
|
9
|
+
import { createPopperScope as _, Anchor as A, Content as H, Arrow as U, Root as X } from "../../react-popper/dist/index.js";
|
|
10
|
+
import { Portal as Y } from "../../react-portal/dist/index.js";
|
|
11
11
|
import { Presence as b } from "../../react-presence/dist/index.js";
|
|
12
12
|
import { Primitive as F } from "../../react-primitive/dist/index.js";
|
|
13
|
-
import { createSlot as
|
|
14
|
-
import { useControllableState as
|
|
15
|
-
import { hideOthers as
|
|
16
|
-
import
|
|
13
|
+
import { createSlot as Z } from "../../react-slot/dist/index.js";
|
|
14
|
+
import { useControllableState as q } from "../../react-use-controllable-state/dist/index.js";
|
|
15
|
+
import { hideOthers as z } from "../../../aria-hidden/dist/es2015/index.js";
|
|
16
|
+
import J from "../../../react-remove-scroll/dist/es2015/Combination.js";
|
|
17
17
|
import { jsx as p } from "react/jsx-runtime";
|
|
18
|
-
var C = "Popover", [y] =
|
|
18
|
+
var C = "Popover", [y] = K(C, [
|
|
19
19
|
_
|
|
20
|
-
]), h = _(), [
|
|
20
|
+
]), h = _(), [Q, c] = y(C), D = (e) => {
|
|
21
21
|
const {
|
|
22
22
|
__scopePopover: n,
|
|
23
23
|
children: t,
|
|
@@ -25,14 +25,14 @@ var C = "Popover", [y] = M(C, [
|
|
|
25
25
|
defaultOpen: o,
|
|
26
26
|
onOpenChange: r,
|
|
27
27
|
modal: s = !1
|
|
28
|
-
} = e, u = h(n), f = i.useRef(null), [v, P] = i.useState(!1), [g, l] =
|
|
28
|
+
} = e, u = h(n), f = i.useRef(null), [v, P] = i.useState(!1), [g, l] = q({
|
|
29
29
|
prop: a,
|
|
30
30
|
defaultProp: o ?? !1,
|
|
31
31
|
onChange: r,
|
|
32
32
|
caller: C
|
|
33
33
|
});
|
|
34
|
-
return /* @__PURE__ */ p(
|
|
35
|
-
|
|
34
|
+
return /* @__PURE__ */ p(X, { ...u, children: /* @__PURE__ */ p(
|
|
35
|
+
Q,
|
|
36
36
|
{
|
|
37
37
|
scope: n,
|
|
38
38
|
contentId: B(),
|
|
@@ -49,13 +49,13 @@ var C = "Popover", [y] = M(C, [
|
|
|
49
49
|
) });
|
|
50
50
|
};
|
|
51
51
|
D.displayName = C;
|
|
52
|
-
var x = "PopoverAnchor",
|
|
52
|
+
var x = "PopoverAnchor", V = i.forwardRef(
|
|
53
53
|
(e, n) => {
|
|
54
54
|
const { __scopePopover: t, ...a } = e, o = c(x, t), r = h(t), { onCustomAnchorAdd: s, onCustomAnchorRemove: u } = o;
|
|
55
55
|
return i.useEffect(() => (s(), () => u()), [s, u]), /* @__PURE__ */ p(A, { ...r, ...a, ref: n });
|
|
56
56
|
}
|
|
57
57
|
);
|
|
58
|
-
|
|
58
|
+
V.displayName = x;
|
|
59
59
|
var E = "PopoverTrigger", $ = i.forwardRef(
|
|
60
60
|
(e, n) => {
|
|
61
61
|
const { __scopePopover: t, ...a } = e, o = c(E, t), r = h(t), s = R(n, o.triggerRef), u = /* @__PURE__ */ p(
|
|
@@ -65,7 +65,7 @@ var E = "PopoverTrigger", $ = i.forwardRef(
|
|
|
65
65
|
"aria-haspopup": "dialog",
|
|
66
66
|
"aria-expanded": o.open,
|
|
67
67
|
"aria-controls": o.contentId,
|
|
68
|
-
"data-state":
|
|
68
|
+
"data-state": M(o.open),
|
|
69
69
|
...a,
|
|
70
70
|
ref: s,
|
|
71
71
|
onClick: m(e.onClick, o.onOpenToggle)
|
|
@@ -75,27 +75,27 @@ var E = "PopoverTrigger", $ = i.forwardRef(
|
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
77
|
$.displayName = E;
|
|
78
|
-
var O = "PopoverPortal", [
|
|
78
|
+
var O = "PopoverPortal", [W, ee] = y(O, {
|
|
79
79
|
forceMount: void 0
|
|
80
80
|
}), k = (e) => {
|
|
81
81
|
const { __scopePopover: n, forceMount: t, children: a, container: o } = e, r = c(O, n);
|
|
82
|
-
return /* @__PURE__ */ p(
|
|
82
|
+
return /* @__PURE__ */ p(W, { scope: n, forceMount: t, children: /* @__PURE__ */ p(b, { present: t || r.open, children: /* @__PURE__ */ p(Y, { asChild: !0, container: o, children: a }) }) });
|
|
83
83
|
};
|
|
84
84
|
k.displayName = O;
|
|
85
85
|
var d = "PopoverContent", I = i.forwardRef(
|
|
86
86
|
(e, n) => {
|
|
87
|
-
const t =
|
|
88
|
-
return /* @__PURE__ */ p(b, { present: a || r.open, children: r.modal ? /* @__PURE__ */ p(
|
|
87
|
+
const t = ee(d, e.__scopePopover), { forceMount: a = t.forceMount, ...o } = e, r = c(d, e.__scopePopover);
|
|
88
|
+
return /* @__PURE__ */ p(b, { present: a || r.open, children: r.modal ? /* @__PURE__ */ p(re, { ...o, ref: n }) : /* @__PURE__ */ p(te, { ...o, ref: n }) });
|
|
89
89
|
}
|
|
90
90
|
);
|
|
91
91
|
I.displayName = d;
|
|
92
|
-
var
|
|
92
|
+
var oe = Z("PopoverContent.RemoveScroll"), re = i.forwardRef(
|
|
93
93
|
(e, n) => {
|
|
94
94
|
const t = c(d, e.__scopePopover), a = i.useRef(null), o = R(n, a), r = i.useRef(!1);
|
|
95
95
|
return i.useEffect(() => {
|
|
96
96
|
const s = a.current;
|
|
97
|
-
if (s) return
|
|
98
|
-
}, []), /* @__PURE__ */ p(
|
|
97
|
+
if (s) return z(s);
|
|
98
|
+
}, []), /* @__PURE__ */ p(J, { as: oe, allowPinchZoom: !0, children: /* @__PURE__ */ p(
|
|
99
99
|
N,
|
|
100
100
|
{
|
|
101
101
|
...e,
|
|
@@ -121,7 +121,7 @@ var ee = X("PopoverContent.RemoveScroll"), oe = i.forwardRef(
|
|
|
121
121
|
}
|
|
122
122
|
) });
|
|
123
123
|
}
|
|
124
|
-
),
|
|
124
|
+
), te = i.forwardRef(
|
|
125
125
|
(e, n) => {
|
|
126
126
|
const t = c(d, e.__scopePopover), a = i.useRef(!1), o = i.useRef(!1);
|
|
127
127
|
return /* @__PURE__ */ p(
|
|
@@ -156,8 +156,8 @@ var ee = X("PopoverContent.RemoveScroll"), oe = i.forwardRef(
|
|
|
156
156
|
onInteractOutside: P,
|
|
157
157
|
...g
|
|
158
158
|
} = e, l = c(d, t), w = h(t);
|
|
159
|
-
return
|
|
160
|
-
|
|
159
|
+
return j(), /* @__PURE__ */ p(
|
|
160
|
+
G,
|
|
161
161
|
{
|
|
162
162
|
asChild: !0,
|
|
163
163
|
loop: !0,
|
|
@@ -165,7 +165,7 @@ var ee = X("PopoverContent.RemoveScroll"), oe = i.forwardRef(
|
|
|
165
165
|
onMountAutoFocus: o,
|
|
166
166
|
onUnmountAutoFocus: r,
|
|
167
167
|
children: /* @__PURE__ */ p(
|
|
168
|
-
|
|
168
|
+
L,
|
|
169
169
|
{
|
|
170
170
|
asChild: !0,
|
|
171
171
|
disableOutsidePointerEvents: s,
|
|
@@ -175,9 +175,9 @@ var ee = X("PopoverContent.RemoveScroll"), oe = i.forwardRef(
|
|
|
175
175
|
onFocusOutside: v,
|
|
176
176
|
onDismiss: () => l.onOpenChange(!1),
|
|
177
177
|
children: /* @__PURE__ */ p(
|
|
178
|
-
|
|
178
|
+
H,
|
|
179
179
|
{
|
|
180
|
-
"data-state":
|
|
180
|
+
"data-state": M(l.open),
|
|
181
181
|
role: "dialog",
|
|
182
182
|
id: l.contentId,
|
|
183
183
|
...w,
|
|
@@ -198,7 +198,7 @@ var ee = X("PopoverContent.RemoveScroll"), oe = i.forwardRef(
|
|
|
198
198
|
}
|
|
199
199
|
);
|
|
200
200
|
}
|
|
201
|
-
), S = "PopoverClose",
|
|
201
|
+
), S = "PopoverClose", T = i.forwardRef(
|
|
202
202
|
(e, n) => {
|
|
203
203
|
const { __scopePopover: t, ...a } = e, o = c(S, t);
|
|
204
204
|
return /* @__PURE__ */ p(
|
|
@@ -212,24 +212,25 @@ var ee = X("PopoverContent.RemoveScroll"), oe = i.forwardRef(
|
|
|
212
212
|
);
|
|
213
213
|
}
|
|
214
214
|
);
|
|
215
|
-
|
|
215
|
+
T.displayName = S;
|
|
216
216
|
var ne = "PopoverArrow", ae = i.forwardRef(
|
|
217
217
|
(e, n) => {
|
|
218
218
|
const { __scopePopover: t, ...a } = e, o = h(t);
|
|
219
|
-
return /* @__PURE__ */ p(
|
|
219
|
+
return /* @__PURE__ */ p(U, { ...o, ...a, ref: n });
|
|
220
220
|
}
|
|
221
221
|
);
|
|
222
222
|
ae.displayName = ne;
|
|
223
|
-
function
|
|
223
|
+
function M(e) {
|
|
224
224
|
return e ? "open" : "closed";
|
|
225
225
|
}
|
|
226
|
-
var Re = D, _e = $, Ae = k, be = I;
|
|
226
|
+
var Re = D, _e = $, Ae = k, be = I, Fe = T;
|
|
227
227
|
export {
|
|
228
|
+
Fe as Close,
|
|
228
229
|
be as Content,
|
|
229
230
|
D as Popover,
|
|
230
|
-
|
|
231
|
+
V as PopoverAnchor,
|
|
231
232
|
ae as PopoverArrow,
|
|
232
|
-
|
|
233
|
+
T as PopoverClose,
|
|
233
234
|
I as PopoverContent,
|
|
234
235
|
k as PopoverPortal,
|
|
235
236
|
$ as PopoverTrigger,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as r } from "../../_virtual/
|
|
1
|
+
import { __module as r } from "../../_virtual/index3.js";
|
|
2
2
|
import { __require as i } from "./node_modules/react-is/index.js";
|
|
3
3
|
import { __require as p } from "./factoryWithTypeCheckers.js";
|
|
4
4
|
import { __require as s } from "./factoryWithThrowingShims.js";
|
package/dist/packages/lune-ui/dist/packages/lune-ui/node_modules/recharts/es6/util/Events.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import i from "../../../../../../_virtual/
|
|
1
|
+
import i from "../../../../../../_virtual/index6.js";
|
|
2
2
|
new i();
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
export declare const ColorPicker: ({ children, onChange }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const ColorPicker: ({ children, onChange, onOpenChange }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
type Props = {
|
|
4
4
|
onChange: (hex: string) => void;
|
|
5
|
+
onOpenChange?: (open: boolean) => void;
|
|
5
6
|
children: ReactElement;
|
|
6
7
|
};
|
|
7
8
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as l } from "react";
|
|
3
3
|
import "../../../packages/lune-ui/dist/node_modules/@radix-ui/react-accordion/dist/index.js";
|
|
4
4
|
import "../../../packages/lune-ui/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js";
|
|
5
5
|
import "../../../packages/lune-ui/dist/node_modules/@radix-ui/react-avatar/dist/index.js";
|
|
@@ -16,10 +16,10 @@ import "../../../packages/lune-ui/dist/node_modules/@radix-ui/react-collapsible/
|
|
|
16
16
|
import "../../../packages/lune-ui/dist/node_modules/cmdk/dist/index.js";
|
|
17
17
|
import "../../../packages/lune-ui/dist/components/dialog.js";
|
|
18
18
|
import "../../../packages/lune-ui/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js";
|
|
19
|
-
import { Input as
|
|
19
|
+
import { Input as c } from "../../../packages/lune-ui/dist/components/input.js";
|
|
20
20
|
import "../../../packages/lune-ui/dist/node_modules/@radix-ui/react-label/dist/index.js";
|
|
21
21
|
import "../../../packages/lune-ui/dist/components/phone-input.js";
|
|
22
|
-
import { Popover as
|
|
22
|
+
import { Popover as n, PopoverTrigger as h, PopoverContent as d } from "../../../packages/lune-ui/dist/components/popover.js";
|
|
23
23
|
import "../../../packages/lune-ui/dist/node_modules/@radix-ui/react-radio-group/dist/index.js";
|
|
24
24
|
import "../../../packages/lune-ui/dist/node_modules/@radix-ui/react-select/dist/index.js";
|
|
25
25
|
import "../../../packages/lune-ui/dist/node_modules/@radix-ui/react-dialog/dist/index.js";
|
|
@@ -33,11 +33,11 @@ import "../../../packages/lune-ui/dist/node_modules/@radix-ui/react-tooltip/dist
|
|
|
33
33
|
import "../../../packages/lune-ui/dist/form/form.js";
|
|
34
34
|
import { hsvaToHex as i } from "../../../node_modules/@uiw/color-convert/esm/index.js";
|
|
35
35
|
import v from "../../../node_modules/@uiw/react-color-colorful/esm/index.js";
|
|
36
|
-
const
|
|
37
|
-
const [o,
|
|
38
|
-
return /* @__PURE__ */ t(
|
|
39
|
-
/* @__PURE__ */ r(
|
|
40
|
-
/* @__PURE__ */ r(
|
|
36
|
+
const Y = ({ children: p, onChange: e, onOpenChange: s }) => {
|
|
37
|
+
const [o, a] = l({ h: 0, s: 0, v: 68, a: 1 });
|
|
38
|
+
return /* @__PURE__ */ t(n, { onOpenChange: s, children: [
|
|
39
|
+
/* @__PURE__ */ r(h, { asChild: !0, children: p }),
|
|
40
|
+
/* @__PURE__ */ r(d, { className: "w-fit", children: /* @__PURE__ */ t("div", { className: "flex flex-col gap-4", children: [
|
|
41
41
|
/* @__PURE__ */ r(
|
|
42
42
|
v,
|
|
43
43
|
{
|
|
@@ -45,7 +45,7 @@ const X = ({ children: p, onChange: e }) => {
|
|
|
45
45
|
disableAlpha: !0,
|
|
46
46
|
color: o,
|
|
47
47
|
onChange: (m) => {
|
|
48
|
-
|
|
48
|
+
a(m.hsva), e(i(m.hsva));
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
),
|
|
@@ -57,11 +57,11 @@ const X = ({ children: p, onChange: e }) => {
|
|
|
57
57
|
style: { backgroundColor: i(o) }
|
|
58
58
|
}
|
|
59
59
|
),
|
|
60
|
-
/* @__PURE__ */ r(
|
|
60
|
+
/* @__PURE__ */ r(c, { value: i(o), className: "" })
|
|
61
61
|
] })
|
|
62
62
|
] }) })
|
|
63
63
|
] });
|
|
64
64
|
};
|
|
65
65
|
export {
|
|
66
|
-
|
|
66
|
+
Y as ColorPicker
|
|
67
67
|
};
|
|
@@ -16,7 +16,7 @@ import "../../../packages/lune-ui/dist/node_modules/react-day-picker/dist/esm/lo
|
|
|
16
16
|
import "../../../packages/lune-ui/dist/components/chart.js";
|
|
17
17
|
import "../../../packages/lune-ui/dist/node_modules/@radix-ui/react-checkbox/dist/index.js";
|
|
18
18
|
import "../../../packages/lune-ui/dist/node_modules/@radix-ui/react-collapsible/dist/index.js";
|
|
19
|
-
import { Command as
|
|
19
|
+
import { Command as C, CommandInput as g, CommandList as x, CommandEmpty as S, CommandGroup as l, CommandItem as p, CommandSeparator as y } from "../../../packages/lune-ui/dist/components/command.js";
|
|
20
20
|
import "../../../packages/lune-ui/dist/components/dialog.js";
|
|
21
21
|
import "../../../packages/lune-ui/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js";
|
|
22
22
|
import "../../../packages/lune-ui/dist/node_modules/@radix-ui/react-label/dist/index.js";
|
|
@@ -59,9 +59,9 @@ const pe = ({ filter: o, table: d }) => {
|
|
|
59
59
|
)) })
|
|
60
60
|
] })
|
|
61
61
|
] }) }),
|
|
62
|
-
/* @__PURE__ */ e(z, { className: "w-[200px] p-0", align: "start", children: /* @__PURE__ */ a(
|
|
63
|
-
/* @__PURE__ */ e(
|
|
64
|
-
/* @__PURE__ */ a(
|
|
62
|
+
/* @__PURE__ */ e(z, { className: "w-[200px] p-0", align: "start", children: /* @__PURE__ */ a(C, { children: [
|
|
63
|
+
/* @__PURE__ */ e(g, { placeholder: "Search..." }),
|
|
64
|
+
/* @__PURE__ */ a(x, { children: [
|
|
65
65
|
/* @__PURE__ */ e(S, { children: "No results found." }),
|
|
66
66
|
/* @__PURE__ */ e(l, { children: o.options.map((r) => {
|
|
67
67
|
const m = t.has(r.value);
|