mlform 0.1.8 → 0.1.9

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 (342) hide show
  1. package/README.md +7 -5
  2. package/dist/{builtins-DegwhFGA.js → builtins-ml-pjab8_gu.js} +1544 -1173
  3. package/dist/{design-system-Dxx1Sh7r.js → design-system-CIU_vH6O.js} +569 -388
  4. package/dist/{kit-CuRF6dhL.js → kit-QY6zff-h.js} +332 -291
  5. package/dist/mlform/behaviors.mjs +1 -1
  6. package/dist/mlform/builtins-ml.mjs +1 -2
  7. package/dist/mlform/design-system.mjs +2 -2
  8. package/dist/mlform/kit.mjs +2 -2
  9. package/dist/mlform/presentation.mjs +1 -1
  10. package/dist/mlform/primitives.mjs +2 -2
  11. package/dist/mlform/runtime.mjs +4 -5
  12. package/dist/mlform/schema.mjs +1 -1
  13. package/dist/mlform/transport.mjs +1 -1
  14. package/dist/mlform.mjs +8 -8
  15. package/dist/{primitives-Duag8Lj0.js → primitives-Di95y_ur.js} +589 -552
  16. package/dist/{runtime-DMjDVo0H.js → runtime-C5iTM3uu.js} +472 -457
  17. package/dist/{transport-CtVX8ZUT.js → transport-B6ePTLFK.js} +48 -50
  18. package/dist/types/{src/behaviors → behaviors}/index.d.ts +2 -2
  19. package/dist/types/builtins-ml/definitions/fields/boolean.d.ts +9 -0
  20. package/dist/types/builtins-ml/definitions/fields/category.d.ts +12 -0
  21. package/dist/types/builtins-ml/definitions/fields/date.d.ts +10 -0
  22. package/dist/types/builtins-ml/definitions/fields/long-text.d.ts +11 -0
  23. package/dist/types/{src/runtime/builtins → builtins-ml/definitions}/fields/mapped-category.d.ts +3 -2
  24. package/dist/types/{src/runtime/builtins → builtins-ml/definitions}/fields/multi-choice.d.ts +3 -2
  25. package/dist/types/builtins-ml/definitions/fields/number.d.ts +12 -0
  26. package/dist/types/builtins-ml/definitions/fields/rating.d.ts +10 -0
  27. package/dist/types/builtins-ml/definitions/fields/series-helpers.d.ts +52 -0
  28. package/dist/types/builtins-ml/definitions/fields/series.d.ts +3 -0
  29. package/dist/types/{src/runtime/builtins → builtins-ml/definitions}/fields/single-choice.d.ts +3 -2
  30. package/dist/types/builtins-ml/definitions/fields/text.d.ts +11 -0
  31. package/dist/types/{src/runtime/builtins → builtins-ml/definitions}/index.d.ts +12 -31
  32. package/dist/types/builtins-ml/definitions/reports/classifier.d.ts +9 -0
  33. package/dist/types/builtins-ml/definitions/reports/regressor.d.ts +9 -0
  34. package/dist/types/{src/runtime/builtins → builtins-ml/definitions}/shared.d.ts +23 -1
  35. package/dist/types/{src/builtins-ml → builtins-ml}/index.d.ts +2 -2
  36. package/dist/types/design-system/recipes/index.d.ts +3 -0
  37. package/dist/types/{src/design-system → design-system}/registry/builtins.d.ts +0 -3
  38. package/dist/types/{src/design-system → design-system}/registry/index.d.ts +3 -1
  39. package/dist/types/design-system/runtime/controller-helpers.d.ts +12 -0
  40. package/dist/types/design-system/themes/airbnb.d.ts +2 -0
  41. package/dist/types/design-system/themes/clickhouse.d.ts +2 -0
  42. package/dist/types/design-system/themes/index.d.ts +4 -0
  43. package/dist/types/{src/index.d.ts → index.d.ts} +13 -13
  44. package/dist/types/{src/kit → kit}/accordion-root.d.ts +2 -2
  45. package/dist/types/{src/kit → kit}/constants.d.ts +1 -1
  46. package/dist/types/{src/kit → kit}/defaults.d.ts +4 -4
  47. package/dist/types/kit/error-navigation.d.ts +2 -0
  48. package/dist/types/{src/kit → kit}/index.d.ts +1 -1
  49. package/dist/types/{src/kit → kit}/layout-helpers.d.ts +1 -1
  50. package/dist/types/{src/kit → kit}/layout-node-render.d.ts +2 -2
  51. package/dist/types/{src/kit → kit}/layout.d.ts +1 -1
  52. package/dist/types/{src/kit → kit}/mount-types.d.ts +4 -4
  53. package/dist/types/{src/kit → kit}/tabs-root.d.ts +2 -2
  54. package/dist/types/{src/kit → kit}/types.d.ts +1 -1
  55. package/dist/types/{src/kit → kit}/view-navigation.d.ts +1 -1
  56. package/dist/types/{src/kit → kit}/view-snapshot-cache.d.ts +2 -2
  57. package/dist/types/{src/kit → kit}/view-snapshot.d.ts +2 -2
  58. package/dist/types/{src/kit → kit}/view-types.d.ts +4 -4
  59. package/dist/types/{src/kit → kit}/view.d.ts +2 -2
  60. package/dist/types/{src/kit → kit}/wizard-root.d.ts +2 -2
  61. package/dist/types/{src/packs → packs}/shared.d.ts +3 -4
  62. package/dist/types/{src/presentation → presentation}/define-explanation-kind.d.ts +1 -1
  63. package/dist/types/{src/presentation → presentation}/define-field-kind.d.ts +1 -1
  64. package/dist/types/{src/presentation → presentation}/define-report-kind.d.ts +1 -1
  65. package/dist/types/presentation/register-kind.d.ts +6 -0
  66. package/dist/types/{src/presentation → presentation}/registry.d.ts +1 -1
  67. package/dist/types/{src/presentation → presentation}/types/explanation.d.ts +1 -1
  68. package/dist/types/{src/presentation → presentation}/types/field.d.ts +1 -1
  69. package/dist/types/{src/presentation → presentation}/types/report.d.ts +2 -2
  70. package/dist/types/{src/primitives → primitives}/base-explanation-element.d.ts +2 -2
  71. package/dist/types/{src/primitives → primitives}/base-field-element.d.ts +2 -2
  72. package/dist/types/{src/primitives → primitives}/base-report-element.d.ts +2 -2
  73. package/dist/types/primitives/components/error-focus.d.ts +4 -0
  74. package/dist/types/{src/primitives → primitives}/components/explanation-panel.d.ts +2 -2
  75. package/dist/types/{src/primitives → primitives}/components/field-frame-feedback.d.ts +1 -1
  76. package/dist/types/{src/primitives → primitives}/components/field-frame.d.ts +2 -2
  77. package/dist/types/{src/primitives → primitives}/components/form-errors.d.ts +1 -1
  78. package/dist/types/{src/primitives → primitives}/components/form-root-presenters.d.ts +3 -3
  79. package/dist/types/primitives/components/form-root-split-styles.d.ts +1 -0
  80. package/dist/types/{src/primitives → primitives}/components/form-root-state.d.ts +1 -1
  81. package/dist/types/{src/primitives → primitives}/components/form-root-templates.d.ts +2 -2
  82. package/dist/types/{src/primitives → primitives}/components/form-root.d.ts +2 -2
  83. package/dist/types/{src/primitives → primitives}/components/presentation.d.ts +1 -1
  84. package/dist/types/{src/primitives → primitives}/components/report-frame.d.ts +2 -2
  85. package/dist/types/{src/primitives → primitives}/components/submit-button.d.ts +1 -1
  86. package/dist/types/{src/primitives → primitives}/constants.d.ts +1 -1
  87. package/dist/types/primitives/fields/series-field-renderers.d.ts +18 -0
  88. package/dist/types/{src/primitives → primitives}/mount-form.d.ts +1 -1
  89. package/dist/types/{src/primitives → primitives}/presentation.d.ts +2 -2
  90. package/dist/types/{src/primitives → primitives}/types.d.ts +2 -2
  91. package/dist/types/runtime/create-runtime-helpers.d.ts +11 -0
  92. package/dist/types/{src/runtime → runtime}/errors.d.ts +3 -3
  93. package/dist/types/{src/runtime → runtime}/index.d.ts +0 -4
  94. package/dist/types/{src/runtime → runtime}/runtime-behaviors.d.ts +1 -1
  95. package/dist/types/runtime/submission/pending-patches.d.ts +2 -0
  96. package/dist/types/runtime/submission/stream-events.d.ts +13 -0
  97. package/dist/types/{src/runtime → runtime}/types/behavior.d.ts +1 -1
  98. package/dist/types/{src/runtime → runtime}/types/explanation.d.ts +4 -11
  99. package/dist/types/{src/runtime → runtime}/types/field.d.ts +3 -10
  100. package/dist/types/{src/runtime → runtime}/types/form.d.ts +1 -1
  101. package/dist/types/runtime/types/index.d.ts +8 -0
  102. package/dist/types/{src/runtime → runtime}/types/registry.d.ts +1 -1
  103. package/dist/types/{src/runtime → runtime}/types/report.d.ts +4 -14
  104. package/dist/types/{src/runtime → runtime}/types/transport.d.ts +2 -2
  105. package/dist/types/{src/runtime → runtime}/utils.d.ts +1 -1
  106. package/dist/types/schema/registry.d.ts +9 -0
  107. package/dist/types/{src/schema → schema}/types/report.d.ts +1 -1
  108. package/dist/types/transport/composition/fanout-options.d.ts +9 -0
  109. package/dist/types/{src/transport → transport}/errors.d.ts +1 -1
  110. package/dist/utils-J5o8lkea.js +29 -0
  111. package/package.json +7 -7
  112. package/dist/builtins-ml-9qB2MOxt.js +0 -51
  113. package/dist/types/src/design-system/recipes/index.d.ts +0 -4
  114. package/dist/types/src/design-system/themes/index.d.ts +0 -5
  115. package/dist/types/src/presentation/register-kind.d.ts +0 -6
  116. package/dist/types/src/runtime/builtins/fields/boolean.d.ts +0 -8
  117. package/dist/types/src/runtime/builtins/fields/category.d.ts +0 -11
  118. package/dist/types/src/runtime/builtins/fields/date.d.ts +0 -9
  119. package/dist/types/src/runtime/builtins/fields/long-text.d.ts +0 -10
  120. package/dist/types/src/runtime/builtins/fields/number.d.ts +0 -11
  121. package/dist/types/src/runtime/builtins/fields/rating.d.ts +0 -9
  122. package/dist/types/src/runtime/builtins/fields/series.d.ts +0 -20
  123. package/dist/types/src/runtime/builtins/fields/text.d.ts +0 -10
  124. package/dist/types/src/runtime/builtins/reports/classifier.d.ts +0 -8
  125. package/dist/types/src/runtime/builtins/reports/regressor.d.ts +0 -8
  126. package/dist/types/src/runtime/declarative/explanation.d.ts +0 -2
  127. package/dist/types/src/runtime/declarative/field.d.ts +0 -2
  128. package/dist/types/src/runtime/declarative/presentation.d.ts +0 -61
  129. package/dist/types/src/runtime/declarative/report.d.ts +0 -2
  130. package/dist/types/src/runtime/registry/index.d.ts +0 -5
  131. package/dist/types/src/runtime/types/index.d.ts +0 -9
  132. package/dist/types/src/schema/registry.d.ts +0 -9
  133. /package/dist/{errors-B3H1wRwj.js → errors-CTNw8fwS.js} +0 -0
  134. /package/dist/{presentation-CkQuYheR.js → presentation-BrlVO4oV.js} +0 -0
  135. /package/dist/types/{src/design-system → design-system}/constants.d.ts +0 -0
  136. /package/dist/types/{src/design-system → design-system}/contract/component-keys.d.ts +0 -0
  137. /package/dist/types/{src/design-system → design-system}/contract/component-tokens.d.ts +0 -0
  138. /package/dist/types/{src/design-system → design-system}/contract/global-tokens.d.ts +0 -0
  139. /package/dist/types/{src/design-system → design-system}/contract/index.d.ts +0 -0
  140. /package/dist/types/{src/design-system → design-system}/contract/token-keys.d.ts +0 -0
  141. /package/dist/types/{src/design-system → design-system}/index.d.ts +0 -0
  142. /package/dist/types/{src/design-system → design-system}/recipes/contrast.d.ts +0 -0
  143. /package/dist/types/{src/design-system → design-system}/recipes/default.d.ts +0 -0
  144. /package/dist/types/{src/design-system → design-system}/recipes/minimal.d.ts +0 -0
  145. /package/dist/types/{src/design-system → design-system}/recipes/soft.d.ts +0 -0
  146. /package/dist/types/{src/design-system → design-system}/registry/create-registry.d.ts +0 -0
  147. /package/dist/types/{src/design-system → design-system}/registry/deep-freeze.d.ts +0 -0
  148. /package/dist/types/{src/design-system → design-system}/registry/define-recipe.d.ts +0 -0
  149. /package/dist/types/{src/design-system → design-system}/registry/define-theme.d.ts +0 -0
  150. /package/dist/types/{src/design-system → design-system}/registry/define-token-maps.d.ts +0 -0
  151. /package/dist/types/{src/design-system → design-system}/resolve/diagnostics.d.ts +0 -0
  152. /package/dist/types/{src/design-system → design-system}/resolve/index.d.ts +0 -0
  153. /package/dist/types/{src/design-system → design-system}/resolve/merge-config.d.ts +0 -0
  154. /package/dist/types/{src/design-system → design-system}/resolve/migrate-tokens.d.ts +0 -0
  155. /package/dist/types/{src/design-system → design-system}/resolve/resolve-mode.d.ts +0 -0
  156. /package/dist/types/{src/design-system → design-system}/resolve/resolve-recipe.d.ts +0 -0
  157. /package/dist/types/{src/design-system → design-system}/resolve/resolve-theme.d.ts +0 -0
  158. /package/dist/types/{src/design-system → design-system}/resolve/resolve-tokens.d.ts +0 -0
  159. /package/dist/types/{src/design-system → design-system}/runtime/apply-tokens.d.ts +0 -0
  160. /package/dist/types/{src/design-system → design-system}/runtime/attach-design-system.d.ts +0 -0
  161. /package/dist/types/{src/design-system → design-system}/runtime/create-stylesheet.d.ts +0 -0
  162. /package/dist/types/{src/design-system → design-system}/runtime/declarations.d.ts +0 -0
  163. /package/dist/types/{src/design-system → design-system}/runtime/design-system-controller.d.ts +0 -0
  164. /package/dist/types/{src/design-system → design-system}/runtime/fingerprint.d.ts +0 -0
  165. /package/dist/types/{src/design-system → design-system}/runtime/host-observer.d.ts +0 -0
  166. /package/dist/types/{src/design-system → design-system}/runtime/host-state.d.ts +0 -0
  167. /package/dist/types/{src/design-system → design-system}/runtime/hydrate-design-system.d.ts +0 -0
  168. /package/dist/types/{src/design-system → design-system}/runtime/hydration-state.d.ts +0 -0
  169. /package/dist/types/{src/design-system → design-system}/runtime/index.d.ts +0 -0
  170. /package/dist/types/{src/design-system → design-system}/runtime/inherited-scheme.d.ts +0 -0
  171. /package/dist/types/{src/design-system → design-system}/runtime/media.d.ts +0 -0
  172. /package/dist/types/{src/design-system → design-system}/themes/cobalt.d.ts +0 -0
  173. /package/dist/types/{src/design-system → design-system}/themes/graphite.d.ts +0 -0
  174. /package/dist/types/{src/design-system → design-system}/themes/neutral.d.ts +0 -0
  175. /package/dist/types/{src/design-system → design-system}/themes/sage.d.ts +0 -0
  176. /package/dist/types/{src/design-system → design-system}/themes/sunset.d.ts +0 -0
  177. /package/dist/types/{src/design-system → design-system}/tokens/base.d.ts +0 -0
  178. /package/dist/types/{src/design-system → design-system}/tokens/contrast.d.ts +0 -0
  179. /package/dist/types/{src/design-system → design-system}/tokens/density.d.ts +0 -0
  180. /package/dist/types/{src/design-system → design-system}/tokens/forced-colors.d.ts +0 -0
  181. /package/dist/types/{src/design-system → design-system}/tokens/index.d.ts +0 -0
  182. /package/dist/types/{src/design-system → design-system}/tokens/motion.d.ts +0 -0
  183. /package/dist/types/{src/design-system → design-system}/types.d.ts +0 -0
  184. /package/dist/types/{src/kit → kit}/accordion-root-styles.d.ts +0 -0
  185. /package/dist/types/{src/kit → kit}/accordion.d.ts +0 -0
  186. /package/dist/types/{src/kit → kit}/layout-node-resolver.d.ts +0 -0
  187. /package/dist/types/{src/kit → kit}/layout-types.d.ts +0 -0
  188. /package/dist/types/{src/kit → kit}/layout-utils.d.ts +0 -0
  189. /package/dist/types/{src/kit → kit}/mount-form.d.ts +0 -0
  190. /package/dist/types/{src/kit → kit}/panel-nav.d.ts +0 -0
  191. /package/dist/types/{src/kit → kit}/step-indicator.d.ts +0 -0
  192. /package/dist/types/{src/kit → kit}/tabs-root-styles.d.ts +0 -0
  193. /package/dist/types/{src/kit → kit}/tabs.d.ts +0 -0
  194. /package/dist/types/{src/kit → kit}/view-layout-state.d.ts +0 -0
  195. /package/dist/types/{src/kit → kit}/wizard-constants.d.ts +0 -0
  196. /package/dist/types/{src/kit → kit}/wizard-root-styles.d.ts +0 -0
  197. /package/dist/types/{src/kit → kit}/wizard.d.ts +0 -0
  198. /package/dist/types/{src/packs → packs}/default.d.ts +0 -0
  199. /package/dist/types/{src/packs → packs}/index.d.ts +0 -0
  200. /package/dist/types/{src/packs → packs}/ml.d.ts +0 -0
  201. /package/dist/types/{src/presentation → presentation}/index.d.ts +0 -0
  202. /package/dist/types/{src/presentation → presentation}/types/presentation.d.ts +0 -0
  203. /package/dist/types/{src/primitives → primitives}/base-async-report-element.d.ts +0 -0
  204. /package/dist/types/{src/primitives → primitives}/components/declarative-explanation.d.ts +0 -0
  205. /package/dist/types/{src/primitives → primitives}/components/declarative-field.d.ts +0 -0
  206. /package/dist/types/{src/primitives → primitives}/components/declarative-report.d.ts +0 -0
  207. /package/dist/types/{src/primitives → primitives}/components/field-frame-styles.d.ts +0 -0
  208. /package/dist/types/{src/primitives → primitives}/components/form-root-styles.d.ts +0 -0
  209. /package/dist/types/{src/primitives → primitives}/components/unsupported-component.d.ts +0 -0
  210. /package/dist/types/{src/primitives → primitives}/controller-binding.d.ts +0 -0
  211. /package/dist/types/{src/primitives → primitives}/fields/boolean-field.d.ts +0 -0
  212. /package/dist/types/{src/primitives → primitives}/fields/category-field.d.ts +0 -0
  213. /package/dist/types/{src/primitives → primitives}/fields/date-field.d.ts +0 -0
  214. /package/dist/types/{src/primitives → primitives}/fields/long-text-field.d.ts +0 -0
  215. /package/dist/types/{src/primitives → primitives}/fields/multi-choice-field.d.ts +0 -0
  216. /package/dist/types/{src/primitives → primitives}/fields/number-field.d.ts +0 -0
  217. /package/dist/types/{src/primitives → primitives}/fields/rating-field.d.ts +0 -0
  218. /package/dist/types/{src/primitives → primitives}/fields/series-field-helpers.d.ts +0 -0
  219. /package/dist/types/{src/primitives → primitives}/fields/series-field-styles.d.ts +0 -0
  220. /package/dist/types/{src/primitives → primitives}/fields/series-field.d.ts +0 -0
  221. /package/dist/types/{src/primitives → primitives}/fields/single-choice-field.d.ts +0 -0
  222. /package/dist/types/{src/primitives → primitives}/fields/text-field.d.ts +0 -0
  223. /package/dist/types/{src/primitives → primitives}/index.d.ts +0 -0
  224. /package/dist/types/{src/primitives → primitives}/register.d.ts +0 -0
  225. /package/dist/types/{src/primitives → primitives}/registry.d.ts +0 -0
  226. /package/dist/types/{src/primitives → primitives}/reports/classifier-report.d.ts +0 -0
  227. /package/dist/types/{src/primitives → primitives}/reports/regressor-report.d.ts +0 -0
  228. /package/dist/types/{src/primitives → primitives}/utils.d.ts +0 -0
  229. /package/dist/types/{src/runtime → runtime}/comparison.d.ts +0 -0
  230. /package/dist/types/{src/runtime → runtime}/constants.d.ts +0 -0
  231. /package/dist/types/{src/runtime → runtime}/create-runtime.d.ts +0 -0
  232. /package/dist/types/{src/runtime → runtime}/equality.d.ts +0 -0
  233. /package/dist/types/{src/runtime → runtime}/explanations/controller.d.ts +0 -0
  234. /package/dist/types/{src/runtime → runtime}/explanations/index.d.ts +0 -0
  235. /package/dist/types/{src/runtime → runtime}/fields/controller.d.ts +0 -0
  236. /package/dist/types/{src/runtime → runtime}/fields/index.d.ts +0 -0
  237. /package/dist/types/{src/runtime → runtime}/fields/state-calculations.d.ts +0 -0
  238. /package/dist/types/{src/runtime → runtime}/fields/state.d.ts +0 -0
  239. /package/dist/types/{src/runtime → runtime}/form.d.ts +0 -0
  240. /package/dist/types/{src/runtime → runtime}/paths.d.ts +0 -0
  241. /package/dist/types/{src/runtime → runtime}/reports/controller.d.ts +0 -0
  242. /package/dist/types/{src/runtime → runtime}/reports/index.d.ts +0 -0
  243. /package/dist/types/{src/runtime → runtime}/runtime-controller.d.ts +0 -0
  244. /package/dist/types/{src/runtime → runtime}/runtime-refresh.d.ts +0 -0
  245. /package/dist/types/{src/runtime → runtime}/runtime-values.d.ts +0 -0
  246. /package/dist/types/{src/runtime → runtime}/schema/index.d.ts +0 -0
  247. /package/dist/types/{src/runtime → runtime}/state/engine.d.ts +0 -0
  248. /package/dist/types/{src/runtime → runtime}/state/index.d.ts +0 -0
  249. /package/dist/types/{src/runtime → runtime}/state/snapshots.d.ts +0 -0
  250. /package/dist/types/{src/runtime → runtime}/state/store.d.ts +0 -0
  251. /package/dist/types/{src/runtime → runtime}/submission/abort.d.ts +0 -0
  252. /package/dist/types/{src/runtime → runtime}/submission/create-submitter.d.ts +0 -0
  253. /package/dist/types/{src/runtime → runtime}/submission/error-flow.d.ts +0 -0
  254. /package/dist/types/{src/runtime → runtime}/submission/explanations.d.ts +0 -0
  255. /package/dist/types/{src/runtime → runtime}/submission/field-updates.d.ts +0 -0
  256. /package/dist/types/{src/runtime → runtime}/submission/index.d.ts +0 -0
  257. /package/dist/types/{src/runtime → runtime}/submission/lifecycle.d.ts +0 -0
  258. /package/dist/types/{src/runtime → runtime}/submission/pipeline.d.ts +0 -0
  259. /package/dist/types/{src/runtime → runtime}/submission/report-updates.d.ts +0 -0
  260. /package/dist/types/{src/runtime → runtime}/submission/reports.d.ts +0 -0
  261. /package/dist/types/{src/runtime → runtime}/submission/request.d.ts +0 -0
  262. /package/dist/types/{src/runtime → runtime}/submission/result.d.ts +0 -0
  263. /package/dist/types/{src/runtime → runtime}/submission/stream-progress.d.ts +0 -0
  264. /package/dist/types/{src/runtime → runtime}/submission/submitter.d.ts +0 -0
  265. /package/dist/types/{src/runtime → runtime}/submission/types.d.ts +0 -0
  266. /package/dist/types/{src/runtime → runtime}/types/pipeline.d.ts +0 -0
  267. /package/dist/types/{src/runtime → runtime}/validation/conditions.d.ts +0 -0
  268. /package/dist/types/{src/runtime → runtime}/validation/field-state.d.ts +0 -0
  269. /package/dist/types/{src/runtime → runtime}/validation/field-validator.d.ts +0 -0
  270. /package/dist/types/{src/runtime → runtime}/validation/field.d.ts +0 -0
  271. /package/dist/types/{src/runtime → runtime}/validation/form.d.ts +0 -0
  272. /package/dist/types/{src/runtime → runtime}/validation/index.d.ts +0 -0
  273. /package/dist/types/{src/runtime → runtime}/values.d.ts +0 -0
  274. /package/dist/types/{src/schema → schema}/index.d.ts +0 -0
  275. /package/dist/types/{src/schema → schema}/normalize.d.ts +0 -0
  276. /package/dist/types/{src/schema → schema}/types/explanation.d.ts +0 -0
  277. /package/dist/types/{src/schema → schema}/types/field.d.ts +0 -0
  278. /package/dist/types/{src/schema → schema}/types/form.d.ts +0 -0
  279. /package/dist/types/{src/schema → schema}/types/registry.d.ts +0 -0
  280. /package/dist/types/{src/shared → shared}/errors.d.ts +0 -0
  281. /package/dist/types/{src/shared → shared}/index.d.ts +0 -0
  282. /package/dist/types/{src/shared → shared}/object.d.ts +0 -0
  283. /package/dist/types/{src/shared → shared}/strings.d.ts +0 -0
  284. /package/dist/types/{src/transport → transport}/capabilities.d.ts +0 -0
  285. /package/dist/types/{src/transport → transport}/clone.d.ts +0 -0
  286. /package/dist/types/{src/transport → transport}/composition/fallback.d.ts +0 -0
  287. /package/dist/types/{src/transport → transport}/composition/fanout-helpers.d.ts +0 -0
  288. /package/dist/types/{src/transport → transport}/composition/fanout.d.ts +0 -0
  289. /package/dist/types/{src/transport → transport}/composition/hedged.d.ts +0 -0
  290. /package/dist/types/{src/transport → transport}/composition/index.d.ts +0 -0
  291. /package/dist/types/{src/transport → transport}/composition/load-balancing.d.ts +0 -0
  292. /package/dist/types/{src/transport → transport}/composition/pipeline.d.ts +0 -0
  293. /package/dist/types/{src/transport → transport}/composition/quorum-fanout.d.ts +0 -0
  294. /package/dist/types/{src/transport → transport}/composition/racing.d.ts +0 -0
  295. /package/dist/types/{src/transport → transport}/composition/routing.d.ts +0 -0
  296. /package/dist/types/{src/transport → transport}/constants.d.ts +0 -0
  297. /package/dist/types/{src/transport → transport}/index.d.ts +0 -0
  298. /package/dist/types/{src/transport → transport}/internal-core.d.ts +0 -0
  299. /package/dist/types/{src/transport → transport}/internal-errors.d.ts +0 -0
  300. /package/dist/types/{src/transport → transport}/internal-request.d.ts +0 -0
  301. /package/dist/types/{src/transport → transport}/internal-routing.d.ts +0 -0
  302. /package/dist/types/{src/transport → transport}/internal-sse.d.ts +0 -0
  303. /package/dist/types/{src/transport → transport}/internal-stream.d.ts +0 -0
  304. /package/dist/types/{src/transport → transport}/internal.d.ts +0 -0
  305. /package/dist/types/{src/transport → transport}/middleware/auth.d.ts +0 -0
  306. /package/dist/types/{src/transport → transport}/middleware/cache.d.ts +0 -0
  307. /package/dist/types/{src/transport → transport}/middleware/circuit-breaker.d.ts +0 -0
  308. /package/dist/types/{src/transport → transport}/middleware/dedup.d.ts +0 -0
  309. /package/dist/types/{src/transport → transport}/middleware/index.d.ts +0 -0
  310. /package/dist/types/{src/transport → transport}/middleware/logging.d.ts +0 -0
  311. /package/dist/types/{src/transport → transport}/middleware/metrics.d.ts +0 -0
  312. /package/dist/types/{src/transport → transport}/middleware/pipe.d.ts +0 -0
  313. /package/dist/types/{src/transport → transport}/middleware/rate-limit.d.ts +0 -0
  314. /package/dist/types/{src/transport → transport}/middleware/retry.d.ts +0 -0
  315. /package/dist/types/{src/transport → transport}/middleware/timeout.d.ts +0 -0
  316. /package/dist/types/{src/transport → transport}/middleware/tracing.d.ts +0 -0
  317. /package/dist/types/{src/transport → transport}/middleware/transform.d.ts +0 -0
  318. /package/dist/types/{src/transport → transport}/policy-context.d.ts +0 -0
  319. /package/dist/types/{src/transport → transport}/protocols/graphql.d.ts +0 -0
  320. /package/dist/types/{src/transport → transport}/protocols/grpc.d.ts +0 -0
  321. /package/dist/types/{src/transport → transport}/protocols/index.d.ts +0 -0
  322. /package/dist/types/{src/transport → transport}/protocols/json.d.ts +0 -0
  323. /package/dist/types/{src/transport → transport}/protocols/sse.d.ts +0 -0
  324. /package/dist/types/{src/transport → transport}/protocols/websocket.d.ts +0 -0
  325. /package/dist/types/{src/transport → transport}/runtime.d.ts +0 -0
  326. /package/dist/types/{src/transport → transport}/state/cache-store.d.ts +0 -0
  327. /package/dist/types/{src/transport → transport}/state/circuit-breaker.d.ts +0 -0
  328. /package/dist/types/{src/transport → transport}/state/health.d.ts +0 -0
  329. /package/dist/types/{src/transport → transport}/state/index.d.ts +0 -0
  330. /package/dist/types/{src/transport → transport}/state/rate-limiter.d.ts +0 -0
  331. /package/dist/types/{src/transport → transport}/state/session.d.ts +0 -0
  332. /package/dist/types/{src/transport → transport}/types/capabilities.d.ts +0 -0
  333. /package/dist/types/{src/transport → transport}/types/core.d.ts +0 -0
  334. /package/dist/types/{src/transport → transport}/types/events.d.ts +0 -0
  335. /package/dist/types/{src/transport → transport}/types/index.d.ts +0 -0
  336. /package/dist/types/{src/transport → transport}/types/middleware.d.ts +0 -0
  337. /package/dist/types/{src/transport → transport}/types/options-http.d.ts +0 -0
  338. /package/dist/types/{src/transport → transport}/types/options-middleware.d.ts +0 -0
  339. /package/dist/types/{src/transport → transport}/types/options-routing.d.ts +0 -0
  340. /package/dist/types/{src/transport → transport}/types/options.d.ts +0 -0
  341. /package/dist/types/{src/transport → transport}/types/session.d.ts +0 -0
  342. /package/dist/types/{src/transport → transport}/types/state.d.ts +0 -0
