@inorain_development/hotel-smarters-chat-ui 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/README.md +110 -0
  2. package/lib/commonjs/features/chat/components/common/cart-icon.native.js +36 -0
  3. package/lib/commonjs/features/chat/components/common/cart-icon.native.js.map +1 -0
  4. package/lib/commonjs/features/chat/components/common/collapsible.js +20 -0
  5. package/lib/commonjs/features/chat/components/common/collapsible.js.map +1 -0
  6. package/lib/commonjs/features/chat/components/common/collapsible.native.js +38 -0
  7. package/lib/commonjs/features/chat/components/common/collapsible.native.js.map +1 -0
  8. package/lib/commonjs/features/chat/components/product/index.js +13 -0
  9. package/lib/commonjs/features/chat/components/product/index.js.map +1 -0
  10. package/lib/commonjs/features/chat/components/product/product.js +83 -0
  11. package/lib/commonjs/features/chat/components/product/product.js.map +1 -0
  12. package/lib/commonjs/features/chat/components/product/product.model.js +6 -0
  13. package/lib/commonjs/features/chat/components/product/product.model.js.map +1 -0
  14. package/lib/commonjs/features/chat/components/product/product.native.js +125 -0
  15. package/lib/commonjs/features/chat/components/product/product.native.js.map +1 -0
  16. package/lib/commonjs/features/chat/components/service/index.js +13 -0
  17. package/lib/commonjs/features/chat/components/service/index.js.map +1 -0
  18. package/lib/commonjs/features/chat/components/service/service.js +83 -0
  19. package/lib/commonjs/features/chat/components/service/service.js.map +1 -0
  20. package/lib/commonjs/features/chat/components/service/service.model.js +6 -0
  21. package/lib/commonjs/features/chat/components/service/service.model.js.map +1 -0
  22. package/lib/commonjs/features/chat/components/service/service.native.js +106 -0
  23. package/lib/commonjs/features/chat/components/service/service.native.js.map +1 -0
  24. package/lib/commonjs/features/chat/index.d.js +6 -0
  25. package/lib/commonjs/features/chat/index.d.js.map +1 -0
  26. package/lib/commonjs/features/chat/index.d.ts.map +1 -0
  27. package/lib/commonjs/features/chat/index.js +46 -0
  28. package/lib/commonjs/features/chat/index.js.map +1 -0
  29. package/lib/commonjs/features/chat/model/chat.model.js +23 -0
  30. package/lib/commonjs/features/chat/model/chat.model.js.map +1 -0
  31. package/lib/commonjs/features/chat/renderer/index.js +13 -0
  32. package/lib/commonjs/features/chat/renderer/index.js.map +1 -0
  33. package/lib/commonjs/features/chat/renderer/renderer.js +32 -0
  34. package/lib/commonjs/features/chat/renderer/renderer.js.map +1 -0
  35. package/lib/commonjs/features/chat/renderer/renderer.native.js +32 -0
  36. package/lib/commonjs/features/chat/renderer/renderer.native.js.map +1 -0
  37. package/lib/commonjs/index.d.js +17 -0
  38. package/lib/commonjs/index.d.js.map +1 -0
  39. package/lib/commonjs/index.d.ts.map +1 -0
  40. package/lib/commonjs/index.js +17 -0
  41. package/lib/commonjs/index.js.map +1 -0
  42. package/lib/commonjs/native.d.js +6 -0
  43. package/lib/commonjs/native.d.js.map +1 -0
  44. package/lib/commonjs/native.d.ts.map +1 -0
  45. package/lib/commonjs/native.js +46 -0
  46. package/lib/commonjs/native.js.map +1 -0
  47. package/lib/commonjs/package.json +1 -0
  48. package/lib/commonjs/styles/global.css +3 -0
  49. package/lib/commonjs/utils/i18n.utils.js +12 -0
  50. package/lib/commonjs/utils/i18n.utils.js.map +1 -0
  51. package/lib/commonjs/utils/theme.utils.js +37 -0
  52. package/lib/commonjs/utils/theme.utils.js.map +1 -0
  53. package/lib/commonjs/utils/use-expandable-list.js +23 -0
  54. package/lib/commonjs/utils/use-expandable-list.js.map +1 -0
  55. package/lib/commonjs/web.d.js +6 -0
  56. package/lib/commonjs/web.d.js.map +1 -0
  57. package/lib/commonjs/web.d.ts.map +1 -0
  58. package/lib/commonjs/web.js +46 -0
  59. package/lib/commonjs/web.js.map +1 -0
  60. package/lib/module/features/chat/components/common/cart-icon.native.js +32 -0
  61. package/lib/module/features/chat/components/common/cart-icon.native.js.map +1 -0
  62. package/lib/module/features/chat/components/common/collapsible.js +16 -0
  63. package/lib/module/features/chat/components/common/collapsible.js.map +1 -0
  64. package/lib/module/features/chat/components/common/collapsible.native.js +34 -0
  65. package/lib/module/features/chat/components/common/collapsible.native.js.map +1 -0
  66. package/lib/module/features/chat/components/product/index.js +4 -0
  67. package/lib/module/features/chat/components/product/index.js.map +1 -0
  68. package/lib/module/features/chat/components/product/product.js +79 -0
  69. package/lib/module/features/chat/components/product/product.js.map +1 -0
  70. package/lib/module/features/chat/components/product/product.model.js +4 -0
  71. package/lib/module/features/chat/components/product/product.model.js.map +1 -0
  72. package/lib/module/features/chat/components/product/product.native.js +121 -0
  73. package/lib/module/features/chat/components/product/product.native.js.map +1 -0
  74. package/lib/module/features/chat/components/service/index.js +4 -0
  75. package/lib/module/features/chat/components/service/index.js.map +1 -0
  76. package/lib/module/features/chat/components/service/service.js +79 -0
  77. package/lib/module/features/chat/components/service/service.js.map +1 -0
  78. package/lib/module/features/chat/components/service/service.model.js +4 -0
  79. package/lib/module/features/chat/components/service/service.model.js.map +1 -0
  80. package/lib/module/features/chat/components/service/service.native.js +102 -0
  81. package/lib/module/features/chat/components/service/service.native.js.map +1 -0
  82. package/lib/module/features/chat/index.d.js +10 -0
  83. package/lib/module/features/chat/index.d.js.map +1 -0
  84. package/lib/module/features/chat/index.d.ts.map +1 -0
  85. package/lib/module/features/chat/index.js +7 -0
  86. package/lib/module/features/chat/index.js.map +1 -0
  87. package/lib/module/features/chat/model/chat.model.js +19 -0
  88. package/lib/module/features/chat/model/chat.model.js.map +1 -0
  89. package/lib/module/features/chat/renderer/index.js +4 -0
  90. package/lib/module/features/chat/renderer/index.js.map +1 -0
  91. package/lib/module/features/chat/renderer/renderer.js +28 -0
  92. package/lib/module/features/chat/renderer/renderer.js.map +1 -0
  93. package/lib/module/features/chat/renderer/renderer.native.js +28 -0
  94. package/lib/module/features/chat/renderer/renderer.native.js.map +1 -0
  95. package/lib/module/index.d.js +13 -0
  96. package/lib/module/index.d.js.map +1 -0
  97. package/lib/module/index.d.ts.map +1 -0
  98. package/lib/module/index.js +13 -0
  99. package/lib/module/index.js.map +1 -0
  100. package/lib/module/native.d.js +11 -0
  101. package/lib/module/native.d.js.map +1 -0
  102. package/lib/module/native.d.ts.map +1 -0
  103. package/lib/module/native.js +7 -0
  104. package/lib/module/native.js.map +1 -0
  105. package/lib/module/package.json +1 -0
  106. package/lib/module/styles/global.css +3 -0
  107. package/lib/module/utils/i18n.utils.js +8 -0
  108. package/lib/module/utils/i18n.utils.js.map +1 -0
  109. package/lib/module/utils/theme.utils.js +33 -0
  110. package/lib/module/utils/theme.utils.js.map +1 -0
  111. package/lib/module/utils/use-expandable-list.js +19 -0
  112. package/lib/module/utils/use-expandable-list.js.map +1 -0
  113. package/lib/module/web.d.js +10 -0
  114. package/lib/module/web.d.js.map +1 -0
  115. package/lib/module/web.d.ts.map +1 -0
  116. package/lib/module/web.js +7 -0
  117. package/lib/module/web.js.map +1 -0
  118. package/lib/typescript/commonjs/features/chat/components/common/cart-icon.native.d.ts +6 -0
  119. package/lib/typescript/commonjs/features/chat/components/common/cart-icon.native.d.ts.map +1 -0
  120. package/lib/typescript/commonjs/features/chat/components/common/collapsible.d.ts +6 -0
  121. package/lib/typescript/commonjs/features/chat/components/common/collapsible.d.ts.map +1 -0
  122. package/lib/typescript/commonjs/features/chat/components/common/collapsible.native.d.ts +6 -0
  123. package/lib/typescript/commonjs/features/chat/components/common/collapsible.native.d.ts.map +1 -0
  124. package/lib/typescript/commonjs/features/chat/components/product/index.d.ts +3 -0
  125. package/lib/typescript/commonjs/features/chat/components/product/index.d.ts.map +1 -0
  126. package/lib/typescript/commonjs/features/chat/components/product/product.d.ts +4 -0
  127. package/lib/typescript/commonjs/features/chat/components/product/product.d.ts.map +1 -0
  128. package/lib/typescript/commonjs/features/chat/components/product/product.model.d.ts +10 -0
  129. package/lib/typescript/commonjs/features/chat/components/product/product.model.d.ts.map +1 -0
  130. package/lib/typescript/commonjs/features/chat/components/product/product.native.d.ts +4 -0
  131. package/lib/typescript/commonjs/features/chat/components/product/product.native.d.ts.map +1 -0
  132. package/lib/typescript/commonjs/features/chat/components/service/index.d.ts +3 -0
  133. package/lib/typescript/commonjs/features/chat/components/service/index.d.ts.map +1 -0
  134. package/lib/typescript/commonjs/features/chat/components/service/service.d.ts +4 -0
  135. package/lib/typescript/commonjs/features/chat/components/service/service.d.ts.map +1 -0
  136. package/lib/typescript/commonjs/features/chat/components/service/service.model.d.ts +10 -0
  137. package/lib/typescript/commonjs/features/chat/components/service/service.model.d.ts.map +1 -0
  138. package/lib/typescript/commonjs/features/chat/components/service/service.native.d.ts +4 -0
  139. package/lib/typescript/commonjs/features/chat/components/service/service.native.d.ts.map +1 -0
  140. package/lib/typescript/commonjs/features/chat/index.d.ts +8 -0
  141. package/lib/typescript/commonjs/features/chat/index.d.ts.map +1 -0
  142. package/lib/typescript/commonjs/features/chat/model/chat.model.d.ts +31 -0
  143. package/lib/typescript/commonjs/features/chat/model/chat.model.d.ts.map +1 -0
  144. package/lib/typescript/commonjs/features/chat/renderer/index.d.ts +2 -0
  145. package/lib/typescript/commonjs/features/chat/renderer/index.d.ts.map +1 -0
  146. package/lib/typescript/commonjs/features/chat/renderer/renderer.d.ts +5 -0
  147. package/lib/typescript/commonjs/features/chat/renderer/renderer.d.ts.map +1 -0
  148. package/lib/typescript/commonjs/features/chat/renderer/renderer.native.d.ts +5 -0
  149. package/lib/typescript/commonjs/features/chat/renderer/renderer.native.d.ts.map +1 -0
  150. package/lib/typescript/commonjs/index.d.ts +11 -0
  151. package/lib/typescript/commonjs/index.d.ts.map +1 -0
  152. package/lib/typescript/commonjs/native.d.ts +8 -0
  153. package/lib/typescript/commonjs/native.d.ts.map +1 -0
  154. package/lib/typescript/commonjs/package.json +1 -0
  155. package/lib/typescript/commonjs/utils/i18n.utils.d.ts +3 -0
  156. package/lib/typescript/commonjs/utils/i18n.utils.d.ts.map +1 -0
  157. package/lib/typescript/commonjs/utils/theme.utils.d.ts +16 -0
  158. package/lib/typescript/commonjs/utils/theme.utils.d.ts.map +1 -0
  159. package/lib/typescript/commonjs/utils/use-expandable-list.d.ts +8 -0
  160. package/lib/typescript/commonjs/utils/use-expandable-list.d.ts.map +1 -0
  161. package/lib/typescript/commonjs/web.d.ts +8 -0
  162. package/lib/typescript/commonjs/web.d.ts.map +1 -0
  163. package/lib/typescript/module/features/chat/components/common/cart-icon.native.d.ts +6 -0
  164. package/lib/typescript/module/features/chat/components/common/cart-icon.native.d.ts.map +1 -0
  165. package/lib/typescript/module/features/chat/components/common/collapsible.d.ts +6 -0
  166. package/lib/typescript/module/features/chat/components/common/collapsible.d.ts.map +1 -0
  167. package/lib/typescript/module/features/chat/components/common/collapsible.native.d.ts +6 -0
  168. package/lib/typescript/module/features/chat/components/common/collapsible.native.d.ts.map +1 -0
  169. package/lib/typescript/module/features/chat/components/product/index.d.ts +3 -0
  170. package/lib/typescript/module/features/chat/components/product/index.d.ts.map +1 -0
  171. package/lib/typescript/module/features/chat/components/product/product.d.ts +4 -0
  172. package/lib/typescript/module/features/chat/components/product/product.d.ts.map +1 -0
  173. package/lib/typescript/module/features/chat/components/product/product.model.d.ts +10 -0
  174. package/lib/typescript/module/features/chat/components/product/product.model.d.ts.map +1 -0
  175. package/lib/typescript/module/features/chat/components/product/product.native.d.ts +4 -0
  176. package/lib/typescript/module/features/chat/components/product/product.native.d.ts.map +1 -0
  177. package/lib/typescript/module/features/chat/components/service/index.d.ts +3 -0
  178. package/lib/typescript/module/features/chat/components/service/index.d.ts.map +1 -0
  179. package/lib/typescript/module/features/chat/components/service/service.d.ts +4 -0
  180. package/lib/typescript/module/features/chat/components/service/service.d.ts.map +1 -0
  181. package/lib/typescript/module/features/chat/components/service/service.model.d.ts +10 -0
  182. package/lib/typescript/module/features/chat/components/service/service.model.d.ts.map +1 -0
  183. package/lib/typescript/module/features/chat/components/service/service.native.d.ts +4 -0
  184. package/lib/typescript/module/features/chat/components/service/service.native.d.ts.map +1 -0
  185. package/lib/typescript/module/features/chat/index.d.ts +8 -0
  186. package/lib/typescript/module/features/chat/index.d.ts.map +1 -0
  187. package/lib/typescript/module/features/chat/model/chat.model.d.ts +31 -0
  188. package/lib/typescript/module/features/chat/model/chat.model.d.ts.map +1 -0
  189. package/lib/typescript/module/features/chat/renderer/index.d.ts +2 -0
  190. package/lib/typescript/module/features/chat/renderer/index.d.ts.map +1 -0
  191. package/lib/typescript/module/features/chat/renderer/renderer.d.ts +5 -0
  192. package/lib/typescript/module/features/chat/renderer/renderer.d.ts.map +1 -0
  193. package/lib/typescript/module/features/chat/renderer/renderer.native.d.ts +5 -0
  194. package/lib/typescript/module/features/chat/renderer/renderer.native.d.ts.map +1 -0
  195. package/lib/typescript/module/index.d.ts +11 -0
  196. package/lib/typescript/module/index.d.ts.map +1 -0
  197. package/lib/typescript/module/native.d.ts +8 -0
  198. package/lib/typescript/module/native.d.ts.map +1 -0
  199. package/lib/typescript/module/package.json +1 -0
  200. package/lib/typescript/module/utils/i18n.utils.d.ts +3 -0
  201. package/lib/typescript/module/utils/i18n.utils.d.ts.map +1 -0
  202. package/lib/typescript/module/utils/theme.utils.d.ts +16 -0
  203. package/lib/typescript/module/utils/theme.utils.d.ts.map +1 -0
  204. package/lib/typescript/module/utils/use-expandable-list.d.ts +8 -0
  205. package/lib/typescript/module/utils/use-expandable-list.d.ts.map +1 -0
  206. package/lib/typescript/module/web.d.ts +8 -0
  207. package/lib/typescript/module/web.d.ts.map +1 -0
  208. package/nativewind-env.d.ts +1 -0
  209. package/package.json +142 -0
  210. package/src/features/chat/components/common/cart-icon.native.tsx +20 -0
  211. package/src/features/chat/components/common/collapsible.native.tsx +28 -0
  212. package/src/features/chat/components/common/collapsible.tsx +13 -0
  213. package/src/features/chat/components/product/index.ts +2 -0
  214. package/src/features/chat/components/product/product.model.ts +10 -0
  215. package/src/features/chat/components/product/product.native.tsx +117 -0
  216. package/src/features/chat/components/product/product.tsx +80 -0
  217. package/src/features/chat/components/service/index.ts +2 -0
  218. package/src/features/chat/components/service/service.model.ts +10 -0
  219. package/src/features/chat/components/service/service.native.tsx +96 -0
  220. package/src/features/chat/components/service/service.tsx +80 -0
  221. package/src/features/chat/index.d.ts +8 -0
  222. package/src/features/chat/index.d.ts.map +1 -0
  223. package/src/features/chat/index.ts +13 -0
  224. package/src/features/chat/model/chat.model.ts +36 -0
  225. package/src/features/chat/renderer/index.ts +1 -0
  226. package/src/features/chat/renderer/renderer.native.tsx +22 -0
  227. package/src/features/chat/renderer/renderer.tsx +22 -0
  228. package/src/index.d.ts +11 -0
  229. package/src/index.d.ts.map +1 -0
  230. package/src/index.ts +10 -0
  231. package/src/native.d.ts +9 -0
  232. package/src/native.d.ts.map +1 -0
  233. package/src/native.ts +13 -0
  234. package/src/styles/global.css +3 -0
  235. package/src/utils/i18n.utils.ts +7 -0
  236. package/src/utils/theme.utils.ts +47 -0
  237. package/src/utils/use-expandable-list.ts +12 -0
  238. package/src/web.d.ts +8 -0
  239. package/src/web.d.ts.map +1 -0
  240. package/src/web.ts +13 -0
  241. package/tailwind.config.js +43 -0
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Root entry (aggregator). Defaults to the web/DOM build.
5
+ *
6
+ * Prefer importing the explicit platform entry in apps:
7
+ * - `hotel-smarters-chat-ui/native` -> React Native (mobile + web client via react-native-web)
8
+ * - `hotel-smarters-chat-ui/web` -> React DOM (admin)
9
+ *
10
+ * Public exports are added here once domain components exist.
11
+ */
12
+ export * from "./web.js";
13
+ //# sourceMappingURL=index.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA;;;;;;;;;AASA,cAAc,UAAO","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,cAAc,OAAO,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Root entry (aggregator). Defaults to the web/DOM build.
5
+ *
6
+ * Prefer importing the explicit platform entry in apps:
7
+ * - `@inorain_development/hotel-smarters-chat-ui/native` -> React Native (mobile + web client via react-native-web)
8
+ * - `@inorain_development/hotel-smarters-chat-ui/web` -> React DOM (admin)
9
+ *
10
+ * Public exports are added here once domain components exist.
11
+ */
12
+ export * from "./web.js";
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,UAAO","ignoreList":[]}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Native entry (mobile + web client via react-native-web).
5
+ * Re-exports the `*.native.tsx` (React Native) component implementations.
6
+ *
7
+ * Placeholder until domain components are added, e.g.:
8
+ * export { Event } from './features/chat/components/Event/Event.native';
9
+ */
10
+ export {};
11
+ //# sourceMappingURL=native.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../src","sources":["native.ts"],"mappings":";;AAAA;;;;;;;AAOA","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native.d.ts","sourceRoot":"","sources":["native.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ export { Product } from "./features/chat/components/product/product.native.js";
4
+ export { Service } from "./features/chat/components/service/service.native.js";
5
+ export { ChatComponentRenderer } from "./features/chat/renderer/renderer.native.js";
6
+ export { ComponentType, ItemAction, Theme } from "./features/chat/model/chat.model.js";
7
+ //# sourceMappingURL=native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Product","Service","ChatComponentRenderer","ComponentType","ItemAction","Theme"],"sourceRoot":"../../src","sources":["native.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,sDAAmD;AAC3E,SAASC,OAAO,QAAQ,sDAAmD;AAC3E,SAASC,qBAAqB,QAAQ,6CAA0C;AAChF,SAASC,aAAa,EAAEC,UAAU,EAAEC,KAAK,QAAQ,qCAAkC","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,3 @@
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ export function resolveText(text, language) {
4
+ if (language && text[language] != null) return text[language];
5
+ const first = Object.values(text)[0];
6
+ return first ?? '';
7
+ }
8
+ //# sourceMappingURL=i18n.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["resolveText","text","language","first","Object","values"],"sourceRoot":"../../../src","sources":["utils/i18n.utils.ts"],"mappings":";;AAEA,OAAO,SAASA,WAAWA,CAACC,IAAmB,EAAEC,QAAmB,EAAU;EAC5E,IAAIA,QAAQ,IAAID,IAAI,CAACC,QAAQ,CAAC,IAAI,IAAI,EAAE,OAAOD,IAAI,CAACC,QAAQ,CAAC;EAC7D,MAAMC,KAAK,GAAGC,MAAM,CAACC,MAAM,CAACJ,IAAI,CAAC,CAAC,CAAC,CAAC;EACpC,OAAOE,KAAK,IAAI,EAAE;AACpB","ignoreList":[]}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+
3
+ import { Theme } from "../features/chat/model/chat.model.js";
4
+ const DARK = {
5
+ surface: 'bg-chat-surface-dark',
6
+ border: 'border-chat-border-dark',
7
+ title: 'text-white',
8
+ subtitle: 'text-chat-subtitle-dark',
9
+ price: 'text-white',
10
+ actionBorder: 'border-neutral-700',
11
+ actionText: 'text-white',
12
+ divider: 'bg-neutral-800',
13
+ iconBg: 'bg-indigo-500/20',
14
+ iconText: 'text-indigo-300',
15
+ iconColor: '#a5b4fc'
16
+ };
17
+ const LIGHT = {
18
+ surface: 'bg-chat-surface-light',
19
+ border: 'border-chat-border-light',
20
+ title: 'text-neutral-900',
21
+ subtitle: 'text-neutral-500',
22
+ price: 'text-neutral-900',
23
+ actionBorder: 'border-slate-400',
24
+ actionText: 'text-neutral-900',
25
+ divider: 'bg-slate-300',
26
+ iconBg: 'bg-indigo-500/15',
27
+ iconText: 'text-indigo-500',
28
+ iconColor: '#6366f1'
29
+ };
30
+ export function getThemeClasses(theme = Theme.Dark) {
31
+ return theme === Theme.Light ? LIGHT : DARK;
32
+ }
33
+ //# sourceMappingURL=theme.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Theme","DARK","surface","border","title","subtitle","price","actionBorder","actionText","divider","iconBg","iconText","iconColor","LIGHT","getThemeClasses","theme","Dark","Light"],"sourceRoot":"../../../src","sources":["utils/theme.utils.ts"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,sCAAmC;AAgBzD,MAAMC,IAAkB,GAAG;EACzBC,OAAO,EAAE,sBAAsB;EAC/BC,MAAM,EAAE,yBAAyB;EACjCC,KAAK,EAAE,YAAY;EACnBC,QAAQ,EAAE,yBAAyB;EACnCC,KAAK,EAAE,YAAY;EACnBC,YAAY,EAAE,oBAAoB;EAClCC,UAAU,EAAE,YAAY;EACxBC,OAAO,EAAE,gBAAgB;EACzBC,MAAM,EAAE,kBAAkB;EAC1BC,QAAQ,EAAE,iBAAiB;EAC3BC,SAAS,EAAE;AACb,CAAC;AAED,MAAMC,KAAmB,GAAG;EAC1BX,OAAO,EAAE,uBAAuB;EAChCC,MAAM,EAAE,0BAA0B;EAClCC,KAAK,EAAE,kBAAkB;EACzBC,QAAQ,EAAE,kBAAkB;EAC5BC,KAAK,EAAE,kBAAkB;EACzBC,YAAY,EAAE,kBAAkB;EAChCC,UAAU,EAAE,kBAAkB;EAC9BC,OAAO,EAAE,cAAc;EACvBC,MAAM,EAAE,kBAAkB;EAC1BC,QAAQ,EAAE,iBAAiB;EAC3BC,SAAS,EAAE;AACb,CAAC;AAED,OAAO,SAASE,eAAeA,CAACC,KAAY,GAAGf,KAAK,CAACgB,IAAI,EAAgB;EACvE,OAAOD,KAAK,KAAKf,KAAK,CAACiB,KAAK,GAAGJ,KAAK,GAAGZ,IAAI;AAC7C","ignoreList":[]}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ import { useState } from 'react';
4
+ const COLLAPSED_COUNT = 3;
5
+ export function useExpandableList(items, limit = COLLAPSED_COUNT) {
6
+ const [expanded, setExpanded] = useState(false);
7
+ const hasMore = items.length > limit;
8
+ const head = hasMore ? items.slice(0, limit) : items;
9
+ const rest = hasMore ? items.slice(limit) : [];
10
+ const toggle = () => setExpanded(v => !v);
11
+ return {
12
+ head,
13
+ rest,
14
+ expanded,
15
+ hasMore,
16
+ toggle
17
+ };
18
+ }
19
+ //# sourceMappingURL=use-expandable-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useState","COLLAPSED_COUNT","useExpandableList","items","limit","expanded","setExpanded","hasMore","length","head","slice","rest","toggle","v"],"sourceRoot":"../../../src","sources":["utils/use-expandable-list.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,OAAO;AAEhC,MAAMC,eAAe,GAAG,CAAC;AAEzB,OAAO,SAASC,iBAAiBA,CAAIC,KAAU,EAAEC,KAAK,GAAGH,eAAe,EAAE;EACxE,MAAM,CAACI,QAAQ,EAAEC,WAAW,CAAC,GAAGN,QAAQ,CAAC,KAAK,CAAC;EAC/C,MAAMO,OAAO,GAAGJ,KAAK,CAACK,MAAM,GAAGJ,KAAK;EACpC,MAAMK,IAAI,GAAGF,OAAO,GAAGJ,KAAK,CAACO,KAAK,CAAC,CAAC,EAAEN,KAAK,CAAC,GAAGD,KAAK;EACpD,MAAMQ,IAAI,GAAGJ,OAAO,GAAGJ,KAAK,CAACO,KAAK,CAACN,KAAK,CAAC,GAAG,EAAE;EAC9C,MAAMQ,MAAM,GAAGA,CAAA,KAAMN,WAAW,CAAEO,CAAC,IAAK,CAACA,CAAC,CAAC;EAC3C,OAAO;IAAEJ,IAAI;IAAEE,IAAI;IAAEN,QAAQ;IAAEE,OAAO;IAAEK;EAAO,CAAC;AAClD","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Web / DOM entry (admin). Re-exports the `*.tsx` (DOM) component implementations.
5
+ *
6
+ * Placeholder until domain components are added, e.g.:
7
+ * export { Event } from './features/chat/components/Event/Event';
8
+ */
9
+ export {};
10
+ //# sourceMappingURL=web.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../src","sources":["web.ts"],"mappings":";;AAAA;;;;;;AAMA","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web.d.ts","sourceRoot":"","sources":["web.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ export { Product } from './features/chat/components/product/product';
4
+ export { Service } from './features/chat/components/service/service';
5
+ export { ChatComponentRenderer } from './features/chat/renderer/renderer';
6
+ export { ComponentType, ItemAction, Theme } from "./features/chat/model/chat.model.js";
7
+ //# sourceMappingURL=web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Product","Service","ChatComponentRenderer","ComponentType","ItemAction","Theme"],"sourceRoot":"../../src","sources":["web.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,4CAA4C;AACpE,SAASC,OAAO,QAAQ,4CAA4C;AACpE,SAASC,qBAAqB,QAAQ,mCAAmC;AACzE,SAASC,aAAa,EAAEC,UAAU,EAAEC,KAAK,QAAQ,qCAAkC","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ export interface CartIconProps {
2
+ size?: number;
3
+ color?: string;
4
+ }
5
+ export declare function CartIcon({ size, color }: CartIconProps): import("react").JSX.Element;
6
+ //# sourceMappingURL=cart-icon.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cart-icon.native.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/common/cart-icon.native.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,QAAQ,CAAC,EAAE,IAAS,EAAE,KAAsB,EAAE,EAAE,aAAa,+BAc5E"}
@@ -0,0 +1,6 @@
1
+ import type { ReactNode } from 'react';
2
+ export declare function Collapsible({ expanded, children }: {
3
+ expanded: boolean;
4
+ children: ReactNode;
5
+ }): import("react").JSX.Element;
6
+ //# sourceMappingURL=collapsible.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/common/collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAU7F"}
@@ -0,0 +1,6 @@
1
+ import type { ReactNode } from 'react';
2
+ export declare function Collapsible({ expanded, children }: {
3
+ expanded: boolean;
4
+ children: ReactNode;
5
+ }): import("react").JSX.Element;
6
+ //# sourceMappingURL=collapsible.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collapsible.native.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/common/collapsible.native.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAsB7F"}
@@ -0,0 +1,3 @@
1
+ export { Product } from './product';
2
+ export type { ProductItem } from './product.model';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/product/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ChatComponentProps } from '../../model/chat.model';
2
+ import type { ProductItem } from './product.model';
3
+ export declare function Product({ data, theme, language, onSelect, }: ChatComponentProps<ProductItem>): import("react").JSX.Element;
4
+ //# sourceMappingURL=product.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/product/product.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,KAAkB,EAClB,QAAQ,EACR,QAAQ,GACT,EAAE,kBAAkB,CAAC,WAAW,CAAC,+BAiEjC"}
@@ -0,0 +1,10 @@
1
+ import type { LocalizedText } from '../../model/chat.model';
2
+ export interface ProductItem {
3
+ id: number;
4
+ image: string;
5
+ name: LocalizedText;
6
+ description: LocalizedText;
7
+ price: string;
8
+ categoryId: number;
9
+ }
10
+ //# sourceMappingURL=product.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/product/product.model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,EAAE,aAAa,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,4 @@
1
+ import type { ChatComponentProps } from '../../model/chat.model';
2
+ import type { ProductItem } from './product.model';
3
+ export declare function Product({ data, theme, language, actionLabel, counts, onAction, onSelect, }: ChatComponentProps<ProductItem>): import("react").JSX.Element;
4
+ //# sourceMappingURL=product.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.native.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/product/product.native.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,KAAkB,EAClB,QAAQ,EACR,WAA2B,EAC3B,MAAM,EACN,QAAQ,EACR,QAAQ,GACT,EAAE,kBAAkB,CAAC,WAAW,CAAC,+BAiGjC"}
@@ -0,0 +1,3 @@
1
+ export { Service } from './service';
2
+ export type { ServiceItem } from './service.model';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/service/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ChatComponentProps } from '../../model/chat.model';
2
+ import type { ServiceItem } from './service.model';
3
+ export declare function Service({ data, theme, language, onSelect, }: ChatComponentProps<ServiceItem>): import("react").JSX.Element;
4
+ //# sourceMappingURL=service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/service/service.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,KAAkB,EAClB,QAAQ,EACR,QAAQ,GACT,EAAE,kBAAkB,CAAC,WAAW,CAAC,+BAiEjC"}
@@ -0,0 +1,10 @@
1
+ import type { LocalizedText } from '../../model/chat.model';
2
+ export interface ServiceItem {
3
+ id: number;
4
+ image: string;
5
+ name: LocalizedText;
6
+ description: LocalizedText;
7
+ price: string;
8
+ departmentUnitId: number;
9
+ }
10
+ //# sourceMappingURL=service.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/service/service.model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,EAAE,aAAa,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;CAC1B"}
@@ -0,0 +1,4 @@
1
+ import type { ChatComponentProps } from '../../model/chat.model';
2
+ import type { ServiceItem } from './service.model';
3
+ export declare function Service({ data, theme, language, actionLabel, onAction, onSelect, }: ChatComponentProps<ServiceItem>): import("react").JSX.Element;
4
+ //# sourceMappingURL=service.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.native.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/service/service.native.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,KAAkB,EAClB,QAAQ,EACR,WAAuB,EACvB,QAAQ,EACR,QAAQ,GACT,EAAE,kBAAkB,CAAC,WAAW,CAAC,+BA8EjC"}
@@ -0,0 +1,8 @@
1
+ export { Product } from './components/product';
2
+ export { Service } from './components/service';
3
+ export { ChatComponentRenderer } from './renderer';
4
+ export { ComponentType, ItemAction, Theme } from './model/chat.model';
5
+ export type { ProductItem } from './components/product/product.model';
6
+ export type { ServiceItem } from './components/service/service.model';
7
+ export type { ActionHandler, ChatComponentProps, ItemCount, Language, LocalizedText, } from './model/chat.model';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtE,YAAY,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACtE,YAAY,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACtE,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,aAAa,GACd,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,31 @@
1
+ export declare enum Theme {
2
+ Dark = "dark",
3
+ Light = "light"
4
+ }
5
+ export type Language = string;
6
+ export type LocalizedText = Record<string, string>;
7
+ export declare enum ComponentType {
8
+ Product = "product",
9
+ ProductList = "productList",
10
+ Service = "service",
11
+ ServiceList = "serviceList"
12
+ }
13
+ export declare enum ItemAction {
14
+ Add = "add"
15
+ }
16
+ export type ActionHandler<TItem = unknown> = (item: TItem, action?: ItemAction) => void;
17
+ export interface ItemCount {
18
+ id: number;
19
+ count: number;
20
+ }
21
+ export interface ChatComponentProps<TItem = unknown> {
22
+ type: ComponentType;
23
+ data: TItem | TItem[];
24
+ language?: Language;
25
+ onAction?: ActionHandler<TItem>;
26
+ onSelect?: ActionHandler<TItem>;
27
+ actionLabel?: string;
28
+ counts?: ItemCount[];
29
+ theme?: Theme;
30
+ }
31
+ //# sourceMappingURL=chat.model.d.ts.map
@@ -0,0 +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;CAC5B;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,CAAC;IACrB,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf"}
@@ -0,0 +1,2 @@
1
+ export { ChatComponentRenderer } from './renderer';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/renderer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { ProductItem } from '../components/product/product.model';
2
+ import type { ServiceItem } from '../components/service/service.model';
3
+ import type { ChatComponentProps } from '../model/chat.model';
4
+ export declare function ChatComponentRenderer({ type, ...rest }: ChatComponentProps<ProductItem | ServiceItem>): import("react").JSX.Element | null;
5
+ //# sourceMappingURL=renderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/renderer/renderer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAEvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,wBAAgB,qBAAqB,CAAC,EACpC,IAAI,EACJ,GAAG,IAAI,EACR,EAAE,kBAAkB,CAAC,WAAW,GAAG,WAAW,CAAC,sCAW/C"}
@@ -0,0 +1,5 @@
1
+ import type { ProductItem } from '../components/product/product.model';
2
+ import type { ServiceItem } from '../components/service/service.model';
3
+ import type { ChatComponentProps } from '../model/chat.model';
4
+ export declare function ChatComponentRenderer({ type, ...rest }: ChatComponentProps<ProductItem | ServiceItem>): import("react").JSX.Element | null;
5
+ //# sourceMappingURL=renderer.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderer.native.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/renderer/renderer.native.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAEvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,wBAAgB,qBAAqB,CAAC,EACpC,IAAI,EACJ,GAAG,IAAI,EACR,EAAE,kBAAkB,CAAC,WAAW,GAAG,WAAW,CAAC,sCAW/C"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Root entry (aggregator). Defaults to the web/DOM build.
3
+ *
4
+ * Prefer importing the explicit platform entry in apps:
5
+ * - `@inorain_development/hotel-smarters-chat-ui/native` -> React Native (mobile + web client via react-native-web)
6
+ * - `@inorain_development/hotel-smarters-chat-ui/web` -> React DOM (admin)
7
+ *
8
+ * Public exports are added here once domain components exist.
9
+ */
10
+ export * from './web';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,cAAc,OAAO,CAAC"}
@@ -0,0 +1,8 @@
1
+ export { Product } from './features/chat/components/product/product.native';
2
+ export { Service } from './features/chat/components/service/service.native';
3
+ export { ChatComponentRenderer } from './features/chat/renderer/renderer.native';
4
+ export { ComponentType, ItemAction, Theme } from './features/chat/model/chat.model';
5
+ export type { ProductItem } from './features/chat/components/product/product.model';
6
+ export type { ServiceItem } from './features/chat/components/service/service.model';
7
+ export type { ActionHandler, ChatComponentProps, ItemCount, Language, LocalizedText, } from './features/chat/model/chat.model';
8
+ //# sourceMappingURL=native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../../../src/native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mDAAmD,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,mDAAmD,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AACpF,YAAY,EAAE,WAAW,EAAE,MAAM,kDAAkD,CAAC;AACpF,YAAY,EAAE,WAAW,EAAE,MAAM,kDAAkD,CAAC;AACpF,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,aAAa,GACd,MAAM,kCAAkC,CAAC"}
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}
@@ -0,0 +1,3 @@
1
+ import type { Language, LocalizedText } from '../features/chat/model/chat.model';
2
+ export declare function resolveText(text: LocalizedText, language?: Language): string;
3
+ //# sourceMappingURL=i18n.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/i18n.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAEjF,wBAAgB,WAAW,CAAC,IAAI,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM,CAI5E"}
@@ -0,0 +1,16 @@
1
+ import { Theme } from '../features/chat/model/chat.model';
2
+ export interface ThemeClasses {
3
+ surface: string;
4
+ border: string;
5
+ title: string;
6
+ subtitle: string;
7
+ price: string;
8
+ actionBorder: string;
9
+ actionText: string;
10
+ divider: string;
11
+ iconBg: string;
12
+ iconText: string;
13
+ iconColor: string;
14
+ }
15
+ export declare function getThemeClasses(theme?: Theme): ThemeClasses;
16
+ //# sourceMappingURL=theme.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/theme.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,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,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;AA8BD,wBAAgB,eAAe,CAAC,KAAK,GAAE,KAAkB,GAAG,YAAY,CAEvE"}
@@ -0,0 +1,8 @@
1
+ export declare function useExpandableList<T>(items: T[], limit?: number): {
2
+ head: T[];
3
+ rest: T[];
4
+ expanded: boolean;
5
+ hasMore: boolean;
6
+ toggle: () => void;
7
+ };
8
+ //# sourceMappingURL=use-expandable-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-expandable-list.d.ts","sourceRoot":"","sources":["../../../../src/utils/use-expandable-list.ts"],"names":[],"mappings":"AAIA,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,KAAK,SAAkB;;;;;;EAOvE"}
@@ -0,0 +1,8 @@
1
+ export { Product } from './features/chat/components/product/product';
2
+ export { Service } from './features/chat/components/service/service';
3
+ export { ChatComponentRenderer } from './features/chat/renderer/renderer';
4
+ export { ComponentType, ItemAction, Theme } from './features/chat/model/chat.model';
5
+ export type { ProductItem } from './features/chat/components/product/product.model';
6
+ export type { ServiceItem } from './features/chat/components/service/service.model';
7
+ export type { ActionHandler, ChatComponentProps, ItemCount, Language, LocalizedText, } from './features/chat/model/chat.model';
8
+ //# sourceMappingURL=web.d.ts.map
@@ -0,0 +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,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AACpF,YAAY,EAAE,WAAW,EAAE,MAAM,kDAAkD,CAAC;AACpF,YAAY,EAAE,WAAW,EAAE,MAAM,kDAAkD,CAAC;AACpF,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,aAAa,GACd,MAAM,kCAAkC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export interface CartIconProps {
2
+ size?: number;
3
+ color?: string;
4
+ }
5
+ export declare function CartIcon({ size, color }: CartIconProps): import("react").JSX.Element;
6
+ //# sourceMappingURL=cart-icon.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cart-icon.native.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/common/cart-icon.native.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,QAAQ,CAAC,EAAE,IAAS,EAAE,KAAsB,EAAE,EAAE,aAAa,+BAc5E"}
@@ -0,0 +1,6 @@
1
+ import type { ReactNode } from 'react';
2
+ export declare function Collapsible({ expanded, children }: {
3
+ expanded: boolean;
4
+ children: ReactNode;
5
+ }): import("react").JSX.Element;
6
+ //# sourceMappingURL=collapsible.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/common/collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAU7F"}
@@ -0,0 +1,6 @@
1
+ import type { ReactNode } from 'react';
2
+ export declare function Collapsible({ expanded, children }: {
3
+ expanded: boolean;
4
+ children: ReactNode;
5
+ }): import("react").JSX.Element;
6
+ //# sourceMappingURL=collapsible.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collapsible.native.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/common/collapsible.native.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAsB7F"}
@@ -0,0 +1,3 @@
1
+ export { Product } from './product';
2
+ export type { ProductItem } from './product.model.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/product/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAiB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ChatComponentProps } from '../../model/chat.model.js';
2
+ import type { ProductItem } from './product.model.js';
3
+ export declare function Product({ data, theme, language, onSelect, }: ChatComponentProps<ProductItem>): import("react").JSX.Element;
4
+ //# sourceMappingURL=product.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/product/product.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAiB,CAAC;AAEnD,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,KAAkB,EAClB,QAAQ,EACR,QAAQ,GACT,EAAE,kBAAkB,CAAC,WAAW,CAAC,+BAiEjC"}
@@ -0,0 +1,10 @@
1
+ import type { LocalizedText } from '../../model/chat.model.js';
2
+ export interface ProductItem {
3
+ id: number;
4
+ image: string;
5
+ name: LocalizedText;
6
+ description: LocalizedText;
7
+ price: string;
8
+ categoryId: number;
9
+ }
10
+ //# sourceMappingURL=product.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/product/product.model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAAwB,CAAC;AAE5D,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,EAAE,aAAa,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,4 @@
1
+ import type { ChatComponentProps } from '../../model/chat.model.js';
2
+ import type { ProductItem } from './product.model.js';
3
+ export declare function Product({ data, theme, language, actionLabel, counts, onAction, onSelect, }: ChatComponentProps<ProductItem>): import("react").JSX.Element;
4
+ //# sourceMappingURL=product.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.native.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/product/product.native.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAiB,CAAC;AAEnD,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,KAAkB,EAClB,QAAQ,EACR,WAA2B,EAC3B,MAAM,EACN,QAAQ,EACR,QAAQ,GACT,EAAE,kBAAkB,CAAC,WAAW,CAAC,+BAiGjC"}
@@ -0,0 +1,3 @@
1
+ export { Service } from './service';
2
+ export type { ServiceItem } from './service.model.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/service/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAiB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ChatComponentProps } from '../../model/chat.model.js';
2
+ import type { ServiceItem } from './service.model.js';
3
+ export declare function Service({ data, theme, language, onSelect, }: ChatComponentProps<ServiceItem>): import("react").JSX.Element;
4
+ //# sourceMappingURL=service.d.ts.map