react-native-system-ui 1.0.5 → 1.0.7

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 (321) hide show
  1. package/README.md +22 -22
  2. package/dist/cjs/components/field/Field.js +1 -1
  3. package/dist/cjs/components/flex/Flex.js +1 -1
  4. package/dist/cjs/components/flex/FlexItem.js +1 -1
  5. package/dist/cjs/components/form/Form.js +1 -1
  6. package/dist/cjs/components/grid/Grid.js +1 -1
  7. package/dist/cjs/components/grid/GridItem.js +1 -1
  8. package/dist/cjs/components/popup/Popup.js +1 -1
  9. package/dist/cjs/components/selector/Selector.js +1 -1
  10. package/dist/cjs/components/toast/Toast.js +1 -1
  11. package/dist/es/components/field/Field.js +1 -1
  12. package/dist/es/components/flex/Flex.js +1 -1
  13. package/dist/es/components/flex/FlexItem.js +1 -1
  14. package/dist/es/components/form/Form.js +1 -1
  15. package/dist/es/components/grid/Grid.js +1 -1
  16. package/dist/es/components/grid/GridItem.js +1 -1
  17. package/dist/es/components/popup/Popup.js +1 -1
  18. package/dist/es/components/selector/Selector.js +1 -1
  19. package/dist/es/components/toast/Toast.js +1 -1
  20. package/dist/types/components/action-sheet/ActionSheet.d.ts +1 -4
  21. package/dist/types/components/action-sheet/index.d.ts +1 -4
  22. package/dist/types/components/action-sheet/tokens.d.ts +1 -4
  23. package/dist/types/components/action-sheet/types.d.ts +1 -87
  24. package/dist/types/components/area/Area.d.ts +1 -4
  25. package/dist/types/components/area/index.d.ts +1 -3
  26. package/dist/types/components/area/tokens.d.ts +1 -7
  27. package/dist/types/components/area/types.d.ts +1 -20
  28. package/dist/types/components/avatar/Avatar.d.ts +1 -7
  29. package/dist/types/components/avatar/index.d.ts +1 -2
  30. package/dist/types/components/avatar/tokens.d.ts +1 -4
  31. package/dist/types/components/avatar/types.d.ts +1 -62
  32. package/dist/types/components/badge/Badge.d.ts +1 -4
  33. package/dist/types/components/badge/index.d.ts +1 -3
  34. package/dist/types/components/badge/tokens.d.ts +1 -2
  35. package/dist/types/components/badge/types.d.ts +1 -57
  36. package/dist/types/components/button/Button.d.ts +1 -5
  37. package/dist/types/components/button/ButtonContext.d.ts +1 -2
  38. package/dist/types/components/button/ButtonGroup.d.ts +1 -23
  39. package/dist/types/components/button/index.d.ts +1 -6
  40. package/dist/types/components/button/tokens.d.ts +1 -2
  41. package/dist/types/components/button/types.d.ts +1 -109
  42. package/dist/types/components/calendar/Calendar.d.ts +1 -4
  43. package/dist/types/components/calendar/index.d.ts +1 -3
  44. package/dist/types/components/calendar/tokens.d.ts +1 -4
  45. package/dist/types/components/calendar/types.d.ts +1 -111
  46. package/dist/types/components/cascader/Cascader.d.ts +1 -4
  47. package/dist/types/components/cascader/index.d.ts +1 -4
  48. package/dist/types/components/cascader/tokens.d.ts +1 -4
  49. package/dist/types/components/cascader/types.d.ts +1 -142
  50. package/dist/types/components/cascader/useCascaderExtend.d.ts +1 -12
  51. package/dist/types/components/cell/Cell.d.ts +1 -4
  52. package/dist/types/components/cell/CellContext.d.ts +1 -7
  53. package/dist/types/components/cell/CellGroup.d.ts +1 -3
  54. package/dist/types/components/cell/index.d.ts +1 -8
  55. package/dist/types/components/cell/tokens.d.ts +1 -4
  56. package/dist/types/components/cell/types.d.ts +1 -112
  57. package/dist/types/components/checkbox/Checkbox.d.ts +1 -5
  58. package/dist/types/components/checkbox/CheckboxContext.d.ts +1 -2
  59. package/dist/types/components/checkbox/CheckboxGroup.d.ts +1 -22
  60. package/dist/types/components/checkbox/index.d.ts +1 -7
  61. package/dist/types/components/checkbox/tokens.d.ts +1 -2
  62. package/dist/types/components/checkbox/types.d.ts +1 -99
  63. package/dist/types/components/circle/Circle.d.ts +1 -5
  64. package/dist/types/components/circle/index.d.ts +1 -3
  65. package/dist/types/components/circle/tokens.d.ts +1 -4
  66. package/dist/types/components/circle/types.d.ts +1 -51
  67. package/dist/types/components/collapse/Collapse.d.ts +1 -43
  68. package/dist/types/components/collapse/index.d.ts +1 -3
  69. package/dist/types/components/collapse/tokens.d.ts +1 -4
  70. package/dist/types/components/collapse/types.d.ts +1 -45
  71. package/dist/types/components/config-provider/ConfigProvider.d.ts +1 -3
  72. package/dist/types/components/config-provider/DirectionContext.d.ts +1 -3
  73. package/dist/types/components/config-provider/LocaleContext.d.ts +1 -3
  74. package/dist/types/components/config-provider/index.d.ts +1 -6
  75. package/dist/types/components/config-provider/locale/en-US.d.ts +1 -106
  76. package/dist/types/components/config-provider/locale/types.d.ts +1 -130
  77. package/dist/types/components/config-provider/locale/zh-CN.d.ts +1 -106
  78. package/dist/types/components/config-provider/tokens.d.ts +1 -3
  79. package/dist/types/components/config-provider/types.d.ts +1 -10
  80. package/dist/types/components/config-provider/useDirection.d.ts +1 -1
  81. package/dist/types/components/config-provider/useLocale.d.ts +1 -1
  82. package/dist/types/components/count-down/CountDown.d.ts +1 -4
  83. package/dist/types/components/count-down/index.d.ts +1 -4
  84. package/dist/types/components/count-down/tokens.d.ts +1 -4
  85. package/dist/types/components/count-down/types.d.ts +1 -29
  86. package/dist/types/components/datetime-picker/DatetimePicker.d.ts +1 -4
  87. package/dist/types/components/datetime-picker/index.d.ts +1 -3
  88. package/dist/types/components/datetime-picker/tokens.d.ts +1 -15
  89. package/dist/types/components/datetime-picker/types.d.ts +1 -38
  90. package/dist/types/components/dialog/Dialog.d.ts +1 -4
  91. package/dist/types/components/dialog/imperative.d.ts +1 -23
  92. package/dist/types/components/dialog/index.d.ts +1 -5
  93. package/dist/types/components/dialog/tokens.d.ts +1 -48
  94. package/dist/types/components/dialog/types.d.ts +1 -70
  95. package/dist/types/components/divider/Divider.d.ts +1 -3
  96. package/dist/types/components/divider/index.d.ts +1 -3
  97. package/dist/types/components/divider/tokens.d.ts +1 -4
  98. package/dist/types/components/divider/types.d.ts +1 -48
  99. package/dist/types/components/empty/Empty.d.ts +1 -3
  100. package/dist/types/components/empty/index.d.ts +1 -3
  101. package/dist/types/components/empty/tokens.d.ts +1 -4
  102. package/dist/types/components/empty/types.d.ts +1 -44
  103. package/dist/types/components/error-boundary/ErrorBoundary.d.ts +1 -6
  104. package/dist/types/components/error-boundary/index.d.ts +1 -2
  105. package/dist/types/components/error-boundary/types.d.ts +1 -18
  106. package/dist/types/components/field/Field.d.ts +1 -4
  107. package/dist/types/components/field/index.d.ts +1 -7
  108. package/dist/types/components/field/tokens.d.ts +1 -131
  109. package/dist/types/components/field/types.d.ts +1 -86
  110. package/dist/types/components/flex/Flex.d.ts +1 -9
  111. package/dist/types/components/flex/FlexContext.d.ts +1 -2
  112. package/dist/types/components/flex/FlexItem.d.ts +1 -3
  113. package/dist/types/components/flex/index.d.ts +1 -8
  114. package/dist/types/components/flex/tokens.d.ts +1 -2
  115. package/dist/types/components/flex/types.d.ts +1 -37
  116. package/dist/types/components/form/Form.d.ts +1 -26
  117. package/dist/types/components/form/FormItem.d.ts +1 -5
  118. package/dist/types/components/form/FormList.d.ts +1 -18
  119. package/dist/types/components/form/index.d.ts +1 -17
  120. package/dist/types/components/form/tokens.d.ts +1 -7
  121. package/dist/types/components/form/types.d.ts +1 -68
  122. package/dist/types/components/grid/Grid.d.ts +1 -18
  123. package/dist/types/components/grid/GridContext.d.ts +1 -2
  124. package/dist/types/components/grid/GridItem.d.ts +1 -3
  125. package/dist/types/components/grid/index.d.ts +1 -5
  126. package/dist/types/components/grid/tokens.d.ts +1 -4
  127. package/dist/types/components/grid/types.d.ts +1 -77
  128. package/dist/types/components/image/Image.d.ts +1 -5
  129. package/dist/types/components/image/index.d.ts +1 -4
  130. package/dist/types/components/image/tokens.d.ts +1 -2
  131. package/dist/types/components/image/types.d.ts +1 -53
  132. package/dist/types/components/image-preview/ImagePreview.d.ts +1 -4
  133. package/dist/types/components/image-preview/imperative.d.ts +1 -5
  134. package/dist/types/components/image-preview/index.d.ts +1 -6
  135. package/dist/types/components/image-preview/tokens.d.ts +1 -27
  136. package/dist/types/components/image-preview/types.d.ts +1 -55
  137. package/dist/types/components/index.d.ts +1 -213
  138. package/dist/types/components/input/Input.d.ts +1 -8
  139. package/dist/types/components/input/index.d.ts +1 -4
  140. package/dist/types/components/input/tokens.d.ts +1 -2
  141. package/dist/types/components/input/types.d.ts +1 -42
  142. package/dist/types/components/loading/Loading.d.ts +1 -3
  143. package/dist/types/components/loading/index.d.ts +1 -3
  144. package/dist/types/components/loading/tokens.d.ts +1 -4
  145. package/dist/types/components/loading/types.d.ts +1 -32
  146. package/dist/types/components/nav-bar/NavBar.d.ts +1 -4
  147. package/dist/types/components/nav-bar/index.d.ts +1 -4
  148. package/dist/types/components/nav-bar/tokens.d.ts +1 -4
  149. package/dist/types/components/nav-bar/types.d.ts +1 -67
  150. package/dist/types/components/notice-bar/NoticeBar.d.ts +1 -3
  151. package/dist/types/components/notice-bar/index.d.ts +1 -3
  152. package/dist/types/components/notice-bar/tokens.d.ts +1 -24
  153. package/dist/types/components/notice-bar/types.d.ts +1 -26
  154. package/dist/types/components/notify/Notify.d.ts +1 -6
  155. package/dist/types/components/notify/imperative.d.ts +1 -22
  156. package/dist/types/components/notify/index.d.ts +1 -15
  157. package/dist/types/components/notify/tokens.d.ts +1 -4
  158. package/dist/types/components/notify/types.d.ts +1 -64
  159. package/dist/types/components/number-keyboard/NumberKeyboard.d.ts +1 -4
  160. package/dist/types/components/number-keyboard/index.d.ts +1 -4
  161. package/dist/types/components/number-keyboard/tokens.d.ts +1 -42
  162. package/dist/types/components/number-keyboard/types.d.ts +1 -35
  163. package/dist/types/components/overlay/Overlay.d.ts +1 -5
  164. package/dist/types/components/overlay/index.d.ts +1 -5
  165. package/dist/types/components/overlay/tokens.d.ts +1 -6
  166. package/dist/types/components/overlay/types.d.ts +1 -13
  167. package/dist/types/components/password-input/PasswordInput.d.ts +1 -4
  168. package/dist/types/components/password-input/index.d.ts +1 -2
  169. package/dist/types/components/password-input/tokens.d.ts +1 -40
  170. package/dist/types/components/password-input/types.d.ts +1 -35
  171. package/dist/types/components/picker/Picker.d.ts +1 -32
  172. package/dist/types/components/picker/index.d.ts +1 -4
  173. package/dist/types/components/picker/tokens.d.ts +1 -39
  174. package/dist/types/components/picker/types.d.ts +1 -73
  175. package/dist/types/components/popup/Popup.d.ts +1 -5
  176. package/dist/types/components/popup/index.d.ts +1 -4
  177. package/dist/types/components/popup/tokens.d.ts +1 -48
  178. package/dist/types/components/popup/types.d.ts +1 -41
  179. package/dist/types/components/portal/Portal.d.ts +1 -14
  180. package/dist/types/components/portal/PortalContext.d.ts +1 -7
  181. package/dist/types/components/portal/PortalHost.d.ts +1 -11
  182. package/dist/types/components/portal/index.d.ts +1 -3
  183. package/dist/types/components/portal/tokens.d.ts +1 -3
  184. package/dist/types/components/portal/types.d.ts +1 -1
  185. package/dist/types/components/progress/Progress.d.ts +1 -8
  186. package/dist/types/components/progress/index.d.ts +1 -4
  187. package/dist/types/components/progress/tokens.d.ts +1 -4
  188. package/dist/types/components/progress/types.d.ts +1 -51
  189. package/dist/types/components/radio/Radio.d.ts +1 -3
  190. package/dist/types/components/radio/RadioContext.d.ts +1 -2
  191. package/dist/types/components/radio/RadioGroup.d.ts +1 -14
  192. package/dist/types/components/radio/index.d.ts +1 -7
  193. package/dist/types/components/radio/tokens.d.ts +1 -2
  194. package/dist/types/components/radio/types.d.ts +1 -95
  195. package/dist/types/components/safe-area-view/SafeAreaView.d.ts +1 -10
  196. package/dist/types/components/safe-area-view/index.d.ts +1 -2
  197. package/dist/types/components/safe-area-view/tokens.d.ts +1 -3
  198. package/dist/types/components/safe-area-view/types.d.ts +1 -1
  199. package/dist/types/components/search/Search.d.ts +1 -4
  200. package/dist/types/components/search/index.d.ts +1 -4
  201. package/dist/types/components/search/tokens.d.ts +1 -41
  202. package/dist/types/components/search/types.d.ts +1 -28
  203. package/dist/types/components/selector/Selector.d.ts +1 -7
  204. package/dist/types/components/selector/index.d.ts +1 -4
  205. package/dist/types/components/selector/tokens.d.ts +1 -2
  206. package/dist/types/components/selector/types.d.ts +1 -74
  207. package/dist/types/components/share-sheet/ShareSheet.d.ts +1 -4
  208. package/dist/types/components/share-sheet/index.d.ts +1 -4
  209. package/dist/types/components/share-sheet/tokens.d.ts +1 -40
  210. package/dist/types/components/share-sheet/types.d.ts +1 -26
  211. package/dist/types/components/sidebar/Sidebar.d.ts +1 -4
  212. package/dist/types/components/sidebar/SidebarContext.d.ts +1 -7
  213. package/dist/types/components/sidebar/SidebarItem.d.ts +1 -4
  214. package/dist/types/components/sidebar/index.d.ts +1 -8
  215. package/dist/types/components/sidebar/tokens.d.ts +1 -4
  216. package/dist/types/components/sidebar/types.d.ts +1 -64
  217. package/dist/types/components/skeleton/Skeleton.d.ts +1 -5
  218. package/dist/types/components/skeleton/index.d.ts +1 -5
  219. package/dist/types/components/skeleton/tokens.d.ts +1 -2
  220. package/dist/types/components/skeleton/types.d.ts +1 -45
  221. package/dist/types/components/slider/Slider.d.ts +1 -4
  222. package/dist/types/components/slider/index.d.ts +1 -3
  223. package/dist/types/components/slider/tokens.d.ts +1 -28
  224. package/dist/types/components/slider/types.d.ts +1 -38
  225. package/dist/types/components/space/Space.d.ts +1 -3
  226. package/dist/types/components/space/index.d.ts +1 -3
  227. package/dist/types/components/space/tokens.d.ts +1 -3
  228. package/dist/types/components/space/types.d.ts +1 -39
  229. package/dist/types/components/stepper/Stepper.d.ts +1 -4
  230. package/dist/types/components/stepper/index.d.ts +1 -4
  231. package/dist/types/components/stepper/tokens.d.ts +1 -46
  232. package/dist/types/components/stepper/types.d.ts +1 -46
  233. package/dist/types/components/swiper/Swiper.d.ts +1 -9
  234. package/dist/types/components/swiper/SwiperItem.d.ts +1 -1
  235. package/dist/types/components/swiper/SwiperPagIndicator.d.ts +1 -36
  236. package/dist/types/components/swiper/index.d.ts +1 -14
  237. package/dist/types/components/swiper/tokens.d.ts +1 -11
  238. package/dist/types/components/swiper/types.d.ts +1 -29
  239. package/dist/types/components/switch/Switch.d.ts +1 -7
  240. package/dist/types/components/switch/index.d.ts +1 -4
  241. package/dist/types/components/switch/tokens.d.ts +1 -2
  242. package/dist/types/components/switch/types.d.ts +1 -33
  243. package/dist/types/components/tabbar/Tabbar.d.ts +1 -4
  244. package/dist/types/components/tabbar/TabbarContext.d.ts +1 -13
  245. package/dist/types/components/tabbar/TabbarItem.d.ts +1 -4
  246. package/dist/types/components/tabbar/index.d.ts +1 -9
  247. package/dist/types/components/tabbar/tokens.d.ts +1 -28
  248. package/dist/types/components/tabbar/types.d.ts +1 -39
  249. package/dist/types/components/tabs/Tabs.d.ts +1 -8
  250. package/dist/types/components/tabs/index.d.ts +1 -10
  251. package/dist/types/components/tabs/tokens.d.ts +1 -96
  252. package/dist/types/components/tabs/types.d.ts +1 -64
  253. package/dist/types/components/tag/Tag.d.ts +1 -3
  254. package/dist/types/components/tag/index.d.ts +1 -3
  255. package/dist/types/components/tag/tokens.d.ts +1 -4
  256. package/dist/types/components/tag/types.d.ts +1 -69
  257. package/dist/types/components/theme.d.ts +1 -112
  258. package/dist/types/components/toast/Toast.d.ts +1 -33
  259. package/dist/types/components/toast/imperative.d.ts +1 -22
  260. package/dist/types/components/toast/index.d.ts +1 -15
  261. package/dist/types/components/toast/tokens.d.ts +1 -29
  262. package/dist/types/components/toast/types.d.ts +1 -1
  263. package/dist/types/components/typography/Typography.d.ts +1 -11
  264. package/dist/types/components/typography/index.d.ts +1 -3
  265. package/dist/types/components/typography/tokens.d.ts +1 -2
  266. package/dist/types/components/typography/types.d.ts +1 -66
  267. package/dist/types/components/water-mark/WaterMark.d.ts +1 -4
  268. package/dist/types/components/water-mark/index.d.ts +1 -5
  269. package/dist/types/components/water-mark/tokens.d.ts +1 -2
  270. package/dist/types/components/water-mark/types.d.ts +1 -58
  271. package/dist/types/design-system/Text.d.ts +1 -3
  272. package/dist/types/design-system/ThemeContext.d.ts +1 -14
  273. package/dist/types/design-system/ThemeProvider.d.ts +1 -14
  274. package/dist/types/design-system/createComponentTokensHook.d.ts +1 -4
  275. package/dist/types/design-system/index.d.ts +1 -11
  276. package/dist/types/design-system/mergeTokensOverride.d.ts +1 -2
  277. package/dist/types/design-system/presets.d.ts +1 -8
  278. package/dist/types/design-system/tokens.d.ts +1 -74
  279. package/dist/types/design-system/useTheme.d.ts +1 -1
  280. package/dist/types/hooks/animation/index.d.ts +1 -3
  281. package/dist/types/hooks/animation/useAnimatedTransition.d.ts +1 -13
  282. package/dist/types/hooks/animation/useReducedMotion.d.ts +1 -3
  283. package/dist/types/hooks/aria/index.d.ts +1 -4
  284. package/dist/types/hooks/aria/useAriaListBox.d.ts +1 -14
  285. package/dist/types/hooks/aria/useAriaOverlay.d.ts +1 -14
  286. package/dist/types/hooks/aria/useAriaPress.d.ts +1 -19
  287. package/dist/types/hooks/aria/useAriaToggle.d.ts +1 -12
  288. package/dist/types/hooks/gesture/index.d.ts +1 -1
  289. package/dist/types/hooks/gesture/useGestureScroll.d.ts +1 -33
  290. package/dist/types/hooks/index.d.ts +1 -9
  291. package/dist/types/hooks/overlay/OverlayStackStore.d.ts +1 -39
  292. package/dist/types/hooks/overlay/index.d.ts +1 -2
  293. package/dist/types/hooks/overlay/useOverlayStack.d.ts +1 -10
  294. package/dist/types/hooks/useControllableValue.d.ts +1 -9
  295. package/dist/types/hooks/useCountDown.d.ts +1 -23
  296. package/dist/types/hooks/useHairline.d.ts +1 -10
  297. package/dist/types/hooks/useSafeAreaPadding.d.ts +1 -13
  298. package/dist/types/index.d.ts +1 -9
  299. package/dist/types/nativewind.d.ts +1 -4
  300. package/dist/types/platform/animation.d.ts +1 -9
  301. package/dist/types/platform/history.d.ts +1 -1
  302. package/dist/types/platform/index.d.ts +1 -5
  303. package/dist/types/platform/measure.d.ts +1 -7
  304. package/dist/types/platform/runtime.d.ts +1 -3
  305. package/dist/types/platform/scrollLock.d.ts +1 -2
  306. package/dist/types/types.d.ts +1 -4
  307. package/dist/types/utils/array.d.ts +1 -1
  308. package/dist/types/utils/color.d.ts +1 -3
  309. package/dist/types/utils/compare.d.ts +1 -2
  310. package/dist/types/utils/createPlatformShadow.d.ts +1 -11
  311. package/dist/types/utils/date.d.ts +1 -13
  312. package/dist/types/utils/deepMerge.d.ts +1 -3
  313. package/dist/types/utils/hairline.d.ts +1 -15
  314. package/dist/types/utils/index.d.ts +1 -13
  315. package/dist/types/utils/number.d.ts +1 -11
  316. package/dist/types/utils/promise.d.ts +1 -1
  317. package/dist/types/utils/render.d.ts +1 -5
  318. package/dist/types/utils/rtl.d.ts +1 -5
  319. package/dist/types/utils/string.d.ts +1 -3
  320. package/dist/types/utils/validate.d.ts +1 -13
  321. package/package.json +142 -149
