@lunejs/admin-ui 0.1.5 → 0.2.1

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.
Files changed (115) hide show
  1. package/dist/_virtual/index10.js +5 -2
  2. package/dist/_virtual/index11.js +4 -0
  3. package/dist/_virtual/index6.js +3 -3
  4. package/dist/_virtual/index8.js +3 -5
  5. package/dist/lib/api/codegen/graphql.d.ts +1 -0
  6. package/dist/lib/api/codegen/graphql.js +8 -8
  7. package/dist/lib/collections/components/collection-details/cards/general-card.js +20 -14
  8. package/dist/lib/custom-fields/components/details/is-list/custom-field-is-list.js +6 -4
  9. package/dist/lib/custom-fields/components/details/use-form/form-schema.d.ts +1 -0
  10. package/dist/lib/custom-fields/components/details/use-form/form-schema.js +4 -3
  11. package/dist/lib/custom-fields/components/fields/color.js +3 -3
  12. package/dist/lib/custom-fields/components/fields/custom-field.js +44 -36
  13. package/dist/lib/custom-fields/components/fields/rich-text.d.ts +8 -0
  14. package/dist/lib/custom-fields/components/fields/rich-text.js +17 -0
  15. package/dist/lib/custom-fields/components/fields/shared/primitive.d.ts +2 -1
  16. package/dist/lib/custom-fields/components/fields/shared/primitive.js +67 -61
  17. package/dist/lib/custom-fields/utils/custom-field.utils.js +63 -51
  18. package/dist/lib/dashboard/pages/dashboard-page.js +5 -5
  19. package/dist/lib/product/components/product-details/cards/general-product-card.js +18 -12
  20. package/dist/lib/translate/components/form/translate-form-row-data.d.ts +2 -1
  21. package/dist/lib/translate/components/form/translate-form-row-data.js +51 -19
  22. package/dist/lib/translate/components/form/translate-rich-text.d.ts +8 -0
  23. package/dist/lib/translate/components/form/translate-rich-text.js +65 -0
  24. package/dist/lib/translate/components/product-form/custom-fields/translate-product-custom-fields.js +95 -63
  25. package/dist/lib/translate/components/product-form/translate-product-form.js +19 -18
  26. package/dist/node_modules/@tiptap/core/dist/index.js +3566 -0
  27. package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +17 -0
  28. package/dist/node_modules/@tiptap/extension-bold/dist/index.js +80 -0
  29. package/dist/node_modules/@tiptap/extension-document/dist/index.js +13 -0
  30. package/dist/node_modules/@tiptap/extension-heading/dist/index.js +64 -0
  31. package/dist/node_modules/@tiptap/extension-italic/dist/index.js +78 -0
  32. package/dist/node_modules/@tiptap/extension-link/dist/index.js +305 -0
  33. package/dist/node_modules/@tiptap/extension-list/dist/index.js +713 -0
  34. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +42 -0
  35. package/dist/node_modules/@tiptap/extension-table/dist/index.js +380 -0
  36. package/dist/node_modules/@tiptap/extension-text/dist/index.js +14 -0
  37. package/dist/node_modules/@tiptap/extension-text-style/dist/index.js +240 -0
  38. package/dist/node_modules/@tiptap/extension-underline/dist/index.js +66 -0
  39. package/dist/node_modules/@tiptap/extensions/dist/index.js +288 -0
  40. package/dist/node_modules/@tiptap/react/dist/index.js +482 -0
  41. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +1 -1
  42. package/dist/node_modules/es-toolkit/dist/object/cloneDeep.js +1 -1
  43. package/dist/node_modules/eventemitter3/index.js +1 -1
  44. package/dist/node_modules/eventemitter3/index2.js +1 -1
  45. package/dist/node_modules/fast-equals/dist/es/index.js +324 -0
  46. package/dist/node_modules/linkifyjs/dist/linkify.js +707 -0
  47. package/dist/node_modules/lucide-react/dist/esm/icons/baseline.js +10 -0
  48. package/dist/node_modules/lucide-react/dist/esm/icons/between-horizontal-end.js +10 -0
  49. package/dist/node_modules/lucide-react/dist/esm/icons/between-vertical-end.js +10 -0
  50. package/dist/node_modules/lucide-react/dist/esm/icons/bold.js +11 -0
  51. package/dist/node_modules/lucide-react/dist/esm/icons/grid-2x2-plus.js +16 -0
  52. package/dist/node_modules/lucide-react/dist/esm/icons/grid-2x2-x.js +16 -0
  53. package/dist/node_modules/lucide-react/dist/esm/icons/italic.js +10 -0
  54. package/dist/node_modules/lucide-react/dist/esm/icons/layout-list.js +13 -0
  55. package/dist/node_modules/lucide-react/dist/esm/icons/link.js +9 -0
  56. package/dist/node_modules/lucide-react/dist/esm/icons/list-ordered.js +13 -0
  57. package/dist/node_modules/lucide-react/dist/esm/icons/table-columns-split.js +18 -0
  58. package/dist/node_modules/lucide-react/dist/esm/icons/table-rows-split.js +18 -0
  59. package/dist/node_modules/lucide-react/dist/esm/icons/table.js +11 -0
  60. package/dist/node_modules/lucide-react/dist/esm/icons/underline.js +9 -0
  61. package/dist/node_modules/orderedmap/dist/index.js +103 -0
  62. package/dist/node_modules/prosemirror-commands/dist/index.js +388 -0
  63. package/dist/node_modules/prosemirror-dropcursor/dist/index.js +86 -0
  64. package/dist/node_modules/prosemirror-gapcursor/dist/index.js +204 -0
  65. package/dist/node_modules/prosemirror-history/dist/index.js +248 -0
  66. package/dist/node_modules/prosemirror-keymap/dist/index.js +62 -0
  67. package/dist/node_modules/prosemirror-model/dist/index.js +2733 -0
  68. package/dist/node_modules/prosemirror-schema-list/dist/index.js +88 -0
  69. package/dist/node_modules/prosemirror-state/dist/index.js +822 -0
  70. package/dist/node_modules/prosemirror-tables/dist/index.js +1446 -0
  71. package/dist/node_modules/prosemirror-transform/dist/index.js +1520 -0
  72. package/dist/node_modules/prosemirror-view/dist/index.js +3772 -0
  73. package/dist/node_modules/react-is/index.js +1 -1
  74. package/dist/node_modules/recharts/es6/util/Events.js +1 -1
  75. package/dist/node_modules/recharts/es6/util/ReactUtils.js +1 -1
  76. package/dist/node_modules/rope-sequence/dist/index.js +100 -0
  77. package/dist/node_modules/use-sync-external-store/shim/index.js +1 -1
  78. package/dist/node_modules/w3c-keyname/index.js +93 -0
  79. package/dist/packages/lune-ui/dist/_virtual/index3.js +2 -5
  80. package/dist/packages/lune-ui/dist/_virtual/index6.js +5 -2
  81. package/dist/packages/lune-ui/dist/components/popover.js +15 -11
  82. package/dist/packages/lune-ui/dist/components/select.js +6 -6
  83. package/dist/packages/lune-ui/dist/form/form-date-picker.js +2 -2
  84. package/dist/packages/lune-ui/dist/form/form.js +4 -4
  85. package/dist/packages/lune-ui/dist/node_modules/@radix-ui/react-popover/dist/index.js +39 -38
  86. package/dist/packages/lune-ui/dist/node_modules/prop-types/index.js +1 -1
  87. package/dist/packages/lune-ui/dist/packages/lune-ui/node_modules/recharts/es6/util/Events.js +1 -1
  88. package/dist/shared/components/color-picker/color-picker.d.ts +2 -1
  89. package/dist/shared/components/color-picker/color-picker.js +11 -11
  90. package/dist/shared/components/data-table/data-table-filter.js +4 -4
  91. package/dist/shared/components/rich-editor/rich-editor.d.ts +8 -0
  92. package/dist/shared/components/rich-editor/rich-editor.js +97 -0
  93. package/dist/shared/components/rich-editor/toolbar/bold/rich-editor-toolbar-bold.d.ts +1 -0
  94. package/dist/shared/components/rich-editor/toolbar/bold/rich-editor-toolbar-bold.js +66 -0
  95. package/dist/shared/components/rich-editor/toolbar/color/rich-editor-toolbar-color.d.ts +1 -0
  96. package/dist/shared/components/rich-editor/toolbar/color/rich-editor-toolbar-color.js +66 -0
  97. package/dist/shared/components/rich-editor/toolbar/heading/rich-editor-toolbar-heading.d.ts +1 -0
  98. package/dist/shared/components/rich-editor/toolbar/heading/rich-editor-toolbar-heading.js +115 -0
  99. package/dist/shared/components/rich-editor/toolbar/italic/rich-editor-toolbar-italic.d.ts +1 -0
  100. package/dist/shared/components/rich-editor/toolbar/italic/rich-editor-toolbar-italic.js +66 -0
  101. package/dist/shared/components/rich-editor/toolbar/link/rich-editor-toolbar-link-form.d.ts +2 -0
  102. package/dist/shared/components/rich-editor/toolbar/link/rich-editor-toolbar-link-form.js +103 -0
  103. package/dist/shared/components/rich-editor/toolbar/link/rich-editor-toolbar-link.d.ts +1 -0
  104. package/dist/shared/components/rich-editor/toolbar/link/rich-editor-toolbar-link.js +64 -0
  105. package/dist/shared/components/rich-editor/toolbar/ol-list/rich-editor-toolbar-ul-list.d.ts +1 -0
  106. package/dist/shared/components/rich-editor/toolbar/ol-list/rich-editor-toolbar-ul-list.js +66 -0
  107. package/dist/shared/components/rich-editor/toolbar/table/rich-editor-toolbar-table.d.ts +1 -0
  108. package/dist/shared/components/rich-editor/toolbar/table/rich-editor-toolbar-table.js +108 -0
  109. package/dist/shared/components/rich-editor/toolbar/toolbar.d.ts +1 -0
  110. package/dist/shared/components/rich-editor/toolbar/toolbar.js +64 -0
  111. package/dist/shared/components/rich-editor/toolbar/ul-list/rich-editor-toolbar-ul-list.d.ts +1 -0
  112. package/dist/shared/components/rich-editor/toolbar/ul-list/rich-editor-toolbar-ul-list.js +66 -0
  113. package/dist/shared/components/rich-editor/toolbar/underline/rich-editor-toolbar-underline.d.ts +1 -0
  114. package/dist/shared/components/rich-editor/toolbar/underline/rich-editor-toolbar-underline.js +66 -0
  115. package/package.json +6 -1
