@admin-layout/tailwind-design-pro 10.1.1-alpha.9 → 11.2.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +376 -250
- package/lib/cdm-locales/en/menu.json +2 -1
- package/lib/cdm-locales/en/settings.json +6 -1
- package/lib/cdm-locales/es/menu.json +2 -1
- package/lib/cdm-locales/es/settings.json +6 -1
- package/lib/cdm-locales/index.d.ts +2 -0
- package/lib/cdm-locales/index.d.ts.map +1 -0
- package/lib/cdm-locales/index.ts +1 -0
- package/lib/components/LanguageMenu/LanguageMenu.d.ts +2 -1
- package/lib/components/LanguageMenu/LanguageMenu.d.ts.map +1 -1
- package/lib/components/LanguageMenu/LanguageMenu.js +40 -61
- package/lib/components/LanguageMenu/LanguageMenu.js.map +1 -1
- package/lib/components/Layout/BasicLayout/index.d.ts +6 -5
- package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/index.js +255 -175
- package/lib/components/Layout/BasicLayout/index.js.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.d.ts +4 -2
- package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.js +80 -109
- package/lib/components/Layout/BasicLayout/utils.js.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js +28 -38
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalFooter/Copyright.d.ts +2 -1
- package/lib/components/Layout/GlobalFooter/Copyright.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/Footer.d.ts +2 -1
- package/lib/components/Layout/GlobalFooter/Footer.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.d.ts +0 -1
- package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.js +82 -66
- package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +0 -2
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.js +119 -162
- package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js +26 -30
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts +1 -0
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.js +82 -19
- package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightMenu.js +116 -158
- package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/SearchBar.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/SearchBar.js +36 -45
- package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/index.d.ts +0 -1
- package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.d.ts +2 -2
- package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.js +70 -9
- package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
- package/lib/components/Layout/Sidebar/BottomMenu.d.ts +4 -0
- package/lib/components/Layout/Sidebar/BottomMenu.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/BottomMenu.js +294 -0
- package/lib/components/Layout/Sidebar/BottomMenu.js.map +1 -0
- package/lib/components/Layout/Sidebar/Divider.d.ts +2 -1
- package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/Divider.js +26 -28
- package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.js +10 -11
- package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -1
- package/lib/components/Layout/Sidebar/MainSidebar.d.ts +5 -0
- package/lib/components/Layout/Sidebar/MainSidebar.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/MainSidebar.js +224 -0
- package/lib/components/Layout/Sidebar/MainSidebar.js.map +1 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts +6 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.js +451 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.js.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts +4 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.js +254 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.js.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts +4 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js +318 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js.map +1 -0
- package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/TailwindLayout.js +37 -20
- package/lib/components/Layout/TailwindLayout.js.map +1 -1
- package/lib/components/Layout/getPageTitle.js.map +1 -1
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts +3 -2
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/AdditionalSettings.js +2 -2
- package/lib/components/Layout/slot-fill/AdditionalSettings.js.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.d.ts +3 -2
- package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.js +2 -2
- package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderNotice.d.ts +3 -2
- package/lib/components/Layout/slot-fill/HeaderNotice.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderNotice.js +7 -0
- package/lib/components/Layout/slot-fill/HeaderNotice.js.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts +2 -1
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js +2 -2
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts +2 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js +2 -2
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -1
- package/lib/components/Layout/slot-fill/Logo.d.ts +5 -0
- package/lib/components/Layout/slot-fill/Logo.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/Logo.js +7 -0
- package/lib/components/Layout/slot-fill/Logo.js.map +1 -0
- package/lib/components/Layout/slot-fill/RightContent.d.ts +2 -1
- package/lib/components/Layout/slot-fill/RightContent.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/RightContent.js +2 -2
- package/lib/components/Layout/slot-fill/RightContent.js.map +1 -1
- package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts +5 -0
- package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/SideMenuLogo.js +7 -0
- package/lib/components/Layout/slot-fill/SideMenuLogo.js.map +1 -0
- package/lib/components/Layout/slot-fill/index.d.ts +2 -0
- package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
- package/lib/components/Layout/util.js +1 -1
- package/lib/components/Layout/util.js.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.d.ts +2 -2
- package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.js +190 -499
- package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts +8 -0
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js +21 -0
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js.map +1 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts +4 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.js +119 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.js.map +1 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.d.ts +8 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.js +74 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.js.map +1 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.d.ts +4 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.js +72 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.js.map +1 -0
- package/lib/components/SettingDrawer/components/LayoutChange.d.ts +4 -0
- package/lib/components/SettingDrawer/components/LayoutChange.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/LayoutChange.js +111 -0
- package/lib/components/SettingDrawer/components/LayoutChange.js.map +1 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts +21 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js +106 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js.map +1 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.d.ts +4 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.js +322 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.js.map +1 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.d.ts +4 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.js +519 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.js.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsActions.d.ts +13 -0
- package/lib/components/SettingDrawer/components/SettingsActions.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsActions.js +42 -0
- package/lib/components/SettingDrawer/components/SettingsActions.js.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts +5 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js +22 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js.map +1 -0
- package/lib/components/SettingDrawer/components/Switch.d.ts +4 -0
- package/lib/components/SettingDrawer/components/Switch.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/Switch.js +20 -0
- package/lib/components/SettingDrawer/components/Switch.js.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeColor.d.ts +4 -0
- package/lib/components/SettingDrawer/components/ThemeColor.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeColor.js +45 -0
- package/lib/components/SettingDrawer/components/ThemeColor.js.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.d.ts +4 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.js +16 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.js.map +1 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts +4 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.js +22 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.js.map +1 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts +18 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts.map +1 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.js +115 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.js.map +1 -0
- package/lib/components/SettingDrawer/utils/constants.d.ts +11 -0
- package/lib/components/SettingDrawer/utils/constants.d.ts.map +1 -0
- package/lib/components/SettingDrawer/utils/constants.js +77 -0
- package/lib/components/SettingDrawer/utils/constants.js.map +1 -0
- package/lib/components/SettingDrawer/utils/helper.d.ts +37 -0
- package/lib/components/SettingDrawer/utils/helper.d.ts.map +1 -0
- package/lib/components/SettingDrawer/utils/helper.js +154 -0
- package/lib/components/SettingDrawer/utils/helper.js.map +1 -0
- package/lib/components/SettingDrawer/utils/transformers.d.ts +15 -0
- package/lib/components/SettingDrawer/utils/transformers.d.ts.map +1 -0
- package/lib/components/SettingDrawer/utils/transformers.js +73 -0
- package/lib/components/SettingDrawer/utils/transformers.js.map +1 -0
- package/lib/components/SettingDrawer/{types.d.ts → utils/types.d.ts} +14 -0
- package/lib/components/SettingDrawer/utils/types.d.ts.map +1 -0
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +13 -4
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js +97 -4
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js.map +1 -1
- package/lib/components/index.d.ts +0 -2
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/typings.d.ts +20 -6
- package/lib/components/typings.d.ts.map +1 -1
- package/lib/compute.d.ts.map +1 -1
- package/lib/compute.js +10 -2
- 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.js.map +1 -1
- package/lib/config/env-config.d.ts +6 -0
- package/lib/config/env-config.d.ts.map +1 -1
- package/lib/config/env-config.js +21 -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 +1 -1
- package/lib/helpers/DynamicIcon.d.ts.map +1 -1
- package/lib/helpers/DynamicIcon.js +16 -17
- package/lib/helpers/DynamicIcon.js.map +1 -1
- package/lib/hooks/index.d.ts +0 -3
- package/lib/hooks/index.d.ts.map +1 -1
- package/lib/hooks/useMediaQuery.js.map +1 -1
- package/lib/hooks/useScrollThreshold.js.map +1 -1
- package/lib/hooks/useTailwindTheme.js.map +1 -1
- package/lib/icons.d.ts +2 -0
- package/lib/icons.d.ts.map +1 -1
- package/lib/icons.js +4 -2
- package/lib/icons.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/machines/selectors.d.ts +118 -0
- package/lib/machines/selectors.d.ts.map +1 -0
- package/lib/machines/settingsMachine.d.ts +25 -2
- package/lib/machines/settingsMachine.d.ts.map +1 -1
- package/lib/machines/settingsMachine.js +133 -168
- package/lib/machines/settingsMachine.js.map +1 -1
- package/lib/machines/types.d.ts +107 -9
- package/lib/machines/types.d.ts.map +1 -1
- package/lib/machines/types.js.map +1 -1
- package/lib/module.js.map +1 -1
- package/lib/redux/searchReducer.d.ts +1 -1
- package/lib/redux/searchReducer.d.ts.map +1 -1
- package/lib/redux/searchReducer.js.map +1 -1
- package/lib/routes.json +9 -1
- package/lib/styles/index.css +602 -372
- package/lib/tailwindConfig.d.ts +85 -27
- package/lib/tailwindConfig.d.ts.map +1 -1
- package/lib/tailwindConfig.js +96 -18
- package/lib/tailwindConfig.js.map +1 -1
- package/lib/utils/__tests__/analytics-utils.test.d.ts +2 -0
- package/lib/utils/__tests__/analytics-utils.test.d.ts.map +1 -0
- package/lib/utils/__tests__/configOverrides.test.d.ts +2 -0
- package/lib/utils/__tests__/configOverrides.test.d.ts.map +1 -0
- package/lib/utils/__tests__/menu.test.d.ts +2 -0
- package/lib/utils/__tests__/menu.test.d.ts.map +1 -0
- package/lib/utils/__tests__/selectors.test.d.ts +2 -0
- package/lib/utils/__tests__/selectors.test.d.ts.map +1 -0
- package/lib/utils/__tests__/settingsMachine.test.d.ts +2 -0
- package/lib/utils/__tests__/settingsMachine.test.d.ts.map +1 -0
- package/lib/utils/__tests__/settingsUtils.test.d.ts +2 -0
- package/lib/utils/__tests__/settingsUtils.test.d.ts.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/configOverrides.d.ts +213 -0
- package/lib/utils/configOverrides.d.ts.map +1 -0
- package/lib/utils/configOverrides.js +91 -0
- package/lib/utils/configOverrides.js.map +1 -0
- package/lib/utils/isBrowser/index.js.map +1 -1
- package/lib/utils/settingsUtils.d.ts +20 -0
- package/lib/utils/settingsUtils.d.ts.map +1 -0
- package/lib/utils/settingsUtils.js +74 -0
- package/lib/utils/settingsUtils.js.map +1 -0
- package/lib/utils/utils/index.js.map +1 -1
- package/package.json +7 -15
- package/lib/components/Layout/GlobalHeader/Logo.d.ts +0 -4
- package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +0 -1
- package/lib/components/Layout/GlobalHeader/Logo.js +0 -141
- package/lib/components/Layout/GlobalHeader/Logo.js.map +0 -1
- package/lib/components/Layout/Sidebar/Sidebar.d.ts +0 -5
- package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +0 -1
- package/lib/components/Layout/Sidebar/Sidebar.js +0 -186
- package/lib/components/Layout/Sidebar/Sidebar.js.map +0 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts +0 -4
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +0 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.js +0 -183
- package/lib/components/Layout/Sidebar/SidebarMenu.js.map +0 -1
- package/lib/components/SettingDrawer/CheckBoxTheme.d.ts +0 -3
- package/lib/components/SettingDrawer/CheckBoxTheme.d.ts.map +0 -1
- package/lib/components/SettingDrawer/CheckBoxTheme.js +0 -123
- package/lib/components/SettingDrawer/CheckBoxTheme.js.map +0 -1
- package/lib/components/SettingDrawer/LayoutChange.d.ts +0 -3
- package/lib/components/SettingDrawer/LayoutChange.d.ts.map +0 -1
- package/lib/components/SettingDrawer/LayoutChange.js +0 -123
- package/lib/components/SettingDrawer/LayoutChange.js.map +0 -1
- package/lib/components/SettingDrawer/NavigationsModes.d.ts +0 -3
- package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +0 -1
- package/lib/components/SettingDrawer/NavigationsModes.js +0 -289
- package/lib/components/SettingDrawer/NavigationsModes.js.map +0 -1
- package/lib/components/SettingDrawer/RegionalSettings.d.ts +0 -3
- package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +0 -1
- package/lib/components/SettingDrawer/RegionalSettings.js +0 -740
- package/lib/components/SettingDrawer/RegionalSettings.js.map +0 -1
- package/lib/components/SettingDrawer/Switch/index.d.ts +0 -3
- package/lib/components/SettingDrawer/Switch/index.d.ts.map +0 -1
- package/lib/components/SettingDrawer/Switch/index.js +0 -22
- package/lib/components/SettingDrawer/Switch/index.js.map +0 -1
- package/lib/components/SettingDrawer/ThemeColor.d.ts +0 -3
- package/lib/components/SettingDrawer/ThemeColor.d.ts.map +0 -1
- package/lib/components/SettingDrawer/ThemeColor.js +0 -35
- package/lib/components/SettingDrawer/ThemeColor.js.map +0 -1
- package/lib/components/SettingDrawer/ThemeSelector.d.ts +0 -3
- package/lib/components/SettingDrawer/ThemeSelector.d.ts.map +0 -1
- package/lib/components/SettingDrawer/ThemeSelector.js +0 -18
- package/lib/components/SettingDrawer/ThemeSelector.js.map +0 -1
- package/lib/components/SettingDrawer/WebFontsSelector.d.ts +0 -3
- package/lib/components/SettingDrawer/WebFontsSelector.d.ts.map +0 -1
- package/lib/components/SettingDrawer/WebFontsSelector.js +0 -24
- package/lib/components/SettingDrawer/WebFontsSelector.js.map +0 -1
- package/lib/components/SettingDrawer/types.d.ts.map +0 -1
- package/lib/components/ThemeProvider/ThemeProvider.d.ts +0 -8
- package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +0 -1
- package/lib/components/ThemeProvider/ThemeProvider.js +0 -60
- package/lib/components/ThemeProvider/ThemeProvider.js.map +0 -1
- package/lib/components/ThemeProvider/ThemeToggle.d.ts +0 -7
- package/lib/components/ThemeProvider/ThemeToggle.d.ts.map +0 -1
- package/lib/components/ThemeProvider/ThemeToggle.js +0 -50
- package/lib/components/ThemeProvider/ThemeToggle.js.map +0 -1
- package/lib/components/ThemeProvider/index.d.ts +0 -4
- package/lib/components/ThemeProvider/index.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/airbnb.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/airbnb.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/airbnb.js +0 -186
- package/lib/components/ThemeProvider/themes/airbnb.js.map +0 -1
- package/lib/components/ThemeProvider/themes/default.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/default.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/default.js +0 -183
- package/lib/components/ThemeProvider/themes/default.js.map +0 -1
- package/lib/components/ThemeProvider/themes/github.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/github.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/github.js +0 -190
- package/lib/components/ThemeProvider/themes/github.js.map +0 -1
- package/lib/components/ThemeProvider/themes/index.d.ts +0 -15
- package/lib/components/ThemeProvider/themes/index.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/index.js +0 -7
- package/lib/components/ThemeProvider/themes/index.js.map +0 -1
- package/lib/components/ThemeProvider/themes/slack.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/slack.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/slack.js +0 -188
- package/lib/components/ThemeProvider/themes/slack.js.map +0 -1
- package/lib/components/ThemeProvider/themes/spotify.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/spotify.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/spotify.js +0 -189
- package/lib/components/ThemeProvider/themes/spotify.js.map +0 -1
- package/lib/components/ThemeProvider/types.d.ts +0 -112
- package/lib/components/ThemeProvider/types.d.ts.map +0 -1
- package/lib/components/UI/CardList.d.ts +0 -61
- package/lib/components/UI/CardList.d.ts.map +0 -1
- package/lib/components/UI/CardList.js +0 -43
- package/lib/components/UI/CardList.js.map +0 -1
- package/lib/components/UI/CategoriesTypeList.d.ts +0 -29
- package/lib/components/UI/CategoriesTypeList.d.ts.map +0 -1
- package/lib/components/UI/CategoriesTypeList.js +0 -140
- package/lib/components/UI/CategoriesTypeList.js.map +0 -1
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts +0 -83
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts.map +0 -1
- package/lib/components/UI/LazyLoadingGoogleMarker.js +0 -107
- package/lib/components/UI/LazyLoadingGoogleMarker.js.map +0 -1
- package/lib/components/UI/Pagination.d.ts +0 -6
- package/lib/components/UI/Pagination.d.ts.map +0 -1
- package/lib/components/UI/Pagination.js +0 -59
- package/lib/components/UI/Pagination.js.map +0 -1
- package/lib/components/UI/ParamSearchResultContainer.d.ts +0 -99
- package/lib/components/UI/ParamSearchResultContainer.d.ts.map +0 -1
- package/lib/components/UI/ParamSearchResultContainer.js +0 -120
- package/lib/components/UI/ParamSearchResultContainer.js.map +0 -1
- package/lib/components/UI/PropertyCard.d.ts +0 -24
- package/lib/components/UI/PropertyCard.d.ts.map +0 -1
- package/lib/components/UI/PropertyCard.js +0 -375
- package/lib/components/UI/PropertyCard.js.map +0 -1
- package/lib/components/UI/PropertyCardOnMap.d.ts +0 -10
- package/lib/components/UI/PropertyCardOnMap.d.ts.map +0 -1
- package/lib/components/UI/PropertyCardOnMap.js +0 -108
- package/lib/components/UI/PropertyCardOnMap.js.map +0 -1
- package/lib/components/UI/VehicleCard/PricePopover.d.ts +0 -8
- package/lib/components/UI/VehicleCard/PricePopover.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/PricePopover.js +0 -98
- package/lib/components/UI/VehicleCard/PricePopover.js.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleBadge.d.ts +0 -7
- package/lib/components/UI/VehicleCard/VehicleBadge.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleFeature.d.ts +0 -9
- package/lib/components/UI/VehicleCard/VehicleFeature.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleFeature.js +0 -23
- package/lib/components/UI/VehicleCard/VehicleFeature.js.map +0 -1
- package/lib/components/UI/VehicleCard/types.d.ts +0 -59
- package/lib/components/UI/VehicleCard/types.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard.d.ts +0 -15
- package/lib/components/UI/VehicleCard.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard.js +0 -166
- package/lib/components/UI/VehicleCard.js.map +0 -1
- package/lib/components/UI/VehicleCardList.d.ts +0 -14
- package/lib/components/UI/VehicleCardList.d.ts.map +0 -1
- package/lib/components/UI/VehicleCardList.js +0 -38
- package/lib/components/UI/VehicleCardList.js.map +0 -1
- package/lib/components/UI/VehicleParamSearchResultContainer.d.ts +0 -90
- package/lib/components/UI/VehicleParamSearchResultContainer.d.ts.map +0 -1
- package/lib/components/UI/icons/LocationIcon.d.ts +0 -7
- package/lib/components/UI/icons/LocationIcon.d.ts.map +0 -1
- package/lib/components/UI/icons/LocationIcon.js +0 -18
- package/lib/components/UI/icons/LocationIcon.js.map +0 -1
- package/lib/components/UI/icons/index.d.ts +0 -2
- package/lib/components/UI/icons/index.d.ts.map +0 -1
- package/lib/components/UI/index.d.ts +0 -10
- package/lib/components/UI/index.d.ts.map +0 -1
- package/lib/components/typings.js +0 -6
- package/lib/components/typings.js.map +0 -1
- package/lib/hooks/use-get-current-lat-long.d.ts +0 -18
- package/lib/hooks/use-get-current-lat-long.d.ts.map +0 -1
- package/lib/hooks/use-get-current-lat-long.js +0 -29
- package/lib/hooks/use-get-current-lat-long.js.map +0 -1
- package/lib/hooks/useWindowSize.d.ts +0 -6
- package/lib/hooks/useWindowSize.d.ts.map +0 -1
- package/lib/hooks/useWindowSize.js +0 -20
- package/lib/hooks/useWindowSize.js.map +0 -1
- package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts +0 -6
- package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/bookingCarRentalMiddleware.d.ts +0 -6
- package/lib/middlewares/bookingCarRentalMiddleware.d.ts.map +0 -1
- package/lib/middlewares/bookingDatasourcesMiddleware.d.ts +0 -7
- package/lib/middlewares/bookingDatasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/datasourcesMiddleware.d.ts +0 -6
- package/lib/middlewares/datasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts +0 -7
- package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts.map +0 -1
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
import*as React from'react';import {useTranslation}from'react-i18next';import {Switch}from'./Switch.js';import {SearchBarBehavior}from'../../../machines/types.js';import {config}from'../../../config/env-config.js';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import {useMediaQuery}from'../../../hooks/useMediaQuery.js';import {getSettingValue}from'../../../utils/settingsUtils.js';function RegionalSettings(props) {
|
|
2
|
+
const {
|
|
3
|
+
t
|
|
4
|
+
} = useTranslation('settings');
|
|
5
|
+
const {
|
|
6
|
+
settings,
|
|
7
|
+
changeSetting,
|
|
8
|
+
location,
|
|
9
|
+
routePattern,
|
|
10
|
+
applyToAllRoutes = false
|
|
11
|
+
} = props;
|
|
12
|
+
const {
|
|
13
|
+
navTheme
|
|
14
|
+
} = settings || {};
|
|
15
|
+
const currentRoute = routePattern || location?.pathname || '/';
|
|
16
|
+
const [isHeaderExpanded, setIsHeaderExpanded] = React.useState(false);
|
|
17
|
+
const [isBackgroundExpanded, setIsBackgroundExpanded] = React.useState(true);
|
|
18
|
+
const [activeBackgroundTab, setActiveBackgroundTab] = React.useState('desktop');
|
|
19
|
+
const [activeHeaderTab, setActiveHeaderTab] = React.useState('desktop');
|
|
20
|
+
const {
|
|
21
|
+
isMobile
|
|
22
|
+
} = useMediaQuery();
|
|
23
|
+
const scrollThresholdConfig = JSON.parse(config.SCROLL_THRESHOLD);
|
|
24
|
+
const deviceType = isMobile ? 'mobile' : 'desktop';
|
|
25
|
+
// Helper to get config value using the utility function
|
|
26
|
+
const getConfigValue = (configKey, defaultValue, useActiveTab = true) => {
|
|
27
|
+
const device = useActiveTab ? activeBackgroundTab || activeHeaderTab : deviceType;
|
|
28
|
+
return getSettingValue(settings, configKey, applyToAllRoutes, currentRoute, device, defaultValue);
|
|
29
|
+
};
|
|
30
|
+
// Helper to set config value with override
|
|
31
|
+
const setConfigValue = (configKey, value, useActiveTab = true) => {
|
|
32
|
+
if (!changeSetting) return;
|
|
33
|
+
// Pass simple key - handleSettingChange in SettingDrawer will decide if it's global or route-specific
|
|
34
|
+
// based on the applyToAllRoutes flag
|
|
35
|
+
changeSetting(configKey, value);
|
|
36
|
+
};
|
|
37
|
+
const handleRegionChange = (key, value) => {
|
|
38
|
+
setConfigValue(`header.${key}`, value, false);
|
|
39
|
+
};
|
|
40
|
+
const handleRegionFooterChange = (key, value) => {
|
|
41
|
+
setConfigValue(`footer.${key}`, value, false);
|
|
42
|
+
};
|
|
43
|
+
const handleBackgroundChange = (property, value) => {
|
|
44
|
+
setConfigValue(`background.${property}`, value, true);
|
|
45
|
+
};
|
|
46
|
+
const handleHeaderChange = (element, value) => {
|
|
47
|
+
setConfigValue(`header.${element}`, value, true);
|
|
48
|
+
};
|
|
49
|
+
// Get current values using the override-aware getter with active header tab
|
|
50
|
+
const header = React.useMemo(() => ({
|
|
51
|
+
showLogo: getConfigValue('header.showLogo', true, true),
|
|
52
|
+
showSearchSlot: getConfigValue('header.showSearchSlot', true, true),
|
|
53
|
+
showRightContent: getConfigValue('header.showRightContent', true, true),
|
|
54
|
+
showMenuToggle: getConfigValue('header.showMenuToggle', true, true),
|
|
55
|
+
showBackButton: getConfigValue('header.showBackButton', true, true),
|
|
56
|
+
showPageTitle: getConfigValue('header.showPageTitle', true, true),
|
|
57
|
+
showActionButtons: getConfigValue('header.showActionButtons', true, true),
|
|
58
|
+
fixedHeader: getConfigValue('header.fixedHeader', true, true),
|
|
59
|
+
showHeader: getConfigValue('header.showHeader', true, true),
|
|
60
|
+
showMenu: getConfigValue('header.showMenu', true, true),
|
|
61
|
+
menuHeaderRender: getConfigValue('header.menuHeaderRender', true, true),
|
|
62
|
+
searchBarRender: getConfigValue('header.searchBarRender', true, true),
|
|
63
|
+
searchBarBehavior: getConfigValue('header.searchBarBehavior', SearchBarBehavior.PERMANENT, true),
|
|
64
|
+
searchBarOverlay: getConfigValue('header.searchBarOverlay', true, true),
|
|
65
|
+
scrollThreshold: getConfigValue('header.scrollThreshold', scrollThresholdConfig.DEFAULT, true)
|
|
66
|
+
}), [activeHeaderTab, currentRoute, settings, applyToAllRoutes]);
|
|
67
|
+
const background = React.useMemo(() => ({
|
|
68
|
+
type: getConfigValue('background.type', 'color', true),
|
|
69
|
+
color: getConfigValue('background.color', 'inherit', true),
|
|
70
|
+
image: getConfigValue('background.image', '', true),
|
|
71
|
+
video: getConfigValue('background.video', '', true),
|
|
72
|
+
videoThumbnail: getConfigValue('background.videoThumbnail', '', true)
|
|
73
|
+
}), [activeBackgroundTab, currentRoute, settings, applyToAllRoutes]);
|
|
74
|
+
// Helper function to render background settings based on current active tab
|
|
75
|
+
const renderBackgroundSettings = () => {
|
|
76
|
+
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
77
|
+
className: "mb-4"
|
|
78
|
+
}, React.createElement("p", {
|
|
79
|
+
className: "font-medium mb-2",
|
|
80
|
+
style: {
|
|
81
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
82
|
+
}
|
|
83
|
+
}, t('background_type')), React.createElement("div", {
|
|
84
|
+
className: "flex mb-3 rounded-lg overflow-hidden border border-gray-200 divide-x divide-gray-200 bg-gray-50"
|
|
85
|
+
}, React.createElement("button", {
|
|
86
|
+
className: `flex-1 py-2 px-3 text-sm font-medium transition-colors duration-200 flex items-center justify-center ${background?.type === 'color' ? 'bg-blue-500 text-white' : 'bg-white text-gray-700 hover:bg-gray-100'}`,
|
|
87
|
+
onClick: () => handleBackgroundChange('type', 'color')
|
|
88
|
+
}, React.createElement("span", {
|
|
89
|
+
className: "mr-1"
|
|
90
|
+
}, React.createElement("svg", {
|
|
91
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
92
|
+
width: "16",
|
|
93
|
+
height: "16",
|
|
94
|
+
viewBox: "0 0 24 24",
|
|
95
|
+
fill: "none",
|
|
96
|
+
stroke: "currentColor",
|
|
97
|
+
strokeWidth: "2",
|
|
98
|
+
strokeLinecap: "round",
|
|
99
|
+
strokeLinejoin: "round"
|
|
100
|
+
}, React.createElement("circle", {
|
|
101
|
+
cx: "12",
|
|
102
|
+
cy: "12",
|
|
103
|
+
r: "10"
|
|
104
|
+
}), React.createElement("path", {
|
|
105
|
+
d: "M12 8v8M8 12h8"
|
|
106
|
+
}))), t('color')), React.createElement("button", {
|
|
107
|
+
className: `flex-1 py-2 px-3 text-sm font-medium transition-colors duration-200 flex items-center justify-center ${background?.type === 'image' ? 'bg-blue-500 text-white' : 'bg-white text-gray-700 hover:bg-gray-100'}`,
|
|
108
|
+
onClick: () => handleBackgroundChange('type', 'image')
|
|
109
|
+
}, React.createElement("span", {
|
|
110
|
+
className: "mr-1"
|
|
111
|
+
}, React.createElement("svg", {
|
|
112
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
113
|
+
width: "16",
|
|
114
|
+
height: "16",
|
|
115
|
+
viewBox: "0 0 24 24",
|
|
116
|
+
fill: "none",
|
|
117
|
+
stroke: "currentColor",
|
|
118
|
+
strokeWidth: "2",
|
|
119
|
+
strokeLinecap: "round",
|
|
120
|
+
strokeLinejoin: "round"
|
|
121
|
+
}, React.createElement("rect", {
|
|
122
|
+
x: "3",
|
|
123
|
+
y: "3",
|
|
124
|
+
width: "18",
|
|
125
|
+
height: "18",
|
|
126
|
+
rx: "2",
|
|
127
|
+
ry: "2"
|
|
128
|
+
}), React.createElement("circle", {
|
|
129
|
+
cx: "8.5",
|
|
130
|
+
cy: "8.5",
|
|
131
|
+
r: "1.5"
|
|
132
|
+
}), React.createElement("polyline", {
|
|
133
|
+
points: "21 15 16 10 5 21"
|
|
134
|
+
}))), t('image')), React.createElement("button", {
|
|
135
|
+
className: `flex-1 py-2 px-3 text-sm font-medium transition-colors duration-200 flex items-center justify-center ${background?.type === 'video' ? 'bg-blue-500 text-white' : 'bg-white text-gray-700 hover:bg-gray-100'}`,
|
|
136
|
+
onClick: () => handleBackgroundChange('type', 'video')
|
|
137
|
+
}, React.createElement("span", {
|
|
138
|
+
className: "mr-1"
|
|
139
|
+
}, React.createElement("svg", {
|
|
140
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
141
|
+
width: "16",
|
|
142
|
+
height: "16",
|
|
143
|
+
viewBox: "0 0 24 24",
|
|
144
|
+
fill: "none",
|
|
145
|
+
stroke: "currentColor",
|
|
146
|
+
strokeWidth: "2",
|
|
147
|
+
strokeLinecap: "round",
|
|
148
|
+
strokeLinejoin: "round"
|
|
149
|
+
}, React.createElement("polygon", {
|
|
150
|
+
points: "23 7 16 12 23 17 23 7"
|
|
151
|
+
}), React.createElement("rect", {
|
|
152
|
+
x: "1",
|
|
153
|
+
y: "5",
|
|
154
|
+
width: "15",
|
|
155
|
+
height: "14",
|
|
156
|
+
rx: "2",
|
|
157
|
+
ry: "2"
|
|
158
|
+
}))), t('video')))), background?.type === 'color' && React.createElement("div", {
|
|
159
|
+
className: "mb-4"
|
|
160
|
+
}, React.createElement("p", {
|
|
161
|
+
className: "mb-2",
|
|
162
|
+
style: {
|
|
163
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
164
|
+
}
|
|
165
|
+
}, t('background_color')), React.createElement("div", {
|
|
166
|
+
className: "flex items-center"
|
|
167
|
+
}, React.createElement("div", {
|
|
168
|
+
className: "w-12 h-12 rounded-lg border border-gray-300 mr-3 flex-shrink-0 shadow-sm",
|
|
169
|
+
style: {
|
|
170
|
+
backgroundColor: background?.color === 'inherit' ? '#ffffff' : background?.color || '#ffffff'
|
|
171
|
+
}
|
|
172
|
+
}), React.createElement("div", {
|
|
173
|
+
className: "flex-grow"
|
|
174
|
+
}, React.createElement("input", {
|
|
175
|
+
type: "color",
|
|
176
|
+
value: background?.color === 'inherit' ? '#ffffff' : background?.color || '#ffffff',
|
|
177
|
+
onChange: e => handleBackgroundChange('color', e.target.value),
|
|
178
|
+
className: "w-full h-10 rounded cursor-pointer"
|
|
179
|
+
}))), React.createElement("div", {
|
|
180
|
+
className: "flex flex-wrap gap-2 mt-3"
|
|
181
|
+
}, ['#ffffff', '#f2f2f2', '#e6e6e6', '#1890ff', '#52c41a', '#faad14', '#f5222d', '#722ed1'].map(color => React.createElement("button", {
|
|
182
|
+
key: color,
|
|
183
|
+
className: `w-8 h-8 rounded-full border ${color === (background?.color || '#ffffff') ? 'border-blue-500 border-2' : 'border-gray-300'}`,
|
|
184
|
+
style: {
|
|
185
|
+
backgroundColor: color
|
|
186
|
+
},
|
|
187
|
+
onClick: () => handleBackgroundChange('color', color),
|
|
188
|
+
"aria-label": `Select color ${color}`
|
|
189
|
+
})))), background?.type === 'image' && React.createElement("div", {
|
|
190
|
+
className: "mb-2"
|
|
191
|
+
}, React.createElement("div", {
|
|
192
|
+
className: "flex items-center mb-1"
|
|
193
|
+
}, React.createElement("p", {
|
|
194
|
+
style: {
|
|
195
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
196
|
+
}
|
|
197
|
+
}, t('image_url'))), React.createElement("input", {
|
|
198
|
+
type: "text",
|
|
199
|
+
placeholder: t('image_url'),
|
|
200
|
+
value: background?.image || '',
|
|
201
|
+
onChange: e => handleBackgroundChange('image', e.target.value),
|
|
202
|
+
className: "w-full p-1 text-sm border border-gray-300 rounded"
|
|
203
|
+
}), background?.image && React.createElement("div", {
|
|
204
|
+
className: "mt-2 p-1 border border-gray-300 rounded"
|
|
205
|
+
}, React.createElement("img", {
|
|
206
|
+
src: background?.image,
|
|
207
|
+
alt: "Background preview",
|
|
208
|
+
className: "w-full h-24 object-cover",
|
|
209
|
+
onError: e => {
|
|
210
|
+
const target = e.target;
|
|
211
|
+
target.src = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxyZWN0IHg9IjMiIHk9IjMiIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgcng9IjIiIHJ5PSIyIj48L3JlY3Q+PGNpcmNsZSBjeD0iOC41IiBjeT0iOC41IiByPSIxLjUiPjwvY2lyY2xlPjxwb2x5bGluZSBwb2ludHM9IjIxIDEzLjg1IDE2IDEwLjk4IDgiIDE1Ij48L3BvbHlsaW5lPjwvc3ZnPg==';
|
|
212
|
+
}
|
|
213
|
+
}))), background?.type === 'video' && React.createElement("div", {
|
|
214
|
+
className: "mb-2"
|
|
215
|
+
}, React.createElement("div", {
|
|
216
|
+
className: "flex items-center mb-1"
|
|
217
|
+
}, React.createElement("p", {
|
|
218
|
+
style: {
|
|
219
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
220
|
+
}
|
|
221
|
+
}, t('video_url'))), React.createElement("input", {
|
|
222
|
+
type: "text",
|
|
223
|
+
placeholder: t('video_url'),
|
|
224
|
+
value: background?.video || '',
|
|
225
|
+
onChange: e => handleBackgroundChange('video', e.target.value),
|
|
226
|
+
className: "w-full p-1 text-sm border border-gray-300 rounded"
|
|
227
|
+
}), React.createElement("div", {
|
|
228
|
+
className: "flex items-center mt-3 mb-1"
|
|
229
|
+
}, React.createElement("p", {
|
|
230
|
+
style: {
|
|
231
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
232
|
+
}
|
|
233
|
+
}, t('video_thumbnail'))), React.createElement("input", {
|
|
234
|
+
type: "text",
|
|
235
|
+
placeholder: t('video_thumbnail'),
|
|
236
|
+
value: background?.videoThumbnail || '',
|
|
237
|
+
onChange: e => handleBackgroundChange('videoThumbnail', e.target.value),
|
|
238
|
+
className: "w-full p-1 text-sm border border-gray-300 rounded"
|
|
239
|
+
}), React.createElement("div", {
|
|
240
|
+
className: "flex flex-wrap gap-2 mt-3"
|
|
241
|
+
}, !background?.video && background?.videoThumbnail && React.createElement("div", {
|
|
242
|
+
className: "mt-2 p-1 border border-gray-300 rounded w-full"
|
|
243
|
+
}, React.createElement("img", {
|
|
244
|
+
src: background?.videoThumbnail,
|
|
245
|
+
alt: "Video thumbnail preview",
|
|
246
|
+
className: "w-full h-24 object-cover",
|
|
247
|
+
onError: e => {
|
|
248
|
+
const target = e.target;
|
|
249
|
+
target.src = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxwb2x5Z29uIHBvaW50cz0iMjMgNyAxNiAxMiAyMyAxNyAyMyA3Ij48L3BvbHlnb24+PHJlY3QgeD0iMSIgeT0iNSIgd2lkdGg9IjE1IiBoZWlnaHQ9IjE0IiByeD0iMiIgcnk9IjIiPjwvcmVjdD48L3N2Zz4=';
|
|
250
|
+
}
|
|
251
|
+
})))));
|
|
252
|
+
};
|
|
253
|
+
// Helper function to render header settings based on current active tab
|
|
254
|
+
const renderHeaderSettings = () => {
|
|
255
|
+
return React.createElement("div", {
|
|
256
|
+
className: "space-y-2"
|
|
257
|
+
}, React.createElement("div", {
|
|
258
|
+
className: "flex items-center"
|
|
259
|
+
}, React.createElement("p", {
|
|
260
|
+
style: {
|
|
261
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
262
|
+
}
|
|
263
|
+
}, t('show_header')), React.createElement("div", {
|
|
264
|
+
className: "flex-grow"
|
|
265
|
+
}), React.createElement(Switch, {
|
|
266
|
+
value: header?.showHeader ?? true,
|
|
267
|
+
onChange: checked => handleHeaderChange('showHeader', checked)
|
|
268
|
+
})), React.createElement("div", {
|
|
269
|
+
className: "flex items-center"
|
|
270
|
+
}, React.createElement("p", {
|
|
271
|
+
style: {
|
|
272
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
273
|
+
}
|
|
274
|
+
}, t('fixed_header')), React.createElement("div", {
|
|
275
|
+
className: "flex-grow"
|
|
276
|
+
}), React.createElement(Switch, {
|
|
277
|
+
value: header?.fixedHeader,
|
|
278
|
+
onChange: checked => handleHeaderChange('fixedHeader', checked)
|
|
279
|
+
})), React.createElement("div", {
|
|
280
|
+
className: "flex items-center"
|
|
281
|
+
}, React.createElement("p", {
|
|
282
|
+
style: {
|
|
283
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
284
|
+
}
|
|
285
|
+
}, t('show_logo')), React.createElement("div", {
|
|
286
|
+
className: "flex-grow"
|
|
287
|
+
}), React.createElement(Switch, {
|
|
288
|
+
value: header?.showLogo,
|
|
289
|
+
onChange: checked => handleHeaderChange('showLogo', checked)
|
|
290
|
+
})), React.createElement("div", {
|
|
291
|
+
className: "flex items-center"
|
|
292
|
+
}, React.createElement("p", {
|
|
293
|
+
style: {
|
|
294
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
295
|
+
}
|
|
296
|
+
}, t('show_search_slot')), React.createElement("div", {
|
|
297
|
+
className: "flex-grow"
|
|
298
|
+
}), React.createElement(Switch, {
|
|
299
|
+
value: header?.showSearchSlot,
|
|
300
|
+
onChange: checked => handleHeaderChange('showSearchSlot', checked)
|
|
301
|
+
})), React.createElement("div", {
|
|
302
|
+
className: "flex items-center"
|
|
303
|
+
}, React.createElement("p", {
|
|
304
|
+
style: {
|
|
305
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
306
|
+
}
|
|
307
|
+
}, t('show_right_content')), React.createElement("div", {
|
|
308
|
+
className: "flex-grow"
|
|
309
|
+
}), React.createElement(Switch, {
|
|
310
|
+
value: header?.showRightContent,
|
|
311
|
+
onChange: checked => handleHeaderChange('showRightContent', checked)
|
|
312
|
+
})), React.createElement("div", {
|
|
313
|
+
className: "flex items-center"
|
|
314
|
+
}, React.createElement("p", {
|
|
315
|
+
style: {
|
|
316
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
317
|
+
}
|
|
318
|
+
}, t('show_menu_toggle')), React.createElement("div", {
|
|
319
|
+
className: "flex-grow"
|
|
320
|
+
}), React.createElement(Switch, {
|
|
321
|
+
value: header?.showMenuToggle,
|
|
322
|
+
onChange: checked => handleHeaderChange('showMenuToggle', checked)
|
|
323
|
+
})), React.createElement("div", {
|
|
324
|
+
className: "flex items-center"
|
|
325
|
+
}, React.createElement("p", {
|
|
326
|
+
style: {
|
|
327
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
328
|
+
}
|
|
329
|
+
}, t('show_back_button')), React.createElement("div", {
|
|
330
|
+
className: "flex-grow"
|
|
331
|
+
}), React.createElement(Switch, {
|
|
332
|
+
value: header?.showBackButton,
|
|
333
|
+
onChange: checked => handleHeaderChange('showBackButton', checked)
|
|
334
|
+
})), React.createElement("div", {
|
|
335
|
+
className: "flex items-center"
|
|
336
|
+
}, React.createElement("p", {
|
|
337
|
+
style: {
|
|
338
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
339
|
+
}
|
|
340
|
+
}, t('show_page_title')), React.createElement("div", {
|
|
341
|
+
className: "flex-grow"
|
|
342
|
+
}), React.createElement(Switch, {
|
|
343
|
+
value: header?.showPageTitle,
|
|
344
|
+
onChange: checked => handleHeaderChange('showPageTitle', checked)
|
|
345
|
+
})), React.createElement("div", {
|
|
346
|
+
className: "flex items-center"
|
|
347
|
+
}, React.createElement("p", {
|
|
348
|
+
style: {
|
|
349
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
350
|
+
}
|
|
351
|
+
}, t('show_action_buttons')), React.createElement("div", {
|
|
352
|
+
className: "flex-grow"
|
|
353
|
+
}), React.createElement(Switch, {
|
|
354
|
+
value: header?.showActionButtons,
|
|
355
|
+
onChange: checked => handleHeaderChange('showActionButtons', checked)
|
|
356
|
+
})));
|
|
357
|
+
};
|
|
358
|
+
// Helper function to render search bar settings based on current active tab
|
|
359
|
+
const renderSearchBarSettings = () => {
|
|
360
|
+
return React.createElement("div", {
|
|
361
|
+
className: "space-y-2"
|
|
362
|
+
}, React.createElement("div", {
|
|
363
|
+
className: "flex items-center"
|
|
364
|
+
}, React.createElement("p", {
|
|
365
|
+
style: {
|
|
366
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
367
|
+
}
|
|
368
|
+
}, t('search_bar')), React.createElement("div", {
|
|
369
|
+
className: "flex-grow"
|
|
370
|
+
}), React.createElement(Switch, {
|
|
371
|
+
value: header?.searchBarRender,
|
|
372
|
+
onChange: checked => handleHeaderChange('searchBarRender', checked)
|
|
373
|
+
})), React.createElement("div", {
|
|
374
|
+
className: "flex items-center"
|
|
375
|
+
}, React.createElement("p", {
|
|
376
|
+
style: {
|
|
377
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
378
|
+
}
|
|
379
|
+
}, t('search_bar_on_scroll')), React.createElement("div", {
|
|
380
|
+
className: "flex-grow"
|
|
381
|
+
}), React.createElement(Switch, {
|
|
382
|
+
value: header?.searchBarBehavior === SearchBarBehavior.ON_SCROLL,
|
|
383
|
+
onChange: checked => handleHeaderChange('searchBarBehavior', checked ? SearchBarBehavior.ON_SCROLL : SearchBarBehavior.PERMANENT)
|
|
384
|
+
})), React.createElement("div", {
|
|
385
|
+
className: "flex items-center"
|
|
386
|
+
}, React.createElement("p", {
|
|
387
|
+
style: {
|
|
388
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
389
|
+
}
|
|
390
|
+
}, t('search_bar_overlay')), React.createElement("div", {
|
|
391
|
+
className: "flex-grow"
|
|
392
|
+
}), React.createElement(Switch, {
|
|
393
|
+
value: header?.searchBarOverlay,
|
|
394
|
+
onChange: checked => handleHeaderChange('searchBarOverlay', checked)
|
|
395
|
+
})), React.createElement("div", {
|
|
396
|
+
className: "mb-4"
|
|
397
|
+
}, React.createElement("div", {
|
|
398
|
+
className: "flex items-center justify-between mb-2"
|
|
399
|
+
}, React.createElement("p", {
|
|
400
|
+
style: {
|
|
401
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
402
|
+
}
|
|
403
|
+
}, t('scroll_threshold')), React.createElement("span", {
|
|
404
|
+
className: "text-sm",
|
|
405
|
+
style: {
|
|
406
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
407
|
+
}
|
|
408
|
+
}, header?.scrollThreshold || scrollThresholdConfig.DEFAULT, "px")), React.createElement("div", {
|
|
409
|
+
className: "relative"
|
|
410
|
+
}, React.createElement("input", {
|
|
411
|
+
type: "range",
|
|
412
|
+
min: scrollThresholdConfig.MIN,
|
|
413
|
+
max: scrollThresholdConfig.MAX,
|
|
414
|
+
step: scrollThresholdConfig.STEP,
|
|
415
|
+
value: header?.scrollThreshold || scrollThresholdConfig.DEFAULT,
|
|
416
|
+
onChange: e => handleHeaderChange('scrollThreshold', parseInt(e.target.value)),
|
|
417
|
+
className: "w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer"
|
|
418
|
+
}), React.createElement("div", {
|
|
419
|
+
className: "flex justify-between text-xs mt-2"
|
|
420
|
+
}, React.createElement("span", null, scrollThresholdConfig.MIN, "px"), React.createElement("span", null, scrollThresholdConfig.MAX / 2, "px"), React.createElement("span", null, scrollThresholdConfig.MAX, "px")))));
|
|
421
|
+
};
|
|
422
|
+
return React.createElement("div", null, React.createElement("div", null, React.createElement("div", {
|
|
423
|
+
className: "flex items-center mb-2"
|
|
424
|
+
}, React.createElement("button", {
|
|
425
|
+
onClick: () => setIsBackgroundExpanded(!isBackgroundExpanded),
|
|
426
|
+
className: "flex items-center gap-2 hover:opacity-80 transition-all duration-200"
|
|
427
|
+
}, React.createElement("svg", {
|
|
428
|
+
className: `w-4 h-4 transition-transform duration-300 ease-in-out ${isBackgroundExpanded ? 'rotate-180' : ''}`,
|
|
429
|
+
fill: "none",
|
|
430
|
+
stroke: "currentColor",
|
|
431
|
+
viewBox: "0 0 24 24"
|
|
432
|
+
}, React.createElement("path", {
|
|
433
|
+
strokeLinecap: "round",
|
|
434
|
+
strokeLinejoin: "round",
|
|
435
|
+
strokeWidth: 2,
|
|
436
|
+
d: "M19 9l-7 7-7-7"
|
|
437
|
+
})), React.createElement("p", {
|
|
438
|
+
style: {
|
|
439
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
440
|
+
}
|
|
441
|
+
}, t('background')))), React.createElement("div", {
|
|
442
|
+
className: `grid transition-all duration-300 ease-in-out ${isBackgroundExpanded ? 'grid-rows-[1fr]' : 'grid-rows-[0fr]'}`
|
|
443
|
+
}, React.createElement("div", {
|
|
444
|
+
className: "overflow-hidden"
|
|
445
|
+
}, React.createElement("div", {
|
|
446
|
+
className: "ml-4 mb-4 border-l-2 border-gray-200 pl-4"
|
|
447
|
+
}, React.createElement("div", {
|
|
448
|
+
className: "mb-4"
|
|
449
|
+
}, renderBackgroundSettings()))))), React.createElement("div", null, React.createElement("div", {
|
|
450
|
+
className: "flex items-center mb-2"
|
|
451
|
+
}, React.createElement("button", {
|
|
452
|
+
onClick: () => setIsHeaderExpanded(!isHeaderExpanded),
|
|
453
|
+
className: "flex items-center gap-2 hover:opacity-80 transition-all duration-200"
|
|
454
|
+
}, React.createElement("svg", {
|
|
455
|
+
className: `w-4 h-4 transition-transform duration-300 ease-in-out ${isHeaderExpanded ? 'rotate-180' : ''}`,
|
|
456
|
+
fill: "none",
|
|
457
|
+
stroke: "currentColor",
|
|
458
|
+
viewBox: "0 0 24 24"
|
|
459
|
+
}, React.createElement("path", {
|
|
460
|
+
strokeLinecap: "round",
|
|
461
|
+
strokeLinejoin: "round",
|
|
462
|
+
strokeWidth: 2,
|
|
463
|
+
d: "M19 9l-7 7-7-7"
|
|
464
|
+
})), React.createElement("p", {
|
|
465
|
+
style: {
|
|
466
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
467
|
+
}
|
|
468
|
+
}, t('header')))), React.createElement("div", {
|
|
469
|
+
className: `grid transition-all duration-300 ease-in-out ${isHeaderExpanded ? 'grid-rows-[1fr]' : 'grid-rows-[0fr]'}`
|
|
470
|
+
}, React.createElement("div", {
|
|
471
|
+
className: "overflow-hidden"
|
|
472
|
+
}, React.createElement("div", {
|
|
473
|
+
className: "ml-4 mb-4 border-l-2 border-gray-200 pl-4"
|
|
474
|
+
}, React.createElement("div", {
|
|
475
|
+
className: "mb-4"
|
|
476
|
+
}, renderHeaderSettings()), React.createElement("div", {
|
|
477
|
+
className: "mt-6 mb-4"
|
|
478
|
+
}, React.createElement("p", {
|
|
479
|
+
className: "font-medium mb-2",
|
|
480
|
+
style: {
|
|
481
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
482
|
+
}
|
|
483
|
+
}, t('search_bar')), React.createElement("div", {
|
|
484
|
+
className: "pl-4 space-y-2"
|
|
485
|
+
}, renderSearchBarSettings())))))), React.createElement("div", {
|
|
486
|
+
className: "flex items-center mb-2"
|
|
487
|
+
}, React.createElement("p", {
|
|
488
|
+
style: {
|
|
489
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
490
|
+
}
|
|
491
|
+
}, t('footer')), React.createElement("div", {
|
|
492
|
+
className: "flex-grow"
|
|
493
|
+
}), React.createElement(Switch, {
|
|
494
|
+
value: getConfigValue('footer.showFooter', true),
|
|
495
|
+
onChange: checked => handleRegionFooterChange('showFooter', checked)
|
|
496
|
+
})), React.createElement("div", {
|
|
497
|
+
className: "flex items-center mb-2"
|
|
498
|
+
}, React.createElement("p", {
|
|
499
|
+
style: {
|
|
500
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
501
|
+
}
|
|
502
|
+
}, t('menu')), React.createElement("div", {
|
|
503
|
+
className: "flex-grow"
|
|
504
|
+
}), React.createElement(Switch, {
|
|
505
|
+
value: getConfigValue('header.showMenu', true),
|
|
506
|
+
onChange: checked => handleRegionChange('showMenu', checked)
|
|
507
|
+
})), React.createElement("div", {
|
|
508
|
+
className: "flex items-center mb-2"
|
|
509
|
+
}, React.createElement("p", {
|
|
510
|
+
style: {
|
|
511
|
+
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
512
|
+
}
|
|
513
|
+
}, t('menu_header')), React.createElement("div", {
|
|
514
|
+
className: "flex-grow"
|
|
515
|
+
}), React.createElement(Switch, {
|
|
516
|
+
value: getConfigValue('header.menuHeaderRender', true),
|
|
517
|
+
onChange: checked => handleRegionChange('menuHeaderRender', checked)
|
|
518
|
+
})));
|
|
519
|
+
}export{RegionalSettings};//# sourceMappingURL=RegionalSettings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RegionalSettings.js","sources":["../../../../src/components/SettingDrawer/components/RegionalSettings.tsx"],"sourcesContent":[null],"names":[],"mappings":"uaASM,SAAU,gBAAgB,CAAC,KAA6B,EAAA;QAC1D;AACA,IAAA;AACA,GAAA,GAAA,cAAgB,CAAA,UAAK,CAAA;QACrB;AACA,IAAA,QAAO;AACP,IAAA,aAAO;AACP,IAAA,QAAO;AACP,IAAA,YAAO;AACP,IAAA,gBAAgB,GAAE;MAClB,KAAM;QACN;IAEA;MACA,QAAM,IAAA,EAAA;AACF,EAAA,MAAA,YAAY,GAAG,YAAY,IAAG,QAAA,EAAA,QAAmB,IAAI,GAAA;AACrD,EAAA,MAAA,CAAA,gBAAO,EAAA,uBAAmC,KAAE,CAAA,QAAA,CAAA,KAAkB,CAAA;AAClE,EAAA,MAAE,CAAA,oBAAA,EAAA,uBAAA,CAAA,GAAA,KAAA,CAAA,QAAA,CAAA,IAAA,CAAA;QAEF,CAAA,mBAAA,EAAA,sBAA2C,CAAA,GAAA,KAAA,CAAA,QAAA,CAAA,SAAA,CAAA;QAC3C,CAAA,eAAoB,EAAA,kBAAiC,CAAA,GAAE,KAAA,CAAA,QAAwB,CAAA,SAAQ,CAAA;AACnF,EAAA,MAAA;;mBAEA,EAAA;QACA,qBAAA,GAAA,IAAA,CAAA,KAAA,CAAA,MAAqC,CAAA,gBAAA,CAAA;AACrC,EAAA,MAAA,UAAA,GAAa,QAAC,GAAS,QAAS,GAAA,SAAA;AACpC;AAEA,EAAA,MAAA,2BAAuC,EAAE,YAAkB,EAAA,YAAA,GAAA,IAAA,KAAA;UACvD,MAAA,GAAA,eAAyB,mBAAoB,IAAC,eAAA,GAAA,UAAA;AAClD,IAAA,OAAE,eAAA,CAAA,QAAA,EAAA,SAAA,EAAA,gBAAA,EAAA,YAAA,EAAA,MAAA,EAAA,Y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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SettingsActionsProps {
|
|
3
|
+
hasChanges: boolean;
|
|
4
|
+
copied: boolean;
|
|
5
|
+
copiedModified: boolean;
|
|
6
|
+
onSave: () => void;
|
|
7
|
+
onCopyAll: () => void;
|
|
8
|
+
onCopyModified: () => void;
|
|
9
|
+
onReset: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function SettingsActions({ hasChanges, copied, copiedModified, onSave, onCopyAll, onCopyModified, onReset, }: SettingsActionsProps): React.JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=SettingsActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SettingsActions.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/components/SettingsActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,oBAAoB;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,wBAAgB,eAAe,CAAC,EAC5B,UAAU,EACV,MAAM,EACN,cAAc,EACd,MAAM,EACN,SAAS,EACT,cAAc,EACd,OAAO,GACV,EAAE,oBAAoB,qBAwEtB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React__default from'react';import clsx from'clsx';import {icons}from'../../../icons.js';function SettingsActions({
|
|
2
|
+
hasChanges,
|
|
3
|
+
copied,
|
|
4
|
+
copiedModified,
|
|
5
|
+
onSave,
|
|
6
|
+
onCopyAll,
|
|
7
|
+
onCopyModified,
|
|
8
|
+
onReset
|
|
9
|
+
}) {
|
|
10
|
+
const {
|
|
11
|
+
CopyIcon,
|
|
12
|
+
CheckIcon
|
|
13
|
+
} = icons;
|
|
14
|
+
return React__default.createElement("div", {
|
|
15
|
+
className: "bg-yellow-50 dark:bg-yellow-900 border border-yellow-200 dark:border-yellow-700 rounded-lg p-4 mt-4"
|
|
16
|
+
}, React__default.createElement("p", {
|
|
17
|
+
className: "text-sm text-yellow-700 dark:text-yellow-200"
|
|
18
|
+
}, "Setting panel shows in development environment only, please manually modify"), React__default.createElement("div", {
|
|
19
|
+
className: "flex flex-wrap gap-2 mt-2"
|
|
20
|
+
}, React__default.createElement("button", {
|
|
21
|
+
disabled: !hasChanges,
|
|
22
|
+
className: clsx('flex-1 min-w-[140px] sm:flex-none sm:w-auto px-4 py-2 rounded-lg border text-sm font-medium shadow-sm transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2', !hasChanges ? 'border-gray-300 text-gray-500 bg-gray-50 cursor-not-allowed dark:border-gray-600 dark:text-gray-400 dark:bg-gray-800' : 'border-yellow-300 text-yellow-700 bg-yellow-50 hover:bg-yellow-100 active:bg-yellow-200 dark:border-yellow-600 dark:text-yellow-200 dark:bg-yellow-900/50 dark:hover:bg-yellow-900'),
|
|
23
|
+
onClick: onSave
|
|
24
|
+
}, React__default.createElement("span", null, !hasChanges ? 'No Changes' : 'Save Settings')), React__default.createElement("button", {
|
|
25
|
+
className: clsx('flex-1 min-w-[140px] sm:flex-none sm:w-auto px-4 py-2 rounded-lg border text-sm font-medium shadow-sm transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2', copied ? 'border-green-300 text-green-700 bg-green-50 dark:border-green-600 dark:text-green-200 dark:bg-green-900' : 'border-yellow-300 text-yellow-700 bg-yellow-50 hover:bg-yellow-100 active:bg-yellow-200 dark:border-yellow-600 dark:text-yellow-200 dark:bg-yellow-900/50 dark:hover:bg-yellow-900'),
|
|
26
|
+
onClick: onCopyAll
|
|
27
|
+
}, copied ? React__default.createElement(React__default.Fragment, null, React__default.createElement(CheckIcon, {
|
|
28
|
+
className: "w-4 h-4"
|
|
29
|
+
}), React__default.createElement("span", null, "Copied!")) : React__default.createElement(React__default.Fragment, null, React__default.createElement(CopyIcon, {
|
|
30
|
+
className: "w-4 h-4"
|
|
31
|
+
}), React__default.createElement("span", null, "Copy All Settings"))), React__default.createElement("button", {
|
|
32
|
+
className: clsx('flex-1 min-w-[140px] sm:flex-none sm:w-auto px-4 py-2 rounded-lg border text-sm font-medium shadow-sm transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2', copiedModified ? 'border-green-300 text-green-700 bg-green-50 dark:border-green-600 dark:text-green-200 dark:bg-green-900' : 'border-blue-300 text-blue-700 bg-blue-50 hover:bg-blue-100 active:bg-blue-200 dark:border-blue-600 dark:text-blue-200 dark:bg-blue-900/50 dark:hover:bg-blue-900'),
|
|
33
|
+
onClick: onCopyModified
|
|
34
|
+
}, copiedModified ? React__default.createElement(React__default.Fragment, null, React__default.createElement(CheckIcon, {
|
|
35
|
+
className: "w-4 h-4"
|
|
36
|
+
}), React__default.createElement("span", null, "Copied!")) : React__default.createElement(React__default.Fragment, null, React__default.createElement(CopyIcon, {
|
|
37
|
+
className: "w-4 h-4"
|
|
38
|
+
}), React__default.createElement("span", null, "Copy Modified Settings"))), React__default.createElement("button", {
|
|
39
|
+
className: "flex-1 min-w-[140px] sm:flex-none sm:w-auto px-4 py-2 rounded-lg border border-red-300 text-red-700 bg-red-50 hover:bg-red-100 active:bg-red-200 dark:border-red-600 dark:text-red-200 dark:bg-red-900/50 dark:hover:bg-red-900 text-sm font-medium shadow-sm transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500",
|
|
40
|
+
onClick: onReset
|
|
41
|
+
}, React__default.createElement("span", null, "\uD83D\uDD04 Reset All Settings"))));
|
|
42
|
+
}export{SettingsActions};//# sourceMappingURL=SettingsActions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SettingsActions.js","sources":["../../../../src/components/SettingDrawer/components/SettingsActions.tsx"],"sourcesContent":[null],"names":["React"],"mappings":"wGAcgB,eAAe,CAAC;AAS5B,EAAA,UAAQ;AAER,EAAA,MAAA;gBAEQ;QAGA;AACI,EAAA,SAAA;AAKY,EAAA,cAAA;AACA,EAAA;;AAMZ,EAAA,MAAA;AAIY,IAAA,QAAA;AACA,IAAA;AAMA,GAAA,GAAA,KAAA;AACA,EAAA,OAAAA,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAIA,IAAA,SAAA,EAAA;iCACA,CAAA,GAAA,EAAA;AAIZ,IAAA,SAAA,EAAA;AAIY,GAAA,EAAA,6EAAE,CAAA,EAAAA,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AACF,IAAA,SAAA,EAAA;AAMA,GAAA,EAAAA,cAAA,CAAA,aAAA,CAAA,QAAA,EAAA;AACA,IAAA,QAAA,EAAA,CAAA,UAAA;AAIA,IAAA,SAAA,EAAA,IAAA,CAAA,uLAAgC,EAAA,CAAA,UAAA,GAAA,sHAAA,GAAA,oLAAA,CAAA;;AAK5C,GAAA,EAAAA,cAAA,CAAA,aAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,aACa,YAAC,GAAA,eAAA,CAAA,CAAA,EAAAA,cAAA,CAAA,aAAA,CAAA,QAAA,EAAA;AAGV,IAAA,SAAA,EAAA,IAAA,CAAA,uLAId,EAAA,MAAA,GAAA,yGAAA,GAAA,oLAAA,CAAA;AACN,IAAC,OAAA,EAAA;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SettingsDrawerHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/components/SettingsDrawerHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,wBAAgB,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,qBAgBxE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React__default from'react';import {useTranslation}from'react-i18next';import {icons}from'../../../icons.js';function SettingsDrawerHeader({
|
|
2
|
+
onClose
|
|
3
|
+
}) {
|
|
4
|
+
const {
|
|
5
|
+
t
|
|
6
|
+
} = useTranslation('settings');
|
|
7
|
+
const {
|
|
8
|
+
CloseIcon
|
|
9
|
+
} = icons;
|
|
10
|
+
return React__default.createElement("div", {
|
|
11
|
+
className: "flex flex-row items-center"
|
|
12
|
+
}, React__default.createElement("p", {
|
|
13
|
+
className: "text-2xl mb-0 text-black dark:text-white"
|
|
14
|
+
}, t('setting')), React__default.createElement("div", {
|
|
15
|
+
className: "flex-grow"
|
|
16
|
+
}), React__default.createElement("button", {
|
|
17
|
+
onClick: onClose,
|
|
18
|
+
className: "bg-transparent border-none rounded-lg w-10 h-10 cursor-pointer mb-2 hover:bg-gray-200 dark:hover:bg-[#2a2a2a]"
|
|
19
|
+
}, React__default.createElement(CloseIcon, {
|
|
20
|
+
fontSize: '36px'
|
|
21
|
+
})));
|
|
22
|
+
}export{SettingsDrawerHeader};//# sourceMappingURL=SettingsDrawerHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SettingsDrawerHeader.js","sources":["../../../../src/components/SettingDrawer/components/SettingsDrawerHeader.tsx"],"sourcesContent":[null],"names":[],"mappings":"mHAIM,SAAU,oBAAoB,CAAC;;AAEjC,CAAA,EAAA;AAEA,EAAA,MAAA;;oBAGQ,CAAA,UAAA,CAAA;AACA,EAAA,MAAA;;AAQZ,GAAC,GAAA,KAAA;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/components/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,wBAAgB,MAAM,CAAC,EAAE,KAAa,EAAE,QAAQ,EAAE,SAAc,EAAE,EAAE,WAAW,qBAuB9E"}
|