@app-studio/components 0.11.13 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1093) hide show
  1. package/README.md +9 -2
  2. package/compiler/vite.d.mts +5 -0
  3. package/compiler/vite.mjs +190 -0
  4. package/dist/alert.cjs.js +2 -0
  5. package/dist/alert.cjs.js.map +1 -0
  6. package/dist/alert.esm.d.mts +1 -0
  7. package/dist/alert.esm.mjs +5 -0
  8. package/dist/alert.esm.mjs.map +1 -0
  9. package/dist/avatar.cjs.js +2 -0
  10. package/dist/avatar.cjs.js.map +1 -0
  11. package/dist/avatar.esm.d.mts +1 -0
  12. package/dist/avatar.esm.mjs +5 -0
  13. package/dist/avatar.esm.mjs.map +1 -0
  14. package/dist/button.cjs.js +2 -0
  15. package/dist/button.cjs.js.map +1 -0
  16. package/dist/button.esm.d.mts +1 -0
  17. package/dist/button.esm.mjs +5 -0
  18. package/dist/button.esm.mjs.map +1 -0
  19. package/dist/card.cjs.js +2 -0
  20. package/dist/card.cjs.js.map +1 -0
  21. package/dist/card.esm.d.mts +1 -0
  22. package/dist/card.esm.mjs +5 -0
  23. package/dist/card.esm.mjs.map +1 -0
  24. package/dist/checkbox.cjs.js +2 -0
  25. package/dist/checkbox.cjs.js.map +1 -0
  26. package/dist/checkbox.esm.d.mts +1 -0
  27. package/dist/checkbox.esm.mjs +5 -0
  28. package/dist/checkbox.esm.mjs.map +1 -0
  29. package/dist/chunks/Alert-B5vkpWXy.mjs +192 -0
  30. package/dist/chunks/Alert-B5vkpWXy.mjs.map +1 -0
  31. package/dist/chunks/Alert-BHlgJZAo.cjs +2 -0
  32. package/dist/chunks/Alert-BHlgJZAo.cjs.map +1 -0
  33. package/dist/chunks/AttachmentPreview-B2-kP0Bn.mjs +6525 -0
  34. package/dist/chunks/AttachmentPreview-B2-kP0Bn.mjs.map +1 -0
  35. package/dist/chunks/AttachmentPreview-BZV6xSa4.cjs +2 -0
  36. package/dist/chunks/AttachmentPreview-BZV6xSa4.cjs.map +1 -0
  37. package/dist/chunks/Avatar-CC1SDq6h.mjs +105 -0
  38. package/dist/chunks/Avatar-CC1SDq6h.mjs.map +1 -0
  39. package/dist/chunks/Avatar-DtfD7QQ6.cjs +2 -0
  40. package/dist/chunks/Avatar-DtfD7QQ6.cjs.map +1 -0
  41. package/dist/chunks/Button.core-BB25t8wB.cjs +7 -0
  42. package/dist/chunks/Button.core-BB25t8wB.cjs.map +1 -0
  43. package/dist/chunks/Button.core-oxCH_VTn.mjs +731 -0
  44. package/dist/chunks/Button.core-oxCH_VTn.mjs.map +1 -0
  45. package/dist/chunks/Button.pilot-BJK10U1-.mjs +6 -0
  46. package/dist/chunks/Button.pilot-BJK10U1-.mjs.map +1 -0
  47. package/dist/chunks/Button.pilot-eWGY9Jm5.cjs +2 -0
  48. package/dist/chunks/Button.pilot-eWGY9Jm5.cjs.map +1 -0
  49. package/dist/chunks/Card-CK_D7gzP.cjs +2 -0
  50. package/dist/chunks/Card-CK_D7gzP.cjs.map +1 -0
  51. package/dist/chunks/Card-ymI5Thma.mjs +208 -0
  52. package/dist/chunks/Card-ymI5Thma.mjs.map +1 -0
  53. package/dist/chunks/Checkbox-BXbEChdd.cjs +2 -0
  54. package/dist/chunks/Checkbox-BXbEChdd.cjs.map +1 -0
  55. package/dist/chunks/Checkbox-DnwrApdj.mjs +21 -0
  56. package/dist/chunks/Checkbox-DnwrApdj.mjs.map +1 -0
  57. package/dist/chunks/Checkbox.view-B7K8ycvs.cjs +2 -0
  58. package/dist/chunks/Checkbox.view-B7K8ycvs.cjs.map +1 -0
  59. package/dist/chunks/Checkbox.view-CCGfVtqr.mjs +329 -0
  60. package/dist/chunks/Checkbox.view-CCGfVtqr.mjs.map +1 -0
  61. package/dist/chunks/FixedIcons-Dz_f-yDL.cjs +2 -0
  62. package/dist/chunks/FixedIcons-Dz_f-yDL.cjs.map +1 -0
  63. package/dist/chunks/FixedIcons-fxASFYew.mjs +37 -0
  64. package/dist/chunks/FixedIcons-fxASFYew.mjs.map +1 -0
  65. package/dist/chunks/Formik.Uploader-CIYySBWB.mjs +6962 -0
  66. package/dist/chunks/Formik.Uploader-CIYySBWB.mjs.map +1 -0
  67. package/dist/chunks/Formik.Uploader-DePTdd7A.cjs +22 -0
  68. package/dist/chunks/Formik.Uploader-DePTdd7A.cjs.map +1 -0
  69. package/dist/chunks/Icon-C37alecH.cjs +2 -0
  70. package/dist/chunks/Icon-C37alecH.cjs.map +1 -0
  71. package/dist/chunks/Icon-Cy5kEVYz.mjs +148 -0
  72. package/dist/chunks/Icon-Cy5kEVYz.mjs.map +1 -0
  73. package/dist/chunks/Icon.frame-COrb0u94.mjs +29 -0
  74. package/dist/chunks/Icon.frame-COrb0u94.mjs.map +1 -0
  75. package/dist/chunks/Icon.frame-DD6ycsWD.cjs +2 -0
  76. package/dist/chunks/Icon.frame-DD6ycsWD.cjs.map +1 -0
  77. package/dist/chunks/Label-BVEAujj2.mjs +83 -0
  78. package/dist/chunks/Label-BVEAujj2.mjs.map +1 -0
  79. package/dist/chunks/Label-Bd0TpfkG.cjs +2 -0
  80. package/dist/chunks/Label-Bd0TpfkG.cjs.map +1 -0
  81. package/dist/chunks/Loader-4V81BN95.cjs +2 -0
  82. package/dist/chunks/Loader-4V81BN95.cjs.map +1 -0
  83. package/dist/chunks/Loader-DMLQky1k.mjs +171 -0
  84. package/dist/chunks/Loader-DMLQky1k.mjs.map +1 -0
  85. package/dist/chunks/Modal-BzlrQQu5.cjs +2 -0
  86. package/dist/chunks/Modal-BzlrQQu5.cjs.map +1 -0
  87. package/dist/chunks/Modal-CqbUQXoc.mjs +356 -0
  88. package/dist/chunks/Modal-CqbUQXoc.mjs.map +1 -0
  89. package/dist/chunks/Router-DjmVh9pK.cjs +2 -0
  90. package/dist/chunks/Router-DjmVh9pK.cjs.map +1 -0
  91. package/dist/chunks/Router-Dtb8HvI0.mjs +76 -0
  92. package/dist/chunks/Router-Dtb8HvI0.mjs.map +1 -0
  93. package/dist/chunks/Router.store-Bxe2uZWk.cjs +2 -0
  94. package/dist/chunks/Router.store-Bxe2uZWk.cjs.map +1 -0
  95. package/dist/chunks/Router.store-C0zWd45T.mjs +27 -0
  96. package/dist/chunks/Router.store-C0zWd45T.mjs.map +1 -0
  97. package/dist/chunks/Select-CrOxhfvQ.mjs +28 -0
  98. package/dist/chunks/Select-CrOxhfvQ.mjs.map +1 -0
  99. package/dist/chunks/Select-DRMUC3NX.cjs +2 -0
  100. package/dist/chunks/Select-DRMUC3NX.cjs.map +1 -0
  101. package/dist/chunks/Select.view-BHMiRNIc.mjs +661 -0
  102. package/dist/chunks/Select.view-BHMiRNIc.mjs.map +1 -0
  103. package/dist/chunks/Select.view-BV01zWHM.cjs +2 -0
  104. package/dist/chunks/Select.view-BV01zWHM.cjs.map +1 -0
  105. package/dist/chunks/Switch-04GGHGrV.mjs +11 -0
  106. package/dist/chunks/Switch-04GGHGrV.mjs.map +1 -0
  107. package/dist/chunks/Switch-DqgmPp8M.cjs +2 -0
  108. package/dist/chunks/Switch-DqgmPp8M.cjs.map +1 -0
  109. package/dist/chunks/Switch.view-6ncV6Ifz.cjs +2 -0
  110. package/dist/chunks/Switch.view-6ncV6Ifz.cjs.map +1 -0
  111. package/dist/chunks/Switch.view-DUvFLhyy.mjs +310 -0
  112. package/dist/chunks/Switch.view-DUvFLhyy.mjs.map +1 -0
  113. package/dist/chunks/Tabs-BdoE88Ee.mjs +567 -0
  114. package/dist/chunks/Tabs-BdoE88Ee.mjs.map +1 -0
  115. package/dist/chunks/Tabs-DneEt-le.cjs +2 -0
  116. package/dist/chunks/Tabs-DneEt-le.cjs.map +1 -0
  117. package/dist/chunks/TextField-Bwc_F2Rq.mjs +277 -0
  118. package/dist/chunks/TextField-Bwc_F2Rq.mjs.map +1 -0
  119. package/dist/chunks/TextField-CwaxvcqN.cjs +2 -0
  120. package/dist/chunks/TextField-CwaxvcqN.cjs.map +1 -0
  121. package/dist/chunks/default-1F10zins.mjs +610 -0
  122. package/dist/chunks/default-1F10zins.mjs.map +1 -0
  123. package/dist/chunks/default-W-NMTEJ3.cjs +2 -0
  124. package/dist/chunks/default-W-NMTEJ3.cjs.map +1 -0
  125. package/dist/chunks/designSystem.page-BgmjSYsz.cjs +11 -0
  126. package/dist/chunks/designSystem.page-BgmjSYsz.cjs.map +1 -0
  127. package/dist/chunks/designSystem.page-CM_h09Ui.mjs +13121 -0
  128. package/dist/chunks/designSystem.page-CM_h09Ui.mjs.map +1 -0
  129. package/dist/chunks/useFieldDesignSystemProps-BZj7d9gK.mjs +283 -0
  130. package/dist/chunks/useFieldDesignSystemProps-BZj7d9gK.mjs.map +1 -0
  131. package/dist/chunks/useFieldDesignSystemProps-CgVU3R10.cjs +2 -0
  132. package/dist/chunks/useFieldDesignSystemProps-CgVU3R10.cjs.map +1 -0
  133. package/dist/design-system-preview.cjs.js +2 -0
  134. package/dist/design-system-preview.cjs.js.map +1 -0
  135. package/dist/design-system-preview.esm.d.mts +1 -0
  136. package/dist/design-system-preview.esm.mjs +30 -0
  137. package/dist/design-system-preview.esm.mjs.map +1 -0
  138. package/dist/formik.cjs.js +2 -0
  139. package/dist/formik.cjs.js.map +1 -0
  140. package/dist/formik.esm.d.mts +1 -0
  141. package/dist/formik.esm.mjs +28 -0
  142. package/dist/formik.esm.mjs.map +1 -0
  143. package/dist/link.cjs.js +2 -0
  144. package/dist/link.cjs.js.map +1 -0
  145. package/dist/link.esm.d.mts +1 -0
  146. package/dist/link.esm.mjs +78 -0
  147. package/dist/link.esm.mjs.map +1 -0
  148. package/dist/modal.cjs.js +2 -0
  149. package/dist/modal.cjs.js.map +1 -0
  150. package/dist/modal.esm.d.mts +1 -0
  151. package/dist/modal.esm.mjs +10 -0
  152. package/dist/modal.esm.mjs.map +1 -0
  153. package/dist/native/components/Accordion/Accordion/Accordion.view.js +1 -1
  154. package/dist/native/components/Accordion/Accordion/Accordion.view.js.map +1 -1
  155. package/dist/native/components/Accordion/Accordion/Accordion.view.native.js +1 -1
  156. package/dist/native/components/Accordion/Accordion/Accordion.view.native.js.map +1 -1
  157. package/dist/native/components/Accordion/Accordion.js +1 -1
  158. package/dist/native/components/Accordion/Accordion.js.map +1 -1
  159. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.native.js +14 -6
  160. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.native.js.map +1 -1
  161. package/dist/native/components/Alert/Alert/Alert.view.d.ts +3 -1
  162. package/dist/native/components/Alert/Alert/Alert.view.js +16 -6
  163. package/dist/native/components/Alert/Alert/Alert.view.js.map +1 -1
  164. package/dist/native/components/Alert/Alert/Alert.view.native.d.ts +3 -1
  165. package/dist/native/components/Alert/Alert/Alert.view.native.js +23 -5
  166. package/dist/native/components/Alert/Alert/Alert.view.native.js.map +1 -1
  167. package/dist/native/components/Alert/Alert.js +3 -3
  168. package/dist/native/components/Alert/Alert.js.map +1 -1
  169. package/dist/native/components/Avatar/Avatar/Avatar.props.d.ts +1 -1
  170. package/dist/native/components/Avatar/Avatar/Avatar.state.d.ts +2 -2
  171. package/dist/native/components/Avatar/Avatar/Avatar.state.js +6 -5
  172. package/dist/native/components/Avatar/Avatar/Avatar.state.js.map +1 -1
  173. package/dist/native/components/Avatar/Avatar/Avatar.view.d.ts +1 -1
  174. package/dist/native/components/Avatar/Avatar/Avatar.view.js +2 -2
  175. package/dist/native/components/Avatar/Avatar/Avatar.view.js.map +1 -1
  176. package/dist/native/components/Avatar/Avatar.js +3 -3
  177. package/dist/native/components/Avatar/Avatar.js.map +1 -1
  178. package/dist/native/components/Badge/Badge.js +1 -1
  179. package/dist/native/components/Badge/Badge.js.map +1 -1
  180. package/dist/native/components/Button/Button/Button.style.js +11 -6
  181. package/dist/native/components/Button/Button/Button.style.js.map +1 -1
  182. package/dist/native/components/Button/Button/Button.view.d.ts +6 -1
  183. package/dist/native/components/Button/Button/Button.view.js +15 -7
  184. package/dist/native/components/Button/Button/Button.view.js.map +1 -1
  185. package/dist/native/components/Button/Button/Button.view.native.d.ts +5 -1
  186. package/dist/native/components/Button/Button/Button.view.native.js +31 -6
  187. package/dist/native/components/Button/Button/Button.view.native.js.map +1 -1
  188. package/dist/native/components/Button/Button.core.d.ts +4 -0
  189. package/dist/native/components/Button/Button.core.js +39 -0
  190. package/dist/native/components/Button/Button.core.js.map +1 -0
  191. package/dist/native/components/Button/Button.d.ts +1 -3
  192. package/dist/native/components/Button/Button.js +3 -36
  193. package/dist/native/components/Button/Button.js.map +1 -1
  194. package/dist/native/components/Button/Button.pilot.d.ts +2 -0
  195. package/dist/native/components/Button/Button.pilot.js +3 -0
  196. package/dist/native/components/Button/Button.pilot.js.map +1 -0
  197. package/dist/native/components/Card/Card/Card.view.d.ts +3 -1
  198. package/dist/native/components/Card/Card/Card.view.js +32 -24
  199. package/dist/native/components/Card/Card/Card.view.js.map +1 -1
  200. package/dist/native/components/Card/Card.js +3 -3
  201. package/dist/native/components/Card/Card.js.map +1 -1
  202. package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.props.d.ts +1 -0
  203. package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.state.d.ts +5 -1
  204. package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.state.js +13 -0
  205. package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.state.js.map +1 -1
  206. package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.style.d.ts +3 -12
  207. package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.style.js +3 -12
  208. package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.style.js.map +1 -1
  209. package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.js +20 -17
  210. package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.js.map +1 -1
  211. package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.native.js +37 -31
  212. package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.native.js.map +1 -1
  213. package/dist/native/components/Form/Checkbox/Checkbox.js +3 -3
  214. package/dist/native/components/Form/Checkbox/Checkbox.js.map +1 -1
  215. package/dist/native/components/Form/DatePicker/DatePicker/DatePicker.state.js +8 -2
  216. package/dist/native/components/Form/DatePicker/DatePicker/DatePicker.state.js.map +1 -1
  217. package/dist/native/components/Form/Radio/Radio.js +1 -1
  218. package/dist/native/components/Form/Radio/Radio.js.map +1 -1
  219. package/dist/native/components/Form/Select/Select/Select.props.d.ts +1 -0
  220. package/dist/native/components/Form/Select/Select/Select.view.js +3 -3
  221. package/dist/native/components/Form/Select/Select/Select.view.js.map +1 -1
  222. package/dist/native/components/Form/Select/Select/Select.view.native.js +18 -5
  223. package/dist/native/components/Form/Select/Select/Select.view.native.js.map +1 -1
  224. package/dist/native/components/Form/Select/Select.js +3 -3
  225. package/dist/native/components/Form/Select/Select.js.map +1 -1
  226. package/dist/native/components/Form/Switch/Switch/Switch.style.d.ts +3 -8
  227. package/dist/native/components/Form/Switch/Switch/Switch.style.js +3 -8
  228. package/dist/native/components/Form/Switch/Switch/Switch.style.js.map +1 -1
  229. package/dist/native/components/Form/Switch/Switch/Switch.view.js +1 -5
  230. package/dist/native/components/Form/Switch/Switch/Switch.view.js.map +1 -1
  231. package/dist/native/components/Form/Switch/Switch/Switch.view.native.js +7 -4
  232. package/dist/native/components/Form/Switch/Switch/Switch.view.native.js.map +1 -1
  233. package/dist/native/components/Form/Switch/Switch.js +1 -1
  234. package/dist/native/components/Form/Switch/Switch.js.map +1 -1
  235. package/dist/native/components/Form/TextArea/TextArea.js +1 -1
  236. package/dist/native/components/Form/TextArea/TextArea.js.map +1 -1
  237. package/dist/native/components/Form/TextField/TextField/TextField.props.d.ts +1 -0
  238. package/dist/native/components/Form/TextField/TextField/TextField.view.js +3 -3
  239. package/dist/native/components/Form/TextField/TextField/TextField.view.js.map +1 -1
  240. package/dist/native/components/Form/TextField/TextField/TextField.view.native.js +13 -12
  241. package/dist/native/components/Form/TextField/TextField/TextField.view.native.js.map +1 -1
  242. package/dist/native/components/Form/TextField/TextField.js +3 -3
  243. package/dist/native/components/Form/TextField/TextField.js.map +1 -1
  244. package/dist/native/components/Icon/FixedIcons.d.ts +10 -0
  245. package/dist/native/components/Icon/FixedIcons.js +23 -0
  246. package/dist/native/components/Icon/FixedIcons.js.map +1 -0
  247. package/dist/native/components/Icon/FixedIcons.native.d.ts +17 -0
  248. package/dist/native/components/Icon/FixedIcons.native.js +30 -0
  249. package/dist/native/components/Icon/FixedIcons.native.js.map +1 -0
  250. package/dist/native/components/Icon/Icon.d.ts +2 -12
  251. package/dist/native/components/Icon/Icon.frame.d.ts +14 -0
  252. package/dist/native/components/Icon/Icon.frame.js +17 -0
  253. package/dist/native/components/Icon/Icon.frame.js.map +1 -0
  254. package/dist/native/components/Icon/Icon.js +11 -23
  255. package/dist/native/components/Icon/Icon.js.map +1 -1
  256. package/dist/native/components/Input/FieldContent/FieldContent/FieldContent.props.d.ts +1 -0
  257. package/dist/native/components/Input/FieldContent/FieldContent.js +16 -3
  258. package/dist/native/components/Input/FieldContent/FieldContent.js.map +1 -1
  259. package/dist/native/components/Input/useFieldDesignSystemProps.d.ts +9 -0
  260. package/dist/native/components/Input/useFieldDesignSystemProps.js +15 -0
  261. package/dist/native/components/Input/useFieldDesignSystemProps.js.map +1 -0
  262. package/dist/native/components/Loader/Loader.js +1 -1
  263. package/dist/native/components/Loader/Loader.js.map +1 -1
  264. package/dist/native/components/Modal/Modal/Modal.props.d.ts +5 -0
  265. package/dist/native/components/Modal/Modal/Modal.view.js +51 -18
  266. package/dist/native/components/Modal/Modal/Modal.view.js.map +1 -1
  267. package/dist/native/components/Modal/Modal/Modal.view.native.js +6 -5
  268. package/dist/native/components/Modal/Modal/Modal.view.native.js.map +1 -1
  269. package/dist/native/components/NavigationMenu/NavigationMenu.js +1 -1
  270. package/dist/native/components/NavigationMenu/NavigationMenu.js.map +1 -1
  271. package/dist/native/components/PageHeader/PageHeader.js +1 -1
  272. package/dist/native/components/PageHeader/PageHeader.js.map +1 -1
  273. package/dist/native/components/ProgressBar/ProgressBar.js +1 -1
  274. package/dist/native/components/ProgressBar/ProgressBar.js.map +1 -1
  275. package/dist/native/components/Separator/Separator.js +1 -1
  276. package/dist/native/components/Separator/Separator.js.map +1 -1
  277. package/dist/native/components/Slider/Slider.js +1 -1
  278. package/dist/native/components/Slider/Slider.js.map +1 -1
  279. package/dist/native/components/StatePanel/StatePanel.js +1 -1
  280. package/dist/native/components/StatePanel/StatePanel.js.map +1 -1
  281. package/dist/native/components/StatusIndicator/StatusIndicator.js +1 -1
  282. package/dist/native/components/StatusIndicator/StatusIndicator.js.map +1 -1
  283. package/dist/native/components/Table/Table.js +1 -1
  284. package/dist/native/components/Table/Table.js.map +1 -1
  285. package/dist/native/components/Tabs/Tabs/TabHeader.d.ts +2 -0
  286. package/dist/native/components/Tabs/Tabs/TabHeader.js +7 -6
  287. package/dist/native/components/Tabs/Tabs/TabHeader.js.map +1 -1
  288. package/dist/native/components/Tabs/Tabs/Tabs.props.d.ts +10 -0
  289. package/dist/native/components/Tabs/Tabs/Tabs.state.d.ts +1 -0
  290. package/dist/native/components/Tabs/Tabs/Tabs.state.js +20 -43
  291. package/dist/native/components/Tabs/Tabs/Tabs.state.js.map +1 -1
  292. package/dist/native/components/Tabs/Tabs/Tabs.styles.d.ts +11 -0
  293. package/dist/native/components/Tabs/Tabs/Tabs.styles.js +7 -0
  294. package/dist/native/components/Tabs/Tabs/Tabs.styles.js.map +1 -0
  295. package/dist/native/components/Tabs/Tabs/Tabs.type.d.ts +4 -0
  296. package/dist/native/components/Tabs/Tabs/Tabs.view.js +146 -58
  297. package/dist/native/components/Tabs/Tabs/Tabs.view.js.map +1 -1
  298. package/dist/native/components/Tabs/Tabs/Tabs.view.native.js +83 -19
  299. package/dist/native/components/Tabs/Tabs/Tabs.view.native.js.map +1 -1
  300. package/dist/native/components/Tabs/Tabs.js +8 -8
  301. package/dist/native/components/Tabs/Tabs.js.map +1 -1
  302. package/dist/native/components/index.js +1 -1
  303. package/dist/native/components/index.js.map +1 -1
  304. package/dist/native/components/pilot/alert.d.ts +2 -0
  305. package/dist/native/components/pilot/alert.js +2 -0
  306. package/dist/native/components/pilot/alert.js.map +1 -0
  307. package/dist/native/components/pilot/avatar.d.ts +2 -0
  308. package/dist/native/components/pilot/avatar.js +2 -0
  309. package/dist/native/components/pilot/avatar.js.map +1 -0
  310. package/dist/native/components/pilot/blocks/SettingsPanel.d.ts +8 -0
  311. package/dist/native/components/pilot/blocks/SettingsPanel.js +26 -0
  312. package/dist/native/components/pilot/blocks/SettingsPanel.js.map +1 -0
  313. package/dist/native/components/pilot/blocks/SignIn.d.ts +8 -0
  314. package/dist/native/components/pilot/blocks/SignIn.js +57 -0
  315. package/dist/native/components/pilot/blocks/SignIn.js.map +1 -0
  316. package/dist/native/components/pilot/button.d.ts +1 -0
  317. package/dist/native/components/pilot/button.js +2 -0
  318. package/dist/native/components/pilot/button.js.map +1 -0
  319. package/dist/native/components/pilot/card.d.ts +2 -0
  320. package/dist/native/components/pilot/card.js +2 -0
  321. package/dist/native/components/pilot/card.js.map +1 -0
  322. package/dist/native/components/pilot/checkbox.d.ts +2 -0
  323. package/dist/native/components/pilot/checkbox.js +2 -0
  324. package/dist/native/components/pilot/checkbox.js.map +1 -0
  325. package/dist/native/components/pilot/modal.d.ts +2 -0
  326. package/dist/native/components/pilot/modal.js +2 -0
  327. package/dist/native/components/pilot/modal.js.map +1 -0
  328. package/dist/native/components/pilot/select.d.ts +2 -0
  329. package/dist/native/components/pilot/select.js +2 -0
  330. package/dist/native/components/pilot/select.js.map +1 -0
  331. package/dist/native/components/pilot/settings-panel.d.ts +1 -0
  332. package/dist/native/components/pilot/settings-panel.js +2 -0
  333. package/dist/native/components/pilot/settings-panel.js.map +1 -0
  334. package/dist/native/components/pilot/sign-in.d.ts +1 -0
  335. package/dist/native/components/pilot/sign-in.js +2 -0
  336. package/dist/native/components/pilot/sign-in.js.map +1 -0
  337. package/dist/native/components/pilot/switch.d.ts +2 -0
  338. package/dist/native/components/pilot/switch.js +2 -0
  339. package/dist/native/components/pilot/switch.js.map +1 -0
  340. package/dist/native/components/pilot/tabs.d.ts +2 -0
  341. package/dist/native/components/pilot/tabs.js +2 -0
  342. package/dist/native/components/pilot/tabs.js.map +1 -0
  343. package/dist/native/components/pilot/text-field.d.ts +2 -0
  344. package/dist/native/components/pilot/text-field.js +2 -0
  345. package/dist/native/components/pilot/text-field.js.map +1 -0
  346. package/dist/native/design-system/DesignSystemProvider.d.ts +4 -24
  347. package/dist/native/design-system/DesignSystemProvider.js +5 -53
  348. package/dist/native/design-system/DesignSystemProvider.js.map +1 -1
  349. package/dist/native/design-system/configs/default.json +1 -1
  350. package/dist/native/design-system/theme.d.ts +37 -0
  351. package/dist/native/design-system/theme.js +83 -0
  352. package/dist/native/design-system/theme.js.map +1 -0
  353. package/dist/native/design-system/types.d.ts +11 -11
  354. package/dist/native/design-system/utils.d.ts +5 -2
  355. package/dist/native/design-system/utils.js +42 -10
  356. package/dist/native/design-system/utils.js.map +1 -1
  357. package/dist/presets.cjs.js +2 -0
  358. package/dist/presets.cjs.js.map +1 -0
  359. package/dist/presets.esm.d.mts +1 -0
  360. package/dist/presets.esm.mjs +10816 -0
  361. package/dist/presets.esm.mjs.map +1 -0
  362. package/dist/registry/alert.json +90 -0
  363. package/dist/registry/avatar.json +78 -0
  364. package/dist/registry/button.json +147 -0
  365. package/dist/registry/card.json +78 -0
  366. package/dist/registry/checkbox.json +134 -0
  367. package/dist/registry/modal.json +115 -0
  368. package/dist/registry/registry.json +1307 -0
  369. package/dist/registry/select.json +254 -0
  370. package/dist/registry/settings-panel.json +55 -0
  371. package/dist/registry/sign-in.json +56 -0
  372. package/dist/registry/switch.json +113 -0
  373. package/dist/registry/tabs.json +88 -0
  374. package/dist/registry/text-field.json +214 -0
  375. package/dist/registry/theme.json +71 -0
  376. package/dist/router.cjs.js +2 -0
  377. package/dist/router.cjs.js.map +1 -0
  378. package/dist/router.esm.d.mts +1 -0
  379. package/dist/router.esm.mjs +11 -0
  380. package/dist/router.esm.mjs.map +1 -0
  381. package/dist/select.cjs.js +2 -0
  382. package/dist/select.cjs.js.map +1 -0
  383. package/dist/select.esm.d.mts +1 -0
  384. package/dist/select.esm.mjs +5 -0
  385. package/dist/select.esm.mjs.map +1 -0
  386. package/dist/settings-panel.cjs.js +2 -0
  387. package/dist/settings-panel.cjs.js.map +1 -0
  388. package/dist/settings-panel.esm.d.mts +1 -0
  389. package/dist/settings-panel.esm.mjs +43 -0
  390. package/dist/settings-panel.esm.mjs.map +1 -0
  391. package/dist/sign-in.cjs.js +2 -0
  392. package/dist/sign-in.cjs.js.map +1 -0
  393. package/dist/sign-in.esm.d.mts +1 -0
  394. package/dist/sign-in.esm.mjs +83 -0
  395. package/dist/sign-in.esm.mjs.map +1 -0
  396. package/dist/switch.cjs.js +2 -0
  397. package/dist/switch.cjs.js.map +1 -0
  398. package/dist/switch.esm.d.mts +1 -0
  399. package/dist/switch.esm.mjs +5 -0
  400. package/dist/switch.esm.mjs.map +1 -0
  401. package/dist/tabs.cjs.js +2 -0
  402. package/dist/tabs.cjs.js.map +1 -0
  403. package/dist/tabs.esm.d.mts +1 -0
  404. package/dist/tabs.esm.mjs +5 -0
  405. package/dist/tabs.esm.mjs.map +1 -0
  406. package/dist/text-field.cjs.js +2 -0
  407. package/dist/text-field.cjs.js.map +1 -0
  408. package/dist/text-field.esm.d.mts +1 -0
  409. package/dist/text-field.esm.mjs +5 -0
  410. package/dist/text-field.esm.mjs.map +1 -0
  411. package/dist/theme.cjs.js +2 -0
  412. package/dist/theme.cjs.js.map +1 -0
  413. package/dist/theme.esm.d.mts +1 -0
  414. package/dist/theme.esm.mjs +169 -0
  415. package/dist/theme.esm.mjs.map +1 -0
  416. package/dist/types/components/Accordion/Accordion/Accordion.props.d.ts +50 -0
  417. package/dist/types/components/Accordion/Accordion/Accordion.state.d.ts +9 -0
  418. package/dist/types/components/Accordion/Accordion/Accordion.style.d.ts +6 -0
  419. package/dist/types/components/Accordion/Accordion/Accordion.type.d.ts +20 -0
  420. package/dist/types/components/Accordion/Accordion/Accordion.view.d.ts +32 -0
  421. package/dist/types/components/Accordion/Accordion.d.ts +2 -0
  422. package/dist/types/components/ActionSheet/ActionSheet/ActionSheet.props.d.ts +36 -0
  423. package/dist/types/components/ActionSheet/ActionSheet/ActionSheet.state.d.ts +8 -0
  424. package/dist/types/components/ActionSheet/ActionSheet/ActionSheet.style.d.ts +17 -0
  425. package/dist/types/components/ActionSheet/ActionSheet/ActionSheet.type.d.ts +37 -0
  426. package/dist/types/components/ActionSheet/ActionSheet/ActionSheet.view.d.ts +4 -0
  427. package/dist/types/components/ActionSheet/ActionSheet.d.ts +3 -0
  428. package/dist/types/components/ActionSheet/index.d.ts +3 -0
  429. package/dist/types/components/Alert/Alert/Alert.props.d.ts +14 -0
  430. package/dist/types/components/Alert/Alert/Alert.state.d.ts +5 -0
  431. package/dist/types/components/Alert/Alert/Alert.style.d.ts +18 -0
  432. package/dist/types/components/Alert/Alert/Alert.type.d.ts +8 -0
  433. package/dist/types/components/Alert/Alert/Alert.view.d.ts +8 -0
  434. package/dist/types/components/Alert/Alert.d.ts +3 -0
  435. package/dist/types/components/AppRoot/AppRoot.d.ts +17 -0
  436. package/dist/types/components/AppRoot/AppRoot.types.d.ts +22 -0
  437. package/dist/types/components/AppRoot/index.d.ts +2 -0
  438. package/dist/types/components/AspectRatio/AspectRatio/AspectRatio.props.d.ts +9 -0
  439. package/dist/types/components/AspectRatio/AspectRatio/AspectRatio.view.d.ts +3 -0
  440. package/dist/types/components/AspectRatio/AspectRatio.d.ts +3 -0
  441. package/dist/types/components/AttachmentGroup/AttachmentGroup/AttachmentGroup.d.ts +18 -0
  442. package/dist/types/components/AttachmentGroup/AttachmentGroup.d.ts +2 -0
  443. package/dist/types/components/AudioInput/AudioInput/AudioInput.props.d.ts +18 -0
  444. package/dist/types/components/AudioInput/AudioInput/AudioInput.state.d.ts +15 -0
  445. package/dist/types/components/AudioInput/AudioInput/AudioInput.view.d.ts +4 -0
  446. package/dist/types/components/AudioInput/AudioInput.d.ts +4 -0
  447. package/dist/types/components/AudioInput/AudioWaveform/AudioWaveform.d.ts +3 -0
  448. package/dist/types/components/AudioInput/AudioWaveform/AudioWaveform.props.d.ts +9 -0
  449. package/dist/types/components/AudioInput/AudioWaveform/AudioWaveform.view.d.ts +4 -0
  450. package/dist/types/components/AudioInput/useAudioRecording.d.ts +13 -0
  451. package/dist/types/components/Avatar/Avatar/Avatar.props.d.ts +14 -0
  452. package/dist/types/components/Avatar/Avatar/Avatar.state.d.ts +4 -0
  453. package/dist/types/components/Avatar/Avatar/Avatar.style.d.ts +14 -0
  454. package/dist/types/components/Avatar/Avatar/Avatar.type.d.ts +7 -0
  455. package/dist/types/components/Avatar/Avatar/Avatar.view.d.ts +3 -0
  456. package/dist/types/components/Avatar/Avatar.d.ts +3 -0
  457. package/dist/types/components/Background/Background/Background.props.d.ts +97 -0
  458. package/dist/types/components/Background/Background/Background.style.d.ts +24 -0
  459. package/dist/types/components/Background/Background/Background.type.d.ts +28 -0
  460. package/dist/types/components/Background/Background/Background.view.d.ts +18 -0
  461. package/dist/types/components/Background/Background.d.ts +15 -0
  462. package/dist/types/components/Background/index.d.ts +3 -0
  463. package/dist/types/components/Badge/Badge/Badge.props.d.ts +23 -0
  464. package/dist/types/components/Badge/Badge/Badge.style.d.ts +41 -0
  465. package/dist/types/components/Badge/Badge/Badge.type.d.ts +13 -0
  466. package/dist/types/components/Badge/Badge/Badge.view.d.ts +7 -0
  467. package/dist/types/components/Badge/Badge.d.ts +3 -0
  468. package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.content.d.ts +19 -0
  469. package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.controls.d.ts +15 -0
  470. package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.dom.d.ts +9 -0
  471. package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.keyboard.d.ts +16 -0
  472. package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.model.d.ts +58 -0
  473. package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.navigation.d.ts +6 -0
  474. package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.props.d.ts +105 -0
  475. package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.selection.d.ts +13 -0
  476. package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.state.d.ts +149 -0
  477. package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.transactions.d.ts +8 -0
  478. package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.upload.d.ts +6 -0
  479. package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.view.d.ts +6 -0
  480. package/dist/types/components/BlockEditor/BlockEditor.d.ts +3 -0
  481. package/dist/types/components/Button/Button/Button.element.d.ts +1 -0
  482. package/dist/types/components/Button/Button/Button.props.d.ts +50 -0
  483. package/dist/types/components/Button/Button/Button.state.d.ts +5 -0
  484. package/dist/types/components/Button/Button/Button.style.d.ts +37 -0
  485. package/dist/types/components/Button/Button/Button.type.d.ts +9 -0
  486. package/dist/types/components/Button/Button/Button.view.d.ts +9 -0
  487. package/dist/types/components/Button/Button.core.d.ts +4 -0
  488. package/dist/types/components/Button/Button.d.ts +1 -0
  489. package/dist/types/components/Button/Button.pilot.d.ts +2 -0
  490. package/dist/types/components/Card/Card/Card.context.d.ts +6 -0
  491. package/dist/types/components/Card/Card/Card.props.d.ts +30 -0
  492. package/dist/types/components/Card/Card/Card.state.d.ts +4 -0
  493. package/dist/types/components/Card/Card/Card.style.d.ts +6 -0
  494. package/dist/types/components/Card/Card/Card.type.d.ts +10 -0
  495. package/dist/types/components/Card/Card/Card.view.d.ts +8 -0
  496. package/dist/types/components/Card/Card.d.ts +2 -0
  497. package/dist/types/components/Carousel/Carousel/Carousel.context.d.ts +3 -0
  498. package/dist/types/components/Carousel/Carousel/Carousel.props.d.ts +51 -0
  499. package/dist/types/components/Carousel/Carousel/Carousel.state.d.ts +29 -0
  500. package/dist/types/components/Carousel/Carousel/Carousel.style.d.ts +6 -0
  501. package/dist/types/components/Carousel/Carousel/Carousel.type.d.ts +32 -0
  502. package/dist/types/components/Carousel/Carousel/Carousel.view.d.ts +8 -0
  503. package/dist/types/components/Carousel/Carousel.d.ts +2 -0
  504. package/dist/types/components/Chart/Chart/BarChart.d.ts +15 -0
  505. package/dist/types/components/Chart/Chart/Chart.props.d.ts +28 -0
  506. package/dist/types/components/Chart/Chart/Chart.state.d.ts +40 -0
  507. package/dist/types/components/Chart/Chart/Chart.style.d.ts +20 -0
  508. package/dist/types/components/Chart/Chart/Chart.type.d.ts +36 -0
  509. package/dist/types/components/Chart/Chart/Chart.view.d.ts +3 -0
  510. package/dist/types/components/Chart/Chart/ChartColors.d.ts +13 -0
  511. package/dist/types/components/Chart/Chart/ChartTooltip.d.ts +14 -0
  512. package/dist/types/components/Chart/Chart/LineChart.d.ts +15 -0
  513. package/dist/types/components/Chart/Chart/PieChart.d.ts +15 -0
  514. package/dist/types/components/Chart/Chart.d.ts +3 -0
  515. package/dist/types/components/ChatInput/AttachmentGroup.d.ts +18 -0
  516. package/dist/types/components/ChatInput/AudioRecorder.d.ts +10 -0
  517. package/dist/types/components/ChatInput/ChatInput/ChatInput.props.d.ts +374 -0
  518. package/dist/types/components/ChatInput/ChatInput/ChatInput.state.d.ts +45 -0
  519. package/dist/types/components/ChatInput/ChatInput/ChatInput.style.d.ts +164 -0
  520. package/dist/types/components/ChatInput/ChatInput/ChatInput.type.d.ts +57 -0
  521. package/dist/types/components/ChatInput/ChatInput/ChatInput.view.d.ts +4 -0
  522. package/dist/types/components/ChatInput/ChatInput.d.ts +3 -0
  523. package/dist/types/components/ChatInput/ChatUploader.d.ts +20 -0
  524. package/dist/types/components/ChatInput/EditableInput.d.ts +44 -0
  525. package/dist/types/components/ChatInput/GuideTip.d.ts +12 -0
  526. package/dist/types/components/ChatInput/MessageInput.d.ts +36 -0
  527. package/dist/types/components/ChatInput/PromptExamples.d.ts +13 -0
  528. package/dist/types/components/ChatInput/index.d.ts +7 -0
  529. package/dist/types/components/ChatWidget/ChatWidget/ChatWidget.props.d.ts +32 -0
  530. package/dist/types/components/ChatWidget/ChatWidget/ChatWidget.state.d.ts +8 -0
  531. package/dist/types/components/ChatWidget/ChatWidget/ChatWidget.style.d.ts +81 -0
  532. package/dist/types/components/ChatWidget/ChatWidget/ChatWidget.type.d.ts +47 -0
  533. package/dist/types/components/ChatWidget/ChatWidget/ChatWidget.view.d.ts +4 -0
  534. package/dist/types/components/ChatWidget/ChatWidget.d.ts +4 -0
  535. package/dist/types/components/ChatWidget/Widget/ChatWidgetWidget.d.ts +14 -0
  536. package/dist/types/components/ChatWidget/Widget/index.d.ts +2 -0
  537. package/dist/types/components/ChatWidget/Widget/useContextSelector.d.ts +22 -0
  538. package/dist/types/components/ColorPicker/ColorPicker/ColorPicker.props.d.ts +44 -0
  539. package/dist/types/components/ColorPicker/ColorPicker/ColorPicker.state.d.ts +14 -0
  540. package/dist/types/components/ColorPicker/ColorPicker/ColorPicker.style.d.ts +19 -0
  541. package/dist/types/components/ColorPicker/ColorPicker/ColorPicker.type.d.ts +34 -0
  542. package/dist/types/components/ColorPicker/ColorPicker/ColorPicker.view.d.ts +4 -0
  543. package/dist/types/components/ColorPicker/ColorPicker.d.ts +3 -0
  544. package/dist/types/components/Command/Command/Command.props.d.ts +66 -0
  545. package/dist/types/components/Command/Command/Command.state.d.ts +17 -0
  546. package/dist/types/components/Command/Command/Command.style.d.ts +19 -0
  547. package/dist/types/components/Command/Command/Command.type.d.ts +42 -0
  548. package/dist/types/components/Command/Command/Command.view.d.ts +31 -0
  549. package/dist/types/components/Command/Command/CommandOverlay.d.ts +10 -0
  550. package/dist/types/components/Command/Command/CommandTextInput.d.ts +8 -0
  551. package/dist/types/components/Command/Command.d.ts +2 -0
  552. package/dist/types/components/Command/index.d.ts +1 -0
  553. package/dist/types/components/ContextMenu/ContextMenu/ContextMenu.props.d.ts +72 -0
  554. package/dist/types/components/ContextMenu/ContextMenu/ContextMenu.state.d.ts +27 -0
  555. package/dist/types/components/ContextMenu/ContextMenu/ContextMenu.style.d.ts +16 -0
  556. package/dist/types/components/ContextMenu/ContextMenu/ContextMenu.type.d.ts +52 -0
  557. package/dist/types/components/ContextMenu/ContextMenu/ContextMenu.view.d.ts +23 -0
  558. package/dist/types/components/ContextMenu/ContextMenu.d.ts +2 -0
  559. package/dist/types/components/CookieConsent/CookieConsent/CookieConsent.props.d.ts +15 -0
  560. package/dist/types/components/CookieConsent/CookieConsent/CookieConsent.state.d.ts +7 -0
  561. package/dist/types/components/CookieConsent/CookieConsent/CookieConsent.style.d.ts +65 -0
  562. package/dist/types/components/CookieConsent/CookieConsent/CookieConsent.type.d.ts +10 -0
  563. package/dist/types/components/CookieConsent/CookieConsent/CookieConsent.view.d.ts +3 -0
  564. package/dist/types/components/CookieConsent/CookieConsent.d.ts +3 -0
  565. package/dist/types/components/DataState/DataState/DataState.props.d.ts +14 -0
  566. package/dist/types/components/DataState/DataState/DataState.state.d.ts +13 -0
  567. package/dist/types/components/DataState/DataState/DataState.type.d.ts +33 -0
  568. package/dist/types/components/DataState/DataState/DataState.view.d.ts +6 -0
  569. package/dist/types/components/DataState/DataState.d.ts +3 -0
  570. package/dist/types/components/DragAndDrop/DragAndDrop/DragAndDrop.props.d.ts +18 -0
  571. package/dist/types/components/DragAndDrop/DragAndDrop/DragAndDrop.state.d.ts +8 -0
  572. package/dist/types/components/DragAndDrop/DragAndDrop/DragAndDrop.view.d.ts +3 -0
  573. package/dist/types/components/DragAndDrop/DragAndDrop.d.ts +4 -0
  574. package/dist/types/components/Drawer/Drawer/Drawer.layout.d.ts +3 -0
  575. package/dist/types/components/Drawer/Drawer/Drawer.props.d.ts +51 -0
  576. package/dist/types/components/Drawer/Drawer/Drawer.store.d.ts +19 -0
  577. package/dist/types/components/Drawer/Drawer/Drawer.style.d.ts +4 -0
  578. package/dist/types/components/Drawer/Drawer/Drawer.type.d.ts +3 -0
  579. package/dist/types/components/Drawer/Drawer/Drawer.view.d.ts +7 -0
  580. package/dist/types/components/Drawer/Drawer.d.ts +3 -0
  581. package/dist/types/components/DropZone/DropZone/DropZone.props.d.ts +24 -0
  582. package/dist/types/components/DropZone/DropZone/DropZone.state.d.ts +2 -0
  583. package/dist/types/components/DropZone/DropZone/DropZone.view.d.ts +3 -0
  584. package/dist/types/components/DropZone/DropZone.d.ts +3 -0
  585. package/dist/types/components/DropdownMenu/DropdownMenu/DropdownMenu.props.d.ts +51 -0
  586. package/dist/types/components/DropdownMenu/DropdownMenu/DropdownMenu.state.d.ts +6 -0
  587. package/dist/types/components/DropdownMenu/DropdownMenu/DropdownMenu.style.d.ts +17 -0
  588. package/dist/types/components/DropdownMenu/DropdownMenu/DropdownMenu.type.d.ts +35 -0
  589. package/dist/types/components/DropdownMenu/DropdownMenu/DropdownMenu.view.d.ts +20 -0
  590. package/dist/types/components/DropdownMenu/DropdownMenu.d.ts +2 -0
  591. package/dist/types/components/EditComponent/EditComponent.d.ts +14 -0
  592. package/dist/types/components/EditComponent/EditPanel.d.ts +7 -0
  593. package/dist/types/components/EditComponent/EditToolbar.d.ts +16 -0
  594. package/dist/types/components/EditComponent/index.d.ts +3 -0
  595. package/dist/types/components/EmojiPicker/EmojiPicker/EmojiPicker.data.d.ts +3 -0
  596. package/dist/types/components/EmojiPicker/EmojiPicker/EmojiPicker.props.d.ts +75 -0
  597. package/dist/types/components/EmojiPicker/EmojiPicker/EmojiPicker.state.d.ts +38 -0
  598. package/dist/types/components/EmojiPicker/EmojiPicker/EmojiPicker.style.d.ts +18 -0
  599. package/dist/types/components/EmojiPicker/EmojiPicker/EmojiPicker.type.d.ts +28 -0
  600. package/dist/types/components/EmojiPicker/EmojiPicker/EmojiPicker.view.d.ts +4 -0
  601. package/dist/types/components/EmojiPicker/EmojiPicker.d.ts +3 -0
  602. package/dist/types/components/File/File.d.ts +14 -0
  603. package/dist/types/components/Form/Checkbox/Checkbox/Checkbox.props.d.ts +31 -0
  604. package/dist/types/components/Form/Checkbox/Checkbox/Checkbox.state.d.ts +12 -0
  605. package/dist/types/components/Form/Checkbox/Checkbox/Checkbox.style.d.ts +70 -0
  606. package/dist/types/components/Form/Checkbox/Checkbox/Checkbox.type.d.ts +8 -0
  607. package/dist/types/components/Form/Checkbox/Checkbox/Checkbox.view.d.ts +4 -0
  608. package/dist/types/components/Form/Checkbox/Checkbox.d.ts +6 -0
  609. package/dist/types/components/Form/ColorInput/ColorInput/ColorInput.props.d.ts +54 -0
  610. package/dist/types/components/Form/ColorInput/ColorInput/ColorInput.state.d.ts +19 -0
  611. package/dist/types/components/Form/ColorInput/ColorInput/ColorInput.style.d.ts +16 -0
  612. package/dist/types/components/Form/ColorInput/ColorInput/ColorInput.type.d.ts +37 -0
  613. package/dist/types/components/Form/ColorInput/ColorInput/ColorInput.view.d.ts +4 -0
  614. package/dist/types/components/Form/ColorInput/ColorInput/colorFormat.d.ts +7 -0
  615. package/dist/types/components/Form/ColorInput/ColorInput.d.ts +3 -0
  616. package/dist/types/components/Form/ComboBox/ComboBox/ComboBox.context.d.ts +8 -0
  617. package/dist/types/components/Form/ComboBox/ComboBox/ComboBox.props.d.ts +46 -0
  618. package/dist/types/components/Form/ComboBox/ComboBox/ComboBox.provider.d.ts +2 -0
  619. package/dist/types/components/Form/ComboBox/ComboBox/ComboBox.state.d.ts +2 -0
  620. package/dist/types/components/Form/ComboBox/ComboBox/ComboBox.style.d.ts +105 -0
  621. package/dist/types/components/Form/ComboBox/ComboBox/ComboBox.type.d.ts +11 -0
  622. package/dist/types/components/Form/ComboBox/ComboBox/ComboBox.view.d.ts +4 -0
  623. package/dist/types/components/Form/ComboBox/ComboBox.d.ts +3 -0
  624. package/dist/types/components/Form/CountryPicker/CountryPicker/CountryPicker.props.d.ts +56 -0
  625. package/dist/types/components/Form/CountryPicker/CountryPicker/CountryPicker.state.d.ts +15 -0
  626. package/dist/types/components/Form/CountryPicker/CountryPicker/CountryPicker.style.d.ts +3 -0
  627. package/dist/types/components/Form/CountryPicker/CountryPicker/CountryPicker.type.d.ts +19 -0
  628. package/dist/types/components/Form/CountryPicker/CountryPicker/CountryPicker.view.d.ts +5 -0
  629. package/dist/types/components/Form/CountryPicker/CountryPicker.d.ts +3 -0
  630. package/dist/types/components/Form/CountryPicker/countries.json.d.ts +1455 -0
  631. package/dist/types/components/Form/DatePicker/DatePicker/DatePicker.props.d.ts +92 -0
  632. package/dist/types/components/Form/DatePicker/DatePicker/DatePicker.state.d.ts +10 -0
  633. package/dist/types/components/Form/DatePicker/DatePicker/DatePicker.style.d.ts +3 -0
  634. package/dist/types/components/Form/DatePicker/DatePicker/DatePicker.type.d.ts +12 -0
  635. package/dist/types/components/Form/DatePicker/DatePicker/DatePicker.view.d.ts +4 -0
  636. package/dist/types/components/Form/DatePicker/DatePicker.d.ts +6 -0
  637. package/dist/types/components/Form/Form.d.ts +12 -0
  638. package/dist/types/components/Form/Label/Label/Label.props.d.ts +17 -0
  639. package/dist/types/components/Form/Label/Label/Label.style.d.ts +2 -0
  640. package/dist/types/components/Form/Label/Label/Label.type.d.ts +3 -0
  641. package/dist/types/components/Form/Label/Label/Label.view.d.ts +4 -0
  642. package/dist/types/components/Form/Label/Label.d.ts +3 -0
  643. package/dist/types/components/Form/Password/Password/Password.props.d.ts +37 -0
  644. package/dist/types/components/Form/Password/Password/Password.state.d.ts +7 -0
  645. package/dist/types/components/Form/Password/Password/Password.type.d.ts +10 -0
  646. package/dist/types/components/Form/Password/Password.d.ts +6 -0
  647. package/dist/types/components/Form/Password/example/Default.d.ts +2 -0
  648. package/dist/types/components/Form/Password/example/DisabledInput.d.ts +2 -0
  649. package/dist/types/components/Form/Password/example/ErrorInput.d.ts +2 -0
  650. package/dist/types/components/Form/Password/example/HelperText.d.ts +2 -0
  651. package/dist/types/components/Form/Radio/Radio/Radio.props.d.ts +29 -0
  652. package/dist/types/components/Form/Radio/Radio/Radio.state.d.ts +8 -0
  653. package/dist/types/components/Form/Radio/Radio/Radio.style.d.ts +68 -0
  654. package/dist/types/components/Form/Radio/Radio/Radio.type.d.ts +8 -0
  655. package/dist/types/components/Form/Radio/Radio/Radio.view.d.ts +4 -0
  656. package/dist/types/components/Form/Radio/Radio.d.ts +3 -0
  657. package/dist/types/components/Form/Radio/RadioGroup/RadioGroup.props.d.ts +22 -0
  658. package/dist/types/components/Form/Radio/RadioGroup/RadioGroup.state.d.ts +5 -0
  659. package/dist/types/components/Form/Radio/RadioGroup/RadioGroup.type.d.ts +7 -0
  660. package/dist/types/components/Form/Radio/RadioGroup/RadioGroup.view.d.ts +4 -0
  661. package/dist/types/components/Form/Radio/RadioGroup.d.ts +3 -0
  662. package/dist/types/components/Form/Radio/index.d.ts +2 -0
  663. package/dist/types/components/Form/Select/Select/Select.props.d.ts +97 -0
  664. package/dist/types/components/Form/Select/Select/Select.state.d.ts +19 -0
  665. package/dist/types/components/Form/Select/Select/Select.style.d.ts +80 -0
  666. package/dist/types/components/Form/Select/Select/Select.type.d.ts +19 -0
  667. package/dist/types/components/Form/Select/Select/Select.view.d.ts +10 -0
  668. package/dist/types/components/Form/Select/Select.d.ts +3 -0
  669. package/dist/types/components/Form/Selector/Selector/Selector.props.d.ts +66 -0
  670. package/dist/types/components/Form/Selector/Selector/Selector.state.d.ts +17 -0
  671. package/dist/types/components/Form/Selector/Selector/Selector.style.d.ts +6 -0
  672. package/dist/types/components/Form/Selector/Selector/Selector.type.d.ts +19 -0
  673. package/dist/types/components/Form/Selector/Selector/Selector.view.d.ts +4 -0
  674. package/dist/types/components/Form/Selector/Selector.d.ts +3 -0
  675. package/dist/types/components/Form/Switch/Switch/Switch.props.d.ts +27 -0
  676. package/dist/types/components/Form/Switch/Switch/Switch.state.d.ts +10 -0
  677. package/dist/types/components/Form/Switch/Switch/Switch.style.d.ts +61 -0
  678. package/dist/types/components/Form/Switch/Switch/Switch.type.d.ts +7 -0
  679. package/dist/types/components/Form/Switch/Switch/Switch.view.d.ts +4 -0
  680. package/dist/types/components/Form/Switch/Switch.d.ts +3 -0
  681. package/dist/types/components/Form/TagInput/TagInput/TagInput.props.d.ts +54 -0
  682. package/dist/types/components/Form/TagInput/TagInput/TagInput.state.d.ts +19 -0
  683. package/dist/types/components/Form/TagInput/TagInput/TagInput.type.d.ts +25 -0
  684. package/dist/types/components/Form/TagInput/TagInput/TagInput.view.d.ts +4 -0
  685. package/dist/types/components/Form/TagInput/TagInput/index.d.ts +4 -0
  686. package/dist/types/components/Form/TagInput/TagInput.d.ts +3 -0
  687. package/dist/types/components/Form/TagInput/index.d.ts +2 -0
  688. package/dist/types/components/Form/TextArea/TextArea/TextArea.props.d.ts +62 -0
  689. package/dist/types/components/Form/TextArea/TextArea/TextArea.state.d.ts +11 -0
  690. package/dist/types/components/Form/TextArea/TextArea/TextArea.type.d.ts +13 -0
  691. package/dist/types/components/Form/TextArea/TextArea/TextArea.view.d.ts +4 -0
  692. package/dist/types/components/Form/TextArea/TextArea.d.ts +3 -0
  693. package/dist/types/components/Form/TextField/TextField/TextField.props.d.ts +70 -0
  694. package/dist/types/components/Form/TextField/TextField/TextField.state.d.ts +11 -0
  695. package/dist/types/components/Form/TextField/TextField/TextField.type.d.ts +12 -0
  696. package/dist/types/components/Form/TextField/TextField/TextField.view.d.ts +4 -0
  697. package/dist/types/components/Form/TextField/TextField.d.ts +3 -0
  698. package/dist/types/components/Formik/AttachmentPreview.d.ts +19 -0
  699. package/dist/types/components/Formik/Formik.ChatInput.d.ts +12 -0
  700. package/dist/types/components/Formik/Formik.Checkbox.d.ts +6 -0
  701. package/dist/types/components/Formik/Formik.ColorInput.d.ts +6 -0
  702. package/dist/types/components/Formik/Formik.ComboBox.d.ts +6 -0
  703. package/dist/types/components/Formik/Formik.CountryPicker.d.ts +6 -0
  704. package/dist/types/components/Formik/Formik.DatePicker.d.ts +6 -0
  705. package/dist/types/components/Formik/Formik.EmojiPicker.d.ts +6 -0
  706. package/dist/types/components/Formik/Formik.Form.d.ts +20 -0
  707. package/dist/types/components/Formik/Formik.Hook.d.ts +5 -0
  708. package/dist/types/components/Formik/Formik.IconPicker.d.ts +6 -0
  709. package/dist/types/components/Formik/Formik.OTPInput.d.ts +8 -0
  710. package/dist/types/components/Formik/Formik.Password.d.ts +6 -0
  711. package/dist/types/components/Formik/Formik.Radio.d.ts +6 -0
  712. package/dist/types/components/Formik/Formik.Select.d.ts +6 -0
  713. package/dist/types/components/Formik/Formik.Selector.d.ts +6 -0
  714. package/dist/types/components/Formik/Formik.Slider.d.ts +7 -0
  715. package/dist/types/components/Formik/Formik.Switch.d.ts +3 -0
  716. package/dist/types/components/Formik/Formik.TagInput.d.ts +9 -0
  717. package/dist/types/components/Formik/Formik.TextArea.d.ts +6 -0
  718. package/dist/types/components/Formik/Formik.TextField.d.ts +6 -0
  719. package/dist/types/components/Formik/Formik.Toggle.d.ts +6 -0
  720. package/dist/types/components/Formik/Formik.ToggleGroup.d.ts +6 -0
  721. package/dist/types/components/Formik/Formik.Uploader.d.ts +38 -0
  722. package/dist/types/components/Formik/index.d.ts +23 -0
  723. package/dist/types/components/Gradient/Gradient/Gradient.props.d.ts +15 -0
  724. package/dist/types/components/Gradient/Gradient/Gradient.style.d.ts +55 -0
  725. package/dist/types/components/Gradient/Gradient/Gradient.type.d.ts +13 -0
  726. package/dist/types/components/Gradient/Gradient/Gradient.view.d.ts +3 -0
  727. package/dist/types/components/Gradient/Gradient.d.ts +3 -0
  728. package/dist/types/components/Gradient/index.d.ts +1 -0
  729. package/dist/types/components/HoverCard/HoverCard/HoverCard.props.d.ts +33 -0
  730. package/dist/types/components/HoverCard/HoverCard/HoverCard.state.d.ts +11 -0
  731. package/dist/types/components/HoverCard/HoverCard/HoverCard.style.d.ts +5 -0
  732. package/dist/types/components/HoverCard/HoverCard/HoverCard.type.d.ts +12 -0
  733. package/dist/types/components/HoverCard/HoverCard/HoverCard.view.d.ts +10 -0
  734. package/dist/types/components/HoverCard/HoverCard.d.ts +2 -0
  735. package/dist/types/components/Icon/FixedIcons.d.ts +10 -0
  736. package/dist/types/components/Icon/Icon.d.ts +100 -0
  737. package/dist/types/components/Icon/Icon.frame.d.ts +14 -0
  738. package/dist/types/components/IconPicker/IconPicker/IconPicker.constants.d.ts +2 -0
  739. package/dist/types/components/IconPicker/IconPicker/IconPicker.props.d.ts +37 -0
  740. package/dist/types/components/IconPicker/IconPicker/IconPicker.state.d.ts +14 -0
  741. package/dist/types/components/IconPicker/IconPicker/IconPicker.style.d.ts +13 -0
  742. package/dist/types/components/IconPicker/IconPicker/IconPicker.type.d.ts +14 -0
  743. package/dist/types/components/IconPicker/IconPicker/IconPicker.view.d.ts +4 -0
  744. package/dist/types/components/IconPicker/IconPicker.d.ts +3 -0
  745. package/dist/types/components/Input/FieldContainer/FieldContainer/FieldContainer.props.d.ts +27 -0
  746. package/dist/types/components/Input/FieldContainer/FieldContainer.d.ts +3 -0
  747. package/dist/types/components/Input/FieldContent/FieldContent/FieldContent.props.d.ts +71 -0
  748. package/dist/types/components/Input/FieldContent/FieldContent.d.ts +3 -0
  749. package/dist/types/components/Input/FieldIcons/FieldIcons/FieldIcons.props.d.ts +3 -0
  750. package/dist/types/components/Input/FieldIcons/FieldIcons.d.ts +3 -0
  751. package/dist/types/components/Input/FieldLabel/FieldLabel/FieldLabel.props.d.ts +31 -0
  752. package/dist/types/components/Input/FieldLabel/FieldLabel.d.ts +3 -0
  753. package/dist/types/components/Input/FieldLayout/FieldLayout/FieldLayout.props.d.ts +25 -0
  754. package/dist/types/components/Input/FieldLayout/FieldLayout.d.ts +3 -0
  755. package/dist/types/components/Input/FieldWrapper/FieldWrapper.d.ts +3 -0
  756. package/dist/types/components/Input/FieldWrapper/FieldWrapper.props.d.ts +3 -0
  757. package/dist/types/components/Input/HelperText/HelperText.d.ts +3 -0
  758. package/dist/types/components/Input/HelperText/HelperText.props.d.ts +17 -0
  759. package/dist/types/components/Input/Input.style.d.ts +18 -0
  760. package/dist/types/components/Input/Input.type.d.ts +13 -0
  761. package/dist/types/components/Input/fieldSizes.d.ts +15 -0
  762. package/dist/types/components/Input/index.d.ts +7 -0
  763. package/dist/types/components/Input/useFieldDesignSystemProps.d.ts +9 -0
  764. package/dist/types/components/KeyboardAvoidingView/KeyboardAvoidingView.d.ts +3 -0
  765. package/dist/types/components/KeyboardAvoidingView/KeyboardAvoidingView.types.d.ts +24 -0
  766. package/dist/types/components/KeyboardAvoidingView/index.d.ts +2 -0
  767. package/dist/types/components/Link/Link/Link.props.d.ts +18 -0
  768. package/dist/types/components/Link/Link/Link.state.d.ts +4 -0
  769. package/dist/types/components/Link/Link/Link.style.d.ts +11 -0
  770. package/dist/types/components/Link/Link/Link.type.d.ts +8 -0
  771. package/dist/types/components/Link/Link/Link.view.d.ts +4 -0
  772. package/dist/types/components/Link/Link.d.ts +3 -0
  773. package/dist/types/components/Loader/Loader/Loader.props.d.ts +27 -0
  774. package/dist/types/components/Loader/Loader/Loader.style.d.ts +4 -0
  775. package/dist/types/components/Loader/Loader/Loader.type.d.ts +4 -0
  776. package/dist/types/components/Loader/Loader/Loader.view.d.ts +11 -0
  777. package/dist/types/components/Loader/Loader.d.ts +3 -0
  778. package/dist/types/components/Markdown/Markdown/Markdown.content.d.ts +6 -0
  779. package/dist/types/components/Markdown/Markdown/Markdown.motion.d.ts +1 -0
  780. package/dist/types/components/Markdown/Markdown/Markdown.props.d.ts +34 -0
  781. package/dist/types/components/Markdown/Markdown/Markdown.view.d.ts +1 -0
  782. package/dist/types/components/Markdown/Markdown/useMarkdownTyping.d.ts +6 -0
  783. package/dist/types/components/Markdown/Markdown.d.ts +3 -0
  784. package/dist/types/components/MediaPreview.d.ts +14 -0
  785. package/dist/types/components/Menubar/Menubar/Menubar.props.d.ts +74 -0
  786. package/dist/types/components/Menubar/Menubar/Menubar.state.d.ts +8 -0
  787. package/dist/types/components/Menubar/Menubar/Menubar.style.d.ts +19 -0
  788. package/dist/types/components/Menubar/Menubar/Menubar.type.d.ts +36 -0
  789. package/dist/types/components/Menubar/Menubar/Menubar.view.d.ts +22 -0
  790. package/dist/types/components/Menubar/Menubar.d.ts +2 -0
  791. package/dist/types/components/Menubar/index.d.ts +1 -0
  792. package/dist/types/components/Message/Message/Message.layout.d.ts +3 -0
  793. package/dist/types/components/Message/Message/Message.props.d.ts +36 -0
  794. package/dist/types/components/Message/Message/Message.store.d.ts +5 -0
  795. package/dist/types/components/Message/Message/Message.style.d.ts +5 -0
  796. package/dist/types/components/Message/Message/Message.type.d.ts +48 -0
  797. package/dist/types/components/Message/Message/Message.view.d.ts +3 -0
  798. package/dist/types/components/Message/Message.d.ts +5 -0
  799. package/dist/types/components/Modal/Modal/Modal.layout.d.ts +3 -0
  800. package/dist/types/components/Modal/Modal/Modal.props.d.ts +92 -0
  801. package/dist/types/components/Modal/Modal/Modal.store.d.ts +19 -0
  802. package/dist/types/components/Modal/Modal/Modal.style.d.ts +33 -0
  803. package/dist/types/components/Modal/Modal/Modal.type.d.ts +4 -0
  804. package/dist/types/components/Modal/Modal/Modal.view.d.ts +21 -0
  805. package/dist/types/components/Modal/Modal.d.ts +5 -0
  806. package/dist/types/components/NavigationMenu/NavigationMenu/NavigationMenu.props.d.ts +68 -0
  807. package/dist/types/components/NavigationMenu/NavigationMenu/NavigationMenu.state.d.ts +8 -0
  808. package/dist/types/components/NavigationMenu/NavigationMenu/NavigationMenu.style.d.ts +32 -0
  809. package/dist/types/components/NavigationMenu/NavigationMenu/NavigationMenu.type.d.ts +35 -0
  810. package/dist/types/components/NavigationMenu/NavigationMenu/NavigationMenu.view.d.ts +25 -0
  811. package/dist/types/components/NavigationMenu/NavigationMenu.d.ts +2 -0
  812. package/dist/types/components/OTPInput/OTPInput/OTPInput.props.d.ts +43 -0
  813. package/dist/types/components/OTPInput/OTPInput/OTPInput.state.d.ts +23 -0
  814. package/dist/types/components/OTPInput/OTPInput/OTPInput.type.d.ts +9 -0
  815. package/dist/types/components/OTPInput/OTPInput/OTPInput.view.d.ts +29 -0
  816. package/dist/types/components/OTPInput/OTPInput/sync-timeouts.d.ts +1 -0
  817. package/dist/types/components/OTPInput/OTPInput.d.ts +3 -0
  818. package/dist/types/components/PageHeader/PageHeader/PageHeader.props.d.ts +9 -0
  819. package/dist/types/components/PageHeader/PageHeader/PageHeader.style.d.ts +4 -0
  820. package/dist/types/components/PageHeader/PageHeader/PageHeader.type.d.ts +7 -0
  821. package/dist/types/components/PageHeader/PageHeader/PageHeader.view.d.ts +4 -0
  822. package/dist/types/components/PageHeader/PageHeader.d.ts +3 -0
  823. package/dist/types/components/PageLayout/PageLayout.d.ts +3 -0
  824. package/dist/types/components/PageLayout/PageLayout.types.d.ts +30 -0
  825. package/dist/types/components/PageLayout/index.d.ts +2 -0
  826. package/dist/types/components/Pagination/Pagination/Pagination.props.d.ts +19 -0
  827. package/dist/types/components/Pagination/Pagination/Pagination.state.d.ts +3 -0
  828. package/dist/types/components/Pagination/Pagination/Pagination.style.d.ts +7 -0
  829. package/dist/types/components/Pagination/Pagination/Pagination.type.d.ts +17 -0
  830. package/dist/types/components/Pagination/Pagination/Pagination.view.d.ts +3 -0
  831. package/dist/types/components/Pagination/Pagination.d.ts +3 -0
  832. package/dist/types/components/Pagination/index.d.ts +1 -0
  833. package/dist/types/components/Portal/Portal.d.ts +7 -0
  834. package/dist/types/components/ProgressBar/ProgressBar/ProgressBar.props.d.ts +24 -0
  835. package/dist/types/components/ProgressBar/ProgressBar/ProgressBar.view.d.ts +4 -0
  836. package/dist/types/components/ProgressBar/ProgressBar.d.ts +4 -0
  837. package/dist/types/components/Resizable/Resizable/Resizable.props.d.ts +52 -0
  838. package/dist/types/components/Resizable/Resizable/Resizable.state.d.ts +16 -0
  839. package/dist/types/components/Resizable/Resizable/Resizable.style.d.ts +7 -0
  840. package/dist/types/components/Resizable/Resizable/Resizable.type.d.ts +44 -0
  841. package/dist/types/components/Resizable/Resizable/Resizable.view.d.ts +13 -0
  842. package/dist/types/components/Resizable/Resizable.d.ts +2 -0
  843. package/dist/types/components/Resizable/index.d.ts +1 -0
  844. package/dist/types/components/Router/Router.d.ts +3 -0
  845. package/dist/types/components/Router/Router.match.d.ts +15 -0
  846. package/dist/types/components/Router/Router.store.d.ts +28 -0
  847. package/dist/types/components/Router/Router.types.d.ts +16 -0
  848. package/dist/types/components/Router/index.d.ts +5 -0
  849. package/dist/types/components/Router/useHistory.d.ts +21 -0
  850. package/dist/types/components/Separator/Separator/Separator.props.d.ts +12 -0
  851. package/dist/types/components/Separator/Separator/Separator.style.d.ts +23 -0
  852. package/dist/types/components/Separator/Separator/Separator.type.d.ts +8 -0
  853. package/dist/types/components/Separator/Separator/Separator.view.d.ts +3 -0
  854. package/dist/types/components/Separator/Separator.d.ts +4 -0
  855. package/dist/types/components/Separator/index.d.ts +1 -0
  856. package/dist/types/components/ShareButton/ShareButton/ShareButton.props.d.ts +19 -0
  857. package/dist/types/components/ShareButton/ShareButton/ShareButton.state.d.ts +6 -0
  858. package/dist/types/components/ShareButton/ShareButton/ShareButton.view.d.ts +4 -0
  859. package/dist/types/components/ShareButton/ShareButton.d.ts +3 -0
  860. package/dist/types/components/Sidebar/Sidebar/Sidebar.props.d.ts +54 -0
  861. package/dist/types/components/Sidebar/Sidebar/Sidebar.state.d.ts +7 -0
  862. package/dist/types/components/Sidebar/Sidebar/Sidebar.style.d.ts +13 -0
  863. package/dist/types/components/Sidebar/Sidebar/Sidebar.type.d.ts +32 -0
  864. package/dist/types/components/Sidebar/Sidebar/Sidebar.view.d.ts +21 -0
  865. package/dist/types/components/Sidebar/Sidebar.d.ts +2 -0
  866. package/dist/types/components/Sidebar/index.d.ts +1 -0
  867. package/dist/types/components/Slider/Slider/Slider.props.d.ts +36 -0
  868. package/dist/types/components/Slider/Slider/Slider.state.d.ts +14 -0
  869. package/dist/types/components/Slider/Slider/Slider.style.d.ts +15 -0
  870. package/dist/types/components/Slider/Slider/Slider.type.d.ts +18 -0
  871. package/dist/types/components/Slider/Slider/Slider.view.d.ts +3 -0
  872. package/dist/types/components/Slider/Slider.d.ts +3 -0
  873. package/dist/types/components/Slider/index.d.ts +1 -0
  874. package/dist/types/components/SplashScreen/SplashScreen.d.ts +3 -0
  875. package/dist/types/components/SplashScreen/SplashScreen.store.d.ts +18 -0
  876. package/dist/types/components/SplashScreen/SplashScreen.types.d.ts +23 -0
  877. package/dist/types/components/SplashScreen/index.d.ts +3 -0
  878. package/dist/types/components/StatePanel/StatePanel/StatePanel.props.d.ts +10 -0
  879. package/dist/types/components/StatePanel/StatePanel/StatePanel.style.d.ts +4 -0
  880. package/dist/types/components/StatePanel/StatePanel/StatePanel.type.d.ts +8 -0
  881. package/dist/types/components/StatePanel/StatePanel/StatePanel.view.d.ts +4 -0
  882. package/dist/types/components/StatePanel/StatePanel.d.ts +3 -0
  883. package/dist/types/components/StatusIndicator/StatusIndicator/StatusIndicator.props.d.ts +8 -0
  884. package/dist/types/components/StatusIndicator/StatusIndicator/StatusIndicator.style.d.ts +10 -0
  885. package/dist/types/components/StatusIndicator/StatusIndicator/StatusIndicator.type.d.ts +7 -0
  886. package/dist/types/components/StatusIndicator/StatusIndicator/StatusIndicator.view.d.ts +3 -0
  887. package/dist/types/components/StatusIndicator/StatusIndicator.d.ts +3 -0
  888. package/dist/types/components/Table/Table/Table.context.d.ts +23 -0
  889. package/dist/types/components/Table/Table/Table.props.d.ts +24 -0
  890. package/dist/types/components/Table/Table/Table.state.d.ts +5 -0
  891. package/dist/types/components/Table/Table/Table.style.d.ts +22 -0
  892. package/dist/types/components/Table/Table/Table.type.d.ts +19 -0
  893. package/dist/types/components/Table/Table/Table.view.d.ts +14 -0
  894. package/dist/types/components/Table/Table/TableScroll.d.ts +8 -0
  895. package/dist/types/components/Table/Table.d.ts +16 -0
  896. package/dist/types/components/Tabs/Tabs/TabHeader.d.ts +24 -0
  897. package/dist/types/components/Tabs/Tabs/Tabs.props.d.ts +124 -0
  898. package/dist/types/components/Tabs/Tabs/Tabs.state.d.ts +23 -0
  899. package/dist/types/components/Tabs/Tabs/Tabs.styles.d.ts +11 -0
  900. package/dist/types/components/Tabs/Tabs/Tabs.type.d.ts +57 -0
  901. package/dist/types/components/Tabs/Tabs/Tabs.view.d.ts +12 -0
  902. package/dist/types/components/Tabs/Tabs.d.ts +10 -0
  903. package/dist/types/components/TextArea/TextArea.d.ts +17 -0
  904. package/dist/types/components/Title/Title/SlideEffect.d.ts +16 -0
  905. package/dist/types/components/Title/Title/Title.props.d.ts +28 -0
  906. package/dist/types/components/Title/Title/Title.state.d.ts +10 -0
  907. package/dist/types/components/Title/Title/Title.style.d.ts +29 -0
  908. package/dist/types/components/Title/Title/Title.type.d.ts +8 -0
  909. package/dist/types/components/Title/Title/Title.view.d.ts +4 -0
  910. package/dist/types/components/Title/Title/TypewriterEffect.d.ts +15 -0
  911. package/dist/types/components/Title/Title.d.ts +3 -0
  912. package/dist/types/components/Title/index.d.ts +1 -0
  913. package/dist/types/components/Toast/Toast/Toast.hook.d.ts +10 -0
  914. package/dist/types/components/Toast/Toast/Toast.props.d.ts +34 -0
  915. package/dist/types/components/Toast/Toast/Toast.store.d.ts +10 -0
  916. package/dist/types/components/Toast/Toast/Toast.style.d.ts +17 -0
  917. package/dist/types/components/Toast/Toast/Toast.type.d.ts +53 -0
  918. package/dist/types/components/Toast/Toast/Toast.view.d.ts +4 -0
  919. package/dist/types/components/Toast/Toast.d.ts +23 -0
  920. package/dist/types/components/Toast/index.d.ts +1 -0
  921. package/dist/types/components/Toggle/Toggle/Toggle.props.d.ts +17 -0
  922. package/dist/types/components/Toggle/Toggle/Toggle.state.d.ts +6 -0
  923. package/dist/types/components/Toggle/Toggle/Toggle.style.d.ts +8 -0
  924. package/dist/types/components/Toggle/Toggle/Toggle.type.d.ts +2 -0
  925. package/dist/types/components/Toggle/Toggle/Toggle.view.d.ts +12 -0
  926. package/dist/types/components/Toggle/Toggle.d.ts +3 -0
  927. package/dist/types/components/ToggleGroup/ToggleGroup/ToggleGroup.props.d.ts +19 -0
  928. package/dist/types/components/ToggleGroup/ToggleGroup/ToggleGroup.state.d.ts +4 -0
  929. package/dist/types/components/ToggleGroup/ToggleGroup/ToggleGroup.style.d.ts +2 -0
  930. package/dist/types/components/ToggleGroup/ToggleGroup/ToggleGroup.type.d.ts +9 -0
  931. package/dist/types/components/ToggleGroup/ToggleGroup/ToggleGroup.view.d.ts +3 -0
  932. package/dist/types/components/ToggleGroup/ToggleGroup.d.ts +3 -0
  933. package/dist/types/components/Tooltip/Tooltip/Tooltip.props.d.ts +38 -0
  934. package/dist/types/components/Tooltip/Tooltip/Tooltip.state.d.ts +17 -0
  935. package/dist/types/components/Tooltip/Tooltip/Tooltip.style.d.ts +7 -0
  936. package/dist/types/components/Tooltip/Tooltip/Tooltip.type.d.ts +20 -0
  937. package/dist/types/components/Tooltip/Tooltip/Tooltip.view.d.ts +21 -0
  938. package/dist/types/components/Tooltip/Tooltip.d.ts +2 -0
  939. package/dist/types/components/Tooltip/index.d.ts +1 -0
  940. package/dist/types/components/Uploader/Uploader/Uploader.props.d.ts +59 -0
  941. package/dist/types/components/Uploader/Uploader/Uploader.state.d.ts +14 -0
  942. package/dist/types/components/Uploader/Uploader/Uploader.view.d.ts +3 -0
  943. package/dist/types/components/Uploader/Uploader.d.ts +3 -0
  944. package/dist/types/components/index.d.ts +13 -0
  945. package/dist/types/components/index.shared.d.ts +143 -0
  946. package/dist/types/components/pilot/alert.d.ts +2 -0
  947. package/dist/types/components/pilot/avatar.d.ts +2 -0
  948. package/dist/types/components/pilot/blocks/SettingsPanel.d.ts +8 -0
  949. package/dist/types/components/pilot/blocks/SignIn.d.ts +8 -0
  950. package/dist/types/components/pilot/button.d.ts +1 -0
  951. package/dist/types/components/pilot/card.d.ts +2 -0
  952. package/dist/types/components/pilot/checkbox.d.ts +2 -0
  953. package/dist/types/components/pilot/modal.d.ts +2 -0
  954. package/dist/types/components/pilot/select.d.ts +2 -0
  955. package/dist/types/components/pilot/settings-panel.d.ts +1 -0
  956. package/dist/types/components/pilot/sign-in.d.ts +1 -0
  957. package/dist/types/components/pilot/switch.d.ts +2 -0
  958. package/dist/types/components/pilot/tabs.d.ts +2 -0
  959. package/dist/types/components/pilot/text-field.d.ts +2 -0
  960. package/dist/types/design-system/DesignSystemProvider.d.ts +8 -0
  961. package/dist/types/design-system/DesignSystemScope.d.ts +8 -0
  962. package/dist/types/design-system/configs/airbnb.json.d.ts +715 -0
  963. package/dist/types/design-system/configs/apple.json.d.ts +733 -0
  964. package/dist/types/design-system/configs/coinbase.json.d.ts +726 -0
  965. package/dist/types/design-system/configs/default.json.d.ts +547 -0
  966. package/dist/types/design-system/configs/figma.json.d.ts +712 -0
  967. package/dist/types/design-system/configs/index.d.ts +27 -0
  968. package/dist/types/design-system/configs/linear.json.d.ts +705 -0
  969. package/dist/types/design-system/configs/nike.json.d.ts +733 -0
  970. package/dist/types/design-system/configs/notion.json.d.ts +838 -0
  971. package/dist/types/design-system/configs/revolut.json.d.ts +798 -0
  972. package/dist/types/design-system/configs/shopify.json.d.ts +701 -0
  973. package/dist/types/design-system/configs/spacex.json.d.ts +618 -0
  974. package/dist/types/design-system/configs/spotify.json.d.ts +701 -0
  975. package/dist/types/design-system/configs/stripe.json.d.ts +768 -0
  976. package/dist/types/design-system/configs/tesla.json.d.ts +660 -0
  977. package/dist/types/design-system/configs/uber.json.d.ts +716 -0
  978. package/dist/types/design-system/configs/vercel.json.d.ts +728 -0
  979. package/dist/types/design-system/index.d.ts +4 -0
  980. package/dist/types/design-system/theme.d.ts +37 -0
  981. package/dist/types/design-system/types.d.ts +132 -0
  982. package/dist/types/design-system/utils.d.ts +8 -0
  983. package/dist/types/pages/designSystem.page.d.ts +7 -0
  984. package/dist/types/types/global.d.ts +66 -0
  985. package/dist/types/types/module.d.ts +7 -0
  986. package/dist/types/types/refractor.d.ts +16 -0
  987. package/dist/types/utils/apiConfig.d.ts +28 -0
  988. package/dist/types/utils/colors.d.ts +31 -0
  989. package/dist/types/utils/elevation.d.ts +3 -0
  990. package/dist/types/utils/env.d.ts +15 -0
  991. package/dist/types/utils/file.d.ts +4 -0
  992. package/dist/types/utils/generateId.d.ts +5 -0
  993. package/dist/types/utils/id.d.ts +6 -0
  994. package/dist/types/utils/index.d.ts +7 -0
  995. package/dist/types/utils/localstorage.d.ts +5 -0
  996. package/dist/types/utils/request.d.ts +38 -0
  997. package/dist/types/utils/scriptTypography.d.ts +4 -0
  998. package/dist/types/utils/store.d.ts +7 -0
  999. package/dist/types/utils/typography.d.ts +23 -0
  1000. package/dist/web.cjs.js +38 -72
  1001. package/dist/web.cjs.js.map +1 -1
  1002. package/dist/web.esm.d.mts +1 -0
  1003. package/dist/web.esm.mjs +6891 -0
  1004. package/dist/web.esm.mjs.map +1 -0
  1005. package/dist/web.umd.js +39 -39
  1006. package/dist/web.umd.js.map +1 -1
  1007. package/docs/getting-started/react-native.md +17 -3
  1008. package/docs/guides/performance.mdx +5 -0
  1009. package/docs/guides/react-native.mdx +10 -0
  1010. package/docs/guides/registry-guide.mdx +145 -0
  1011. package/package.json +315 -19
  1012. package/dist/apple-touch-icon.png +0 -0
  1013. package/dist/assets/apple-logo.png +0 -0
  1014. package/dist/assets/maskable_icon.png +0 -0
  1015. package/dist/assets/orange.png +0 -0
  1016. package/dist/favicon.ico +0 -0
  1017. package/dist/favicon.svg +0 -4
  1018. package/dist/files/media/Accordion.mdx +0 -333
  1019. package/dist/files/media/Alert.mdx +0 -353
  1020. package/dist/files/media/AspectRatio.mdx +0 -64
  1021. package/dist/files/media/AudioInput.mdx +0 -78
  1022. package/dist/files/media/AudioWaveform.mdx +0 -9
  1023. package/dist/files/media/Avatar.mdx +0 -301
  1024. package/dist/files/media/Background.mdx +0 -610
  1025. package/dist/files/media/Badge.mdx +0 -503
  1026. package/dist/files/media/BlockEditor-drag-and-drop.md +0 -61
  1027. package/dist/files/media/BlockEditor.mdx +0 -106
  1028. package/dist/files/media/Button.mdx +0 -688
  1029. package/dist/files/media/Card.mdx +0 -560
  1030. package/dist/files/media/Carousel.mdx +0 -605
  1031. package/dist/files/media/Chart.mdx +0 -871
  1032. package/dist/files/media/ChatInput.mdx +0 -540
  1033. package/dist/files/media/ChatWidget.mdx +0 -403
  1034. package/dist/files/media/Checkbox.mdx +0 -463
  1035. package/dist/files/media/ColorInput.mdx +0 -217
  1036. package/dist/files/media/ColorPicker.mdx +0 -259
  1037. package/dist/files/media/ComboBox.mdx +0 -376
  1038. package/dist/files/media/Command.mdx +0 -496
  1039. package/dist/files/media/ContextMenu.mdx +0 -411
  1040. package/dist/files/media/CookieConsent.mdx +0 -263
  1041. package/dist/files/media/CountryPicker.mdx +0 -349
  1042. package/dist/files/media/DatePicker.mdx +0 -217
  1043. package/dist/files/media/DragAndDrop.mdx +0 -34
  1044. package/dist/files/media/Drawer.mdx +0 -233
  1045. package/dist/files/media/DropZone.mdx +0 -9
  1046. package/dist/files/media/DropdownMenu.mdx +0 -403
  1047. package/dist/files/media/EmojiPicker.mdx +0 -335
  1048. package/dist/files/media/Gradient.mdx +0 -604
  1049. package/dist/files/media/HoverCard.mdx +0 -144
  1050. package/dist/files/media/IconPicker.mdx +0 -9
  1051. package/dist/files/media/Label.mdx +0 -9
  1052. package/dist/files/media/Link.mdx +0 -142
  1053. package/dist/files/media/Loader.mdx +0 -161
  1054. package/dist/files/media/Markdown.mdx +0 -99
  1055. package/dist/files/media/Menubar.mdx +0 -496
  1056. package/dist/files/media/Message.mdx +0 -299
  1057. package/dist/files/media/Modal.mdx +0 -795
  1058. package/dist/files/media/NavigationMenu.mdx +0 -728
  1059. package/dist/files/media/OTPInput.mdx +0 -450
  1060. package/dist/files/media/Pagination.mdx +0 -356
  1061. package/dist/files/media/ProgressBar.mdx +0 -119
  1062. package/dist/files/media/Radio.mdx +0 -314
  1063. package/dist/files/media/RadioGroup.mdx +0 -9
  1064. package/dist/files/media/Resizable.mdx +0 -873
  1065. package/dist/files/media/Select.mdx +0 -689
  1066. package/dist/files/media/Selector.mdx +0 -9
  1067. package/dist/files/media/Separator.mdx +0 -741
  1068. package/dist/files/media/ShareButton.mdx +0 -29
  1069. package/dist/files/media/Sidebar.mdx +0 -1237
  1070. package/dist/files/media/Slider.mdx +0 -513
  1071. package/dist/files/media/StatusIndicator.mdx +0 -43
  1072. package/dist/files/media/Switch.mdx +0 -521
  1073. package/dist/files/media/Table.mdx +0 -827
  1074. package/dist/files/media/Tabs.mdx +0 -524
  1075. package/dist/files/media/TagInput.mdx +0 -372
  1076. package/dist/files/media/TextArea.mdx +0 -724
  1077. package/dist/files/media/TextField.mdx +0 -830
  1078. package/dist/files/media/Title.mdx +0 -1081
  1079. package/dist/files/media/Toast.mdx +0 -802
  1080. package/dist/files/media/Toggle.mdx +0 -159
  1081. package/dist/files/media/ToggleGroup.mdx +0 -180
  1082. package/dist/files/media/Tooltip.mdx +0 -307
  1083. package/dist/files/media/Uploader.mdx +0 -9
  1084. package/dist/fonts/mulish-subset.woff2 +0 -0
  1085. package/dist/icon-512.png +0 -0
  1086. package/dist/illustrations/cross-platform.svg +0 -37
  1087. package/dist/index.d.ts +0 -5516
  1088. package/dist/indexnow-key.txt +0 -1
  1089. package/dist/manifest.json +0 -22
  1090. package/dist/orange.webp +0 -0
  1091. package/dist/robots.txt +0 -8
  1092. package/dist/web.esm.js +0 -49919
  1093. package/dist/web.esm.js.map +0 -1