@@ -1,4 +1 @@
1
- import { Progress, ProgressFilledTrack } from './Progress';
2
- export type { ProgressProps } from './types';
3
- export { ProgressFilledTrack };
4
- export default Progress;
1
+ import{Progress,ProgressFilledTrack}from'./Progress';export type{ProgressProps}from'./types';export{ProgressFilledTrack};export default Progress;
@@ -1,4 +1 @@
1
- import { type Foundations } from '../../design-system/tokens';
2
- import type { ProgressTokens } from './types';
3
- export declare const createProgressTokens: (foundations: Foundations) => ProgressTokens;
4
- export declare const useProgressTokens: (overrides?: import("../..").DeepPartial<ProgressTokens> | undefined) => ProgressTokens;
1
+ import{type Foundations}from'../../design-system/tokens';import type{ProgressTokens}from'./types';export declare const createProgressTokens:(foundations:Foundations)=>ProgressTokens;export declare const useProgressTokens:(overrides?:import("../..").DeepPartial<ProgressTokens>|undefined)=>ProgressTokens;
@@ -1,51 +1 @@
1
- import type React from 'react';
2
- import type { StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
3
- import type { DeepPartial } from '../../types';
4
- export interface ProgressTokens {
5
- defaults: {
6
- percentage: number;
7
- inactive: boolean;
8
- showPivot: boolean;
9
- transition: boolean;
10
- animationDuration: number;
11
- };
12
- layout: {
13
- track: ViewStyle;
14
- indicator: ViewStyle;
15
- pivot: ViewStyle;
16
- pivotText: TextStyle;
17
- };
18
- colors: {
19
- track: string;
20
- indicator: string;
21
- pivotText: string;
22
- };
23
- typography: {
24
- fontFamily: string;
25
- pivotFontSize: number;
26
- };
27
- sizing: {
28
- height: number;
29
- pivotPaddingHorizontal: number;
30
- pivotPaddingVertical: number;
31
- };
32
- }
33
- export interface ProgressProps extends ViewProps {
34
- percentage?: number | string;
35
- strokeWidth?: number | string;
36
- color?: string;
37
- trackColor?: string;
38
- pivotText?: React.ReactNode;
39
- pivotColor?: string;
40
- textColor?: string;
41
- inactive?: boolean;
42
- showPivot?: boolean;
43
- orientation?: 'horizontal' | 'vertical';
44
- animated?: boolean;
45
- transition?: boolean;
46
- animationDuration?: number;
47
- tokensOverride?: DeepPartial<ProgressTokens>;
48
- style?: StyleProp<ViewStyle>;
49
- pivotStyle?: StyleProp<TextStyle>;
50
- indicatorStyle?: StyleProp<ViewStyle>;
51
- }
1
+ import type React from'react';import type{StyleProp,TextStyle,ViewProps,ViewStyle}from'react-native';import type{DeepPartial}from'../../types';export interface ProgressTokens{defaults:{percentage:number;inactive:boolean;showPivot:boolean;transition:boolean;animationDuration:number;};layout:{track:ViewStyle;indicator:ViewStyle;pivot:ViewStyle;pivotText:TextStyle;};colors:{track:string;indicator:string;pivotText:string;};typography:{fontFamily:string;pivotFontSize:number;};sizing:{height:number;pivotPaddingHorizontal:number;pivotPaddingVertical:number;};}export interface ProgressProps extends ViewProps{percentage?:number|string;strokeWidth?:number|string;color?:string;trackColor?:string;pivotText?:React.ReactNode;pivotColor?:string;textColor?:string;inactive?:boolean;showPivot?:boolean;orientation?:'horizontal'|'vertical';animated?:boolean;transition?:boolean;animationDuration?:number;tokensOverride?:DeepPartial<ProgressTokens>;style?:StyleProp<ViewStyle>;pivotStyle?:StyleProp<TextStyle>;indicatorStyle?:StyleProp<ViewStyle>;}
@@ -1,3 +1 @@
1
- import React from 'react';
2
- import type { RadioProps } from './types';
3
- export declare const Radio: React.MemoExoticComponent<(props: RadioProps) => React.JSX.Element>;
1
+ import React from'react';import type{RadioProps}from'./types';export declare const Radio:React.MemoExoticComponent<(props:RadioProps)=>React.JSX.Element>;
@@ -1,2 +1 @@
1
- export type { RadioGroupContextValue } from './RadioGroup';
2
- export { RadioGroupContext } from './RadioGroup';
1
+ export type{RadioGroupContextValue}from'./RadioGroup';export{RadioGroupContext}from'./RadioGroup';
@@ -1,14 +1 @@
1
- import React from 'react';
2
- import { type RadioGroupState } from '@react-stately/radio';
3
- import type { RadioGroupDirection, RadioGroupProps, RadioValue } from './types';
4
- export interface RadioGroupContextValue {
5
- state: RadioGroupState;
6
- direction: RadioGroupDirection;
7
- iconSize?: number | string;
8
- checkedColor?: string;
9
- labelDisabled?: boolean;
10
- registerValue: (key: string, raw: RadioValue) => void;
11
- unregisterValue: (key: string) => void;
12
- }
13
- export declare const RadioGroupContext: React.Context<RadioGroupContextValue | null>;
14
- export declare const RadioGroup: React.NamedExoticComponent<RadioGroupProps>;
1
+ import React from'react';import{type RadioGroupState}from'@react-stately/radio';import type{RadioGroupDirection,RadioGroupProps,RadioValue}from'./types';export interface RadioGroupContextValue{state:RadioGroupState;direction:RadioGroupDirection;iconSize?:number|string;checkedColor?:string;labelDisabled?:boolean;registerValue:(key:string,raw:RadioValue)=>void;unregisterValue:(key:string)=>void;}export declare const RadioGroupContext:React.Context<RadioGroupContextValue|null>;export declare const RadioGroup:React.NamedExoticComponent<RadioGroupProps>;
@@ -1,7 +1 @@
1
- import { Radio as RadioBase } from './Radio';
2
- import { RadioGroup } from './RadioGroup';
3
- declare const Radio: typeof RadioBase & {
4
- Group: typeof RadioGroup;
5
- };
6
- export { Radio, RadioGroup };
7
- export type { RadioProps, RadioGroupProps } from './types';
1
+ import{Radio as RadioBase}from'./Radio';import{RadioGroup}from'./RadioGroup';declare const Radio:typeof RadioBase&{Group:typeof RadioGroup;};export{Radio,RadioGroup};export type{RadioProps,RadioGroupProps}from'./types';
@@ -1,2 +1 @@
1
- import type { RadioTokens } from './types';
2
- export declare const useRadioTokens: (overrides?: import("../..").DeepPartial<RadioTokens> | undefined) => RadioTokens;
1
+ import type{RadioTokens}from'./types';export declare const useRadioTokens:(overrides?:import("../..").DeepPartial<RadioTokens>|undefined)=>RadioTokens;
@@ -1,95 +1 @@
1
- import type React from 'react';
2
- import type { GestureResponderEvent, StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
3
- import type { DeepPartial } from '../../types';
4
- export type RadioValue = string | number;
5
- export type RadioLabelPosition = 'left' | 'right';
6
- export type RadioGroupDirection = 'horizontal' | 'vertical';
7
- export type RadioShape = 'round' | 'square';
8
- export type RadioIconRender = (params: {
9
- checked: boolean;
10
- disabled: boolean;
11
- }) => React.ReactNode;
12
- export interface RadioTokens {
13
- defaults: {
14
- iconSize: number;
15
- labelPosition: RadioLabelPosition;
16
- shape: RadioShape;
17
- labelDisabled: boolean;
18
- groupDisabled: boolean;
19
- groupDirection: RadioGroupDirection;
20
- };
21
- layout: {
22
- container: ViewStyle;
23
- iconWrapper: ViewStyle;
24
- labelWrapper: ViewStyle;
25
- icon: ViewStyle;
26
- label: TextStyle;
27
- groupHorizontal: ViewStyle;
28
- groupVertical: ViewStyle;
29
- groupItem: ViewStyle;
30
- };
31
- colors: {
32
- border: string;
33
- background: string;
34
- checkedBackground: string;
35
- disabledBorder: string;
36
- disabledBackground: string;
37
- checkmark: string;
38
- label: string;
39
- labelDisabled: string;
40
- };
41
- typography: {
42
- fontSize: number;
43
- fontFamily: string;
44
- fontWeight: NonNullable<TextStyle['fontWeight']>;
45
- lineHeightMultiplier: number;
46
- };
47
- sizing: {
48
- dotScale: number;
49
- };
50
- radii: {
51
- round: number;
52
- square: number;
53
- };
54
- borders: {
55
- width: number;
56
- };
57
- spacing: {
58
- gap: number;
59
- groupGap: number;
60
- };
61
- }
62
- export interface RadioProps extends Omit<ViewProps, 'children'> {
63
- name?: RadioValue;
64
- value?: RadioValue;
65
- disabled?: boolean;
66
- checked?: boolean;
67
- defaultChecked?: boolean;
68
- iconSize?: number | string;
69
- checkedColor?: string;
70
- shape?: RadioShape;
71
- iconRender?: RadioIconRender;
72
- labelPosition?: RadioLabelPosition;
73
- labelDisabled?: boolean;
74
- style?: StyleProp<ViewStyle>;
75
- labelStyle?: StyleProp<TextStyle>;
76
- children?: React.ReactNode;
77
- tokensOverride?: DeepPartial<RadioTokens>;
78
- onClick?: (event: GestureResponderEvent) => void;
79
- onChange?: (checked: boolean) => void;
80
- 'aria-label'?: string;
81
- }
82
- export interface RadioGroupProps extends ViewProps {
83
- value?: RadioValue;
84
- defaultValue?: RadioValue;
85
- onChange?: (value: RadioValue) => void;
86
- disabled?: boolean;
87
- direction?: RadioGroupDirection;
88
- iconSize?: number | string;
89
- checkedColor?: string;
90
- labelDisabled?: boolean;
91
- gap?: number;
92
- name?: string;
93
- children?: React.ReactNode;
94
- tokensOverride?: DeepPartial<RadioTokens>;
95
- }
1
+ import type React from'react';import type{GestureResponderEvent,StyleProp,TextStyle,ViewProps,ViewStyle}from'react-native';import type{DeepPartial}from'../../types';export type RadioValue=string|number;export type RadioLabelPosition='left'|'right';export type RadioGroupDirection='horizontal'|'vertical';export type RadioShape='round'|'square';export type RadioIconRender=(params:{checked:boolean;disabled:boolean;})=>React.ReactNode;export interface RadioTokens{defaults:{iconSize:number;labelPosition:RadioLabelPosition;shape:RadioShape;labelDisabled:boolean;groupDisabled:boolean;groupDirection:RadioGroupDirection;};layout:{container:ViewStyle;iconWrapper:ViewStyle;labelWrapper:ViewStyle;icon:ViewStyle;label:TextStyle;groupHorizontal:ViewStyle;groupVertical:ViewStyle;groupItem:ViewStyle;};colors:{border:string;background:string;checkedBackground:string;disabledBorder:string;disabledBackground:string;checkmark:string;label:string;labelDisabled:string;};typography:{fontSize:number;fontFamily:string;fontWeight:NonNullable<TextStyle['fontWeight']>;lineHeightMultiplier:number;};sizing:{dotScale:number;};radii:{round:number;square:number;};borders:{width:number;};spacing:{gap:number;groupGap:number;};}export interface RadioProps extends Omit<ViewProps,'children'>{name?:RadioValue;value?:RadioValue;disabled?:boolean;checked?:boolean;defaultChecked?:boolean;iconSize?:number|string;checkedColor?:string;shape?:RadioShape;iconRender?:RadioIconRender;labelPosition?:RadioLabelPosition;labelDisabled?:boolean;style?:StyleProp<ViewStyle>;labelStyle?:StyleProp<TextStyle>;children?:React.ReactNode;tokensOverride?:DeepPartial<RadioTokens>;onClick?:(event:GestureResponderEvent)=>void;onChange?:(checked:boolean)=>void;'aria-label'?:string;}export interface RadioGroupProps extends ViewProps{value?:RadioValue;defaultValue?:RadioValue;onChange?:(value:RadioValue)=>void;disabled?:boolean;direction?:RadioGroupDirection;iconSize?:number|string;checkedColor?:string;labelDisabled?:boolean;gap?:number;name?:string;children?:React.ReactNode;tokensOverride?:DeepPartial<RadioTokens>;}
@@ -1,10 +1 @@
1
- import React from 'react';
2
- import { type LayoutChangeEvent, type StyleProp, type ViewStyle } from 'react-native';
3
- export interface SafeAreaViewProps {
4
- edge?: 'top' | 'bottom';
5
- style?: StyleProp<ViewStyle>;
6
- children?: React.ReactNode;
7
- onLayout?: (event: LayoutChangeEvent) => void;
8
- pointerEvents?: 'box-none' | 'none' | 'box-only' | 'auto';
9
- }
10
- export declare const SafeAreaView: React.NamedExoticComponent<SafeAreaViewProps>;
1
+ import React from'react';import{type LayoutChangeEvent,type StyleProp,type ViewStyle}from'react-native';export interface SafeAreaViewProps{edge?:'top'|'bottom';style?:StyleProp<ViewStyle>;children?:React.ReactNode;onLayout?:(event:LayoutChangeEvent)=>void;pointerEvents?:'box-none'|'none'|'box-only'|'auto';}export declare const SafeAreaView:React.NamedExoticComponent<SafeAreaViewProps>;
@@ -1,2 +1 @@
1
- export { SafeAreaView } from './SafeAreaView';
2
- export type { SafeAreaViewProps } from './SafeAreaView';
1
+ export{SafeAreaView}from'./SafeAreaView';export type{SafeAreaViewProps}from'./SafeAreaView';
@@ -1,3 +1 @@
1
- export interface SafeAreaViewTokens {
2
- }
3
- export declare const useSafeAreaViewTokens: (overrides?: import("../..").DeepPartial<SafeAreaViewTokens> | undefined) => SafeAreaViewTokens;
1
+ export interface SafeAreaViewTokens{}export declare const useSafeAreaViewTokens:(overrides?:import("../..").DeepPartial<SafeAreaViewTokens>|undefined)=>SafeAreaViewTokens;
@@ -1 +1 @@
1
- export type { SafeAreaViewProps } from './SafeAreaView';
1
+ export type{SafeAreaViewProps}from'./SafeAreaView';
@@ -1,4 +1 @@
1
- import React from 'react';
2
- import type { SearchProps, SearchRef } from './types';
3
- export declare const Search: React.NamedExoticComponent<SearchProps & React.RefAttributes<SearchRef>>;
4
- export default Search;
1
+ import React from'react';import type{SearchProps,SearchRef}from'./types';export declare const Search:React.NamedExoticComponent<SearchProps&React.RefAttributes<SearchRef>>;export default Search;
@@ -1,4 +1 @@
1
- import Search from './Search';
2
- export default Search;
3
- export { Search };
4
- export type { SearchProps, SearchRef, SearchShape } from './types';
1
+ import Search from'./Search';export default Search;export{Search};export type{SearchProps,SearchRef,SearchShape}from'./types';
@@ -1,41 +1 @@
1
- import type { TextStyle } from 'react-native';
2
- import type { SearchShape } from './types';
3
- export interface SearchTokens {
4
- defaults: {
5
- shape: SearchShape;
6
- clearTrigger: 'always' | 'focus';
7
- };
8
- colors: {
9
- background: string;
10
- contentBackground: string;
11
- label: string;
12
- action: string;
13
- icon: string;
14
- };
15
- spacing: {
16
- paddingHorizontal: number;
17
- paddingVertical: number;
18
- labelGap: number;
19
- actionGap: number;
20
- contentPaddingHorizontal: number;
21
- contentPaddingVertical: number;
22
- none: number;
23
- };
24
- radius: {
25
- square: number;
26
- round: number;
27
- };
28
- typography: {
29
- label: number;
30
- labelWeight: NonNullable<TextStyle['fontWeight']>;
31
- action: number;
32
- actionWeight: NonNullable<TextStyle['fontWeight']>;
33
- };
34
- opacity: {
35
- actionPressed: number;
36
- };
37
- icon: {
38
- size: number;
39
- };
40
- }
41
- export declare const useSearchTokens: (overrides?: import("../..").DeepPartial<SearchTokens> | undefined) => SearchTokens;
1
+ import type{TextStyle}from'react-native';import type{SearchShape}from'./types';export interface SearchTokens{defaults:{shape:SearchShape;clearTrigger:'always'|'focus';};colors:{background:string;contentBackground:string;label:string;action:string;icon:string;};spacing:{paddingHorizontal:number;paddingVertical:number;labelGap:number;actionGap:number;contentPaddingHorizontal:number;contentPaddingVertical:number;none:number;};radius:{square:number;round:number;};typography:{label:number;labelWeight:NonNullable<TextStyle['fontWeight']>;action:number;actionWeight:NonNullable<TextStyle['fontWeight']>;};opacity:{actionPressed:number;};icon:{size:number;};}export declare const useSearchTokens:(overrides?:import("../..").DeepPartial<SearchTokens>|undefined)=>SearchTokens;
@@ -1,28 +1 @@
1
- import type React from 'react';
2
- import type { NativeSyntheticEvent, StyleProp, TextInputSubmitEditingEventData, ViewStyle } from 'react-native';
3
- import type { DeepPartial } from '../../types';
4
- import type { FieldInputAlign, FieldProps } from '../field/types';
5
- import type { SearchTokens } from './tokens';
6
- export type SearchShape = 'square' | 'round';
7
- export interface SearchProps extends Omit<FieldProps, 'style' | 'contentStyle' | 'label' | 'labelStyle' | 'labelWidth' | 'labelAlign' | 'required' | 'colon' | 'intro' | 'tooltip' | 'description' | 'border' | 'size' | 'center' | 'controlAlign' | 'clickable' | 'isLink' | 'arrowDirection' | 'prefix' | 'suffix' | 'button' | 'extra' | 'rows' | 'autosize' | 'autoSize' | 'showWordLimit' | 'type' | 'tokensOverride'> {
8
- label?: React.ReactNode;
9
- style?: StyleProp<ViewStyle>;
10
- fieldStyle?: FieldProps['style'];
11
- fieldContentStyle?: FieldProps['contentStyle'];
12
- actionText?: React.ReactNode;
13
- action?: React.ReactNode;
14
- showAction?: boolean;
15
- shape?: SearchShape;
16
- background?: string;
17
- tokensOverride?: DeepPartial<SearchTokens>;
18
- align?: FieldInputAlign;
19
- onChange?: (value: string) => void;
20
- onSearch?: (value: string) => void;
21
- onCancel?: () => void;
22
- onSubmitEditing?: (event: NativeSyntheticEvent<TextInputSubmitEditingEventData>) => void;
23
- }
24
- export interface SearchRef {
25
- focus: () => void;
26
- blur: () => void;
27
- clear: () => void;
28
- }
1
+ import type React from'react';import type{NativeSyntheticEvent,StyleProp,TextInputSubmitEditingEventData,ViewStyle}from'react-native';import type{DeepPartial}from'../../types';import type{FieldInputAlign,FieldProps}from'../field/types';import type{SearchTokens}from'./tokens';export type SearchShape='square'|'round';export interface SearchProps extends Omit<FieldProps,'style'|'contentStyle'|'label'|'labelStyle'|'labelWidth'|'labelAlign'|'required'|'colon'|'intro'|'tooltip'|'description'|'border'|'size'|'center'|'controlAlign'|'clickable'|'isLink'|'arrowDirection'|'prefix'|'suffix'|'button'|'extra'|'rows'|'autosize'|'autoSize'|'showWordLimit'|'type'|'tokensOverride'>{label?:React.ReactNode;style?:StyleProp<ViewStyle>;fieldStyle?:FieldProps['style'];fieldContentStyle?:FieldProps['contentStyle'];actionText?:React.ReactNode;action?:React.ReactNode;showAction?:boolean;shape?:SearchShape;background?:string;tokensOverride?:DeepPartial<SearchTokens>;align?:FieldInputAlign;onChange?:(value:string)=>void;onSearch?:(value:string)=>void;onCancel?:()=>void;onSubmitEditing?:(event:NativeSyntheticEvent<TextInputSubmitEditingEventData>)=>void;}export interface SearchRef{focus:()=>void;blur:()=>void;clear:()=>void;}
@@ -1,7 +1 @@
1
- import React from 'react';
2
- import type { SelectorProps, SelectorValue } from './types';
3
- type SelectorComponent = (<V extends SelectorValue>(props: SelectorProps<V>) => React.ReactElement) & {
4
- displayName?: string;
5
- };
6
- export declare const Selector: SelectorComponent;
7
- export default Selector;
1
+ import React from'react';import type{SelectorProps,SelectorValue}from'./types';type SelectorComponent=(<V extends SelectorValue>(props:SelectorProps<V>)=>React.ReactElement)&{displayName?:string;};export declare const Selector:SelectorComponent;export default Selector;
@@ -1,4 +1 @@
1
- import Selector from './Selector';
2
- export default Selector;
3
- export { Selector };
4
- export type { SelectorProps, SelectorOption, SelectorValue } from './types';
1
+ import Selector from'./Selector';export default Selector;export{Selector};export type{SelectorProps,SelectorOption,SelectorValue}from'./types';
@@ -1,2 +1 @@
1
- import type { SelectorTokens } from './types';
2
- export declare const useSelectorTokens: (overrides?: import("../..").DeepPartial<SelectorTokens> | undefined) => SelectorTokens;
1
+ import type{SelectorTokens}from'./types';export declare const useSelectorTokens:(overrides?:import("../..").DeepPartial<SelectorTokens>|undefined)=>SelectorTokens;
@@ -1,74 +1 @@
1
- import type React from 'react';
2
- import type { StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
3
- import type { DeepPartial } from '../../types';
4
- export type SelectorValue = string | number;
5
- export interface SelectorOption<V extends SelectorValue> {
6
- label: React.ReactNode;
7
- description?: React.ReactNode;
8
- value: V;
9
- disabled?: boolean;
10
- }
11
- export interface SelectorChangeExtend<V extends SelectorValue> {
12
- items: SelectorOption<V>[];
13
- }
14
- export interface SelectorTokens {
15
- defaults: {
16
- columns: number;
17
- multiple: boolean;
18
- showCheckMark: boolean;
19
- disabled: boolean;
20
- };
21
- layout: {
22
- container: ViewStyle;
23
- pressable: ViewStyle;
24
- item: ViewStyle;
25
- label: TextStyle;
26
- description: TextStyle;
27
- checkMark: TextStyle;
28
- checkMarkTriangle: ViewStyle;
29
- };
30
- colors: {
31
- border: string;
32
- borderActive: string;
33
- background: string;
34
- backgroundActive: string;
35
- text: string;
36
- textActive: string;
37
- description: string;
38
- disabledText: string;
39
- check: string;
40
- checkForeground: string;
41
- };
42
- typography: {
43
- fontSize: number;
44
- descriptionSize: number;
45
- fontFamily: string;
46
- fontWeight: NonNullable<TextStyle['fontWeight']>;
47
- };
48
- radii: {
49
- item: number;
50
- };
51
- spacing: {
52
- gap: number;
53
- paddingVertical: number;
54
- paddingHorizontal: number;
55
- descriptionMarginTop: number;
56
- };
57
- states: {
58
- disabledOpacity: number;
59
- };
60
- }
61
- export interface SelectorProps<V extends SelectorValue = SelectorValue> extends ViewProps {
62
- options: SelectorOption<V>[];
63
- columns?: number;
64
- multiple?: boolean;
65
- disabled?: boolean;
66
- defaultValue?: V[];
67
- value?: V[];
68
- showCheckMark?: boolean;
69
- onChange?: (value: V[], extend: SelectorChangeExtend<V>) => void;
70
- itemStyle?: StyleProp<ViewStyle>;
71
- labelStyle?: StyleProp<TextStyle>;
72
- descriptionStyle?: StyleProp<TextStyle>;
73
- tokensOverride?: DeepPartial<SelectorTokens>;
74
- }
1
+ import type React from'react';import type{StyleProp,TextStyle,ViewProps,ViewStyle}from'react-native';import type{DeepPartial}from'../../types';export type SelectorValue=string|number;export interface SelectorOption<V extends SelectorValue>{label:React.ReactNode;description?:React.ReactNode;value:V;disabled?:boolean;}export interface SelectorChangeExtend<V extends SelectorValue>{items:SelectorOption<V>[];}export interface SelectorTokens{defaults:{columns:number;multiple:boolean;showCheckMark:boolean;disabled:boolean;};layout:{container:ViewStyle;pressable:ViewStyle;item:ViewStyle;label:TextStyle;description:TextStyle;checkMark:TextStyle;checkMarkTriangle:ViewStyle;};colors:{border:string;borderActive:string;background:string;backgroundActive:string;text:string;textActive:string;description:string;disabledText:string;check:string;checkForeground:string;};typography:{fontSize:number;descriptionSize:number;fontFamily:string;fontWeight:NonNullable<TextStyle['fontWeight']>;};radii:{item:number;};spacing:{gap:number;paddingVertical:number;paddingHorizontal:number;descriptionMarginTop:number;};states:{disabledOpacity:number;};}export interface SelectorProps<V extends SelectorValue=SelectorValue>extends ViewProps{options:SelectorOption<V>[];columns?:number;multiple?:boolean;disabled?:boolean;defaultValue?:V[];value?:V[];showCheckMark?:boolean;onChange?:(value:V[],extend:SelectorChangeExtend<V>)=>void;itemStyle?:StyleProp<ViewStyle>;labelStyle?:StyleProp<TextStyle>;descriptionStyle?:StyleProp<TextStyle>;tokensOverride?:DeepPartial<SelectorTokens>;}
@@ -1,4 +1 @@
1
- import React from 'react';
2
- import type { ShareSheetProps } from './types';
3
- declare const ShareSheet: React.NamedExoticComponent<ShareSheetProps>;
4
- export default ShareSheet;
1
+ import React from'react';import type{ShareSheetProps}from'./types';declare const ShareSheet:React.NamedExoticComponent<ShareSheetProps>;export default ShareSheet;
@@ -1,4 +1 @@
1
- import ShareSheet from './ShareSheet';
2
- export type { ShareSheetProps, ShareSheetOption, ShareSheetOptions } from './types';
3
- export { useShareSheetTokens } from './tokens';
4
- export default ShareSheet;
1
+ import ShareSheet from'./ShareSheet';export type{ShareSheetProps,ShareSheetOption,ShareSheetOptions}from'./types';export{useShareSheetTokens}from'./tokens';export default ShareSheet;
@@ -1,40 +1 @@
1
- export interface ShareSheetTokens {
2
- colors: {
3
- background: string;
4
- title: string;
5
- description: string;
6
- option: string;
7
- optionDesc: string;
8
- border: string;
9
- divider: string;
10
- };
11
- spacing: {
12
- horizontal: number;
13
- vertical: number;
14
- gap: number;
15
- popupPadding: number;
16
- headerPaddingTop: number;
17
- headerPaddingHorizontal: number;
18
- headerPaddingBottom: number;
19
- titleMarginTop: number;
20
- descriptionMarginTop: number;
21
- nodeMarginTop: number;
22
- iconMarginHorizontal: number;
23
- optionTextPaddingHorizontal: number;
24
- optionDescPaddingHorizontal: number;
25
- cancelPaddingVertical: number;
26
- cancelMarginTop: number;
27
- };
28
- sizing: {
29
- icon: number;
30
- };
31
- typography: {
32
- fontFamily: string;
33
- title: number;
34
- description: number;
35
- option: number;
36
- optionDesc: number;
37
- cancel: number;
38
- };
39
- }
40
- export declare const useShareSheetTokens: (overrides?: import("../..").DeepPartial<ShareSheetTokens> | undefined) => ShareSheetTokens;
1
+ export interface ShareSheetTokens{colors:{background:string;title:string;description:string;option:string;optionDesc:string;border:string;divider:string;};spacing:{horizontal:number;vertical:number;gap:number;popupPadding:number;headerPaddingTop:number;headerPaddingHorizontal:number;headerPaddingBottom:number;titleMarginTop:number;descriptionMarginTop:number;nodeMarginTop:number;iconMarginHorizontal:number;optionTextPaddingHorizontal:number;optionDescPaddingHorizontal:number;cancelPaddingVertical:number;cancelMarginTop:number;};sizing:{icon:number;};typography:{fontFamily:string;title:number;description:number;option:number;optionDesc:number;cancel:number;};}export declare const useShareSheetTokens:(overrides?:import("../..").DeepPartial<ShareSheetTokens>|undefined)=>ShareSheetTokens;
@@ -1,26 +1 @@
1
- import type * as React from 'react';
2
- import type { DeepPartial } from '../../types';
3
- import type { PopupProps } from '../popup/Popup';
4
- import type { ShareSheetTokens } from './tokens';
5
- export interface ShareSheetOption {
6
- key?: React.Key;
7
- name: React.ReactNode;
8
- icon: React.ReactNode;
9
- description?: React.ReactNode;
10
- onPress?: (option: ShareSheetOption) => void;
11
- }
12
- export type ShareSheetOptions = ShareSheetOption[] | ShareSheetOption[][];
13
- export interface ShareSheetProps extends Omit<PopupProps, 'children' | 'tokensOverride'> {
14
- visible: boolean;
15
- title?: React.ReactNode;
16
- description?: React.ReactNode;
17
- cancelText?: React.ReactNode;
18
- options?: ShareSheetOptions;
19
- columns?: number;
20
- closeOnSelect?: boolean;
21
- safeAreaInsetBottom?: boolean;
22
- children?: React.ReactNode;
23
- tokensOverride?: DeepPartial<ShareSheetTokens>;
24
- onSelect?: (option: ShareSheetOption, index: number) => void;
25
- onCancel?: () => void;
26
- }
1
+ import type*as React from'react';import type{DeepPartial}from'../../types';import type{PopupProps}from'../popup/Popup';import type{ShareSheetTokens}from'./tokens';export interface ShareSheetOption{key?:React.Key;name:React.ReactNode;icon:React.ReactNode;description?:React.ReactNode;onPress?:(option:ShareSheetOption)=>void;}export type ShareSheetOptions=ShareSheetOption[]|ShareSheetOption[][];export interface ShareSheetProps extends Omit<PopupProps,'children'|'tokensOverride'>{visible:boolean;title?:React.ReactNode;description?:React.ReactNode;cancelText?:React.ReactNode;options?:ShareSheetOptions;columns?:number;closeOnSelect?:boolean;safeAreaInsetBottom?:boolean;children?:React.ReactNode;tokensOverride?:DeepPartial<ShareSheetTokens>;onSelect?:(option:ShareSheetOption,index:number)=>void;onCancel?:()=>void;}
@@ -1,4 +1 @@
1
- import React from 'react';
2
- import type { SidebarProps } from './types';
3
- declare const SidebarBase: React.NamedExoticComponent<SidebarProps>;
4
- export default SidebarBase;
1
+ import React from'react';import type{SidebarProps}from'./types';declare const SidebarBase:React.NamedExoticComponent<SidebarProps>;export default SidebarBase;
@@ -1,7 +1 @@
1
- import React from 'react';
2
- export interface SidebarContextValue {
3
- activeIndex: number;
4
- onSelect: (index: number) => void;
5
- }
6
- export declare const SidebarContext: React.Context<SidebarContextValue | null>;
7
- export declare const useSidebarContext: () => SidebarContextValue | null;
1
+ import React from'react';export interface SidebarContextValue{activeIndex:number;onSelect:(index:number)=>void;}export declare const SidebarContext:React.Context<SidebarContextValue|null>;export declare const useSidebarContext:()=>SidebarContextValue|null;
@@ -1,4 +1 @@
1
- import React from 'react';
2
- import type { SidebarItemProps } from './types';
3
- declare const SidebarItem: React.NamedExoticComponent<SidebarItemProps>;
4
- export default SidebarItem;
1
+ import React from'react';import type{SidebarItemProps}from'./types';declare const SidebarItem:React.NamedExoticComponent<SidebarItemProps>;export default SidebarItem;
@@ -1,8 +1 @@
1
- import SidebarItem from './SidebarItem';
2
- export type { SidebarProps, SidebarItemProps } from './types';
3
- export { useSidebarTokens } from './tokens';
4
- declare const Sidebar: import("react").NamedExoticComponent<import("./types").SidebarProps> & {
5
- Item: import("react").NamedExoticComponent<import("./types").SidebarItemProps>;
6
- };
7
- export { SidebarItem };
8
- export default Sidebar;
1
+ import SidebarItem from'./SidebarItem';export type{SidebarProps,SidebarItemProps}from'./types';export{useSidebarTokens}from'./tokens';declare const Sidebar:import("react").NamedExoticComponent<import("./types").SidebarProps>&{Item:import("react").NamedExoticComponent<import("./types").SidebarItemProps>;};export{SidebarItem};export default Sidebar;
@@ -1,4 +1 @@
1
- import { type Foundations } from '../../design-system/tokens';
2
- import type { SidebarTokens } from './types';
3
- export declare const createSidebarTokens: (foundations: Foundations) => SidebarTokens;
4
- export declare const useSidebarTokens: (overrides?: import("../..").DeepPartial<SidebarTokens> | undefined) => SidebarTokens;
1
+ import{type Foundations}from'../../design-system/tokens';import type{SidebarTokens}from'./types';export declare const createSidebarTokens:(foundations:Foundations)=>SidebarTokens;export declare const useSidebarTokens:(overrides?:import("../..").DeepPartial<SidebarTokens>|undefined)=>SidebarTokens;
@@ -1,64 +1 @@
1
- import type * as React from 'react';
2
- import type { StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
3
- import type { DeepPartial } from '../../types';
4
- export interface SidebarTokens {
5
- defaults: {
6
- disabled: boolean;
7
- };
8
- layout: {
9
- container: ViewStyle;
10
- side: ViewStyle;
11
- content: ViewStyle;
12
- item: ViewStyle;
13
- indicatorWrapper: ViewStyle;
14
- itemContent: ViewStyle;
15
- indicator: ViewStyle;
16
- titleRow: ViewStyle;
17
- badge: ViewStyle;
18
- dot: ViewStyle;
19
- title: TextStyle;
20
- };
21
- colors: {
22
- background: string;
23
- border: string;
24
- title: string;
25
- titleActive: string;
26
- disabled: string;
27
- indicator: string;
28
- };
29
- typography: {
30
- fontFamily: string;
31
- fontSize: number;
32
- fontWeight: NonNullable<TextStyle['fontWeight']>;
33
- contentFontSize: number;
34
- };
35
- sizing: {
36
- width: number;
37
- itemHeight: number;
38
- indicatorWidth: number;
39
- };
40
- borders: {
41
- width: number;
42
- };
43
- }
44
- export interface SidebarProps extends Omit<ViewProps, 'children'> {
45
- value?: number;
46
- defaultValue?: number;
47
- sideStyle?: StyleProp<ViewStyle>;
48
- children?: React.ReactNode;
49
- onChange?: (value: number) => void;
50
- tokensOverride?: DeepPartial<SidebarTokens>;
51
- }
52
- export interface SidebarItemProps extends ViewProps {
53
- title?: React.ReactNode;
54
- badge?: React.ReactNode;
55
- disabled?: boolean;
56
- dot?: boolean;
57
- onClick?: (value: number) => void;
58
- textStyle?: StyleProp<TextStyle>;
59
- badgeStyle?: StyleProp<ViewStyle>;
60
- contentStyle?: StyleProp<ViewStyle>;
61
- children?: React.ReactNode;
62
- index?: number;
63
- tokensOverride?: DeepPartial<SidebarTokens>;
64
- }
1
+ import type*as React from'react';import type{StyleProp,TextStyle,ViewProps,ViewStyle}from'react-native';import type{DeepPartial}from'../../types';export interface SidebarTokens{defaults:{disabled:boolean;};layout:{container:ViewStyle;side:ViewStyle;content:ViewStyle;item:ViewStyle;indicatorWrapper:ViewStyle;itemContent:ViewStyle;indicator:ViewStyle;titleRow:ViewStyle;badge:ViewStyle;dot:ViewStyle;title:TextStyle;};colors:{background:string;border:string;title:string;titleActive:string;disabled:string;indicator:string;};typography:{fontFamily:string;fontSize:number;fontWeight:NonNullable<TextStyle['fontWeight']>;contentFontSize:number;};sizing:{width:number;itemHeight:number;indicatorWidth:number;};borders:{width:number;};}export interface SidebarProps extends Omit<ViewProps,'children'>{value?:number;defaultValue?:number;sideStyle?:StyleProp<ViewStyle>;children?:React.ReactNode;onChange?:(value:number)=>void;tokensOverride?:DeepPartial<SidebarTokens>;}export interface SidebarItemProps extends ViewProps{title?:React.ReactNode;badge?:React.ReactNode;disabled?:boolean;dot?:boolean;onClick?:(value:number)=>void;textStyle?:StyleProp<TextStyle>;badgeStyle?:StyleProp<ViewStyle>;contentStyle?:StyleProp<ViewStyle>;children?:React.ReactNode;index?:number;tokensOverride?:DeepPartial<SidebarTokens>;}
@@ -1,5 +1 @@
1
- import React from 'react';
2
- import { View } from 'react-native';
3
- import type { SkeletonProps } from './types';
4
- declare const Skeleton: React.NamedExoticComponent<SkeletonProps & React.RefAttributes<View>>;
5
- export default Skeleton;
1
+ import React from'react';import{View}from'react-native';import type{SkeletonProps}from'./types';declare const Skeleton:React.NamedExoticComponent<SkeletonProps&React.RefAttributes<View>>;export default Skeleton;