@@ -1,4 +1,4 @@
1
- import { __module as e } from "../../_virtual/index7.js";
1
+ import { __module as e } from "../../_virtual/index9.js";
2
2
  import { __require as o } from "./cjs/react-is.production.min.js";
3
3
  import { __require as t } from "./cjs/react-is.development.js";
4
4
  var r;
@@ -1,4 +1,4 @@
1
- import r from "../../../../_virtual/index8.js";
1
+ import r from "../../../../_virtual/index10.js";
2
2
  var e = new r(), n = "recharts.syncEvent.tooltip", E = "recharts.syncEvent.brush";
3
3
  export {
4
4
  E as BRUSH_SYNC_EVENT,
@@ -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/index6.js";
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) => {
@@ -0,0 +1,100 @@
1
+ var l = 200, p = function() {
2
+ };
3
+ p.prototype.append = function(t) {
4
+ return t.length ? (t = p.from(t), !this.length && t || t.length < l && this.leafAppend(t) || this.length < l && t.leafPrepend(this) || this.appendInner(t)) : this;
5
+ };
6
+ p.prototype.prepend = function(t) {
7
+ return t.length ? p.from(t).append(this) : this;
8
+ };
9
+ p.prototype.appendInner = function(t) {
10
+ return new u(this, t);
11
+ };
12
+ p.prototype.slice = function(t, r) {
13
+ return t === void 0 && (t = 0), r === void 0 && (r = this.length), t >= r ? p.empty : this.sliceInner(Math.max(0, t), Math.min(this.length, r));
14
+ };
15
+ p.prototype.get = function(t) {
16
+ if (!(t < 0 || t >= this.length))
17
+ return this.getInner(t);
18
+ };
19
+ p.prototype.forEach = function(t, r, e) {
20
+ r === void 0 && (r = 0), e === void 0 && (e = this.length), r <= e ? this.forEachInner(t, r, e, 0) : this.forEachInvertedInner(t, r, e, 0);
21
+ };
22
+ p.prototype.map = function(t, r, e) {
23
+ r === void 0 && (r = 0), e === void 0 && (e = this.length);
24
+ var n = [];
25
+ return this.forEach(function(i, s) {
26
+ return n.push(t(i, s));
27
+ }, r, e), n;
28
+ };
29
+ p.from = function(t) {
30
+ return t instanceof p ? t : t && t.length ? new o(t) : p.empty;
31
+ };
32
+ var o = /* @__PURE__ */ (function(h) {
33
+ function t(e) {
34
+ h.call(this), this.values = e;
35
+ }
36
+ h && (t.__proto__ = h), t.prototype = Object.create(h && h.prototype), t.prototype.constructor = t;
37
+ var r = { length: { configurable: !0 }, depth: { configurable: !0 } };
38
+ return t.prototype.flatten = function() {
39
+ return this.values;
40
+ }, t.prototype.sliceInner = function(n, i) {
41
+ return n == 0 && i == this.length ? this : new t(this.values.slice(n, i));
42
+ }, t.prototype.getInner = function(n) {
43
+ return this.values[n];
44
+ }, t.prototype.forEachInner = function(n, i, s, f) {
45
+ for (var a = i; a < s; a++)
46
+ if (n(this.values[a], f + a) === !1)
47
+ return !1;
48
+ }, t.prototype.forEachInvertedInner = function(n, i, s, f) {
49
+ for (var a = i - 1; a >= s; a--)
50
+ if (n(this.values[a], f + a) === !1)
51
+ return !1;
52
+ }, t.prototype.leafAppend = function(n) {
53
+ if (this.length + n.length <= l)
54
+ return new t(this.values.concat(n.flatten()));
55
+ }, t.prototype.leafPrepend = function(n) {
56
+ if (this.length + n.length <= l)
57
+ return new t(n.flatten().concat(this.values));
58
+ }, r.length.get = function() {
59
+ return this.values.length;
60
+ }, r.depth.get = function() {
61
+ return 0;
62
+ }, Object.defineProperties(t.prototype, r), t;
63
+ })(p);
64
+ p.empty = new o([]);
65
+ var u = /* @__PURE__ */ (function(h) {
66
+ function t(r, e) {
67
+ h.call(this), this.left = r, this.right = e, this.length = r.length + e.length, this.depth = Math.max(r.depth, e.depth) + 1;
68
+ }
69
+ return h && (t.__proto__ = h), t.prototype = Object.create(h && h.prototype), t.prototype.constructor = t, t.prototype.flatten = function() {
70
+ return this.left.flatten().concat(this.right.flatten());
71
+ }, t.prototype.getInner = function(e) {
72
+ return e < this.left.length ? this.left.get(e) : this.right.get(e - this.left.length);
73
+ }, t.prototype.forEachInner = function(e, n, i, s) {
74
+ var f = this.left.length;
75
+ if (n < f && this.left.forEachInner(e, n, Math.min(i, f), s) === !1 || i > f && this.right.forEachInner(e, Math.max(n - f, 0), Math.min(this.length, i) - f, s + f) === !1)
76
+ return !1;
77
+ }, t.prototype.forEachInvertedInner = function(e, n, i, s) {
78
+ var f = this.left.length;
79
+ if (n > f && this.right.forEachInvertedInner(e, n - f, Math.max(i, f) - f, s + f) === !1 || i < f && this.left.forEachInvertedInner(e, Math.min(n, f), i, s) === !1)
80
+ return !1;
81
+ }, t.prototype.sliceInner = function(e, n) {
82
+ if (e == 0 && n == this.length)
83
+ return this;
84
+ var i = this.left.length;
85
+ return n <= i ? this.left.slice(e, n) : e >= i ? this.right.slice(e - i, n - i) : this.left.slice(e, i).append(this.right.slice(0, n - i));
86
+ }, t.prototype.leafAppend = function(e) {
87
+ var n = this.right.leafAppend(e);
88
+ if (n)
89
+ return new t(this.left, n);
90
+ }, t.prototype.leafPrepend = function(e) {
91
+ var n = this.left.leafPrepend(e);
92
+ if (n)
93
+ return new t(n, this.right);
94
+ }, t.prototype.appendInner = function(e) {
95
+ return this.left.depth >= Math.max(this.right.depth, e.depth) + 1 ? new t(this.left, new t(this.right, e)) : new t(this, e);
96
+ }, t;
97
+ })(p);
98
+ export {
99
+ p as default
100
+ };
@@ -1,4 +1,4 @@
1
- import { __module as r } from "../../../_virtual/index9.js";
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
- 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);
1
+ var e = { exports: {} };
5
2
  export {
6
- m as default
3
+ e as __module
7
4
  };
