@jamadd/react-native-template-ui 0.8.7 → 0.9.2

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 (308) hide show
  1. package/README.md +8 -0
  2. package/lib/module/components/accordion/ThemedAccordion.js +270 -0
  3. package/lib/module/components/accordion/ThemedAccordion.js.map +1 -0
  4. package/lib/module/components/button/AnimatedPressable.js +6 -0
  5. package/lib/module/components/button/AnimatedPressable.js.map +1 -1
  6. package/lib/module/components/button/AnimatedThemedPressable.js +15 -0
  7. package/lib/module/components/button/AnimatedThemedPressable.js.map +1 -1
  8. package/lib/module/components/button/ThemedButton.js +15 -0
  9. package/lib/module/components/button/ThemedButton.js.map +1 -1
  10. package/lib/module/components/button/ThemedIconButton.js +15 -0
  11. package/lib/module/components/button/ThemedIconButton.js.map +1 -1
  12. package/lib/module/components/button/ThemedIconTextButton.js +16 -0
  13. package/lib/module/components/button/ThemedIconTextButton.js.map +1 -1
  14. package/lib/module/components/button/ThemedPressable.js +15 -0
  15. package/lib/module/components/button/ThemedPressable.js.map +1 -1
  16. package/lib/module/components/icon/ThemedIcon.js +14 -0
  17. package/lib/module/components/icon/ThemedIcon.js.map +1 -1
  18. package/lib/module/components/list/List.js +15 -0
  19. package/lib/module/components/list/List.js.map +1 -1
  20. package/lib/module/components/loading/ThemedLoading.js +13 -0
  21. package/lib/module/components/loading/ThemedLoading.js.map +1 -1
  22. package/lib/module/components/overlay/actionSheet/ActionSheet.js +32 -3
  23. package/lib/module/components/overlay/actionSheet/ActionSheet.js.map +1 -1
  24. package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js +4 -0
  25. package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js.map +1 -1
  26. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js +17 -2
  27. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js.map +1 -1
  28. package/lib/module/components/overlay/actionSheet/ActionSheetListView.js +7 -1
  29. package/lib/module/components/overlay/actionSheet/ActionSheetListView.js.map +1 -1
  30. package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js +6 -0
  31. package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js.map +1 -1
  32. package/lib/module/components/overlay/actionSheet/ActionSheetOptionList.js +6 -0
  33. package/lib/module/components/overlay/actionSheet/ActionSheetOptionList.js.map +1 -1
  34. package/lib/module/components/overlay/actionSheet/ActionSheetOptionListItem.js +6 -0
  35. package/lib/module/components/overlay/actionSheet/ActionSheetOptionListItem.js.map +1 -1
  36. package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js +7 -1
  37. package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js.map +1 -1
  38. package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js +7 -1
  39. package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js.map +1 -1
  40. package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js +6 -0
  41. package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js.map +1 -1
  42. package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js +8 -2
  43. package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js.map +1 -1
  44. package/lib/module/components/overlay/alert/Alert.js +19 -0
  45. package/lib/module/components/overlay/alert/Alert.js.map +1 -1
  46. package/lib/module/components/overlay/alert/AlertButton.js +6 -0
  47. package/lib/module/components/overlay/alert/AlertButton.js.map +1 -1
  48. package/lib/module/components/overlay/alert/AlertButtons.js +6 -0
  49. package/lib/module/components/overlay/alert/AlertButtons.js.map +1 -1
  50. package/lib/module/components/overlay/alert/AlertContent.js +6 -0
  51. package/lib/module/components/overlay/alert/AlertContent.js.map +1 -1
  52. package/lib/module/components/overlay/alert/AlertWrap.js +7 -1
  53. package/lib/module/components/overlay/alert/AlertWrap.js.map +1 -1
  54. package/lib/module/components/overlay/modal/ThemedLoadingModal.js +15 -0
  55. package/lib/module/components/overlay/modal/ThemedLoadingModal.js.map +1 -1
  56. package/lib/module/components/overlay/modal/ThemedModal.js +18 -0
  57. package/lib/module/components/overlay/modal/ThemedModal.js.map +1 -1
  58. package/lib/module/components/overlay/toast/ThemedToast.js +17 -2
  59. package/lib/module/components/overlay/toast/ThemedToast.js.map +1 -1
  60. package/lib/module/components/provider/GestureProvider.js +11 -0
  61. package/lib/module/components/provider/GestureProvider.js.map +1 -1
  62. package/lib/module/components/provider/InsetsProvider.js +12 -0
  63. package/lib/module/components/provider/InsetsProvider.js.map +1 -1
  64. package/lib/module/components/provider/ReactNativeTemplateProviders.js +12 -0
  65. package/lib/module/components/provider/ReactNativeTemplateProviders.js.map +1 -1
  66. package/lib/module/components/provider/ThemeProvider.js +11 -0
  67. package/lib/module/components/provider/ThemeProvider.js.map +1 -1
  68. package/lib/module/components/separator/ThemedSeparator.js +19 -0
  69. package/lib/module/components/separator/ThemedSeparator.js.map +1 -1
  70. package/lib/module/components/slider/Slider.js +162 -213
  71. package/lib/module/components/slider/Slider.js.map +1 -1
  72. package/lib/module/components/slider/ThemedSlider.js +24 -2
  73. package/lib/module/components/slider/ThemedSlider.js.map +1 -1
  74. package/lib/module/components/slider/ThemedSliderStepIndicator.js +6 -0
  75. package/lib/module/components/slider/ThemedSliderStepIndicator.js.map +1 -1
  76. package/lib/module/components/switch/ThemedSwitch.js +14 -0
  77. package/lib/module/components/switch/ThemedSwitch.js.map +1 -1
  78. package/lib/module/components/text/Text.js +5 -0
  79. package/lib/module/components/text/Text.js.map +1 -1
  80. package/lib/module/components/text/ThemedIconText.js +22 -0
  81. package/lib/module/components/text/ThemedIconText.js.map +1 -1
  82. package/lib/module/components/text/ThemedText.js +15 -0
  83. package/lib/module/components/text/ThemedText.js.map +1 -1
  84. package/lib/module/components/view/AnimatedThemedView.js +16 -0
  85. package/lib/module/components/view/AnimatedThemedView.js.map +1 -1
  86. package/lib/module/components/view/AnimatedView.js +6 -0
  87. package/lib/module/components/view/AnimatedView.js.map +1 -1
  88. package/lib/module/components/view/Box.js +5 -0
  89. package/lib/module/components/view/Box.js.map +1 -1
  90. package/lib/module/components/view/ThemedScreenWrap.js +79 -88
  91. package/lib/module/components/view/ThemedScreenWrap.js.map +1 -1
  92. package/lib/module/components/view/ThemedScreenWrap.web.js +84 -59
  93. package/lib/module/components/view/ThemedScreenWrap.web.js.map +1 -1
  94. package/lib/module/components/view/ThemedScrollView.js +17 -0
  95. package/lib/module/components/view/ThemedScrollView.js.map +1 -1
  96. package/lib/module/components/view/ThemedView.js +16 -0
  97. package/lib/module/components/view/ThemedView.js.map +1 -1
  98. package/lib/module/hooks/button.js +46 -0
  99. package/lib/module/hooks/button.js.map +1 -1
  100. package/lib/module/hooks/list.js +29 -0
  101. package/lib/module/hooks/list.js.map +1 -1
  102. package/lib/module/hooks/react.js +41 -0
  103. package/lib/module/hooks/react.js.map +1 -1
  104. package/lib/module/hooks/reanimated.js +10 -0
  105. package/lib/module/hooks/reanimated.js.map +1 -1
  106. package/lib/module/hooks/separator.js +18 -1
  107. package/lib/module/hooks/separator.js.map +1 -1
  108. package/lib/module/hooks/style.js +72 -0
  109. package/lib/module/hooks/style.js.map +1 -1
  110. package/lib/module/hooks/theme.js +93 -0
  111. package/lib/module/hooks/theme.js.map +1 -1
  112. package/lib/module/hooks/view.js +122 -1
  113. package/lib/module/hooks/view.js.map +1 -1
  114. package/lib/module/index.js +4 -2
  115. package/lib/module/index.js.map +1 -1
  116. package/lib/module/types/accordion.js +4 -0
  117. package/lib/module/types/accordion.js.map +1 -0
  118. package/lib/module/utils/button/const.js +28 -0
  119. package/lib/module/utils/button/const.js.map +1 -1
  120. package/lib/module/utils/overlay/const.js +72 -0
  121. package/lib/module/utils/overlay/const.js.map +1 -1
  122. package/lib/module/utils/overlay/func.js +101 -0
  123. package/lib/module/utils/overlay/func.js.map +1 -1
  124. package/lib/module/utils/slider/const.js +52 -0
  125. package/lib/module/utils/slider/const.js.map +1 -1
  126. package/lib/module/utils/style/const.js +14 -0
  127. package/lib/module/utils/style/const.js.map +1 -1
  128. package/lib/module/utils/style/func.js +102 -0
  129. package/lib/module/utils/style/func.js.map +1 -1
  130. package/lib/module/utils/theme/const.js +180 -0
  131. package/lib/module/utils/theme/const.js.map +1 -1
  132. package/lib/module/utils/theme/restyle.js +124 -0
  133. package/lib/module/utils/theme/restyle.js.map +1 -1
  134. package/lib/typescript/src/components/accordion/ThemedAccordion.d.ts +20 -0
  135. package/lib/typescript/src/components/accordion/ThemedAccordion.d.ts.map +1 -0
  136. package/lib/typescript/src/components/button/AnimatedPressable.d.ts +0 -1
  137. package/lib/typescript/src/components/button/AnimatedPressable.d.ts.map +1 -1
  138. package/lib/typescript/src/components/button/AnimatedThemedPressable.d.ts +14 -0
  139. package/lib/typescript/src/components/button/AnimatedThemedPressable.d.ts.map +1 -1
  140. package/lib/typescript/src/components/button/ThemedButton.d.ts +14 -0
  141. package/lib/typescript/src/components/button/ThemedButton.d.ts.map +1 -1
  142. package/lib/typescript/src/components/button/ThemedIconButton.d.ts +14 -0
  143. package/lib/typescript/src/components/button/ThemedIconButton.d.ts.map +1 -1
  144. package/lib/typescript/src/components/button/ThemedIconTextButton.d.ts +15 -0
  145. package/lib/typescript/src/components/button/ThemedIconTextButton.d.ts.map +1 -1
  146. package/lib/typescript/src/components/button/ThemedPressable.d.ts +15 -0
  147. package/lib/typescript/src/components/button/ThemedPressable.d.ts.map +1 -1
  148. package/lib/typescript/src/components/icon/ThemedIcon.d.ts +13 -0
  149. package/lib/typescript/src/components/icon/ThemedIcon.d.ts.map +1 -1
  150. package/lib/typescript/src/components/list/List.d.ts +14 -0
  151. package/lib/typescript/src/components/list/List.d.ts.map +1 -1
  152. package/lib/typescript/src/components/loading/ThemedLoading.d.ts +12 -0
  153. package/lib/typescript/src/components/loading/ThemedLoading.d.ts.map +1 -1
  154. package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.d.ts +18 -1
  155. package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.d.ts.map +1 -1
  156. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts +0 -2
  157. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts.map +1 -1
  158. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts +0 -2
  159. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts.map +1 -1
  160. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts +0 -2
  161. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts.map +1 -1
  162. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts +0 -2
  163. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts.map +1 -1
  164. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts +0 -2
  165. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts.map +1 -1
  166. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts +0 -3
  167. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts.map +1 -1
  168. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts +0 -2
  169. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts.map +1 -1
  170. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts +0 -2
  171. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts.map +1 -1
  172. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts +0 -3
  173. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts.map +1 -1
  174. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts +0 -2
  175. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts.map +1 -1
  176. package/lib/typescript/src/components/overlay/alert/Alert.d.ts +18 -0
  177. package/lib/typescript/src/components/overlay/alert/Alert.d.ts.map +1 -1
  178. package/lib/typescript/src/components/overlay/alert/AlertButton.d.ts +0 -3
  179. package/lib/typescript/src/components/overlay/alert/AlertButton.d.ts.map +1 -1
  180. package/lib/typescript/src/components/overlay/alert/AlertButtons.d.ts +0 -3
  181. package/lib/typescript/src/components/overlay/alert/AlertButtons.d.ts.map +1 -1
  182. package/lib/typescript/src/components/overlay/alert/AlertContent.d.ts +0 -3
  183. package/lib/typescript/src/components/overlay/alert/AlertContent.d.ts.map +1 -1
  184. package/lib/typescript/src/components/overlay/alert/AlertWrap.d.ts +0 -8
  185. package/lib/typescript/src/components/overlay/alert/AlertWrap.d.ts.map +1 -1
  186. package/lib/typescript/src/components/overlay/modal/ThemedLoadingModal.d.ts +14 -0
  187. package/lib/typescript/src/components/overlay/modal/ThemedLoadingModal.d.ts.map +1 -1
  188. package/lib/typescript/src/components/overlay/modal/ThemedModal.d.ts +17 -0
  189. package/lib/typescript/src/components/overlay/modal/ThemedModal.d.ts.map +1 -1
  190. package/lib/typescript/src/components/overlay/toast/ThemedToast.d.ts +14 -0
  191. package/lib/typescript/src/components/overlay/toast/ThemedToast.d.ts.map +1 -1
  192. package/lib/typescript/src/components/provider/GestureProvider.d.ts +11 -0
  193. package/lib/typescript/src/components/provider/GestureProvider.d.ts.map +1 -1
  194. package/lib/typescript/src/components/provider/InsetsProvider.d.ts +11 -0
  195. package/lib/typescript/src/components/provider/InsetsProvider.d.ts.map +1 -1
  196. package/lib/typescript/src/components/provider/ReactNativeTemplateProviders.d.ts +11 -0
  197. package/lib/typescript/src/components/provider/ReactNativeTemplateProviders.d.ts.map +1 -1
  198. package/lib/typescript/src/components/provider/ThemeProvider.d.ts +11 -0
  199. package/lib/typescript/src/components/provider/ThemeProvider.d.ts.map +1 -1
  200. package/lib/typescript/src/components/separator/ThemedSeparator.d.ts +18 -0
  201. package/lib/typescript/src/components/separator/ThemedSeparator.d.ts.map +1 -1
  202. package/lib/typescript/src/components/slider/Slider.d.ts +20 -0
  203. package/lib/typescript/src/components/slider/Slider.d.ts.map +1 -1
  204. package/lib/typescript/src/components/slider/ThemedSlider.d.ts +15 -0
  205. package/lib/typescript/src/components/slider/ThemedSlider.d.ts.map +1 -1
  206. package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts +0 -2
  207. package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts.map +1 -1
  208. package/lib/typescript/src/components/switch/ThemedSwitch.d.ts +13 -0
  209. package/lib/typescript/src/components/switch/ThemedSwitch.d.ts.map +1 -1
  210. package/lib/typescript/src/components/text/Text.d.ts +0 -2021
  211. package/lib/typescript/src/components/text/Text.d.ts.map +1 -1
  212. package/lib/typescript/src/components/text/ThemedIconText.d.ts +21 -0
  213. package/lib/typescript/src/components/text/ThemedIconText.d.ts.map +1 -1
  214. package/lib/typescript/src/components/text/ThemedText.d.ts +14 -0
  215. package/lib/typescript/src/components/text/ThemedText.d.ts.map +1 -1
  216. package/lib/typescript/src/components/view/AnimatedThemedView.d.ts +15 -0
  217. package/lib/typescript/src/components/view/AnimatedThemedView.d.ts.map +1 -1
  218. package/lib/typescript/src/components/view/AnimatedView.d.ts +0 -1
  219. package/lib/typescript/src/components/view/AnimatedView.d.ts.map +1 -1
  220. package/lib/typescript/src/components/view/Box.d.ts +0 -2071
  221. package/lib/typescript/src/components/view/Box.d.ts.map +1 -1
  222. package/lib/typescript/src/components/view/ThemedScreenWrap.d.ts +16 -0
  223. package/lib/typescript/src/components/view/ThemedScreenWrap.d.ts.map +1 -1
  224. package/lib/typescript/src/components/view/ThemedScreenWrap.web.d.ts +14 -0
  225. package/lib/typescript/src/components/view/ThemedScreenWrap.web.d.ts.map +1 -1
  226. package/lib/typescript/src/components/view/ThemedScrollView.d.ts +16 -0
  227. package/lib/typescript/src/components/view/ThemedScrollView.d.ts.map +1 -1
  228. package/lib/typescript/src/components/view/ThemedView.d.ts +15 -0
  229. package/lib/typescript/src/components/view/ThemedView.d.ts.map +1 -1
  230. package/lib/typescript/src/hooks/button.d.ts +41 -0
  231. package/lib/typescript/src/hooks/button.d.ts.map +1 -1
  232. package/lib/typescript/src/hooks/list.d.ts +27 -0
  233. package/lib/typescript/src/hooks/list.d.ts.map +1 -1
  234. package/lib/typescript/src/hooks/react.d.ts +38 -0
  235. package/lib/typescript/src/hooks/react.d.ts.map +1 -1
  236. package/lib/typescript/src/hooks/reanimated.d.ts +10 -0
  237. package/lib/typescript/src/hooks/reanimated.d.ts.map +1 -1
  238. package/lib/typescript/src/hooks/separator.d.ts +16 -0
  239. package/lib/typescript/src/hooks/separator.d.ts.map +1 -1
  240. package/lib/typescript/src/hooks/style.d.ts +65 -0
  241. package/lib/typescript/src/hooks/style.d.ts.map +1 -1
  242. package/lib/typescript/src/hooks/theme.d.ts +82 -0
  243. package/lib/typescript/src/hooks/theme.d.ts.map +1 -1
  244. package/lib/typescript/src/hooks/view.d.ts +40 -2
  245. package/lib/typescript/src/hooks/view.d.ts.map +1 -1
  246. package/lib/typescript/src/index.d.ts +2 -0
  247. package/lib/typescript/src/index.d.ts.map +1 -1
  248. package/lib/typescript/src/types/accordion.d.ts +42 -0
  249. package/lib/typescript/src/types/accordion.d.ts.map +1 -0
  250. package/lib/typescript/src/types/button.d.ts +92 -0
  251. package/lib/typescript/src/types/button.d.ts.map +1 -1
  252. package/lib/typescript/src/types/icon.d.ts +43 -0
  253. package/lib/typescript/src/types/icon.d.ts.map +1 -1
  254. package/lib/typescript/src/types/list.d.ts +84 -0
  255. package/lib/typescript/src/types/list.d.ts.map +1 -1
  256. package/lib/typescript/src/types/loading.d.ts +38 -0
  257. package/lib/typescript/src/types/loading.d.ts.map +1 -1
  258. package/lib/typescript/src/types/overlay.d.ts +222 -0
  259. package/lib/typescript/src/types/overlay.d.ts.map +1 -1
  260. package/lib/typescript/src/types/provider.d.ts +21 -0
  261. package/lib/typescript/src/types/provider.d.ts.map +1 -1
  262. package/lib/typescript/src/types/react.d.ts +32 -0
  263. package/lib/typescript/src/types/react.d.ts.map +1 -1
  264. package/lib/typescript/src/types/reanimated.d.ts +32 -1
  265. package/lib/typescript/src/types/reanimated.d.ts.map +1 -1
  266. package/lib/typescript/src/types/separator.d.ts +26 -0
  267. package/lib/typescript/src/types/separator.d.ts.map +1 -1
  268. package/lib/typescript/src/types/slider.d.ts +88 -0
  269. package/lib/typescript/src/types/slider.d.ts.map +1 -1
  270. package/lib/typescript/src/types/style.d.ts +43 -0
  271. package/lib/typescript/src/types/style.d.ts.map +1 -1
  272. package/lib/typescript/src/types/switch.d.ts +50 -0
  273. package/lib/typescript/src/types/switch.d.ts.map +1 -1
  274. package/lib/typescript/src/types/text.d.ts +72 -0
  275. package/lib/typescript/src/types/text.d.ts.map +1 -1
  276. package/lib/typescript/src/types/theme.d.ts +111 -0
  277. package/lib/typescript/src/types/theme.d.ts.map +1 -1
  278. package/lib/typescript/src/types/view.d.ts +137 -0
  279. package/lib/typescript/src/types/view.d.ts.map +1 -1
  280. package/lib/typescript/src/utils/button/const.d.ts +27 -0
  281. package/lib/typescript/src/utils/button/const.d.ts.map +1 -1
  282. package/lib/typescript/src/utils/overlay/const.d.ts +67 -0
  283. package/lib/typescript/src/utils/overlay/const.d.ts.map +1 -1
  284. package/lib/typescript/src/utils/overlay/func.d.ts +93 -0
  285. package/lib/typescript/src/utils/overlay/func.d.ts.map +1 -1
  286. package/lib/typescript/src/utils/slider/const.d.ts +47 -0
  287. package/lib/typescript/src/utils/slider/const.d.ts.map +1 -1
  288. package/lib/typescript/src/utils/style/const.d.ts +14 -0
  289. package/lib/typescript/src/utils/style/const.d.ts.map +1 -1
  290. package/lib/typescript/src/utils/style/func.d.ts +95 -0
  291. package/lib/typescript/src/utils/style/func.d.ts.map +1 -1
  292. package/lib/typescript/src/utils/theme/const.d.ts +170 -0
  293. package/lib/typescript/src/utils/theme/const.d.ts.map +1 -1
  294. package/lib/typescript/src/utils/theme/restyle.d.ts +1 -1977
  295. package/lib/typescript/src/utils/theme/restyle.d.ts.map +1 -1
  296. package/package.json +4 -4
  297. package/lib/module/components/overlay/actionSheet/ActionSheet.web.js +0 -76
  298. package/lib/module/components/overlay/actionSheet/ActionSheet.web.js.map +0 -1
  299. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.web.js +0 -113
  300. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.web.js.map +0 -1
  301. package/lib/module/components/slider/ThemedSlider.web.js +0 -206
  302. package/lib/module/components/slider/ThemedSlider.web.js.map +0 -1
  303. package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.web.d.ts +0 -5
  304. package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.web.d.ts.map +0 -1
  305. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.web.d.ts +0 -4
  306. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.web.d.ts.map +0 -1
  307. package/lib/typescript/src/components/slider/ThemedSlider.web.d.ts +0 -5
  308. package/lib/typescript/src/components/slider/ThemedSlider.web.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../../src/types/accordion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EACzB,eAAe,EAChB,MAAM,QAAQ,CAAC;AAEhB;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,oBAAoB,GAAG,yBAAyB,CAC1D,OAAO,CAAC,qBAAqB,CAAC,GAC5B,IAAI,CAAC,qBAAqB,EAAE,UAAU,CAAC,GAAG;IACxC,+CAA+C;IAC/C,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,qCAAqC;IACrC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,qDAAqD;IACrD,SAAS,CAAC,EAAE,uBAAuB,CAAC;IACpC,qEAAqE;IACrE,eAAe,CAAC,EAAE,oBAAoB,CAAC;IACvC,iEAAiE;IACjE,cAAc,CAAC,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;IACnD,kEAAkE;IAClE,cAAc,CAAC,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;IACnD,8CAA8C;IAC9C,gBAAgB,CAAC,EAAE,eAAe,CAAC;CACpC,CACJ,CAAC"}
