aeon-ui-engine 1.8.0 → 1.9.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 (527) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/package.json +5 -2
  3. package/packages/core/dist/index.d.ts +116 -1
  4. package/packages/core/dist/index.js +202 -1
  5. package/packages/core/src/anatomy.ts +13 -1
  6. package/packages/core/src/index.ts +2 -0
  7. package/packages/core/src/list-window.ts +149 -0
  8. package/packages/core/src/sound.ts +154 -0
  9. package/packages/panda/package.json +6 -3
  10. package/packages/panda/panda.config.ts +12 -0
  11. package/packages/panda/src/recipes/clipboard.ts +40 -0
  12. package/packages/panda/src/recipes/composer.ts +4 -3
  13. package/packages/panda/src/recipes/index.ts +4 -0
  14. package/packages/panda/src/recipes/prose.ts +110 -0
  15. package/packages/panda/src/recipes/segment-group.ts +50 -0
  16. package/packages/panda/src/recipes/textarea.ts +60 -0
  17. package/packages/panda/styled-system/css/conditions.d.ts +7 -0
  18. package/packages/panda/styled-system/css/conditions.js +32 -0
  19. package/packages/panda/styled-system/css/css.d.ts +6 -6
  20. package/packages/panda/styled-system/css/css.js +63 -0
  21. package/packages/panda/styled-system/css/cva.d.ts +2 -3
  22. package/packages/panda/styled-system/css/cva.js +51 -0
  23. package/packages/panda/styled-system/css/cx.d.ts +5 -4
  24. package/packages/panda/styled-system/css/{cx.mjs → cx.js} +5 -4
  25. package/packages/panda/styled-system/css/first-that-works.d.ts +22 -0
  26. package/packages/panda/styled-system/css/first-that-works.js +1 -0
  27. package/packages/panda/styled-system/css/index.d.ts +6 -3
  28. package/packages/panda/styled-system/css/index.js +8 -0
  29. package/packages/panda/styled-system/css/keyframes.d.ts +5 -0
  30. package/packages/panda/styled-system/css/keyframes.js +8 -0
  31. package/packages/panda/styled-system/css/position-try.d.ts +5 -0
  32. package/packages/panda/styled-system/css/position-try.js +11 -0
  33. package/packages/panda/styled-system/css/sva.d.ts +1 -2
  34. package/packages/panda/styled-system/css/sva.js +49 -0
  35. package/packages/panda/styled-system/css/view-transition.d.ts +7 -0
  36. package/packages/panda/styled-system/css/view-transition.js +18 -0
  37. package/packages/panda/styled-system/helpers.d.ts +67 -0
  38. package/packages/panda/styled-system/helpers.js +624 -0
  39. package/packages/panda/styled-system/jsx/aspect-ratio.d.ts +3 -6
  40. package/packages/panda/styled-system/jsx/aspect-ratio.js +11 -0
  41. package/packages/panda/styled-system/jsx/bleed.d.ts +4 -7
  42. package/packages/panda/styled-system/jsx/bleed.js +11 -0
  43. package/packages/panda/styled-system/jsx/box.d.ts +4 -7
  44. package/packages/panda/styled-system/jsx/box.js +11 -0
  45. package/packages/panda/styled-system/jsx/center.d.ts +4 -7
  46. package/packages/panda/styled-system/jsx/center.js +11 -0
  47. package/packages/panda/styled-system/jsx/circle.d.ts +4 -7
  48. package/packages/panda/styled-system/jsx/circle.js +11 -0
  49. package/packages/panda/styled-system/jsx/container.d.ts +4 -7
  50. package/packages/panda/styled-system/jsx/container.js +11 -0
  51. package/packages/panda/styled-system/jsx/cq.d.ts +4 -7
  52. package/packages/panda/styled-system/jsx/cq.js +11 -0
  53. package/packages/panda/styled-system/jsx/create-recipe-context.d.ts +31 -0
  54. package/packages/panda/styled-system/jsx/create-recipe-context.js +38 -0
  55. package/packages/panda/styled-system/jsx/create-slot-recipe-context.d.ts +49 -0
  56. package/packages/panda/styled-system/jsx/create-slot-recipe-context.js +124 -0
  57. package/packages/panda/styled-system/jsx/divider.d.ts +4 -7
  58. package/packages/panda/styled-system/jsx/divider.js +11 -0
  59. package/packages/panda/styled-system/jsx/factory.d.ts +2 -2
  60. package/packages/panda/styled-system/jsx/factory.js +91 -0
  61. package/packages/panda/styled-system/jsx/flex.d.ts +4 -7
  62. package/packages/panda/styled-system/jsx/flex.js +11 -0
  63. package/packages/panda/styled-system/jsx/float.d.ts +4 -7
  64. package/packages/panda/styled-system/jsx/float.js +11 -0
  65. package/packages/panda/styled-system/jsx/grid-item.d.ts +4 -7
  66. package/packages/panda/styled-system/jsx/grid-item.js +11 -0
  67. package/packages/panda/styled-system/jsx/grid.d.ts +4 -7
  68. package/packages/panda/styled-system/jsx/grid.js +11 -0
  69. package/packages/panda/styled-system/jsx/helper.d.ts +34 -0
  70. package/packages/panda/styled-system/jsx/helper.js +92 -0
  71. package/packages/panda/styled-system/jsx/hstack.d.ts +4 -7
  72. package/packages/panda/styled-system/jsx/hstack.js +11 -0
  73. package/packages/panda/styled-system/jsx/index.d.ts +17 -17
  74. package/packages/panda/styled-system/jsx/index.js +24 -0
  75. package/packages/panda/styled-system/jsx/is-valid-prop.d.ts +5 -10
  76. package/packages/panda/styled-system/jsx/is-valid-prop.js +12 -0
  77. package/packages/panda/styled-system/jsx/link-overlay.d.ts +4 -7
  78. package/packages/panda/styled-system/jsx/link-overlay.js +11 -0
  79. package/packages/panda/styled-system/jsx/spacer.d.ts +4 -7
  80. package/packages/panda/styled-system/jsx/spacer.js +11 -0
  81. package/packages/panda/styled-system/jsx/square.d.ts +4 -7
  82. package/packages/panda/styled-system/jsx/square.js +11 -0
  83. package/packages/panda/styled-system/jsx/stack.d.ts +4 -7
  84. package/packages/panda/styled-system/jsx/stack.js +11 -0
  85. package/packages/panda/styled-system/jsx/visually-hidden.d.ts +4 -7
  86. package/packages/panda/styled-system/jsx/visually-hidden.js +11 -0
  87. package/packages/panda/styled-system/jsx/vstack.d.ts +4 -7
  88. package/packages/panda/styled-system/jsx/vstack.js +11 -0
  89. package/packages/panda/styled-system/jsx/wrap.d.ts +4 -7
  90. package/packages/panda/styled-system/jsx/wrap.js +11 -0
  91. package/packages/panda/styled-system/patterns/aspect-ratio.d.ts +8 -9
  92. package/packages/panda/styled-system/patterns/aspect-ratio.js +37 -0
  93. package/packages/panda/styled-system/patterns/bleed.d.ts +9 -10
  94. package/packages/panda/styled-system/patterns/bleed.js +30 -0
  95. package/packages/panda/styled-system/patterns/box.d.ts +8 -11
  96. package/packages/panda/styled-system/patterns/box.js +16 -0
  97. package/packages/panda/styled-system/patterns/center.d.ts +8 -9
  98. package/packages/panda/styled-system/patterns/center.js +22 -0
  99. package/packages/panda/styled-system/patterns/circle.d.ts +8 -9
  100. package/packages/panda/styled-system/patterns/circle.js +26 -0
  101. package/packages/panda/styled-system/patterns/container.d.ts +8 -11
  102. package/packages/panda/styled-system/patterns/container.js +26 -0
  103. package/packages/panda/styled-system/patterns/cq.d.ts +10 -10
  104. package/packages/panda/styled-system/patterns/cq.js +24 -0
  105. package/packages/panda/styled-system/patterns/divider.d.ts +11 -11
  106. package/packages/panda/styled-system/patterns/divider.js +31 -0
  107. package/packages/panda/styled-system/patterns/flex.d.ts +14 -15
  108. package/packages/panda/styled-system/patterns/flex.js +27 -0
  109. package/packages/panda/styled-system/patterns/float.d.ts +12 -12
  110. package/packages/panda/styled-system/patterns/float.js +84 -0
  111. package/packages/panda/styled-system/patterns/grid-item.d.ts +13 -14
  112. package/packages/panda/styled-system/patterns/grid-item.js +26 -0
  113. package/packages/panda/styled-system/patterns/grid.d.ts +13 -13
  114. package/packages/panda/styled-system/patterns/grid.js +30 -0
  115. package/packages/panda/styled-system/patterns/hstack.d.ts +9 -10
  116. package/packages/panda/styled-system/patterns/hstack.js +27 -0
  117. package/packages/panda/styled-system/patterns/index.d.ts +14 -15
  118. package/packages/panda/styled-system/patterns/index.js +20 -0
  119. package/packages/panda/styled-system/patterns/link-overlay.d.ts +8 -11
  120. package/packages/panda/styled-system/patterns/link-overlay.js +25 -0
  121. package/packages/panda/styled-system/patterns/runtime.js +25 -0
  122. package/packages/panda/styled-system/patterns/spacer.d.ts +9 -9
  123. package/packages/panda/styled-system/patterns/spacer.js +26 -0
  124. package/packages/panda/styled-system/patterns/square.d.ts +8 -9
  125. package/packages/panda/styled-system/patterns/square.js +25 -0
  126. package/packages/panda/styled-system/patterns/stack.d.ts +11 -12
  127. package/packages/panda/styled-system/patterns/stack.js +30 -0
  128. package/packages/panda/styled-system/patterns/visually-hidden.d.ts +8 -11
  129. package/packages/panda/styled-system/patterns/visually-hidden.js +19 -0
  130. package/packages/panda/styled-system/patterns/vstack.d.ts +9 -10
  131. package/packages/panda/styled-system/patterns/vstack.js +27 -0
  132. package/packages/panda/styled-system/patterns/wrap.d.ts +12 -13
  133. package/packages/panda/styled-system/patterns/wrap.js +26 -0
  134. package/packages/panda/styled-system/recipes/aeon-accordion.d.ts +9 -26
  135. package/packages/panda/styled-system/recipes/aeon-accordion.js +5 -0
  136. package/packages/panda/styled-system/recipes/aeon-app-shell.d.ts +10 -26
  137. package/packages/panda/styled-system/recipes/aeon-app-shell.js +5 -0
  138. package/packages/panda/styled-system/recipes/aeon-async.d.ts +9 -26
  139. package/packages/panda/styled-system/recipes/aeon-async.js +5 -0
  140. package/packages/panda/styled-system/recipes/aeon-avatar.d.ts +10 -28
  141. package/packages/panda/styled-system/recipes/aeon-avatar.js +5 -0
  142. package/packages/panda/styled-system/recipes/aeon-badge.d.ts +8 -26
  143. package/packages/panda/styled-system/recipes/aeon-badge.js +5 -0
  144. package/packages/panda/styled-system/recipes/aeon-bar.d.ts +13 -32
  145. package/packages/panda/styled-system/recipes/aeon-bar.js +5 -0
  146. package/packages/panda/styled-system/recipes/aeon-button-group.d.ts +10 -33
  147. package/packages/panda/styled-system/recipes/aeon-button-group.js +5 -0
  148. package/packages/panda/styled-system/recipes/aeon-button.d.ts +10 -33
  149. package/packages/panda/styled-system/recipes/aeon-button.js +5 -0
  150. package/packages/panda/styled-system/recipes/aeon-checkbox.d.ts +9 -24
  151. package/packages/panda/styled-system/recipes/aeon-checkbox.js +5 -0
  152. package/packages/panda/styled-system/recipes/aeon-clipboard.d.ts +16 -0
  153. package/packages/panda/styled-system/recipes/aeon-clipboard.js +5 -0
  154. package/packages/panda/styled-system/recipes/aeon-combobox.d.ts +9 -26
  155. package/packages/panda/styled-system/recipes/aeon-combobox.js +5 -0
  156. package/packages/panda/styled-system/recipes/aeon-composer.d.ts +9 -24
  157. package/packages/panda/styled-system/recipes/aeon-composer.js +5 -0
  158. package/packages/panda/styled-system/recipes/aeon-content.d.ts +10 -26
  159. package/packages/panda/styled-system/recipes/aeon-content.js +5 -0
  160. package/packages/panda/styled-system/recipes/aeon-conversation.d.ts +9 -24
  161. package/packages/panda/styled-system/recipes/aeon-conversation.js +5 -0
  162. package/packages/panda/styled-system/recipes/aeon-dialog.d.ts +9 -24
  163. package/packages/panda/styled-system/recipes/aeon-dialog.js +5 -0
  164. package/packages/panda/styled-system/recipes/aeon-entry.d.ts +11 -30
  165. package/packages/panda/styled-system/recipes/aeon-entry.js +5 -0
  166. package/packages/panda/styled-system/recipes/aeon-field.d.ts +9 -26
  167. package/packages/panda/styled-system/recipes/aeon-field.js +5 -0
  168. package/packages/panda/styled-system/recipes/aeon-file-upload.d.ts +9 -24
  169. package/packages/panda/styled-system/recipes/aeon-file-upload.js +5 -0
  170. package/packages/panda/styled-system/recipes/aeon-identity.d.ts +10 -28
  171. package/packages/panda/styled-system/recipes/aeon-identity.js +5 -0
  172. package/packages/panda/styled-system/recipes/aeon-list-row.d.ts +9 -26
  173. package/packages/panda/styled-system/recipes/aeon-list-row.js +5 -0
  174. package/packages/panda/styled-system/recipes/aeon-menu.d.ts +9 -24
  175. package/packages/panda/styled-system/recipes/aeon-menu.js +5 -0
  176. package/packages/panda/styled-system/recipes/aeon-metric-strip.d.ts +10 -28
  177. package/packages/panda/styled-system/recipes/aeon-metric-strip.js +5 -0
  178. package/packages/panda/styled-system/recipes/aeon-nav.d.ts +11 -30
  179. package/packages/panda/styled-system/recipes/aeon-nav.js +5 -0
  180. package/packages/panda/styled-system/recipes/aeon-panel.d.ts +10 -26
  181. package/packages/panda/styled-system/recipes/aeon-panel.js +5 -0
  182. package/packages/panda/styled-system/recipes/aeon-pin-input.d.ts +9 -24
  183. package/packages/panda/styled-system/recipes/aeon-pin-input.js +5 -0
  184. package/packages/panda/styled-system/recipes/aeon-popover.d.ts +9 -24
  185. package/packages/panda/styled-system/recipes/aeon-popover.js +5 -0
  186. package/packages/panda/styled-system/recipes/aeon-profile-header.d.ts +10 -28
  187. package/packages/panda/styled-system/recipes/aeon-profile-header.js +5 -0
  188. package/packages/panda/styled-system/recipes/aeon-progress.d.ts +9 -24
  189. package/packages/panda/styled-system/recipes/aeon-progress.js +5 -0
  190. package/packages/panda/styled-system/recipes/aeon-prose.d.ts +16 -0
  191. package/packages/panda/styled-system/recipes/aeon-prose.js +5 -0
  192. package/packages/panda/styled-system/recipes/aeon-radio-group.d.ts +9 -24
  193. package/packages/panda/styled-system/recipes/aeon-radio-group.js +5 -0
  194. package/packages/panda/styled-system/recipes/aeon-range-slider.d.ts +9 -24
  195. package/packages/panda/styled-system/recipes/aeon-range-slider.js +5 -0
  196. package/packages/panda/styled-system/recipes/aeon-scroll.d.ts +12 -36
  197. package/packages/panda/styled-system/recipes/aeon-scroll.js +5 -0
  198. package/packages/panda/styled-system/recipes/aeon-segment-group.d.ts +18 -0
  199. package/packages/panda/styled-system/recipes/aeon-segment-group.js +5 -0
  200. package/packages/panda/styled-system/recipes/aeon-select.d.ts +9 -26
  201. package/packages/panda/styled-system/recipes/aeon-select.js +5 -0
  202. package/packages/panda/styled-system/recipes/aeon-separator.d.ts +10 -26
  203. package/packages/panda/styled-system/recipes/aeon-separator.js +5 -0
  204. package/packages/panda/styled-system/recipes/aeon-slider.d.ts +9 -24
  205. package/packages/panda/styled-system/recipes/aeon-slider.js +5 -0
  206. package/packages/panda/styled-system/recipes/aeon-switch.d.ts +9 -24
  207. package/packages/panda/styled-system/recipes/aeon-switch.js +5 -0
  208. package/packages/panda/styled-system/recipes/aeon-tabs.d.ts +9 -24
  209. package/packages/panda/styled-system/recipes/aeon-tabs.js +5 -0
  210. package/packages/panda/styled-system/recipes/aeon-textarea.d.ts +18 -0
  211. package/packages/panda/styled-system/recipes/aeon-textarea.js +5 -0
  212. package/packages/panda/styled-system/recipes/aeon-theme-switcher.d.ts +10 -26
  213. package/packages/panda/styled-system/recipes/aeon-theme-switcher.js +5 -0
  214. package/packages/panda/styled-system/recipes/aeon-thread.d.ts +9 -24
  215. package/packages/panda/styled-system/recipes/aeon-thread.js +5 -0
  216. package/packages/panda/styled-system/recipes/aeon-toast.d.ts +9 -24
  217. package/packages/panda/styled-system/recipes/aeon-toast.js +5 -0
  218. package/packages/panda/styled-system/recipes/aeon-tooltip.d.ts +9 -24
  219. package/packages/panda/styled-system/recipes/aeon-tooltip.js +5 -0
  220. package/packages/panda/styled-system/recipes/index.d.ts +31 -28
  221. package/packages/panda/styled-system/recipes/index.js +43 -0
  222. package/packages/panda/styled-system/recipes/runtime.js +133 -0
  223. package/packages/panda/styled-system/styles.css +1899 -2106
  224. package/packages/panda/styled-system/tokens/index.d.ts +4 -5
  225. package/packages/panda/styled-system/tokens/index.js +18 -0
  226. package/packages/panda/styled-system/types/index.d.ts +3 -6
  227. package/packages/panda/styled-system/types/jsx.d.ts +36 -27
  228. package/packages/panda/styled-system/types/pattern.d.ts +18 -70
  229. package/packages/panda/styled-system/types/recipe.d.ts +50 -154
  230. package/packages/panda/styled-system/types/system.d.ts +1826 -0
  231. package/packages/panda/styled-system/types/tokens.d.ts +65 -0
  232. package/packages/panda/tsconfig.json +3 -1
  233. package/packages/primitives/dist/chunk-5BNAV4S2.js +258 -0
  234. package/packages/primitives/dist/chunk-HYHCIMHC.js +45 -0
  235. package/packages/primitives/dist/index.d.ts +2 -0
  236. package/packages/primitives/dist/index.js +30 -12
  237. package/packages/primitives/dist/machines/app-nav.d.ts +3 -3
  238. package/packages/primitives/dist/machines/cache.d.ts +223 -0
  239. package/packages/primitives/dist/machines/cache.js +14 -0
  240. package/packages/primitives/dist/machines/clipboard.d.ts +46 -0
  241. package/packages/primitives/dist/machines/clipboard.js +8 -0
  242. package/packages/primitives/dist/machines/tabs.d.ts +2 -2
  243. package/packages/primitives/src/index.ts +2 -0
  244. package/packages/primitives/src/machines/cache.ts +395 -0
  245. package/packages/primitives/src/machines/clipboard.ts +56 -0
  246. package/packages/react/dist/index.d.ts +106 -10
  247. package/packages/react/dist/index.js +1350 -994
  248. package/packages/react/src/clipboard/index.tsx +117 -0
  249. package/packages/react/src/composer/index.tsx +14 -5
  250. package/packages/react/src/index.ts +4 -0
  251. package/packages/react/src/prose/index.tsx +11 -0
  252. package/packages/react/src/radio-group/index.tsx +2 -1
  253. package/packages/react/src/scroll/index.tsx +1 -0
  254. package/packages/react/src/scroll/use-windowed-range.ts +118 -0
  255. package/packages/react/src/segment-group/index.tsx +171 -0
  256. package/packages/react/src/select/index.tsx +11 -2
  257. package/packages/react/src/tabs/index.tsx +19 -7
  258. package/packages/react/src/textarea/index.tsx +75 -0
  259. package/packages/react/src/utils/assign-ref.ts +7 -0
  260. package/packages/schemas/dist/index.d.ts +8 -0
  261. package/packages/schemas/dist/index.js +59 -0
  262. package/packages/schemas/json/catalog.json +493 -0
  263. package/packages/schemas/json/clipboard.json +136 -0
  264. package/packages/schemas/json/prose.json +103 -0
  265. package/packages/schemas/json/segmentGroup.json +131 -0
  266. package/packages/schemas/json/textarea.json +119 -0
  267. package/packages/schemas/registry/catalog.json +34 -0
  268. package/packages/schemas/registry/components/clipboard.json +136 -0
  269. package/packages/schemas/registry/components/prose.json +103 -0
  270. package/packages/schemas/registry/components/segmentGroup.json +131 -0
  271. package/packages/schemas/registry/components/textarea.json +119 -0
  272. package/packages/schemas/registry/machines/clipboard.json +110 -0
  273. package/packages/schemas/scripts/emit.ts +2 -0
  274. package/packages/schemas/src/components.ts +63 -0
  275. package/packages/ui/dist/index.d.ts +27 -3
  276. package/packages/ui/dist/index.js +232 -165
  277. package/packages/ui/src/clipboard.tsx +51 -0
  278. package/packages/ui/src/index.ts +4 -0
  279. package/packages/ui/src/prose.tsx +15 -0
  280. package/packages/ui/src/segment-group.tsx +28 -0
  281. package/packages/ui/src/textarea.tsx +17 -0
  282. package/scripts/vite-aliases.mjs +2 -2
  283. package/packages/cli/node_modules/.bin/esbuild +0 -21
  284. package/packages/cli/node_modules/.bin/jiti +0 -21
  285. package/packages/cli/node_modules/.bin/tsc +0 -21
  286. package/packages/cli/node_modules/.bin/tsserver +0 -21
  287. package/packages/cli/node_modules/.bin/tsup +0 -21
  288. package/packages/cli/node_modules/.bin/tsup-node +0 -21
  289. package/packages/cli/node_modules/.bin/tsx +0 -21
  290. package/packages/cli/node_modules/.bin/vite +0 -21
  291. package/packages/cli/node_modules/.bin/vitest +0 -21
  292. package/packages/core/node_modules/.bin/esbuild +0 -21
  293. package/packages/core/node_modules/.bin/jiti +0 -21
  294. package/packages/core/node_modules/.bin/tsc +0 -21
  295. package/packages/core/node_modules/.bin/tsserver +0 -21
  296. package/packages/core/node_modules/.bin/tsup +0 -21
  297. package/packages/core/node_modules/.bin/tsup-node +0 -21
  298. package/packages/core/node_modules/.bin/tsx +0 -21
  299. package/packages/core/node_modules/.bin/vite +0 -21
  300. package/packages/core/node_modules/.bin/vitest +0 -21
  301. package/packages/core/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +0 -1
  302. package/packages/core/src/identicon.test.ts +0 -39
  303. package/packages/core/src/machine.test.ts +0 -79
  304. package/packages/core/src/theme.test.ts +0 -14
  305. package/packages/geometry/node_modules/.bin/esbuild +0 -21
  306. package/packages/geometry/node_modules/.bin/jiti +0 -21
  307. package/packages/geometry/node_modules/.bin/tsc +0 -21
  308. package/packages/geometry/node_modules/.bin/tsserver +0 -21
  309. package/packages/geometry/node_modules/.bin/tsup +0 -21
  310. package/packages/geometry/node_modules/.bin/tsup-node +0 -21
  311. package/packages/geometry/node_modules/.bin/tsx +0 -21
  312. package/packages/panda/styled-system/css/conditions.mjs +0 -36
  313. package/packages/panda/styled-system/css/css.mjs +0 -45
  314. package/packages/panda/styled-system/css/cva.mjs +0 -87
  315. package/packages/panda/styled-system/css/index.mjs +0 -4
  316. package/packages/panda/styled-system/css/sva.mjs +0 -46
  317. package/packages/panda/styled-system/helpers.mjs +0 -328
  318. package/packages/panda/styled-system/jsx/aspect-ratio.mjs +0 -14
  319. package/packages/panda/styled-system/jsx/bleed.mjs +0 -14
  320. package/packages/panda/styled-system/jsx/box.mjs +0 -14
  321. package/packages/panda/styled-system/jsx/center.mjs +0 -14
  322. package/packages/panda/styled-system/jsx/circle.mjs +0 -14
  323. package/packages/panda/styled-system/jsx/container.mjs +0 -14
  324. package/packages/panda/styled-system/jsx/cq.mjs +0 -14
  325. package/packages/panda/styled-system/jsx/create-style-context.d.ts +0 -54
  326. package/packages/panda/styled-system/jsx/create-style-context.mjs +0 -121
  327. package/packages/panda/styled-system/jsx/divider.mjs +0 -14
  328. package/packages/panda/styled-system/jsx/factory-helper.mjs +0 -22
  329. package/packages/panda/styled-system/jsx/factory.mjs +0 -89
  330. package/packages/panda/styled-system/jsx/flex.mjs +0 -14
  331. package/packages/panda/styled-system/jsx/float.mjs +0 -14
  332. package/packages/panda/styled-system/jsx/grid-item.mjs +0 -14
  333. package/packages/panda/styled-system/jsx/grid.mjs +0 -14
  334. package/packages/panda/styled-system/jsx/hstack.mjs +0 -14
  335. package/packages/panda/styled-system/jsx/index.mjs +0 -23
  336. package/packages/panda/styled-system/jsx/is-valid-prop.mjs +0 -17
  337. package/packages/panda/styled-system/jsx/link-overlay.mjs +0 -14
  338. package/packages/panda/styled-system/jsx/spacer.mjs +0 -14
  339. package/packages/panda/styled-system/jsx/square.mjs +0 -14
  340. package/packages/panda/styled-system/jsx/stack.mjs +0 -14
  341. package/packages/panda/styled-system/jsx/visually-hidden.mjs +0 -14
  342. package/packages/panda/styled-system/jsx/vstack.mjs +0 -14
  343. package/packages/panda/styled-system/jsx/wrap.mjs +0 -14
  344. package/packages/panda/styled-system/patterns/aspect-ratio.mjs +0 -38
  345. package/packages/panda/styled-system/patterns/bleed.mjs +0 -24
  346. package/packages/panda/styled-system/patterns/box.mjs +0 -15
  347. package/packages/panda/styled-system/patterns/center.mjs +0 -21
  348. package/packages/panda/styled-system/patterns/circle.mjs +0 -25
  349. package/packages/panda/styled-system/patterns/container.mjs +0 -21
  350. package/packages/panda/styled-system/patterns/cq.mjs +0 -21
  351. package/packages/panda/styled-system/patterns/divider.mjs +0 -25
  352. package/packages/panda/styled-system/patterns/flex.mjs +0 -26
  353. package/packages/panda/styled-system/patterns/float.mjs +0 -52
  354. package/packages/panda/styled-system/patterns/grid-item.mjs +0 -25
  355. package/packages/panda/styled-system/patterns/grid.mjs +0 -27
  356. package/packages/panda/styled-system/patterns/hstack.mjs +0 -24
  357. package/packages/panda/styled-system/patterns/index.mjs +0 -20
  358. package/packages/panda/styled-system/patterns/link-overlay.mjs +0 -24
  359. package/packages/panda/styled-system/patterns/spacer.mjs +0 -25
  360. package/packages/panda/styled-system/patterns/square.mjs +0 -24
  361. package/packages/panda/styled-system/patterns/stack.mjs +0 -24
  362. package/packages/panda/styled-system/patterns/visually-hidden.mjs +0 -18
  363. package/packages/panda/styled-system/patterns/vstack.mjs +0 -24
  364. package/packages/panda/styled-system/patterns/wrap.mjs +0 -25
  365. package/packages/panda/styled-system/recipes/aeon-accordion.mjs +0 -49
  366. package/packages/panda/styled-system/recipes/aeon-app-shell.mjs +0 -70
  367. package/packages/panda/styled-system/recipes/aeon-async.mjs +0 -57
  368. package/packages/panda/styled-system/recipes/aeon-avatar.mjs +0 -57
  369. package/packages/panda/styled-system/recipes/aeon-badge.mjs +0 -32
  370. package/packages/panda/styled-system/recipes/aeon-bar.mjs +0 -77
  371. package/packages/panda/styled-system/recipes/aeon-button-group.mjs +0 -37
  372. package/packages/panda/styled-system/recipes/aeon-button.mjs +0 -39
  373. package/packages/panda/styled-system/recipes/aeon-checkbox.mjs +0 -49
  374. package/packages/panda/styled-system/recipes/aeon-combobox.mjs +0 -53
  375. package/packages/panda/styled-system/recipes/aeon-composer.mjs +0 -57
  376. package/packages/panda/styled-system/recipes/aeon-content.mjs +0 -70
  377. package/packages/panda/styled-system/recipes/aeon-conversation.mjs +0 -61
  378. package/packages/panda/styled-system/recipes/aeon-dialog.mjs +0 -61
  379. package/packages/panda/styled-system/recipes/aeon-entry.mjs +0 -100
  380. package/packages/panda/styled-system/recipes/aeon-field.mjs +0 -53
  381. package/packages/panda/styled-system/recipes/aeon-file-upload.mjs +0 -61
  382. package/packages/panda/styled-system/recipes/aeon-identity.mjs +0 -63
  383. package/packages/panda/styled-system/recipes/aeon-list-row.mjs +0 -49
  384. package/packages/panda/styled-system/recipes/aeon-menu.mjs +0 -53
  385. package/packages/panda/styled-system/recipes/aeon-metric-strip.mjs +0 -54
  386. package/packages/panda/styled-system/recipes/aeon-nav.mjs +0 -69
  387. package/packages/panda/styled-system/recipes/aeon-panel.mjs +0 -58
  388. package/packages/panda/styled-system/recipes/aeon-pin-input.mjs +0 -37
  389. package/packages/panda/styled-system/recipes/aeon-popover.mjs +0 -53
  390. package/packages/panda/styled-system/recipes/aeon-profile-header.mjs +0 -62
  391. package/packages/panda/styled-system/recipes/aeon-progress.mjs +0 -45
  392. package/packages/panda/styled-system/recipes/aeon-radio-group.mjs +0 -49
  393. package/packages/panda/styled-system/recipes/aeon-range-slider.mjs +0 -49
  394. package/packages/panda/styled-system/recipes/aeon-scroll.mjs +0 -64
  395. package/packages/panda/styled-system/recipes/aeon-select.mjs +0 -57
  396. package/packages/panda/styled-system/recipes/aeon-separator.mjs +0 -42
  397. package/packages/panda/styled-system/recipes/aeon-slider.mjs +0 -49
  398. package/packages/panda/styled-system/recipes/aeon-switch.mjs +0 -49
  399. package/packages/panda/styled-system/recipes/aeon-tabs.mjs +0 -49
  400. package/packages/panda/styled-system/recipes/aeon-theme-switcher.mjs +0 -59
  401. package/packages/panda/styled-system/recipes/aeon-thread.mjs +0 -73
  402. package/packages/panda/styled-system/recipes/aeon-toast.mjs +0 -49
  403. package/packages/panda/styled-system/recipes/aeon-tooltip.mjs +0 -49
  404. package/packages/panda/styled-system/recipes/create-recipe.mjs +0 -82
  405. package/packages/panda/styled-system/recipes/index.mjs +0 -39
  406. package/packages/panda/styled-system/tokens/index.mjs +0 -2224
  407. package/packages/panda/styled-system/tokens/tokens.d.ts +0 -60
  408. package/packages/panda/styled-system/types/composition.d.ts +0 -227
  409. package/packages/panda/styled-system/types/conditions.d.ts +0 -346
  410. package/packages/panda/styled-system/types/csstype.d.ts +0 -22570
  411. package/packages/panda/styled-system/types/global.d.ts +0 -20
  412. package/packages/panda/styled-system/types/parts.d.ts +0 -8
  413. package/packages/panda/styled-system/types/prop-type.d.ts +0 -250
  414. package/packages/panda/styled-system/types/selectors.d.ts +0 -59
  415. package/packages/panda/styled-system/types/static-css.d.ts +0 -56
  416. package/packages/panda/styled-system/types/style-props.d.ts +0 -8089
  417. package/packages/panda/styled-system/types/system-types.d.ts +0 -151
  418. package/packages/primitives/node_modules/.bin/esbuild +0 -21
  419. package/packages/primitives/node_modules/.bin/jiti +0 -21
  420. package/packages/primitives/node_modules/.bin/tsc +0 -21
  421. package/packages/primitives/node_modules/.bin/tsserver +0 -21
  422. package/packages/primitives/node_modules/.bin/tsup +0 -21
  423. package/packages/primitives/node_modules/.bin/tsup-node +0 -21
  424. package/packages/primitives/node_modules/.bin/tsx +0 -21
  425. package/packages/primitives/node_modules/.bin/vite +0 -21
  426. package/packages/primitives/node_modules/.bin/vitest +0 -21
  427. package/packages/primitives/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +0 -1
  428. package/packages/primitives/src/__tests__/app-nav.test.ts +0 -30
  429. package/packages/primitives/src/__tests__/file-upload.test.ts +0 -25
  430. package/packages/primitives/src/__tests__/floating-surface.test.ts +0 -29
  431. package/packages/primitives/src/__tests__/range-slider.test.ts +0 -39
  432. package/packages/react/node_modules/.bin/esbuild +0 -21
  433. package/packages/react/node_modules/.bin/jiti +0 -21
  434. package/packages/react/node_modules/.bin/tsc +0 -21
  435. package/packages/react/node_modules/.bin/tsserver +0 -21
  436. package/packages/react/node_modules/.bin/tsup +0 -21
  437. package/packages/react/node_modules/.bin/tsup-node +0 -21
  438. package/packages/react/node_modules/.bin/tsx +0 -21
  439. package/packages/react/node_modules/.bin/vite +0 -21
  440. package/packages/react/node_modules/.bin/vitest +0 -21
  441. package/packages/react/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +0 -1
  442. package/packages/react/src/avatar/avatar.test.tsx +0 -27
  443. package/packages/react/src/dialog/dialog.test.tsx +0 -77
  444. package/packages/react/src/select/select.test.tsx +0 -81
  445. package/packages/react/src/toast/toast.test.tsx +0 -40
  446. package/packages/react/src/tooltip/tooltip.test.tsx +0 -122
  447. package/packages/react-scene/node_modules/.bin/jiti +0 -21
  448. package/packages/react-scene/node_modules/.bin/tsc +0 -21
  449. package/packages/react-scene/node_modules/.bin/tsserver +0 -21
  450. package/packages/react-scene/node_modules/.bin/tsup +0 -21
  451. package/packages/react-scene/node_modules/.bin/tsup-node +0 -21
  452. package/packages/react-scene/node_modules/.bin/tsx +0 -21
  453. package/packages/scene/node_modules/.bin/jiti +0 -21
  454. package/packages/scene/node_modules/.bin/tsc +0 -21
  455. package/packages/scene/node_modules/.bin/tsserver +0 -21
  456. package/packages/scene/node_modules/.bin/tsup +0 -21
  457. package/packages/scene/node_modules/.bin/tsup-node +0 -21
  458. package/packages/scene/node_modules/.bin/tsx +0 -21
  459. package/packages/schemas/node_modules/.bin/esbuild +0 -21
  460. package/packages/schemas/node_modules/.bin/jiti +0 -21
  461. package/packages/schemas/node_modules/.bin/tsc +0 -21
  462. package/packages/schemas/node_modules/.bin/tsserver +0 -21
  463. package/packages/schemas/node_modules/.bin/tsup +0 -21
  464. package/packages/schemas/node_modules/.bin/tsup-node +0 -21
  465. package/packages/schemas/node_modules/.bin/tsx +0 -21
  466. package/packages/schemas/node_modules/.bin/vite +0 -21
  467. package/packages/schemas/node_modules/.bin/vitest +0 -21
  468. package/packages/schemas/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +0 -1
  469. package/packages/schemas/src/aeon-to-schema.test.ts +0 -70
  470. package/packages/schemas/src/index.test.ts +0 -108
  471. package/packages/signal/node_modules/.bin/jiti +0 -21
  472. package/packages/signal/node_modules/.bin/tsc +0 -21
  473. package/packages/signal/node_modules/.bin/tsserver +0 -21
  474. package/packages/signal/node_modules/.bin/tsup +0 -21
  475. package/packages/signal/node_modules/.bin/tsup-node +0 -21
  476. package/packages/signal/node_modules/.bin/tsx +0 -21
  477. package/packages/site/node_modules/.bin/jiti +0 -21
  478. package/packages/site/node_modules/.bin/tsc +0 -21
  479. package/packages/site/node_modules/.bin/tsserver +0 -21
  480. package/packages/site/node_modules/.bin/tsup +0 -21
  481. package/packages/site/node_modules/.bin/tsup-node +0 -21
  482. package/packages/site/node_modules/.bin/tsx +0 -21
  483. package/packages/solid/node_modules/.bin/jiti +0 -21
  484. package/packages/solid/node_modules/.bin/tsc +0 -21
  485. package/packages/solid/node_modules/.bin/tsserver +0 -21
  486. package/packages/solid/node_modules/.bin/tsup +0 -21
  487. package/packages/solid/node_modules/.bin/tsup-node +0 -21
  488. package/packages/solid/node_modules/.bin/tsx +0 -21
  489. package/packages/surface/node_modules/.bin/jiti +0 -21
  490. package/packages/surface/node_modules/.bin/tsc +0 -21
  491. package/packages/surface/node_modules/.bin/tsserver +0 -21
  492. package/packages/surface/node_modules/.bin/tsup +0 -21
  493. package/packages/surface/node_modules/.bin/tsup-node +0 -21
  494. package/packages/surface/node_modules/.bin/tsx +0 -21
  495. package/packages/svelte/node_modules/.bin/acorn +0 -21
  496. package/packages/svelte/node_modules/.bin/esbuild +0 -21
  497. package/packages/svelte/node_modules/.bin/jiti +0 -21
  498. package/packages/svelte/node_modules/.bin/svelte-check +0 -21
  499. package/packages/svelte/node_modules/.bin/tsc +0 -21
  500. package/packages/svelte/node_modules/.bin/tsserver +0 -21
  501. package/packages/svelte/node_modules/.bin/tsup +0 -21
  502. package/packages/svelte/node_modules/.bin/tsup-node +0 -21
  503. package/packages/svelte/node_modules/.bin/tsx +0 -21
  504. package/packages/svelte/node_modules/.bin/vite +0 -21
  505. package/packages/tree/node_modules/.bin/esbuild +0 -21
  506. package/packages/tree/node_modules/.bin/jiti +0 -21
  507. package/packages/tree/node_modules/.bin/tsc +0 -21
  508. package/packages/tree/node_modules/.bin/tsserver +0 -21
  509. package/packages/tree/node_modules/.bin/tsup +0 -21
  510. package/packages/tree/node_modules/.bin/tsup-node +0 -21
  511. package/packages/tree/node_modules/.bin/tsx +0 -21
  512. package/packages/tree/node_modules/.bin/vite +0 -21
  513. package/packages/tree/node_modules/.bin/vitest +0 -21
  514. package/packages/tree/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +0 -1
  515. package/packages/tree/src/exclusive-action.test.ts +0 -54
  516. package/packages/ui/node_modules/.bin/jiti +0 -21
  517. package/packages/ui/node_modules/.bin/tsc +0 -21
  518. package/packages/ui/node_modules/.bin/tsserver +0 -21
  519. package/packages/ui/node_modules/.bin/tsup +0 -21
  520. package/packages/ui/node_modules/.bin/tsup-node +0 -21
  521. package/packages/ui/node_modules/.bin/tsx +0 -21
  522. package/packages/vue/node_modules/.bin/jiti +0 -21
  523. package/packages/vue/node_modules/.bin/tsc +0 -21
  524. package/packages/vue/node_modules/.bin/tsserver +0 -21
  525. package/packages/vue/node_modules/.bin/tsup +0 -21
  526. package/packages/vue/node_modules/.bin/tsup-node +0 -21
  527. package/packages/vue/node_modules/.bin/tsx +0 -21
