@devalok/shilp-sutra 0.6.2 → 0.7.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.
Files changed (84) hide show
  1. package/dist/_virtual/client.js +5 -0
  2. package/dist/_virtual/index.js +5 -0
  3. package/dist/_virtual/react-dom-client.development.js +5 -0
  4. package/dist/_virtual/react-dom-client.production.js +5 -0
  5. package/dist/_virtual/scheduler.development.js +5 -0
  6. package/dist/_virtual/scheduler.production.js +5 -0
  7. package/dist/_virtual/shilp-sutra.js +5 -0
  8. package/dist/_virtual/shilp-sutra2.js +5 -0
  9. package/dist/composed/confirm-dialog.d.ts +27 -0
  10. package/dist/composed/confirm-dialog.d.ts.map +1 -0
  11. package/dist/composed/confirm-dialog.js +45 -0
  12. package/dist/composed/extensions/emoji-suggestion.d.ts +8 -0
  13. package/dist/composed/extensions/emoji-suggestion.d.ts.map +1 -0
  14. package/dist/composed/extensions/emoji-suggestion.js +119 -0
  15. package/dist/composed/extensions/file-attachment.d.ts +3 -0
  16. package/dist/composed/extensions/file-attachment.d.ts.map +1 -0
  17. package/dist/composed/extensions/file-attachment.js +55 -0
  18. package/dist/composed/extensions/mention-suggestion.d.ts +10 -0
  19. package/dist/composed/extensions/mention-suggestion.d.ts.map +1 -0
  20. package/dist/composed/extensions/mention-suggestion.js +79 -0
  21. package/dist/composed/index.d.ts +3 -1
  22. package/dist/composed/index.d.ts.map +1 -1
  23. package/dist/composed/index.js +28 -26
  24. package/dist/composed/rich-text-editor.d.ts +19 -0
  25. package/dist/composed/rich-text-editor.d.ts.map +1 -1
  26. package/dist/composed/rich-text-editor.js +320 -161
  27. package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/cjs/react-dom-client.development.js +17062 -0
  28. package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/cjs/react-dom-client.production.js +9790 -0
  29. package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/client.js +20 -0
  30. package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.development.js +237 -0
  31. package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.production.js +234 -0
  32. package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/index.js +11 -0
  33. package/dist/primitives/_internal/react-arrow.js +8 -19
  34. package/dist/primitives/_internal/react-compose-refs.js +14 -14
  35. package/dist/primitives/_internal/react-context.js +41 -39
  36. package/dist/primitives/_internal/react-dismissable-layer.js +62 -90
  37. package/dist/primitives/_internal/react-popper.js +107 -169
  38. package/dist/primitives/_internal/react-portal.js +1 -1
  39. package/dist/primitives/_internal/react-primitive.js +1 -1
  40. package/dist/primitives/_internal/react-use-size.js +8 -8
  41. package/dist/primitives/react-slot.js +12 -12
  42. package/dist/shell/app-command-palette.d.ts +3 -1
  43. package/dist/shell/app-command-palette.d.ts.map +1 -1
  44. package/dist/shell/app-command-palette.js +35 -34
  45. package/dist/shell/bottom-navbar.d.ts.map +1 -1
  46. package/dist/shell/bottom-navbar.js +31 -31
  47. package/dist/shell/index.d.ts +1 -1
  48. package/dist/shell/index.d.ts.map +1 -1
  49. package/dist/shell/notification-center.d.ts +10 -0
  50. package/dist/shell/notification-center.d.ts.map +1 -1
  51. package/dist/shell/notification-center.js +129 -117
  52. package/dist/shell/top-bar.d.ts +20 -0
  53. package/dist/shell/top-bar.d.ts.map +1 -1
  54. package/dist/shell/top-bar.js +100 -70
  55. package/dist/tailwind/index.cjs +1 -0
  56. package/dist/tailwind/preset.d.ts.map +1 -1
  57. package/dist/tailwind/preset.js +1 -0
  58. package/dist/tokens/semantic.css +7 -0
  59. package/dist/ui/alert.js +42 -63
  60. package/dist/ui/avatar.js +20 -62
  61. package/dist/ui/badge.d.ts +1 -1
  62. package/dist/ui/badge.d.ts.map +1 -1
  63. package/dist/ui/badge.js +88 -112
  64. package/dist/ui/button-group.js +14 -29
  65. package/dist/ui/button.js +64 -108
  66. package/dist/ui/card.js +18 -62
  67. package/dist/ui/checkbox.js +1 -21
  68. package/dist/ui/color-input.d.ts +17 -0
  69. package/dist/ui/color-input.d.ts.map +1 -0
  70. package/dist/ui/color-input.js +87 -0
  71. package/dist/ui/index.d.ts +1 -0
  72. package/dist/ui/index.d.ts.map +1 -1
  73. package/dist/ui/index.js +314 -312
  74. package/dist/ui/input.js +25 -51
  75. package/dist/ui/label.js +1 -15
  76. package/dist/ui/popover.js +6 -6
  77. package/dist/ui/separator.js +4 -19
  78. package/dist/ui/spinner.js +1 -36
  79. package/dist/ui/switch.js +1 -20
  80. package/dist/ui/tabs.js +20 -47
  81. package/dist/ui/tooltip.js +6 -17
  82. package/llms-full.txt +117 -9
  83. package/llms.txt +9 -6
  84. package/package.json +592 -528