@@ -7,25 +7,117 @@ import type { CustomThemedIconProps } from './icon';
7
7
  import type { CustomThemedTextProps, IconTextProps } from './text';
8
8
  import type { ThemeViewProps } from './theme';
9
9
  import type { ThemedViewProps, ViewRefObj } from './view';
10
+ /**
11
+ * Handler function for pressable components.
12
+ *
13
+ * Can be either a regular function or a Reanimated shared value containing a function.
14
+ * This allows for both standard and animated press handling.
15
+ */
10
16
  export type PressableOnPress = (event: GestureResponderEvent) => void | SharedValue<(event: GestureResponderEvent) => void>;
17
+ /**
18
+ * Configuration for delaying press event execution.
19
+ *
20
+ * Supports debounce or throttle patterns to control press event frequency.
21
+ *
22
+ * @example
23
+ * ```tsx
24
+ * const config = { type: 'debounce', wait: 300 };
25
+ * ```
26
+ */
11
27
  export type OnPressDelayConfig<T = OnPressDelayType> = {
28
+ /** Type of delay mechanism (e.g., 'debounce' or 'throttle') */
12
29
  type: T;
30
+ /** Wait time in milliseconds before executing the press handler */
13
31
  wait: number;
14
32
  };
33
+ /**
34
+ * Enhanced pressable component props with required onPress handler.
35
+ *
36
+ * Extends React Native's PressableProps with additional features like scale animations
37
+ * and press delay configuration.
38
+ */
15
39
  export type PressableProps = Omit<RNPressableProps, 'onPress'> & Required<Pick<RNPressableProps, 'onPress'>> & {
40
+ /** Scale ratio for press animation (predefined or custom number) */
16
41
  scaleRatio?: ButtonScaleRatio | number;
42
+ /** Configuration for debouncing or throttling press events */
17
43
  onPressDelayConfig?: OnPressDelayConfig;
44
+ /** Ref to the underlying View component */
18
45
  ref?: ViewRefObj;
19
46
  };