@@ -187,44 +187,206 @@ var e = [
187
187
  density: "comfortable",
188
188
  motion: "subtle",
189
189
  tokens: { "--mlf-shell-bg": "transparent" }
190
- }, s = {
191
- id: "minimal",
192
- label: "Minimal",
193
- density: "compact",
194
- motion: "none",
195
- tokens: {
196
- "--mlf-shadow-md": "none",
197
- "--mlf-shadow-lg": "none"
190
+ }, s = [
191
+ o,
192
+ {
193
+ id: "minimal",
194
+ label: "Minimal",
195
+ density: "compact",
196
+ motion: "none",
197
+ tokens: {
198
+ "--mlf-shadow-md": "none",
199
+ "--mlf-shadow-lg": "none"
200
+ },
201
+ components: {
202
+ hero: { tokens: {
203
+ "--mlf-hero-bg": "var(--mlf-color-surface)",
204
+ "--mlf-hero-shadow": "none"
205
+ } },
206
+ field: { tokens: {
207
+ "--mlf-field-bg": "var(--mlf-color-surface)",
208
+ "--mlf-field-shadow": "none"
209
+ } },
210
+ report: { tokens: {
211
+ "--mlf-report-bg": "var(--mlf-color-surface)",
212
+ "--mlf-report-shadow": "none"
213
+ } },
214
+ submit: { tokens: {
215
+ "--mlf-submit-shadow": "none",
216
+ "--mlf-submit-shadow-hover": "none"
217
+ } }
218
+ }
198
219
  },
199
- components: {
200
- hero: { tokens: {
201
- "--mlf-hero-bg": "var(--mlf-color-surface)",
202
- "--mlf-hero-shadow": "none"
203
- } },
204
- field: { tokens: {
205
- "--mlf-field-bg": "var(--mlf-color-surface)",
206
- "--mlf-field-shadow": "none"
207
- } },
208
- report: { tokens: {
209
- "--mlf-report-bg": "var(--mlf-color-surface)",
210
- "--mlf-report-shadow": "none"
211
- } },
212
- submit: { tokens: {
213
- "--mlf-submit-shadow": "none",
214
- "--mlf-submit-shadow-hover": "none"
215
- } }
216
- }
217
- }, c = {
218
- id: "soft",
219
- label: "Soft",
220
- density: "comfortable",
221
- motion: "subtle",
222
- components: {
223
- hero: { tokens: { "--mlf-hero-bg": "radial-gradient(circle at top left, color-mix(in srgb, var(--mlf-color-accent) 10%, transparent), transparent 42%), linear-gradient(180deg, color-mix(in srgb, var(--mlf-color-surface) 92%, var(--mlf-color-surface-elevated)), color-mix(in srgb, var(--mlf-color-surface-muted) 88%, var(--mlf-color-surface-elevated)))" } },
224
- field: { tokens: { "--mlf-field-bg": "linear-gradient(180deg, color-mix(in srgb, var(--mlf-color-surface) 96%, var(--mlf-color-surface-elevated)), color-mix(in srgb, var(--mlf-color-surface-muted) 94%, var(--mlf-color-surface-elevated)))" } },
225
- report: { tokens: { "--mlf-report-bg": "linear-gradient(180deg, color-mix(in srgb, var(--mlf-color-surface) 95%, var(--mlf-color-surface-elevated)), color-mix(in srgb, var(--mlf-color-surface-muted) 92%, var(--mlf-color-surface-elevated)))" } }
220
+ {
221
+ id: "soft",
222
+ label: "Soft",
223
+ density: "comfortable",
224
+ motion: "subtle",
225
+ components: {
226
+ hero: { tokens: { "--mlf-hero-bg": "radial-gradient(circle at top left, color-mix(in srgb, var(--mlf-color-accent) 10%, transparent), transparent 42%), linear-gradient(180deg, color-mix(in srgb, var(--mlf-color-surface) 92%, var(--mlf-color-surface-elevated)), color-mix(in srgb, var(--mlf-color-surface-muted) 88%, var(--mlf-color-surface-elevated)))" } },
227
+ field: { tokens: { "--mlf-field-bg": "linear-gradient(180deg, color-mix(in srgb, var(--mlf-color-surface) 96%, var(--mlf-color-surface-elevated)), color-mix(in srgb, var(--mlf-color-surface-muted) 94%, var(--mlf-color-surface-elevated)))" } },
228
+ report: { tokens: { "--mlf-report-bg": "linear-gradient(180deg, color-mix(in srgb, var(--mlf-color-surface) 95%, var(--mlf-color-surface-elevated)), color-mix(in srgb, var(--mlf-color-surface-muted) 92%, var(--mlf-color-surface-elevated)))" } }
229
+ }
230
+ },
231
+ a
232
+ ], c = {
233
+ id: "airbnb",
234
+ label: "Airbnb",
235
+ schemes: {
236
+ light: {
237
+ colorScheme: "light",
238
+ tokens: {
239
+ "--mlf-font-family": "\"Airbnb Cereal VF\", Circular, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
240
+ "--mlf-shadow-sm": "rgba(0, 0, 0, 0.02) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 6px, rgba(0, 0, 0, 0.10) 0px 4px 8px",
241
+ "--mlf-shadow-md": "rgba(0, 0, 0, 0.08) 0px 4px 12px",
242
+ "--mlf-shadow-lg": "rgba(0, 0, 0, 0.10) 0px 8px 24px, rgba(0, 0, 0, 0.06) 0px 2px 8px",
243
+ "--mlf-radius-sm": "8px",
244
+ "--mlf-radius-md": "14px",
245
+ "--mlf-radius-lg": "20px",
246
+ "--mlf-radius-xl": "32px",
247
+ "--mlf-radius-full": "9999px",
248
+ "--mlf-color-bg": "#ffffff",
249
+ "--mlf-color-surface": "#ffffff",
250
+ "--mlf-color-surface-muted": "#f7f7f7",
251
+ "--mlf-color-surface-elevated": "#ffffff",
252
+ "--mlf-color-text": "#222222",
253
+ "--mlf-color-text-muted": "#6a6a6a",
254
+ "--mlf-color-border": "#dddddd",
255
+ "--mlf-color-border-strong": "#c1c1c1",
256
+ "--mlf-color-accent": "#ff385c",
257
+ "--mlf-color-accent-hover": "#e00b41",
258
+ "--mlf-color-accent-soft": "rgba(255, 56, 92, 0.12)",
259
+ "--mlf-color-success": "#008a05",
260
+ "--mlf-color-warning": "#b26a00",
261
+ "--mlf-color-danger": "#c13515",
262
+ "--mlf-color-danger-soft": "rgba(193, 53, 21, 0.12)",
263
+ "--mlf-color-focus-ring": "rgba(34, 34, 34, 0.24)",
264
+ "--mlf-color-overlay": "rgba(255, 255, 255, 0.82)",
265
+ "--mlf-color-hover-surface": "#f2f2f2",
266
+ "--mlf-color-chart-track": "rgba(34, 34, 34, 0.12)",
267
+ "--mlf-color-premium-luxe": "#460479",
268
+ "--mlf-color-premium-plus": "#92174d",
269
+ "--mlf-color-legal": "#428bff"
270
+ }
271
+ },
272
+ dark: {
273
+ colorScheme: "dark",
274
+ tokens: {
275
+ "--mlf-font-family": "\"Airbnb Cereal VF\", Circular, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
276
+ "--mlf-shadow-sm": "rgba(0, 0, 0, 0.36) 0px 0px 0px 1px, rgba(0, 0, 0, 0.32) 0px 2px 6px, rgba(0, 0, 0, 0.42) 0px 4px 8px",
277
+ "--mlf-shadow-md": "rgba(0, 0, 0, 0.38) 0px 6px 18px",
278
+ "--mlf-shadow-lg": "rgba(0, 0, 0, 0.44) 0px 16px 42px, rgba(0, 0, 0, 0.30) 0px 4px 14px",
279
+ "--mlf-radius-sm": "8px",
280
+ "--mlf-radius-md": "14px",
281
+ "--mlf-radius-lg": "20px",
282
+ "--mlf-radius-xl": "32px",
283
+ "--mlf-radius-full": "9999px",
284
+ "--mlf-color-bg": "#121212",
285
+ "--mlf-color-surface": "#1c1c1c",
286
+ "--mlf-color-surface-muted": "#262626",
287
+ "--mlf-color-surface-elevated": "#2b2b2b",
288
+ "--mlf-color-text": "#f7f7f7",
289
+ "--mlf-color-text-muted": "#b0b0b0",
290
+ "--mlf-color-border": "#3a3a3a",
291
+ "--mlf-color-border-strong": "#505050",
292
+ "--mlf-color-accent": "#ff385c",
293
+ "--mlf-color-accent-hover": "#ff5a75",
294
+ "--mlf-color-accent-soft": "rgba(255, 56, 92, 0.18)",
295
+ "--mlf-color-success": "#2fbd59",
296
+ "--mlf-color-warning": "#ffb340",
297
+ "--mlf-color-danger": "#ff6b5f",
298
+ "--mlf-color-danger-soft": "rgba(255, 107, 95, 0.16)",
299
+ "--mlf-color-focus-ring": "rgba(255, 56, 92, 0.34)",
300
+ "--mlf-color-overlay": "rgba(18, 18, 18, 0.84)",
301
+ "--mlf-color-hover-surface": "#333333",
302
+ "--mlf-color-chart-track": "rgba(247, 247, 247, 0.14)",
303
+ "--mlf-color-premium-luxe": "#b26bff",
304
+ "--mlf-color-premium-plus": "#ff6bb0",
305
+ "--mlf-color-legal": "#7aa7ff"
306
+ }
307
+ }
226
308
  }
227
309
  }, l = {
310
+ id: "clickhouse",
311
+ label: "ClickHouse",
312
+ schemes: {
313
+ light: {
314
+ colorScheme: "light",
315
+ tokens: {
316
+ "--mlf-font-family": "Inter, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif",
317
+ "--mlf-font-family-mono": "\"JetBrains Mono\", \"SFMono-Regular\", Consolas, \"Liberation Mono\", monospace",
318
+ "--mlf-shadow-sm": "none",
319
+ "--mlf-shadow-md": "none",
320
+ "--mlf-shadow-lg": "none",
321
+ "--mlf-radius-sm": "6px",
322
+ "--mlf-radius-md": "8px",
323
+ "--mlf-radius-lg": "12px",
324
+ "--mlf-radius-xl": "12px",
325
+ "--mlf-radius-full": "9999px",
326
+ "--mlf-color-bg": "#f7f7f2",
327
+ "--mlf-color-surface": "#ffffff",
328
+ "--mlf-color-surface-muted": "#eeeeea",
329
+ "--mlf-color-surface-elevated": "#f4f4ef",
330
+ "--mlf-color-text": "#0a0a0a",
331
+ "--mlf-color-text-muted": "#5a5a5a",
332
+ "--mlf-color-border": "#d8d8cf",
333
+ "--mlf-color-border-strong": "#bdbdaf",
334
+ "--mlf-color-accent": "#e6eb52",
335
+ "--mlf-color-accent-hover": "#d6dc3f",
336
+ "--mlf-color-accent-soft": "rgba(230, 235, 82, 0.28)",
337
+ "--mlf-color-success": "#16803a",
338
+ "--mlf-color-warning": "#9a7b00",
339
+ "--mlf-color-danger": "#c73939",
340
+ "--mlf-color-danger-soft": "rgba(199, 57, 57, 0.12)",
341
+ "--mlf-color-focus-ring": "rgba(230, 235, 82, 0.42)",
342
+ "--mlf-color-overlay": "rgba(247, 247, 242, 0.84)",
343
+ "--mlf-color-hover-surface": "#eeeeea",
344
+ "--mlf-color-chart-track": "rgba(10, 10, 10, 0.12)",
345
+ "--mlf-color-code-bg": "#1a1a1a",
346
+ "--mlf-color-code-text": "#e6e6e6",
347
+ "--mlf-color-info": "#3b82f6"
348
+ }
349
+ },
350
+ dark: {
351
+ colorScheme: "dark",
352
+ tokens: {
353
+ "--mlf-font-family": "Inter, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif",
354
+ "--mlf-font-family-mono": "\"JetBrains Mono\", \"SFMono-Regular\", Consolas, \"Liberation Mono\", monospace",
355
+ "--mlf-shadow-sm": "none",
356
+ "--mlf-shadow-md": "none",
357
+ "--mlf-shadow-lg": "none",
358
+ "--mlf-radius-sm": "6px",
359
+ "--mlf-radius-md": "8px",
360
+ "--mlf-radius-lg": "12px",
361
+ "--mlf-radius-xl": "12px",
362
+ "--mlf-radius-full": "9999px",
363
+ "--mlf-color-bg": "#0a0a0a",
364
+ "--mlf-color-surface": "#121212",
365
+ "--mlf-color-surface-muted": "#1a1a1a",
366
+ "--mlf-color-surface-elevated": "#242424",
367
+ "--mlf-color-text": "#ffffff",
368
+ "--mlf-color-text-muted": "#cccccc",
369
+ "--mlf-color-border": "#2a2a2a",
370
+ "--mlf-color-border-strong": "#3a3a3a",
371
+ "--mlf-color-accent": "#faff69",
372
+ "--mlf-color-accent-hover": "#e6eb52",
373
+ "--mlf-color-accent-soft": "rgba(250, 255, 105, 0.16)",
374
+ "--mlf-color-success": "#22c55e",
375
+ "--mlf-color-warning": "#facc15",
376
+ "--mlf-color-danger": "#ef4444",
377
+ "--mlf-color-danger-soft": "rgba(239, 68, 68, 0.16)",
378
+ "--mlf-color-focus-ring": "rgba(250, 255, 105, 0.42)",
379
+ "--mlf-color-overlay": "rgba(10, 10, 10, 0.86)",
380
+ "--mlf-color-hover-surface": "#242424",
381
+ "--mlf-color-chart-track": "rgba(255, 255, 255, 0.14)",
382
+ "--mlf-color-code-bg": "#1a1a1a",
383
+ "--mlf-color-code-text": "#e6e6e6",
384
+ "--mlf-color-code-muted": "#888888",
385
+ "--mlf-color-info": "#3b82f6"
386
+ }
387
+ }
388
+ }
389
+ }, u = {
228
390
  id: "cobalt",
229
391
  label: "Cobalt",
230
392
  schemes: {
@@ -280,7 +442,7 @@ var e = [
280
442
  }
281
443
  }
282
444
  }
283
- }, u = {
445
+ }, d = {
284
446
  id: "graphite",
285
447
  label: "Graphite",
286
448
  schemes: {
@@ -336,7 +498,7 @@ var e = [
336
498
  }
337
499
  }
338
500
  }
339
- }, d = {
501
+ }, f = {
340
502
  id: "neutral",
341
503
  label: "Neutral",
342
504
  schemes: {
@@ -372,119 +534,127 @@ var e = [
372
534
  }
373
535
  }
374
536
  }
