@admin-layout/tailwind-design-pro 10.0.9-alpha.9 → 10.1.1-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (307) hide show
  1. package/README.md +345 -1
  2. package/lib/cdm-locales/en/settings.json +35 -1
  3. package/lib/cdm-locales/es/settings.json +37 -3
  4. package/lib/components/Layout/BasicLayout/index.d.ts +1 -2
  5. package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
  6. package/lib/components/Layout/BasicLayout/index.js +146 -42
  7. package/lib/components/Layout/BasicLayout/index.js.map +1 -1
  8. package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
  9. package/lib/components/Layout/BasicLayout/utils.js +1 -1
  10. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts +1 -8
  11. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
  12. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
  13. package/lib/components/Layout/GlobalFooter/Copyright.d.ts.map +1 -1
  14. package/lib/components/Layout/GlobalFooter/Footer.d.ts.map +1 -1
  15. package/lib/components/Layout/GlobalHeader/Header.d.ts +2 -15
  16. package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
  17. package/lib/components/Layout/GlobalHeader/Header.js +70 -38
  18. package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
  19. package/lib/components/Layout/GlobalHeader/Logo.d.ts +4 -0
  20. package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +1 -0
  21. package/lib/components/Layout/GlobalHeader/Logo.js +141 -0
  22. package/lib/components/Layout/GlobalHeader/Logo.js.map +1 -0
  23. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +6 -0
  24. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -0
  25. package/lib/components/Layout/GlobalHeader/MainHeader.js +230 -0
  26. package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -0
  27. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts +1 -12
  28. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts.map +1 -1
  29. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
  30. package/lib/components/Layout/GlobalHeader/RightContent.d.ts +1 -13
  31. package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
  32. package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -1
  33. package/lib/components/Layout/GlobalHeader/RightMenu.d.ts +4 -0
  34. package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -0
  35. package/lib/components/Layout/GlobalHeader/RightMenu.js +290 -0
  36. package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -0
  37. package/lib/components/Layout/GlobalHeader/SearchBar.d.ts +9 -0
  38. package/lib/components/Layout/GlobalHeader/SearchBar.d.ts.map +1 -0
  39. package/lib/components/Layout/GlobalHeader/SearchBar.js +118 -0
  40. package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -0
  41. package/lib/components/Layout/GlobalHeader/index.d.ts +4 -0
  42. package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -0
  43. package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
  44. package/lib/components/Layout/ProTailwindLayout.js +1 -2
  45. package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
  46. package/lib/components/Layout/Sidebar/Divider.d.ts +1 -31
  47. package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -1
  48. package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
  49. package/lib/components/Layout/Sidebar/DynamicIcon.d.ts +5 -0
  50. package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -0
  51. package/lib/components/Layout/Sidebar/DynamicIcon.js +51 -0
  52. package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -0
  53. package/lib/components/Layout/Sidebar/Sidebar.d.ts +1 -12
  54. package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +1 -1
  55. package/lib/components/Layout/Sidebar/Sidebar.js +108 -92
  56. package/lib/components/Layout/Sidebar/Sidebar.js.map +1 -1
  57. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +1 -1
  58. package/lib/components/Layout/Sidebar/SidebarMenu.js +110 -20
  59. package/lib/components/Layout/Sidebar/SidebarMenu.js.map +1 -1
  60. package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
  61. package/lib/components/Layout/TailwindLayout.js +29 -19
  62. package/lib/components/Layout/TailwindLayout.js.map +1 -1
  63. package/lib/components/Layout/getPageTitle.d.ts +1 -16
  64. package/lib/components/Layout/getPageTitle.d.ts.map +1 -1
  65. package/lib/components/Layout/getPageTitle.js +1 -1
  66. package/lib/components/Layout/getPageTitle.js.map +1 -1
  67. package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -1
  68. package/lib/components/Layout/slot-fill/Footer.d.ts +1 -1
  69. package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -1
  70. package/lib/components/Layout/slot-fill/Footer.js +6 -6
  71. package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
  72. package/lib/components/Layout/slot-fill/HeaderNotice.d.ts.map +1 -1
  73. package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts +3 -0
  74. package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts.map +1 -0
  75. package/lib/components/Layout/slot-fill/HeaderSearchBar.js +6 -0
  76. package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -0
  77. package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts +3 -0
  78. package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts.map +1 -0
  79. package/lib/components/Layout/slot-fill/HeaderSearchButton.js +6 -0
  80. package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -0
  81. package/lib/components/Layout/slot-fill/RightContent.d.ts +3 -0
  82. package/lib/components/Layout/slot-fill/RightContent.d.ts.map +1 -0
  83. package/lib/components/Layout/slot-fill/RightContent.js +6 -0
  84. package/lib/components/Layout/slot-fill/RightContent.js.map +1 -0
  85. package/lib/components/Layout/slot-fill/index.d.ts +3 -0
  86. package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
  87. package/lib/components/Layout/util.d.ts.map +1 -1
  88. package/lib/components/Layout/util.js +12 -0
  89. package/lib/components/Layout/util.js.map +1 -0
  90. package/lib/components/SettingDrawer/CheckBoxTheme.js +1 -1
  91. package/lib/components/SettingDrawer/LayoutChange.d.ts +1 -1
  92. package/lib/components/SettingDrawer/LayoutChange.d.ts.map +1 -1
  93. package/lib/components/SettingDrawer/LayoutChange.js +75 -17
  94. package/lib/components/SettingDrawer/LayoutChange.js.map +1 -1
  95. package/lib/components/SettingDrawer/NavigationsModes.d.ts +1 -1
  96. package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +1 -1
  97. package/lib/components/SettingDrawer/NavigationsModes.js +18 -10
  98. package/lib/components/SettingDrawer/NavigationsModes.js.map +1 -1
  99. package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +1 -1
  100. package/lib/components/SettingDrawer/RegionalSettings.js +685 -33
  101. package/lib/components/SettingDrawer/RegionalSettings.js.map +1 -1
  102. package/lib/components/SettingDrawer/SettingDrawer.d.ts +1 -1
  103. package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
  104. package/lib/components/SettingDrawer/SettingDrawer.js +164 -39
  105. package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
  106. package/lib/components/SettingDrawer/WebFontsSelector.d.ts +3 -0
  107. package/lib/components/SettingDrawer/WebFontsSelector.d.ts.map +1 -0
  108. package/lib/components/SettingDrawer/WebFontsSelector.js +24 -0
  109. package/lib/components/SettingDrawer/WebFontsSelector.js.map +1 -0
  110. package/lib/components/SettingDrawer/types.d.ts +23 -2
  111. package/lib/components/SettingDrawer/types.d.ts.map +1 -1
  112. package/lib/components/ThemeProvider/ThemeProvider.d.ts +6 -16
  113. package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  114. package/lib/components/ThemeProvider/ThemeProvider.js +26 -28
  115. package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -1
  116. package/lib/components/ThemeProvider/ThemeToggle.js +50 -0
  117. package/lib/components/ThemeProvider/ThemeToggle.js.map +1 -0
  118. package/lib/components/ThemeProvider/index.d.ts +2 -5
  119. package/lib/components/ThemeProvider/index.d.ts.map +1 -1
  120. package/lib/components/ThemeProvider/themes/airbnb.d.ts +3 -0
  121. package/lib/components/ThemeProvider/themes/airbnb.d.ts.map +1 -0
  122. package/lib/components/ThemeProvider/themes/airbnb.js +186 -0
  123. package/lib/components/ThemeProvider/themes/airbnb.js.map +1 -0
  124. package/lib/components/ThemeProvider/themes/default.d.ts +3 -0
  125. package/lib/components/ThemeProvider/themes/default.d.ts.map +1 -0
  126. package/lib/components/ThemeProvider/themes/default.js +183 -0
  127. package/lib/components/ThemeProvider/themes/default.js.map +1 -0
  128. package/lib/components/ThemeProvider/themes/github.d.ts +3 -0
  129. package/lib/components/ThemeProvider/themes/github.d.ts.map +1 -0
  130. package/lib/components/ThemeProvider/themes/github.js +190 -0
  131. package/lib/components/ThemeProvider/themes/github.js.map +1 -0
  132. package/lib/components/ThemeProvider/themes/index.d.ts +15 -0
  133. package/lib/components/ThemeProvider/themes/index.d.ts.map +1 -0
  134. package/lib/components/ThemeProvider/themes/index.js +7 -0
  135. package/lib/components/ThemeProvider/themes/index.js.map +1 -0
  136. package/lib/components/ThemeProvider/themes/slack.d.ts +3 -0
  137. package/lib/components/ThemeProvider/themes/slack.d.ts.map +1 -0
  138. package/lib/components/ThemeProvider/themes/slack.js +188 -0
  139. package/lib/components/ThemeProvider/themes/slack.js.map +1 -0
  140. package/lib/components/ThemeProvider/themes/spotify.d.ts +3 -0
  141. package/lib/components/ThemeProvider/themes/spotify.d.ts.map +1 -0
  142. package/lib/components/ThemeProvider/themes/spotify.js +189 -0
  143. package/lib/components/ThemeProvider/themes/spotify.js.map +1 -0
  144. package/lib/components/ThemeProvider/types.d.ts +106 -106
  145. package/lib/components/ThemeProvider/types.d.ts.map +1 -1
  146. package/lib/components/UI/CardList.d.ts +61 -0
  147. package/lib/components/UI/CardList.d.ts.map +1 -0
  148. package/lib/components/UI/CardList.js +43 -0
  149. package/lib/components/UI/CardList.js.map +1 -0
  150. package/lib/components/UI/CategoriesTypeList.d.ts +29 -0
  151. package/lib/components/UI/CategoriesTypeList.d.ts.map +1 -0
  152. package/lib/components/UI/CategoriesTypeList.js +140 -0
  153. package/lib/components/UI/CategoriesTypeList.js.map +1 -0
  154. package/lib/components/UI/LazyLoadingGoogleMarker.d.ts +83 -0
  155. package/lib/components/UI/LazyLoadingGoogleMarker.d.ts.map +1 -0
  156. package/lib/components/UI/LazyLoadingGoogleMarker.js +107 -0
  157. package/lib/components/UI/LazyLoadingGoogleMarker.js.map +1 -0
  158. package/lib/components/UI/Pagination.d.ts +6 -0
  159. package/lib/components/UI/Pagination.d.ts.map +1 -0
  160. package/lib/components/UI/Pagination.js +59 -0
  161. package/lib/components/UI/Pagination.js.map +1 -0
  162. package/lib/components/UI/ParamSearchResultContainer.d.ts +101 -0
  163. package/lib/components/UI/ParamSearchResultContainer.d.ts.map +1 -0
  164. package/lib/components/UI/ParamSearchResultContainer.js +120 -0
  165. package/lib/components/UI/ParamSearchResultContainer.js.map +1 -0
  166. package/lib/components/UI/PropertyCard.d.ts +24 -0
  167. package/lib/components/UI/PropertyCard.d.ts.map +1 -0
  168. package/lib/components/UI/PropertyCard.js +375 -0
  169. package/lib/components/UI/PropertyCard.js.map +1 -0
  170. package/lib/components/UI/PropertyCardOnMap.d.ts +10 -0
  171. package/lib/components/UI/PropertyCardOnMap.d.ts.map +1 -0
  172. package/lib/components/UI/PropertyCardOnMap.js +108 -0
  173. package/lib/components/UI/PropertyCardOnMap.js.map +1 -0
  174. package/lib/components/UI/VehicleCard.d.ts +15 -0
  175. package/lib/components/UI/VehicleCard.d.ts.map +1 -0
  176. package/lib/components/UI/VehicleCardList.d.ts +14 -0
  177. package/lib/components/UI/VehicleCardList.d.ts.map +1 -0
  178. package/lib/components/UI/VehicleComponents/CarCardFooter.d.ts +7 -0
  179. package/lib/components/UI/VehicleComponents/CarCardFooter.d.ts.map +1 -0
  180. package/lib/components/UI/VehicleComponents/CarCardFooter.js +61 -0
  181. package/lib/components/UI/VehicleComponents/CarCardFooter.js.map +1 -0
  182. package/lib/components/UI/VehicleComponents/CarCardImage.d.ts +9 -0
  183. package/lib/components/UI/VehicleComponents/CarCardImage.d.ts.map +1 -0
  184. package/lib/components/UI/VehicleComponents/CarCardImage.js +32 -0
  185. package/lib/components/UI/VehicleComponents/CarCardImage.js.map +1 -0
  186. package/lib/components/UI/VehicleComponents/CarCardInfo.d.ts +13 -0
  187. package/lib/components/UI/VehicleComponents/CarCardInfo.d.ts.map +1 -0
  188. package/lib/components/UI/VehicleComponents/CarCardInfo.js +49 -0
  189. package/lib/components/UI/VehicleComponents/CarCardInfo.js.map +1 -0
  190. package/lib/components/UI/VehicleComponents/index.d.ts +4 -0
  191. package/lib/components/UI/VehicleComponents/index.d.ts.map +1 -0
  192. package/lib/components/UI/VehicleParamSearchResultContainer.d.ts +90 -0
  193. package/lib/components/UI/VehicleParamSearchResultContainer.d.ts.map +1 -0
  194. package/lib/components/UI/icons/LocationIcon.d.ts +7 -0
  195. package/lib/components/UI/icons/LocationIcon.d.ts.map +1 -0
  196. package/lib/components/UI/icons/LocationIcon.js +18 -0
  197. package/lib/components/UI/icons/LocationIcon.js.map +1 -0
  198. package/lib/components/UI/icons/index.d.ts +2 -0
  199. package/lib/components/UI/icons/index.d.ts.map +1 -0
  200. package/lib/components/UI/index.d.ts +9 -0
  201. package/lib/components/UI/index.d.ts.map +1 -0
  202. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +1 -1
  203. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
  204. package/lib/components/index.d.ts +4 -0
  205. package/lib/components/index.d.ts.map +1 -0
  206. package/lib/components/index.js +1 -0
  207. package/lib/components/index.js.map +1 -0
  208. package/lib/components/typings.d.ts +133 -51
  209. package/lib/components/typings.d.ts.map +1 -1
  210. package/lib/components/typings.js +6 -0
  211. package/lib/components/typings.js.map +1 -0
  212. package/lib/config/constants.d.ts +8 -0
  213. package/lib/config/constants.d.ts.map +1 -0
  214. package/lib/config/constants.js +32 -0
  215. package/lib/config/constants.js.map +1 -0
  216. package/lib/config/env-config.d.ts +15 -0
  217. package/lib/config/env-config.d.ts.map +1 -1
  218. package/lib/config/env-config.js +66 -1
  219. package/lib/config/env-config.js.map +1 -1
  220. package/lib/helpers/DynamicIcon.d.ts +7 -4
  221. package/lib/helpers/DynamicIcon.d.ts.map +1 -1
  222. package/lib/helpers/DynamicIcon.js +51 -0
  223. package/lib/helpers/DynamicIcon.js.map +1 -0
  224. package/lib/hooks/index.d.ts +6 -0
  225. package/lib/hooks/index.d.ts.map +1 -0
  226. package/lib/hooks/use-get-current-lat-long.d.ts +18 -0
  227. package/lib/hooks/use-get-current-lat-long.d.ts.map +1 -0
  228. package/lib/hooks/use-get-current-lat-long.js +29 -0
  229. package/lib/hooks/use-get-current-lat-long.js.map +1 -0
  230. package/lib/hooks/useMediaQuery.d.ts +14 -0
  231. package/lib/hooks/useMediaQuery.d.ts.map +1 -0
  232. package/lib/hooks/useMediaQuery.js +48 -0
  233. package/lib/hooks/useMediaQuery.js.map +1 -0
  234. package/lib/hooks/useScrollThreshold.d.ts +12 -0
  235. package/lib/hooks/useScrollThreshold.d.ts.map +1 -0
  236. package/lib/hooks/useScrollThreshold.js +60 -0
  237. package/lib/hooks/useScrollThreshold.js.map +1 -0
  238. package/lib/hooks/useTailwindTheme.d.ts +34 -0
  239. package/lib/hooks/useTailwindTheme.d.ts.map +1 -0
  240. package/lib/hooks/useTailwindTheme.js +82 -0
  241. package/lib/hooks/useTailwindTheme.js.map +1 -0
  242. package/lib/hooks/useWindowSize.d.ts +6 -0
  243. package/lib/hooks/useWindowSize.d.ts.map +1 -0
  244. package/lib/hooks/useWindowSize.js +20 -0
  245. package/lib/hooks/useWindowSize.js.map +1 -0
  246. package/lib/icons.d.ts +2 -0
  247. package/lib/icons.d.ts.map +1 -1
  248. package/lib/icons.js +3 -4
  249. package/lib/icons.js.map +1 -1
  250. package/lib/index.d.ts +3 -0
  251. package/lib/index.d.ts.map +1 -1
  252. package/lib/index.js +1 -1
  253. package/lib/index.js.map +1 -1
  254. package/lib/machines/settingsMachine.d.ts +4 -1
  255. package/lib/machines/settingsMachine.d.ts.map +1 -1
  256. package/lib/machines/settingsMachine.js +170 -120
  257. package/lib/machines/settingsMachine.js.map +1 -1
  258. package/lib/machines/types.d.ts +124 -17
  259. package/lib/machines/types.d.ts.map +1 -1
  260. package/lib/machines/types.js +5 -0
  261. package/lib/machines/types.js.map +1 -0
  262. package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts +6 -0
  263. package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts.map +1 -0
  264. package/lib/middlewares/bookingCarRentalMiddleware.d.ts +6 -0
  265. package/lib/middlewares/bookingCarRentalMiddleware.d.ts.map +1 -0
  266. package/lib/middlewares/bookingDatasourcesMiddleware.d.ts +7 -0
  267. package/lib/middlewares/bookingDatasourcesMiddleware.d.ts.map +1 -0
  268. package/lib/middlewares/datasourcesMiddleware.d.ts +6 -0
  269. package/lib/middlewares/datasourcesMiddleware.d.ts.map +1 -0
  270. package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts +7 -0
  271. package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts.map +1 -0
  272. package/lib/module.d.ts +0 -1
  273. package/lib/module.d.ts.map +1 -1
  274. package/lib/module.js +14 -15
  275. package/lib/module.js.map +1 -1
  276. package/lib/redux/index.d.ts +2 -0
  277. package/lib/redux/index.d.ts.map +1 -0
  278. package/lib/redux/searchReducer.d.ts +42 -0
  279. package/lib/redux/searchReducer.d.ts.map +1 -0
  280. package/lib/redux/searchReducer.js +64 -0
  281. package/lib/redux/searchReducer.js.map +1 -0
  282. package/lib/tailwindConfig.d.ts +42 -0
  283. package/lib/tailwindConfig.d.ts.map +1 -0
  284. package/lib/tailwindConfig.js +23 -0
  285. package/lib/tailwindConfig.js.map +1 -0
  286. package/lib/utils/formateCarData.d.ts +2 -0
  287. package/lib/utils/formateCarData.d.ts.map +1 -0
  288. package/lib/utils/menu.d.ts.map +1 -1
  289. package/lib/utils/test-utils.d.ts.map +1 -1
  290. package/lib/utils/utils/index.d.ts.map +1 -1
  291. package/package.json +6 -6
  292. package/lib/components/Layout/GlobalFooter/Copyright.js +0 -8
  293. package/lib/components/Layout/GlobalFooter/Copyright.js.map +0 -1
  294. package/lib/components/Layout/GlobalFooter/Footer.js +0 -22
  295. package/lib/components/Layout/GlobalFooter/Footer.js.map +0 -1
  296. package/lib/components/ThemeProvider/themeRegistry.d.ts +0 -3
  297. package/lib/components/ThemeProvider/themeRegistry.d.ts.map +0 -1
  298. package/lib/components/ThemeProvider/themeRegistry.js +0 -388
  299. package/lib/components/ThemeProvider/themeRegistry.js.map +0 -1
  300. package/lib/components/ThemeProvider/themeUtils.d.ts +0 -26
  301. package/lib/components/ThemeProvider/themeUtils.d.ts.map +0 -1
  302. package/lib/components/ThemeProvider/themeUtils.js +0 -135
  303. package/lib/components/ThemeProvider/themeUtils.js.map +0 -1
  304. package/lib/components/defaultSettings.d.ts +0 -4
  305. package/lib/components/defaultSettings.d.ts.map +0 -1
  306. package/lib/components/defaultSettings.js +0 -14
  307. package/lib/components/defaultSettings.js.map +0 -1