47
+ /**
48
+ * Pressable component with theme-aware styling capabilities.
49
+ *
50
+ * Combines pressable functionality with theme-based view properties.
51
+ */
20
52
  export type ThemedPressableProps = PressableProps & ThemeViewProps;
53
+ /**
54
+ * Props for the AnimatedPressable component.
55
+ *
56
+ * Inferred from the AnimatedPressable component implementation.
57
+ */
21
58
  export type AnimatedPressableProps = ComponentProps<typeof AnimatedPressable>;
59
+ /**
60
+ * Themed pressable with Reanimated animation support.
61
+ *
62
+ * Merges themed pressable capabilities with Reanimated animations for complex interactions.
63
+ */
22
64
  export type AnimatedThemedPressableProps = Omit<ThemedPressableProps, 'ref' | 'scaleRatio'> & Omit<AnimatedPressableProps, 'key' | 'style'> & {
65
+ /** Animated style object for Reanimated animations */
23
66
  animatedStyle?: AnimatedPressableProps['style'];
24
67
  };
68
+ /**
69
+ * Base button props without children constraint.
70
+ *
71
+ * Used as a foundation for specialized button types.
72
+ */
25
73
  type ButtonProps = PropsWithChildren<Omit<ThemedPressableProps, 'children'>>;