@@ -0,0 +1,147 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "button",
4
+ "type": "registry:ui",
5
+ "title": "Button",
6
+ "author": "App Studio",
7
+ "categories": [
8
+ "Actions"
9
+ ],
10
+ "registryDependencies": [
11
+ "theme"
12
+ ],
13
+ "meta": {
14
+ "appStudio": {
15
+ "entry": "src/components/pilot/button.ts",
16
+ "engine": ">=0.9.5",
17
+ "engineByPlatform": {
18
+ "ios": ">=0.10.0",
19
+ "android": ">=0.10.0"
20
+ },
21
+ "version": "0.12.1",
22
+ "license": "MIT",
23
+ "platforms": [
24
+ "web",
25
+ "ios",
26
+ "android"
27
+ ],
28
+ "dependencies": {
29
+ "web": [],
30
+ "ios": [
31
+ "react-native-svg@>= 13"
32
+ ],
33
+ "android": [
34
+ "react-native-svg@>= 13"
35
+ ]
36
+ },
37
+ "npmImport": "@app-studio/components/button"
38
+ }
39
+ },
40
+ "files": [
41
+ {
42
+ "path": "LICENSE.txt",
43
+ "content": "Copyright (c) Facebook, Inc. and its affiliates.\nAll rights reserved.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n\nAttribution-NonCommercial 4.0 International\n\n=======================================================================\n\nCreative Commons Corporation (\"Creative Commons\") is not a law firm and\ndoes not provide legal services or legal advice. Distribution of\nCreative Commons public licenses does not create a lawyer-client or\nother relationship. Creative Commons makes its licenses and related\ninformation available on an \"as-is\" basis. Creative Commons gives no\nwarranties regarding its licenses, any material licensed under their\nterms and conditions, or any related information. Creative Commons\ndisclaims all liability for damages resulting from their use to the\nfullest extent possible.\n\nUsing Creative Commons Public Licenses\n\nCreative Commons public licenses provide a standard set of terms and\nconditions that creators and other rights holders may use to share\noriginal works of authorship and other material subject to copyright\nand certain other rights specified in the public license below. The\nfollowing considerations are for informational purposes only, are not\nexhaustive, and do not form part of our licenses.\n\n Considerations for licensors: Our public licenses are\n intended for use by those authorized to give the public\n permission to use material in ways otherwise restricted by\n copyright and certain other rights. Our licenses are\n irrevocable. Licensors should read and understand the terms\n and conditions of the license they choose before applying it.\n Licensors should also secure all rights necessary before\n applying our licenses so that the public can reuse the\n material as expected. Licensors should clearly mark any\n material not subject to the license. This includes other CC-\n licensed material, or material used under an exception or\n limitation to copyright. More considerations for licensors:\n\twiki.creativecommons.org/Considerations_for_licensors\n\n Considerations for the public: By using one of our public\n licenses, a licensor grants the public permission to use the\n licensed material under specified terms and conditions. If\n the licensor's permission is not necessary for any reason--for\n example, because of any applicable exception or limitation to\n copyright--then that use is not regulated by the license. Our\n licenses grant only permissions under copyright and certain\n other rights that a licensor has authority to grant. Use of\n the licensed material may still be restricted for other\n reasons, including because others have copyright or other\n rights in the material. A licensor may make special requests,\n such as asking that all changes be marked or described.\n Although not required by our licenses, you are encouraged to\n respect those requests where reasonable. More_considerations\n for the public: \n\twiki.creativecommons.org/Considerations_for_licensees\n\n=======================================================================\n\nCreative Commons Attribution-NonCommercial 4.0 International Public\nLicense\n\nBy exercising the Licensed Rights (defined below), You accept and agree\nto be bound by the terms and conditions of this Creative Commons\nAttribution-NonCommercial 4.0 International Public License (\"Public\nLicense\"). To the extent this Public License may be interpreted as a\ncontract, You are granted the Licensed Rights in consideration of Your\nacceptance of these terms and conditions, and the Licensor grants You\nsuch rights in consideration of benefits the Licensor receives from\nmaking the Licensed Material available under these terms and\nconditions.\n\nSection 1 -- Definitions.\n\n a. Adapted Material means material subject to Copyright and Similar\n Rights that is derived from or based upon the Licensed Material\n and in which the Licensed Material is translated, altered,\n arranged, transformed, or otherwise modified in a manner requiring\n permission under the Copyright and Similar Rights held by the\n Licensor. For purposes of this Public License, where the Licensed\n Material is a musical work, performance, or sound recording,\n Adapted Material is always produced where the Licensed Material is\n synched in timed relation with a moving image.\n\n b. Adapter's License means the license You apply to Your Copyright\n and Similar Rights in Your contributions to Adapted Material in\n accordance with the terms and conditions of this Public License.\n\n c. Copyright and Similar Rights means copyright and/or similar rights\n closely related to copyright including, without limitation,\n performance, broadcast, sound recording, and Sui Generis Database\n Rights, without regard to how the rights are labeled or\n categorized. For purposes of this Public License, the rights\n specified in Section 2(b)(1)-(2) are not Copyright and Similar\n Rights.\n d. Effective Technological Measures means those measures that, in the\n absence of proper authority, may not be circumvented under laws\n fulfilling obligations under Article 11 of the WIPO Copyright\n Treaty adopted on December 20, 1996, and/or similar international\n agreements.\n\n e. Exceptions and Limitations means fair use, fair dealing, and/or\n any other exception or limitation to Copyright and Similar Rights\n that applies to Your use of the Licensed Material.\n\n f. Licensed Material means the artistic or literary work, database,\n or other material to which the Licensor applied this Public\n License.\n\n g. Licensed Rights means the rights granted to You subject to the\n terms and conditions of this Public License, which are limited to\n all Copyright and Similar Rights that apply to Your use of the\n Licensed Material and that the Licensor has authority to license.\n\n h. Licensor means the individual(s) or entity(ies) granting rights\n under this Public License.\n\n i. NonCommercial means not primarily intended for or directed towards\n commercial advantage or monetary compensation. For purposes of\n this Public License, the exchange of the Licensed Material for\n other material subject to Copyright and Similar Rights by digital\n file-sharing or similar means is NonCommercial provided there is\n no payment of monetary compensation in connection with the\n exchange.\n\n j. Share means to provide material to the public by any means or\n process that requires permission under the Licensed Rights, such\n as reproduction, public display, public performance, distribution,\n dissemination, communication, or importation, and to make material\n available to the public including in ways that members of the\n public may access the material from a place and at a time\n individually chosen by them.\n\n k. Sui Generis Database Rights means rights other than copyright\n resulting from Directive 96/9/EC of the European Parliament and of\n the Council of 11 March 1996 on the legal protection of databases,\n as amended and/or succeeded, as well as other essentially\n equivalent rights anywhere in the world.\n\n l. You means the individual or entity exercising the Licensed Rights\n under this Public License. Your has a corresponding meaning.\n\nSection 2 -- Scope.\n\n a. License grant.\n\n 1. Subject to the terms and conditions of this Public License,\n the Licensor hereby grants You a worldwide, royalty-free,\n non-sublicensable, non-exclusive, irrevocable license to\n exercise the Licensed Rights in the Licensed Material to:\n\n a. reproduce and Share the Licensed Material, in whole or\n in part, for NonCommercial purposes only; and\n\n b. produce, reproduce, and Share Adapted Material for\n NonCommercial purposes only.\n\n 2. Exceptions and Limitations. For the avoidance of doubt, where\n Exceptions and Limitations apply to Your use, this Public\n License does not apply, and You do not need to comply with\n its terms and conditions.\n\n 3. Term. The term of this Public License is specified in Section\n 6(a).\n\n 4. Media and formats; technical modifications allowed. The\n Licensor authorizes You to exercise the Licensed Rights in\n all media and formats whether now known or hereafter created,\n and to make technical modifications necessary to do so. The\n Licensor waives and/or agrees not to assert any right or\n authority to forbid You from making technical modifications\n necessary to exercise the Licensed Rights, including\n technical modifications necessary to circumvent Effective\n Technological Measures. For purposes of this Public License,\n simply making modifications authorized by this Section 2(a)\n (4) never produces Adapted Material.\n\n 5. Downstream recipients.\n\n a. Offer from the Licensor -- Licensed Material. Every\n recipient of the Licensed Material automatically\n receives an offer from the Licensor to exercise the\n Licensed Rights under the terms and conditions of this\n Public License.\n\n b. No downstream restrictions. You may not offer or impose\n any additional or different terms or conditions on, or\n apply any Effective Technological Measures to, the\n Licensed Material if doing so restricts exercise of the\n Licensed Rights by any recipient of the Licensed\n Material.\n\n 6. No endorsement. Nothing in this Public License constitutes or\n may be construed as permission to assert or imply that You\n are, or that Your use of the Licensed Material is, connected\n with, or sponsored, endorsed, or granted official status by,\n the Licensor or others designated to receive attribution as\n provided in Section 3(a)(1)(A)(i).\n\n b. Other rights.\n\n 1. Moral rights, such as the right of integrity, are not\n licensed under this Public License, nor are publicity,\n privacy, and/or other similar personality rights; however, to\n the extent possible, the Licensor waives and/or agrees not to\n assert any such rights held by the Licensor to the limited\n extent necessary to allow You to exercise the Licensed\n Rights, but not otherwise.\n\n 2. Patent and trademark rights are not licensed under this\n Public License.\n\n 3. To the extent possible, the Licensor waives any right to\n collect royalties from You for the exercise of the Licensed\n Rights, whether directly or through a collecting society\n under any voluntary or waivable statutory or compulsory\n licensing scheme. In all other cases the Licensor expressly\n reserves any right to collect such royalties, including when\n the Licensed Material is used other than for NonCommercial\n purposes.\n\nSection 3 -- License Conditions.\n\nYour exercise of the Licensed Rights is expressly made subject to the\nfollowing conditions.\n\n a. Attribution.\n\n 1. If You Share the Licensed Material (including in modified\n form), You must:\n\n a. retain the following if it is supplied by the Licensor\n with the Licensed Material:\n\n i. identification of the creator(s) of the Licensed\n Material and any others designated to receive\n attribution, in any reasonable manner requested by\n the Licensor (including by pseudonym if\n designated);\n\n ii. a copyright notice;\n\n iii. a notice that refers to this Public License;\n\n iv. a notice that refers to the disclaimer of\n warranties;\n\n v. a URI or hyperlink to the Licensed Material to the\n extent reasonably practicable;\n\n b. indicate if You modified the Licensed Material and\n retain an indication of any previous modifications; and\n\n c. indicate the Licensed Material is licensed under this\n Public License, and include the text of, or the URI or\n hyperlink to, this Public License.\n\n 2. You may satisfy the conditions in Section 3(a)(1) in any\n reasonable manner based on the medium, means, and context in\n which You Share the Licensed Material. For example, it may be\n reasonable to satisfy the conditions by providing a URI or\n hyperlink to a resource that includes the required\n information.\n\n 3. If requested by the Licensor, You must remove any of the\n information required by Section 3(a)(1)(A) to the extent\n reasonably practicable.\n\n 4. If You Share Adapted Material You produce, the Adapter's\n License You apply must not prevent recipients of the Adapted\n Material from complying with this Public License.\n\nSection 4 -- Sui Generis Database Rights.\n\nWhere the Licensed Rights include Sui Generis Database Rights that\napply to Your use of the Licensed Material:\n\n a. for the avoidance of doubt, Section 2(a)(1) grants You the right\n to extract, reuse, reproduce, and Share all or a substantial\n portion of the contents of the database for NonCommercial purposes\n only;\n\n b. if You include all or a substantial portion of the database\n contents in a database in which You have Sui Generis Database\n Rights, then the database in which You have Sui Generis Database\n Rights (but not its individual contents) is Adapted Material; and\n\n c. You must comply with the conditions in Section 3(a) if You Share\n all or a substantial portion of the contents of the database.\n\nFor the avoidance of doubt, this Section 4 supplements and does not\nreplace Your obligations under this Public License where the Licensed\nRights include other Copyright and Similar Rights.\n\nSection 5 -- Disclaimer of Warranties and Limitation of Liability.\n\n a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE\n EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS\n AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF\n ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,\n IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,\n WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR\n PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,\n ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT\n KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT\n ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.\n\n b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE\n TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,\n NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,\n INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,\n COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR\n USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN\n ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR\n DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR\n IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.\n\n c. The disclaimer of warranties and limitation of liability provided\n above shall be interpreted in a manner that, to the extent\n possible, most closely approximates an absolute disclaimer and\n waiver of all liability.\n\nSection 6 -- Term and Termination.\n\n a. This Public License applies for the term of the Copyright and\n Similar Rights licensed here. However, if You fail to comply with\n this Public License, then Your rights under this Public License\n terminate automatically.\n\n b. Where Your right to use the Licensed Material has terminated under\n Section 6(a), it reinstates:\n\n 1. automatically as of the date the violation is cured, provided\n it is cured within 30 days of Your discovery of the\n violation; or\n\n 2. upon express reinstatement by the Licensor.\n\n For the avoidance of doubt, this Section 6(b) does not affect any\n right the Licensor may have to seek remedies for Your violations\n of this Public License.\n\n c. For the avoidance of doubt, the Licensor may also offer the\n Licensed Material under separate terms or conditions or stop\n distributing the Licensed Material at any time; however, doing so\n will not terminate this Public License.\n\n d. Sections 1, 5, 6, 7, and 8 survive termination of this Public\n License.\n\nSection 7 -- Other Terms and Conditions.\n\n a. The Licensor shall not be bound by any additional or different\n terms or conditions communicated by You unless expressly agreed.\n\n b. Any arrangements, understandings, or agreements regarding the\n Licensed Material not stated herein are separate from and\n independent of the terms and conditions of this Public License.\n\nSection 8 -- Interpretation.\n\n a. For the avoidance of doubt, this Public License does not, and\n shall not be interpreted to, reduce, limit, restrict, or impose\n conditions on any use of the Licensed Material that could lawfully\n be made without permission under this Public License.\n\n b. To the extent possible, if any provision of this Public License is\n deemed unenforceable, it shall be automatically reformed to the\n minimum extent necessary to make it enforceable. If the provision\n cannot be reformed, it shall be severed from this Public License\n without affecting the enforceability of the remaining terms and\n conditions.\n\n c. No term or condition of this Public License will be waived and no\n failure to comply consented to unless expressly agreed to by the\n Licensor.\n\n d. Nothing in this Public License constitutes or may be interpreted\n as a limitation upon, or waiver of, any privileges and immunities\n that apply to the Licensor or You, including from the legal\n processes of any jurisdiction or authority.\n\n=======================================================================\n\nCreative Commons is not a party to its public\nlicenses. Notwithstanding, Creative Commons may elect to apply one of\nits public licenses to material it publishes and in those instances\nwill be considered the “Licensor.” The text of the Creative Commons\npublic licenses is dedicated to the public domain under the CC0 Public\nDomain Dedication. Except for the limited purpose of indicating that\nmaterial is shared under a Creative Commons public license or as\notherwise permitted by the Creative Commons policies published at\ncreativecommons.org/policies, Creative Commons does not authorize the\nuse of the trademark \"Creative Commons\" or any other trademark or logo\nof Creative Commons without its prior written consent including,\nwithout limitation, in connection with any unauthorized modifications\nto any of its public licenses or any other arrangements,\nunderstandings, or agreements concerning use of licensed material. For\nthe avoidance of doubt, this paragraph does not form part of the\npublic licenses.\n\nCreative Commons may be contacted at creativecommons.org.\n\n--------------------------- LICENSE FOR SMPL --------------------------------\nhttps://smpl.is.tue.mpg.de/bodylicense\n\nSMPL-Body License\nMax Planck Society e.V as Licensor\ngrants a\n\nSMPL-BODY Creative Commons License\n\nSMPL: Skinned Multi-Person Linear Model (hereinafter \"SMPL-Model\") is a 3D representation of the human body that supports realistic changes in body shape and pose. SMPL-Body is a subset of SMPL-Model which excludes the shape blendshapes or the tools to create 3D bodies using the shape blendshapes of the SMPL-Model. A SMPL-Body contains a 3D mesh, a skeleton rig, pose blendshapes and dynamic blendshapes. A SMPL-Body can be shared in the form of OBJ file(s), animated FBX file(s), or as a set of mesh vertices, skeleton rig, pose blendshapes and dynamic blendshapes in other appropriate 3D file formats.\n\nSMPL-Body is licensed under the Creative Commons Attribution 4.0 International License. You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. To view a copy of this license, visit:\n\nhttp://creativecommons.org/licenses/by/4.0/\n\nOR\n\nhttps://creativecommons.org/licenses/by/4.0/deed.de (GERMAN)\n\nThe SMPL-Model specification is defined in the granted US patent US10395411B2 (published on 2018-11-01 and 2019-08-27, granted on 2019-08-27) and the pending European EP3314577A1 (published on 2018-05-02) and World WO2016207311A1 (published on 2016-12-29) patent applications, \"Skinned Multi-Person Linear Model\". The Max Planck Society (MPG) owns the technology disclosed in these granted and pending patent applications.\n\nWith this free CC-license, we want to encourage the adoption and use of SMPL-Body and related file formats as a new Standard in 3D Body Modeling. The Grant of right qualifies as a donation under German law. As to § 521 Bürgerliches Gesetzbuch the donor is responsible only for intent and gross negligence.\n\nAttribution for Publications with SMPL-Body\nYou agree to cite the most recent paper describing the model as specified on the download website: http://smpl.is.tue.mpg.de/ This website lists the most up to date bibliographic information.\n\n--------------------------- LICENSE FOR SPIN --------------------------------\n\nCopyright (c) 2019, \nUniversity of Pennsylvania, \nMax Planck Institute for Intelligent Systems\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.",
44
+ "type": "registry:ui"
45
+ },
46
+ {
47
+ "path": "src/components/Button/Button.core.tsx",
48
+ "content": "import React from 'react';\nimport { ButtonProps } from './Button/Button.props';\nimport type { LinkProps } from '../Link/Link/Link.props';\nimport { ButtonElement } from './Button/Button.element';\n// Importing TypeScript type for button properties to ensure the component receives the correct props.\nimport ButtonView from './Button/Button.view';\nimport { useHover } from 'app-studio';\nimport { useDesignSystemComponentLayers } from '../../design-system/theme';\n// Forwards `ref` to the rendered button (web) or its underlying view (native),\n// sharing the node with the hover tracker.\nexport const createButton = (\n linkComponent?: React.ComponentType<LinkProps>\n) => {\n const ButtonComponent = React.forwardRef<ButtonElement, ButtonProps>(\n (props, ref) => {\n const [hoverRef, hover] = useHover();\n const setRef = React.useCallback(\n (node: ButtonElement | null) => {\n // Hover is tracked on DOM nodes only; React Native has no hover.\n hoverRef.current =\n typeof HTMLElement !== 'undefined' && node instanceof HTMLElement\n ? node\n : null;\n if (typeof ref === 'function') ref(node);\n else if (ref) ref.current = node;\n },\n [hoverRef, ref]\n );\n const { props: mergedProps, themeViews } = useDesignSystemComponentLayers(\n 'button',\n props\n );\n\n // Provenance-aware content color: only THIS instance can declare an\n // explicit content color — via `textColor`, or by passing the CSS-meaning\n // pair (`backgroundColor` + `color`, where `color` keeps its CSS sense).\n // It must be read from the raw instance props BEFORE the design-system\n // merge, which would otherwise let a brand default like Nike's\n // white-on-black `textColor` bleed into e.g. a white carousel control and\n // render its icon white-on-white.\n const explicitTextColor =\n props.textColor ??\n (props.backgroundColor != null && props.color != null\n ? props.color\n : undefined);\n\n return (\n <ButtonView\n ref={setRef}\n isHovered={hover}\n {...mergedProps}\n themeViews={themeViews}\n explicitTextColor={explicitTextColor}\n linkComponent={linkComponent}\n />\n );\n }\n );\n ButtonComponent.displayName = 'Button';\n return ButtonComponent;\n};\n",
49
+ "type": "registry:ui"
50
+ },
51
+ {
52
+ "path": "src/components/Button/Button.pilot.tsx",
53
+ "content": "import { createButton } from './Button.core';\n\nexport const Button = createButton();\nexport type { ButtonProps } from './Button/Button.props';\n",
54
+ "type": "registry:ui"
55
+ },
56
+ {
57
+ "path": "src/components/Button/Button/Button.element.native.ts",
58
+ "content": "import type { View } from 'react-native';\n\n// The node a Button `ref` receives on React Native: the underlying view.\nexport type ButtonElement = View;\n",
59
+ "type": "registry:ui"
60
+ },
61
+ {
62
+ "path": "src/components/Button/Button/Button.element.ts",
63
+ "content": "// The node a Button `ref` receives on web: the rendered <button> (or the\n// wrapping element when `to` turns it into a link).\nexport type ButtonElement = HTMLElement;\n",
64
+ "type": "registry:ui"
65
+ },
66
+ {
67
+ "path": "src/components/Button/Button/Button.props.ts",
68
+ "content": "import React from 'react';\nimport { ButtonProps as $ButtonProps, Shadow, ViewProps } from 'app-studio';\nimport { Elevation } from '../../../utils/elevation';\nimport {\n IconPosition,\n Shape,\n Size,\n Variant,\n Animation,\n LoaderPosition,\n // Defines the types and structure required for the ButtonProps interface, used as a contract for Button component properties.\n} from './Button.type';\n// Optional React node(s) to be displayed as the button's content.\nimport { LoaderProps } from '../../Loader/Loader/Loader.props';\n// Optional string to define the color scheme of the button.\nexport interface ButtonProps\n extends Omit<$ButtonProps, 'size' | 'onClick' | 'variant' | 'shadow'> {\n // Optional React node(s) to be displayed as the button's content.\n children?: React.ReactNode;\n // Optional LoaderProps object to configure the appearance and behavior of the loader animation.\n to?: string;\n // Optional LoaderPosition to determine the location of the loader animation relative to the button content.\n isLoading?: boolean;\n // Optional React node(s) defining the icon to be displayed within the button.\n loaderProps?: LoaderProps;\n // Optional IconPosition to specify the icon placement inside the button relative to text.\n loaderPosition?: LoaderPosition;\n // Optional boolean to indicate if the button is non-interactive/disabled.\n icon?: React.ReactNode;\n // Optional boolean to control the fill property of the button, affecting its style.\n iconPosition?: IconPosition;\n // Optional boolean indicating if the button size should automatically adjust to its content.\n isDisabled?: boolean;\n // Optional boolean that adds a rounded style to the icon if present.\n isFilled?: boolean;\n // Optional function that will be called when the button is clicked.\n isAuto?: boolean;\n // Optional Size to specify the size of the button.\n isIconRounded?: boolean;\n // Optional shadow property that can be a predefined Shadow, Elevation value or custom CSSProperties to apply shadow effects to the button.\n onClick?: (...args: any) => any;\n // Optional flag indicating the link should open in an external/new tab.\n isExternal?: boolean;\n // Optional flag indicating the button renders only an icon (no text label).\n isIcon?: boolean;\n // Optional Shape to specify the shape of the button (e.g., rounded or square edges).\n size?: Size;\n // Optional string used as an accessible label for screen readers.\n shadow?: Shadow | Elevation | ViewProps;\n // Optional Variant to define the stylistic variation of the button.\n shape?: Shape;\n // Optional effect to apply interactive effects (e.g., ripple) to the button.\n ariaLabel?: string;\n\n // Variant to define the stylistic variation of the button.\n variant?: Variant | string;\n\n // Optional animation to apply to the button\n animation?: Animation;\n\n // Main color for the button (accepts theme tokens like 'theme-primary' or color palette like 'color-blue-600')\n color?: string;\n\n // Explicit text color (overrides auto-calculated color)\n textColor?: string;\n\n // INTERNAL — set by the Button wrapper: content color declared by the\n // instance itself (via `textColor`, or via the `backgroundColor` + `color`\n // pair where `color` keeps its CSS meaning). Read from raw instance props\n // before the design-system config merge, so config-level `textColor`\n // defaults cannot masquerade as instance intent. Do not set manually.\n explicitTextColor?: string;\n\n // Whether to reverse the colors (useful for dark backgrounds)\n reversed?: boolean;\n\n // Props for borderMoving variant\n borderMovingDuration?: number;\n borderMovingGradientColors?: string[];\n\n // Internal hover state\n isHovered?: boolean;\n\n // Props for animatedStroke variant\n animatedStrokeAccentColor?: string;\n animatedStrokeTextColor?: string;\n\n views?: {\n container?: ViewProps;\n content?: ViewProps;\n loader?: ViewProps;\n icon?: ViewProps;\n link?: ViewProps;\n };\n config?: any;\n // Optional list of i18n keys passed by editor-driven button instances.\n keys?: any[];\n // Optional visible label rendered as the button's content (alias for children).\n label?: React.ReactNode;\n // Optional alias for icon rendered on the leading edge of the button.\n leftIcon?: React.ReactNode;\n // Optional alias for icon rendered on the trailing edge of the button.\n rightIcon?: React.ReactNode;\n // Alternate spelling of leftIcon for compatibility with form libraries.\n startIcon?: React.ReactNode;\n // Alternate spelling of rightIcon for compatibility with form libraries.\n endIcon?: React.ReactNode;\n}\n",
69
+ "type": "registry:ui"
70
+ },
71
+ {
72
+ "path": "src/components/Button/Button/Button.style.ts",
73
+ "content": "/**\n * Button Styles\n *\n * Defines the styles for the Button component following the design guidelines:\n * - Typography: Inter/Geist font, specific sizes/weights\n * - Spacing: 4px grid system\n * - Colors: Neutral palette with semantic colors\n * - Rounded corners: Consistent border radius\n * - Transitions: Subtle animations\n */\n\nimport { ViewProps } from 'app-studio';\nimport { alphaColor } from '../../../utils/colors';\nimport { Shape, Size, Variant } from './Button.type';\n\n/**\n * Vertical padding is one pixel short of the obvious `(minHeight - lineHeight) / 2`\n * on purpose.\n *\n * These boxes are `border-box`, and every bordered variant (`filled`, `outline`)\n * draws a 1px border. Budgeting `paddingVertical * 2 + lineHeight === minHeight`\n * leaves no room for it, so those variants rendered exactly 2px taller than the\n * size they declare — a `md` Button came out at 42px next to a `md` TextField at\n * 40px. Borderless variants are unaffected: their content is 2px under\n * `minHeight`, which then floors them to the declared height anyway.\n *\n * The type scale is deliberately untouched; the correction is taken out of\n * spacing rather than typography.\n */\nexport const ButtonSizes: Record<Size, ViewProps> = {\n xs: {\n minHeight: 24,\n paddingHorizontal: 12,\n paddingVertical: 5,\n fontSize: 10,\n fontWeight: 500,\n lineHeight: 12,\n letterSpacing: '-0.01em',\n },\n sm: {\n minHeight: 32,\n paddingHorizontal: 16,\n paddingVertical: 7,\n fontSize: 12,\n fontWeight: 500,\n lineHeight: 16,\n letterSpacing: '-0.01em',\n },\n md: {\n minHeight: 40,\n paddingHorizontal: 20,\n paddingVertical: 9,\n fontSize: 14,\n fontWeight: 500,\n lineHeight: 20,\n letterSpacing: '-0.01em',\n },\n lg: {\n minHeight: 48,\n paddingHorizontal: 24,\n paddingVertical: 11,\n fontSize: 16,\n fontWeight: 500,\n lineHeight: 24,\n letterSpacing: '-0.01em',\n },\n xl: {\n minHeight: 56,\n paddingHorizontal: 28,\n paddingVertical: 13,\n fontSize: 20,\n fontWeight: 500,\n lineHeight: 28,\n letterSpacing: '-0.01em',\n },\n};\n\n/**\n * Button shapes with consistent border radius\n */\nexport const ButtonShapes: Record<Shape, number | string> = {\n square: 0,\n rounded: 8,\n pill: 999, // Full rounded for pill shape\n};\n\n/**\n * Icon sizes for different button sizes\n */\nexport const IconSizes: Record<Size, ViewProps> = {\n xs: {\n width: 16,\n height: 16,\n padding: 6,\n },\n sm: {\n width: 20,\n height: 20,\n padding: 6,\n },\n md: {\n width: 24,\n height: 24,\n padding: 8,\n },\n lg: {\n width: 24,\n height: 24,\n padding: 12,\n },\n xl: {\n width: 28,\n height: 28,\n padding: 14,\n },\n};\n\n/**\n * Convert an app-studio token (`color-*`, `theme-*`, `light-*`, `dark-*`) into\n * the equivalent CSS `var(--token)` reference so it can be embedded inside\n * arbitrary CSS strings (box-shadow, gradients, …) where token resolution is\n * not applied. Non-token values are returned unchanged.\n */\nexport const cssVar = (value: string) =>\n /^(color|theme|light|dark)-/.test(value) ? `var(--${value})` : value;\n\nconst normalizeHex = (value: string) => {\n const match = value.match(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i);\n if (!match) return null;\n\n const hex =\n match[1].length === 3\n ? match[1]\n .split('')\n .map((char) => `${char}${char}`)\n .join('')\n : match[1];\n\n return {\n r: parseInt(hex.slice(0, 2), 16),\n g: parseInt(hex.slice(2, 4), 16),\n b: parseInt(hex.slice(4, 6), 16),\n };\n};\n\nconst mixHex = (value: string, alpha: number) => {\n const color = normalizeHex(value);\n if (!color) return value;\n\n const target = alpha < 100 ? 255 : 0;\n const amount = Math.min(Math.abs(100 - alpha) / 100, 0.28);\n const toHex = (channel: number) =>\n Math.round(channel + (target - channel) * amount)\n .toString(16)\n .padStart(2, '0');\n\n return `#${toHex(color.r)}${toHex(color.g)}${toHex(color.b)}`;\n};\n\nconst tintColor = (value: string, alpha: number) => mixHex(value, alpha);\n\nexport const getButtonVariants = (\n color: string,\n textColor: string,\n reversed: boolean = false,\n theme?: any\n): Record<Variant, ViewProps> => {\n // Determine effective tokens based on reversed state\n const effectiveBg = reversed ? textColor : color;\n const effectiveContent = reversed ? color : textColor;\n const effectiveBorder = reversed ? textColor : color;\n\n // For filled buttons, if the background is the primary color, use onPrimary for text contrast.\n const isPrimary =\n color === 'theme-primary' || (theme && color === theme.primary);\n const filledTextColor =\n isPrimary && theme?.onPrimary ? theme.onPrimary : effectiveContent;\n\n // App-Studio alpha syntax: `{token}-{alpha}` (alpha 0–1000 → 0%–100% opacity).\n const focusRing = `0 0 0 2px ${cssVar('color-white')}, 0 0 0 4px ${cssVar(\n effectiveBorder\n )}`;\n const focusVisible = {\n outline: `2px solid ${cssVar(effectiveBorder)}`,\n outlineOffset: 2,\n boxShadow: focusRing,\n };\n\n return {\n filled: {\n backgroundColor: effectiveBg,\n color: filledTextColor,\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: effectiveBg,\n _hover: { opacity: 0.92 },\n _active: { opacity: 0.96 },\n _focusVisible: focusVisible,\n transition:\n 'background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease',\n },\n empty: {\n color: effectiveBorder,\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: alphaColor(effectiveBorder, reversed ? 400 : 250),\n backgroundColor: 'transparent',\n _hover: { opacity: 0.9 },\n _active: { opacity: 0.95 },\n _focusVisible: focusVisible,\n transition: 'background-color 0.2s ease, opacity 0.2s ease',\n },\n outline: {\n color: effectiveBorder,\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: alphaColor(effectiveBorder, reversed ? 400 : 250),\n backgroundColor: 'transparent',\n _hover: { opacity: 0.9 },\n _active: { opacity: 0.95 },\n _focusVisible: focusVisible,\n transition:\n 'background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease',\n },\n ghost: {\n color: effectiveBorder,\n borderWidth: 0,\n borderStyle: 'solid',\n borderColor: effectiveBorder,\n backgroundColor: 'transparent',\n _hover: { opacity: 0.86 },\n _active: { opacity: 0.94 },\n _focusVisible: focusVisible,\n transition: 'background-color 0.2s ease, color 0.2s ease',\n },\n link: {\n color: effectiveBorder,\n borderWidth: 0,\n borderStyle: 'none',\n borderColor: effectiveBorder,\n minHeight: 'auto',\n paddingHorizontal: '4px',\n paddingVertical: '10px',\n textDecoration: 'underline',\n backgroundColor: 'transparent',\n style: {\n textUnderlineOffset: '2px',\n textDecorationThickness: '1px',\n textDecorationColor: cssVar(effectiveBorder),\n } as ViewProps['style'],\n _hover: { opacity: 0.8 },\n _active: { opacity: 0.9 },\n _focusVisible: focusVisible,\n transition: 'opacity 0.2s ease',\n },\n subtle: {\n // Translucent tints via `alphaColor`: tokens get the app-studio\n // `-{alpha}` suffix (0–1000), raw CSS colors (`#hex`, `rgb()`, keywords\n // — e.g. a caller's `backgroundColor`) get an equivalent `color-mix()`.\n // Text stays at full opacity so the label remains readable.\n backgroundColor: alphaColor(effectiveBorder, reversed ? 200 : 100),\n color: effectiveBorder,\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: alphaColor(effectiveBorder, reversed ? 400 : 250),\n _hover: {\n backgroundColor: alphaColor(effectiveBorder, reversed ? 300 : 180),\n },\n _active: {\n backgroundColor: alphaColor(effectiveBorder, reversed ? 380 : 240),\n },\n _focusVisible: focusVisible,\n transition:\n 'background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease',\n },\n };\n};\n\n/**\n * Generate offset path for border animation\n */\nexport function generateOffsetPath(\n width: number,\n height: number,\n borderRadius: number | string\n): string {\n let radius: number;\n\n if (typeof borderRadius === 'string' && borderRadius.endsWith('%')) {\n const percentage = parseFloat(borderRadius) / 100;\n radius = Math.min(width, height) * percentage;\n } else {\n radius = parseFloat(borderRadius.toString());\n }\n\n radius = Math.min(radius, width / 2, height / 2);\n\n if (radius === 0) {\n return `M 0,0 H ${width} V ${height} H 0 Z`;\n }\n\n return `\n M ${radius},0\n H ${width - radius}\n A ${radius},${radius} 0 0 1 ${width},${radius}\n V ${height - radius}\n A ${radius},${radius} 0 0 1 ${width - radius},${height}\n H ${radius}\n A ${radius},${radius} 0 0 1 0,${height - radius}\n V ${radius}\n A ${radius},${radius} 0 0 1 ${radius},0\n Z\n `;\n}\n",
74
+ "type": "registry:ui"
75
+ },
76
+ {
77
+ "path": "src/components/Button/Button/Button.type.ts",
78
+ "content": "export type BorderWeights = 'light' | 'normal' | 'bold' | 'extrabold' | 'black';\n// Defines a TypeScript type 'BorderWeights' that allows for any of these string literal values: 'light', 'normal', 'bold', 'extrabold', or 'black' to represent the weight (thickness) of borders.\nexport type Shape = 'square' | 'rounded' | 'pill';\n// Defines a TypeScript type 'Shape' which can be one of these string literals: 'square', 'rounded', or 'pill', likely representing the shape of UI elements like buttons.\nexport type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';\n// Creates a TypeScript type 'Size' for standardized size categories such as 'xs' for extra-small, 'sm' for small, 'md' for medium, 'lg' for large, or 'xl' for extra-large.\nexport type Loaders = 'spinner' | 'points' | 'points-opacity';\n// Introduces a TypeScript type 'Loaders' which could be used to define the style of loading indicators from a set of predefined options: 'spinner', 'points', 'points-opacity'.\nexport type IconPosition = 'left' | 'right' | 'top' | 'bottom';\n// Specifies a TypeScript type 'IconPosition' to define the position where an icon should be placed relative to another element, with possible values 'left' or 'right'.\nexport type LoaderPosition = 'left' | 'right';\n// Specifying a 'LoaderPosition' type for positioning a loader on the 'left' or 'right' side within a component where it is used.\nexport type ColorScheme = 'primary' | 'secondary' | 'black' | 'white';\n\nexport type Variant =\n | 'filled'\n | 'outline'\n | 'empty'\n | 'ghost'\n | 'link'\n | 'subtle';\n\nexport type Animation = 'borderMoving' | 'animatedStroke' | 'borderReveal';\n// Declares a type 'Variant' used for styling components where each value—'filled', 'outline', 'link', 'ghost'—likely describes a visual style or theme, and 'borderMoving', 'animatedStroke' are special effect variants.\n",
79
+ "type": "registry:ui"
80
+ },
81
+ {
82
+ "path": "src/components/Button/Button/Button.view.native.tsx",
83
+ "content": "/**\n * ButtonView (React Native) – simplified RN-friendly view.\n * - Drops web-only animations (borderMoving / animatedStroke / borderReveal) and\n * gracefully falls back to the default Standard button.\n * - Uses app-studio's <Element/> (renders a Pressable when onPress is set).\n * - Preserves the public API surface of the web ButtonView.\n */\n\nimport React, { useMemo } from 'react';\nimport { Element, Horizontal, Vertical, View, Text } from 'app-studio';\nimport { Linking } from 'react-native';\nimport type { LinkProps } from '../../Link/Link/Link.props';\nimport { Loader } from '../../Loader/Loader';\nimport { ButtonProps } from './Button.props';\nimport {\n ButtonSizes,\n ButtonShapes,\n IconSizes,\n getButtonVariants,\n} from './Button.style';\nimport {\n useDesignSystem,\n deepMerge,\n mergeDesignSystemViews,\n} from '../../../design-system/theme';\nimport { Shape, Size, Variant } from './Button.type';\n\n// --- Helper: Button Content ---\nconst ButtonContent: React.FC<{\n children: React.ReactNode;\n icon?: React.ReactNode;\n isLoading?: boolean;\n iconPosition?: string;\n loaderPosition?: string;\n size?: Size;\n resolvedTextColor: string;\n isIconRounded?: boolean;\n views?: any;\n}> = React.memo(\n ({\n children,\n icon,\n isLoading,\n iconPosition = 'left',\n loaderPosition = 'left',\n size = 'md',\n resolvedTextColor,\n views,\n }) => {\n const Wrapper = ['left', 'right'].includes(iconPosition)\n ? Horizontal\n : Vertical;\n const sizeStyles = ButtonSizes[size];\n\n // On native, `color` does NOT cascade into an icon's SVG the way it does on\n // web — an icon whose color is `currentColor` would fall back to a dark\n // default and vanish on a coloured button. Inject the button's text color\n // into the icon unless it already specifies one.\n const tintedIcon = React.isValidElement(icon)\n ? React.cloneElement(icon as any, {\n color: (icon as any).props?.color ?? resolvedTextColor,\n })\n : icon;\n\n return (\n <Wrapper\n gap={8}\n alignItems=\"center\"\n justifyContent=\"center\"\n fontSize={sizeStyles.fontSize}\n fontWeight={sizeStyles.fontWeight}\n lineHeight={sizeStyles.lineHeight}\n letterSpacing={sizeStyles.letterSpacing}\n color={resolvedTextColor}\n {...views?.content}\n >\n {isLoading && loaderPosition === 'left' && (\n <Loader\n size={size === 'xs' || size === 'sm' ? 'sm' : 'md'}\n color={resolvedTextColor}\n {...views?.loader}\n />\n )}\n\n {icon && ['left', 'top'].includes(iconPosition) && !isLoading && (\n <View color={resolvedTextColor} {...views?.icon}>\n {tintedIcon}\n </View>\n )}\n\n {React.Children.map(children, (child) =>\n typeof child === 'string' || typeof child === 'number' ? (\n <Text color={resolvedTextColor}>{child}</Text>\n ) : (\n child\n )\n )}\n\n {icon && ['right', 'bottom'].includes(iconPosition) && !isLoading && (\n <View color={resolvedTextColor} {...views?.icon}>\n {tintedIcon}\n </View>\n )}\n\n {isLoading && loaderPosition === 'right' && (\n <Loader\n size={size === 'xs' || size === 'sm' ? 'sm' : 'md'}\n color={resolvedTextColor}\n {...views?.loader}\n />\n )}\n </Wrapper>\n );\n }\n);\n\nconst noopPress = () => {};\n\n// --- Main Component ---\nfunction NativeLink({\n to,\n href,\n isExternal,\n onPress,\n children,\n ...props\n}: LinkProps) {\n const url = href ?? (isExternal ? to : undefined);\n return (\n <Horizontal\n accessibilityRole=\"link\"\n onPress={\n url\n ? () => {\n void Linking.openURL(url).catch(() => {});\n }\n : onPress\n }\n {...props}\n >\n {children}\n </Horizontal>\n );\n}\n\nconst ButtonView = React.memo(\n React.forwardRef<\n any,\n ButtonProps & {\n linkComponent?: React.ComponentType<LinkProps>;\n themeViews?: ButtonProps['views'];\n }\n >(\n (\n {\n variant = 'filled',\n size = 'md',\n shape = 'rounded',\n iconPosition = 'left',\n loaderPosition = 'left',\n backgroundColor,\n color,\n textColor,\n explicitTextColor,\n reversed = false,\n isAuto = true,\n isFilled,\n isDisabled,\n isLoading,\n disabled,\n isIconRounded,\n icon,\n children,\n to,\n isExternal,\n linkComponent: Link = NativeLink,\n shadow,\n onClick,\n ariaLabel,\n accessibilityState,\n views: instanceViews = {},\n themeViews,\n config: buttonConfig,\n ...props\n },\n ref\n ) => {\n const baseColorKey = backgroundColor ?? color ?? 'theme-primary';\n const mainColorKey = isDisabled\n ? 'theme-disabled'\n : isLoading\n ? 'theme-loading'\n : baseColorKey;\n // Mirrors Button.view.tsx: instance-declared `explicitTextColor`\n // (resolved by the Button wrapper) wins over a config's `textColor`.\n const textColorKey = explicitTextColor ?? textColor ?? 'color-white';\n\n const { config } = useDesignSystem();\n const theme = config?.theme;\n const palette = useMemo(() => {\n const basePalette = getButtonVariants(\n mainColorKey,\n textColorKey,\n reversed,\n theme\n );\n if (buttonConfig?.variants) {\n Object.keys(buttonConfig.variants).forEach((v) => {\n if (basePalette[v as Variant]) {\n basePalette[v as Variant] = deepMerge(\n basePalette[v as Variant],\n buttonConfig.variants[v]\n );\n }\n });\n }\n return basePalette;\n }, [mainColorKey, textColorKey, reversed, theme, buttonConfig?.variants]);\n\n const variantBase = palette[variant as Variant] ?? palette.filled;\n const base = explicitTextColor\n ? { ...variantBase, color: explicitTextColor }\n : variantBase;\n const views = themeViews\n ? mergeDesignSystemViews<NonNullable<ButtonProps['views']>>(\n themeViews,\n { container: base },\n instanceViews\n )\n : instanceViews;\n const slotColor =\n themeViews && (views.container?.style?.color ?? views.container?.color);\n const finalContentColor = (slotColor ||\n base.color ||\n textColorKey) as string;\n\n const content = (\n <ButtonContent\n icon={icon}\n isLoading={isLoading}\n iconPosition={iconPosition}\n loaderPosition={loaderPosition}\n size={size}\n resolvedTextColor={finalContentColor}\n isIconRounded={isIconRounded}\n views={views}\n >\n {children}\n </ButtonContent>\n );\n\n const sizeStyles = ButtonSizes[size as Size];\n const iconPad = isIconRounded ? IconSizes[size as Size] : {};\n\n const linkOrContent = to ? (\n <Link\n to={to}\n isExternal={isExternal}\n color={finalContentColor}\n {...views?.link}\n >\n {content}\n </Link>\n ) : (\n content\n );\n\n const pressDisabled = Boolean(\n isDisabled || isLoading || disabled || accessibilityState?.disabled\n );\n const activate = pressDisabled ? undefined : onClick;\n\n return (\n <Element\n ref={ref}\n {...sizeStyles}\n {...iconPad}\n flexDirection=\"row\"\n alignItems=\"center\"\n justifyContent=\"center\"\n alignSelf={isFilled ? 'stretch' : isAuto ? 'flex-start' : undefined}\n borderRadius={ButtonShapes[shape as Shape]}\n opacity={isDisabled ? 0.6 : 1}\n onPress={activate ?? (to ? undefined : noopPress)}\n disabled={to ? disabled : pressDisabled}\n accessibilityRole={to ? undefined : 'button'}\n accessibilityLabel={to ? undefined : ariaLabel}\n accessibilityState={\n to\n ? accessibilityState\n : {\n ...accessibilityState,\n disabled: pressDisabled,\n busy: Boolean(isLoading) || accessibilityState?.busy,\n }\n }\n {...base}\n {...views?.container}\n {...props}\n >\n {linkOrContent}\n </Element>\n );\n }\n )\n);\n\nexport default ButtonView;\n",
84
+ "type": "registry:ui"
85
+ },
86
+ {
87
+ "path": "src/components/Button/Button/Button.view.tsx",
88
+ "content": "/**\n * ButtonView component – minimal and design‑system aligned.\n * - Chooses a **main color** with priority: `backgroundColor` → `color` → `theme-primary`.\n * - Uses `getButtonVariants` to derive base/hover/active styles per variant.\n */\n\nimport React, { useMemo } from 'react';\nimport { Element, Horizontal, Vertical, View } from 'app-studio';\nimport type { LinkProps } from '../../Link/Link/Link.props';\nimport { Loader } from '../../Loader/Loader';\nimport { ButtonProps } from './Button.props';\nimport { LoaderProps } from '../../Loader/Loader/Loader.props';\nimport {\n ButtonSizes,\n ButtonShapes,\n IconSizes,\n getButtonVariants,\n cssVar,\n} from './Button.style';\nimport {\n useDesignSystem,\n deepMerge,\n mergeDesignSystemViews,\n} from '../../../design-system/theme';\nimport { Variant } from './Button.type';\n\n// --- Helper: Button Content ---\n// Renders the inner content: Loader, Icon, and Children.\nconst ButtonContent: React.FC<{\n children: React.ReactNode;\n icon?: React.ReactNode;\n leftIcon?: React.ReactNode;\n rightIcon?: React.ReactNode;\n isLoading?: boolean;\n iconPosition?: string;\n loaderPosition?: string;\n size?: ButtonProps['size'];\n resolvedTextColor: string;\n isIconRounded?: boolean;\n loaderProps?: LoaderProps;\n views?: any;\n}> = React.memo(\n ({\n children,\n icon,\n leftIcon,\n rightIcon,\n isLoading,\n iconPosition = 'left',\n loaderPosition = 'left',\n size = 'md',\n resolvedTextColor,\n isIconRounded,\n loaderProps,\n views,\n }) => {\n const Wrapper = ['left', 'right'].includes(iconPosition)\n ? Horizontal\n : Vertical;\n const sizeStyles = ButtonSizes[size];\n\n return (\n <Wrapper\n gap={8}\n alignItems=\"center\"\n justifyContent=\"center\"\n fontSize={sizeStyles.fontSize}\n fontWeight={sizeStyles.fontWeight}\n lineHeight={sizeStyles.lineHeight}\n letterSpacing={sizeStyles.letterSpacing}\n whiteSpace=\"nowrap\"\n color={resolvedTextColor}\n {...views?.content}\n >\n {isLoading && loaderPosition === 'left' && (\n <Loader\n size={size === 'xs' || size === 'sm' ? 'sm' : 'md'}\n color={resolvedTextColor}\n {...loaderProps}\n {...views?.loader}\n />\n )}\n\n {leftIcon && (\n <View color={resolvedTextColor} {...views?.icon}>\n {leftIcon}\n </View>\n )}\n\n {icon && ['left', 'top'].includes(iconPosition) && !isLoading && (\n <View color={resolvedTextColor} {...views?.icon}>\n {icon}\n </View>\n )}\n\n {children}\n\n {icon && ['right', 'bottom'].includes(iconPosition) && !isLoading && (\n <View color={resolvedTextColor} {...views?.icon}>\n {icon}\n </View>\n )}\n\n {rightIcon && (\n <View color={resolvedTextColor} {...views?.icon}>\n {rightIcon}\n </View>\n )}\n\n {isLoading && loaderPosition === 'right' && (\n <Loader\n size={size === 'xs' || size === 'sm' ? 'sm' : 'md'}\n color={resolvedTextColor}\n {...loaderProps}\n {...views?.loader}\n />\n )}\n </Wrapper>\n );\n }\n);\n\n// --- Animation Logic moved to StandardButton ---\n\n// --- Variant: Standard Button ---\n// --- Helpers ---\n\n// Helper to calculate numeric border radius\nconst getNumericBorderRadius = (shape: string): number => {\n const shapeValue = ButtonShapes[shape as keyof typeof ButtonShapes];\n if (typeof shapeValue === 'number') return shapeValue;\n if (typeof shapeValue === 'string') return parseInt(shapeValue, 10) || 0;\n return 0;\n};\n\n// Common Inner Button Surface\nconst InnerButton: React.FC<{\n asComponent: any;\n isDisabled?: boolean;\n isLoading?: boolean;\n isWrapped?: boolean;\n borderRadius?: any;\n width?: any;\n height?: any;\n baseStyles?: any;\n sizeStyles?: any;\n iconPad?: any;\n mainTone?: string;\n resolvedTextColor?: any;\n children?: React.ReactNode;\n borderWidth?: number;\n [x: string]: any;\n}> = ({\n asComponent,\n isDisabled,\n isLoading,\n isWrapped = false,\n borderRadius,\n width,\n height,\n baseStyles,\n sizeStyles,\n iconPad,\n mainTone,\n resolvedTextColor,\n children,\n borderWidth = 0,\n ...props\n}) => {\n return (\n <Element\n as={asComponent}\n disabled={Boolean(isDisabled || isLoading)}\n display={isWrapped ? 'flex' : 'inline-flex'}\n alignItems=\"center\"\n justifyContent=\"center\"\n borderRadius={borderRadius}\n width={width}\n height={height}\n {...baseStyles}\n {...sizeStyles}\n {...iconPad}\n // Ensure background is solid for wrapped buttons if baseStyles doesn't provide it\n backgroundColor={\n baseStyles?.backgroundColor || (isWrapped ? mainTone : undefined)\n }\n color={resolvedTextColor}\n borderWidth={isWrapped ? 0 : undefined}\n cursor={isDisabled ? 'default' : 'pointer'}\n {...props}\n >\n {children}\n </Element>\n );\n};\n\n// Common Header for Border Animations\nconst BorderWrapper: React.FC<{\n shape: string;\n isDisabled?: boolean;\n onClick?: any;\n shadow?: any;\n borderWidth: number;\n isAuto?: boolean;\n isFilled?: boolean;\n views?: any;\n children: React.ReactNode;\n [x: string]: any;\n}> = ({\n shape,\n isDisabled,\n onClick,\n shadow,\n borderWidth,\n isAuto,\n isFilled,\n views,\n children,\n ...props\n}) => (\n <Element\n as=\"div\"\n position=\"relative\"\n display=\"inline-flex\"\n alignItems=\"center\"\n justifyContent=\"center\"\n borderRadius={ButtonShapes[shape as keyof typeof ButtonShapes]}\n cursor={isDisabled ? 'default' : 'pointer'}\n onClick={onClick}\n boxShadow={shadow}\n padding={borderWidth}\n width={isFilled ? '100%' : isAuto ? 'fit-content' : undefined}\n {...views?.container}\n {...props}\n >\n {children}\n </Element>\n);\n\nconst ButtonAnchor = ({ to, isExternal, children, ...props }: LinkProps) => (\n <Element\n as=\"a\"\n href={to}\n {...(isExternal ? { target: '_blank', rel: 'noopener noreferrer' } : {})}\n {...props}\n >\n {children}\n </Element>\n);\n\ntype ButtonViewProps = ButtonProps & {\n linkComponent?: React.ComponentType<LinkProps>;\n};\n\n// --- Variant: Standard Button ---\nconst StandardButton: React.FC<\n ButtonViewProps & {\n baseStyles: any;\n sizeStyles: any;\n iconPad: any;\n containerRef?: React.Ref<HTMLElement>;\n // Extra props passed from ButtonView\n mainTone?: string;\n borderMovingDuration?: number;\n borderMovingGradientColors?: string[];\n animatedStrokeAccentColor?: string;\n animatedStrokeTextColor?: string;\n resolvedTextColor?: any;\n content?: React.ReactNode;\n }\n> = ({\n variant,\n animation,\n to,\n linkComponent: Link = ButtonAnchor,\n isDisabled,\n isLoading,\n isAuto,\n isFilled,\n isExternal,\n shape = 'rounded',\n shadow,\n onClick,\n views,\n baseStyles,\n sizeStyles,\n iconPad,\n containerRef,\n resolvedTextColor,\n content,\n size,\n mainTone,\n borderMovingDuration = 2,\n borderMovingGradientColors = ['#705CFF', '#FF5C97', '#FFC75C'],\n animatedStrokeAccentColor = '#705CFF',\n animatedStrokeTextColor = 'color-gray-900',\n ...props\n}) => {\n // --- Common Helpers ---\n const numericBorderRadius = getNumericBorderRadius(shape);\n\n const linkOrContent = to ? (\n <Link\n to={to}\n isExternal={isExternal}\n color=\"currentColor\"\n textDecoration=\"inherit\"\n _hover={{ color: 'currentColor' }}\n {...views?.link}\n >\n {content}\n </Link>\n ) : (\n content\n );\n\n const innerProps = {\n isDisabled,\n isLoading,\n baseStyles,\n sizeStyles,\n iconPad,\n resolvedTextColor,\n mainTone,\n children: linkOrContent,\n };\n\n // --- Animation: Border Moving ---\n if (animation === 'borderMoving' && borderMovingGradientColors) {\n const borderWidth = 3;\n const borderAnimation = {\n from: { backgroundPosition: '0% 50%' },\n to: { backgroundPosition: '200% 50%' },\n duration: `${borderMovingDuration}s`,\n timingFunction: 'linear',\n iterationCount: 'infinite',\n };\n\n return (\n <BorderWrapper\n shape={shape}\n isDisabled={isDisabled}\n onClick={onClick}\n shadow={shadow}\n borderWidth={borderWidth as any}\n isAuto={isAuto}\n isFilled={isFilled}\n views={views}\n background={`linear-gradient(90deg, ${cssVar(\n borderMovingGradientColors[0]\n )}, ${cssVar(borderMovingGradientColors[1])}, ${cssVar(\n borderMovingGradientColors[2]\n )}, ${cssVar(borderMovingGradientColors[0])})`}\n backgroundSize=\"200% 100%\"\n animate={borderAnimation}\n {...props}\n >\n <InnerButton\n asComponent={to ? 'div' : 'button'}\n isWrapped={true}\n borderRadius={Math.max(0, numericBorderRadius - borderWidth)}\n width=\"100%\"\n height=\"100%\"\n {...innerProps}\n />\n </BorderWrapper>\n );\n }\n\n // --- Animation: Animated Stroke ---\n if (animation === 'animatedStroke') {\n // SVG stroke / CSS color need a real CSS value — wrap tokens in var(--…).\n const resolvedAccentColor = cssVar(animatedStrokeAccentColor);\n const resolvedStrokeTextColor = cssVar(animatedStrokeTextColor);\n const strokePathLength = 1000;\n const strokeAnimation = {\n from: {\n strokeWidth: '8px',\n strokeDasharray: `0 ${strokePathLength}`,\n strokeDashoffset: -Math.round(strokePathLength * 0.63),\n },\n to: {\n strokeWidth: '3px',\n strokeDasharray: `${strokePathLength}`,\n strokeDashoffset: 0,\n },\n duration: '0.9s',\n timingFunction: 'ease-in',\n fillMode: 'forwards',\n };\n\n const mergedClassName = [\n 'group',\n (views?.container as any)?.className,\n (props as any)?.className,\n ]\n .filter(Boolean)\n .join(' ');\n\n return (\n <Element\n ref={containerRef}\n as={to ? 'div' : 'button'}\n type={to ? undefined : 'button'}\n disabled={Boolean(!to && (isDisabled || isLoading))}\n onClick={onClick}\n position=\"relative\"\n display=\"inline-flex\"\n alignItems=\"center\"\n justifyContent=\"center\"\n width={isFilled ? '100%' : isAuto ? 'fit-content' : undefined}\n borderRadius={ButtonShapes[shape as keyof typeof ButtonShapes]}\n boxShadow={shadow as any}\n transition=\"background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease\"\n cursor={isDisabled ? 'default' : 'pointer'}\n color={resolvedStrokeTextColor}\n backgroundColor=\"transparent\"\n borderWidth={0}\n {...views?.container}\n {...props}\n className={mergedClassName}\n >\n <View\n as=\"svg\"\n position=\"absolute\"\n top={0}\n right={0}\n bottom={0}\n left={0}\n width=\"100%\"\n height=\"100%\"\n xmlns=\"http://www.w3.org/2000/svg\"\n pointerEvents=\"none\"\n zIndex={1}\n aria-hidden=\"true\"\n >\n <View\n as=\"rect\"\n x=\"0\"\n y=\"0\"\n height=\"100%\"\n width=\"100%\"\n rx={numericBorderRadius}\n ry={numericBorderRadius}\n fill=\"transparent\"\n stroke={resolvedAccentColor}\n strokeWidth=\"8px\"\n strokeDasharray={`0 ${strokePathLength}`}\n strokeDashoffset={-Math.round(strokePathLength * 0.63)}\n {...({ pathLength: strokePathLength } as any)}\n on={{\n groupHover: {\n animate: strokeAnimation as any,\n },\n }}\n />\n </View>\n\n <View position=\"relative\" zIndex={0}>\n {linkOrContent}\n </View>\n </Element>\n );\n }\n\n // --- Animation: Border Reveal ---\n if (animation === 'borderReveal') {\n const borderWidth = 3;\n // Use the first color from gradient colors or fall back to mainTone.\n // Wrap in var(--…) so app-studio tokens render inside CSS gradient strings.\n const activeColor = cssVar(\n borderMovingGradientColors?.[0] || mainTone || '#000000'\n );\n\n // Sides duration\n // The default duration (2s) is too slow for a hover interaction.\n // We scale it by 0.25 to make it responsive (0.5s total).\n const effectiveDuration = borderMovingDuration * 0.75;\n const sideDuration = effectiveDuration / 4;\n\n // Gradients for each side (color 50%, transparent 50%)\n const topGrad = `linear-gradient(90deg, ${activeColor} 50%, transparent 50%)`;\n const rightGrad = `linear-gradient(180deg, ${activeColor} 50%, transparent 50%)`;\n const bottomGrad = `linear-gradient(270deg, ${activeColor} 50%, transparent 50%)`;\n const leftGrad = `linear-gradient(0deg, ${activeColor} 50%, transparent 50%)`;\n\n // Coordinates:\n // Top (L->R): 100% 0 -> 0 0\n // Right (T->B): 100% 100% -> 100% 0\n // Bottom (R->L): 0 100% -> 100% 100%\n // Left (B->T): 0 0 -> 0 100%\n const bgPosStart = `100% 0, 100% 100%, 0 100%, 0 0`;\n const bgPosEnd = `0 0, 100% 0, 100% 100%, 0 100%`;\n\n // Delays:\n // Enter (Forward): Top(0), Right(1), Bottom(2), Left(3)\n const delayEnter = `0s, ${sideDuration}s, ${sideDuration * 2}s, ${\n sideDuration * 2\n }s`;\n // Exit (Reverse): Top(3), Right(2), Bottom(1), Left(0)\n const delayExit = `${sideDuration * 2}s, ${\n sideDuration * 2\n }s, ${sideDuration}s, 0s`;\n\n // Use slightly larger gradient size to overlap with button content (avoid gaps)\n const gradientSize = borderWidth + 1;\n\n return (\n <Element\n ref={containerRef}\n as=\"div\"\n position=\"relative\"\n display=\"inline-flex\"\n alignItems=\"center\"\n justifyContent=\"center\"\n borderRadius={ButtonShapes[shape]}\n cursor={isDisabled ? 'default' : 'pointer'}\n onClick={onClick}\n boxShadow={shadow as any}\n padding={borderWidth}\n background={`\n ${topGrad} no-repeat,\n ${rightGrad} no-repeat,\n ${bottomGrad} no-repeat,\n ${leftGrad} no-repeat\n `}\n backgroundSize={`200% ${gradientSize}px, ${gradientSize}px 200%, 200% ${gradientSize}px, ${gradientSize}px 200%`}\n // Default State (Hidden)\n backgroundPosition={bgPosStart}\n transitionProperty=\"background-position\"\n transitionDuration={`${sideDuration}s`}\n transitionTimingFunction=\"linear\"\n transitionDelay={delayExit}\n // Hover State (Visible)\n _hover={{\n backgroundPosition: bgPosEnd,\n transitionDelay: delayEnter,\n }}\n width={isFilled ? '100%' : isAuto ? 'fit-content' : undefined}\n {...views?.container}\n {...props}\n >\n <View\n as={to ? 'div' : 'button'}\n disabled={Boolean(isDisabled || isLoading)}\n display=\"flex\"\n alignItems=\"center\"\n justifyContent=\"center\"\n borderRadius={Math.max(0, numericBorderRadius - borderWidth)}\n width=\"100%\"\n height=\"100%\"\n {...baseStyles}\n {...sizeStyles}\n {...iconPad}\n backgroundColor={baseStyles?.backgroundColor || mainTone}\n color={resolvedTextColor}\n borderWidth={0}\n cursor={isDisabled ? 'default' : 'pointer'}\n >\n {linkOrContent}\n </View>\n </Element>\n );\n }\n\n // --- Default: Standard Button ---\n return (\n <Element\n ref={containerRef}\n as={variant === 'link' && to ? 'div' : 'button'}\n type={variant === 'link' && to ? undefined : 'button'}\n disabled={Boolean(isDisabled || isLoading)}\n /* sizing */\n {...sizeStyles}\n {...iconPad} // Apply icon padding if needed\n display=\"inline-flex\"\n alignItems=\"center\"\n justifyContent=\"center\"\n width={isFilled ? '100%' : isAuto ? 'fit-content' : undefined}\n /* visuals */\n borderRadius={ButtonShapes[shape]}\n boxShadow={shadow as any}\n transition=\"background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease\"\n cursor={isDisabled ? 'default' : 'pointer'}\n onClick={onClick}\n {...baseStyles}\n {...views?.container}\n {...props}\n >\n {linkOrContent}\n </Element>\n );\n};\n\n// --- Main Component ---\nconst ButtonView = React.memo(\n React.forwardRef<\n HTMLElement,\n ButtonViewProps & { themeViews?: ButtonProps['views'] }\n >(\n (\n {\n /* behaviour */\n variant = 'filled',\n size = 'md',\n shape = 'rounded',\n iconPosition = 'left',\n loaderPosition = 'left',\n backgroundColor, // Primary override for main color\n color, // Main button color (theme tokens or color palette)\n textColor, // Explicit text color\n explicitTextColor, // Instance-declared content color (set by wrapper)\n reversed = false, // Reverse colors for dark backgrounds\n isAuto = true,\n isFilled,\n isDisabled,\n isLoading,\n isIconRounded,\n isIcon,\n isHovered,\n /* content */\n icon,\n leftIcon,\n rightIcon,\n startIcon,\n endIcon,\n children,\n /* nav */\n to,\n linkComponent,\n isExternal,\n /* misc */\n shadow,\n onClick,\n views: instanceViews = {},\n themeViews,\n animation,\n loaderProps,\n config: buttonConfig,\n ariaLabel,\n /* effect props */\n borderMovingDuration = 2,\n borderMovingGradientColors = ['#705CFF', '#FF5C97', '#FFC75C'],\n animatedStrokeAccentColor = '#705CFF',\n animatedStrokeTextColor = 'color-gray-900',\n ...props\n },\n ref\n ) => {\n /* MAIN COLOR – an app-studio token that drives the whole palette.\n * Priority: explicit backgroundColor → color → theme-primary.\n * State overrides: disabled → theme-disabled, loading → theme-loading.\n * Tokens are passed straight through to app-studio (no hex conversion). */\n const baseColorKey = backgroundColor ?? color ?? 'theme-primary';\n const mainColorKey = isDisabled\n ? 'theme-disabled'\n : isLoading\n ? 'theme-loading'\n : baseColorKey;\n\n /* TEXT COLOR – instance-declared `explicitTextColor` (resolved by the\n * Button wrapper before the design-system merge) wins over a config's\n * `textColor`, which stays advisory. Falls back to color-white. */\n const textColorKey = explicitTextColor ?? textColor ?? 'color-white';\n\n /* variant palette */\n const { config } = useDesignSystem();\n const theme = config?.theme;\n const palette = useMemo(() => {\n const basePalette = getButtonVariants(\n mainColorKey,\n textColorKey,\n reversed,\n theme\n );\n\n // Merge with any variant overrides from config\n if (buttonConfig?.variants) {\n Object.keys(buttonConfig.variants).forEach((v) => {\n if (basePalette[v as Variant]) {\n basePalette[v as Variant] = deepMerge(\n basePalette[v as Variant],\n buttonConfig.variants[v]\n );\n }\n });\n }\n return basePalette;\n }, [mainColorKey, textColorKey, reversed, theme, buttonConfig?.variants]);\n\n // Fall back to the `filled` palette for any unrecognised variant so an\n // unknown value never renders an unstyled (no-background) button — which\n // would drop white label text onto a light surface and fail contrast.\n const variantBase = palette[variant as Variant] ?? palette.filled;\n // An explicit content color overrides the variant's auto-calculated one\n // (outline/ghost/link derive it from the main tone otherwise).\n const base = explicitTextColor\n ? { ...variantBase, color: explicitTextColor }\n : variantBase;\n const views = themeViews\n ? mergeDesignSystemViews<NonNullable<ButtonProps['views']>>(\n themeViews,\n { container: base },\n instanceViews\n )\n : instanceViews;\n const slotColor =\n themeViews && (views.container?.style?.color ?? views.container?.color);\n const finalContentColor = (slotColor ||\n base.color ||\n textColorKey) as string;\n\n // Render content logic safely\n const content = (\n <ButtonContent\n icon={icon}\n // `startIcon` / `endIcon` are compatibility aliases for\n // `leftIcon` / `rightIcon`; the left/right spelling wins when both\n // are provided.\n leftIcon={leftIcon ?? startIcon}\n rightIcon={rightIcon ?? endIcon}\n isLoading={isLoading}\n iconPosition={iconPosition}\n loaderPosition={loaderPosition}\n size={size}\n resolvedTextColor={finalContentColor}\n isIconRounded={isIconRounded}\n loaderProps={loaderProps}\n views={views}\n >\n {children}\n </ButtonContent>\n );\n\n // Standard variants (filled, outline, ghost, link)\n const sizeStyles = ButtonSizes[size];\n // `isIcon` marks an icon-only button: reuse the square icon padding\n // scale (the same slot `isIconRounded` uses) so the button stays compact.\n const iconPad = isIconRounded || isIcon ? IconSizes[size] : {};\n\n return (\n <StandardButton\n variant={variant}\n animation={animation}\n to={to}\n linkComponent={linkComponent}\n isDisabled={isDisabled}\n isLoading={isLoading}\n isAuto={isAuto}\n isFilled={isFilled}\n isExternal={isExternal}\n shape={shape}\n shadow={shadow}\n onClick={onClick}\n views={views}\n baseStyles={base}\n sizeStyles={sizeStyles}\n iconPad={iconPad}\n resolvedTextColor={finalContentColor}\n content={content as any}\n size={size}\n mainTone={mainColorKey}\n borderMovingDuration={borderMovingDuration}\n borderMovingGradientColors={borderMovingGradientColors}\n animatedStrokeAccentColor={animatedStrokeAccentColor}\n animatedStrokeTextColor={animatedStrokeTextColor}\n containerRef={ref}\n {...(ariaLabel !== undefined ? { 'aria-label': ariaLabel } : {})}\n {...props}\n />\n );\n }\n )\n);\n\nexport default ButtonView;\n",
89
+ "type": "registry:ui"
90
+ },
91
+ {
92
+ "path": "src/components/Link/Link/Link.props.ts",
93
+ "content": "import React from 'react';\nimport { Size, Styles, TextDecorationStyle } from './Link.type';\nimport { ViewProps } from 'app-studio';\n// Defines the props for the Link component, excluding 'size' which comes from the extended 'ViewProps'.\nexport interface LinkProps extends Omit<ViewProps, 'size'> {\n // Represents the content within the Link component which can be any valid React node.\n children: React.ReactNode;\n // Optional prop to define the text decoration style of the link as underline views.\n underline?: TextDecorationStyle;\n // Optional flag marking the link as the current page: `aria-current=\"page\"`\n // on web, `accessibilityState.selected` on native, and the active style\n // (`LinkActiveStyles`, overridable through `views.active`) on both.\n isActive?: boolean;\n // Optional boolean indicating whether the link points to an external resource. Default behavior may vary based on this value.\n isExternal?: boolean;\n // Optional prop to set the size of an icon if present within the link.\n iconSize?: Size;\n // Router path (or URL) the link points to. Defaults to '/'.\n to?: string;\n // Renders a plain anchor with this exact href, bypassing router navigation.\n href?: string;\n // Click handler attached to the anchor element itself.\n onClick?: (event: React.MouseEvent) => void;\n // Optional styles object to customize the appearance using predefined style types.\n views?: Styles;\n}\n// Extends the basic LinkProps with additional properties related to the Link view.\nexport interface LinkViewProps extends LinkProps {\n // Legacy hover state, superseded by CSS-driven _hover styling on the anchor.\n isHovered?: boolean;\n // Legacy setter for the hover state.\n setIsHovered?: (hovered: boolean) => void;\n}\n",
94
+ "type": "registry:ui"
95
+ },
96
+ {
97
+ "path": "src/components/Link/Link/Link.type.ts",
98
+ "content": "import { ViewProps } from 'app-studio';\n\n// Defines a union type for text decoration styles which can be 'default', 'hover', or 'underline'.\nexport type TextDecorationStyle = 'default' | 'hover' | 'underline';\n// Begins the declaration of a 'Styles' type that will specify the shape of style properties for the Link component.\nexport type Styles = {\n // Optional 'icon' property of type 'CSSProperties' to define styles for the icon within the link.\n icon?: ViewProps;\n // Optional 'text' property of type 'CSSProperties' to define styles for the text within the link.\n text?: ViewProps;\n // Optional styles applied on top of the active style when `isActive` is set.\n active?: ViewProps;\n};\n// Begins the declaration of a 'Size' type to dictate allowable size options for the Link component.\nexport type Size =\n // The 'Size' type includes 'xs' as one of its possible values for the size of the Link component.\n 'xs' | 'sm' | 'md' | 'lg' | 'xl';\n",
99
+ "type": "registry:ui"
100
+ },
101
+ {
102
+ "path": "src/components/Loader/Loader.tsx",
103
+ "content": "import React from 'react';\nimport { LoaderProps } from './Loader/Loader.props';\nimport LoaderView from './Loader/Loader.view';\nimport { useMergedDesignSystemComponentProps } from '../../design-system/theme';\n// Defines a LoaderComponent as a functional component with props defined by LoaderProps and returns the LoaderView component, passing along any received props.\nconst LoaderComponent: React.FC<LoaderProps> = (props) => {\n const mergedProps = useMergedDesignSystemComponentProps('loader', props);\n // Renders the LoaderView component by spreading the received props, which allows for a clean pass-through of properties.\n return <LoaderView {...mergedProps} />;\n};\n// Exports the LoaderComponent as Loader, making it available for use in other parts of the application.\nexport const Loader = LoaderComponent;\n",
104
+ "type": "registry:ui"
105
+ },
106
+ {
107
+ "path": "src/components/Loader/Loader/Loader.props.ts",
108
+ "content": "import React from 'react';\nimport { LoaderType, Size, Speed, TextPosition } from './Loader.type';\nimport { ViewProps } from 'app-studio';\n// Defines the LoaderProps interface, extending from ViewProps excluding 'size', to configure the Loader component.\nexport interface LoaderProps extends Omit<ViewProps, 'size'> {\n // Optional children prop to pass React nodes inside the Loader component.\n children?: React.ReactNode;\n // Optional prop to define the color of the loader element.\n loaderColor?: string;\n // Defines the type of the loader based on the LoaderType enum.\n type?: LoaderType;\n // Optional prop for setting the color of the text displayed with the loader.\n textColor?: string;\n // Determines the position of the text relative to the loader from the TextPosition enum.\n textPosition?: TextPosition;\n // Sets the size of the loader, which can be a specific pixel number or a standard Size enum.\n size?: number | Size;\n // Controls the speed of the loader's animation, using the values from the Speed enum.\n speed?: Speed;\n}\n// Defines properties specific to the default spinner variant of the loader.\nexport interface DefaultSpinnerProps extends Omit<ViewProps, 'size'> {\n size?: number | Size;\n speed?: Speed;\n // Overrides the color for the default spinner loader variant.\n color?: string;\n}\n// Defines properties for the dotted variant of the loader component.\nexport interface DottedProps extends Omit<ViewProps, 'size'> {\n size?: number | Size;\n speed?: Speed;\n // Overrides the color for the dotted loader variant.\n color?: string;\n}\n// Defines properties for the quarter variant of the loader component.\nexport interface QuarterProps extends Omit<ViewProps, 'size'> {\n size?: number | Size;\n speed?: Speed;\n // Overrides the color for the quarter loader variant.\n color?: string;\n}\n",
109
+ "type": "registry:ui"
110
+ },
111
+ {
112
+ "path": "src/components/Loader/Loader/Loader.style.ts",
113
+ "content": "import { Size, Speed } from './Loader.type';\n// Defines a mapping of spinning speed labels to their respective duration in seconds for the Loader component animations.\nexport const DefaultEllipsisSpeeds: Record<Speed, number> = {\n fast: 0.4,\n normal: 0.6,\n slow: 0.8,\n};\n// Sets up a scale of sizes, mapping size labels to numerical values to be used for Loader component dimensions.\nexport const DefaultSizes: Record<Size, number> = {\n xs: 14,\n sm: 18,\n md: 22,\n lg: 26,\n xl: 30,\n};\n// Specifies a mapping of spinning speed labels to numerical millisecond values, determining the speed of the Loader component's animation cycles.\nexport const DefaultSpeeds: Record<Speed, number> = {\n fast: 50,\n normal: 100,\n slow: 300,\n};\n",
114
+ "type": "registry:ui"
115
+ },
116
+ {
117
+ "path": "src/components/Loader/Loader/Loader.type.ts",
118
+ "content": "// Defines the Size type representing permissible sizes for the Loader component\nexport type Size =\n // Extra small size option for the Loader component\n | 'xs'\n // Small size option for the Loader component\n | 'sm'\n // Medium size option for the Loader component\n | 'md'\n // Large size option for the Loader component\n | 'lg'\n // Extra large size option for the Loader component\n | 'xl';\n// Defines the LoaderType type for different Loader visual styles\nexport type LoaderType = 'default' | 'dotted' | 'quarter';\n// Defines the TextPosition type for text positioning relative to the Loader\nexport type TextPosition = 'right' | 'left' | 'top' | 'bottom';\n// Defines the Speed type representing different speed options for the Loader's animation\nexport type Speed = 'fast' | 'normal' | 'slow';\n",
119
+ "type": "registry:ui"
120
+ },
121
+ {
122
+ "path": "src/components/Loader/Loader/Loader.view.native.tsx",
123
+ "content": "/**\n * LoaderView (React Native) – restores the three web variants (default /\n * dotted / quarter) on native using `react-native-svg` + RN's Animated API.\n *\n * If `react-native-svg` is not installed, we gracefully fall back to RN's\n * built-in <ActivityIndicator/> (no crash).\n */\n\nimport React, { useEffect, useRef } from 'react';\nimport { ActivityIndicator, Animated, Easing } from 'react-native';\nimport { useTheme, View, ViewProps, Center } from 'app-studio';\nimport { LoaderProps } from '../Loader/Loader.props';\nimport { DefaultSizes, DefaultSpeeds } from './Loader.style';\n\ninterface Props extends LoaderProps {\n views?: {\n container?: ViewProps;\n text?: ViewProps;\n };\n}\n\n// Lazy require react-native-svg so consumers without it still get a working\n// loader.\nlet Svg: any = null;\nlet Circle: any = null;\nlet Path: any = null;\ntry {\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n const RNSvg = require('react-native-svg');\n Svg = RNSvg.Svg ?? RNSvg.default;\n Circle = RNSvg.Circle;\n Path = RNSvg.Path;\n} catch {\n /* optional peer absent */\n}\n\nconst isRawCssColor = (value?: string) =>\n typeof value === 'string' &&\n (/^(#|rgb\\(|rgba\\(|hsl\\(|hsla\\(|var\\()/.test(value) ||\n ['black', 'currentColor', 'inherit', 'transparent', 'white'].includes(\n value\n ));\n\nconst useSpinAnim = (durationMs: number) => {\n const value = useRef(new Animated.Value(0)).current;\n useEffect(() => {\n value.setValue(0);\n const loop = Animated.loop(\n Animated.timing(value, {\n toValue: 1,\n duration: durationMs,\n easing: Easing.linear,\n useNativeDriver: true,\n })\n );\n loop.start();\n return () => loop.stop();\n }, [durationMs, value]);\n return value.interpolate({\n inputRange: [0, 1],\n outputRange: ['0deg', '360deg'],\n });\n};\n\nconst DefaultSpinner: React.FC<{\n size: number;\n color: string;\n durationMs: number;\n}> = ({ size, color, durationMs }) => {\n const rotate = useSpinAnim(durationMs * 8); // 8 frames × interval ≈ full turn\n if (!Svg) {\n return (\n <ActivityIndicator size={size > 24 ? 'large' : 'small'} color={color} />\n );\n }\n return (\n <Animated.View\n style={{ width: size, height: size, transform: [{ rotate }] }}\n >\n <Svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\">\n <Path\n d=\"M21 12a9 9 0 11-6.219-8.56\"\n stroke={color}\n strokeWidth={1}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </Svg>\n </Animated.View>\n );\n};\n\nconst Dotted: React.FC<{ size: number; color: string; durationMs: number }> = ({\n size,\n color,\n durationMs,\n}) => {\n const rotate = useSpinAnim(durationMs * 8);\n if (!Svg) {\n return (\n <ActivityIndicator size={size > 24 ? 'large' : 'small'} color={color} />\n );\n }\n return (\n <Animated.View\n style={{ width: size, height: size, transform: [{ rotate }] }}\n >\n <Svg width={size} height={size} viewBox=\"0 0 50 50\">\n <Circle cx=\"10\" cy=\"25\" r=\"4\" fill={color} />\n <Circle cx=\"25\" cy=\"25\" r=\"4\" fill={color} />\n <Circle cx=\"40\" cy=\"25\" r=\"4\" fill={color} />\n </Svg>\n </Animated.View>\n );\n};\n\nconst Quarter: React.FC<{\n size: number;\n color: string;\n durationMs: number;\n}> = ({ size, color, durationMs }) => {\n const rotate = useSpinAnim(durationMs * 8);\n if (!Svg) {\n return (\n <ActivityIndicator size={size > 24 ? 'large' : 'small'} color={color} />\n );\n }\n return (\n <Animated.View\n style={{ width: size, height: size, transform: [{ rotate }] }}\n >\n <Svg width={size} height={size} viewBox=\"0 0 50 50\">\n <Circle\n cx=\"25\"\n cy=\"25\"\n r=\"20\"\n fill=\"none\"\n stroke={color}\n strokeWidth={5}\n strokeDasharray=\"1,10\"\n />\n </Svg>\n </Animated.View>\n );\n};\n\nconst LoaderView: React.FC<Props> = ({\n size,\n children,\n textColor,\n loaderColor,\n type = 'default',\n speed = 'normal',\n textPosition = 'right',\n views,\n ...props\n}) => {\n const { getColor } = useTheme();\n const resolveColor = (value?: string) =>\n isRawCssColor(value) ? value : getColor(value || 'theme-loading');\n const finalLoaderColor = resolveColor(\n loaderColor || (props as any).color || 'theme-loading'\n ) as string;\n const finalTextColor = resolveColor(\n textColor || (props as any).color || 'theme-loading'\n );\n\n const sizeValue =\n typeof size === 'number' ? size : DefaultSizes[size || 'md'];\n const durationMs = DefaultSpeeds[speed];\n\n const variants = {\n default: (\n <DefaultSpinner\n size={sizeValue}\n color={finalLoaderColor}\n durationMs={durationMs}\n />\n ),\n dotted: (\n <Dotted\n size={sizeValue}\n color={finalLoaderColor}\n durationMs={durationMs}\n />\n ),\n quarter: (\n <Quarter\n size={sizeValue}\n color={finalLoaderColor}\n durationMs={durationMs}\n />\n ),\n };\n\n return (\n <Center\n gap={10}\n flexDirection={\n textPosition === 'top' || textPosition === 'bottom' ? 'column' : 'row'\n }\n {...props}\n {...views?.container}\n >\n {(textPosition === 'left' || textPosition === 'top') && children && (\n <View color={finalTextColor} {...views?.text}>\n {children}\n </View>\n )}\n {variants[type]}\n {(textPosition === 'right' || textPosition === 'bottom') && children && (\n <View color={finalTextColor} {...views?.text}>\n {children}\n </View>\n )}\n </Center>\n );\n};\n\nexport default LoaderView;\n",
124
+ "type": "registry:ui"
125
+ },
126
+ {
127
+ "path": "src/components/Loader/Loader/Loader.view.tsx",
128
+ "content": "import React, { useEffect, useState } from 'react';\nimport { useTheme, View, ViewProps } from 'app-studio';\nimport { Center } from 'app-studio';\n\nimport {\n DefaultSpinnerProps,\n DottedProps,\n LoaderProps,\n QuarterProps,\n} from '../Loader/Loader.props';\n\nimport { DefaultSizes, DefaultSpeeds } from './Loader.style';\n\ninterface Props extends LoaderProps {\n views?: {\n container?: ViewProps;\n text?: ViewProps;\n };\n}\n\nconst isRawCssColor = (value?: string) =>\n typeof value === 'string' &&\n (/^(#|rgb\\(|rgba\\(|hsl\\(|hsla\\(|var\\()/.test(value) ||\n ['black', 'currentColor', 'inherit', 'transparent', 'white'].includes(\n value\n ));\n\nconst DefaultSpinner: React.FC<DefaultSpinnerProps> = ({\n size = 'md',\n speed = 'normal',\n color = 'theme-loading',\n themeMode: elementMode,\n ...props\n}) => {\n const { getColor, themeMode } = useTheme();\n const colorStyle = getColor(color, {\n themeMode: elementMode ? elementMode : themeMode,\n });\n const sizeStyle = typeof size === 'number' ? size : DefaultSizes[size];\n\n const [angle, setAngle] = useState(0);\n\n useEffect(() => {\n const intervalId = setInterval(() => {\n setAngle((prevAngle) => prevAngle + 45);\n }, DefaultSpeeds[speed]);\n\n return () => clearInterval(intervalId);\n }, [speed]);\n\n return (\n <View\n as=\"svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width={`${sizeStyle}px`}\n height={`${sizeStyle}px`}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke={colorStyle}\n strokeWidth=\"1\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n style={{ transform: `rotate(${angle}deg)` }}\n {...props}\n >\n <g id=\"SVGRepo_bgCarrier\" strokeWidth=\"0\"></g>\n <g\n id=\"SVGRepo_tracerCarrier\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n ></g>\n <g id=\"SVGRepo_iconCarrier\">\n <path d=\"M21 12a9 9 0 11-6.219-8.56\"></path>\n </g>\n </View>\n );\n};\n\nconst Dotted: React.FC<DottedProps> = ({\n size = 'md',\n speed = 'normal',\n color = 'theme-loading',\n themeMode: elementMode,\n ...props\n}) => {\n const { getColor, themeMode } = useTheme();\n const colorStyle = getColor(color, {\n themeMode: elementMode ? elementMode : themeMode,\n });\n const sizeStyle = typeof size === 'number' ? size : DefaultSizes[size];\n\n const [angle, setAngle] = useState(0);\n\n useEffect(() => {\n const intervalId = setInterval(() => {\n setAngle((prevAngle) => prevAngle + 45);\n }, DefaultSpeeds[speed]);\n\n return () => clearInterval(intervalId);\n }, [speed]);\n\n return (\n <View\n as=\"svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 50 50\"\n width={`${sizeStyle}px`}\n height={`${sizeStyle}px`}\n style={{ transform: `rotate(${angle}deg)` }}\n {...props}\n >\n <circle cx=\"10\" cy=\"25\" r=\"4\" fill={colorStyle} />\n <circle cx=\"25\" cy=\"25\" r=\"4\" fill={colorStyle} />\n <circle cx=\"40\" cy=\"25\" r=\"4\" fill={colorStyle} />\n </View>\n );\n};\n\nconst Quarter: React.FC<QuarterProps> = ({\n size = 'md',\n speed = 'normal',\n color = 'theme-loading',\n themeMode: elementMode,\n ...props\n}) => {\n const { getColor, themeMode } = useTheme();\n const colorStyle = getColor(color, {\n themeMode: elementMode ? elementMode : themeMode,\n });\n const sizeStyle = typeof size === 'number' ? size : DefaultSizes[size];\n\n const [angle, setAngle] = useState(0);\n\n useEffect(() => {\n const intervalId = setInterval(() => {\n setAngle((prevAngle) => prevAngle + 45);\n }, DefaultSpeeds[speed]);\n\n return () => clearInterval(intervalId);\n }, [speed]);\n\n return (\n <View\n as=\"svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 50 50\"\n width={`${sizeStyle}px`}\n height={`${sizeStyle}px`}\n style={{ transform: `rotate(${angle}deg)` }}\n {...props}\n >\n <circle\n cx=\"25\"\n cy=\"25\"\n r=\"20\"\n fill=\"none\"\n stroke={colorStyle}\n strokeWidth=\"5\"\n strokeDasharray=\"1,10\"\n />\n </View>\n );\n};\nconst LoaderView: React.FC<Props> = ({\n size,\n children,\n textColor,\n loaderColor,\n type = 'default',\n speed = 'normal',\n textPosition = 'right',\n views,\n ...props\n}) => {\n const { getColor } = useTheme();\n const resolveColor = (value?: string) =>\n isRawCssColor(value) ? value : getColor(value || 'theme-loading');\n loaderColor = resolveColor(loaderColor || props.color || 'theme-loading');\n textColor = resolveColor(textColor || props.color || 'theme-loading');\n\n const style = { size, speed, color: loaderColor };\n\n const variants = {\n default: <DefaultSpinner {...style} />,\n dotted: <Dotted {...style} />,\n quarter: <Quarter {...style} />,\n };\n\n return (\n <Center\n gap={10}\n flexDirection={\n textPosition === 'top' || textPosition === 'bottom' ? 'column' : 'row'\n }\n {...props}\n {...views?.container}\n >\n {(textPosition === 'left' || textPosition === 'top') && children && (\n <View color={textColor} {...views?.text}>\n {children}\n </View>\n )}\n {variants[type]}\n {(textPosition === 'right' || textPosition === 'bottom') && children && (\n <View color={textColor} {...views?.text}>\n {children}\n </View>\n )}\n </Center>\n );\n};\n\nexport default LoaderView;\n",
129
+ "type": "registry:ui"
130
+ },
131
+ {
132
+ "path": "src/components/pilot/button.ts",
133
+ "content": "export * from '../Button/Button.pilot';\n",
134
+ "type": "registry:ui"
135
+ },
136
+ {
137
+ "path": "src/utils/colors.ts",
138
+ "content": "export type ColorPalette = Record<string, Record<number, string>>;\n\nconst COLOR_TOKEN_RE = /^(color|theme|light|dark)-/;\n\n/** True for app-studio color tokens (`color-*`, `theme-*`, `light-*`, `dark-*`). */\nexport const isColorToken = (value: string): boolean =>\n COLOR_TOKEN_RE.test(value);\n\n/**\n * Reduce a token that already carries an alpha suffix\n * (`color-<name>-<shade>-<alpha>`, `theme-<key>-<alpha>`; alpha 0–1000) to its\n * base token. Appending a second alpha (`color-gray-900-50` →\n * `color-gray-900-50-100`) resolves against a CSS variable that doesn't exist\n * and silently drops the color.\n */\nexport const stripAlphaSuffix = (value: string): string => {\n const parts = value.split('-');\n const alpha = parseInt(parts[parts.length - 1], 10);\n const minParts = value.startsWith('theme-') ? 3 : 4;\n if (\n parts.length >= minParts &&\n !isNaN(alpha) &&\n alpha >= 0 &&\n alpha <= 1000\n ) {\n return parts.slice(0, -1).join('-');\n }\n return value;\n};\n\n/**\n * Apply an app-studio alpha (0–1000) to any color value. Tokens get the\n * `-<alpha>` suffix (after stripping an existing one); raw CSS colors\n * (`#hex`, `rgb()`, keywords) get an equivalent `color-mix()` so callers can\n * pass either form — appending `-100` to `#22c55e` produced garbage before.\n */\nexport const alphaColor = (value: string, alpha: number): string =>\n isColorToken(value)\n ? `${stripAlphaSuffix(value)}-${alpha}`\n : `color-mix(in srgb, ${value} ${Math.round(alpha / 10)}%, transparent)`;\n\nexport type ColorSingleton = Record<\n string,\n | {\n 50: string;\n 100: string;\n 200: string;\n 300: string;\n 400: string;\n 500: string;\n 600: string;\n 700: string;\n 800: string;\n 900: string;\n }\n | string\n>;\n\nexport const palette: ColorPalette = {\n whiteAlpha: {\n 50: 'rgba(255, 255, 255, 0.04)',\n 100: 'rgba(255, 255, 255, 0.06)',\n 200: 'rgba(255, 255, 255, 0.08)',\n 300: 'rgba(4, 2, 2, 0.16)',\n 400: 'rgba(255, 255, 255, 0.24)',\n 500: 'rgba(255, 255, 255, 0.36)',\n 600: 'rgba(255, 255, 255, 0.48)',\n 700: 'rgba(255, 255, 255, 0.64)',\n 800: 'rgba(255, 255, 255, 0.80)',\n 900: 'rgba(255, 255, 255, 0.92)',\n },\n\n blackAlpha: {\n 50: 'rgba(0, 0, 0, 0.04)',\n 100: 'rgba(0, 0, 0, 0.06)',\n 200: 'rgba(0, 0, 0, 0.08)',\n 300: 'rgba(0, 0, 0, 0.16)',\n 400: 'rgba(0, 0, 0, 0.24)',\n 500: 'rgba(0, 0, 0, 0.36)',\n 600: 'rgba(0, 0, 0, 0.48)',\n 700: 'rgba(0, 0, 0, 0.64)',\n 800: 'rgba(0, 0, 0, 0.80)',\n 900: 'rgba(0, 0, 0, 0.92)',\n },\n rose: {\n 50: '#fff1f2',\n 100: '#ffe4e6',\n 200: '#fecdd3',\n 300: '#fda4af',\n 400: '#fb7185',\n 500: '#f43f5e',\n 600: '#e11d48',\n 700: '#be123c',\n 800: '#9f1239',\n 900: '#881337',\n },\n pink: {\n 50: '#fdf2f8',\n 100: '#fce7f3',\n 200: '#fbcfe8',\n 300: '#f9a8d4',\n 400: '#f472b6',\n 500: '#ec4899',\n 600: '#db2777',\n 700: '#be185d',\n 800: '#9d174d',\n 900: '#831843',\n },\n fuchsia: {\n 50: '#fdf4ff',\n 100: '#fae8ff',\n 200: '#f5d0fe',\n 300: '#f0abfc',\n 400: '#e879f9',\n 500: '#d946ef',\n 600: '#c026d3',\n 700: '#a21caf',\n 800: '#86198f',\n 900: '#701a75',\n },\n purple: {\n 50: '#faf5ff',\n 100: '#f3e8ff',\n 200: '#e9d5ff',\n 300: '#d8b4fe',\n 400: '#c084fc',\n 500: '#a855f7',\n 600: '#9333ea',\n 700: '#7e22ce',\n 800: '#6b21a8',\n 900: '#581c87',\n },\n violet: {\n 50: '#f5f3ff',\n 100: '#ede9fe',\n 200: '#ddd6fe',\n 300: '#c4b5fd',\n 400: '#a78bfa',\n 500: '#8b5cf6',\n 600: '#7c3aed',\n 700: '#6d28d9',\n 800: '#5b21b6',\n 900: '#4c1d95',\n },\n indigo: {\n 50: '#eef2ff',\n 100: '#e0e7ff',\n 200: '#c7d2fe',\n 300: '#a5b4fc',\n 400: '#818cf8',\n 500: '#6366f1',\n 600: '#4f46e5',\n 700: '#4338ca',\n 800: '#3730a3',\n 900: '#312e81',\n },\n blue: {\n 50: '#eff6ff',\n 100: '#dbeafe',\n 200: '#bfdbfe',\n 300: '#93c5fd',\n 400: '#60a5fa',\n 500: '#3b82f6',\n 600: '#2563eb',\n 700: '#1d4ed8',\n 800: '#1e40af',\n 900: '#1e3a8a',\n },\n cyan: {\n 50: '#ecfeff',\n 100: '#cffafe',\n 200: '#a5f3fc',\n 300: '#67e8f9',\n 400: '#22d3ee',\n 500: '#06b6d4',\n 600: '#0891b2',\n 700: '#0e7490',\n 800: '#155e75',\n 900: '#164e63',\n },\n teal: {\n 50: '#f0fdfa',\n 100: '#ccfbf1',\n 200: '#99f6e4',\n 300: '#5eead4',\n 400: '#2dd4bf',\n 500: '#14b8a6',\n 600: '#0d9488',\n 700: '#0f766e',\n 800: '#115e59',\n 900: '#134e4a',\n },\n emerald: {\n 50: '#ecfdf5',\n 100: '#d1fae5',\n 200: '#a7f3d0',\n 300: '#6ee7b7',\n 400: '#34d399',\n 500: '#10b981',\n 600: '#059669',\n 700: '#047857',\n 800: '#065f46',\n 900: '#064e3b',\n },\n green: {\n 50: '#f0fdf4',\n 100: '#dcfce7',\n 200: '#bbf7d0',\n 300: '#86efac',\n 400: '#4ade80',\n 500: '#22c55e',\n 600: '#16a34a',\n 700: '#15803d',\n 800: '#166534',\n 900: '#14532d',\n },\n lime: {\n 50: '#f7fee7',\n 100: '#ecfccb',\n 200: '#d9f99d',\n 300: '#bef264',\n 400: '#a3e635',\n 500: '#84cc16',\n 600: '#65a30d',\n 700: '#4d7c0f',\n 800: '#3f6212',\n 900: '#365314',\n },\n yellow: {\n 50: '#fefce8',\n 100: '#fef9c3',\n 200: '#fef08a',\n 300: '#fde047',\n 400: '#facc15',\n 500: '#eab308',\n 600: '#ca8a04',\n 700: '#a16207',\n 800: '#854d0e',\n 900: '#713f12',\n },\n amber: {\n 50: '#fffbeb',\n 100: '#fef3c7',\n 200: '#fde68a',\n 300: '#fcd34d',\n 400: '#fbbf24',\n 500: '#f59e0b',\n 600: '#d97706',\n 700: '#b45309',\n 800: '#92400e',\n 900: '#78350f',\n },\n orange: {\n 50: '#fff7ed',\n 100: '#ffedd5',\n 200: '#fed7aa',\n 300: '#fdba74',\n 400: '#fb923c',\n 500: '#f97316',\n 600: '#ea580c',\n 700: '#c2410c',\n 800: '#9a3412',\n 900: '#7c2d12',\n },\n red: {\n 50: '#fef2f2',\n 100: '#fee2e2',\n 200: '#fecaca',\n 300: '#fca5a5',\n 400: '#f87171',\n 500: '#ef4444',\n 600: '#dc2626',\n 700: '#b91c1c',\n 800: '#991b1b',\n 900: '#7f1d1d',\n },\n warmGray: {\n 50: '#fafaf9',\n 100: '#f5f5f4',\n 200: '#e7e5e4',\n 300: '#d6d3d1',\n 400: '#a8a29e',\n 500: '#78716c',\n 600: '#57534e',\n 700: '#44403c',\n 800: '#292524',\n 900: '#1c1917',\n },\n trueGray: {\n 50: '#fafafa',\n 100: '#f5f5f5',\n 200: '#e5e5e5',\n 300: '#d4d4d4',\n 400: '#a3a3a3',\n 500: '#737373',\n 600: '#525252',\n 700: '#404040',\n 800: '#262626',\n 900: '#171717',\n },\n gray: {\n 50: '#fafafa',\n 100: '#f4f4f5',\n 200: '#e4e4e7',\n 300: '#d4d4d8',\n 400: '#a1a1aa',\n 500: '#71717a',\n 600: '#52525b',\n 700: '#3f3f46',\n 800: '#27272a',\n 900: '#18181b',\n },\n dark: {\n 50: '#18181b',\n 100: '#27272a',\n 200: '#3f3f46',\n 300: '#52525b',\n 400: '#71717a',\n 500: '#a1a1aa',\n 600: '#d4d4d8',\n 700: '#e4e4e7',\n 800: '#f4f4f5',\n 900: '#fafafa',\n },\n coolGray: {\n 50: '#f9fafb',\n 100: '#f3f4f6',\n 200: '#e5e7eb',\n 300: '#d1d5db',\n 400: '#9ca3af',\n 500: '#6b7280',\n 600: '#4b5563',\n 700: '#374151',\n 800: '#1f2937',\n 900: '#111827',\n },\n blueGray: {\n 50: '#f8fafc',\n 100: '#f1f5f9',\n 200: '#e2e8f0',\n 300: '#cbd5e1',\n 400: '#94a3b8',\n 500: '#64748b',\n 600: '#475569',\n 700: '#334155',\n 800: '#1e293b',\n 900: '#0f172a',\n },\n};\n",
139
+ "type": "registry:ui"
140
+ },
141
+ {
142
+ "path": "src/utils/elevation.ts",
143
+ "content": "export type Elevation = {\n elevation: number;\n};\n",
144
+ "type": "registry:ui"
145
+ }
146
+ ]
147
+ }
@@ -0,0 +1,78 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "card",
4
+ "type": "registry:ui",
5
+ "title": "Card",
6
+ "author": "App Studio",
7
+ "categories": [
8
+ "Layout"
9
+ ],
10
+ "registryDependencies": [
11
+ "theme"
12
+ ],
13
+ "meta": {
14
+ "appStudio": {
15
+ "entry": "src/components/pilot/card.ts",
16
+ "engine": ">=0.9.5",
17
+ "engineByPlatform": {
18
+ "ios": ">=0.10.0",
19
+ "android": ">=0.10.0"
20
+ },
21
+ "version": "0.12.1",
22
+ "license": "MIT",
23
+ "platforms": [
24
+ "web",
25
+ "ios",
26
+ "android"
27
+ ],
28
+ "dependencies": {
29
+ "web": [],
30
+ "ios": [],
31
+ "android": []
32
+ },
33
+ "npmImport": "@app-studio/components/card"
34
+ }
35
+ },
36
+ "files": [
37
+ {
38
+ "path": "LICENSE.txt",
39
+ "content": "Copyright (c) Facebook, Inc. and its affiliates.\nAll rights reserved.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n\nAttribution-NonCommercial 4.0 International\n\n=======================================================================\n\nCreative Commons Corporation (\"Creative Commons\") is not a law firm and\ndoes not provide legal services or legal advice. Distribution of\nCreative Commons public licenses does not create a lawyer-client or\nother relationship. Creative Commons makes its licenses and related\ninformation available on an \"as-is\" basis. Creative Commons gives no\nwarranties regarding its licenses, any material licensed under their\nterms and conditions, or any related information. Creative Commons\ndisclaims all liability for damages resulting from their use to the\nfullest extent possible.\n\nUsing Creative Commons Public Licenses\n\nCreative Commons public licenses provide a standard set of terms and\nconditions that creators and other rights holders may use to share\noriginal works of authorship and other material subject to copyright\nand certain other rights specified in the public license below. The\nfollowing considerations are for informational purposes only, are not\nexhaustive, and do not form part of our licenses.\n\n Considerations for licensors: Our public licenses are\n intended for use by those authorized to give the public\n permission to use material in ways otherwise restricted by\n copyright and certain other rights. Our licenses are\n irrevocable. Licensors should read and understand the terms\n and conditions of the license they choose before applying it.\n Licensors should also secure all rights necessary before\n applying our licenses so that the public can reuse the\n material as expected. Licensors should clearly mark any\n material not subject to the license. This includes other CC-\n licensed material, or material used under an exception or\n limitation to copyright. More considerations for licensors:\n\twiki.creativecommons.org/Considerations_for_licensors\n\n Considerations for the public: By using one of our public\n licenses, a licensor grants the public permission to use the\n licensed material under specified terms and conditions. If\n the licensor's permission is not necessary for any reason--for\n example, because of any applicable exception or limitation to\n copyright--then that use is not regulated by the license. Our\n licenses grant only permissions under copyright and certain\n other rights that a licensor has authority to grant. Use of\n the licensed material may still be restricted for other\n reasons, including because others have copyright or other\n rights in the material. A licensor may make special requests,\n such as asking that all changes be marked or described.\n Although not required by our licenses, you are encouraged to\n respect those requests where reasonable. More_considerations\n for the public: \n\twiki.creativecommons.org/Considerations_for_licensees\n\n=======================================================================\n\nCreative Commons Attribution-NonCommercial 4.0 International Public\nLicense\n\nBy exercising the Licensed Rights (defined below), You accept and agree\nto be bound by the terms and conditions of this Creative Commons\nAttribution-NonCommercial 4.0 International Public License (\"Public\nLicense\"). To the extent this Public License may be interpreted as a\ncontract, You are granted the Licensed Rights in consideration of Your\nacceptance of these terms and conditions, and the Licensor grants You\nsuch rights in consideration of benefits the Licensor receives from\nmaking the Licensed Material available under these terms and\nconditions.\n\nSection 1 -- Definitions.\n\n a. Adapted Material means material subject to Copyright and Similar\n Rights that is derived from or based upon the Licensed Material\n and in which the Licensed Material is translated, altered,\n arranged, transformed, or otherwise modified in a manner requiring\n permission under the Copyright and Similar Rights held by the\n Licensor. For purposes of this Public License, where the Licensed\n Material is a musical work, performance, or sound recording,\n Adapted Material is always produced where the Licensed Material is\n synched in timed relation with a moving image.\n\n b. Adapter's License means the license You apply to Your Copyright\n and Similar Rights in Your contributions to Adapted Material in\n accordance with the terms and conditions of this Public License.\n\n c. Copyright and Similar Rights means copyright and/or similar rights\n closely related to copyright including, without limitation,\n performance, broadcast, sound recording, and Sui Generis Database\n Rights, without regard to how the rights are labeled or\n categorized. For purposes of this Public License, the rights\n specified in Section 2(b)(1)-(2) are not Copyright and Similar\n Rights.\n d. Effective Technological Measures means those measures that, in the\n absence of proper authority, may not be circumvented under laws\n fulfilling obligations under Article 11 of the WIPO Copyright\n Treaty adopted on December 20, 1996, and/or similar international\n agreements.\n\n e. Exceptions and Limitations means fair use, fair dealing, and/or\n any other exception or limitation to Copyright and Similar Rights\n that applies to Your use of the Licensed Material.\n\n f. Licensed Material means the artistic or literary work, database,\n or other material to which the Licensor applied this Public\n License.\n\n g. Licensed Rights means the rights granted to You subject to the\n terms and conditions of this Public License, which are limited to\n all Copyright and Similar Rights that apply to Your use of the\n Licensed Material and that the Licensor has authority to license.\n\n h. Licensor means the individual(s) or entity(ies) granting rights\n under this Public License.\n\n i. NonCommercial means not primarily intended for or directed towards\n commercial advantage or monetary compensation. For purposes of\n this Public License, the exchange of the Licensed Material for\n other material subject to Copyright and Similar Rights by digital\n file-sharing or similar means is NonCommercial provided there is\n no payment of monetary compensation in connection with the\n exchange.\n\n j. Share means to provide material to the public by any means or\n process that requires permission under the Licensed Rights, such\n as reproduction, public display, public performance, distribution,\n dissemination, communication, or importation, and to make material\n available to the public including in ways that members of the\n public may access the material from a place and at a time\n individually chosen by them.\n\n k. Sui Generis Database Rights means rights other than copyright\n resulting from Directive 96/9/EC of the European Parliament and of\n the Council of 11 March 1996 on the legal protection of databases,\n as amended and/or succeeded, as well as other essentially\n equivalent rights anywhere in the world.\n\n l. You means the individual or entity exercising the Licensed Rights\n under this Public License. Your has a corresponding meaning.\n\nSection 2 -- Scope.\n\n a. License grant.\n\n 1. Subject to the terms and conditions of this Public License,\n the Licensor hereby grants You a worldwide, royalty-free,\n non-sublicensable, non-exclusive, irrevocable license to\n exercise the Licensed Rights in the Licensed Material to:\n\n a. reproduce and Share the Licensed Material, in whole or\n in part, for NonCommercial purposes only; and\n\n b. produce, reproduce, and Share Adapted Material for\n NonCommercial purposes only.\n\n 2. Exceptions and Limitations. For the avoidance of doubt, where\n Exceptions and Limitations apply to Your use, this Public\n License does not apply, and You do not need to comply with\n its terms and conditions.\n\n 3. Term. The term of this Public License is specified in Section\n 6(a).\n\n 4. Media and formats; technical modifications allowed. The\n Licensor authorizes You to exercise the Licensed Rights in\n all media and formats whether now known or hereafter created,\n and to make technical modifications necessary to do so. The\n Licensor waives and/or agrees not to assert any right or\n authority to forbid You from making technical modifications\n necessary to exercise the Licensed Rights, including\n technical modifications necessary to circumvent Effective\n Technological Measures. For purposes of this Public License,\n simply making modifications authorized by this Section 2(a)\n (4) never produces Adapted Material.\n\n 5. Downstream recipients.\n\n a. Offer from the Licensor -- Licensed Material. Every\n recipient of the Licensed Material automatically\n receives an offer from the Licensor to exercise the\n Licensed Rights under the terms and conditions of this\n Public License.\n\n b. No downstream restrictions. You may not offer or impose\n any additional or different terms or conditions on, or\n apply any Effective Technological Measures to, the\n Licensed Material if doing so restricts exercise of the\n Licensed Rights by any recipient of the Licensed\n Material.\n\n 6. No endorsement. Nothing in this Public License constitutes or\n may be construed as permission to assert or imply that You\n are, or that Your use of the Licensed Material is, connected\n with, or sponsored, endorsed, or granted official status by,\n the Licensor or others designated to receive attribution as\n provided in Section 3(a)(1)(A)(i).\n\n b. Other rights.\n\n 1. Moral rights, such as the right of integrity, are not\n licensed under this Public License, nor are publicity,\n privacy, and/or other similar personality rights; however, to\n the extent possible, the Licensor waives and/or agrees not to\n assert any such rights held by the Licensor to the limited\n extent necessary to allow You to exercise the Licensed\n Rights, but not otherwise.\n\n 2. Patent and trademark rights are not licensed under this\n Public License.\n\n 3. To the extent possible, the Licensor waives any right to\n collect royalties from You for the exercise of the Licensed\n Rights, whether directly or through a collecting society\n under any voluntary or waivable statutory or compulsory\n licensing scheme. In all other cases the Licensor expressly\n reserves any right to collect such royalties, including when\n the Licensed Material is used other than for NonCommercial\n purposes.\n\nSection 3 -- License Conditions.\n\nYour exercise of the Licensed Rights is expressly made subject to the\nfollowing conditions.\n\n a. Attribution.\n\n 1. If You Share the Licensed Material (including in modified\n form), You must:\n\n a. retain the following if it is supplied by the Licensor\n with the Licensed Material:\n\n i. identification of the creator(s) of the Licensed\n Material and any others designated to receive\n attribution, in any reasonable manner requested by\n the Licensor (including by pseudonym if\n designated);\n\n ii. a copyright notice;\n\n iii. a notice that refers to this Public License;\n\n iv. a notice that refers to the disclaimer of\n warranties;\n\n v. a URI or hyperlink to the Licensed Material to the\n extent reasonably practicable;\n\n b. indicate if You modified the Licensed Material and\n retain an indication of any previous modifications; and\n\n c. indicate the Licensed Material is licensed under this\n Public License, and include the text of, or the URI or\n hyperlink to, this Public License.\n\n 2. You may satisfy the conditions in Section 3(a)(1) in any\n reasonable manner based on the medium, means, and context in\n which You Share the Licensed Material. For example, it may be\n reasonable to satisfy the conditions by providing a URI or\n hyperlink to a resource that includes the required\n information.\n\n 3. If requested by the Licensor, You must remove any of the\n information required by Section 3(a)(1)(A) to the extent\n reasonably practicable.\n\n 4. If You Share Adapted Material You produce, the Adapter's\n License You apply must not prevent recipients of the Adapted\n Material from complying with this Public License.\n\nSection 4 -- Sui Generis Database Rights.\n\nWhere the Licensed Rights include Sui Generis Database Rights that\napply to Your use of the Licensed Material:\n\n a. for the avoidance of doubt, Section 2(a)(1) grants You the right\n to extract, reuse, reproduce, and Share all or a substantial\n portion of the contents of the database for NonCommercial purposes\n only;\n\n b. if You include all or a substantial portion of the database\n contents in a database in which You have Sui Generis Database\n Rights, then the database in which You have Sui Generis Database\n Rights (but not its individual contents) is Adapted Material; and\n\n c. You must comply with the conditions in Section 3(a) if You Share\n all or a substantial portion of the contents of the database.\n\nFor the avoidance of doubt, this Section 4 supplements and does not\nreplace Your obligations under this Public License where the Licensed\nRights include other Copyright and Similar Rights.\n\nSection 5 -- Disclaimer of Warranties and Limitation of Liability.\n\n a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE\n EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS\n AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF\n ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,\n IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,\n WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR\n PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,\n ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT\n KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT\n ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.\n\n b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE\n TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,\n NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,\n INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,\n COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR\n USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN\n ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR\n DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR\n IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.\n\n c. The disclaimer of warranties and limitation of liability provided\n above shall be interpreted in a manner that, to the extent\n possible, most closely approximates an absolute disclaimer and\n waiver of all liability.\n\nSection 6 -- Term and Termination.\n\n a. This Public License applies for the term of the Copyright and\n Similar Rights licensed here. However, if You fail to comply with\n this Public License, then Your rights under this Public License\n terminate automatically.\n\n b. Where Your right to use the Licensed Material has terminated under\n Section 6(a), it reinstates:\n\n 1. automatically as of the date the violation is cured, provided\n it is cured within 30 days of Your discovery of the\n violation; or\n\n 2. upon express reinstatement by the Licensor.\n\n For the avoidance of doubt, this Section 6(b) does not affect any\n right the Licensor may have to seek remedies for Your violations\n of this Public License.\n\n c. For the avoidance of doubt, the Licensor may also offer the\n Licensed Material under separate terms or conditions or stop\n distributing the Licensed Material at any time; however, doing so\n will not terminate this Public License.\n\n d. Sections 1, 5, 6, 7, and 8 survive termination of this Public\n License.\n\nSection 7 -- Other Terms and Conditions.\n\n a. The Licensor shall not be bound by any additional or different\n terms or conditions communicated by You unless expressly agreed.\n\n b. Any arrangements, understandings, or agreements regarding the\n Licensed Material not stated herein are separate from and\n independent of the terms and conditions of this Public License.\n\nSection 8 -- Interpretation.\n\n a. For the avoidance of doubt, this Public License does not, and\n shall not be interpreted to, reduce, limit, restrict, or impose\n conditions on any use of the Licensed Material that could lawfully\n be made without permission under this Public License.\n\n b. To the extent possible, if any provision of this Public License is\n deemed unenforceable, it shall be automatically reformed to the\n minimum extent necessary to make it enforceable. If the provision\n cannot be reformed, it shall be severed from this Public License\n without affecting the enforceability of the remaining terms and\n conditions.\n\n c. No term or condition of this Public License will be waived and no\n failure to comply consented to unless expressly agreed to by the\n Licensor.\n\n d. Nothing in this Public License constitutes or may be interpreted\n as a limitation upon, or waiver of, any privileges and immunities\n that apply to the Licensor or You, including from the legal\n processes of any jurisdiction or authority.\n\n=======================================================================\n\nCreative Commons is not a party to its public\nlicenses. Notwithstanding, Creative Commons may elect to apply one of\nits public licenses to material it publishes and in those instances\nwill be considered the “Licensor.” The text of the Creative Commons\npublic licenses is dedicated to the public domain under the CC0 Public\nDomain Dedication. Except for the limited purpose of indicating that\nmaterial is shared under a Creative Commons public license or as\notherwise permitted by the Creative Commons policies published at\ncreativecommons.org/policies, Creative Commons does not authorize the\nuse of the trademark \"Creative Commons\" or any other trademark or logo\nof Creative Commons without its prior written consent including,\nwithout limitation, in connection with any unauthorized modifications\nto any of its public licenses or any other arrangements,\nunderstandings, or agreements concerning use of licensed material. For\nthe avoidance of doubt, this paragraph does not form part of the\npublic licenses.\n\nCreative Commons may be contacted at creativecommons.org.\n\n--------------------------- LICENSE FOR SMPL --------------------------------\nhttps://smpl.is.tue.mpg.de/bodylicense\n\nSMPL-Body License\nMax Planck Society e.V as Licensor\ngrants a\n\nSMPL-BODY Creative Commons License\n\nSMPL: Skinned Multi-Person Linear Model (hereinafter \"SMPL-Model\") is a 3D representation of the human body that supports realistic changes in body shape and pose. SMPL-Body is a subset of SMPL-Model which excludes the shape blendshapes or the tools to create 3D bodies using the shape blendshapes of the SMPL-Model. A SMPL-Body contains a 3D mesh, a skeleton rig, pose blendshapes and dynamic blendshapes. A SMPL-Body can be shared in the form of OBJ file(s), animated FBX file(s), or as a set of mesh vertices, skeleton rig, pose blendshapes and dynamic blendshapes in other appropriate 3D file formats.\n\nSMPL-Body is licensed under the Creative Commons Attribution 4.0 International License. You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. To view a copy of this license, visit:\n\nhttp://creativecommons.org/licenses/by/4.0/\n\nOR\n\nhttps://creativecommons.org/licenses/by/4.0/deed.de (GERMAN)\n\nThe SMPL-Model specification is defined in the granted US patent US10395411B2 (published on 2018-11-01 and 2019-08-27, granted on 2019-08-27) and the pending European EP3314577A1 (published on 2018-05-02) and World WO2016207311A1 (published on 2016-12-29) patent applications, \"Skinned Multi-Person Linear Model\". The Max Planck Society (MPG) owns the technology disclosed in these granted and pending patent applications.\n\nWith this free CC-license, we want to encourage the adoption and use of SMPL-Body and related file formats as a new Standard in 3D Body Modeling. The Grant of right qualifies as a donation under German law. As to § 521 Bürgerliches Gesetzbuch the donor is responsible only for intent and gross negligence.\n\nAttribution for Publications with SMPL-Body\nYou agree to cite the most recent paper describing the model as specified on the download website: http://smpl.is.tue.mpg.de/ This website lists the most up to date bibliographic information.\n\n--------------------------- LICENSE FOR SPIN --------------------------------\n\nCopyright (c) 2019, \nUniversity of Pennsylvania, \nMax Planck Institute for Intelligent Systems\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.",
40
+ "type": "registry:ui"
41
+ },
42
+ {
43
+ "path": "src/components/Card/Card.tsx",
44
+ "content": "import React from 'react';\nimport { CardProps, CardType } from './Card/Card.props';\nimport {\n CardView,\n CardHeader,\n CardContent,\n CardFooter,\n} from './Card/Card.view';\nimport { useDesignSystemComponentLayers } from '../../design-system/theme';\n// This file defines and exports the main `Card` component, which serves as a wrapper for its sub-components like `Card.Header`, `Card.Content`, and `Card.Footer`, enabling a compound component pattern for flexible content structuring.\nconst CardComponent: React.FC<CardProps> = (props) => {\n const { props: mergedProps, themeViews } = useDesignSystemComponentLayers(\n 'card',\n props\n );\n return <CardView {...mergedProps} themeViews={themeViews} />;\n};\nexport const Card = CardComponent as CardType;\nCard.Header = CardHeader;\nCard.Content = CardContent;\nCard.Footer = CardFooter;\n",
45
+ "type": "registry:ui"
46
+ },
47
+ {
48
+ "path": "src/components/Card/Card/Card.context.ts",
49
+ "content": "import { createContext, useContext } from 'react';\nimport { CardStyles } from './Card.type';\nexport interface CardContextValue {\n styles?: CardStyles;\n}\n// This file establishes the React Context for the Card component, facilitating global access to shared properties like styling across its children, and provides a custom hook for convenient context consumption.\nexport const CardContext = createContext<CardContextValue>({});\nexport const useCardContext = () => {\n return useContext(CardContext);\n};\n",
50
+ "type": "registry:ui"
51
+ },
52
+ {
53
+ "path": "src/components/Card/Card/Card.props.ts",
54
+ "content": "import { ViewProps } from 'app-studio';\nimport { CardStyles, Shape, Size, Variant } from './Card.type';\nexport interface CardProps extends ViewProps {\n // Defines the visual style or theme of the card.\n variant?: Variant;\n // Specifies the predefined dimensions or scale of the card.\n size?: Size;\n // Determines the border-radius or overall physical contour of the card.\n shape?: Shape;\n // Content to be rendered within the main body of the card.\n children?: React.ReactNode;\n // Content to be displayed as the card's header section.\n header?: React.ReactNode;\n // Content to be displayed as the card's footer section.\n footer?: React.ReactNode;\n // If true, the card will occupy the full available width of its parent container.\n isFullWidth?: boolean;\n // Optional styling overrides for different parts of the card component.\n views?: CardStyles;\n // Per-instance design-system config override; consumed by\n // `useMergedDesignSystemComponentProps('card', …)` before rendering.\n config?: any;\n}\nexport interface CardHeaderProps extends ViewProps {\n // Content to be rendered inside the card's header.\n children: React.ReactNode;\n // Optional styling overrides for the card header container.\n views?: ViewProps;\n}\nexport interface CardContentProps extends ViewProps {\n // Content to be rendered inside the card's main content area.\n children: React.ReactNode;\n // Optional styling overrides for the card content container.\n views?: ViewProps;\n}\nexport interface CardFooterProps extends ViewProps {\n // Content to be rendered inside the card's footer.\n children: React.ReactNode;\n // Optional styling overrides for the card footer container.\n views?: ViewProps;\n}\nexport interface CardType extends React.FC<CardProps> {\n // Represents the Card Header sub-component, accepting CardHeaderProps.\n Header: React.FC<CardHeaderProps>;\n // Represents the Card Content sub-component, accepting CardContentProps.\n Content: React.FC<CardContentProps>;\n // Represents the Card Footer sub-component, accepting CardFooterProps.\n Footer: React.FC<CardFooterProps>;\n}\n",
55
+ "type": "registry:ui"
56
+ },
57
+ {
58
+ "path": "src/components/Card/Card/Card.style.ts",
59
+ "content": "import { ViewProps } from 'app-studio';\nimport { CardStyles, Shape, Size, Variant } from './Card.type';\n// Defines a mapping of various card sizes (small, medium, large) to their respective padding styles.\nexport const CardSizes: Record<Size, ViewProps> = {\n sm: {\n padding: '12px',\n },\n md: {\n padding: '16px',\n },\n lg: {\n padding: '24px',\n },\n};\n// Defines a mapping of various card shapes (square, rounded, pill) to their respective border-radius values.\nexport const CardShapes: Record<Shape, number | string> = {\n square: 0,\n rounded: '8px',\n pill: '24px',\n};\n// Generates a set of card style variants (default, outlined, elevated) dynamically, adapting their appearance based on the current theme mode.\nexport const getCardVariants = (\n themeMode: string\n): Record<Variant, ViewProps> => {\n const isDark = themeMode === 'dark';\n return {\n default: {\n backgroundColor: 'color-white',\n border: 'none',\n transition: 'background-color 0.2s ease, box-shadow 0.2s ease',\n },\n outlined: {\n backgroundColor: 'color-white',\n borderWidth: '1px',\n borderStyle: 'solid',\n borderColor: 'color-gray-200',\n transition: 'border-color 0.2s ease, box-shadow 0.2s ease',\n _hover: {\n borderColor: 'color-gray-300',\n boxShadow: isDark\n ? '0px 1px 3px rgba(0, 0, 0, 0.3)'\n : '0px 1px 3px rgba(0, 0, 0, 0.05)',\n },\n },\n elevated: {\n backgroundColor: 'color-white',\n boxShadow: isDark\n ? '0px 1px 3px rgba(0, 0, 0, 0.35), 0px 1px 2px rgba(0, 0, 0, 0.3)'\n : '0px 1px 3px rgba(0, 0, 0, 0.08), 0px 1px 2px rgba(0, 0, 0, 0.06)',\n border: 'none',\n transition: 'box-shadow 0.2s ease',\n _hover: {\n boxShadow: isDark\n ? '0px 4px 6px rgba(0, 0, 0, 0.4), 0px 2px 4px rgba(0, 0, 0, 0.35)'\n : '0px 4px 6px rgba(0, 0, 0, 0.08), 0px 2px 4px rgba(0, 0, 0, 0.06)',\n },\n },\n };\n};\n// Provides default styles for the primary card container and its distinct sections (header, content, footer), adjusting colors and borders based on the active theme.\nexport const getDefaultCardStyles = (theme: any): CardStyles => {\n const isDark = theme.themeMode === 'dark';\n return {\n container: {\n backgroundColor: 'color-white',\n color: 'color-gray-900',\n borderRadius: '8px',\n overflow: 'hidden',\n transition:\n 'background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease',\n },\n header: {\n padding: '16px',\n borderBottom: '1px solid',\n borderColor: 'color-gray-100',\n color: 'theme-primary',\n fontWeight: 600,\n fontSize: 14,\n },\n content: {\n padding: '16px',\n color: 'color-gray-600',\n fontSize: 12,\n lineHeight: '18px',\n },\n footer: {\n padding: '16px',\n borderTop: '1px solid',\n borderColor: 'color-gray-100',\n justifyContent: 'flex-end',\n gap: 8,\n },\n };\n};\n",
60
+ "type": "registry:ui"
61
+ },
62
+ {
63
+ "path": "src/components/Card/Card/Card.type.ts",
64
+ "content": "import { ViewProps } from 'app-studio';\n// Defines the available visual variants for the Card component.\nexport type Variant = 'default' | 'outlined' | 'elevated';\n// Specifies the predefined size options for the Card component.\nexport type Size = 'sm' | 'md' | 'lg';\n// Determines the border-radius style or geometric shape of the Card.\nexport type Shape = 'square' | 'rounded' | 'pill';\n// Defines the interface for custom styling properties applied to different sub-components of the Card.\nexport interface CardStyles {\n // Optional styling properties for the main container of the card.\n container?: ViewProps;\n // Optional styling properties for the header section of the card.\n header?: ViewProps;\n // Optional styling properties for the primary content area of the card.\n content?: ViewProps;\n // Optional styling properties for the footer section of the card.\n footer?: ViewProps;\n}\n",
65
+ "type": "registry:ui"
66
+ },
67
+ {
68
+ "path": "src/components/Card/Card/Card.view.tsx",
69
+ "content": "import React, { useMemo } from 'react';\nimport { View, useTheme } from 'app-studio';\nimport { Vertical } from 'app-studio';\nimport {\n CardProps,\n CardHeaderProps,\n CardContentProps,\n CardFooterProps,\n} from './Card.props';\nimport {\n CardShapes,\n CardSizes,\n getCardVariants,\n getDefaultCardStyles,\n} from './Card.style';\nimport { CardContext, useCardContext } from './Card.context';\nimport { mergeDesignSystemViews } from '../../../design-system/theme';\n// Defines the `CardHeader` functional component, responsible for rendering the header section of the Card.\nexport const CardHeader: React.FC<CardHeaderProps> = ({\n children,\n views,\n style,\n themeMode: elementMode,\n ...props\n}) => {\n // Initializes `theme` using the `useTheme` hook to access the current theme context for styling.\n const theme = useTheme();\n // Extracts `contextStyles` from the `CardContext` using `useCardContext` to apply context-specific styles.\n const { styles: contextStyles } = useCardContext();\n // Retrieves default header styles based on the current theme.\n const defaultStyles = getDefaultCardStyles(theme).header;\n // Combines default styles, context styles, and component props to create the final set of properties for the `CardHeader`.\n const mergedProps = {\n ...defaultStyles,\n ...contextStyles?.header,\n ...views,\n ...props,\n style: {\n ...defaultStyles?.style,\n ...contextStyles?.header?.style,\n ...views?.style,\n ...style,\n },\n };\n return (\n <Vertical gap={8} {...mergedProps}>\n {children}\n </Vertical>\n );\n};\nexport const CardContent: React.FC<CardContentProps> = ({\n children,\n views,\n style,\n themeMode: elementMode,\n ...props\n}) => {\n const theme = useTheme();\n const { styles: contextStyles } = useCardContext();\n const defaultStyles = getDefaultCardStyles(theme).content;\n const mergedProps = {\n ...defaultStyles,\n ...contextStyles?.content,\n ...views,\n ...props,\n style: {\n ...defaultStyles?.style,\n ...contextStyles?.content?.style,\n ...views?.style,\n ...style,\n },\n };\n return (\n <Vertical gap={12} {...mergedProps}>\n {children}\n </Vertical>\n );\n};\nexport const CardFooter: React.FC<CardFooterProps> = ({\n children,\n views,\n style,\n themeMode: elementMode,\n ...props\n}) => {\n const theme = useTheme();\n const { styles: contextStyles } = useCardContext();\n const defaultStyles = getDefaultCardStyles(theme).footer;\n const mergedProps = {\n ...defaultStyles,\n ...contextStyles?.footer,\n ...views,\n ...props,\n style: {\n ...defaultStyles?.style,\n ...contextStyles?.footer?.style,\n ...views?.style,\n ...style,\n },\n };\n return (\n <Vertical gap={8} {...mergedProps}>\n {children}\n </Vertical>\n );\n};\nexport const CardView: React.FC<\n CardProps & { themeViews?: CardProps['views'] }\n> = ({\n variant = 'default',\n size = 'md',\n shape = 'rounded',\n children,\n header,\n footer,\n isFullWidth = false,\n views,\n themeViews,\n style,\n themeMode: elementMode,\n config,\n ...props\n}) => {\n const theme = useTheme();\n const defaultStyles = getDefaultCardStyles(theme);\n const variantStyles = getCardVariants(elementMode || theme.themeMode)[\n variant\n ];\n const sizePadding = CardSizes[size]?.padding || '16px';\n const contextValue = useMemo(() => {\n const base = {\n container: {\n ...defaultStyles.container,\n borderRadius: CardShapes[shape],\n },\n header: { ...defaultStyles.header, padding: sizePadding },\n content: { ...defaultStyles.content, padding: sizePadding },\n footer: { ...defaultStyles.footer, padding: sizePadding },\n };\n if (themeViews) {\n // Every variant shares the same surface fallback in base.container.\n const { backgroundColor, border, ...decoration } = variantStyles ?? {};\n const container =\n border === 'none' ? { ...decoration, borderWidth: 0 } : decoration;\n return {\n styles: mergeDesignSystemViews(base, themeViews, { container }, views),\n };\n }\n return {\n styles: {\n container: { ...base.container, ...views?.container },\n header: { ...base.header, ...views?.header },\n content: { ...base.content, ...views?.content },\n footer: { ...base.footer, ...views?.footer },\n },\n };\n }, [defaultStyles, shape, sizePadding, themeViews, variantStyles, views]);\n const hasExplicitStructure = React.Children.toArray(children).some(\n (child) =>\n React.isValidElement(child) &&\n (child.type === CardHeader ||\n child.type === CardContent ||\n child.type === CardFooter)\n );\n const mergedRootProps = {\n width: isFullWidth ? '100%' : 'auto',\n overflow: 'hidden',\n ...(!themeViews && variantStyles),\n ...contextValue.styles.container,\n ...props,\n style: { ...contextValue.styles.container?.style, ...style },\n };\n return (\n <CardContext.Provider value={contextValue}>\n <View {...mergedRootProps}>\n {hasExplicitStructure ? (\n children\n ) : (\n <Vertical width=\"100%\">\n {header && <CardHeader>{header}</CardHeader>}\n <CardContent>{children}</CardContent>\n {footer && <CardFooter>{footer}</CardFooter>}\n </Vertical>\n )}\n </View>\n </CardContext.Provider>\n );\n};\n",
70
+ "type": "registry:ui"
71
+ },
72
+ {
73
+ "path": "src/components/pilot/card.ts",
74
+ "content": "export * from '../Card/Card';\nexport type { CardProps } from '../Card/Card/Card.props';\n",
75
+ "type": "registry:ui"
76
+ }
77
+ ]
78
+ }