@@ -1,4 +1,7 @@
1
- var e = { exports: {} };
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
- e as __module
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 { Root as n, Trigger as i, Portal as d, Content as s } from "../node_modules/@radix-ui/react-popover/dist/index.js";
4
- import { cn as p } from "../lib/utils.js";
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 v({
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
- s,
21
+ p,
19
22
  {
20
23
  "data-slot": "popover-content",
21
24
  align: e,
22
25
  sideOffset: a,
23
- className: p(
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
- c as Popover,
33
- v as PopoverContent,
34
- u as PopoverTrigger
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, Item as g, ItemIndicator as h, ItemText as v, Group as x, Label as b, ScrollUpButton as w, ScrollDownButton as N } from "../node_modules/@radix-ui/react-select/dist/index.js";
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(x, { "data-slot": "select-group", ...t });
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
- b,
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
- g,
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(h, { children: /* @__PURE__ */ e(y, { className: "size-4" }) }) }),
100
- /* @__PURE__ */ e(v, { children: a })
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 D from "../../../../node_modules/lucide-react/dist/esm/icons/calendar.js";
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(D, { size: 16, className: "ml-auto opacity-50" })
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 { FormProvider as u, Controller as F, useFormContext as p, useFormState as I } from "../../../../node_modules/react-hook-form/dist/index.esm.js";
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 = u, c = a.createContext({}), b = ({
7
+ const C = I, c = a.createContext({}), b = ({
8
8
  ...r
9
- }) => /* @__PURE__ */ s(c.Provider, { value: { name: r.name }, children: /* @__PURE__ */ s(F, { ...r }) }), d = () => {
10
- const r = a.useContext(c), e = a.useContext(l), { getFieldState: o } = p(), t = I({ name: r.name }), m = o(r.name, t);
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 M } from "../../react-context/dist/index.js";
5
- import { DismissableLayer as K } from "../../react-dismissable-layer/dist/index.js";
6
- import { useFocusGuards as L } from "../../react-focus-guards/dist/index.js";
7
- import { FocusScope as j } from "../../react-focus-scope/dist/index.js";
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 G, Arrow as H, Root as Q } from "../../react-popper/dist/index.js";
10
- import { Portal as U } from "../../react-portal/dist/index.js";
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 X } from "../../react-slot/dist/index.js";
14
- import { useControllableState as Y } from "../../react-use-controllable-state/dist/index.js";
15
- import { hideOthers as Z } from "../../../aria-hidden/dist/es2015/index.js";
16
- import q from "../../../react-remove-scroll/dist/es2015/Combination.js";
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] = M(C, [
18
+ var C = "Popover", [y] = K(C, [
19
19
  _
20
- ]), h = _(), [z, c] = y(C), D = (e) => {
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] = Y({
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(Q, { ...u, children: /* @__PURE__ */ p(
35
- z,
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", J = i.forwardRef(
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
- J.displayName = x;
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": T(o.open),
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", [V, W] = y(O, {
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(V, { scope: n, forceMount: t, children: /* @__PURE__ */ p(b, { present: t || r.open, children: /* @__PURE__ */ p(U, { asChild: !0, container: o, children: a }) }) });
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 = W(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(oe, { ...o, ref: n }) : /* @__PURE__ */ p(re, { ...o, ref: n }) });
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 ee = X("PopoverContent.RemoveScroll"), oe = i.forwardRef(
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 Z(s);
98
- }, []), /* @__PURE__ */ p(q, { as: ee, allowPinchZoom: !0, children: /* @__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
- ), re = i.forwardRef(
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 L(), /* @__PURE__ */ p(
160
- j,
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
- K,
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
- G,
178
+ H,
179
179
  {
180
- "data-state": T(l.open),
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", te = i.forwardRef(
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
- te.displayName = S;
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(H, { ...o, ...a, ref: n });
219
+ return /* @__PURE__ */ p(U, { ...o, ...a, ref: n });
220
220
  }
221
221
  );
222
222
  ae.displayName = ne;
223
- function T(e) {
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
- J as PopoverAnchor,
231
+ V as PopoverAnchor,
231
232
  ae as PopoverArrow,
232
- te as PopoverClose,
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/index6.js";
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";
@@ -1,2 +1,2 @@
1
- import i from "../../../../../../_virtual/index3.js";
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 {};