@yahoo/uds-v5-wip 0.0.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 (674) hide show
  1. package/dist/components/accordion.config.d.ts +2 -0
  2. package/dist/components/accordion.config.js +2 -0
  3. package/dist/components/accordion.d.ts +2 -0
  4. package/dist/components/accordion.js +2 -0
  5. package/dist/components/alert.config.d.ts +2 -0
  6. package/dist/components/alert.config.js +2 -0
  7. package/dist/components/alert.d.ts +2 -0
  8. package/dist/components/alert.js +2 -0
  9. package/dist/components/anchor.config.d.ts +2 -0
  10. package/dist/components/anchor.config.js +2 -0
  11. package/dist/components/anchor.d.ts +2 -0
  12. package/dist/components/anchor.js +2 -0
  13. package/dist/components/article.d.ts +2 -0
  14. package/dist/components/article.js +2 -0
  15. package/dist/components/aside.d.ts +2 -0
  16. package/dist/components/aside.js +2 -0
  17. package/dist/components/avatar-group.config.d.ts +2 -0
  18. package/dist/components/avatar-group.config.js +2 -0
  19. package/dist/components/avatar-group.d.ts +2 -0
  20. package/dist/components/avatar-group.js +2 -0
  21. package/dist/components/avatar.config.d.ts +2 -0
  22. package/dist/components/avatar.config.js +2 -0
  23. package/dist/components/avatar.d.ts +2 -0
  24. package/dist/components/avatar.js +2 -0
  25. package/dist/components/badge.config.d.ts +2 -0
  26. package/dist/components/badge.config.js +2 -0
  27. package/dist/components/badge.d.ts +2 -0
  28. package/dist/components/badge.js +2 -0
  29. package/dist/components/box.d.ts +2 -0
  30. package/dist/components/box.js +2 -0
  31. package/dist/components/breadcrumb.config.d.ts +2 -0
  32. package/dist/components/breadcrumb.config.js +2 -0
  33. package/dist/components/breadcrumb.d.ts +2 -0
  34. package/dist/components/breadcrumb.js +2 -0
  35. package/dist/components/button.config.d.ts +2 -0
  36. package/dist/components/button.config.js +2 -0
  37. package/dist/components/button.d.ts +2 -0
  38. package/dist/components/button.js +2 -0
  39. package/dist/components/card.config.d.ts +2 -0
  40. package/dist/components/card.config.js +2 -0
  41. package/dist/components/card.d.ts +2 -0
  42. package/dist/components/card.js +2 -0
  43. package/dist/components/collapsible.config.d.ts +2 -0
  44. package/dist/components/collapsible.config.js +2 -0
  45. package/dist/components/collapsible.d.ts +2 -0
  46. package/dist/components/collapsible.js +2 -0
  47. package/dist/components/command.config.d.ts +2 -0
  48. package/dist/components/command.config.js +2 -0
  49. package/dist/components/command.d.ts +2 -0
  50. package/dist/components/command.js +2 -0
  51. package/dist/components/control-color.config.d.ts +2 -0
  52. package/dist/components/control-color.config.js +2 -0
  53. package/dist/components/control-color.d.ts +2 -0
  54. package/dist/components/control-color.js +2 -0
  55. package/dist/components/control-curve.config.d.ts +2 -0
  56. package/dist/components/control-curve.config.js +2 -0
  57. package/dist/components/control-curve.d.ts +2 -0
  58. package/dist/components/control-curve.js +2 -0
  59. package/dist/components/control-folder.config.d.ts +2 -0
  60. package/dist/components/control-folder.config.js +2 -0
  61. package/dist/components/control-folder.d.ts +2 -0
  62. package/dist/components/control-folder.js +2 -0
  63. package/dist/components/control-group.config.d.ts +2 -0
  64. package/dist/components/control-group.config.js +2 -0
  65. package/dist/components/control-group.d.ts +2 -0
  66. package/dist/components/control-group.js +2 -0
  67. package/dist/components/control-knob.config.d.ts +2 -0
  68. package/dist/components/control-knob.config.js +2 -0
  69. package/dist/components/control-knob.d.ts +2 -0
  70. package/dist/components/control-knob.js +2 -0
  71. package/dist/components/control-panel.config.d.ts +2 -0
  72. package/dist/components/control-panel.config.js +2 -0
  73. package/dist/components/control-panel.d.ts +2 -0
  74. package/dist/components/control-panel.js +2 -0
  75. package/dist/components/control-select.config.d.ts +2 -0
  76. package/dist/components/control-select.config.js +2 -0
  77. package/dist/components/control-select.d.ts +2 -0
  78. package/dist/components/control-select.js +2 -0
  79. package/dist/components/control-slider.config.d.ts +2 -0
  80. package/dist/components/control-slider.config.js +2 -0
  81. package/dist/components/control-slider.d.ts +2 -0
  82. package/dist/components/control-slider.js +2 -0
  83. package/dist/components/control-spring.config.d.ts +2 -0
  84. package/dist/components/control-spring.config.js +2 -0
  85. package/dist/components/control-spring.d.ts +2 -0
  86. package/dist/components/control-spring.js +2 -0
  87. package/dist/components/control-stepper.config.d.ts +2 -0
  88. package/dist/components/control-stepper.config.js +2 -0
  89. package/dist/components/control-stepper.d.ts +2 -0
  90. package/dist/components/control-stepper.js +2 -0
  91. package/dist/components/control-toggle.config.d.ts +2 -0
  92. package/dist/components/control-toggle.config.js +2 -0
  93. package/dist/components/control-toggle.d.ts +2 -0
  94. package/dist/components/control-toggle.js +2 -0
  95. package/dist/components/dist/_slots.js +8 -0
  96. package/dist/components/dist/accordion.config.d.ts +432 -0
  97. package/dist/components/dist/accordion.config.js +81 -0
  98. package/dist/components/dist/accordion.d.ts +454 -0
  99. package/dist/components/dist/accordion.js +60 -0
  100. package/dist/components/dist/alert.config.d.ts +220 -0
  101. package/dist/components/dist/alert.config.js +54 -0
  102. package/dist/components/dist/alert.d.ts +231 -0
  103. package/dist/components/dist/alert.js +16 -0
  104. package/dist/components/dist/anchor.config.d.ts +251 -0
  105. package/dist/components/dist/anchor.config.js +22 -0
  106. package/dist/components/dist/anchor.d.ts +262 -0
  107. package/dist/components/dist/anchor.js +9 -0
  108. package/dist/components/dist/article.d.ts +12 -0
  109. package/dist/components/dist/article.js +9 -0
  110. package/dist/components/dist/aside.d.ts +12 -0
  111. package/dist/components/dist/aside.js +9 -0
  112. package/dist/components/dist/avatar-group.config.d.ts +316 -0
  113. package/dist/components/dist/avatar-group.config.js +33 -0
  114. package/dist/components/dist/avatar-group.d.ts +330 -0
  115. package/dist/components/dist/avatar-group.js +39 -0
  116. package/dist/components/dist/avatar.config.d.ts +198 -0
  117. package/dist/components/dist/avatar.config.js +49 -0
  118. package/dist/components/dist/avatar.d.ts +212 -0
  119. package/dist/components/dist/avatar.js +20 -0
  120. package/dist/components/dist/badge.config.d.ts +478 -0
  121. package/dist/components/dist/badge.config.js +99 -0
  122. package/dist/components/dist/badge.d.ts +490 -0
  123. package/dist/components/dist/badge.js +16 -0
  124. package/dist/components/dist/box.d.ts +15 -0
  125. package/dist/components/dist/box.js +9 -0
  126. package/dist/components/dist/breadcrumb.config.d.ts +391 -0
  127. package/dist/components/dist/breadcrumb.config.js +43 -0
  128. package/dist/components/dist/breadcrumb.d.ts +421 -0
  129. package/dist/components/dist/breadcrumb.js +119 -0
  130. package/dist/components/dist/button.config.d.ts +382 -0
  131. package/dist/components/dist/button.config.js +91 -0
  132. package/dist/components/dist/button.d.ts +404 -0
  133. package/dist/components/dist/button.js +35 -0
  134. package/dist/components/dist/card.config.d.ts +337 -0
  135. package/dist/components/dist/card.config.js +33 -0
  136. package/dist/components/dist/card.d.ts +353 -0
  137. package/dist/components/dist/card.js +27 -0
  138. package/dist/components/dist/collapsible.config.d.ts +46 -0
  139. package/dist/components/dist/collapsible.config.js +46 -0
  140. package/dist/components/dist/collapsible.d.ts +62 -0
  141. package/dist/components/dist/collapsible.js +38 -0
  142. package/dist/components/dist/command.config.d.ts +1614 -0
  143. package/dist/components/dist/command.config.js +170 -0
  144. package/dist/components/dist/command.d.ts +1723 -0
  145. package/dist/components/dist/command.js +341 -0
  146. package/dist/components/dist/control-color.config.d.ts +980 -0
  147. package/dist/components/dist/control-color.config.js +81 -0
  148. package/dist/components/dist/control-color.d.ts +996 -0
  149. package/dist/components/dist/control-color.js +64 -0
  150. package/dist/components/dist/control-curve.config.d.ts +19 -0
  151. package/dist/components/dist/control-curve.config.js +14 -0
  152. package/dist/components/dist/control-curve.d.ts +36 -0
  153. package/dist/components/dist/control-curve.js +81 -0
  154. package/dist/components/dist/control-folder.config.d.ts +178 -0
  155. package/dist/components/dist/control-folder.config.js +47 -0
  156. package/dist/components/dist/control-folder.d.ts +195 -0
  157. package/dist/components/dist/control-folder.js +41 -0
  158. package/dist/components/dist/control-group.config.d.ts +860 -0
  159. package/dist/components/dist/control-group.config.js +80 -0
  160. package/dist/components/dist/control-group.d.ts +882 -0
  161. package/dist/components/dist/control-group.js +89 -0
  162. package/dist/components/dist/control-knob.config.d.ts +793 -0
  163. package/dist/components/dist/control-knob.config.js +67 -0
  164. package/dist/components/dist/control-knob.d.ts +820 -0
  165. package/dist/components/dist/control-knob.js +148 -0
  166. package/dist/components/dist/control-panel.config.d.ts +403 -0
  167. package/dist/components/dist/control-panel.config.js +38 -0
  168. package/dist/components/dist/control-panel.d.ts +416 -0
  169. package/dist/components/dist/control-panel.js +22 -0
  170. package/dist/components/dist/control-select.config.d.ts +1177 -0
  171. package/dist/components/dist/control-select.config.js +102 -0
  172. package/dist/components/dist/control-select.d.ts +1201 -0
  173. package/dist/components/dist/control-select.js +63 -0
  174. package/dist/components/dist/control-slider.config.d.ts +105 -0
  175. package/dist/components/dist/control-slider.config.js +98 -0
  176. package/dist/components/dist/control-slider.d.ts +128 -0
  177. package/dist/components/dist/control-slider.js +87 -0
  178. package/dist/components/dist/control-spring.config.d.ts +418 -0
  179. package/dist/components/dist/control-spring.config.js +36 -0
  180. package/dist/components/dist/control-spring.d.ts +440 -0
  181. package/dist/components/dist/control-spring.js +136 -0
  182. package/dist/components/dist/control-stepper.config.d.ts +1085 -0
  183. package/dist/components/dist/control-stepper.config.js +108 -0
  184. package/dist/components/dist/control-stepper.d.ts +1105 -0
  185. package/dist/components/dist/control-stepper.js +109 -0
  186. package/dist/components/dist/control-toggle.config.d.ts +408 -0
  187. package/dist/components/dist/control-toggle.config.js +26 -0
  188. package/dist/components/dist/control-toggle.d.ts +421 -0
  189. package/dist/components/dist/control-toggle.js +36 -0
  190. package/dist/components/dist/createSlot.d.ts +9 -0
  191. package/dist/components/dist/createSlot.js +89 -0
  192. package/dist/components/dist/dropdown.config.d.ts +921 -0
  193. package/dist/components/dist/dropdown.config.js +107 -0
  194. package/dist/components/dist/dropdown.d.ts +951 -0
  195. package/dist/components/dist/dropdown.js +92 -0
  196. package/dist/components/dist/empty-state.config.d.ts +397 -0
  197. package/dist/components/dist/empty-state.config.js +53 -0
  198. package/dist/components/dist/empty-state.d.ts +417 -0
  199. package/dist/components/dist/empty-state.js +33 -0
  200. package/dist/components/dist/footer.d.ts +12 -0
  201. package/dist/components/dist/footer.js +9 -0
  202. package/dist/components/dist/grid.d.ts +42 -0
  203. package/dist/components/dist/grid.js +34 -0
  204. package/dist/components/dist/header.d.ts +12 -0
  205. package/dist/components/dist/header.js +9 -0
  206. package/dist/components/dist/hstack.d.ts +16 -0
  207. package/dist/components/dist/hstack.js +21 -0
  208. package/dist/components/dist/image.d.ts +20 -0
  209. package/dist/components/dist/image.js +9 -0
  210. package/dist/components/dist/input.config.d.ts +59 -0
  211. package/dist/components/dist/input.config.js +42 -0
  212. package/dist/components/dist/input.d.ts +68 -0
  213. package/dist/components/dist/input.js +14 -0
  214. package/dist/components/dist/item.config.d.ts +352 -0
  215. package/dist/components/dist/item.config.js +83 -0
  216. package/dist/components/dist/item.d.ts +375 -0
  217. package/dist/components/dist/item.js +51 -0
  218. package/dist/components/dist/list.d.ts +20 -0
  219. package/dist/components/dist/list.js +21 -0
  220. package/dist/components/dist/main.d.ts +12 -0
  221. package/dist/components/dist/main.js +9 -0
  222. package/dist/components/dist/modal.config.d.ts +398 -0
  223. package/dist/components/dist/modal.config.js +92 -0
  224. package/dist/components/dist/modal.d.ts +434 -0
  225. package/dist/components/dist/modal.js +125 -0
  226. package/dist/components/dist/nav-header.config.d.ts +159 -0
  227. package/dist/components/dist/nav-header.config.js +26 -0
  228. package/dist/components/dist/nav-header.d.ts +174 -0
  229. package/dist/components/dist/nav-header.js +23 -0
  230. package/dist/components/dist/nav.d.ts +12 -0
  231. package/dist/components/dist/nav.js +9 -0
  232. package/dist/components/dist/preset-bar.config.d.ts +193 -0
  233. package/dist/components/dist/preset-bar.config.js +39 -0
  234. package/dist/components/dist/preset-bar.d.ts +216 -0
  235. package/dist/components/dist/preset-bar.js +71 -0
  236. package/dist/components/dist/presets/index.d.ts +17675 -0
  237. package/dist/components/dist/presets/index.js +97 -0
  238. package/dist/components/dist/pressable.d.ts +12 -0
  239. package/dist/components/dist/pressable.js +9 -0
  240. package/dist/components/dist/progress.config.d.ts +297 -0
  241. package/dist/components/dist/progress.config.js +35 -0
  242. package/dist/components/dist/progress.d.ts +312 -0
  243. package/dist/components/dist/progress.js +43 -0
  244. package/dist/components/dist/section.d.ts +12 -0
  245. package/dist/components/dist/section.js +9 -0
  246. package/dist/components/dist/select.config.d.ts +32 -0
  247. package/dist/components/dist/select.config.js +25 -0
  248. package/dist/components/dist/select.d.ts +46 -0
  249. package/dist/components/dist/select.js +13 -0
  250. package/dist/components/dist/sheet.config.d.ts +246 -0
  251. package/dist/components/dist/sheet.config.js +99 -0
  252. package/dist/components/dist/sheet.d.ts +268 -0
  253. package/dist/components/dist/sheet.js +53 -0
  254. package/dist/components/dist/sidebar.config.d.ts +1652 -0
  255. package/dist/components/dist/sidebar.config.js +217 -0
  256. package/dist/components/dist/sidebar.d.ts +1826 -0
  257. package/dist/components/dist/sidebar.js +496 -0
  258. package/dist/components/dist/skeleton.config.d.ts +17 -0
  259. package/dist/components/dist/skeleton.config.js +10 -0
  260. package/dist/components/dist/skeleton.d.ts +28 -0
  261. package/dist/components/dist/skeleton.js +16 -0
  262. package/dist/components/dist/slider.config.d.ts +45 -0
  263. package/dist/components/dist/slider.config.js +40 -0
  264. package/dist/components/dist/slider.d.ts +71 -0
  265. package/dist/components/dist/slider.js +247 -0
  266. package/dist/components/dist/spinner.config.d.ts +35 -0
  267. package/dist/components/dist/spinner.config.js +24 -0
  268. package/dist/components/dist/spinner.d.ts +43 -0
  269. package/dist/components/dist/spinner.js +29 -0
  270. package/dist/components/dist/svg.d.ts +22 -0
  271. package/dist/components/dist/svg.js +17 -0
  272. package/dist/components/dist/switch.config.d.ts +354 -0
  273. package/dist/components/dist/switch.config.js +47 -0
  274. package/dist/components/dist/switch.d.ts +371 -0
  275. package/dist/components/dist/switch.js +32 -0
  276. package/dist/components/dist/table.d.ts +37 -0
  277. package/dist/components/dist/table.js +29 -0
  278. package/dist/components/dist/tabs.config.d.ts +612 -0
  279. package/dist/components/dist/tabs.config.js +56 -0
  280. package/dist/components/dist/tabs.d.ts +633 -0
  281. package/dist/components/dist/tabs.js +77 -0
  282. package/dist/components/dist/text.config.d.ts +307 -0
  283. package/dist/components/dist/text.config.js +149 -0
  284. package/dist/components/dist/text.d.ts +206 -0
  285. package/dist/components/dist/text.js +12 -0
  286. package/dist/components/dist/textarea.config.d.ts +353 -0
  287. package/dist/components/dist/textarea.config.js +57 -0
  288. package/dist/components/dist/textarea.d.ts +363 -0
  289. package/dist/components/dist/textarea.js +9 -0
  290. package/dist/components/dist/toast.config.d.ts +336 -0
  291. package/dist/components/dist/toast.config.js +145 -0
  292. package/dist/components/dist/toast.d.ts +427 -0
  293. package/dist/components/dist/toast.js +159 -0
  294. package/dist/components/dist/tooltip.config.d.ts +194 -0
  295. package/dist/components/dist/tooltip.config.js +40 -0
  296. package/dist/components/dist/tooltip.d.ts +207 -0
  297. package/dist/components/dist/tooltip.js +28 -0
  298. package/dist/components/dist/vstack.d.ts +16 -0
  299. package/dist/components/dist/vstack.js +20 -0
  300. package/dist/components/dropdown.config.d.ts +2 -0
  301. package/dist/components/dropdown.config.js +2 -0
  302. package/dist/components/dropdown.d.ts +2 -0
  303. package/dist/components/dropdown.js +2 -0
  304. package/dist/components/empty-state.config.d.ts +2 -0
  305. package/dist/components/empty-state.config.js +2 -0
  306. package/dist/components/empty-state.d.ts +2 -0
  307. package/dist/components/empty-state.js +2 -0
  308. package/dist/components/footer.d.ts +2 -0
  309. package/dist/components/footer.js +2 -0
  310. package/dist/components/grid.d.ts +2 -0
  311. package/dist/components/grid.js +2 -0
  312. package/dist/components/header.d.ts +2 -0
  313. package/dist/components/header.js +2 -0
  314. package/dist/components/hstack.d.ts +2 -0
  315. package/dist/components/hstack.js +2 -0
  316. package/dist/components/image.d.ts +2 -0
  317. package/dist/components/image.js +2 -0
  318. package/dist/components/input.config.d.ts +2 -0
  319. package/dist/components/input.config.js +2 -0
  320. package/dist/components/input.d.ts +2 -0
  321. package/dist/components/input.js +2 -0
  322. package/dist/components/item.config.d.ts +2 -0
  323. package/dist/components/item.config.js +2 -0
  324. package/dist/components/item.d.ts +2 -0
  325. package/dist/components/item.js +2 -0
  326. package/dist/components/list.d.ts +2 -0
  327. package/dist/components/list.js +2 -0
  328. package/dist/components/main.d.ts +2 -0
  329. package/dist/components/main.js +2 -0
  330. package/dist/components/modal.config.d.ts +2 -0
  331. package/dist/components/modal.config.js +2 -0
  332. package/dist/components/modal.d.ts +2 -0
  333. package/dist/components/modal.js +2 -0
  334. package/dist/components/nav-header.config.d.ts +2 -0
  335. package/dist/components/nav-header.config.js +2 -0
  336. package/dist/components/nav-header.d.ts +2 -0
  337. package/dist/components/nav-header.js +2 -0
  338. package/dist/components/nav.d.ts +2 -0
  339. package/dist/components/nav.js +2 -0
  340. package/dist/components/preset-bar.config.d.ts +2 -0
  341. package/dist/components/preset-bar.config.js +2 -0
  342. package/dist/components/preset-bar.d.ts +2 -0
  343. package/dist/components/preset-bar.js +2 -0
  344. package/dist/components/presets/index.d.ts +44 -0
  345. package/dist/components/presets/index.js +44 -0
  346. package/dist/components/pressable.d.ts +2 -0
  347. package/dist/components/pressable.js +2 -0
  348. package/dist/components/progress.config.d.ts +2 -0
  349. package/dist/components/progress.config.js +2 -0
  350. package/dist/components/progress.d.ts +2 -0
  351. package/dist/components/progress.js +2 -0
  352. package/dist/components/section.d.ts +2 -0
  353. package/dist/components/section.js +2 -0
  354. package/dist/components/select.config.d.ts +2 -0
  355. package/dist/components/select.config.js +2 -0
  356. package/dist/components/select.d.ts +2 -0
  357. package/dist/components/select.js +2 -0
  358. package/dist/components/sheet.config.d.ts +2 -0
  359. package/dist/components/sheet.config.js +2 -0
  360. package/dist/components/sheet.d.ts +2 -0
  361. package/dist/components/sheet.js +2 -0
  362. package/dist/components/sidebar.config.d.ts +2 -0
  363. package/dist/components/sidebar.config.js +2 -0
  364. package/dist/components/sidebar.d.ts +2 -0
  365. package/dist/components/sidebar.js +2 -0
  366. package/dist/components/skeleton.config.d.ts +2 -0
  367. package/dist/components/skeleton.config.js +2 -0
  368. package/dist/components/skeleton.d.ts +2 -0
  369. package/dist/components/skeleton.js +2 -0
  370. package/dist/components/slider.config.d.ts +2 -0
  371. package/dist/components/slider.config.js +2 -0
  372. package/dist/components/slider.d.ts +2 -0
  373. package/dist/components/slider.js +2 -0
  374. package/dist/components/spinner.config.d.ts +2 -0
  375. package/dist/components/spinner.config.js +2 -0
  376. package/dist/components/spinner.d.ts +2 -0
  377. package/dist/components/spinner.js +2 -0
  378. package/dist/components/svg.d.ts +2 -0
  379. package/dist/components/svg.js +2 -0
  380. package/dist/components/switch.config.d.ts +2 -0
  381. package/dist/components/switch.config.js +2 -0
  382. package/dist/components/switch.d.ts +2 -0
  383. package/dist/components/switch.js +2 -0
  384. package/dist/components/table.d.ts +2 -0
  385. package/dist/components/table.js +2 -0
  386. package/dist/components/tabs.config.d.ts +2 -0
  387. package/dist/components/tabs.config.js +2 -0
  388. package/dist/components/tabs.d.ts +2 -0
  389. package/dist/components/tabs.js +2 -0
  390. package/dist/components/text.config.d.ts +2 -0
  391. package/dist/components/text.config.js +2 -0
  392. package/dist/components/text.d.ts +2 -0
  393. package/dist/components/text.js +2 -0
  394. package/dist/components/textarea.config.d.ts +2 -0
  395. package/dist/components/textarea.config.js +2 -0
  396. package/dist/components/textarea.d.ts +2 -0
  397. package/dist/components/textarea.js +2 -0
  398. package/dist/components/toast.config.d.ts +2 -0
  399. package/dist/components/toast.config.js +2 -0
  400. package/dist/components/toast.d.ts +2 -0
  401. package/dist/components/toast.js +2 -0
  402. package/dist/components/tooltip.config.d.ts +2 -0
  403. package/dist/components/tooltip.config.js +2 -0
  404. package/dist/components/tooltip.d.ts +2 -0
  405. package/dist/components/tooltip.js +2 -0
  406. package/dist/components/vstack.d.ts +2 -0
  407. package/dist/components/vstack.js +2 -0
  408. package/dist/config/dist/component-resolution.d.ts +1 -0
  409. package/dist/config/dist/component-resolution.js +78 -0
  410. package/dist/config/dist/consts/defaultColors.d.ts +253 -0
  411. package/dist/config/dist/consts/defaultColors.js +252 -0
  412. package/dist/config/dist/createConfig.d.ts +214 -0
  413. package/dist/config/dist/createConfig.js +454 -0
  414. package/dist/config/dist/index.d.ts +5 -0
  415. package/dist/config/dist/index.js +4 -0
  416. package/dist/config/dist/preset-merge.js +165 -0
  417. package/dist/config/dist/serialize.d.ts +57 -0
  418. package/dist/config/dist/serialize.js +153 -0
  419. package/dist/config-utils/dist/componentConfig.d.ts +10 -0
  420. package/dist/config-utils/dist/componentConfig.js +11 -0
  421. package/dist/config-utils.d.ts +2 -0
  422. package/dist/config-utils.js +2 -0
  423. package/dist/config.d.ts +3512 -0
  424. package/dist/config.js +22 -0
  425. package/dist/core/dist/createComponent.boundaries.js +192 -0
  426. package/dist/core/dist/createComponent.d.ts +57 -0
  427. package/dist/core/dist/createComponent.js +67 -0
  428. package/dist/core/dist/createComponentExample.d.ts +42 -0
  429. package/dist/core/dist/createComponentExample.js +27 -0
  430. package/dist/core/dist/createProvider.d.ts +13 -0
  431. package/dist/core/dist/createProvider.js +24 -0
  432. package/dist/core/dist/generated/stylePropsTwMap.d.ts +1701 -0
  433. package/dist/core/dist/generated/stylePropsTwMap.js +570 -0
  434. package/dist/core/dist/getComponentStyles.d.ts +50 -0
  435. package/dist/core/dist/getComponentStyles.js +85 -0
  436. package/dist/core/dist/getStyles.d.ts +43 -0
  437. package/dist/core/dist/getStyles.js +305 -0
  438. package/dist/core/dist/index.d.ts +11 -0
  439. package/dist/core/dist/index.js +11 -0
  440. package/dist/core/dist/macros.d.ts +22 -0
  441. package/dist/core/dist/macros.js +49 -0
  442. package/dist/core/dist/propMappings.d.ts +77 -0
  443. package/dist/core/dist/propMappings.js +1404 -0
  444. package/dist/core/dist/resolveMotionState.d.ts +5 -0
  445. package/dist/core/dist/resolveMotionState.js +17 -0
  446. package/dist/core/dist/resolveProps.boundaries.js +130 -0
  447. package/dist/core/dist/transformPreset.d.ts +18 -0
  448. package/dist/core/dist/transformPreset.js +28 -0
  449. package/dist/core/dist/withDefaultStyleProps.d.ts +44 -0
  450. package/dist/core/dist/withDefaultStyleProps.js +18 -0
  451. package/dist/core.d.ts +12 -0
  452. package/dist/core.js +13 -0
  453. package/dist/createSlot.d.ts +2 -0
  454. package/dist/createSlot.js +2 -0
  455. package/dist/devtools.d.ts +2 -0
  456. package/dist/devtools.js +3 -0
  457. package/dist/fixtures.d.ts +2 -0
  458. package/dist/fixtures.js +3 -0
  459. package/dist/foundational-presets/dist/boldVibrant.d.ts +3575 -0
  460. package/dist/foundational-presets/dist/boldVibrant.js +326 -0
  461. package/dist/foundational-presets/dist/brutalist.d.ts +3575 -0
  462. package/dist/foundational-presets/dist/brutalist.js +326 -0
  463. package/dist/foundational-presets/dist/candy.d.ts +3575 -0
  464. package/dist/foundational-presets/dist/candy.js +326 -0
  465. package/dist/foundational-presets/dist/cleanMinimalist.d.ts +3575 -0
  466. package/dist/foundational-presets/dist/cleanMinimalist.js +326 -0
  467. package/dist/foundational-presets/dist/corporate.d.ts +3575 -0
  468. package/dist/foundational-presets/dist/corporate.js +326 -0
  469. package/dist/foundational-presets/dist/darkMoody.d.ts +3575 -0
  470. package/dist/foundational-presets/dist/darkMoody.js +326 -0
  471. package/dist/foundational-presets/dist/defaultPreset.d.ts +3509 -0
  472. package/dist/foundational-presets/dist/defaultPreset.js +1784 -0
  473. package/dist/foundational-presets/dist/forest.d.ts +3575 -0
  474. package/dist/foundational-presets/dist/forest.js +326 -0
  475. package/dist/foundational-presets/dist/highContrast.d.ts +3575 -0
  476. package/dist/foundational-presets/dist/highContrast.js +326 -0
  477. package/dist/foundational-presets/dist/index.d.ts +19 -0
  478. package/dist/foundational-presets/dist/index.js +19 -0
  479. package/dist/foundational-presets/dist/lavender.d.ts +3575 -0
  480. package/dist/foundational-presets/dist/lavender.js +326 -0
  481. package/dist/foundational-presets/dist/luxury.d.ts +3575 -0
  482. package/dist/foundational-presets/dist/luxury.js +326 -0
  483. package/dist/foundational-presets/dist/monochrome.d.ts +3575 -0
  484. package/dist/foundational-presets/dist/monochrome.js +326 -0
  485. package/dist/foundational-presets/dist/motion.d.ts +13 -0
  486. package/dist/foundational-presets/dist/motion.js +10 -0
  487. package/dist/foundational-presets/dist/neonCyber.d.ts +3575 -0
  488. package/dist/foundational-presets/dist/neonCyber.js +326 -0
  489. package/dist/foundational-presets/dist/newspaper.d.ts +3575 -0
  490. package/dist/foundational-presets/dist/newspaper.js +326 -0
  491. package/dist/foundational-presets/dist/ocean.d.ts +3575 -0
  492. package/dist/foundational-presets/dist/ocean.js +326 -0
  493. package/dist/foundational-presets/dist/slate.d.ts +3575 -0
  494. package/dist/foundational-presets/dist/slate.js +326 -0
  495. package/dist/foundational-presets/dist/sunset.d.ts +3575 -0
  496. package/dist/foundational-presets/dist/sunset.js +326 -0
  497. package/dist/foundational-presets/dist/terminal.d.ts +3575 -0
  498. package/dist/foundational-presets/dist/terminal.js +326 -0
  499. package/dist/foundational-presets/dist/warmOrganic.d.ts +3575 -0
  500. package/dist/foundational-presets/dist/warmOrganic.js +326 -0
  501. package/dist/loader/dist/_virtual/_rolldown/runtime.js +6 -0
  502. package/dist/loader/dist/loader/artifacts.js +43 -0
  503. package/dist/loader/dist/loader/babel-utils.js +29 -0
  504. package/dist/loader/dist/loader/create-component-data.js +33 -0
  505. package/dist/loader/dist/loader/create-component-lowering.js +454 -0
  506. package/dist/loader/dist/loader/data-attr-transform.js +191 -0
  507. package/dist/loader/dist/loader/dynamic-style-codegen.js +96 -0
  508. package/dist/loader/dist/loader/internal-meta.js +22 -0
  509. package/dist/loader/dist/loader/motion-transform.js +717 -0
  510. package/dist/loader/dist/loader/style-transform.js +670 -0
  511. package/dist/loader/dist/loader.d.ts +8 -0
  512. package/dist/loader/dist/loader.js +357 -0
  513. package/dist/loader/dist/next.d.ts +17 -0
  514. package/dist/loader/dist/next.js +77 -0
  515. package/dist/loader/dist/node_modules/react/cjs/react-jsx-runtime.development.js +203 -0
  516. package/dist/loader/dist/node_modules/react/cjs/react-jsx-runtime.production.js +25 -0
  517. package/dist/loader/dist/node_modules/react/cjs/react.development.js +762 -0
  518. package/dist/loader/dist/node_modules/react/cjs/react.production.js +351 -0
  519. package/dist/loader/dist/node_modules/react/index.js +10 -0
  520. package/dist/loader/dist/node_modules/react/jsx-runtime.js +10 -0
  521. package/dist/loader/dist/packages/core/dist/createComponent.js +6 -0
  522. package/dist/loader/dist/packages/core/dist/createProvider.js +7 -0
  523. package/dist/loader/dist/packages/core/dist/generated/stylePropsTwMap.js +570 -0
  524. package/dist/loader/dist/packages/core/dist/getComponentStyles.js +2 -0
  525. package/dist/loader/dist/packages/core/dist/getStyles.js +58 -0
  526. package/dist/loader/dist/packages/core/dist/index.js +6 -0
  527. package/dist/loader/dist/packages/core/dist/macros.js +41 -0
  528. package/dist/loader/dist/packages/core/dist/propMappings.js +1347 -0
  529. package/dist/loader/dist/packages/core/dist/withDefaultStyleProps.js +1 -0
  530. package/dist/loader.d.ts +2 -0
  531. package/dist/loader.js +2 -0
  532. package/dist/next.d.ts +2 -0
  533. package/dist/next.js +2 -0
  534. package/dist/plugin.d.ts +2 -0
  535. package/dist/plugin.js +2 -0
  536. package/dist/presets/dist/boldVibrant.d.ts +6 -0
  537. package/dist/presets/dist/boldVibrant.js +7 -0
  538. package/dist/presets/dist/brutalist.d.ts +6 -0
  539. package/dist/presets/dist/brutalist.js +7 -0
  540. package/dist/presets/dist/candy.d.ts +6 -0
  541. package/dist/presets/dist/candy.js +7 -0
  542. package/dist/presets/dist/cleanMinimalist.d.ts +6 -0
  543. package/dist/presets/dist/cleanMinimalist.js +7 -0
  544. package/dist/presets/dist/corporate.d.ts +6 -0
  545. package/dist/presets/dist/corporate.js +7 -0
  546. package/dist/presets/dist/darkMoody.d.ts +6 -0
  547. package/dist/presets/dist/darkMoody.js +7 -0
  548. package/dist/presets/dist/defaultPreset.d.ts +6 -0
  549. package/dist/presets/dist/defaultPreset.js +68 -0
  550. package/dist/presets/dist/forest.d.ts +6 -0
  551. package/dist/presets/dist/forest.js +7 -0
  552. package/dist/presets/dist/highContrast.d.ts +6 -0
  553. package/dist/presets/dist/highContrast.js +7 -0
  554. package/dist/presets/dist/index.d.ts +19 -0
  555. package/dist/presets/dist/index.js +19 -0
  556. package/dist/presets/dist/lavender.d.ts +6 -0
  557. package/dist/presets/dist/lavender.js +7 -0
  558. package/dist/presets/dist/luxury.d.ts +6 -0
  559. package/dist/presets/dist/luxury.js +7 -0
  560. package/dist/presets/dist/monochrome.d.ts +6 -0
  561. package/dist/presets/dist/monochrome.js +7 -0
  562. package/dist/presets/dist/neonCyber.d.ts +6 -0
  563. package/dist/presets/dist/neonCyber.js +7 -0
  564. package/dist/presets/dist/newspaper.d.ts +6 -0
  565. package/dist/presets/dist/newspaper.js +7 -0
  566. package/dist/presets/dist/ocean.d.ts +6 -0
  567. package/dist/presets/dist/ocean.js +7 -0
  568. package/dist/presets/dist/slate.d.ts +6 -0
  569. package/dist/presets/dist/slate.js +7 -0
  570. package/dist/presets/dist/sunset.d.ts +6 -0
  571. package/dist/presets/dist/sunset.js +7 -0
  572. package/dist/presets/dist/terminal.d.ts +6 -0
  573. package/dist/presets/dist/terminal.js +7 -0
  574. package/dist/presets/dist/warmOrganic.d.ts +6 -0
  575. package/dist/presets/dist/warmOrganic.js +7 -0
  576. package/dist/presets/motion.d.ts +2 -0
  577. package/dist/presets/motion.js +2 -0
  578. package/dist/presets.d.ts +20 -0
  579. package/dist/presets.js +21 -0
  580. package/dist/remotion/dist/components/image-slide.config.js +43 -0
  581. package/dist/remotion/dist/components/image-slide.d.ts +20 -0
  582. package/dist/remotion/dist/components/image-slide.js +24 -0
  583. package/dist/remotion/dist/components/index.js +16 -0
  584. package/dist/remotion/dist/components/lower-third.config.js +54 -0
  585. package/dist/remotion/dist/components/lower-third.d.ts +21 -0
  586. package/dist/remotion/dist/components/lower-third.js +26 -0
  587. package/dist/remotion/dist/components/quote-card.config.js +85 -0
  588. package/dist/remotion/dist/components/quote-card.d.ts +21 -0
  589. package/dist/remotion/dist/components/quote-card.js +27 -0
  590. package/dist/remotion/dist/components/split-screen.config.js +90 -0
  591. package/dist/remotion/dist/components/split-screen.d.ts +25 -0
  592. package/dist/remotion/dist/components/split-screen.js +35 -0
  593. package/dist/remotion/dist/components/stat-card.config.js +55 -0
  594. package/dist/remotion/dist/components/stat-card.d.ts +19 -0
  595. package/dist/remotion/dist/components/stat-card.js +23 -0
  596. package/dist/remotion/dist/components/text-overlay.config.js +46 -0
  597. package/dist/remotion/dist/components/text-overlay.d.ts +17 -0
  598. package/dist/remotion/dist/components/text-overlay.js +16 -0
  599. package/dist/remotion/dist/components/title-card.config.js +56 -0
  600. package/dist/remotion/dist/components/title-card.d.ts +19 -0
  601. package/dist/remotion/dist/components/title-card.js +23 -0
  602. package/dist/remotion/dist/components/typing-text.config.js +57 -0
  603. package/dist/remotion/dist/components/typing-text.d.ts +21 -0
  604. package/dist/remotion/dist/components/typing-text.js +23 -0
  605. package/dist/remotion/dist/index.d.ts +8 -0
  606. package/dist/remotion/dist/index.js +8 -0
  607. package/dist/remotion/dist/transitions/fade.js +19 -0
  608. package/dist/remotion/dist/transitions/index.js +7 -0
  609. package/dist/remotion/dist/transitions/slide-down.js +21 -0
  610. package/dist/remotion/dist/transitions/slide-left.js +21 -0
  611. package/dist/remotion/dist/transitions/slide-right.js +21 -0
  612. package/dist/remotion/dist/transitions/slide-up.js +21 -0
  613. package/dist/remotion/dist/transitions/wipe.js +21 -0
  614. package/dist/remotion/dist/transitions/zoom.js +19 -0
  615. package/dist/remotion.d.ts +9 -0
  616. package/dist/remotion.js +10 -0
  617. package/dist/styles.d.ts +4 -0
  618. package/dist/styles.js +5 -0
  619. package/dist/transformPreset.d.ts +2 -0
  620. package/dist/transformPreset.js +3 -0
  621. package/dist/tsconfig.tsbuildinfo +1 -0
  622. package/dist/types.d.ts +1 -0
  623. package/dist/types.js +1 -0
  624. package/dist/utils/dist/array-utils/closestItem.d.ts +5 -0
  625. package/dist/utils/dist/array-utils/closestItem.js +9 -0
  626. package/dist/utils/dist/array-utils/removeItem.d.ts +5 -0
  627. package/dist/utils/dist/array-utils/removeItem.js +8 -0
  628. package/dist/utils/dist/component-style-defaults.d.ts +6 -0
  629. package/dist/utils/dist/component-style-defaults.js +68 -0
  630. package/dist/utils/dist/index.js +23 -0
  631. package/dist/utils/dist/math-utils/clamp.d.ts +13 -0
  632. package/dist/utils/dist/math-utils/clamp.js +14 -0
  633. package/dist/utils/dist/motion-utils/interpolate.d.ts +11 -0
  634. package/dist/utils/dist/motion-utils/interpolate.js +25 -0
  635. package/dist/utils/dist/object-utils/entries.d.ts +5 -0
  636. package/dist/utils/dist/object-utils/entries.js +6 -0
  637. package/dist/utils/dist/object-utils/flattenObj.d.ts +13 -0
  638. package/dist/utils/dist/object-utils/flattenObj.js +21 -0
  639. package/dist/utils/dist/object-utils/fromEntries.d.ts +5 -0
  640. package/dist/utils/dist/object-utils/fromEntries.js +6 -0
  641. package/dist/utils/dist/object-utils/keys.d.ts +5 -0
  642. package/dist/utils/dist/object-utils/keys.js +6 -0
  643. package/dist/utils/dist/object-utils/mapKeys.d.ts +6 -0
  644. package/dist/utils/dist/object-utils/mapKeys.js +10 -0
  645. package/dist/utils/dist/object-utils/mapValues.d.ts +6 -0
  646. package/dist/utils/dist/object-utils/mapValues.js +9 -0
  647. package/dist/utils/dist/string-utils/arrayToUnion.d.ts +5 -0
  648. package/dist/utils/dist/string-utils/arrayToUnion.js +6 -0
  649. package/dist/utils/dist/string-utils/capitalize.d.ts +5 -0
  650. package/dist/utils/dist/string-utils/capitalize.js +6 -0
  651. package/dist/utils/dist/string-utils/componentClassName.d.ts +26 -0
  652. package/dist/utils/dist/string-utils/componentClassName.js +33 -0
  653. package/dist/utils/dist/string-utils/createTemplate.d.ts +17 -0
  654. package/dist/utils/dist/string-utils/createTemplate.js +142 -0
  655. package/dist/utils/dist/string-utils/cssVar.d.ts +54 -0
  656. package/dist/utils/dist/string-utils/cssVar.js +61 -0
  657. package/dist/utils/dist/string-utils/cssVars.d.ts +82 -0
  658. package/dist/utils/dist/string-utils/cssVars.js +108 -0
  659. package/dist/utils/dist/string-utils/dedent.d.ts +48 -0
  660. package/dist/utils/dist/string-utils/dedent.js +68 -0
  661. package/dist/utils/dist/string-utils/indent.d.ts +5 -0
  662. package/dist/utils/dist/string-utils/indent.js +6 -0
  663. package/dist/utils/dist/string-utils/join.d.ts +6 -0
  664. package/dist/utils/dist/string-utils/join.js +6 -0
  665. package/dist/utils/dist/string-utils/kebabCase.d.ts +14 -0
  666. package/dist/utils/dist/string-utils/kebabCase.js +14 -0
  667. package/dist/utils/dist/string-utils/objectToInterface.js +6 -0
  668. package/dist/utils/dist/string-utils/split.d.ts +11 -0
  669. package/dist/utils/dist/string-utils/split.js +12 -0
  670. package/dist/utils/dist/string-utils/tsProperties.d.ts +30 -0
  671. package/dist/utils/dist/string-utils/tsProperties.js +60 -0
  672. package/dist/utils.d.ts +24 -0
  673. package/dist/utils.js +25 -0
  674. package/package.json +185 -0