@@ -0,0 +1,624 @@
1
+ export function isObject(v) {
2
+ return typeof v === "object" && v != null && !Array.isArray(v)
3
+ }
4
+
5
+ const HAS_OWN = Object.prototype.hasOwnProperty
6
+
7
+ export function isBaseCondition(v) {
8
+ return v === "base"
9
+ }
10
+
11
+ export function filterBaseConditions(c) {
12
+ const out = []
13
+ for (let i = 0; i < c.length; i++) {
14
+ if (!isBaseCondition(c[i])) out.push(c[i])
15
+ }
16
+ return out
17
+ }
18
+
19
+ export function toHash(v) {
20
+ let h = 5381
21
+ for (let i = v.length; i; ) h = (h * 33) ^ v.charCodeAt(--i)
22
+ let x = h >>> 0, out = ''
23
+ for (; x > 52; x = (x / 52) | 0) {
24
+ const c = x % 52
25
+ out = String.fromCharCode(c + (c > 25 ? 39 : 97)) + out
26
+ }
27
+ const c = x % 52
28
+ return String.fromCharCode(c + (c > 25 ? 39 : 97)) + out
29
+ }
30
+
31
+ export function stableStringify(value) {
32
+ if (value === null) return 'null'
33
+ const t = typeof value
34
+ if (t === 'boolean') return value ? 'true' : 'false'
35
+ if (t === 'number') return Number.isFinite(value) ? String(value) : 'null'
36
+ if (t === 'string') return JSON.stringify(value)
37
+ if (Array.isArray(value)) {
38
+ let out = '['
39
+ for (let i = 0; i < value.length; i++) {
40
+ if (i) out += ','
41
+ out += stableStringify(value[i])
42
+ }
43
+ return out + ']'
44
+ }
45
+ if (t === 'object') {
46
+ const keys = Object.keys(value).sort()
47
+ let out = '{'
48
+ for (let i = 0; i < keys.length; i++) {
49
+ if (i) out += ','
50
+ const key = keys[i]
51
+ out += JSON.stringify(key) + ':' + stableStringify(value[key])
52
+ }
53
+ return out + '}'
54
+ }
55
+ return 'null'
56
+ }
57
+
58
+ const CSS_VAR_CHAR_REGEX = /[a-z0-9_-]/
59
+
60
+ export function toCssVar(path) {
61
+ let out = ""
62
+ for (const ch of path.replaceAll(".", "-")) {
63
+ if (ch >= "A" && ch <= "Z") out += "-" + ch.toLowerCase()
64
+ else if (CSS_VAR_CHAR_REGEX.test(ch) || ch >= "\u0081") out += ch
65
+ else out += "\\" + ch
66
+ }
67
+ return "var(--" + out + ")"
68
+ }
69
+
70
+ export function colorMix(tokens, path, resolveVar) {
71
+ const colorPrefix = "colors."
72
+ if (!path.startsWith(colorPrefix)) return
73
+
74
+ const index = path.indexOf("/", colorPrefix.length)
75
+ if (index === -1 || index === path.length - 1) return
76
+
77
+ const colorPath = path.slice(0, index)
78
+ if (tokens[colorPath] === undefined) return
79
+
80
+ const rawOpacity = path.slice(index + 1)
81
+ const opacity = tokens["opacity." + rawOpacity]
82
+ const percent = opacity === undefined ? Number(rawOpacity) : Number(opacity) * 100
83
+ if (Number.isNaN(percent)) return
84
+
85
+ return "color-mix(in oklab, " + (resolveVar || toCssVar)(colorPath) + " " + percent + "%, transparent)"
86
+ }
87
+
88
+ export function compact(v) {
89
+ const out = {}
90
+ if (!v) return out
91
+ for (const k in v) {
92
+ if (v[k] !== void 0) out[k] = v[k]
93
+ }
94
+ return out
95
+ }
96
+
97
+ export function withDefaults(defaults, props) {
98
+ return { ...defaults, ...compact(props) }
99
+ }
100
+
101
+ export function toVariantMap(variants) {
102
+ const map = {}
103
+ for (const key in variants) map[key] = Object.keys(variants[key])
104
+ return map
105
+ }
106
+
107
+ function compoundVariantMatches(compound, variants) {
108
+ for (const key in compound) {
109
+ if (key === "css" || key === "className" || key === "classNames") continue
110
+ const expected = compound[key]
111
+ const actual = variants[key]
112
+ if (Array.isArray(expected) ? !expected.includes(actual) : actual !== expected) return false
113
+ }
114
+ return true
115
+ }
116
+
117
+ export function getCompoundVariantClassNames(compoundVariants, variants, formatClassName) {
118
+ const classes = []
119
+ for (const compound of compoundVariants) {
120
+ if (!compoundVariantMatches(compound, variants)) continue
121
+ if (compound.className) classes.push(formatClassName ? formatClassName(compound.className) : compound.className)
122
+ }
123
+ return classes.join(" ")
124
+ }
125
+
126
+ export function getCompoundVariantCss(compoundVariants, variants) {
127
+ let result = {}
128
+ for (const variant of compoundVariants) {
129
+ if (!compoundVariantMatches(variant, variants)) continue
130
+ result = mergeProps(result, variant.css)
131
+ }
132
+ return result
133
+ }
134
+
135
+ export function getSlotCompoundVariant(compoundVariants, slot) {
136
+ const result = []
137
+ for (const variant of compoundVariants) {
138
+ const css = variant.css?.[slot]
139
+ const className = variant.classNames?.[slot] ?? variant.className
140
+ if (!css && !className) continue
141
+ const next = css ? { css } : {}
142
+ for (const key in variant) {
143
+ if (key === "css" || key === "className" || key === "classNames") continue
144
+ next[key] = variant[key]
145
+ }
146
+ if (className) next.className = className
147
+ result.push(next)
148
+ }
149
+ return result
150
+ }
151
+
152
+ export function getSlotRecipes(recipe) {
153
+ const result = {}
154
+ const slots = recipe.slots ?? []
155
+ for (const slot of slots) {
156
+ result[slot] = {
157
+ className: recipe.className ? recipe.className + "__" + slot : slot,
158
+ base: recipe.base?.[slot] ?? {},
159
+ variants: {},
160
+ defaultVariants: recipe.defaultVariants ?? {},
161
+ compoundVariants: getSlotCompoundVariant(recipe.compoundVariants ?? [], slot),
162
+ }
163
+ }
164
+ const variants = recipe.variants ?? {}
165
+ for (const variantsKey in variants) {
166
+ const variantGroup = variants[variantsKey]
167
+ for (const slot of slots) {
168
+ const group = result[slot].variants[variantsKey] = {}
169
+ for (const variantKey in variantGroup) {
170
+ group[variantKey] = variantGroup[variantKey][slot] ?? {}
171
+ }
172
+ }
173
+ }
174
+ return result
175
+ }
176
+
177
+ export function toResponsiveObject(values, breakpoints) {
178
+ const out = {}
179
+ for (let i = 0; i < values.length; i++) {
180
+ if (values[i] != null) out[breakpoints[i]] = values[i]
181
+ }
182
+ return out
183
+ }
184
+
185
+ export function walkObject(target, fn, options) {
186
+ options ||= {}
187
+ const { stop, getKey } = options
188
+ const inner = (value, path = []) => {
189
+ if (!value || typeof value !== "object") return fn(value, path)
190
+ if (stop?.(value, path)) return fn(value, path)
191
+ const out = Array.isArray(value) ? [] : {}
192
+ for (const prop in value) {
193
+ if (!HAS_OWN.call(value, prop) || prop === "__proto__") continue
194
+ const key = getKey?.(prop, value[prop]) ?? prop
195
+ path.push(key)
196
+ const next = inner(value[prop], path)
197
+ path.pop()
198
+ if (next != null) out[key] = next
199
+ }
200
+ return out
201
+ }
202
+ return inner(target)
203
+ }
204
+
205
+ export function mapObject(obj, fn) {
206
+ return Array.isArray(obj) ? obj.map(fn) : isObject(obj) ? walkObject(obj, fn) : fn(obj)
207
+ }
208
+
209
+ export function normalizeStyleObject(styles, context, shorthand) {
210
+ const { utility, conditions } = context
211
+ const { hasShorthand, resolveShorthand } = utility
212
+ shorthand = shorthand !== false
213
+ return walkObject(styles, (value) => {
214
+ if (Array.isArray(value)) return toResponsiveObject(value, conditions.breakpoints.keys)
215
+ return value
216
+ }, {
217
+ stop: Array.isArray,
218
+ getKey: shorthand ? (prop) => hasShorthand ? resolveShorthand(prop) : prop : void 0
219
+ })
220
+ }
221
+
222
+ function flatHashOrNull(args) {
223
+ let h = 5381
224
+ for (let a = 0; a < args.length; a++) {
225
+ const obj = args[a]
226
+ if (obj === null || typeof obj !== "object") { h = (h * 33) ^ 1; continue }
227
+ for (const k in obj) {
228
+ const v = obj[k]
229
+ const tv = typeof v
230
+ if (v !== null && tv === "object") return null
231
+ for (let i = 0; i < k.length; i++) h = (h * 33) ^ k.charCodeAt(i)
232
+ if (tv === "string") { for (let i = 0; i < v.length; i++) h = (h * 33) ^ v.charCodeAt(i) }
233
+ else if (tv === "number") h = (h * 33) ^ (v | 0)
234
+ else if (tv === "boolean") h = (h * 33) ^ (v ? 991 : 997)
235
+ else h = (h * 33) ^ 2
236
+ }
237
+ }
238
+ return h >>> 0
239
+ }
240
+
241
+ function flatArgsEqual(a, b) {
242
+ if (a.length !== b.length) return false
243
+ for (let i = 0; i < a.length; i++) {
244
+ const oa = a[i]
245
+ const ob = b[i]
246
+ if (oa === ob) continue
247
+ if (oa === null || ob === null || typeof oa !== "object" || typeof ob !== "object") return false
248
+ let n = 0
249
+ for (const k in oa) {
250
+ if (oa[k] !== ob[k]) return false
251
+ n++
252
+ }
253
+ if (n !== Object.keys(ob).length) return false
254
+ }
255
+ return true
256
+ }
257
+
258
+ export function memo(fn) {
259
+ const cache = new Map()
260
+ const stringCache = new Map()
261
+ const seen = new WeakSet()
262
+ const newNode = () => ({ objects: new WeakMap(), prims: new Map(), out: void 0, has: false })
263
+ const root = newNode()
264
+ let lastHash
265
+ let lastKey
266
+ let lastValue
267
+ let hasLast = false
268
+ let misses = 0
269
+
270
+ const step = (node, v) => {
271
+ if (v !== null && typeof v === "object") {
272
+ let next = node.objects.get(v)
273
+ if (next === void 0) { next = newNode(); node.objects.set(v, next) }
274
+ return next
275
+ }
276
+ let next = node.prims.get(v)
277
+ if (next === void 0) {
278
+ if (node.prims.size > 64) node.prims.clear()
279
+ next = newNode()
280
+ node.prims.set(v, next)
281
+ }
282
+ return next
283
+ }
284
+ const walk = (node, v) => {
285
+ if (Array.isArray(v)) {
286
+ node = step(node, "\u0000[")
287
+ for (let i = 0; i < v.length; i++) node = walk(node, v[i])
288
+ return step(node, "\u0000]")
289
+ }
290
+ return step(node, v)
291
+ }
292
+ const readWalk = (node, v) => {
293
+ if (node === void 0) return void 0
294
+ if (Array.isArray(v)) {
295
+ node = node.prims.get("\u0000[")
296
+ for (let i = 0; i < v.length && node !== void 0; i++) node = readWalk(node, v[i])
297
+ return node === void 0 ? void 0 : node.prims.get("\u0000]")
298
+ }
299
+ return v !== null && typeof v === "object" ? node.objects.get(v) : node.prims.get(v)
300
+ }
301
+ const markSeen = (v) => {
302
+ if (Array.isArray(v)) {
303
+ let all = true
304
+ for (let i = 0; i < v.length; i++) if (!markSeen(v[i])) all = false
305
+ return all
306
+ }
307
+ if (v === null || typeof v !== "object") return true
308
+ if (seen.has(v)) return true
309
+ seen.add(v)
310
+ return false
311
+ }
312
+
313
+ return ((...args) => {
314
+ let composed = false
315
+ for (let i = 0; i < args.length; i++) if (Array.isArray(args[i])) { composed = true; break }
316
+
317
+ if (composed) {
318
+ let node = root
319
+ for (let i = 0; i < args.length && node !== void 0; i++) node = readWalk(node, args[i])
320
+ if (node !== void 0 && node.has) return node.out
321
+
322
+ const composedKey = JSON.stringify(args)
323
+ let composedOut =
324
+ hasLast && lastHash === void 0 && composedKey === lastKey ? lastValue : stringCache.get(composedKey)
325
+ if (composedOut === void 0) {
326
+ composedOut = fn(...args)
327
+ stringCache.set(composedKey, composedOut)
328
+ if (stringCache.size > 500) stringCache.delete(stringCache.keys().next().value)
329
+ }
330
+
331
+ let reused = false
332
+ if ((++misses & 3) === 0) {
333
+ reused = true
334
+ for (let i = 0; i < args.length; i++) if (!markSeen(args[i])) reused = false
335
+ }
336
+ if (reused) {
337
+ let insert = root
338
+ for (let i = 0; i < args.length; i++) insert = walk(insert, args[i])
339
+ insert.out = composedOut
340
+ insert.has = true
341
+ }
342
+ lastHash = void 0
343
+ lastKey = composedKey
344
+ lastValue = composedOut
345
+ hasLast = true
346
+ return composedOut
347
+ }
348
+
349
+ const hash = flatHashOrNull(args)
350
+ if (hash !== null) {
351
+ if (hasLast && lastHash === hash && flatArgsEqual(args, lastKey)) return lastValue
352
+ let bucket = cache.get(hash)
353
+ if (bucket) {
354
+ for (let i = 0; i < bucket.length; i++) {
355
+ if (flatArgsEqual(args, bucket[i].args)) {
356
+ lastHash = hash
357
+ lastKey = args
358
+ lastValue = bucket[i].out
359
+ hasLast = true
360
+ return bucket[i].out
361
+ }
362
+ }
363
+ }
364
+ const out = fn(...args)
365
+ if (!bucket) {
366
+ bucket = []
367
+ cache.set(hash, bucket)
368
+ }
369
+ bucket.push({ args, out })
370
+ if (bucket.length > 8) bucket.shift()
371
+ if (cache.size > 500) cache.delete(cache.keys().next().value)
372
+ lastHash = hash
373
+ lastKey = args
374
+ lastValue = out
375
+ hasLast = true
376
+ return out
377
+ }
378
+
379
+ const key = JSON.stringify(args)
380
+ if (hasLast && lastHash === void 0 && key === lastKey) return lastValue
381
+ const cached = stringCache.get(key)
382
+ if (cached !== void 0) {
383
+ lastHash = void 0
384
+ lastKey = key
385
+ lastValue = cached
386
+ hasLast = true
387
+ return cached
388
+ }
389
+ const out = fn(...args)
390
+ stringCache.set(key, out)
391
+ if (stringCache.size > 500) stringCache.delete(stringCache.keys().next().value)
392
+ lastHash = void 0
393
+ lastKey = key
394
+ lastValue = out
395
+ hasLast = true
396
+ return out
397
+ })
398
+ }
399
+
400
+ export function weakMemo(fn) {
401
+ const cache = new WeakMap()
402
+ return ((arg) => {
403
+ if (!arg || typeof arg !== "object") return fn(arg)
404
+ if (cache.has(arg)) return cache.get(arg)
405
+ const out = fn(arg)
406
+ cache.set(arg, out)
407
+ return out
408
+ })
409
+ }
410
+
411
+ export function mergeProps(...src) {
412
+ const out = {}
413
+ for (const obj of src) {
414
+ if (!obj) continue
415
+ for (const k in obj) {
416
+ if (!HAS_OWN.call(obj, k) || k === "__proto__" || k === "constructor" || k === "prototype") continue
417
+ const prev = out[k]
418
+ const next = obj[k]
419
+ out[k] = isObject(prev) && isObject(next) ? mergeProps(prev, next) : next
420
+ }
421
+ }
422
+ return out
423
+ }
424
+
425
+ const WHITESPACE_REGEX = /[\n\s]+/g
426
+ const sanitizeStyleValue = (value) => typeof value === "string" ? value.replace(WHITESPACE_REGEX, " ") : value
427
+
428
+ export function resolveStyleArgs(styles, context) {
429
+ const out = []
430
+ const visit = (items) => {
431
+ for (let i = 0; i < items.length; i++) {
432
+ const style = items[i]
433
+ if (Array.isArray(style)) {
434
+ visit(style)
435
+ continue
436
+ }
437
+ if (!isObject(style)) continue
438
+ for (const key in style) {
439
+ if (style[key] !== void 0) {
440
+ out.push(style)
441
+ break
442
+ }
443
+ }
444
+ }
445
+ }
446
+ visit(styles)
447
+ if (out.length < 2) return out
448
+ for (let i = 0; i < out.length; i++) out[i] = normalizeStyleObject(out[i], context)
449
+ return out
450
+ }
451
+
452
+ export function createSerializeCss(context) {
453
+ const u = context.utility
454
+ const c = context.conditions
455
+ const hash = context.hash
456
+ const fmt = (s) => u.prefix ? u.prefix + "-" + s : s
457
+ const toClass = (paths, name) => {
458
+ const parts = c.finalize(paths)
459
+ parts.push(hash ? name : fmt(name))
460
+ return hash ? fmt(u.toHash(parts, toHash)) : parts.join(":")
461
+ }
462
+ return weakMemo(memo(function serializeCss({ base, ...styles } = {}) {
463
+ const obj = normalizeStyleObject(base ? Object.assign(styles, base) : styles, context)
464
+ const set = new Set()
465
+ walkObject(obj, (value, paths) => {
466
+ if (value == null) return
467
+ const important = isImportant(value)
468
+ const [prop, ...all] = c.shift(paths)
469
+ const cond = filterBaseConditions(all)
470
+ const res = u.transform(prop, withoutSpace(withoutImportant(sanitizeStyleValue(value))))
471
+ let name = toClass(cond, res.className)
472
+ if (important) name += "!"
473
+ set.add(name)
474
+ })
475
+ let out = ""
476
+ for (const name of set) out += out ? " " + name : name
477
+ return out
478
+ }))
479
+ }
480
+
481
+ export function createMergeCss(context) {
482
+ return function mergeCss() {
483
+ return mergeProps(...resolveStyleArgs(arguments, context))
484
+ }
485
+ }
486
+
487
+ export function createSerializeCssArgs(serializeCss, mergeCss) {
488
+ return memo(function serializeCssArgs(...styles) {
489
+ return serializeCss(mergeCss(...styles))
490
+ })
491
+ }
492
+
493
+ export function createAssignCss(context) {
494
+ return function assignCss() {
495
+ const out = {}
496
+ const resolved = resolveStyleArgs(arguments, context)
497
+ for (let i = 0; i < resolved.length; i++) Object.assign(out, resolved[i])
498
+ return out
499
+ }
500
+ }
501
+
502
+ const HYPHENATE_PROPERTY_REGEX = /[A-Z]/g
503
+ const MS_PROPERTY_REGEX = /^ms-/
504
+
505
+ export function hypenateProperty(property) {
506
+ return property.startsWith("--") ? property : property.replace(HYPHENATE_PROPERTY_REGEX, "-$&").replace(MS_PROPERTY_REGEX, "-ms-").toLowerCase()
507
+ }
508
+
509
+ const splitPropsKeyMapCache = new WeakMap()
510
+
511
+ function getSplitPropsKeyMap(keys) {
512
+ let keyMap = splitPropsKeyMapCache.get(keys)
513
+ if (keyMap) return keyMap
514
+ keyMap = Object.create(null)
515
+ for (let i = 0; i < keys.length; i++) keyMap[keys[i]] = true
516
+ splitPropsKeyMapCache.set(keys, keyMap)
517
+ return keyMap
518
+ }
519
+
520
+ function copySplitProp(source, target, key) {
521
+ const desc = Object.getOwnPropertyDescriptor(source, key)
522
+ if (desc?.get || desc?.set) {
523
+ Object.defineProperty(target, key, desc)
524
+ return
525
+ }
526
+ target[key] = source[key]
527
+ }
528
+
529
+ export function splitProps(props, ...keys) {
530
+ const propKeys = Object.keys(props)
531
+ const keyCount = keys.length
532
+
533
+ if (keyCount === 1) {
534
+ const matcher = keys[0]
535
+ const picked = {}
536
+ const rest = {}
537
+
538
+ if (Array.isArray(matcher)) {
539
+ const keyMap = getSplitPropsKeyMap(matcher)
540
+ for (let i = 0; i < propKeys.length; i++) {
541
+ const key = propKeys[i]
542
+ if (keyMap[key] === true) {
543
+ copySplitProp(props, picked, key)
544
+ } else {
545
+ copySplitProp(props, rest, key)
546
+ }
547
+ }
548
+ return [picked, rest]
549
+ }
550
+
551
+ for (let i = 0; i < propKeys.length; i++) {
552
+ const key = propKeys[i]
553
+ if (matcher(key)) {
554
+ copySplitProp(props, picked, key)
555
+ } else {
556
+ copySplitProp(props, rest, key)
557
+ }
558
+ }
559
+ return [picked, rest]
560
+ }
561
+
562
+ const matchers = new Array(keyCount)
563
+ for (let i = 0; i < keyCount; i++) {
564
+ const matcher = keys[i]
565
+ matchers[i] = Array.isArray(matcher) ? getSplitPropsKeyMap(matcher) : matcher
566
+ }
567
+
568
+ const out = new Array(keyCount + 1)
569
+ for (let i = 0; i <= keyCount; i++) out[i] = {}
570
+ const rest = out[keyCount]
571
+
572
+ for (let i = 0; i < propKeys.length; i++) {
573
+ const key = propKeys[i]
574
+ let matched = false
575
+ for (let j = 0; j < keyCount; j++) {
576
+ const matcher = matchers[j]
577
+ if (typeof matcher === "function" ? matcher(key) : matcher[key] === true) {
578
+ copySplitProp(props, out[j], key)
579
+ matched = true
580
+ break
581
+ }
582
+ }
583
+ if (!matched) copySplitProp(props, rest, key)
584
+ }
585
+
586
+ return out
587
+ }
588
+
589
+ const htmlProps = ['htmlSize', 'htmlTranslate', 'htmlWidth', 'htmlHeight']
590
+
591
+ function convertHTMLProp(key) {
592
+ return htmlProps.includes(key) ? key.replace('html', '').toLowerCase() : key
593
+ }
594
+
595
+ // `Object.assign` keeps `.keys` inside a pure expression, so an unused helper tree-shakes away.
596
+ export const normalizeHTMLProps = /* @__PURE__ */ Object.assign(
597
+ function normalizeHTMLProps(props) {
598
+ return Object.fromEntries(Object.entries(props).map(([key, value]) => [convertHTMLProp(key), value]))
599
+ },
600
+ { keys: htmlProps },
601
+ )
602
+
603
+ export function uniq(...items) {
604
+ const set = new Set()
605
+ for (const values of items) {
606
+ if (!values) continue
607
+ for (let i = 0; i < values.length; i++) set.add(values[i])
608
+ }
609
+ return Array.from(set)
610
+ }
611
+
612
+ export function withoutSpace(str) {
613
+ return (typeof str === "string" && str.indexOf(" ") >= 0 ? str.replaceAll(" ", "_") : str)
614
+ }
615
+
616
+ const IMPORTANT_REGEX = /\s*!(important)?\s*$/i
617
+
618
+ export function isImportant(value) {
619
+ return typeof value === "string" ? IMPORTANT_REGEX.test(value) : false
620
+ }
621
+
622
+ export function withoutImportant(value) {
623
+ return (typeof value === "string" ? value.replace(IMPORTANT_REGEX, "").trim() : value)
624
+ }
@@ -1,10 +1,7 @@
1
- /* eslint-disable */
2
- import type { FunctionComponent } from 'react'
1
+ import type { FunctionComponent } from 'react';
3
2
  import type { AspectRatioProperties } from '../patterns/aspect-ratio';
