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