74
+ /**
75
+ * Themed button component with text content.
76
+ *
77
+ * A button that displays text with theme-aware styling.
78
+ *
79
+ * @example
80
+ * ```tsx
81
+ * <ThemedButton
82
+ * text="Click Me"
83
+ * textColor="primary"
84
+ * onPress={() => console.log('Pressed')}
85
+ * />
86
+ * ```
87
+ */
26
88
  export type ThemedButtonProps = ButtonProps & CustomThemedTextProps;
89
+ /**
90
+ * Themed button component with icon content.
91
+ *
92
+ * A button that displays an icon with theme-aware styling.
93
+ *
94
+ * @example
95
+ * ```tsx
96
+ * <ThemedIconButton
97
+ * iconName="heart"
98
+ * iconColor="error"
99
+ * onPress={() => console.log('Liked')}
100
+ * />
101
+ * ```
102
+ */
27
103
  export type ThemedIconButtonProps = ButtonProps & CustomThemedIconProps;
104
+ /**
105
+ * Themed button component with both icon and text content.
106
+ *
107
+ * A button that displays an icon alongside text, with optional layout control.
108
+ *
109
+ * @example
110
+ * ```tsx
111
+ * <ThemedIconTextButton
112
+ * iconName="arrow-right"
113
+ * text="Continue"
114
+ * flip={false}
115
+ * onPress={() => console.log('Continue')}
116
+ * />
117
+ * ```
118
+ */
28
119
  export type ThemedIconTextButtonProps = PropsWithChildren<ButtonProps & IconTextProps & {
120
+ /** Additional props for the icon-text container wrapper */
29
121
  iconTextProps?: ThemedViewProps;
30
122
  }>;