@@ -1,7 +1,72 @@
1
- import {cleanEnv,str}from'envalid';import {getEnvironment}from'@common-stack/core';const env = getEnvironment();
1
+ import {cleanEnv,str,num,bool}from'envalid';import {getEnvironment}from'@common-stack/core';import {SCROLL_THRESHOLD,LAYOUT_SETTINGS}from'./constants.js';const env = getEnvironment();
2
+ const defaultScrollThreshold = JSON.stringify({
3
+ MIN: SCROLL_THRESHOLD.MIN,
4
+ MAX: SCROLL_THRESHOLD.MAX,
5
+ STEP: SCROLL_THRESHOLD.STEP,
6
+ DEFAULT: SCROLL_THRESHOLD.DEFAULT
7
+ });
2
8
  const config = cleanEnv(env, {
3
9
  LAYOUT_ROOT: str({
4
10
  default: '/o/:orgName',
5
11
  desc: 'Layout parent route'
12
+ }),
13
+ ENABLE_PROPERTY_PRICE_COMPARISON: bool({
14
+ default: false,
15
+ desc: 'Enable property price comparison section'
16
+ }),
17
+ SCROLL_THRESHOLD: str({
18
+ default: defaultScrollThreshold,
19
+ desc: 'Scroll threshold configuration'
20
+ }),
21
+ LAYOUT_SETTINGS: str({
22
+ default: JSON.stringify(LAYOUT_SETTINGS),
23
+ desc: 'Layout settings'
24
+ }),
25
+ BOOKING_CAR_RENTAL_API_KEY: str({
26
+ default: '',
27
+ desc: 'Booking car rental API key'
28
+ }),
29
+ AIRBNB_API_KEY: str({
30
+ default: '',
31
+ desc: 'Airbnb API key'
32
+ }),
33
+ BOOKING_COM_API_KEY: str({
34
+ default: '',
35
+ desc: 'Booking com API key'
36
+ }),
37
+ SEARCH_LAYOUT: str({
38
+ default: '/search',
39
+ desc: 'Layout Search route'
40
+ }),
41
+ GOOGLE_MAPS_API_KEY: str({
42
+ default: 'AIzaSyCtMaqd4AQayEx4-QTbuM_uL91pQrUsbK8'
43
+ }),
44
+ PROPERTY_SEARCH_DEFAULT_PAGE_SIZE: num({
45
+ default: 10,
46
+ desc: 'Number of property to fetch in each request'
47
+ }),
48
+ PROPERTY_COUPONS_DEFAULT_PAGE_SIZE: num({
49
+ default: 10,
50
+ desc: 'Number of coupons to fetch in each request'
51
+ }),
52
+ DEFAULT_NEARBY_PROPERTY_RADIUS: num({
53
+ default: 160934,
54
+ // The value is in meter so its actually 100 miles
55
+ desc: 'Sets the default distance for searching nearby properties'
56
+ }),
57
+ AIRBNB_DEFAULT_TOTAL_PAGES: num({
58
+ default: 8,
59
+ desc: 'Number of property to fetch in each request'
60
+ }),
61
+ BOOKING_COM_DEFAULT_PAGE_SIZE: num({
62
+ default: 20,
63
+ desc: 'Number of property to fetch in each request'
64
+ }),
65
+ PRICELINE_API_KEY: str({
66
+ default: ''
67
+ }),
68
+ DEFAULT_COORDINATES: str({
69
+ default: '{"lat":40.7127281,"lng":-74.0060152}',
70
+ desc: 'Default coordinates for property search'
6
71
  })
7
72
  });export{config};//# sourceMappingURL=env-config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"env-config.js","sources":["../../src/config/env-config.ts"],"sourcesContent":[null],"names":[],"mappings":"mFAGA,MAAM,GAAG,GAAG,cAAc,EAAE;AAEf,MAAA,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE;AAChC,EAAA,WAAA,EAAW,GAAE,CAAA;AAChB,IAAE,OAAA,EAAA,aAAA;;;"}
