@mieweb/ui 0.7.1-dev.9 → 0.7.2-dev.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 (188) hide show
  1. package/dist/ag-grid.cjs +5 -5
  2. package/dist/ag-grid.js +1 -1
  3. package/dist/{chunk-XCVBCY7L.cjs → chunk-26DPQUSB.cjs} +4 -4
  4. package/dist/{chunk-XCVBCY7L.cjs.map → chunk-26DPQUSB.cjs.map} +1 -1
  5. package/dist/{chunk-YTLTI5Q2.js → chunk-3D4ITDLO.js} +3 -3
  6. package/dist/{chunk-YTLTI5Q2.js.map → chunk-3D4ITDLO.js.map} +1 -1
  7. package/dist/{chunk-KZ7QKUJS.cjs → chunk-3IAA3KCE.cjs} +13 -4
  8. package/dist/chunk-3IAA3KCE.cjs.map +1 -0
  9. package/dist/chunk-3PXOIAF6.js +3 -0
  10. package/dist/{chunk-DHKYGVP7.js.map → chunk-3PXOIAF6.js.map} +1 -1
  11. package/dist/{chunk-7OIUA7PW.js → chunk-3SRBIXQX.js} +9 -9
  12. package/dist/{chunk-7OIUA7PW.js.map → chunk-3SRBIXQX.js.map} +1 -1
  13. package/dist/{chunk-7V6SUOBV.js → chunk-3YSIZ2CK.js} +13 -4
  14. package/dist/chunk-3YSIZ2CK.js.map +1 -0
  15. package/dist/{chunk-3OME4UHL.cjs → chunk-54OW6ZPL.cjs} +99 -3
  16. package/dist/chunk-54OW6ZPL.cjs.map +1 -0
  17. package/dist/{chunk-IVDIT3TJ.js → chunk-5BDCQBYW.js} +3 -3
  18. package/dist/{chunk-IVDIT3TJ.js.map → chunk-5BDCQBYW.js.map} +1 -1
  19. package/dist/{chunk-5PHGIWDN.cjs → chunk-6ECKH4DJ.cjs} +3 -3
  20. package/dist/{chunk-5PHGIWDN.cjs.map → chunk-6ECKH4DJ.cjs.map} +1 -1
  21. package/dist/{chunk-2GQ7VPCS.cjs → chunk-6J7UGYT5.cjs} +6 -6
  22. package/dist/{chunk-2GQ7VPCS.cjs.map → chunk-6J7UGYT5.cjs.map} +1 -1
  23. package/dist/{chunk-HIAUNNOW.cjs → chunk-AIJAFPGJ.cjs} +3 -3
  24. package/dist/{chunk-HIAUNNOW.cjs.map → chunk-AIJAFPGJ.cjs.map} +1 -1
  25. package/dist/{chunk-BS5NOKZD.js → chunk-AQ564XO7.js} +5 -5
  26. package/dist/chunk-AQ564XO7.js.map +1 -0
  27. package/dist/{chunk-JJNCQMR5.js → chunk-BMRQ4VME.js} +3 -3
  28. package/dist/{chunk-JJNCQMR5.js.map → chunk-BMRQ4VME.js.map} +1 -1
  29. package/dist/{chunk-REPZI2YO.js → chunk-BMSG4NBH.js} +3 -3
  30. package/dist/{chunk-REPZI2YO.js.map → chunk-BMSG4NBH.js.map} +1 -1
  31. package/dist/{chunk-QA6ZDHFP.js → chunk-BOOJDRJO.js} +35 -11
  32. package/dist/chunk-BOOJDRJO.js.map +1 -0
  33. package/dist/{chunk-34LGPMO4.js → chunk-DLBV42JD.js} +3 -3
  34. package/dist/{chunk-34LGPMO4.js.map → chunk-DLBV42JD.js.map} +1 -1
  35. package/dist/{chunk-2YDKLURF.js → chunk-DWIF6VXZ.js} +99 -3
  36. package/dist/chunk-DWIF6VXZ.js.map +1 -0
  37. package/dist/{chunk-KQGGKE36.js → chunk-EGWWTIWS.js} +118 -74
  38. package/dist/chunk-EGWWTIWS.js.map +1 -0
  39. package/dist/{chunk-IXWRD4AP.js → chunk-EKRT7K2K.js} +3 -3
  40. package/dist/{chunk-IXWRD4AP.js.map → chunk-EKRT7K2K.js.map} +1 -1
  41. package/dist/{chunk-MHD5HZ4X.js → chunk-FDV7EQWH.js} +3 -3
  42. package/dist/{chunk-MHD5HZ4X.js.map → chunk-FDV7EQWH.js.map} +1 -1
  43. package/dist/{chunk-STCRP652.cjs → chunk-FKLUSYFP.cjs} +4 -4
  44. package/dist/{chunk-STCRP652.cjs.map → chunk-FKLUSYFP.cjs.map} +1 -1
  45. package/dist/{chunk-DKICBJTM.js → chunk-HIDV32ZX.js} +4 -4
  46. package/dist/{chunk-DKICBJTM.js.map → chunk-HIDV32ZX.js.map} +1 -1
  47. package/dist/{chunk-XPNKDFRL.js → chunk-I3WGZPI6.js} +3 -3
  48. package/dist/{chunk-XPNKDFRL.js.map → chunk-I3WGZPI6.js.map} +1 -1
  49. package/dist/{chunk-62TFTZWT.cjs → chunk-IJYTASQQ.cjs} +5 -5
  50. package/dist/{chunk-62TFTZWT.cjs.map → chunk-IJYTASQQ.cjs.map} +1 -1
  51. package/dist/{chunk-SAJSA4TS.js → chunk-LMBXJZLG.js} +8 -4
  52. package/dist/chunk-LMBXJZLG.js.map +1 -0
  53. package/dist/{chunk-CPUDOVWH.cjs → chunk-MJWFNV3L.cjs} +12 -8
  54. package/dist/chunk-MJWFNV3L.cjs.map +1 -0
  55. package/dist/{chunk-ZDEYV373.cjs → chunk-MYFZYUPR.cjs} +35 -11
  56. package/dist/chunk-MYFZYUPR.cjs.map +1 -0
  57. package/dist/{chunk-QNUPTRW7.js → chunk-NGLI2MSM.js} +24 -14
  58. package/dist/chunk-NGLI2MSM.js.map +1 -0
  59. package/dist/{chunk-PGETZ2FP.cjs → chunk-OAHORW4N.cjs} +120 -76
  60. package/dist/chunk-OAHORW4N.cjs.map +1 -0
  61. package/dist/{chunk-G45PAVQI.js → chunk-P6L74SKG.js} +4 -4
  62. package/dist/{chunk-G45PAVQI.js.map → chunk-P6L74SKG.js.map} +1 -1
  63. package/dist/chunk-PAM5UUBL.cjs +740 -0
  64. package/dist/{chunk-UTYUT5YY.cjs.map → chunk-PAM5UUBL.cjs.map} +1 -1
  65. package/dist/{chunk-JY4U2QWO.cjs → chunk-PLMXN23Q.cjs} +5 -5
  66. package/dist/chunk-PLMXN23Q.cjs.map +1 -0
  67. package/dist/{chunk-PNJAFZDC.cjs → chunk-Q5VBO3I5.cjs} +30 -20
  68. package/dist/chunk-Q5VBO3I5.cjs.map +1 -0
  69. package/dist/{chunk-XD6GRTH2.cjs → chunk-QI2SB6U3.cjs} +7 -7
  70. package/dist/{chunk-XD6GRTH2.cjs.map → chunk-QI2SB6U3.cjs.map} +1 -1
  71. package/dist/{chunk-6XGESZ4S.js → chunk-QYSUYB3S.js} +12 -8
  72. package/dist/chunk-QYSUYB3S.js.map +1 -0
  73. package/dist/{chunk-Y5F2OASC.cjs → chunk-RBS3GHDZ.cjs} +6 -6
  74. package/dist/{chunk-Y5F2OASC.cjs.map → chunk-RBS3GHDZ.cjs.map} +1 -1
  75. package/dist/{chunk-NGPEXCC7.cjs → chunk-RS5VA6QU.cjs} +8 -4
  76. package/dist/chunk-RS5VA6QU.cjs.map +1 -0
  77. package/dist/{chunk-YXHX2DAK.cjs → chunk-RYQ3S3KO.cjs} +5 -5
  78. package/dist/{chunk-YXHX2DAK.cjs.map → chunk-RYQ3S3KO.cjs.map} +1 -1
  79. package/dist/{chunk-QKKYMNR2.js → chunk-RZJXCI53.js} +189 -202
  80. package/dist/chunk-RZJXCI53.js.map +1 -0
  81. package/dist/{chunk-ET5JGGVL.js → chunk-TNUL4LGG.js} +5 -5
  82. package/dist/{chunk-ET5JGGVL.js.map → chunk-TNUL4LGG.js.map} +1 -1
  83. package/dist/{chunk-C2NNNOSU.cjs → chunk-VVI32P7L.cjs} +4 -4
  84. package/dist/{chunk-C2NNNOSU.cjs.map → chunk-VVI32P7L.cjs.map} +1 -1
  85. package/dist/{chunk-X732DPW4.cjs → chunk-VWCMOWGH.cjs} +77 -77
  86. package/dist/{chunk-X732DPW4.cjs.map → chunk-VWCMOWGH.cjs.map} +1 -1
  87. package/dist/{chunk-HEV52I7A.cjs → chunk-XS35KPBZ.cjs} +190 -202
  88. package/dist/chunk-XS35KPBZ.cjs.map +1 -0
  89. package/dist/{chunk-EFEKAPS2.cjs → chunk-YVL3XATO.cjs} +3 -3
  90. package/dist/{chunk-EFEKAPS2.cjs.map → chunk-YVL3XATO.cjs.map} +1 -1
  91. package/dist/{chunk-EJPV3QY3.js → chunk-YXCE2HSK.js} +3 -3
  92. package/dist/{chunk-EJPV3QY3.js.map → chunk-YXCE2HSK.js.map} +1 -1
  93. package/dist/{chunk-OJEXXH5D.cjs → chunk-ZBI52NP2.cjs} +4 -4
  94. package/dist/{chunk-OJEXXH5D.cjs.map → chunk-ZBI52NP2.cjs.map} +1 -1
  95. package/dist/components/Autocomplete/index.cjs +4 -4
  96. package/dist/components/Autocomplete/index.js +3 -3
  97. package/dist/components/Badge/index.cjs +3 -3
  98. package/dist/components/Badge/index.js +1 -1
  99. package/dist/components/Card/index.cjs +15 -15
  100. package/dist/components/Card/index.d.cts +8 -3
  101. package/dist/components/Card/index.d.ts +8 -3
  102. package/dist/components/Card/index.js +1 -1
  103. package/dist/components/CountryCodeDropdown/index.cjs +5 -5
  104. package/dist/components/CountryCodeDropdown/index.js +2 -2
  105. package/dist/components/DateInput/index.cjs +4 -4
  106. package/dist/components/DateInput/index.d.cts +3 -1
  107. package/dist/components/DateInput/index.d.ts +3 -1
  108. package/dist/components/DateInput/index.js +3 -3
  109. package/dist/components/Dropdown/index.cjs +9 -9
  110. package/dist/components/Dropdown/index.d.cts +1 -1
  111. package/dist/components/Dropdown/index.d.ts +1 -1
  112. package/dist/components/Dropdown/index.js +3 -3
  113. package/dist/components/Input/index.cjs +3 -3
  114. package/dist/components/Input/index.js +1 -1
  115. package/dist/components/Label/index.cjs +3 -3
  116. package/dist/components/Label/index.js +1 -1
  117. package/dist/components/MediaEditor/index.cjs +9 -9
  118. package/dist/components/MediaEditor/index.js +4 -4
  119. package/dist/components/PhoneInput/index.cjs +4 -4
  120. package/dist/components/PhoneInput/index.js +2 -2
  121. package/dist/components/RichTextEditor/index.cjs +7 -7
  122. package/dist/components/RichTextEditor/index.js +4 -4
  123. package/dist/components/Select/index.cjs +4 -4
  124. package/dist/components/Select/index.js +2 -2
  125. package/dist/components/Sheet/index.cjs +10 -10
  126. package/dist/components/Sheet/index.d.cts +1 -1
  127. package/dist/components/Sheet/index.d.ts +1 -1
  128. package/dist/components/Sheet/index.js +1 -1
  129. package/dist/components/SuperChat/index.cjs +17 -17
  130. package/dist/components/SuperChat/index.d.cts +4 -4
  131. package/dist/components/SuperChat/index.d.ts +4 -4
  132. package/dist/components/SuperChat/index.js +6 -6
  133. package/dist/components/SuperChat/plugins/index.cjs +4 -4
  134. package/dist/components/SuperChat/plugins/index.d.cts +3 -3
  135. package/dist/components/SuperChat/plugins/index.d.ts +3 -3
  136. package/dist/components/SuperChat/plugins/index.js +3 -3
  137. package/dist/components/Switch/index.cjs +4 -4
  138. package/dist/components/Switch/index.js +1 -1
  139. package/dist/components/Table/index.cjs +9 -9
  140. package/dist/components/Table/index.js +1 -1
  141. package/dist/components/Text/index.cjs +4 -4
  142. package/dist/components/Text/index.d.cts +1 -1
  143. package/dist/components/Text/index.d.ts +1 -1
  144. package/dist/components/Text/index.js +1 -1
  145. package/dist/datavis.cjs +2 -2
  146. package/dist/datavis.js +1 -1
  147. package/dist/esheet.cjs +12 -12
  148. package/dist/esheet.js +9 -9
  149. package/dist/hooks/index.cjs +2 -2
  150. package/dist/hooks/index.d.cts +1 -1
  151. package/dist/hooks/index.d.ts +1 -1
  152. package/dist/hooks/index.js +1 -1
  153. package/dist/index.cjs +2294 -776
  154. package/dist/index.cjs.map +1 -1
  155. package/dist/index.d.cts +104 -17
  156. package/dist/index.d.ts +104 -17
  157. package/dist/index.js +860 -67
  158. package/dist/index.js.map +1 -1
  159. package/dist/styles.css +1 -1
  160. package/dist/tailwind-preset.cjs +4 -4
  161. package/dist/tailwind-preset.js +1 -1
  162. package/dist/{types-BYnLjEFg.d.cts → types-B2RLmdVd.d.cts} +3 -1
  163. package/dist/{types-BYnLjEFg.d.ts → types-B2RLmdVd.d.ts} +3 -1
  164. package/dist/{types-CyCwYBlr.d.ts → types-BoTeTPdH.d.ts} +1 -1
  165. package/dist/{types-CBh8Zlje.d.cts → types-DyIB9HYT.d.cts} +1 -1
  166. package/dist/{useAnchoredPosition-nXdSFKHf.d.ts → useAnchoredPosition-C7PNglzD.d.cts} +6 -2
  167. package/dist/{useAnchoredPosition-nXdSFKHf.d.cts → useAnchoredPosition-C7PNglzD.d.ts} +6 -2
  168. package/package.json +6 -6
  169. package/dist/chunk-2YDKLURF.js.map +0 -1
  170. package/dist/chunk-3OME4UHL.cjs.map +0 -1
  171. package/dist/chunk-6XGESZ4S.js.map +0 -1
  172. package/dist/chunk-7V6SUOBV.js.map +0 -1
  173. package/dist/chunk-BS5NOKZD.js.map +0 -1
  174. package/dist/chunk-CPUDOVWH.cjs.map +0 -1
  175. package/dist/chunk-DHKYGVP7.js +0 -3
  176. package/dist/chunk-HEV52I7A.cjs.map +0 -1
  177. package/dist/chunk-JY4U2QWO.cjs.map +0 -1
  178. package/dist/chunk-KQGGKE36.js.map +0 -1
  179. package/dist/chunk-KZ7QKUJS.cjs.map +0 -1
  180. package/dist/chunk-NGPEXCC7.cjs.map +0 -1
  181. package/dist/chunk-PGETZ2FP.cjs.map +0 -1
  182. package/dist/chunk-PNJAFZDC.cjs.map +0 -1
  183. package/dist/chunk-QA6ZDHFP.js.map +0 -1
  184. package/dist/chunk-QKKYMNR2.js.map +0 -1
  185. package/dist/chunk-QNUPTRW7.js.map +0 -1
  186. package/dist/chunk-SAJSA4TS.js.map +0 -1
  187. package/dist/chunk-UTYUT5YY.cjs +0 -240
  188. package/dist/chunk-ZDEYV373.cjs.map +0 -1