31
123
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/types/button.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,KAAK,EACV,qBAAqB,EACrB,cAAc,IAAI,gBAAgB,EACnC,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,iBAAiB,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAE1D,MAAM,MAAM,gBAAgB,GAAG,CAC7B,KAAK,EAAE,qBAAqB,KACzB,IAAI,GAAG,WAAW,CAAC,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC,CAAC;AAEhE,MAAM,MAAM,kBAAkB,CAAC,CAAC,GAAG,gBAAgB,IAAI;IACrD,IAAI,EAAE,CAAC,CAAC;IACR,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AA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AIG;AACH,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAC7C,oBAAoB,EACpB,KAAK,GAAG,YAAY,CACrB,GACC,IAAI,CAAC,sBAAsB,EAAE,KAAK,GAAG,OAAO,CAAC,GAAG;IAC9C,sDAAsD;IACtD,aAAa,CAAC,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC;CACjD,CAAC;AAEJ;;;;GAIG;AACH,KAAK,WAAW,GAAG,iBAAiB,CAAC,IAAI,CAAC,oBAAoB,EAAE,UAAU,CAAC,CAAC,CAAC;AAE7E;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,qBAAqB,CAAC;AAEpE;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG,qBAAqB,CAAC;AAExE;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,yBAAyB,GAAG,iBAAiB,CACvD,WAAW,GACT,aAAa,GAAG;IACd,2DAA2D;IAC3D,aAAa,CAAC,EAAE,eAAe,CAAC;CACjC,CACJ,CAAC"}
@@ -2,18 +2,61 @@ import type { IconName, IconSize } from '@jamadd/react-native-template-icons';
2
2
  import type { TextStyle } from 'react-native';