375
- }, f = {
376
- id: "sage",
377
- label: "Sage",
378
- schemes: {
379
- light: {
380
- colorScheme: "light",
381
- tokens: {
382
- "--mlf-color-bg": "#f2f6f1",
383
- "--mlf-color-surface": "#fbfdfb",
384
- "--mlf-color-surface-muted": "#e8efe6",
385
- "--mlf-color-surface-elevated": "#ffffff",
386
- "--mlf-color-text": "#203126",
387
- "--mlf-color-text-muted": "#5e7264",
388
- "--mlf-color-border": "#cfdbcf",
389
- "--mlf-color-border-strong": "#bbccbc",
390
- "--mlf-color-accent": "#2f7d57",
391
- "--mlf-color-accent-hover": "#256847",
392
- "--mlf-color-accent-soft": "rgba(47, 125, 87, 0.12)",
393
- "--mlf-color-success": "#2d8a57",
394
- "--mlf-color-warning": "#bd7d29",
395
- "--mlf-color-danger": "#b94a48",
396
- "--mlf-color-danger-soft": "rgba(185, 74, 72, 0.12)",
397
- "--mlf-color-focus-ring": "rgba(47, 125, 87, 0.24)",
398
- "--mlf-color-overlay": "rgba(251, 253, 251, 0.78)",
399
- "--mlf-color-hover-surface": "#dde9db",
400
- "--mlf-color-chart-track": "rgba(32, 49, 38, 0.12)"
401
- }
402
- },
403
- dark: {
404
- colorScheme: "dark",
405
- tokens: {
406
- "--mlf-shadow-sm": "0 1px 3px rgba(0, 0, 0, 0.45)",
407
- "--mlf-shadow-md": "0 14px 30px rgba(0, 0, 0, 0.35)",
408
- "--mlf-shadow-lg": "0 24px 60px rgba(0, 0, 0, 0.28)",
409
- "--mlf-color-bg": "#121a15",
410
- "--mlf-color-surface": "#182119",
411
- "--mlf-color-surface-muted": "#203024",
412
- "--mlf-color-surface-elevated": "#24372a",
413
- "--mlf-color-text": "#edf5ef",
414
- "--mlf-color-text-muted": "#a8b9aa",
415
- "--mlf-color-border": "#304234",
416
- "--mlf-color-border-strong": "#3f5544",
417
- "--mlf-color-accent": "#59b07d",
418
- "--mlf-color-accent-hover": "#74c492",
419
- "--mlf-color-accent-soft": "rgba(89, 176, 125, 0.16)",
420
- "--mlf-color-success": "#67d595",
421
- "--mlf-color-warning": "#efbb67",
422
- "--mlf-color-danger": "#ff8e8a",
423
- "--mlf-color-danger-soft": "rgba(255, 142, 138, 0.14)",
424
- "--mlf-color-focus-ring": "rgba(89, 176, 125, 0.3)",
425
- "--mlf-color-overlay": "rgba(18, 26, 21, 0.84)",
426
- "--mlf-color-hover-surface": "#2a3d30",
427
- "--mlf-color-chart-track": "rgba(168, 185, 170, 0.18)"
537
+ }, p = [
538
+ l,
539
+ c,
540
+ f,
541
+ u,
542
+ {
543
+ id: "sage",
544
+ label: "Sage",
545
+ schemes: {
546
+ light: {
547
+ colorScheme: "light",
548
+ tokens: {
549
+ "--mlf-color-bg": "#f2f6f1",
550
+ "--mlf-color-surface": "#fbfdfb",
551
+ "--mlf-color-surface-muted": "#e8efe6",
552
+ "--mlf-color-surface-elevated": "#ffffff",
553
+ "--mlf-color-text": "#203126",
554
+ "--mlf-color-text-muted": "#5e7264",
555
+ "--mlf-color-border": "#cfdbcf",
556
+ "--mlf-color-border-strong": "#bbccbc",
557
+ "--mlf-color-accent": "#2f7d57",
558
+ "--mlf-color-accent-hover": "#256847",
559
+ "--mlf-color-accent-soft": "rgba(47, 125, 87, 0.12)",
560
+ "--mlf-color-success": "#2d8a57",
561
+ "--mlf-color-warning": "#bd7d29",
562
+ "--mlf-color-danger": "#b94a48",
563
+ "--mlf-color-danger-soft": "rgba(185, 74, 72, 0.12)",
564
+ "--mlf-color-focus-ring": "rgba(47, 125, 87, 0.24)",
565
+ "--mlf-color-overlay": "rgba(251, 253, 251, 0.78)",
566
+ "--mlf-color-hover-surface": "#dde9db",
567
+ "--mlf-color-chart-track": "rgba(32, 49, 38, 0.12)"
568
+ }
569
+ },
570
+ dark: {
571
+ colorScheme: "dark",
572
+ tokens: {
573
+ "--mlf-shadow-sm": "0 1px 3px rgba(0, 0, 0, 0.45)",
574
+ "--mlf-shadow-md": "0 14px 30px rgba(0, 0, 0, 0.35)",
575
+ "--mlf-shadow-lg": "0 24px 60px rgba(0, 0, 0, 0.28)",
576
+ "--mlf-color-bg": "#121a15",
577
+ "--mlf-color-surface": "#182119",
578
+ "--mlf-color-surface-muted": "#203024",
579
+ "--mlf-color-surface-elevated": "#24372a",
580
+ "--mlf-color-text": "#edf5ef",
581
+ "--mlf-color-text-muted": "#a8b9aa",
582
+ "--mlf-color-border": "#304234",
583
+ "--mlf-color-border-strong": "#3f5544",
584
+ "--mlf-color-accent": "#59b07d",
585
+ "--mlf-color-accent-hover": "#74c492",
586
+ "--mlf-color-accent-soft": "rgba(89, 176, 125, 0.16)",
587
+ "--mlf-color-success": "#67d595",
588
+ "--mlf-color-warning": "#efbb67",
589
+ "--mlf-color-danger": "#ff8e8a",
590
+ "--mlf-color-danger-soft": "rgba(255, 142, 138, 0.14)",
591
+ "--mlf-color-focus-ring": "rgba(89, 176, 125, 0.3)",
592
+ "--mlf-color-overlay": "rgba(18, 26, 21, 0.84)",
593
+ "--mlf-color-hover-surface": "#2a3d30",
594
+ "--mlf-color-chart-track": "rgba(168, 185, 170, 0.18)"
595
+ }
428
596
  }
429
597
  }
430
- }
431
- }, p = {
432
- id: "sunset",
433
- label: "Sunset",
434
- schemes: {
435
- light: {
436
- colorScheme: "light",
437
- tokens: {
438
- "--mlf-color-bg": "#fff6f0",
439
- "--mlf-color-surface": "#fffdfb",
440
- "--mlf-color-surface-muted": "#ffe9dd",
441
- "--mlf-color-surface-elevated": "#ffffff",
442
- "--mlf-color-text": "#3b241d",
443
- "--mlf-color-text-muted": "#7f5a50",
444
- "--mlf-color-border": "#f0cdbb",
445
- "--mlf-color-border-strong": "#e0b59f",
446
- "--mlf-color-accent": "#d96a3a",
447
- "--mlf-color-accent-hover": "#be5628",
448
- "--mlf-color-accent-soft": "rgba(217, 106, 58, 0.14)",
449
- "--mlf-color-success": "#2e8c63",
450
- "--mlf-color-warning": "#d18a20",
451
- "--mlf-color-danger": "#ca4a45",
452
- "--mlf-color-danger-soft": "rgba(202, 74, 69, 0.12)",
453
- "--mlf-color-focus-ring": "rgba(217, 106, 58, 0.24)",
454
- "--mlf-color-overlay": "rgba(255, 253, 251, 0.8)",
455
- "--mlf-color-hover-surface": "#ffdcca",
456
- "--mlf-color-chart-track": "rgba(59, 36, 29, 0.12)"
457
- }
458
- },
459
- dark: {
460
- colorScheme: "dark",
461
- tokens: {
462
- "--mlf-shadow-sm": "0 1px 3px rgba(0, 0, 0, 0.45)",
463
- "--mlf-shadow-md": "0 14px 30px rgba(0, 0, 0, 0.35)",
464
- "--mlf-shadow-lg": "0 24px 60px rgba(0, 0, 0, 0.28)",
465
- "--mlf-color-bg": "#1e1512",
466
- "--mlf-color-surface": "#261b18",
467
- "--mlf-color-surface-muted": "#32231f",
468
- "--mlf-color-surface-elevated": "#392925",
469
- "--mlf-color-text": "#fff1ea",
470
- "--mlf-color-text-muted": "#d3b0a3",
471
- "--mlf-color-border": "#513830",
472
- "--mlf-color-border-strong": "#68473d",
473
- "--mlf-color-accent": "#ff986b",
474
- "--mlf-color-accent-hover": "#ffb089",
475
- "--mlf-color-accent-soft": "rgba(255, 152, 107, 0.16)",
476
- "--mlf-color-success": "#57c694",
477
- "--mlf-color-warning": "#ffc36d",
478
- "--mlf-color-danger": "#ff8d86",
479
- "--mlf-color-danger-soft": "rgba(255, 141, 134, 0.14)",
480
- "--mlf-color-focus-ring": "rgba(255, 152, 107, 0.3)",
481
- "--mlf-color-overlay": "rgba(30, 21, 18, 0.84)",
482
- "--mlf-color-hover-surface": "#422d27",
483
- "--mlf-color-chart-track": "rgba(211, 176, 163, 0.18)"
598
+ },
599
+ {
600
+ id: "sunset",
601
+ label: "Sunset",
602
+ schemes: {
603
+ light: {
604
+ colorScheme: "light",
605
+ tokens: {
606
+ "--mlf-color-bg": "#fff6f0",
607
+ "--mlf-color-surface": "#fffdfb",
608
+ "--mlf-color-surface-muted": "#ffe9dd",
609
+ "--mlf-color-surface-elevated": "#ffffff",
610
+ "--mlf-color-text": "#3b241d",
611
+ "--mlf-color-text-muted": "#7f5a50",
612
+ "--mlf-color-border": "#f0cdbb",
613
+ "--mlf-color-border-strong": "#e0b59f",
614
+ "--mlf-color-accent": "#d96a3a",
615
+ "--mlf-color-accent-hover": "#be5628",
616
+ "--mlf-color-accent-soft": "rgba(217, 106, 58, 0.14)",
617
+ "--mlf-color-success": "#2e8c63",
618
+ "--mlf-color-warning": "#d18a20",
619
+ "--mlf-color-danger": "#ca4a45",
620
+ "--mlf-color-danger-soft": "rgba(202, 74, 69, 0.12)",
621
+ "--mlf-color-focus-ring": "rgba(217, 106, 58, 0.24)",
622
+ "--mlf-color-overlay": "rgba(255, 253, 251, 0.8)",
623
+ "--mlf-color-hover-surface": "#ffdcca",
624
+ "--mlf-color-chart-track": "rgba(59, 36, 29, 0.12)"
625
+ }
626
+ },
627
+ dark: {
628
+ colorScheme: "dark",
629
+ tokens: {
630
+ "--mlf-shadow-sm": "0 1px 3px rgba(0, 0, 0, 0.45)",
631
+ "--mlf-shadow-md": "0 14px 30px rgba(0, 0, 0, 0.35)",
632
+ "--mlf-shadow-lg": "0 24px 60px rgba(0, 0, 0, 0.28)",
633
+ "--mlf-color-bg": "#1e1512",
634
+ "--mlf-color-surface": "#261b18",
635
+ "--mlf-color-surface-muted": "#32231f",
636
+ "--mlf-color-surface-elevated": "#392925",
637
+ "--mlf-color-text": "#fff1ea",
638
+ "--mlf-color-text-muted": "#d3b0a3",
639
+ "--mlf-color-border": "#513830",
640
+ "--mlf-color-border-strong": "#68473d",
641
+ "--mlf-color-accent": "#ff986b",
642
+ "--mlf-color-accent-hover": "#ffb089",
643
+ "--mlf-color-accent-soft": "rgba(255, 152, 107, 0.16)",
644
+ "--mlf-color-success": "#57c694",
645
+ "--mlf-color-warning": "#ffc36d",
646
+ "--mlf-color-danger": "#ff8d86",
647
+ "--mlf-color-danger-soft": "rgba(255, 141, 134, 0.14)",
648
+ "--mlf-color-focus-ring": "rgba(255, 152, 107, 0.3)",
649
+ "--mlf-color-overlay": "rgba(30, 21, 18, 0.84)",
650
+ "--mlf-color-hover-surface": "#422d27",
651
+ "--mlf-color-chart-track": "rgba(211, 176, 163, 0.18)"
652
+ }
484
653
  }
485
654
  }
486
- }
487
- }, m = (e) => {
655
+ },
656
+ d
657
+ ], m = (e) => {
488
658
  if (typeof e == "object" && e && !Object.isFrozen(e)) {
489
659
  Object.freeze(e);
490
660
  for (let t of Object.values(e)) m(t);
@@ -607,47 +777,36 @@ var e = [
607
777
  for (let [e, n] of this.#n) t.#n.set(e, new Map(n));
608
778
  return t;
609
779
  }
610
- }, _ = () => new ee(), v = [
611
- d,
612
- l,
613
- f,
614
- p,
615
- u
616
- ], y = [
617
- o,
618
- s,
619
- c,
620
- a
621
- ], b = () => {
780
+ }, _ = () => new ee(), v = () => {
622
781
  let e = _();
623
- for (let t of v) e.registerTheme(t);
624
- for (let t of y) e.registerRecipe(t);
782
+ for (let t of p) e.registerTheme(t);
783
+ for (let t of s) e.registerRecipe(t);
625
784
  return e;
626
- }, x = b(), S = new Set(i), te = (t) => {
785
+ }, y = v(), b = new Set(i), te = (t) => {
627
786
  for (let n of e) if (t.startsWith(`--mlf-${n}-`)) return n;
628
787
  return null;
629
788
  }, ne = (e) => {
630
789
  for (let t of Object.keys(e)) {
631
- if (!S.has(t)) throw Error(`[mlform] Unknown global token "${t}"`);
790
+ if (!b.has(t)) throw Error(`[mlform] Unknown global token "${t}"`);
632
791
  let e = te(t);
633
792
  if (e) throw Error(`[mlform] Token "${t}" belongs to component "${e}". Use defineComponentTokens("${e}", ...)`);
634
793
  }
635
794
  return { ...e };
636
795
  }, re = (e, t) => {
637
796
  for (let n of Object.keys(t)) {
638
- if (!S.has(n)) throw Error(`[mlform] Unknown token "${n}" for component "${e}"`);
797
+ if (!b.has(n)) throw Error(`[mlform] Unknown token "${n}" for component "${e}"`);
639
798
  if (!n.startsWith(`--mlf-${e}-`)) throw Error(`[mlform] Token "${n}" does not belong to component "${e}"`);
640
799
  }
641
800
  return { tokens: { ...t } };
642
- }, C = new Set(i), w = /var\(\s*(--mlf-[a-z0-9-]+)\s*[,)]/g, T = (e, t, n) => {
643
- if (n) for (let r of Object.keys(n)) !r.startsWith("--mlf-") || C.has(r) || e.push({
801
+ }, x = new Set(i), S = /var\(\s*(--mlf-[a-z0-9-]+)\s*[,)]/g, C = (e, t, n) => {
802
+ if (n) for (let r of Object.keys(n)) !r.startsWith("--mlf-") || x.has(r) || e.push({
644
803
  code: "unknown-token-key",
645
804
  path: t,
646
805
  value: r,
647
806
  message: `[mlform] Unknown design-system token "${r}" at ${t}`
648
807
  });
649
- }, E = (e, t, n, r) => {
650
- if (r) for (let i of Object.keys(r)) !i.startsWith("--mlf-") || !C.has(i) || i.startsWith(`--mlf-${t}-`) || e.push({
808
+ }, w = (e, t, n, r) => {
809
+ if (r) for (let i of Object.keys(r)) !i.startsWith("--mlf-") || !x.has(i) || i.startsWith(`--mlf-${t}-`) || e.push({
651
810
  code: "misplaced-component-token",
652
811
  path: n,
653
812
  value: i,
@@ -655,11 +814,11 @@ var e = [
655
814
  });
656
815
  }, ie = (e, t, n) => {
657
816
  if (n) for (let [r, i] of Object.entries(n)) {
658
- w.lastIndex = 0;
817
+ S.lastIndex = 0;
659
818
  let n;
660
- for (; (n = w.exec(i)) !== null;) {
819
+ for (; (n = S.exec(i)) !== null;) {
661
820
  let i = n[1];
662
- !t.has(i) && C.has(i) && e.push({
821
+ !t.has(i) && x.has(i) && e.push({
663
822
  code: "broken-token-reference",
664
823
  path: r,
665
824
  value: i,
@@ -667,7 +826,7 @@ var e = [
667
826
  });
668
827
  }
669
828
  }
670
- }, D = (e) => {
829
+ }, T = (e) => {
671
830
  let t = /* @__PURE__ */ new Set();
672
831
  return e.filter((e) => {
673
832
  let n = [
@@ -678,7 +837,7 @@ var e = [
678
837
  ].join("|");
679
838
  return t.has(n) ? !1 : (t.add(n), !0);
680
839
  });
681
- }, ae = (t, n, r, i) => {
840
+ }, E = (t, n, r, i) => {
682
841
  let a = [];
683
842
  typeof t.theme == "string" && !n.getTheme(t.theme) && a.push({
684
843
  code: "unknown-theme-id",
@@ -690,17 +849,17 @@ var e = [
690
849
  path: "recipe",
691
850
  value: t.recipe,
692
851
  message: `[mlform] Unknown recipe "${t.recipe}". Falling back to "${i.id}"`
693
- }), T(a, `theme "${r.id}".sharedTokens`, r.sharedTokens), T(a, `theme "${r.id}".schemes.light.tokens`, r.schemes.light.tokens), T(a, `theme "${r.id}".schemes.dark.tokens`, r.schemes.dark?.tokens);
694
- for (let [e, t] of Object.entries(r.variants ?? {})) T(a, `theme "${r.id}".variants.${e}.tokens`, t.tokens);
695
- T(a, `recipe "${i.id}".tokens`, i.tokens);
696
- for (let [e, t] of Object.entries(i.components ?? {})) T(a, `recipe "${i.id}".components.${e}.tokens`, t?.tokens), E(a, e, `recipe "${i.id}".components.${e}.tokens`, t?.tokens);
697
- T(a, "overrides.tokens", t.overrides?.tokens);
852
+ }), C(a, `theme "${r.id}".sharedTokens`, r.sharedTokens), C(a, `theme "${r.id}".schemes.light.tokens`, r.schemes.light.tokens), C(a, `theme "${r.id}".schemes.dark.tokens`, r.schemes.dark?.tokens);
853
+ for (let [e, t] of Object.entries(r.variants ?? {})) C(a, `theme "${r.id}".variants.${e}.tokens`, t.tokens);
854
+ C(a, `recipe "${i.id}".tokens`, i.tokens);
855
+ for (let [e, t] of Object.entries(i.components ?? {})) C(a, `recipe "${i.id}".components.${e}.tokens`, t?.tokens), w(a, e, `recipe "${i.id}".components.${e}.tokens`, t?.tokens);
856
+ C(a, "overrides.tokens", t.overrides?.tokens);
698
857
  for (let n of e) {
699
858
  let e = t.overrides?.components?.[n];
700
- T(a, `overrides.components.${n}.tokens`, e?.tokens), E(a, n, `overrides.components.${n}.tokens`, e?.tokens);
859
+ C(a, `overrides.components.${n}.tokens`, e?.tokens), w(a, n, `overrides.components.${n}.tokens`, e?.tokens);
701
860
  }
702
- return D(a);
703
- }, oe = (e, t, n) => {
861
+ return T(a);
862
+ }, D = (e, t, n) => {
704
863
  if (!e.variant) return [];
705
864
  let r = t.variants?.[e.variant];
706
865
  return r ? r.baseScheme === n ? [] : [{
@@ -714,15 +873,15 @@ var e = [
714
873
  value: e.variant,
715
874
  message: `[mlform] Theme "${t.id}" does not define variant "${e.variant}"`
716
875
  }];
717
- }, se = (e) => {
876
+ }, ae = (e) => {
718
877
  let t = [];
719
- return ie(t, new Set(Object.keys(e)), e), D(t);
878
+ return ie(t, new Set(Object.keys(e)), e), T(t);
720
879
  }, O = (e, t) => {
721
880
  if (t.length !== 0) {
722
881
  for (let n of t) e.onWarning?.(n);
723
882
  if (e.strict) throw Error(t.map((e) => e.message).join("\n"));
724
883
  }
725
- }, k = "light", A = (e, t) => t === "light" || !!e.schemes.dark, ce = (e, t, n = {}) => {
884
+ }, k = "light", A = (e, t) => t === "light" || !!e.schemes.dark, oe = (e, t, n = {}) => {
726
885
  let r = e.mode ?? "auto";
727
886
  return r === "light" || r === "dark" ? r === "dark" && !t.schemes.dark ? {
728
887
  requestedMode: r,
@@ -749,11 +908,11 @@ var e = [
749
908
  effectiveScheme: k,
750
909
  effectiveModeSource: "theme-fallback"
751
910
  };
752
- }, le = (e, t) => {
911
+ }, se = (e, t) => {
753
912
  let n = e.recipe, r = t.getRecipe("default") ?? o;
754
913
  return n && typeof n != "string" ? n : typeof n == "string" ? t.getRecipe(n) ?? r : r;
755
- }, ue = (e, t) => {
756
- let n = e.theme, r = t.getTheme("neutral") ?? d;
914
+ }, ce = (e, t) => {
915
+ let n = e.theme, r = t.getTheme("neutral") ?? f;
757
916
  return n && typeof n != "string" ? n : typeof n == "string" ? t.getTheme(n) ?? r : r;
758
917
  }, j = (t) => {
759
918
  let n = {};
@@ -762,14 +921,14 @@ var e = [
762
921
  e && Object.assign(n, e);
763
922
  }
764
923
  return n;
765
- }, de = {
924
+ }, le = {
766
925
  ...r,
767
926
  ...j(t)
768
- }, fe = {
927
+ }, ue = {
769
928
  "--mlf-border-width": "1.5px",
770
929
  "--mlf-ring-width": "5px",
771
930
  "--mlf-color-border": "var(--mlf-color-border-strong)"
772
- }, pe = {
931
+ }, de = {
773
932
  compact: {
774
933
  "--mlf-shell-gap": "1rem",
775
934
  "--mlf-layout-gap": "0.85rem",
@@ -800,7 +959,7 @@ var e = [
800
959
  "--mlf-control-padding-block": "0.9rem",
801
960
  "--mlf-pane-min-width": "22rem"
802
961
  }
803
- }, me = {
962
+ }, fe = {
804
963
  "--mlf-color-bg": "Canvas",
805
964
  "--mlf-color-surface": "Canvas",
806
965
  "--mlf-color-surface-muted": "Canvas",
@@ -847,7 +1006,7 @@ var e = [
847
1006
  "--mlf-error-bg": "Canvas",
848
1007
  "--mlf-error-border": "CanvasText",
849
1008
  "--mlf-chart-fill-bg": "Highlight"
850
- }, he = {
1009
+ }, pe = {
851
1010
  none: {
852
1011
  "--mlf-motion-fast": "0ms linear",
853
1012
  "--mlf-motion-base": "0ms linear",
@@ -869,36 +1028,36 @@ var e = [
869
1028
  "--mlf-transition-duration": "250ms",
870
1029
  "--mlf-transition-easing": "ease-in-out"
871
1030
  }
872
- }, ge = (e, t, n) => {
1031
+ }, me = (e, t, n) => {
873
1032
  let r = t === "dark" ? e.schemes.dark?.tokens ?? e.schemes.light.tokens : e.schemes.light.tokens, i = n && e.variants?.[n]?.baseScheme === t ? e.variants[n].tokens : {};
874
1033
  return {
875
1034
  ...e.sharedTokens,
876
1035
  ...r,
877
1036
  ...i
878
1037
  };
879
- }, _e = e.map((e) => [`--mlf-${e}-`, e]), ve = (t) => {
1038
+ }, he = e.map((e) => [`--mlf-${e}-`, e]), ge = (t) => {
880
1039
  let n = Object.fromEntries(e.map((e) => [e, {}]));
881
- for (let [e, r] of Object.entries(t)) for (let [t, i] of _e) if (e.startsWith(t)) {
1040
+ for (let [e, r] of Object.entries(t)) for (let [t, i] of he) if (e.startsWith(t)) {
882
1041
  n[i][e] = r;
883
1042
  break;
884
1043
  }
885
1044
  return Object.fromEntries(e.map((e) => [e, { tokens: n[e] }]));
886
- }, ye = (e, t, n, r, i, a, o, s = {}) => {
1045
+ }, _e = (e, t, n, r, i, a, o, s = {}) => {
887
1046
  let c = e.overrides?.density ?? (s.prefersMoreContrast ? "spacious" : n.density), l = e.overrides?.motion ?? (s.prefersReducedMotion ? "none" : n.motion), u = {
888
1047
  ...e.overrides?.tokens,
889
1048
  ...j(e.overrides?.components ?? {})
890
- }, d = (e.variant && t.variants?.[e.variant]?.baseScheme === r ? e.variant : null) ?? (s.prefersMoreContrast && t.variants?.[`high-contrast-${r}`] ? `high-contrast-${r}` : null), f = s.prefersMoreContrast ? fe : {}, p = s.forcedColors ? me : {}, m = {
891
- ...de,
892
- ...pe[c],
893
- ...he[l],
1049
+ }, d = (e.variant && t.variants?.[e.variant]?.baseScheme === r ? e.variant : null) ?? (s.prefersMoreContrast && t.variants?.[`high-contrast-${r}`] ? `high-contrast-${r}` : null), f = s.prefersMoreContrast ? ue : {}, p = s.forcedColors ? fe : {}, m = {
1050
+ ...le,
1051
+ ...de[c],
1052
+ ...pe[l],
894
1053
  ...f,
895
- ...ge(t, r, d),
1054
+ ...me(t, r, d),
896
1055
  ...n.tokens,
897
1056
  ...j(n.components ?? {}),
898
1057
  ...e.overrides?.tokens,
899
1058
  ...j(e.overrides?.components ?? {}),
900
1059
  ...p
901
- }, h = ve(m);
1060
+ }, h = ge(m);
902
1061
  return {
903
1062
  requestedMode: i,
904
1063
  effectiveScheme: r,
@@ -913,7 +1072,7 @@ var e = [
913
1072
  components: h,
914
1073
  warnings: o
915
1074
  };
916
- }, be = (e, t) => {
1075
+ }, ve = (e, t) => {
917
1076
  if (!e && !t) return;
918
1077
  let n = /* @__PURE__ */ new Map();
919
1078
  for (let r of [e?.components, t?.components]) if (r) for (let [e, t] of Object.entries(r)) t && n.set(e, { tokens: {
@@ -937,7 +1096,7 @@ var e = [
937
1096
  hostSchemeResolver: t?.hostSchemeResolver ?? e.hostSchemeResolver,
938
1097
  strict: t?.strict ?? e.strict,
939
1098
  onWarning: t?.onWarning ?? e.onWarning,
940
- overrides: be(e.overrides, t?.overrides)
1099
+ overrides: ve(e.overrides, t?.overrides)
941
1100
  }), {}), N = (e, t, n = "source-wins") => {
942
1101
  let r = new Map(t.map((e) => [e.from, e.to])), i = { ...e }, a = {};
943
1102
  for (let [o, s] of Object.entries(e)) {
@@ -951,7 +1110,7 @@ var e = [
951
1110
  else a[e] = s;
952
1111
  }
953
1112
  return a;
954
- }, xe = (e, t) => {
1113
+ }, P = (e, t) => {
955
1114
  let n = Object.fromEntries(Object.entries(e.schemes).map(([e, n]) => [e, n && {
956
1115
  ...n,
957
1116
  tokens: N(n.tokens, t)
@@ -961,19 +1120,19 @@ var e = [
961
1120
  schemes: n,
962
1121
  sharedTokens: e.sharedTokens ? N(e.sharedTokens, t) : void 0
963
1122
  };
964
- }, P = (e = {}, t = x, n = {}) => {
965
- let r = ue(e, t), i = le(e, t), a = ae(e, t, r, i);
1123
+ }, F = (e = {}, t = y, n = {}) => {
1124
+ let r = ce(e, t), i = se(e, t), a = E(e, t, r, i);
966
1125
  O(e, a);
967
- let o = ce(e, r, n), s = oe(e, r, o.effectiveScheme);
1126
+ let o = oe(e, r, n), s = D(e, r, o.effectiveScheme);
968
1127
  s.length > 0 && (a.push(...s), O(e, s));
969
- let c = ye(e, r, i, o.effectiveScheme, o.requestedMode, o.effectiveModeSource, a, n), l = se(c.tokens);
1128
+ let c = _e(e, r, i, o.effectiveScheme, o.requestedMode, o.effectiveModeSource, a, n), l = ae(c.tokens);
970
1129
  return l.length > 0 && (c.warnings.push(...l), O(e, l)), c;
971
- }, Se = { change: "ml-design-system-change" }, F = {
1130
+ }, ye = { change: "ml-design-system-change" }, I = {
972
1131
  prefersDarkScheme: "(prefers-color-scheme: dark)",
973
1132
  prefersReducedMotion: "(prefers-reduced-motion: reduce)",
974
1133
  prefersMoreContrast: "(prefers-contrast: more)",
975
1134
  forcedColors: "(forced-colors: active)"
976
- }, I = {
1135
+ }, L = {
977
1136
  explicitScheme: "data-color-scheme",
978
1137
  inheritedScheme: "data-mlf-scheme",
979
1138
  effectiveScheme: "data-mlf-effective-scheme",
@@ -985,17 +1144,106 @@ var e = [
985
1144
  signature: "data-mlf-signature",
986
1145
  style: "style",
987
1146
  class: "class"
988
- }, Ce = [I.explicitScheme], we = [
989
- I.inheritedScheme,
990
- I.effectiveScheme,
991
- I.explicitScheme,
992
- I.style,
993
- I.class
994
- ], Te = (e) => {
1147
+ }, be = [L.explicitScheme], xe = [
1148
+ L.inheritedScheme,
1149
+ L.effectiveScheme,
1150
+ L.explicitScheme,
1151
+ L.style,
1152
+ L.class
1153
+ ], R = (e) => {
1154
+ if (!e) return null;
1155
+ let t = e.trim().toLowerCase();
1156
+ return t === "light" || t === "dark" ? t : null;
1157
+ }, Se = (e, t) => {
1158
+ if ((t.mode ?? "auto") !== "inherit") return {
1159
+ scheme: null,
1160
+ source: null
1161
+ };
1162
+ if (t.hostSchemeResolver) {
1163
+ let n = t.hostSchemeResolver(e);
1164
+ if (n) return {
1165
+ scheme: n,
1166
+ source: "host-resolver"
1167
+ };
1168
+ }
1169
+ let n = R(e.getAttribute(L.explicitScheme));
1170
+ if (n) return {
1171
+ scheme: n,
1172
+ source: "host-attribute"
1173
+ };
1174
+ let r = e.parentElement;
1175
+ for (; r;) {
1176
+ let e = R(r.getAttribute(L.inheritedScheme)) ?? R(r.getAttribute(L.effectiveScheme)) ?? R(r.getAttribute(L.explicitScheme));
1177
+ if (e) return {
1178
+ scheme: e,
1179
+ source: "host-attribute"
1180
+ };
1181
+ r = r.parentElement;
1182
+ }
1183
+ if (typeof window > "u") return {
1184
+ scheme: null,
1185
+ source: null
1186
+ };
1187
+ let i = window.getComputedStyle(e).colorScheme;
1188
+ return i.includes("dark") ? {
1189
+ scheme: "dark",
1190
+ source: "host-style"
1191
+ } : i.includes("light") ? {
1192
+ scheme: "light",
1193
+ source: "host-style"
1194
+ } : {
1195
+ scheme: null,
1196
+ source: null
1197
+ };
1198
+ }, Ce = () => typeof window < "u" && typeof window.matchMedia == "function" ? {
1199
+ scheme: window.matchMedia(I.prefersDarkScheme),
1200
+ motion: window.matchMedia(I.prefersReducedMotion),
1201
+ contrast: window.matchMedia(I.prefersMoreContrast),
1202
+ forcedColors: window.matchMedia(I.forcedColors)
1203
+ } : {
1204
+ scheme: null,
1205
+ motion: null,
1206
+ contrast: null,
1207
+ forcedColors: null
1208
+ }, we = (e, t) => {
1209
+ typeof e.addEventListener == "function" ? e.addEventListener("change", t) : e.addListener?.(t);
1210
+ }, Te = (e, t) => {
1211
+ typeof e.removeEventListener == "function" ? e.removeEventListener("change", t) : e.removeListener?.(t);
1212
+ }, Ee = (e) => ({
1213
+ prefersDarkScheme: e.scheme?.matches ?? !1,
1214
+ prefersReducedMotion: e.motion?.matches ?? !1,
1215
+ prefersMoreContrast: e.contrast?.matches ?? !1,
1216
+ forcedColors: e.forcedColors?.matches ?? !1
1217
+ }), De = (e) => {
1218
+ for (let t of e) t.query && we(t.query, t.listener);
1219
+ }, Oe = (e) => {
1220
+ for (let t of e) t.query && Te(t.query, t.listener);
1221
+ }, ke = (e, t, n, r) => Ee({
1222
+ scheme: e,
1223
+ motion: t,
1224
+ contrast: n,
1225
+ forcedColors: r
1226
+ }), z = (e, t, n, r) => {
1227
+ let i = Se(e, t);
1228
+ return F(t, n, {
1229
+ inheritedScheme: i.scheme,
1230
+ inheritedSource: i.source ?? void 0,
1231
+ systemScheme: r.prefersDarkScheme ? "dark" : "light",
1232
+ prefersReducedMotion: r.prefersReducedMotion,
1233
+ prefersMoreContrast: r.prefersMoreContrast,
1234
+ forcedColors: r.forcedColors
1235
+ });
1236
+ }, Ae = (e, t) => {
1237
+ e.dispatchEvent(new CustomEvent(ye.change, {
1238
+ detail: { designSystem: t },
1239
+ bubbles: !0,
1240
+ composed: !0
1241
+ }));
1242
+ }, je = (e) => {
995
1243
  let t = 2166136261;
996
1244
  for (let n = 0; n < e.length; n += 1) t ^= e.charCodeAt(n), t = Math.imul(t, 16777619);
997
1245
  return (t >>> 0).toString(16).padStart(8, "0");
998
- }, L = (e) => `v1:${Te([
1246
+ }, B = (e) => `v1:${je([
999
1247
  e.effectiveScheme,
1000
1248
  e.themeId,
1001
1249
  e.variant ?? "",
@@ -1003,97 +1251,97 @@ var e = [
1003
1251
  e.density,
1004
1252
  e.motion,
1005
1253
  ...Object.entries(e.tokens).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => `${e}:${t}`)
1006
- ].join("|"))}`, R = (e) => {
1254
+ ].join("|"))}`, V = (e) => {
1007
1255
  let t = {
1008
- [I.themeId]: e.themeId,
1009
- [I.recipeId]: e.recipeId,
1010
- [I.effectiveScheme]: e.effectiveScheme,
1011
- [I.inheritedScheme]: e.effectiveScheme,
1012
- [I.density]: e.density,
1013
- [I.motion]: e.motion,
1014
- [I.signature]: L(e)
1256
+ [L.themeId]: e.themeId,
1257
+ [L.recipeId]: e.recipeId,
1258
+ [L.effectiveScheme]: e.effectiveScheme,
1259
+ [L.inheritedScheme]: e.effectiveScheme,
1260
+ [L.density]: e.density,
1261
+ [L.motion]: e.motion,
1262
+ [L.signature]: B(e)
1015
1263
  };
1016
- return e.variant && (t[I.variantId] = e.variant), t;
1017
- }, z = (e) => {
1264
+ return e.variant && (t[L.variantId] = e.variant), t;
1265
+ }, H = (e) => {
1018
1266
  for (let t = 0; t < e.length; t += 1) if (e.charCodeAt(t) <= 31) return !0;
1019
1267
  return !1;
1020
- }, Ee = (e) => {
1268
+ }, Me = (e) => {
1021
1269
  if (!e.trim()) throw Error("[mlform] createDesignSystemStylesheet requires a non-empty selector");
1022
- if (e.includes("{") || e.includes("}") || e.includes(";") || z(e)) throw Error("[mlform] createDesignSystemStylesheet selector contains unsafe characters");
1023
- }, De = (e, t) => {
1270
+ if (e.includes("{") || e.includes("}") || e.includes(";") || H(e)) throw Error("[mlform] createDesignSystemStylesheet selector contains unsafe characters");
1271
+ }, Ne = (e, t) => {
1024
1272
  if (!e.startsWith("--")) throw Error(`[mlform] Invalid design-system token "${e}"`);
1025
- if (t.includes("{") || t.includes("}") || t.includes(";") || z(t)) throw Error(`[mlform] Token "${e}" contains unsafe stylesheet characters`);
1026
- }, B = (e) => Object.entries(e.tokens).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => (De(e, t), [e, t])), V = (e, t) => {
1273
+ if (t.includes("{") || t.includes("}") || t.includes(";") || H(t)) throw Error(`[mlform] Token "${e}" contains unsafe stylesheet characters`);
1274
+ }, U = (e) => Object.entries(e.tokens).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => (Ne(e, t), [e, t])), W = (e, t) => {
1027
1275
  let n = /* @__PURE__ */ new Set();
1028
- for (let [r, i] of B(t)) e.setProperty(r, i), n.add(r);
1276
+ for (let [r, i] of U(t)) e.setProperty(r, i), n.add(r);
1029
1277
  return n;
1030
- }, H = [
1031
- I.themeId,
1032
- I.variantId,
1033
- I.recipeId,
1034
- I.effectiveScheme,
1035
- I.inheritedScheme,
1036
- I.density,
1037
- I.motion,
1038
- I.signature
1039
- ], U = (e, t, n) => {
1040
- let r = R(t);
1041
- for (let t of H) {
1278
+ }, G = [
1279
+ L.themeId,
1280
+ L.variantId,
1281
+ L.recipeId,
1282
+ L.effectiveScheme,
1283
+ L.inheritedScheme,
1284
+ L.density,
1285
+ L.motion,
1286
+ L.signature
1287
+ ], K = (e, t, n) => {
1288
+ let r = V(t);
1289
+ for (let t of G) {
1042
1290
  let n = r[t];
1043
1291
  n === void 0 ? e.removeAttribute(t) : e.setAttribute(t, n);
1044
1292
  }
1045
- return n === "view-transition" && (e.style.viewTransitionName = "mlf-design-system"), e.style.colorScheme = t.effectiveScheme, V(e.style, t);
1046
- }, Oe = (e, t, n, r, i) => {
1293
+ return n === "view-transition" && (e.style.viewTransitionName = "mlf-design-system"), e.style.colorScheme = t.effectiveScheme, W(e.style, t);
1294
+ }, Pe = (e, t, n, r, i) => {
1047
1295
  for (let n of t) {
1048
1296
  let t = r.get(n) ?? null;
1049
1297
  t === null ? e.style.removeProperty(n) : e.style.setProperty(n, t);
1050
1298
  }
1051
- for (let t of H) {
1299
+ for (let t of G) {
1052
1300
  let r = n.get(t) ?? null;
1053
1301
  r === null ? e.removeAttribute(t) : e.setAttribute(t, r);
1054
1302
  }
1055
1303
  i === null ? e.style.removeProperty("color-scheme") : e.style.colorScheme = i, e.style.removeProperty("view-transition-name");
1056
- }, W = (e) => e ? Object.entries(e).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => `${e}:${t}`).join(",") : "", ke = (e) => {
1057
- let t = Object.entries(e.variants ?? {}).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => `${e}:${t.baseScheme}:${W(t.tokens)}`).join(";");
1304
+ }, q = (e) => e ? Object.entries(e).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => `${e}:${t}`).join(",") : "", Fe = (e) => {
1305
+ let t = Object.entries(e.variants ?? {}).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => `${e}:${t.baseScheme}:${q(t.tokens)}`).join(";");
1058
1306
  return [
1059
1307
  e.id,
1060
1308
  e.label,
1061
1309
  e.schemes.light.colorScheme ?? "",
1062
- W(e.schemes.light.tokens),
1310
+ q(e.schemes.light.tokens),
1063
1311
  e.schemes.dark?.colorScheme ?? "",
1064
- W(e.schemes.dark?.tokens),
1065
- W(e.sharedTokens),
1312
+ q(e.schemes.dark?.tokens),
1313
+ q(e.sharedTokens),
1066
1314
  t
1067
1315
  ].join("|");
1068
- }, Ae = (e) => {
1069
- let t = Object.entries(e.components ?? {}).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => `${e}:${W(t?.tokens)}`).join(";");
1316
+ }, Ie = (e) => {
1317
+ let t = Object.entries(e.components ?? {}).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => `${e}:${q(t?.tokens)}`).join(";");
1070
1318
  return [
1071
1319
  e.id,
1072
1320
  e.label,
1073
1321
  e.density,
1074
1322
  e.motion,
1075
- W(e.tokens),
1323
+ q(e.tokens),
1076
1324
  t
1077
1325
  ].join("|");
1078
- }, je = (e) => {
1079
- let t = typeof e.theme == "string" ? `ref:${e.theme}` : e.theme ? `inline:${ke(e.theme)}` : "", n = typeof e.recipe == "string" ? `ref:${e.recipe}` : e.recipe ? `inline:${Ae(e.recipe)}` : "", r = e.overrides, i = W(r?.tokens), a = Object.entries(r?.components ?? {}).sort(([e], [t]) => e.localeCompare(t)).filter(([, e]) => !!e?.tokens).map(([e, t]) => `${e}:${W(t.tokens)}`).join(";");
1326
+ }, Le = (e) => {
1327
+ let t = typeof e.theme == "string" ? `ref:${e.theme}` : e.theme ? `inline:${Fe(e.theme)}` : "", n = typeof e.recipe == "string" ? `ref:${e.recipe}` : e.recipe ? `inline:${Ie(e.recipe)}` : "", r = e.overrides, i = q(r?.tokens), a = Object.entries(r?.components ?? {}).sort(([e], [t]) => e.localeCompare(t)).filter(([, e]) => !!e?.tokens).map(([e, t]) => `${e}:${q(t.tokens)}`).join(";");
1080
1328
  return `${e.mode ?? ""}|${t}|${n}|${e.variant ?? ""}|${e.strict ?? ""}|${r?.density ?? ""}|${r?.motion ?? ""}|${i}|${a}`;
1081
- }, G = (e, t) => `${t.prefersDarkScheme}|${t.prefersReducedMotion}|${t.prefersMoreContrast}|${t.forcedColors}|${je(e)}`, K = (e, t, n) => {
1329
+ }, J = (e, t) => `${t.prefersDarkScheme}|${t.prefersReducedMotion}|${t.prefersMoreContrast}|${t.forcedColors}|${Le(e)}`, Y = (e, t, n) => {
1082
1330
  for (let r of Object.keys(n)) {
1083
1331
  if (t.has(r)) continue;
1084
1332
  let n = e.style.getPropertyValue(r);
1085
1333
  t.set(r, n === "" ? null : n);
1086
1334
  }
1087
- }, Me = (e, t, n, r) => {
1335
+ }, X = (e, t, n, r) => {
1088
1336
  let i = new Set(Object.keys(r));
1089
1337
  for (let r of t) {
1090
1338
  if (i.has(r)) continue;
1091
1339
  let t = n.get(r) ?? null;
1092
1340
  t === null ? e.style.removeProperty(r) : e.style.setProperty(r, t);
1093
1341
  }
1094
- }, Ne = (e, t) => {
1095
- let n = R(t);
1096
- for (let t of H) {
1342
+ }, Re = (e, t) => {
1343
+ let n = V(t);
1344
+ for (let t of G) {
1097
1345
  let r = n[t];
1098
1346
  if (r === void 0) {
1099
1347
  if (e.hasAttribute(t)) return !1;
@@ -1101,7 +1349,7 @@ var e = [
1101
1349
  }
1102
1350
  if (e.getAttribute(t) !== r) return !1;
1103
1351
  }
1104
- if (e.getAttribute(I.signature) === n[I.signature]) return !0;
1352
+ if (e.getAttribute(L.signature) === n[L.signature]) return !0;
1105
1353
  if (e.style.colorScheme !== t.effectiveScheme) return !1;
1106
1354
  let r = /* @__PURE__ */ new Map();
1107
1355
  for (let t = 0; t < e.style.length; t += 1) {
@@ -1117,81 +1365,17 @@ var e = [
1117
1365
  let a = window.getComputedStyle(e);
1118
1366
  for (let [e, t] of i) if (a.getPropertyValue(e).trim() !== t) return !1;
1119
1367
  return !0;
1120
- }, Pe = (e, t, n) => Ne(e, n.resolved) ? (K(e, t, n.resolved.tokens), {
1368
+ }, ze = (e, t, n) => Re(e, n.resolved) ? (Y(e, t, n.resolved.tokens), {
1121
1369
  appliedTokens: new Set(Object.keys(n.resolved.tokens)),
1122
1370
  resolved: n.resolved,
1123
- signature: L(n.resolved),
1371
+ signature: B(n.resolved),
1124
1372
  envSnapshot: n.envSnapshot
1125
- }) : null, q = (e) => {
1126
- if (!e) return null;
1127
- let t = e.trim().toLowerCase();
1128
- return t === "light" || t === "dark" ? t : null;
1129
- }, J = (e, t) => {
1130
- if ((t.mode ?? "auto") !== "inherit") return {
1131
- scheme: null,
1132
- source: null
1133
- };
1134
- if (t.hostSchemeResolver) {
1135
- let n = t.hostSchemeResolver(e);
1136
- if (n) return {
1137
- scheme: n,
1138
- source: "host-resolver"
1139
- };
1140
- }
1141
- let n = q(e.getAttribute(I.explicitScheme));
1142
- if (n) return {
1143
- scheme: n,
1144
- source: "host-attribute"
1145
- };
1146
- let r = e.parentElement;
1147
- for (; r;) {
1148
- let e = q(r.getAttribute(I.inheritedScheme)) ?? q(r.getAttribute(I.effectiveScheme)) ?? q(r.getAttribute(I.explicitScheme));
1149
- if (e) return {
1150
- scheme: e,
1151
- source: "host-attribute"
1152
- };
1153
- r = r.parentElement;
1154
- }
1155
- if (typeof window > "u") return {
1156
- scheme: null,
1157
- source: null
1158
- };
1159
- let i = window.getComputedStyle(e).colorScheme;
1160
- return i.includes("dark") ? {
1161
- scheme: "dark",
1162
- source: "host-style"
1163
- } : i.includes("light") ? {
1164
- scheme: "light",
1165
- source: "host-style"
1166
- } : {
1167
- scheme: null,
1168
- source: null
1169
- };
1170
- }, Fe = () => typeof window < "u" && typeof window.matchMedia == "function" ? {
1171
- scheme: window.matchMedia(F.prefersDarkScheme),
1172
- motion: window.matchMedia(F.prefersReducedMotion),
1173
- contrast: window.matchMedia(F.prefersMoreContrast),
1174
- forcedColors: window.matchMedia(F.forcedColors)
1175
- } : {
1176
- scheme: null,
1177
- motion: null,
1178
- contrast: null,
1179
- forcedColors: null
1180
- }, Y = (e, t) => {
1181
- typeof e.addEventListener == "function" ? e.addEventListener("change", t) : e.addListener?.(t);
1182
- }, X = (e, t) => {
1183
- typeof e.removeEventListener == "function" ? e.removeEventListener("change", t) : e.removeListener?.(t);
1184
- }, Ie = (e) => ({
1185
- prefersDarkScheme: e.scheme?.matches ?? !1,
1186
- prefersReducedMotion: e.motion?.matches ?? !1,
1187
- prefersMoreContrast: e.contrast?.matches ?? !1,
1188
- forcedColors: e.forcedColors?.matches ?? !1
1189
- }), Le = (e, t, n, r) => {
1373
+ }) : null, Be = (e, t, n, r) => {
1190
1374
  !e || t.has(n) || (t.add(n), e.observe(n, {
1191
1375
  attributes: !0,
1192
1376
  childList: r,
1193
1377
  subtree: !1,
1194
- attributeFilter: [...we]
1378
+ attributeFilter: [...xe]
1195
1379
  }));
1196
1380
  }, Z = (e, t, n) => {
1197
1381
  if (!t) return;
@@ -1202,10 +1386,10 @@ var e = [
1202
1386
  attributes: !0,
1203
1387
  childList: !1,
1204
1388
  subtree: !1,
1205
- attributeFilter: [...Ce]
1389
+ attributeFilter: [...be]
1206
1390
  });
1207
1391
  let a = e.parentElement;
1208
- for (; a;) Le(t, n, a, !0), a = a.parentElement;
1392
+ for (; a;) Be(t, n, a, !0), a = a.parentElement;
1209
1393
  }, Q = class {
1210
1394
  #e;
1211
1395
  #t;
@@ -1235,47 +1419,56 @@ var e = [
1235
1419
  #T = "";
1236
1420
  #E = null;
1237
1421
  constructor({ host: e, registry: t, getConfig: n, onChange: r, transition: i, hydrate: a }) {
1238
- this.#e = e, this.#t = t ?? x, this.#n = n, this.#r = r, this.#p = i ?? "none", this.#f = a ?? !1, this.#y = e.style.colorScheme || null;
1239
- let o = Fe();
1422
+ this.#e = e, this.#t = t ?? y, this.#n = n, this.#r = r, this.#p = i ?? "none", this.#f = a ?? !1, this.#y = e.style.colorScheme || null;
1423
+ let o = Ce();
1240
1424
  this.#i = o.scheme, this.#o = o.motion, this.#c = o.contrast, this.#u = o.forcedColors, this.#a = () => this.refresh(), this.#s = () => this.refresh(), this.#l = () => this.refresh(), this.#d = () => this.refresh(), this.#m = typeof MutationObserver < "u" ? new MutationObserver(() => this.refresh()) : null, this.#h = this.#t.onChange(() => {
1241
1425
  this.#S = "", this.#T = "", this.refresh();
1242
1426
  });
1243
- for (let t of H) this.#_.set(t, e.getAttribute(t));
1427
+ for (let t of G) this.#_.set(t, e.getAttribute(t));
1244
1428
  }
1245
1429
  get resolved() {
1246
1430
  return this.#E;
1247
1431
  }
1432
+ get #D() {
1433
+ return [
1434
+ {
1435
+ query: this.#i,
1436
+ listener: this.#a
1437
+ },
1438
+ {
1439
+ query: this.#o,
1440
+ listener: this.#s
1441
+ },
1442
+ {
1443
+ query: this.#c,
1444
+ listener: this.#l
1445
+ },
1446
+ {
1447
+ query: this.#u,
1448
+ listener: this.#d
1449
+ }
1450
+ ];
1451
+ }
1248
1452
  connect() {
1249
- this.#x || (this.#x = !0, this.#i && Y(this.#i, this.#a), this.#o && Y(this.#o, this.#s), this.#c && Y(this.#c, this.#l), this.#u && Y(this.#u, this.#d), Z(this.#e, this.#m, this.#g), !(this.#f && this.#O()) && this.refresh());
1453
+ this.#x || (this.#x = !0, De(this.#D), Z(this.#e, this.#m, this.#g), !(this.#f && this.#k()) && this.refresh());
1250
1454
  }
1251
1455
  disconnect() {
1252
- this.#x && (this.#x = !1, this.#i && X(this.#i, this.#a), this.#o && X(this.#o, this.#s), this.#c && X(this.#c, this.#l), this.#u && X(this.#u, this.#d), this.#k(), this.#m?.disconnect(), this.#h?.(), this.#g.clear(), Oe(this.#e, this.#b, this.#_, this.#v, this.#y), this.#b.clear(), this.#S = "", this.#T = "", this.#E = null);
1456
+ this.#x && (this.#x = !1, Oe(this.#D), this.#A(), this.#m?.disconnect(), this.#h?.(), this.#g.clear(), Pe(this.#e, this.#b, this.#_, this.#v, this.#y), this.#b.clear(), this.#S = "", this.#T = "", this.#E = null);
1253
1457
  }
1254
1458
  refresh() {
1255
1459
  if (!this.#x) return;
1256
1460
  Z(this.#e, this.#m, this.#g);
1257
- let e = this.#n(), t = this.#A(), n = G(e, t);
1461
+ let e = this.#n(), t = this.#j(), n = J(e, t);
1258
1462
  if (n === this.#T && (e.mode ?? "auto") !== "inherit") return;
1259
- let r = J(this.#e, e), i = P(e, this.#t, {
1260
- inheritedScheme: r.scheme,
1261
- inheritedSource: r.source ?? void 0,
1262
- systemScheme: t.prefersDarkScheme ? "dark" : "light",
1263
- prefersReducedMotion: t.prefersReducedMotion,
1264
- prefersMoreContrast: t.prefersMoreContrast,
1265
- forcedColors: t.forcedColors
1266
- }), a = L(i);
1267
- if (this.#T = n, a === this.#S) return;
1268
- let o = this.#E;
1269
- this.#S = a, this.#E = i, this.#D(() => {
1270
- K(this.#e, this.#v, i.tokens), Me(this.#e, this.#b, this.#v, i.tokens), this.#b = U(this.#e, i, this.#p), this.#r?.(i), this.#e.dispatchEvent(new CustomEvent(Se.change, {
1271
- detail: { designSystem: i },
1272
- bubbles: !0,
1273
- composed: !0
1274
- }));
1275
- }, i, o);
1463
+ let r = z(this.#e, e, this.#t, t), i = B(r);
1464
+ if (this.#T = n, i === this.#S) return;
1465
+ let a = this.#E;
1466
+ this.#S = i, this.#E = r, this.#O(() => {
1467
+ Y(this.#e, this.#v, r.tokens), X(this.#e, this.#b, this.#v, r.tokens), this.#b = K(this.#e, r, this.#p), this.#r?.(r), Ae(this.#e, r);
1468
+ }, r, a);
1276
1469
  }
1277
- #D(e, t, n) {
1278
- this.#k();
1470
+ #O(e, t, n) {
1471
+ this.#A();
1279
1472
  let r = new AbortController();
1280
1473
  if (this.#C = r, this.#p === "none") {
1281
1474
  r.signal.aborted || e(), this.#C = null;
@@ -1298,33 +1491,21 @@ var e = [
1298
1491
  }, i);
1299
1492
  this.#w = typeof a == "function" ? a : null;
1300
1493
  }
1301
- #O() {
1302
- let e = this.#n(), t = this.#A(), n = J(this.#e, e), r = P(e, this.#t, {
1303
- inheritedScheme: n.scheme,
1304
- inheritedSource: n.source ?? void 0,
1305
- systemScheme: t.prefersDarkScheme ? "dark" : "light",
1306
- prefersReducedMotion: t.prefersReducedMotion,
1307
- prefersMoreContrast: t.prefersMoreContrast,
1308
- forcedColors: t.forcedColors
1309
- }), i = Pe(this.#e, this.#v, {
1310
- resolved: r,
1311
- envSnapshot: G(e, t)
1494
+ #k() {
1495
+ let e = this.#n(), t = this.#j(), n = z(this.#e, e, this.#t, t), r = ze(this.#e, this.#v, {
1496
+ resolved: n,
1497
+ envSnapshot: J(e, t)
1312
1498
  });
1313
- return i ? (this.#b = i.appliedTokens, this.#E = i.resolved, this.#S = i.signature, this.#T = i.envSnapshot, !0) : !1;
1499
+ return r ? (this.#b = r.appliedTokens, this.#E = r.resolved, this.#S = r.signature, this.#T = r.envSnapshot, !0) : !1;
1314
1500
  }
1315
- #k() {
1501
+ #A() {
1316
1502
  this.#C?.abort(), this.#C = null, this.#w?.(), this.#w = null;
1317
1503
  }
1318
- #A() {
1319
- return Ie({
1320
- scheme: this.#i,
1321
- motion: this.#o,
1322
- contrast: this.#c,
1323
- forcedColors: this.#u
1324
- });
1504
+ #j() {
1505
+ return ke(this.#i, this.#o, this.#c, this.#u);
1325
1506
  }
1326
1507
  }, $ = (e, t = {}, n = !1) => {
1327
- let r = (...e) => m(M(...e)), i = r(t.config), a = i, o = t.registry?.clone() ?? x.clone(), s = new Q({
1508
+ let r = (...e) => m(M(...e)), i = r(t.config), a = i, o = t.registry?.clone() ?? y.clone(), s = new Q({
1328
1509
  host: e,
1329
1510
  registry: o,
1330
1511
  getConfig: () => a,
@@ -1354,15 +1535,15 @@ var e = [
1354
1535
  s.disconnect();
1355
1536
  }
1356
1537
  });
1357
- }, Re = (e, t = {}) => $(e, t), ze = /^-?[_a-zA-Z][_a-zA-Z0-9-]*$/, Be = (e) => {
1538
+ }, Ve = (e, t = {}) => $(e, t), He = /^-?[_a-zA-Z][_a-zA-Z0-9-]*$/, Ue = (e) => {
1358
1539
  if (!e.trim()) throw Error("[mlform] createDesignSystemStylesheet layer name must be non-empty");
1359
1540
  if (e.includes("{") || e.includes("}") || e.includes(";")) throw Error("[mlform] createDesignSystemStylesheet layer name contains unsafe characters");
1360
- if (e.split(".").some((e) => !ze.test(e))) throw Error("[mlform] createDesignSystemStylesheet layer name is not a valid CSS layer name");
1361
- }, Ve = (e, t = ":host") => {
1541
+ if (e.split(".").some((e) => !He.test(e))) throw Error("[mlform] createDesignSystemStylesheet layer name is not a valid CSS layer name");
1542
+ }, We = (e, t = ":host") => {
1362
1543
  let n = typeof t == "string" ? { selector: t } : t, r = n.selector ?? ":host", i = n.layer;
1363
- Ee(r), i && Be(i);
1364
- let a = `${r} {\n${B(e).map(([e, t]) => ` ${e}: ${t};`).join("\n")}\n}`;
1544
+ Me(r), i && Ue(i);
1545
+ let a = `${r} {\n${U(e).map(([e, t]) => ` ${e}: ${t};`).join("\n")}\n}`;
1365
1546
  return i ? `@layer ${i} {\n${a}\n}` : a;
1366
- }, He = (e, t = {}) => $(e, t, !0);
1547
+ }, Ge = (e, t = {}) => $(e, t, !0);
1367
1548
  //#endregion
1368
- export { r as C, i as S, e as T, v as _, U as a, g as b, R as c, N as d, M as f, y as g, x as h, Q as i, P as l, ne as m, Ve as n, V as o, re as p, Re as r, L as s, He as t, xe as u, b as v, t as w, h as x, _ as y };
1549
+ export { r as C, i as S, e as T, _, K as a, p as b, V as c, N as d, M as f, v as g, y as h, Q as i, F as l, ne as m, We as n, W as o, re as p, Ve as r, B as s, Ge as t, P as u, g as v, t as w, s as x, h as y };