@zj-dynamics/components-native 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (519) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE.foundation +21 -0
  3. package/README.md +20 -2
  4. package/RulnarComponentsNative.podspec +16 -0
  5. package/dist/AutoLink.d.ts +9 -0
  6. package/dist/AutoLink.js +63 -0
  7. package/dist/BottomSheetKeyboardAwareScrollView.d.ts +12 -0
  8. package/dist/BottomSheetKeyboardAwareScrollView.js +19 -0
  9. package/dist/Button.d.ts +37 -0
  10. package/dist/Button.js +24 -0
  11. package/dist/Checkbox.d.ts +37 -0
  12. package/dist/Checkbox.js +73 -0
  13. package/dist/Content.d.ts +16 -0
  14. package/dist/Content.js +17 -0
  15. package/dist/ContentOverlay.d.ts +31 -0
  16. package/dist/ContentOverlay.js +151 -0
  17. package/dist/Divider.d.ts +6 -0
  18. package/dist/Divider.js +20 -0
  19. package/dist/Flex.d.ts +10 -0
  20. package/dist/Flex.js +19 -0
  21. package/dist/Icon.d.ts +11 -0
  22. package/dist/Icon.js +17 -0
  23. package/dist/InputCurrency.d.ts +12 -0
  24. package/dist/InputCurrency.js +57 -0
  25. package/dist/InputText.d.ts +32 -0
  26. package/dist/InputText.js +103 -0
  27. package/dist/NativeTextFields.d.ts +22 -0
  28. package/dist/NativeTextFields.js +59 -0
  29. package/dist/Switch.d.ts +17 -0
  30. package/dist/Switch.js +27 -0
  31. package/dist/controlledField.d.ts +4 -0
  32. package/dist/controlledField.js +9 -0
  33. package/dist/foundationText/ActionItem/ActionItem.d.ts +42 -0
  34. package/dist/foundationText/ActionItem/ActionItem.js +31 -0
  35. package/dist/foundationText/ActionItem/ActionItem.style.d.ts +21 -0
  36. package/dist/foundationText/ActionItem/ActionItem.style.js +24 -0
  37. package/dist/foundationText/ActionItem/ActionItemGroup.d.ts +12 -0
  38. package/dist/foundationText/ActionItem/ActionItemGroup.js +18 -0
  39. package/dist/foundationText/ActionItem/components/ActionItemContainer.d.ts +10 -0
  40. package/dist/foundationText/ActionItem/components/ActionItemContainer.js +17 -0
  41. package/dist/foundationText/ActionItem/components/ActionItemContainer.style.d.ts +10 -0
  42. package/dist/foundationText/ActionItem/components/ActionItemContainer.style.js +13 -0
  43. package/dist/foundationText/ActionItem/index.d.ts +4 -0
  44. package/dist/foundationText/ActionItem/index.js +3 -0
  45. package/dist/foundationText/ActionLabel/ActionLabel.d.ts +28 -0
  46. package/dist/foundationText/ActionLabel/ActionLabel.js +22 -0
  47. package/dist/foundationText/ActionLabel/index.d.ts +2 -0
  48. package/dist/foundationText/ActionLabel/index.js +1 -0
  49. package/dist/foundationText/ActivityIndicator/ActivityIndicator.d.ts +46 -0
  50. package/dist/foundationText/ActivityIndicator/ActivityIndicator.js +191 -0
  51. package/dist/foundationText/ActivityIndicator/index.d.ts +2 -0
  52. package/dist/foundationText/ActivityIndicator/index.js +1 -0
  53. package/dist/foundationText/Banner/Banner.d.ts +3 -0
  54. package/dist/foundationText/Banner/Banner.js +64 -0
  55. package/dist/foundationText/Banner/Banner.style.d.ts +56 -0
  56. package/dist/foundationText/Banner/Banner.style.js +59 -0
  57. package/dist/foundationText/Banner/components/BannerIcon/BannerIcon.d.ts +8 -0
  58. package/dist/foundationText/Banner/components/BannerIcon/BannerIcon.js +9 -0
  59. package/dist/foundationText/Banner/components/BannerIcon/BannerIcon.style.d.ts +18 -0
  60. package/dist/foundationText/Banner/components/BannerIcon/BannerIcon.style.js +21 -0
  61. package/dist/foundationText/Banner/index.d.ts +2 -0
  62. package/dist/foundationText/Banner/index.js +1 -0
  63. package/dist/foundationText/Banner/types.d.ts +63 -0
  64. package/dist/foundationText/Banner/types.js +1 -0
  65. package/dist/foundationText/BottomSheet/BottomSheet.d.ts +32 -0
  66. package/dist/foundationText/BottomSheet/BottomSheet.js +75 -0
  67. package/dist/foundationText/BottomSheet/BottomSheet.style.d.ts +26 -0
  68. package/dist/foundationText/BottomSheet/BottomSheet.style.js +30 -0
  69. package/dist/foundationText/BottomSheet/components/BottomSheetOption/BottomSheetOption.d.ts +13 -0
  70. package/dist/foundationText/BottomSheet/components/BottomSheetOption/BottomSheetOption.js +16 -0
  71. package/dist/foundationText/BottomSheet/components/BottomSheetOption/BottomSheetOption.styles.d.ts +16 -0
  72. package/dist/foundationText/BottomSheet/components/BottomSheetOption/BottomSheetOption.styles.js +19 -0
  73. package/dist/foundationText/BottomSheet/components/BottomSheetOption/index.d.ts +2 -0
  74. package/dist/foundationText/BottomSheet/components/BottomSheetOption/index.js +1 -0
  75. package/dist/foundationText/BottomSheet/hooks/useBottomSheetBackHandler.d.ts +8 -0
  76. package/dist/foundationText/BottomSheet/hooks/useBottomSheetBackHandler.js +25 -0
  77. package/dist/foundationText/BottomSheet/index.d.ts +4 -0
  78. package/dist/foundationText/BottomSheet/index.js +2 -0
  79. package/dist/foundationText/ButtonGroup/ButtonGroup.d.ts +30 -0
  80. package/dist/foundationText/ButtonGroup/ButtonGroup.js +25 -0
  81. package/dist/foundationText/ButtonGroup/ButtonGroup.style.d.ts +16 -0
  82. package/dist/foundationText/ButtonGroup/ButtonGroup.style.js +19 -0
  83. package/dist/foundationText/ButtonGroup/ButtonGroupAction.d.ts +47 -0
  84. package/dist/foundationText/ButtonGroup/ButtonGroupAction.js +11 -0
  85. package/dist/foundationText/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.d.ts +14 -0
  86. package/dist/foundationText/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.js +15 -0
  87. package/dist/foundationText/ButtonGroup/components/SecondaryActionSheet/index.d.ts +1 -0
  88. package/dist/foundationText/ButtonGroup/components/SecondaryActionSheet/index.js +1 -0
  89. package/dist/foundationText/ButtonGroup/index.d.ts +3 -0
  90. package/dist/foundationText/ButtonGroup/index.js +2 -0
  91. package/dist/foundationText/ButtonGroup/types.d.ts +7 -0
  92. package/dist/foundationText/ButtonGroup/types.js +1 -0
  93. package/dist/foundationText/ButtonGroup/utils.d.ts +19 -0
  94. package/dist/foundationText/ButtonGroup/utils.js +41 -0
  95. package/dist/foundationText/Card/Card.d.ts +41 -0
  96. package/dist/foundationText/Card/Card.js +26 -0
  97. package/dist/foundationText/Card/Card.style.d.ts +56 -0
  98. package/dist/foundationText/Card/Card.style.js +38 -0
  99. package/dist/foundationText/Card/components/InternalCardHeader.d.ts +10 -0
  100. package/dist/foundationText/Card/components/InternalCardHeader.js +16 -0
  101. package/dist/foundationText/Card/components/InternalCardHeader.style.d.ts +14 -0
  102. package/dist/foundationText/Card/components/InternalCardHeader.style.js +17 -0
  103. package/dist/foundationText/Card/components/index.d.ts +1 -0
  104. package/dist/foundationText/Card/components/index.js +1 -0
  105. package/dist/foundationText/Card/index.d.ts +2 -0
  106. package/dist/foundationText/Card/index.js +1 -0
  107. package/dist/foundationText/Chip/Chip.d.ts +45 -0
  108. package/dist/foundationText/Chip/Chip.js +88 -0
  109. package/dist/foundationText/Chip/Chip.style.d.ts +27 -0
  110. package/dist/foundationText/Chip/Chip.style.js +31 -0
  111. package/dist/foundationText/Chip/index.d.ts +2 -0
  112. package/dist/foundationText/Chip/index.js +1 -0
  113. package/dist/foundationText/ComponentSettingsContext/ComponentSettingsContext.d.ts +57 -0
  114. package/dist/foundationText/ComponentSettingsContext/ComponentSettingsContext.js +26 -0
  115. package/dist/foundationText/ComponentSettingsContext/index.d.ts +1 -0
  116. package/dist/foundationText/ComponentSettingsContext/index.js +1 -0
  117. package/dist/foundationText/Disclosure/Disclosure.d.ts +35 -0
  118. package/dist/foundationText/Disclosure/Disclosure.js +51 -0
  119. package/dist/foundationText/Disclosure/Disclosure.style.d.ts +19 -0
  120. package/dist/foundationText/Disclosure/Disclosure.style.js +22 -0
  121. package/dist/foundationText/Disclosure/constants.d.ts +1 -0
  122. package/dist/foundationText/Disclosure/constants.js +1 -0
  123. package/dist/foundationText/Disclosure/index.d.ts +1 -0
  124. package/dist/foundationText/Disclosure/index.js +1 -0
  125. package/dist/foundationText/EmptyState/EmptyState.d.ts +35 -0
  126. package/dist/foundationText/EmptyState/EmptyState.js +18 -0
  127. package/dist/foundationText/EmptyState/EmptyState.style.d.ts +6 -0
  128. package/dist/foundationText/EmptyState/EmptyState.style.js +9 -0
  129. package/dist/foundationText/EmptyState/index.d.ts +2 -0
  130. package/dist/foundationText/EmptyState/index.js +1 -0
  131. package/dist/foundationText/ErrorMessageWrapper/ErrorMessageWrapper.d.ts +22 -0
  132. package/dist/foundationText/ErrorMessageWrapper/ErrorMessageWrapper.js +35 -0
  133. package/dist/foundationText/ErrorMessageWrapper/ErrorMessageWrapper.style.d.ts +29 -0
  134. package/dist/foundationText/ErrorMessageWrapper/ErrorMessageWrapper.style.js +32 -0
  135. package/dist/foundationText/ErrorMessageWrapper/context/ErrorMessageContext.d.ts +3 -0
  136. package/dist/foundationText/ErrorMessageWrapper/context/ErrorMessageContext.js +11 -0
  137. package/dist/foundationText/ErrorMessageWrapper/context/ErrorMessageProvider.d.ts +7 -0
  138. package/dist/foundationText/ErrorMessageWrapper/context/ErrorMessageProvider.js +38 -0
  139. package/dist/foundationText/ErrorMessageWrapper/context/index.d.ts +2 -0
  140. package/dist/foundationText/ErrorMessageWrapper/context/index.js +2 -0
  141. package/dist/foundationText/ErrorMessageWrapper/context/types.d.ts +62 -0
  142. package/dist/foundationText/ErrorMessageWrapper/context/types.js +1 -0
  143. package/dist/foundationText/ErrorMessageWrapper/index.d.ts +2 -0
  144. package/dist/foundationText/ErrorMessageWrapper/index.js +2 -0
  145. package/dist/foundationText/Form/Form.d.ts +4 -0
  146. package/dist/foundationText/Form/Form.js +142 -0
  147. package/dist/foundationText/Form/Form.style.d.ts +31 -0
  148. package/dist/foundationText/Form/Form.style.js +34 -0
  149. package/dist/foundationText/Form/components/FormActionBar/FormActionBar.d.ts +13 -0
  150. package/dist/foundationText/Form/components/FormActionBar/FormActionBar.js +21 -0
  151. package/dist/foundationText/Form/components/FormActionBar/FormActionBar.style.d.ts +15 -0
  152. package/dist/foundationText/Form/components/FormActionBar/FormActionBar.style.js +11 -0
  153. package/dist/foundationText/Form/components/FormActionBar/index.d.ts +2 -0
  154. package/dist/foundationText/Form/components/FormActionBar/index.js +1 -0
  155. package/dist/foundationText/Form/components/FormBody/FormBody.d.ts +10 -0
  156. package/dist/foundationText/Form/components/FormBody/FormBody.js +18 -0
  157. package/dist/foundationText/Form/components/FormBody/FormBody.style.d.ts +24 -0
  158. package/dist/foundationText/Form/components/FormBody/FormBody.style.js +27 -0
  159. package/dist/foundationText/Form/components/FormBody/index.d.ts +1 -0
  160. package/dist/foundationText/Form/components/FormBody/index.js +1 -0
  161. package/dist/foundationText/Form/components/FormCache/FormCache.d.ts +10 -0
  162. package/dist/foundationText/Form/components/FormCache/FormCache.js +28 -0
  163. package/dist/foundationText/Form/components/FormErrorBanner/FormErrorBanner.d.ts +3 -0
  164. package/dist/foundationText/Form/components/FormErrorBanner/FormErrorBanner.js +14 -0
  165. package/dist/foundationText/Form/components/FormErrorBanner/index.d.ts +1 -0
  166. package/dist/foundationText/Form/components/FormErrorBanner/index.js +1 -0
  167. package/dist/foundationText/Form/components/FormMask/FormMask.d.ts +2 -0
  168. package/dist/foundationText/Form/components/FormMask/FormMask.js +9 -0
  169. package/dist/foundationText/Form/components/FormMask/FormMask.style.d.ts +13 -0
  170. package/dist/foundationText/Form/components/FormMask/FormMask.style.js +16 -0
  171. package/dist/foundationText/Form/components/FormMask/index.d.ts +1 -0
  172. package/dist/foundationText/Form/components/FormMask/index.js +1 -0
  173. package/dist/foundationText/Form/components/FormMessage/FormMessage.d.ts +19 -0
  174. package/dist/foundationText/Form/components/FormMessage/FormMessage.js +49 -0
  175. package/dist/foundationText/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.d.ts +8 -0
  176. package/dist/foundationText/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.js +27 -0
  177. package/dist/foundationText/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.style.d.ts +20 -0
  178. package/dist/foundationText/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.style.js +18 -0
  179. package/dist/foundationText/Form/components/FormMessage/components/InternalFormMessage/index.d.ts +1 -0
  180. package/dist/foundationText/Form/components/FormMessage/components/InternalFormMessage/index.js +1 -0
  181. package/dist/foundationText/Form/components/FormMessage/index.d.ts +1 -0
  182. package/dist/foundationText/Form/components/FormMessage/index.js +1 -0
  183. package/dist/foundationText/Form/components/FormMessageBanner/FormMessageBanner.d.ts +7 -0
  184. package/dist/foundationText/Form/components/FormMessageBanner/FormMessageBanner.js +16 -0
  185. package/dist/foundationText/Form/components/FormMessageBanner/index.d.ts +1 -0
  186. package/dist/foundationText/Form/components/FormMessageBanner/index.js +1 -0
  187. package/dist/foundationText/Form/components/FormSaveButton/FormSaveButton.d.ts +3 -0
  188. package/dist/foundationText/Form/components/FormSaveButton/FormSaveButton.js +55 -0
  189. package/dist/foundationText/Form/components/FormSaveButton/index.d.ts +1 -0
  190. package/dist/foundationText/Form/components/FormSaveButton/index.js +1 -0
  191. package/dist/foundationText/Form/components/IOSKeyboardAwareScrollViewSpacer/IOSKeyboardAwareScrollViewSpacer.d.ts +6 -0
  192. package/dist/foundationText/Form/components/IOSKeyboardAwareScrollViewSpacer/IOSKeyboardAwareScrollViewSpacer.js +13 -0
  193. package/dist/foundationText/Form/constants.d.ts +2 -0
  194. package/dist/foundationText/Form/constants.js +2 -0
  195. package/dist/foundationText/Form/context/FormContext.d.ts +11 -0
  196. package/dist/foundationText/Form/context/FormContext.js +16 -0
  197. package/dist/foundationText/Form/context/index.d.ts +2 -0
  198. package/dist/foundationText/Form/context/index.js +1 -0
  199. package/dist/foundationText/Form/context/types.d.ts +26 -0
  200. package/dist/foundationText/Form/context/types.js +1 -0
  201. package/dist/foundationText/Form/hooks/useFormViewRefs.d.ts +10 -0
  202. package/dist/foundationText/Form/hooks/useFormViewRefs.js +13 -0
  203. package/dist/foundationText/Form/hooks/useInternalForm.d.ts +19 -0
  204. package/dist/foundationText/Form/hooks/useInternalForm.js +43 -0
  205. package/dist/foundationText/Form/hooks/useOfflineHandler.d.ts +1 -0
  206. package/dist/foundationText/Form/hooks/useOfflineHandler.js +23 -0
  207. package/dist/foundationText/Form/hooks/useSaveButtonPosition.d.ts +12 -0
  208. package/dist/foundationText/Form/hooks/useSaveButtonPosition.js +25 -0
  209. package/dist/foundationText/Form/hooks/useScreenInformation.d.ts +8 -0
  210. package/dist/foundationText/Form/hooks/useScreenInformation.js +15 -0
  211. package/dist/foundationText/Form/hooks/useScrollToError/index.d.ts +1 -0
  212. package/dist/foundationText/Form/hooks/useScrollToError/index.js +1 -0
  213. package/dist/foundationText/Form/hooks/useScrollToError/useScrollToError.d.ts +9 -0
  214. package/dist/foundationText/Form/hooks/useScrollToError/useScrollToError.js +64 -0
  215. package/dist/foundationText/Form/index.d.ts +5 -0
  216. package/dist/foundationText/Form/index.js +4 -0
  217. package/dist/foundationText/Form/types.d.ts +215 -0
  218. package/dist/foundationText/Form/types.js +10 -0
  219. package/dist/foundationText/FormField/FormField.d.ts +24 -0
  220. package/dist/foundationText/FormField/FormField.js +11 -0
  221. package/dist/foundationText/FormField/index.d.ts +1 -0
  222. package/dist/foundationText/FormField/index.js +1 -0
  223. package/dist/foundationText/FormatFile/FormatFile.d.ts +79 -0
  224. package/dist/foundationText/FormatFile/FormatFile.js +47 -0
  225. package/dist/foundationText/FormatFile/FormatFile.style.d.ts +15 -0
  226. package/dist/foundationText/FormatFile/FormatFile.style.js +19 -0
  227. package/dist/foundationText/FormatFile/FormatFileThumbnail.d.ts +58 -0
  228. package/dist/foundationText/FormatFile/FormatFileThumbnail.js +35 -0
  229. package/dist/foundationText/FormatFile/components/ErrorIcon/ErrorIcon.d.ts +2 -0
  230. package/dist/foundationText/FormatFile/components/ErrorIcon/ErrorIcon.js +9 -0
  231. package/dist/foundationText/FormatFile/components/ErrorIcon/ErrorIcon.style.d.ts +8 -0
  232. package/dist/foundationText/FormatFile/components/ErrorIcon/ErrorIcon.style.js +11 -0
  233. package/dist/foundationText/FormatFile/components/ErrorIcon/index.d.ts +1 -0
  234. package/dist/foundationText/FormatFile/components/ErrorIcon/index.js +1 -0
  235. package/dist/foundationText/FormatFile/components/FileView/FileView.d.ts +13 -0
  236. package/dist/foundationText/FormatFile/components/FileView/FileView.js +42 -0
  237. package/dist/foundationText/FormatFile/components/FileView/FileView.style.d.ts +64 -0
  238. package/dist/foundationText/FormatFile/components/FileView/FileView.style.js +70 -0
  239. package/dist/foundationText/FormatFile/components/FileView/index.d.ts +1 -0
  240. package/dist/foundationText/FormatFile/components/FileView/index.js +1 -0
  241. package/dist/foundationText/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.d.ts +12 -0
  242. package/dist/foundationText/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.js +17 -0
  243. package/dist/foundationText/FormatFile/components/FormatFileBottomSheet/index.d.ts +2 -0
  244. package/dist/foundationText/FormatFile/components/FormatFileBottomSheet/index.js +1 -0
  245. package/dist/foundationText/FormatFile/components/MediaView/MediaView.d.ts +14 -0
  246. package/dist/foundationText/FormatFile/components/MediaView/MediaView.js +108 -0
  247. package/dist/foundationText/FormatFile/components/MediaView/MediaView.style.d.ts +25 -0
  248. package/dist/foundationText/FormatFile/components/MediaView/MediaView.style.js +28 -0
  249. package/dist/foundationText/FormatFile/components/MediaView/index.d.ts +1 -0
  250. package/dist/foundationText/FormatFile/components/MediaView/index.js +1 -0
  251. package/dist/foundationText/FormatFile/components/ProgressBar/ProgressBar.d.ts +18 -0
  252. package/dist/foundationText/FormatFile/components/ProgressBar/ProgressBar.js +30 -0
  253. package/dist/foundationText/FormatFile/components/ProgressBar/ProgressBar.style.d.ts +13 -0
  254. package/dist/foundationText/FormatFile/components/ProgressBar/ProgressBar.style.js +16 -0
  255. package/dist/foundationText/FormatFile/components/ProgressBar/index.d.ts +1 -0
  256. package/dist/foundationText/FormatFile/components/ProgressBar/index.js +1 -0
  257. package/dist/foundationText/FormatFile/constants.d.ts +35 -0
  258. package/dist/foundationText/FormatFile/constants.js +74 -0
  259. package/dist/foundationText/FormatFile/context/FormatFileContext.d.ts +9 -0
  260. package/dist/foundationText/FormatFile/context/FormatFileContext.js +8 -0
  261. package/dist/foundationText/FormatFile/context/types.d.ts +9 -0
  262. package/dist/foundationText/FormatFile/context/types.js +1 -0
  263. package/dist/foundationText/FormatFile/index.d.ts +8 -0
  264. package/dist/foundationText/FormatFile/index.js +3 -0
  265. package/dist/foundationText/FormatFile/types.d.ts +105 -0
  266. package/dist/foundationText/FormatFile/types.js +8 -0
  267. package/dist/foundationText/FormatFile/utils/computeA11yLabel.d.ts +9 -0
  268. package/dist/foundationText/FormatFile/utils/computeA11yLabel.js +11 -0
  269. package/dist/foundationText/FormatFile/utils/createUseCreateThumbnail.d.ts +6 -0
  270. package/dist/foundationText/FormatFile/utils/createUseCreateThumbnail.js +27 -0
  271. package/dist/foundationText/FormatFile/utils/getFileCategory.d.ts +28 -0
  272. package/dist/foundationText/FormatFile/utils/getFileCategory.js +62 -0
  273. package/dist/foundationText/FormatFile/utils/index.d.ts +7 -0
  274. package/dist/foundationText/FormatFile/utils/index.js +6 -0
  275. package/dist/foundationText/FormatFile/utils/mapFileTypeToIconName.d.ts +17 -0
  276. package/dist/foundationText/FormatFile/utils/mapFileTypeToIconName.js +30 -0
  277. package/dist/foundationText/FormatFile/utils/parseFile.d.ts +3 -0
  278. package/dist/foundationText/FormatFile/utils/parseFile.js +58 -0
  279. package/dist/foundationText/FormatFile/utils/sanitizeFileName.d.ts +5 -0
  280. package/dist/foundationText/FormatFile/utils/sanitizeFileName.js +9 -0
  281. package/dist/foundationText/FormatFile/utils/truncateFileNameForLine.d.ts +24 -0
  282. package/dist/foundationText/FormatFile/utils/truncateFileNameForLine.js +58 -0
  283. package/dist/foundationText/Glimmer/Glimmer.d.ts +32 -0
  284. package/dist/foundationText/Glimmer/Glimmer.js +42 -0
  285. package/dist/foundationText/Glimmer/Glimmer.shape.style.d.ts +14 -0
  286. package/dist/foundationText/Glimmer/Glimmer.shape.style.js +17 -0
  287. package/dist/foundationText/Glimmer/Glimmer.size.style.d.ts +17 -0
  288. package/dist/foundationText/Glimmer/Glimmer.size.style.js +10 -0
  289. package/dist/foundationText/Glimmer/Glimmer.style.d.ts +26 -0
  290. package/dist/foundationText/Glimmer/Glimmer.style.js +30 -0
  291. package/dist/foundationText/Glimmer/index.d.ts +1 -0
  292. package/dist/foundationText/Glimmer/index.js +1 -0
  293. package/dist/foundationText/Heading/Heading.d.ts +38 -0
  294. package/dist/foundationText/Heading/Heading.js +53 -0
  295. package/dist/foundationText/Heading/index.d.ts +2 -0
  296. package/dist/foundationText/Heading/index.js +1 -0
  297. package/dist/foundationText/IconButton/IconButton.d.ts +35 -0
  298. package/dist/foundationText/IconButton/IconButton.js +9 -0
  299. package/dist/foundationText/IconButton/IconButton.style.d.ts +8 -0
  300. package/dist/foundationText/IconButton/IconButton.style.js +11 -0
  301. package/dist/foundationText/IconButton/index.d.ts +1 -0
  302. package/dist/foundationText/IconButton/index.js +1 -0
  303. package/dist/foundationText/InputCurrency/constants.d.ts +1 -0
  304. package/dist/foundationText/InputCurrency/constants.js +1 -0
  305. package/dist/foundationText/InputCurrency/utils.d.ts +9 -0
  306. package/dist/foundationText/InputCurrency/utils.js +57 -0
  307. package/dist/foundationText/InputDate/InputDate.d.ts +76 -0
  308. package/dist/foundationText/InputDate/InputDate.js +70 -0
  309. package/dist/foundationText/InputDate/index.d.ts +2 -0
  310. package/dist/foundationText/InputDate/index.js +1 -0
  311. package/dist/foundationText/InputFieldWrapper/CommonInputStyles.style.d.ts +10 -0
  312. package/dist/foundationText/InputFieldWrapper/CommonInputStyles.style.js +49 -0
  313. package/dist/foundationText/InputFieldWrapper/InputFieldWrapper.d.ts +92 -0
  314. package/dist/foundationText/InputFieldWrapper/InputFieldWrapper.js +99 -0
  315. package/dist/foundationText/InputFieldWrapper/InputFieldWrapper.style.d.ts +106 -0
  316. package/dist/foundationText/InputFieldWrapper/InputFieldWrapper.style.js +123 -0
  317. package/dist/foundationText/InputFieldWrapper/components/ClearAction/ClearAction.d.ts +10 -0
  318. package/dist/foundationText/InputFieldWrapper/components/ClearAction/ClearAction.js +11 -0
  319. package/dist/foundationText/InputFieldWrapper/components/ClearAction/ClearAction.style.d.ts +22 -0
  320. package/dist/foundationText/InputFieldWrapper/components/ClearAction/ClearAction.style.js +26 -0
  321. package/dist/foundationText/InputFieldWrapper/components/ClearAction/index.d.ts +1 -0
  322. package/dist/foundationText/InputFieldWrapper/components/ClearAction/index.js +1 -0
  323. package/dist/foundationText/InputFieldWrapper/components/Prefix/Prefix.d.ts +22 -0
  324. package/dist/foundationText/InputFieldWrapper/components/Prefix/Prefix.js +39 -0
  325. package/dist/foundationText/InputFieldWrapper/components/Suffix/Suffix.d.ts +25 -0
  326. package/dist/foundationText/InputFieldWrapper/components/Suffix/Suffix.js +40 -0
  327. package/dist/foundationText/InputFieldWrapper/index.d.ts +4 -0
  328. package/dist/foundationText/InputFieldWrapper/index.js +3 -0
  329. package/dist/foundationText/InputPressable/InputPressable.d.ts +91 -0
  330. package/dist/foundationText/InputPressable/InputPressable.js +42 -0
  331. package/dist/foundationText/InputPressable/InputPressable.style.d.ts +21 -0
  332. package/dist/foundationText/InputPressable/InputPressable.style.js +28 -0
  333. package/dist/foundationText/InputPressable/index.d.ts +2 -0
  334. package/dist/foundationText/InputPressable/index.js +1 -0
  335. package/dist/foundationText/InputSearch/components/FilterButton.d.ts +7 -0
  336. package/dist/foundationText/InputSearch/components/FilterButton.js +10 -0
  337. package/dist/foundationText/InputText/context/InputAccessoriesContext.d.ts +3 -0
  338. package/dist/foundationText/InputText/context/InputAccessoriesContext.js +16 -0
  339. package/dist/foundationText/InputText/context/InputAccessoriesProvider.d.ts +5 -0
  340. package/dist/foundationText/InputText/context/InputAccessoriesProvider.js +68 -0
  341. package/dist/foundationText/InputText/context/InputAccessoriesProvider.style.d.ts +17 -0
  342. package/dist/foundationText/InputText/context/InputAccessoriesProvider.style.js +23 -0
  343. package/dist/foundationText/InputText/context/index.d.ts +2 -0
  344. package/dist/foundationText/InputText/context/index.js +2 -0
  345. package/dist/foundationText/InputText/context/types.d.ts +23 -0
  346. package/dist/foundationText/InputText/context/types.js +1 -0
  347. package/dist/foundationText/InputTime/InputTime.d.ts +63 -0
  348. package/dist/foundationText/InputTime/InputTime.js +76 -0
  349. package/dist/foundationText/InputTime/InputTime.style.d.ts +6 -0
  350. package/dist/foundationText/InputTime/InputTime.style.js +7 -0
  351. package/dist/foundationText/InputTime/index.d.ts +2 -0
  352. package/dist/foundationText/InputTime/index.js +2 -0
  353. package/dist/foundationText/InputTime/utils/index.d.ts +11 -0
  354. package/dist/foundationText/InputTime/utils/index.js +16 -0
  355. package/dist/foundationText/ProgressBar/ProgressBar.d.ts +6 -0
  356. package/dist/foundationText/ProgressBar/ProgressBar.js +36 -0
  357. package/dist/foundationText/ProgressBar/ProgressBar.size.style.d.ts +11 -0
  358. package/dist/foundationText/ProgressBar/ProgressBar.size.style.js +6 -0
  359. package/dist/foundationText/ProgressBar/ProgressBar.style.d.ts +34 -0
  360. package/dist/foundationText/ProgressBar/ProgressBar.style.js +37 -0
  361. package/dist/foundationText/ProgressBar/ProgressBarInner.d.ts +12 -0
  362. package/dist/foundationText/ProgressBar/ProgressBarInner.js +25 -0
  363. package/dist/foundationText/ProgressBar/ProgressBarStepped.d.ts +12 -0
  364. package/dist/foundationText/ProgressBar/ProgressBarStepped.js +32 -0
  365. package/dist/foundationText/ProgressBar/index.d.ts +2 -0
  366. package/dist/foundationText/ProgressBar/index.js +1 -0
  367. package/dist/foundationText/ProgressBar/types.d.ts +61 -0
  368. package/dist/foundationText/ProgressBar/types.js +1 -0
  369. package/dist/foundationText/ProgressIndicator/ProgressIndicator.d.ts +3 -0
  370. package/dist/foundationText/ProgressIndicator/ProgressIndicator.js +105 -0
  371. package/dist/foundationText/ProgressIndicator/ProgressIndicator.size.style.d.ts +19 -0
  372. package/dist/foundationText/ProgressIndicator/ProgressIndicator.size.style.js +15 -0
  373. package/dist/foundationText/ProgressIndicator/ProgressIndicator.style.d.ts +48 -0
  374. package/dist/foundationText/ProgressIndicator/ProgressIndicator.style.js +51 -0
  375. package/dist/foundationText/ProgressIndicator/index.d.ts +2 -0
  376. package/dist/foundationText/ProgressIndicator/index.js +1 -0
  377. package/dist/foundationText/ProgressIndicator/types.d.ts +44 -0
  378. package/dist/foundationText/ProgressIndicator/types.js +1 -0
  379. package/dist/foundationText/Select/Select.d.ts +92 -0
  380. package/dist/foundationText/Select/Select.js +102 -0
  381. package/dist/foundationText/Select/Select.style.d.ts +29 -0
  382. package/dist/foundationText/Select/Select.style.js +55 -0
  383. package/dist/foundationText/Select/SelectComposableTypes.d.ts +50 -0
  384. package/dist/foundationText/Select/SelectComposableTypes.js +1 -0
  385. package/dist/foundationText/Select/SelectRoot.d.ts +12 -0
  386. package/dist/foundationText/Select/SelectRoot.js +69 -0
  387. package/dist/foundationText/Select/SelectRoot.style.d.ts +8 -0
  388. package/dist/foundationText/Select/SelectRoot.style.js +9 -0
  389. package/dist/foundationText/Select/components/SelectContent.d.ts +8 -0
  390. package/dist/foundationText/Select/components/SelectContent.js +34 -0
  391. package/dist/foundationText/Select/components/SelectDefaultPicker/SelectDefaultPicker.d.ts +5 -0
  392. package/dist/foundationText/Select/components/SelectDefaultPicker/SelectDefaultPicker.ios.d.ts +5 -0
  393. package/dist/foundationText/Select/components/SelectDefaultPicker/SelectDefaultPicker.ios.js +22 -0
  394. package/dist/foundationText/Select/components/SelectDefaultPicker/SelectDefaultPicker.js +15 -0
  395. package/dist/foundationText/Select/components/SelectDefaultPicker/SelectDefaultPicker.style.d.ts +30 -0
  396. package/dist/foundationText/Select/components/SelectDefaultPicker/SelectDefaultPicker.style.js +29 -0
  397. package/dist/foundationText/Select/components/SelectDefaultPicker/index.d.ts +1 -0
  398. package/dist/foundationText/Select/components/SelectDefaultPicker/index.js +1 -0
  399. package/dist/foundationText/Select/components/SelectFieldContext.d.ts +27 -0
  400. package/dist/foundationText/Select/components/SelectFieldContext.js +10 -0
  401. package/dist/foundationText/Select/components/SelectIOSPicker/SelectIOSPicker.d.ts +10 -0
  402. package/dist/foundationText/Select/components/SelectIOSPicker/SelectIOSPicker.js +2 -0
  403. package/dist/foundationText/Select/components/SelectIOSPicker/index.d.ts +1 -0
  404. package/dist/foundationText/Select/components/SelectIOSPicker/index.js +1 -0
  405. package/dist/foundationText/Select/components/SelectInternalPicker/SelectInternalPicker.d.ts +3 -0
  406. package/dist/foundationText/Select/components/SelectInternalPicker/SelectInternalPicker.js +14 -0
  407. package/dist/foundationText/Select/components/SelectInternalPicker/index.d.ts +1 -0
  408. package/dist/foundationText/Select/components/SelectInternalPicker/index.js +1 -0
  409. package/dist/foundationText/Select/components/SelectInternalPicker/utils.d.ts +3 -0
  410. package/dist/foundationText/Select/components/SelectInternalPicker/utils.js +13 -0
  411. package/dist/foundationText/Select/components/SelectItem.d.ts +32 -0
  412. package/dist/foundationText/Select/components/SelectItem.js +26 -0
  413. package/dist/foundationText/Select/components/SelectItem.style.d.ts +5 -0
  414. package/dist/foundationText/Select/components/SelectItem.style.js +6 -0
  415. package/dist/foundationText/Select/components/SelectLabel.d.ts +22 -0
  416. package/dist/foundationText/Select/components/SelectLabel.js +30 -0
  417. package/dist/foundationText/Select/components/SelectPressable/SelectPressable.d.ts +11 -0
  418. package/dist/foundationText/Select/components/SelectPressable/SelectPressable.js +17 -0
  419. package/dist/foundationText/Select/components/SelectPressable/SelectPressable.style.d.ts +5 -0
  420. package/dist/foundationText/Select/components/SelectPressable/SelectPressable.style.js +8 -0
  421. package/dist/foundationText/Select/components/SelectPressable/index.d.ts +1 -0
  422. package/dist/foundationText/Select/components/SelectPressable/index.js +1 -0
  423. package/dist/foundationText/Select/components/SelectTrigger.d.ts +20 -0
  424. package/dist/foundationText/Select/components/SelectTrigger.js +39 -0
  425. package/dist/foundationText/Select/components/SelectTrigger.style.d.ts +25 -0
  426. package/dist/foundationText/Select/components/SelectTrigger.style.js +31 -0
  427. package/dist/foundationText/Select/index.d.ts +4 -0
  428. package/dist/foundationText/Select/index.js +4 -0
  429. package/dist/foundationText/Select/types.d.ts +38 -0
  430. package/dist/foundationText/Select/types.js +1 -0
  431. package/dist/foundationText/StatusLabel/StatusLabel.d.ts +22 -0
  432. package/dist/foundationText/StatusLabel/StatusLabel.js +20 -0
  433. package/dist/foundationText/StatusLabel/StatusLabel.style.d.ts +23 -0
  434. package/dist/foundationText/StatusLabel/StatusLabel.style.js +29 -0
  435. package/dist/foundationText/StatusLabel/index.d.ts +2 -0
  436. package/dist/foundationText/StatusLabel/index.js +1 -0
  437. package/dist/foundationText/Text/Text.d.ts +76 -0
  438. package/dist/foundationText/Text/Text.js +39 -0
  439. package/dist/foundationText/Text/index.d.ts +2 -0
  440. package/dist/foundationText/Text/index.js +1 -0
  441. package/dist/foundationText/TextList/TextList.d.ts +30 -0
  442. package/dist/foundationText/TextList/TextList.js +11 -0
  443. package/dist/foundationText/TextList/TextList.style.d.ts +14 -0
  444. package/dist/foundationText/TextList/TextList.style.js +17 -0
  445. package/dist/foundationText/TextList/index.d.ts +1 -0
  446. package/dist/foundationText/TextList/index.js +1 -0
  447. package/dist/foundationText/ThumbnailList/ThumbnailList.d.ts +5 -0
  448. package/dist/foundationText/ThumbnailList/ThumbnailList.js +32 -0
  449. package/dist/foundationText/ThumbnailList/ThumbnailList.style.d.ts +47 -0
  450. package/dist/foundationText/ThumbnailList/ThumbnailList.style.js +50 -0
  451. package/dist/foundationText/ThumbnailList/index.d.ts +2 -0
  452. package/dist/foundationText/ThumbnailList/index.js +2 -0
  453. package/dist/foundationText/ThumbnailList/types.d.ts +15 -0
  454. package/dist/foundationText/ThumbnailList/types.js +5 -0
  455. package/dist/foundationText/Toast/Toast.d.ts +28 -0
  456. package/dist/foundationText/Toast/Toast.js +64 -0
  457. package/dist/foundationText/Toast/Toast.styles.d.ts +31 -0
  458. package/dist/foundationText/Toast/Toast.styles.js +31 -0
  459. package/dist/foundationText/Toast/index.d.ts +2 -0
  460. package/dist/foundationText/Toast/index.js +1 -0
  461. package/dist/foundationText/Typography/Typography.d.ts +126 -0
  462. package/dist/foundationText/Typography/Typography.js +124 -0
  463. package/dist/foundationText/Typography/Typography.style.d.ts +16 -0
  464. package/dist/foundationText/Typography/Typography.style.js +472 -0
  465. package/dist/foundationText/Typography/TypographyGestureDetector.d.ts +8 -0
  466. package/dist/foundationText/Typography/TypographyGestureDetector.js +11 -0
  467. package/dist/foundationText/Typography/index.d.ts +5 -0
  468. package/dist/foundationText/Typography/index.js +4 -0
  469. package/dist/foundationText/Typography/webFonts.d.ts +4 -0
  470. package/dist/foundationText/Typography/webFonts.js +34 -0
  471. package/dist/foundationText/capitalize.d.ts +1 -0
  472. package/dist/foundationText/capitalize.js +6 -0
  473. package/dist/foundationText/compatTheme.d.ts +8 -0
  474. package/dist/foundationText/compatTheme.js +14 -0
  475. package/dist/foundationText/dateFormatter.d.ts +6 -0
  476. package/dist/foundationText/dateFormatter.js +19 -0
  477. package/dist/foundationText/foundationMessages.d.ts +11 -0
  478. package/dist/foundationText/foundationMessages.js +24 -0
  479. package/dist/foundationText/messages-en.d.ts +38 -0
  480. package/dist/foundationText/messages-en.js +38 -0
  481. package/dist/foundationText/messages-es.d.ts +38 -0
  482. package/dist/foundationText/messages-es.js +38 -0
  483. package/dist/foundationText/primitives/HelperText/HelperText.d.ts +15 -0
  484. package/dist/foundationText/primitives/HelperText/HelperText.js +11 -0
  485. package/dist/foundationText/primitives/HelperText/HelperText.style.d.ts +16 -0
  486. package/dist/foundationText/primitives/HelperText/HelperText.style.js +19 -0
  487. package/dist/foundationText/primitives/HelperText/index.d.ts +2 -0
  488. package/dist/foundationText/primitives/HelperText/index.js +1 -0
  489. package/dist/foundationText/primitives/Portal/index.d.ts +1 -0
  490. package/dist/foundationText/primitives/Portal/index.js +7 -0
  491. package/dist/foundationText/primitives/Select/SelectPrimitive.d.ts +69 -0
  492. package/dist/foundationText/primitives/Select/SelectPrimitive.js +160 -0
  493. package/dist/foundationText/primitives/Select/SelectPrimitive.style.d.ts +114 -0
  494. package/dist/foundationText/primitives/Select/SelectPrimitive.style.js +130 -0
  495. package/dist/foundationText/primitives/Select/index.d.ts +2 -0
  496. package/dist/foundationText/primitives/Select/index.js +1 -0
  497. package/dist/foundationText/primitives/Select/nativeTypes.d.ts +84 -0
  498. package/dist/foundationText/primitives/Select/nativeTypes.js +1 -0
  499. package/dist/foundationText/primitives/Select/types.d.ts +41 -0
  500. package/dist/foundationText/primitives/Select/types.js +1 -0
  501. package/dist/foundationText/primitives/index.d.ts +3 -0
  502. package/dist/foundationText/primitives/index.js +3 -0
  503. package/dist/foundationTokens.d.ts +388 -0
  504. package/dist/foundationTokens.js +26 -0
  505. package/dist/index.d.ts +67 -0
  506. package/dist/index.js +54 -0
  507. package/dist/legacyTheme.d.ts +18 -0
  508. package/dist/legacyTheme.js +23 -0
  509. package/dist/sheetContext.d.ts +3 -0
  510. package/dist/sheetContext.js +6 -0
  511. package/dist/theme.d.ts +29 -0
  512. package/dist/theme.js +42 -0
  513. package/dist/useFormController.d.ts +11 -0
  514. package/dist/useFormController.js +15 -0
  515. package/dist/useIsScreenReaderEnabled.d.ts +1 -0
  516. package/dist/useIsScreenReaderEnabled.js +21 -0
  517. package/ios/RulnarPickerManager.m +59 -0
  518. package/package.json +146 -4
  519. package/resources/meta.json +85 -0
