@trilogy-ds/react 0.0.20-esm-cjs → 0.0.23-esm-cjs

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 (556) hide show
  1. package/lib/{chunk-7ZANYDV4.mjs → chunk-2BQXWN3R.mjs} +1 -1
  2. package/lib/{chunk-WV5PBU2C.mjs → chunk-2DMJIJTD.mjs} +17 -5
  3. package/lib/{chunk-MDZE2AV3.mjs → chunk-2EF72O53.mjs} +15 -8
  4. package/lib/{chunk-G2QCDZEE.mjs → chunk-33VIHGIE.mjs} +1 -1
  5. package/lib/{chunk-JB7AXJFO.mjs → chunk-3CUMNA5T.mjs} +16 -4
  6. package/lib/{chunk-27BK6EVC.mjs → chunk-3QN2JTJH.mjs} +3 -3
  7. package/lib/{chunk-IT2ZBSQG.mjs → chunk-3TFMB2ZU.mjs} +16 -7
  8. package/lib/{chunk-POCUFCQC.mjs → chunk-4J6WJU6H.mjs} +1 -1
  9. package/lib/chunk-4LBDW7MG.mjs +320 -0
  10. package/lib/{chunk-UPP3GX33.mjs → chunk-5NCBENYK.mjs} +16 -6
  11. package/lib/{chunk-B6D5UHOQ.mjs → chunk-6WPEEBMC.mjs} +1 -1
  12. package/lib/{chunk-ZRWNSZC6.mjs → chunk-6YU73H5M.mjs} +1 -1
  13. package/lib/chunk-7DJ5V2J7.mjs +90 -0
  14. package/lib/chunk-7HQWD2HW.mjs +635 -0
  15. package/lib/{chunk-ZSBVX26X.mjs → chunk-7LIZKR65.mjs} +1 -1
  16. package/lib/{chunk-T4AH7FLU.mjs → chunk-AVYI3IRF.mjs} +1 -1
  17. package/lib/{chunk-IOXFCPJQ.mjs → chunk-BNFC4BW2.mjs} +1 -1
  18. package/lib/{chunk-U2STNP4N.mjs → chunk-CKEC5R4P.mjs} +1 -1
  19. package/lib/{chunk-Q3NP4BBO.mjs → chunk-CU2FQJB3.mjs} +2 -2
  20. package/lib/{chunk-TCRJL43C.mjs → chunk-DB4LE4EW.mjs} +2 -2
  21. package/lib/{chunk-5ALKJFH4.mjs → chunk-DJQD6XHB.mjs} +1 -1
  22. package/lib/{chunk-LQ2EKGFZ.mjs → chunk-DOYDNMGO.mjs} +1 -1
  23. package/lib/{chunk-UC3N6X6R.mjs → chunk-DTG6ZDOA.mjs} +1 -1
  24. package/lib/{chunk-XZCE64VV.mjs → chunk-EFI4OPOL.mjs} +1 -1
  25. package/lib/{chunk-2MP6W4C2.mjs → chunk-EIBKS56D.mjs} +4 -4
  26. package/lib/{chunk-432FETUO.mjs → chunk-EKMGL7ZZ.mjs} +1 -1
  27. package/lib/{chunk-3I74MN5M.mjs → chunk-FADGUVGS.mjs} +2 -2
  28. package/lib/{chunk-M5W5FRMF.mjs → chunk-FKLCZFMR.mjs} +2 -2
  29. package/lib/{chunk-IHTDJ5DD.mjs → chunk-GQOES35K.mjs} +2 -2
  30. package/lib/{chunk-ZEEM3OU3.mjs → chunk-HS7PWFF3.mjs} +3 -3
  31. package/lib/{chunk-X5HHW5EE.mjs → chunk-HZAMMVDY.mjs} +3 -3
  32. package/lib/{chunk-LJ4LZ3UC.mjs → chunk-ILTCTVY7.mjs} +1 -1
  33. package/lib/{chunk-HPM5H4HF.mjs → chunk-INMX4E34.mjs} +1 -1
  34. package/lib/{chunk-ACDIJOLY.mjs → chunk-IZYESQPA.mjs} +12 -5
  35. package/lib/{chunk-I3LRGLUL.mjs → chunk-J2YGXNIH.mjs} +3 -3
  36. package/lib/{chunk-67BVHO7H.mjs → chunk-JDIKK2K5.mjs} +2 -2
  37. package/lib/chunk-JJA6BOVR.mjs +12 -0
  38. package/lib/{chunk-BIWBGSDJ.mjs → chunk-KPIWEUFQ.mjs} +1 -1
  39. package/lib/{chunk-NKO25SIM.mjs → chunk-KRZWEBDP.mjs} +2 -2
  40. package/lib/chunk-LHDHBH5T.mjs +1 -0
  41. package/lib/{chunk-SFL4T7RS.mjs → chunk-MIEXUCOH.mjs} +1 -1
  42. package/lib/{chunk-Y4CLZAPU.mjs → chunk-MR7AJAP2.mjs} +2 -2
  43. package/lib/{chunk-VSYM7BJ4.mjs → chunk-MV3N2D6T.mjs} +1 -1
  44. package/lib/{chunk-CCIRXOIR.mjs → chunk-NHN7GU32.mjs} +2 -2
  45. package/lib/{chunk-RVRMMLZJ.mjs → chunk-NPCDCOTL.mjs} +2 -2
  46. package/lib/{chunk-I4RR2QN7.mjs → chunk-OQ6PNNED.mjs} +2 -2
  47. package/lib/{chunk-QNDMUIJM.mjs → chunk-PZ2SAVMT.mjs} +2 -2
  48. package/lib/{chunk-573KW52P.mjs → chunk-PZP5ZUI3.mjs} +1 -1
  49. package/lib/chunk-RA7237YI.mjs +84 -0
  50. package/lib/{chunk-YSBY3XJC.mjs → chunk-RAQQH2DI.mjs} +1 -1
  51. package/lib/{chunk-K5D3QU3U.mjs → chunk-RGEGLOEG.mjs} +2 -2
  52. package/lib/{chunk-Y6VHQF2J.mjs → chunk-SOW7WGY7.mjs} +1 -1
  53. package/lib/{chunk-QIEADZWY.mjs → chunk-T27AVHAC.mjs} +1 -1
  54. package/lib/{chunk-UTXKOHCM.mjs → chunk-T2NWMSDU.mjs} +3 -3
  55. package/lib/{chunk-KUVBW2U7.mjs → chunk-THX2YDD5.mjs} +1 -1
  56. package/lib/{chunk-VL2UCFFK.mjs → chunk-TXKGISWW.mjs} +2 -2
  57. package/lib/{chunk-NE4WGXUM.mjs → chunk-TZFHL54Q.mjs} +1 -1
  58. package/lib/{chunk-QTEMHSK5.mjs → chunk-UIJLFZYF.mjs} +1 -1
  59. package/lib/{chunk-5NJMUSWY.mjs → chunk-UMCBNLSL.mjs} +1 -1
  60. package/lib/{chunk-DWZ232Q2.mjs → chunk-UQSQUPSK.mjs} +2 -2
  61. package/lib/chunk-UZO5VCH2.mjs +1 -0
  62. package/lib/{chunk-TPXCSXWT.mjs → chunk-VXYPRBJB.mjs} +3 -3
  63. package/lib/{chunk-5DY6WPCA.mjs → chunk-WWBPXBJT.mjs} +2 -2
  64. package/lib/{chunk-7TEPMZRL.mjs → chunk-XRN2HE4L.mjs} +1 -1
  65. package/lib/{chunk-23RKW2TY.mjs → chunk-Z44CCSOP.mjs} +1 -1
  66. package/lib/{chunk-JDLZGLZJ.mjs → chunk-Z7AZ74DI.mjs} +2 -2
  67. package/lib/components/accordion/index.mjs +3 -3
  68. package/lib/components/accordion/index.native.js +54 -37
  69. package/lib/components/accordion/index.native.mjs +9 -6
  70. package/lib/components/accordion/item/AccordionItem.native.js +48 -31
  71. package/lib/components/accordion/item/AccordionItem.native.mjs +6 -3
  72. package/lib/components/accordion/item/index.native.js +48 -31
  73. package/lib/components/accordion/item/index.native.mjs +6 -3
  74. package/lib/components/alert/Alert.mjs +2 -2
  75. package/lib/components/alert/Alert.native.js +138 -115
  76. package/lib/components/alert/Alert.native.mjs +19 -16
  77. package/lib/components/alert/index.mjs +2 -2
  78. package/lib/components/alert/index.native.js +138 -115
  79. package/lib/components/alert/index.native.mjs +19 -16
  80. package/lib/components/autocomplete/AutoComplete.mjs +15 -15
  81. package/lib/components/autocomplete/AutoComplete.native.js +158 -142
  82. package/lib/components/autocomplete/AutoComplete.native.mjs +21 -18
  83. package/lib/components/autocomplete/index.mjs +17 -17
  84. package/lib/components/autocomplete/index.native.js +166 -150
  85. package/lib/components/autocomplete/index.native.mjs +26 -23
  86. package/lib/components/autocomplete/item/AutoCompleteIem.native.js +67 -87
  87. package/lib/components/autocomplete/item/AutoCompleteIem.native.mjs +7 -5
  88. package/lib/components/autocomplete/item/AutoCompleteItem.mjs +1 -1
  89. package/lib/components/autocomplete/item/index.mjs +2 -2
  90. package/lib/components/autocomplete/item/index.native.js +67 -87
  91. package/lib/components/autocomplete/item/index.native.mjs +7 -5
  92. package/lib/components/autocomplete/menu/AutoCompleteMenu.mjs +1 -1
  93. package/lib/components/autocomplete/menu/AutoCompleteMenu.native.js +118 -102
  94. package/lib/components/autocomplete/menu/AutoCompleteMenu.native.mjs +18 -15
  95. package/lib/components/autocomplete/menu/index.mjs +1 -1
  96. package/lib/components/autocomplete/menu/index.native.js +118 -102
  97. package/lib/components/autocomplete/menu/index.native.mjs +18 -15
  98. package/lib/components/autolayout/AutoLayout/AutoLayout.native.mjs +2 -2
  99. package/lib/components/autolayout/AutoLayout/index.native.mjs +2 -2
  100. package/lib/components/autolayout/AutoLayoutWrapper/index.native.mjs +3 -3
  101. package/lib/components/autolayout/index.mjs +3 -3
  102. package/lib/components/autolayout/index.native.mjs +3 -3
  103. package/lib/components/badge/Badge.mjs +1 -1
  104. package/lib/components/badge/Badge.native.js +37 -20
  105. package/lib/components/badge/Badge.native.mjs +16 -13
  106. package/lib/components/badge/index.mjs +1 -1
  107. package/lib/components/badge/index.native.js +37 -20
  108. package/lib/components/badge/index.native.mjs +16 -13
  109. package/lib/components/box/Box.native.js +34 -16
  110. package/lib/components/box/Box.native.mjs +5 -2
  111. package/lib/components/box/content/BoxContent.mjs +1 -1
  112. package/lib/components/box/content/index.mjs +1 -1
  113. package/lib/components/box/footer/BoxFooter.mjs +1 -1
  114. package/lib/components/box/footer/BoxFooter.native.js +34 -17
  115. package/lib/components/box/footer/BoxFooter.native.mjs +15 -12
  116. package/lib/components/box/footer/index.mjs +1 -1
  117. package/lib/components/box/footer/index.native.js +34 -17
  118. package/lib/components/box/footer/index.native.mjs +15 -12
  119. package/lib/components/box/header/BoxHeader.mjs +1 -1
  120. package/lib/components/box/header/BoxHeader.native.mjs +2 -2
  121. package/lib/components/box/header/index.mjs +1 -1
  122. package/lib/components/box/header/index.native.mjs +2 -2
  123. package/lib/components/box/index.mjs +9 -9
  124. package/lib/components/box/index.native.js +75 -49
  125. package/lib/components/box/index.native.mjs +22 -19
  126. package/lib/components/breadcrumb/Breadcrumb.native.js +34 -17
  127. package/lib/components/breadcrumb/Breadcrumb.native.mjs +6 -3
  128. package/lib/components/breadcrumb/index.mjs +1 -1
  129. package/lib/components/breadcrumb/index.native.js +94 -78
  130. package/lib/components/breadcrumb/index.native.mjs +9 -6
  131. package/lib/components/breadcrumb/item/BreadcrumbItem.mjs +1 -1
  132. package/lib/components/breadcrumb/item/BreadcrumbItem.native.js +71 -91
  133. package/lib/components/breadcrumb/item/BreadcrumbItem.native.mjs +7 -5
  134. package/lib/components/breadcrumb/item/index.mjs +1 -1
  135. package/lib/components/breadcrumb/item/index.native.js +71 -91
  136. package/lib/components/breadcrumb/item/index.native.mjs +7 -5
  137. package/lib/components/button/Button.mjs +1 -1
  138. package/lib/components/button/Button.native.js +50 -33
  139. package/lib/components/button/Button.native.mjs +16 -13
  140. package/lib/components/button/index.mjs +1 -1
  141. package/lib/components/button/index.native.js +53 -36
  142. package/lib/components/button/index.native.mjs +16 -13
  143. package/lib/components/button/list/ButtonList.mjs +1 -1
  144. package/lib/components/button/list/index.mjs +1 -1
  145. package/lib/components/calendar/Calendar.js +15 -3
  146. package/lib/components/calendar/Calendar.mjs +15 -15
  147. package/lib/components/calendar/Calendar.native.d.mts +15 -2
  148. package/lib/components/calendar/Calendar.native.d.ts +15 -2
  149. package/lib/components/calendar/Calendar.native.js +945 -3
  150. package/lib/components/calendar/Calendar.native.mjs +23 -1
  151. package/lib/components/calendar/index.js +15 -3
  152. package/lib/components/calendar/index.mjs +15 -15
  153. package/lib/components/calendar/index.native.js +943 -3
  154. package/lib/components/calendar/index.native.mjs +23 -1
  155. package/lib/components/card/Card.native.js +33 -43
  156. package/lib/components/card/Card.native.mjs +5 -3
  157. package/lib/components/card/content/CardContent.native.js +39 -49
  158. package/lib/components/card/content/CardContent.native.mjs +6 -4
  159. package/lib/components/card/content/index.native.js +39 -49
  160. package/lib/components/card/content/index.native.mjs +6 -4
  161. package/lib/components/card/image/CardImage.native.js +44 -54
  162. package/lib/components/card/image/CardImage.native.mjs +6 -4
  163. package/lib/components/card/image/index.native.js +44 -54
  164. package/lib/components/card/image/index.native.mjs +6 -4
  165. package/lib/components/card/index.mjs +1 -1
  166. package/lib/components/card/index.native.js +50 -60
  167. package/lib/components/card/index.native.mjs +7 -5
  168. package/lib/components/checkbox/Checkbox.native.js +92 -76
  169. package/lib/components/checkbox/Checkbox.native.mjs +8 -5
  170. package/lib/components/checkbox/index.mjs +15 -15
  171. package/lib/components/checkbox/index.native.js +139 -123
  172. package/lib/components/checkbox/index.native.mjs +25 -22
  173. package/lib/components/checkbox/list/CheckboxList.mjs +12 -12
  174. package/lib/components/checkbox/list/CheckboxList.native.js +71 -91
  175. package/lib/components/checkbox/list/CheckboxList.native.mjs +10 -8
  176. package/lib/components/checkbox/list/index.mjs +12 -12
  177. package/lib/components/checkbox/list/index.native.js +71 -91
  178. package/lib/components/checkbox/list/index.native.mjs +10 -8
  179. package/lib/components/checkbox/tiles/tile/CheckboxTile.mjs +12 -12
  180. package/lib/components/checkbox/tiles/tile/CheckboxTile.native.js +107 -91
  181. package/lib/components/checkbox/tiles/tile/CheckboxTile.native.mjs +18 -15
  182. package/lib/components/checkbox/tiles/tile/index.mjs +12 -12
  183. package/lib/components/checkbox/tiles/tile/index.native.js +107 -91
  184. package/lib/components/checkbox/tiles/tile/index.native.mjs +18 -15
  185. package/lib/components/chips/Chips.native.js +125 -109
  186. package/lib/components/chips/Chips.native.mjs +8 -5
  187. package/lib/components/chips/index.native.js +125 -109
  188. package/lib/components/chips/index.native.mjs +8 -5
  189. package/lib/components/columns/column/Column.native.js +40 -23
  190. package/lib/components/columns/column/Column.native.mjs +15 -12
  191. package/lib/components/columns/column/index.native.js +40 -23
  192. package/lib/components/columns/column/index.native.mjs +15 -12
  193. package/lib/components/columns/index.native.js +40 -23
  194. package/lib/components/columns/index.native.mjs +15 -12
  195. package/lib/components/countdown/Countdown.native.js +74 -94
  196. package/lib/components/countdown/Countdown.native.mjs +7 -5
  197. package/lib/components/countdown/index.native.js +74 -94
  198. package/lib/components/countdown/index.native.mjs +7 -5
  199. package/lib/components/datepicker/DatePicker.js +15 -3
  200. package/lib/components/datepicker/DatePicker.mjs +17 -17
  201. package/lib/components/datepicker/DatePicker.native.d.mts +18 -2
  202. package/lib/components/datepicker/DatePicker.native.d.ts +18 -2
  203. package/lib/components/datepicker/DatePicker.native.js +1248 -3
  204. package/lib/components/datepicker/DatePicker.native.mjs +26 -1
  205. package/lib/components/datepicker/index.js +15 -3
  206. package/lib/components/datepicker/index.mjs +17 -17
  207. package/lib/components/datepicker/index.native.js +1247 -4
  208. package/lib/components/datepicker/index.native.mjs +26 -1
  209. package/lib/components/divider/Divider.mjs +1 -1
  210. package/lib/components/divider/Divider.native.js +98 -82
  211. package/lib/components/divider/Divider.native.mjs +8 -5
  212. package/lib/components/divider/index.mjs +1 -1
  213. package/lib/components/divider/index.native.js +98 -82
  214. package/lib/components/divider/index.native.mjs +8 -5
  215. package/lib/components/fab/Fab.mjs +1 -1
  216. package/lib/components/fab/Fab.native.js +92 -76
  217. package/lib/components/fab/Fab.native.mjs +17 -14
  218. package/lib/components/fab/index.mjs +1 -1
  219. package/lib/components/fab/index.native.js +92 -76
  220. package/lib/components/fab/index.native.mjs +17 -14
  221. package/lib/components/flex-box/FlexBox.native.js +53 -36
  222. package/lib/components/flex-box/FlexBox.native.mjs +15 -12
  223. package/lib/components/flex-box/index.native.js +59 -42
  224. package/lib/components/flex-box/index.native.mjs +15 -12
  225. package/lib/components/hero/Hero.native.js +87 -61
  226. package/lib/components/hero/Hero.native.mjs +20 -17
  227. package/lib/components/hero/index.native.js +87 -61
  228. package/lib/components/hero/index.native.mjs +20 -17
  229. package/lib/components/icon/Icon.mjs +1 -1
  230. package/lib/components/icon/Icon.native.js +30 -13
  231. package/lib/components/icon/Icon.native.mjs +5 -2
  232. package/lib/components/icon/index.mjs +1 -1
  233. package/lib/components/icon/index.native.js +30 -13
  234. package/lib/components/icon/index.native.mjs +5 -2
  235. package/lib/components/image/Image.mjs +12 -12
  236. package/lib/components/image/index.mjs +12 -12
  237. package/lib/components/index.d.mts +1 -0
  238. package/lib/components/index.d.ts +1 -0
  239. package/lib/components/index.js +144 -123
  240. package/lib/components/index.mjs +85 -79
  241. package/lib/components/index.native.js +1926 -968
  242. package/lib/components/index.native.mjs +120 -117
  243. package/lib/components/input/Input.mjs +12 -12
  244. package/lib/components/input/Input.native.js +143 -127
  245. package/lib/components/input/Input.native.mjs +18 -15
  246. package/lib/components/input/gauge/InputGauge.mjs +12 -12
  247. package/lib/components/input/gauge/InputGauge.native.js +108 -92
  248. package/lib/components/input/gauge/InputGauge.native.mjs +17 -14
  249. package/lib/components/input/gauge/hook/useGauge.mjs +12 -12
  250. package/lib/components/input/gauge/hook/useGauge.native.js +44 -27
  251. package/lib/components/input/gauge/hook/useGauge.native.mjs +15 -12
  252. package/lib/components/input/index.mjs +12 -12
  253. package/lib/components/input/index.native.js +143 -127
  254. package/lib/components/input/index.native.mjs +18 -15
  255. package/lib/components/link/Link.mjs +1 -1
  256. package/lib/components/link/Link.native.js +37 -20
  257. package/lib/components/link/Link.native.mjs +6 -3
  258. package/lib/components/link/index.mjs +1 -1
  259. package/lib/components/link/index.native.js +37 -20
  260. package/lib/components/link/index.native.mjs +6 -3
  261. package/lib/components/list/index.mjs +12 -12
  262. package/lib/components/list/index.native.js +95 -79
  263. package/lib/components/list/index.native.mjs +18 -15
  264. package/lib/components/list/item/ListItem.mjs +12 -12
  265. package/lib/components/list/item/ListItem.native.js +97 -81
  266. package/lib/components/list/item/ListItem.native.mjs +17 -14
  267. package/lib/components/list/item/description/ListItemDescription.mjs +1 -1
  268. package/lib/components/list/item/description/ListItemDescription.native.js +125 -109
  269. package/lib/components/list/item/description/ListItemDescription.native.mjs +17 -14
  270. package/lib/components/list/item/description/index.mjs +1 -1
  271. package/lib/components/list/item/description/index.native.js +125 -109
  272. package/lib/components/list/item/description/index.native.mjs +17 -14
  273. package/lib/components/list/item/index.mjs +12 -12
  274. package/lib/components/list/item/index.native.js +97 -81
  275. package/lib/components/list/item/index.native.mjs +18 -15
  276. package/lib/components/modal/Modal.mjs +2 -2
  277. package/lib/components/modal/Modal.native.js +81 -57
  278. package/lib/components/modal/Modal.native.mjs +18 -15
  279. package/lib/components/modal/body/ModalBody.mjs +1 -1
  280. package/lib/components/modal/body/ModalBody.native.js +38 -21
  281. package/lib/components/modal/body/ModalBody.native.mjs +15 -12
  282. package/lib/components/modal/body/index.native.js +38 -21
  283. package/lib/components/modal/body/index.native.mjs +15 -12
  284. package/lib/components/modal/footer/ModalFooter.mjs +1 -1
  285. package/lib/components/modal/footer/ModalFooter.native.js +82 -58
  286. package/lib/components/modal/footer/ModalFooter.native.mjs +18 -15
  287. package/lib/components/modal/footer/index.native.js +82 -58
  288. package/lib/components/modal/footer/index.native.mjs +18 -15
  289. package/lib/components/modal/index.mjs +2 -2
  290. package/lib/components/modal/index.native.js +91 -67
  291. package/lib/components/modal/index.native.mjs +22 -19
  292. package/lib/components/otp/Otp.mjs +1 -1
  293. package/lib/components/otp/Otp.native.js +112 -89
  294. package/lib/components/otp/Otp.native.mjs +19 -16
  295. package/lib/components/otp/index.mjs +1 -1
  296. package/lib/components/otp/index.native.js +112 -89
  297. package/lib/components/otp/index.native.mjs +19 -16
  298. package/lib/components/pagination/Pagination.mjs +1 -1
  299. package/lib/components/pagination/Pagination.native.js +100 -84
  300. package/lib/components/pagination/Pagination.native.mjs +8 -5
  301. package/lib/components/pagination/index.mjs +1 -1
  302. package/lib/components/pagination/index.native.js +100 -84
  303. package/lib/components/pagination/index.native.mjs +8 -5
  304. package/lib/components/popover/Popover.native.js +38 -21
  305. package/lib/components/popover/Popover.native.mjs +15 -12
  306. package/lib/components/popover/index.native.js +38 -21
  307. package/lib/components/popover/index.native.mjs +15 -12
  308. package/lib/components/price/Price.mjs +12 -12
  309. package/lib/components/price/Price.native.js +39 -22
  310. package/lib/components/price/Price.native.mjs +16 -13
  311. package/lib/components/price/index.mjs +12 -12
  312. package/lib/components/price/index.native.js +39 -22
  313. package/lib/components/price/index.native.mjs +16 -13
  314. package/lib/components/product-tour/ProductTour.mjs +1 -1
  315. package/lib/components/product-tour/index.mjs +1 -1
  316. package/lib/components/progress/Progress.mjs +12 -12
  317. package/lib/components/progress/Progress.native.js +128 -112
  318. package/lib/components/progress/Progress.native.mjs +17 -14
  319. package/lib/components/progress/index.mjs +17 -17
  320. package/lib/components/progress/index.native.js +158 -135
  321. package/lib/components/progress/index.native.mjs +21 -18
  322. package/lib/components/progress/item/ProgressItem.mjs +12 -12
  323. package/lib/components/progress/item/index.mjs +12 -12
  324. package/lib/components/progress/radial/ProgressRadial.mjs +2 -2
  325. package/lib/components/progress/radial/ProgressRadial.native.js +137 -114
  326. package/lib/components/progress/radial/ProgressRadial.native.mjs +17 -14
  327. package/lib/components/progress/radial/index.mjs +2 -2
  328. package/lib/components/progress/radial/index.native.js +137 -114
  329. package/lib/components/progress/radial/index.native.mjs +17 -14
  330. package/lib/components/progress/radial/item/ProgressRadialtem.mjs +1 -1
  331. package/lib/components/progress/radial/item/index.mjs +1 -1
  332. package/lib/components/radio/Radio.native.js +116 -100
  333. package/lib/components/radio/Radio.native.mjs +17 -14
  334. package/lib/components/radio/index.mjs +13 -13
  335. package/lib/components/radio/index.native.js +131 -115
  336. package/lib/components/radio/index.native.mjs +23 -20
  337. package/lib/components/radio/list/RadioList.mjs +12 -12
  338. package/lib/components/radio/list/RadioList.native.mjs +5 -5
  339. package/lib/components/radio/list/index.mjs +12 -12
  340. package/lib/components/radio/list/index.native.mjs +5 -5
  341. package/lib/components/radio/tiles/RadioTiles.mjs +12 -12
  342. package/lib/components/radio/tiles/index.mjs +12 -12
  343. package/lib/components/radio/tiles/tile/RadioTile.mjs +12 -12
  344. package/lib/components/radio/tiles/tile/RadioTile.native.js +101 -85
  345. package/lib/components/radio/tiles/tile/RadioTile.native.mjs +18 -15
  346. package/lib/components/radio/tiles/tile/index.mjs +12 -12
  347. package/lib/components/radio/tiles/tile/index.native.js +101 -85
  348. package/lib/components/radio/tiles/tile/index.native.mjs +18 -15
  349. package/lib/components/range/Range.mjs +12 -12
  350. package/lib/components/range/Range.native.js +95 -79
  351. package/lib/components/range/Range.native.mjs +17 -14
  352. package/lib/components/range/index.mjs +12 -12
  353. package/lib/components/range/index.native.js +95 -79
  354. package/lib/components/range/index.native.mjs +17 -14
  355. package/lib/components/rows/Rows.mjs +1 -1
  356. package/lib/components/rows/index.mjs +1 -1
  357. package/lib/components/rows/row/Row.mjs +1 -1
  358. package/lib/components/rows/row/index.mjs +1 -1
  359. package/lib/components/scroll-view/ScrollView.mjs +12 -12
  360. package/lib/components/scroll-view/ScrollView.native.js +42 -25
  361. package/lib/components/scroll-view/ScrollView.native.mjs +15 -12
  362. package/lib/components/scroll-view/index.mjs +12 -12
  363. package/lib/components/scroll-view/index.native.js +42 -25
  364. package/lib/components/scroll-view/index.native.mjs +15 -12
  365. package/lib/components/section/Section.mjs +12 -12
  366. package/lib/components/section/Section.native.js +36 -19
  367. package/lib/components/section/Section.native.mjs +15 -12
  368. package/lib/components/section/index.mjs +12 -12
  369. package/lib/components/section/index.native.js +36 -19
  370. package/lib/components/section/index.native.mjs +15 -12
  371. package/lib/components/segment-control/SegmentControl.mjs +12 -12
  372. package/lib/components/segment-control/SegmentControl.native.js +136 -120
  373. package/lib/components/segment-control/SegmentControl.native.mjs +18 -15
  374. package/lib/components/segment-control/index.mjs +12 -12
  375. package/lib/components/segment-control/index.native.js +142 -126
  376. package/lib/components/segment-control/index.native.mjs +18 -15
  377. package/lib/components/segment-control/item/SegmentControlItem.mjs +1 -1
  378. package/lib/components/segment-control/item/index.mjs +1 -1
  379. package/lib/components/select/Select.mjs +14 -14
  380. package/lib/components/select/Select.native.js +228 -205
  381. package/lib/components/select/Select.native.mjs +26 -23
  382. package/lib/components/select/index.mjs +14 -14
  383. package/lib/components/select/index.native.js +228 -205
  384. package/lib/components/select/index.native.mjs +26 -23
  385. package/lib/components/select/option/SelectOption.mjs +1 -1
  386. package/lib/components/select/option/SelectOption.native.js +102 -86
  387. package/lib/components/select/option/SelectOption.native.mjs +17 -14
  388. package/lib/components/select/option/index.mjs +1 -1
  389. package/lib/components/select/option/index.native.js +102 -86
  390. package/lib/components/select/option/index.native.mjs +18 -15
  391. package/lib/components/select/web/SelectDynamic.mjs +12 -12
  392. package/lib/components/select/web/SelectNative.mjs +14 -14
  393. package/lib/components/select/web/index.mjs +15 -15
  394. package/lib/components/skeleton/Skeleton.d.mts +4 -0
  395. package/lib/components/skeleton/Skeleton.d.ts +4 -0
  396. package/lib/components/skeleton/Skeleton.js +41 -0
  397. package/lib/components/skeleton/Skeleton.mjs +8 -0
  398. package/lib/components/skeleton/Skeleton.native.d.mts +4 -0
  399. package/lib/components/skeleton/Skeleton.native.d.ts +4 -0
  400. package/lib/components/skeleton/Skeleton.native.js +119 -0
  401. package/lib/components/skeleton/Skeleton.native.mjs +8 -0
  402. package/lib/components/skeleton/SkeletonProps.d.mts +13 -0
  403. package/lib/components/skeleton/SkeletonProps.d.ts +13 -0
  404. package/lib/components/skeleton/SkeletonProps.js +19 -0
  405. package/lib/components/skeleton/SkeletonProps.mjs +2 -0
  406. package/lib/components/skeleton/SkeletonPropsDefaults.js +80 -0
  407. package/lib/components/skeleton/index.d.mts +3 -0
  408. package/lib/components/skeleton/index.d.ts +3 -0
  409. package/lib/components/skeleton/index.js +47 -0
  410. package/lib/components/skeleton/index.mjs +10 -0
  411. package/lib/components/skeleton/index.native.d.mts +3 -0
  412. package/lib/components/skeleton/index.native.d.ts +3 -0
  413. package/lib/components/skeleton/index.native.js +125 -0
  414. package/lib/components/skeleton/index.native.mjs +9 -0
  415. package/lib/components/stepper/Stepper.mjs +1 -1
  416. package/lib/components/stepper/Stepper.native.js +92 -76
  417. package/lib/components/stepper/Stepper.native.mjs +17 -14
  418. package/lib/components/stepper/index.mjs +1 -1
  419. package/lib/components/stepper/index.native.js +97 -81
  420. package/lib/components/stepper/index.native.mjs +17 -14
  421. package/lib/components/stepper/step/Step.mjs +1 -1
  422. package/lib/components/stepper/step/Step.native.js +36 -19
  423. package/lib/components/stepper/step/Step.native.mjs +15 -12
  424. package/lib/components/stepper/step/index.mjs +1 -1
  425. package/lib/components/stepper/step/index.native.js +36 -19
  426. package/lib/components/stepper/step/index.native.mjs +15 -12
  427. package/lib/components/sticker/Sticker.mjs +12 -12
  428. package/lib/components/sticker/Sticker.native.js +89 -73
  429. package/lib/components/sticker/Sticker.native.mjs +17 -14
  430. package/lib/components/sticker/index.mjs +12 -12
  431. package/lib/components/sticker/index.native.js +89 -73
  432. package/lib/components/sticker/index.native.mjs +17 -14
  433. package/lib/components/switch/Switch.mjs +12 -12
  434. package/lib/components/switch/Switch.native.js +37 -20
  435. package/lib/components/switch/Switch.native.mjs +15 -12
  436. package/lib/components/switch/index.mjs +12 -12
  437. package/lib/components/switch/index.native.js +37 -20
  438. package/lib/components/switch/index.native.mjs +15 -12
  439. package/lib/components/table/Table.native.js +34 -17
  440. package/lib/components/table/Table.native.mjs +15 -12
  441. package/lib/components/table/index.mjs +8 -8
  442. package/lib/components/table/index.native.js +116 -100
  443. package/lib/components/table/index.native.mjs +22 -19
  444. package/lib/components/table/td/TableTd.native.js +34 -17
  445. package/lib/components/table/td/TableTd.native.mjs +15 -12
  446. package/lib/components/table/td/index.native.js +34 -17
  447. package/lib/components/table/td/index.native.mjs +15 -12
  448. package/lib/components/table/th/TableTh.native.js +124 -108
  449. package/lib/components/table/th/TableTh.native.mjs +17 -14
  450. package/lib/components/table/th/index.native.js +124 -108
  451. package/lib/components/table/th/index.native.mjs +17 -14
  452. package/lib/components/table/tr/TableTr.native.js +101 -85
  453. package/lib/components/table/tr/TableTr.native.mjs +17 -14
  454. package/lib/components/table/tr/index.native.js +101 -85
  455. package/lib/components/table/tr/index.native.mjs +17 -14
  456. package/lib/components/tabs/index.mjs +8 -8
  457. package/lib/components/tabs/index.native.js +128 -112
  458. package/lib/components/tabs/index.native.mjs +23 -20
  459. package/lib/components/tabs/tab-list/TabList.mjs +1 -1
  460. package/lib/components/tabs/tab-list/TabList.native.js +118 -102
  461. package/lib/components/tabs/tab-list/TabList.native.mjs +18 -15
  462. package/lib/components/tabs/tab-list/index.mjs +1 -1
  463. package/lib/components/tabs/tab-list/index.native.js +118 -102
  464. package/lib/components/tabs/tab-list/index.native.mjs +18 -15
  465. package/lib/components/tabs/tab-list/tab/Tab.mjs +1 -1
  466. package/lib/components/tabs/tab-list/tab/Tab.native.js +96 -80
  467. package/lib/components/tabs/tab-list/tab/Tab.native.mjs +8 -5
  468. package/lib/components/tabs/tab-list/tab/index.mjs +1 -1
  469. package/lib/components/tabs/tab-list/tab/index.native.js +96 -80
  470. package/lib/components/tabs/tab-list/tab/index.native.mjs +8 -5
  471. package/lib/components/tabs/tab-panels/TabPanels.native.js +37 -20
  472. package/lib/components/tabs/tab-panels/TabPanels.native.mjs +15 -12
  473. package/lib/components/tabs/tab-panels/index.native.js +37 -20
  474. package/lib/components/tabs/tab-panels/index.native.mjs +15 -12
  475. package/lib/components/tag/Tag.mjs +1 -1
  476. package/lib/components/tag/Tag.native.js +34 -17
  477. package/lib/components/tag/Tag.native.mjs +6 -3
  478. package/lib/components/tag/index.mjs +12 -12
  479. package/lib/components/tag/index.native.js +37 -20
  480. package/lib/components/tag/index.native.mjs +6 -3
  481. package/lib/components/tag/list/TagList.mjs +12 -12
  482. package/lib/components/tag/list/index.mjs +12 -12
  483. package/lib/components/text/Text.native.js +63 -83
  484. package/lib/components/text/Text.native.mjs +6 -4
  485. package/lib/components/text/index.native.js +61 -83
  486. package/lib/components/text/index.native.mjs +6 -4
  487. package/lib/components/textarea/Textarea.mjs +12 -12
  488. package/lib/components/textarea/Textarea.native.js +98 -82
  489. package/lib/components/textarea/Textarea.native.mjs +17 -14
  490. package/lib/components/textarea/index.mjs +12 -12
  491. package/lib/components/textarea/index.native.js +98 -82
  492. package/lib/components/textarea/index.native.mjs +17 -14
  493. package/lib/components/timeline/Timeline.mjs +1 -1
  494. package/lib/components/timeline/content/TimelineContent.mjs +1 -1
  495. package/lib/components/timeline/content/TimelineContent.native.js +108 -92
  496. package/lib/components/timeline/content/TimelineContent.native.mjs +21 -18
  497. package/lib/components/timeline/content/index.mjs +1 -1
  498. package/lib/components/timeline/content/index.native.js +108 -92
  499. package/lib/components/timeline/content/index.native.mjs +21 -18
  500. package/lib/components/timeline/index.mjs +6 -6
  501. package/lib/components/timeline/index.native.js +114 -98
  502. package/lib/components/timeline/index.native.mjs +23 -20
  503. package/lib/components/timeline/item/TimelineItem.mjs +1 -1
  504. package/lib/components/timeline/item/index.mjs +1 -1
  505. package/lib/components/timeline/marker/TimelineMarker.mjs +1 -1
  506. package/lib/components/timeline/marker/TimelineMarker.native.js +51 -34
  507. package/lib/components/timeline/marker/TimelineMarker.native.mjs +16 -13
  508. package/lib/components/timeline/marker/index.mjs +1 -1
  509. package/lib/components/timeline/marker/index.native.js +51 -34
  510. package/lib/components/timeline/marker/index.native.mjs +17 -14
  511. package/lib/components/title/Title.native.js +75 -51
  512. package/lib/components/title/Title.native.mjs +16 -13
  513. package/lib/components/title/index.mjs +1 -1
  514. package/lib/components/title/index.native.js +75 -51
  515. package/lib/components/title/index.native.mjs +17 -14
  516. package/lib/components/view/View.mjs +12 -12
  517. package/lib/components/view/View.native.js +38 -21
  518. package/lib/components/view/View.native.mjs +15 -12
  519. package/lib/components/view/index.mjs +12 -12
  520. package/lib/components/view/index.native.js +38 -21
  521. package/lib/components/view/index.native.mjs +15 -12
  522. package/lib/context/provider/index.js +1 -1
  523. package/lib/context/provider/index.mjs +2 -2
  524. package/lib/context/test/provider.test.js +1 -1
  525. package/lib/context/test/provider.test.mjs +2 -2
  526. package/lib/helpers/index.mjs +3 -3
  527. package/lib/helpers/index.native.mjs +3 -3
  528. package/lib/index.js +150 -129
  529. package/lib/index.mjs +94 -88
  530. package/lib/index.native.js +1932 -974
  531. package/lib/index.native.mjs +129 -126
  532. package/lib/objects/Typography/index.mjs +3 -3
  533. package/lib/objects/Typography/index.native.mjs +3 -3
  534. package/lib/objects/facets/Status/index.mjs +1 -1
  535. package/lib/objects/facets/Status/index.native.js +30 -13
  536. package/lib/objects/facets/Status/index.native.mjs +5 -2
  537. package/lib/objects/facets/index.mjs +13 -13
  538. package/lib/objects/facets/index.native.js +30 -13
  539. package/lib/objects/facets/index.native.mjs +17 -14
  540. package/lib/objects/index.mjs +17 -17
  541. package/lib/objects/index.native.js +32 -15
  542. package/lib/objects/index.native.mjs +20 -17
  543. package/lib/version.d.mts +1 -1
  544. package/lib/version.d.ts +1 -1
  545. package/lib/version.js +1 -1
  546. package/lib/version.mjs +1 -1
  547. package/package.json +1 -2
  548. package/lib/chunk-C4ZXSLQP.mjs +0 -12
  549. package/lib/chunk-DSY6DDC3.mjs +0 -12
  550. package/lib/chunk-MVQ252OA.mjs +0 -85
  551. package/lib/{chunk-LEXUEUIJ.mjs → chunk-3VDWD5KA.mjs} +3 -3
  552. package/lib/{chunk-R6JMSH4N.mjs → chunk-HHARJB6A.mjs} +3 -3
  553. package/lib/{chunk-MZHFYHCF.mjs → chunk-JFTUDUYA.mjs} +3 -3
  554. package/lib/{chunk-PGXASAXX.mjs → chunk-JP5IH4HL.mjs} +0 -0
  555. package/lib/{chunk-M2TC4BZG.mjs → chunk-MCQZ43VV.mjs} +3 -3
  556. package/lib/{chunk-GIEAPQ2H.mjs → chunk-WMZ3FFFO.mjs} +3 -3
