@inorain_development/hotel-smarters-chat-ui 1.2.2 → 1.3.1

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 (339) hide show
  1. package/lib/commonjs/features/chat/components/common/calendar-icon.js +33 -0
  2. package/lib/commonjs/features/chat/components/common/calendar-icon.js.map +1 -0
  3. package/lib/commonjs/features/chat/components/common/calendar-icon.native.js +33 -0
  4. package/lib/commonjs/features/chat/components/common/calendar-icon.native.js.map +1 -0
  5. package/lib/commonjs/features/chat/components/common/cart-icon.js +36 -0
  6. package/lib/commonjs/features/chat/components/common/cart-icon.js.map +1 -0
  7. package/lib/commonjs/features/chat/components/common/chevron-icon.js +26 -0
  8. package/lib/commonjs/features/chat/components/common/chevron-icon.js.map +1 -0
  9. package/lib/commonjs/features/chat/components/common/chevron-icon.native.js +26 -0
  10. package/lib/commonjs/features/chat/components/common/chevron-icon.native.js.map +1 -0
  11. package/lib/commonjs/features/chat/components/common/plane-icon.js +23 -0
  12. package/lib/commonjs/features/chat/components/common/plane-icon.js.map +1 -0
  13. package/lib/commonjs/features/chat/components/common/plane-icon.native.js +23 -0
  14. package/lib/commonjs/features/chat/components/common/plane-icon.native.js.map +1 -0
  15. package/lib/commonjs/features/chat/components/flight/flight-card.js +130 -0
  16. package/lib/commonjs/features/chat/components/flight/flight-card.js.map +1 -0
  17. package/lib/commonjs/features/chat/components/flight/flight-card.native.js +132 -0
  18. package/lib/commonjs/features/chat/components/flight/flight-card.native.js.map +1 -0
  19. package/lib/commonjs/features/chat/components/flight/flight.js +149 -0
  20. package/lib/commonjs/features/chat/components/flight/flight.js.map +1 -0
  21. package/lib/commonjs/features/chat/components/flight/flight.model.js +6 -0
  22. package/lib/commonjs/features/chat/components/flight/flight.model.js.map +1 -0
  23. package/lib/commonjs/features/chat/components/flight/flight.native.js +151 -0
  24. package/lib/commonjs/features/chat/components/flight/flight.native.js.map +1 -0
  25. package/lib/commonjs/features/chat/components/flight/index.js +13 -0
  26. package/lib/commonjs/features/chat/components/flight/index.js.map +1 -0
  27. package/lib/commonjs/features/chat/components/flight-board/flight-board.js +154 -0
  28. package/lib/commonjs/features/chat/components/flight-board/flight-board.js.map +1 -0
  29. package/lib/commonjs/features/chat/components/flight-board/flight-board.model.js +6 -0
  30. package/lib/commonjs/features/chat/components/flight-board/flight-board.model.js.map +1 -0
  31. package/lib/commonjs/features/chat/components/flight-board/flight-board.native.js +165 -0
  32. package/lib/commonjs/features/chat/components/flight-board/flight-board.native.js.map +1 -0
  33. package/lib/commonjs/features/chat/components/flight-board/index.js +13 -0
  34. package/lib/commonjs/features/chat/components/flight-board/index.js.map +1 -0
  35. package/lib/commonjs/features/chat/components/info/info.js +41 -14
  36. package/lib/commonjs/features/chat/components/info/info.js.map +1 -1
  37. package/lib/commonjs/features/chat/components/info/info.native.js +45 -14
  38. package/lib/commonjs/features/chat/components/info/info.native.js.map +1 -1
  39. package/lib/commonjs/features/chat/components/order/index.js +20 -0
  40. package/lib/commonjs/features/chat/components/order/index.js.map +1 -0
  41. package/lib/commonjs/features/chat/components/order/order.js +168 -0
  42. package/lib/commonjs/features/chat/components/order/order.js.map +1 -0
  43. package/lib/commonjs/features/chat/components/order/order.model.js +15 -0
  44. package/lib/commonjs/features/chat/components/order/order.model.js.map +1 -0
  45. package/lib/commonjs/features/chat/components/order/order.native.js +186 -0
  46. package/lib/commonjs/features/chat/components/order/order.native.js.map +1 -0
  47. package/lib/commonjs/features/chat/components/reservation/index.js +20 -0
  48. package/lib/commonjs/features/chat/components/reservation/index.js.map +1 -0
  49. package/lib/commonjs/features/chat/components/reservation/reservation.js +165 -0
  50. package/lib/commonjs/features/chat/components/reservation/reservation.js.map +1 -0
  51. package/lib/commonjs/features/chat/components/reservation/reservation.model.js +13 -0
  52. package/lib/commonjs/features/chat/components/reservation/reservation.model.js.map +1 -0
  53. package/lib/commonjs/features/chat/components/reservation/reservation.native.js +180 -0
  54. package/lib/commonjs/features/chat/components/reservation/reservation.native.js.map +1 -0
  55. package/lib/commonjs/features/chat/model/chat.model.js +17 -1
  56. package/lib/commonjs/features/chat/model/chat.model.js.map +1 -1
  57. package/lib/commonjs/features/chat/renderer/renderer.js +26 -0
  58. package/lib/commonjs/features/chat/renderer/renderer.js.map +1 -1
  59. package/lib/commonjs/features/chat/renderer/renderer.native.js +26 -0
  60. package/lib/commonjs/features/chat/renderer/renderer.native.js.map +1 -1
  61. package/lib/commonjs/native.js +48 -0
  62. package/lib/commonjs/native.js.map +1 -1
  63. package/lib/commonjs/utils/flight.utils.js +86 -0
  64. package/lib/commonjs/utils/flight.utils.js.map +1 -0
  65. package/lib/commonjs/utils/order.utils.js +24 -0
  66. package/lib/commonjs/utils/order.utils.js.map +1 -0
  67. package/lib/commonjs/utils/reservation.utils.js +22 -0
  68. package/lib/commonjs/utils/reservation.utils.js.map +1 -0
  69. package/lib/commonjs/utils/status-badge.utils.js +75 -0
  70. package/lib/commonjs/utils/status-badge.utils.js.map +1 -0
  71. package/lib/commonjs/utils/theme.utils.js +8 -2
  72. package/lib/commonjs/utils/theme.utils.js.map +1 -1
  73. package/lib/commonjs/web.js +48 -0
  74. package/lib/commonjs/web.js.map +1 -1
  75. package/lib/module/features/chat/components/common/calendar-icon.js +29 -0
  76. package/lib/module/features/chat/components/common/calendar-icon.js.map +1 -0
  77. package/lib/module/features/chat/components/common/calendar-icon.native.js +29 -0
  78. package/lib/module/features/chat/components/common/calendar-icon.native.js.map +1 -0
  79. package/lib/module/features/chat/components/common/cart-icon.js +32 -0
  80. package/lib/module/features/chat/components/common/cart-icon.js.map +1 -0
  81. package/lib/module/features/chat/components/common/chevron-icon.js +22 -0
  82. package/lib/module/features/chat/components/common/chevron-icon.js.map +1 -0
  83. package/lib/module/features/chat/components/common/chevron-icon.native.js +22 -0
  84. package/lib/module/features/chat/components/common/chevron-icon.native.js.map +1 -0
  85. package/lib/module/features/chat/components/common/plane-icon.js +19 -0
  86. package/lib/module/features/chat/components/common/plane-icon.js.map +1 -0
  87. package/lib/module/features/chat/components/common/plane-icon.native.js +19 -0
  88. package/lib/module/features/chat/components/common/plane-icon.native.js.map +1 -0
  89. package/lib/module/features/chat/components/flight/flight-card.js +126 -0
  90. package/lib/module/features/chat/components/flight/flight-card.js.map +1 -0
  91. package/lib/module/features/chat/components/flight/flight-card.native.js +128 -0
  92. package/lib/module/features/chat/components/flight/flight-card.native.js.map +1 -0
  93. package/lib/module/features/chat/components/flight/flight.js +145 -0
  94. package/lib/module/features/chat/components/flight/flight.js.map +1 -0
  95. package/lib/module/features/chat/components/flight/flight.model.js +4 -0
  96. package/lib/module/features/chat/components/flight/flight.model.js.map +1 -0
  97. package/lib/module/features/chat/components/flight/flight.native.js +147 -0
  98. package/lib/module/features/chat/components/flight/flight.native.js.map +1 -0
  99. package/lib/module/features/chat/components/flight/index.js +4 -0
  100. package/lib/module/features/chat/components/flight/index.js.map +1 -0
  101. package/lib/module/features/chat/components/flight-board/flight-board.js +150 -0
  102. package/lib/module/features/chat/components/flight-board/flight-board.js.map +1 -0
  103. package/lib/module/features/chat/components/flight-board/flight-board.model.js +4 -0
  104. package/lib/module/features/chat/components/flight-board/flight-board.model.js.map +1 -0
  105. package/lib/module/features/chat/components/flight-board/flight-board.native.js +161 -0
  106. package/lib/module/features/chat/components/flight-board/flight-board.native.js.map +1 -0
  107. package/lib/module/features/chat/components/flight-board/index.js +4 -0
  108. package/lib/module/features/chat/components/flight-board/index.js.map +1 -0
  109. package/lib/module/features/chat/components/info/info.js +41 -14
  110. package/lib/module/features/chat/components/info/info.js.map +1 -1
  111. package/lib/module/features/chat/components/info/info.native.js +46 -15
  112. package/lib/module/features/chat/components/info/info.native.js.map +1 -1
  113. package/lib/module/features/chat/components/order/index.js +5 -0
  114. package/lib/module/features/chat/components/order/index.js.map +1 -0
  115. package/lib/module/features/chat/components/order/order.js +164 -0
  116. package/lib/module/features/chat/components/order/order.js.map +1 -0
  117. package/lib/module/features/chat/components/order/order.model.js +11 -0
  118. package/lib/module/features/chat/components/order/order.model.js.map +1 -0
  119. package/lib/module/features/chat/components/order/order.native.js +182 -0
  120. package/lib/module/features/chat/components/order/order.native.js.map +1 -0
  121. package/lib/module/features/chat/components/reservation/index.js +5 -0
  122. package/lib/module/features/chat/components/reservation/index.js.map +1 -0
  123. package/lib/module/features/chat/components/reservation/reservation.js +161 -0
  124. package/lib/module/features/chat/components/reservation/reservation.js.map +1 -0
  125. package/lib/module/features/chat/components/reservation/reservation.model.js +9 -0
  126. package/lib/module/features/chat/components/reservation/reservation.model.js.map +1 -0
  127. package/lib/module/features/chat/components/reservation/reservation.native.js +176 -0
  128. package/lib/module/features/chat/components/reservation/reservation.native.js.map +1 -0
  129. package/lib/module/features/chat/model/chat.model.js +16 -0
  130. package/lib/module/features/chat/model/chat.model.js.map +1 -1
  131. package/lib/module/features/chat/renderer/renderer.js +26 -0
  132. package/lib/module/features/chat/renderer/renderer.js.map +1 -1
  133. package/lib/module/features/chat/renderer/renderer.native.js +26 -0
  134. package/lib/module/features/chat/renderer/renderer.native.js.map +1 -1
  135. package/lib/module/native.js +7 -1
  136. package/lib/module/native.js.map +1 -1
  137. package/lib/module/utils/flight.utils.js +82 -0
  138. package/lib/module/utils/flight.utils.js.map +1 -0
  139. package/lib/module/utils/order.utils.js +20 -0
  140. package/lib/module/utils/order.utils.js.map +1 -0
  141. package/lib/module/utils/reservation.utils.js +18 -0
  142. package/lib/module/utils/reservation.utils.js.map +1 -0
  143. package/lib/module/utils/status-badge.utils.js +70 -0
  144. package/lib/module/utils/status-badge.utils.js.map +1 -0
  145. package/lib/module/utils/theme.utils.js +8 -2
  146. package/lib/module/utils/theme.utils.js.map +1 -1
  147. package/lib/module/web.js +7 -1
  148. package/lib/module/web.js.map +1 -1
  149. package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.d.ts +6 -0
  150. package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.d.ts.map +1 -0
  151. package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.native.d.ts +6 -0
  152. package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.native.d.ts.map +1 -0
  153. package/lib/typescript/commonjs/features/chat/components/common/cart-icon.d.ts +6 -0
  154. package/lib/typescript/commonjs/features/chat/components/common/cart-icon.d.ts.map +1 -0
  155. package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.d.ts +6 -0
  156. package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.d.ts.map +1 -0
  157. package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.native.d.ts +6 -0
  158. package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.native.d.ts.map +1 -0
  159. package/lib/typescript/commonjs/features/chat/components/common/plane-icon.d.ts +6 -0
  160. package/lib/typescript/commonjs/features/chat/components/common/plane-icon.d.ts.map +1 -0
  161. package/lib/typescript/commonjs/features/chat/components/common/plane-icon.native.d.ts +6 -0
  162. package/lib/typescript/commonjs/features/chat/components/common/plane-icon.native.d.ts.map +1 -0
  163. package/lib/typescript/commonjs/features/chat/components/flight/flight-card.d.ts +12 -0
  164. package/lib/typescript/commonjs/features/chat/components/flight/flight-card.d.ts.map +1 -0
  165. package/lib/typescript/commonjs/features/chat/components/flight/flight-card.native.d.ts +12 -0
  166. package/lib/typescript/commonjs/features/chat/components/flight/flight-card.native.d.ts.map +1 -0
  167. package/lib/typescript/commonjs/features/chat/components/flight/flight.d.ts +4 -0
  168. package/lib/typescript/commonjs/features/chat/components/flight/flight.d.ts.map +1 -0
  169. package/lib/typescript/commonjs/features/chat/components/flight/flight.model.d.ts +19 -0
  170. package/lib/typescript/commonjs/features/chat/components/flight/flight.model.d.ts.map +1 -0
  171. package/lib/typescript/commonjs/features/chat/components/flight/flight.native.d.ts +4 -0
  172. package/lib/typescript/commonjs/features/chat/components/flight/flight.native.d.ts.map +1 -0
  173. package/lib/typescript/commonjs/features/chat/components/flight/index.d.ts +3 -0
  174. package/lib/typescript/commonjs/features/chat/components/flight/index.d.ts.map +1 -0
  175. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.d.ts +4 -0
  176. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.d.ts.map +1 -0
  177. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.model.d.ts +22 -0
  178. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.model.d.ts.map +1 -0
  179. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.native.d.ts +4 -0
  180. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.native.d.ts.map +1 -0
  181. package/lib/typescript/commonjs/features/chat/components/flight-board/index.d.ts +3 -0
  182. package/lib/typescript/commonjs/features/chat/components/flight-board/index.d.ts.map +1 -0
  183. package/lib/typescript/commonjs/features/chat/components/info/info.d.ts +1 -1
  184. package/lib/typescript/commonjs/features/chat/components/info/info.d.ts.map +1 -1
  185. package/lib/typescript/commonjs/features/chat/components/info/info.model.d.ts +3 -0
  186. package/lib/typescript/commonjs/features/chat/components/info/info.model.d.ts.map +1 -1
  187. package/lib/typescript/commonjs/features/chat/components/info/info.native.d.ts +1 -1
  188. package/lib/typescript/commonjs/features/chat/components/info/info.native.d.ts.map +1 -1
  189. package/lib/typescript/commonjs/features/chat/components/order/index.d.ts +4 -0
  190. package/lib/typescript/commonjs/features/chat/components/order/index.d.ts.map +1 -0
  191. package/lib/typescript/commonjs/features/chat/components/order/order.d.ts +4 -0
  192. package/lib/typescript/commonjs/features/chat/components/order/order.d.ts.map +1 -0
  193. package/lib/typescript/commonjs/features/chat/components/order/order.model.d.ts +30 -0
  194. package/lib/typescript/commonjs/features/chat/components/order/order.model.d.ts.map +1 -0
  195. package/lib/typescript/commonjs/features/chat/components/order/order.native.d.ts +4 -0
  196. package/lib/typescript/commonjs/features/chat/components/order/order.native.d.ts.map +1 -0
  197. package/lib/typescript/commonjs/features/chat/components/reservation/index.d.ts +4 -0
  198. package/lib/typescript/commonjs/features/chat/components/reservation/index.d.ts.map +1 -0
  199. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.d.ts +4 -0
  200. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.d.ts.map +1 -0
  201. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.model.d.ts +28 -0
  202. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.model.d.ts.map +1 -0
  203. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.native.d.ts +4 -0
  204. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.native.d.ts.map +1 -0
  205. package/lib/typescript/commonjs/features/chat/model/chat.model.d.ts +17 -2
  206. package/lib/typescript/commonjs/features/chat/model/chat.model.d.ts.map +1 -1
  207. package/lib/typescript/commonjs/features/chat/renderer/renderer.d.ts +5 -1
  208. package/lib/typescript/commonjs/features/chat/renderer/renderer.d.ts.map +1 -1
  209. package/lib/typescript/commonjs/features/chat/renderer/renderer.native.d.ts +5 -1
  210. package/lib/typescript/commonjs/features/chat/renderer/renderer.native.d.ts.map +1 -1
  211. package/lib/typescript/commonjs/native.d.ts +11 -1
  212. package/lib/typescript/commonjs/native.d.ts.map +1 -1
  213. package/lib/typescript/commonjs/utils/flight.utils.d.ts +10 -0
  214. package/lib/typescript/commonjs/utils/flight.utils.d.ts.map +1 -0
  215. package/lib/typescript/commonjs/utils/order.utils.d.ts +7 -0
  216. package/lib/typescript/commonjs/utils/order.utils.d.ts.map +1 -0
  217. package/lib/typescript/commonjs/utils/reservation.utils.d.ts +7 -0
  218. package/lib/typescript/commonjs/utils/reservation.utils.d.ts.map +1 -0
  219. package/lib/typescript/commonjs/utils/status-badge.utils.d.ts +15 -0
  220. package/lib/typescript/commonjs/utils/status-badge.utils.d.ts.map +1 -0
  221. package/lib/typescript/commonjs/utils/theme.utils.d.ts +3 -0
  222. package/lib/typescript/commonjs/utils/theme.utils.d.ts.map +1 -1
  223. package/lib/typescript/commonjs/web.d.ts +11 -1
  224. package/lib/typescript/commonjs/web.d.ts.map +1 -1
  225. package/lib/typescript/module/features/chat/components/common/calendar-icon.d.ts +6 -0
  226. package/lib/typescript/module/features/chat/components/common/calendar-icon.d.ts.map +1 -0
  227. package/lib/typescript/module/features/chat/components/common/calendar-icon.native.d.ts +6 -0
  228. package/lib/typescript/module/features/chat/components/common/calendar-icon.native.d.ts.map +1 -0
  229. package/lib/typescript/module/features/chat/components/common/cart-icon.d.ts +6 -0
  230. package/lib/typescript/module/features/chat/components/common/cart-icon.d.ts.map +1 -0
  231. package/lib/typescript/module/features/chat/components/common/chevron-icon.d.ts +6 -0
  232. package/lib/typescript/module/features/chat/components/common/chevron-icon.d.ts.map +1 -0
  233. package/lib/typescript/module/features/chat/components/common/chevron-icon.native.d.ts +6 -0
  234. package/lib/typescript/module/features/chat/components/common/chevron-icon.native.d.ts.map +1 -0
  235. package/lib/typescript/module/features/chat/components/common/plane-icon.d.ts +6 -0
  236. package/lib/typescript/module/features/chat/components/common/plane-icon.d.ts.map +1 -0
  237. package/lib/typescript/module/features/chat/components/common/plane-icon.native.d.ts +6 -0
  238. package/lib/typescript/module/features/chat/components/common/plane-icon.native.d.ts.map +1 -0
  239. package/lib/typescript/module/features/chat/components/flight/flight-card.d.ts +12 -0
  240. package/lib/typescript/module/features/chat/components/flight/flight-card.d.ts.map +1 -0
  241. package/lib/typescript/module/features/chat/components/flight/flight-card.native.d.ts +12 -0
  242. package/lib/typescript/module/features/chat/components/flight/flight-card.native.d.ts.map +1 -0
  243. package/lib/typescript/module/features/chat/components/flight/flight.d.ts +4 -0
  244. package/lib/typescript/module/features/chat/components/flight/flight.d.ts.map +1 -0
  245. package/lib/typescript/module/features/chat/components/flight/flight.model.d.ts +19 -0
  246. package/lib/typescript/module/features/chat/components/flight/flight.model.d.ts.map +1 -0
  247. package/lib/typescript/module/features/chat/components/flight/flight.native.d.ts +4 -0
  248. package/lib/typescript/module/features/chat/components/flight/flight.native.d.ts.map +1 -0
  249. package/lib/typescript/module/features/chat/components/flight/index.d.ts +3 -0
  250. package/lib/typescript/module/features/chat/components/flight/index.d.ts.map +1 -0
  251. package/lib/typescript/module/features/chat/components/flight-board/flight-board.d.ts +4 -0
  252. package/lib/typescript/module/features/chat/components/flight-board/flight-board.d.ts.map +1 -0
  253. package/lib/typescript/module/features/chat/components/flight-board/flight-board.model.d.ts +22 -0
  254. package/lib/typescript/module/features/chat/components/flight-board/flight-board.model.d.ts.map +1 -0
  255. package/lib/typescript/module/features/chat/components/flight-board/flight-board.native.d.ts +4 -0
  256. package/lib/typescript/module/features/chat/components/flight-board/flight-board.native.d.ts.map +1 -0
  257. package/lib/typescript/module/features/chat/components/flight-board/index.d.ts +3 -0
  258. package/lib/typescript/module/features/chat/components/flight-board/index.d.ts.map +1 -0
  259. package/lib/typescript/module/features/chat/components/info/info.d.ts +1 -1
  260. package/lib/typescript/module/features/chat/components/info/info.d.ts.map +1 -1
  261. package/lib/typescript/module/features/chat/components/info/info.model.d.ts +3 -0
  262. package/lib/typescript/module/features/chat/components/info/info.model.d.ts.map +1 -1
  263. package/lib/typescript/module/features/chat/components/info/info.native.d.ts +1 -1
  264. package/lib/typescript/module/features/chat/components/info/info.native.d.ts.map +1 -1
  265. package/lib/typescript/module/features/chat/components/order/index.d.ts +4 -0
  266. package/lib/typescript/module/features/chat/components/order/index.d.ts.map +1 -0
  267. package/lib/typescript/module/features/chat/components/order/order.d.ts +4 -0
  268. package/lib/typescript/module/features/chat/components/order/order.d.ts.map +1 -0
  269. package/lib/typescript/module/features/chat/components/order/order.model.d.ts +30 -0
  270. package/lib/typescript/module/features/chat/components/order/order.model.d.ts.map +1 -0
  271. package/lib/typescript/module/features/chat/components/order/order.native.d.ts +4 -0
  272. package/lib/typescript/module/features/chat/components/order/order.native.d.ts.map +1 -0
  273. package/lib/typescript/module/features/chat/components/reservation/index.d.ts +4 -0
  274. package/lib/typescript/module/features/chat/components/reservation/index.d.ts.map +1 -0
  275. package/lib/typescript/module/features/chat/components/reservation/reservation.d.ts +4 -0
  276. package/lib/typescript/module/features/chat/components/reservation/reservation.d.ts.map +1 -0
  277. package/lib/typescript/module/features/chat/components/reservation/reservation.model.d.ts +28 -0
  278. package/lib/typescript/module/features/chat/components/reservation/reservation.model.d.ts.map +1 -0
  279. package/lib/typescript/module/features/chat/components/reservation/reservation.native.d.ts +4 -0
  280. package/lib/typescript/module/features/chat/components/reservation/reservation.native.d.ts.map +1 -0
  281. package/lib/typescript/module/features/chat/model/chat.model.d.ts +17 -2
  282. package/lib/typescript/module/features/chat/model/chat.model.d.ts.map +1 -1
  283. package/lib/typescript/module/features/chat/renderer/renderer.d.ts +5 -1
  284. package/lib/typescript/module/features/chat/renderer/renderer.d.ts.map +1 -1
  285. package/lib/typescript/module/features/chat/renderer/renderer.native.d.ts +5 -1
  286. package/lib/typescript/module/features/chat/renderer/renderer.native.d.ts.map +1 -1
  287. package/lib/typescript/module/native.d.ts +11 -1
  288. package/lib/typescript/module/native.d.ts.map +1 -1
  289. package/lib/typescript/module/utils/flight.utils.d.ts +10 -0
  290. package/lib/typescript/module/utils/flight.utils.d.ts.map +1 -0
  291. package/lib/typescript/module/utils/order.utils.d.ts +7 -0
  292. package/lib/typescript/module/utils/order.utils.d.ts.map +1 -0
  293. package/lib/typescript/module/utils/reservation.utils.d.ts +7 -0
  294. package/lib/typescript/module/utils/reservation.utils.d.ts.map +1 -0
  295. package/lib/typescript/module/utils/status-badge.utils.d.ts +15 -0
  296. package/lib/typescript/module/utils/status-badge.utils.d.ts.map +1 -0
  297. package/lib/typescript/module/utils/theme.utils.d.ts +3 -0
  298. package/lib/typescript/module/utils/theme.utils.d.ts.map +1 -1
  299. package/lib/typescript/module/web.d.ts +11 -1
  300. package/lib/typescript/module/web.d.ts.map +1 -1
  301. package/package.json +1 -1
  302. package/src/features/chat/components/common/calendar-icon.native.tsx +13 -0
  303. package/src/features/chat/components/common/calendar-icon.tsx +13 -0
  304. package/src/features/chat/components/common/cart-icon.tsx +20 -0
  305. package/src/features/chat/components/common/chevron-icon.native.tsx +18 -0
  306. package/src/features/chat/components/common/chevron-icon.tsx +18 -0
  307. package/src/features/chat/components/common/plane-icon.native.tsx +15 -0
  308. package/src/features/chat/components/common/plane-icon.tsx +15 -0
  309. package/src/features/chat/components/flight/flight-card.native.tsx +100 -0
  310. package/src/features/chat/components/flight/flight-card.tsx +100 -0
  311. package/src/features/chat/components/flight/flight.model.ts +20 -0
  312. package/src/features/chat/components/flight/flight.native.tsx +131 -0
  313. package/src/features/chat/components/flight/flight.tsx +131 -0
  314. package/src/features/chat/components/flight/index.ts +2 -0
  315. package/src/features/chat/components/flight-board/flight-board.model.ts +23 -0
  316. package/src/features/chat/components/flight-board/flight-board.native.tsx +155 -0
  317. package/src/features/chat/components/flight-board/flight-board.tsx +160 -0
  318. package/src/features/chat/components/flight-board/index.ts +2 -0
  319. package/src/features/chat/components/info/info.model.ts +3 -0
  320. package/src/features/chat/components/info/info.native.tsx +47 -11
  321. package/src/features/chat/components/info/info.tsx +43 -10
  322. package/src/features/chat/components/order/index.ts +3 -0
  323. package/src/features/chat/components/order/order.model.ts +32 -0
  324. package/src/features/chat/components/order/order.native.tsx +172 -0
  325. package/src/features/chat/components/order/order.tsx +173 -0
  326. package/src/features/chat/components/reservation/index.ts +3 -0
  327. package/src/features/chat/components/reservation/reservation.model.ts +30 -0
  328. package/src/features/chat/components/reservation/reservation.native.tsx +160 -0
  329. package/src/features/chat/components/reservation/reservation.tsx +162 -0
  330. package/src/features/chat/model/chat.model.ts +16 -0
  331. package/src/features/chat/renderer/renderer.native.tsx +29 -1
  332. package/src/features/chat/renderer/renderer.tsx +29 -1
  333. package/src/native.ts +11 -1
  334. package/src/utils/flight.utils.ts +35 -0
  335. package/src/utils/order.utils.ts +28 -0
  336. package/src/utils/reservation.utils.ts +23 -0
  337. package/src/utils/status-badge.utils.ts +36 -0
  338. package/src/utils/theme.utils.ts +9 -0
  339. package/src/web.ts +11 -1