3
3
  import type { StyleOrStyleProp } from './style';
4
4
  import type { ThemeBaseProps, ThemeColors } from './theme';
5
+ /**
6
+ * Basic icon component props.
7
+ *
8
+ * Defines the essential properties for rendering an icon from the icon library.
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * const iconProps: IconProps = {
13
+ * name: 'heart',
14
+ * size: 24,
15
+ * color: 'red'
16
+ * };
17
+ * ```
18
+ */
5
19
  export type IconProps = {
20
+ /** Name of the icon from the icon library */
6
21
  name: IconName;
22
+ /** Size of the icon (predefined size or custom number) */
7
23
  size?: IconSize | number;
24
+ /** Color from the theme colors palette */
8
25
  color?: ThemeColors;
26
+ /** Custom style overrides for the icon */
9
27
  style?: StyleOrStyleProp<TextStyle>;
10
28
  };
29
+ /**
30
+ * Icon component with theme-aware properties.
31
+ *
32
+ * Extends IconProps with theme-based spacing, layout, and positioning capabilities.
33
+ */
11
34
  export type ThemedIconProps = IconProps & ThemeBaseProps;
35
+ /**
36
+ * Customizable themed icon props with prefixed property names.
37
+ *
38
+ * Useful when embedding icons within other components to avoid prop name conflicts.
39
+ * All icon-related props are prefixed with 'icon' for clarity.
40
+ *
41
+ * @example
42
+ * ```tsx
43
+ * <Component
44
+ * iconName="settings"
45
+ * iconSize={20}
46
+ * iconColor="primary"
47
+ * />
48
+ * ```
49
+ */
12
50
  export type CustomThemedIconProps = {
51
+ /** Icon name from the icon library */
13
52
  iconName: ThemedIconProps['name'];
53
+ /** Icon size (predefined or custom number) */
14
54
  iconSize?: ThemedIconProps['size'];
55
+ /** Icon color from theme colors */
15
56
  iconColor?: ThemedIconProps['color'];
57
+ /** Custom style for the icon */
16
58
  iconStyle?: ThemedIconProps['style'];
59
+ /** Additional icon props (excluding name, size, color, style) */
17
60
  iconProps?: Omit<ThemedIconProps, 'name' | 'size' | 'color' | 'style'>;
18
61
  };
