@unif/react-native-ui 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +103 -0
  3. package/lib/module/README.md +99 -0
  4. package/lib/module/action-sheet/index.js +63 -0
  5. package/lib/module/action-sheet/index.js.map +1 -0
  6. package/lib/module/action-sheet/index.md +69 -0
  7. package/lib/module/action-sheet/style/index.js +38 -0
  8. package/lib/module/action-sheet/style/index.js.map +1 -0
  9. package/lib/module/avatar/index.js +42 -0
  10. package/lib/module/avatar/index.js.map +1 -0
  11. package/lib/module/avatar/index.md +51 -0
  12. package/lib/module/avatar/style/index.js +17 -0
  13. package/lib/module/avatar/style/index.js.map +1 -0
  14. package/lib/module/button/index.js +52 -0
  15. package/lib/module/button/index.js.map +1 -0
  16. package/lib/module/button/index.md +90 -0
  17. package/lib/module/button/style/index.js +94 -0
  18. package/lib/module/button/style/index.js.map +1 -0
  19. package/lib/module/center/index.js +21 -0
  20. package/lib/module/center/index.js.map +1 -0
  21. package/lib/module/center/index.md +28 -0
  22. package/lib/module/center/style/index.js +10 -0
  23. package/lib/module/center/style/index.js.map +1 -0
  24. package/lib/module/chip/index.js +59 -0
  25. package/lib/module/chip/index.js.map +1 -0
  26. package/lib/module/chip/index.md +60 -0
  27. package/lib/module/chip/style/index.js +40 -0
  28. package/lib/module/chip/style/index.js.map +1 -0
  29. package/lib/module/column/index.js +30 -0
  30. package/lib/module/column/index.js.map +1 -0
  31. package/lib/module/column/index.md +34 -0
  32. package/lib/module/column/style/index.js +9 -0
  33. package/lib/module/column/style/index.js.map +1 -0
  34. package/lib/module/divider/index.js +21 -0
  35. package/lib/module/divider/index.js.map +1 -0
  36. package/lib/module/divider/index.md +44 -0
  37. package/lib/module/divider/style/index.js +17 -0
  38. package/lib/module/divider/style/index.js.map +1 -0
  39. package/lib/module/hooks/index.js +4 -0
  40. package/lib/module/hooks/index.js.map +1 -0
  41. package/lib/module/hooks/index.md +71 -0
  42. package/lib/module/hooks/useMergeStyles.js +27 -0
  43. package/lib/module/hooks/useMergeStyles.js.map +1 -0
  44. package/lib/module/index.js +29 -0
  45. package/lib/module/index.js.map +1 -0
  46. package/lib/module/input/index.js +69 -0
  47. package/lib/module/input/index.js.map +1 -0
  48. package/lib/module/input/index.md +73 -0
  49. package/lib/module/input/style/index.js +27 -0
  50. package/lib/module/input/style/index.js.map +1 -0
  51. package/lib/module/list-item/index.js +69 -0
  52. package/lib/module/list-item/index.js.map +1 -0
  53. package/lib/module/list-item/index.md +101 -0
  54. package/lib/module/list-item/style/index.js +39 -0
  55. package/lib/module/list-item/style/index.js.map +1 -0
  56. package/lib/module/package.json +1 -0
  57. package/lib/module/popover/index.js +60 -0
  58. package/lib/module/popover/index.js.map +1 -0
  59. package/lib/module/popover/index.md +57 -0
  60. package/lib/module/popover/style/index.js +22 -0
  61. package/lib/module/popover/style/index.js.map +1 -0
  62. package/lib/module/row/index.js +31 -0
  63. package/lib/module/row/index.js.map +1 -0
  64. package/lib/module/row/index.md +46 -0
  65. package/lib/module/row/style/index.js +15 -0
  66. package/lib/module/row/style/index.js.map +1 -0
  67. package/lib/module/space/index.js +20 -0
  68. package/lib/module/space/index.js.map +1 -0
  69. package/lib/module/space/index.md +31 -0
  70. package/lib/module/space/style/index.js +9 -0
  71. package/lib/module/space/style/index.js.map +1 -0
  72. package/lib/module/text/index.js +30 -0
  73. package/lib/module/text/index.js.map +1 -0
  74. package/lib/module/text/index.md +63 -0
  75. package/lib/module/text/style/index.js +51 -0
  76. package/lib/module/text/style/index.js.map +1 -0
  77. package/lib/module/theme/config.js +27 -0
  78. package/lib/module/theme/config.js.map +1 -0
  79. package/lib/module/theme/tokens.js +67 -0
  80. package/lib/module/theme/tokens.js.map +1 -0
  81. package/lib/module/touchable/index.js +35 -0
  82. package/lib/module/touchable/index.js.map +1 -0
  83. package/lib/module/touchable/index.md +42 -0
  84. package/lib/module/touchable/style/index.js +9 -0
  85. package/lib/module/touchable/style/index.js.map +1 -0
  86. package/lib/module/wave-animation/index.js +67 -0
  87. package/lib/module/wave-animation/index.js.map +1 -0
  88. package/lib/module/wave-animation/index.md +50 -0
  89. package/lib/typescript/jest.setup.d.ts +1 -0
  90. package/lib/typescript/jest.setup.d.ts.map +1 -0
  91. package/lib/typescript/package.json +1 -0
  92. package/lib/typescript/src/action-sheet/index.d.ts +22 -0
  93. package/lib/typescript/src/action-sheet/index.d.ts.map +1 -0
  94. package/lib/typescript/src/action-sheet/style/index.d.ts +16 -0
  95. package/lib/typescript/src/action-sheet/style/index.d.ts.map +1 -0
  96. package/lib/typescript/src/avatar/index.d.ts +19 -0
  97. package/lib/typescript/src/avatar/index.d.ts.map +1 -0
  98. package/lib/typescript/src/avatar/style/index.d.ts +7 -0
  99. package/lib/typescript/src/avatar/style/index.d.ts.map +1 -0
  100. package/lib/typescript/src/button/index.d.ts +24 -0
  101. package/lib/typescript/src/button/index.d.ts.map +1 -0
  102. package/lib/typescript/src/button/style/index.d.ts +16 -0
  103. package/lib/typescript/src/button/style/index.d.ts.map +1 -0
  104. package/lib/typescript/src/center/index.d.ts +11 -0
  105. package/lib/typescript/src/center/index.d.ts.map +1 -0
  106. package/lib/typescript/src/center/style/index.d.ts +5 -0
  107. package/lib/typescript/src/center/style/index.d.ts.map +1 -0
  108. package/lib/typescript/src/chip/index.d.ts +22 -0
  109. package/lib/typescript/src/chip/index.d.ts.map +1 -0
  110. package/lib/typescript/src/chip/style/index.d.ts +10 -0
  111. package/lib/typescript/src/chip/style/index.d.ts.map +1 -0
  112. package/lib/typescript/src/column/index.d.ts +20 -0
  113. package/lib/typescript/src/column/index.d.ts.map +1 -0
  114. package/lib/typescript/src/column/style/index.d.ts +4 -0
  115. package/lib/typescript/src/column/style/index.d.ts.map +1 -0
  116. package/lib/typescript/src/divider/index.d.ts +13 -0
  117. package/lib/typescript/src/divider/index.d.ts.map +1 -0
  118. package/lib/typescript/src/divider/style/index.d.ts +9 -0
  119. package/lib/typescript/src/divider/style/index.d.ts.map +1 -0
  120. package/lib/typescript/src/hooks/index.d.ts +2 -0
  121. package/lib/typescript/src/hooks/index.d.ts.map +1 -0
  122. package/lib/typescript/src/hooks/useMergeStyles.d.ts +13 -0
  123. package/lib/typescript/src/hooks/useMergeStyles.d.ts.map +1 -0
  124. package/lib/typescript/src/index.d.ts +39 -0
  125. package/lib/typescript/src/index.d.ts.map +1 -0
  126. package/lib/typescript/src/input/index.d.ts +29 -0
  127. package/lib/typescript/src/input/index.d.ts.map +1 -0
  128. package/lib/typescript/src/input/style/index.d.ts +8 -0
  129. package/lib/typescript/src/input/style/index.d.ts.map +1 -0
  130. package/lib/typescript/src/list-item/index.d.ts +25 -0
  131. package/lib/typescript/src/list-item/index.d.ts.map +1 -0
  132. package/lib/typescript/src/list-item/style/index.d.ts +17 -0
  133. package/lib/typescript/src/list-item/style/index.d.ts.map +1 -0
  134. package/lib/typescript/src/popover/index.d.ts +27 -0
  135. package/lib/typescript/src/popover/index.d.ts.map +1 -0
  136. package/lib/typescript/src/popover/style/index.d.ts +7 -0
  137. package/lib/typescript/src/popover/style/index.d.ts.map +1 -0
  138. package/lib/typescript/src/row/index.d.ts +22 -0
  139. package/lib/typescript/src/row/index.d.ts.map +1 -0
  140. package/lib/typescript/src/row/style/index.d.ts +8 -0
  141. package/lib/typescript/src/row/style/index.d.ts.map +1 -0
  142. package/lib/typescript/src/space/index.d.ts +15 -0
  143. package/lib/typescript/src/space/index.d.ts.map +1 -0
  144. package/lib/typescript/src/space/style/index.d.ts +7 -0
  145. package/lib/typescript/src/space/style/index.d.ts.map +1 -0
  146. package/lib/typescript/src/text/index.d.ts +18 -0
  147. package/lib/typescript/src/text/index.d.ts.map +1 -0
  148. package/lib/typescript/src/text/style/index.d.ts +35 -0
  149. package/lib/typescript/src/text/style/index.d.ts.map +1 -0
  150. package/lib/typescript/src/theme/config.d.ts +18 -0
  151. package/lib/typescript/src/theme/config.d.ts.map +1 -0
  152. package/lib/typescript/src/theme/tokens.d.ts +61 -0
  153. package/lib/typescript/src/theme/tokens.d.ts.map +1 -0
  154. package/lib/typescript/src/touchable/index.d.ts +19 -0
  155. package/lib/typescript/src/touchable/index.d.ts.map +1 -0
  156. package/lib/typescript/src/touchable/style/index.d.ts +4 -0
  157. package/lib/typescript/src/touchable/style/index.d.ts.map +1 -0
  158. package/lib/typescript/src/wave-animation/index.d.ts +20 -0
  159. package/lib/typescript/src/wave-animation/index.d.ts.map +1 -0
  160. package/lib/typescript/tests/component/component.coverage.test.d.ts +2 -0
  161. package/lib/typescript/tests/component/component.coverage.test.d.ts.map +1 -0
  162. package/lib/typescript/tests/component/component.interaction.test.d.ts +2 -0
  163. package/lib/typescript/tests/component/component.interaction.test.d.ts.map +1 -0
  164. package/lib/typescript/tests/component/component.snapshot.test.d.ts +2 -0
  165. package/lib/typescript/tests/component/component.snapshot.test.d.ts.map +1 -0
  166. package/lib/typescript/tests/e2e/app.e2e.test.d.ts +2 -0
  167. package/lib/typescript/tests/e2e/app.e2e.test.d.ts.map +1 -0
  168. package/lib/typescript/tests/integration/ui.integration.test.d.ts +2 -0
  169. package/lib/typescript/tests/integration/ui.integration.test.d.ts.map +1 -0
  170. package/lib/typescript/tests/unit/mergeStyles.unit.test.d.ts +2 -0
  171. package/lib/typescript/tests/unit/mergeStyles.unit.test.d.ts.map +1 -0
  172. package/lib/typescript/tests/unit/public-api.unit.test.d.ts +2 -0
  173. package/lib/typescript/tests/unit/public-api.unit.test.d.ts.map +1 -0
  174. package/lib/typescript/tests/unit/theme-config.unit.test.d.ts +2 -0
  175. package/lib/typescript/tests/unit/theme-config.unit.test.d.ts.map +1 -0
  176. package/package.json +134 -0
  177. package/src/README.md +99 -0
  178. package/src/action-sheet/index.md +69 -0
  179. package/src/action-sheet/index.tsx +85 -0
  180. package/src/action-sheet/style/index.tsx +52 -0
  181. package/src/avatar/index.md +51 -0
  182. package/src/avatar/index.tsx +56 -0
  183. package/src/avatar/style/index.tsx +21 -0
  184. package/src/button/index.md +90 -0
  185. package/src/button/index.tsx +86 -0
  186. package/src/button/style/index.tsx +67 -0
  187. package/src/center/index.md +28 -0
  188. package/src/center/index.tsx +18 -0
  189. package/src/center/style/index.tsx +8 -0
  190. package/src/chip/index.md +60 -0
  191. package/src/chip/index.tsx +80 -0
  192. package/src/chip/style/index.tsx +47 -0
  193. package/src/column/index.md +34 -0
  194. package/src/column/index.tsx +43 -0
  195. package/src/column/style/index.tsx +7 -0
  196. package/src/divider/index.md +44 -0
  197. package/src/divider/index.tsx +30 -0
  198. package/src/divider/style/index.tsx +13 -0
  199. package/src/hooks/index.md +71 -0
  200. package/src/hooks/index.ts +1 -0
  201. package/src/hooks/useMergeStyles.ts +27 -0
  202. package/src/index.tsx +49 -0
  203. package/src/input/index.md +73 -0
  204. package/src/input/index.tsx +95 -0
  205. package/src/input/style/index.tsx +32 -0
  206. package/src/list-item/index.md +101 -0
  207. package/src/list-item/index.tsx +91 -0
  208. package/src/list-item/style/index.tsx +41 -0
  209. package/src/popover/index.md +57 -0
  210. package/src/popover/index.tsx +80 -0
  211. package/src/popover/style/index.tsx +23 -0
  212. package/src/row/index.md +46 -0
  213. package/src/row/index.tsx +47 -0
  214. package/src/row/style/index.tsx +14 -0
  215. package/src/space/index.md +31 -0
  216. package/src/space/index.tsx +28 -0
  217. package/src/space/style/index.tsx +3 -0
  218. package/src/text/index.md +63 -0
  219. package/src/text/index.tsx +45 -0
  220. package/src/text/style/index.tsx +32 -0
  221. package/src/theme/config.ts +26 -0
  222. package/src/theme/tokens.ts +66 -0
  223. package/src/touchable/index.md +42 -0
  224. package/src/touchable/index.tsx +45 -0
  225. package/src/touchable/style/index.tsx +5 -0
  226. package/src/wave-animation/index.md +50 -0
  227. package/src/wave-animation/index.tsx +93 -0