1
+ {"version":3,"file":"env-config.js","sources":["../../src/config/env-config.ts"],"sourcesContent":[null],"names":[],"mappings":"0JAIA,MAAM,GAAG,GAAG,cAAc,EAAE;AAE5B,MAAM,sBAAsB,GAAG,IAAI,CAAC,SAAS,CAAC;KACvC,EAAA,gBAAkB,CAAA,GAAI;KACtB,EAAA,gBAAkB,CAAA,GAAI;MACrB,EAAA,gBAAkB,CAAA,IAAK;SACpB,EAAA,gBAAkB,CAAA;AAC5B,CAAA,CAAC;AAEW,MAAA,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE;AAChC,EAAA,WAAA,EAAW,GAAE,CAAA;AACb,IAAA,OAAA,EAAA,aAAA;AACA,IAAA,IAAA,EAAA;AACA,GAAA,CAAA;AACA,EAAA,gCAA4B,EAAI,IAAS,CAAA;AACzC,IAAA,OAAA,EAAA,KAAc;AACd,IAAA,IAAA,EAAA;AAEA,GAAA,CAAA;kBACmB,EAAA,GAAA,CAAA;IACnB,OAAiC,EAAA,sBAAA;AAC7B,IAAA,IAAA,EAAA;AACA,GAAA,CAAA;iBACF,EAAA,GAAA,CAAA;IACF,OAAkC,EAAA,IAAA,CAAA,SAAA,CAAA,eAAK,CAAC;AACpC,IAAA,IAAA,EAAA;AACA,GAAA,CAAA;4BACF,EAAA,GAAA,CAAA;IACF,OAA8B,EAAA,EAAA;QAC1B,EAAO;AACP,GAAA,CAAA;gBACF,EAAA,GAAA,CAAA;IACF,OAA0B,EAAA,EAAA;AACtB,IAAA,IAAA,EAAA;AACA,GAAA,CAAA;qBACF,EAAA,GAAA,CAAA;IACF,OAA6B,EAAA,EAAA;AACzB,IAAA,IAAA,EAAA;AACA,GAAA,CAAA;eACF,EAAA,GAAA,CAAA;IACF,OAAiB,EAAA,SAAA;IACjB,IAAmB,EAAA;AACf,GAAA,CAAA;AACA,EAAA,mBAA+C,EAAA,GAAA,CAAA;WACjD,EAAA;AACL,GAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,10 +1,13 @@
1
1
  import * as React from 'react';
2
2
  interface DynamicTypeIconsProps {
3
3
  icon: any;
4
- iconColor?: string;
5
- w?: any;
6
- h?: any;
7
- iconStyle?: any;
4
+ iconStyle?: {
5
+ iconColor?: string;
6
+ w?: string;
7
+ h?: string;
8
+ [key: string]: any;
9
+ };
10
+ [key: string]: any;
8
11
  }
9
12
  export declare const DynamicIcon: React.FC<DynamicTypeIconsProps>;
10
13
  export declare const renderDynamicIcon: (icon: any) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"DynamicIcon.d.ts","sourceRoot":"","sources":["../../src/helpers/DynamicIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,UAAU,qBAAqB;IAC3B,IAAI,EAAE,GAAG,CAAC;IACV,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,CAAC,EAAE,GAAG,CAAC;IACR,CAAC,CAAC,EAAE,GAAG,CAAC;IACR,SAAS,CAAC,EAAE,GAAG,CAAC;CACnB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAsCvD,CAAC;AAEF,eAAO,MAAM,iBAAiB,wDAQ7B,CAAC"}
1
+ {"version":3,"file":"DynamicIcon.d.ts","sourceRoot":"","sources":["../../src/helpers/DynamicIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,UAAU,qBAAqB;IAC3B,IAAI,EAAE,GAAG,CAAC;IACV,SAAS,CAAC,EAAE;QACR,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACtB,CAAC;IACF,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAyCvD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,SAAI,4CAQrC,CAAC"}
@@ -0,0 +1,51 @@
1
+ import {jsx}from'react/jsx-runtime';import*as React from'react';import {useState,useEffect}from'react';import selectiveIcons from'@app/selectiveIcons';const DynamicIcon = React.memo(({
2
+ icon,
3
+ iconStyle,
4
+ ...props
5
+ }) => {
6
+ const [IconComponent, setIconComponent] = useState(null);
7
+ useEffect(() => {
8
+ const loadIcon = () => {
9
+ const selectedIcon = selectiveIcons(icon);
10
+ selectedIcon.then(module => {
11
+ if (typeof module.default === 'object') {
12
+ setIconComponent(() => module.default[icon]);
13
+ } else {
14
+ setIconComponent(() => module.default);
15
+ }
16
+ }).catch(err => {
17
+ setIconComponent(null);
18
+ });
19
+ };
20
+ loadIcon();
21
+ }, [icon]);
22
+ if (!IconComponent) return null;
23
+ return jsx("div", {
24
+ className: "m-0 flex",
25
+ children: jsx(IconComponent, {
26
+ className: "textCurrent",
27
+ style: {
28
+ color: iconStyle?.iconColor,
29
+ stroke: iconStyle?.iconColor,
30
+ width: iconStyle?.w || '16px',
31
+ height: iconStyle?.h || '16px',
32
+ ...props.style
33
+ },
34
+ ...props
35
+ })
36
+ });
37
+ }, (prevProps, nextProps) => prevProps.icon === nextProps.icon && prevProps.iconStyle?.iconColor === nextProps.iconStyle?.iconColor);
38
+ const renderDynamicIcon = icon => {
39
+ if (typeof icon === 'object') {
40
+ return jsx(DynamicIcon, {
41
+ icon: icon.name,
42
+ iconStyle: icon.style
43
+ });
44
+ } else if (typeof icon === 'string') {
45
+ return jsx(DynamicIcon, {
46
+ icon: icon
47
+ });
48
+ } else {
49
+ return null;
50
+ }
51
+ };export{DynamicIcon,renderDynamicIcon};//# sourceMappingURL=DynamicIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DynamicIcon.js","sources":["../../src/helpers/DynamicIcon.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"uJAgBa,MAAA,WAAW,GAAoC,KAAK,CAAC,IAAI,CAClE,CAAC;MACS;WACG;;AAED,CAAA,KAAA;sBACY,EAAA,gBAAA,CAAA,GAAA,QAAA,CAAA,IAAA,CAAA;AACP,EAAA,SAAA,CAAA,MAAA;AACG,IAAA,MAAA,QAAA,SAAW;wBACS,GAAA,cAAI,CAAE,IAAC,CAAA;kBAC1B,CAAA,IAAA,CAAA,MAAA,IAAA;yBAAO,CAAA,OAAA,KAAA,QAAA,EAAA;0BACY,CAAA,MAAA,OAAI,YAAU,CAAA,CAAA;;AAEtC,UAAA,gBAAE,CAAA,MAAA,MAAA,CAAA,OAAA,CAAA;AACD;kBACmB,IAAA;AACpB,QAAA,gBAAG,CAAA,IAAA,CAAA;AACX,OAAA,CAAA;AACA,KAAA;AACJ,IAAA,QAAQ,EAAE;AAEV,GAAA,EAAA,CAAA,IAAkB,CAAA,CAAA;AAAE,EAAA,IAAA,CAAA,aAAY,EAAA,OAAA,IAAA;AAEhC,EAAA,OAAAA,GACI,CAAA,KAAA,EAAA;yBAI4B;iBACV,CAAA,aAAW,EAAA;AACjB,MAAA,SAAA,EAAA,aAAO;AACP,MAAA,KAAA,EAAA;wBACQ,EAAM,SAAA;AACjB,QAAA,MAAA,EAAA,SACQ,EAEX,SACR;AACN,QACU,KAAA,EAAE,SAAS,EAAE,CAAE,IACZ,MAAA;AAGjB,QAAa,MAAA,EAAA,SAAA,EAAA,CAAA,UAAyB;AAClC,QAAI,GAAO,KAAA,CAAA;AACP,OAAA;MACH,GAAA;AAAM,KAAA;AACH,GAAA,CAAA;IACJ,SAAC,EAAA,SAAA,KAAA,SAAA,CAAA,IAAA,KAAA,SAAA,CAAA,IAAA,IAAA,SAAA,CAAA,SAAA,EAAA,SAAA,KAAA,SAAA,CAAA,SAAA,EAAA,SAAA;AAAO,MAAA,iBAAA,GAAA,IAAA,IAAA;AACJ,EAAA,IAAA,OAAA,SAAY,QAAA,EAAA;IAChB,OAACA,GAAA,CAAA,WAAA,EAAA;AACL,MAAE,IAAA,EAAA,IAAA,CAAA,IAAA;;;;;;;;;;"}
@@ -0,0 +1,6 @@
1
+ export * from './useWindowSize';
2
+ export { default as useWindowSize } from './useWindowSize';
3
+ export * from './useTailwindTheme';
4
+ export * from './use-get-current-lat-long';
5
+ export * from './useMediaQuery';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ *
3
+ * Gets the current Ip address details of user by calling the geolocation
4
+ *
5
+ */
6
+ interface CurrentLocationLongLatInterface {
7
+ loading: boolean;
8
+ error: Error;
9
+ fetchCurrentLatLong: () => void;
10
+ permissionDenied: boolean;
11
+ location: {
12
+ latitude: number;
13
+ longitude: number;
14
+ };
15
+ }
16
+ export declare function useGetCurrentLongLat(): CurrentLocationLongLatInterface;
17
+ export {};
18
+ //# sourceMappingURL=use-get-current-lat-long.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-get-current-lat-long.d.ts","sourceRoot":"","sources":["../../src/hooks/use-get-current-lat-long.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,UAAU,+BAA+B;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,QAAQ,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;KACrB,CAAC;CACL;AAED,wBAAgB,oBAAoB,IAAI,+BAA+B,CA6BtE"}
@@ -0,0 +1,29 @@
1
+ import {reject}from'lodash-es';import originalAsyncFunc from'react-use/lib/useAsyncFn.js';import {useState}from'react';const useAsyncFn = originalAsyncFunc?.default || originalAsyncFunc;
2
+ function useGetCurrentLongLat() {
3
+ const [permissionDenied, setPermissionDenied] = useState(false);
4
+ // const { toastError } = Toast();
5
+ const [state, fetchCurrentLatLong] = useAsyncFn(() => new Promise(resolve => {
6
+ navigator.geolocation.getCurrentPosition(position => {
7
+ setPermissionDenied(false);
8
+ resolve({
9
+ latitude: position.coords.latitude,
10
+ longitude: position.coords.longitude
11
+ });
12
+ }, err => {
13
+ setPermissionDenied(true);
14
+ // toastError(err.message);
15
+ reject(err);
16
+ }, {
17
+ maximumAge: 60000,
18
+ timeout: 5000,
19
+ enableHighAccuracy: true
20
+ });
21
+ }));
22
+ return {
23
+ loading: state.loading,
24
+ location: state.value,
25
+ error: state.error,
26
+ permissionDenied,
27
+ fetchCurrentLatLong
28
+ };
29
+ }export{useGetCurrentLongLat};//# sourceMappingURL=use-get-current-lat-long.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-get-current-lat-long.js","sources":["../../src/hooks/use-get-current-lat-long.ts"],"sourcesContent":[null],"names":[],"mappings":"uHAIA,MAAM,UAAU,GAAI,iBAAyB,EAAE,OAAO,IAAI,iBAAiB;SAiB3D,oBAAoB,GAAA;QAC1B,CAAA,gBAAiB,EAAA,mBAAqB,CAAA,WAAY,CAAA,KAAM,CAAA;;AAG9D,EAAA,MAAA,CAAA,KAAY,EAAA,mBAAqB,CAAA,aAAc,CAAA,MACxC,IACK,OAAA,CAAA,OAAS;aACA,CAAA,8BAAa,CAAA,QACjB,IAAA;yBACsB,CAAA,KAAA,CAAC;AACpB,MAAA,OAAA,CAAA;AACJ,QAAA,QACI,EAAI,QAAA,CAAA,MAAA,CAAA,QAAA;iBACe,EAAA,QAAA,CAAA,MAAK,CAAA;;cAElB;AACV,MAAA,mBACc,KAAK,CAAE;;MAK9B,MAAA,CAAA,GAAA,CAAA;;gBAEK,EAAE,KAAK;aACV,EAAE,IAAK;wBACI,EAAA;;KAEnB;AACL,EAAC,OAAA;;;;;;;"}
@@ -0,0 +1,14 @@
1
+ interface MediaQueryResult {
2
+ width: number;
3
+ height: number;
4
+ isMobile: boolean;
5
+ xs: boolean;
6
+ sm: boolean;
7
+ md: boolean;
8
+ lg: boolean;
9
+ xl: boolean;
10
+ '2xl': boolean;
11
+ }
12
+ export declare const useMediaQuery: () => MediaQueryResult;
13
+ export {};
14
+ //# sourceMappingURL=useMediaQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMediaQuery.d.ts","sourceRoot":"","sources":["../../src/hooks/useMediaQuery.ts"],"names":[],"mappings":"AAEA,UAAU,gBAAgB;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,EAAE,EAAE,OAAO,CAAC;IACZ,EAAE,EAAE,OAAO,CAAC;IACZ,EAAE,EAAE,OAAO,CAAC;IACZ,EAAE,EAAE,OAAO,CAAC;IACZ,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;CAClB;AAoBD,eAAO,MAAM,aAAa,QAAO,gBAyChC,CAAC"}
@@ -0,0 +1,48 @@
1
+ import {useState,useEffect}from'react';const breakpoints = {
2
+ sm: 640,
3
+ md: 768,
4
+ lg: 1024,
5
+ xl: 1280,
6
+ '2xl': 1536
7
+ };
8
+ const getFlags = width => ({
9
+ xs: width < breakpoints.sm,
10
+ sm: width >= breakpoints.sm && width < breakpoints.md,
11
+ md: width >= breakpoints.md && width < breakpoints.lg,
12
+ lg: width >= breakpoints.lg && width < breakpoints.xl,
13
+ xl: width >= breakpoints.xl && width < breakpoints['2xl'],
14
+ '2xl': width >= breakpoints['2xl']
15
+ });
16
+ const useMediaQuery = () => {
17
+ const getDimensions = () => {
18
+ const width = window.innerWidth;
19
+ const height = window.innerHeight;
20
+ const isMobile = width < breakpoints.md;
21
+ const flags = getFlags(width);
22
+ return {
23
+ width,
24
+ height,
25
+ isMobile,
26
+ ...flags
27
+ };
28
+ };
29
+ const [state, setState] = useState(() => typeof window !== 'undefined' ? getDimensions() : {
30
+ width: 0,
31
+ height: 0,
32
+ isMobile: false,
33
+ xs: false,
34
+ sm: false,
35
+ md: false,
36
+ lg: false,
37
+ xl: false,
38
+ '2xl': false
39
+ });
40
+ useEffect(() => {
41
+ const handleResize = () => {
42
+ setState(getDimensions());
43
+ };
44
+ window.addEventListener('resize', handleResize);
45
+ return () => window.removeEventListener('resize', handleResize);
46
+ }, []);
47
+ return state;
48
+ };export{useMediaQuery};//# sourceMappingURL=useMediaQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMediaQuery.js","sources":["../../src/hooks/useMediaQuery.ts"],"sourcesContent":[null],"names":[],"mappings":"uCAcA,MAAM,WAAW,GAAG;AAChB,EACA,EAAA,EAAE,GAAK;AACP,EAAA,EAAA,EAAE,GAAK;AACP,EAAA,EAAA,EAAE,IAAM;AACR,EAAA,EAAA,EAAE,IAAM;AACR,EAAA,KAAA,EAAK;CACR;AAED,MAAM,QAAQ,GAAG,UAA2E;AACxF,EAAA,EAAA,EAAE,KAAE,GAAQ,WAAA,CAAA,EAAY;IACxB,EAAE,KAAO,IAAA,WAAe,CAAA,EAAC,IAAE,KAAS,GAAA,WAAc,CAAA,EAAC;IACnD,EAAE,KAAO,IAAA,WAAe,CAAA,EAAC,IAAE,KAAS,GAAA,WAAc,CAAA,EAAC;IACnD,EAAE,KAAO,IAAA,WAAe,CAAA,EAAC,IAAE,KAAS,GAAA,WAAc,CAAA,EAAC;AACnD,EAAA,EAAA,EAAE,KAAE,IAAS,WAAA,CAAA,EAAY,IAAM,KAAA,GAAQ,WAAA,CAAA,KAAY,CAAA;AACnD,EAAA,KAAA,EAAK,KAAO,IAAA,WAAe,CAAA;AAC9B,CAAA,CAAC;AAEK,MAAM,aAAa,GAAG,MAAuB;QAC1C,aAAA,GAAgB,MAAK;AACvB,IAAA,MAAA,KAAW,GAAA,MAAS,CAAA;AACpB,IAAA,MAAA,MAAY,GAAA,MAAS,CAAA;AACrB,IAAA,MAAA,gBAAiB,GAAA,WAAmB,CAAA,EAAA;AACpC,IAAA,MAAA,gBAAc,CAAA,KAAS,CAAA;WAEhB;;YAEH;cACQ;AACR,MAAA,GAAA;;AAER,GAAA;AAEA,EAAA,MAAA,CAAA,KAAO,EAAK,QAAE,CAAA,GAAY,QAAA,CAAA,MAAgC,OAC/C,MAAA,gBAAsB,GAAA,aAAA,EAAA,GAAA;SACxB;AACD,IAAA,MAAE,EAAA,CAAA;AACI,IAAA,QAAA,EAAA,KAAO;AACP,IAAA,EAAA,EAAA,KAAA;AACA,IAAA,EAAA,EAAA,KAAA;AACA,IAAA,EAAA,EAAA,KAAA;AACA,IAAA,EAAA,EAAA,KAAA;AACA,IAAA,EAAA,EAAA,KAAA;AACA,IAAA,KAAA,EAAA;AACA,GAAA,CAAA;AACA,EAAA,SAAA,CAAA;AACH,IAAA,MACV,YAAC,GAAA,MAAA;MAEO,QAAC,cAAK,EAAA,CAAA;;AAEP,IAAA,MAAA,CAAA,gBAAS,CAAA,QAAe,EAAE,YAAA,CAAA;AAC9B,IAAA,OAAE,MAAA,MAAA,CAAA,mBAAA,CAAA,QAAA,EAAA,YAAA,CAAA;AAEF,GAAA,EAAA,EAAA,CAAA;SACO,KAAA;"}
@@ -0,0 +1,12 @@
1
+ import { MutableRefObject } from 'react';
2
+ interface ScrollThresholdConfig {
3
+ threshold: number;
4
+ id: string;
5
+ useWindowScroll?: boolean;
6
+ }
7
+ export declare const useScrollThreshold: (configs: ScrollThresholdConfig[]) => {
8
+ containerRef: MutableRefObject<HTMLDivElement>;
9
+ componentVisibility: Record<string, boolean>;
10
+ };
11
+ export {};
12
+ //# sourceMappingURL=useScrollThreshold.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScrollThreshold.d.ts","sourceRoot":"","sources":["../../src/hooks/useScrollThreshold.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,gBAAgB,EAAe,MAAM,OAAO,CAAC;AAEnF,UAAU,qBAAqB;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AAYD,eAAO,MAAM,kBAAkB,GAAI,SAAS,qBAAqB,EAAE;;;CA4DlE,CAAC"}
@@ -0,0 +1,60 @@
1
+ import {useState,useRef,useCallback,useEffect}from'react';const throttle = (fn, wait = 100) => {
2
+ let time = Date.now();
3
+ return function (...args) {
4
+ if (time + wait - Date.now() < 0) {
5
+ fn(...args);
6
+ time = Date.now();
7
+ }
8
+ };
9
+ };
10
+ const useScrollThreshold = configs => {
11
+ const [componentVisibility, setComponentVisibility] = useState({});
12
+ const containerRef = useRef(null);
13
+ const visibilityRef = useRef({});
14
+ const updateVisibility = useCallback(scrollPosition => {
15
+ const newVisibility = {};
16
+ let hasChanges = false;
17
+ configs.forEach(({
18
+ threshold,
19
+ id
20
+ }) => {
21
+ const isVisible = scrollPosition >= threshold;
22
+ if (visibilityRef.current[id] !== isVisible) {
23
+ hasChanges = true;
24
+ }
25
+ newVisibility[id] = isVisible;
26
+ });
27
+ if (hasChanges) {
28
+ visibilityRef.current = newVisibility;
29
+ setComponentVisibility(newVisibility);
30
+ }
31
+ }, [configs]);
32
+ useEffect(() => {
33
+ const config = configs[0]; // Assuming we're only using one config for now
34
+ const useWindowScroll = config?.useWindowScroll ?? false;
35
+ const throttledUpdate = throttle(() => {
36
+ const scrollPosition = useWindowScroll ? window.scrollY : containerRef.current?.scrollTop ?? 0;
37
+ updateVisibility(scrollPosition);
38
+ }, 50);
39
+ const handleScroll = () => {
40
+ throttledUpdate();
41
+ };
42
+ if (useWindowScroll) {
43
+ window.addEventListener('scroll', handleScroll);
44
+ } else if (containerRef.current) {
45
+ containerRef.current.addEventListener('scroll', handleScroll);
46
+ }
47
+ updateVisibility(useWindowScroll ? window.scrollY : containerRef.current?.scrollTop ?? 0);
48
+ return () => {
49
+ if (useWindowScroll) {
50
+ window.removeEventListener('scroll', handleScroll);
51
+ } else if (containerRef.current) {
52
+ containerRef.current.removeEventListener('scroll', handleScroll);
53
+ }
54
+ };
55
+ }, [configs, updateVisibility]);
56
+ return {
57
+ containerRef,
58
+ componentVisibility
59
+ };
60
+ };export{useScrollThreshold};//# sourceMappingURL=useScrollThreshold.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScrollThreshold.js","sources":["../../src/hooks/useScrollThreshold.ts"],"sourcesContent":[null],"names":[],"mappings":"0DAQA,MAAM,QAAQ,GAAG,CAAC,EAAY,EAAE,IAAe,GAAA,GAAG,KAAI;AAClD,EAAA,IAAA,OAAW,IAAA,CAAA,GAAK,EAAG;SACZ,UAAA,OAAwB,EAAA;QAC3B,IAAI,GAAA,IAAO,GAAA,IAAO,CAAA,GAAI,EAAC,GAAK,CAAA,EAAA;AACxB,MAAA,EAAA,CAAA,GAAA,IAAG,CAAA;AACH,MAAA,IAAA,GAAA,IAAO,CAAA,GAAA,EAAI;;AAEnB,GAAA;AACJ,CAAC;AAEY,MAAA,kBAAkB,GAAG,OAAC,IAAoC;QAC7D,CAAA,mBAAoB,EAAA,sBAAwB,CAAA,WAAY,CAAA,EAA0B,CAAE;AAC1F,EAAA,MAAA,eAAqB,MAAA,CAAA,IAAuB,CAAA;AAC5C,EAAA,MAAA,gBAAsB,MAAA,CAAA,EAAgC,CAAA;AAEtD,EAAA,MAAA,mBAAyB,WAAA,CAAA,cACpB;UACS,aAAA,GAAA,EAAyC;QAC/C,UAAI,GAAA,KAAa;WAEV,CAAA,OAAQ,CAAA,CAAA;AACX,MAAA,SAAA;;;YAGA,SAAC,GAAA,cAAA,IAAA,SAAA;AACD,MAAA,IAAA,aAAA,CAAA,OAAiB,CAAG,iBAAU,EAAA;AAClC,QAAA,UAAG,GAAA,IAAA;;AAGC,MAAA,aAAA,CAAA,EAAA,CAAA,GAAc,SAAU;;QAE5B,UAAC,EAAA;AACL,MACA,aACF,CAAA,OAAA,GAAA,aAAA;MAEO,sBAAM,CAAA,aAAA,CAAA;;AAEX,GAAA,EAAA,CAAA,OAAA,CAAM;AAEN,EAAA,SAAA,CAAA,MAAqB;AACjB,IAAA,MAAA,MAAA;yBACgB,GAAA,MAAe,EAAA,eAAE,IAAA,KAAA;UACpC,eAAM,GAAA,QAAA,CAAA,MAAA;YAED,cAAY,GAAG,eAAK,GAAA,MAAA,CAAA,OAAA,GAAA,YAAA,CAAA,OAAA,EAAA,SAAA,IAAA,CAAA;AACtB,MAAA,gBAAA,CAAA,cAAkB,CAAA;AACtB,KAAA,EAAA,EAAC,CAAC;UAEE,YAAA,GAAA,MAAkB;AAClB,MAAA,eAAuB,EAAA;;AACpB,IAAA,IAAA,eAAgB,EAAA;YACnB,CAAY,yBAAS,EAAA,YAAyB,CAAA;WACjD,IAAA,YAAA,CAAA,OAAA,EAAA;AAED,MAAA,YAAA,CAAA,OAAgC,CAAA,gBAAG,CAAA,QAAc,EAAA,YAAG,CAAA;AAEpD;oBACQ,CAAA,eAAkB,GAAA,MAAA,CAAA,OAAA,GAAA,YAAA,CAAA,OAAA,EAAA,SAAA,IAAA,CAAA,CAAA;AAClB,IAAA,OAAA,MAAA;yBACH,EAAA;AAAM,QAAA,MAAA,CAAA,mBAAiB,CAAO,QAAE,EAAC,YAAA,CAAA;iBAClB,YAAC,QAAQ,EAAA;oBACxB,CAAA,OAAA,CAAA,mBAAA,CAAA,QAAA,EAAA,YAAA,CAAA;AACL;AACJ,KAAC;KAEM,CAAA,OAAA,EAAA,gBAAA,CAAA,CAAA;SACS;gBACO;;AAE3B,GAAE;"}
@@ -0,0 +1,34 @@
1
+ export type UseTailwindThemeReturnValue = {
2
+ toggleColorMode: () => void;
3
+ colorModeLabel: string;
4
+ ColorModeIcon: any;
5
+ color: string;
6
+ bgColor: string;
7
+ blackColor: string;
8
+ borderColor: string;
9
+ checkBgColor: string;
10
+ radioActiveBgColor: string;
11
+ checkInactiveColor: string;
12
+ grayColor: string;
13
+ greenColor: string;
14
+ passiveColor: string;
15
+ blueColor: string;
16
+ yellowColor: string;
17
+ becomeHostColor: string;
18
+ activeMenuBgColor: string;
19
+ shadowColor: string;
20
+ calendarAvailableColor: string;
21
+ calendarPartialColor: string;
22
+ calendarBlockColor: string;
23
+ discountColor: string;
24
+ cancelColor: string;
25
+ errorColor: string;
26
+ isDark: boolean;
27
+ textColor: string;
28
+ borderColorClass: string;
29
+ bgColorClass: string;
30
+ textColorClass: string;
31
+ shadowClass: string;
32
+ };
33
+ export declare const useTailwindTheme: () => UseTailwindThemeReturnValue;
34
+ //# sourceMappingURL=useTailwindTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTailwindTheme.d.ts","sourceRoot":"","sources":["../../src/hooks/useTailwindTheme.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,2BAA2B,GAAG;IACtC,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,GAAG,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAEhB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAO,2BAyFnC,CAAC"}
@@ -0,0 +1,82 @@
1
+ import {useState,useEffect}from'react';import {FaMoon}from'@react-icons/all-files/fa/FaMoon.js';import {FaSun}from'@react-icons/all-files/fa/FaSun.js';const useTailwindTheme = () => {
2
+ // Check if dark mode is preferred by user or system
3
+ const [isDark, setIsDark] = useState(() => {
4
+ if (typeof window !== 'undefined') {
5
+ // Check local storage first, then system preference
6
+ const storedTheme = localStorage.getItem('color-theme');
7
+ if (storedTheme === 'dark') return true;
8
+ if (storedTheme === 'light') return false;
9
+ return window.matchMedia('(prefers-color-scheme: dark)').matches;
10
+ }
11
+ return false;
12
+ });
13
+ // Set dark mode class on body when theme changes
14
+ useEffect(() => {
15
+ document.documentElement.classList.toggle('dark', isDark);
16
+ localStorage.setItem('color-theme', isDark ? 'dark' : 'light');
17
+ }, [isDark]);
18
+ const toggleColorMode = () => setIsDark(!isDark);
19
+ const colorModeLabel = isDark ? 'light' : 'dark';
20
+ const ColorModeIcon = isDark ? FaSun : FaMoon;
21
+ // Define colors for both light and dark modes
22
+ const bgColor = isDark ? '#1A202C' : 'white'; // gray-800 or white
23
+ const color = isDark ? 'white' : '#2d3748'; // white or gray-800
24
+ const grayColor = isDark ? '#A0AEC0' : '#4A5568'; // gray-400 or gray-600
25
+ const greenColor = '#38A169'; // green-500 in both modes
26
+ const passiveColor = isDark ? '#4A5568' : '#E2E8F0'; // gray-600 or gray-200
27
+ const borderColor = isDark ? '#4A5568' : '#E2E8F0'; // gray-600 or gray-200
28
+ const checkBgColor = isDark ? '#1A202C' : '#CBD5E0'; // gray-800 or gray-300
29
+ const radioActiveBgColor = isDark ? 'rgb(0 31 71)' : '#EBF8FF'; // custom dark blue or blue-50
30
+ const checkInactiveColor = isDark ? 'rgba(255, 255, 255, 0.4)' : '#CBD5E0'; // whiteAlpha-400 or gray-300
31
+ const blueColor = '#2869E0'; // same in both modes
32
+ const yellowColor = '#F5BC00'; // same in both modes
33
+ const blackColor = '#000'; // same in both modes
34
+ const becomeHostColor = isDark ? '#4299E1' : '#9DECF9'; // blue-400 or cyan-200
35
+ const activeMenuBgColor = isDark ? '#2D3748' : '#EDF2F7'; // gray-700 or gray-100
36
+ const shadowColor = isDark ? 'rgba(205, 205, 162, 0.25) 0px 6px 12px -2px, rgba(255,255,255, 0.3) 0px 3px 7px -3px' : 'rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px';
37
+ const calendarAvailableColor = '#3e9f31'; // same in both modes
38
+ const calendarPartialColor = '#31679f'; // same in both modes
39
+ const calendarBlockColor = isDark ? '#2d3748' : '#e2e8f0'; // gray-800 or gray-300
40
+ const discountColor = '#3182CE'; // blue-500 in both modes
41
+ const cancelColor = '#E53E3E'; // red-500 in both modes
42
+ const errorColor = '#C53030'; // red-600 in both modes
43
+ // Tailwind-specific class helpers
44
+ const textColorClass = isDark ? 'text-white' : 'text-gray-800';
45
+ const borderColorClass = isDark ? 'border-gray-600' : 'border-gray-200';
46
+ const bgColorClass = isDark ? 'bg-gray-800' : 'bg-white';
47
+ const textColor = isDark ? 'white' : 'gray-800';
48
+ const shadowClass = isDark ? 'shadow-dark' : 'shadow-light';
49
+ return {
50
+ toggleColorMode,
51
+ colorModeLabel,
52
+ ColorModeIcon,
53
+ color,
54
+ bgColor,
55
+ blackColor,
56
+ borderColor,
57
+ checkBgColor,
58
+ radioActiveBgColor,
59
+ checkInactiveColor,
60
+ grayColor,
61
+ greenColor,
62
+ passiveColor,
63
+ blueColor,
64
+ yellowColor,
65
+ becomeHostColor,
66
+ activeMenuBgColor,
67
+ shadowColor,
68
+ calendarAvailableColor,
69
+ calendarPartialColor,
70
+ calendarBlockColor,
71
+ discountColor,
72
+ cancelColor,
73
+ errorColor,
74
+ isDark,
75
+ // Tailwind specific
76
+ textColor,
77
+ borderColorClass,
78
+ bgColorClass,
79
+ textColorClass,
80
+ shadowClass
81
+ };
82
+ };export{useTailwindTheme};//# sourceMappingURL=useTailwindTheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTailwindTheme.js","sources":["../../src/hooks/useTailwindTheme.tsx"],"sourcesContent":[null],"names":[],"mappings":"uJAsCO,MAAM,gBAAgB,GAAG,MAAkC;;QAExD,CAAA,QAAO,SAAE,CAAA,GAAa,QAAA,CAAA,MAAc;AACtC,IAAA,IAAA,OAAW,MAAA,KAAW,WAAA,EAAA;;YAElB,WAAM,GAAA,YAA0B,CAAA,qBAAS,CAAA;qBACrC,KAAA,MAAgB,EAAM,OAAA,IAAA;AAAE,MAAA,IAAA,WAAA,YAAY,EAAA,OAAA,KAAA;aACpC,MAAA,CAAA,yCAAuB,CAAA,CAAA,OAAA;AAAE;gBACtB;;AAEX;AACJ,EAAA,SAAG,CAAA,MAAA;IAEH,QAAiD,CAAA,eAAA,CAAA,SAAA,CAAA,MAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IACjD,aAAa,OAAE,CAAA,aAAA,EAAA,MAAA,GAAA,MAAA,GAAA,OAAA,CAAA;YACH,CAAA,CAAA;AACR,EAAA,MAAA,eAAa,GAAA,MAAQ,SAAA,CAAa,OAAQ,CAAA;AAC9C,EAAA,MAAI,cAAS,GAAA,MAAA,GAAA,OAAA,GAAA,MAAA;QAEP,aAAA,GAAA,MAAkB,GAAK,cAAkB;;QAEzC,OAAA,GAAA,MAAgB,GAAA,SAAS,GAAA,OAAQ,CAAA;QAEO,KAAA,GAAA,MAAA,GAAA,OAAA,GAAA,SAAA,CAAA;AAC9C,EAAA,MAAA,SAAa,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAoB;AAClE,EAAA,MAAA,UAAc,GAAM,SAAU,CAAA;AAC9B,EAAA,MAAA,YAAe,GAAS,MAAC,GAAW,SAAC,GAAW,SAAC,CAAC;AAClD,EAAA,MAAA,WAAgB,GAAA,MAAY,GAAA,SAA4B,GAAA,SAAA,CAAA;AACxD,EAAA,MAAA,YAAkB,GAAA,MAAS,GAAC,SAAW,GAAC,SAAW,CAAA;AACnD,EAAA,MAAA,kBAA0B,GAAA,MAAY,GAAA,cAAY,GAAC,SAAwB,CAAA;AAC3E,EAAA,MAAA,kBAA2B,GAAA,MAAY,GAAA,0BAAqC,GAAA,SAAA,CAAA;AAC5E,EAAA,MAAA,SAAwB,GAAA,SAAA,CAAA;AACxB,EAAA,MAAA,WAAwB,GAAA,SAAG,CAAM;AACjC,EAAA,MAAA,UAAe,GAAA,MAAY,CAAA;AAC3B,EAAA,MAAA,eAAiB,GAAY,MAAA,GAAE,SAAqB,GAAA,SAAA,CAAA;AACpD,EAAA,MAAA,iBAAyB,GAAA,MAAuB,GAAA,SAAA,GAAA,SAAA,CAAA;AAChD,EAAA,MAAA,WAAqB,GAAA,MAAG,GAAM,sFAAiD,GAAA,+EAAA;AAC/E,EAAA,MAAA,sBAA0B,GAAM,SAAY,CAAA;QACtC,oBAAoB,GAAA,SAAA,CAAA;AACtB,EAAA,MAAA,kBAAwF,GAAA,MAAA,GAAA,SAAA,GAAA,SAAA,CAAA;QACxF;AAEJ,EAAA,MAAA,WAA4B,GAAA,SAAA,CAAA;AAC5B,EAAA,MAAA,UAA0B,GAAA,SAAA,CAAA;AAC1B;AACA,EAAA,MAAA,cAAmB,GAAA,MAAY,GAAA,YAA2B,GAAA,eAAA;AAC1D,EAAA,MAAA,gBAAoB,GAAS,MAAA,GAA0B,iBAAA,GAAA,iBAAA;AACvD,EAAA,MAAA,YAAgB,GAAG,MAAS,GAAA,aAA0B,GAAA,UAAA;QAEpB,SAAA,GAAA,MAAA,GAAA,OAAA,GAAA,UAAA;QAC5B,WAAA,GAAA,MAAiB,GAAA,aAAS,GAAA,cAAe;SACzC;IACN,eAAM;IACN,cAAM;IACN,aAAM;IAEN,KAAO;WACY;cACD;eACD;gBACR;sBACE;sBACG;aACC;cACC;gBACM;aACA;eACT;mBACC;qBACE;eACH;0BACE;wBACI;sBACE;iBACN;eACW;cACF;UACF;;aAEP;oBACD;gBACJ;kBACc;;;"}
@@ -0,0 +1,6 @@
1
+ declare function useWindowSize(): {
2
+ width: number;
3
+ height: number;
4
+ };
5
+ export default useWindowSize;
6
+ //# sourceMappingURL=useWindowSize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWindowSize.d.ts","sourceRoot":"","sources":["../../src/hooks/useWindowSize.ts"],"names":[],"mappings":"AAEA,iBAAS,aAAa;;;EAsBrB;AAED,eAAe,aAAa,CAAC"}
@@ -0,0 +1,20 @@
1
+ import {useState,useEffect}from'react';function useWindowSize() {
2
+ const [windowSize, setWindowSize] = useState({
3
+ width: typeof window !== 'undefined' ? window.innerWidth : 0,
4
+ // Check if window is defined
5
+ height: typeof window !== 'undefined' ? window.innerHeight : 0 // Check if window is defined
6
+ });
7
+ useEffect(() => {
8
+ function handleResize() {
9
+ setWindowSize({
10
+ width: window.innerWidth,
11
+ height: window.innerHeight
12
+ });
13
+ }
14
+ // Add event listener for window resize
15
+ window.addEventListener('resize', handleResize);
16
+ // Cleanup the event listener on component unmount
17
+ return () => window.removeEventListener('resize', handleResize);
18
+ }, []);
19
+ return windowSize;
20
+ }export{useWindowSize as default};//# sourceMappingURL=useWindowSize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWindowSize.js","sources":["../../src/hooks/useWindowSize.ts"],"sourcesContent":[null],"names":[],"mappings":"uCAEA,SAAS,aAAa,GAAA;AAClB,EAAA,MAAA,CAAA,UAAiB,EAAA,iBAAgB;AAC7B,IAAA,KAAA,EAAA,OAAc,MAAA,KAAW,WAAA,GAAA,MAAoB,CAAA,cAAW;AACxD;AACH,IAAA,MAAE,EAAA,OAAA,MAAA,KAAA,WAAA,GAAA,MAAA,CAAA,WAAA,GAAA,CAAA;IAEH;AACI,EAAA,SAAA,CAAA,MAAqB;AACjB,IAAA,SAAA,YAAa,GAAC;mBACL,CAAA;qBACC,CAAA,UAAoB;AAC7B,QAAA,MAAC,EAAC,MAAA,CAAA;QACP;;AAGA;UAEkD,CAAA,gBAAA,CAAA,QAAA,EAAA,YAAA,CAAA;;IAEtD,OAAO,MAAA,MAAA,CAAA,mBAAA,CAAA,QAAA,EAAA,YAAA,CAAA;AAEP,GAAA,EAAA,EAAA,CAAA;AACJ,EAAC,OAAA,UAAA;AAED"}
package/lib/icons.d.ts CHANGED
@@ -10,5 +10,7 @@ export declare const icons: {
10
10
  CheckIcon: import("@react-icons/all-files/lib").IconType;
11
11
  ChevronBackCircleIcon: import("@react-icons/all-files/lib").IconType;
12
12
  ChevronForwardCircleIcon: import("@react-icons/all-files/lib").IconType;
13
+ ChevronUpIcon: import("@react-icons/all-files/lib").IconType;
14
+ ChevronLeftIcon: import("@react-icons/all-files/lib").IconType;
13
15
  };
14
16
  //# sourceMappingURL=icons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../src/icons.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,KAAK;;;;;;;;;;;;CAYjB,CAAC"}
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../src/icons.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;CAcjB,CAAC"}
package/lib/icons.js CHANGED
@@ -1,13 +1,12 @@
1
- import {FaSearch}from'@react-icons/all-files/fa/FaSearch.js';import {IoMenu}from'@react-icons/all-files/io5/IoMenu.js';import {AiOutlineDash}from'@react-icons/all-files/ai/AiOutlineDash.js';import {FaChevronDown}from'@react-icons/all-files/fa/FaChevronDown.js';import {FaChevronRight}from'@react-icons/all-files/fa/FaChevronRight.js';import {MdClose}from'@react-icons/all-files/md/MdClose.js';import {RiSettings5Fill}from'@react-icons/all-files/ri/RiSettings5Fill.js';import {IoMdCopy}from'@react-icons/all-files/io/IoMdCopy.js';import {FaCheck}from'@react-icons/all-files/fa/FaCheck.js';import {IoChevronBackCircleOutline}from'@react-icons/all-files/io5/IoChevronBackCircleOutline.js';import {IoChevronForwardCircleOutline}from'@react-icons/all-files/io5/IoChevronForwardCircleOutline.js';const icons = {
1
+ import {FaSearch}from'@react-icons/all-files/fa/FaSearch.js';import {IoMenu}from'@react-icons/all-files/io5/IoMenu.js';import'@react-icons/all-files/ai/AiOutlineDash.js';import {FaChevronDown}from'@react-icons/all-files/fa/FaChevronDown.js';import {FaChevronUp}from'@react-icons/all-files/fa/FaChevronUp.js';import {FaChevronRight}from'@react-icons/all-files/fa/FaChevronRight.js';import {FaChevronLeft}from'@react-icons/all-files/fa/FaChevronLeft.js';import {MdClose}from'@react-icons/all-files/md/MdClose.js';import {RiSettings5Fill}from'@react-icons/all-files/ri/RiSettings5Fill.js';import {IoMdCopy}from'@react-icons/all-files/io/IoMdCopy.js';import {FaCheck}from'@react-icons/all-files/fa/FaCheck.js';import'@react-icons/all-files/io5/IoChevronBackCircleOutline.js';import'@react-icons/all-files/io5/IoChevronForwardCircleOutline.js';const icons = {
2
2
  SearchIcon: FaSearch,
3
3
  ChevronDownIcon: FaChevronDown,
4
4
  ChevronRightIcon: FaChevronRight,
5
5
  MenuIcon: IoMenu,
6
- OutlineDashIcon: AiOutlineDash,
7
6
  CloseIcon: MdClose,
8
7
  Settings5FillIcon: RiSettings5Fill,
9
8
  CopyIcon: IoMdCopy,
10
9
  CheckIcon: FaCheck,
11
- ChevronBackCircleIcon: IoChevronBackCircleOutline,
12
- ChevronForwardCircleIcon: IoChevronForwardCircleOutline
10
+ ChevronUpIcon: FaChevronUp,
11
+ ChevronLeftIcon: FaChevronLeft
13
12
  };export{icons};//# sourceMappingURL=icons.js.map
package/lib/icons.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"icons.js","sources":["../src/icons.ts"],"sourcesContent":[null],"names":[],"mappings":"sxBAYa,MAAA,KAAK,GAAG;sBACP;gCACK;kCACC;kBACR;gCACO;oBACN;oCACQ;oBACT;oBACC;mDACY;;"}
1
+ {"version":3,"file":"icons.js","sources":["../src/icons.ts"],"sourcesContent":[null],"names":[],"mappings":"u0BAca,MAAA,KAAK,GAAG;sBACP;gCACK;kCACC;kBACR;oBAEC;oCACQ;oBACT;oBACC;4BAGI;;"}
package/lib/index.d.ts CHANGED
@@ -1,4 +1,7 @@
1
1
  import { Feature } from '@common-stack/client-react';
2
+ export * from './tailwindConfig';
3
+ export * from './components/ThemeProvider';
4
+ export * from './redux';
2
5
  declare const _default: Feature;
3
6
  export default _default;
4
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;;AAErD,wBAAqC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,SAAS,CAAC;;AAExB,wBAAqC"}
package/lib/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import {Feature}from'@common-stack/client-react';import settings from'./module.js';// eslint-disable-next-line import/no-extraneous-dependencies
1
+ import {Feature}from'@common-stack/client-react';import settings from'./module.js';export{themeConfig}from'./tailwindConfig.js';export{ThemeProviderTailwind,useTheme}from'./components/ThemeProvider/ThemeProvider.js';export{ThemeToggle}from'./components/ThemeProvider/ThemeToggle.js';export{SEARCH_ACTIONS,clearSearch,searchReducer,setSearchError,setSearchQuery,setSearchResult}from'./redux/searchReducer.js';// eslint-disable-next-line import/no-extraneous-dependencies
2
2
  var index = new Feature(settings);export{index as default};//# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":"mFAAA;AAGA,YAAe,IAAI,OAAO,CAAC,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":"wZAAA;AAOA,YAAe,IAAI,OAAO,CAAC,QAAQ,CAAC"}
@@ -1,3 +1,6 @@
1
1
  import { MachineEvent, SettingsContext } from './types';
2
- export declare const settingsMachine: import("xstate").StateMachine<SettingsContext, MachineEvent, Record<string, import("xstate").AnyActorRef>, import("xstate").ProvidedActor, import("xstate").ParameterizedObject, import("xstate").ParameterizedObject, string, import("xstate").StateValue, string, unknown, {}, import("xstate").EventObject, import("xstate").MetaObject, any>;
2
+ export declare const settingsMachine: import("xstate").StateMachine<SettingsContext, MachineEvent, Record<string, import("xstate").AnyActorRef>, import("xstate").ProvidedActor, import("xstate").ParameterizedObject, import("xstate").ParameterizedObject, string, import("xstate").StateValue, string, {
3
+ settings: SettingsContext;
4
+ routeSettings?: Record<string, Partial<SettingsContext>>;
5
+ }, {}, import("xstate").EventObject, import("xstate").MetaObject, any>;
3
6
  //# sourceMappingURL=settingsMachine.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"settingsMachine.d.ts","sourceRoot":"","sources":["../../src/machines/settingsMachine.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgB,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAWtE,eAAO,MAAM,eAAe,kVAoN1B,CAAC"}
1
+ {"version":3,"file":"settingsMachine.d.ts","sourceRoot":"","sources":["../../src/machines/settingsMachine.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,YAAY,EACZ,eAAe,EAMlB,MAAM,SAAS,CAAC;AAyFjB,eAAO,MAAM,eAAe;cAON,eAAe;oBACT,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;sEAiNlE,CAAC"}