19
62
  //# sourceMappingURL=icon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../src/types/icon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3D,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,KAAK,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;CACrC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CAAC,CAAC;IAClC,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IACnC,mCAAmC;IACnC,SAAS,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IACrC,gCAAgC;IAChC,SAAS,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IACrC,iEAAiE;IACjE,SAAS,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC,CAAC;CACxE,CAAC"}
@@ -6,25 +6,109 @@ import type { ThemedSeparatorProps } from './separator';
6
6
  import type { InsetsStyleConfig } from './style';
7
7
  import type { ThemeColors } from './theme';
8
8
  import type { PropsWithRequiredChildren } from './view';
9
+ /**
10
+ * Reference to a FlashList component.
11
+ *
12
+ * Provides access to FlashList methods like scrollToIndex, scrollToEnd, etc.
13
+ */
9
14
  export type ListRef<T> = FlashListRef<T>;
15
+ /**
16
+ * RefObject for a FlashList component.
17
+ *
18
+ * Used to store and access the list reference in React components.
19
+ */
10
20
  export type ListRefObj<T> = RefObject<ListRef<T> | null>;
21
+ /**
22
+ * Animated RefObject for a FlashList component.
23
+ *
24
+ * Used with Reanimated for animated list operations and scroll handling.
25
+ */
11
26
  export type ListAnimatedRefObj<T> = AnimatedRef<ListRef<T>>;
27
+ /**
28
+ * Props provided to list item render functions.
29
+ *
30
+ * Contains item data, index, and additional metadata for rendering list items.
31
+ */
12
32
  export type ListItemProps<T> = ListRenderItemInfo<T>;
33
+ /**
34
+ * Function to extract unique keys from list items.
35
+ *
36
+ * Required by FlashList for efficient item tracking and updates.
37
+ *
38
+ * @example
39
+ * ```tsx
40
+ * const keyExtractor: ListKeyExtractor<User> = (user) => user.id;
41
+ * ```
42
+ */
13
43
  export type ListKeyExtractor<T> = (item: T, index: number) => string;
44
+ /**
45
+ * Function to determine item types for heterogeneous lists.
46
+ *
47
+ * Used by FlashList to optimize rendering of lists with different item types.
48
+ *
49
+ * @example
50
+ * ```tsx
51
+ * const getItemType: ListGetItemType<Message> = (item) => item.type;
52
+ * ```
53
+ */
14
54
  export type ListGetItemType<T> = (item: T, index: number, extraData?: any) => string | number | undefined;
55
+ /**
56
+ * Props for the themed list component.
57
+ *
58
+ * Extends FlashList with theme support, insets handling, and type-safe item rendering.
59
+ * Requires data array, Item component, and keyExtractor function.
60
+ *
61
+ * @example
62
+ * ```tsx
63
+ * <List
64
+ * data={users}
65
+ * Item={UserItem}
66
+ * keyExtractor={(user) => user.id}
67
+ * estimatedItemSize={100}
68
+ * />
69
+ * ```
70
+ */
15
71
  export type ListProps<T> = Omit<FlashListProps<T>, 'data' | 'renderItem' | 'keyExtractor'> & InsetsStyleConfig & {
72
+ /** Reference to the list instance */
16
73
  ref?: ListRefObj<T> | ListAnimatedRefObj<T>;
74
+ /** Array of items to render */
17
75
  data: T[];
76
+ /** Component to render each list item */
18
77
  Item: ComponentType<ListItemProps<T>>;
78
+ /** Function to extract unique key from each item */
19
79
  keyExtractor: ListKeyExtractor<T>;
20
80
  };