@@ -35,11 +35,1254 @@ __export(index_native_exports, {
35
35
  });
36
36
  module.exports = __toCommonJS(index_native_exports);
37
37
 
38
- // components/datepicker/DatePicker.native.tsx
39
- var import_react = __toESM(require("react"));
40
- var DatePicker = () => {
41
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null);
38
+ // context/providerStates/index.tsx
39
+ var import_react = require("react");
40
+ var StatesContext = (0, import_react.createContext)({
41
+ inverted: false,
42
+ active: false,
43
+ flat: false
44
+ });
45
+
46
+ // objects/facets/Color/index.native.tsx
47
+ var import_react2 = require("react");
48
+ var colors = {
49
+ ["WHITE" /* BACKGROUND */]: ["#fff", "white", "main"],
50
+ ["MAIN" /* MAIN */]: ["#3d5d7e", "main", "white"],
51
+ ["MAIN_FADE" /* MAIN_FADE */]: ["#BBC6CD", "main-fade", "white"],
52
+ ["ACCENT" /* ACCENT */]: ["#da641b", "accent", "white"],
53
+ ["ACCENT_FADE" /* ACCENT_FADE */]: ["#faebe3", "accent-fade", "white"],
54
+ ["FONT" /* FONT */]: ["#3d5d7e", "main", "white"],
55
+ ["FONT_PLACEHOLDER" /* FONT_PLACEHOLDER */]: ["#687a87", "font-placeholder", "white"],
56
+ ["SUCCESS" /* SUCCESS */]: ["#007B52", "success", "white"],
57
+ ["SUCCESS_FADE" /* SUCCESS_FADE */]: ["#cae8ca", "success-fade", "white"],
58
+ ["INFO" /* INFO */]: ["#1A688A", "info", "white"],
59
+ ["INFO_FADE" /* INFO_FADE */]: ["#c8dbec", "info-fade", "white"],
60
+ ["WARNING" /* WARNING */]: ["#FFBB33", "warning", "white"],
61
+ ["WARNING_FADE" /* WARNING_FADE */]: ["#ecdbc6", "warning-fade", "white"],
62
+ ["ERROR" /* ERROR */]: ["#D42D02", "error", "white"],
63
+ ["ERROR_FADE" /* ERROR_FADE */]: ["#eecccc", "error-fade", "white"],
64
+ ["DISABLED" /* DISABLED */]: ["#646464", "disabled", "white"],
65
+ ["DISABLED_FADE" /* DISABLED_FADE */]: ["#D1D1D1", "disabled-fade", "white"],
66
+ ["NEUTRAL" /* NEUTRAL */]: ["#707070", "grey", "white"],
67
+ ["NEUTRAL_FADE" /* NEUTRAL_FADE */]: ["#F4F4F4", "grey-fade", "white"],
68
+ ["STROKE" /* STROKE */]: ["#BBC1CE", "stroke", "white"]
69
+ };
70
+ var getColorStyle = (trilogyColor) => {
71
+ if (typeof navigator !== "undefined" && navigator.userAgent === void 0) {
72
+ const { theme } = (0, import_react2.useContext)(TrilogyThemeContext);
73
+ const colorsStyle = (theme == null ? void 0 : theme.colors) || colors;
74
+ const colorArray = colorsStyle[trilogyColor] || colorsStyle.default;
75
+ if (trilogyColor === "transparent") return "transparent";
76
+ if (!trilogyColor || !colors[trilogyColor]) {
77
+ return colorsStyle.default;
78
+ }
79
+ return colorArray[0];
80
+ } else {
81
+ if (trilogyColor === "transparent") return "transparent";
82
+ return colors[trilogyColor][0] || colors["MAIN" /* MAIN */][0];
83
+ }
42
84
  };