4
3
  import type { HTMLStyledProps } from '../types/jsx';
5
- import type { DistributiveOmit } from '../types/system-types';
4
+ import type { DistributiveOmit } from '../types/system';
6
5
 
7
6
  export interface AspectRatioProps extends AspectRatioProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof AspectRatioProperties | 'aspectRatio'> {}
8
-
9
-
10
- export declare const AspectRatio: FunctionComponent<AspectRatioProps>
7
+ export declare const AspectRatio: FunctionComponent<AspectRatioProps>;
@@ -0,0 +1,11 @@
1
+ import { createElement, forwardRef } from 'react';
2
+ import { aspectRatio } from '../patterns/aspect-ratio';
3
+ import { splitProps } from '../helpers';
4
+ import { styled } from './factory';
5
+
6
+ export const AspectRatio = /* @__PURE__ */ forwardRef(function AspectRatio(props, ref) {
7
+ const [patternProps, restProps] = splitProps(props, aspectRatio.propKeys)
8
+ const styleProps = aspectRatio.raw(patternProps)
9
+ const mergedProps = { ref, ...styleProps, ...restProps }
10
+ return createElement(styled["div"], mergedProps)
11
+ })
@@ -1,10 +1,7 @@
1
- /* eslint-disable */
2
- import type { FunctionComponent } from 'react'
1
+ import type { FunctionComponent } from 'react';
3
2
  import type { BleedProperties } from '../patterns/bleed';
