@fusion.dev/helix 0.0.0-dev

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 (719) hide show
  1. package/LICENSE +21 -0
  2. package/custom-elements.json +99157 -0
  3. package/dist/accordion/index.d.ts +2 -0
  4. package/dist/accordion/index.js +2 -0
  5. package/dist/accordion/item/accordion-item.css.d.ts +1 -0
  6. package/dist/accordion/item/accordion-item.css.js +92 -0
  7. package/dist/accordion/item/accordion-item.d.ts +39 -0
  8. package/dist/accordion/item/accordion-item.js +45 -0
  9. package/dist/accordion/root/accordion-root.css.d.ts +1 -0
  10. package/dist/accordion/root/accordion-root.css.js +25 -0
  11. package/dist/accordion/root/accordion-root.d.ts +49 -0
  12. package/dist/accordion/root/accordion-root.js +40 -0
  13. package/dist/announcement/index.d.ts +1 -0
  14. package/dist/announcement/index.js +1 -0
  15. package/dist/announcement/root/announcement-root.css.d.ts +1 -0
  16. package/dist/announcement/root/announcement-root.css.js +145 -0
  17. package/dist/announcement/root/announcement-root.d.ts +26 -0
  18. package/dist/announcement/root/announcement-root.js +32 -0
  19. package/dist/app-header/index.d.ts +1 -0
  20. package/dist/app-header/index.js +1 -0
  21. package/dist/app-header/root/app-header-root.css.d.ts +1 -0
  22. package/dist/app-header/root/app-header-root.css.js +112 -0
  23. package/dist/app-header/root/app-header-root.d.ts +103 -0
  24. package/dist/app-header/root/app-header-root.js +72 -0
  25. package/dist/aura/index.d.ts +1 -0
  26. package/dist/aura/index.js +1 -0
  27. package/dist/aura/root/aura-axis.d.ts +61 -0
  28. package/dist/aura/root/aura-axis.js +68 -0
  29. package/dist/aura/root/aura-root.css.d.ts +1 -0
  30. package/dist/aura/root/aura-root.css.js +35 -0
  31. package/dist/aura/root/aura-root.d.ts +447 -0
  32. package/dist/aura/root/aura-root.js +1024 -0
  33. package/dist/aura/root/aura-shader.d.ts +46 -0
  34. package/dist/aura/root/aura-shader.js +1145 -0
  35. package/dist/avatar/group/avatar-group.css.d.ts +1 -0
  36. package/dist/avatar/group/avatar-group.css.js +48 -0
  37. package/dist/avatar/group/avatar-group.d.ts +34 -0
  38. package/dist/avatar/group/avatar-group.js +40 -0
  39. package/dist/avatar/index.d.ts +2 -0
  40. package/dist/avatar/index.js +2 -0
  41. package/dist/avatar/root/avatar-root.css.d.ts +1 -0
  42. package/dist/avatar/root/avatar-root.css.js +55 -0
  43. package/dist/avatar/root/avatar-root.d.ts +41 -0
  44. package/dist/avatar/root/avatar-root.js +46 -0
  45. package/dist/badge/index.d.ts +1 -0
  46. package/dist/badge/index.js +1 -0
  47. package/dist/badge/root/badge-root.css.d.ts +1 -0
  48. package/dist/badge/root/badge-root.css.js +91 -0
  49. package/dist/badge/root/badge-root.d.ts +38 -0
  50. package/dist/badge/root/badge-root.js +38 -0
  51. package/dist/bar-chart/index.d.ts +1 -0
  52. package/dist/bar-chart/index.js +1 -0
  53. package/dist/bar-chart/root/bar-chart-root.css.d.ts +1 -0
  54. package/dist/bar-chart/root/bar-chart-root.css.js +445 -0
  55. package/dist/bar-chart/root/bar-chart-root.d.ts +177 -0
  56. package/dist/bar-chart/root/bar-chart-root.js +122 -0
  57. package/dist/blockquote/index.d.ts +1 -0
  58. package/dist/blockquote/index.js +1 -0
  59. package/dist/blockquote/root/blockquote-root.css.d.ts +1 -0
  60. package/dist/blockquote/root/blockquote-root.css.js +42 -0
  61. package/dist/blockquote/root/blockquote-root.d.ts +27 -0
  62. package/dist/blockquote/root/blockquote-root.js +33 -0
  63. package/dist/breadcrumbs/breadcrumb/breadcrumb.css.d.ts +1 -0
  64. package/dist/breadcrumbs/breadcrumb/breadcrumb.css.js +109 -0
  65. package/dist/breadcrumbs/breadcrumb/breadcrumb.d.ts +38 -0
  66. package/dist/breadcrumbs/breadcrumb/breadcrumb.js +44 -0
  67. package/dist/breadcrumbs/index.d.ts +2 -0
  68. package/dist/breadcrumbs/index.js +2 -0
  69. package/dist/breadcrumbs/root/breadcrumbs-root.css.d.ts +1 -0
  70. package/dist/breadcrumbs/root/breadcrumbs-root.css.js +23 -0
  71. package/dist/breadcrumbs/root/breadcrumbs-root.d.ts +29 -0
  72. package/dist/breadcrumbs/root/breadcrumbs-root.js +35 -0
  73. package/dist/button/index.d.ts +1 -0
  74. package/dist/button/index.js +1 -0
  75. package/dist/button/root/button-root.css.d.ts +1 -0
  76. package/dist/button/root/button-root.css.js +190 -0
  77. package/dist/button/root/button-root.d.ts +95 -0
  78. package/dist/button/root/button-root.js +59 -0
  79. package/dist/button-group/index.d.ts +1 -0
  80. package/dist/button-group/index.js +1 -0
  81. package/dist/button-group/root/button-group-root.css.d.ts +1 -0
  82. package/dist/button-group/root/button-group-root.css.js +54 -0
  83. package/dist/button-group/root/button-group-root.d.ts +48 -0
  84. package/dist/button-group/root/button-group-root.js +44 -0
  85. package/dist/callout/index.d.ts +1 -0
  86. package/dist/callout/index.js +1 -0
  87. package/dist/callout/root/callout-root.css.d.ts +1 -0
  88. package/dist/callout/root/callout-root.css.js +82 -0
  89. package/dist/callout/root/callout-root.d.ts +36 -0
  90. package/dist/callout/root/callout-root.js +42 -0
  91. package/dist/card/index.d.ts +1 -0
  92. package/dist/card/index.js +1 -0
  93. package/dist/card/root/card-root.css.d.ts +1 -0
  94. package/dist/card/root/card-root.css.js +111 -0
  95. package/dist/card/root/card-root.d.ts +120 -0
  96. package/dist/card/root/card-root.js +74 -0
  97. package/dist/carousel/index.d.ts +1 -0
  98. package/dist/carousel/index.js +1 -0
  99. package/dist/carousel/root/carousel-root.css.d.ts +1 -0
  100. package/dist/carousel/root/carousel-root.css.js +347 -0
  101. package/dist/carousel/root/carousel-root.d.ts +111 -0
  102. package/dist/carousel/root/carousel-root.js +53 -0
  103. package/dist/chat/composer/chat-composer.css.d.ts +1 -0
  104. package/dist/chat/composer/chat-composer.css.js +103 -0
  105. package/dist/chat/composer/chat-composer.d.ts +37 -0
  106. package/dist/chat/composer/chat-composer.js +43 -0
  107. package/dist/chat/index.d.ts +3 -0
  108. package/dist/chat/index.js +3 -0
  109. package/dist/chat/message/chat-message.css.d.ts +1 -0
  110. package/dist/chat/message/chat-message.css.js +270 -0
  111. package/dist/chat/message/chat-message.d.ts +66 -0
  112. package/dist/chat/message/chat-message.js +50 -0
  113. package/dist/chat/root/chat-root.css.d.ts +1 -0
  114. package/dist/chat/root/chat-root.css.js +134 -0
  115. package/dist/chat/root/chat-root.d.ts +51 -0
  116. package/dist/chat/root/chat-root.js +57 -0
  117. package/dist/checkbox/index.d.ts +1 -0
  118. package/dist/checkbox/index.js +1 -0
  119. package/dist/checkbox/root/checkbox-root.css.d.ts +1 -0
  120. package/dist/checkbox/root/checkbox-root.css.js +177 -0
  121. package/dist/checkbox/root/checkbox-root.d.ts +51 -0
  122. package/dist/checkbox/root/checkbox-root.js +48 -0
  123. package/dist/checkbox-group/index.d.ts +1 -0
  124. package/dist/checkbox-group/index.js +1 -0
  125. package/dist/checkbox-group/root/checkbox-group-root.css.d.ts +1 -0
  126. package/dist/checkbox-group/root/checkbox-group-root.css.js +30 -0
  127. package/dist/checkbox-group/root/checkbox-group-root.d.ts +29 -0
  128. package/dist/checkbox-group/root/checkbox-group-root.js +37 -0
  129. package/dist/code/index.d.ts +1 -0
  130. package/dist/code/index.js +1 -0
  131. package/dist/code/root/code-root.css.d.ts +1 -0
  132. package/dist/code/root/code-root.css.js +30 -0
  133. package/dist/code/root/code-root.d.ts +27 -0
  134. package/dist/code/root/code-root.js +33 -0
  135. package/dist/code-block/index.d.ts +1 -0
  136. package/dist/code-block/index.js +1 -0
  137. package/dist/code-block/root/code-block-root.css.d.ts +1 -0
  138. package/dist/code-block/root/code-block-root.css.js +84 -0
  139. package/dist/code-block/root/code-block-root.d.ts +31 -0
  140. package/dist/code-block/root/code-block-root.js +37 -0
  141. package/dist/color-input/index.d.ts +1 -0
  142. package/dist/color-input/index.js +1 -0
  143. package/dist/color-input/root/color-input-root.css.d.ts +1 -0
  144. package/dist/color-input/root/color-input-root.css.js +193 -0
  145. package/dist/color-input/root/color-input-root.d.ts +50 -0
  146. package/dist/color-input/root/color-input-root.js +62 -0
  147. package/dist/color-picker/index.d.ts +1 -0
  148. package/dist/color-picker/index.js +1 -0
  149. package/dist/color-picker/root/color-picker-root.css.d.ts +1 -0
  150. package/dist/color-picker/root/color-picker-root.css.js +282 -0
  151. package/dist/color-picker/root/color-picker-root.d.ts +53 -0
  152. package/dist/color-picker/root/color-picker-root.js +64 -0
  153. package/dist/combobox/index.d.ts +1 -0
  154. package/dist/combobox/index.js +1 -0
  155. package/dist/combobox/root/combobox-root.css.d.ts +1 -0
  156. package/dist/combobox/root/combobox-root.css.js +249 -0
  157. package/dist/combobox/root/combobox-root.d.ts +37 -0
  158. package/dist/combobox/root/combobox-root.js +49 -0
  159. package/dist/command/index.d.ts +1 -0
  160. package/dist/command/index.js +1 -0
  161. package/dist/command/root/command-root.css.d.ts +1 -0
  162. package/dist/command/root/command-root.css.js +76 -0
  163. package/dist/command/root/command-root.d.ts +31 -0
  164. package/dist/command/root/command-root.js +40 -0
  165. package/dist/copy-button/index.d.ts +1 -0
  166. package/dist/copy-button/index.js +1 -0
  167. package/dist/copy-button/root/copy-button-root.css.d.ts +1 -0
  168. package/dist/copy-button/root/copy-button-root.css.js +37 -0
  169. package/dist/copy-button/root/copy-button-root.d.ts +28 -0
  170. package/dist/copy-button/root/copy-button-root.js +34 -0
  171. package/dist/data-table/index.d.ts +1 -0
  172. package/dist/data-table/index.js +1 -0
  173. package/dist/data-table/root/data-table-root.css.d.ts +1 -0
  174. package/dist/data-table/root/data-table-root.css.js +91 -0
  175. package/dist/data-table/root/data-table-root.d.ts +49 -0
  176. package/dist/data-table/root/data-table-root.js +55 -0
  177. package/dist/date-input/index.d.ts +1 -0
  178. package/dist/date-input/index.js +1 -0
  179. package/dist/date-input/root/date-input-root.css.d.ts +1 -0
  180. package/dist/date-input/root/date-input-root.css.js +172 -0
  181. package/dist/date-input/root/date-input-root.d.ts +44 -0
  182. package/dist/date-input/root/date-input-root.js +59 -0
  183. package/dist/date-picker/index.d.ts +1 -0
  184. package/dist/date-picker/index.js +1 -0
  185. package/dist/date-picker/root/date-picker-root.css.d.ts +1 -0
  186. package/dist/date-picker/root/date-picker-root.css.js +219 -0
  187. package/dist/date-picker/root/date-picker-root.d.ts +38 -0
  188. package/dist/date-picker/root/date-picker-root.js +44 -0
  189. package/dist/dialog/index.d.ts +1 -0
  190. package/dist/dialog/index.js +1 -0
  191. package/dist/dialog/root/dialog-root.css.d.ts +1 -0
  192. package/dist/dialog/root/dialog-root.css.js +184 -0
  193. package/dist/dialog/root/dialog-root.d.ts +81 -0
  194. package/dist/dialog/root/dialog-root.js +54 -0
  195. package/dist/divider/index.d.ts +1 -0
  196. package/dist/divider/index.js +1 -0
  197. package/dist/divider/root/divider-root.css.d.ts +1 -0
  198. package/dist/divider/root/divider-root.css.js +82 -0
  199. package/dist/divider/root/divider-root.d.ts +34 -0
  200. package/dist/divider/root/divider-root.js +40 -0
  201. package/dist/donut-chart/index.d.ts +1 -0
  202. package/dist/donut-chart/index.js +1 -0
  203. package/dist/donut-chart/root/donut-chart-root.css.d.ts +1 -0
  204. package/dist/donut-chart/root/donut-chart-root.css.js +326 -0
  205. package/dist/donut-chart/root/donut-chart-root.d.ts +111 -0
  206. package/dist/donut-chart/root/donut-chart-root.js +76 -0
  207. package/dist/drawer/index.d.ts +1 -0
  208. package/dist/drawer/index.js +1 -0
  209. package/dist/drawer/root/drawer-root.css.d.ts +1 -0
  210. package/dist/drawer/root/drawer-root.css.js +151 -0
  211. package/dist/drawer/root/drawer-root.d.ts +69 -0
  212. package/dist/drawer/root/drawer-root.js +58 -0
  213. package/dist/drilldown/index.d.ts +2 -0
  214. package/dist/drilldown/index.js +2 -0
  215. package/dist/drilldown/item/drilldown-item.css.d.ts +1 -0
  216. package/dist/drilldown/item/drilldown-item.css.js +47 -0
  217. package/dist/drilldown/item/drilldown-item.d.ts +25 -0
  218. package/dist/drilldown/item/drilldown-item.js +31 -0
  219. package/dist/drilldown/root/drilldown-root.css.d.ts +1 -0
  220. package/dist/drilldown/root/drilldown-root.css.js +125 -0
  221. package/dist/drilldown/root/drilldown-root.d.ts +33 -0
  222. package/dist/drilldown/root/drilldown-root.js +39 -0
  223. package/dist/element-events.generated.d.ts +1 -0
  224. package/dist/element-events.generated.js +123 -0
  225. package/dist/empty/index.d.ts +1 -0
  226. package/dist/empty/index.js +1 -0
  227. package/dist/empty/root/empty-root.css.d.ts +1 -0
  228. package/dist/empty/root/empty-root.css.js +45 -0
  229. package/dist/empty/root/empty-root.d.ts +26 -0
  230. package/dist/empty/root/empty-root.js +32 -0
  231. package/dist/file-input/index.d.ts +1 -0
  232. package/dist/file-input/index.js +1 -0
  233. package/dist/file-input/root/file-input-root.css.d.ts +1 -0
  234. package/dist/file-input/root/file-input-root.css.js +194 -0
  235. package/dist/file-input/root/file-input-root.d.ts +40 -0
  236. package/dist/file-input/root/file-input-root.js +53 -0
  237. package/dist/flex/index.d.ts +1 -0
  238. package/dist/flex/index.js +1 -0
  239. package/dist/flex/root/flex-root.css.d.ts +1 -0
  240. package/dist/flex/root/flex-root.css.js +81 -0
  241. package/dist/flex/root/flex-root.d.ts +61 -0
  242. package/dist/flex/root/flex-root.js +75 -0
  243. package/dist/format-date/index.d.ts +1 -0
  244. package/dist/format-date/index.js +1 -0
  245. package/dist/format-date/root/format-date-root.css.d.ts +1 -0
  246. package/dist/format-date/root/format-date-root.css.js +15 -0
  247. package/dist/format-date/root/format-date-root.d.ts +28 -0
  248. package/dist/format-date/root/format-date-root.js +34 -0
  249. package/dist/grid/index.d.ts +1 -0
  250. package/dist/grid/index.js +1 -0
  251. package/dist/grid/root/grid-root.css.d.ts +1 -0
  252. package/dist/grid/root/grid-root.css.js +74 -0
  253. package/dist/grid/root/grid-root.d.ts +79 -0
  254. package/dist/grid/root/grid-root.js +125 -0
  255. package/dist/heatmap/index.d.ts +1 -0
  256. package/dist/heatmap/index.js +1 -0
  257. package/dist/heatmap/root/heatmap-root.css.d.ts +1 -0
  258. package/dist/heatmap/root/heatmap-root.css.js +141 -0
  259. package/dist/heatmap/root/heatmap-root.d.ts +87 -0
  260. package/dist/heatmap/root/heatmap-root.js +96 -0
  261. package/dist/icon/glyph.css.d.ts +1 -0
  262. package/dist/icon/glyph.css.js +7 -0
  263. package/dist/icon/index.d.ts +1 -0
  264. package/dist/icon/index.js +1 -0
  265. package/dist/icon/root/icon-root.css.d.ts +1 -0
  266. package/dist/icon/root/icon-root.css.js +20 -0
  267. package/dist/icon/root/icon-root.d.ts +29 -0
  268. package/dist/icon/root/icon-root.js +35 -0
  269. package/dist/icon-button/index.d.ts +1 -0
  270. package/dist/icon-button/index.js +1 -0
  271. package/dist/icon-button/root/icon-button-root.css.d.ts +1 -0
  272. package/dist/icon-button/root/icon-button-root.css.js +165 -0
  273. package/dist/icon-button/root/icon-button-root.d.ts +65 -0
  274. package/dist/icon-button/root/icon-button-root.js +63 -0
  275. package/dist/image/index.d.ts +1 -0
  276. package/dist/image/index.js +1 -0
  277. package/dist/image/root/image-root.css.d.ts +1 -0
  278. package/dist/image/root/image-root.css.js +73 -0
  279. package/dist/image/root/image-root.d.ts +39 -0
  280. package/dist/image/root/image-root.js +52 -0
  281. package/dist/index.d.ts +100 -0
  282. package/dist/index.js +100 -0
  283. package/dist/input/index.d.ts +1 -0
  284. package/dist/input/index.js +1 -0
  285. package/dist/input/root/input-root.css.d.ts +1 -0
  286. package/dist/input/root/input-root.css.js +123 -0
  287. package/dist/input/root/input-root.d.ts +36 -0
  288. package/dist/input/root/input-root.js +48 -0
  289. package/dist/kbd/index.d.ts +1 -0
  290. package/dist/kbd/index.js +1 -0
  291. package/dist/kbd/root/kbd-root.css.d.ts +1 -0
  292. package/dist/kbd/root/kbd-root.css.js +47 -0
  293. package/dist/kbd/root/kbd-root.d.ts +30 -0
  294. package/dist/kbd/root/kbd-root.js +36 -0
  295. package/dist/legend/index.d.ts +1 -0
  296. package/dist/legend/index.js +1 -0
  297. package/dist/legend/root/legend-root.css.d.ts +1 -0
  298. package/dist/legend/root/legend-root.css.js +90 -0
  299. package/dist/legend/root/legend-root.d.ts +128 -0
  300. package/dist/legend/root/legend-root.js +99 -0
  301. package/dist/line-chart/index.d.ts +1 -0
  302. package/dist/line-chart/index.js +1 -0
  303. package/dist/line-chart/root/line-chart-root.css.d.ts +1 -0
  304. package/dist/line-chart/root/line-chart-root.css.js +293 -0
  305. package/dist/line-chart/root/line-chart-root.d.ts +106 -0
  306. package/dist/line-chart/root/line-chart-root.js +74 -0
  307. package/dist/list/index.d.ts +2 -0
  308. package/dist/list/index.js +2 -0
  309. package/dist/list/item/list-item.css.d.ts +1 -0
  310. package/dist/list/item/list-item.css.js +70 -0
  311. package/dist/list/item/list-item.d.ts +49 -0
  312. package/dist/list/item/list-item.js +58 -0
  313. package/dist/list/root/list-root.css.d.ts +1 -0
  314. package/dist/list/root/list-root.css.js +76 -0
  315. package/dist/list/root/list-root.d.ts +54 -0
  316. package/dist/list/root/list-root.js +50 -0
  317. package/dist/listbox/index.d.ts +1 -0
  318. package/dist/listbox/index.js +1 -0
  319. package/dist/listbox/root/listbox-root.css.d.ts +1 -0
  320. package/dist/listbox/root/listbox-root.css.js +110 -0
  321. package/dist/listbox/root/listbox-root.d.ts +30 -0
  322. package/dist/listbox/root/listbox-root.js +38 -0
  323. package/dist/loader/index.d.ts +1 -0
  324. package/dist/loader/index.js +1 -0
  325. package/dist/loader/root/loader-root.css.d.ts +1 -0
  326. package/dist/loader/root/loader-root.css.js +159 -0
  327. package/dist/loader/root/loader-root.d.ts +49 -0
  328. package/dist/loader/root/loader-root.js +42 -0
  329. package/dist/megamenu/index.d.ts +1 -0
  330. package/dist/megamenu/index.js +1 -0
  331. package/dist/megamenu/root/megamenu-root.css.d.ts +1 -0
  332. package/dist/megamenu/root/megamenu-root.css.js +153 -0
  333. package/dist/megamenu/root/megamenu-root.d.ts +34 -0
  334. package/dist/megamenu/root/megamenu-root.js +40 -0
  335. package/dist/menu/index.d.ts +2 -0
  336. package/dist/menu/index.js +2 -0
  337. package/dist/menu/item/menu-item.css.d.ts +1 -0
  338. package/dist/menu/item/menu-item.css.js +87 -0
  339. package/dist/menu/item/menu-item.d.ts +26 -0
  340. package/dist/menu/item/menu-item.js +32 -0
  341. package/dist/menu/root/menu-root.css.d.ts +1 -0
  342. package/dist/menu/root/menu-root.css.js +161 -0
  343. package/dist/menu/root/menu-root.d.ts +36 -0
  344. package/dist/menu/root/menu-root.js +42 -0
  345. package/dist/meter/index.d.ts +1 -0
  346. package/dist/meter/index.js +1 -0
  347. package/dist/meter/root/meter-root.css.d.ts +1 -0
  348. package/dist/meter/root/meter-root.css.js +218 -0
  349. package/dist/meter/root/meter-root.d.ts +79 -0
  350. package/dist/meter/root/meter-root.js +72 -0
  351. package/dist/mixins/mixin-control-surface/mixin-control-surface.d.ts +28 -0
  352. package/dist/mixins/mixin-control-surface/mixin-control-surface.js +21 -0
  353. package/dist/navigation/index.d.ts +1 -0
  354. package/dist/navigation/index.js +1 -0
  355. package/dist/navigation/root/navigation-root.css.d.ts +1 -0
  356. package/dist/navigation/root/navigation-root.css.js +50 -0
  357. package/dist/navigation/root/navigation-root.d.ts +28 -0
  358. package/dist/navigation/root/navigation-root.js +34 -0
  359. package/dist/notifications/index.d.ts +2 -0
  360. package/dist/notifications/index.js +2 -0
  361. package/dist/notifications/notification/notification.css.d.ts +1 -0
  362. package/dist/notifications/notification/notification.css.js +194 -0
  363. package/dist/notifications/notification/notification.d.ts +64 -0
  364. package/dist/notifications/notification/notification.js +71 -0
  365. package/dist/notifications/root/notifications-root.css.d.ts +1 -0
  366. package/dist/notifications/root/notifications-root.css.js +94 -0
  367. package/dist/notifications/root/notifications-root.d.ts +43 -0
  368. package/dist/notifications/root/notifications-root.js +49 -0
  369. package/dist/number-input/index.d.ts +1 -0
  370. package/dist/number-input/index.js +1 -0
  371. package/dist/number-input/root/number-input-root.css.d.ts +1 -0
  372. package/dist/number-input/root/number-input-root.css.js +149 -0
  373. package/dist/number-input/root/number-input-root.d.ts +41 -0
  374. package/dist/number-input/root/number-input-root.js +49 -0
  375. package/dist/option/group/option-group.css.d.ts +1 -0
  376. package/dist/option/group/option-group.css.js +24 -0
  377. package/dist/option/group/option-group.d.ts +23 -0
  378. package/dist/option/group/option-group.js +29 -0
  379. package/dist/option/index.d.ts +2 -0
  380. package/dist/option/index.js +2 -0
  381. package/dist/option/root/option-root.css.d.ts +1 -0
  382. package/dist/option/root/option-root.css.js +93 -0
  383. package/dist/option/root/option-root.d.ts +30 -0
  384. package/dist/option/root/option-root.js +36 -0
  385. package/dist/outline/index.d.ts +1 -0
  386. package/dist/outline/index.js +1 -0
  387. package/dist/outline/root/outline-root.css.d.ts +1 -0
  388. package/dist/outline/root/outline-root.css.js +144 -0
  389. package/dist/outline/root/outline-root.d.ts +31 -0
  390. package/dist/outline/root/outline-root.js +37 -0
  391. package/dist/pagination/index.d.ts +3 -0
  392. package/dist/pagination/index.js +3 -0
  393. package/dist/pagination/root/pagination-root.css.d.ts +1 -0
  394. package/dist/pagination/root/pagination-root.css.js +158 -0
  395. package/dist/pagination/root/pagination-root.d.ts +59 -0
  396. package/dist/pagination/root/pagination-root.js +65 -0
  397. package/dist/pagination/size/pagination-size.css.d.ts +1 -0
  398. package/dist/pagination/size/pagination-size.css.js +24 -0
  399. package/dist/pagination/size/pagination-size.d.ts +31 -0
  400. package/dist/pagination/size/pagination-size.js +44 -0
  401. package/dist/pagination/summary/pagination-summary.css.d.ts +1 -0
  402. package/dist/pagination/summary/pagination-summary.css.js +9 -0
  403. package/dist/pagination/summary/pagination-summary.d.ts +23 -0
  404. package/dist/pagination/summary/pagination-summary.js +29 -0
  405. package/dist/pin-input/index.d.ts +1 -0
  406. package/dist/pin-input/index.js +1 -0
  407. package/dist/pin-input/root/pin-input-root.css.d.ts +1 -0
  408. package/dist/pin-input/root/pin-input-root.css.js +74 -0
  409. package/dist/pin-input/root/pin-input-root.d.ts +37 -0
  410. package/dist/pin-input/root/pin-input-root.js +45 -0
  411. package/dist/popover/index.d.ts +1 -0
  412. package/dist/popover/index.js +1 -0
  413. package/dist/popover/root/popover-root.css.d.ts +1 -0
  414. package/dist/popover/root/popover-root.css.js +93 -0
  415. package/dist/popover/root/popover-root.d.ts +53 -0
  416. package/dist/popover/root/popover-root.js +50 -0
  417. package/dist/progress/index.d.ts +1 -0
  418. package/dist/progress/index.js +1 -0
  419. package/dist/progress/root/progress-root.css.d.ts +1 -0
  420. package/dist/progress/root/progress-root.css.js +225 -0
  421. package/dist/progress/root/progress-root.d.ts +54 -0
  422. package/dist/progress/root/progress-root.js +45 -0
  423. package/dist/qr-code/index.d.ts +1 -0
  424. package/dist/qr-code/index.js +1 -0
  425. package/dist/qr-code/root/qr-code-root.css.d.ts +1 -0
  426. package/dist/qr-code/root/qr-code-root.css.js +58 -0
  427. package/dist/qr-code/root/qr-code-root.d.ts +37 -0
  428. package/dist/qr-code/root/qr-code-root.js +43 -0
  429. package/dist/quote/index.d.ts +1 -0
  430. package/dist/quote/index.js +1 -0
  431. package/dist/quote/root/quote-root.css.d.ts +1 -0
  432. package/dist/quote/root/quote-root.css.js +20 -0
  433. package/dist/quote/root/quote-root.d.ts +25 -0
  434. package/dist/quote/root/quote-root.js +31 -0
  435. package/dist/radio/group/radio-group.css.d.ts +1 -0
  436. package/dist/radio/group/radio-group.css.js +23 -0
  437. package/dist/radio/group/radio-group.d.ts +26 -0
  438. package/dist/radio/group/radio-group.js +34 -0
  439. package/dist/radio/index.d.ts +2 -0
  440. package/dist/radio/index.js +2 -0
  441. package/dist/radio/root/radio-root.css.d.ts +1 -0
  442. package/dist/radio/root/radio-root.css.js +198 -0
  443. package/dist/radio/root/radio-root.d.ts +73 -0
  444. package/dist/radio/root/radio-root.js +74 -0
  445. package/dist/rating/index.d.ts +1 -0
  446. package/dist/rating/index.js +1 -0
  447. package/dist/rating/root/rating-root.css.d.ts +1 -0
  448. package/dist/rating/root/rating-root.css.js +122 -0
  449. package/dist/rating/root/rating-root.d.ts +52 -0
  450. package/dist/rating/root/rating-root.js +42 -0
  451. package/dist/sandbox/index.d.ts +20 -0
  452. package/dist/sandbox/index.js +20 -0
  453. package/dist/sandbox/preview/sandbox-preview.css.d.ts +1 -0
  454. package/dist/sandbox/preview/sandbox-preview.css.js +14 -0
  455. package/dist/sandbox/preview/sandbox-preview.d.ts +224 -0
  456. package/dist/sandbox/preview/sandbox-preview.js +306 -0
  457. package/dist/sandbox/root/sandbox-root.css.d.ts +1 -0
  458. package/dist/sandbox/root/sandbox-root.css.js +73 -0
  459. package/dist/sandbox/root/sandbox-root.d.ts +324 -0
  460. package/dist/sandbox/root/sandbox-root.js +569 -0
  461. package/dist/sandbox/source/sandbox-source.css.d.ts +1 -0
  462. package/dist/sandbox/source/sandbox-source.css.js +27 -0
  463. package/dist/sandbox/source/sandbox-source.d.ts +105 -0
  464. package/dist/sandbox/source/sandbox-source.js +173 -0
  465. package/dist/sandbox/status-bar/sandbox-status-bar.css.d.ts +1 -0
  466. package/dist/sandbox/status-bar/sandbox-status-bar.css.js +23 -0
  467. package/dist/sandbox/status-bar/sandbox-status-bar.d.ts +59 -0
  468. package/dist/sandbox/status-bar/sandbox-status-bar.js +86 -0
  469. package/dist/sandbox/terminal/sandbox-terminal.css.d.ts +1 -0
  470. package/dist/sandbox/terminal/sandbox-terminal.css.js +69 -0
  471. package/dist/sandbox/terminal/sandbox-terminal.d.ts +71 -0
  472. package/dist/sandbox/terminal/sandbox-terminal.js +130 -0
  473. package/dist/sandbox/toolbar/sandbox-toolbar.css.d.ts +1 -0
  474. package/dist/sandbox/toolbar/sandbox-toolbar.css.js +32 -0
  475. package/dist/sandbox/toolbar/sandbox-toolbar.d.ts +37 -0
  476. package/dist/sandbox/toolbar/sandbox-toolbar.js +49 -0
  477. package/dist/scroll-area/index.d.ts +1 -0
  478. package/dist/scroll-area/index.js +1 -0
  479. package/dist/scroll-area/root/scroll-area-root.css.d.ts +1 -0
  480. package/dist/scroll-area/root/scroll-area-root.css.js +118 -0
  481. package/dist/scroll-area/root/scroll-area-root.d.ts +34 -0
  482. package/dist/scroll-area/root/scroll-area-root.js +40 -0
  483. package/dist/select/index.d.ts +1 -0
  484. package/dist/select/index.js +1 -0
  485. package/dist/select/root/select-root.css.d.ts +1 -0
  486. package/dist/select/root/select-root.css.js +197 -0
  487. package/dist/select/root/select-root.d.ts +71 -0
  488. package/dist/select/root/select-root.js +60 -0
  489. package/dist/shared/chart/series.css.d.ts +1 -0
  490. package/dist/shared/chart/series.css.js +35 -0
  491. package/dist/shared/chart/terminus.css.d.ts +1 -0
  492. package/dist/shared/chart/terminus.css.js +41 -0
  493. package/dist/shared/field/field-inline.css.d.ts +1 -0
  494. package/dist/shared/field/field-inline.css.js +7 -0
  495. package/dist/shared/field/field-stacked.css.d.ts +1 -0
  496. package/dist/shared/field/field-stacked.css.js +7 -0
  497. package/dist/shared/field/field.css.d.ts +1 -0
  498. package/dist/shared/field/field.css.js +59 -0
  499. package/dist/skeleton/index.d.ts +1 -0
  500. package/dist/skeleton/index.js +1 -0
  501. package/dist/skeleton/root/skeleton-root.css.d.ts +1 -0
  502. package/dist/skeleton/root/skeleton-root.css.js +74 -0
  503. package/dist/skeleton/root/skeleton-root.d.ts +34 -0
  504. package/dist/skeleton/root/skeleton-root.js +38 -0
  505. package/dist/slider/index.d.ts +1 -0
  506. package/dist/slider/index.js +1 -0
  507. package/dist/slider/root/slider-root.css.d.ts +1 -0
  508. package/dist/slider/root/slider-root.css.js +335 -0
  509. package/dist/slider/root/slider-root.d.ts +42 -0
  510. package/dist/slider/root/slider-root.js +50 -0
  511. package/dist/sparkline/index.d.ts +1 -0
  512. package/dist/sparkline/index.js +1 -0
  513. package/dist/sparkline/root/sparkline-root.css.d.ts +1 -0
  514. package/dist/sparkline/root/sparkline-root.css.js +103 -0
  515. package/dist/sparkline/root/sparkline-root.d.ts +114 -0
  516. package/dist/sparkline/root/sparkline-root.js +67 -0
  517. package/dist/speed-dial/index.d.ts +2 -0
  518. package/dist/speed-dial/index.js +2 -0
  519. package/dist/speed-dial/item/speed-dial-item.css.d.ts +1 -0
  520. package/dist/speed-dial/item/speed-dial-item.css.js +80 -0
  521. package/dist/speed-dial/item/speed-dial-item.d.ts +26 -0
  522. package/dist/speed-dial/item/speed-dial-item.js +32 -0
  523. package/dist/speed-dial/root/speed-dial-root.css.d.ts +1 -0
  524. package/dist/speed-dial/root/speed-dial-root.css.js +140 -0
  525. package/dist/speed-dial/root/speed-dial-root.d.ts +27 -0
  526. package/dist/speed-dial/root/speed-dial-root.js +34 -0
  527. package/dist/splitter/index.d.ts +1 -0
  528. package/dist/splitter/index.js +1 -0
  529. package/dist/splitter/root/splitter-root.css.d.ts +1 -0
  530. package/dist/splitter/root/splitter-root.css.js +203 -0
  531. package/dist/splitter/root/splitter-root.d.ts +78 -0
  532. package/dist/splitter/root/splitter-root.js +70 -0
  533. package/dist/stat/group/stat-group.css.d.ts +1 -0
  534. package/dist/stat/group/stat-group.css.js +12 -0
  535. package/dist/stat/group/stat-group.d.ts +30 -0
  536. package/dist/stat/group/stat-group.js +43 -0
  537. package/dist/stat/index.d.ts +2 -0
  538. package/dist/stat/index.js +2 -0
  539. package/dist/stat/root/stat-root.css.d.ts +1 -0
  540. package/dist/stat/root/stat-root.css.js +60 -0
  541. package/dist/stat/root/stat-root.d.ts +27 -0
  542. package/dist/stat/root/stat-root.js +33 -0
  543. package/dist/steps/index.d.ts +2 -0
  544. package/dist/steps/index.js +2 -0
  545. package/dist/steps/root/steps-root.css.d.ts +1 -0
  546. package/dist/steps/root/steps-root.css.js +94 -0
  547. package/dist/steps/root/steps-root.d.ts +36 -0
  548. package/dist/steps/root/steps-root.js +42 -0
  549. package/dist/steps/step/step.css.d.ts +1 -0
  550. package/dist/steps/step/step.css.js +158 -0
  551. package/dist/steps/step/step.d.ts +20 -0
  552. package/dist/steps/step/step.js +30 -0
  553. package/dist/switch/index.d.ts +1 -0
  554. package/dist/switch/index.js +1 -0
  555. package/dist/switch/root/switch-root.css.d.ts +1 -0
  556. package/dist/switch/root/switch-root.css.js +113 -0
  557. package/dist/switch/root/switch-root.d.ts +42 -0
  558. package/dist/switch/root/switch-root.js +50 -0
  559. package/dist/table/cell/table-cell.css.d.ts +1 -0
  560. package/dist/table/cell/table-cell.css.js +25 -0
  561. package/dist/table/cell/table-cell.d.ts +24 -0
  562. package/dist/table/cell/table-cell.js +30 -0
  563. package/dist/table/column/table-column.css.d.ts +1 -0
  564. package/dist/table/column/table-column.css.js +21 -0
  565. package/dist/table/column/table-column.d.ts +23 -0
  566. package/dist/table/column/table-column.js +29 -0
  567. package/dist/table/index.d.ts +4 -0
  568. package/dist/table/index.js +4 -0
  569. package/dist/table/root/table-root.css.d.ts +1 -0
  570. package/dist/table/root/table-root.css.js +39 -0
  571. package/dist/table/root/table-root.d.ts +29 -0
  572. package/dist/table/root/table-root.js +35 -0
  573. package/dist/table/row/table-row.css.d.ts +1 -0
  574. package/dist/table/row/table-row.css.js +5 -0
  575. package/dist/table/row/table-row.d.ts +24 -0
  576. package/dist/table/row/table-row.js +30 -0
  577. package/dist/tabs/index.d.ts +3 -0
  578. package/dist/tabs/index.js +3 -0
  579. package/dist/tabs/panel/tab-panel.css.d.ts +1 -0
  580. package/dist/tabs/panel/tab-panel.css.js +17 -0
  581. package/dist/tabs/panel/tab-panel.d.ts +26 -0
  582. package/dist/tabs/panel/tab-panel.js +32 -0
  583. package/dist/tabs/root/tabs-root.css.d.ts +1 -0
  584. package/dist/tabs/root/tabs-root.css.js +136 -0
  585. package/dist/tabs/root/tabs-root.d.ts +29 -0
  586. package/dist/tabs/root/tabs-root.js +35 -0
  587. package/dist/tabs/tab/tab.css.d.ts +1 -0
  588. package/dist/tabs/tab/tab.css.js +57 -0
  589. package/dist/tabs/tab/tab.d.ts +26 -0
  590. package/dist/tabs/tab/tab.js +32 -0
  591. package/dist/tag/index.d.ts +1 -0
  592. package/dist/tag/index.js +1 -0
  593. package/dist/tag/root/tag-root.css.d.ts +1 -0
  594. package/dist/tag/root/tag-root.css.js +112 -0
  595. package/dist/tag/root/tag-root.d.ts +66 -0
  596. package/dist/tag/root/tag-root.js +48 -0
  597. package/dist/text/index.d.ts +1 -0
  598. package/dist/text/index.js +1 -0
  599. package/dist/text/root/text-root.css.d.ts +1 -0
  600. package/dist/text/root/text-root.css.js +113 -0
  601. package/dist/text/root/text-root.d.ts +83 -0
  602. package/dist/text/root/text-root.js +92 -0
  603. package/dist/textarea/index.d.ts +1 -0
  604. package/dist/textarea/index.js +1 -0
  605. package/dist/textarea/root/textarea-root.css.d.ts +1 -0
  606. package/dist/textarea/root/textarea-root.css.js +79 -0
  607. package/dist/textarea/root/textarea-root.d.ts +27 -0
  608. package/dist/textarea/root/textarea-root.js +35 -0
  609. package/dist/time-input/index.d.ts +1 -0
  610. package/dist/time-input/index.js +1 -0
  611. package/dist/time-input/root/time-input-root.css.d.ts +1 -0
  612. package/dist/time-input/root/time-input-root.css.js +184 -0
  613. package/dist/time-input/root/time-input-root.d.ts +42 -0
  614. package/dist/time-input/root/time-input-root.js +53 -0
  615. package/dist/time-picker/index.d.ts +1 -0
  616. package/dist/time-picker/index.js +1 -0
  617. package/dist/time-picker/root/time-picker-root.css.d.ts +1 -0
  618. package/dist/time-picker/root/time-picker-root.css.js +147 -0
  619. package/dist/time-picker/root/time-picker-root.d.ts +38 -0
  620. package/dist/time-picker/root/time-picker-root.js +48 -0
  621. package/dist/timeline/index.d.ts +2 -0
  622. package/dist/timeline/index.js +2 -0
  623. package/dist/timeline/item/timeline-item.css.d.ts +1 -0
  624. package/dist/timeline/item/timeline-item.css.js +111 -0
  625. package/dist/timeline/item/timeline-item.d.ts +27 -0
  626. package/dist/timeline/item/timeline-item.js +33 -0
  627. package/dist/timeline/root/timeline-root.css.d.ts +1 -0
  628. package/dist/timeline/root/timeline-root.css.js +12 -0
  629. package/dist/timeline/root/timeline-root.d.ts +25 -0
  630. package/dist/timeline/root/timeline-root.js +31 -0
  631. package/dist/toast/index.d.ts +2 -0
  632. package/dist/toast/index.js +2 -0
  633. package/dist/toast/item/toast-item.css.d.ts +1 -0
  634. package/dist/toast/item/toast-item.css.js +233 -0
  635. package/dist/toast/item/toast-item.d.ts +31 -0
  636. package/dist/toast/item/toast-item.js +37 -0
  637. package/dist/toast/root/toast-root.css.d.ts +1 -0
  638. package/dist/toast/root/toast-root.css.js +66 -0
  639. package/dist/toast/root/toast-root.d.ts +37 -0
  640. package/dist/toast/root/toast-root.js +43 -0
  641. package/dist/toggle/group/toggle-group.css.d.ts +1 -0
  642. package/dist/toggle/group/toggle-group.css.js +118 -0
  643. package/dist/toggle/group/toggle-group.d.ts +49 -0
  644. package/dist/toggle/group/toggle-group.js +47 -0
  645. package/dist/toggle/index.d.ts +2 -0
  646. package/dist/toggle/index.js +2 -0
  647. package/dist/toggle/root/toggle-root.css.d.ts +1 -0
  648. package/dist/toggle/root/toggle-root.css.js +25 -0
  649. package/dist/toggle/root/toggle-root.d.ts +28 -0
  650. package/dist/toggle/root/toggle-root.js +34 -0
  651. package/dist/toolbar/index.d.ts +1 -0
  652. package/dist/toolbar/index.js +1 -0
  653. package/dist/toolbar/root/toolbar-root.css.d.ts +1 -0
  654. package/dist/toolbar/root/toolbar-root.css.js +28 -0
  655. package/dist/toolbar/root/toolbar-root.d.ts +29 -0
  656. package/dist/toolbar/root/toolbar-root.js +35 -0
  657. package/dist/tooltip/index.d.ts +1 -0
  658. package/dist/tooltip/index.js +1 -0
  659. package/dist/tooltip/root/tooltip-root.css.d.ts +1 -0
  660. package/dist/tooltip/root/tooltip-root.css.js +121 -0
  661. package/dist/tooltip/root/tooltip-root.d.ts +63 -0
  662. package/dist/tooltip/root/tooltip-root.js +42 -0
  663. package/dist/tour/index.d.ts +2 -0
  664. package/dist/tour/index.js +2 -0
  665. package/dist/tour/root/tour-root.css.d.ts +1 -0
  666. package/dist/tour/root/tour-root.css.js +30 -0
  667. package/dist/tour/root/tour-root.d.ts +24 -0
  668. package/dist/tour/root/tour-root.js +30 -0
  669. package/dist/tour/stop/tour-stop.css.d.ts +1 -0
  670. package/dist/tour/stop/tour-stop.css.js +77 -0
  671. package/dist/tour/stop/tour-stop.d.ts +34 -0
  672. package/dist/tour/stop/tour-stop.js +40 -0
  673. package/dist/tree/index.d.ts +2 -0
  674. package/dist/tree/index.js +2 -0
  675. package/dist/tree/item/tree-item.css.d.ts +1 -0
  676. package/dist/tree/item/tree-item.css.js +177 -0
  677. package/dist/tree/item/tree-item.d.ts +44 -0
  678. package/dist/tree/item/tree-item.js +50 -0
  679. package/dist/tree/root/tree-root.css.d.ts +1 -0
  680. package/dist/tree/root/tree-root.css.js +43 -0
  681. package/dist/tree/root/tree-root.d.ts +63 -0
  682. package/dist/tree/root/tree-root.js +47 -0
  683. package/dist/trend/index.d.ts +1 -0
  684. package/dist/trend/index.js +1 -0
  685. package/dist/trend/root/trend-root.css.d.ts +1 -0
  686. package/dist/trend/root/trend-root.css.js +50 -0
  687. package/dist/trend/root/trend-root.d.ts +48 -0
  688. package/dist/trend/root/trend-root.js +55 -0
  689. package/dist/video/index.d.ts +1 -0
  690. package/dist/video/index.js +1 -0
  691. package/dist/video/root/video-root.css.d.ts +1 -0
  692. package/dist/video/root/video-root.css.js +404 -0
  693. package/dist/video/root/video-root.d.ts +87 -0
  694. package/dist/video/root/video-root.js +61 -0
  695. package/dist/video-playlist/index.d.ts +3 -0
  696. package/dist/video-playlist/index.js +3 -0
  697. package/dist/video-playlist/item/video-playlist-item.css.d.ts +1 -0
  698. package/dist/video-playlist/item/video-playlist-item.css.js +95 -0
  699. package/dist/video-playlist/item/video-playlist-item.d.ts +25 -0
  700. package/dist/video-playlist/item/video-playlist-item.js +31 -0
  701. package/dist/video-playlist/menu/video-playlist-menu.css.d.ts +1 -0
  702. package/dist/video-playlist/menu/video-playlist-menu.css.js +44 -0
  703. package/dist/video-playlist/menu/video-playlist-menu.d.ts +43 -0
  704. package/dist/video-playlist/menu/video-playlist-menu.js +56 -0
  705. package/dist/video-playlist/root/video-playlist-root.css.d.ts +1 -0
  706. package/dist/video-playlist/root/video-playlist-root.css.js +21 -0
  707. package/dist/video-playlist/root/video-playlist-root.d.ts +26 -0
  708. package/dist/video-playlist/root/video-playlist-root.js +32 -0
  709. package/dist/virtual-list/index.d.ts +1 -0
  710. package/dist/virtual-list/index.js +1 -0
  711. package/dist/virtual-list/root/virtual-list-root.css.d.ts +1 -0
  712. package/dist/virtual-list/root/virtual-list-root.css.js +27 -0
  713. package/dist/virtual-list/root/virtual-list-root.d.ts +31 -0
  714. package/dist/virtual-list/root/virtual-list-root.js +37 -0
  715. package/elements.css +287 -0
  716. package/jsx.d.ts +54748 -0
  717. package/package.json +80 -0
  718. package/svelte.d.ts +139 -0
  719. package/vue.d.ts +11511 -0
