react-native-system-ui 1.0.6 → 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 (311) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/components/field/Field.js +1 -1
  3. package/dist/cjs/components/form/Form.js +1 -1
  4. package/dist/cjs/components/popup/Popup.js +1 -1
  5. package/dist/cjs/components/toast/Toast.js +1 -1
  6. package/dist/es/components/field/Field.js +1 -1
  7. package/dist/es/components/form/Form.js +1 -1
  8. package/dist/es/components/popup/Popup.js +1 -1
  9. package/dist/es/components/toast/Toast.js +1 -1
  10. package/dist/types/components/action-sheet/ActionSheet.d.ts +1 -4
  11. package/dist/types/components/action-sheet/index.d.ts +1 -4
  12. package/dist/types/components/action-sheet/tokens.d.ts +1 -4
  13. package/dist/types/components/action-sheet/types.d.ts +1 -87
  14. package/dist/types/components/area/Area.d.ts +1 -4
  15. package/dist/types/components/area/index.d.ts +1 -3
  16. package/dist/types/components/area/tokens.d.ts +1 -7
  17. package/dist/types/components/area/types.d.ts +1 -20
  18. package/dist/types/components/avatar/Avatar.d.ts +1 -7
  19. package/dist/types/components/avatar/index.d.ts +1 -2
  20. package/dist/types/components/avatar/tokens.d.ts +1 -4
  21. package/dist/types/components/avatar/types.d.ts +1 -62
  22. package/dist/types/components/badge/Badge.d.ts +1 -4
  23. package/dist/types/components/badge/index.d.ts +1 -3
  24. package/dist/types/components/badge/tokens.d.ts +1 -2
  25. package/dist/types/components/badge/types.d.ts +1 -57
  26. package/dist/types/components/button/Button.d.ts +1 -5
  27. package/dist/types/components/button/ButtonContext.d.ts +1 -2
  28. package/dist/types/components/button/ButtonGroup.d.ts +1 -23
  29. package/dist/types/components/button/index.d.ts +1 -6
  30. package/dist/types/components/button/tokens.d.ts +1 -2
  31. package/dist/types/components/button/types.d.ts +1 -109
  32. package/dist/types/components/calendar/Calendar.d.ts +1 -4
  33. package/dist/types/components/calendar/index.d.ts +1 -3
  34. package/dist/types/components/calendar/tokens.d.ts +1 -4
  35. package/dist/types/components/calendar/types.d.ts +1 -111
  36. package/dist/types/components/cascader/Cascader.d.ts +1 -4
  37. package/dist/types/components/cascader/index.d.ts +1 -4
  38. package/dist/types/components/cascader/tokens.d.ts +1 -4
  39. package/dist/types/components/cascader/types.d.ts +1 -142
  40. package/dist/types/components/cascader/useCascaderExtend.d.ts +1 -12
  41. package/dist/types/components/cell/Cell.d.ts +1 -4
  42. package/dist/types/components/cell/CellContext.d.ts +1 -7
  43. package/dist/types/components/cell/CellGroup.d.ts +1 -3
  44. package/dist/types/components/cell/index.d.ts +1 -8
  45. package/dist/types/components/cell/tokens.d.ts +1 -4
  46. package/dist/types/components/cell/types.d.ts +1 -112
  47. package/dist/types/components/checkbox/Checkbox.d.ts +1 -5
  48. package/dist/types/components/checkbox/CheckboxContext.d.ts +1 -2
  49. package/dist/types/components/checkbox/CheckboxGroup.d.ts +1 -22
  50. package/dist/types/components/checkbox/index.d.ts +1 -7
  51. package/dist/types/components/checkbox/tokens.d.ts +1 -2
  52. package/dist/types/components/checkbox/types.d.ts +1 -99
  53. package/dist/types/components/circle/Circle.d.ts +1 -5
  54. package/dist/types/components/circle/index.d.ts +1 -3
  55. package/dist/types/components/circle/tokens.d.ts +1 -4
  56. package/dist/types/components/circle/types.d.ts +1 -51
  57. package/dist/types/components/collapse/Collapse.d.ts +1 -43
  58. package/dist/types/components/collapse/index.d.ts +1 -3
  59. package/dist/types/components/collapse/tokens.d.ts +1 -4
  60. package/dist/types/components/collapse/types.d.ts +1 -45
  61. package/dist/types/components/config-provider/ConfigProvider.d.ts +1 -3
  62. package/dist/types/components/config-provider/DirectionContext.d.ts +1 -3
  63. package/dist/types/components/config-provider/LocaleContext.d.ts +1 -3
  64. package/dist/types/components/config-provider/index.d.ts +1 -6
  65. package/dist/types/components/config-provider/locale/en-US.d.ts +1 -106
  66. package/dist/types/components/config-provider/locale/types.d.ts +1 -130
  67. package/dist/types/components/config-provider/locale/zh-CN.d.ts +1 -106
  68. package/dist/types/components/config-provider/tokens.d.ts +1 -3
  69. package/dist/types/components/config-provider/types.d.ts +1 -10
  70. package/dist/types/components/config-provider/useDirection.d.ts +1 -1
  71. package/dist/types/components/config-provider/useLocale.d.ts +1 -1
  72. package/dist/types/components/count-down/CountDown.d.ts +1 -4
  73. package/dist/types/components/count-down/index.d.ts +1 -4
  74. package/dist/types/components/count-down/tokens.d.ts +1 -4
  75. package/dist/types/components/count-down/types.d.ts +1 -29
  76. package/dist/types/components/datetime-picker/DatetimePicker.d.ts +1 -4
  77. package/dist/types/components/datetime-picker/index.d.ts +1 -3
  78. package/dist/types/components/datetime-picker/tokens.d.ts +1 -15
  79. package/dist/types/components/datetime-picker/types.d.ts +1 -38
  80. package/dist/types/components/dialog/Dialog.d.ts +1 -4
  81. package/dist/types/components/dialog/imperative.d.ts +1 -23
  82. package/dist/types/components/dialog/index.d.ts +1 -5
  83. package/dist/types/components/dialog/tokens.d.ts +1 -48
  84. package/dist/types/components/dialog/types.d.ts +1 -70
  85. package/dist/types/components/divider/Divider.d.ts +1 -3
  86. package/dist/types/components/divider/index.d.ts +1 -3
  87. package/dist/types/components/divider/tokens.d.ts +1 -4
  88. package/dist/types/components/divider/types.d.ts +1 -48
  89. package/dist/types/components/empty/Empty.d.ts +1 -3
  90. package/dist/types/components/empty/index.d.ts +1 -3
  91. package/dist/types/components/empty/tokens.d.ts +1 -4
  92. package/dist/types/components/empty/types.d.ts +1 -44
  93. package/dist/types/components/error-boundary/ErrorBoundary.d.ts +1 -6
  94. package/dist/types/components/error-boundary/index.d.ts +1 -2
  95. package/dist/types/components/error-boundary/types.d.ts +1 -18
  96. package/dist/types/components/field/Field.d.ts +1 -4
  97. package/dist/types/components/field/index.d.ts +1 -7
  98. package/dist/types/components/field/tokens.d.ts +1 -131
  99. package/dist/types/components/field/types.d.ts +1 -86
  100. package/dist/types/components/flex/Flex.d.ts +1 -9
  101. package/dist/types/components/flex/FlexContext.d.ts +1 -2
  102. package/dist/types/components/flex/FlexItem.d.ts +1 -3
  103. package/dist/types/components/flex/index.d.ts +1 -8
  104. package/dist/types/components/flex/tokens.d.ts +1 -2
  105. package/dist/types/components/flex/types.d.ts +1 -37
  106. package/dist/types/components/form/Form.d.ts +1 -26
  107. package/dist/types/components/form/FormItem.d.ts +1 -5
  108. package/dist/types/components/form/FormList.d.ts +1 -18
  109. package/dist/types/components/form/index.d.ts +1 -17
  110. package/dist/types/components/form/tokens.d.ts +1 -7
  111. package/dist/types/components/form/types.d.ts +1 -68
  112. package/dist/types/components/grid/Grid.d.ts +1 -19
  113. package/dist/types/components/grid/GridContext.d.ts +1 -2
  114. package/dist/types/components/grid/GridItem.d.ts +1 -3
  115. package/dist/types/components/grid/index.d.ts +1 -5
  116. package/dist/types/components/grid/tokens.d.ts +1 -4
  117. package/dist/types/components/grid/types.d.ts +1 -77
  118. package/dist/types/components/image/Image.d.ts +1 -5
  119. package/dist/types/components/image/index.d.ts +1 -4
  120. package/dist/types/components/image/tokens.d.ts +1 -2
  121. package/dist/types/components/image/types.d.ts +1 -53
  122. package/dist/types/components/image-preview/ImagePreview.d.ts +1 -4
  123. package/dist/types/components/image-preview/imperative.d.ts +1 -5
  124. package/dist/types/components/image-preview/index.d.ts +1 -6
  125. package/dist/types/components/image-preview/tokens.d.ts +1 -27
  126. package/dist/types/components/image-preview/types.d.ts +1 -55
  127. package/dist/types/components/index.d.ts +1 -213
  128. package/dist/types/components/input/Input.d.ts +1 -8
  129. package/dist/types/components/input/index.d.ts +1 -4
  130. package/dist/types/components/input/tokens.d.ts +1 -2
  131. package/dist/types/components/input/types.d.ts +1 -42
  132. package/dist/types/components/loading/Loading.d.ts +1 -3
  133. package/dist/types/components/loading/index.d.ts +1 -3
  134. package/dist/types/components/loading/tokens.d.ts +1 -4
  135. package/dist/types/components/loading/types.d.ts +1 -32
  136. package/dist/types/components/nav-bar/NavBar.d.ts +1 -4
  137. package/dist/types/components/nav-bar/index.d.ts +1 -4
  138. package/dist/types/components/nav-bar/tokens.d.ts +1 -4
  139. package/dist/types/components/nav-bar/types.d.ts +1 -67
  140. package/dist/types/components/notice-bar/NoticeBar.d.ts +1 -3
  141. package/dist/types/components/notice-bar/index.d.ts +1 -3
  142. package/dist/types/components/notice-bar/tokens.d.ts +1 -24
  143. package/dist/types/components/notice-bar/types.d.ts +1 -26
  144. package/dist/types/components/notify/Notify.d.ts +1 -6
  145. package/dist/types/components/notify/imperative.d.ts +1 -22
  146. package/dist/types/components/notify/index.d.ts +1 -15
  147. package/dist/types/components/notify/tokens.d.ts +1 -4
  148. package/dist/types/components/notify/types.d.ts +1 -64
  149. package/dist/types/components/number-keyboard/NumberKeyboard.d.ts +1 -4
  150. package/dist/types/components/number-keyboard/index.d.ts +1 -4
  151. package/dist/types/components/number-keyboard/tokens.d.ts +1 -42
  152. package/dist/types/components/number-keyboard/types.d.ts +1 -35
  153. package/dist/types/components/overlay/Overlay.d.ts +1 -5
  154. package/dist/types/components/overlay/index.d.ts +1 -5
  155. package/dist/types/components/overlay/tokens.d.ts +1 -6
  156. package/dist/types/components/overlay/types.d.ts +1 -13
  157. package/dist/types/components/password-input/PasswordInput.d.ts +1 -4
  158. package/dist/types/components/password-input/index.d.ts +1 -2
  159. package/dist/types/components/password-input/tokens.d.ts +1 -40
  160. package/dist/types/components/password-input/types.d.ts +1 -35
  161. package/dist/types/components/picker/Picker.d.ts +1 -32
  162. package/dist/types/components/picker/index.d.ts +1 -4
  163. package/dist/types/components/picker/tokens.d.ts +1 -39
  164. package/dist/types/components/picker/types.d.ts +1 -73
  165. package/dist/types/components/popup/Popup.d.ts +1 -5
  166. package/dist/types/components/popup/index.d.ts +1 -4
  167. package/dist/types/components/popup/tokens.d.ts +1 -48
  168. package/dist/types/components/popup/types.d.ts +1 -41
  169. package/dist/types/components/portal/Portal.d.ts +1 -14
  170. package/dist/types/components/portal/PortalContext.d.ts +1 -7
  171. package/dist/types/components/portal/PortalHost.d.ts +1 -11
  172. package/dist/types/components/portal/index.d.ts +1 -3
  173. package/dist/types/components/portal/tokens.d.ts +1 -3
  174. package/dist/types/components/portal/types.d.ts +1 -1
  175. package/dist/types/components/progress/Progress.d.ts +1 -8
  176. package/dist/types/components/progress/index.d.ts +1 -4
  177. package/dist/types/components/progress/tokens.d.ts +1 -4
  178. package/dist/types/components/progress/types.d.ts +1 -51
  179. package/dist/types/components/radio/Radio.d.ts +1 -3
  180. package/dist/types/components/radio/RadioContext.d.ts +1 -2
  181. package/dist/types/components/radio/RadioGroup.d.ts +1 -14
  182. package/dist/types/components/radio/index.d.ts +1 -7
  183. package/dist/types/components/radio/tokens.d.ts +1 -2
  184. package/dist/types/components/radio/types.d.ts +1 -95
  185. package/dist/types/components/safe-area-view/SafeAreaView.d.ts +1 -10
  186. package/dist/types/components/safe-area-view/index.d.ts +1 -2
  187. package/dist/types/components/safe-area-view/tokens.d.ts +1 -3
  188. package/dist/types/components/safe-area-view/types.d.ts +1 -1
  189. package/dist/types/components/search/Search.d.ts +1 -4
  190. package/dist/types/components/search/index.d.ts +1 -4
  191. package/dist/types/components/search/tokens.d.ts +1 -41
  192. package/dist/types/components/search/types.d.ts +1 -28
  193. package/dist/types/components/selector/Selector.d.ts +1 -7
  194. package/dist/types/components/selector/index.d.ts +1 -4
  195. package/dist/types/components/selector/tokens.d.ts +1 -2
  196. package/dist/types/components/selector/types.d.ts +1 -74
  197. package/dist/types/components/share-sheet/ShareSheet.d.ts +1 -4
  198. package/dist/types/components/share-sheet/index.d.ts +1 -4
  199. package/dist/types/components/share-sheet/tokens.d.ts +1 -40
  200. package/dist/types/components/share-sheet/types.d.ts +1 -26
  201. package/dist/types/components/sidebar/Sidebar.d.ts +1 -4
  202. package/dist/types/components/sidebar/SidebarContext.d.ts +1 -7
  203. package/dist/types/components/sidebar/SidebarItem.d.ts +1 -4
  204. package/dist/types/components/sidebar/index.d.ts +1 -8
  205. package/dist/types/components/sidebar/tokens.d.ts +1 -4
  206. package/dist/types/components/sidebar/types.d.ts +1 -64
  207. package/dist/types/components/skeleton/Skeleton.d.ts +1 -5
  208. package/dist/types/components/skeleton/index.d.ts +1 -5
  209. package/dist/types/components/skeleton/tokens.d.ts +1 -2
  210. package/dist/types/components/skeleton/types.d.ts +1 -45
  211. package/dist/types/components/slider/Slider.d.ts +1 -4
  212. package/dist/types/components/slider/index.d.ts +1 -3
  213. package/dist/types/components/slider/tokens.d.ts +1 -28
  214. package/dist/types/components/slider/types.d.ts +1 -38
  215. package/dist/types/components/space/Space.d.ts +1 -3
  216. package/dist/types/components/space/index.d.ts +1 -3
  217. package/dist/types/components/space/tokens.d.ts +1 -3
  218. package/dist/types/components/space/types.d.ts +1 -39
  219. package/dist/types/components/stepper/Stepper.d.ts +1 -4
  220. package/dist/types/components/stepper/index.d.ts +1 -4
  221. package/dist/types/components/stepper/tokens.d.ts +1 -46
  222. package/dist/types/components/stepper/types.d.ts +1 -46
  223. package/dist/types/components/swiper/Swiper.d.ts +1 -9
  224. package/dist/types/components/swiper/SwiperItem.d.ts +1 -1
  225. package/dist/types/components/swiper/SwiperPagIndicator.d.ts +1 -36
  226. package/dist/types/components/swiper/index.d.ts +1 -14
  227. package/dist/types/components/swiper/tokens.d.ts +1 -11
  228. package/dist/types/components/swiper/types.d.ts +1 -29
  229. package/dist/types/components/switch/Switch.d.ts +1 -7
  230. package/dist/types/components/switch/index.d.ts +1 -4
  231. package/dist/types/components/switch/tokens.d.ts +1 -2
  232. package/dist/types/components/switch/types.d.ts +1 -33
  233. package/dist/types/components/tabbar/Tabbar.d.ts +1 -4
  234. package/dist/types/components/tabbar/TabbarContext.d.ts +1 -13
  235. package/dist/types/components/tabbar/TabbarItem.d.ts +1 -4
  236. package/dist/types/components/tabbar/index.d.ts +1 -9
  237. package/dist/types/components/tabbar/tokens.d.ts +1 -28
  238. package/dist/types/components/tabbar/types.d.ts +1 -39
  239. package/dist/types/components/tabs/Tabs.d.ts +1 -8
  240. package/dist/types/components/tabs/index.d.ts +1 -10
  241. package/dist/types/components/tabs/tokens.d.ts +1 -96
  242. package/dist/types/components/tabs/types.d.ts +1 -64
  243. package/dist/types/components/tag/Tag.d.ts +1 -3
  244. package/dist/types/components/tag/index.d.ts +1 -3
  245. package/dist/types/components/tag/tokens.d.ts +1 -4
  246. package/dist/types/components/tag/types.d.ts +1 -69
  247. package/dist/types/components/theme.d.ts +1 -112
  248. package/dist/types/components/toast/Toast.d.ts +1 -33
  249. package/dist/types/components/toast/imperative.d.ts +1 -22
  250. package/dist/types/components/toast/index.d.ts +1 -15
  251. package/dist/types/components/toast/tokens.d.ts +1 -29
  252. package/dist/types/components/toast/types.d.ts +1 -1
  253. package/dist/types/components/typography/Typography.d.ts +1 -11
  254. package/dist/types/components/typography/index.d.ts +1 -3
  255. package/dist/types/components/typography/tokens.d.ts +1 -2
  256. package/dist/types/components/typography/types.d.ts +1 -66
  257. package/dist/types/components/water-mark/WaterMark.d.ts +1 -4
  258. package/dist/types/components/water-mark/index.d.ts +1 -5
  259. package/dist/types/components/water-mark/tokens.d.ts +1 -2
  260. package/dist/types/components/water-mark/types.d.ts +1 -58
  261. package/dist/types/design-system/Text.d.ts +1 -3
  262. package/dist/types/design-system/ThemeContext.d.ts +1 -14
  263. package/dist/types/design-system/ThemeProvider.d.ts +1 -14
  264. package/dist/types/design-system/createComponentTokensHook.d.ts +1 -4
  265. package/dist/types/design-system/index.d.ts +1 -11
  266. package/dist/types/design-system/mergeTokensOverride.d.ts +1 -2
  267. package/dist/types/design-system/presets.d.ts +1 -8
  268. package/dist/types/design-system/tokens.d.ts +1 -74
  269. package/dist/types/design-system/useTheme.d.ts +1 -1
  270. package/dist/types/hooks/animation/index.d.ts +1 -3
  271. package/dist/types/hooks/animation/useAnimatedTransition.d.ts +1 -13
  272. package/dist/types/hooks/animation/useReducedMotion.d.ts +1 -3
  273. package/dist/types/hooks/aria/index.d.ts +1 -4
  274. package/dist/types/hooks/aria/useAriaListBox.d.ts +1 -14
  275. package/dist/types/hooks/aria/useAriaOverlay.d.ts +1 -14
  276. package/dist/types/hooks/aria/useAriaPress.d.ts +1 -19
  277. package/dist/types/hooks/aria/useAriaToggle.d.ts +1 -12
  278. package/dist/types/hooks/gesture/index.d.ts +1 -1
  279. package/dist/types/hooks/gesture/useGestureScroll.d.ts +1 -33
  280. package/dist/types/hooks/index.d.ts +1 -9
  281. package/dist/types/hooks/overlay/OverlayStackStore.d.ts +1 -39
  282. package/dist/types/hooks/overlay/index.d.ts +1 -2
  283. package/dist/types/hooks/overlay/useOverlayStack.d.ts +1 -10
  284. package/dist/types/hooks/useControllableValue.d.ts +1 -9
  285. package/dist/types/hooks/useCountDown.d.ts +1 -23
  286. package/dist/types/hooks/useHairline.d.ts +1 -10
  287. package/dist/types/hooks/useSafeAreaPadding.d.ts +1 -13
  288. package/dist/types/index.d.ts +1 -9
  289. package/dist/types/nativewind.d.ts +1 -4
  290. package/dist/types/platform/animation.d.ts +1 -9
  291. package/dist/types/platform/history.d.ts +1 -1
  292. package/dist/types/platform/index.d.ts +1 -5
  293. package/dist/types/platform/measure.d.ts +1 -7
  294. package/dist/types/platform/runtime.d.ts +1 -3
  295. package/dist/types/platform/scrollLock.d.ts +1 -2
  296. package/dist/types/types.d.ts +1 -4
  297. package/dist/types/utils/array.d.ts +1 -1
  298. package/dist/types/utils/color.d.ts +1 -3
  299. package/dist/types/utils/compare.d.ts +1 -2
  300. package/dist/types/utils/createPlatformShadow.d.ts +1 -11
  301. package/dist/types/utils/date.d.ts +1 -13
  302. package/dist/types/utils/deepMerge.d.ts +1 -3
  303. package/dist/types/utils/hairline.d.ts +1 -15
  304. package/dist/types/utils/index.d.ts +1 -13
  305. package/dist/types/utils/number.d.ts +1 -11
  306. package/dist/types/utils/promise.d.ts +1 -1
  307. package/dist/types/utils/render.d.ts +1 -5
  308. package/dist/types/utils/rtl.d.ts +1 -5
  309. package/dist/types/utils/string.d.ts +1 -3
  310. package/dist/types/utils/validate.d.ts +1 -13
  311. package/package.json +142 -149