4
3
  import type { HTMLStyledProps } from '../types/jsx';
5
- import type { DistributiveOmit } from '../types/system-types';
4
+ import type { DistributiveOmit } from '../types/system';
6
5
 
7
- export interface BleedProps extends BleedProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof BleedProperties > {}
8
-
9
-
10
- export declare const Bleed: FunctionComponent<BleedProps>
6
+ export interface BleedProps extends BleedProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof BleedProperties> {}
7
+ export declare const Bleed: FunctionComponent<BleedProps>;
@@ -0,0 +1,11 @@
1
+ import { createElement, forwardRef } from 'react';
2
+ import { bleed } from '../patterns/bleed';
3
+ import { splitProps } from '../helpers';
4
+ import { styled } from './factory';
5
+
6
+ export const Bleed = /* @__PURE__ */ forwardRef(function Bleed(props, ref) {
7
+ const [patternProps, restProps] = splitProps(props, bleed.propKeys)
8
+ const styleProps = bleed.raw(patternProps)
9
+ const mergedProps = { ref, ...styleProps, ...restProps }
10
+ return createElement(styled["div"], mergedProps)
11
+ })
@@ -1,10 +1,7 @@
1
- /* eslint-disable */
2
- import type { FunctionComponent } from 'react'
1
+ import type { FunctionComponent } from 'react';
3
2
  import type { BoxProperties } from '../patterns/box';
4
3
  import type { HTMLStyledProps } from '../types/jsx';
5
- import type { DistributiveOmit } from '../types/system-types';
4
+ import type { DistributiveOmit } from '../types/system';
6
5
 
7
- export interface BoxProps extends BoxProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof BoxProperties > {}
8
-
9
-
10
- export declare const Box: FunctionComponent<BoxProps>
6
+ export interface BoxProps extends BoxProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof BoxProperties> {}
7
+ export declare const Box: FunctionComponent<BoxProps>;
@@ -0,0 +1,11 @@
1
+ import { createElement, forwardRef } from 'react';
2
+ import { box } from '../patterns/box';
3
+ import { splitProps } from '../helpers';
4
+ import { styled } from './factory';
5
+
6
+ export const Box = /* @__PURE__ */ forwardRef(function Box(props, ref) {
7
+ const [patternProps, restProps] = splitProps(props, box.propKeys)
8
+ const styleProps = box.raw(patternProps)
9
+ const mergedProps = { ref, ...styleProps, ...restProps }
10
+ return createElement(styled["div"], mergedProps)
11
+ })