@@ -0,0 +1,569 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { customElement, HelixBeforePanelResizeEvent, HelixBeforeSplitEvent, HelixElement, } from '@fusion.dev/helix-core';
8
+ import '../../splitter/index.js';
9
+ import { html } from 'lit';
10
+ import { property, state } from 'lit/decorators.js';
11
+ import { styles } from './sandbox-root.css.js';
12
+ /** Where the divider sits, and how tall the panel is, before anyone moves them.
13
+ Named because the properties default to them and `applyPanel` falls back to
14
+ them, and two copies of a default drift. */
15
+ const DEFAULT_SPLIT = 50;
16
+ /* One hundred and sixty, not one hundred and ninety-two. The panel is a console
17
+ a reader glances at, and at 192 it opened taking forty-two percent of the
18
+ sandbox: the thing being previewed had less room than the log of it. Its own
19
+ tab bar is forty-eight of that, so this leaves about five lines, which is what
20
+ a console is read in. Dragging it taller is one gesture and it is remembered. */
21
+ const DEFAULT_PANEL = 160;
22
+ /** The most of the sandbox the panel may take, leaving the panes above it. */
23
+ const PANEL_MAX = 0.8;
24
+ /**
25
+ * @summary Pairs an editable source pane with a live preview.
26
+ *
27
+ * @description
28
+ * Coordination is by event, the same way the accordion does it: a source pane
29
+ * dispatches `helix-before-edit`, which bubbles, and the sandbox hands the value to
30
+ * whatever preview is slotted into it. Neither child knows the other exists, so
31
+ * either can be replaced or used alone.
32
+ *
33
+ * The event carries the pane's `name`, which is what lets one sandbox hold
34
+ * several panes without the root identifying senders by reference. `html` is
35
+ * the preview's markup and `css` is its stylesheet. A pane named anything else
36
+ * is showing something rather than driving it, and is ignored: the sandbox has
37
+ * a pane rendering the example as JSX, and guessing would have put the text of
38
+ * a React component into the preview.
39
+ *
40
+ * **The dividers are two nested `helix-splitter`s, not a grid this element
41
+ * drags itself.** It had its own: a five row grid, a stylesheet written to on
42
+ * every pointer move, three pointer handlers, a keyboard handler reading which
43
+ * axes each divider was allowed to move, and a corner placed by hand into the
44
+ * cell where two tracks met. All of it is the splitter's now, including the
45
+ * corner, which arrives on its own wherever a nested splitter crosses the one it
46
+ * is in.
47
+ *
48
+ * The panes are the inner splitter and the panel is the outer one, which is the
49
+ * order that makes the panel span the full width: the outer divider runs edge to
50
+ * edge and the inner stops at it.
51
+ *
52
+ * **Both are controlled from here, so `split` and `panel-size` stay the truth.**
53
+ * A splitter that owned its own position would leave this element reporting one
54
+ * arrangement and showing another, and a consumer restoring a saved layout
55
+ * writes to these two properties. Each splitter announces where it wants to go
56
+ * and this answers, which is the same contract a form control has with a
57
+ * framework.
58
+ *
59
+ * **The panel is in pixels here and a percentage in the splitter, and the
60
+ * conversion belongs here.** A terminal wants a number of lines rather than a
61
+ * share of the window, so its height should not change when the window does. A
62
+ * splitter has no business knowing that, so it stays percentage-pure and this
63
+ * element, which does know what is in the panel, holds the box and converts.
64
+ * That is also what keeps a stored `panelSize` from a previous visit meaning
65
+ * what it meant when it was written.
66
+ *
67
+ * @since 0.1.0
68
+ * @status experimental
69
+ * @category tooling
70
+ * @aliases Playground, REPL, Editor
71
+ * @documentation https://helix.fusion.dev/sandbox
72
+ *
73
+ * @slot panel - A panel under both panes, usually a terminal.
74
+ * @slot preview - The live preview. Second unless `lead` says otherwise.
75
+ * @slot source - The editable source pane. First unless `lead` says otherwise.
76
+ * @slot status - A status bar, spanning both panes at the bottom.
77
+ * @slot toolbar - A bar across the top, spanning both panes.
78
+ *
79
+ * @event {HelixBeforePanelResizeEvent} helix-before-panel-resize - Fired before the panel's divider is let go, with its height in pixels. Cancelable: refusing it takes the decision and nothing moves.
80
+ * @event {HelixBeforeSplitEvent} helix-before-split - Fired before the panes' divider is let go, with the lead pane's share. Cancelable: refusing it takes the decision and nothing moves.
81
+ *
82
+ * @csspart body - The splitter holding the panes above the panel.
83
+ * @csspart corner - The handle where the two dividers cross.
84
+ * @csspart pane - Either pane.
85
+ * @csspart panel - The box holding whatever was slotted as the panel.
86
+ * @csspart panes - The splitter holding the source and preview panes.
87
+ * @csspart separator - Either divider.
88
+ *
89
+ * @cssproperty --sandbox-grab - The invisible width of a divider's drag target.
90
+ * @cssproperty --sandbox-min-block-size - Minimum height of the sandbox.
91
+ * @cssproperty --sandbox-separator-color - Color of the divider.
92
+ */
93
+ let HelixSandbox = class HelixSandbox extends HelixElement {
94
+ constructor() {
95
+ super(...arguments);
96
+ /**
97
+ * Which pane comes first, before the divider.
98
+ *
99
+ * A sandbox is read in one of two directions and the two are not a
100
+ * preference. A workbench is a place to write, so the source leads and the
101
+ * preview answers it. A reference page is a place to look, so the preview
102
+ * leads and the source is what a reader opens if they want to know how it was
103
+ * done. Same component, opposite reading order, and no consumer should have
104
+ * to slot a preview into a hole named `source` to get it.
105
+ *
106
+ * Not reflected, because no rule selects on it: the panes already carry
107
+ * `data-pane`, which is what the stylesheet reaches for, and swapping the
108
+ * names below keeps that true whichever way round they sit.
109
+ *
110
+ * `split` follows the lead pane rather than the source, so `split="30"` means
111
+ * the same thing in both directions: thirty percent to whatever comes first.
112
+ */
113
+ this.lead = 'source';
114
+ /**
115
+ * Percentage of the sandbox given to the source pane.
116
+ */
117
+ this.split = DEFAULT_SPLIT;
118
+ /**
119
+ * Where a reset puts the divider, where nothing declared it.
120
+ *
121
+ * Separate from `split` for the reason `Splitter` keeps `default-position`
122
+ * separate from `position`, and the bug is worth recording because this
123
+ * element had it after that one was fixed. A double click reset to whatever
124
+ * `split` held on the first render, which is the declared arrangement only
125
+ * when nobody owns the property. The workbench owns it, restores it from the
126
+ * address bar and from storage, so the first value it ever held was the
127
+ * reader's last session: double clicking reset the sandbox to the size it
128
+ * already was, which is to say it did nothing at all.
129
+ *
130
+ * Declared rather than captured, so it is a number a consumer states and can
131
+ * change, and it needs no first frame to be read on.
132
+ */
133
+ this.defaultSplit = DEFAULT_SPLIT;
134
+ /**
135
+ * Height of the panel, in pixels.
136
+ */
137
+ this.panelSize = DEFAULT_PANEL;
138
+ /**
139
+ * What a reset makes the panel, in pixels.
140
+ *
141
+ * The pair to `panel-size`.
142
+ */
143
+ this.defaultPanelSize = DEFAULT_PANEL;
144
+ /**
145
+ * What the panel's height becomes when it is closed.
146
+ *
147
+ * Zero closes it outright. A panel whose contents include the control that
148
+ * reopens it, a row of tabs being the usual one, wants that row left showing,
149
+ * and only whoever slotted it knows how tall that is.
150
+ */
151
+ this.panelCollapsedSize = 0;
152
+ /**
153
+ * Accessible name for the panel's divider.
154
+ */
155
+ this.panelLabel = 'Resize panel';
156
+ /**
157
+ * Accessible name for the divider that moves both at once.
158
+ */
159
+ this.cornerLabel = 'Resize panes and panel';
160
+ /**
161
+ * Accessible name for the divider.
162
+ */
163
+ this.separatorLabel = 'Resize source pane';
164
+ /**
165
+ * Whether anything is in the panel region.
166
+ *
167
+ * The divider above the panel is only meaningful when there is a panel to
168
+ * size, and there is no way to ask in CSS: `:host(:has([slot="panel"]))` is
169
+ * invalid, and the server has no children to look at. `slotchange` is the
170
+ * platform answering on the client, which is where a divider is any use.
171
+ */
172
+ this.hasPanel = false;
173
+ /**
174
+ * The body's height, which is what a pixel panel is a fraction of.
175
+ *
176
+ * The panel is given in pixels and the splitter takes a percentage, so the two
177
+ * only agree at one height: let the window change without recomputing and a
178
+ * panel asked for at 192px quietly keeps whatever share of the old height that
179
+ * was.
180
+ *
181
+ * **Measured at render rather than cached from the observer**, which is the
182
+ * second design here. The first held the number the observer last reported and
183
+ * was correct only while the observer was firing, and a `ResizeObserver`
184
+ * callback is delivered from the rendering lifecycle: a background tab runs
185
+ * none, so the value went stale with nothing to say so. Reading the box at
186
+ * render leaves one source of truth, and the observer's only job is to say
187
+ * that a render is due.
188
+ *
189
+ * Cheap, because renders are rare. A drag no longer goes through this element
190
+ * at all: the splitter follows the pointer itself and announces once, when it
191
+ * settles.
192
+ */
193
+ this.bodyHeight = 0;
194
+ /**
195
+ * Asks for a render when the body changes size.
196
+ *
197
+ * The box watched is the splitter itself, not the panel. Its size changes when
198
+ * the window does and not when the divider moves, so answering it cannot feed
199
+ * back into the position that answered it.
200
+ */
201
+ this.watch = typeof ResizeObserver === 'undefined'
202
+ ? undefined
203
+ : new ResizeObserver(() => {
204
+ this.requestUpdate();
205
+ });
206
+ /**
207
+ * Takes a change from one of this sandbox's own source panes.
208
+ *
209
+ * The origin is checked, and has to be. `helix-before-edit` bubbles and composes,
210
+ * so anything a consumer slots into a sandbox sends one up here too. A
211
+ * sandbox hears a great deal that is not its source.
212
+ */
213
+ this.handleSourceChange = (event) => {
214
+ if (!this.fromSource(event.target)) {
215
+ return;
216
+ }
217
+ const { value } = event.detail;
218
+ /* Which pane is the element, and the element is `composedPath()[0]` rather
219
+ than `event.target`, which is retargeted to the outermost host once the
220
+ event has crossed a shadow boundary.
221
+
222
+ Named, not guessed. The rule was that `css` is the stylesheet and
223
+ anything else is markup, which was true while there were two panes and
224
+ wrong the moment there was a third: a pane showing the example as JSX
225
+ announced itself the same way, and the preview rendered the text of a
226
+ React component as though it were markup.
227
+
228
+ The name used to arrive in the detail, where it was one of four different
229
+ things that field carried. It is on the pane, which is where a name
230
+ belongs. */
231
+ const pane = event.composedPath()[0];
232
+ if (pane?.name !== 'css' && pane?.name !== 'html') {
233
+ return;
234
+ }
235
+ for (const preview of this.previews) {
236
+ if (pane.name === 'css') {
237
+ preview.styles = value;
238
+ }
239
+ else {
240
+ preview.source = value;
241
+ }
242
+ }
243
+ };
244
+ /**
245
+ * Writes the cursor position onto any status bar slotted here.
246
+ *
247
+ * The same shape as the source-to-preview hand-off, and for the same reason:
248
+ * the editor and the bar never speak, so either can be absent. It goes
249
+ * straight to the element rather than through a property a framework owns,
250
+ * because this fires on every keystroke and every arrow press.
251
+ */
252
+ this.handleCaret = (event) => {
253
+ if (!this.fromSource(event.target)) {
254
+ return;
255
+ }
256
+ const { column, line } = event.detail;
257
+ for (const bar of this.statusBars) {
258
+ bar.column = column;
259
+ bar.line = line;
260
+ }
261
+ };
262
+ /**
263
+ * Hands a console line from the preview to any terminal slotted here.
264
+ *
265
+ * Every `helix-console` is forwarded, with no check on where it came from.
266
+ * Unlike a change, which any form control in a sandbox emits, this event is
267
+ * dispatched by exactly one thing: a preview relaying what the document
268
+ * inside its frame wrote. There is nothing else here it could be confused
269
+ * with.
270
+ */
271
+ this.handleConsole = (event) => {
272
+ const detail = event.detail;
273
+ for (const terminal of this.terminals) {
274
+ terminal.write(detail);
275
+ }
276
+ };
277
+ /**
278
+ * Answers a divider that has asked to move.
279
+ *
280
+ * Both splitters are controlled from here, so neither applies anything on its
281
+ * own: each announces where it wants to go and this decides. That is what
282
+ * keeps `split` and `panelSize` the truth about the arrangement rather than a
283
+ * stale copy of it.
284
+ *
285
+ * `target` against `currentTarget`, because a source pane's own change bubbles
286
+ * up through these same elements on its way to the host. Only a splitter
287
+ * speaking for itself is one of ours, and only those are stopped: the sandbox
288
+ * announces `arrangement` and a consumer never sees the two inside it.
289
+ */
290
+ this.handlePanesChange = (event) => {
291
+ if (event.target !== event.currentTarget) {
292
+ return;
293
+ }
294
+ const { value } = event.detail;
295
+ event.stopPropagation();
296
+ this.split = Number(value);
297
+ this.splitSettled();
298
+ };
299
+ this.handlePanelChange = (event) => {
300
+ if (event.target !== event.currentTarget) {
301
+ return;
302
+ }
303
+ const { value } = event.detail;
304
+ event.stopPropagation();
305
+ if (this.bodyHeight <= 0) {
306
+ return;
307
+ }
308
+ // Back into pixels, which is what this element promises and what a consumer
309
+ // stored. The divider's position is the panes' share, so the panel is the
310
+ // rest of it.
311
+ this.panelSize = Math.max(0, ((100 - Number(value)) / 100) * this.bodyHeight);
312
+ this.panelSettled();
313
+ };
314
+ /**
315
+ * Notes whether there is a panel, which is what its dividers depend on.
316
+ *
317
+ * Asked of the light DOM rather than of the slot. `slotchange` is the event
318
+ * that says it changed, and it is listened for, but it is not the only way
319
+ * to know: a sandbox whose panel was in the markup all along has nothing to
320
+ * change, and an environment that does not dispatch the event at all leaves
321
+ * the dividers permanently absent. What is slotted into a named slot is a
322
+ * question the host can answer directly.
323
+ */
324
+ this.readPanel = () => {
325
+ this.hasPanel = this.querySelector(':scope > [slot="panel"]') !== null;
326
+ };
327
+ }
328
+ /** The panel as a share of the body, which is what the splitter takes. */
329
+ get panelShare() {
330
+ const size = Number.isFinite(this.panelSize) ? this.panelSize : DEFAULT_PANEL;
331
+ if (this.bodyHeight <= 0) {
332
+ return 0;
333
+ }
334
+ return Math.min(PANEL_MAX * 100, Math.max(0, (size / this.bodyHeight) * 100));
335
+ }
336
+ /**
337
+ * Where the outer divider goes: everything the panel is not.
338
+ *
339
+ * A hundred with no panel, which puts the divider on the floor of the sandbox
340
+ * with the panes filling it. The line itself is hidden by the stylesheet in
341
+ * that case, because a boundary needs two sides.
342
+ */
343
+ get panelPosition() {
344
+ return this.hasPanel ? 100 - this.panelShare : 100;
345
+ }
346
+ /** Where the panel divider goes on a reset, in the splitter's own units. */
347
+ get homePanelPosition() {
348
+ const panel = Number.isFinite(this.defaultPanelSize) ? this.defaultPanelSize : DEFAULT_PANEL;
349
+ if (!this.hasPanel || this.bodyHeight <= 0) {
350
+ return 100;
351
+ }
352
+ return 100 - Math.min(PANEL_MAX * 100, Math.max(0, (panel / this.bodyHeight) * 100));
353
+ }
354
+ /** `panel-collapsed-size` in the units the splitter works in. */
355
+ get panelSliver() {
356
+ if (this.bodyHeight <= 0) {
357
+ return 0;
358
+ }
359
+ return Math.min(100, Math.max(0, (this.panelCollapsedSize / this.bodyHeight) * 100));
360
+ }
361
+ /**
362
+ * Whether a change came from inside this sandbox's source region.
363
+ *
364
+ * Structural rather than a type check. It was `instanceof
365
+ * HelixSandboxSource`, which was right until there was a second kind of
366
+ * pane: the editor is `@fusion.dev/helix-sandbox/editor`, on its own path because it
367
+ * carries CodeMirror, and naming its class here would pull that back into
368
+ * this module for every consumer. Where the event came from is a question
369
+ * about the tree, and the tree can answer it.
370
+ */
371
+ fromSource(target) {
372
+ if (!(target instanceof Node)) {
373
+ return false;
374
+ }
375
+ const slot = this.renderRoot.querySelector('slot[name="source"]');
376
+ return (slot?.assignedElements({ flatten: true }) ?? []).some((pane) => pane === target || pane.contains(target));
377
+ }
378
+ /**
379
+ * The parts of this sandbox it drives, wherever they sit inside it.
380
+ *
381
+ * Descendants, not children. A preview and a status bar happen to be slotted
382
+ * directly, but a terminal lives inside the tab set that holds the panel, so
383
+ * a search of `children` found none and the console went nowhere. Where a
384
+ * consumer nests a pane is their arrangement to make.
385
+ *
386
+ * Client only: the server has no children to read.
387
+ */
388
+ parts(selector) {
389
+ return [...this.querySelectorAll(selector)];
390
+ }
391
+ get previews() {
392
+ return this.parts('helix-sandbox-preview');
393
+ }
394
+ get terminals() {
395
+ return this.parts('helix-sandbox-terminal');
396
+ }
397
+ get statusBars() {
398
+ return this.parts('helix-sandbox-status-bar');
399
+ }
400
+ /**
401
+ * The orientation in force.
402
+ *
403
+ * Unset is horizontal, and stays unset: the default is the absent attribute,
404
+ * so a reflected default cannot appear on the host after hydration.
405
+ */
406
+ get axis() {
407
+ return this.orientation ?? 'horizontal';
408
+ }
409
+ /**
410
+ * Says the panes' divider has settled, so a consumer can keep it.
411
+ *
412
+ * When it settles, not while it moves. A drag is a stream of positions and
413
+ * only the one it ends at is a preference; announcing each would ask whoever
414
+ * is listening to write to storage a hundred times to record one decision.
415
+ *
416
+ * The sandbox does not keep it. Where a preference lives, and whether it
417
+ * should be kept at all, is the consumer's to decide, and a component that
418
+ * wrote to storage on its own would be deciding for all of them under a key
419
+ * it chose.
420
+ *
421
+ * **A verb each, where this was one `helix-before-resize` carrying which of the
422
+ * two had moved.** Both dividers are this element's, so `composedPath()[0]` is
423
+ * the same host for either and the name is the only thing that can separate
424
+ * them. It was the last caller of a field every request in the library carried
425
+ * for it. See 306.
426
+ */
427
+ splitSettled() {
428
+ this.dispatchEvent(new HelixBeforeSplitEvent({ value: String(this.split) }));
429
+ }
430
+ /** As `splitSettled`, for the panel, whose value is pixels rather than a share. */
431
+ panelSettled() {
432
+ this.dispatchEvent(new HelixBeforePanelResizeEvent({ value: String(this.panelSize) }));
433
+ }
434
+ connectedCallback() {
435
+ super.connectedCallback();
436
+ this.addEventListener('helix-caret', this.handleCaret);
437
+ this.addEventListener('helix-console', this.handleConsole);
438
+ this.addEventListener('helix-before-edit', this.handleSourceChange);
439
+ /* And the body is watched again, because `disconnectedCallback` stopped
440
+ watching it. The observer itself survives, being a field rather than
441
+ something `firstUpdated` built, but a disconnected one reports nothing
442
+ until something calls `observe` again, and only `firstUpdated` did. So a
443
+ sandbox moved in the DOM came back with its panel sizes frozen.
444
+ `check:observers` holds this. */
445
+ if (this.hasUpdated) {
446
+ this.watchBody();
447
+ }
448
+ }
449
+ /** Watches the body, whose height is what the pane sizes are computed from. */
450
+ watchBody() {
451
+ const body = this.renderRoot.querySelector('[part="body"]');
452
+ if (!body) {
453
+ return;
454
+ }
455
+ this.bodyHeight = body.getBoundingClientRect().height;
456
+ this.watch?.observe(body);
457
+ this.requestUpdate();
458
+ }
459
+ /**
460
+ * Takes the body's height before each render, so the conversion is current.
461
+ *
462
+ * Guarded on `hasUpdated`, because there is no shadow root to measure before
463
+ * the first render, and on the method existing, because the server's element
464
+ * shim carries attributes but not tree traversal.
465
+ */
466
+ willUpdate(changed) {
467
+ super.willUpdate(changed);
468
+ if (!this.hasUpdated || typeof this.renderRoot?.querySelector !== 'function') {
469
+ return;
470
+ }
471
+ const body = this.renderRoot.querySelector('[part="body"]');
472
+ if (body) {
473
+ this.bodyHeight = body.getBoundingClientRect().height;
474
+ }
475
+ }
476
+ firstUpdated(changed) {
477
+ super.firstUpdated(changed);
478
+ this.readPanel();
479
+ this.watchBody();
480
+ }
481
+ disconnectedCallback() {
482
+ super.disconnectedCallback();
483
+ this.removeEventListener('helix-caret', this.handleCaret);
484
+ this.removeEventListener('helix-console', this.handleConsole);
485
+ this.removeEventListener('helix-before-edit', this.handleSourceChange);
486
+ this.watch?.disconnect();
487
+ }
488
+ render() {
489
+ const vertical = this.axis === 'vertical';
490
+ const first = this.lead === 'preview' ? 'preview' : 'source';
491
+ const second = first === 'preview' ? 'source' : 'preview';
492
+ const split = Number.isFinite(this.split) ? this.split : DEFAULT_SPLIT;
493
+ return html `<slot name="toolbar"></slot>
494
+ <helix-splitter
495
+ part="body"
496
+ ?data-panel=${this.hasPanel}
497
+ exportparts="separator, corner"
498
+ orientation="vertical"
499
+ collapsed-size=${this.panelSliver}
500
+ corner-label=${this.cornerLabel}
501
+ label=${this.panelLabel}
502
+ default-position=${this.homePanelPosition}
503
+ min=${100 - PANEL_MAX * 100}
504
+ .position=${this.panelPosition}
505
+ @helix-before-resize=${this.handlePanelChange}
506
+ >
507
+ <helix-splitter
508
+ slot="start"
509
+ part="panes"
510
+ exportparts="separator"
511
+ default-position=${Number.isFinite(this.defaultSplit) ? this.defaultSplit : DEFAULT_SPLIT}
512
+ label=${this.separatorLabel}
513
+ orientation=${vertical ? 'vertical' : 'horizontal'}
514
+ .position=${split}
515
+ @helix-before-resize=${this.handlePanesChange}
516
+ >
517
+ ${
518
+ /* The slot names swap with the panes, so each pane keeps its own
519
+ `data-pane` and the stylesheet needs to know nothing about the
520
+ order. Rendering both slots in both positions would be two
521
+ elements answering to one name, and an assignment goes to the
522
+ first. */
523
+ ''}
524
+ <div part="pane" data-pane=${first} slot="start"><slot name=${first}></slot></div>
525
+ <div part="pane" data-pane=${second} slot="end"><slot name=${second}></slot></div>
526
+ </helix-splitter>
527
+ <div part="panel" slot="end"><slot name="panel" @slotchange=${this.readPanel}></slot></div>
528
+ </helix-splitter>
529
+ <slot name="status"></slot>`;
530
+ }
531
+ static { this.styles = styles; }
532
+ };
533
+ __decorate([
534
+ property({ reflect: true })
535
+ ], HelixSandbox.prototype, "orientation", void 0);
536
+ __decorate([
537
+ property()
538
+ ], HelixSandbox.prototype, "lead", void 0);
539
+ __decorate([
540
+ property({ attribute: 'split', type: Number })
541
+ ], HelixSandbox.prototype, "split", void 0);
542
+ __decorate([
543
+ property({ attribute: 'default-split', type: Number })
544
+ ], HelixSandbox.prototype, "defaultSplit", void 0);
545
+ __decorate([
546
+ property({ attribute: 'panel-size', type: Number })
547
+ ], HelixSandbox.prototype, "panelSize", void 0);
548
+ __decorate([
549
+ property({ attribute: 'default-panel-size', type: Number })
550
+ ], HelixSandbox.prototype, "defaultPanelSize", void 0);
551
+ __decorate([
552
+ property({ attribute: 'panel-collapsed-size', type: Number })
553
+ ], HelixSandbox.prototype, "panelCollapsedSize", void 0);
554
+ __decorate([
555
+ property({ attribute: 'panel-label' })
556
+ ], HelixSandbox.prototype, "panelLabel", void 0);
557
+ __decorate([
558
+ property({ attribute: 'corner-label' })
559
+ ], HelixSandbox.prototype, "cornerLabel", void 0);
560
+ __decorate([
561
+ property({ attribute: 'separator-label' })
562
+ ], HelixSandbox.prototype, "separatorLabel", void 0);
563
+ __decorate([
564
+ state()
565
+ ], HelixSandbox.prototype, "hasPanel", void 0);
566
+ HelixSandbox = __decorate([
567
+ customElement('helix-sandbox')
568
+ ], HelixSandbox);
569
+ export { HelixSandbox };
@@ -0,0 +1 @@
1
+ export declare const styles: import("lit").CSSResult;
@@ -0,0 +1,27 @@
1
+ // Generated from src/sandbox/source/sandbox-source.css by `bun run styles`. Do not edit.
2
+ import { createSheet } from '@fusion.dev/helix-core';
3
+ export const styles = createSheet(`:host {
4
+ display: block;
5
+ block-size: 100%;
6
+ }
7
+
8
+ [part="source"] {
9
+ background-color: var(--sandbox-source-background-color, var(--helix-color-background));
10
+ block-size: 100%;
11
+ border: none;
12
+ color: var(--helix-color-foreground-muted);
13
+ display: block;
14
+ font-family: var(--helix-font-mono);
15
+ font-size: var(--helix-text-xs);
16
+ inline-size: 100%;
17
+ line-height: var(--helix-leading-normal);
18
+ min-block-size: var(--sandbox-source-min-block-size, 12rem);
19
+ padding: var(--helix-space-sm);
20
+ resize: none;
21
+ tab-size: 2;
22
+ }
23
+
24
+ [part="source"]:focus-visible {
25
+ background-color: var(--helix-color-surface);
26
+ outline: none;
27
+ }`);