@@ -1 +1 @@
1
- export { SwiperItem as default } from './Swiper';
1
+ export{SwiperItem as default}from'./Swiper';
@@ -1,36 +1 @@
1
- import React from 'react';
2
- import { type StyleProp, type ViewStyle, type ViewProps } from 'react-native';
3
- import type { DeepPartial } from '../../types';
4
- export interface SwiperPagIndicatorTokens {
5
- colors: {
6
- active: string;
7
- inactive: string;
8
- };
9
- sizing: {
10
- dotSizeActive: number;
11
- dotSizeInactive: number;
12
- };
13
- spacing: {
14
- dotMargin: number;
15
- };
16
- offset: {
17
- horizontalBottom: number;
18
- verticalRight: number;
19
- };
20
- layer: {
21
- zIndex: number;
22
- elevation: number;
23
- };
24
- }
25
- export declare const useSwiperPagIndicatorTokens: (overrides?: DeepPartial<SwiperPagIndicatorTokens> | undefined) => SwiperPagIndicatorTokens;
26
- export interface SwiperPagIndicatorProps extends ViewProps {
27
- total: number;
28
- current: number;
29
- vertical?: boolean;
30
- style?: StyleProp<ViewStyle>;
31
- activeColor?: string;
32
- inactiveColor?: string;
33
- tokensOverride?: DeepPartial<SwiperPagIndicatorTokens>;
34
- }
35
- declare const SwiperPagIndicator: React.NamedExoticComponent<SwiperPagIndicatorProps>;
36
- export default SwiperPagIndicator;
1
+ import React from'react';import{type StyleProp,type ViewStyle,type ViewProps}from'react-native';import type{DeepPartial}from'../../types';export interface SwiperPagIndicatorTokens{colors:{active:string;inactive:string;};sizing:{dotSizeActive:number;dotSizeInactive:number;};spacing:{dotMargin:number;};offset:{horizontalBottom:number;verticalRight:number;};layer:{zIndex:number;elevation:number;};}export declare const useSwiperPagIndicatorTokens:(overrides?:DeepPartial<SwiperPagIndicatorTokens>|undefined)=>SwiperPagIndicatorTokens;export interface SwiperPagIndicatorProps extends ViewProps{total:number;current:number;vertical?:boolean;style?:StyleProp<ViewStyle>;activeColor?:string;inactiveColor?:string;tokensOverride?:DeepPartial<SwiperPagIndicatorTokens>;}declare const SwiperPagIndicator:React.NamedExoticComponent<SwiperPagIndicatorProps>;export default SwiperPagIndicator;
@@ -1,14 +1 @@
1
- import Swiper from './Swiper';
2
- import SwiperItem from './SwiperItem';
3
- import SwiperPagIndicator from './SwiperPagIndicator';
4
- declare const SwiperWithItem: (<T>(props: import("./types").SwiperProps<T> & import("react").RefAttributes<import("./types").SwiperInstance>) => import("react").ReactElement | null) & {
5
- displayName?: string;
6
- } & {
7
- Item: import("react").NamedExoticComponent<import("./types").SwiperItemProps & import("react").RefAttributes<import("react-native").View>>;
8
- PagIndicator: import("react").NamedExoticComponent<import("./SwiperPagIndicator").SwiperPagIndicatorProps>;
9
- };
10
- export default SwiperWithItem;
11
- export { Swiper, SwiperItem, SwiperPagIndicator };
12
- export { useSwiperPagIndicatorTokens } from './SwiperPagIndicator';
13
- export type { SwiperPagIndicatorProps, SwiperPagIndicatorTokens } from './SwiperPagIndicator';
14
- export type { SwiperProps, SwiperInstance, SwiperItemProps } from './types';
1
+ import Swiper from'./Swiper';import SwiperItem from'./SwiperItem';import SwiperPagIndicator from'./SwiperPagIndicator';declare const SwiperWithItem:(<T>(props:import("./types").SwiperProps<T>&import("react").RefAttributes<import("./types").SwiperInstance>)=>import("react").ReactElement|null)&{displayName?:string;}&{Item:import("react").NamedExoticComponent<import("./types").SwiperItemProps&import("react").RefAttributes<import("react-native").View>>;PagIndicator:import("react").NamedExoticComponent<import("./SwiperPagIndicator").SwiperPagIndicatorProps>;};export default SwiperWithItem;export{Swiper,SwiperItem,SwiperPagIndicator};export{useSwiperPagIndicatorTokens}from'./SwiperPagIndicator';export type{SwiperPagIndicatorProps,SwiperPagIndicatorTokens}from'./SwiperPagIndicator';export type{SwiperProps,SwiperInstance,SwiperItemProps}from'./types';
@@ -1,11 +1 @@
1
- export interface SwiperTokens {
2
- defaults: {
3
- autoplayInterval: number;
4
- scrollEventThrottle: number;
5
- };
6
- layer: {
7
- zIndex: number;
8
- elevation: number;
9
- };
10
- }
11
- export declare const useSwiperTokens: (overrides?: import("../..").DeepPartial<SwiperTokens> | undefined) => SwiperTokens;
1
+ export interface SwiperTokens{defaults:{autoplayInterval:number;scrollEventThrottle:number;};layer:{zIndex:number;elevation:number;};}export declare const useSwiperTokens:(overrides?:import("../..").DeepPartial<SwiperTokens>|undefined)=>SwiperTokens;
@@ -1,29 +1 @@
1
- import React from 'react';
2
- import type { StyleProp, ViewStyle, FlatListProps } from 'react-native';
3
- import type { SwiperPagIndicatorProps } from './SwiperPagIndicator';
4
- export interface SwiperProps<T = unknown> {
5
- data?: T[];
6
- renderItem?: FlatListProps<T>['renderItem'];
7
- children?: React.ReactElement | React.ReactElement[];
8
- initialSwipe?: number;
9
- touchable?: boolean;
10
- loop?: boolean;
11
- autoplay?: boolean | number;
12
- vertical?: boolean;
13
- onChange?: (index: number) => void;
14
- indicator?: boolean | ((total: number, current: number) => React.ReactNode);
15
- indicatorProps?: Omit<SwiperPagIndicatorProps, 'total' | 'current' | 'vertical'>;
16
- style?: StyleProp<ViewStyle>;
17
- testID?: string;
18
- }
19
- export interface SwiperItemProps {
20
- style?: StyleProp<ViewStyle>;
21
- children?: React.ReactNode;
22
- testID?: string;
23
- }
24
- export type SwiperInstance = {
25
- swipeTo: (index: number, animated?: boolean) => void;
26
- swipeNext: () => void;
27
- swipePrev: () => void;
28
- getCurrentIndex: () => number;
29
- };
1
+ import React from'react';import type{StyleProp,ViewStyle,FlatListProps}from'react-native';import type{SwiperPagIndicatorProps}from'./SwiperPagIndicator';export interface SwiperProps<T=unknown>{data?:T[];renderItem?:FlatListProps<T>['renderItem'];children?:React.ReactElement|React.ReactElement[];initialSwipe?:number;touchable?:boolean;loop?:boolean;autoplay?:boolean|number;vertical?:boolean;onChange?:(index:number)=>void;indicator?:boolean|((total:number,current:number)=>React.ReactNode);indicatorProps?:Omit<SwiperPagIndicatorProps,'total'|'current'|'vertical'>;style?:StyleProp<ViewStyle>;testID?:string;}export interface SwiperItemProps{style?:StyleProp<ViewStyle>;children?:React.ReactNode;testID?:string;}export type SwiperInstance={swipeTo:(index:number,animated?:boolean)=>void;swipeNext:()=>void;swipePrev:()=>void;getCurrentIndex:()=>number;};
@@ -1,7 +1 @@
1
- import React from 'react';
2
- import type { SwitchProps } from './types';
3
- type SwitchComponent = (<V = boolean>(props: SwitchProps<V>) => React.ReactElement) & {
4
- displayName?: string;
5
- };
6
- export declare const Switch: SwitchComponent;
7
- export default Switch;
1
+ import React from'react';import type{SwitchProps}from'./types';type SwitchComponent=(<V=boolean>(props:SwitchProps<V>)=>React.ReactElement)&{displayName?:string;};export declare const Switch:SwitchComponent;export default Switch;
@@ -1,4 +1 @@
1
- import Switch from './Switch';
2
- export default Switch;
3
- export { Switch };
4
- export type { SwitchProps } from './types';
1
+ import Switch from'./Switch';export default Switch;export{Switch};export type{SwitchProps}from'./types';
@@ -1,2 +1 @@
1
- import type { SwitchTokens } from './types';
2
- export declare const useSwitchTokens: (overrides?: import("../..").DeepPartial<SwitchTokens> | undefined) => SwitchTokens;
1
+ import type{SwitchTokens}from'./types';export declare const useSwitchTokens:(overrides?:import("../..").DeepPartial<SwitchTokens>|undefined)=>SwitchTokens;
@@ -1,33 +1 @@
1
- import type { GestureResponderEvent, StyleProp, ViewStyle } from 'react-native';
2
- import type { DeepPartial } from '../../types';
3
- export interface SwitchTokens {
4
- defaults: {
5
- size: number;
6
- disabled: boolean;
7
- activeValue: unknown;
8
- inactiveValue: unknown;
9
- };
10
- colors: {
11
- activeTrack: string;
12
- inactiveTrack: string;
13
- handle: string;
14
- };
15
- opacity: {
16
- disabled: number;
17
- pressed: number;
18
- };
19
- }
20
- export interface SwitchProps<V = boolean> {
21
- checked?: V;
22
- defaultChecked?: V;
23
- disabled?: boolean;
24
- size?: number | 'sm' | 'md' | 'lg' | string;
25
- activeColor?: string;
26
- inactiveColor?: string;
27
- activeValue?: V;
28
- inactiveValue?: V;
29
- tokensOverride?: DeepPartial<SwitchTokens>;
30
- onChange?: (val: V) => void;
31
- onClick?: (event: GestureResponderEvent) => void;
32
- style?: StyleProp<ViewStyle>;
33
- }
1
+ import type{GestureResponderEvent,StyleProp,ViewStyle}from'react-native';import type{DeepPartial}from'../../types';export interface SwitchTokens{defaults:{size:number;disabled:boolean;activeValue:unknown;inactiveValue:unknown;};colors:{activeTrack:string;inactiveTrack:string;handle:string;};opacity:{disabled:number;pressed:number;};}export interface SwitchProps<V=boolean>{checked?:V;defaultChecked?:V;disabled?:boolean;size?:number|'sm'|'md'|'lg'|string;activeColor?:string;inactiveColor?:string;activeValue?:V;inactiveValue?:V;tokensOverride?:DeepPartial<SwitchTokens>;onChange?:(val:V)=>void;onClick?:(event:GestureResponderEvent)=>void;style?:StyleProp<ViewStyle>;}
@@ -1,4 +1 @@
1
- import React from 'react';
2
- import type { TabbarProps, TabbarValue } from './types';
3
- declare const TabbarBase: React.NamedExoticComponent<TabbarProps<TabbarValue>>;
4
- export default TabbarBase;
1
+ import React from'react';import type{TabbarProps,TabbarValue}from'./types';declare const TabbarBase:React.NamedExoticComponent<TabbarProps<TabbarValue>>;export default TabbarBase;
@@ -1,13 +1 @@
1
- import React from 'react';
2
- import type { TextStyle } from 'react-native';
3
- import type { TabbarValue } from './types';
4
- export interface TabbarContextValue {
5
- activeValue?: TabbarValue;
6
- activeColor: string;
7
- inactiveColor: string;
8
- fontSize: number;
9
- fontWeight: TextStyle['fontWeight'];
10
- onSelect: (name: TabbarValue, index: number) => void;
11
- }
12
- export declare const TabbarContext: React.Context<TabbarContextValue | null>;
13
- export declare const useTabbarContext: () => TabbarContextValue | null;
1
+ import React from'react';import type{TextStyle}from'react-native';import type{TabbarValue}from'./types';export interface TabbarContextValue{activeValue?:TabbarValue;activeColor:string;inactiveColor:string;fontSize:number;fontWeight:TextStyle['fontWeight'];onSelect:(name:TabbarValue,index:number)=>void;}export declare const TabbarContext:React.Context<TabbarContextValue|null>;export declare const useTabbarContext:()=>TabbarContextValue|null;
@@ -1,4 +1 @@
1
- import React from 'react';
2
- import type { TabbarItemProps, TabbarValue } from './types';
3
- declare const TabbarItem: React.NamedExoticComponent<TabbarItemProps<TabbarValue>>;
4
- export default TabbarItem;
1
+ import React from'react';import type{TabbarItemProps,TabbarValue}from'./types';declare const TabbarItem:React.NamedExoticComponent<TabbarItemProps<TabbarValue>>;export default TabbarItem;
@@ -1,9 +1 @@
1
- import TabbarBase from './Tabbar';
2
- import TabbarItem from './TabbarItem';
3
- export type { TabbarProps, TabbarItemProps, TabbarValue } from './types';
4
- export { useTabbarTokens } from './tokens';
5
- declare const Tabbar: typeof TabbarBase & {
6
- Item: typeof TabbarItem;
7
- };
8
- export { TabbarItem };
9
- export default Tabbar;
1
+ import TabbarBase from'./Tabbar';import TabbarItem from'./TabbarItem';export type{TabbarProps,TabbarItemProps,TabbarValue}from'./types';export{useTabbarTokens}from'./tokens';declare const Tabbar:typeof TabbarBase&{Item:typeof TabbarItem;};export{TabbarItem};export default Tabbar;
@@ -1,28 +1 @@
1
- import type { TextStyle } from 'react-native';
2
- export interface TabbarTokens {
3
- defaults: {
4
- fixed: boolean;
5
- border: boolean;
6
- placeholder: boolean;
7
- safeAreaInsetBottom: boolean;
8
- };
9
- colors: {
10
- background: string;
11
- border: string;
12
- active: string;
13
- inactive: string;
14
- };
15
- layout: {
16
- height: number;
17
- paddingHorizontal: number;
18
- paddingVertical: number;
19
- };
20
- icon: {
21
- size: number;
22
- };
23
- typography: {
24
- fontSize: number;
25
- fontWeight: TextStyle['fontWeight'];
26
- };
27
- }
28
- export declare const useTabbarTokens: (overrides?: import("../..").DeepPartial<TabbarTokens> | undefined) => TabbarTokens;
1
+ import type{TextStyle}from'react-native';export interface TabbarTokens{defaults:{fixed:boolean;border:boolean;placeholder:boolean;safeAreaInsetBottom:boolean;};colors:{background:string;border:string;active:string;inactive:string;};layout:{height:number;paddingHorizontal:number;paddingVertical:number;};icon:{size:number;};typography:{fontSize:number;fontWeight:TextStyle['fontWeight'];};}export declare const useTabbarTokens:(overrides?:import("../..").DeepPartial<TabbarTokens>|undefined)=>TabbarTokens;
@@ -1,39 +1 @@
1
- import type * as React from 'react';
2
- import type { StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
3
- import type { BadgeProps } from '../badge/types';
4
- import type { DeepPartial } from '../../types';
5
- import type { TabbarTokens } from './tokens';
6
- export type TabbarValue = string | number;
7
- export interface TabbarProps<T = TabbarValue> extends Omit<ViewProps, 'children'> {
8
- children?: React.ReactNode;
9
- value?: T;
10
- defaultValue?: T;
11
- fixed?: boolean;
12
- border?: boolean;
13
- zIndex?: number;
14
- activeColor?: string;
15
- inactiveColor?: string;
16
- background?: string;
17
- placeholder?: boolean;
18
- safeAreaInsetBottom?: boolean;
19
- iconSize?: number;
20
- tokensOverride?: DeepPartial<TabbarTokens>;
21
- style?: StyleProp<ViewStyle>;
22
- contentStyle?: StyleProp<ViewStyle>;
23
- onChange?: (name: T, index: number) => void;
24
- }
25
- export interface TabbarItemProps<T = TabbarValue> extends Omit<ViewProps, 'children'> {
26
- name?: T;
27
- icon?: React.ReactNode | ((active: boolean) => React.ReactNode);
28
- badge?: BadgeProps | React.ReactNode;
29
- dot?: boolean;
30
- onClick?: () => void;
31
- textStyle?: StyleProp<TextStyle>;
32
- iconStyle?: StyleProp<ViewStyle>;
33
- children?: React.ReactNode | ((active: boolean) => React.ReactNode);
34
- disabled?: boolean;
35
- testID?: string;
36
- tokensOverride?: DeepPartial<TabbarTokens>;
37
- index?: number;
38
- iconSize?: number;
39
- }
1
+ import type*as React from'react';import type{StyleProp,TextStyle,ViewProps,ViewStyle}from'react-native';import type{BadgeProps}from'../badge/types';import type{DeepPartial}from'../../types';import type{TabbarTokens}from'./tokens';export type TabbarValue=string|number;export interface TabbarProps<T=TabbarValue>extends Omit<ViewProps,'children'>{children?:React.ReactNode;value?:T;defaultValue?:T;fixed?:boolean;border?:boolean;zIndex?:number;activeColor?:string;inactiveColor?:string;background?:string;placeholder?:boolean;safeAreaInsetBottom?:boolean;iconSize?:number;tokensOverride?:DeepPartial<TabbarTokens>;style?:StyleProp<ViewStyle>;contentStyle?:StyleProp<ViewStyle>;onChange?:(name:T,index:number)=>void;}export interface TabbarItemProps<T=TabbarValue>extends Omit<ViewProps,'children'>{name?:T;icon?:React.ReactNode|((active:boolean)=>React.ReactNode);badge?:BadgeProps|React.ReactNode;dot?:boolean;onClick?:()=>void;textStyle?:StyleProp<TextStyle>;iconStyle?:StyleProp<ViewStyle>;children?:React.ReactNode|((active:boolean)=>React.ReactNode);disabled?:boolean;testID?:string;tokensOverride?:DeepPartial<TabbarTokens>;index?:number;iconSize?:number;}
@@ -1,8 +1 @@
1
- import React, { type FC } from 'react';
2
- import type { TabPaneProps, TabsProps, TabsRef } from './types';
3
- declare const TabPane: FC<TabPaneProps>;
4
- declare const TabsWithPane: React.NamedExoticComponent<TabsProps & React.RefAttributes<TabsRef>> & {
5
- TabPane: React.FC<TabPaneProps>;
6
- };
7
- export { TabPane };
8
- export default TabsWithPane;
1
+ import React,{type FC}from'react';import type{TabPaneProps,TabsProps,TabsRef}from'./types';declare const TabPane:FC<TabPaneProps>;declare const TabsWithPane:React.NamedExoticComponent<TabsProps&React.RefAttributes<TabsRef>>&{TabPane:React.FC<TabPaneProps>;};export{TabPane};export default TabsWithPane;
@@ -1,10 +1 @@
1
- import { TabPane } from './Tabs';
2
- export type { TabsProps, TabPaneProps, TabsValue, TabsType, TabsAlign, TabsSwipeableConfig, TabsRef, } from './types';
3
- export { useTabsTokens } from './tokens';
4
- declare const Tabs: import("react").NamedExoticComponent<import("./types").TabsProps & import("react").RefAttributes<import("./types").TabsRef>> & {
5
- TabPane: import("react").FC<import("./types").TabPaneProps>;
6
- } & {
7
- TabPane: import("react").FC<import("./types").TabPaneProps>;
8
- };
9
- export { TabPane };
10
- export default Tabs;
1
+ import{TabPane}from'./Tabs';export type{TabsProps,TabPaneProps,TabsValue,TabsType,TabsAlign,TabsSwipeableConfig,TabsRef,}from'./types';export{useTabsTokens}from'./tokens';declare const Tabs:import("react").NamedExoticComponent<import("./types").TabsProps&import("react").RefAttributes<import("./types").TabsRef>>&{TabPane:import("react").FC<import("./types").TabPaneProps>;}&{TabPane:import("react").FC<import("./types").TabPaneProps>;};export{TabPane};export default Tabs;
@@ -1,96 +1 @@
1
- import type { TextStyle } from 'react-native';
2
- import type { TabsAlign, TabsType } from './types';
3
- export interface TabsTokens {
4
- defaults: {
5
- type: TabsType;
6
- align: TabsAlign;
7
- ellipsis: boolean;
8
- swipeThreshold: number;
9
- animated: boolean;
10
- duration: number;
11
- lazyRender: boolean;
12
- };
13
- colors: {
14
- text: string;
15
- textActive: string;
16
- textDisabled: string;
17
- description: string;
18
- descriptionActive: string;
19
- descriptionBackground: string;
20
- descriptionActiveBackground: string;
21
- border: string;
22
- indicator: string;
23
- cardBackground: string;
24
- cardActiveBackground: string;
25
- cardBorder: string;
26
- cardActiveBorder: string;
27
- cardActiveText: string;
28
- capsuleBackground: string;
29
- capsuleActiveBackground: string;
30
- capsuleBorder: string;
31
- capsuleActiveBorder: string;
32
- capsuleText: string;
33
- capsuleActiveText: string;
34
- badgeText: string;
35
- jumboBackground: string;
36
- jumboActiveBackground: string;
37
- jumboBorder: string;
38
- jumboActiveBorder: string;
39
- jumboDescription: string;
40
- jumboDescriptionActive: string;
41
- jumboDescriptionBackground: string;
42
- jumboDescriptionActiveBackground: string;
43
- };
44
- tabList: {
45
- height: number;
46
- paddingHorizontal: number;
47
- paddingVertical: number;
48
- paddingBottom: number;
49
- background: string;
50
- };
51
- typography: {
52
- fontFamily: string;
53
- titleSize: number;
54
- titleWeight: NonNullable<TextStyle['fontWeight']>;
55
- titleActiveWeight: NonNullable<TextStyle['fontWeight']>;
56
- descriptionSize: number;
57
- jumboTitleSize: number;
58
- jumboLineHeight: number;
59
- badgeTextSize: number;
60
- };
61
- spacing: {
62
- navSidePaddingHorizontal: number;
63
- navBottomMarginTop: number;
64
- descriptionMarginTop: number;
65
- jumboDescriptionMarginTop: number;
66
- badgeMarginTop: number;
67
- };
68
- indicator: {
69
- height: number;
70
- radius: number;
71
- width: number;
72
- offset: number;
73
- };
74
- card: {
75
- radius: number;
76
- paddingHorizontal: number;
77
- paddingVertical: number;
78
- height: number;
79
- marginHorizontal: number;
80
- };
81
- capsule: {
82
- radius: number;
83
- paddingHorizontal: number;
84
- paddingVertical: number;
85
- };
86
- jumbo: {
87
- radius: number;
88
- paddingHorizontal: number;
89
- paddingVertical: number;
90
- height: number;
91
- descriptionPaddingHorizontal: number;
92
- descriptionPaddingVertical: number;
93
- descriptionRadius: number;
94
- };
95
- }
96
- export declare const useTabsTokens: (overrides?: import("../..").DeepPartial<TabsTokens> | undefined) => TabsTokens;
1
+ import type{TextStyle}from'react-native';import type{TabsAlign,TabsType}from'./types';export interface TabsTokens{defaults:{type:TabsType;align:TabsAlign;ellipsis:boolean;swipeThreshold:number;animated:boolean;duration:number;lazyRender:boolean;};colors:{text:string;textActive:string;textDisabled:string;description:string;descriptionActive:string;descriptionBackground:string;descriptionActiveBackground:string;border:string;indicator:string;cardBackground:string;cardActiveBackground:string;cardBorder:string;cardActiveBorder:string;cardActiveText:string;capsuleBackground:string;capsuleActiveBackground:string;capsuleBorder:string;capsuleActiveBorder:string;capsuleText:string;capsuleActiveText:string;badgeText:string;jumboBackground:string;jumboActiveBackground:string;jumboBorder:string;jumboActiveBorder:string;jumboDescription:string;jumboDescriptionActive:string;jumboDescriptionBackground:string;jumboDescriptionActiveBackground:string;};tabList:{height:number;paddingHorizontal:number;paddingVertical:number;paddingBottom:number;background:string;};typography:{fontFamily:string;titleSize:number;titleWeight:NonNullable<TextStyle['fontWeight']>;titleActiveWeight:NonNullable<TextStyle['fontWeight']>;descriptionSize:number;jumboTitleSize:number;jumboLineHeight:number;badgeTextSize:number;};spacing:{navSidePaddingHorizontal:number;navBottomMarginTop:number;descriptionMarginTop:number;jumboDescriptionMarginTop:number;badgeMarginTop:number;};indicator:{height:number;radius:number;width:number;offset:number;};card:{radius:number;paddingHorizontal:number;paddingVertical:number;height:number;marginHorizontal:number;};capsule:{radius:number;paddingHorizontal:number;paddingVertical:number;};jumbo:{radius:number;paddingHorizontal:number;paddingVertical:number;height:number;descriptionPaddingHorizontal:number;descriptionPaddingVertical:number;descriptionRadius:number;};}export declare const useTabsTokens:(overrides?:import("../..").DeepPartial<TabsTokens>|undefined)=>TabsTokens;
@@ -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
- import type { TabsTokens } from './tokens';
5
- export type TabsType = 'line' | 'card' | 'capsule' | 'jumbo';
6
- export type TabsAlign = 'start' | 'center';
7
- export type TabsValue = string | number;
8
- export interface TabsSwipeableConfig {
9
- autoHeight?: boolean;
10
- preventScroll?: boolean;
11
- }
12
- export interface TabsClickEvent {
13
- name: TabsValue;
14
- index: number;
15
- disabled: boolean;
16
- event: unknown;
17
- }
18
- export interface TabPaneProps {
19
- name?: TabsValue;
20
- title?: React.ReactNode | ((active: boolean) => React.ReactNode);
21
- description?: React.ReactNode | ((active: boolean) => React.ReactNode);
22
- badge?: React.ReactNode;
23
- disabled?: boolean;
24
- children?: React.ReactNode;
25
- }
26
- export interface TabsProps extends Omit<ViewProps, 'children' | 'onLayout'> {
27
- children?: React.ReactNode;
28
- active?: TabsValue;
29
- defaultActive?: TabsValue;
30
- type?: TabsType;
31
- align?: TabsAlign;
32
- color?: string;
33
- background?: string;
34
- border?: boolean;
35
- lineWidth?: number | string;
36
- lineHeight?: number | string;
37
- titleActiveColor?: string;
38
- titleInactiveColor?: string;
39
- tokensOverride?: DeepPartial<TabsTokens>;
40
- ellipsis?: boolean;
41
- swipeThreshold?: number;
42
- animated?: boolean;
43
- duration?: number;
44
- beforeChange?: (name: TabsValue) => boolean | Promise<boolean>;
45
- lazyRender?: boolean;
46
- lazyRenderPlaceholder?: React.ReactNode;
47
- swipeable?: boolean | TabsSwipeableConfig;
48
- scrollable?: boolean;
49
- navLeft?: React.ReactNode;
50
- navRight?: React.ReactNode;
51
- navBottom?: React.ReactNode;
52
- tabBarStyle?: StyleProp<ViewStyle>;
53
- tabStyle?: StyleProp<ViewStyle>;
54
- titleStyle?: StyleProp<TextStyle>;
55
- descriptionStyle?: StyleProp<TextStyle>;
56
- contentStyle?: StyleProp<ViewStyle>;
57
- onClickTab?: (payload: TabsClickEvent) => void;
58
- onChange?: (name: TabsValue, index: number) => void;
59
- }
60
- export interface TabsRef {
61
- scrollTo: (name: TabsValue, options?: {
62
- immediate?: boolean;
63
- }) => void;
64
- }
1
+ import type*as React from'react';import type{StyleProp,TextStyle,ViewProps,ViewStyle}from'react-native';import type{DeepPartial}from'../../types';import type{TabsTokens}from'./tokens';export type TabsType='line'|'card'|'capsule'|'jumbo';export type TabsAlign='start'|'center';export type TabsValue=string|number;export interface TabsSwipeableConfig{autoHeight?:boolean;preventScroll?:boolean;}export interface TabsClickEvent{name:TabsValue;index:number;disabled:boolean;event:unknown;}export interface TabPaneProps{name?:TabsValue;title?:React.ReactNode|((active:boolean)=>React.ReactNode);description?:React.ReactNode|((active:boolean)=>React.ReactNode);badge?:React.ReactNode;disabled?:boolean;children?:React.ReactNode;}export interface TabsProps extends Omit<ViewProps,'children'|'onLayout'>{children?:React.ReactNode;active?:TabsValue;defaultActive?:TabsValue;type?:TabsType;align?:TabsAlign;color?:string;background?:string;border?:boolean;lineWidth?:number|string;lineHeight?:number|string;titleActiveColor?:string;titleInactiveColor?:string;tokensOverride?:DeepPartial<TabsTokens>;ellipsis?:boolean;swipeThreshold?:number;animated?:boolean;duration?:number;beforeChange?:(name:TabsValue)=>boolean|Promise<boolean>;lazyRender?:boolean;lazyRenderPlaceholder?:React.ReactNode;swipeable?:boolean|TabsSwipeableConfig;scrollable?:boolean;navLeft?:React.ReactNode;navRight?:React.ReactNode;navBottom?:React.ReactNode;tabBarStyle?:StyleProp<ViewStyle>;tabStyle?:StyleProp<ViewStyle>;titleStyle?:StyleProp<TextStyle>;descriptionStyle?:StyleProp<TextStyle>;contentStyle?:StyleProp<ViewStyle>;onClickTab?:(payload:TabsClickEvent)=>void;onChange?:(name:TabsValue,index:number)=>void;}export interface TabsRef{scrollTo:(name:TabsValue,options?:{immediate?:boolean;})=>void;}
@@ -1,3 +1 @@
1
- import React from 'react';
2
- import type { TagProps } from './types';
3
- export declare const Tag: React.NamedExoticComponent<TagProps>;
1
+ import React from'react';import type{TagProps}from'./types';export declare const Tag:React.NamedExoticComponent<TagProps>;
@@ -1,3 +1 @@
1
- import { Tag } from './Tag';
2
- export type { TagProps, TagSize, TagType } from './types';
3
- export default Tag;
1
+ import{Tag}from'./Tag';export type{TagProps,TagSize,TagType}from'./types';export default Tag;
@@ -1,4 +1 @@
1
- import type { Foundations } from '../../design-system/tokens';
2
- import type { TagTokens } from './types';
3
- export declare const createTagTokens: (foundations: Foundations) => TagTokens;
4
- export declare const useTagTokens: (overrides?: import("../..").DeepPartial<TagTokens> | undefined) => TagTokens;
1
+ import type{Foundations}from'../../design-system/tokens';import type{TagTokens}from'./types';export declare const createTagTokens:(foundations:Foundations)=>TagTokens;export declare const useTagTokens:(overrides?:import("../..").DeepPartial<TagTokens>|undefined)=>TagTokens;
@@ -1,69 +1 @@
1
- import type { PressableProps, StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
2
- import type { DeepPartial } from '../../types';
3
- export type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
4
- export type TagSize = 'mini' | 'small' | 'medium' | 'large';
5
- export interface TagTokens {
6
- defaults: {
7
- type: TagType;
8
- size: TagSize;
9
- plain: boolean;
10
- round: boolean;
11
- mark: boolean;
12
- show: boolean;
13
- pressedOpacity: number;
14
- };
15
- layout: {
16
- container: ViewStyle;
17
- close: ViewStyle;
18
- };
19
- colors: {
20
- plainBackground: string;
21
- toneMap: Record<TagType, {
22
- background: string;
23
- text: string;
24
- }>;
25
- };
26
- typography: {
27
- fontFamily: string;
28
- lineHeightMultiplier: number;
29
- fontWeight: TextStyle['fontWeight'];
30
- };
31
- sizing: {
32
- sizes: Record<TagSize, {
33
- fontSize: number;
34
- paddingHorizontal: number;
35
- paddingVertical: number;
36
- borderRadius: number;
37
- lineHeight: number;
38
- }>;
39
- closeIconSize: number;
40
- };
41
- radii: {
42
- round: number;
43
- markLeading: number;
44
- };
45
- borders: {
46
- width: number;
47
- };
48
- spacing: {
49
- closeGap: number;
50
- closeHitSlop: number;
51
- };
52
- }
53
- export interface TagProps extends ViewProps {
54
- children?: React.ReactNode;
55
- type?: TagType;
56
- size?: TagSize;
57
- color?: string;
58
- textColor?: string;
59
- plain?: boolean;
60
- round?: boolean;
61
- mark?: boolean;
62
- show?: boolean;
63
- closeable?: boolean;
64
- closeIcon?: React.ReactNode | ((color: string, size: number) => React.ReactNode);
65
- onClose?: () => void;
66
- onPress?: PressableProps['onPress'];
67
- textStyle?: StyleProp<TextStyle>;
68
- tokensOverride?: DeepPartial<TagTokens>;
69
- }
1
+ import type{PressableProps,StyleProp,TextStyle,ViewProps,ViewStyle}from'react-native';import type{DeepPartial}from'../../types';export type TagType='default'|'primary'|'success'|'warning'|'danger';export type TagSize='mini'|'small'|'medium'|'large';export interface TagTokens{defaults:{type:TagType;size:TagSize;plain:boolean;round:boolean;mark:boolean;show:boolean;pressedOpacity:number;};layout:{container:ViewStyle;close:ViewStyle;};colors:{plainBackground:string;toneMap:Record<TagType,{background:string;text:string;}>;};typography:{fontFamily:string;lineHeightMultiplier:number;fontWeight:TextStyle['fontWeight'];};sizing:{sizes:Record<TagSize,{fontSize:number;paddingHorizontal:number;paddingVertical:number;borderRadius:number;lineHeight:number;}>;closeIconSize:number;};radii:{round:number;markLeading:number;};borders:{width:number;};spacing:{closeGap:number;closeHitSlop:number;};}export interface TagProps extends ViewProps{children?:React.ReactNode;type?:TagType;size?:TagSize;color?:string;textColor?:string;plain?:boolean;round?:boolean;mark?:boolean;show?:boolean;closeable?:boolean;closeIcon?:React.ReactNode|((color:string,size:number)=>React.ReactNode);onClose?:()=>void;onPress?:PressableProps['onPress'];textStyle?:StyleProp<TextStyle>;tokensOverride?:DeepPartial<TagTokens>;}