@@ -0,0 +1,20 @@
1
+ "use client";
2
+ import { __module as e } from "../../../../../_virtual/client.js";
3
+ import { __require as _ } from "./cjs/react-dom-client.production.js";
4
+ import { __require as t } from "./cjs/react-dom-client.development.js";
5
+ function r() {
6
+ if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
7
+ if (process.env.NODE_ENV !== "production")
8
+ throw new Error("^_^");
9
+ try {
10
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r);
11
+ } catch (o) {
12
+ console.error(o);
13
+ }
14
+ }
15
+ }
16
+ process.env.NODE_ENV === "production" ? (r(), e.exports = _()) : e.exports = t();
17
+ var O = e.exports;
18
+ export {
19
+ O as c
20
+ };
@@ -0,0 +1,237 @@
1
+ "use client";
2
+ import { __exports as H } from "../../../../../../_virtual/scheduler.development.js";
3
+ /**
4
+ * @license React
5
+ * scheduler.development.js
6
+ *
7
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var N;
13
+ function z() {
14
+ return N ? H : (N = 1, function(a) {
15
+ process.env.NODE_ENV !== "production" && function() {
16
+ function P() {
17
+ if (g = !1, _) {
18
+ var e = a.unstable_now();
19
+ q = e;
20
+ var l = !0;
21
+ try {
22
+ e: {
23
+ b = !1, d && (d = !1, V(v), v = -1), A = !0;
24
+ var n = t;
25
+ try {
26
+ n: {
27
+ for (k(e), f = i(o); f !== null && !(f.expirationTime > e && R()); ) {
28
+ var u = f.callback;
29
+ if (typeof u == "function") {
30
+ f.callback = null, t = f.priorityLevel;
31
+ var r = u(
32
+ f.expirationTime <= e
33
+ );
34
+ if (e = a.unstable_now(), typeof r == "function") {
35
+ f.callback = r, k(e), l = !0;
36
+ break n;
37
+ }
38
+ f === i(o) && y(o), k(e);
39
+ } else y(o);
40
+ f = i(o);
41
+ }
42
+ if (f !== null) l = !0;
43
+ else {
44
+ var T = i(s);
45
+ T !== null && C(
46
+ S,
47
+ T.startTime - e
48
+ ), l = !1;
49
+ }
50
+ }
51
+ break e;
52
+ } finally {
53
+ f = null, t = n, A = !1;
54
+ }
55
+ l = void 0;
56
+ }
57
+ } finally {
58
+ l ? O() : _ = !1;
59
+ }
60
+ }
61
+ }
62
+ function E(e, l) {
63
+ var n = e.length;
64
+ e.push(l);
65
+ e: for (; 0 < n; ) {
66
+ var u = n - 1 >>> 1, r = e[u];
67
+ if (0 < m(r, l))
68
+ e[u] = l, e[n] = r, n = u;
69
+ else break e;
70
+ }
71
+ }
72
+ function i(e) {
73
+ return e.length === 0 ? null : e[0];
74
+ }
75
+ function y(e) {
76
+ if (e.length === 0) return null;
77
+ var l = e[0], n = e.pop();
78
+ if (n !== l) {
79
+ e[0] = n;
80
+ e: for (var u = 0, r = e.length, T = r >>> 1; u < T; ) {
81
+ var w = 2 * (u + 1) - 1, D = e[w], c = w + 1, L = e[c];
82
+ if (0 > m(D, n))
83
+ c < r && 0 > m(L, D) ? (e[u] = L, e[c] = n, u = c) : (e[u] = D, e[w] = n, u = w);
84
+ else if (c < r && 0 > m(L, n))
85
+ e[u] = L, e[c] = n, u = c;
86
+ else break e;
87
+ }
88
+ }
89
+ return l;
90
+ }
91
+ function m(e, l) {
92
+ var n = e.sortIndex - l.sortIndex;
93
+ return n !== 0 ? n : e.id - l.id;
94
+ }
95
+ function k(e) {
96
+ for (var l = i(s); l !== null; ) {
97
+ if (l.callback === null) y(s);
98
+ else if (l.startTime <= e)
99
+ y(s), l.sortIndex = l.expirationTime, E(o, l);
100
+ else break;
101
+ l = i(s);
102
+ }
103
+ }
104
+ function S(e) {
105
+ if (d = !1, k(e), !b)
106
+ if (i(o) !== null)
107
+ b = !0, _ || (_ = !0, O());
108
+ else {
109
+ var l = i(s);
110
+ l !== null && C(
111
+ S,
112
+ l.startTime - e
113
+ );
114
+ }
115
+ }
116
+ function R() {
117
+ return g ? !0 : !(a.unstable_now() - q < K);
118
+ }
119
+ function C(e, l) {
120
+ v = I(function() {
121
+ e(a.unstable_now());
122
+ }, l);
123
+ }
124
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()), a.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") {
125
+ var U = performance;
126
+ a.unstable_now = function() {
127
+ return U.now();
128
+ };
129
+ } else {
130
+ var B = Date, j = B.now();
131
+ a.unstable_now = function() {
132
+ return B.now() - j;
133
+ };
134
+ }
135
+ var o = [], s = [], F = 1, f = null, t = 3, A = !1, b = !1, d = !1, g = !1, I = typeof setTimeout == "function" ? setTimeout : null, V = typeof clearTimeout == "function" ? clearTimeout : null, G = typeof setImmediate < "u" ? setImmediate : null, _ = !1, v = -1, K = 5, q = -1;
136
+ if (typeof G == "function")
137
+ var O = function() {
138
+ G(P);
139
+ };
140
+ else if (typeof MessageChannel < "u") {
141
+ var M = new MessageChannel(), Q = M.port2;
142
+ M.port1.onmessage = P, O = function() {
143
+ Q.postMessage(null);
144
+ };
145
+ } else
146
+ O = function() {
147
+ I(P, 0);
148
+ };
149
+ a.unstable_IdlePriority = 5, a.unstable_ImmediatePriority = 1, a.unstable_LowPriority = 4, a.unstable_NormalPriority = 3, a.unstable_Profiling = null, a.unstable_UserBlockingPriority = 2, a.unstable_cancelCallback = function(e) {
150
+ e.callback = null;
151
+ }, a.unstable_forceFrameRate = function(e) {
152
+ 0 > e || 125 < e ? console.error(
153
+ "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
154
+ ) : K = 0 < e ? Math.floor(1e3 / e) : 5;
155
+ }, a.unstable_getCurrentPriorityLevel = function() {
156
+ return t;
157
+ }, a.unstable_next = function(e) {
158
+ switch (t) {
159
+ case 1:
160
+ case 2:
161
+ case 3:
162
+ var l = 3;
163
+ break;
164
+ default:
165
+ l = t;
166
+ }
167
+ var n = t;
168
+ t = l;
169
+ try {
170
+ return e();
171
+ } finally {
172
+ t = n;
173
+ }
174
+ }, a.unstable_requestPaint = function() {
175
+ g = !0;
176
+ }, a.unstable_runWithPriority = function(e, l) {
177
+ switch (e) {
178
+ case 1:
179
+ case 2:
180
+ case 3:
181
+ case 4:
182
+ case 5:
183
+ break;
184
+ default:
185
+ e = 3;
186
+ }
187
+ var n = t;
188
+ t = e;
189
+ try {
190
+ return l();
191
+ } finally {
192
+ t = n;
193
+ }
194
+ }, a.unstable_scheduleCallback = function(e, l, n) {
195
+ var u = a.unstable_now();
196
+ switch (typeof n == "object" && n !== null ? (n = n.delay, n = typeof n == "number" && 0 < n ? u + n : u) : n = u, e) {
197
+ case 1:
198
+ var r = -1;
199
+ break;
200
+ case 2:
201
+ r = 250;
202
+ break;
203
+ case 5:
204
+ r = 1073741823;
205
+ break;
206
+ case 4:
207
+ r = 1e4;
208
+ break;
209
+ default:
210
+ r = 5e3;
211
+ }
212
+ return r = n + r, e = {
213
+ id: F++,
214
+ callback: l,
215
+ priorityLevel: e,
216
+ startTime: n,
217
+ expirationTime: r,
218
+ sortIndex: -1
219
+ }, n > u ? (e.sortIndex = n, E(s, e), i(o) === null && e === i(s) && (d ? (V(v), v = -1) : d = !0, C(S, n - u))) : (e.sortIndex = r, E(o, e), b || A || (b = !0, _ || (_ = !0, O()))), e;
220
+ }, a.unstable_shouldYield = R, a.unstable_wrapCallback = function(e) {
221
+ var l = t;
222
+ return function() {
223
+ var n = t;
224
+ t = l;
225
+ try {
226
+ return e.apply(this, arguments);
227
+ } finally {
228
+ t = n;
229
+ }
230
+ };
231
+ }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
232
+ }();
233
+ }(H), H);
234
+ }
235
+ export {
236
+ z as __require
237
+ };
@@ -0,0 +1,234 @@
1
+ "use client";
2
+ import { __exports as U } from "../../../../../../_virtual/scheduler.production.js";
3
+ /**
4
+ * @license React
5
+ * scheduler.production.js
6
+ *
7
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var A;
13
+ function V() {
14
+ return A ? U : (A = 1, function(l) {
15
+ function g(e, a) {
16
+ var n = e.length;
17
+ e.push(a);
18
+ e: for (; 0 < n; ) {
19
+ var u = n - 1 >>> 1, r = e[u];
20
+ if (0 < m(r, a))
21
+ e[u] = a, e[n] = r, n = u;
22
+ else break e;
23
+ }
24
+ }
25
+ function i(e) {
26
+ return e.length === 0 ? null : e[0];
27
+ }
28
+ function k(e) {
29
+ if (e.length === 0) return null;
30
+ var a = e[0], n = e.pop();
31
+ if (n !== a) {
32
+ e[0] = n;
33
+ e: for (var u = 0, r = e.length, P = r >>> 1; u < P; ) {
34
+ var T = 2 * (u + 1) - 1, I = e[T], o = T + 1, C = e[o];
35
+ if (0 > m(I, n))
36
+ o < r && 0 > m(C, I) ? (e[u] = C, e[o] = n, u = o) : (e[u] = I, e[T] = n, u = T);
37
+ else if (o < r && 0 > m(C, n))
38
+ e[u] = C, e[o] = n, u = o;
39
+ else break e;
40
+ }
41
+ }
42
+ return a;
43
+ }
44
+ function m(e, a) {
45
+ var n = e.sortIndex - a.sortIndex;
46
+ return n !== 0 ? n : e.id - a.id;
47
+ }
48
+ if (l.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") {
49
+ var E = performance;
50
+ l.unstable_now = function() {
51
+ return E.now();
52
+ };
53
+ } else {
54
+ var j = Date, G = j.now();
55
+ l.unstable_now = function() {
56
+ return j.now() - G;
57
+ };
58
+ }
59
+ var s = [], c = [], J = 1, f = null, t = 3, S = !1, d = !1, _ = !1, q = !1, F = typeof setTimeout == "function" ? setTimeout : null, Q = typeof clearTimeout == "function" ? clearTimeout : null, Y = typeof setImmediate < "u" ? setImmediate : null;
60
+ function w(e) {
61
+ for (var a = i(c); a !== null; ) {
62
+ if (a.callback === null) k(c);
63
+ else if (a.startTime <= e)
64
+ k(c), a.sortIndex = a.expirationTime, g(s, a);
65
+ else break;
66
+ a = i(c);
67
+ }
68
+ }
69
+ function H(e) {
70
+ if (_ = !1, w(e), !d)
71
+ if (i(s) !== null)
72
+ d = !0, b || (b = !0, v());
73
+ else {
74
+ var a = i(c);
75
+ a !== null && D(H, a.startTime - e);
76
+ }
77
+ }
78
+ var b = !1, y = -1, B = 5, M = -1;
79
+ function N() {
80
+ return q ? !0 : !(l.unstable_now() - M < B);
81
+ }
82
+ function R() {
83
+ if (q = !1, b) {
84
+ var e = l.unstable_now();
85
+ M = e;
86
+ var a = !0;
87
+ try {
88
+ e: {
89
+ d = !1, _ && (_ = !1, Q(y), y = -1), S = !0;
90
+ var n = t;
91
+ try {
92
+ n: {
93
+ for (w(e), f = i(s); f !== null && !(f.expirationTime > e && N()); ) {
94
+ var u = f.callback;
95
+ if (typeof u == "function") {
96
+ f.callback = null, t = f.priorityLevel;
97
+ var r = u(
98
+ f.expirationTime <= e
99
+ );
100
+ if (e = l.unstable_now(), typeof r == "function") {
101
+ f.callback = r, w(e), a = !0;
102
+ break n;
103
+ }
104
+ f === i(s) && k(s), w(e);
105
+ } else k(s);
106
+ f = i(s);
107
+ }
108
+ if (f !== null) a = !0;
109
+ else {
110
+ var P = i(c);
111
+ P !== null && D(
112
+ H,
113
+ P.startTime - e
114
+ ), a = !1;
115
+ }
116
+ }
117
+ break e;
118
+ } finally {
119
+ f = null, t = n, S = !1;
120
+ }
121
+ a = void 0;
122
+ }
123
+ } finally {
124
+ a ? v() : b = !1;
125
+ }
126
+ }
127
+ }
128
+ var v;
129
+ if (typeof Y == "function")
130
+ v = function() {
131
+ Y(R);
132
+ };
133
+ else if (typeof MessageChannel < "u") {
134
+ var z = new MessageChannel(), K = z.port2;
135
+ z.port1.onmessage = R, v = function() {
136
+ K.postMessage(null);
137
+ };
138
+ } else
139
+ v = function() {
140
+ F(R, 0);
141
+ };
142
+ function D(e, a) {
143
+ y = F(function() {
144
+ e(l.unstable_now());
145
+ }, a);
146
+ }
147
+ l.unstable_IdlePriority = 5, l.unstable_ImmediatePriority = 1, l.unstable_LowPriority = 4, l.unstable_NormalPriority = 3, l.unstable_Profiling = null, l.unstable_UserBlockingPriority = 2, l.unstable_cancelCallback = function(e) {
148
+ e.callback = null;
149
+ }, l.unstable_forceFrameRate = function(e) {
150
+ 0 > e || 125 < e ? console.error(
151
+ "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
152
+ ) : B = 0 < e ? Math.floor(1e3 / e) : 5;
153
+ }, l.unstable_getCurrentPriorityLevel = function() {
154
+ return t;
155
+ }, l.unstable_next = function(e) {
156
+ switch (t) {
157
+ case 1:
158
+ case 2:
159
+ case 3:
160
+ var a = 3;
161
+ break;
162
+ default:
163
+ a = t;
164
+ }
165
+ var n = t;
166
+ t = a;
167
+ try {
168
+ return e();
169
+ } finally {
170
+ t = n;
171
+ }
172
+ }, l.unstable_requestPaint = function() {
173
+ q = !0;
174
+ }, l.unstable_runWithPriority = function(e, a) {
175
+ switch (e) {
176
+ case 1:
177
+ case 2:
178
+ case 3:
179
+ case 4:
180
+ case 5:
181
+ break;
182
+ default:
183
+ e = 3;
184
+ }
185
+ var n = t;
186
+ t = e;
187
+ try {
188
+ return a();
189
+ } finally {
190
+ t = n;
191
+ }
192
+ }, l.unstable_scheduleCallback = function(e, a, n) {
193
+ var u = l.unstable_now();
194
+ switch (typeof n == "object" && n !== null ? (n = n.delay, n = typeof n == "number" && 0 < n ? u + n : u) : n = u, e) {
195
+ case 1:
196
+ var r = -1;
197
+ break;
198
+ case 2:
199
+ r = 250;
200
+ break;
201
+ case 5:
202
+ r = 1073741823;
203
+ break;
204
+ case 4:
205
+ r = 1e4;
206
+ break;
207
+ default:
208
+ r = 5e3;
209
+ }
210
+ return r = n + r, e = {
211
+ id: J++,
212
+ callback: a,
213
+ priorityLevel: e,
214
+ startTime: n,
215
+ expirationTime: r,
216
+ sortIndex: -1
217
+ }, n > u ? (e.sortIndex = n, g(c, e), i(s) === null && e === i(c) && (_ ? (Q(y), y = -1) : _ = !0, D(H, n - u))) : (e.sortIndex = r, g(s, e), d || S || (d = !0, b || (b = !0, v()))), e;
218
+ }, l.unstable_shouldYield = N, l.unstable_wrapCallback = function(e) {
219
+ var a = t;
220
+ return function() {
221
+ var n = t;
222
+ t = a;
223
+ try {
224
+ return e.apply(this, arguments);
225
+ } finally {
226
+ t = n;
227
+ }
228
+ };
229
+ };
230
+ }(U), U);
231
+ }
232
+ export {
233
+ V as __require
234
+ };
@@ -0,0 +1,11 @@
1
+ "use client";
2
+ import { __module as e } from "../../../../../_virtual/index.js";
3
+ import { __require as o } from "./cjs/scheduler.production.js";
4
+ import { __require as u } from "./cjs/scheduler.development.js";
5
+ var r;
6
+ function p() {
7
+ return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = o() : e.exports = u(), e.exports);
8
+ }
9
+ export {
10
+ p as __require
11
+ };
@@ -1,24 +1,13 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import * as c from "react";
3
- import { Primitive as m } from "./react-primitive.js";
4
- const p = "Arrow", t = c.forwardRef((o, e) => {
5
- const { children: i, width: s = 10, height: n = 5, ...a } = o;
6
- return /* @__PURE__ */ r(
7
- m.svg,
8
- {
9
- ...a,
10
- ref: e,
11
- width: s,
12
- height: n,
13
- viewBox: "0 0 30 10",
14
- preserveAspectRatio: "none",
15
- children: o.asChild ? i : /* @__PURE__ */ r("polygon", { points: "0,0 30,0 15,10" })
16
- }
17
- );
2
+ import * as a from "react";
3
+ import { Primitive as c } from "./react-primitive.js";
4
+ const m = "Arrow", t = a.forwardRef((o, e) => {
5
+ const { children: i, width: s = 10, height: n = 5, ...h } = o;
6
+ return r(c.svg, { ...h, ref: e, width: s, height: n, viewBox: "0 0 30 10", preserveAspectRatio: "none", children: o.asChild ? i : r("polygon", { points: "0,0 30,0 15,10" }) });
18
7
  });
