@unif/react-native-design 0.33.0 → 0.34.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 (188) hide show
  1. package/lib/module/components/ui/ActionMenuContent/ActionMenuContent.js +97 -0
  2. package/lib/module/components/ui/ActionMenuContent/ActionMenuContent.js.map +1 -0
  3. package/lib/module/components/ui/ActionMenuContent/index.js +4 -0
  4. package/lib/module/components/ui/ActionMenuContent/index.js.map +1 -0
  5. package/lib/module/components/ui/ActionMenuContent/styles.js +54 -0
  6. package/lib/module/components/ui/ActionMenuContent/styles.js.map +1 -0
  7. package/lib/module/components/ui/ActionMenuContent/types.js.map +1 -0
  8. package/lib/module/components/ui/Avatar/Avatar.js +3 -3
  9. package/lib/module/components/ui/Avatar/Avatar.js.map +1 -1
  10. package/lib/module/components/ui/Button/ButtonBase.js +10 -2
  11. package/lib/module/components/ui/Button/ButtonBase.js.map +1 -1
  12. package/lib/module/components/ui/DrawerHeader/DrawerHeader.js +3 -3
  13. package/lib/module/components/ui/DrawerHeader/DrawerHeader.js.map +1 -1
  14. package/lib/module/components/ui/IconButton/IconButton.js +5 -1
  15. package/lib/module/components/ui/IconButton/IconButton.js.map +1 -1
  16. package/lib/module/components/ui/ImagePreview/ImagePreview.js +200 -0
  17. package/lib/module/components/ui/ImagePreview/ImagePreview.js.map +1 -0
  18. package/lib/module/components/ui/ImagePreview/constants.js +5 -0
  19. package/lib/module/components/ui/ImagePreview/constants.js.map +1 -0
  20. package/lib/module/components/ui/ImagePreview/index.js +4 -0
  21. package/lib/module/components/ui/ImagePreview/index.js.map +1 -0
  22. package/lib/module/components/ui/ImagePreview/styles.js +55 -0
  23. package/lib/module/components/ui/ImagePreview/styles.js.map +1 -0
  24. package/lib/module/components/ui/ImagePreview/types.js +4 -0
  25. package/lib/module/components/ui/ImagePreview/types.js.map +1 -0
  26. package/lib/module/components/ui/Sheet/Sheet.js +40 -0
  27. package/lib/module/components/ui/Sheet/Sheet.js.map +1 -0
  28. package/lib/module/components/ui/Sheet/index.js +4 -0
  29. package/lib/module/components/ui/Sheet/index.js.map +1 -0
  30. package/lib/module/components/ui/Sheet/styles.js +41 -0
  31. package/lib/module/components/ui/Sheet/styles.js.map +1 -0
  32. package/lib/module/components/ui/Sheet/types.js +4 -0
  33. package/lib/module/components/ui/Sheet/types.js.map +1 -0
  34. package/lib/module/components/ui/SmsField/SmsField.js +40 -0
  35. package/lib/module/components/ui/SmsField/SmsField.js.map +1 -0
  36. package/lib/module/components/ui/SmsField/index.js +4 -0
  37. package/lib/module/components/ui/SmsField/index.js.map +1 -0
  38. package/lib/module/components/ui/SmsField/types.js +4 -0
  39. package/lib/module/components/ui/SmsField/types.js.map +1 -0
  40. package/lib/module/components/ui/TextEntryContent/TextEntryContent.js +60 -0
  41. package/lib/module/components/ui/TextEntryContent/TextEntryContent.js.map +1 -0
  42. package/lib/module/components/ui/TextEntryContent/index.js +4 -0
  43. package/lib/module/components/ui/TextEntryContent/index.js.map +1 -0
  44. package/lib/module/components/ui/TextEntryContent/styles.js +29 -0
  45. package/lib/module/components/ui/TextEntryContent/styles.js.map +1 -0
  46. package/lib/module/components/ui/TextEntryContent/types.js +4 -0
  47. package/lib/module/components/ui/TextEntryContent/types.js.map +1 -0
  48. package/lib/module/components/ui/Thumbnail/Thumbnail.js +3 -3
  49. package/lib/module/components/ui/Thumbnail/Thumbnail.js.map +1 -1
  50. package/lib/module/components/ui/index.js +5 -1
  51. package/lib/module/components/ui/index.js.map +1 -1
  52. package/lib/module/components/ui/shared/ImageAttempt.js.map +1 -1
  53. package/lib/module/components/ui/shared/selectImageAttemptSource.shared.js +6 -5
  54. package/lib/module/components/ui/shared/selectImageAttemptSource.shared.js.map +1 -1
  55. package/lib/module/components/ui/shared/useImageSource.js +11 -0
  56. package/lib/module/components/ui/shared/useImageSource.js.map +1 -0
  57. package/lib/module/icons/data.js +87 -1
  58. package/lib/module/icons/data.js.map +1 -1
  59. package/lib/module/utils/imageSource.js +47 -13
  60. package/lib/module/utils/imageSource.js.map +1 -1
  61. package/lib/typescript/src/components/ui/ActionMenuContent/ActionMenuContent.d.ts +4 -0
  62. package/lib/typescript/src/components/ui/ActionMenuContent/ActionMenuContent.d.ts.map +1 -0
  63. package/lib/typescript/src/components/ui/ActionMenuContent/index.d.ts +3 -0
  64. package/lib/typescript/src/components/ui/ActionMenuContent/index.d.ts.map +1 -0
  65. package/lib/typescript/src/components/ui/ActionMenuContent/styles.d.ts +51 -0
  66. package/lib/typescript/src/components/ui/ActionMenuContent/styles.d.ts.map +1 -0
  67. package/lib/typescript/src/components/ui/ActionMenuContent/types.d.ts +25 -0
  68. package/lib/typescript/src/components/ui/ActionMenuContent/types.d.ts.map +1 -0
  69. package/lib/typescript/src/components/ui/Button/ButtonBase.d.ts +3 -1
  70. package/lib/typescript/src/components/ui/Button/ButtonBase.d.ts.map +1 -1
  71. package/lib/typescript/src/components/ui/IconButton/IconButton.d.ts +1 -1
  72. package/lib/typescript/src/components/ui/IconButton/IconButton.d.ts.map +1 -1
  73. package/lib/typescript/src/components/ui/IconButton/types.d.ts +4 -0
  74. package/lib/typescript/src/components/ui/IconButton/types.d.ts.map +1 -1
  75. package/lib/typescript/src/components/ui/ImagePreview/ImagePreview.d.ts +3 -0
  76. package/lib/typescript/src/components/ui/ImagePreview/ImagePreview.d.ts.map +1 -0
  77. package/lib/typescript/src/components/ui/ImagePreview/constants.d.ts +3 -0
  78. package/lib/typescript/src/components/ui/ImagePreview/constants.d.ts.map +1 -0
  79. package/lib/typescript/src/components/ui/ImagePreview/index.d.ts +3 -0
  80. package/lib/typescript/src/components/ui/ImagePreview/index.d.ts.map +1 -0
  81. package/lib/typescript/src/components/ui/ImagePreview/styles.d.ts +56 -0
  82. package/lib/typescript/src/components/ui/ImagePreview/styles.d.ts.map +1 -0
  83. package/lib/typescript/src/components/ui/ImagePreview/types.d.ts +33 -0
  84. package/lib/typescript/src/components/ui/ImagePreview/types.d.ts.map +1 -0
  85. package/lib/typescript/src/components/ui/Sheet/Sheet.d.ts +4 -0
  86. package/lib/typescript/src/components/ui/Sheet/Sheet.d.ts.map +1 -0
  87. package/lib/typescript/src/components/ui/Sheet/index.d.ts +3 -0
  88. package/lib/typescript/src/components/ui/Sheet/index.d.ts.map +1 -0
  89. package/lib/typescript/src/components/ui/Sheet/styles.d.ts +38 -0
  90. package/lib/typescript/src/components/ui/Sheet/styles.d.ts.map +1 -0
  91. package/lib/typescript/src/components/ui/Sheet/types.d.ts +13 -0
  92. package/lib/typescript/src/components/ui/Sheet/types.d.ts.map +1 -0
  93. package/lib/typescript/src/components/ui/SmsField/SmsField.d.ts +4 -0
  94. package/lib/typescript/src/components/ui/SmsField/SmsField.d.ts.map +1 -0
  95. package/lib/typescript/src/components/ui/SmsField/index.d.ts +3 -0
  96. package/lib/typescript/src/components/ui/SmsField/index.d.ts.map +1 -0
  97. package/lib/typescript/src/components/ui/SmsField/types.d.ts +12 -0
  98. package/lib/typescript/src/components/ui/SmsField/types.d.ts.map +1 -0
  99. package/lib/typescript/src/components/ui/TextEntryContent/TextEntryContent.d.ts +4 -0
  100. package/lib/typescript/src/components/ui/TextEntryContent/TextEntryContent.d.ts.map +1 -0
  101. package/lib/typescript/src/components/ui/TextEntryContent/index.d.ts +3 -0
  102. package/lib/typescript/src/components/ui/TextEntryContent/index.d.ts.map +1 -0
  103. package/lib/typescript/src/components/ui/TextEntryContent/styles.d.ts +26 -0
  104. package/lib/typescript/src/components/ui/TextEntryContent/styles.d.ts.map +1 -0
  105. package/lib/typescript/src/components/ui/TextEntryContent/types.d.ts +18 -0
  106. package/lib/typescript/src/components/ui/TextEntryContent/types.d.ts.map +1 -0
  107. package/lib/typescript/src/components/ui/index.d.ts +10 -2
  108. package/lib/typescript/src/components/ui/index.d.ts.map +1 -1
  109. package/lib/typescript/src/components/ui/shared/ImageAttempt.d.ts +3 -2
  110. package/lib/typescript/src/components/ui/shared/ImageAttempt.d.ts.map +1 -1
  111. package/lib/typescript/src/components/ui/shared/selectImageAttemptSource.shared.d.ts +3 -2
  112. package/lib/typescript/src/components/ui/shared/selectImageAttemptSource.shared.d.ts.map +1 -1
  113. package/lib/typescript/src/components/ui/shared/useImageSource.d.ts +6 -0
  114. package/lib/typescript/src/components/ui/shared/useImageSource.d.ts.map +1 -0
  115. package/lib/typescript/src/icons/data.d.ts +1 -1
  116. package/lib/typescript/src/icons/data.d.ts.map +1 -1
  117. package/lib/typescript/src/utils/imageSource.d.ts +3 -2
  118. package/lib/typescript/src/utils/imageSource.d.ts.map +1 -1
  119. package/lib/typescript/type-tests/content-api.d.ts +2 -0
  120. package/lib/typescript/type-tests/content-api.d.ts.map +1 -0
  121. package/package.json +1 -1
  122. package/src/components/ui/ActionMenuContent/ActionMenuContent.tsx +118 -0
  123. package/src/components/ui/ActionMenuContent/index.ts +6 -0
  124. package/src/components/ui/ActionMenuContent/styles.ts +47 -0
  125. package/src/components/ui/ActionMenuContent/types.ts +27 -0
  126. package/src/components/ui/Avatar/Avatar.tsx +3 -3
  127. package/src/components/ui/Button/ButtonBase.tsx +11 -2
  128. package/src/components/ui/DrawerHeader/DrawerHeader.tsx +3 -3
  129. package/src/components/ui/IconButton/IconButton.tsx +9 -1
  130. package/src/components/ui/IconButton/types.ts +4 -0
  131. package/src/components/ui/ImagePreview/ImagePreview.tsx +243 -0
  132. package/src/components/ui/ImagePreview/constants.ts +2 -0
  133. package/src/components/ui/ImagePreview/index.ts +6 -0
  134. package/src/components/ui/ImagePreview/styles.ts +48 -0
  135. package/src/components/ui/ImagePreview/types.ts +37 -0
  136. package/src/components/ui/Sheet/Sheet.tsx +43 -0
  137. package/src/components/ui/Sheet/index.ts +2 -0
  138. package/src/components/ui/Sheet/styles.ts +40 -0
  139. package/src/components/ui/Sheet/types.ts +14 -0
  140. package/src/components/ui/SmsField/SmsField.tsx +40 -0
  141. package/src/components/ui/SmsField/index.ts +2 -0
  142. package/src/components/ui/SmsField/types.ts +15 -0
  143. package/src/components/ui/TextEntryContent/TextEntryContent.tsx +56 -0
  144. package/src/components/ui/TextEntryContent/index.ts +2 -0
  145. package/src/components/ui/TextEntryContent/styles.ts +17 -0
  146. package/src/components/ui/TextEntryContent/types.ts +18 -0
  147. package/src/components/ui/Thumbnail/Thumbnail.tsx +3 -3
  148. package/src/components/ui/index.ts +18 -2
  149. package/src/components/ui/shared/ImageAttempt.tsx +3 -2
  150. package/src/components/ui/shared/selectImageAttemptSource.shared.ts +7 -5
  151. package/src/components/ui/shared/useImageSource.ts +8 -0
  152. package/src/icons/data.ts +134 -0
  153. package/src/utils/imageSource.ts +78 -15
  154. package/lib/module/components/ui/BorderBeam/BorderBeam.js +0 -102
  155. package/lib/module/components/ui/BorderBeam/BorderBeam.js.map +0 -1
  156. package/lib/module/components/ui/BorderBeam/BorderBeam.web.js +0 -108
  157. package/lib/module/components/ui/BorderBeam/BorderBeam.web.js.map +0 -1
  158. package/lib/module/components/ui/BorderBeam/index.js +0 -4
  159. package/lib/module/components/ui/BorderBeam/index.js.map +0 -1
  160. package/lib/module/components/ui/BorderBeam/normalizeBorderBeam.js +0 -23
  161. package/lib/module/components/ui/BorderBeam/normalizeBorderBeam.js.map +0 -1
  162. package/lib/module/components/ui/BorderBeam/shared.js +0 -54
  163. package/lib/module/components/ui/BorderBeam/shared.js.map +0 -1
  164. package/lib/module/components/ui/BorderBeam/styles.js +0 -18
  165. package/lib/module/components/ui/BorderBeam/styles.js.map +0 -1
  166. package/lib/module/components/ui/BorderBeam/types.js.map +0 -1
  167. package/lib/typescript/src/components/ui/BorderBeam/BorderBeam.d.ts +0 -10
  168. package/lib/typescript/src/components/ui/BorderBeam/BorderBeam.d.ts.map +0 -1
  169. package/lib/typescript/src/components/ui/BorderBeam/BorderBeam.web.d.ts +0 -5
  170. package/lib/typescript/src/components/ui/BorderBeam/BorderBeam.web.d.ts.map +0 -1
  171. package/lib/typescript/src/components/ui/BorderBeam/index.d.ts +0 -3
  172. package/lib/typescript/src/components/ui/BorderBeam/index.d.ts.map +0 -1
  173. package/lib/typescript/src/components/ui/BorderBeam/normalizeBorderBeam.d.ts +0 -16
  174. package/lib/typescript/src/components/ui/BorderBeam/normalizeBorderBeam.d.ts.map +0 -1
  175. package/lib/typescript/src/components/ui/BorderBeam/shared.d.ts +0 -28
  176. package/lib/typescript/src/components/ui/BorderBeam/shared.d.ts.map +0 -1
  177. package/lib/typescript/src/components/ui/BorderBeam/styles.d.ts +0 -15
  178. package/lib/typescript/src/components/ui/BorderBeam/styles.d.ts.map +0 -1
  179. package/lib/typescript/src/components/ui/BorderBeam/types.d.ts +0 -23
  180. package/lib/typescript/src/components/ui/BorderBeam/types.d.ts.map +0 -1
  181. package/src/components/ui/BorderBeam/BorderBeam.tsx +0 -130
  182. package/src/components/ui/BorderBeam/BorderBeam.web.tsx +0 -127
  183. package/src/components/ui/BorderBeam/index.ts +0 -2
  184. package/src/components/ui/BorderBeam/normalizeBorderBeam.ts +0 -58
  185. package/src/components/ui/BorderBeam/shared.ts +0 -47
  186. package/src/components/ui/BorderBeam/styles.ts +0 -16
  187. package/src/components/ui/BorderBeam/types.ts +0 -23
  188. /package/lib/module/components/ui/{BorderBeam → ActionMenuContent}/types.js +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/ActionMenuContent/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,IAAI,IAAI,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC5B,YAAY,CAAC,EAAE,sBAAsB,CAAC;CACvC;AAED,2BAA2B;AAC3B,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACrC,YAAY,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,IAAI,IAAI,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -10,6 +10,8 @@ export type ButtonBaseProps = {
10
10
  block?: boolean;
11
11
  /** 方形约束 — width=height=sizing.h,优先级高于 horizontal padding。IconButton 用。 */
12
12
  square?: boolean;
13
+ surfaceSize?: number;
14
+ loadingSize?: number;
13
15
  accessibilityLabel?: string;
14
16
  accessibilityRole?: AccessibilityRole;
15
17
  /** SR 朗读 label 后的行为说明 hint。仅在"行为不显然"时加。 */
@@ -25,5 +27,5 @@ export type ButtonBaseProps = {
25
27
  /** ButtonBase —— Button / IconButton 共享的 internal primitive。
26
28
  * 职责:Pressable / sizing / palette / 视觉态 / a11y / text variant 特殊处理 /
27
29
  * block / square。children 强制 render prop,sizingFor / paletteFor 在 styles.ts。 */
28
- export declare function ButtonBase({ onPress, size, variant, disabled, loading, block, square, accessibilityLabel, accessibilityRole, accessibilityHint, accessibilityState, style, testID, children, }: ButtonBaseProps): React.JSX.Element;
30
+ export declare function ButtonBase({ onPress, size, variant, disabled, loading, block, square, surfaceSize, loadingSize, accessibilityLabel, accessibilityRole, accessibilityHint, accessibilityState, style, testID, children, }: ButtonBaseProps): React.JSX.Element;
29
31
  //# sourceMappingURL=ButtonBase.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonBase.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/Button/ButtonBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,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AAW,EACX,WAAW,EACX,kBAAkB,EAClB,iBAA4B,EAC5B,iBAAiB,EACjB,kBAAkB,EAClB,KAAK,EACL,MAAM,EACN,QAAQ,GACT,EAAE,eAAe,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA+ErC"}
@@ -9,5 +9,5 @@ import type { IconButtonProps } from './types';
9
9
  * `accessibilityLabel` TypeScript 强制必填 —— icon-only 无文本提示语义,
10
10
  * SR 必须靠 a11y label 朗读。
11
11
  */
12
- export declare function IconButton({ icon, onPress, size, variant, color, disabled, loading, accessibilityLabel, accessibilityHint, accessibilityState, style, testID, }: IconButtonProps): React.JSX.Element;
12
+ export declare function IconButton({ icon, onPress, size, iconSize, surfaceSize, variant, color, disabled, loading, accessibilityLabel, accessibilityHint, accessibilityState, style, testID, }: IconButtonProps): React.JSX.Element;
13
13
  //# sourceMappingURL=IconButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/IconButton/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAKzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAI/C;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,OAAO,EACP,IAAW,EACX,OAAiB,EACjB,KAAK,EACL,QAAQ,EACR,OAAO,EACP,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,KAAK,EACL,MAAM,GACP,EAAE,eAAe,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA+BrC"}
1
+ {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/IconButton/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAKzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAI/C;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,OAAO,EACP,IAAW,EACX,QAAQ,EACR,WAAW,EACX,OAAiB,EACjB,KAAK,EACL,QAAQ,EACR,OAAO,EACP,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,KAAK,EACL,MAAM,GACP,EAAE,eAAe,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAqCrC"}
@@ -10,6 +10,10 @@ export type IconButtonProps = {
10
10
  onPress: () => void;
11
11
  /** 尺寸,默认 'md'(28 / 36 / 44 方形) */
12
12
  size?: ButtonSize;
13
+ /** 独立图标及加载指示尺寸;默认沿用 size 对应值。 */
14
+ iconSize?: number;
15
+ /** 方形表面边长;同时据此补足 44pt 命中区。默认沿用 size。 */
16
+ surfaceSize?: number;
13
17
  /** 视觉变体,默认 'ghost'(透明底,适合 header right-tray 场景)。
14
18
  * 不支持 'text'——text variant 撕除高度,与 square 方形布局冲突。 */
15
19
  variant?: IconButtonVariant;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/IconButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC7E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEjE,iEAAiE;AACjE,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;AAE/D,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU;IACV,IAAI,EAAE,QAAQ,CAAC;IACf,uBAAuB;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kCAAkC;IAClC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;yDACqD;IACrD,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B;;iEAE6D;IAC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ACf,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mDAAmD;IACnD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6BAA6B;IAC7B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gEAAgE;IAChE,kBAAkB,CAAC,EAAE,IAAI,CAAC,kBAAkB,EAAE,UAAU,GAAG,MAAM,CAAC,CAAC;IACnE,WAAW;IACX,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,iBAAiB;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ImagePreviewHandle, ImagePreviewProps } from './types';
2
+ export declare const ImagePreview: import("react").ForwardRefExoticComponent<ImagePreviewProps & import("react").RefAttributes<ImagePreviewHandle>>;
3
+ //# sourceMappingURL=ImagePreview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImagePreview.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/ImagePreview/ImagePreview.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EAGlB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,YAAY,kHA2NxB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const IMAGE_UNAVAILABLE = "\u56FE\u7247\u6682\u4E0D\u53EF\u9884\u89C8";
2
+ export declare const DELETE_LABEL = "\u5220\u9664\u5F53\u524D\u7167\u7247";
3
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/ImagePreview/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,+CAAY,CAAC;AAC3C,eAAO,MAAM,YAAY,yCAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { ImagePreview } from './ImagePreview';
2
+ export type { ImagePreviewItem, ImagePreviewProps, ImagePreviewHandle, } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/ImagePreview/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EACV,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,SAAS,CAAC"}
@@ -0,0 +1,56 @@
1
+ import type { ColorTokens } from '../../../theme';
2
+ export declare const makeStyles: (colors: ColorTokens) => Readonly<{
3
+ container: {
4
+ alignItems: "center";
5
+ gap: number;
6
+ };
7
+ media: {
8
+ backgroundColor: string;
9
+ borderRadius: number;
10
+ overflow: "hidden";
11
+ };
12
+ border: {
13
+ borderColor: string;
14
+ borderWidth: number;
15
+ borderRadius: number;
16
+ position: "absolute";
17
+ left: 0;
18
+ right: 0;
19
+ top: 0;
20
+ bottom: 0;
21
+ };
22
+ image: {
23
+ backgroundColor: string;
24
+ };
25
+ placeholder: {
26
+ width: string;
27
+ height: string;
28
+ backgroundColor: string;
29
+ justifyContent: "center";
30
+ alignItems: "center";
31
+ paddingHorizontal: number;
32
+ };
33
+ placeholderText: {
34
+ color: string;
35
+ fontSize: number;
36
+ textAlign: "center";
37
+ };
38
+ counter: {
39
+ alignSelf: "center";
40
+ paddingVertical: number;
41
+ paddingHorizontal: number;
42
+ borderRadius: 999;
43
+ borderWidth: number;
44
+ borderColor: string;
45
+ backgroundColor: string;
46
+ };
47
+ counterText: {
48
+ color: string;
49
+ fontSize: number;
50
+ fontFamily: string;
51
+ };
52
+ deleteButton: {
53
+ borderRadius: 999;
54
+ };
55
+ }>;
56
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/ImagePreview/styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,eAAO,MAAM,UAAU,GAAI,QAAQ,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2C1C,CAAC"}
@@ -0,0 +1,33 @@
1
+ import type { ImageSourcePropType, StyleProp, ViewStyle } from 'react-native';
2
+ export interface ImagePreviewItem {
3
+ id: string;
4
+ source?: ImageSourcePropType;
5
+ label?: string;
6
+ canDelete?: boolean;
7
+ deleting?: boolean;
8
+ }
9
+ export interface ImagePreviewProps {
10
+ items: readonly ImagePreviewItem[];
11
+ width: number;
12
+ height: number;
13
+ initialId?: string;
14
+ onCurrentChange?(item: Readonly<ImagePreviewItem>): void;
15
+ onRequestDelete?(item: Readonly<ImagePreviewItem>): void;
16
+ style?: StyleProp<ViewStyle>;
17
+ testID?: string;
18
+ }
19
+ export interface ImagePreviewHandle {
20
+ scrollTo(id: string, animated?: boolean): void;
21
+ getCurrent(): Readonly<ImagePreviewItem> | undefined;
22
+ }
23
+ export interface ImagePreviewSelection {
24
+ items: readonly ImagePreviewItem[];
25
+ index: number;
26
+ initialized: boolean;
27
+ carouselRevision: number;
28
+ }
29
+ export interface ImagePreviewScrollRequest {
30
+ id: string;
31
+ animated: boolean;
32
+ }
33
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/ImagePreview/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9E,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;IACzD,eAAe,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;IACzD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC/C,UAAU,IAAI,QAAQ,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC;CACtD;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,OAAO,CAAC;CACnB"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { SheetProps } from './types';
3
+ export declare function Sheet({ children, header, footer, contentMode, contentContainerStyle, style, testID, }: SheetProps): React.JSX.Element;
4
+ //# sourceMappingURL=Sheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Sheet.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/Sheet/Sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,wBAAgB,KAAK,CAAC,EACpB,QAAQ,EACR,MAAM,EACN,MAAM,EACN,WAAqB,EACrB,qBAAqB,EACrB,KAAK,EACL,MAAM,GACP,EAAE,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA4BhC"}
@@ -0,0 +1,3 @@
1
+ export { Sheet } from './Sheet';
2
+ export type { SheetContentMode, SheetProps } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/Sheet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { type ColorTokens } from '../../../theme';
2
+ export declare const makeStyles: (colors: ColorTokens) => Readonly<{
3
+ root: {
4
+ flex: number;
5
+ minHeight: number;
6
+ backgroundColor: string;
7
+ };
8
+ grabberContainer: {
9
+ alignItems: "center";
10
+ paddingTop: number;
11
+ paddingBottom: number;
12
+ };
13
+ grabber: {
14
+ width: number;
15
+ height: number;
16
+ borderRadius: number;
17
+ backgroundColor: string;
18
+ };
19
+ contentRegion: {
20
+ flex: number;
21
+ minHeight: number;
22
+ };
23
+ content: {
24
+ paddingHorizontal: number;
25
+ paddingTop: number;
26
+ paddingBottom: number;
27
+ gap: number;
28
+ };
29
+ footer: {
30
+ backgroundColor: string;
31
+ paddingHorizontal: number;
32
+ paddingTop: number;
33
+ paddingBottom: number;
34
+ borderTopWidth: number;
35
+ borderTopColor: string;
36
+ };
37
+ }>;
38
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/Sheet/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAEzD,eAAO,MAAM,UAAU,GAAI,QAAQ,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoC1C,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { StyleProp, ViewStyle } from 'react-native';
3
+ export type SheetContentMode = 'fixed' | 'scroll' | 'external-scroll';
4
+ export interface SheetProps {
5
+ children: ReactNode;
6
+ header?: ReactNode;
7
+ footer?: ReactNode;
8
+ contentMode?: SheetContentMode;
9
+ contentContainerStyle?: StyleProp<ViewStyle>;
10
+ style?: StyleProp<ViewStyle>;
11
+ testID?: string;
12
+ }
13
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/Sheet/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,iBAAiB,CAAC;AAEtE,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,qBAAqB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7C,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { SmsFieldProps } from './types';
3
+ export declare function SmsField({ value, onChangeText, remainingSeconds, sendDisabled, onSend, sendLabel, sendAccessibilityLabel, ...inputProps }: SmsFieldProps): React.JSX.Element;
4
+ //# sourceMappingURL=SmsField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SmsField.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/SmsField/SmsField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,MAAM,EACN,SAAS,EACT,sBAAsB,EACtB,GAAG,UAAU,EACd,EAAE,aAAa,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAyBnC"}
@@ -0,0 +1,3 @@
1
+ export { SmsField } from './SmsField';
2
+ export type { SmsFieldProps } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/SmsField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { InputProps } from '../Input';
2
+ /** 长度、提示及发送文案由调用方提供;remainingSeconds 只控制冷却禁用。 */
3
+ export interface SmsFieldProps extends Pick<InputProps, 'maxLength' | 'placeholder' | 'editable' | 'accessibilityLabel' | 'testID'> {
4
+ value: string;
5
+ onChangeText(value: string): void;
6
+ remainingSeconds: number;
7
+ sendLabel: string;
8
+ sendAccessibilityLabel?: string;
9
+ sendDisabled?: boolean;
10
+ onSend(): void;
11
+ }
12
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/SmsField/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,iDAAiD;AACjD,MAAM,WAAW,aAAc,SAAQ,IAAI,CACzC,UAAU,EACV,WAAW,GAAG,aAAa,GAAG,UAAU,GAAG,oBAAoB,GAAG,QAAQ,CAC3E;IACC,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,IAAI,IAAI,CAAC;CAChB"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { TextEntryContentProps } from './types';
3
+ export declare function TextEntryContent({ title, value, onChangeText, onSubmit, onCancel, message, busy, maxLength, confirmLabel, cancelLabel, autoFocus, style, testID, }: TextEntryContentProps): React.JSX.Element;
4
+ //# sourceMappingURL=TextEntryContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextEntryContent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/TextEntryContent/TextEntryContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,IAAY,EACZ,SAAS,EACT,YAAmB,EACnB,WAAkB,EAClB,SAAgB,EAChB,KAAK,EACL,MAAM,GACP,EAAE,qBAAqB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAiC3C"}
@@ -0,0 +1,3 @@
1
+ export { TextEntryContent } from './TextEntryContent';
2
+ export type { TextEntryContentProps } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/TextEntryContent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { type ColorTokens } from '../../../theme';
2
+ export declare const makeStyles: (colors: ColorTokens) => Readonly<{
3
+ root: {
4
+ gap: number;
5
+ padding: number;
6
+ borderWidth: number;
7
+ borderColor: string;
8
+ borderRadius: number;
9
+ backgroundColor: string;
10
+ };
11
+ title: {
12
+ color: string;
13
+ fontSize: number;
14
+ fontWeight: "600";
15
+ };
16
+ message: {
17
+ color: string;
18
+ fontSize: number;
19
+ };
20
+ actions: {
21
+ flexDirection: "row";
22
+ flexWrap: "wrap";
23
+ gap: number;
24
+ };
25
+ }>;
26
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/TextEntryContent/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE3E,eAAO,MAAM,UAAU,GAAI,QAAQ,WAAW;;;;;;;;;;;;;;;;;;;;;;;EAa1C,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { StyleProp, ViewStyle } from 'react-native';
2
+ /** 受控文字编辑内容;弹层、键盘和业务提交结果由宿主负责。 */
3
+ export interface TextEntryContentProps {
4
+ title: string;
5
+ value: string;
6
+ onChangeText(value: string): void;
7
+ onSubmit(value: string): void;
8
+ onCancel(): void;
9
+ message?: string;
10
+ busy?: boolean;
11
+ maxLength?: number;
12
+ confirmLabel?: string;
13
+ cancelLabel?: string;
14
+ autoFocus?: boolean;
15
+ style?: StyleProp<ViewStyle>;
16
+ testID?: string;
17
+ }
18
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/TextEntryContent/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,kCAAkC;AAClC,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,IAAI,IAAI,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -4,8 +4,6 @@ export { AvatarGroup } from './AvatarGroup';
4
4
  export type { AvatarGroupItem, AvatarGroupProps } from './AvatarGroup';
5
5
  export { BlurLayer } from './BlurLayer';
6
6
  export type { BlurLayerProps } from './BlurLayer';
7
- export { BorderBeam } from './BorderBeam';
8
- export type { BorderBeamProps } from './BorderBeam';
9
7
  export { Button } from './Button';
10
8
  export type { ButtonProps, ButtonSize, ButtonVariant } from './Button';
11
9
  export { Card } from './Card';
@@ -78,4 +76,14 @@ export { Thumbnail } from './Thumbnail';
78
76
  export type { ThumbnailImageStyle, ThumbnailDimensions, ThumbnailProps, ThumbnailSize, } from './Thumbnail';
79
77
  export { toast, ToastHost } from './Toast';
80
78
  export type { ToastEntry, ToastHostProps, ToastInput, ToastKind, ToastPosition, } from './Toast';
79
+ export { ActionMenuContent } from './ActionMenuContent';
80
+ export type { ActionMenuAction, ActionMenuConfirmation, ActionMenuContentProps, } from './ActionMenuContent';
81
+ export { ImagePreview } from './ImagePreview';
82
+ export type { ImagePreviewItem, ImagePreviewProps, ImagePreviewHandle, } from './ImagePreview';
83
+ export { Sheet } from './Sheet';
84
+ export type { SheetContentMode, SheetProps } from './Sheet';
85
+ export { SmsField } from './SmsField';
86
+ export type { SmsFieldProps } from './SmsField';
87
+ export { TextEntryContent } from './TextEntryContent';
88
+ export type { TextEntryContentProps } from './TextEntryContent';
81
89
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EACV,WAAW,EACX,WAAW,EACX,UAAU,EACV,aAAa,GACd,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACpC,YAAY,EACV,SAAS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MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
- import type { ImageProps, ImageSourcePropType } from 'react-native';
2
+ import type { ImageProps } from 'react-native';
3
+ import type { ResolvedImageSource } from '../../../utils/imageSource';
3
4
  type ImageAttemptProps = Omit<ImageProps, 'onError' | 'source'> & {
4
- source: ImageSourcePropType;
5
+ source: ResolvedImageSource;
5
6
  fallback: React.ReactNode;
6
7
  };
7
8
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ImageAttempt.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/shared/ImageAttempt.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGpE,KAAK,iBAAiB,GAAG,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,QAAQ,CAAC,GAAG;IAChE,MAAM,EAAE,mBAAmB,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAC3B,MAAM,EACN,QAAQ,EACR,GAAG,UAAU,EACd,EAAE,iBAAiB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAWvC"}
1
+ {"version":3,"file":"ImageAttempt.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/shared/ImageAttempt.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGtE,KAAK,iBAAiB,GAAG,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,QAAQ,CAAC,GAAG;IAChE,MAAM,EAAE,mBAAmB,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAC3B,MAAM,EACN,QAAQ,EACR,GAAG,UAAU,EACd,EAAE,iBAAiB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAWvC"}
@@ -1,4 +1,5 @@
1
1
  import type { ImageSourcePropType } from 'react-native';
2
- export declare function selectNativeImageAttemptSource(source: unknown): ImageSourcePropType | undefined;
3
- export declare function selectWebImageAttemptSource(source: unknown): ImageSourcePropType | undefined;
2
+ import type { ResolvedImageSource } from '../../../utils/imageSource';
3
+ export declare function selectNativeImageAttemptSource(resolved: ResolvedImageSource | undefined): ImageSourcePropType | undefined;
4
+ export declare function selectWebImageAttemptSource(resolved: ResolvedImageSource | undefined): ImageSourcePropType | undefined;
4
5
  //# sourceMappingURL=selectImageAttemptSource.shared.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"selectImageAttemptSource.shared.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/shared/selectImageAttemptSource.shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGxD,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,OAAO,GACd,mBAAmB,GAAG,SAAS,CAEjC;AAED,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,OAAO,GACd,mBAAmB,GAAG,SAAS,CAKjC"}
1
+ {"version":3,"file":"selectImageAttemptSource.shared.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/shared/selectImageAttemptSource.shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAItE,wBAAgB,8BAA8B,CAC5C,QAAQ,EAAE,mBAAmB,GAAG,SAAS,GACxC,mBAAmB,GAAG,SAAS,CAEjC;AAED,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,mBAAmB,GAAG,SAAS,GACxC,mBAAmB,GAAG,SAAS,CAKjC"}
@@ -0,0 +1,6 @@
1
+ /** Reuse immutable image inputs without retaining a global source cache. */
2
+ export declare function useImageSource(source: unknown): Readonly<{
3
+ source: import("react-native").ImageSourcePropType;
4
+ key: string;
5
+ }> | undefined;
6
+ //# sourceMappingURL=useImageSource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useImageSource.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/shared/useImageSource.ts"],"names":[],"mappings":"AAGA,4EAA4E;AAC5E,wBAAgB,cAAc,CAAC,MAAM,EAAE,OAAO;;;eAG7C"}
@@ -1,5 +1,5 @@
1
1
  import type { IconDef } from './types';
2
- export type IconName = 'alert' | 'app-fallback' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'aspect-16-9' | 'aspect-4-3' | 'attachment' | 'bag-check' | 'bell' | 'bluetooth' | 'bot' | 'box-list' | 'box-up' | 'building' | 'calculator' | 'calendar-route' | 'calendar' | 'camera-flip' | 'camera-off' | 'camera' | 'card' | 'chat-plus' | 'chat-star' | 'check' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'circle-minus' | 'circle-plus' | 'clipboard-search' | 'clipboard-user' | 'clipboard' | 'close' | 'coin' | 'copy' | 'dashboard-megaphone' | 'dashboard-star' | 'download' | 'edit-pencil' | 'edit' | 'error-alert' | 'error' | 'eye-off' | 'eye' | 'file' | 'filter' | 'flag' | 'flash-auto' | 'flash-off' | 'flash-on' | 'grid' | 'hand' | 'heart' | 'home' | 'image' | 'info' | 'keyboard' | 'lens-flip' | 'lightbulb' | 'list' | 'location' | 'lock' | 'logout' | 'mail' | 'maximize' | 'menu' | 'mic-on' | 'mic' | 'minimize' | 'more-h' | 'more-v' | 'order' | 'package' | 'paperclip' | 'pause' | 'permission-denied' | 'phone' | 'pin-search' | 'play' | 'plus' | 'qr' | 'refresh' | 'retry' | 'route' | 'scan' | 'scanner' | 'search' | 'send' | 'settings' | 'share' | 'shelf-pay' | 'shield-check' | 'shutter-recording' | 'shutter' | 'sidebar' | 'sort' | 'sound-off' | 'sound' | 'spark' | 'star' | 'stop' | 'storefront-ai' | 'storefront-arrow' | 'storefront-check' | 'storefront-tag' | 'storefront' | 'success' | 'tag' | 'thinking' | 'trash' | 'undo' | 'upload' | 'user' | 'users-search' | 'visit' | 'warning';
2
+ export type IconName = 'alert' | 'app-fallback' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'aspect-16-9' | 'aspect-4-3' | 'attachment' | 'bag-check' | 'bank' | 'bed' | 'bell' | 'bluetooth' | 'bot' | 'box-list' | 'box-up' | 'building' | 'calculator' | 'calendar-route' | 'calendar' | 'camera-flip' | 'camera-off' | 'camera' | 'card' | 'chat-plus' | 'chat-star' | 'check' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'circle-minus' | 'circle-plus' | 'clipboard-search' | 'clipboard-user' | 'clipboard' | 'close' | 'coffee' | 'coin' | 'copy' | 'crosshair' | 'dashboard-megaphone' | 'dashboard-star' | 'download' | 'edit-pencil' | 'edit' | 'error-alert' | 'error' | 'eye-off' | 'eye' | 'file' | 'filter' | 'flag' | 'flash-auto' | 'flash-off' | 'flash-on' | 'fuel' | 'grid' | 'hand' | 'heart' | 'home' | 'image' | 'info' | 'keyboard' | 'lens-flip' | 'lightbulb' | 'list' | 'location' | 'lock' | 'logout' | 'mail' | 'maximize' | 'medical-cross' | 'menu' | 'mic-on' | 'mic' | 'minimize' | 'minus' | 'more-h' | 'more-v' | 'navigation-pointer' | 'order' | 'package' | 'paperclip' | 'pause' | 'permission-denied' | 'phone' | 'pin-search' | 'play' | 'plus' | 'qr' | 'refresh' | 'retry' | 'route' | 'scan' | 'scanner' | 'search' | 'send' | 'settings' | 'share' | 'shelf-pay' | 'shield-check' | 'shopping-bag' | 'shutter-recording' | 'shutter' | 'sidebar' | 'sort' | 'sound-off' | 'sound' | 'spark' | 'star-filled' | 'star' | 'stop' | 'store' | 'storefront-ai' | 'storefront-arrow' | 'storefront-check' | 'storefront-tag' | 'storefront' | 'success' | 'tag' | 'thinking' | 'trash' | 'undo' | 'upload' | 'user' | 'users-search' | 'utensils' | 'visit' | 'warning';
3
3
  export declare const ICONS: Record<IconName, IconDef>;
4
4
  export declare const ICON_NAMES: IconName[];
5
5
  //# sourceMappingURL=data.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/icons/data.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,MAAM,MAAM,QAAQ,GAChB,OAAO,GACP,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,UAAU,GACV,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,MAAM,GACN,WAAW,GACX,KAAK,GACL,UAAU,GACV,QAAQ,GACR,UAAU,GACV,YAAY,GACZ,gBAAgB,GAChB,UAAU,GACV,aAAa,GACb,YAAY,GACZ,QAAQ,GACR,MAAM,GACN,WAAW,GACX,WAAW,GACX,OAAO,GACP,cAAc,GACd,cAAc,GACd,eAAe,GACf,YAAY,GACZ,cAAc,GACd,aAAa,GACb,kBAAkB,GAClB,gBAAgB,GAChB,WAAW,GACX,OAAO,GACP,MAAM,GACN,MAAM,GACN,qBAAqB,GACrB,gBAAgB,GAChB,UAAU,GACV,aAAa,GACb,MAAM,GACN,aAAa,GACb,OAAO,GACP,SAAS,GACT,KAAK,GACL,MAAM,GACN,QAAQ,GACR,MAAM,GACN,YAAY,GACZ,WAAW,GACX,UAAU,GACV,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,UAAU,GACV,WAAW,GACX,WAAW,GACX,MAAM,GACN,UAAU,GACV,MAAM,GACN,QAAQ,GACR,MAAM,GACN,UAAU,GACV,MAAM,GACN,QAAQ,GACR,KAAK,GACL,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,SAAS,GACT,WAAW,GACX,OAAO,GACP,mBAAmB,GACnB,OAAO,GACP,YAAY,GACZ,MAAM,GACN,MAAM,GACN,IAAI,GACJ,SAAS,GACT,OAAO,GACP,OAAO,GACP,MAAM,GACN,SAAS,GACT,QAAQ,GACR,MAAM,GACN,UAAU,GACV,OAAO,GACP,WAAW,GACX,cAAc,GACd,mBAAmB,GACnB,SAAS,GACT,SAAS,GACT,MAAM,GACN,WAAW,GACX,OAAO,GACP,OAAO,GACP,MAAM,GACN,MAAM,GACN,eAAe,GACf,kBAAkB,GAClB,kBAAkB,GAClB,gBAAgB,GAChB,YAAY,GACZ,SAAS,GACT,KAAK,GACL,UAAU,GACV,OAAO,GACP,MAAM,GACN,QAAQ,GACR,MAAM,GACN,cAAc,GACd,OAAO,GACP,SAAS,CAAC;AAEd,eAAO,MAAM,KAAK,EAAE,MAAM,CAAC,QAAQ,EAAE,OAAO,CAy0E3C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,QAAQ,EAwHhC,CAAC"}
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/icons/data.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,MAAM,MAAM,QAAQ,GAChB,OAAO,GACP,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,UAAU,GACV,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,MAAM,GACN,KAAK,GACL,MAAM,GACN,WAAW,GACX,KAAK,GACL,UAAU,GACV,QAAQ,GACR,UAAU,GACV,YAAY,GACZ,gBAAgB,GAChB,UAAU,GACV,aAAa,GACb,YAAY,GACZ,QAAQ,GACR,MAAM,GACN,WAAW,GACX,WAAW,GACX,OAAO,GACP,cAAc,GACd,cAAc,GACd,eAAe,GACf,Y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AU,EAAE,QAAQ,EAoIhC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { ImageSourcePropType } from 'react-native';
2
- type ResolvedImageSource = Readonly<{
2
+ export type ResolvedImageSource = Readonly<{
3
3
  source: ImageSourcePropType;
4
4
  key: string;
5
5
  }>;
@@ -9,6 +9,8 @@ export declare function canonicalSourceValue(value: unknown): string;
9
9
  * 与 semantic key。调用方必须把同一返回值里的 source / key 一起交给 attempt。
10
10
  */
11
11
  export declare function resolveImageSource(source: unknown): ResolvedImageSource | undefined;
12
+ /** One resolver belongs to one mounted media component; only its latest tree is kept. */
13
+ export declare function createImageSourceResolver(): (source: unknown) => ResolvedImageSource | undefined;
12
14
  export declare function imageSourceKey(source: ImageSourcePropType | undefined): string;
13
15
  /**
14
16
  * JS 消费者可能绕过类型系统。只有能安全 snapshot 的 asset id、URI object 或
@@ -16,5 +18,4 @@ export declare function imageSourceKey(source: ImageSourcePropType | undefined):
16
18
  * 一律失败关闭。
17
19
  */
18
20
  export declare function isValidImageSource(source: unknown): source is ImageSourcePropType;
19
- export {};
20
21
  //# sourceMappingURL=imageSource.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"imageSource.d.ts","sourceRoot":"","sources":["../../../../src/utils/imageSource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AA4BxD,KAAK,mBAAmB,GAAG,QAAQ,CAAC;IAClC,MAAM,EAAE,mBAAmB,CAAC;IAC5B,GAAG,EAAE,MAAM,CAAC;CACb,CAAC,CAAC;AAkKH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAE3D;AAyED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,OAAO,GACd,mBAAmB,GAAG,SAAS,CAWjC;AAED,wBAAgB,cAAc,CAC5B,MAAM,EAAE,mBAAmB,GAAG,SAAS,GACtC,MAAM,CAER;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,OAAO,GACd,MAAM,IAAI,mBAAmB,CAE/B"}
1
+ {"version":3,"file":"imageSource.d.ts","sourceRoot":"","sources":["../../../../src/utils/imageSource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AA6BxD,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;IACzC,MAAM,EAAE,mBAAmB,CAAC;IAC5B,GAAG,EAAE,MAAM,CAAC;CACb,CAAC,CAAC;AA6MH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAE3D;AAyED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,OAAO,GACd,mBAAmB,GAAG,SAAS,CAEjC;AAgBD,yFAAyF;AACzF,wBAAgB,yBAAyB,KAG/B,QAAQ,OAAO,KAAG,mBAAmB,GAAG,SAAS,CAQ1D;AAED,wBAAgB,cAAc,CAC5B,MAAM,EAAE,mBAAmB,GAAG,SAAS,GACtC,MAAM,CAER;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,OAAO,GACd,MAAM,IAAI,mBAAmB,CAE/B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=content-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-api.d.ts","sourceRoot":"","sources":["../../../type-tests/content-api.tsx"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unif/react-native-design",
3
- "version": "0.33.0",
3
+ "version": "0.34.0",
4
4
  "description": "Unif React Native 设计系统:基础组件、主题、字体和图标",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",