@misael703/ui 1.9.0 → 1.9.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.
- package/dist/{chunk-WWJK2R2B.js → chunk-3DSNEDYN.js} +6 -6
- package/dist/{chunk-WWJK2R2B.js.map → chunk-3DSNEDYN.js.map} +1 -1
- package/dist/{chunk-QEDJJAKV.js → chunk-56NJXIH7.js} +4 -4
- package/dist/{chunk-QEDJJAKV.js.map → chunk-56NJXIH7.js.map} +1 -1
- package/dist/{chunk-NY467B35.mjs → chunk-5AU7WSVI.mjs} +3 -3
- package/dist/{chunk-NY467B35.mjs.map → chunk-5AU7WSVI.mjs.map} +1 -1
- package/dist/{chunk-PTHUKX2I.mjs → chunk-5DQXX64P.mjs} +3 -3
- package/dist/{chunk-PTHUKX2I.mjs.map → chunk-5DQXX64P.mjs.map} +1 -1
- package/dist/{chunk-SW3ACUKK.js → chunk-7I5LFBQR.js} +8 -7
- package/dist/chunk-7I5LFBQR.js.map +1 -0
- package/dist/{chunk-KOZUEK6V.mjs → chunk-BGIX6G5V.mjs} +3 -3
- package/dist/{chunk-KOZUEK6V.mjs.map → chunk-BGIX6G5V.mjs.map} +1 -1
- package/dist/{chunk-HKERJFKW.js → chunk-DI3O3TS5.js} +4 -4
- package/dist/{chunk-HKERJFKW.js.map → chunk-DI3O3TS5.js.map} +1 -1
- package/dist/{chunk-6EGXSTPR.mjs → chunk-EJ263Y5X.mjs} +3 -3
- package/dist/{chunk-6EGXSTPR.mjs.map → chunk-EJ263Y5X.mjs.map} +1 -1
- package/dist/{chunk-Q6C2KXLO.mjs → chunk-FA6526ME.mjs} +3 -3
- package/dist/{chunk-Q6C2KXLO.mjs.map → chunk-FA6526ME.mjs.map} +1 -1
- package/dist/{chunk-AJ32TAHG.js → chunk-GKSUYHGO.js} +4 -4
- package/dist/{chunk-AJ32TAHG.js.map → chunk-GKSUYHGO.js.map} +1 -1
- package/dist/{chunk-6FXXZZQV.js → chunk-IZ3FMCZ5.js} +4 -4
- package/dist/{chunk-6FXXZZQV.js.map → chunk-IZ3FMCZ5.js.map} +1 -1
- package/dist/{chunk-LZ4RGZJM.js → chunk-KKEBA6AG.js} +4 -4
- package/dist/{chunk-LZ4RGZJM.js.map → chunk-KKEBA6AG.js.map} +1 -1
- package/dist/{chunk-CFAX3HUT.mjs → chunk-OJNEGJ3P.mjs} +3 -3
- package/dist/{chunk-CFAX3HUT.mjs.map → chunk-OJNEGJ3P.mjs.map} +1 -1
- package/dist/{chunk-GD7MI7OT.mjs → chunk-PRML6VEF.mjs} +8 -7
- package/dist/chunk-PRML6VEF.mjs.map +1 -0
- package/dist/{chunk-4TUK7DGZ.js → chunk-QD7HBVS6.js} +5 -5
- package/dist/{chunk-4TUK7DGZ.js.map → chunk-QD7HBVS6.js.map} +1 -1
- package/dist/{chunk-TDVFNHQZ.mjs → chunk-QM7BCSCL.mjs} +3 -3
- package/dist/{chunk-TDVFNHQZ.mjs.map → chunk-QM7BCSCL.mjs.map} +1 -1
- package/dist/{chunk-CXEQ56RU.mjs → chunk-S7M7GTUZ.mjs} +3 -3
- package/dist/{chunk-CXEQ56RU.mjs.map → chunk-S7M7GTUZ.mjs.map} +1 -1
- package/dist/{chunk-J3J6LCHJ.js → chunk-TIO7MIUN.js} +4 -4
- package/dist/{chunk-J3J6LCHJ.js.map → chunk-TIO7MIUN.js.map} +1 -1
- package/dist/{chunk-UK54DHNM.js → chunk-U3I4IMJI.js} +4 -4
- package/dist/{chunk-UK54DHNM.js.map → chunk-U3I4IMJI.js.map} +1 -1
- package/dist/{chunk-3EFZU6GX.mjs → chunk-UZTVQZIZ.mjs} +3 -3
- package/dist/{chunk-3EFZU6GX.mjs.map → chunk-UZTVQZIZ.mjs.map} +1 -1
- package/dist/{chunk-B67HZ45M.js → chunk-VCBVLG3Q.js} +4 -4
- package/dist/{chunk-B67HZ45M.js.map → chunk-VCBVLG3Q.js.map} +1 -1
- package/dist/{chunk-I5V54YCS.js → chunk-VDBGWTIG.js} +4 -4
- package/dist/{chunk-I5V54YCS.js.map → chunk-VDBGWTIG.js.map} +1 -1
- package/dist/{chunk-Y2B4XXTO.mjs → chunk-VFZ2X655.mjs} +3 -3
- package/dist/{chunk-Y2B4XXTO.mjs.map → chunk-VFZ2X655.mjs.map} +1 -1
- package/dist/{chunk-WPSZ7N2K.mjs → chunk-YSU3WFND.mjs} +3 -3
- package/dist/{chunk-WPSZ7N2K.mjs.map → chunk-YSU3WFND.mjs.map} +1 -1
- package/dist/components/AdvancedPickers.js +6 -6
- package/dist/components/AdvancedPickers.mjs +2 -2
- package/dist/components/Comments.js +6 -6
- package/dist/components/Comments.mjs +3 -3
- package/dist/components/ContextMenu.js +3 -3
- package/dist/components/ContextMenu.mjs +2 -2
- package/dist/components/Display2.js +6 -6
- package/dist/components/Display2.mjs +2 -2
- package/dist/components/Display3.js +9 -9
- package/dist/components/Display3.mjs +3 -3
- package/dist/components/HoverCard.js +3 -3
- package/dist/components/HoverCard.mjs +2 -2
- package/dist/components/Layout.js +19 -19
- package/dist/components/Layout.mjs +2 -2
- package/dist/components/Menubar.js +3 -3
- package/dist/components/Menubar.mjs +2 -2
- package/dist/components/NavigationMenu.js +3 -3
- package/dist/components/NavigationMenu.mjs +2 -2
- package/dist/components/Pickers.js +7 -7
- package/dist/components/Pickers.mjs +2 -2
- package/dist/components/Popover.js +3 -3
- package/dist/components/Popover.mjs +2 -2
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/index.mjs +1 -1
- package/dist/hooks/usePopoverPosition.js +2 -2
- package/dist/hooks/usePopoverPosition.mjs +1 -1
- package/dist/index.js +58 -58
- package/dist/index.mjs +13 -13
- package/package.json +1 -1
- package/dist/chunk-GD7MI7OT.mjs.map +0 -1
- package/dist/chunk-SW3ACUKK.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
require('./chunk-427NHGTX.js');
|
|
5
4
|
require('./chunk-4REALDR3.js');
|
|
5
|
+
require('./chunk-427NHGTX.js');
|
|
6
6
|
require('./chunk-2LTV7VB5.js');
|
|
7
7
|
var chunkVMC5ZD4O_js = require('./chunk-VMC5ZD4O.js');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var chunk3DSNEDYN_js = require('./chunk-3DSNEDYN.js');
|
|
9
|
+
var chunkVDBGWTIG_js = require('./chunk-VDBGWTIG.js');
|
|
10
10
|
var chunkQHRP73CS_js = require('./chunk-QHRP73CS.js');
|
|
11
11
|
var chunk3VVQIWWG_js = require('./chunk-3VVQIWWG.js');
|
|
12
12
|
var chunkAZBX7UFI_js = require('./chunk-AZBX7UFI.js');
|
|
13
13
|
var chunkFEDQKTCX_js = require('./chunk-FEDQKTCX.js');
|
|
14
|
-
var
|
|
14
|
+
var chunkTIO7MIUN_js = require('./chunk-TIO7MIUN.js');
|
|
15
15
|
var chunkNU4GAGUV_js = require('./chunk-NU4GAGUV.js');
|
|
16
16
|
var chunkADQM725E_js = require('./chunk-ADQM725E.js');
|
|
17
|
-
var
|
|
18
|
-
var
|
|
17
|
+
var chunkVCBVLG3Q_js = require('./chunk-VCBVLG3Q.js');
|
|
18
|
+
var chunkU3I4IMJI_js = require('./chunk-U3I4IMJI.js');
|
|
19
19
|
var chunkKJ7UNUTB_js = require('./chunk-KJ7UNUTB.js');
|
|
20
20
|
var chunkVUJMOT6K_js = require('./chunk-VUJMOT6K.js');
|
|
21
21
|
var chunkJPPRP5R7_js = require('./chunk-JPPRP5R7.js');
|
|
22
22
|
var chunk3XXTCTFO_js = require('./chunk-3XXTCTFO.js');
|
|
23
|
-
var
|
|
23
|
+
var chunkIZ3FMCZ5_js = require('./chunk-IZ3FMCZ5.js');
|
|
24
24
|
var chunk6II4NJQM_js = require('./chunk-6II4NJQM.js');
|
|
25
25
|
var chunkAWYCGJJX_js = require('./chunk-AWYCGJJX.js');
|
|
26
|
-
var
|
|
26
|
+
var chunkKKEBA6AG_js = require('./chunk-KKEBA6AG.js');
|
|
27
27
|
var chunkVXKEX7T2_js = require('./chunk-VXKEX7T2.js');
|
|
28
28
|
var chunkAYQ7FM6O_js = require('./chunk-AYQ7FM6O.js');
|
|
29
29
|
require('./chunk-FL4ZCWUF.js');
|
|
30
|
-
var
|
|
30
|
+
var chunkGKSUYHGO_js = require('./chunk-GKSUYHGO.js');
|
|
31
31
|
var chunkBESBMV7N_js = require('./chunk-BESBMV7N.js');
|
|
32
32
|
var chunkHYUINOPJ_js = require('./chunk-HYUINOPJ.js');
|
|
33
33
|
var chunkX7O37QLL_js = require('./chunk-X7O37QLL.js');
|
|
34
34
|
var chunkJL73XCFX_js = require('./chunk-JL73XCFX.js');
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
35
|
+
var chunkDI3O3TS5_js = require('./chunk-DI3O3TS5.js');
|
|
36
|
+
var chunk56NJXIH7_js = require('./chunk-56NJXIH7.js');
|
|
37
|
+
var chunkQD7HBVS6_js = require('./chunk-QD7HBVS6.js');
|
|
38
38
|
var chunk6TYPG7MA_js = require('./chunk-6TYPG7MA.js');
|
|
39
39
|
var chunkHHEYTMBY_js = require('./chunk-HHEYTMBY.js');
|
|
40
40
|
var chunkXMLBKK7X_js = require('./chunk-XMLBKK7X.js');
|
|
41
|
-
var
|
|
41
|
+
var chunk7I5LFBQR_js = require('./chunk-7I5LFBQR.js');
|
|
42
42
|
var chunkWAGWB35Q_js = require('./chunk-WAGWB35Q.js');
|
|
43
43
|
var chunk3PXYCXDW_js = require('./chunk-3PXYCXDW.js');
|
|
44
44
|
var chunk6JA4KQU2_js = require('./chunk-6JA4KQU2.js');
|
|
@@ -59,27 +59,27 @@ Object.defineProperty(exports, "PermissionMatrix", {
|
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "Combobox", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunk3DSNEDYN_js.Combobox; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "DatePicker", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunk3DSNEDYN_js.DatePicker; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "FileUpload", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunk3DSNEDYN_js.FileUpload; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "MonthPicker", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunk3DSNEDYN_js.MonthPicker; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "YearPicker", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunk3DSNEDYN_js.YearPicker; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "Popover", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkVDBGWTIG_js.Popover; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "ResizableGroup", {
|
|
85
85
|
enumerable: true,
|
|
@@ -151,71 +151,71 @@ Object.defineProperty(exports, "TimePicker", {
|
|
|
151
151
|
});
|
|
152
152
|
Object.defineProperty(exports, "Container", {
|
|
153
153
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunkTIO7MIUN_js.Container; }
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "Divider", {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunkTIO7MIUN_js.Divider; }
|
|
159
159
|
});
|
|
160
160
|
Object.defineProperty(exports, "Grid", {
|
|
161
161
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunkTIO7MIUN_js.Grid; }
|
|
163
163
|
});
|
|
164
164
|
Object.defineProperty(exports, "HStack", {
|
|
165
165
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunkTIO7MIUN_js.HStack; }
|
|
167
167
|
});
|
|
168
168
|
Object.defineProperty(exports, "KeyValue", {
|
|
169
169
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunkTIO7MIUN_js.KeyValue; }
|
|
171
171
|
});
|
|
172
172
|
Object.defineProperty(exports, "KeyValueRow", {
|
|
173
173
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunkTIO7MIUN_js.KeyValueRow; }
|
|
175
175
|
});
|
|
176
176
|
Object.defineProperty(exports, "ListGroup", {
|
|
177
177
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunkTIO7MIUN_js.ListGroup; }
|
|
179
179
|
});
|
|
180
180
|
Object.defineProperty(exports, "ListGroupItem", {
|
|
181
181
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunkTIO7MIUN_js.ListGroupItem; }
|
|
183
183
|
});
|
|
184
184
|
Object.defineProperty(exports, "Stack", {
|
|
185
185
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunkTIO7MIUN_js.Stack; }
|
|
187
187
|
});
|
|
188
188
|
Object.defineProperty(exports, "Stepper", {
|
|
189
189
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunkTIO7MIUN_js.Stepper; }
|
|
191
191
|
});
|
|
192
192
|
Object.defineProperty(exports, "Tab", {
|
|
193
193
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunkTIO7MIUN_js.Tab; }
|
|
195
195
|
});
|
|
196
196
|
Object.defineProperty(exports, "TabList", {
|
|
197
197
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunkTIO7MIUN_js.TabList; }
|
|
199
199
|
});
|
|
200
200
|
Object.defineProperty(exports, "TabPanel", {
|
|
201
201
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunkTIO7MIUN_js.TabPanel; }
|
|
203
203
|
});
|
|
204
204
|
Object.defineProperty(exports, "Table", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkTIO7MIUN_js.Table; }
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "Tabs", {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkTIO7MIUN_js.Tabs; }
|
|
211
211
|
});
|
|
212
212
|
Object.defineProperty(exports, "Tooltip", {
|
|
213
213
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkTIO7MIUN_js.Tooltip; }
|
|
215
215
|
});
|
|
216
216
|
Object.defineProperty(exports, "VStack", {
|
|
217
217
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkTIO7MIUN_js.VStack; }
|
|
219
219
|
});
|
|
220
220
|
Object.defineProperty(exports, "Logo", {
|
|
221
221
|
enumerable: true,
|
|
@@ -235,11 +235,11 @@ Object.defineProperty(exports, "Testimonial", {
|
|
|
235
235
|
});
|
|
236
236
|
Object.defineProperty(exports, "Menubar", {
|
|
237
237
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunkVCBVLG3Q_js.Menubar; }
|
|
239
239
|
});
|
|
240
240
|
Object.defineProperty(exports, "NavigationMenu", {
|
|
241
241
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
242
|
+
get: function () { return chunkU3I4IMJI_js.NavigationMenu; }
|
|
243
243
|
});
|
|
244
244
|
Object.defineProperty(exports, "NotificationCenter", {
|
|
245
245
|
enumerable: true,
|
|
@@ -291,7 +291,7 @@ Object.defineProperty(exports, "Lightbox", {
|
|
|
291
291
|
});
|
|
292
292
|
Object.defineProperty(exports, "HoverCard", {
|
|
293
293
|
enumerable: true,
|
|
294
|
-
get: function () { return
|
|
294
|
+
get: function () { return chunkIZ3FMCZ5_js.HoverCard; }
|
|
295
295
|
});
|
|
296
296
|
Object.defineProperty(exports, "InputOTP", {
|
|
297
297
|
enumerable: true,
|
|
@@ -311,15 +311,15 @@ Object.defineProperty(exports, "CollapsibleTrigger", {
|
|
|
311
311
|
});
|
|
312
312
|
Object.defineProperty(exports, "AttachmentList", {
|
|
313
313
|
enumerable: true,
|
|
314
|
-
get: function () { return
|
|
314
|
+
get: function () { return chunkKKEBA6AG_js.AttachmentList; }
|
|
315
315
|
});
|
|
316
316
|
Object.defineProperty(exports, "CommentThread", {
|
|
317
317
|
enumerable: true,
|
|
318
|
-
get: function () { return
|
|
318
|
+
get: function () { return chunkKKEBA6AG_js.CommentThread; }
|
|
319
319
|
});
|
|
320
320
|
Object.defineProperty(exports, "_internal", {
|
|
321
321
|
enumerable: true,
|
|
322
|
-
get: function () { return
|
|
322
|
+
get: function () { return chunkKKEBA6AG_js._internal; }
|
|
323
323
|
});
|
|
324
324
|
Object.defineProperty(exports, "AddressForm", {
|
|
325
325
|
enumerable: true,
|
|
@@ -375,7 +375,7 @@ Object.defineProperty(exports, "Modal", {
|
|
|
375
375
|
});
|
|
376
376
|
Object.defineProperty(exports, "ContextMenu", {
|
|
377
377
|
enumerable: true,
|
|
378
|
-
get: function () { return
|
|
378
|
+
get: function () { return chunkGKSUYHGO_js.ContextMenu; }
|
|
379
379
|
});
|
|
380
380
|
Object.defineProperty(exports, "Accordion", {
|
|
381
381
|
enumerable: true,
|
|
@@ -503,59 +503,59 @@ Object.defineProperty(exports, "Spinner", {
|
|
|
503
503
|
});
|
|
504
504
|
Object.defineProperty(exports, "Calendar", {
|
|
505
505
|
enumerable: true,
|
|
506
|
-
get: function () { return
|
|
506
|
+
get: function () { return chunkDI3O3TS5_js.Calendar; }
|
|
507
507
|
});
|
|
508
508
|
Object.defineProperty(exports, "StatusIndicator", {
|
|
509
509
|
enumerable: true,
|
|
510
|
-
get: function () { return
|
|
510
|
+
get: function () { return chunkDI3O3TS5_js.StatusIndicator; }
|
|
511
511
|
});
|
|
512
512
|
Object.defineProperty(exports, "Timeline", {
|
|
513
513
|
enumerable: true,
|
|
514
|
-
get: function () { return
|
|
514
|
+
get: function () { return chunkDI3O3TS5_js.Timeline; }
|
|
515
515
|
});
|
|
516
516
|
Object.defineProperty(exports, "TimelineItem", {
|
|
517
517
|
enumerable: true,
|
|
518
|
-
get: function () { return
|
|
518
|
+
get: function () { return chunkDI3O3TS5_js.TimelineItem; }
|
|
519
519
|
});
|
|
520
520
|
Object.defineProperty(exports, "Tree", {
|
|
521
521
|
enumerable: true,
|
|
522
|
-
get: function () { return
|
|
522
|
+
get: function () { return chunkDI3O3TS5_js.Tree; }
|
|
523
523
|
});
|
|
524
524
|
Object.defineProperty(exports, "UserCell", {
|
|
525
525
|
enumerable: true,
|
|
526
|
-
get: function () { return
|
|
526
|
+
get: function () { return chunkDI3O3TS5_js.UserCell; }
|
|
527
527
|
});
|
|
528
528
|
Object.defineProperty(exports, "Avatar", {
|
|
529
529
|
enumerable: true,
|
|
530
|
-
get: function () { return
|
|
530
|
+
get: function () { return chunk56NJXIH7_js.Avatar; }
|
|
531
531
|
});
|
|
532
532
|
Object.defineProperty(exports, "AvatarGroup", {
|
|
533
533
|
enumerable: true,
|
|
534
|
-
get: function () { return
|
|
534
|
+
get: function () { return chunk56NJXIH7_js.AvatarGroup; }
|
|
535
535
|
});
|
|
536
536
|
Object.defineProperty(exports, "Menu", {
|
|
537
537
|
enumerable: true,
|
|
538
|
-
get: function () { return
|
|
538
|
+
get: function () { return chunk56NJXIH7_js.Menu; }
|
|
539
539
|
});
|
|
540
540
|
Object.defineProperty(exports, "Stat", {
|
|
541
541
|
enumerable: true,
|
|
542
|
-
get: function () { return
|
|
542
|
+
get: function () { return chunk56NJXIH7_js.Stat; }
|
|
543
543
|
});
|
|
544
544
|
Object.defineProperty(exports, "CommandPalette", {
|
|
545
545
|
enumerable: true,
|
|
546
|
-
get: function () { return
|
|
546
|
+
get: function () { return chunkQD7HBVS6_js.CommandPalette; }
|
|
547
547
|
});
|
|
548
548
|
Object.defineProperty(exports, "DateRangePicker", {
|
|
549
549
|
enumerable: true,
|
|
550
|
-
get: function () { return
|
|
550
|
+
get: function () { return chunkQD7HBVS6_js.DateRangePicker; }
|
|
551
551
|
});
|
|
552
552
|
Object.defineProperty(exports, "MultiCombobox", {
|
|
553
553
|
enumerable: true,
|
|
554
|
-
get: function () { return
|
|
554
|
+
get: function () { return chunkQD7HBVS6_js.MultiCombobox; }
|
|
555
555
|
});
|
|
556
556
|
Object.defineProperty(exports, "useCommandPalette", {
|
|
557
557
|
enumerable: true,
|
|
558
|
-
get: function () { return
|
|
558
|
+
get: function () { return chunkQD7HBVS6_js.useCommandPalette; }
|
|
559
559
|
});
|
|
560
560
|
Object.defineProperty(exports, "format", {
|
|
561
561
|
enumerable: true,
|
|
@@ -603,7 +603,7 @@ Object.defineProperty(exports, "useDismiss", {
|
|
|
603
603
|
});
|
|
604
604
|
Object.defineProperty(exports, "usePopoverPosition", {
|
|
605
605
|
enumerable: true,
|
|
606
|
-
get: function () { return
|
|
606
|
+
get: function () { return chunk7I5LFBQR_js.usePopoverPosition; }
|
|
607
607
|
});
|
|
608
608
|
Object.defineProperty(exports, "Portal", {
|
|
609
609
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import './chunk-BVQRDAR7.mjs';
|
|
3
2
|
import './chunk-CHVTPN3K.mjs';
|
|
3
|
+
import './chunk-BVQRDAR7.mjs';
|
|
4
4
|
import './chunk-XTHC46M2.mjs';
|
|
5
5
|
export { PermissionMatrix } from './chunk-QQ5PBPAB.mjs';
|
|
6
|
-
export { Combobox, DatePicker, FileUpload, MonthPicker, YearPicker } from './chunk-
|
|
7
|
-
export { Popover } from './chunk-
|
|
6
|
+
export { Combobox, DatePicker, FileUpload, MonthPicker, YearPicker } from './chunk-5DQXX64P.mjs';
|
|
7
|
+
export { Popover } from './chunk-FA6526ME.mjs';
|
|
8
8
|
export { ResizableGroup, ResizableHandle, ResizablePanel } from './chunk-ML5IYW5D.mjs';
|
|
9
9
|
export { ToastProvider, useToast } from './chunk-S6BMFQ6C.mjs';
|
|
10
10
|
export { Toggle, ToggleGroup, ToggleGroupItem } from './chunk-DHCJMYFD.mjs';
|
|
11
11
|
export { CheckboxGroup, MoneyInput, PhoneInput, Progress, ProgressCircle, RadioGroup, Slider, TagInput, TimePicker } from './chunk-GBHP5WAB.mjs';
|
|
12
|
-
export { Container, Divider, Grid, HStack, KeyValue, KeyValueRow, ListGroup, ListGroupItem, Stack, Stepper, Tab, TabList, TabPanel, Table, Tabs, Tooltip, VStack } from './chunk-
|
|
12
|
+
export { Container, Divider, Grid, HStack, KeyValue, KeyValueRow, ListGroup, ListGroupItem, Stack, Stepper, Tab, TabList, TabPanel, Table, Tabs, Tooltip, VStack } from './chunk-BGIX6G5V.mjs';
|
|
13
13
|
export { Logo } from './chunk-JMFDIN5R.mjs';
|
|
14
14
|
export { CategoryNav, Hero, Testimonial } from './chunk-X2DBGT7M.mjs';
|
|
15
|
-
export { Menubar } from './chunk-
|
|
16
|
-
export { NavigationMenu } from './chunk-
|
|
15
|
+
export { Menubar } from './chunk-QM7BCSCL.mjs';
|
|
16
|
+
export { NavigationMenu } from './chunk-VFZ2X655.mjs';
|
|
17
17
|
export { NotificationCenter } from './chunk-WQFNJVKU.mjs';
|
|
18
18
|
export { ConfirmDialog, DescriptionList, DescriptionListItem, DiffViewer, TransferList } from './chunk-CCZOHDVF.mjs';
|
|
19
19
|
export { BulkActionBar, FilterPanel, FilterSection, SortDropdown } from './chunk-XYKOXQUS.mjs';
|
|
20
20
|
export { ImageGallery, Lightbox } from './chunk-4Z63PIAZ.mjs';
|
|
21
|
-
export { HoverCard } from './chunk-
|
|
21
|
+
export { HoverCard } from './chunk-YSU3WFND.mjs';
|
|
22
22
|
export { InputOTP } from './chunk-IVL7P3MF.mjs';
|
|
23
23
|
export { Collapsible, CollapsibleContent, CollapsibleTrigger } from './chunk-2UV37SEN.mjs';
|
|
24
|
-
export { AttachmentList, CommentThread, _internal } from './chunk-
|
|
24
|
+
export { AttachmentList, CommentThread, _internal } from './chunk-UZTVQZIZ.mjs';
|
|
25
25
|
export { AddressForm, CartDrawer, CompareTable, FreeShippingProgress, OrderSummary, PriceDisplay, PromoCodeInput, QuantitySelector, Rating, VariantSelector, WishlistButton } from './chunk-RJMMD7CG.mjs';
|
|
26
26
|
export { Drawer, Modal } from './chunk-7AD35TKY.mjs';
|
|
27
27
|
import './chunk-U3JH4T3A.mjs';
|
|
28
|
-
export { ContextMenu } from './chunk-
|
|
28
|
+
export { ContextMenu } from './chunk-EJ263Y5X.mjs';
|
|
29
29
|
export { Accordion, AccordionItem, Breadcrumbs, DataTable, TablePagination, TableToolbar } from './chunk-PDLQUQK7.mjs';
|
|
30
30
|
export { Checkbox, FormField, Input, InputGroup, InputGroupAddon, Label, Radio, Select, Switch, Textarea } from './chunk-GVYZAOWU.mjs';
|
|
31
31
|
export { EmptyState, Kpi, NumberInput, Pagination } from './chunk-PWAIOLZH.mjs';
|
|
32
32
|
export { Alert, Badge, Card, CardBody, CardFooter, CardHeader, Chip, ChipGroup, ProductCard, Skeleton, Spinner } from './chunk-3MOVUNRA.mjs';
|
|
33
|
-
export { Calendar, StatusIndicator, Timeline, TimelineItem, Tree, UserCell } from './chunk-
|
|
34
|
-
export { Avatar, AvatarGroup, Menu, Stat } from './chunk-
|
|
35
|
-
export { CommandPalette, DateRangePicker, MultiCombobox, useCommandPalette } from './chunk-
|
|
33
|
+
export { Calendar, StatusIndicator, Timeline, TimelineItem, Tree, UserCell } from './chunk-S7M7GTUZ.mjs';
|
|
34
|
+
export { Avatar, AvatarGroup, Menu, Stat } from './chunk-OJNEGJ3P.mjs';
|
|
35
|
+
export { CommandPalette, DateRangePicker, MultiCombobox, useCommandPalette } from './chunk-5AU7WSVI.mjs';
|
|
36
36
|
export { format } from './chunk-IUL73666.mjs';
|
|
37
37
|
export { addMonths, buildMonthGrid, dateFormatPlaceholder, detectFormatFromLocale, formatDate, isSameDay, parseDate, resolveDateFormat, startOfMonth } from './chunk-N5D6AC6M.mjs';
|
|
38
38
|
export { useDismiss } from './chunk-6P2TKRTL.mjs';
|
|
39
|
-
export { usePopoverPosition } from './chunk-
|
|
39
|
+
export { usePopoverPosition } from './chunk-PRML6VEF.mjs';
|
|
40
40
|
export { Portal } from './chunk-FKBQYQQD.mjs';
|
|
41
41
|
export { BRAND_DEFAULTS, configureBrand, getBrand, resetBrand } from './chunk-5GEWIK4T.mjs';
|
|
42
42
|
export { AppShell, PageHeader } from './chunk-B4AIJWH5.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@misael703/ui",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"description": "Generic React + TypeScript UI kit, optimized for Next.js. Tokens, accessible components, runtime-configurable theming via presets.",
|
|
5
5
|
"author": "Misael Ocas <misael.ocas@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/hooks/usePopoverPosition.ts"],"names":[],"mappings":";;;AAkCA,IAAM,MAAA,GAAS,CAAA;AAsBR,SAAS,kBAAA,CACd,SAAA,EACA,UAAA,EACA,EAAE,IAAA,EAAM,IAAA,GAAO,QAAA,EAAU,KAAA,GAAQ,QAAA,EAAU,MAAA,GAAS,CAAA,EAAG,gBAAA,GAAmB,OAAM,EAC/D;AACjB,EAAA,MAAM,CAAC,GAAA,EAAK,MAAM,CAAA,GAAU,KAAA,CAAA,QAAA,CAA0B;AAAA,IACpD,GAAA,EAAK,CAAA;AAAA,IACL,IAAA,EAAM,CAAA;AAAA,IACN,IAAA;AAAA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T","file":"chunk-GD7MI7OT.mjs","sourcesContent":["import * as React from 'react';\n\nexport type PopoverSide = 'top' | 'bottom' | 'left' | 'right';\nexport type PopoverAlign = 'start' | 'center' | 'end';\n\n/** Anything that can report its viewport rect: a DOM element or a virtual\n * anchor (e.g. a point under the cursor for a context menu). */\nexport interface VirtualElement {\n getBoundingClientRect: () => DOMRect;\n}\n\nexport interface UsePopoverPositionOptions {\n open: boolean;\n side?: PopoverSide;\n align?: PopoverAlign;\n offset?: number;\n /** Expose the anchor's width so the consumer can match it (comboboxes). */\n matchAnchorWidth?: boolean;\n}\n\nexport interface PopoverPosition {\n /** Viewport-relative coords (use with `position: fixed` in a body portal).\n * Fixed strategy stays correct inside transformed/fixed ancestors (e.g. a\n * Modal) and scroll containers; the hook recomputes on scroll/resize. */\n top: number;\n left: number;\n /** Side actually used after flipping; useful for arrow/animation origin. */\n side: PopoverSide;\n /** False until the first measure. Keep content `visibility: hidden` until true. */\n ready: boolean;\n /** Anchor width, only when `matchAnchorWidth` is set. */\n width?: number;\n}\n\nconst GUTTER = 8;\n\n/**\n * Positions a floating panel relative to an anchor, for panels portaled to\n * `document.body`. Computes viewport-relative coords from\n * `getBoundingClientRect()` (use with `position: fixed`), flips to the\n * opposite side when the preferred\n * side doesn't fit the viewport, clamps into the viewport, and recomputes\n * on scroll of *any* ancestor (capture-phase) and on resize\n * (rAF-coalesced). Listeners are torn down on close/unmount.\n *\n * The content must be mounted (it can be visually hidden) so its size can\n * be measured — gate visibility on the returned `ready` flag.\n *\n * ```tsx\n * const pos = usePopoverPosition(triggerRef, contentRef, { open, side: 'bottom' });\n * <Portal><div ref={contentRef} style={{\n * position: 'fixed', top: pos.top, left: pos.left,\n * visibility: pos.ready ? 'visible' : 'hidden',\n * }} /></Portal>\n * ```\n */\nexport function usePopoverPosition(\n anchorRef: React.RefObject<HTMLElement | VirtualElement | null>,\n contentRef: React.RefObject<HTMLElement | null>,\n { open, side = 'bottom', align = 'center', offset = 8, matchAnchorWidth = false }: UsePopoverPositionOptions,\n): PopoverPosition {\n const [pos, setPos] = React.useState<PopoverPosition>({\n top: 0,\n left: 0,\n side,\n ready: false,\n });\n\n const compute = React.useCallback((): void => {\n const anchorEl = anchorRef.current;\n const contentEl = contentRef.current;\n if (!anchorEl || !contentEl || typeof window === 'undefined') return;\n\n const a = anchorEl.getBoundingClientRect();\n const c = contentEl.getBoundingClientRect();\n const vw = window.innerWidth;\n const vh = window.innerHeight;\n\n let chosen: PopoverSide = side;\n if (side === 'bottom' && a.bottom + offset + c.height > vh && a.top - offset - c.height >= 0) {\n chosen = 'top';\n } else if (side === 'top' && a.top - offset - c.height < 0 && a.bottom + offset + c.height <= vh) {\n chosen = 'bottom';\n } else if (side === 'right' && a.right + offset + c.width > vw && a.left - offset - c.width >= 0) {\n chosen = 'left';\n } else if (side === 'left' && a.left - offset - c.width < 0 && a.right + offset + c.width <= vw) {\n chosen = 'right';\n }\n\n let top = 0;\n let left = 0;\n if (chosen === 'bottom' || chosen === 'top') {\n top = chosen === 'bottom' ? a.bottom + offset : a.top - c.height - offset;\n left =\n align === 'start' ? a.left\n : align === 'end' ? a.right - c.width\n : a.left + (a.width - c.width) / 2;\n } else {\n left = chosen === 'right' ? a.right + offset : a.left - c.width - offset;\n top =\n align === 'start' ? a.top\n : align === 'end' ? a.bottom - c.height\n : a.top + (a.height - c.height) / 2;\n }\n\n left = Math.max(GUTTER, Math.min(left, vw - c.width - GUTTER));\n top = Math.max(GUTTER, Math.min(top, vh - c.height - GUTTER));\n\n setPos({\n top,\n left,\n side: chosen,\n ready: true,\n width: matchAnchorWidth ? a.width : undefined,\n });\n }, [anchorRef, contentRef, side, align, offset, matchAnchorWidth]);\n\n React.useEffect(() => {\n if (!open) {\n setPos((p) => (p.ready ? { ...p, ready: false } : p));\n return;\n }\n // Portal is synchronous, so by the time this effect runs the content\n // node is committed and measurable — position immediately (no flicker,\n // and deterministic under test without a rAF dependency).\n compute();\n let raf = 0;\n const schedule = (): void => {\n cancelAnimationFrame(raf);\n raf = requestAnimationFrame(compute);\n };\n // Capture-phase: scroll doesn't bubble, so capture catches scrolling\n // from *any* ancestor (the table/card wrapper, not just window).\n window.addEventListener('scroll', schedule, { capture: true, passive: true });\n window.addEventListener('resize', schedule, { passive: true });\n return () => {\n cancelAnimationFrame(raf);\n window.removeEventListener('scroll', schedule, { capture: true });\n window.removeEventListener('resize', schedule);\n };\n }, [open, compute]);\n\n return pos;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/hooks/usePopoverPosition.ts"],"names":["React"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,IAAM,MAAA,GAAS,CAAA;AAsBR,SAAS,kBAAA,CACd,SAAA,EACA,UAAA,EACA,EAAE,IAAA,EAAM,IAAA,GAAO,QAAA,EAAU,KAAA,GAAQ,QAAA,EAAU,MAAA,GAAS,CAAA,EAAG,gBAAA,GAAmB,OAAM,EAC/D;AACjB,EAAA,MAAM,CAAC,GAAA,EAAK,MAAM,CAAA,GAAUA,gBAAA,CAAA,QAAA,CAA0B;AAAA,IACpD,GAAA,EAAK,CAAA;AAAA,IACL,IAAA,EAAM,CAAA;AAAA,IACN,IAAA;AAAA,IACA,KAAA,EAAO;AAAA,GACR,CAAA;AAED,EAAA,MAAM,OAAA,GAAgBA,6BAAY,MAAY;AAC5C,IAAA,MAAM,WAAW,SAAA,CAAU,OAAA;AAC3B,IAAA,MAAM,YAAY,UAAA,CAAW,OAAA;AAC7B,IAAA,IAAI,CAAC,QAAA,IAAY,CAAC,SAAA,IAAa,OAAO,WAAW,WAAA,EAAa;AAE9D,IAAA,MAAM,CAAA,GAAI,SAAS,qBAAA,EAAsB;AACzC,IAAA,MAAM,CAAA,GAAI,UAAU,qBAAA,EAAsB;AAC1C,IAAA,MAAM,KAAK,MAAA,CAAO,UAAA;AAClB,IAAA,MAAM,KAAK,MAAA,CAAO,WAAA;AAElB,IAAA,IAAI,MAAA,GAAsB,IAAA;AAC1B,I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,EAAO,KAAA,EAAM,GAAI,CAAE,CAAA;AACpD,MAAA;AAAA,IACF;AAIA,IAAA,OAAA,EAAQ;AACR,IAAA,IAAI,GAAA,GAAM,CAAA;AACV,IAAA,MAAM,WAAW,MAAY;AAC3B,MAAA,oBAAA,CAAqB,GAAG,CAAA;AACxB,MAAA,GAAA,GAAM,sBAAsB,OAAO,CAAA;AAAA,IACrC,CAAA;AAGA,IAAA,MAAA,CAAO,gBAAA,CAAiB,UAAU,QAAA,EAAU,EAAE,SAAS,IAAA,EAAM,OAAA,EAAS,MAAM,CAAA;AAC5E,IAAA,MAAA,CAAO,iBAAiB,QAAA,EAAU,QAAA,EAAU,EAAE,OAAA,EAAS,MAAM,CAAA;AAC7D,IAAA,OAAO,MAAM;AACX,MAAA,oBAAA,CAAqB,GAAG,CAAA;AACxB,MAAA,MAAA,CAAO,oBAAoB,QAAA,EAAU,QAAA,EAAU,EAAE,OAAA,EAAS,MAAM,CAAA;AAChE,MAAA,MAAA,CAAO,mBAAA,CAAoB,UAAU,QAAQ,CAAA;AAAA,IAC/C,CAAA;AAAA,EACF,CAAA,EAAG,CAAC,IAAA,EAAM,OAAO,CAAC,CAAA;AAElB,EAAA,OAAO,GAAA;AACT","file":"chunk-SW3ACUKK.js","sourcesContent":["import * as React from 'react';\n\nexport type PopoverSide = 'top' | 'bottom' | 'left' | 'right';\nexport type PopoverAlign = 'start' | 'center' | 'end';\n\n/** Anything that can report its viewport rect: a DOM element or a virtual\n * anchor (e.g. a point under the cursor for a context menu). */\nexport interface VirtualElement {\n getBoundingClientRect: () => DOMRect;\n}\n\nexport interface UsePopoverPositionOptions {\n open: boolean;\n side?: PopoverSide;\n align?: PopoverAlign;\n offset?: number;\n /** Expose the anchor's width so the consumer can match it (comboboxes). */\n matchAnchorWidth?: boolean;\n}\n\nexport interface PopoverPosition {\n /** Viewport-relative coords (use with `position: fixed` in a body portal).\n * Fixed strategy stays correct inside transformed/fixed ancestors (e.g. a\n * Modal) and scroll containers; the hook recomputes on scroll/resize. */\n top: number;\n left: number;\n /** Side actually used after flipping; useful for arrow/animation origin. */\n side: PopoverSide;\n /** False until the first measure. Keep content `visibility: hidden` until true. */\n ready: boolean;\n /** Anchor width, only when `matchAnchorWidth` is set. */\n width?: number;\n}\n\nconst GUTTER = 8;\n\n/**\n * Positions a floating panel relative to an anchor, for panels portaled to\n * `document.body`. Computes viewport-relative coords from\n * `getBoundingClientRect()` (use with `position: fixed`), flips to the\n * opposite side when the preferred\n * side doesn't fit the viewport, clamps into the viewport, and recomputes\n * on scroll of *any* ancestor (capture-phase) and on resize\n * (rAF-coalesced). Listeners are torn down on close/unmount.\n *\n * The content must be mounted (it can be visually hidden) so its size can\n * be measured — gate visibility on the returned `ready` flag.\n *\n * ```tsx\n * const pos = usePopoverPosition(triggerRef, contentRef, { open, side: 'bottom' });\n * <Portal><div ref={contentRef} style={{\n * position: 'fixed', top: pos.top, left: pos.left,\n * visibility: pos.ready ? 'visible' : 'hidden',\n * }} /></Portal>\n * ```\n */\nexport function usePopoverPosition(\n anchorRef: React.RefObject<HTMLElement | VirtualElement | null>,\n contentRef: React.RefObject<HTMLElement | null>,\n { open, side = 'bottom', align = 'center', offset = 8, matchAnchorWidth = false }: UsePopoverPositionOptions,\n): PopoverPosition {\n const [pos, setPos] = React.useState<PopoverPosition>({\n top: 0,\n left: 0,\n side,\n ready: false,\n });\n\n const compute = React.useCallback((): void => {\n const anchorEl = anchorRef.current;\n const contentEl = contentRef.current;\n if (!anchorEl || !contentEl || typeof window === 'undefined') return;\n\n const a = anchorEl.getBoundingClientRect();\n const c = contentEl.getBoundingClientRect();\n const vw = window.innerWidth;\n const vh = window.innerHeight;\n\n let chosen: PopoverSide = side;\n if (side === 'bottom' && a.bottom + offset + c.height > vh && a.top - offset - c.height >= 0) {\n chosen = 'top';\n } else if (side === 'top' && a.top - offset - c.height < 0 && a.bottom + offset + c.height <= vh) {\n chosen = 'bottom';\n } else if (side === 'right' && a.right + offset + c.width > vw && a.left - offset - c.width >= 0) {\n chosen = 'left';\n } else if (side === 'left' && a.left - offset - c.width < 0 && a.right + offset + c.width <= vw) {\n chosen = 'right';\n }\n\n let top = 0;\n let left = 0;\n if (chosen === 'bottom' || chosen === 'top') {\n top = chosen === 'bottom' ? a.bottom + offset : a.top - c.height - offset;\n left =\n align === 'start' ? a.left\n : align === 'end' ? a.right - c.width\n : a.left + (a.width - c.width) / 2;\n } else {\n left = chosen === 'right' ? a.right + offset : a.left - c.width - offset;\n top =\n align === 'start' ? a.top\n : align === 'end' ? a.bottom - c.height\n : a.top + (a.height - c.height) / 2;\n }\n\n left = Math.max(GUTTER, Math.min(left, vw - c.width - GUTTER));\n top = Math.max(GUTTER, Math.min(top, vh - c.height - GUTTER));\n\n setPos({\n top,\n left,\n side: chosen,\n ready: true,\n width: matchAnchorWidth ? a.width : undefined,\n });\n }, [anchorRef, contentRef, side, align, offset, matchAnchorWidth]);\n\n React.useEffect(() => {\n if (!open) {\n setPos((p) => (p.ready ? { ...p, ready: false } : p));\n return;\n }\n // Portal is synchronous, so by the time this effect runs the content\n // node is committed and measurable — position immediately (no flicker,\n // and deterministic under test without a rAF dependency).\n compute();\n let raf = 0;\n const schedule = (): void => {\n cancelAnimationFrame(raf);\n raf = requestAnimationFrame(compute);\n };\n // Capture-phase: scroll doesn't bubble, so capture catches scrolling\n // from *any* ancestor (the table/card wrapper, not just window).\n window.addEventListener('scroll', schedule, { capture: true, passive: true });\n window.addEventListener('resize', schedule, { passive: true });\n return () => {\n cancelAnimationFrame(raf);\n window.removeEventListener('scroll', schedule, { capture: true });\n window.removeEventListener('resize', schedule);\n };\n }, [open, compute]);\n\n return pos;\n}\n"]}
|