@@ -0,0 +1,4 @@
1
+ import type { ChatComponentProps } from '../../model/chat.model.js';
2
+ import type { ReservationListItem } from './reservation.model.js';
3
+ export declare function Reservation({ data, theme, language, actionLabel, onAction, onSelect, }: ChatComponentProps<ReservationListItem>): import("react").JSX.Element | null;
4
+ //# sourceMappingURL=reservation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reservation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/reservation/reservation.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAkB,MAAM,wBAAqB,CAAC;AAE/E,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,KAAkB,EAClB,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,QAAQ,GACT,EAAE,kBAAkB,CAAC,mBAAmB,CAAC,sCA8IzC"}
@@ -0,0 +1,28 @@
1
+ import type { LocalizedText } from '../../model/chat.model.js';
2
+ export declare enum ReservationStatus {
3
+ Pending = "pending",
4
+ Confirmed = "confirmed",
5
+ Cancelled = "cancelled"
6
+ }
7
+ export interface ReservationRow {
8
+ id: number;
9
+ image?: string;
10
+ name: LocalizedText;
11
+ date: string;
12
+ time: string;
13
+ duration?: string;
14
+ price: string;
15
+ status: ReservationStatus;
16
+ statusLabel?: LocalizedText;
17
+ }
18
+ export interface ReservationListItem {
19
+ title: LocalizedText;
20
+ subtitle?: LocalizedText;
21
+ status?: ReservationStatus;
22
+ statusLabel?: LocalizedText;
23
+ reservations: ReservationRow[];
24
+ totalLabel?: LocalizedText;
25
+ total?: string;
26
+ actionLabel?: LocalizedText;
27
+ }
28
+ //# sourceMappingURL=reservation.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reservation.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/reservation/reservation.model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAAwB,CAAC;AAE5D,oBAAY,iBAAiB;IAC3B,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,SAAS,cAAc;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,iBAAiB,CAAC;IAC1B,WAAW,CAAC,EAAE,aAAa,CAAC;CAC7B;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,YAAY,EAAE,cAAc,EAAE,CAAC;IAC/B,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,aAAa,CAAC;CAC7B"}
@@ -0,0 +1,4 @@
1
+ import type { ChatComponentProps } from '../../model/chat.model.js';
2
+ import type { ReservationListItem } from './reservation.model.js';
3
+ export declare function Reservation({ data, theme, language, actionLabel, onAction, onSelect, }: ChatComponentProps<ReservationListItem>): import("react").JSX.Element | null;
4
+ //# sourceMappingURL=reservation.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reservation.native.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/reservation/reservation.native.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAkB,MAAM,wBAAqB,CAAC;AAE/E,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,KAAkB,EAClB,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,QAAQ,GACT,EAAE,kBAAkB,CAAC,mBAAmB,CAAC,sCA2IzC"}
@@ -11,10 +11,25 @@ export declare enum ComponentType {
11
11
  ServiceList = "serviceList",
12
12
  Event = "event",
13
13
  EventList = "eventList",
14
- Info = "info"
14
+ Info = "info",
15
+ Flight = "flight",
16
+ FlightList = "flightList",
17
+ FlightBoard = "flightBoard",
18
+ Order = "order",
19
+ Reservation = "reservation",
20
+ ReservationList = "reservationList"
15
21
  }