19
- t.displayName = p;
20
- const h = t;
8
+ t.displayName = m;
9
+ const w = t;
21
10
  export {
22
11
  t as Arrow,
23
- h as Root
12
+ w as Root
24
13
  };
@@ -1,27 +1,27 @@
1
- import * as f from "react";
2
- function l(n, o) {
1
+ import * as l from "react";
2
+ function f(n, u) {
3
3
  if (typeof n == "function")
4
- return n(o);
5
- n != null && (n.current = o);
4
+ return n(u);
5
+ n != null && (n.current = u);
6
6
  }
7
7
  function i(...n) {
8
- return (o) => {
9
- let u = !1;
10
- const c = n.map((t) => {
11
- const e = l(t, o);
12
- return !u && typeof e == "function" && (u = !0), e;
8
+ return (u) => {
9
+ let o = !1;
10
+ const c = n.map((e) => {
11
+ const t = f(e, u);
12
+ return !o && typeof t == "function" && (o = !0), t;
13
13
  });
14
- if (u)
14
+ if (o)
15
15
  return () => {
16
- for (let t = 0; t < c.length; t++) {
17
- const e = c[t];
18
- typeof e == "function" ? e() : l(n[t], null);
16
+ for (let e = 0; e < c.length; e++) {
17
+ const t = c[e];
18
+ typeof t == "function" ? t() : f(n[e], null);
19
19
  }
20
20
  };
21
21
  };
22
22
  }
23
23
  function s(...n) {
24
- return f.useCallback(i(...n), n);
24
+ return l.useCallback(i(...n), n);
25
25
  }
26
26
  export {
27
27
  i as composeRefs,
@@ -1,69 +1,71 @@
1
- import { jsx as S } from "react/jsx-runtime";
1
+ import { jsx as h } from "react/jsx-runtime";
2
2
  import * as u from "react";
3
- function w(e, c) {
3
+ function w(t, c) {
4
4
  const r = u.createContext(c);
5
- r.displayName = e + "Context";
5
+ r.displayName = t + "Context";
6
6
  const a = (o) => {
7
- const { children: t, ...n } = o, s = u.useMemo(() => n, Object.values(n));
8
- return /* @__PURE__ */ S(r.Provider, { value: s, children: t });
7
+ const { children: e, ...n } = o, s = u.useMemo(() => n, Object.values(n));
8
+ return h(r.Provider, { value: s, children: e });
9
9
  };
10
- a.displayName = e + "Provider";
10
+ a.displayName = t + "Provider";
11
11
  function i(o) {
12
- const t = u.useContext(r);
13
- if (t) return t;
14
- if (c !== void 0) return c;
15
- throw new Error(`\`${o}\` must be used within \`${e}\``);
12
+ const e = u.useContext(r);
13
+ if (e)
14
+ return e;
15
+ if (c !== void 0)
16
+ return c;
17
+ throw new Error(`\`${o}\` must be used within \`${t}\``);
16
18
  }
17
19
  return [a, i];
18
20
  }
19
- function _(e, c = []) {
21
+ function _(t, c = []) {
20
22
  let r = [];
21
- function a(o, t) {
22
- const n = u.createContext(t);
23
+ function a(o, e) {
24
+ const n = u.createContext(e);
23
25
  n.displayName = o + "Context";
24
26
  const s = r.length;
25
- r = [...r, t];
26
- const v = (d) => {
27
- var l;
28
- const { scope: x, children: m, ...p } = d, f = ((l = x == null ? void 0 : x[e]) == null ? void 0 : l[s]) || n, h = u.useMemo(() => p, Object.values(p));
29
- return /* @__PURE__ */ S(f.Provider, { value: h, children: m });
27
+ r = [...r, e];
28
+ const l = (d) => {
29
+ var C;
30
+ const { scope: x, children: v, ...f } = d, p = ((C = x == null ? void 0 : x[t]) == null ? void 0 : C[s]) || n, S = u.useMemo(() => f, Object.values(f));
31
+ return h(p.Provider, { value: S, children: v });
30
32
  };
31
- v.displayName = o + "Provider";
32
- function C(d, x) {
33
- var f;
34
- const m = ((f = x == null ? void 0 : x[e]) == null ? void 0 : f[s]) || n, p = u.useContext(m);
35
- if (p) return p;
36
- if (t !== void 0) return t;
33
+ l.displayName = o + "Provider";
34
+ function m(d, x) {
35
+ var p;
36
+ const v = ((p = x == null ? void 0 : x[t]) == null ? void 0 : p[s]) || n, f = u.useContext(v);
37
+ if (f)
38
+ return f;
39
+ if (e !== void 0)
40
+ return e;
37
41
  throw new Error(`\`${d}\` must be used within \`${o}\``);
38
42
  }
39
- return [v, C];
43
+ return [l, m];
40
44
  }
41
45
  const i = () => {
42
- const o = r.map((t) => u.createContext(t));
46
+ const o = r.map((e) => u.createContext(e));
43
47
  return function(n) {
44
- const s = (n == null ? void 0 : n[e]) || o;
45
- return u.useMemo(
46
- () => ({ [`__scope${e}`]: { ...n, [e]: s } }),
47
- [n, s]
48
- );
48
+ const s = (n == null ? void 0 : n[t]) || o;
49
+ return u.useMemo(() => ({ [`__scope${t}`]: { ...n, [t]: s } }), [n, s]);
49
50
  };
50
51
  };
51
- return i.scopeName = e, [a, P(i, ...c)];
52
+ return i.scopeName = t, [a, P(i, ...c)];
52
53
  }
53
- function P(...e) {
54
- const c = e[0];
55
- if (e.length === 1) return c;
54
+ function P(...t) {
55
+ const c = t[0];
56
+ if (t.length === 1)
57
+ return c;
56
58
  const r = () => {
57
- const a = e.map((i) => ({
59
+ const a = t.map((i) => ({
58
60
  useScope: i(),
59
61
  scopeName: i.scopeName
60
62
  }));
61
63
  return function(o) {
62
- const t = a.reduce((n, { useScope: s, scopeName: v }) => {
63
- const d = s(o)[`__scope${v}`];
64
+ const e = a.reduce((n, { useScope: s, scopeName: l }) => {
65
+ const d = s(o)[`__scope${l}`];
64
66
  return { ...n, ...d };
65
67
  }, {});
66
- return u.useMemo(() => ({ [`__scope${c.scopeName}`]: t }), [t]);
68
+ return u.useMemo(() => ({ [`__scope${c.scopeName}`]: e }), [e]);
67
69
  };
68
70
  };
69
71
  return r.scopeName = c.scopeName, r;