@@ -0,0 +1,357 @@
1
+ import { componentSlotClass } from "../../utils/dist/string-utils/componentClassName.js";
2
+ import "../../utils/dist/index.js";
3
+ import { loadManifest, loadTransformData } from "./loader/artifacts.js";
4
+ import { isCompiledJsxCallee } from "./loader/babel-utils.js";
5
+ import { canInlineSimpleLoweredComponent, resolveLoweredCreateComponentData } from "./loader/create-component-data.js";
6
+ import { applySlotMotionToElement, clearHoistedMotionStates, componentHasExitMotion, getCustomSlotMotion, getHoistedMotionStates, handleMotionOnElement, wrapCustomComponentWithAnimatePresence, wrapParentConditionalWithAnimatePresence } from "./loader/motion-transform.js";
7
+ import { findClassesParamName, findSlotFromClassNameAttr, findSlotFromPropsSpreadAttr, findSlotPropsParamName, handleCompiledJsxDataAttrs, injectInternalUdsProps } from "./loader/data-attr-transform.js";
8
+ import { buildInlineSimpleLoweredCreateComponentRenderFn, buildInlineSimplePrimitiveCreateComponentRenderFn, buildLoweredCreateComponentConfigExpression, extractOwnPropKeys, inferCreateComponentNameFromAssignment, isCreateComponentRenderFnNode, remapOnPressToOnClickInJsxAttributes } from "./loader/create-component-lowering.js";
9
+ import { createStyleTransformRuntime } from "./loader/style-transform.js";
10
+ import * as t from "@babel/types";
11
+ import path from "node:path";
12
+ import _traverse from "@babel/traverse";
13
+ import _generate from "@babel/generator";
14
+ import { parse } from "@babel/parser";
15
+ //#region ../loader/dist/loader.js
16
+ const traverse = _traverse.default ?? _traverse;
17
+ const generate = _generate.default ?? _generate;
18
+ /** Build a custom component set from the manifest (used for motion transform). */
19
+ function getCustomComponents(manifest) {
20
+ if (!manifest) return null;
21
+ const custom = /* @__PURE__ */ new Set();
22
+ for (const [name, entry] of Object.entries(manifest.components)) if (entry.type === "custom") custom.add(name);
23
+ return custom.size > 0 ? custom : null;
24
+ }
25
+ function isUdsImportSource(importSource) {
26
+ return importSource.startsWith("uds/") || importSource.startsWith("@uds/") || importSource === "uds";
27
+ }
28
+ function isUdsComponentReference(nodePath, componentName, allUdsComponents, udsImportedNames, createComponentDefinedNames, customComponents) {
29
+ if (!allUdsComponents.has(componentName)) return false;
30
+ const binding = nodePath.scope?.getBinding?.(componentName);
31
+ if (!binding?.path) return udsImportedNames.has(componentName) || createComponentDefinedNames.has(componentName);
32
+ const bindingNode = binding.path.node;
33
+ if (bindingNode?.type === "ImportSpecifier" || bindingNode?.type === "ImportDefaultSpecifier" || bindingNode?.type === "ImportNamespaceSpecifier") {
34
+ const parentNode = binding.path.parent;
35
+ if (!t.isImportDeclaration(parentNode)) return false;
36
+ return isUdsImportSource(parentNode.source.value) || customComponents?.has(componentName) === true;
37
+ }
38
+ return createComponentDefinedNames.has(componentName);
39
+ }
40
+ const transformLoader = function(source) {
41
+ const loaderContext = this ?? void 0;
42
+ if (!loaderContext?.getOptions) return source;
43
+ const { manifestPath, isDev, skipWatchDependencies } = loaderContext.getOptions();
44
+ const transformDataPath = path.join(path.dirname(manifestPath), "motion-transform-data.json");
45
+ const projectRoot = path.dirname(path.dirname(manifestPath));
46
+ const resourcePath = loaderContext.resourcePath ?? "";
47
+ if (resourcePath.includes(".uds/")) return source;
48
+ if (!skipWatchDependencies) {
49
+ loaderContext.addDependency?.(manifestPath);
50
+ loaderContext.addDependency?.(transformDataPath);
51
+ }
52
+ const manifest = loadManifest(manifestPath, isDev);
53
+ const transformData = loadTransformData(transformDataPath, isDev);
54
+ const styleRuntime = createStyleTransformRuntime(transformData, manifest);
55
+ const allUdsComponents = styleRuntime.allComponents;
56
+ const primitiveUdsComponents = styleRuntime.primitiveComponents;
57
+ const componentTagPatterns = styleRuntime.componentTagPatterns;
58
+ const hasAnyComponent = source.includes("from 'uds/") || source.includes("from \"@uds/") || source.includes("from 'uds'") || source.includes("from \"uds/") || source.includes("from '@uds/") || source.includes("from \"uds\"") || componentTagPatterns.length > 0 && componentTagPatterns.some((pattern) => source.includes(pattern));
59
+ const hasCreateComponent = source.includes("createComponent") || source.includes("createComponentStyler");
60
+ if (!hasAnyComponent && !hasCreateComponent) return source;
61
+ const customComponents = getCustomComponents(manifest);
62
+ const isTS = resourcePath?.endsWith(".ts") || resourcePath?.endsWith(".tsx");
63
+ const isJSX = resourcePath?.endsWith(".tsx") || resourcePath?.endsWith(".jsx");
64
+ const parserPlugins = [];
65
+ if (isJSX || !isTS) parserPlugins.push("jsx");
66
+ if (isTS) parserPlugins.push("typescript");
67
+ let ast;
68
+ try {
69
+ ast = parse(source, {
70
+ sourceType: "module",
71
+ plugins: parserPlugins
72
+ });
73
+ } catch {
74
+ return source;
75
+ }
76
+ let transformed = false;
77
+ const importsToAdd = /* @__PURE__ */ new Map();
78
+ let hasMotionImport = false;
79
+ let needsMotionImport = false;
80
+ let hasAnimatePresenceImport = false;
81
+ let needsAnimatePresenceImport = false;
82
+ let needsResolveMotionStateImport = false;
83
+ let needsProcessStylePropsImport = false;
84
+ clearHoistedMotionStates();
85
+ const stylerToComponent = /* @__PURE__ */ new Map();
86
+ const classesVarToComponent = /* @__PURE__ */ new Map();
87
+ const slotPropsVarToComponent = /* @__PURE__ */ new Map();
88
+ const udsImportedNames = /* @__PURE__ */ new Set();
89
+ const createComponentImportNames = /* @__PURE__ */ new Set();
90
+ const createVariantsImportNames = /* @__PURE__ */ new Set();
91
+ const createVariantsClassMaps = /* @__PURE__ */ new Map();
92
+ const hoistedVariantClassMapNames = /* @__PURE__ */ new Map();
93
+ const hoistedVariantClassMaps = /* @__PURE__ */ new Map();
94
+ const createComponentDefinedNames = /* @__PURE__ */ new Set();
95
+ let needsCreateComponentImportCleanup = false;
96
+ traverse(ast, {
97
+ JSXOpeningElement(nodePath) {
98
+ const jsxName = nodePath.node.name;
99
+ const jsxTagName = jsxName?.type === "JSXIdentifier" ? jsxName.name : void 0;
100
+ if (jsxTagName && !allUdsComponents.has(jsxTagName) && udsImportedNames.has(jsxTagName)) {
101
+ allUdsComponents.add(jsxTagName);
102
+ if (!primitiveUdsComponents.has(jsxTagName)) {
103
+ const manifestEntry = manifest?.components[jsxTagName];
104
+ if (manifestEntry?.type === "primitive" && manifestEntry.element || transformData?.primitiveElementMap?.[jsxTagName]) primitiveUdsComponents.add(jsxTagName);
105
+ }
106
+ }
107
+ const isUdsJsxTag = jsxTagName && isUdsComponentReference(nodePath, jsxTagName, allUdsComponents, udsImportedNames, createComponentDefinedNames, customComponents);
108
+ if (isDev && jsxTagName && isUdsJsxTag) {
109
+ injectInternalUdsProps(nodePath, resourcePath, projectRoot, {
110
+ componentName: jsxTagName,
111
+ slotName: "root"
112
+ });
113
+ transformed = true;
114
+ }
115
+ if (jsxTagName && isUdsJsxTag && remapOnPressToOnClickInJsxAttributes(nodePath.node.attributes)) transformed = true;
116
+ let motionTransformed = false;
117
+ if (isUdsJsxTag && handleMotionOnElement(nodePath, manifest, customComponents, primitiveUdsComponents, importsToAdd)) {
118
+ transformed = true;
119
+ motionTransformed = true;
120
+ }
121
+ if (jsxTagName && customComponents?.has(jsxTagName) && componentHasExitMotion(manifest, jsxTagName)) {
122
+ if (wrapCustomComponentWithAnimatePresence(nodePath)) {
123
+ needsAnimatePresenceImport = true;
124
+ transformed = true;
125
+ }
126
+ }
127
+ if (isUdsJsxTag && styleRuntime.transformUdsComponentStyleProps(nodePath, createVariantsClassMaps, hoistedVariantClassMapNames, hoistedVariantClassMaps)) transformed = true;
128
+ if (!motionTransformed && jsxTagName && isUdsJsxTag && primitiveUdsComponents.has(jsxTagName)) {
129
+ const baseElement = (manifest?.components[jsxTagName])?.element ?? transformData?.primitiveElementMap?.[jsxTagName];
130
+ if (baseElement) {
131
+ let resolvedElement = baseElement;
132
+ const asAttrIndex = nodePath.node.attributes.findIndex((attr) => t.isJSXAttribute(attr) && t.isJSXIdentifier(attr.name) && attr.name.name === "as");
133
+ if (asAttrIndex >= 0) {
134
+ const asAttr = nodePath.node.attributes[asAttrIndex];
135
+ if (t.isStringLiteral(asAttr.value)) {
136
+ resolvedElement = asAttr.value.value;
137
+ nodePath.node.attributes.splice(asAttrIndex, 1);
138
+ } else if (t.isJSXExpressionContainer(asAttr.value) && t.isStringLiteral(asAttr.value.expression)) {
139
+ resolvedElement = asAttr.value.expression.value;
140
+ nodePath.node.attributes.splice(asAttrIndex, 1);
141
+ }
142
+ }
143
+ const slotClassName = transformData?.componentClassData?.[jsxTagName]?.slotClassNames?.root ?? componentSlotClass(jsxTagName, "root");
144
+ nodePath.node.name = t.jsxIdentifier(resolvedElement);
145
+ const existingClassAttr = nodePath.node.attributes.find((attr) => t.isJSXAttribute(attr) && t.isJSXIdentifier(attr.name) && attr.name.name === "className");
146
+ if (existingClassAttr && t.isJSXAttribute(existingClassAttr)) {
147
+ if (t.isStringLiteral(existingClassAttr.value)) existingClassAttr.value = t.stringLiteral(`${slotClassName} ${existingClassAttr.value.value}`);
148
+ else if (t.isJSXExpressionContainer(existingClassAttr.value) && !t.isJSXEmptyExpression(existingClassAttr.value.expression)) if (t.isStringLiteral(existingClassAttr.value.expression)) existingClassAttr.value = t.jsxExpressionContainer(t.stringLiteral(`${slotClassName} ${existingClassAttr.value.expression.value}`));
149
+ else existingClassAttr.value = t.jsxExpressionContainer(t.templateLiteral([t.templateElement({
150
+ raw: `${slotClassName} `,
151
+ cooked: `${slotClassName} `
152
+ }, false), t.templateElement({
153
+ raw: "",
154
+ cooked: ""
155
+ }, true)], [existingClassAttr.value.expression]));
156
+ } else nodePath.node.attributes.push(t.jsxAttribute(t.jsxIdentifier("className"), t.stringLiteral(slotClassName)));
157
+ const parent = nodePath.parent;
158
+ if (parent?.type === "JSXElement" && parent.closingElement?.name?.type === "JSXIdentifier") parent.closingElement.name = t.jsxIdentifier(resolvedElement);
159
+ transformed = true;
160
+ }
161
+ }
162
+ const classNameSlotInfo = findSlotFromClassNameAttr(nodePath.node.attributes, classesVarToComponent, stylerToComponent, slotPropsVarToComponent);
163
+ const slotInfo = findSlotFromPropsSpreadAttr(nodePath.node.attributes, slotPropsVarToComponent) ?? classNameSlotInfo;
164
+ if (!slotInfo) return;
165
+ const slotMotion = getCustomSlotMotion(manifest, slotInfo);
166
+ if (slotMotion) {
167
+ const motionResult = applySlotMotionToElement(nodePath, slotMotion);
168
+ if (motionResult.transformed) {
169
+ transformed = true;
170
+ needsMotionImport = true;
171
+ }
172
+ if (motionResult.needsResolveMotionStateImport) needsResolveMotionStateImport = true;
173
+ if (motionResult.transformed && slotMotion.exit) {
174
+ if (wrapParentConditionalWithAnimatePresence(nodePath)) needsAnimatePresenceImport = true;
175
+ }
176
+ }
177
+ if (nodePath.node.attributes.some((attr) => attr.type === "JSXAttribute" && attr.name?.name === "data-uds-slot")) return;
178
+ nodePath.node.attributes.push(t.jsxAttribute(t.jsxIdentifier("data-uds-slot"), t.stringLiteral(slotInfo.slotName)), t.jsxAttribute(t.jsxIdentifier("data-uds-component"), t.stringLiteral(slotInfo.componentName)));
179
+ transformed = true;
180
+ },
181
+ ImportDeclaration(nodePath) {
182
+ const importSource = nodePath.node.source?.value;
183
+ if (!importSource) return;
184
+ if (importSource === "motion/react") {
185
+ for (const specifier of nodePath.node.specifiers) if (specifier.type === "ImportSpecifier" && specifier.imported?.type === "Identifier") {
186
+ if (specifier.imported.name === "motion") hasMotionImport = true;
187
+ if (specifier.imported.name === "AnimatePresence") hasAnimatePresenceImport = true;
188
+ }
189
+ }
190
+ if (!isUdsImportSource(importSource)) return;
191
+ for (const specifier of nodePath.node.specifiers) {
192
+ const localName = specifier.local?.name;
193
+ if (localName) udsImportedNames.add(localName);
194
+ }
195
+ for (const specifier of nodePath.node.specifiers) {
196
+ if (specifier.type !== "ImportSpecifier") continue;
197
+ const importedName = specifier.imported?.type === "Identifier" ? specifier.imported.name : specifier.imported?.value;
198
+ if (!importedName) continue;
199
+ const match = importedName.match(/^get(\w+)Styles$/);
200
+ if (match) {
201
+ const localName = specifier.local?.name ?? importedName;
202
+ stylerToComponent.set(localName, match[1]);
203
+ }
204
+ if (importedName === "createVariants") {
205
+ const localName = specifier.local?.name ?? importedName;
206
+ createVariantsImportNames.add(localName);
207
+ continue;
208
+ }
209
+ if (importedName === "createComponent") {
210
+ const localName = specifier.local?.name ?? importedName;
211
+ createComponentImportNames.add(localName);
212
+ }
213
+ }
214
+ },
215
+ VariableDeclarator(nodePath) {
216
+ const init = nodePath.node.init;
217
+ if (!init) return;
218
+ const id = nodePath.node.id;
219
+ if (init.type === "CallExpression" && init.callee?.type === "Identifier" && createVariantsImportNames.has(init.callee.name) && id?.type === "Identifier") {
220
+ const variantClassMap = styleRuntime.extractVariantClassMapFromCreateVariantsCall(init);
221
+ if (variantClassMap) createVariantsClassMaps.set(id.name, variantClassMap);
222
+ return;
223
+ }
224
+ if (init.type === "CallExpression" && init.callee?.type === "Identifier" && init.callee.name === "createComponentStyler" && init.arguments[0]?.type === "StringLiteral" && id?.type === "Identifier") {
225
+ stylerToComponent.set(id.name, init.arguments[0].value);
226
+ return;
227
+ }
228
+ if (init.type === "CallExpression" && init.callee?.type === "Identifier" && id?.type === "Identifier") {
229
+ const componentName = stylerToComponent.get(init.callee.name);
230
+ if (componentName) classesVarToComponent.set(id.name, componentName);
231
+ return;
232
+ }
233
+ if (init.type === "CallExpression" && init.callee?.type === "MemberExpression" && init.callee.property?.name === "resolve" && init.callee.object?.type === "Identifier" && id?.type === "ObjectPattern") {
234
+ const componentName = stylerToComponent.get(init.callee.object.name);
235
+ if (componentName) {
236
+ for (const prop of id.properties) if (prop.type === "ObjectProperty" && prop.key?.type === "Identifier" && prop.key.name === "classes") {
237
+ const valueName = prop.value?.type === "Identifier" ? prop.value.name : "classes";
238
+ classesVarToComponent.set(valueName, componentName);
239
+ break;
240
+ }
241
+ }
242
+ }
243
+ },
244
+ CallExpression(nodePath) {
245
+ const callee = nodePath.node.callee;
246
+ if (callee.type !== "Identifier") return;
247
+ if (isCompiledJsxCallee(callee)) {
248
+ const firstArg = nodePath.node.arguments[0];
249
+ if (t.isIdentifier(firstArg) && isUdsComponentReference(nodePath, firstArg.name, allUdsComponents, udsImportedNames, createComponentDefinedNames, customComponents) && styleRuntime.transformCompiledJsxStyleProps(nodePath.node, hoistedVariantClassMapNames, hoistedVariantClassMaps)) transformed = true;
250
+ const compiledResult = handleCompiledJsxDataAttrs(nodePath.node, classesVarToComponent, stylerToComponent, slotPropsVarToComponent, manifest);
251
+ if (compiledResult.transformed) transformed = true;
252
+ if (compiledResult.needsMotionImport) needsMotionImport = true;
253
+ if (compiledResult.needsResolveMotionStateImport) needsResolveMotionStateImport = true;
254
+ return;
255
+ }
256
+ const isCreateComponentCall = createComponentImportNames.has(callee.name) || createComponentImportNames.size === 0 && callee.name === "createComponent";
257
+ if (!isCreateComponentCall) return;
258
+ const args = nodePath.node.arguments;
259
+ const componentName = inferCreateComponentNameFromAssignment(nodePath);
260
+ if (!componentName) return;
261
+ createComponentDefinedNames.add(componentName);
262
+ let renderFn = null;
263
+ if (isCreateComponentCall) {
264
+ if (args.length >= 2 && args[0]?.type === "StringLiteral" && isCreateComponentRenderFnNode(args[1])) throw nodePath.buildCodeFrameError("createComponent(\"Name\", renderFn) is no longer supported. Use createComponent(renderFn).");
265
+ const isPrimitiveCreateComponentCall = args.length === 1 && t.isStringLiteral(args[0]);
266
+ if (!(args.length === 1 && isCreateComponentRenderFnNode(args[0])) && !isPrimitiveCreateComponentCall) return;
267
+ if (isCreateComponentRenderFnNode(args[0])) renderFn = args[0];
268
+ }
269
+ if (renderFn) {
270
+ const classesParam = findClassesParamName(renderFn);
271
+ if (classesParam) classesVarToComponent.set(classesParam, componentName);
272
+ const slotPropsParam = findSlotPropsParamName(renderFn);
273
+ if (slotPropsParam) slotPropsVarToComponent.set(slotPropsParam, componentName);
274
+ }
275
+ const loweredData = resolveLoweredCreateComponentData(componentName, renderFn ? extractOwnPropKeys(renderFn) : [], manifest, transformData);
276
+ if (args.length === 1 && t.isStringLiteral(args[0])) {
277
+ loweredData.rootElement = args[0].value;
278
+ if (canInlineSimpleLoweredComponent(loweredData)) {
279
+ const primitiveResult = buildInlineSimplePrimitiveCreateComponentRenderFn(loweredData);
280
+ nodePath.replaceWith(primitiveResult.expression);
281
+ if (primitiveResult.needsProcessStylePropsImport) needsProcessStylePropsImport = true;
282
+ needsCreateComponentImportCleanup = true;
283
+ transformed = true;
284
+ return;
285
+ }
286
+ nodePath.replaceWith(t.callExpression(t.cloneNode(callee), [buildLoweredCreateComponentConfigExpression(loweredData), t.cloneNode(args[0], true)]));
287
+ transformed = true;
288
+ return;
289
+ }
290
+ if (canInlineSimpleLoweredComponent(loweredData)) {
291
+ const inlineResult = buildInlineSimpleLoweredCreateComponentRenderFn(loweredData, renderFn);
292
+ nodePath.replaceWith(inlineResult.expression);
293
+ if (inlineResult.needsMotionImport) needsMotionImport = true;
294
+ if (inlineResult.needsAnimatePresenceImport) needsAnimatePresenceImport = true;
295
+ if (inlineResult.needsResolveMotionStateImport) needsResolveMotionStateImport = true;
296
+ needsCreateComponentImportCleanup = true;
297
+ transformed = true;
298
+ return;
299
+ }
300
+ if (!renderFn) return;
301
+ nodePath.replaceWith(t.callExpression(t.cloneNode(callee), [buildLoweredCreateComponentConfigExpression(loweredData), t.cloneNode(renderFn, true)]));
302
+ transformed = true;
303
+ }
304
+ });
305
+ if (needsCreateComponentImportCleanup) traverse(ast, { ImportDeclaration(nodePath) {
306
+ const importSource = nodePath.node.source?.value;
307
+ if (!importSource) return;
308
+ if (!isUdsImportSource(importSource)) return;
309
+ const nextSpecifiers = nodePath.node.specifiers.filter((specifier) => {
310
+ if (specifier.type !== "ImportSpecifier") return true;
311
+ const importedName = specifier.imported?.type === "Identifier" ? specifier.imported.name : specifier.imported?.value;
312
+ if (importedName !== "createComponent") return true;
313
+ const localName = specifier.local?.name ?? importedName;
314
+ nodePath.scope.crawl();
315
+ const binding = nodePath.scope.getBinding(localName);
316
+ return Boolean(binding?.referenced);
317
+ });
318
+ if (nextSpecifiers.length === nodePath.node.specifiers.length) return;
319
+ if (nextSpecifiers.length === 0) {
320
+ nodePath.remove();
321
+ return;
322
+ }
323
+ nodePath.node.specifiers = nextSpecifiers;
324
+ } });
325
+ if (!transformed) return source;
326
+ const sourceDir = path.dirname(resourcePath || projectRoot);
327
+ for (const [componentName, importPath] of importsToAdd) {
328
+ const absoluteImport = path.resolve(projectRoot, importPath);
329
+ let resolvedPath = path.relative(sourceDir, absoluteImport);
330
+ if (!resolvedPath.startsWith(".")) resolvedPath = `./${resolvedPath}`;
331
+ ast.program.body.unshift(t.importDeclaration([t.importSpecifier(t.identifier(componentName), t.identifier(componentName))], t.stringLiteral(resolvedPath)));
332
+ }
333
+ const motionImportSpecifiers = [];
334
+ if (needsMotionImport && !hasMotionImport) motionImportSpecifiers.push(t.importSpecifier(t.identifier("motion"), t.identifier("motion")));
335
+ if (needsAnimatePresenceImport && !hasAnimatePresenceImport) motionImportSpecifiers.push(t.importSpecifier(t.identifier("AnimatePresence"), t.identifier("AnimatePresence")));
336
+ if (motionImportSpecifiers.length > 0) ast.program.body.unshift(t.importDeclaration(motionImportSpecifiers, t.stringLiteral("motion/react")));
337
+ if (needsProcessStylePropsImport) {
338
+ if (!ast.program.body.some((node) => t.isImportDeclaration(node) && node.specifiers.some((s) => t.isImportSpecifier(s) && (t.isIdentifier(s.imported) && s.imported.name === "processStyleProps" || t.isStringLiteral(s.imported) && s.imported.value === "processStyleProps")))) ast.program.body.unshift(t.importDeclaration([t.importSpecifier(t.identifier("processStyleProps"), t.identifier("processStyleProps"))], t.stringLiteral("@uds/core")));
339
+ }
340
+ if (needsResolveMotionStateImport) ast.program.body.unshift(t.importDeclaration([t.importSpecifier(t.identifier("__rms"), t.identifier("resolveMotionState"))], t.stringLiteral("@uds/core")));
341
+ const motionStatesMap = getHoistedMotionStates();
342
+ if (motionStatesMap.size > 0) for (const [varName, statesConfig] of motionStatesMap) ast.program.body.unshift(t.variableDeclaration("const", [t.variableDeclarator(t.identifier(varName), t.valueToNode(statesConfig))]));
343
+ if (hoistedVariantClassMaps.size > 0) {
344
+ const declarations = [];
345
+ for (const [lookupName, classMap] of hoistedVariantClassMaps) declarations.push(t.variableDeclaration("const", [t.variableDeclarator(t.identifier(lookupName), t.objectExpression(Object.entries(classMap).map(([variantName, className]) => t.objectProperty(t.stringLiteral(variantName), t.stringLiteral(className)))))]));
346
+ const firstNonImportIndex = ast.program.body.findIndex((node) => node.type !== "ImportDeclaration");
347
+ if (firstNonImportIndex === -1) ast.program.body.push(...declarations);
348
+ else ast.program.body.splice(firstNonImportIndex, 0, ...declarations);
349
+ }
350
+ return generate(ast, {
351
+ retainLines: true,
352
+ sourceMaps: false
353
+ }).code;
354
+ };
355
+ const normal = transformLoader;
356
+ //#endregion
357
+ export { normal, transformLoader };
@@ -0,0 +1,17 @@
1
+ import { NextConfig } from "next";
2
+
3
+ //#region ../loader/dist/next.d.ts
4
+ //#region src/next.d.ts
5
+ interface WithUdsOptions {
6
+ /** Output directory for generated files (default: '.uds') */
7
+ outputDir?: string;
8
+ /** Skip addDependency calls to prevent webpack from watching .uds/ artifacts.
9
+ * Use this when the app has its own reload mechanism (e.g., Studio WebSocket). */
10
+ skipWatchDependencies?: boolean;
11
+ }
12
+ type NextConfigFn = (phase: string, ctx: {
13
+ defaultConfig: NextConfig;
14
+ }) => NextConfig | Promise<NextConfig>;
15
+ declare function withUds(nextConfigOrFn: NextConfig | NextConfigFn, options?: WithUdsOptions): NextConfig | NextConfigFn; //#endregion
16
+ //#endregion
17
+ export { WithUdsOptions, withUds };
@@ -0,0 +1,77 @@
1
+ import { __require } from "./_virtual/_rolldown/runtime.js";
2
+ import path from "node:path";
3
+ //#region ../loader/dist/next.js
4
+ function resolveLoaderPath() {
5
+ return __require.resolve("@uds/loader/loader");
6
+ }
7
+ function applyUds(nextConfig, options) {
8
+ const outputDir = options?.outputDir ?? ".uds";
9
+ const skipWatch = options?.skipWatchDependencies ?? false;
10
+ const manifestPath = path.resolve(process.cwd(), outputDir, "meta-loader.json");
11
+ const loaderPath = resolveLoaderPath();
12
+ const turbopack = nextConfig.turbopack ?? {};
13
+ const existingRules = turbopack.rules ?? {};
14
+ const udsLoader = {
15
+ loader: loaderPath,
16
+ options: {
17
+ manifestPath,
18
+ isDev: true,
19
+ skipWatchDependencies: skipWatch
20
+ }
21
+ };
22
+ const udsRules = {};
23
+ for (const ext of [
24
+ "tsx",
25
+ "ts",
26
+ "js"
27
+ ]) {
28
+ const key = `*.${ext}`;
29
+ const udsKey = `**/*.${ext}`;
30
+ if (existingRules[key]) udsRules[udsKey] = { loaders: [udsLoader] };
31
+ else udsRules[key] = { loaders: [udsLoader] };
32
+ }
33
+ return {
34
+ ...nextConfig,
35
+ turbopack: {
36
+ ...turbopack,
37
+ rules: {
38
+ ...existingRules,
39
+ ...udsRules
40
+ }
41
+ },
42
+ webpack(config, webpackOptions) {
43
+ config.module?.rules?.push({
44
+ test: /\.(tsx|ts|js)$/,
45
+ use: [{
46
+ loader: loaderPath,
47
+ options: {
48
+ manifestPath,
49
+ isDev: webpackOptions.dev,
50
+ skipWatchDependencies: skipWatch
51
+ }
52
+ }]
53
+ });
54
+ if (skipWatch) {
55
+ const existing = config.watchOptions?.ignored;
56
+ config.watchOptions = {
57
+ ...config.watchOptions,
58
+ ignored: [
59
+ ...Array.isArray(existing) ? existing : existing ? [existing] : [],
60
+ "**/.uds/**",
61
+ "**/uds.config.ts"
62
+ ]
63
+ };
64
+ }
65
+ if (typeof nextConfig.webpack === "function") return nextConfig.webpack(config, webpackOptions);
66
+ return config;
67
+ }
68
+ };
69
+ }
70
+ function withUds(nextConfigOrFn, options) {
71
+ if (typeof nextConfigOrFn === "function") return async (phase, ctx) => {
72
+ return applyUds(await nextConfigOrFn(phase, ctx), options);
73
+ };
74
+ return applyUds(nextConfigOrFn, options);
75
+ }
76
+ //#endregion
77
+ export { withUds };
@@ -0,0 +1,203 @@
1
+ import { __commonJSMin } from "../../../_virtual/_rolldown/runtime.js";
2
+ import { require_react } from "../index.js";
3
+ //#region ../loader/dist/node_modules/react/cjs/react-jsx-runtime.development.js
4
+ /**
5
+ * @license React
6
+ * react-jsx-runtime.development.js
7
+ *
8
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */
13
+ var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJSMin(((exports) => {
14
+ (function() {
15
+ function getComponentNameFromType(type) {
16
+ if (null == type) return null;
17
+ if ("function" === typeof type) return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
18
+ if ("string" === typeof type) return type;
19
+ switch (type) {
20
+ case REACT_FRAGMENT_TYPE: return "Fragment";
21
+ case REACT_PROFILER_TYPE: return "Profiler";
22
+ case REACT_STRICT_MODE_TYPE: return "StrictMode";
23
+ case REACT_SUSPENSE_TYPE: return "Suspense";
24
+ case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList";
25
+ case REACT_ACTIVITY_TYPE: return "Activity";
26
+ }
27
+ if ("object" === typeof type) switch ("number" === typeof type.tag && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), type.$$typeof) {
28
+ case REACT_PORTAL_TYPE: return "Portal";
29
+ case REACT_CONTEXT_TYPE: return type.displayName || "Context";
30
+ case REACT_CONSUMER_TYPE: return (type._context.displayName || "Context") + ".Consumer";
31
+ case REACT_FORWARD_REF_TYPE:
32
+ var innerType = type.render;
33
+ type = type.displayName;
34
+ type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
35
+ return type;
36
+ case REACT_MEMO_TYPE: return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
37
+ case REACT_LAZY_TYPE:
38
+ innerType = type._payload;
39
+ type = type._init;
40
+ try {
41
+ return getComponentNameFromType(type(innerType));
42
+ } catch (x) {}
43
+ }
44
+ return null;
45
+ }
46
+ function testStringCoercion(value) {
47
+ return "" + value;
48
+ }
49
+ function checkKeyStringCoercion(value) {
50
+ try {
51
+ testStringCoercion(value);
52
+ var JSCompiler_inline_result = !1;
53
+ } catch (e) {
54
+ JSCompiler_inline_result = !0;
55
+ }
56
+ if (JSCompiler_inline_result) {
57
+ JSCompiler_inline_result = console;
58
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
59
+ var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
60
+ JSCompiler_temp_const.call(JSCompiler_inline_result, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", JSCompiler_inline_result$jscomp$0);
61
+ return testStringCoercion(value);
62
+ }
63
+ }
64
+ function getTaskName(type) {
65
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
66
+ if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE) return "<...>";
67
+ try {
68
+ var name = getComponentNameFromType(type);
69
+ return name ? "<" + name + ">" : "<...>";
70
+ } catch (x) {
71
+ return "<...>";
72
+ }
73
+ }
74
+ function getOwner() {
75
+ var dispatcher = ReactSharedInternals.A;
76
+ return null === dispatcher ? null : dispatcher.getOwner();
77
+ }
78
+ function UnknownOwner() {
79
+ return Error("react-stack-top-frame");
80
+ }
81
+ function hasValidKey(config) {
82
+ if (hasOwnProperty.call(config, "key")) {
83
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
84
+ if (getter && getter.isReactWarning) return !1;
85
+ }
86
+ return void 0 !== config.key;
87
+ }
88
+ function defineKeyPropWarningGetter(props, displayName) {
89
+ function warnAboutAccessingKey() {
90
+ specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", displayName));
91
+ }
92
+ warnAboutAccessingKey.isReactWarning = !0;
93
+ Object.defineProperty(props, "key", {
94
+ get: warnAboutAccessingKey,
95
+ configurable: !0
96
+ });
97
+ }
98
+ function elementRefGetterWithDeprecationWarning() {
99
+ var componentName = getComponentNameFromType(this.type);
100
+ didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."));
101
+ componentName = this.props.ref;
102
+ return void 0 !== componentName ? componentName : null;
103
+ }
104
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
105
+ var refProp = props.ref;
106
+ type = {
107
+ $$typeof: REACT_ELEMENT_TYPE,
108
+ type,
109
+ key,
110
+ props,
111
+ _owner: owner
112
+ };
113
+ null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
114
+ enumerable: !1,
115
+ get: elementRefGetterWithDeprecationWarning
116
+ }) : Object.defineProperty(type, "ref", {
117
+ enumerable: !1,
118
+ value: null
119
+ });
120
+ type._store = {};
121
+ Object.defineProperty(type._store, "validated", {
122
+ configurable: !1,
123
+ enumerable: !1,
124
+ writable: !0,
125
+ value: 0
126
+ });
127
+ Object.defineProperty(type, "_debugInfo", {
128
+ configurable: !1,
129
+ enumerable: !1,
130
+ writable: !0,
131
+ value: null
132
+ });
133
+ Object.defineProperty(type, "_debugStack", {
134
+ configurable: !1,
135
+ enumerable: !1,
136
+ writable: !0,
137
+ value: debugStack
138
+ });
139
+ Object.defineProperty(type, "_debugTask", {
140
+ configurable: !1,
141
+ enumerable: !1,
142
+ writable: !0,
143
+ value: debugTask
144
+ });
145
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
146
+ return type;
147
+ }
148
+ function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
149
+ var children = config.children;
150
+ if (void 0 !== children) if (isStaticChildren) if (isArrayImpl(children)) {
151
+ for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++) validateChildKeys(children[isStaticChildren]);
152
+ Object.freeze && Object.freeze(children);
153
+ } else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
154
+ else validateChildKeys(children);
155
+ if (hasOwnProperty.call(config, "key")) {
156
+ children = getComponentNameFromType(type);
157
+ var keys = Object.keys(config).filter(function(k) {
158
+ return "key" !== k;
159
+ });
160
+ isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
161
+ didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", isStaticChildren, children, keys, children), didWarnAboutKeySpread[children + isStaticChildren] = !0);
162
+ }
163
+ children = null;
164
+ void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
165
+ hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
166
+ if ("key" in config) {
167
+ maybeKey = {};
168
+ for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
169
+ } else maybeKey = config;
170
+ children && defineKeyPropWarningGetter(maybeKey, "function" === typeof type ? type.displayName || type.name || "Unknown" : type);
171
+ return ReactElement(type, children, maybeKey, getOwner(), debugStack, debugTask);
172
+ }
173
+ function validateChildKeys(node) {
174
+ isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
175
+ }
176
+ function isValidElement(object) {
177
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
178
+ }
179
+ var React = require_react(), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
180
+ return null;
181
+ };
182
+ React = { react_stack_bottom_frame: function(callStackForError) {
183
+ return callStackForError();
184
+ } };
185
+ var specialPropKeyWarningShown;
186
+ var didWarnAboutElementRef = {};
187
+ var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(React, UnknownOwner)();
188
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
189
+ var didWarnAboutKeySpread = {};
190
+ exports.Fragment = REACT_FRAGMENT_TYPE;
191
+ exports.jsx = function(type, config, maybeKey) {
192
+ var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
193
+ return jsxDEVImpl(type, config, maybeKey, !1, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
194
+ };
195
+ exports.jsxs = function(type, config, maybeKey) {
196
+ var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
197
+ return jsxDEVImpl(type, config, maybeKey, !0, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
198
+ };
199
+ })();
200
+ }));
201
+ require_react_jsx_runtime_development();
202
+ //#endregion
203
+ export { require_react_jsx_runtime_development };