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,8 +1 @@
1
- import { CellGroup } from './CellGroup';
2
- declare const Cell: import("react").NamedExoticComponent<import("./types").CellProps & import("react").RefAttributes<import("react-native").View>> & {
3
- Group: import("react").NamedExoticComponent<import("./types").CellGroupProps>;
4
- };
5
- export default Cell;
6
- export { Cell };
7
- export { CellGroup };
8
- export type { CellProps, CellGroupProps, CellArrowDirection, CellSize } from './types';
1
+ import{CellGroup}from'./CellGroup';declare const Cell:import("react").NamedExoticComponent<import("./types").CellProps&import("react").RefAttributes<import("react-native").View>>&{Group:import("react").NamedExoticComponent<import("./types").CellGroupProps>;};export default Cell;export{Cell};export{CellGroup};export type{CellProps,CellGroupProps,CellArrowDirection,CellSize}from'./types';
@@ -1,4 +1 @@
1
- import type { Foundations } from '../../design-system/tokens';
2
- import type { CellTokens } from './types';
3
- export declare const createCellTokens: (foundations: Foundations) => CellTokens;
4
- export declare const useCellTokens: (overrides?: import("../..").DeepPartial<CellTokens> | undefined) => CellTokens;
1
+ import type{Foundations}from'../../design-system/tokens';import type{CellTokens}from'./types';export declare const createCellTokens:(foundations:Foundations)=>CellTokens;export declare const useCellTokens:(overrides?:import("../..").DeepPartial<CellTokens>|undefined)=>CellTokens;
@@ -1,112 +1 @@
1
- import type React from 'react';
2
- import type { PressableProps, StyleProp, TextStyle, ViewStyle } from 'react-native';
3
- import type { DeepPartial } from '../../types';
4
- export type CellArrowDirection = 'left' | 'right' | 'up' | 'down';
5
- export type CellSize = 'normal' | 'large';
6
- export interface CellTokens {
7
- defaults: {
8
- border: boolean;
9
- size: CellSize;
10
- arrowDirection: CellArrowDirection;
11
- activeOpacity: number;
12
- groupBorder: boolean;
13
- groupInset: boolean;
14
- groupCard: boolean;
15
- };
16
- layout: {
17
- container: ViewStyle;
18
- containerLarge: ViewStyle;
19
- center: ViewStyle;
20
- body: ViewStyle;
21
- titleRow: ViewStyle;
22
- value: TextStyle;
23
- valueOnly: TextStyle;
24
- valueContainer: ViewStyle;
25
- valueOnlyContainer: ViewStyle;
26
- valueCenter: ViewStyle;
27
- customContent: ViewStyle;
28
- iconWrapper: ViewStyle;
29
- rightIconWrapper: ViewStyle;
30
- hairline: ViewStyle;
31
- groupCardShadow: ViewStyle;
32
- arrowTransforms: Record<CellArrowDirection, ViewStyle>;
33
- };
34
- colors: {
35
- background: string;
36
- ripple: string;
37
- title: string;
38
- label: string;
39
- value: string;
40
- required: string;
41
- border: string;
42
- arrow: string;
43
- groupTitle: string;
44
- groupBodyBackground: string;
45
- };
46
- typography: {
47
- titleSize: number;
48
- lineHeight: number;
49
- titleWeight: TextStyle['fontWeight'];
50
- largeTitleSize: number;
51
- labelSize: number;
52
- largeLabelSize: number;
53
- valueSize: number;
54
- largeValueSize: number;
55
- groupTitleSize: number;
56
- };
57
- sizing: {
58
- paddingVertical: number;
59
- paddingHorizontal: number;
60
- largePaddingVertical: number;
61
- arrowSize: number;
62
- iconSize: number;
63
- groupMarginBottom: number;
64
- groupTitlePaddingHorizontal: number;
65
- groupTitlePaddingVertical: number;
66
- groupInsetMarginHorizontal: number;
67
- };
68
- radii: {
69
- groupInset: number;
70
- };
71
- borders: {
72
- width: number;
73
- };
74
- spacing: {
75
- iconGap: number;
76
- valueGap: number;
77
- extraGap: number;
78
- labelMarginTop: number;
79
- };
80
- }
81
- export interface CellProps extends Omit<PressableProps, 'style' | 'children'> {
82
- title?: React.ReactNode;
83
- value?: React.ReactNode;
84
- label?: React.ReactNode;
85
- extra?: React.ReactNode;
86
- icon?: React.ReactNode;
87
- rightIcon?: React.ReactNode;
88
- border?: boolean;
89
- clickable?: boolean;
90
- isLink?: boolean;
91
- required?: boolean;
92
- center?: boolean;
93
- size?: CellSize;
94
- arrowDirection?: CellArrowDirection;
95
- tokensOverride?: DeepPartial<CellTokens>;
96
- children?: React.ReactNode;
97
- titleStyle?: StyleProp<TextStyle>;
98
- valueStyle?: StyleProp<TextStyle>;
99
- labelStyle?: StyleProp<TextStyle>;
100
- contentStyle?: StyleProp<ViewStyle>;
101
- style?: StyleProp<ViewStyle>;
102
- }
103
- export interface CellGroupProps {
104
- children?: React.ReactNode;
105
- title?: React.ReactNode;
106
- border?: boolean;
107
- inset?: boolean;
108
- card?: boolean;
109
- style?: StyleProp<ViewStyle>;
110
- bodyStyle?: StyleProp<ViewStyle>;
111
- tokensOverride?: DeepPartial<CellTokens>;
112
- }
1
+ import type React from'react';import type{PressableProps,StyleProp,TextStyle,ViewStyle}from'react-native';import type{DeepPartial}from'../../types';export type CellArrowDirection='left'|'right'|'up'|'down';export type CellSize='normal'|'large';export interface CellTokens{defaults:{border:boolean;size:CellSize;arrowDirection:CellArrowDirection;activeOpacity:number;groupBorder:boolean;groupInset:boolean;groupCard:boolean;};layout:{container:ViewStyle;containerLarge:ViewStyle;center:ViewStyle;body:ViewStyle;titleRow:ViewStyle;value:TextStyle;valueOnly:TextStyle;valueContainer:ViewStyle;valueOnlyContainer:ViewStyle;valueCenter:ViewStyle;customContent:ViewStyle;iconWrapper:ViewStyle;rightIconWrapper:ViewStyle;hairline:ViewStyle;groupCardShadow:ViewStyle;arrowTransforms:Record<CellArrowDirection,ViewStyle>;};colors:{background:string;ripple:string;title:string;label:string;value:string;required:string;border:string;arrow:string;groupTitle:string;groupBodyBackground:string;};typography:{titleSize:number;lineHeight:number;titleWeight:TextStyle['fontWeight'];largeTitleSize:number;labelSize:number;largeLabelSize:number;valueSize:number;largeValueSize:number;groupTitleSize:number;};sizing:{paddingVertical:number;paddingHorizontal:number;largePaddingVertical:number;arrowSize:number;iconSize:number;groupMarginBottom:number;groupTitlePaddingHorizontal:number;groupTitlePaddingVertical:number;groupInsetMarginHorizontal:number;};radii:{groupInset:number;};borders:{width:number;};spacing:{iconGap:number;valueGap:number;extraGap:number;labelMarginTop:number;};}export interface CellProps extends Omit<PressableProps,'style'|'children'>{title?:React.ReactNode;value?:React.ReactNode;label?:React.ReactNode;extra?:React.ReactNode;icon?:React.ReactNode;rightIcon?:React.ReactNode;border?:boolean;clickable?:boolean;isLink?:boolean;required?:boolean;center?:boolean;size?:CellSize;arrowDirection?:CellArrowDirection;tokensOverride?:DeepPartial<CellTokens>;children?:React.ReactNode;titleStyle?:StyleProp<TextStyle>;valueStyle?:StyleProp<TextStyle>;labelStyle?:StyleProp<TextStyle>;contentStyle?:StyleProp<ViewStyle>;style?:StyleProp<ViewStyle>;}export interface CellGroupProps{children?:React.ReactNode;title?:React.ReactNode;border?:boolean;inset?:boolean;card?:boolean;style?:StyleProp<ViewStyle>;bodyStyle?:StyleProp<ViewStyle>;tokensOverride?:DeepPartial<CellTokens>;}
@@ -1,5 +1 @@
1
- import React from 'react';
2
- import { View } from 'react-native';
3
- import type { CheckboxProps } from './types';
4
- export declare const Checkbox: React.NamedExoticComponent<CheckboxProps & React.RefAttributes<View>>;
5
- export default Checkbox;
1
+ import React from'react';import{View}from'react-native';import type{CheckboxProps}from'./types';export declare const Checkbox:React.NamedExoticComponent<CheckboxProps&React.RefAttributes<View>>;export default Checkbox;
@@ -1,2 +1 @@
1
- export type { CheckboxGroupContextValue } from './CheckboxGroup';
2
- export { CheckboxGroupContext } from './CheckboxGroup';
1
+ export type{CheckboxGroupContextValue}from'./CheckboxGroup';export{CheckboxGroupContext}from'./CheckboxGroup';
@@ -1,22 +1 @@
1
- import React from 'react';
2
- import { type CheckboxGroupState } from '@react-stately/checkbox';
3
- import type { CheckboxGroupDirection, CheckboxGroupProps, CheckboxIconRender, CheckboxShape, CheckboxValue } from './types';
4
- export interface CheckboxGroupContextValue {
5
- state: CheckboxGroupState;
6
- direction: CheckboxGroupDirection;
7
- shape?: CheckboxShape;
8
- iconSize?: number;
9
- iconRender?: CheckboxIconRender;
10
- checkedColor?: string;
11
- labelDisabled?: boolean;
12
- max?: number;
13
- registerValue: (key: string, raw: CheckboxValue, disabled?: boolean) => void;
14
- unregisterValue: (key: string) => void;
15
- }
16
- export declare const CheckboxGroupContext: React.Context<CheckboxGroupContextValue | null>;
17
- export declare const CheckboxGroup: React.ForwardRefExoticComponent<CheckboxGroupProps & React.RefAttributes<{
18
- toggleAll: (options?: boolean | {
19
- checked?: boolean;
20
- skipDisabled?: boolean;
21
- }) => void;
22
- }>>;
1
+ import React from'react';import{type CheckboxGroupState}from'@react-stately/checkbox';import type{CheckboxGroupDirection,CheckboxGroupProps,CheckboxIconRender,CheckboxShape,CheckboxValue}from'./types';export interface CheckboxGroupContextValue{state:CheckboxGroupState;direction:CheckboxGroupDirection;shape?:CheckboxShape;iconSize?:number;iconRender?:CheckboxIconRender;checkedColor?:string;labelDisabled?:boolean;max?:number;registerValue:(key:string,raw:CheckboxValue,disabled?:boolean)=>void;unregisterValue:(key:string)=>void;}export declare const CheckboxGroupContext:React.Context<CheckboxGroupContextValue|null>;export declare const CheckboxGroup:React.ForwardRefExoticComponent<CheckboxGroupProps&React.RefAttributes<{toggleAll:(options?:boolean|{checked?:boolean;skipDisabled?:boolean;})=>void;}>>;
@@ -1,7 +1 @@
1
- import { Checkbox as CheckboxBase } from './Checkbox';
2
- import { CheckboxGroup } from './CheckboxGroup';
3
- declare const Checkbox: typeof CheckboxBase & {
4
- Group: typeof CheckboxGroup;
5
- };
6
- export { Checkbox, CheckboxGroup };
7
- export type { CheckboxProps, CheckboxGroupProps, CheckboxValue } from './types';
1
+ import{Checkbox as CheckboxBase}from'./Checkbox';import{CheckboxGroup}from'./CheckboxGroup';declare const Checkbox:typeof CheckboxBase&{Group:typeof CheckboxGroup;};export{Checkbox,CheckboxGroup};export type{CheckboxProps,CheckboxGroupProps,CheckboxValue}from'./types';
@@ -1,2 +1 @@
1
- import type { CheckboxTokens } from './types';
2
- export declare const useCheckboxTokens: (overrides?: import("../..").DeepPartial<CheckboxTokens> | undefined) => CheckboxTokens;
1
+ import type{CheckboxTokens}from'./types';export declare const useCheckboxTokens:(overrides?:import("../..").DeepPartial<CheckboxTokens>|undefined)=>CheckboxTokens;
@@ -1,99 +1 @@
1
- import type React from 'react';
2
- import type { GestureResponderEvent, PressableProps, StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
3
- import type { DeepPartial } from '../../types';
4
- export type CheckboxShape = 'round' | 'square';
5
- export type CheckboxLabelPosition = 'left' | 'right';
6
- export type CheckboxGroupDirection = 'horizontal' | 'vertical';
7
- export type CheckboxValue = string | number;
8
- export type CheckboxIconRender = (params: {
9
- checked: boolean;
10
- disabled: boolean;
11
- }) => React.ReactNode;
12
- export interface CheckboxTokens {
13
- defaults: {
14
- shape: CheckboxShape;
15
- iconSize: number;
16
- labelPosition: CheckboxLabelPosition;
17
- labelDisabled: boolean;
18
- bindGroup: boolean;
19
- groupDisabled: boolean;
20
- groupDirection: CheckboxGroupDirection;
21
- };
22
- layout: {
23
- container: ViewStyle;
24
- iconWrapper: ViewStyle;
25
- icon: ViewStyle;
26
- checkmark: TextStyle;
27
- label: TextStyle;
28
- labelWrapper: ViewStyle;
29
- groupHorizontal: ViewStyle;
30
- groupVertical: ViewStyle;
31
- groupItem: ViewStyle;
32
- };
33
- colors: {
34
- border: string;
35
- background: string;
36
- checkedBackground: string;
37
- disabledBorder: string;
38
- disabledBackground: string;
39
- checkmark: string;
40
- label: string;
41
- labelDisabled: string;
42
- };
43
- typography: {
44
- fontSize: number;
45
- fontFamily: string;
46
- fontWeight: TextStyle['fontWeight'];
47
- lineHeightMultiplier: number;
48
- };
49
- spacing: {
50
- gap: number;
51
- groupGap: number;
52
- };
53
- radii: {
54
- square: number;
55
- };
56
- borders: {
57
- width: number;
58
- };
59
- icon: {
60
- scale: number;
61
- };
62
- }
63
- export interface CheckboxProps extends Omit<PressableProps, 'onPress'> {
64
- name?: CheckboxValue;
65
- value?: CheckboxValue;
66
- shape?: CheckboxShape;
67
- iconSize?: number;
68
- iconRender?: CheckboxIconRender;
69
- checkedColor?: string;
70
- labelPosition?: CheckboxLabelPosition;
71
- labelDisabled?: boolean;
72
- disabled?: boolean;
73
- checked?: boolean;
74
- defaultChecked?: boolean;
75
- style?: StyleProp<ViewStyle>;
76
- labelStyle?: StyleProp<TextStyle>;
77
- tokensOverride?: DeepPartial<CheckboxTokens>;
78
- children?: React.ReactNode;
79
- bindGroup?: boolean;
80
- onClick?: (event: GestureResponderEvent) => void;
81
- onChange?: (checked: boolean) => void;
82
- 'aria-label'?: string;
83
- }
84
- export interface CheckboxGroupProps extends ViewProps {
85
- value?: CheckboxValue[];
86
- defaultValue?: CheckboxValue[];
87
- disabled?: boolean;
88
- max?: number;
89
- direction?: CheckboxGroupDirection;
90
- shape?: CheckboxShape;
91
- iconSize?: number;
92
- iconRender?: CheckboxIconRender;
93
- checkedColor?: string;
94
- labelDisabled?: boolean;
95
- gap?: number;
96
- tokensOverride?: DeepPartial<CheckboxTokens>;
97
- onChange?: (value: CheckboxValue[]) => void;
98
- children?: React.ReactNode;
99
- }
1
+ import type React from'react';import type{GestureResponderEvent,PressableProps,StyleProp,TextStyle,ViewProps,ViewStyle}from'react-native';import type{DeepPartial}from'../../types';export type CheckboxShape='round'|'square';export type CheckboxLabelPosition='left'|'right';export type CheckboxGroupDirection='horizontal'|'vertical';export type CheckboxValue=string|number;export type CheckboxIconRender=(params:{checked:boolean;disabled:boolean;})=>React.ReactNode;export interface CheckboxTokens{defaults:{shape:CheckboxShape;iconSize:number;labelPosition:CheckboxLabelPosition;labelDisabled:boolean;bindGroup:boolean;groupDisabled:boolean;groupDirection:CheckboxGroupDirection;};layout:{container:ViewStyle;iconWrapper:ViewStyle;icon:ViewStyle;checkmark:TextStyle;label:TextStyle;labelWrapper:ViewStyle;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:TextStyle['fontWeight'];lineHeightMultiplier:number;};spacing:{gap:number;groupGap:number;};radii:{square:number;};borders:{width:number;};icon:{scale:number;};}export interface CheckboxProps extends Omit<PressableProps,'onPress'>{name?:CheckboxValue;value?:CheckboxValue;shape?:CheckboxShape;iconSize?:number;iconRender?:CheckboxIconRender;checkedColor?:string;labelPosition?:CheckboxLabelPosition;labelDisabled?:boolean;disabled?:boolean;checked?:boolean;defaultChecked?:boolean;style?:StyleProp<ViewStyle>;labelStyle?:StyleProp<TextStyle>;tokensOverride?:DeepPartial<CheckboxTokens>;children?:React.ReactNode;bindGroup?:boolean;onClick?:(event:GestureResponderEvent)=>void;onChange?:(checked:boolean)=>void;'aria-label'?:string;}export interface CheckboxGroupProps extends ViewProps{value?:CheckboxValue[];defaultValue?:CheckboxValue[];disabled?:boolean;max?:number;direction?:CheckboxGroupDirection;shape?:CheckboxShape;iconSize?:number;iconRender?:CheckboxIconRender;checkedColor?:string;labelDisabled?:boolean;gap?:number;tokensOverride?:DeepPartial<CheckboxTokens>;onChange?:(value:CheckboxValue[])=>void;children?:React.ReactNode;}
@@ -1,5 +1 @@
1
- import React from 'react';
2
- import type { CircleProps } from './types';
3
- export declare const Circle: React.NamedExoticComponent<CircleProps>;
4
- export type { CircleLineCap, CircleProps, CircleStartPosition, CircleTokens } from './types';
5
- export default Circle;
1
+ import React from'react';import type{CircleProps}from'./types';export declare const Circle:React.NamedExoticComponent<CircleProps>;export type{CircleLineCap,CircleProps,CircleStartPosition,CircleTokens}from'./types';export default Circle;
@@ -1,3 +1 @@
1
- import Circle from './Circle';
2
- export type { CircleProps, CircleStartPosition, CircleLineCap } from './Circle';
3
- export default Circle;
1
+ import Circle from'./Circle';export type{CircleProps,CircleStartPosition,CircleLineCap}from'./Circle';export default Circle;
@@ -1,4 +1 @@
1
- import type { Foundations } from '../../design-system/tokens';
2
- import type { CircleTokens } from './types';
3
- export declare const createCircleTokens: (foundations: Foundations) => CircleTokens;
4
- export declare const useCircleTokens: (overrides?: import("../..").DeepPartial<CircleTokens> | undefined) => CircleTokens;
1
+ import type{Foundations}from'../../design-system/tokens';import type{CircleTokens}from'./types';export declare const createCircleTokens:(foundations:Foundations)=>CircleTokens;export declare const useCircleTokens:(overrides?:import("../..").DeepPartial<CircleTokens>|undefined)=>CircleTokens;
@@ -1,51 +1 @@
1
- import type React from 'react';
2
- import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
3
- import type { DeepPartial } from '../../types';
4
- export type CircleStartPosition = 'top' | 'right' | 'bottom' | 'left';
5
- export type CircleLineCap = 'round' | 'butt' | 'square';
6
- export interface CircleTokens {
7
- defaults: {
8
- rate: number;
9
- size: number;
10
- strokeWidth: number;
11
- fill: string;
12
- clockwise: boolean;
13
- startPosition: CircleStartPosition;
14
- lineCap: CircleLineCap;
15
- animated: boolean;
16
- animationDuration: number;
17
- };
18
- layout: {
19
- root: ViewStyle;
20
- content: ViewStyle;
21
- text: TextStyle;
22
- webRing: ViewStyle;
23
- webInner: ViewStyle;
24
- };
25
- colors: {
26
- color: string;
27
- layerColor: string;
28
- text: string;
29
- };
30
- typography: {
31
- fontSize: number;
32
- lineHeight: number;
33
- };
34
- }
35
- export interface CircleProps {
36
- rate?: number | string;
37
- size?: number | string;
38
- strokeWidth?: number | string;
39
- color?: string;
40
- layerColor?: string;
41
- fill?: string;
42
- clockwise?: boolean;
43
- startPosition?: CircleStartPosition;
44
- lineCap?: CircleLineCap;
45
- animated?: boolean;
46
- animationDuration?: number;
47
- style?: StyleProp<ViewStyle>;
48
- textStyle?: StyleProp<TextStyle>;
49
- children?: React.ReactNode;
50
- tokensOverride?: DeepPartial<CircleTokens>;
51
- }
1
+ import type React from'react';import type{StyleProp,TextStyle,ViewStyle}from'react-native';import type{DeepPartial}from'../../types';export type CircleStartPosition='top'|'right'|'bottom'|'left';export type CircleLineCap='round'|'butt'|'square';export interface CircleTokens{defaults:{rate:number;size:number;strokeWidth:number;fill:string;clockwise:boolean;startPosition:CircleStartPosition;lineCap:CircleLineCap;animated:boolean;animationDuration:number;};layout:{root:ViewStyle;content:ViewStyle;text:TextStyle;webRing:ViewStyle;webInner:ViewStyle;};colors:{color:string;layerColor:string;text:string;};typography:{fontSize:number;lineHeight:number;};}export interface CircleProps{rate?:number|string;size?:number|string;strokeWidth?:number|string;color?:string;layerColor?:string;fill?:string;clockwise?:boolean;startPosition?:CircleStartPosition;lineCap?:CircleLineCap;animated?:boolean;animationDuration?:number;style?:StyleProp<ViewStyle>;textStyle?:StyleProp<TextStyle>;children?:React.ReactNode;tokensOverride?:DeepPartial<CircleTokens>;}
@@ -1,43 +1 @@
1
- import React from 'react';
2
- import { type ViewProps, type TextProps } from 'react-native';
3
- import type { DeepPartial } from '../../types';
4
- import type { CollapseTokens } from './types';
5
- export type CollapseValue = string | string[];
6
- export interface CollapseProps extends ViewProps {
7
- children?: React.ReactNode;
8
- accordion?: boolean;
9
- value?: CollapseValue;
10
- defaultValue?: CollapseValue;
11
- onChange?: (value: CollapseValue) => void;
12
- border?: boolean;
13
- iconPosition?: 'left' | 'right';
14
- expandIcon?: React.ReactNode | ((active: boolean) => React.ReactNode);
15
- disabled?: boolean;
16
- tokensOverride?: DeepPartial<CollapseTokens>;
17
- }
18
- export interface CollapsePanelProps extends ViewProps {
19
- index?: number;
20
- name?: string;
21
- title?: React.ReactNode;
22
- description?: React.ReactNode;
23
- label?: React.ReactNode;
24
- icon?: React.ReactNode;
25
- extra?: React.ReactNode;
26
- value?: React.ReactNode;
27
- border?: boolean;
28
- isLink?: boolean;
29
- size?: 'normal' | 'large';
30
- disabled?: boolean;
31
- readOnly?: boolean;
32
- children?: React.ReactNode;
33
- titleStyle?: TextProps['style'];
34
- descriptionStyle?: TextProps['style'];
35
- }
36
- export type CollapsePanelInstance = {
37
- toggle: (expand?: boolean) => void;
38
- };
39
- export declare const Collapse: React.NamedExoticComponent<CollapseProps> & {
40
- Panel: React.ForwardRefExoticComponent<CollapsePanelProps & React.RefAttributes<CollapsePanelInstance>>;
41
- Item: React.ForwardRefExoticComponent<CollapsePanelProps & React.RefAttributes<CollapsePanelInstance>>;
42
- };
43
- export default Collapse;
1
+ import React from'react';import{type ViewProps,type TextProps}from'react-native';import type{DeepPartial}from'../../types';import type{CollapseTokens}from'./types';export type CollapseValue=string|string[];export interface CollapseProps extends ViewProps{children?:React.ReactNode;accordion?:boolean;value?:CollapseValue;defaultValue?:CollapseValue;onChange?:(value:CollapseValue)=>void;border?:boolean;iconPosition?:'left'|'right';expandIcon?:React.ReactNode|((active:boolean)=>React.ReactNode);disabled?:boolean;tokensOverride?:DeepPartial<CollapseTokens>;}export interface CollapsePanelProps extends ViewProps{index?:number;name?:string;title?:React.ReactNode;description?:React.ReactNode;label?:React.ReactNode;icon?:React.ReactNode;extra?:React.ReactNode;value?:React.ReactNode;border?:boolean;isLink?:boolean;size?:'normal'|'large';disabled?:boolean;readOnly?:boolean;children?:React.ReactNode;titleStyle?:TextProps['style'];descriptionStyle?:TextProps['style'];}export type CollapsePanelInstance={toggle:(expand?:boolean)=>void;};export declare const Collapse:React.NamedExoticComponent<CollapseProps>&{Panel:React.ForwardRefExoticComponent<CollapsePanelProps&React.RefAttributes<CollapsePanelInstance>>;Item:React.ForwardRefExoticComponent<CollapsePanelProps&React.RefAttributes<CollapsePanelInstance>>;};export default Collapse;
@@ -1,3 +1 @@
1
- import { Collapse } from './Collapse';
2
- export type { CollapseProps, CollapsePanelProps, CollapsePanelInstance, CollapseValue } from './Collapse';
3
- export default Collapse;
1
+ import{Collapse}from'./Collapse';export type{CollapseProps,CollapsePanelProps,CollapsePanelInstance,CollapseValue}from'./Collapse';export default Collapse;
@@ -1,4 +1 @@
1
- import type { Foundations } from '../../design-system/tokens';
2
- import type { CollapseTokens } from './types';
3
- export declare const createCollapseTokens: (foundations: Foundations) => CollapseTokens;
4
- export declare const useCollapseTokens: (overrides?: import("../..").DeepPartial<CollapseTokens> | undefined) => CollapseTokens;
1
+ import type{Foundations}from'../../design-system/tokens';import type{CollapseTokens}from'./types';export declare const createCollapseTokens:(foundations:Foundations)=>CollapseTokens;export declare const useCollapseTokens:(overrides?:import("../..").DeepPartial<CollapseTokens>|undefined)=>CollapseTokens;
@@ -1,45 +1 @@
1
- import type { TextStyle, ViewStyle } from 'react-native';
2
- export interface CollapseTokens {
3
- defaults: {
4
- accordion: boolean;
5
- border: boolean;
6
- iconPosition: 'left' | 'right';
7
- panelBorder: boolean;
8
- panelIsLink: boolean;
9
- panelSize: 'normal' | 'large';
10
- animationDuration: number;
11
- };
12
- layout: {
13
- container: ViewStyle;
14
- panel: ViewStyle;
15
- hairline: ViewStyle;
16
- headerWrapper: ViewStyle;
17
- bodyWrapper: ViewStyle;
18
- headerIconRow: ViewStyle;
19
- bodyContent: ViewStyle;
20
- };
21
- colors: {
22
- border: string;
23
- title: string;
24
- description: string;
25
- background: string;
26
- active: string;
27
- arrow: string;
28
- disabled: string;
29
- };
30
- typography: {
31
- titleSize: number;
32
- descriptionSize: number;
33
- fontFamily: string;
34
- titleWeight: NonNullable<TextStyle['fontWeight']>;
35
- };
36
- panel: {
37
- borderRadius: number;
38
- };
39
- spacing: {
40
- paddingVertical: number;
41
- paddingHorizontal: number;
42
- descriptionTop: number;
43
- iconGap: number;
44
- };
45
- }
1
+ import type{TextStyle,ViewStyle}from'react-native';export interface CollapseTokens{defaults:{accordion:boolean;border:boolean;iconPosition:'left'|'right';panelBorder:boolean;panelIsLink:boolean;panelSize:'normal'|'large';animationDuration:number;};layout:{container:ViewStyle;panel:ViewStyle;hairline:ViewStyle;headerWrapper:ViewStyle;bodyWrapper:ViewStyle;headerIconRow:ViewStyle;bodyContent:ViewStyle;};colors:{border:string;title:string;description:string;background:string;active:string;arrow:string;disabled:string;};typography:{titleSize:number;descriptionSize:number;fontFamily:string;titleWeight:NonNullable<TextStyle['fontWeight']>;};panel:{borderRadius:number;};spacing:{paddingVertical:number;paddingHorizontal:number;descriptionTop:number;iconGap:number;};}
@@ -1,3 +1 @@
1
- import React from 'react';
2
- import type { ConfigProviderProps } from './types';
3
- export declare const ConfigProvider: React.NamedExoticComponent<ConfigProviderProps>;
1
+ import React from'react';import type{ConfigProviderProps}from'./types';export declare const ConfigProvider:React.NamedExoticComponent<ConfigProviderProps>;
@@ -1,3 +1 @@
1
- import React from 'react';
2
- import type { Direction } from './types';
3
- export declare const DirectionContext: React.Context<Direction>;
1
+ import React from'react';import type{Direction}from'./types';export declare const DirectionContext:React.Context<Direction>;
@@ -1,3 +1 @@
1
- import React from 'react';
2
- import type { Locale } from './locale/types';
3
- export declare const LocaleContext: React.Context<Locale>;
1
+ import React from'react';import type{Locale}from'./locale/types';export declare const LocaleContext:React.Context<Locale>;
@@ -1,6 +1 @@
1
- export { ConfigProvider } from './ConfigProvider';
2
- export { useLocale } from './useLocale';
3
- export { useDirection } from './useDirection';
4
- export { zhCN } from './locale/zh-CN';
5
- export { enUS } from './locale/en-US';
6
- export type { ConfigProviderProps, Direction } from './types';
1
+ export{ConfigProvider}from'./ConfigProvider';export{useLocale}from'./useLocale';export{useDirection}from'./useDirection';export{zhCN}from'./locale/zh-CN';export{enUS}from'./locale/en-US';export type{ConfigProviderProps,Direction}from'./types';
@@ -1,106 +1 @@
1
- export declare const enUS: {
2
- name: string;
3
- tel: string;
4
- save: string;
5
- confirm: string;
6
- cancel: string;
7
- delete: string;
8
- loading: string;
9
- noCoupon: string;
10
- nameEmpty: string;
11
- telInvalid: string;
12
- vanCalendar: {
13
- end: string;
14
- start: string;
15
- title: string;
16
- confirm: string;
17
- startEnd: string;
18
- weekdays: string[];
19
- monthTitle: (year: number, month: number) => string;
20
- rangePrompt: (maxRange: number) => string;
21
- };
22
- vanPicker: {
23
- select: string;
24
- };
25
- vanContactCard: {
26
- addText: string;
27
- };
28
- vanContactList: {
29
- addText: string;
30
- };
31
- vanPagination: {
32
- prev: string;
33
- next: string;
34
- };
35
- vanPullRefresh: {
36
- pulling: string;
37
- loosing: string;
38
- loading: string;
39
- };
40
- vanSubmitBar: {
41
- label: string;
42
- };
43
- vanCoupon: {
44
- unlimited: string;
45
- discount: (discount: number) => string;
46
- condition: (condition: number) => string;
47
- };
48
- vanCouponCell: {
49
- title: string;
50
- count: (count: number) => string;
51
- };
52
- vanCouponList: {
53
- exchange: string;
54
- close: string;
55
- enable: string;
56
- disabled: string;
57
- placeholder: string;
58
- };
59
- vanAddressEdit: {
60
- area: string;
61
- postal: string;
62
- areaEmpty: string;
63
- addressEmpty: string;
64
- postalEmpty: string;
65
- defaultAddress: string;
66
- };
67
- vanAddressEditDetail: {
68
- label: string;
69
- placeholder: string;
70
- };
71
- vanAddressList: {
72
- add: string;
73
- };
74
- vanForm: {
75
- validationFailed: string;
76
- };
77
- vanPopup: {
78
- closeOverlay: string;
79
- closeHint: string;
80
- };
81
- vanToast: {
82
- closeHint: string;
83
- };
84
- vanShareSheet: {
85
- cancel: string;
86
- };
87
- vanNumberKeyboard: {
88
- close: string;
89
- };
90
- vanNoticeBar: {
91
- close: string;
92
- };
93
- vanNavBar: {
94
- back: string;
95
- action: string;
96
- };
97
- vanImage: {
98
- loading: string;
99
- error: string;
100
- };
101
- vanCascader: {
102
- placeholder: string;
103
- loading: string;
104
- close: string;
105
- };
106
- };
1
+ export declare const enUS:{name:string;tel:string;save:string;confirm:string;cancel:string;delete:string;loading:string;noCoupon:string;nameEmpty:string;telInvalid:string;vanCalendar:{end:string;start:string;title:string;confirm:string;startEnd:string;weekdays:string[];monthTitle:(year:number,month:number)=>string;rangePrompt:(maxRange:number)=>string;};vanPicker:{select:string;};vanContactCard:{addText:string;};vanContactList:{addText:string;};vanPagination:{prev:string;next:string;};vanPullRefresh:{pulling:string;loosing:string;loading:string;};vanSubmitBar:{label:string;};vanCoupon:{unlimited:string;discount:(discount:number)=>string;condition:(condition:number)=>string;};vanCouponCell:{title:string;count:(count:number)=>string;};vanCouponList:{exchange:string;close:string;enable:string;disabled:string;placeholder:string;};vanAddressEdit:{area:string;postal:string;areaEmpty:string;addressEmpty:string;postalEmpty:string;defaultAddress:string;};vanAddressEditDetail:{label:string;placeholder:string;};vanAddressList:{add:string;};vanForm:{validationFailed:string;};vanPopup:{closeOverlay:string;closeHint:string;};vanToast:{closeHint:string;};vanShareSheet:{cancel:string;};vanNumberKeyboard:{close:string;};vanNoticeBar:{close:string;};vanNavBar:{back:string;action:string;};vanImage:{loading:string;error:string;};vanCascader:{placeholder:string;loading:string;close:string;};};