85
+
86
+ // context/providerTheme/index.native.tsx
87
+ var import_react3 = __toESM(require("react"));
88
+ var defaultIcons = {};
89
+ var defaultTheme = {
90
+ icons: defaultIcons,
91
+ colors,
92
+ fontFamily: { regular: "poppins-regular", medium: "poppins-medium", bold: "poppins-semibold" }
93
+ };
94
+ var defaultContextValue = {
95
+ theme: defaultTheme,
96
+ setTheme: () => void 0
97
+ };
98
+ var TrilogyThemeContext = import_react3.default.createContext(defaultContextValue);
99
+
100
+ // helpers/device/index.native.ts
101
+ var import_react_native = require("react-native");
102
+ var Device = /* @__PURE__ */ ((Device2) => {
103
+ Device2["Browser"] = "browser";
104
+ Device2["Server"] = "server";
105
+ Device2["Native"] = "native";
106
+ return Device2;
107
+ })(Device || {});
108
+ var { Browser, Server, Native } = Device;
109
+ var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
110
+ var canUseNative = typeof navigator != "undefined" && navigator.product == "ReactNative";
111
+ var device = canUseNative ? Native : canUseDOM ? Browser : Server;
112
+ var SSRObjectDefined = {
113
+ isBrowser: device === Browser,
114
+ isServer: device === Server,
115
+ isNative: device === Native,
116
+ device,
117
+ canUseWorkers: typeof Worker !== "undefined",
118
+ canUseEventListeners: device === Browser && !!window.addEventListener,
119
+ canUseViewport: device === Browser && !!window.screen
120
+ };
121
+ var assign = (...args) => Object.assign({}, ...args);
122
+ var values = (obj) => Object.values(obj);
123
+ var toArrayObject = () => assign((values(SSRObjectDefined), SSRObjectDefined));
124
+ var SSRObject = toArrayObject();
125
+ var isAndroid = import_react_native.Platform.OS === "android";
126
+ var isIOS = import_react_native.Platform.OS === "ios";
127
+
128
+ // objects/facets/Alignable/index.ts
129
+ var getAlignStyle = (alignType) => {
130
+ switch (alignType) {
131
+ case "ALIGNED_CENTER":
132
+ return "center";
133
+ case "ALIGNED_START":
134
+ return "flex-start";
135
+ case "ALIGNED_END":
136
+ return "flex-end";
137
+ default:
138
+ return "flex-start";
139
+ }
140
+ };
141
+
142
+ // components/icon/Icon.native.tsx
143
+ var import_react5 = __toESM(require("react"));
144
+ var import_react_native2 = require("react-native");
145
+
146
+ // components/skeleton/Skeleton.tsx
147
+ var import_react4 = __toESM(require("react"));
148
+ var Skeleton = () => {
149
+ return /* @__PURE__ */ import_react4.default.createElement("div", null);
150
+ };
151
+ var Skeleton_default = Skeleton;
152
+
153
+ // components/icon/Icon.native.tsx
154
+ var import_css = require("react-native-svg/css");
155
+ var Icon = import_react5.default.forwardRef(
156
+ ({ size, name, circled, stretched, color, backgroundColor, onClick, align, skeleton, testId, ...others }, ref) => {
157
+ const {
158
+ theme: { icons }
159
+ } = (0, import_react5.useContext)(TrilogyThemeContext);
160
+ const statesContext = (0, import_react5.useContext)(StatesContext);
161
+ const style = {};
162
+ const defaultSize = size === "huge" /* HUGE */ && 66 || size === "large" /* LARGE */ && 44 || size === "medium" /* MEDIUM */ && 30 || size === "small" /* SMALL */ && 20 || size === "smaller" /* SMALLER */ && 16 || 20;
163
+ const iconColor = color && getColorStyle(color) || statesContext.inverted && getColorStyle("WHITE" /* BACKGROUND */) || getColorStyle("MAIN" /* MAIN */);
164
+ const background = backgroundColor && getColorStyle(backgroundColor) || circled && getColorStyle("MAIN" /* MAIN */) || "";
165
+ const iconSkeletonRadius = size === "huge" /* HUGE */ && 50 || size === "large" /* LARGE */ && 35 || size === "medium" /* MEDIUM */ && 25 || size === "small" /* SMALL */ && 15 || size === "smaller" /* SMALLER */ && 10 || 15;
166
+ const circledWidth = size === "huge" /* HUGE */ && 99 || size === "large" /* LARGE */ && 66 || size === "medium" /* MEDIUM */ && 48 || size === "small" /* SMALL */ && 32 || size === "smaller" /* SMALLER */ && 38 || 32;
167
+ const styles = import_react_native2.StyleSheet.create({
168
+ rootView: {
169
+ alignSelf: getAlignStyle(align)
170
+ },
171
+ iconCircled: {
172
+ alignSelf: "center",
173
+ justifyContent: "center",
174
+ alignItems: "center"
175
+ },
176
+ icon: {
177
+ transform: isIOS ? stretched && [{ skewX: "20deg" }] || [{ skewX: "0deg" }] : []
178
+ },
179
+ iconContainer: {
180
+ alignItems: "center",
181
+ justifyContent: "center",
182
+ width: defaultSize,
183
+ height: defaultSize
184
+ },
185
+ stretched: {
186
+ justifyContent: "center",
187
+ alignItems: "center",
188
+ width: circledWidth + 15,
189
+ height: circledWidth,
190
+ backgroundColor: iconColor,
191
+ borderTopRightRadius: 10,
192
+ transform: isIOS ? stretched && [{ skewX: "-20deg" }] || [{ skewX: "0deg" }] : []
193
+ },
194
+ skeleton: {
195
+ width: circledWidth,
196
+ height: circledWidth,
197
+ borderRadius: iconSkeletonRadius,
198
+ backgroundColor: getColorStyle("NEUTRAL_FADE" /* NEUTRAL_FADE */),
199
+ overflow: "hidden"
200
+ },
201
+ circled: {
202
+ width: circledWidth,
203
+ height: circledWidth,
204
+ borderRadius: circledWidth,
205
+ backgroundColor: background,
206
+ alignItems: "center",
207
+ justifyContent: "center"
208
+ }
209
+ });
210
+ const IconSkeleton = () => /* @__PURE__ */ import_react5.default.createElement(
211
+ Skeleton_default,
212
+ {
213
+ style: styles.skeleton,
214
+ width: circledWidth,
215
+ height: circledWidth,
216
+ borderRadius: iconSkeletonRadius,
217
+ testID: "skeleton-id"
218
+ }
219
+ );
220
+ if (skeleton) {
221
+ return /* @__PURE__ */ import_react5.default.createElement(IconSkeleton, null);
222
+ }
223
+ let iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, null);
224
+ if (name && icons) {
225
+ if (stretched && !circled) {
226
+ iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, { style: styles.stretched, testID: `${testId}-stretched` }, /* @__PURE__ */ import_react5.default.createElement(
227
+ import_css.WithLocalSvg,
228
+ {
229
+ style: [styles.iconCircled, styles.icon],
230
+ asset: icons[name.toString().replace("tri-picto-", "").replace("tri-", "")],
231
+ width: defaultSize,
232
+ height: defaultSize,
233
+ color: getColorStyle("WHITE" /* BACKGROUND */)
234
+ }
235
+ ));
236
+ } else if (circled) {
237
+ iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, { style: styles.circled, testID: `${testId}-circled` }, /* @__PURE__ */ import_react5.default.createElement(
238
+ import_css.WithLocalSvg,
239
+ {
240
+ style: [styles.iconCircled, styles.icon],
241
+ asset: icons[name.toString().replace("tri-picto-", "").replace("tri-", "")],
242
+ width: defaultSize,
243
+ height: defaultSize,
244
+ color: iconColor
245
+ }
246
+ ));
247
+ } else {
248
+ iconView = /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, { style: styles.iconContainer, ...others }, /* @__PURE__ */ import_react5.default.createElement(
249
+ import_css.WithLocalSvg,
250
+ {
251
+ style: [styles.icon, style],
252
+ asset: icons[name.toString().replace("tri-picto-", "").replace("tri-", "")],
253
+ width: defaultSize,
254
+ height: defaultSize,
255
+ color: iconColor
256
+ }
257
+ ));
258
+ }
259
+ }
260
+ return onClick ? /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, { style: styles.rootView, testID: testId, ref }, /* @__PURE__ */ import_react5.default.createElement(
261
+ import_react_native2.TouchableOpacity,
262
+ {
263
+ style: { width: "100%" },
264
+ onPress: onClick,
265
+ activeOpacity: 0.85,
266
+ testID: `${testId}-pressable`
267
+ },
268
+ iconView
269
+ )) : /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, { style: styles.rootView, testID: testId, ref }, iconView);
270
+ }
271
+ );
272
+ Icon.displayName = "Icon" /* Icon */;
273
+ var Icon_native_default = Icon;
274
+
275
+ // objects/Typography/TypographyAlign/index.ts
276
+ var setTypographyAlign = (typo = "left") => {
277
+ return typo && !Array.isArray(typo) && typo === "has-text-centered" /* TEXT_CENTERED */ && "center" || typo && Array.isArray(typo) && typo.includes("has-text-centered" /* TEXT_CENTERED */) && "center" || typo && !Array.isArray(typo) && typo === "has-text-left" /* TEXT_LEFT */ && "left" || typo && Array.isArray(typo) && typo.includes("has-text-left" /* TEXT_LEFT */) && "left" || typo && !Array.isArray(typo) && typo === "has-text-right" /* TEXT_RIGHT */ && "right" || typo && Array.isArray(typo) && typo.includes("has-text-right" /* TEXT_RIGHT */) && "right" || typo && !Array.isArray(typo) && typo === "has-text-justified" /* TEXT_JUSTIFIED */ && "justify" || typo && Array.isArray(typo) && typo.includes("has-text-justified" /* TEXT_JUSTIFIED */) && "justify" || "left";
278
+ };
279
+
280
+ // objects/Typography/TypographyBold/index.native.tsx
281
+ var import_react6 = require("react");
282
+ var getTypographyBoldStyle = (typo) => {
283
+ var _a, _b, _c, _d;
284
+ const { theme } = (0, import_react6.useContext)(TrilogyThemeContext);
285
+ const currentTypo = Array.isArray(typo) ? typo : [typo];
286
+ switch (true) {
287
+ case (typo && currentTypo.includes("has-text-weight-medium" /* TEXT_WEIGHT_MEDIUM */)):
288
+ return ((_a = theme == null ? void 0 : theme.fontFamily) == null ? void 0 : _a.medium) || "poppins-medium";
289
+ case (typo && currentTypo.includes("has-text-weight-semibold" /* TEXT_WEIGHT_SEMIBOLD */)):
290
+ return ((_b = theme == null ? void 0 : theme.fontFamily) == null ? void 0 : _b.bold) || "poppins-semibold";
291
+ case (typo && currentTypo.includes("has-text-weight-bold" /* TEXT_WEIGHT_BOLD */)):
292
+ return ((_c = theme == null ? void 0 : theme.fontFamily) == null ? void 0 : _c.speak) || "poppins-semibold";
293
+ default:
294
+ return ((_d = theme == null ? void 0 : theme.fontFamily) == null ? void 0 : _d.regular) || "poppins-regular";
295
+ }
296
+ };
297
+
298
+ // objects/Typography/TypographyColor/index.native.ts
299
+ var setTypographyColor = (typo = "", inverted = false, loading = false) => {
300
+ return loading ? "transparent" : (Array.isArray(typo) && typo.includes("has-text-disabled" /* TEXT_DISABLED */) ? getColorStyle("DISABLED" /* DISABLED */) : typo === "has-text-disabled" /* TEXT_DISABLED */ && getColorStyle("DISABLED" /* DISABLED */)) || (Array.isArray(typo) && typo.includes("has-text-accent" /* TEXT_ACCENT */) ? getColorStyle("ACCENT" /* ACCENT */) : typo === "has-text-accent" /* TEXT_ACCENT */ && getColorStyle("ACCENT" /* ACCENT */)) || (Array.isArray(typo) && typo.includes("has-text-main" /* TEXT_MAIN */) ? getColorStyle("MAIN" /* MAIN */) : typo === "has-text-main" /* TEXT_MAIN */ && getColorStyle("MAIN" /* MAIN */)) || (Array.isArray(typo) && typo.includes("has-text-info" /* TEXT_INFO */) ? getColorStyle("INFO" /* INFO */) : typo === "has-text-info" /* TEXT_INFO */ && getColorStyle("INFO" /* INFO */)) || (Array.isArray(typo) && typo.includes("has-text-success" /* TEXT_SUCCESS */) ? getColorStyle("SUCCESS" /* SUCCESS */) : typo === "has-text-success" /* TEXT_SUCCESS */ && getColorStyle("SUCCESS" /* SUCCESS */)) || (Array.isArray(typo) && typo.includes("has-text-warning" /* TEXT_WARNING */) ? getColorStyle("WARNING" /* WARNING */) : typo === "has-text-warning" /* TEXT_WARNING */ && getColorStyle("WARNING" /* WARNING */)) || (Array.isArray(typo) && typo.includes("has-text-error" /* TEXT_ERROR */) ? getColorStyle("ERROR" /* ERROR */) : typo === "has-text-error" /* TEXT_ERROR */ && getColorStyle("ERROR" /* ERROR */)) || (Array.isArray(typo) && typo.includes("has-text-grey" /* TEXT_NEUTRAL */) ? getColorStyle("NEUTRAL" /* NEUTRAL */) : typo === "has-text-grey" /* TEXT_NEUTRAL */ && getColorStyle("NEUTRAL" /* NEUTRAL */)) || (Array.isArray(typo) && typo.includes("has-text-white" /* TEXT_WHITE */) ? getColorStyle("WHITE" /* BACKGROUND */) : typo === "has-text-white" /* TEXT_WHITE */ && getColorStyle("WHITE" /* BACKGROUND */)) || inverted && getColorStyle("WHITE" /* BACKGROUND */) || getColorStyle("MAIN" /* MAIN */);
301
+ };
302
+
303
+ // components/text/Text.native.tsx
304
+ var import_react7 = __toESM(require("react"));
305
+ var import_react_native3 = require("react-native");
306
+ var Text = import_react7.default.forwardRef(
307
+ ({ children, level, style, inverted, typo, skeleton, accessibilityLabel, numberOfLines = 0, ...others }, ref) => {
308
+ const statesContext = (0, import_react7.useContext)(StatesContext);
309
+ const textLevels = (level2) => {
310
+ return level2 && level2 == 1 /* ONE */ && 16 || level2 && level2 == 2 /* TWO */ && 14 || level2 && level2 == 3 /* THREE */ && 12 || level2 && level2 == 4 /* FOUR */ && 10 || 14;
311
+ };
312
+ const styles = import_react_native3.StyleSheet.create({
313
+ text: {
314
+ fontFamily: getTypographyBoldStyle(typo),
315
+ fontSize: textLevels(level),
316
+ color: setTypographyColor(typo, inverted || statesContext.inverted, skeleton),
317
+ textAlign: setTypographyAlign(typo),
318
+ lineHeight: textLevels(level) * 1.2,
319
+ textDecorationLine: "none",
320
+ alignSelf: setTypographyAlign(typo) === "left" && "flex-start" || setTypographyAlign(typo) === "center" && "center" || setTypographyAlign(typo) === "right" && "flex-end" || "flex-start"
321
+ },
322
+ skeleton: {
323
+ minWidth: 10,
324
+ alignSelf: setTypographyAlign(typo) === "left" && "flex-start" || setTypographyAlign(typo) === "center" && "center" || setTypographyAlign(typo) === "right" && "flex-end" || "flex-start",
325
+ borderRadius: level && level == 1 /* ONE */ && 7 || level && level == 2 /* TWO */ && 7 || level && level == 3 /* THREE */ && 5 || 3,
326
+ borderWidth: 0.1,
327
+ borderColor: getColorStyle("NEUTRAL_FADE" /* NEUTRAL_FADE */),
328
+ overflow: "hidden",
329
+ height: textLevels(level)
330
+ }
331
+ });
332
+ const textAccessibilityLabel = accessibilityLabel ? accessibilityLabel : typeof children === "string" ? children : void 0;
333
+ let textView = /* @__PURE__ */ import_react7.default.createElement(
334
+ import_react_native3.Text,
335
+ {
336
+ ref,
337
+ numberOfLines,
338
+ ellipsizeMode: "tail",
339
+ maxFontSizeMultiplier: 1.3,
340
+ accessible: !!textAccessibilityLabel,
341
+ accessibilityLabel: textAccessibilityLabel,
342
+ style: [styles.text, style],
343
+ ...others
344
+ },
345
+ children
346
+ );
347
+ if (skeleton) {
348
+ textView = /* @__PURE__ */ import_react7.default.createElement(
349
+ Skeleton_default,
350
+ {
351
+ style: styles.skeleton,
352
+ height: textLevels(level),
353
+ borderRadius: level && level == 1 /* ONE */ && 7 || level && level == 2 /* TWO */ && 7 || level && level == 3 /* THREE */ && 5 || 3
354
+ },
355
+ textView
356
+ );
357
+ }
358
+ return textView;
359
+ }
360
+ );
361
+ Text.displayName = "Text" /* Text */;
362
+ var Text_native_default = Text;
363
+
364
+ // components/calendar/Calendar.native.tsx
365
+ var import_calendar = __toESM(require("@trilogy-ds/locales/lib/calendar"));
366
+ var import_react8 = __toESM(require("react"));
367
+ var import_react_native4 = require("react-native");
368
+ var days = [
369
+ import_calendar.default.days[1],
370
+ import_calendar.default.days[2],
371
+ import_calendar.default.days[3],
372
+ import_calendar.default.days[4],
373
+ import_calendar.default.days[5],
374
+ import_calendar.default.days[6],
375
+ import_calendar.default.days[0]
376
+ ];
377
+ var months = [...import_calendar.default.months];
378
+ var currentDate = /* @__PURE__ */ new Date();
379
+ var checkIsRange = (date) => {
380
+ return !(date instanceof Date);
381
+ };
382
+ var Calendar = import_react8.default.forwardRef(
383
+ ({
384
+ value = currentDate,
385
+ minDate = new Date(currentDate.getFullYear() - 10, 0, 1),
386
+ maxDate = new Date(currentDate.getFullYear() + 10, 12, 0),
387
+ disabled,
388
+ readOnly,
389
+ disabledDates,
390
+ onChange,
391
+ onMonthChange
392
+ }, ref) => {
393
+ const [visibleMonth, setVisibleMonth] = import_react8.default.useState(
394
+ value instanceof Date ? value : value[0] || currentDate
395
+ );
396
+ const [activeDate, setActiveDate] = import_react8.default.useState(value);
397
+ const [dateEndHovered, setDateEndHovered] = import_react8.default.useState();
398
+ const [showMonthPicker, setShowMonthPicker] = import_react8.default.useState(false);
399
+ const [showYearPicker, setShowYearPicker] = import_react8.default.useState(false);
400
+ const backgroundColor = getColorStyle("WHITE" /* BACKGROUND */);
401
+ const shadowColor = getColorStyle("DISABLED" /* DISABLED */);
402
+ const disabledFadeColor = getColorStyle("DISABLED_FADE" /* DISABLED_FADE */);
403
+ const mainColor = getColorStyle("MAIN" /* MAIN */);
404
+ const mainFadeColor = getColorStyle("MAIN_FADE" /* MAIN_FADE */);
405
+ const disabledColor = getColorStyle("DISABLED" /* DISABLED */);
406
+ const styles = import_react8.default.useMemo(
407
+ () => import_react_native4.StyleSheet.create({
408
+ calendar: {
409
+ backgroundColor,
410
+ borderRadius: 8,
411
+ padding: 24,
412
+ shadowColor,
413
+ shadowOffset: {
414
+ width: 0,
415
+ height: 2
416
+ },
417
+ shadowOpacity: 0.2,
418
+ shadowRadius: 8,
419
+ elevation: 4,
420
+ width: "85%",
421
+ alignSelf: "center"
422
+ },
423
+ header: {
424
+ alignContent: "center",
425
+ marginBottom: 16
426
+ },
427
+ headerRow: {
428
+ flexDirection: "row",
429
+ alignItems: "center",
430
+ justifyContent: "space-between",
431
+ marginBottom: 16,
432
+ paddingBottom: 16
433
+ },
434
+ navButton: {
435
+ width: 36,
436
+ height: 36,
437
+ alignItems: "center",
438
+ justifyContent: "center",
439
+ borderRadius: 4,
440
+ backgroundColor: "transparent"
441
+ },
442
+ iconWrapper: {
443
+ alignItems: "center",
444
+ justifyContent: "center"
445
+ },
446
+ disabledButton: {
447
+ opacity: 0.5
448
+ },
449
+ monthYearContainer: {
450
+ flex: 1,
451
+ alignItems: "center",
452
+ justifyContent: "center"
453
+ },
454
+ dropdownContainer: {
455
+ flexDirection: "row",
456
+ gap: 12,
457
+ justifyContent: "center"
458
+ },
459
+ monthSelector: {
460
+ paddingHorizontal: 8,
461
+ paddingVertical: 4,
462
+ backgroundColor,
463
+ borderRadius: 4,
464
+ borderWidth: 1,
465
+ borderColor: disabledFadeColor,
466
+ width: 80,
467
+ alignItems: "center",
468
+ height: 30,
469
+ justifyContent: "center"
470
+ },
471
+ yearSelector: {
472
+ paddingHorizontal: 8,
473
+ paddingVertical: 4,
474
+ backgroundColor,
475
+ borderRadius: 4,
476
+ borderWidth: 1,
477
+ borderColor: disabledFadeColor,
478
+ width: 80,
479
+ alignItems: "center",
480
+ height: 30,
481
+ justifyContent: "center"
482
+ },
483
+ selectorContent: {
484
+ flexDirection: "row",
485
+ alignItems: "center",
486
+ justifyContent: "space-between",
487
+ width: "100%"
488
+ },
489
+ selectorText: {
490
+ fontSize: 14,
491
+ fontWeight: "500",
492
+ color: "#495057",
493
+ flex: 1,
494
+ width: "100%"
495
+ },
496
+ dropdownIcon: {
497
+ marginLeft: 4,
498
+ width: 12,
499
+ height: 12,
500
+ alignItems: "center",
501
+ justifyContent: "center"
502
+ },
503
+ daysLabelRow: {
504
+ flexDirection: "row",
505
+ marginBottom: 8,
506
+ justifyContent: "space-between"
507
+ },
508
+ dayLabel: {
509
+ flex: 1,
510
+ alignItems: "center",
511
+ paddingVertical: import_react_native4.Platform.OS === "android" ? 6 : 4,
512
+ height: import_react_native4.Platform.OS === "android" ? 42 : 36,
513
+ justifyContent: "center",
514
+ maxWidth: import_react_native4.Platform.OS === "android" ? 42 : 36,
515
+ minWidth: import_react_native4.Platform.OS === "android" ? 42 : 36
516
+ },
517
+ dayLabelText: {
518
+ fontSize: 12,
519
+ fontWeight: "600",
520
+ color: "#6c757d",
521
+ textTransform: "uppercase",
522
+ width: "100%"
523
+ },
524
+ body: {
525
+ gap: 8
526
+ },
527
+ weekRow: {
528
+ flexDirection: "row",
529
+ justifyContent: "space-between",
530
+ marginBottom: 0
531
+ },
532
+ emptyDay: {
533
+ flex: 1,
534
+ height: import_react_native4.Platform.OS === "android" ? 42 : 36,
535
+ alignItems: "center",
536
+ justifyContent: "center",
537
+ maxWidth: import_react_native4.Platform.OS === "android" ? 42 : 36,
538
+ minWidth: import_react_native4.Platform.OS === "android" ? 42 : 36
539
+ },
540
+ dayButton: {
541
+ flex: 1,
542
+ height: import_react_native4.Platform.OS === "android" ? 42 : 36,
543
+ alignItems: "center",
544
+ justifyContent: "center",
545
+ borderRadius: 4,
546
+ backgroundColor: "transparent",
547
+ maxWidth: import_react_native4.Platform.OS === "android" ? 42 : 36,
548
+ minWidth: import_react_native4.Platform.OS === "android" ? 42 : 36
549
+ },
550
+ dayText: {
551
+ fontSize: 14,
552
+ fontWeight: "400",
553
+ color: "#212529",
554
+ width: "100%"
555
+ },
556
+ activeDay: {
557
+ backgroundColor: mainColor
558
+ },
559
+ activeDayText: {
560
+ color: backgroundColor,
561
+ fontWeight: "600",
562
+ width: "100%"
563
+ },
564
+ disabledDay: {
565
+ backgroundColor: disabledFadeColor,
566
+ opacity: 0.6
567
+ },
568
+ disabledDayText: {
569
+ color: disabledColor,
570
+ width: "100%"
571
+ },
572
+ dateStart: {
573
+ backgroundColor: mainColor,
574
+ borderTopLeftRadius: 8,
575
+ borderBottomLeftRadius: 8,
576
+ borderTopRightRadius: 4,
577
+ borderBottomRightRadius: 4
578
+ },
579
+ dateEnd: {
580
+ backgroundColor: mainColor,
581
+ borderTopRightRadius: 8,
582
+ borderBottomRightRadius: 8,
583
+ borderTopLeftRadius: 4,
584
+ borderBottomLeftRadius: 4
585
+ },
586
+ dateInRange: {
587
+ backgroundColor: mainFadeColor,
588
+ borderRadius: 0
589
+ },
590
+ roundedLeft: {
591
+ borderTopLeftRadius: 8,
592
+ borderBottomLeftRadius: 8
593
+ },
594
+ roundedRight: {
595
+ borderTopRightRadius: 8,
596
+ borderBottomRightRadius: 8
597
+ },
598
+ todayButton: {
599
+ borderWidth: 0,
600
+ backgroundColor: "transparent"
601
+ },
602
+ todayText: {
603
+ fontWeight: "600",
604
+ color: mainColor
605
+ },
606
+ modalOverlay: {
607
+ flex: 1,
608
+ backgroundColor: "rgba(0, 0, 0, 0.5)",
609
+ justifyContent: "center",
610
+ alignItems: "center"
611
+ },
612
+ pickerContainer: {
613
+ backgroundColor,
614
+ borderRadius: 8,
615
+ maxHeight: 300,
616
+ width: 200,
617
+ shadowColor: "#000",
618
+ shadowOffset: {
619
+ width: 0,
620
+ height: 2
621
+ },
622
+ shadowOpacity: 0.25,
623
+ shadowRadius: 8,
624
+ elevation: 5
625
+ },
626
+ pickerScrollView: {
627
+ maxHeight: 300
628
+ },
629
+ pickerItem: {
630
+ flexDirection: "row",
631
+ alignItems: "center",
632
+ justifyContent: "space-between",
633
+ paddingHorizontal: 16,
634
+ paddingVertical: 12,
635
+ borderBottomWidth: 1,
636
+ borderBottomColor: backgroundColor
637
+ },
638
+ pickerItemSelected: {
639
+ backgroundColor: mainColor
640
+ },
641
+ pickerItemDisabled: {
642
+ opacity: 0.5
643
+ },
644
+ pickerItemText: {
645
+ fontSize: 16,
646
+ color: "#212529",
647
+ flex: 1,
648
+ lineHeight: 20
649
+ },
650
+ pickerItemTextSelected: {
651
+ color: "#ffffff",
652
+ fontWeight: "600"
653
+ },
654
+ pickerItemTextDisabled: {
655
+ color: "#6c757d"
656
+ }
657
+ }),
658
+ [backgroundColor, shadowColor, disabledFadeColor, mainColor, mainFadeColor, disabledColor]
659
+ );
660
+ const isRange = checkIsRange(activeDate);
661
+ const isNextDisabled = import_react8.default.useMemo(
662
+ () => disabled || (maxDate == null ? void 0 : maxDate.getMonth()) === (visibleMonth == null ? void 0 : visibleMonth.getMonth()) && (maxDate == null ? void 0 : maxDate.getFullYear()) === (visibleMonth == null ? void 0 : visibleMonth.getFullYear()),
663
+ [maxDate, visibleMonth, disabled]
664
+ );
665
+ const isPrevDisabled = import_react8.default.useMemo(
666
+ () => disabled || (minDate == null ? void 0 : minDate.getMonth()) === (visibleMonth == null ? void 0 : visibleMonth.getMonth()) && (minDate == null ? void 0 : minDate.getFullYear()) === (visibleMonth == null ? void 0 : visibleMonth.getFullYear()),
667
+ [minDate, visibleMonth, disabled]
668
+ );
669
+ const getAllDaysInMonth = import_react8.default.useCallback((year, month) => {
670
+ const date = new Date(year, month, 1);
671
+ const days2 = [];
672
+ const firstDayOfMonth = (date.getDay() + 6) % 7;
673
+ const lastDayOfMonth = new Date(year, month + 1, 0).getDate();
674
+ const allDays = [];
675
+ for (let i = 0; i < firstDayOfMonth; i++) days2.push(null);
676
+ for (let day = 1; day <= lastDayOfMonth; day++) days2.push(new Date(year, month, day));
677
+ while (days2.length % 7 !== 0) {
678
+ days2.push(null);
679
+ }
680
+ for (let i = 0; i < days2.length; i += 7) allDays.push(days2.slice(i, i + 7));
681
+ return allDays;
682
+ }, []);
683
+ const yearsBetween = import_react8.default.useMemo(() => {
684
+ const minYear = minDate.getFullYear();
685
+ const maxYear = maxDate.getFullYear();
686
+ const currentYear = value instanceof Date && (value == null ? void 0 : value.getFullYear());
687
+ const isCurrentYearInclude = currentYear && currentYear >= minYear && currentYear <= maxYear;
688
+ let years = Array.from({ length: maxYear - minYear + 1 }, (_, i) => {
689
+ const year = minYear + i;
690
+ return {
691
+ value: year,
692
+ disabled: false
693
+ };
694
+ });
695
+ if (currentYear && !isCurrentYearInclude) {
696
+ years = [{ value: currentYear, disabled: true }, ...years];
697
+ }
698
+ return years;
699
+ }, [minDate, maxDate, value]);
700
+ const availableMonths = import_react8.default.useMemo(() => {
701
+ const currentYear = visibleMonth.getFullYear();
702
+ const minYear = minDate.getFullYear();
703
+ const maxYear = maxDate.getFullYear();
704
+ const minMonth = minDate.getMonth();
705
+ const maxMonth = maxDate.getMonth();
706
+ return Array.from({ length: 12 }, (_, monthIndex) => {
707
+ if (currentYear < minYear || currentYear > maxYear) return false;
708
+ if (currentYear === minYear && monthIndex < minMonth) return false;
709
+ if (currentYear === maxYear && monthIndex > maxMonth) return false;
710
+ return true;
711
+ });
712
+ }, [minDate, maxDate, visibleMonth]);
713
+ const availableYear = import_react8.default.useMemo(() => {
714
+ const minYear = minDate.getFullYear();
715
+ const maxYear = maxDate.getFullYear();
716
+ return Array.from({ length: maxYear - minYear + 1 }, (_, i) => minYear + i);
717
+ }, [minDate, maxDate, visibleMonth]);
718
+ const allDaysInMonth = import_react8.default.useMemo(() => {
719
+ const activeYear = visibleMonth.getFullYear();
720
+ const activeMonth = visibleMonth.getMonth();
721
+ return getAllDaysInMonth(activeYear, activeMonth);
722
+ }, [visibleMonth]);
723
+ const handleClickNextPrevMonth = import_react8.default.useCallback(
724
+ (month) => {
725
+ const nextMonth = new Date(visibleMonth.getFullYear(), visibleMonth.getMonth() + month, visibleMonth.getDate());
726
+ setVisibleMonth(nextMonth);
727
+ onMonthChange && onMonthChange(nextMonth);
728
+ },
729
+ [visibleMonth, onMonthChange]
730
+ );
731
+ const handleMonthSelect = import_react8.default.useCallback(
732
+ (selectedMonth) => {
733
+ const newDate = new Date(visibleMonth.getFullYear(), selectedMonth, visibleMonth.getDate());
734
+ setVisibleMonth(newDate);
735
+ onMonthChange && onMonthChange(newDate);
736
+ },
737
+ [visibleMonth, onMonthChange, minDate, maxDate]
738
+ );
739
+ const handleYearSelect = import_react8.default.useCallback(
740
+ (selectedYear) => {
741
+ const newDate = new Date(selectedYear, visibleMonth.getMonth(), visibleMonth.getDate());
742
+ if (newDate.getTime() < minDate.getTime() || newDate.getTime() > maxDate.getTime()) {
743
+ if (newDate.getTime() < minDate.getTime()) {
744
+ setVisibleMonth(new Date(selectedYear, minDate.getMonth(), visibleMonth.getDate()));
745
+ onMonthChange && onMonthChange(new Date(selectedYear, minDate.getMonth(), visibleMonth.getDate()));
746
+ } else {
747
+ setVisibleMonth(new Date(selectedYear, maxDate.getMonth(), visibleMonth.getDate()));
748
+ onMonthChange && onMonthChange(new Date(selectedYear, maxDate.getMonth(), visibleMonth.getDate()));
749
+ }
750
+ return;
751
+ }
752
+ setVisibleMonth(newDate);
753
+ onMonthChange && onMonthChange(newDate);
754
+ },
755
+ [visibleMonth, onMonthChange, minDate, maxDate]
756
+ );
757
+ const handlePressDay = import_react8.default.useCallback(
758
+ (day) => {
759
+ if (readOnly) return;
760
+ const newDate = day;
761
+ let newActiveDate = [newDate];
762
+ if (!isRange) newActiveDate = newDate;
763
+ if (isRange && activeDate.length === 1 && newDate.getTime() > activeDate[0].getTime()) {
764
+ newActiveDate = [...activeDate, newDate];
765
+ }
766
+ setActiveDate(newActiveDate);
767
+ setDateEndHovered(void 0);
768
+ onChange && onChange(newActiveDate);
769
+ },
770
+ [onChange, readOnly, activeDate, isRange]
771
+ );
772
+ import_react8.default.useEffect(() => {
773
+ setActiveDate(value);
774
+ if (value instanceof Date) return setVisibleMonth(value);
775
+ if (!(value instanceof Date) && value[0]) {
776
+ if (value[1]) {
777
+ return setVisibleMonth(value[1]);
778
+ }
779
+ return setVisibleMonth(value[0]);
780
+ }
781
+ }, [value]);
782
+ const renderDayButton = (day, dayIndex) => {
783
+ if (!day) {
784
+ return /* @__PURE__ */ import_react8.default.createElement(import_react_native4.View, { key: dayIndex, style: styles.emptyDay });
785
+ }
786
+ const isDateStart = isRange && activeDate[0] && (day == null ? void 0 : day.getTime()) === activeDate[0].getTime();
787
+ const isDateEnd = isRange && activeDate[1] && (day == null ? void 0 : day.getTime()) === activeDate[1].getTime();
788
+ const today = /* @__PURE__ */ new Date();
789
+ const isToday = (day == null ? void 0 : day.getFullYear()) === today.getFullYear() && (day == null ? void 0 : day.getMonth()) === today.getMonth() && (day == null ? void 0 : day.getDate()) === today.getDate();
790
+ const isActive = !isRange ? (day == null ? void 0 : day.getFullYear()) === activeDate.getFullYear() && (day == null ? void 0 : day.getMonth()) === activeDate.getMonth() && (day == null ? void 0 : day.getDate()) === activeDate.getDate() : activeDate == null ? void 0 : activeDate.some(
791
+ (date) => (date == null ? void 0 : date.getFullYear()) === (day == null ? void 0 : day.getFullYear()) && (date == null ? void 0 : date.getMonth()) === (day == null ? void 0 : day.getMonth()) && (date == null ? void 0 : date.getDate()) === (day == null ? void 0 : day.getDate())
792
+ );
793
+ const isDisabled = disabled || day && day.getTime() > (maxDate == null ? void 0 : maxDate.getTime()) || day && day.getTime() < (minDate == null ? void 0 : minDate.getTime()) || day && (disabledDates == null ? void 0 : disabledDates.some(
794
+ (date) => (date == null ? void 0 : date.getFullYear()) === (day == null ? void 0 : day.getFullYear()) && (date == null ? void 0 : date.getMonth()) === (day == null ? void 0 : day.getMonth()) && (date == null ? void 0 : date.getDate()) === (day == null ? void 0 : day.getDate())
795
+ )) || false;
796
+ const isInRange = isRange && activeDate[0] && dateEndHovered && day && day.getTime() >= activeDate[0].getTime() && day.getTime() < dateEndHovered.getTime() || isRange && activeDate[0] && activeDate[1] && day && day.getTime() >= activeDate[0].getTime() && day.getTime() < activeDate[1].getTime();
797
+ return /* @__PURE__ */ import_react8.default.createElement(
798
+ import_react_native4.TouchableOpacity,
799
+ {
800
+ key: dayIndex,
801
+ disabled: isDisabled,
802
+ onPress: () => !isDisabled && handlePressDay(day),
803
+ onPressIn: () => {
804
+ if (!isRange) return;
805
+ if (activeDate[0] !== void 0 && activeDate.length === 1) {
806
+ setDateEndHovered(day);
807
+ }
808
+ },
809
+ onPressOut: () => {
810
+ if (isRange && activeDate.length === 1) {
811
+ setDateEndHovered(void 0);
812
+ }
813
+ },
814
+ accessible: true,
815
+ accessibilityRole: "button",
816
+ accessibilityState: {
817
+ selected: isActive,
818
+ disabled: isDisabled
819
+ },
820
+ style: [
821
+ styles.dayButton,
822
+ isToday && styles.todayButton,
823
+ isActive && styles.activeDay,
824
+ isDisabled && styles.disabledDay,
825
+ isInRange && styles.dateInRange,
826
+ isDateStart && styles.dateStart,
827
+ isDateEnd && styles.dateEnd,
828
+ dayIndex === 0 && styles.roundedLeft,
829
+ dayIndex === 6 && styles.roundedRight
830
+ ]
831
+ },
832
+ /* @__PURE__ */ import_react8.default.createElement(
833
+ Text_native_default,
834
+ {
835
+ typo: "has-text-centered" /* TEXT_CENTERED */,
836
+ style: [
837
+ styles.dayText,
838
+ isToday && styles.todayText,
839
+ isActive && styles.activeDayText,
840
+ isDisabled && styles.disabledDayText
841
+ ]
842
+ },
843
+ day.getDate()
844
+ )
845
+ );
846
+ };
847
+ return /* @__PURE__ */ import_react8.default.createElement(import_react_native4.View, { ref, style: styles.calendar }, /* @__PURE__ */ import_react8.default.createElement(import_react_native4.View, { style: styles.header }, /* @__PURE__ */ import_react8.default.createElement(import_react_native4.View, { style: styles.headerRow }, /* @__PURE__ */ import_react8.default.createElement(
848
+ import_react_native4.TouchableOpacity,
849
+ {
850
+ onPress: () => handleClickNextPrevMonth(-1),
851
+ disabled: isPrevDisabled,
852
+ accessible: true,
853
+ accessibilityRole: "button",
854
+ accessibilityState: { disabled: isPrevDisabled },
855
+ style: [styles.navButton, isPrevDisabled && styles.disabledButton]
856
+ },
857
+ /* @__PURE__ */ import_react8.default.createElement(import_react_native4.View, { style: styles.iconWrapper }, /* @__PURE__ */ import_react8.default.createElement(Icon_native_default, { name: "tri-arrow-left" }))
858
+ ), /* @__PURE__ */ import_react8.default.createElement(import_react_native4.View, { style: styles.monthYearContainer }, /* @__PURE__ */ import_react8.default.createElement(import_react_native4.View, { style: styles.dropdownContainer }, /* @__PURE__ */ import_react8.default.createElement(
859
+ import_react_native4.TouchableOpacity,
860
+ {
861
+ style: styles.monthSelector,
862
+ accessible: true,
863
+ accessibilityRole: "button",
864
+ onPress: () => setShowMonthPicker(true)
865
+ },
866
+ /* @__PURE__ */ import_react8.default.createElement(import_react_native4.View, { style: styles.selectorContent }, /* @__PURE__ */ import_react8.default.createElement(Text_native_default, { typo: "has-text-centered" /* TEXT_CENTERED */, style: styles.selectorText }, months[visibleMonth.getMonth()]), /* @__PURE__ */ import_react8.default.createElement(import_react_native4.View, { style: styles.dropdownIcon }, /* @__PURE__ */ import_react8.default.createElement(Icon_native_default, { name: "tri-arrow-down" })))
867
+ ), /* @__PURE__ */ import_react8.default.createElement(
868
+ import_react_native4.TouchableOpacity,
869
+ {
870
+ style: styles.yearSelector,
871
+ accessible: true,
872
+ accessibilityRole: "button",
873
+ onPress: () => setShowYearPicker(true)
874
+ },
875
+ /* @__PURE__ */ import_react8.default.createElement(import_react_native4.View, { style: styles.selectorContent }, /* @__PURE__ */ import_react8.default.createElement(Text_native_default, { typo: "has-text-centered" /* TEXT_CENTERED */, style: styles.selectorText }, visibleMonth.getFullYear()), /* @__PURE__ */ import_react8.default.createElement(import_react_native4.View, { style: styles.dropdownIcon }, /* @__PURE__ */ import_react8.default.createElement(Icon_native_default, { name: "tri-arrow-down" })))
876
+ ))), /* @__PURE__ */ import_react8.default.createElement(
877
+ import_react_native4.TouchableOpacity,
878
+ {
879
+ onPress: () => handleClickNextPrevMonth(1),
880
+ disabled: isNextDisabled,
881
+ accessible: true,
882
+ accessibilityRole: "button",
883
+ accessibilityState: { disabled: isNextDisabled },
884
+ style: [styles.navButton, isNextDisabled && styles.disabledButton]
885
+ },
886
+ /* @__PURE__ */ import_react8.default.createElement(import_react_native4.View, { style: styles.iconWrapper }, /* @__PURE__ */ import_react8.default.createElement(Icon_native_default, { name: "tri-arrow-right" }))
887
+ )), /* @__PURE__ */ import_react8.default.createElement(import_react_native4.View, { style: styles.daysLabelRow }, days.map((day, index) => /* @__PURE__ */ import_react8.default.createElement(import_react_native4.View, { key: index, style: styles.dayLabel }, /* @__PURE__ */ import_react8.default.createElement(Text_native_default, { typo: "has-text-centered" /* TEXT_CENTERED */, style: styles.dayLabelText }, day.slice(0, 1)))))), /* @__PURE__ */ import_react8.default.createElement(import_react_native4.View, { style: styles.body }, allDaysInMonth.map((week, weekIndex) => /* @__PURE__ */ import_react8.default.createElement(import_react_native4.View, { key: weekIndex, style: styles.weekRow }, week.map((day, dayIndex) => renderDayButton(day, dayIndex))))), /* @__PURE__ */ import_react8.default.createElement(
888
+ import_react_native4.Modal,
889
+ {
890
+ visible: showMonthPicker,
891
+ transparent: true,
892
+ animationType: "fade",
893
+ onRequestClose: () => setShowMonthPicker(false)
894
+ },
895
+ /* @__PURE__ */ import_react8.default.createElement(import_react_native4.View, { style: styles.modalOverlay }, /* @__PURE__ */ import_react8.default.createElement(
896
+ import_react_native4.TouchableOpacity,
897
+ {
898
+ style: import_react_native4.StyleSheet.absoluteFillObject,
899
+ activeOpacity: 1,
900
+ onPress: () => setShowMonthPicker(false)
901
+ }
902
+ ), /* @__PURE__ */ import_react8.default.createElement(import_react_native4.View, { style: styles.pickerContainer }, /* @__PURE__ */ import_react8.default.createElement(import_react_native4.ScrollView, { style: styles.pickerScrollView }, months.map((monthName, monthIndex) => /* @__PURE__ */ import_react8.default.createElement(
903
+ import_react_native4.TouchableOpacity,
904
+ {
905
+ key: monthIndex,
906
+ style: [
907
+ styles.pickerItem,
908
+ visibleMonth.getMonth() === monthIndex && styles.pickerItemSelected,
909
+ !availableMonths[monthIndex] && styles.pickerItemDisabled
910
+ ],
911
+ disabled: !availableMonths[monthIndex],
912
+ onPress: () => {
913
+ if (availableMonths[monthIndex]) {
914
+ handleMonthSelect(monthIndex);
915
+ setShowMonthPicker(false);
916
+ }
917
+ }
918
+ },
919
+ /* @__PURE__ */ import_react8.default.createElement(
920
+ Text_native_default,
921
+ {
922
+ typo: "has-text-left" /* TEXT_LEFT */,
923
+ style: [
924
+ styles.pickerItemText,
925
+ visibleMonth.getMonth() === monthIndex && styles.pickerItemTextSelected,
926
+ !availableMonths[monthIndex] && styles.pickerItemTextDisabled
927
+ ]
928
+ },
929
+ monthName
930
+ ),
931
+ visibleMonth.getMonth() === monthIndex && /* @__PURE__ */ import_react8.default.createElement(Icon_native_default, { name: "tri-check" })
932
+ )))))
933
+ ), /* @__PURE__ */ import_react8.default.createElement(
934
+ import_react_native4.Modal,
935
+ {
936
+ visible: showYearPicker,
937
+ transparent: true,
938
+ animationType: "fade",
939
+ onRequestClose: () => setShowYearPicker(false)
940
+ },
941
+ /* @__PURE__ */ import_react8.default.createElement(import_react_native4.View, { style: styles.modalOverlay }, /* @__PURE__ */ import_react8.default.createElement(
942
+ import_react_native4.TouchableOpacity,
943
+ {
944
+ style: import_react_native4.StyleSheet.absoluteFillObject,
945
+ activeOpacity: 1,
946
+ onPress: () => setShowYearPicker(false)
947
+ }
948
+ ), /* @__PURE__ */ import_react8.default.createElement(import_react_native4.View, { style: styles.pickerContainer }, /* @__PURE__ */ import_react8.default.createElement(import_react_native4.ScrollView, { style: styles.pickerScrollView }, yearsBetween.map((year) => /* @__PURE__ */ import_react8.default.createElement(
949
+ import_react_native4.TouchableOpacity,
950
+ {
951
+ key: year.value,
952
+ style: [
953
+ styles.pickerItem,
954
+ visibleMonth.getFullYear() === year.value && styles.pickerItemSelected,
955
+ !availableYear.includes(year.value) && styles.pickerItemDisabled
956
+ ],
957
+ disabled: !availableYear.includes(year.value),
958
+ onPress: () => {
959
+ if (availableYear.includes(year.value)) {
960
+ handleYearSelect(year.value);
961
+ setShowYearPicker(false);
962
+ }
963
+ }
964
+ },
965
+ /* @__PURE__ */ import_react8.default.createElement(
966
+ Text_native_default,
967
+ {
968
+ typo: "has-text-left" /* TEXT_LEFT */,
969
+ style: [
970
+ styles.pickerItemText,
971
+ visibleMonth.getFullYear() === year.value && styles.pickerItemTextSelected,
972
+ !availableYear.includes(year.value) && styles.pickerItemTextDisabled
973
+ ]
974
+ },
975
+ String(year.value)
976
+ ),
977
+ visibleMonth.getFullYear() === year.value && /* @__PURE__ */ import_react8.default.createElement(Icon_native_default, { name: "tri-check" })
978
+ )))))
979
+ ));
980
+ }
981
+ );
982
+ Calendar.displayName = "Calendar" /* Calendar */;
983
+ var Calendar_native_default = Calendar;
984
+
985
+ // components/datepicker/DatePicker.native.tsx
986
+ var import_react9 = __toESM(require("react"));
987
+ var import_react_native5 = require("react-native");
988
+ var DatePicker = (0, import_react9.forwardRef)(
989
+ ({
990
+ onChange,
991
+ value,
992
+ minDate,
993
+ maxDate,
994
+ label,
995
+ sample,
996
+ required,
997
+ help,
998
+ status,
999
+ disabled,
1000
+ disabledDates,
1001
+ testId,
1002
+ name,
1003
+ ...others
1004
+ }, ref) => {
1005
+ const [inputText, setInputText] = (0, import_react9.useState)("");
1006
+ const [isCalendarVisible, setIsCalendarVisible] = (0, import_react9.useState)(false);
1007
+ const [isFocused, setIsFocused] = (0, import_react9.useState)(false);
1008
+ const previousTextRef = (0, import_react9.useRef)("");
1009
+ const calendarValue = value ? new Date(value) : void 0;
1010
+ const formatDateForDisplay = (0, import_react9.useCallback)((dateString) => {
1011
+ if (!dateString) return "";
1012
+ try {
1013
+ const date = new Date(dateString);
1014
+ if (isNaN(date.getTime())) return "";
1015
+ const day = date.getDate().toString().padStart(2, "0");
1016
+ const month = (date.getMonth() + 1).toString().padStart(2, "0");
1017
+ const year = date.getFullYear();
1018
+ return `${day}/${month}/${year}`;
1019
+ } catch {
1020
+ return "";
1021
+ }
1022
+ }, []);
1023
+ const parseManualInput = (0, import_react9.useCallback)(
1024
+ (input) => {
1025
+ const cleaned = input.replace(/[^\d/]/g, "");
1026
+ const dateRegex = /^(\d{1,2})\/(\d{1,2})\/(\d{4})$/;
1027
+ const match = cleaned.match(dateRegex);
1028
+ if (!match) return null;
1029
+ const [, day, month, year] = match;
1030
+ const dayNum = parseInt(day, 10);
1031
+ const monthNum = parseInt(month, 10);
1032
+ const yearNum = parseInt(year, 10);
1033
+ if (dayNum < 1 || dayNum > 31 || monthNum < 1 || monthNum > 12) {
1034
+ return null;
1035
+ }
1036
+ const date = new Date(yearNum, monthNum - 1, dayNum);
1037
+ if (date.getDate() !== dayNum || date.getMonth() !== monthNum - 1 || date.getFullYear() !== yearNum) {
1038
+ return null;
1039
+ }
1040
+ if (minDate && date < new Date(minDate)) return null;
1041
+ if (maxDate && date > new Date(maxDate)) return null;
1042
+ const formattedMonth = monthNum.toString().padStart(2, "0");
1043
+ const formattedDay = dayNum.toString().padStart(2, "0");
1044
+ return `${yearNum}-${formattedMonth}-${formattedDay}`;
1045
+ },
1046
+ [minDate, maxDate]
1047
+ );
1048
+ const isDateInRange = (0, import_react9.useCallback)(
1049
+ (date) => {
1050
+ if (minDate && date < new Date(minDate)) return false;
1051
+ if (maxDate && date > new Date(maxDate)) return false;
1052
+ return true;
1053
+ },
1054
+ [minDate, maxDate]
1055
+ );
1056
+ const handleCalendarChange = (0, import_react9.useCallback)(
1057
+ (selectedDate) => {
1058
+ const date = selectedDate;
1059
+ if (!isDateInRange(date)) return;
1060
+ const year = date.getFullYear();
1061
+ const month = (date.getMonth() + 1).toString().padStart(2, "0");
1062
+ const day = date.getDate().toString().padStart(2, "0");
1063
+ const formattedDate = `${year}-${month}-${day}`;
1064
+ setIsCalendarVisible(false);
1065
+ setIsFocused(false);
1066
+ if (onChange) {
1067
+ onChange(formattedDate);
1068
+ }
1069
+ },
1070
+ [onChange, isDateInRange, formatDateForDisplay]
1071
+ );
1072
+ const handleManualInput = (0, import_react9.useCallback)(
1073
+ (text) => {
1074
+ const previousText = previousTextRef.current;
1075
+ const isDeleting = text.length < previousText.length;
1076
+ if (isDeleting) {
1077
+ const cleaned2 = text.replace(/[^\d/]/g, "");
1078
+ let formatted2 = cleaned2;
1079
+ if (formatted2.endsWith("/")) {
1080
+ formatted2 = formatted2.slice(0, -1);
1081
+ }
1082
+ previousTextRef.current = formatted2;
1083
+ setInputText(formatted2);
1084
+ return;
1085
+ }
1086
+ const cleaned = text.replace(/[^\d/]/g, "");
1087
+ const limited = cleaned.slice(0, 10);
1088
+ const numbersOnly = limited.replace(/\//g, "");
1089
+ let formatted = "";
1090
+ if (numbersOnly.length === 1) {
1091
+ const firstDigit = parseInt(numbersOnly[0]);
1092
+ if (firstDigit > 3) {
1093
+ formatted = "0" + numbersOnly[0] + "/";
1094
+ } else {
1095
+ formatted = numbersOnly;
1096
+ }
1097
+ } else if (numbersOnly.length === 2) {
1098
+ const firstTwoDigits = parseInt(numbersOnly.slice(0, 2));
1099
+ if (firstTwoDigits > 31) {
1100
+ formatted = "0" + numbersOnly[0] + "/0" + numbersOnly[1];
1101
+ } else {
1102
+ formatted = numbersOnly.slice(0, 2) + "/";
1103
+ }
1104
+ } else if (numbersOnly.length === 3) {
1105
+ const dayPart = numbersOnly.slice(0, 2);
1106
+ const monthDigit = parseInt(numbersOnly[2]);
1107
+ if (monthDigit > 1) {
1108
+ formatted = dayPart + "/0" + numbersOnly[2] + "/";
1109
+ } else {
1110
+ formatted = dayPart + "/" + numbersOnly[2];
1111
+ }
1112
+ } else if (numbersOnly.length >= 4) {
1113
+ const dayPart = numbersOnly.slice(0, 2);
1114
+ const monthPart = numbersOnly.slice(2, 4);
1115
+ const monthValue = parseInt(monthPart);
1116
+ if (monthValue > 12) {
1117
+ formatted = dayPart + "/0" + numbersOnly[2] + "/" + numbersOnly[3];
1118
+ } else {
1119
+ formatted = dayPart + "/" + monthPart;
1120
+ if (numbersOnly.length > 4) {
1121
+ formatted += "/" + numbersOnly.slice(4);
1122
+ }
1123
+ }
1124
+ }
1125
+ previousTextRef.current = formatted;
1126
+ setInputText(formatted);
1127
+ if (numbersOnly.length >= 5 && onChange) {
1128
+ const dayPart = numbersOnly.slice(0, 2);
1129
+ const monthPart = numbersOnly.slice(2, 4);
1130
+ const yearPart = numbersOnly.slice(4);
1131
+ const currentYear = (/* @__PURE__ */ new Date()).getFullYear().toString();
1132
+ let yearToTest = yearPart;
1133
+ if (yearPart.length < 4) {
1134
+ if (yearPart.length === 1) {
1135
+ yearToTest = currentYear.slice(0, 3) + yearPart;
1136
+ } else if (yearPart.length === 2) {
1137
+ yearToTest = currentYear.slice(0, 2) + yearPart;
1138
+ } else if (yearPart.length === 3) {
1139
+ yearToTest = yearPart + currentYear.slice(3);
1140
+ }
1141
+ }
1142
+ const dayNum = parseInt(dayPart, 10);
1143
+ const monthNum = parseInt(monthPart, 10);
1144
+ const yearNum = parseInt(yearToTest, 10);
1145
+ if (dayNum >= 1 && dayNum <= 31 && monthNum >= 1 && monthNum <= 12 && yearNum >= 1e3) {
1146
+ const formattedDate = `${yearNum}-${monthNum.toString().padStart(2, "0")}-${dayNum.toString().padStart(2, "0")}`;
1147
+ onChange(formattedDate);
1148
+ }
1149
+ }
1150
+ },
1151
+ [parseManualInput, onChange]
1152
+ );
1153
+ const handleInputBlur = (0, import_react9.useCallback)(() => {
1154
+ setIsFocused(false);
1155
+ if (inputText.trim() === "") {
1156
+ if (onChange) {
1157
+ onChange(null);
1158
+ }
1159
+ return;
1160
+ }
1161
+ const parsedDate = parseManualInput(inputText);
1162
+ if (parsedDate && onChange) {
1163
+ onChange(parsedDate);
1164
+ } else {
1165
+ const previousFormatted = formatDateForDisplay(value || null);
1166
+ setInputText(previousFormatted);
1167
+ }
1168
+ }, [inputText, parseManualInput, onChange, value, formatDateForDisplay]);
1169
+ const handleOpenCalendar = (0, import_react9.useCallback)(() => {
1170
+ if (disabled) return;
1171
+ setIsCalendarVisible(true);
1172
+ }, [disabled]);
1173
+ const handleCloseCalendar = (0, import_react9.useCallback)(() => {
1174
+ setIsCalendarVisible(false);
1175
+ }, []);
1176
+ const handleInputFocus = (0, import_react9.useCallback)(() => {
1177
+ if (disabled) return;
1178
+ setIsFocused(true);
1179
+ }, [disabled]);
1180
+ (0, import_react9.useEffect)(() => {
1181
+ const formatted = formatDateForDisplay(value || null);
1182
+ if (!isFocused) {
1183
+ setInputText(formatted);
1184
+ previousTextRef.current = formatted;
1185
+ }
1186
+ }, [value, formatDateForDisplay, isFocused]);
1187
+ const styles = import_react_native5.StyleSheet.create({
1188
+ container: {
1189
+ width: "100%"
1190
+ },
1191
+ label: {
1192
+ fontSize: 14,
1193
+ fontWeight: "500",
1194
+ color: getColorStyle("MAIN" /* MAIN */),
1195
+ marginBottom: 4
1196
+ },
1197
+ sample: {
1198
+ fontSize: 12,
1199
+ color: getColorStyle("NEUTRAL" /* NEUTRAL */),
1200
+ marginBottom: 8
1201
+ },
1202
+ inputContainer: {
1203
+ flexDirection: "row",
1204
+ alignItems: "center",
1205
+ backgroundColor: disabled ? getColorStyle("DISABLED_FADE" /* DISABLED_FADE */) : getColorStyle("WHITE" /* BACKGROUND */),
1206
+ borderWidth: isFocused ? 2 : 1,
1207
+ borderColor: status === "success" && getColorStyle("SUCCESS" /* SUCCESS */) || status === "warning" && getColorStyle("WARNING" /* WARNING */) || status === "error" && getColorStyle("ERROR" /* ERROR */) || isFocused && getColorStyle("MAIN" /* MAIN */) || getColorStyle("NEUTRAL" /* NEUTRAL */),
1208
+ borderRadius: 3,
1209
+ height: 46,
1210
+ paddingHorizontal: 10
1211
+ },
1212
+ input: {
1213
+ flex: 1,
1214
+ fontSize: 16,
1215
+ color: disabled ? getColorStyle("DISABLED" /* DISABLED */) : getColorStyle("MAIN" /* MAIN */),
1216
+ paddingVertical: import_react_native5.Platform.OS === "ios" ? 12 : 8
1217
+ },
1218
+ iconContainer: {
1219
+ width: 32,
1220
+ height: 32,
1221
+ alignItems: "center",
1222
+ justifyContent: "center"
1223
+ },
1224
+ help: {
1225
+ fontSize: 12,
1226
+ marginTop: 4,
1227
+ paddingLeft: 4,
1228
+ color: status === "success" && getColorStyle("SUCCESS" /* SUCCESS */) || status === "warning" && getColorStyle("WARNING" /* WARNING */) || status === "error" && getColorStyle("ERROR" /* ERROR */) || getColorStyle("NEUTRAL" /* NEUTRAL */)
1229
+ },
1230
+ modalOverlay: {
1231
+ flex: 1,
1232
+ backgroundColor: "rgba(0, 0, 0, 0.5)",
1233
+ justifyContent: "center",
1234
+ alignItems: "center"
1235
+ },
1236
+ modalContent: {
1237
+ paddingBottom: 16,
1238
+ width: "90%",
1239
+ shadowColor: "#000",
1240
+ shadowOffset: {
1241
+ width: 0,
1242
+ height: 2
1243
+ },
1244
+ shadowOpacity: 0.25,
1245
+ shadowRadius: 8,
1246
+ elevation: 5
1247
+ }
1248
+ });
1249
+ return /* @__PURE__ */ import_react9.default.createElement(import_react_native5.View, { ref, style: styles.container, testID: testId, ...others }, label && /* @__PURE__ */ import_react9.default.createElement(import_react_native5.View, { style: { flexDirection: "row", alignItems: "center" } }, /* @__PURE__ */ import_react9.default.createElement(Text_native_default, { style: styles.label }, label), required && /* @__PURE__ */ import_react9.default.createElement(Text_native_default, { style: { color: getColorStyle("ERROR" /* ERROR */), marginLeft: 4 } }, "*")), sample && /* @__PURE__ */ import_react9.default.createElement(Text_native_default, { level: 3 /* THREE */, style: styles.sample }, sample), /* @__PURE__ */ import_react9.default.createElement(import_react_native5.View, { style: styles.inputContainer }, /* @__PURE__ */ import_react9.default.createElement(
1250
+ import_react_native5.TextInput,
1251
+ {
1252
+ style: styles.input,
1253
+ value: inputText,
1254
+ placeholder: "jj/mm/aaaa",
1255
+ placeholderTextColor: getColorStyle("NEUTRAL" /* NEUTRAL */),
1256
+ editable: !disabled,
1257
+ keyboardType: "numeric",
1258
+ onFocus: handleInputFocus,
1259
+ onBlur: handleInputBlur,
1260
+ onChangeText: handleManualInput,
1261
+ maxLength: 10
1262
+ }
1263
+ ), /* @__PURE__ */ import_react9.default.createElement(
1264
+ import_react_native5.TouchableOpacity,
1265
+ {
1266
+ style: styles.iconContainer,
1267
+ onPress: handleOpenCalendar,
1268
+ disabled,
1269
+ activeOpacity: 0.7
1270
+ },
1271
+ /* @__PURE__ */ import_react9.default.createElement(Icon_native_default, { name: "tri-calendar", size: "small" /* SMALL */, color: "MAIN" /* MAIN */ })
1272
+ )), help && /* @__PURE__ */ import_react9.default.createElement(Text_native_default, { style: styles.help }, help), /* @__PURE__ */ import_react9.default.createElement(import_react_native5.Modal, { visible: isCalendarVisible, transparent: true, animationType: "fade", onRequestClose: handleCloseCalendar }, /* @__PURE__ */ import_react9.default.createElement(import_react_native5.View, { style: styles.modalOverlay }, /* @__PURE__ */ import_react9.default.createElement(import_react_native5.TouchableOpacity, { style: import_react_native5.StyleSheet.absoluteFillObject, activeOpacity: 1, onPress: handleCloseCalendar }), /* @__PURE__ */ import_react9.default.createElement(import_react_native5.View, { style: styles.modalContent }, /* @__PURE__ */ import_react9.default.createElement(
1273
+ Calendar_native_default,
1274
+ {
1275
+ value: calendarValue,
1276
+ minDate: minDate ? new Date(minDate) : void 0,
1277
+ maxDate: maxDate ? new Date(maxDate) : void 0,
1278
+ disabledDates,
1279
+ onChange: handleCalendarChange,
1280
+ disabled
1281
+ }
1282
+ )))));
1283
+ }
1284
+ );
1285
+ DatePicker.displayName = "DatePicker" /* DatePicker */;
43
1286
  var DatePicker_native_default = DatePicker;
44
1287
  // Annotate the CommonJS export names for ESM import in node:
45
1288
  0 && (module.exports = {