@@ -0,0 +1,388 @@
1
+ export declare const platformTokens: {
2
+ "base-unit": number;
3
+ "border-base": number;
4
+ "border-thick": number;
5
+ "border-thicker": number;
6
+ "border-thickest": number;
7
+ "color-base-grey--100": string;
8
+ "color-base-grey--200": string;
9
+ "color-base-grey--300": string;
10
+ "color-base-grey--400": string;
11
+ "color-base-grey--500": string;
12
+ "color-base-grey--600": string;
13
+ "color-base-grey--700": string;
14
+ "color-base-grey--800": string;
15
+ "color-base-grey--900": string;
16
+ "color-base-grey--1000": string;
17
+ "color-base-taupe--100": string;
18
+ "color-base-taupe--200": string;
19
+ "color-base-taupe--300": string;
20
+ "color-base-taupe--400": string;
21
+ "color-base-taupe--500": string;
22
+ "color-base-taupe--600": string;
23
+ "color-base-taupe--700": string;
24
+ "color-base-taupe--800": string;
25
+ "color-base-taupe--900": string;
26
+ "color-base-taupe--1000": string;
27
+ "color-base-red--100": string;
28
+ "color-base-red--200": string;
29
+ "color-base-red--300": string;
30
+ "color-base-red--400": string;
31
+ "color-base-red--500": string;
32
+ "color-base-red--600": string;
33
+ "color-base-red--700": string;
34
+ "color-base-red--800": string;
35
+ "color-base-red--900": string;
36
+ "color-base-red--1000": string;
37
+ "color-base-green--100": string;
38
+ "color-base-green--200": string;
39
+ "color-base-green--300": string;
40
+ "color-base-green--400": string;
41
+ "color-base-green--500": string;
42
+ "color-base-green--600": string;
43
+ "color-base-green--700": string;
44
+ "color-base-green--800": string;
45
+ "color-base-green--900": string;
46
+ "color-base-green--1000": string;
47
+ "color-base-blue--100": string;
48
+ "color-base-blue--200": string;
49
+ "color-base-blue--300": string;
50
+ "color-base-blue--400": string;
51
+ "color-base-blue--500": string;
52
+ "color-base-blue--600": string;
53
+ "color-base-blue--700": string;
54
+ "color-base-blue--800": string;
55
+ "color-base-blue--900": string;
56
+ "color-base-blue--1000": string;
57
+ "color-base-yellow--100": string;
58
+ "color-base-yellow--200": string;
59
+ "color-base-yellow--300": string;
60
+ "color-base-yellow--400": string;
61
+ "color-base-yellow--500": string;
62
+ "color-base-yellow--600": string;
63
+ "color-base-yellow--700": string;
64
+ "color-base-yellow--800": string;
65
+ "color-base-yellow--900": string;
66
+ "color-base-yellow--1000": string;
67
+ "color-base-lime--100": string;
68
+ "color-base-lime--200": string;
69
+ "color-base-lime--300": string;
70
+ "color-base-lime--400": string;
71
+ "color-base-lime--500": string;
72
+ "color-base-lime--600": string;
73
+ "color-base-lime--700": string;
74
+ "color-base-lime--800": string;
75
+ "color-base-lime--900": string;
76
+ "color-base-lime--1000": string;
77
+ "color-base-lightBlue--100": string;
78
+ "color-base-lightBlue--200": string;
79
+ "color-base-lightBlue--300": string;
80
+ "color-base-lightBlue--400": string;
81
+ "color-base-lightBlue--500": string;
82
+ "color-base-lightBlue--600": string;
83
+ "color-base-lightBlue--700": string;
84
+ "color-base-lightBlue--800": string;
85
+ "color-base-lightBlue--900": string;
86
+ "color-base-lightBlue--1000": string;
87
+ "color-base-pink--100": string;
88
+ "color-base-pink--200": string;
89
+ "color-base-pink--300": string;
90
+ "color-base-pink--400": string;
91
+ "color-base-pink--500": string;
92
+ "color-base-pink--600": string;
93
+ "color-base-pink--700": string;
94
+ "color-base-pink--800": string;
95
+ "color-base-pink--900": string;
96
+ "color-base-pink--1000": string;
97
+ "color-base-orange--100": string;
98
+ "color-base-orange--200": string;
99
+ "color-base-orange--300": string;
100
+ "color-base-orange--400": string;
101
+ "color-base-orange--500": string;
102
+ "color-base-orange--600": string;
103
+ "color-base-orange--700": string;
104
+ "color-base-orange--800": string;
105
+ "color-base-orange--900": string;
106
+ "color-base-orange--1000": string;
107
+ "color-base-teal--100": string;
108
+ "color-base-teal--200": string;
109
+ "color-base-teal--300": string;
110
+ "color-base-teal--400": string;
111
+ "color-base-teal--500": string;
112
+ "color-base-teal--600": string;
113
+ "color-base-teal--700": string;
114
+ "color-base-teal--800": string;
115
+ "color-base-teal--900": string;
116
+ "color-base-teal--1000": string;
117
+ "color-base-purple--100": string;
118
+ "color-base-purple--200": string;
119
+ "color-base-purple--300": string;
120
+ "color-base-purple--400": string;
121
+ "color-base-purple--500": string;
122
+ "color-base-purple--600": string;
123
+ "color-base-purple--700": string;
124
+ "color-base-purple--800": string;
125
+ "color-base-purple--900": string;
126
+ "color-base-purple--1000": string;
127
+ "color-indigo": string;
128
+ "color-indigo--light": string;
129
+ "color-indigo--lighter": string;
130
+ "color-indigo--lightest": string;
131
+ "color-indigo--dark": string;
132
+ "color-white--rgb": string;
133
+ "color-black--rgb": string;
134
+ "color-brand--highlight": string;
135
+ "color-greyBlue--rgb": string;
136
+ "color-purple--light": string;
137
+ "color-purple--lighter": string;
138
+ "color-purple--lightest": string;
139
+ "color-teal": string;
140
+ "color-teal--light": string;
141
+ "color-teal--lighter": string;
142
+ "color-teal--lightest": string;
143
+ "color-teal--dark": string;
144
+ "color-blue": string;
145
+ "color-blue--light": string;
146
+ "color-blue--lighter": string;
147
+ "color-blue--lightest": string;
148
+ "color-blue--dark": string;
149
+ "color-taupe": string;
150
+ "color-taupe--light": string;
151
+ "color-taupe--dark": string;
152
+ "color-green": string;
153
+ "color-green--light": string;
154
+ "color-green--lighter": string;
155
+ "color-green--lightest": string;
156
+ "color-green--dark": string;
157
+ "color-lime": string;
158
+ "color-lime--light": string;
159
+ "color-lime--lighter": string;
160
+ "color-lime--lightest": string;
161
+ "color-lime--dark": string;
162
+ "color-yellowGreen": string;
163
+ "color-yellowGreen--light": string;
164
+ "color-yellowGreen--lighter": string;
165
+ "color-yellowGreen--lightest": string;
166
+ "color-yellowGreen--dark": string;
167
+ "color-yellow": string;
168
+ "color-yellow--light": string;
169
+ "color-yellow--lighter": string;
170
+ "color-yellow--lightest": string;
171
+ "color-yellow--dark": string;
172
+ "color-red": string;
173
+ "color-red--light": string;
174
+ "color-red--lighter": string;
175
+ "color-red--lightest": string;
176
+ "color-red--dark": string;
177
+ "color-grey": string;
178
+ "color-grey--light": string;
179
+ "color-grey--lighter": string;
180
+ "color-grey--lightest": string;
181
+ "color-grey--dark": string;
182
+ "color-overlay": string;
183
+ "color-overlay--dimmed": string;
184
+ "color-white": string;
185
+ "color-black": string;
186
+ "color-greyBlue": string;
187
+ "color-greyBlue--light": string;
188
+ "color-greyBlue--lighter": string;
189
+ "color-greyBlue--lightest": string;
190
+ "color-greyBlue--dark": string;
191
+ "color-lightBlue": string;
192
+ "color-lightBlue--light": string;
193
+ "color-lightBlue--lighter": string;
194
+ "color-lightBlue--lightest": string;
195
+ "color-lightBlue--dark": string;
196
+ "color-purple": string;
197
+ "color-purple--dark": string;
198
+ "color-pink": string;
199
+ "color-pink--light": string;
200
+ "color-pink--lighter": string;
201
+ "color-pink--lightest": string;
202
+ "color-pink--dark": string;
203
+ "color-orange": string;
204
+ "color-orange--light": string;
205
+ "color-orange--lighter": string;
206
+ "color-orange--lightest": string;
207
+ "color-orange--dark": string;
208
+ "color-brown": string;
209
+ "color-brown--light": string;
210
+ "color-brown--lighter": string;
211
+ "color-brown--lightest": string;
212
+ "color-brown--dark": string;
213
+ "color-navy": string;
214
+ "color-navy--light": string;
215
+ "color-navy--lighter": string;
216
+ "color-navy--lightest": string;
217
+ "color-navy--dark": string;
218
+ "color-base-white": string;
219
+ "color-base-black": string;
220
+ "color-interactive": string;
221
+ "color-interactive--hover": string;
222
+ "color-interactive--subtle": string;
223
+ "color-interactive--subtle--hover": string;
224
+ "color-interactive--background": string;
225
+ "color-interactive--background--hover": string;
226
+ "color-interactive--background--subtle--hover": string;
227
+ "color-destructive": string;
228
+ "color-destructive--hover": string;
229
+ "color-disabled": string;
230
+ "color-disabled--secondary": string;
231
+ "color-focus": string;
232
+ "color-dataViz--categorical--1": string;
233
+ "color-dataViz--categorical--2": string;
234
+ "color-dataViz--categorical--3": string;
235
+ "color-dataViz--categorical--1--subtle": string;
236
+ "color-dataViz--categorical--1--bold": string;
237
+ "color-critical": string;
238
+ "color-critical--surface": string;
239
+ "color-critical--onSurface": string;
240
+ "color-warning": string;
241
+ "color-warning--surface": string;
242
+ "color-warning--onSurface": string;
243
+ "color-success": string;
244
+ "color-success--surface": string;
245
+ "color-success--onSurface": string;
246
+ "color-informative": string;
247
+ "color-informative--surface": string;
248
+ "color-informative--onSurface": string;
249
+ "color-inactive": string;
250
+ "color-inactive--surface": string;
251
+ "color-inactive--onSurface": string;
252
+ "color-heading": string;
253
+ "color-text": string;
254
+ "color-text--secondary": string;
255
+ "color-text--reverse": string;
256
+ "color-text--reverse--secondary": string;
257
+ "color-icon": string;
258
+ "color-icon--secondary": string;
259
+ "color-surface": string;
260
+ "color-surface--hover": string;
261
+ "color-surface--reverse": string;
262
+ "color-surface--active": string;
263
+ "color-surface--background": string;
264
+ "color-surface--background--hover": string;
265
+ "color-surface--background--subtle": string;
266
+ "color-surface--background--subtle--hover": string;
267
+ "color-border": string;
268
+ "color-border--interactive": string;
269
+ "color-border--section": string;
270
+ "color-brand": string;
271
+ "color-request": string;
272
+ "color-request--surface": string;
273
+ "color-request--onSurface": string;
274
+ "color-quote": string;
275
+ "color-quote--surface": string;
276
+ "color-quote--onSurface": string;
277
+ "color-job": string;
278
+ "color-job--surface": string;
279
+ "color-job--onSurface": string;
280
+ "color-task": string;
281
+ "color-task--surface": string;
282
+ "color-task--onSurface": string;
283
+ "color-invoice": string;
284
+ "color-invoice--surface": string;
285
+ "color-invoice--onSurface": string;
286
+ "color-visit": string;
287
+ "color-visit--surface": string;
288
+ "color-visit--onSurface": string;
289
+ "color-event": string;
290
+ "color-event--surface": string;
291
+ "color-event--onSurface": string;
292
+ "color-payments": string;
293
+ "color-payments--surface": string;
294
+ "color-payments--onSurface": string;
295
+ "color-client": string;
296
+ "color-client--surface": string;
297
+ "color-client--onSurface": string;
298
+ "radius-base": number;
299
+ "radius-small": number;
300
+ "radius-large": number;
301
+ "radius-larger": number;
302
+ "radius-circle": number;
303
+ "space-minuscule": number;
304
+ "space-smallest": number;
305
+ "space-smaller": number;
306
+ "space-small": number;
307
+ "space-slim": number;
308
+ "space-base": number;
309
+ "space-large": number;
310
+ "space-larger": number;
311
+ "space-largest": number;
312
+ "space-extravagant": number;
313
+ "shadow-low": {
314
+ shadowColor: string;
315
+ shadowOffset: {
316
+ width: number;
317
+ height: number;
318
+ };
319
+ shadowOpacity: number;
320
+ shadowRadius: number;
321
+ elevation: number;
322
+ };
323
+ "shadow-base": {
324
+ shadowColor: string;
325
+ shadowOffset: {
326
+ width: number;
327
+ height: number;
328
+ };
329
+ shadowOpacity: number;
330
+ shadowRadius: number;
331
+ elevation: number;
332
+ };
333
+ "shadow-high": {
334
+ shadowColor: string;
335
+ shadowOffset: {
336
+ width: number;
337
+ height: number;
338
+ };
339
+ shadowOpacity: number;
340
+ shadowRadius: number;
341
+ elevation: number;
342
+ };
343
+ "shadow-focus": string;
344
+ "timing-quick": number;
345
+ "timing-base": number;
346
+ "timing-slow": number;
347
+ "timing-slower": number;
348
+ "timing-slowest": number;
349
+ "timing-loading": number;
350
+ "timing-loading--extended": number;
351
+ "timing-indicator--arc": number;
352
+ "timing-indicator--cycle": number;
353
+ "timing-indicator--linear-rotate": number;
354
+ "opacity-overlay": number;
355
+ "opacity-pressed": number;
356
+ "elevation-default": number;
357
+ "elevation-base": number;
358
+ "elevation-menu": number;
359
+ "elevation-datepicker": number;
360
+ "elevation-modal": number;
361
+ "elevation-tooltip": number;
362
+ "elevation-toast": number;
363
+ "typography--letterSpacing-base": number;
364
+ "typography--letterSpacing-loose": number;
365
+ "typography--fontFamily-normal": string;
366
+ "typography--fontFamily-display": string;
367
+ "typography--lineHeight-large": number;
368
+ "typography--lineHeight-larger": number;
369
+ "typography--lineHeight-largest": number;
370
+ "typography--lineHeight-jumbo": number;
371
+ "typography--lineHeight-extravagant": number;
372
+ "typography--lineHeight-base": number;
373
+ "typography--lineHeight-tight": number;
374
+ "typography--lineHeight-tighter": number;
375
+ "typography--lineHeight-tightest": number;
376
+ "typography--lineHeight-minuscule": number;
377
+ "typography--fontSize-extravagant": number;
378
+ "typography--fontSize-jumbo": number;
379
+ "typography--fontSize-largest": number;
380
+ "typography--fontSize-larger": number;
381
+ "typography--fontSize-large": number;
382
+ "typography--fontSize-base": number;
383
+ "typography--fontSize-small": number;
384
+ "typography--fontSize-smaller": number;
385
+ "typography--fontSize-smallest": number;
386
+ };
387
+ export type FoundationTokens = Readonly<typeof platformTokens>;
388
+ export declare function useFoundationTokens(): FoundationTokens;
@@ -0,0 +1,26 @@
1
+ import { useMemo } from 'react';
2
+ import { Platform } from 'react-native';
3
+ import { foundationColorOverrides } from '@zj-dynamics/design';
4
+ import { androidTokens, darkAndroidTokens, darkIosTokens, iosTokens } from '@zj-dynamics/design/native';
5
+ import { useThemeScope } from './theme.js';
6
+ export const platformTokens = Platform.OS === 'android' ? androidTokens : iosTokens;
7
+ const platformDarkTokens = Platform.OS === 'android' ? darkAndroidTokens : darkIosTokens;
8
+ function record(value) {
9
+ return value !== null && typeof value === 'object' && !Array.isArray(value);
10
+ }
11
+ function mergeDark(base, dark) {
12
+ const tokens = { ...base };
13
+ for (const [key, value] of Object.entries(dark)) {
14
+ const previous = tokens[key];
15
+ tokens[key] = record(previous) ? (record(value) ? mergeDark(previous, value) : previous) : value;
16
+ }
17
+ return tokens;
18
+ }
19
+ const darkTokens = mergeDark(platformTokens, platformDarkTokens);
20
+ export function useFoundationTokens() {
21
+ const { brand, effectiveMode, overrides } = useThemeScope();
22
+ const baseline = effectiveMode === 'dark' ? darkTokens : platformTokens;
23
+ return useMemo(() => ({
24
+ ...baseline, ...foundationColorOverrides({ ...brand[effectiveMode], ...overrides }),
25
+ }), [baseline, brand, effectiveMode, overrides]);
26
+ }
@@ -0,0 +1,67 @@
1
+ export { Button } from './Button.js';
2
+ export type { ButtonProps, ButtonType, ButtonVariation, ButtonSize } from './Button.js';
3
+ export { Switch } from './Switch.js';
4
+ export type { SwitchProps } from './Switch.js';
5
+ export { Checkbox, CheckboxGroup } from './Checkbox.js';
6
+ export type { CheckboxProps, CheckboxGroupProps, CheckboxGroupState } from './Checkbox.js';
7
+ export { InputText } from './InputText.js';
8
+ export type { InputTextProps, InputTextRef } from './InputText.js';
9
+ export { ContentOverlay, OverlayProvider } from './ContentOverlay.js';
10
+ export type { ContentOverlayProps, ContentOverlayRef, ModalBackgroundColor } from './ContentOverlay.js';
11
+ export { ThemeProvider, useTheme } from './theme.js';
12
+ export type { NativeTheme, ThemeProviderProps } from './theme.js';
13
+ export { Icon, iconNames, isIconName } from './Icon.js';
14
+ export type { IconProps, IconColorNames, IconNames, IconSizes } from './Icon.js';
15
+ export { Content } from './Content.js';
16
+ export type { ContentProps, ContentUnsafeStyle, Spacing } from './Content.js';
17
+ export { Divider } from './Divider.js';
18
+ export type { DividerProps } from './Divider.js';
19
+ export { Flex } from './Flex.js';
20
+ export type { ColumnKeys, FlexProps, FlexSpacing } from './Flex.js';
21
+ export * from './foundationText/Typography/index.js';
22
+ export * from './foundationText/Text/index.js';
23
+ export * from './foundationText/Heading/index.js';
24
+ export * from './foundationText/TextList/index.js';
25
+ export * from './foundationText/StatusLabel/index.js';
26
+ export * from './foundationText/Glimmer/index.js';
27
+ export * from './foundationText/EmptyState/index.js';
28
+ export * from './foundationText/ActivityIndicator/index.js';
29
+ export * from './foundationText/ProgressBar/index.js';
30
+ export * from './foundationText/ProgressIndicator/index.js';
31
+ export { FoundationLocaleProvider } from './foundationText/foundationMessages.js';
32
+ export * from './foundationText/Banner/index.js';
33
+ export * from './foundationText/Card/index.js';
34
+ export * from './foundationText/ActionLabel/index.js';
35
+ export * from './foundationText/ErrorMessageWrapper/index.js';
36
+ export * from './foundationText/ActionItem/index.js';
37
+ export * from './foundationText/IconButton/index.js';
38
+ export * from './foundationText/BottomSheet/index.js';
39
+ export * from './foundationText/Disclosure/index.js';
40
+ export { useIsScreenReaderEnabled } from './useIsScreenReaderEnabled.js';
41
+ export * from './foundationText/ComponentSettingsContext/index.js';
42
+ export * from './foundationText/ButtonGroup/index.js';
43
+ export * from './foundationText/Chip/index.js';
44
+ export * from './foundationText/Toast/index.js';
45
+ export * from './foundationText/FormField/index.js';
46
+ export * from './foundationText/InputFieldWrapper/index.js';
47
+ export * from './foundationText/primitives/HelperText/index.js';
48
+ export * from './legacyTheme.js';
49
+ export { buildThemedStyles } from './foundationText/compatTheme.js';
50
+ export * from './foundationText/FormatFile/index.js';
51
+ export * from './foundationText/ThumbnailList/index.js';
52
+ export { InputEmail, InputNumber, InputPassword, InputSearch } from './NativeTextFields.js';
53
+ export type { InputEmailProps, InputNumberProps, InputPasswordProps, InputSearchProps } from './NativeTextFields.js';
54
+ export * from './foundationText/InputDate/index.js';
55
+ export * from './foundationText/InputPressable/index.js';
56
+ export * from './foundationText/InputTime/index.js';
57
+ export * from './foundationText/Select/index.js';
58
+ export { AutoLink } from './AutoLink.js';
59
+ export type { AutoLinkProps } from './AutoLink.js';
60
+ export { InputCurrency } from './InputCurrency.js';
61
+ export type { InputCurrencyProps } from './InputCurrency.js';
62
+ export * from './foundationText/Form/index.js';
63
+ export * from './foundationText/InputText/context/index.js';
64
+ export { FilterButton } from './foundationText/InputSearch/components/FilterButton.js';
65
+ export { useIsKeyboardHandledByScrollView } from './ContentOverlay.js';
66
+ export { DEFAULT_CURRENCY_SYMBOL } from './foundationText/InputCurrency/constants.js';
67
+ export * from './foundationText/InputCurrency/utils.js';
package/dist/index.js ADDED
@@ -0,0 +1,54 @@
1
+ export { Button } from './Button.js';
2
+ export { Switch } from './Switch.js';
3
+ export { Checkbox, CheckboxGroup } from './Checkbox.js';
4
+ export { InputText } from './InputText.js';
5
+ export { ContentOverlay, OverlayProvider } from './ContentOverlay.js';
6
+ export { ThemeProvider, useTheme } from './theme.js';
7
+ export { Icon, iconNames, isIconName } from './Icon.js';
8
+ export { Content } from './Content.js';
9
+ export { Divider } from './Divider.js';
10
+ export { Flex } from './Flex.js';
11
+ export * from './foundationText/Typography/index.js';
12
+ export * from './foundationText/Text/index.js';
13
+ export * from './foundationText/Heading/index.js';
14
+ export * from './foundationText/TextList/index.js';
15
+ export * from './foundationText/StatusLabel/index.js';
16
+ export * from './foundationText/Glimmer/index.js';
17
+ export * from './foundationText/EmptyState/index.js';
18
+ export * from './foundationText/ActivityIndicator/index.js';
19
+ export * from './foundationText/ProgressBar/index.js';
20
+ export * from './foundationText/ProgressIndicator/index.js';
21
+ export { FoundationLocaleProvider } from './foundationText/foundationMessages.js';
22
+ export * from './foundationText/Banner/index.js';
23
+ export * from './foundationText/Card/index.js';
24
+ export * from './foundationText/ActionLabel/index.js';
25
+ export * from './foundationText/ErrorMessageWrapper/index.js';
26
+ export * from './foundationText/ActionItem/index.js';
27
+ export * from './foundationText/IconButton/index.js';
28
+ export * from './foundationText/BottomSheet/index.js';
29
+ export * from './foundationText/Disclosure/index.js';
30
+ export { useIsScreenReaderEnabled } from './useIsScreenReaderEnabled.js';
31
+ export * from './foundationText/ComponentSettingsContext/index.js';
32
+ export * from './foundationText/ButtonGroup/index.js';
33
+ export * from './foundationText/Chip/index.js';
34
+ export * from './foundationText/Toast/index.js';
35
+ export * from './foundationText/FormField/index.js';
36
+ export * from './foundationText/InputFieldWrapper/index.js';
37
+ export * from './foundationText/primitives/HelperText/index.js';
38
+ export * from './legacyTheme.js';
39
+ export { buildThemedStyles } from './foundationText/compatTheme.js';
40
+ export * from './foundationText/FormatFile/index.js';
41
+ export * from './foundationText/ThumbnailList/index.js';
42
+ export { InputEmail, InputNumber, InputPassword, InputSearch } from './NativeTextFields.js';
43
+ export * from './foundationText/InputDate/index.js';
44
+ export * from './foundationText/InputPressable/index.js';
45
+ export * from './foundationText/InputTime/index.js';
46
+ export * from './foundationText/Select/index.js';
47
+ export { AutoLink } from './AutoLink.js';
48
+ export { InputCurrency } from './InputCurrency.js';
49
+ export * from './foundationText/Form/index.js';
50
+ export * from './foundationText/InputText/context/index.js';
51
+ export { FilterButton } from './foundationText/InputSearch/components/FilterButton.js';
52
+ export { useIsKeyboardHandledByScrollView } from './ContentOverlay.js';
53
+ export { DEFAULT_CURRENCY_SYMBOL } from './foundationText/InputCurrency/constants.js';
54
+ export * from './foundationText/InputCurrency/utils.js';
@@ -0,0 +1,18 @@
1
+ import type { PropsWithChildren } from 'react';
2
+ import type { EffectiveMode, Mode } from '@zj-dynamics/design';
3
+ import type { FoundationTokens } from './foundationTokens.js';
4
+ export type Theme = Mode;
5
+ export type EffectiveTheme = EffectiveMode;
6
+ export interface LegacyThemeContextValue {
7
+ readonly theme: Theme;
8
+ readonly effectiveTheme: EffectiveTheme;
9
+ readonly tokens: FoundationTokens;
10
+ readonly setTheme: (theme: Theme) => void;
11
+ }
12
+ export interface LegacyThemeProviderProps extends PropsWithChildren {
13
+ readonly theme?: Theme;
14
+ readonly onThemeChange?: (theme: Theme) => void;
15
+ readonly dangerouslyOverrideTheme?: EffectiveTheme;
16
+ }
17
+ export declare function LegacyThemeProvider({ children, theme, onThemeChange, dangerouslyOverrideTheme }: LegacyThemeProviderProps): import("react").JSX.Element;
18
+ export declare function useLegacyTheme(): LegacyThemeContextValue;
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import { useFoundationTokens } from './foundationTokens.js';
4
+ import { ThemeProvider, useOptionalThemeScope, useThemeScope } from './theme.js';
5
+ export function LegacyThemeProvider({ children, theme, onThemeChange, dangerouslyOverrideTheme }) {
6
+ const parent = useOptionalThemeScope();
7
+ const [local, setLocal] = useState();
8
+ const selected = theme ?? local ?? parent?.mode ?? 'light';
9
+ function onModeChange(next) {
10
+ onThemeChange?.(next);
11
+ if (theme !== undefined)
12
+ return;
13
+ if (dangerouslyOverrideTheme !== undefined && parent)
14
+ parent.setMode(next);
15
+ else
16
+ setLocal(next);
17
+ }
18
+ return _jsx(ThemeProvider, { mode: selected, onModeChange: onModeChange, ...(dangerouslyOverrideTheme !== undefined && { forcedMode: dangerouslyOverrideTheme }), children: children });
19
+ }
20
+ export function useLegacyTheme() {
21
+ const { mode, effectiveMode, setMode } = useThemeScope();
22
+ return { theme: mode, effectiveTheme: effectiveMode, setTheme: setMode, tokens: useFoundationTokens() };
23
+ }
@@ -0,0 +1,3 @@
1
+ export declare const SheetInputContext: import("react").Context<boolean>;
2
+ export declare const ScrollKeyboardContext: import("react").Context<boolean>;
3
+ export declare function useIsKeyboardHandledByScrollView(): boolean;
@@ -0,0 +1,6 @@
1
+ import { createContext, useContext } from 'react';
2
+ export const SheetInputContext = createContext(false);
3
+ export const ScrollKeyboardContext = createContext(false);
4
+ export function useIsKeyboardHandledByScrollView() {
5
+ return useContext(ScrollKeyboardContext);
6
+ }
@@ -0,0 +1,29 @@
1
+ import type { PropsWithChildren } from 'react';
2
+ import type { BrandTheme, ColorOverrides, EffectiveMode, Mode, SemanticColors } from '@zj-dynamics/design';
3
+ export interface ThemeProviderProps extends PropsWithChildren {
4
+ brand?: BrandTheme;
5
+ mode?: Mode;
6
+ defaultMode?: Mode;
7
+ forcedMode?: EffectiveMode;
8
+ overrides?: ColorOverrides;
9
+ onModeChange?: (mode: Mode) => void;
10
+ }
11
+ export interface NativeTheme {
12
+ brand: BrandTheme;
13
+ mode: Mode;
14
+ effectiveMode: EffectiveMode;
15
+ colors: SemanticColors;
16
+ setMode: (mode: Mode) => void;
17
+ }
18
+ interface Scope extends NativeTheme {
19
+ overrides: ColorOverrides;
20
+ forcedMode: EffectiveMode | undefined;
21
+ }
22
+ export declare function useTheme(): NativeTheme;
23
+ export declare function useOptionalThemeScope(): Scope | null;
24
+ export declare function useThemeScope(): Scope;
25
+ export declare function ThemeSnapshot({ value, children }: PropsWithChildren<{
26
+ value: Scope;
27
+ }>): import("react").JSX.Element;
28
+ export declare function ThemeProvider({ children, brand, mode, defaultMode, forcedMode, overrides, onModeChange }: ThemeProviderProps): import("react").JSX.Element;
29
+ export {};
package/dist/theme.js ADDED
@@ -0,0 +1,42 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { createContext, useContext, useState } from 'react';
3
+ import { useColorScheme } from 'react-native';
4
+ import { defaultBrand, effectiveMode, resolveTheme } from '@zj-dynamics/design';
5
+ const fallback = {
6
+ brand: defaultBrand, mode: 'light', effectiveMode: 'light', colors: resolveTheme(defaultBrand, 'light'),
7
+ setMode() { }, overrides: {}, forcedMode: undefined,
8
+ };
9
+ const ThemeContext = createContext(null);
10
+ export function useTheme() {
11
+ return useContext(ThemeContext) ?? fallback;
12
+ }
13
+ export function useOptionalThemeScope() {
14
+ return useContext(ThemeContext);
15
+ }
16
+ export function useThemeScope() {
17
+ return useOptionalThemeScope() ?? fallback;
18
+ }
19
+ export function ThemeSnapshot({ value, children }) {
20
+ return _jsx(ThemeContext.Provider, { value: value, children: children });
21
+ }
22
+ export function ThemeProvider({ children, brand, mode, defaultMode, forcedMode, overrides, onModeChange }) {
23
+ const parent = useContext(ThemeContext);
24
+ const system = useColorScheme();
25
+ const [localMode, setLocalMode] = useState(defaultMode);
26
+ const selected = mode ?? localMode ?? parent?.mode ?? 'light';
27
+ const activeBrand = brand ?? parent?.brand ?? defaultBrand;
28
+ const activeForce = forcedMode ?? parent?.forcedMode;
29
+ const resolved = activeForce ?? effectiveMode(selected, system === 'dark' ? 'dark' : 'light');
30
+ const scope = { ...(brand === undefined || brand === parent?.brand ? parent?.overrides : undefined), ...overrides };
31
+ function setMode(next) {
32
+ if (mode === undefined && localMode === undefined && parent)
33
+ parent.setMode(next);
34
+ else if (mode === undefined)
35
+ setLocalMode(next);
36
+ onModeChange?.(next);
37
+ }
38
+ return _jsx(ThemeSnapshot, { value: {
39
+ brand: activeBrand, mode: selected, effectiveMode: resolved, colors: resolveTheme(activeBrand, resolved, scope),
40
+ setMode, overrides: scope, forcedMode: activeForce,
41
+ }, children: children });
42
+ }