@@ -1,240 +0,0 @@
1
- 'use strict';
2
-
3
- var lucideReact = require('lucide-react');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "AlertCircle", {
8
- enumerable: true,
9
- get: function () { return lucideReact.AlertCircle; }
10
- });
11
- Object.defineProperty(exports, "AlertTriangle", {
12
- enumerable: true,
13
- get: function () { return lucideReact.AlertTriangle; }
14
- });
15
- Object.defineProperty(exports, "ArrowLeft", {
16
- enumerable: true,
17
- get: function () { return lucideReact.ArrowLeft; }
18
- });
19
- Object.defineProperty(exports, "Ban", {
20
- enumerable: true,
21
- get: function () { return lucideReact.Ban; }
22
- });
23
- Object.defineProperty(exports, "Bell", {
24
- enumerable: true,
25
- get: function () { return lucideReact.Bell; }
26
- });
27
- Object.defineProperty(exports, "Calendar", {
28
- enumerable: true,
29
- get: function () { return lucideReact.Calendar; }
30
- });
31
- Object.defineProperty(exports, "CalendarCheck", {
32
- enumerable: true,
33
- get: function () { return lucideReact.CalendarCheck; }
34
- });
35
- Object.defineProperty(exports, "Camera", {
36
- enumerable: true,
37
- get: function () { return lucideReact.Camera; }
38
- });
39
- Object.defineProperty(exports, "Check", {
40
- enumerable: true,
41
- get: function () { return lucideReact.Check; }
42
- });
43
- Object.defineProperty(exports, "CheckCircle", {
44
- enumerable: true,
45
- get: function () { return lucideReact.CheckCircle; }
46
- });
47
- Object.defineProperty(exports, "ChevronDown", {
48
- enumerable: true,
49
- get: function () { return lucideReact.ChevronDown; }
50
- });
51
- Object.defineProperty(exports, "ChevronRight", {
52
- enumerable: true,
53
- get: function () { return lucideReact.ChevronRight; }
54
- });
55
- Object.defineProperty(exports, "ChevronUp", {
56
- enumerable: true,
57
- get: function () { return lucideReact.ChevronUp; }
58
- });
59
- Object.defineProperty(exports, "ClipboardCheck", {
60
- enumerable: true,
61
- get: function () { return lucideReact.ClipboardCheck; }
62
- });
63
- Object.defineProperty(exports, "ClipboardList", {
64
- enumerable: true,
65
- get: function () { return lucideReact.ClipboardList; }
66
- });
67
- Object.defineProperty(exports, "ClipboardPlus", {
68
- enumerable: true,
69
- get: function () { return lucideReact.ClipboardPlus; }
70
- });
71
- Object.defineProperty(exports, "Clock", {
72
- enumerable: true,
73
- get: function () { return lucideReact.Clock; }
74
- });
75
- Object.defineProperty(exports, "Download", {
76
- enumerable: true,
77
- get: function () { return lucideReact.Download; }
78
- });
79
- Object.defineProperty(exports, "ExternalLink", {
80
- enumerable: true,
81
- get: function () { return lucideReact.ExternalLink; }
82
- });
83
- Object.defineProperty(exports, "Eye", {
84
- enumerable: true,
85
- get: function () { return lucideReact.Eye; }
86
- });
87
- Object.defineProperty(exports, "FileCheck", {
88
- enumerable: true,
89
- get: function () { return lucideReact.FileCheck; }
90
- });
91
- Object.defineProperty(exports, "FileHeart", {
92
- enumerable: true,
93
- get: function () { return lucideReact.FileHeart; }
94
- });
95
- Object.defineProperty(exports, "FilePlus", {
96
- enumerable: true,
97
- get: function () { return lucideReact.FilePlus; }
98
- });
99
- Object.defineProperty(exports, "FileText", {
100
- enumerable: true,
101
- get: function () { return lucideReact.FileText; }
102
- });
103
- Object.defineProperty(exports, "Globe", {
104
- enumerable: true,
105
- get: function () { return lucideReact.Globe; }
106
- });
107
- Object.defineProperty(exports, "GripVertical", {
108
- enumerable: true,
109
- get: function () { return lucideReact.GripVertical; }
110
- });
111
- Object.defineProperty(exports, "HandMetal", {
112
- enumerable: true,
113
- get: function () { return lucideReact.HandMetal; }
114
- });
115
- Object.defineProperty(exports, "HeartPulse", {
116
- enumerable: true,
117
- get: function () { return lucideReact.HeartPulse; }
118
- });
119
- Object.defineProperty(exports, "HelpCircle", {
120
- enumerable: true,
121
- get: function () { return lucideReact.HelpCircle; }
122
- });
123
- Object.defineProperty(exports, "History", {
124
- enumerable: true,
125
- get: function () { return lucideReact.History; }
126
- });
127
- Object.defineProperty(exports, "Image", {
128
- enumerable: true,
129
- get: function () { return lucideReact.Image; }
130
- });
131
- Object.defineProperty(exports, "Info", {
132
- enumerable: true,
133
- get: function () { return lucideReact.Info; }
134
- });
135
- Object.defineProperty(exports, "Link", {
136
- enumerable: true,
137
- get: function () { return lucideReact.Link; }
138
- });
139
- Object.defineProperty(exports, "Mail", {
140
- enumerable: true,
141
- get: function () { return lucideReact.Mail; }
142
- });
143
- Object.defineProperty(exports, "MoreHorizontal", {
144
- enumerable: true,
145
- get: function () { return lucideReact.MoreHorizontal; }
146
- });
147
- Object.defineProperty(exports, "MoreVertical", {
148
- enumerable: true,
149
- get: function () { return lucideReact.MoreVertical; }
150
- });
151
- Object.defineProperty(exports, "Paperclip", {
152
- enumerable: true,
153
- get: function () { return lucideReact.Paperclip; }
154
- });
155
- Object.defineProperty(exports, "Pencil", {
156
- enumerable: true,
157
- get: function () { return lucideReact.Pencil; }
158
- });
159
- Object.defineProperty(exports, "Phone", {
160
- enumerable: true,
161
- get: function () { return lucideReact.Phone; }
162
- });
163
- Object.defineProperty(exports, "Pill", {
164
- enumerable: true,
165
- get: function () { return lucideReact.Pill; }
166
- });
167
- Object.defineProperty(exports, "Plus", {
168
- enumerable: true,
169
- get: function () { return lucideReact.Plus; }
170
- });
171
- Object.defineProperty(exports, "Printer", {
172
- enumerable: true,
173
- get: function () { return lucideReact.Printer; }
174
- });
175
- Object.defineProperty(exports, "RefreshCw", {
176
- enumerable: true,
177
- get: function () { return lucideReact.RefreshCw; }
178
- });
179
- Object.defineProperty(exports, "Scan", {
180
- enumerable: true,
181
- get: function () { return lucideReact.Scan; }
182
- });
183
- Object.defineProperty(exports, "ScanLine", {
184
- enumerable: true,
185
- get: function () { return lucideReact.ScanLine; }
186
- });
187
- Object.defineProperty(exports, "Send", {
188
- enumerable: true,
189
- get: function () { return lucideReact.Send; }
190
- });
191
- Object.defineProperty(exports, "Share", {
192
- enumerable: true,
193
- get: function () { return lucideReact.Share; }
194
- });
195
- Object.defineProperty(exports, "Stethoscope", {
196
- enumerable: true,
197
- get: function () { return lucideReact.Stethoscope; }
198
- });
199
- Object.defineProperty(exports, "StickyNote", {
200
- enumerable: true,
201
- get: function () { return lucideReact.StickyNote; }
202
- });
203
- Object.defineProperty(exports, "TestTube2", {
204
- enumerable: true,
205
- get: function () { return lucideReact.TestTube2; }
206
- });
207
- Object.defineProperty(exports, "ThumbsDown", {
208
- enumerable: true,
209
- get: function () { return lucideReact.ThumbsDown; }
210
- });
211
- Object.defineProperty(exports, "ThumbsUp", {
212
- enumerable: true,
213
- get: function () { return lucideReact.ThumbsUp; }
214
- });
215
- Object.defineProperty(exports, "Trash2", {
216
- enumerable: true,
217
- get: function () { return lucideReact.Trash2; }
218
- });
219
- Object.defineProperty(exports, "Upload", {
220
- enumerable: true,
221
- get: function () { return lucideReact.Upload; }
222
- });
223
- Object.defineProperty(exports, "User", {
224
- enumerable: true,
225
- get: function () { return lucideReact.User; }
226
- });
227
- Object.defineProperty(exports, "Users", {
228
- enumerable: true,
229
- get: function () { return lucideReact.Users; }
230
- });
231
- Object.defineProperty(exports, "Wheat", {
232
- enumerable: true,
233
- get: function () { return lucideReact.Wheat; }
234
- });
235
- Object.defineProperty(exports, "X", {
236
- enumerable: true,
237
- get: function () { return lucideReact.X; }
238
- });
239
- //# sourceMappingURL=chunk-UTYUT5YY.cjs.map
240
- //# sourceMappingURL=chunk-UTYUT5YY.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/hooks/useAnchoredPosition.ts"],"names":["React"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,IAAM,YAAA,GAAoC;AAAA,EACxC,QAAA,EAAU,OAAA;AAAA,EACV,GAAA,EAAK,CAAA;AAAA,EACL,IAAA,EAAM,CAAA;AAAA,EACN,UAAA,EAAY,QAAA;AAAA,EACZ,MAAA,EAAQ,IAAA;AAAA;AAAA;AAAA;AAAA,EAIR,UAAA,EAAY;AACd,CAAA;AA6BO,SAAS,mBAAA,CAGd;AAAA,EACA,IAAA;AAAA,EACA,SAAA,GAAY,cAAA;AAAA,EACZ,MAAA,GAAS,CAAA;AAAA,EACT,UAAA,GAAa,KAAA;AAAA,EACb,aAAA,GAAgB,KAAA;AAAA,EAChB,eAAA,GAAkB,CAAA;AAAA,EAClB;AACF,CAAA,EAA8E;AAC5E,EAAA,MAAM,SAAA,GAAkBA,wBAAuB,IAAI,CAAA;AACnD,EAAA,MAAM,WAAA,GAAoBA,wBAAyB,IAAI,CAAA;AACvD,EAAA,MAAM,CAAC,KAAA,EAAO,QAAQ,CAAA,GAAUA,0BAA8B,YAAY,CAAA;AAC1E,EAAA,MAAM,CAAC,UAAA,EAAY,aAAa,CAAA,GAAUA,gBAAA,CAAA,QAAA;AAAA,IACxC,SAAA,CAAU,UAAA,CAAW,KAAK,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AAA,cAAA,EAAgB,UAAA,EAAW;AAAA,IAC7B,CAAA;AAAA,EACF,CAAA,EAAG,CAAC,IAAA,EAAM,MAAM,CAAC,CAAA;AAEjB,EAAA,OAAO,EAAE,SAAA,EAAW,WAAA,EAAa,KAAA,EAAO,YAAY,MAAA,EAAO;AAC7D","file":"chunk-ZDEYV373.cjs","sourcesContent":["'use client';\n\nimport * as React from 'react';\n\nexport type AnchoredPlacement =\n | 'bottom-start'\n | 'bottom-end'\n | 'bottom'\n | 'top-start'\n | 'top-end'\n | 'top';\n\nexport interface UseAnchoredPositionOptions {\n /** Whether the floating element is currently shown */\n open: boolean;\n /** Preferred placement relative to the anchor (flips when out of space) */\n placement?: AnchoredPlacement;\n /** Gap between the anchor and the floating element, in px */\n offset?: number;\n /** Force the floating element to the anchor's width */\n matchWidth?: boolean;\n /** Use the anchor's width as the floating element's minimum width */\n matchMinWidth?: boolean;\n /** Minimum distance from the viewport edges, in px */\n viewportPadding?: number;\n /**\n * Additional cap on the floating element's height, in px. The height is\n * always clamped to the available viewport space; this only lowers that\n * limit further (omitting it does not remove the viewport constraint).\n */\n maxHeight?: number;\n}\n\nexport interface UseAnchoredPositionReturn<\n TAnchor extends HTMLElement,\n TFloating extends HTMLElement,\n> {\n /** Attach to the element the popup is anchored to (trigger/input) */\n anchorRef: React.RefObject<TAnchor | null>;\n /** Attach to the floating element (menu/listbox/panel) */\n floatingRef: React.RefObject<TFloating | null>;\n /** Fixed-position style for the floating element — spread onto it */\n style: React.CSSProperties;\n /** Vertical side in use after flipping ('top' or 'bottom') */\n actualSide: 'top' | 'bottom';\n /** Recompute the position (e.g. after async content loads) */\n update: () => void;\n}\n\nconst HIDDEN_STYLE: React.CSSProperties = {\n position: 'fixed',\n top: 0,\n left: 0,\n visibility: 'hidden',\n zIndex: 9999,\n // Never let `transition-*` utilities animate top/left from the hidden\n // (0,0) mount position to the computed one (keyframe animations like\n // `animate-in` are unaffected).\n transition: 'none',\n};\n\n/**\n * Positions a floating element (dropdown menu, autocomplete listbox,\n * date-picker calendar, …) relative to an anchor using `position: fixed`,\n * so it is never clipped by `overflow: hidden` ancestors.\n *\n * Render the floating element through `createPortal(..., document.body)`\n * and spread the returned `style` onto it. The hook:\n * - flips vertically when there is not enough space on the preferred side\n * - clamps horizontally to the viewport\n * - constrains `maxHeight` to the available space (add `overflow-auto`)\n * - tracks scroll, resize, and anchor/content size changes while open\n *\n * @example\n * ```tsx\n * const { anchorRef, floatingRef, style } = useAnchoredPosition<\n * HTMLButtonElement,\n * HTMLDivElement\n * >({ open, placement: 'bottom-start' });\n *\n * <button ref={anchorRef} onClick={() => setOpen(!open)}>Open</button>\n * {open &&\n * createPortal(\n * <div ref={floatingRef} style={style} className=\"overflow-auto …\">…</div>,\n * document.body\n * )}\n * ```\n */\nexport function useAnchoredPosition<\n TAnchor extends HTMLElement = HTMLElement,\n TFloating extends HTMLElement = HTMLElement,\n>({\n open,\n placement = 'bottom-start',\n offset = 4,\n matchWidth = false,\n matchMinWidth = false,\n viewportPadding = 8,\n maxHeight,\n}: UseAnchoredPositionOptions): UseAnchoredPositionReturn<TAnchor, TFloating> {\n const anchorRef = React.useRef<TAnchor | null>(null);\n const floatingRef = React.useRef<TFloating | null>(null);\n const [style, setStyle] = React.useState<React.CSSProperties>(HIDDEN_STYLE);\n const [actualSide, setActualSide] = React.useState<'top' | 'bottom'>(\n placement.startsWith('top') ? 'top' : 'bottom'\n );\n\n const update = React.useCallback(() => {\n const anchor = anchorRef.current;\n const floating = floatingRef.current;\n if (!anchor || !floating) return;\n\n const rect = anchor.getBoundingClientRect();\n const viewportWidth = window.innerWidth;\n const viewportHeight = window.innerHeight;\n\n // Natural content size (scrollHeight so a previously applied maxHeight\n // doesn't skew the flip decision).\n const contentHeight = Math.min(\n floating.scrollHeight,\n maxHeight ?? Infinity\n );\n // With matchMinWidth the rendered width is at least the anchor's width,\n // even if offsetWidth was measured before minWidth applied.\n const floatingWidth = matchWidth\n ? rect.width\n : Math.max(floating.offsetWidth, matchMinWidth ? rect.width : 0);\n\n // --- Vertical: preferred side, flip when out of space -------------------\n const spaceBelow = viewportHeight - rect.bottom - offset - viewportPadding;\n const spaceAbove = rect.top - offset - viewportPadding;\n const preferTop = placement.startsWith('top');\n let side: 'top' | 'bottom';\n if (preferTop) {\n side =\n spaceAbove < contentHeight && spaceBelow > spaceAbove\n ? 'bottom'\n : 'top';\n } else {\n side =\n spaceBelow < contentHeight && spaceAbove > spaceBelow\n ? 'top'\n : 'bottom';\n }\n const availableHeight = Math.max(\n side === 'top' ? spaceAbove : spaceBelow,\n 0\n );\n\n // --- Horizontal: -start aligns left edges, -end aligns right edges ------\n const align = placement.endsWith('-start')\n ? 'left'\n : placement.endsWith('-end')\n ? 'right'\n : 'center';\n let left =\n align === 'left'\n ? rect.left\n : align === 'right'\n ? rect.right - floatingWidth\n : rect.left + rect.width / 2 - floatingWidth / 2;\n left = Math.min(\n Math.max(left, viewportPadding),\n Math.max(viewportWidth - floatingWidth - viewportPadding, viewportPadding)\n );\n\n setActualSide(side);\n setStyle({\n position: 'fixed',\n left,\n ...(side === 'top'\n ? { bottom: viewportHeight - rect.top + offset }\n : { top: rect.bottom + offset }),\n ...(matchWidth ? { width: rect.width } : {}),\n ...(matchMinWidth ? { minWidth: rect.width } : {}),\n maxHeight: Math.min(availableHeight, maxHeight ?? Infinity),\n zIndex: 9999,\n transition: 'none',\n });\n }, [\n matchMinWidth,\n matchWidth,\n maxHeight,\n offset,\n placement,\n viewportPadding,\n ]);\n\n // Position synchronously before paint when opening / re-rendering open.\n React.useLayoutEffect(() => {\n if (open) {\n update();\n } else {\n setStyle(HIDDEN_STYLE);\n }\n }, [open, update]);\n\n // Track scroll/resize and anchor/content size changes while open.\n React.useEffect(() => {\n if (!open) return;\n\n // Coalesce bursts (scroll/resize fire per event) into one layout\n // read + state update per frame.\n let frame = 0;\n const scheduleUpdate = () => {\n if (frame) return;\n frame = window.requestAnimationFrame(() => {\n frame = 0;\n update();\n });\n };\n\n window.addEventListener('scroll', scheduleUpdate, true);\n window.addEventListener('resize', scheduleUpdate);\n\n let resizeObserver: globalThis.ResizeObserver | undefined;\n if (typeof globalThis.ResizeObserver !== 'undefined') {\n resizeObserver = new globalThis.ResizeObserver(scheduleUpdate);\n if (anchorRef.current) resizeObserver.observe(anchorRef.current);\n if (floatingRef.current) resizeObserver.observe(floatingRef.current);\n }\n\n return () => {\n if (frame) window.cancelAnimationFrame(frame);\n window.removeEventListener('scroll', scheduleUpdate, true);\n window.removeEventListener('resize', scheduleUpdate);\n resizeObserver?.disconnect();\n };\n }, [open, update]);\n\n return { anchorRef, floatingRef, style, actualSide, update };\n}\n"]}