@admin-layout/tailwind-design-pro 11.0.4-alpha.4 → 12.0.16-alpha.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.
- package/README.md +401 -1
- package/lib/cdm-locales/en/settings.json +40 -1
- package/lib/cdm-locales/es/settings.json +42 -3
- package/lib/components/LanguageMenu/LanguageMenu.d.ts.map +1 -1
- package/lib/components/LanguageMenu/LanguageMenu.js +8 -18
- package/lib/components/LanguageMenu/LanguageMenu.js.map +1 -1
- package/lib/components/Layout/BasicLayout/index.d.ts +1 -8
- package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/index.js +140 -64
- package/lib/components/Layout/BasicLayout/index.js.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.js +1 -14
- package/lib/components/Layout/BasicLayout/utils.js.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts +1 -8
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalFooter/Copyright.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/Footer.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.d.ts +1 -14
- package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.js +78 -53
- package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/Logo.d.ts +4 -0
- package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +1 -0
- package/lib/components/Layout/GlobalHeader/Logo.js +141 -0
- package/lib/components/Layout/GlobalHeader/Logo.js.map +1 -0
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +6 -0
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -0
- package/lib/components/Layout/GlobalHeader/MainHeader.js +228 -0
- package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -0
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts +1 -12
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js +4 -4
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts +2 -16
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.js +23 -0
- package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -0
- package/lib/components/Layout/GlobalHeader/RightMenu.d.ts +4 -0
- package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -0
- package/lib/components/Layout/GlobalHeader/RightMenu.js +274 -0
- package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -0
- package/lib/components/Layout/GlobalHeader/SearchBar.d.ts +9 -0
- package/lib/components/Layout/GlobalHeader/SearchBar.d.ts.map +1 -0
- package/lib/components/Layout/GlobalHeader/SearchBar.js +118 -0
- package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -0
- package/lib/components/Layout/GlobalHeader/index.d.ts +4 -0
- package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -0
- package/lib/components/Layout/ProTailwindLayout.d.ts +2 -0
- package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.js +7 -3
- package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
- package/lib/components/Layout/Sidebar/Divider.d.ts +1 -31
- package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts +5 -0
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/DynamicIcon.js +51 -0
- package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -0
- package/lib/components/Layout/Sidebar/Sidebar.d.ts +1 -11
- package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/Sidebar.js +117 -78
- package/lib/components/Layout/Sidebar/Sidebar.js.map +1 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts +3 -5
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.js +132 -45
- package/lib/components/Layout/Sidebar/SidebarMenu.js.map +1 -1
- package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/TailwindLayout.js +34 -14
- package/lib/components/Layout/TailwindLayout.js.map +1 -1
- package/lib/components/Layout/getPageTitle.d.ts +1 -16
- package/lib/components/Layout/getPageTitle.d.ts.map +1 -1
- package/lib/components/Layout/getPageTitle.js +1 -1
- package/lib/components/Layout/getPageTitle.js.map +1 -1
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts +4 -0
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/AdditionalSettings.js +7 -0
- package/lib/components/Layout/slot-fill/AdditionalSettings.js.map +1 -0
- package/lib/components/Layout/slot-fill/Footer.d.ts +1 -1
- package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.js +6 -6
- package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderNotice.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts +3 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js +6 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts +3 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js +6 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -0
- package/lib/components/Layout/slot-fill/RightContent.d.ts +3 -0
- package/lib/components/Layout/slot-fill/RightContent.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/RightContent.js +6 -0
- package/lib/components/Layout/slot-fill/RightContent.js.map +1 -0
- package/lib/components/Layout/slot-fill/index.d.ts +4 -0
- package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
- package/lib/components/Layout/util.d.ts.map +1 -1
- package/lib/components/Layout/util.js +12 -0
- package/lib/components/Layout/util.js.map +1 -0
- package/lib/components/SettingDrawer/CheckBoxTheme.d.ts +1 -6
- package/lib/components/SettingDrawer/CheckBoxTheme.d.ts.map +1 -1
- package/lib/components/SettingDrawer/CheckBoxTheme.js +106 -31
- package/lib/components/SettingDrawer/CheckBoxTheme.js.map +1 -1
- package/lib/components/SettingDrawer/InvitationSettings.d.ts +3 -0
- package/lib/components/SettingDrawer/InvitationSettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/InvitationSettings.js +79 -0
- package/lib/components/SettingDrawer/InvitationSettings.js.map +1 -0
- package/lib/components/SettingDrawer/LayoutChange.d.ts +2 -6
- package/lib/components/SettingDrawer/LayoutChange.d.ts.map +1 -1
- package/lib/components/SettingDrawer/LayoutChange.js +84 -30
- package/lib/components/SettingDrawer/LayoutChange.js.map +1 -1
- package/lib/components/SettingDrawer/NavigationsModes.d.ts +3 -0
- package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +1 -0
- package/lib/components/SettingDrawer/NavigationsModes.js +289 -0
- package/lib/components/SettingDrawer/NavigationsModes.js.map +1 -0
- package/lib/components/SettingDrawer/RegionalSettings.d.ts +1 -6
- package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +1 -1
- package/lib/components/SettingDrawer/RegionalSettings.js +696 -51
- package/lib/components/SettingDrawer/RegionalSettings.js.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.d.ts +2 -25
- package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.js +249 -113
- package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
- package/lib/components/SettingDrawer/Switch/index.d.ts +2 -8
- package/lib/components/SettingDrawer/Switch/index.d.ts.map +1 -1
- package/lib/components/SettingDrawer/Switch/index.js +17 -34
- package/lib/components/SettingDrawer/Switch/index.js.map +1 -1
- package/lib/components/SettingDrawer/ThemeColor.d.ts +1 -6
- package/lib/components/SettingDrawer/ThemeColor.d.ts.map +1 -1
- package/lib/components/SettingDrawer/ThemeColor.js +3 -0
- package/lib/components/SettingDrawer/ThemeColor.js.map +1 -1
- package/lib/components/SettingDrawer/ThemeSelector.d.ts +3 -0
- package/lib/components/SettingDrawer/ThemeSelector.d.ts.map +1 -0
- package/lib/components/SettingDrawer/ThemeSelector.js +18 -0
- package/lib/components/SettingDrawer/ThemeSelector.js.map +1 -0
- package/lib/components/SettingDrawer/WebFontsSelector.d.ts +3 -0
- package/lib/components/SettingDrawer/WebFontsSelector.d.ts.map +1 -0
- package/lib/components/SettingDrawer/WebFontsSelector.js +24 -0
- package/lib/components/SettingDrawer/WebFontsSelector.js.map +1 -0
- package/lib/components/SettingDrawer/types.d.ts +91 -0
- package/lib/components/SettingDrawer/types.d.ts.map +1 -0
- package/lib/components/UI/CardList.d.ts +61 -0
- package/lib/components/UI/CardList.d.ts.map +1 -0
- package/lib/components/UI/CardList.js +43 -0
- package/lib/components/UI/CardList.js.map +1 -0
- package/lib/components/UI/CategoriesTypeList.d.ts +29 -0
- package/lib/components/UI/CategoriesTypeList.d.ts.map +1 -0
- package/lib/components/UI/CategoriesTypeList.js +140 -0
- package/lib/components/UI/CategoriesTypeList.js.map +1 -0
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts +83 -0
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts.map +1 -0
- package/lib/components/UI/LazyLoadingGoogleMarker.js +107 -0
- package/lib/components/UI/LazyLoadingGoogleMarker.js.map +1 -0
- package/lib/components/UI/Pagination.d.ts +6 -0
- package/lib/components/UI/Pagination.d.ts.map +1 -0
- package/lib/components/UI/Pagination.js +59 -0
- package/lib/components/UI/Pagination.js.map +1 -0
- package/lib/components/UI/ParamSearchResultContainer.d.ts +99 -0
- package/lib/components/UI/ParamSearchResultContainer.d.ts.map +1 -0
- package/lib/components/UI/ParamSearchResultContainer.js +120 -0
- package/lib/components/UI/ParamSearchResultContainer.js.map +1 -0
- package/lib/components/UI/PropertyCard.d.ts +24 -0
- package/lib/components/UI/PropertyCard.d.ts.map +1 -0
- package/lib/components/UI/PropertyCard.js +417 -0
- package/lib/components/UI/PropertyCard.js.map +1 -0
- package/lib/components/UI/PropertyCardOnMap.d.ts +10 -0
- package/lib/components/UI/PropertyCardOnMap.d.ts.map +1 -0
- package/lib/components/UI/PropertyCardOnMap.js +108 -0
- package/lib/components/UI/PropertyCardOnMap.js.map +1 -0
- package/lib/components/UI/VehicleCard/PricePopover.d.ts +8 -0
- package/lib/components/UI/VehicleCard/PricePopover.d.ts.map +1 -0
- package/lib/components/UI/VehicleCard/PricePopover.js +98 -0
- package/lib/components/UI/VehicleCard/PricePopover.js.map +1 -0
- package/lib/components/UI/VehicleCard/VehicleBadge.d.ts +7 -0
- package/lib/components/UI/VehicleCard/VehicleBadge.d.ts.map +1 -0
- package/lib/components/UI/VehicleCard/VehicleFeature.d.ts +9 -0
- package/lib/components/UI/VehicleCard/VehicleFeature.d.ts.map +1 -0
- package/lib/components/UI/VehicleCard/VehicleFeature.js +23 -0
- package/lib/components/UI/VehicleCard/VehicleFeature.js.map +1 -0
- package/lib/components/UI/VehicleCard/types.d.ts +59 -0
- package/lib/components/UI/VehicleCard/types.d.ts.map +1 -0
- package/lib/components/UI/VehicleCard.d.ts +15 -0
- package/lib/components/UI/VehicleCard.d.ts.map +1 -0
- package/lib/components/UI/VehicleCard.js +166 -0
- package/lib/components/UI/VehicleCard.js.map +1 -0
- package/lib/components/UI/VehicleCardList.d.ts +14 -0
- package/lib/components/UI/VehicleCardList.d.ts.map +1 -0
- package/lib/components/UI/VehicleCardList.js +38 -0
- package/lib/components/UI/VehicleCardList.js.map +1 -0
- package/lib/components/UI/VehicleParamSearchResultContainer.d.ts +90 -0
- package/lib/components/UI/VehicleParamSearchResultContainer.d.ts.map +1 -0
- package/lib/components/UI/icons/LocationIcon.d.ts +7 -0
- package/lib/components/UI/icons/LocationIcon.d.ts.map +1 -0
- package/lib/components/UI/icons/LocationIcon.js +18 -0
- package/lib/components/UI/icons/LocationIcon.js.map +1 -0
- package/lib/components/UI/icons/index.d.ts +2 -0
- package/lib/components/UI/icons/index.d.ts.map +1 -0
- package/lib/components/UI/index.d.ts +10 -0
- package/lib/components/UI/index.d.ts.map +1 -0
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +11 -1
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
- package/lib/components/index.d.ts +3 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/typings.d.ts +139 -49
- package/lib/components/typings.d.ts.map +1 -1
- package/lib/components/typings.js +6 -0
- package/lib/components/typings.js.map +1 -0
- package/lib/compute.d.ts.map +1 -1
- package/lib/compute.js +6 -4
- package/lib/compute.js.map +1 -1
- package/lib/config/analytics-config.d.ts +59 -0
- package/lib/config/analytics-config.d.ts.map +1 -0
- package/lib/config/constants.d.ts +8 -0
- package/lib/config/constants.d.ts.map +1 -0
- package/lib/config/constants.js +32 -0
- package/lib/config/constants.js.map +1 -0
- package/lib/config/env-config.d.ts +18 -0
- package/lib/config/env-config.d.ts.map +1 -1
- package/lib/config/env-config.js +76 -1
- package/lib/config/env-config.js.map +1 -1
- package/lib/config/index.d.ts +3 -0
- package/lib/config/index.d.ts.map +1 -0
- package/lib/helpers/DynamicIcon.d.ts +7 -4
- package/lib/helpers/DynamicIcon.d.ts.map +1 -1
- package/lib/helpers/DynamicIcon.js +51 -0
- package/lib/helpers/DynamicIcon.js.map +1 -0
- package/lib/hooks/index.d.ts +6 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/use-get-current-lat-long.d.ts +18 -0
- package/lib/hooks/use-get-current-lat-long.d.ts.map +1 -0
- package/lib/hooks/use-get-current-lat-long.js +29 -0
- package/lib/hooks/use-get-current-lat-long.js.map +1 -0
- package/lib/hooks/useMediaQuery.d.ts +14 -0
- package/lib/hooks/useMediaQuery.d.ts.map +1 -0
- package/lib/hooks/useMediaQuery.js +48 -0
- package/lib/hooks/useMediaQuery.js.map +1 -0
- package/lib/hooks/useScrollThreshold.d.ts +12 -0
- package/lib/hooks/useScrollThreshold.d.ts.map +1 -0
- package/lib/hooks/useScrollThreshold.js +60 -0
- package/lib/hooks/useScrollThreshold.js.map +1 -0
- package/lib/hooks/useTailwindTheme.d.ts +34 -0
- package/lib/hooks/useTailwindTheme.d.ts.map +1 -0
- package/lib/hooks/useTailwindTheme.js +82 -0
- package/lib/hooks/useTailwindTheme.js.map +1 -0
- package/lib/hooks/useWindowSize.d.ts +6 -0
- package/lib/hooks/useWindowSize.d.ts.map +1 -0
- package/lib/hooks/useWindowSize.js +20 -0
- package/lib/hooks/useWindowSize.js.map +1 -0
- package/lib/icons.d.ts +16 -0
- package/lib/icons.d.ts.map +1 -0
- package/lib/icons.js +12 -0
- package/lib/icons.js.map +1 -0
- package/lib/index.d.ts +2 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/machines/settingsMachine.d.ts +6 -0
- package/lib/machines/settingsMachine.d.ts.map +1 -0
- package/lib/machines/settingsMachine.js +206 -0
- package/lib/machines/settingsMachine.js.map +1 -0
- package/lib/machines/types.d.ts +174 -0
- package/lib/machines/types.d.ts.map +1 -0
- package/lib/machines/types.js +5 -0
- package/lib/machines/types.js.map +1 -0
- package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts +6 -0
- package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts.map +1 -0
- package/lib/middlewares/bookingCarRentalMiddleware.d.ts +6 -0
- package/lib/middlewares/bookingCarRentalMiddleware.d.ts.map +1 -0
- package/lib/middlewares/bookingDatasourcesMiddleware.d.ts +7 -0
- package/lib/middlewares/bookingDatasourcesMiddleware.d.ts.map +1 -0
- package/lib/middlewares/datasourcesMiddleware.d.ts +6 -0
- package/lib/middlewares/datasourcesMiddleware.d.ts.map +1 -0
- package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts +7 -0
- package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts.map +1 -0
- package/lib/module.d.ts +0 -1
- package/lib/module.d.ts.map +1 -1
- package/lib/module.js +14 -15
- package/lib/module.js.map +1 -1
- package/lib/redux/index.d.ts +2 -0
- package/lib/redux/index.d.ts.map +1 -0
- package/lib/redux/searchReducer.d.ts +42 -0
- package/lib/redux/searchReducer.d.ts.map +1 -0
- package/lib/redux/searchReducer.js +64 -0
- package/lib/redux/searchReducer.js.map +1 -0
- package/lib/routes.json +1 -0
- package/lib/styles/index-bk.css +443 -0
- package/lib/styles/index.css +667 -45
- package/lib/tailwindConfig.d.ts +100 -0
- package/lib/tailwindConfig.d.ts.map +1 -0
- package/lib/tailwindConfig.js +101 -0
- package/lib/tailwindConfig.js.map +1 -0
- package/lib/utils/analytics-utils.d.ts +43 -0
- package/lib/utils/analytics-utils.d.ts.map +1 -0
- package/lib/utils/analytics.d.ts +48 -0
- package/lib/utils/analytics.d.ts.map +1 -0
- package/lib/utils/formateCarData.d.ts +2 -0
- package/lib/utils/formateCarData.d.ts.map +1 -0
- package/lib/utils/menu.d.ts.map +1 -1
- package/lib/utils/test-utils.d.ts.map +1 -1
- package/lib/utils/utils/index.d.ts.map +1 -1
- package/package.json +7 -5
- package/lib/components/Layout/GlobalFooter/Copyright.js +0 -8
- package/lib/components/Layout/GlobalFooter/Copyright.js.map +0 -1
- package/lib/components/Layout/GlobalFooter/Footer.js +0 -22
- package/lib/components/Layout/GlobalFooter/Footer.js.map +0 -1
- package/lib/components/defaultSettings.d.ts +0 -4
- package/lib/components/defaultSettings.d.ts.map +0 -1
- package/lib/components/defaultSettings.js +0 -14
- package/lib/components/defaultSettings.js.map +0 -1
- package/lib/utils/index.d.ts +0 -2
- package/lib/utils/index.d.ts.map +0 -1
- package/lib/utils/index.js +0 -13
- package/lib/utils/index.js.map +0 -1
|
@@ -1,39 +1,22 @@
|
|
|
1
|
-
import {jsxs,jsx}from'react/jsx-runtime';
|
|
2
|
-
value,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
settings
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';function Switch({
|
|
2
|
+
value = false,
|
|
3
|
+
onChange,
|
|
4
|
+
className = ''
|
|
6
5
|
}) {
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
setChecked(value);
|
|
10
|
-
}, [value]);
|
|
11
|
-
const handleChecked = () => {
|
|
12
|
-
const regionalSetting = ['header', 'footer', 'searchBar', 'menu', 'menuHeader'];
|
|
13
|
-
regionalSetting.forEach(key => {
|
|
14
|
-
if (settingKey === `${key}Render`) {
|
|
15
|
-
setChecked(!checked);
|
|
16
|
-
changeSetting(settingKey, settings[`${key}Render`] == undefined ? false : undefined);
|
|
17
|
-
} else {
|
|
18
|
-
changeSetting(settingKey, !checked);
|
|
19
|
-
setChecked(value);
|
|
20
|
-
}
|
|
21
|
-
});
|
|
6
|
+
const handleClick = () => {
|
|
7
|
+
onChange?.(!value);
|
|
22
8
|
};
|
|
23
|
-
return jsxs("
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
className:
|
|
31
|
-
children:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
boxShadow: '1px 3px 3px 1px rgba(0, 0, 0, 0.2)'
|
|
35
|
-
}
|
|
36
|
-
})
|
|
9
|
+
return jsxs("button", {
|
|
10
|
+
type: "button",
|
|
11
|
+
role: "switch",
|
|
12
|
+
"aria-checked": value,
|
|
13
|
+
className: `relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 ${value ? 'bg-indigo-600' : 'bg-gray-200'} ${className}`,
|
|
14
|
+
onClick: handleClick,
|
|
15
|
+
children: [jsx("span", {
|
|
16
|
+
className: "sr-only",
|
|
17
|
+
children: "Toggle switch"
|
|
18
|
+
}), jsx("span", {
|
|
19
|
+
className: `inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${value ? 'translate-x-6' : 'translate-x-1'}`
|
|
37
20
|
})]
|
|
38
21
|
});
|
|
39
22
|
}export{Switch};//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/SettingDrawer/Switch/index.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/SettingDrawer/Switch/index.tsx"],"sourcesContent":[null],"names":[],"mappings":"yCAGgB,SAAA,MAAM,CAAC;OACb,GAAA,KAAA;AACF,EAAA,QAAA;AACJ,EAAA,SAAE,GAAA;;AAoBN,EAAC,MAAA,WAAA,GAAA,MAAA;;;;;;;;;;;;;;;;"}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
color?: any[];
|
|
3
|
-
changeSetting?: (key: string, value: string | boolean | any) => void;
|
|
4
|
-
settings?: any;
|
|
5
|
-
};
|
|
1
|
+
import { IThemeColorProps } from './types';
|
|
6
2
|
export default function ThemeColor(props: IThemeColorProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
8
3
|
//# sourceMappingURL=ThemeColor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeColor.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/ThemeColor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThemeColor.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/ThemeColor.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,gBAAgB,2CAwCzD"}
|
|
@@ -4,6 +4,9 @@ import {jsx}from'react/jsx-runtime';function ThemeColor(props) {
|
|
|
4
4
|
changeSetting,
|
|
5
5
|
settings
|
|
6
6
|
} = props;
|
|
7
|
+
if (!color || color.length < 1) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
7
10
|
return jsx("div", {
|
|
8
11
|
className: "flex flex-row space-x-2",
|
|
9
12
|
children: color.map((item, index) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeColor.js","sources":["../../../src/components/SettingDrawer/ThemeColor.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThemeColor.js","sources":["../../../src/components/SettingDrawer/ThemeColor.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"oCAGwB,SAAA,UAAU,CAAC,KAAuB,EAAA;QAChD;IAEN,KAAK;AACD,IAAA;IACJ;AAEA,GAAA,GAAA,KAAO;AAGK,EAAA,IAAA,CAAA,KAAA,IAAA,KAGQ,CAAA,MAAA,GAAA,CAAA,EAAA;AAGI,IAAA,OAAA,IAAA;;SAqBfA,GACC,CACT,KAAC,EAAA;AACN,IAAC,SAAA,EAAA,yBAAA;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeSelector.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/ThemeSelector.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,kBAAkB,2CAgB7E"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {jsx}from'react/jsx-runtime';function ThemeSelector({
|
|
2
|
+
value,
|
|
3
|
+
onChange,
|
|
4
|
+
options
|
|
5
|
+
}) {
|
|
6
|
+
return jsx("div", {
|
|
7
|
+
className: "relative",
|
|
8
|
+
children: jsx("select", {
|
|
9
|
+
value: value,
|
|
10
|
+
onChange: e => onChange(e.target.value),
|
|
11
|
+
className: "w-full rounded-md border border-gray-300 bg-white py-2 pl-3 pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-200",
|
|
12
|
+
children: options.map(option => jsx("option", {
|
|
13
|
+
value: option.key,
|
|
14
|
+
children: option.title
|
|
15
|
+
}, option.key))
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
}export{ThemeSelector};//# sourceMappingURL=ThemeSelector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeSelector.js","sources":["../../../src/components/SettingDrawer/ThemeSelector.tsx"],"sourcesContent":[null],"names":[],"mappings":"oCAGM,SAAU,aAAa,CAAC;AAC1B,EAAA,KAAA;AAeJ,EAAC,QAAA;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebFontsSelector.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/WebFontsSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAiB5D,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {jsx}from'react/jsx-runtime';const WebFontsSelector = ({
|
|
2
|
+
value,
|
|
3
|
+
onChange,
|
|
4
|
+
options
|
|
5
|
+
}) => {
|
|
6
|
+
return jsx("div", {
|
|
7
|
+
className: "relative",
|
|
8
|
+
children: jsx("select", {
|
|
9
|
+
value: value,
|
|
10
|
+
onChange: e => onChange(e.target.value),
|
|
11
|
+
className: "w-full rounded-md border border-gray-300 bg-white py-2 pl-3 pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-200",
|
|
12
|
+
style: {
|
|
13
|
+
fontFamily: value
|
|
14
|
+
},
|
|
15
|
+
children: options.map(option => jsx("option", {
|
|
16
|
+
value: option.key,
|
|
17
|
+
style: {
|
|
18
|
+
fontFamily: option.key
|
|
19
|
+
},
|
|
20
|
+
children: option.title
|
|
21
|
+
}, option.key))
|
|
22
|
+
})
|
|
23
|
+
});
|
|
24
|
+
};export{WebFontsSelector};//# sourceMappingURL=WebFontsSelector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebFontsSelector.js","sources":["../../../src/components/SettingDrawer/WebFontsSelector.tsx"],"sourcesContent":[null],"names":[],"mappings":"oCAEO,MAAM,gBAAgB,GAAoC,CAAC;AAC9D,EAAA,KAAA;AAgBJ,EAAE,QAAA;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { ProSettings } from '@admin-layout/client';
|
|
2
|
+
export interface SwitchProps {
|
|
3
|
+
value?: boolean;
|
|
4
|
+
onChange?: (checked: boolean) => void;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export type ICheckboxThemeProps = {
|
|
8
|
+
list?: any[];
|
|
9
|
+
changeSetting?: (key: string, value: string | boolean | any) => void;
|
|
10
|
+
settings?: any;
|
|
11
|
+
location?: any;
|
|
12
|
+
};
|
|
13
|
+
export type ILayoutSettingsProps = {
|
|
14
|
+
settings?: Partial<ProSettings>;
|
|
15
|
+
changeSetting?: (key: string, value: string | boolean) => void;
|
|
16
|
+
location?: any;
|
|
17
|
+
};
|
|
18
|
+
export type NavMenuSelectorProps = {
|
|
19
|
+
changeSetting?: (key: string, value: string | boolean | any) => void;
|
|
20
|
+
settings?: any;
|
|
21
|
+
location?: any;
|
|
22
|
+
};
|
|
23
|
+
export type IRegionalSettingsProps = {
|
|
24
|
+
settings?: Partial<ProSettings | any>;
|
|
25
|
+
changeSetting?: (key: string, value: string | boolean | any) => void;
|
|
26
|
+
location?: any;
|
|
27
|
+
};
|
|
28
|
+
export type MergerSettingsType<T> = Partial<T> & {
|
|
29
|
+
primaryColor?: string;
|
|
30
|
+
colorWeak?: boolean;
|
|
31
|
+
upperMenuDividerName?: string;
|
|
32
|
+
middleMenuDividerName?: string;
|
|
33
|
+
lowerMenuDividerName?: string;
|
|
34
|
+
};
|
|
35
|
+
export interface IShowSettingPanel extends ProSettings {
|
|
36
|
+
showSettingPanel: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface SettingDrawerProps {
|
|
39
|
+
settings?: MergerSettingsType<IShowSettingPanel | ProSettings>;
|
|
40
|
+
collapse?: boolean;
|
|
41
|
+
getContainer?: any;
|
|
42
|
+
publicPath?: string;
|
|
43
|
+
hideLoading?: boolean;
|
|
44
|
+
hideColors?: boolean;
|
|
45
|
+
hideHintAlert?: boolean;
|
|
46
|
+
prefixCls?: string;
|
|
47
|
+
hideCopyButton?: boolean;
|
|
48
|
+
navTheme?: string;
|
|
49
|
+
primaryColor?: string;
|
|
50
|
+
pathname?: string;
|
|
51
|
+
onCollapseChange?: (collapse: boolean) => void;
|
|
52
|
+
onSettingChange?: (settings: MergerSettingsType<ProSettings>) => void;
|
|
53
|
+
actor?: any;
|
|
54
|
+
colorList?: {
|
|
55
|
+
key: string;
|
|
56
|
+
color: string;
|
|
57
|
+
title?: string;
|
|
58
|
+
}[];
|
|
59
|
+
toggleContent?: string;
|
|
60
|
+
hasPageChange?: boolean;
|
|
61
|
+
hasChangePage?: boolean;
|
|
62
|
+
onChangeAllPages?: () => void;
|
|
63
|
+
isOpen?: boolean;
|
|
64
|
+
setOpen?: (open: boolean) => void;
|
|
65
|
+
}
|
|
66
|
+
export type IThemeColorProps = {
|
|
67
|
+
color?: Array<{
|
|
68
|
+
key: string;
|
|
69
|
+
color: string;
|
|
70
|
+
title?: string;
|
|
71
|
+
}>;
|
|
72
|
+
changeSetting?: (key: string, value: string | boolean | any) => void;
|
|
73
|
+
settings?: any;
|
|
74
|
+
};
|
|
75
|
+
export interface ThemeSelectorProps {
|
|
76
|
+
value: string;
|
|
77
|
+
onChange: (theme: string) => void;
|
|
78
|
+
options: Array<{
|
|
79
|
+
key: string;
|
|
80
|
+
title: string;
|
|
81
|
+
}>;
|
|
82
|
+
}
|
|
83
|
+
export interface WebFontsSelectorProps {
|
|
84
|
+
value: string;
|
|
85
|
+
onChange: (fontFamily: string) => void;
|
|
86
|
+
options: Array<{
|
|
87
|
+
key: string;
|
|
88
|
+
title: string;
|
|
89
|
+
}>;
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,MAAM,WAAW,WAAW;IACxB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,mBAAmB,GAAG;IAC9B,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACb,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,GAAG,KAAK,IAAI,CAAC;IACrE,QAA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C,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,GAAG,KAAK,IAAI,CAAC;IACrE,QAAQ,CAAC,EAAE,GAAG,CAAC;CAClB,CAAC;AAEF,MAAM,WAAW,kBAAkB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE,KAAK,CAAC;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;CACN;AAED,MAAM,WAAW,qBAAqB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,OAAO,EAAE,KAAK,CAAC;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;CACN"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IBaseItem {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
types: string[];
|
|
6
|
+
name: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
introduction?: string;
|
|
9
|
+
address: any;
|
|
10
|
+
location: string;
|
|
11
|
+
images: any;
|
|
12
|
+
thumbnailUrl?: string;
|
|
13
|
+
thumbnailAlt?: string;
|
|
14
|
+
verificationDocuments?: any;
|
|
15
|
+
info?: any;
|
|
16
|
+
user: any;
|
|
17
|
+
status?: any;
|
|
18
|
+
errors?: any;
|
|
19
|
+
preferences?: any;
|
|
20
|
+
orgName?: string;
|
|
21
|
+
serviceConfiguration?: any;
|
|
22
|
+
totalReview?: number;
|
|
23
|
+
totalStar?: number;
|
|
24
|
+
reviews?: any;
|
|
25
|
+
comments?: any;
|
|
26
|
+
userLikes?: any;
|
|
27
|
+
calendarEvents?: any[];
|
|
28
|
+
isUserLike?: boolean;
|
|
29
|
+
formattedPrice?: number;
|
|
30
|
+
timeZone: string;
|
|
31
|
+
createdAt: any;
|
|
32
|
+
updatedAt?: any;
|
|
33
|
+
stats?: any;
|
|
34
|
+
guideBookId?: string;
|
|
35
|
+
guestSharing?: any;
|
|
36
|
+
}
|
|
37
|
+
type CardListProps = {
|
|
38
|
+
items?: IBaseItem[];
|
|
39
|
+
setFocus: (index: number) => void;
|
|
40
|
+
setBlur: (index: number) => void;
|
|
41
|
+
handleLike: (index: number) => void;
|
|
42
|
+
likeBtnLoading: boolean;
|
|
43
|
+
categoryTypes: any[];
|
|
44
|
+
extraIcons?: any;
|
|
45
|
+
className?: string;
|
|
46
|
+
customCardComponent?: (props: {
|
|
47
|
+
item: IBaseItem;
|
|
48
|
+
index: number;
|
|
49
|
+
setFocus: () => void;
|
|
50
|
+
setBlur: (index: number) => void;
|
|
51
|
+
handleLike: (index: number) => void;
|
|
52
|
+
likeBtnLoading: boolean;
|
|
53
|
+
categoryTypes: any[];
|
|
54
|
+
extraIcons?: any;
|
|
55
|
+
authenticated: boolean;
|
|
56
|
+
}) => React.ReactNode;
|
|
57
|
+
emptyMessage?: string;
|
|
58
|
+
};
|
|
59
|
+
export declare const CardList: React.FC<CardListProps>;
|
|
60
|
+
export {};
|
|
61
|
+
//# sourceMappingURL=CardList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardList.d.ts","sourceRoot":"","sources":["../../../src/components/UI/CardList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,SAAS;IACf,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ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AAU,CAAC,EAAE,GAAG,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE;QAC1B,IAAI,EAAE,SAAS,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,IAAI,CAAC;QACrB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QACjC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QACpC,cAAc,EAAE,OAAO,CAAC;QACxB,aAAa,EAAE,GAAG,EAAE,CAAC;QACrB,UAAU,CAAC,EAAE,GAAG,CAAC;QACjB,aAAa,EAAE,OAAO,CAAC;KAC1B,KAAK,KAAK,CAAC,SAAS,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAuC5C,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {isEmpty}from'lodash-es';import {isUserAuthenticated}from'@adminide-stack/user-auth0-client';const CardList = props => {
|
|
2
|
+
const {
|
|
3
|
+
setBlur,
|
|
4
|
+
setFocus,
|
|
5
|
+
items,
|
|
6
|
+
handleLike,
|
|
7
|
+
likeBtnLoading,
|
|
8
|
+
categoryTypes,
|
|
9
|
+
extraIcons,
|
|
10
|
+
className = '',
|
|
11
|
+
customCardComponent,
|
|
12
|
+
emptyMessage = 'No items found'
|
|
13
|
+
} = props;
|
|
14
|
+
const {
|
|
15
|
+
t
|
|
16
|
+
} = useTranslation();
|
|
17
|
+
const {
|
|
18
|
+
authenticated
|
|
19
|
+
} = isUserAuthenticated();
|
|
20
|
+
if (isEmpty(items)) {
|
|
21
|
+
return jsx("div", {
|
|
22
|
+
className: "text-base",
|
|
23
|
+
children: emptyMessage
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return jsx("div", {
|
|
27
|
+
className: `flex flex-wrap justify-evenly ${className}`,
|
|
28
|
+
children: items?.map((item, index) => jsx("div", {
|
|
29
|
+
className: "max-w-[100%] mb-4",
|
|
30
|
+
children: customCardComponent?.({
|
|
31
|
+
item,
|
|
32
|
+
index,
|
|
33
|
+
setFocus: () => setFocus(index),
|
|
34
|
+
setBlur,
|
|
35
|
+
handleLike,
|
|
36
|
+
likeBtnLoading,
|
|
37
|
+
categoryTypes,
|
|
38
|
+
extraIcons,
|
|
39
|
+
authenticated
|
|
40
|
+
})
|
|
41
|
+
}, index))
|
|
42
|
+
});
|
|
43
|
+
};export{CardList};//# sourceMappingURL=CardList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardList.js","sources":["../../../src/components/UI/CardList.tsx"],"sourcesContent":[null],"names":[],"mappings":"mLA0Ea,MAAA,QAAQ,GAA4B,KAAC,IAAS;QACjD;AAYN,IAAA;AACA,IAAA,QAAQ;AAER,IAAA,KAAW;AACP,IAAA,UAAA;IACJ,cAAC;IAED,aACS;;gBAKW,EAAK;AACL,IAAA,mBAAA;gBACA,GAAO;;;;oBAIG,EAAA;;AAEb,IAAA;AAKrB,GAAE,GAAA,mBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Splide } from '@cdmbase/react-splide';
|
|
2
|
+
import '@splidejs/react-splide/css';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export interface ICategoryType<TTypename, TCategory, TName> {
|
|
5
|
+
__typename?: TTypename;
|
|
6
|
+
id: string;
|
|
7
|
+
description: string | null;
|
|
8
|
+
category: TCategory;
|
|
9
|
+
name: TName;
|
|
10
|
+
icon?: string | null;
|
|
11
|
+
imageKey?: string | null;
|
|
12
|
+
thumbnailUrl?: string | null;
|
|
13
|
+
}
|
|
14
|
+
export interface ICategoriesTypeListProps<TTypename, TCategory, TName> {
|
|
15
|
+
isExplorerView?: boolean;
|
|
16
|
+
categories: ICategoryType<TTypename, TCategory, TName>[];
|
|
17
|
+
initialCategory: ICategoryType<TTypename, TCategory, TName>;
|
|
18
|
+
boxColor: (categoryId: string) => string;
|
|
19
|
+
iconColor: (categoryId: string) => string;
|
|
20
|
+
badgeTitle?: string;
|
|
21
|
+
extraIcons: string[];
|
|
22
|
+
aria_label: string;
|
|
23
|
+
splideRef?: React.RefObject<Splide>;
|
|
24
|
+
isNewBadge: (categoryId: string) => boolean;
|
|
25
|
+
handleSearchClick: (cateItem: string, item: any, isExplorerView?: boolean) => void;
|
|
26
|
+
activeCategory?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const CategoriesTypeList: <TTypename, TCategory, TName>({ boxColor, iconColor, badgeTitle, extraIcons, categories, initialCategory, aria_label, isExplorerView, splideRef, isNewBadge, handleSearchClick, activeCategory, }: ICategoriesTypeListProps<TTypename, TCategory, TName>) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
//# sourceMappingURL=CategoriesTypeList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CategoriesTypeList.d.ts","sourceRoot":"","sources":["../../../src/components/UI/CategoriesTypeList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAA2C,MAAM,uBAAuB,CAAC;AACxF,OAAO,4BAA4B,CAAC;AACpC,OAAO,KAAoD,MAAM,OAAO,CAAC;AAKzE,MAAM,WAAW,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK;IACtD,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,EAAE,KAAK,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,WAAW,wBAAwB,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK;IACjE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC;IACzD,eAAe,EAAE,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IAC5D,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;IACzC,SAAS,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACpC,UAAU,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;IAC5C,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,cAAc,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACnF,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAyGD,eAAO,MAAM,kBAAkB,GAAI,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,qKAa7D,wBAAwB,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,4CA6DvD,CAAC"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';import {Splide,SplideSlide}from'@cdmbase/react-splide';import'@splidejs/react-splide/css';import React__default,{useCallback,useMemo,useState,useEffect}from'react';import {useTranslation}from'react-i18next';import {renderDynamicIcon}from'../../helpers/DynamicIcon.js';import useWindowSize from'../../hooks/useWindowSize.js';// Helper function to merge arrays
|
|
2
|
+
const mergeArrays = (arr1, arr2, keyToMapIcons) => {
|
|
3
|
+
const iconMap = new Map(arr2.map(icon => [icon.split('.').pop(), icon]));
|
|
4
|
+
return arr1.filter(item => iconMap.has(item[keyToMapIcons])).map(item => ({
|
|
5
|
+
...item,
|
|
6
|
+
icon: iconMap.get(item[keyToMapIcons])
|
|
7
|
+
}));
|
|
8
|
+
};
|
|
9
|
+
// Create a memoized category item component
|
|
10
|
+
function CategoryItemComponent({
|
|
11
|
+
category,
|
|
12
|
+
boxColor,
|
|
13
|
+
size,
|
|
14
|
+
t,
|
|
15
|
+
isNewBadge,
|
|
16
|
+
badgeTitle,
|
|
17
|
+
handleSearchClick,
|
|
18
|
+
isExplorerView,
|
|
19
|
+
isActive
|
|
20
|
+
}) {
|
|
21
|
+
// Prevent multiple click propagation
|
|
22
|
+
const handleClick = useCallback(e => {
|
|
23
|
+
e.preventDefault();
|
|
24
|
+
e.stopPropagation();
|
|
25
|
+
handleSearchClick(category.id, category, isExplorerView);
|
|
26
|
+
}, [category, handleSearchClick, isExplorerView]);
|
|
27
|
+
// Compute the current color values
|
|
28
|
+
const currentBoxColor = isActive ? boxColor(category.id) : '#4A5568';
|
|
29
|
+
// Determine font size based on screen width
|
|
30
|
+
const fontSize = useMemo(() => {
|
|
31
|
+
if (size.width > 1200) return '16px';
|
|
32
|
+
if (size.width > 768) return '15px';
|
|
33
|
+
if (size.width > 480) return '14px';
|
|
34
|
+
return '12px';
|
|
35
|
+
}, [size.width]);
|
|
36
|
+
// Determine icon size based on screen width
|
|
37
|
+
const iconSize = useMemo(() => ({
|
|
38
|
+
w: size.width > 1200 ? '2vw' : '3vw',
|
|
39
|
+
h: size.height > 1200 ? '2vw' : '3vw'
|
|
40
|
+
}), [size.width, size.height]);
|
|
41
|
+
return jsxs("div", {
|
|
42
|
+
className: `flex flex-col items-center justify-center cursor-pointer relative font-bold ${isActive ? 'active' : ''}`,
|
|
43
|
+
style: {
|
|
44
|
+
color: currentBoxColor,
|
|
45
|
+
fontSize
|
|
46
|
+
},
|
|
47
|
+
onClick: handleClick,
|
|
48
|
+
children: [renderDynamicIcon({
|
|
49
|
+
name: category.icon,
|
|
50
|
+
style: {
|
|
51
|
+
iconColor: currentBoxColor,
|
|
52
|
+
...iconSize
|
|
53
|
+
}
|
|
54
|
+
}), jsx("div", {
|
|
55
|
+
className: "text-center",
|
|
56
|
+
children: t(category.description)
|
|
57
|
+
}), isNewBadge(category.id) && jsx("div", {
|
|
58
|
+
className: "absolute top-0 right-0 bg-blue-500 text-white rounded-md text-xs p-1",
|
|
59
|
+
children: badgeTitle
|
|
60
|
+
})]
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
// Use React.memo with a custom comparison function
|
|
64
|
+
const CategoryItem = React__default.memo(CategoryItemComponent, (prevProps, nextProps) => {
|
|
65
|
+
if (prevProps.category.id !== nextProps.category.id) return false;
|
|
66
|
+
if (prevProps.isActive !== nextProps.isActive) return false;
|
|
67
|
+
if (prevProps.boxColor(prevProps.category.id) !== nextProps.boxColor(nextProps.category.id)) return false;
|
|
68
|
+
return true;
|
|
69
|
+
});
|
|
70
|
+
const CategoriesTypeList = ({
|
|
71
|
+
boxColor,
|
|
72
|
+
iconColor,
|
|
73
|
+
badgeTitle,
|
|
74
|
+
extraIcons,
|
|
75
|
+
categories,
|
|
76
|
+
initialCategory,
|
|
77
|
+
aria_label,
|
|
78
|
+
isExplorerView,
|
|
79
|
+
splideRef,
|
|
80
|
+
isNewBadge,
|
|
81
|
+
handleSearchClick,
|
|
82
|
+
activeCategory
|
|
83
|
+
}) => {
|
|
84
|
+
const size = useWindowSize();
|
|
85
|
+
const {
|
|
86
|
+
t
|
|
87
|
+
} = useTranslation(['property-types', 'common']);
|
|
88
|
+
// Track the currently active category ID internally
|
|
89
|
+
const [activeCategoryId, setActiveCategoryId] = useState(() => activeCategory || initialCategory.id);
|
|
90
|
+
// Update internal state when activeCategory prop changes
|
|
91
|
+
useEffect(() => {
|
|
92
|
+
setActiveCategoryId(activeCategory || initialCategory.id);
|
|
93
|
+
}, [activeCategory, initialCategory.id]);
|
|
94
|
+
// Memoize the merged array
|
|
95
|
+
const mappedArr = useMemo(() => mergeArrays([initialCategory, ...categories], extraIcons, 'icon'), [initialCategory, categories, extraIcons]);
|
|
96
|
+
// Splide options
|
|
97
|
+
const splideOptions = useMemo(() => ({
|
|
98
|
+
type: 'slide',
|
|
99
|
+
drag: 'free',
|
|
100
|
+
perPage: 9,
|
|
101
|
+
perMove: 1,
|
|
102
|
+
wheel: true,
|
|
103
|
+
releaseWheel: true,
|
|
104
|
+
pagination: false,
|
|
105
|
+
speed: 500,
|
|
106
|
+
wheelSleep: 300,
|
|
107
|
+
breakpoints: {
|
|
108
|
+
1024: {
|
|
109
|
+
perPage: 9
|
|
110
|
+
},
|
|
111
|
+
600: {
|
|
112
|
+
perPage: 5
|
|
113
|
+
},
|
|
114
|
+
480: {
|
|
115
|
+
perPage: 3
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}), []);
|
|
119
|
+
return jsx("div", {
|
|
120
|
+
className: "w-full relative",
|
|
121
|
+
children: jsx(Splide, {
|
|
122
|
+
ref: splideRef,
|
|
123
|
+
"aria-label": aria_label,
|
|
124
|
+
options: splideOptions,
|
|
125
|
+
children: mappedArr.map(d => jsx(SplideSlide, {
|
|
126
|
+
children: jsx(CategoryItem, {
|
|
127
|
+
category: d,
|
|
128
|
+
boxColor: boxColor,
|
|
129
|
+
size: size,
|
|
130
|
+
t: t,
|
|
131
|
+
isNewBadge: isNewBadge,
|
|
132
|
+
badgeTitle: badgeTitle,
|
|
133
|
+
handleSearchClick: handleSearchClick,
|
|
134
|
+
isExplorerView: isExplorerView,
|
|
135
|
+
isActive: d.id === activeCategoryId
|
|
136
|
+
}, `category_${d.id}`)
|
|
137
|
+
}, `button_${d.id}`))
|
|
138
|
+
})
|
|
139
|
+
});
|
|
140
|
+
};export{CategoriesTypeList};//# sourceMappingURL=CategoriesTypeList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CategoriesTypeList.js","sources":["../../../src/components/UI/CategoriesTypeList.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx","React"],"mappings":"6WAiCA;AACA,MAAM,WAAW,GAAG,CAChB,IAAkD,EAClD,IAAc,EACd,aAA+D,KACjB;AAC9C,EAAA,MAAA,OAAa,GAAA,IAAO,GAAA,CAAA,IAAI,CAAA,GAAK,CAAA,IAAS,IAAA,CAAE,IAAI,CAAA,KAAK,CAAA,GAAK,CAAC,CAAA,GAAI,EAAI,EAAA,IAAI,CAAA,CAAA,CAAA;AAEnE,EAAA,OAAA,IAAW,CAAA,MAAA,CAAA,IAAA,IAAA,OAAA,CAAA,GAAA,CAAA,IAAA,CAAA,aAAA,CAAA,CAAA,CAAA,CAAA,GAAA,CAAA,IAAA,KAAA;AACN,IAAA,GAAA,IAAA;AACA,IAAA,IAAA,EAAA,OAAK,CAAI,GAAE,CAAE,IAAE,CAAA,aAAA,CAAA;AACZ,GAAA,CAAA,CAAA;;AAEH;AACT,SAAE,qBAAA,CAAA;AAeF,EAA4C,QAAA;AAC5C,EAAS,QAAA;MAWgC;AACrC,EAAA,CAAA;YAEwB;YACC;mBACA;gBAEZ;;AAIb,CAAA,EAAA;;AAGA,EAAA,MAAA,WAAc,GAAU,WAAM,CAAA,CAAA,IAAA;AAC1B,IAAA,CAAA,CAAA,cAAc,EAAA;AAAS,IAAA,CAAA,CAAA;AACvB,IAAA,iBAAc,CAAA,QAAM,CAAA,EAAA,EAAA,QAAA,EAAA,cAAA,CAAA;AAAE,GAAA,EAAA,CAAA,QAAA,EAAA,iBAAc,EAAA,cAAA,CAAA,CAAA;AACpC;AAAsB,EAAA,MAAA,kBAAc,QAAA,GAAA,QAAA,CAAA,QAAA,CAAA,EAAA,CAAA,GAAA,SAAA;AACpC;AACJ,EAAA,MAAI,QAAU,GAAC,OAAE,CAAA,MAAA;IAEjB,IAA4C,IAAA,CAAA,KAAA,GAAA,IAAA,EAAA,OAAA,MAAA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CAAA,QAAA,CAAA,EAAA,KAAA,SAAA,CAAA,QAAA,CAAA,EAAA,EAAA,OAAA,KAAA;AACjB,EAAA,IAAA,kBAAsB,KAAA,SACf,CAAE,QAAE,EAAA,OAAA,KAAA;AACH,EAAA,IAAA,SAAa,CAAA,QAAA,CAAA,SAAA,CAAA,QAAA,CAAA,EAAA,CAAA,KAAA,SAAA,CAAA,QAAA,CAAA,SAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,OAAA,KAAA;AACb,EAAA,OAAA;AACA,CAAA,CAAA;AACA,MAAA,kBAAU,GAAA,CAAA;AACV,EAAA,QAAA;AACA,EAAA,SAAA;AACA,EAAA,UAAA;AACA,EAAA,UAAA;AACA,EAAA,UAAA;AACA,EAAA,eAAA;AACI,EAAA,UAAA;AACA,EAAA,cAAK;AACL,EAAA,SAAA;AACH,EAAA,UAAA;mBAGP;;AAwBN,CAAC,KAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
export interface IProperty {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
types: string[];
|
|
6
|
+
name: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
introduction?: string;
|
|
9
|
+
address: any;
|
|
10
|
+
location: string;
|
|
11
|
+
images: any;
|
|
12
|
+
thumbnailUrl?: string;
|
|
13
|
+
thumbnailAlt?: string;
|
|
14
|
+
verificationDocuments?: any;
|
|
15
|
+
info?: any;
|
|
16
|
+
user: any;
|
|
17
|
+
status?: any;
|
|
18
|
+
errors?: any;
|
|
19
|
+
preferences?: any;
|
|
20
|
+
orgName?: string;
|
|
21
|
+
serviceConfiguration?: any;
|
|
22
|
+
totalReview?: number;
|
|
23
|
+
totalStar?: number;
|
|
24
|
+
reviews?: any;
|
|
25
|
+
comments?: any;
|
|
26
|
+
userLikes?: any;
|
|
27
|
+
calendarEvents?: any[];
|
|
28
|
+
isUserLike?: boolean;
|
|
29
|
+
formattedPrice?: number;
|
|
30
|
+
timeZone: string;
|
|
31
|
+
createdAt: any;
|
|
32
|
+
updatedAt?: any;
|
|
33
|
+
stats?: any;
|
|
34
|
+
guideBookId?: string;
|
|
35
|
+
guestSharing?: any;
|
|
36
|
+
}
|
|
37
|
+
export interface IAirbnbProperty {
|
|
38
|
+
id: string;
|
|
39
|
+
title: string;
|
|
40
|
+
types: string[];
|
|
41
|
+
name: string;
|
|
42
|
+
description?: string;
|
|
43
|
+
introduction?: string;
|
|
44
|
+
address: any;
|
|
45
|
+
location: string;
|
|
46
|
+
images: any;
|
|
47
|
+
thumbnailUrl?: string;
|
|
48
|
+
thumbnailAlt?: string;
|
|
49
|
+
verificationDocuments?: any;
|
|
50
|
+
info?: any;
|
|
51
|
+
user: any;
|
|
52
|
+
status?: any;
|
|
53
|
+
errors?: any;
|
|
54
|
+
preferences?: any;
|
|
55
|
+
orgName?: string;
|
|
56
|
+
serviceConfiguration?: any;
|
|
57
|
+
totalReview?: number;
|
|
58
|
+
totalStar?: number;
|
|
59
|
+
reviews?: any;
|
|
60
|
+
comments?: any;
|
|
61
|
+
userLikes?: any;
|
|
62
|
+
calendarEvents?: any[];
|
|
63
|
+
isUserLike?: boolean;
|
|
64
|
+
formattedPrice?: number;
|
|
65
|
+
timeZone: string;
|
|
66
|
+
createdAt: any;
|
|
67
|
+
updatedAt?: any;
|
|
68
|
+
stats?: any;
|
|
69
|
+
guideBookId?: string;
|
|
70
|
+
guestSharing?: any;
|
|
71
|
+
}
|
|
72
|
+
interface ILazyLoadingGoogleMarkerProps {
|
|
73
|
+
property: IProperty | IAirbnbProperty;
|
|
74
|
+
isHighlighted: boolean;
|
|
75
|
+
showPrices: boolean;
|
|
76
|
+
isActiveMarker: boolean;
|
|
77
|
+
propertyTypes: any;
|
|
78
|
+
onMarkerClick: () => void;
|
|
79
|
+
onInfoBoxClose: () => void;
|
|
80
|
+
}
|
|
81
|
+
export declare const LazyLoadingGoogleMarker: (props: ILazyLoadingGoogleMarkerProps) => ReactElement;
|
|
82
|
+
export {};
|
|
83
|
+
//# sourceMappingURL=LazyLoadingGoogleMarker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LazyLoadingGoogleMarker.d.ts","sourceRoot":"","sources":["../../../src/components/UI/LazyLoadingGoogleMarker.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAuB,MAAM,OAAO,CAAC;AAOjE,MAAM,WAAW,SAAS;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,GAAG,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB,CAAC,EAAE,GAAG,CAAC;IAC5B,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,IAAI,EAAE,GAAG,CAAC;IACV,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,GAAG,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC;IACvB,UAAU,CA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