16
22
  export declare enum ItemAction {
17
- Add = "add"
23
+ Add = "add",
24
+ Manage = "manage",
25
+ Track = "track"
26
+ }
27
+ export declare enum FlightStatus {
28
+ OnTime = "onTime",
29
+ Delayed = "delayed",
30
+ Boarding = "boarding",
31
+ Landed = "landed",
32
+ Cancelled = "cancelled"
18
33
  }
19
34
  export type ActionHandler<TItem = unknown> = (item: TItem, action?: ItemAction) => void;
20
35
  export interface ItemCount {
@@ -1 +1 @@
1
- {"version":3,"file":"chat.model.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/model/chat.model.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK;IACf,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAC9B,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEnD,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,IAAI,SAAS;CACd;AAED,oBAAY,UAAU;IACpB,GAAG,QAAQ;CACZ;AAED,MAAM,MAAM,aAAa,CAAC,KAAK,GAAG,OAAO,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;AAExF,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB,CAAC,KAAK,GAAG,OAAO;IACjD,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,KAAK,GAAG,KAAK,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,KAAK,MAAM,CAAC,CAAC;IACjD,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf"}
1
+ {"version":3,"file":"chat.model.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/model/chat.model.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK;IACf,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAC9B,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEnD,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,eAAe,oBAAoB;CACpC;AAED,oBAAY,UAAU;IACpB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,oBAAY,YAAY;IACtB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB;AAED,MAAM,MAAM,aAAa,CAAC,KAAK,GAAG,OAAO,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;AAExF,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB,CAAC,KAAK,GAAG,OAAO;IACjD,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,KAAK,GAAG,KAAK,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,KAAK,MAAM,CAAC,CAAC;IACjD,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf"}
@@ -2,6 +2,10 @@ import type { ProductItem } from '../components/product/product.model.js';
2
2
  import type { ServiceItem } from '../components/service/service.model.js';
3
3
  import type { EventItem } from '../components/event/event.model.js';
4
4
  import type { InfoItem } from '../components/info/info.model.js';
5
+ import type { FlightItem } from '../components/flight/flight.model.js';
6
+ import type { FlightBoardItem } from '../components/flight-board/flight-board.model.js';
7
+ import type { OrderListItem } from '../components/order/order.model.js';
8
+ import type { ReservationListItem } from '../components/reservation/reservation.model.js';
5
9
  import type { ChatComponentProps } from '../model/chat.model.js';
6
- export declare function ChatComponentRenderer<TItem extends ProductItem | ServiceItem | EventItem | InfoItem>({ type, ...rest }: ChatComponentProps<TItem>): import("react").JSX.Element | null;
10
+ export declare function ChatComponentRenderer<TItem extends ProductItem | ServiceItem | EventItem | InfoItem | FlightItem | FlightBoardItem | OrderListItem | ReservationListItem>({ type, ...rest }: ChatComponentProps<TItem>): import("react").JSX.Element | null;
7
11
  //# sourceMappingURL=renderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/renderer/renderer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oCAAiC,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAA+B,CAAC;AAE9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAqB,CAAC;AAE9D,wBAAgB,qBAAqB,CACnC,KAAK,SAAS,WAAW,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,EAC9D,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,kBAAkB,CAAC,KAAK,CAAC,sCAgB7C"}
1
+ {"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/renderer/renderer.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oCAAiC,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAA+B,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAmC,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kDAA+C,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gDAA6C,CAAC;AAEvF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAqB,CAAC;AAE9D,wBAAgB,qBAAqB,CACnC,KAAK,SACD,WAAW,GACX,WAAW,GACX,SAAS,GACT,QAAQ,GACR,UAAU,GACV,eAAe,GACf,aAAa,GACb,mBAAmB,EACvB,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,kBAAkB,CAAC,KAAK,CAAC,sCA4B7C"}
@@ -2,6 +2,10 @@ import type { ProductItem } from '../components/product/product.model.js';
2
2
  import type { ServiceItem } from '../components/service/service.model.js';
3
3
  import type { EventItem } from '../components/event/event.model.js';
4
4
  import type { InfoItem } from '../components/info/info.model.js';
5
+ import type { FlightItem } from '../components/flight/flight.model.js';
6
+ import type { FlightBoardItem } from '../components/flight-board/flight-board.model.js';
7
+ import type { OrderListItem } from '../components/order/order.model.js';
8
+ import type { ReservationListItem } from '../components/reservation/reservation.model.js';
5
9
  import type { ChatComponentProps } from '../model/chat.model.js';
6
- export declare function ChatComponentRenderer<TItem extends ProductItem | ServiceItem | EventItem | InfoItem>({ type, ...rest }: ChatComponentProps<TItem>): import("react").JSX.Element | null;
10
+ export declare function ChatComponentRenderer<TItem extends ProductItem | ServiceItem | EventItem | InfoItem | FlightItem | FlightBoardItem | OrderListItem | ReservationListItem>({ type, ...rest }: ChatComponentProps<TItem>): import("react").JSX.Element | null;
7
11
  //# sourceMappingURL=renderer.native.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderer.native.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/renderer/renderer.native.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oCAAiC,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAA+B,CAAC;AAE9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAqB,CAAC;AAE9D,wBAAgB,qBAAqB,CACnC,KAAK,SAAS,WAAW,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,EAC9D,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,kBAAkB,CAAC,KAAK,CAAC,sCAgB7C"}
1
+ {"version":3,"file":"renderer.native.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/renderer/renderer.native.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oCAAiC,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAA+B,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAmC,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kDAA+C,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gDAA6C,CAAC;AAEvF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAqB,CAAC;AAE9D,wBAAgB,qBAAqB,CACnC,KAAK,SACD,WAAW,GACX,WAAW,GACX,SAAS,GACT,QAAQ,GACR,UAAU,GACV,eAAe,GACf,aAAa,GACb,mBAAmB,EACvB,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,kBAAkB,CAAC,KAAK,CAAC,sCA4B7C"}
@@ -2,14 +2,24 @@ export { Product } from './features/chat/components/product/product.native.js';
2
2
  export { Service } from './features/chat/components/service/service.native.js';
3
3
  export { Event } from './features/chat/components/event/event.native.js';
4
4
  export { Info } from './features/chat/components/info/info.native.js';
5
+ export { Flight } from './features/chat/components/flight/flight.native.js';
6
+ export { FlightBoard } from './features/chat/components/flight-board/flight-board.native.js';
7
+ export { Order } from './features/chat/components/order/order.native.js';
8
+ export { Reservation } from './features/chat/components/reservation/reservation.native.js';
5
9
  export { ChatComponentRenderer } from './features/chat/renderer/renderer.native.js';
6
10
  export { ChatMessageRenderer } from './features/chat/message/message.native.js';
7
11
  export { parseMessage } from './features/chat/message/message.logic.js';
8
- export { ComponentType, ItemAction, Theme } from './features/chat/model/chat.model.js';
12
+ export { ComponentType, ItemAction, Theme, FlightStatus } from './features/chat/model/chat.model.js';
13
+ export { OrderStatus } from './features/chat/components/order/order.model.js';
14
+ export { ReservationStatus } from './features/chat/components/reservation/reservation.model.js';
9
15
  export type { ProductItem } from './features/chat/components/product/product.model.js';
10
16
  export type { ServiceItem } from './features/chat/components/service/service.model.js';
11
17
  export type { EventItem } from './features/chat/components/event/event.model.js';
12
18
  export type { InfoItem } from './features/chat/components/info/info.model.js';
19
+ export type { FlightItem, Airport } from './features/chat/components/flight/flight.model.js';
20
+ export type { FlightBoardItem, FlightRow } from './features/chat/components/flight-board/flight-board.model.js';
21
+ export type { OrderListItem, OrderRow } from './features/chat/components/order/order.model.js';
22
+ export type { ReservationListItem, ReservationRow } from './features/chat/components/reservation/reservation.model.js';
13
23
  export type { ChatMessage, ChatMessageProps, MessageBlock, MessageBlockContent, MessageSegment, } from './features/chat/message/message.model.js';
14
24
  export type { ActionHandler, ChatComponentProps, ItemCount, Language, LocalizedText, } from './features/chat/model/chat.model.js';
15
25
  //# sourceMappingURL=native.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../../../src/native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sDAAmD,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,sDAAmD,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,kDAA+C,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,gDAA6C,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA0C,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAAwC,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,0CAAuC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,qCAAkC,CAAC;AACpF,YAAY,EAAE,WAAW,EAAE,MAAM,qDAAkD,CAAC;AACpF,YAAY,EAAE,WAAW,EAAE,MAAM,qDAAkD,CAAC;AACpF,YAAY,EAAE,SAAS,EAAE,MAAM,iDAA8C,CAAC;AAC9E,YAAY,EAAE,QAAQ,EAAE,MAAM,+CAA4C,CAAC;AAC3E,YAAY,EACV,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,cAAc,GACf,MAAM,0CAAuC,CAAC;AAC/C,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,aAAa,GACd,MAAM,qCAAkC,CAAC"}
1
+ {"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../../../src/native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sDAAmD,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,sDAAmD,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,kDAA+C,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,gDAA6C,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,oDAAiD,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,gEAA6D,CAAC;AAC1F,OAAO,EAAE,KAAK,EAAE,MAAM,kDAA+C,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA2D,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA0C,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAAwC,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,0CAAuC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAkC,CAAC;AAClG,OAAO,EAAE,WAAW,EAAE,MAAM,iDAA8C,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,6DAA0D,CAAC;AAC7F,YAAY,EAAE,WAAW,EAAE,MAAM,qDAAkD,CAAC;AACpF,YAAY,EAAE,WAAW,EAAE,MAAM,qDAAkD,CAAC;AACpF,YAAY,EAAE,SAAS,EAAE,MAAM,iDAA8C,CAAC;AAC9E,YAAY,EAAE,QAAQ,EAAE,MAAM,+CAA4C,CAAC;AAC3E,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mDAAgD,CAAC;AAC1F,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,+DAA4D,CAAC;AAC7G,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iDAA8C,CAAC;AAC5F,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,6DAA0D,CAAC;AACpH,YAAY,EACV,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,cAAc,GACf,MAAM,0CAAuC,CAAC;AAC/C,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,aAAa,GACd,MAAM,qCAAkC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { FlightStatus, Theme } from '../features/chat/model/chat.model.js';
2
+ export interface FlightStatusStyle {
3
+ dot: string;
4
+ badgeBg: string;
5
+ badgeText: string;
6
+ showDot: boolean;
7
+ label: string;
8
+ }
9
+ export declare function getFlightStatusStyle(status?: FlightStatus, theme?: Theme): FlightStatusStyle;
10
+ //# sourceMappingURL=flight.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flight.utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/flight.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,sCAAmC,CAAC;AAExE,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAoBD,wBAAgB,oBAAoB,CAClC,MAAM,GAAE,YAAkC,EAC1C,KAAK,GAAE,KAAkB,GACxB,iBAAiB,CAGnB"}
@@ -0,0 +1,7 @@
1
+ import { Theme } from '../features/chat/model/chat.model.js';
2
+ import { OrderStatus } from '../features/chat/components/order/order.model.js';
3
+ import type { StatusBadgeStyle } from './status-badge.utils.js';
4
+ export declare function getOrderStatusStyle(status?: OrderStatus, theme?: Theme): StatusBadgeStyle & {
5
+ label: string;
6
+ };
7
+ //# sourceMappingURL=order.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order.utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/order.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAmC,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,kDAA+C,CAAC;AAE5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAsB,CAAC;AAU7D,wBAAgB,mBAAmB,CACjC,MAAM,GAAE,WAAiC,EACzC,KAAK,GAAE,KAAkB,GACxB,gBAAgB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAWtC"}
@@ -0,0 +1,7 @@
1
+ import { Theme } from '../features/chat/model/chat.model.js';
2
+ import { ReservationStatus } from '../features/chat/components/reservation/reservation.model.js';
3
+ import type { StatusBadgeStyle } from './status-badge.utils.js';
4
+ export declare function getReservationStatusStyle(status?: ReservationStatus, theme?: Theme): StatusBadgeStyle & {
5
+ label: string;
6
+ };
7
+ //# sourceMappingURL=reservation.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reservation.utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/reservation.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAmC,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8DAA2D,CAAC;AAE9F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAsB,CAAC;AAQ7D,wBAAgB,yBAAyB,CACvC,MAAM,GAAE,iBAA6C,EACrD,KAAK,GAAE,KAAkB,GACxB,gBAAgB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAQtC"}
@@ -0,0 +1,15 @@
1
+ import { Theme } from '../features/chat/model/chat.model.js';
2
+ export declare enum StatusTone {
3
+ Pending = "pending",
4
+ Success = "success",
5
+ Danger = "danger",
6
+ Info = "info",
7
+ Neutral = "neutral"
8
+ }
9
+ export interface StatusBadgeStyle {
10
+ badgeBg: string;
11
+ badgeText: string;
12
+ dot: string;
13
+ }
14
+ export declare function getStatusBadgeStyle(tone: StatusTone, theme?: Theme): StatusBadgeStyle;
15
+ //# sourceMappingURL=status-badge.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status-badge.utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/status-badge.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAmC,CAAC;AAE1D,oBAAY,UAAU;IACpB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,OAAO,YAAY;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;CACb;AAkBD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,GAAE,KAAkB,GAAG,gBAAgB,CAGjG"}
@@ -12,6 +12,9 @@ export interface ThemeClasses {
12
12
  iconBg: string;
13
13
  iconText: string;
14
14
  iconColor: string;
15
+ mutedIconBg: string;
16
+ mutedIconColor: string;
17
+ dashLine: string;
15
18
  }
16
19
  export declare function getThemeClasses(theme?: Theme): ThemeClasses;
17
20
  //# sourceMappingURL=theme.utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/theme.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAmC,CAAC;AAE1D,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAgCD,wBAAgB,eAAe,CAAC,KAAK,GAAE,KAAkB,GAAG,YAAY,CAEvE"}
1
+ {"version":3,"file":"theme.utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/theme.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAmC,CAAC;AAE1D,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAsCD,wBAAgB,eAAe,CAAC,KAAK,GAAE,KAAkB,GAAG,YAAY,CAEvE"}
@@ -2,14 +2,24 @@ export { Product } from './features/chat/components/product/product';
2
2
  export { Service } from './features/chat/components/service/service';
3
3
  export { Event } from './features/chat/components/event/event';
4
4
  export { Info } from './features/chat/components/info/info';
5
+ export { Flight } from './features/chat/components/flight/flight';
6
+ export { FlightBoard } from './features/chat/components/flight-board/flight-board';
7
+ export { Order } from './features/chat/components/order/order';
8
+ export { Reservation } from './features/chat/components/reservation/reservation';
5
9
  export { ChatComponentRenderer } from './features/chat/renderer/renderer';
6
10
  export { ChatMessageRenderer } from './features/chat/message/message';
7
11
  export { parseMessage } from './features/chat/message/message.logic.js';
8
- export { ComponentType, ItemAction, Theme } from './features/chat/model/chat.model.js';
12
+ export { ComponentType, ItemAction, Theme, FlightStatus } from './features/chat/model/chat.model.js';
13
+ export { OrderStatus } from './features/chat/components/order/order.model.js';
14
+ export { ReservationStatus } from './features/chat/components/reservation/reservation.model.js';
9
15
  export type { ProductItem } from './features/chat/components/product/product.model.js';
10
16
  export type { ServiceItem } from './features/chat/components/service/service.model.js';
11
17
  export type { EventItem } from './features/chat/components/event/event.model.js';
12
18
  export type { InfoItem } from './features/chat/components/info/info.model.js';
19
+ export type { FlightItem, Airport } from './features/chat/components/flight/flight.model.js';
20
+ export type { FlightBoardItem, FlightRow } from './features/chat/components/flight-board/flight-board.model.js';
21
+ export type { OrderListItem, OrderRow } from './features/chat/components/order/order.model.js';
22
+ export type { ReservationListItem, ReservationRow } from './features/chat/components/reservation/reservation.model.js';
13
23
  export type { ChatMessage, ChatMessageProps, MessageBlock, MessageBlockContent, MessageSegment, } from './features/chat/message/message.model.js';
14
24
  export type { ActionHandler, ChatComponentProps, ItemCount, Language, LocalizedText, } from './features/chat/model/chat.model.js';
15
25
  //# sourceMappingURL=web.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,wCAAwC,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,0CAAuC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,qCAAkC,CAAC;AACpF,YAAY,EAAE,WAAW,EAAE,MAAM,qDAAkD,CAAC;AACpF,YAAY,EAAE,WAAW,EAAE,MAAM,qDAAkD,CAAC;AACpF,YAAY,EAAE,SAAS,EAAE,MAAM,iDAA8C,CAAC;AAC9E,YAAY,EAAE,QAAQ,EAAE,MAAM,+CAA4C,CAAC;AAC3E,YAAY,EACV,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,cAAc,GACf,MAAM,0CAAuC,CAAC;AAC/C,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,aAAa,GACd,MAAM,qCAAkC,CAAC"}
1
+ {"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,wCAAwC,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AACnF,OAAO,EAAE,KAAK,EAAE,MAAM,wCAAwC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,0CAAuC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAkC,CAAC;AAClG,OAAO,EAAE,WAAW,EAAE,MAAM,iDAA8C,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,6DAA0D,CAAC;AAC7F,YAAY,EAAE,WAAW,EAAE,MAAM,qDAAkD,CAAC;AACpF,YAAY,EAAE,WAAW,EAAE,MAAM,qDAAkD,CAAC;AACpF,YAAY,EAAE,SAAS,EAAE,MAAM,iDAA8C,CAAC;AAC9E,YAAY,EAAE,QAAQ,EAAE,MAAM,+CAA4C,CAAC;AAC3E,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mDAAgD,CAAC;AAC1F,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,+DAA4D,CAAC;AAC7G,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iDAA8C,CAAC;AAC5F,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,6DAA0D,CAAC;AACpH,YAAY,EACV,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,cAAc,GACf,MAAM,0CAAuC,CAAC;AAC/C,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,aAAa,GACd,MAAM,qCAAkC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inorain_development/hotel-smarters-chat-ui",
3
- "version": "1.2.2",
3
+ "version": "1.3.1",
4
4
  "description": "Cross-platform (React DOM + React Native) chat UI components that render dynamically from an AI-provided { type, data } payload.",
5
5
  "private": false,
6
6
  "license": "UNLICENSED",
@@ -0,0 +1,13 @@
1
+ export interface CalendarIconProps {
2
+ size?: number;
3
+ color?: string;
4
+ }
5
+
6
+ export function CalendarIcon({ size = 16, color = 'currentColor' }: CalendarIconProps) {
7
+ return (
8
+ <svg width={size} height={size} viewBox="0 0 24 24" fill="none">
9
+ <rect x="4" y="5" width="16" height="16" rx="2" stroke={color} strokeWidth={1.8} />
10
+ <path d="M4 9h16M8 3v4M16 3v4" stroke={color} strokeWidth={1.8} strokeLinecap="round" />
11
+ </svg>
12
+ );
13
+ }
@@ -0,0 +1,13 @@
1
+ export interface CalendarIconProps {
2
+ size?: number;
3
+ color?: string;
4
+ }
5
+
6
+ export function CalendarIcon({ size = 16, color = 'currentColor' }: CalendarIconProps) {
7
+ return (
8
+ <svg width={size} height={size} viewBox="0 0 24 24" fill="none">
9
+ <rect x="4" y="5" width="16" height="16" rx="2" stroke={color} strokeWidth={1.8} />
10
+ <path d="M4 9h16M8 3v4M16 3v4" stroke={color} strokeWidth={1.8} strokeLinecap="round" />
11
+ </svg>
12
+ );
13
+ }
@@ -0,0 +1,20 @@
1
+ export interface CartIconProps {
2
+ size?: number;
3
+ color?: string;
4
+ }
5
+
6
+ export function CartIcon({ size = 16, color = 'currentColor' }: CartIconProps) {
7
+ return (
8
+ <svg width={size} height={size} viewBox="0 0 24 24" fill="none">
9
+ <path
10
+ d="M3 4h2l2.4 11.2a1.5 1.5 0 0 0 1.47 1.18h7.86a1.5 1.5 0 0 0 1.47-1.18L21 8H6"
11
+ stroke={color}
12
+ strokeWidth={1.8}
13
+ strokeLinecap="round"
14
+ strokeLinejoin="round"
15
+ />
16
+ <circle cx="9.5" cy="20" r="1.4" fill={color} />
17
+ <circle cx="17" cy="20" r="1.4" fill={color} />
18
+ </svg>
19
+ );
20
+ }
@@ -0,0 +1,18 @@
1
+ export interface ChevronIconProps {
2
+ size?: number;
3
+ color?: string;
4
+ }
5
+
6
+ export function ChevronIcon({ size = 16, color = 'currentColor' }: ChevronIconProps) {
7
+ return (
8
+ <svg width={size} height={size} viewBox="0 0 24 24" fill="none">
9
+ <path
10
+ d="M6 9l6 6 6-6"
11
+ stroke={color}
12
+ strokeWidth={1.8}
13
+ strokeLinecap="round"
14
+ strokeLinejoin="round"
15
+ />
16
+ </svg>
17
+ );
18
+ }
@@ -0,0 +1,18 @@
1
+ export interface ChevronIconProps {
2
+ size?: number;
3
+ color?: string;
4
+ }
5
+
6
+ export function ChevronIcon({ size = 16, color = 'currentColor' }: ChevronIconProps) {
7
+ return (
8
+ <svg width={size} height={size} viewBox="0 0 24 24" fill="none">
9
+ <path
10
+ d="M6 9l6 6 6-6"
11
+ stroke={color}
12
+ strokeWidth={1.8}
13
+ strokeLinecap="round"
14
+ strokeLinejoin="round"
15
+ />
16
+ </svg>
17
+ );
18
+ }
@@ -0,0 +1,15 @@
1
+ export interface PlaneIconProps {
2
+ size?: number;
3
+ color?: string;
4
+ }
5
+
6
+ export function PlaneIcon({ size = 20, color = 'currentColor' }: PlaneIconProps) {
7
+ return (
8
+ <svg width={size} height={size} viewBox="0 0 24 24" fill="none">
9
+ <path
10
+ d="M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"
11
+ fill={color}
12
+ />
13
+ </svg>
14
+ );
15
+ }
@@ -0,0 +1,15 @@
1
+ export interface PlaneIconProps {
2
+ size?: number;
3
+ color?: string;
4
+ }
5
+
6
+ export function PlaneIcon({ size = 20, color = 'currentColor' }: PlaneIconProps) {
7
+ return (
8
+ <svg width={size} height={size} viewBox="0 0 24 24" fill="none">
9
+ <path
10
+ d="M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"
11
+ fill={color}
12
+ />
13
+ </svg>
14
+ );
15
+ }
@@ -0,0 +1,100 @@
1
+ import { useState } from 'react';
2
+ import { Pressable, Text, View } from 'react-native';
3
+ import { getThemeClasses } from '../../../../utils/theme.utils';
4
+ import { getFlightStatusStyle } from '../../../../utils/flight.utils';
5
+ import { resolveText } from '../../../../utils/i18n.utils';
6
+ import { Collapsible } from '../common/collapsible.native';
7
+ import { PlaneIcon } from '../common/plane-icon.native';
8
+ import { ChevronIcon } from '../common/chevron-icon.native';
9
+ import { FlightStatus, Theme } from '../../model/chat.model';
10
+ import type { FlightItem } from './flight.model';
11
+
12
+ export interface FlightCardProps {
13
+ item: FlightItem;
14
+ theme: Theme;
15
+ language?: string;
16
+ accent: boolean;
17
+ defaultExpanded: boolean;
18
+ onSelect?: (item: FlightItem) => void;
19
+ }
20
+
21
+ export function FlightCard({ item, theme, language, accent, defaultExpanded, onSelect }: FlightCardProps) {
22
+ const c = getThemeClasses(theme);
23
+ const [expanded, setExpanded] = useState(defaultExpanded);
24
+
25
+ const s = getFlightStatusStyle(item.status ?? FlightStatus.OnTime, theme);
26
+ const statusLabel = item.statusLabel ? resolveText(item.statusLabel, language) : s.label;
27
+ const airline = resolveText(item.airline, language);
28
+ const fromCity = resolveText(item.from.city, language);
29
+ const toCity = resolveText(item.to.city, language);
30
+ const subline = item.date
31
+ ? `${resolveText(item.date, language)}${item.terminal ? ` · ${resolveText(item.terminal, language)}` : ''}`
32
+ : '';
33
+ const compact = `${item.from.code} → ${item.to.code} · ${item.from.time}`;
34
+
35
+ const iconBg = accent ? c.iconBg : c.mutedIconBg;
36
+ const iconColor = accent ? c.iconColor : c.mutedIconColor;
37
+
38
+ return (
39
+ <View className={`rounded-2xl border p-3 ${c.surface} ${c.border}`}>
40
+ <Pressable
41
+ className="flex-row items-center gap-3"
42
+ onPress={() => {
43
+ setExpanded((v) => !v);
44
+ onSelect?.(item);
45
+ }}
46
+ >
47
+ <View className={`h-11 w-11 items-center justify-center rounded-xl ${iconBg}`}>
48
+ <PlaneIcon size={20} color={iconColor} />
49
+ </View>
50
+
51
+ <View className="flex-1 gap-0.5">
52
+ <Text className={`text-base font-bold down-sm:text-sm ${c.title}`} numberOfLines={2}>
53
+ {airline} · {item.flightNumber}
54
+ </Text>
55
+ <Text className={`text-xs ${c.subtitle}`} numberOfLines={1}>
56
+ {expanded ? subline || compact : compact}
57
+ </Text>
58
+ </View>
59
+
60
+ <View className={`flex-row items-center gap-1.5 rounded-full px-2.5 py-1 ${s.badgeBg}`}>
61
+ {s.showDot ? <View className={`h-1.5 w-1.5 rounded-full ${s.dot}`} /> : null}
62
+ <Text className={`text-xs font-semibold ${s.badgeText}`}>{statusLabel}</Text>
63
+ </View>
64
+
65
+ <View className={expanded ? 'rotate-180' : undefined}>
66
+ <ChevronIcon size={18} color={c.mutedIconColor} />
67
+ </View>
68
+ </Pressable>
69
+
70
+ <Collapsible expanded={expanded}>
71
+ <View className="mt-4 flex-row items-center">
72
+ <View className="items-start">
73
+ <Text className={`text-3xl font-bold down-sm:text-2xl ${c.title}`}>{item.from.code}</Text>
74
+ <Text className={`text-base font-semibold ${c.title}`}>{item.from.time}</Text>
75
+ <Text className={`text-xs ${c.subtitle}`}>{fromCity}</Text>
76
+ </View>
77
+
78
+ <View className="flex-1 items-center px-3">
79
+ {item.duration ? <Text className={`mb-1 text-xs ${c.subtitle}`}>{item.duration}</Text> : null}
80
+ <View className="w-full flex-row items-center">
81
+ <View className={`h-2 w-2 rounded-full ${s.dot}`} />
82
+ <View className={`flex-1 border-t border-dashed ${c.dashLine}`} />
83
+ <View className="rotate-90">
84
+ <PlaneIcon size={16} color={c.iconColor} />
85
+ </View>
86
+ <View className={`flex-1 border-t border-dashed ${c.dashLine}`} />
87
+ <View className={`h-2 w-2 rounded-full ${s.dot}`} />
88
+ </View>
89
+ </View>
90
+
91
+ <View className="items-end">
92
+ <Text className={`text-3xl font-bold down-sm:text-2xl ${c.title}`}>{item.to.code}</Text>
93
+ <Text className={`text-base font-semibold ${c.title}`}>{item.to.time}</Text>
94
+ <Text className={`text-xs ${c.subtitle}`}>{toCity}</Text>
95
+ </View>
96
+ </View>
97
+ </Collapsible>
98
+ </View>
99
+ );
100
+ }
@@ -0,0 +1,100 @@
1
+ import { useState } from 'react';
2
+ import { getThemeClasses } from '../../../../utils/theme.utils';
3
+ import { getFlightStatusStyle } from '../../../../utils/flight.utils';
4
+ import { resolveText } from '../../../../utils/i18n.utils';
5
+ import { Collapsible } from '../common/collapsible';
6
+ import { PlaneIcon } from '../common/plane-icon';
7
+ import { ChevronIcon } from '../common/chevron-icon';
8
+ import { FlightStatus, Theme } from '../../model/chat.model';
9
+ import type { FlightItem } from './flight.model';
10
+
11
+ export interface FlightCardProps {
12
+ item: FlightItem;
13
+ theme: Theme;
14
+ language?: string;
15
+ accent: boolean;
16
+ defaultExpanded: boolean;
17
+ onSelect?: (item: FlightItem) => void;
18
+ }
19
+
20
+ export function FlightCard({ item, theme, language, accent, defaultExpanded, onSelect }: FlightCardProps) {
21
+ const c = getThemeClasses(theme);
22
+ const [expanded, setExpanded] = useState(defaultExpanded);
23
+
24
+ const s = getFlightStatusStyle(item.status ?? FlightStatus.OnTime, theme);
25
+ const statusLabel = item.statusLabel ? resolveText(item.statusLabel, language) : s.label;
26
+ const airline = resolveText(item.airline, language);
27
+ const fromCity = resolveText(item.from.city, language);
28
+ const toCity = resolveText(item.to.city, language);
29
+ const subline = item.date
30
+ ? `${resolveText(item.date, language)}${item.terminal ? ` · ${resolveText(item.terminal, language)}` : ''}`
31
+ : '';
32
+ const compact = `${item.from.code} → ${item.to.code} · ${item.from.time}`;
33
+
34
+ const iconBg = accent ? c.iconBg : c.mutedIconBg;
35
+ const iconColor = accent ? c.iconColor : c.mutedIconColor;
36
+
37
+ return (
38
+ <div className={`rounded-2xl border p-3 ${c.surface} ${c.border}`}>
39
+ <button
40
+ type="button"
41
+ className="flex w-full items-center gap-3 text-left"
42
+ onClick={() => {
43
+ setExpanded((v) => !v);
44
+ onSelect?.(item);
45
+ }}
46
+ >
47
+ <div className={`flex h-11 w-11 shrink-0 items-center justify-center rounded-xl ${iconBg}`}>
48
+ <PlaneIcon size={20} color={iconColor} />
49
+ </div>
50
+
51
+ <div className="flex min-w-0 flex-1 flex-col gap-0.5">
52
+ <span className={`text-base font-bold down-sm:text-sm ${c.title}`}>
53
+ {airline} · {item.flightNumber}
54
+ </span>
55
+ <span className={`truncate text-xs ${c.subtitle}`}>
56
+ {expanded ? subline || compact : compact}
57
+ </span>
58
+ </div>
59
+
60
+ <div className={`flex shrink-0 items-center gap-1.5 rounded-full px-2.5 py-1 ${s.badgeBg}`}>
61
+ {s.showDot ? <span className={`h-1.5 w-1.5 rounded-full ${s.dot}`} /> : null}
62
+ <span className={`text-xs font-semibold ${s.badgeText}`}>{statusLabel}</span>
63
+ </div>
64
+
65
+ <span className={`shrink-0 transition-transform ${expanded ? 'rotate-180' : ''}`}>
66
+ <ChevronIcon size={18} color={c.mutedIconColor} />
67
+ </span>
68
+ </button>
69
+
70
+ <Collapsible expanded={expanded}>
71
+ <div className="mt-4 flex items-center">
72
+ <div className="flex flex-col items-start">
73
+ <span className={`text-3xl font-bold down-sm:text-2xl ${c.title}`}>{item.from.code}</span>
74
+ <span className={`text-base font-semibold ${c.title}`}>{item.from.time}</span>
75
+ <span className={`text-xs ${c.subtitle}`}>{fromCity}</span>
76
+ </div>
77
+
78
+ <div className="flex flex-1 flex-col items-center px-3">
79
+ {item.duration ? <span className={`mb-1 text-xs ${c.subtitle}`}>{item.duration}</span> : null}
80
+ <div className="flex w-full items-center">
81
+ <span className={`h-2 w-2 shrink-0 rounded-full ${s.dot}`} />
82
+ <span className={`flex-1 border-t border-dashed ${c.dashLine}`} />
83
+ <span className="rotate-90">
84
+ <PlaneIcon size={16} color={c.iconColor} />
85
+ </span>
86
+ <span className={`flex-1 border-t border-dashed ${c.dashLine}`} />
87
+ <span className={`h-2 w-2 shrink-0 rounded-full ${s.dot}`} />
88
+ </div>
89
+ </div>
90
+
91
+ <div className="flex flex-col items-end">
92
+ <span className={`text-3xl font-bold down-sm:text-2xl ${c.title}`}>{item.to.code}</span>
93
+ <span className={`text-base font-semibold ${c.title}`}>{item.to.time}</span>
94
+ <span className={`text-xs ${c.subtitle}`}>{toCity}</span>
95
+ </div>
96
+ </div>
97
+ </Collapsible>
98
+ </div>
99
+ );
100
+ }