81
+ /**
82
+ * Props for customizing list item separators.
83
+ *
84
+ * Allows configuration of separator appearance between list items.
85
+ *
86
+ * @example
87
+ * ```tsx
88
+ * const separatorProps: ListItemSeparatorProps = {
89
+ * size: 'sm',
90
+ * backgroundColor: 'border',
91
+ * vertical: false
92
+ * };
93
+ * ```
94
+ */
21
95
  export type ListItemSeparatorProps = Partial<Pick<ThemedSeparatorProps, 'size' | 'vertical'> & {
96
+ /** Background color from theme colors */
22
97
  backgroundColor: ThemeColors;
98
+ /** Additional style props for the separator */
23
99
  style: Omit<ThemedSeparatorProps, 'size' | 'vertical' | 'backgroundColor' | 'bg'>;
24
100
  }>;
101
+ /**
102
+ * Props for custom cell renderer components.
103
+ *
104
+ * Used when implementing custom list item wrappers with FlashList.
105
+ */
25
106
  export type ListCellRendererComponentProps = PropsWithRequiredChildren<{
107
+ /** Callback when the cell layout changes */
26
108
  onLayout: () => void;
109
+ /** Index of the item in the list */
27
110
  index: number;
111
+ /** Style object for the cell container */
28
112
  style: ViewStyle;
29
113
  }>;
30
114
  //# sourceMappingURL=list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/types/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAM,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,QAAQ,CAAC;AAExD,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC;AAEzC,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;AAEzD,MAAM,MAAM,kBAAkB,CAAC,CAAC,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;AAE5D,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAC;AAErD,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;AAErE,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAC/B,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,MAAM,EACb,SAAS,CAAC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,yCAAyC;IACzC,IAAI,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;IACtC,oDAAoD;IACpD,YAAY,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;CACnC,CAAC;AAEJ;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAC1C,IAAI,CAAC,oBAAoB,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG;IAChD,yCAAyC;IACzC,eAAe,EAAE,WAAW,CAAC;IAC7B,+CAA+C;IAC/C,KAAK,EAAE,IAAI,CACT,oBAAoB,EACpB,MAAM,GAAG,UAAU,GAAG,iBAAiB,GAAG,IAAI,CAC/C,CAAC;CACH,CACF,CAAC;AAYF;;;;GAIG;AACH,MAAM,MAAM,8BAA8B,GAAG,yBAAyB,CAAC;IACrE,4CAA4C;IAC5C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,KAAK,EAAE,SAAS,CAAC;CAClB,CAAC,CAAC"}
@@ -1,12 +1,50 @@
1
1
  import type { ActivityIndicatorProps } from 'react-native';
2
2
  import type { ThemeBaseProps, ThemeColorProps } from './theme';
3
+ /**
4
+ * Props for the loading/activity indicator component.
5
+ *
6
+ * Extends React Native's ActivityIndicator with theme-aware color support.
7
+ */
3
8
  export type LoadingProps = Omit<ActivityIndicatorProps, 'color'> & {
9
+ /** Color from theme colors palette for the loading indicator */
4
10
  color?: ThemeColorProps['color'];
5
11
  };
12
+ /**
13
+ * Themed loading indicator component props.
14
+ *
15
+ * Combines loading indicator with theme-based spacing, layout, and positioning.
16
+ *
17
+ * @example
18
+ * ```tsx
19
+ * <ThemedLoading
20
+ * size="large"
21
+ * color="primary"
22
+ * padding="md"
23
+ * />
24
+ * ```
25
+ */
6
26
  export type ThemedLoadingProps = LoadingProps & ThemeBaseProps;
27
+ /**
28
+ * Customizable themed loading props with prefixed property names.
29
+ *
30
+ * Useful when embedding loading indicators within other components.
31
+ * All loading-related props are prefixed with 'loading' for clarity.
32
+ *
33
+ * @example
34
+ * ```tsx
35
+ * <Button
36
+ * loadingSize="small"
37
+ * loadingColor="white"
38
+ * loadingProps={{ animating: true }}
39
+ * />
40
+ * ```
41
+ */
7
42
  export type CustomThemedLoadingProps = {
43
+ /** Size of the loading indicator ('small' or 'large') */
8
44
  loadingSize?: ThemedLoadingProps['size'];
45
+ /** Color from theme colors for the loading indicator */
9
46
  loadingColor?: ThemedLoadingProps['color'];
47
+ /** Additional loading indicator props (excluding size and color) */
10
48
  loadingProps?: Omit<ThemedLoadingProps, 'size' | 'color'>;
11
49
  };
12
50
  //# sourceMappingURL=loading.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"loading.d.ts","sourceRoot":"","sources":["../../../../src/types/loading.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/D,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,sBAAsB,EAAE,OAAO,CAAC,GAAG;IACjE,KAAK,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG,cAAc,CAAC;AAE/D,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IACzC,YAAY,CAAC,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAC3C,YAAY,CAAC,EAAE,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;CAC3D,CAAC"}
1
+ {"version":3,"file":"loading.d.ts","sourceRoot":"","sources":["../../../../src/types/loading.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc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