@@ -0,0 +1,24 @@
1
+ /**
2
+ * 按钮组件
3
+ *
4
+ * type + size + semantic styles。
5
+ */
6
+ import React from 'react';
7
+ import type { ViewStyle } from 'react-native';
8
+ import type { ButtonSemanticStyles } from './style';
9
+ export interface ButtonProps {
10
+ type?: 'primary' | 'outline' | 'ghost' | 'danger';
11
+ size?: 'default' | 'small';
12
+ icon?: React.ReactNode;
13
+ disabled?: boolean;
14
+ block?: boolean;
15
+ loading?: boolean;
16
+ onPress: () => void;
17
+ style?: ViewStyle;
18
+ styles?: Partial<ButtonSemanticStyles>;
19
+ testID?: string;
20
+ children: React.ReactNode;
21
+ }
22
+ declare const Button: React.FC<ButtonProps>;
23
+ export default Button;
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/button/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAWpD,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;IAClD,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC3B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAgDjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { ViewStyle, TextStyle } from 'react-native';
2
+ export type ButtonSemanticStyles = {
3
+ root?: ViewStyle;
4
+ icon?: ViewStyle;
5
+ content?: TextStyle;
6
+ };
7
+ export declare const DEFAULT_STYLES: ButtonSemanticStyles;
8
+ export declare const SIZE_STYLES: Record<string, Partial<ButtonSemanticStyles>>;
9
+ export declare const TYPE_STYLES: Record<string, Partial<ButtonSemanticStyles>>;
10
+ export declare const DISABLED_STYLES: Partial<ButtonSemanticStyles>;
11
+ export declare const BLOCK_STYLES: Partial<ButtonSemanticStyles>;
12
+ export declare const PRESSED_STYLE: ViewStyle;
13
+ export declare const loadingStyle: {
14
+ marginRight: number;
15
+ };
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/button/style/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzD,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,oBAY5B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,oBAAoB,CAAC,CASrE,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAiBrE,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,oBAAoB,CAEzD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,oBAAoB,CAEtD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,SAA4B,CAAC;AAEzD,eAAO,MAAM,YAAY;;CAErB,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 居中布局容器
3
+ *
4
+ * justifyContent + alignItems 均为 'center'。
5
+ */
6
+ import React from 'react';
7
+ import type { ViewProps } from 'react-native';
8
+ export type CenterProps = ViewProps;
9
+ declare const Center: React.FC<CenterProps>;
10
+ export default Center;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/center/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC;AAEpC,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAEjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const baseStyle: {
2
+ justifyContent: "center";
3
+ alignItems: "center";
4
+ };
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/center/style/index.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;CAKb,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Chip 基础组件
3
+ *
4
+ * 胶囊标签,支持选中态、禁用态和图标。
5
+ */
6
+ import React from 'react';
7
+ import type { ViewStyle } from 'react-native';
8
+ import type { ChipSemanticStyles } from './style';
9
+ export interface ChipProps {
10
+ children: React.ReactNode;
11
+ onPress?: () => void;
12
+ selected?: boolean;
13
+ disabled?: boolean;
14
+ size?: 'default' | 'small';
15
+ icon?: React.ReactNode;
16
+ style?: ViewStyle;
17
+ styles?: Partial<ChipSemanticStyles>;
18
+ testID?: string;
19
+ }
20
+ declare const Chip: React.FC<ChipProps>;
21
+ export default Chip;
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/chip/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGlD,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC3B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAkD7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { ViewStyle, TextStyle } from 'react-native';
2
+ export type ChipSemanticStyles = {
3
+ root?: ViewStyle;
4
+ content?: TextStyle;
5
+ };
6
+ export declare const DEFAULT_STYLES: ChipSemanticStyles;
7
+ export declare const SELECTED_STYLES: Partial<ChipSemanticStyles>;
8
+ export declare const DISABLED_STYLES: Partial<ChipSemanticStyles>;
9
+ export declare const SMALL_STYLES: Partial<ChipSemanticStyles>;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chip/style/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,kBAW5B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,kBAAkB,CASvD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,kBAAkB,CAIvD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,kBAAkB,CAQpD,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * 垂直布局容器
3
+ *
4
+ * 语义化的 View,显式 flexDirection: 'column'。
5
+ */
6
+ import React from 'react';
7
+ import type { ViewProps, ViewStyle } from 'react-native';
8
+ type AlignItems = ViewStyle['alignItems'];
9
+ type JustifyContent = ViewStyle['justifyContent'];
10
+ export interface ColumnProps extends ViewProps {
11
+ /** alignItems */
12
+ align?: AlignItems;
13
+ /** justifyContent */
14
+ justify?: JustifyContent;
15
+ /** 子元素间距 */
16
+ gap?: number;
17
+ }
18
+ declare const Column: React.FC<ColumnProps>;
19
+ export default Column;
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/column/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzD,KAAK,UAAU,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC;AAC1C,KAAK,cAAc,GAAG,SAAS,CAAC,gBAAgB,CAAC,CAAC;AAElD,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,iBAAiB;IACjB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,qBAAqB;IACrB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,YAAY;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAiBjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const baseStyle: {
2
+ flexDirection: "column";
3
+ };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/column/style/index.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;CAIb,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * 分割线组件
3
+ */
4
+ import React from 'react';
5
+ import type { ViewStyle } from 'react-native';
6
+ interface DividerProps {
7
+ hairline?: boolean;
8
+ marginHorizontal?: number;
9
+ style?: ViewStyle;
10
+ }
11
+ declare const Divider: React.FC<DividerProps>;
12
+ export default Divider;
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/divider/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,UAAU,YAAY;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAYnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,9 @@
1
+ export declare const hairlineStyle: {
2
+ height: number;
3
+ backgroundColor: string;
4
+ };
5
+ export declare const standardStyle: {
6
+ height: number;
7
+ backgroundColor: string;
8
+ };
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/divider/style/index.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;;;CAKnB,CAAC;AAER,eAAO,MAAM,aAAa;;;CAEnB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { mergeStyles } from './useMergeStyles';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * 语义样式合并
3
+ *
4
+ * 纯函数版本,调用方通过 useMemo 控制缓存策略。
5
+ */
6
+ import type { ImageStyle, TextStyle, ViewStyle } from 'react-native';
7
+ type StyleValue = ViewStyle | TextStyle | ImageStyle;
8
+ /**
9
+ * 按 slot 维度合并多来源样式。
10
+ */
11
+ export declare function mergeStyles<T extends Record<string, StyleValue | undefined>>(...sources: (Partial<T> | undefined)[]): T;
12
+ export {};
13
+ //# sourceMappingURL=useMergeStyles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMergeStyles.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useMergeStyles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAErE,KAAK,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AAErD;;GAEG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,CAAC,EAC1E,GAAG,OAAO,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,EAAE,GACrC,CAAC,CAWH"}
@@ -0,0 +1,39 @@
1
+ export { configure } from './theme/config';
2
+ export type { ThemeConfig } from './theme/config';
3
+ export { tokens } from './theme/tokens';
4
+ export { mergeStyles } from './hooks';
5
+ export { default as Row } from './row';
6
+ export type { RowProps } from './row';
7
+ export { default as Column } from './column';
8
+ export type { ColumnProps } from './column';
9
+ export { default as Center } from './center';
10
+ export type { CenterProps } from './center';
11
+ export { default as Space } from './space';
12
+ export type { SpaceProps } from './space';
13
+ export { default as Text } from './text';
14
+ export type { TextProps } from './text';
15
+ export { default as Button } from './button';
16
+ export type { ButtonProps } from './button';
17
+ export type { ButtonSemanticStyles } from './button/style';
18
+ export { default as Divider } from './divider';
19
+ export { default as ListItem } from './list-item';
20
+ export { default as Touchable } from './touchable';
21
+ export type { TouchableProps } from './touchable';
22
+ export { default as Avatar } from './avatar';
23
+ export type { AvatarProps } from './avatar';
24
+ export type { AvatarSemanticStyles } from './avatar/style';
25
+ export { default as WaveAnimation } from './wave-animation';
26
+ export type { WaveAnimationProps } from './wave-animation';
27
+ export { default as Input } from './input';
28
+ export type { InputProps } from './input';
29
+ export type { InputSemanticStyles } from './input/style';
30
+ export { default as Chip } from './chip';
31
+ export type { ChipProps } from './chip';
32
+ export type { ChipSemanticStyles } from './chip/style';
33
+ export { default as ActionSheet } from './action-sheet';
34
+ export type { ActionSheetProps } from './action-sheet';
35
+ export type { ActionSheetOption, ActionSheetSemanticStyles } from './action-sheet/style';
36
+ export { default as Popover } from './popover';
37
+ export type { PopoverProps } from './popover';
38
+ export type { PopoverSemanticStyles } from './popover/style';
39
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAGxC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtC,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAC;AACvC,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAG1C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,YAAY,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,YAAY,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAG3D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,YAAY,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,YAAY,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Input 基础组件
3
+ *
4
+ * TextInput 容器,支持多行、工具栏插槽、自动聚焦。
5
+ */
6
+ import React from 'react';
7
+ import type { ViewStyle, ReturnKeyTypeOptions } from 'react-native';
8
+ import type { InputSemanticStyles } from './style';
9
+ export interface InputProps {
10
+ value?: string;
11
+ onChangeText?: (text: string) => void;
12
+ placeholder?: string;
13
+ multiline?: boolean;
14
+ maxLength?: number;
15
+ maxHeight?: number;
16
+ autoFocus?: boolean;
17
+ returnKeyType?: ReturnKeyTypeOptions;
18
+ onSubmitEditing?: () => void;
19
+ onBlur?: () => void;
20
+ onFocus?: () => void;
21
+ disabled?: boolean;
22
+ toolbar?: React.ReactNode;
23
+ style?: ViewStyle;
24
+ styles?: Partial<InputSemanticStyles>;
25
+ testID?: string;
26
+ }
27
+ declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<import("react-native/types_generated/Libraries/Components/TextInput/TextInput.flow").TextInputInstance>>;
28
+ export default Input;
29
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/input/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAGpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAGnD,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,QAAA,MAAM,KAAK,2KAuDT,CAAC;AAIH,eAAe,KAAK,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ViewStyle, TextStyle } from 'react-native';
2
+ export type InputSemanticStyles = {
3
+ root?: ViewStyle;
4
+ input?: TextStyle;
5
+ toolbar?: ViewStyle;
6
+ };
7
+ export declare const DEFAULT_STYLES: InputSemanticStyles;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/input/style/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,mBAqB5B,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * 列表行组件
3
+ *
4
+ * 语义 slot:root / content / description / extra。
5
+ */
6
+ import React from 'react';
7
+ import type { ViewStyle } from 'react-native';
8
+ import type { ListItemSemanticStyles } from './style';
9
+ interface ListItemProps {
10
+ thumb?: React.ReactNode;
11
+ title: string | React.ReactNode;
12
+ description?: string;
13
+ extra?: React.ReactNode | string;
14
+ arrow?: boolean;
15
+ arrowIcon?: React.ReactNode;
16
+ onPress?: () => void;
17
+ onLongPress?: () => void;
18
+ disabled?: boolean;
19
+ style?: ViewStyle;
20
+ styles?: Partial<ListItemSemanticStyles>;
21
+ testID?: string;
22
+ }
23
+ declare const ListItem: React.FC<ListItemProps>;
24
+ export default ListItem;
25
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/list-item/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAGzD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAGtD,UAAU,aAAa;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;IACjC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAyDrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { ViewStyle, TextStyle } from 'react-native';
2
+ export type ListItemSemanticStyles = {
3
+ root?: ViewStyle;
4
+ content?: TextStyle;
5
+ description?: TextStyle;
6
+ extra?: ViewStyle & TextStyle;
7
+ };
8
+ export declare const DEFAULT_SEMANTIC: ListItemSemanticStyles;
9
+ export declare const lineStyle: {
10
+ flex: number;
11
+ flexDirection: "row";
12
+ alignItems: "center";
13
+ };
14
+ export declare const contentWrapStyle: {
15
+ flex: number;
16
+ };
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/list-item/style/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzD,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,sBAqB9B,CAAC;AAEF,eAAO,MAAM,SAAS;;;;CAElB,CAAC;AAEL,eAAO,MAAM,gBAAgB;;CAEzB,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Popover 基础组件
3
+ *
4
+ * 锚定定位下拉容器,仅做定位,内容由 children 传入。
5
+ */
6
+ import React from 'react';
7
+ import type { ViewStyle } from 'react-native';
8
+ import type { PopoverSemanticStyles } from './style';
9
+ export interface PopoverProps {
10
+ visible: boolean;
11
+ onClose: () => void;
12
+ anchorLayout: {
13
+ x: number;
14
+ y: number;
15
+ width: number;
16
+ height: number;
17
+ };
18
+ width?: number;
19
+ placement?: 'bottom' | 'top';
20
+ children: React.ReactNode;
21
+ style?: ViewStyle;
22
+ styles?: Partial<PopoverSemanticStyles>;
23
+ testID?: string;
24
+ }
25
+ declare const Popover: React.FC<PopoverProps>;
26
+ export default Popover;
27
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/popover/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAkB,MAAM,OAAO,CAAC;AAMvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGrD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA8CnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { ViewStyle } from 'react-native';
2
+ export type PopoverSemanticStyles = {
3
+ overlay?: ViewStyle;
4
+ content?: ViewStyle;
5
+ };
6
+ export declare const DEFAULT_STYLES: PopoverSemanticStyles;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/popover/style/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,qBAc5B,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * 水平布局容器
3
+ *
4
+ * 默认 flexDirection: 'row' + alignItems: 'center'。
5
+ */
6
+ import React from 'react';
7
+ import type { ViewProps, ViewStyle } from 'react-native';
8
+ type AlignItems = ViewStyle['alignItems'];
9
+ type JustifyContent = ViewStyle['justifyContent'];
10
+ export interface RowProps extends ViewProps {
11
+ /** alignItems,默认 'center' */
12
+ align?: AlignItems;
13
+ /** justifyContent */
14
+ justify?: JustifyContent;
15
+ /** 子元素间距 */
16
+ gap?: number;
17
+ /** 是否换行 */
18
+ wrap?: boolean;
19
+ }
20
+ declare const Row: React.FC<RowProps>;
21
+ export default Row;
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/row/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzD,KAAK,UAAU,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC;AAC1C,KAAK,cAAc,GAAG,SAAS,CAAC,gBAAgB,CAAC,CAAC;AAElD,MAAM,WAAW,QAAS,SAAQ,SAAS;IACzC,6BAA6B;IAC7B,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,qBAAqB;IACrB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,YAAY;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW;IACX,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,QAAA,MAAM,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CAmB3B,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const baseStyle: {
2
+ flexDirection: "row";
3
+ alignItems: "center";
4
+ };
5
+ export declare const wrapStyle: {
6
+ flexWrap: "wrap";
7
+ };
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/row/style/index.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;CAKhB,CAAC;AAEP,eAAO,MAAM,SAAS;;CAIf,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 间距占位组件
3
+ *
4
+ * 在两个元素之间插入固定间距。
5
+ */
6
+ import React from 'react';
7
+ export interface SpaceProps {
8
+ /** 间距大小,默认 12 */
9
+ size?: number;
10
+ /** 方向,默认 'vertical' */
11
+ direction?: 'horizontal' | 'vertical';
12
+ }
13
+ declare const Space: React.FC<SpaceProps>;
14
+ export default Space;
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/space/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,UAAU;IACzB,iBAAiB;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uBAAuB;IACvB,SAAS,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;CACvC;AAED,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAQ/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const verticalStyle: (size: number) => {
2
+ height: number;
3
+ };
4
+ export declare const horizontalStyle: (size: number) => {
5
+ width: number;
6
+ };
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/space/style/index.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM;;CAAuB,CAAC;AAElE,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM;;CAAsB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * 语义化文字组件
3
+ *
4
+ * variant 驱动样式,支持嵌套 Text。
5
+ */
6
+ import React from 'react';
7
+ import type { TextProps as RNTextProps } from 'react-native';
8
+ import type { FontWeight } from './style';
9
+ export interface TextProps extends RNTextProps {
10
+ variant?: 'title' | 'heading' | 'body' | 'caption' | 'micro';
11
+ secondary?: boolean;
12
+ primary?: boolean;
13
+ color?: string;
14
+ weight?: FontWeight;
15
+ }
16
+ declare const Text: React.FC<TextProps>;
17
+ export default Text;
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/text/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAG1C,MAAM,WAAW,SAAU,SAAQ,WAAW;IAC5C,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IAC7D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB;AAED,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAsB7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,35 @@
1
+ import type { TextStyle } from 'react-native';
2
+ export type FontWeight = 'medium' | 'semibold' | 'bold';
3
+ export declare const VARIANT_MAP: Readonly<{
4
+ title: {
5
+ fontSize: number;
6
+ lineHeight: number;
7
+ fontWeight: "600";
8
+ color: string;
9
+ };
10
+ heading: {
11
+ fontSize: number;
12
+ lineHeight: number;
13
+ fontWeight: "600";
14
+ color: string;
15
+ };
16
+ body: {
17
+ fontSize: number;
18
+ lineHeight: number;
19
+ color: string;
20
+ };
21
+ caption: {
22
+ fontSize: number;
23
+ lineHeight: number;
24
+ color: string;
25
+ };
26
+ micro: {
27
+ fontSize: number;
28
+ lineHeight: number;
29
+ color: string;
30
+ };
31
+ }>;
32
+ export declare const WEIGHT_MAP: Record<FontWeight, TextStyle>;
33
+ export declare const secondaryStyle: TextStyle;
34
+ export declare const primaryStyle: TextStyle;
35
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/text/style/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AAExD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBtB,CAAC;AAEH,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,SAAS,CAIpD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAAgD,CAAC;AAC9E,eAAO,MAAM,YAAY,EAAE,SAA0C,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * 主题配置
3
+ *
4
+ * 消费方通过 configure() 注入主题色,实现包与业务解耦。
5
+ */
6
+ export interface ThemeConfig {
7
+ primaryColor?: string;
8
+ }
9
+ /**
10
+ * 配置主题
11
+ *
12
+ * @example
13
+ * import { configure } from '@unif/react-native-ui';
14
+ * configure({ primaryColor: getAppThemeColor() });
15
+ */
16
+ export declare function configure(options: ThemeConfig): void;
17
+ export declare function getPrimaryColor(): string;
18
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/theme/config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,WAAW;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAID;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAEpD;AAED,wBAAgB,eAAe,IAAI,MAAM,CAExC"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Design Tokens
3
+ */
4
+ export declare const tokens: {
5
+ readonly colorPrimary: string;
6
+ colorSuccess: string;
7
+ colorWarning: string;
8
+ colorError: string;
9
+ colorBgPage: string;
10
+ colorBgElevated: string;
11
+ colorBgUserMsg: string;
12
+ colorText: string;
13
+ colorTextSecondary: string;
14
+ colorTextPlaceholder: string;
15
+ colorBorder: string;
16
+ colorLink: string;
17
+ colorBgHeader: string;
18
+ colorHeaderText: string;
19
+ colorHeaderIcon: string;
20
+ fontSizeXs: number;
21
+ fontSizeSm: number;
22
+ fontSize: number;
23
+ fontSizeMd: number;
24
+ fontSizeLg: number;
25
+ fontSizeXl: number;
26
+ lineHeight: number;
27
+ lineHeightLg: number;
28
+ spaceXs: number;
29
+ spaceSm: number;
30
+ space: number;
31
+ spaceMd: number;
32
+ spaceLg: number;
33
+ spaceXl: number;
34
+ spaceXxl: number;
35
+ radiusSm: number;
36
+ radius: number;
37
+ radiusLg: number;
38
+ radiusXl: number;
39
+ radiusFull: number;
40
+ shadowSm: {
41
+ shadowColor: string;
42
+ shadowOffset: {
43
+ width: number;
44
+ height: number;
45
+ };
46
+ shadowOpacity: number;
47
+ shadowRadius: number;
48
+ elevation: number;
49
+ };
50
+ shadow: {
51
+ shadowColor: string;
52
+ shadowOffset: {
53
+ width: number;
54
+ height: number;
55
+ };
56
+ shadowOpacity: number;
57
+ shadowRadius: number;
58
+ elevation: number;
59
+ };
60
+ };
61
+ //# sourceMappingURL=tokens.d.ts.map