@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Sidebar/SidebarMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA2MlD,CAAC"}
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import {jsx,jsxs}from'react/jsx-runtime';import {useState}from'react';import {useLocation,Link}from'@remix-run/react';import {generateMenuPath}from'@admin-layout/client';import {generateLightShade}from'../BasicLayout/utils.js';import {icons}from'../../../icons.js';const SidebarMenu = ({
|
|
2
|
-
menuData,
|
|
3
|
-
routeParams,
|
|
4
|
-
settings,
|
|
5
|
-
collapsed
|
|
6
|
-
}) => {
|
|
7
|
-
const [openMenusByLevel, setOpenMenusByLevel] = useState({});
|
|
8
|
-
const [hoveredMenu, setHoveredMenu] = useState(null);
|
|
9
|
-
const [popupPosition, setPopupPosition] = useState({
|
|
10
|
-
top: 0,
|
|
11
|
-
height: 0
|
|
12
|
-
});
|
|
13
|
-
const {
|
|
14
|
-
ChevronDownIcon,
|
|
15
|
-
ChevronUpIcon
|
|
16
|
-
} = icons;
|
|
17
|
-
const location = useLocation();
|
|
18
|
-
const isMenuItemActive = itemPath => {
|
|
19
|
-
const currentPath = location.pathname;
|
|
20
|
-
const menuPath = generateMenuPath(itemPath, routeParams);
|
|
21
|
-
// Exact match
|
|
22
|
-
if (currentPath === menuPath) {
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
// Check if current path is a child of the menu item path
|
|
26
|
-
if (menuPath && currentPath.startsWith(menuPath + '/')) {
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
return false;
|
|
30
|
-
};
|
|
31
|
-
const toggleMenu = (path, depth, e) => {
|
|
32
|
-
e.preventDefault();
|
|
33
|
-
if (collapsed) return;
|
|
34
|
-
setOpenMenusByLevel(prev => ({
|
|
35
|
-
...prev,
|
|
36
|
-
[depth]: prev[depth] === path ? null : path
|
|
37
|
-
}));
|
|
38
|
-
};
|
|
39
|
-
const handleMenuClick = (path, hasChildren, depth, e) => {
|
|
40
|
-
if (hasChildren && !collapsed) {
|
|
41
|
-
toggleMenu(path, depth, e);
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
const getFirstLetter = name => {
|
|
45
|
-
return name.charAt(0).toUpperCase();
|
|
46
|
-
};
|
|
47
|
-
const handleMenuHover = (e, item, isHoverMenu) => {
|
|
48
|
-
// Only set hover state if the menu has children
|
|
49
|
-
if (collapsed && !isHoverMenu && item.children && item.children.length > 0) {
|
|
50
|
-
const element = e.currentTarget;
|
|
51
|
-
const rect = element.getBoundingClientRect();
|
|
52
|
-
let top = rect.top;
|
|
53
|
-
// Store the height to use for positioning
|
|
54
|
-
setPopupPosition({
|
|
55
|
-
top: top,
|
|
56
|
-
height: rect.height
|
|
57
|
-
});
|
|
58
|
-
setHoveredMenu(item.path);
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
const handleMenuLeave = (item, isHoverMenu) => {
|
|
62
|
-
if (collapsed && !isHoverMenu) {
|
|
63
|
-
setHoveredMenu(null);
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
const renderPopupMenu = (item, depth = 0) => {
|
|
67
|
-
if (!item.children || item.children.length === 0) return null;
|
|
68
|
-
const bgColor = generateLightShade(settings?.primaryColor, 0.98);
|
|
69
|
-
const sidebarWidth = collapsed ? 64 : 256; // 80px for collapsed (w-20), 256px for expanded (w-64)
|
|
70
|
-
return jsxs("div", {
|
|
71
|
-
className: "fixed shadow-xl rounded-md border border-gray-100 z-[999] overflow-hidden",
|
|
72
|
-
style: {
|
|
73
|
-
backgroundColor: bgColor,
|
|
74
|
-
left: `${sidebarWidth}px`,
|
|
75
|
-
// Position right after sidebar
|
|
76
|
-
top: `${popupPosition.top}px`,
|
|
77
|
-
boxShadow: '0 5px 15px rgba(0, 0, 0, 0.2)',
|
|
78
|
-
animation: 'fadeIn 0.2s ease-out forwards',
|
|
79
|
-
maxWidth: 'calc(100vw - 100px)',
|
|
80
|
-
// Prevent overflow on small screens
|
|
81
|
-
width: 'max-content',
|
|
82
|
-
minWidth: '220px'
|
|
83
|
-
},
|
|
84
|
-
children: [jsx("style", {
|
|
85
|
-
dangerouslySetInnerHTML: {
|
|
86
|
-
__html: `
|
|
87
|
-
@keyframes fadeIn {
|
|
88
|
-
from { opacity: 0; transform: translateX(-10px); }
|
|
89
|
-
to { opacity: 1; transform: translateX(0); }
|
|
90
|
-
}
|
|
91
|
-
`
|
|
92
|
-
}
|
|
93
|
-
}), jsx("div", {
|
|
94
|
-
className: "font-medium text-sm px-4 py-3 border-b border-gray-100 whitespace-nowrap",
|
|
95
|
-
style: {
|
|
96
|
-
backgroundColor: generateLightShade(settings?.primaryColor, 0.95)
|
|
97
|
-
},
|
|
98
|
-
children: jsx("span", {
|
|
99
|
-
style: {
|
|
100
|
-
color: settings?.primaryColor
|
|
101
|
-
},
|
|
102
|
-
children: item.name
|
|
103
|
-
})
|
|
104
|
-
}), jsx("div", {
|
|
105
|
-
className: "max-h-[400px] overflow-y-auto overflow-x-hidden py-1",
|
|
106
|
-
children: item.children.map(child => jsx("div", {
|
|
107
|
-
className: "w-full min-w-max",
|
|
108
|
-
children: renderMenuItem(child, depth + 1, true)
|
|
109
|
-
}, child.path))
|
|
110
|
-
})]
|
|
111
|
-
});
|
|
112
|
-
};
|
|
113
|
-
const renderMenuItem = (item, depth = 0, isHoverMenu = false) => {
|
|
114
|
-
const hasChildren = item.children && item.children.length > 0;
|
|
115
|
-
const isOpen = openMenusByLevel[depth] === item.path;
|
|
116
|
-
const isActive = isMenuItemActive(item.path);
|
|
117
|
-
const isHovered = hoveredMenu === item.path;
|
|
118
|
-
const paddingLeft = `${depth * 1}rem`;
|
|
119
|
-
const bgColor = generateLightShade(settings?.primaryColor, 0.89);
|
|
120
|
-
// Determine styling based on whether it's a parent or child item
|
|
121
|
-
const isParentWithChildren = hasChildren && depth === 0;
|
|
122
|
-
const shouldApplyBackground = isActive && !isParentWithChildren || isHovered;
|
|
123
|
-
return jsxs("div", {
|
|
124
|
-
className: `w-full relative group ${isHovered && collapsed && !isHoverMenu ? `rounded-md` : ''}`,
|
|
125
|
-
style: {
|
|
126
|
-
backgroundColor: isHovered && !isHoverMenu ? bgColor : ''
|
|
127
|
-
},
|
|
128
|
-
onMouseEnter: e => handleMenuHover(e, item, isHoverMenu),
|
|
129
|
-
onMouseLeave: () => handleMenuLeave(item, isHoverMenu),
|
|
130
|
-
children: [jsxs(Link, {
|
|
131
|
-
to: hasChildren && collapsed && !isHoverMenu ? '#' : generateMenuPath(item?.path, routeParams),
|
|
132
|
-
className: `flex items-center justify-between w-full px-1 py-2 hover:bg-gray-100 text-sm cursor-pointer transition-colors rounded-md mx-1 my-0.5 whitespace-nowrap overflow-hidden text-ellipsis`,
|
|
133
|
-
style: {
|
|
134
|
-
paddingLeft: `calc(1rem + ${paddingLeft})`,
|
|
135
|
-
backgroundColor: shouldApplyBackground ? bgColor : ''
|
|
136
|
-
},
|
|
137
|
-
onClick: e => handleMenuClick(item.path, hasChildren, depth, e),
|
|
138
|
-
children: [jsxs("div", {
|
|
139
|
-
className: `flex items-center ${collapsed && !isHoverMenu ? 'justify-center w-full' : 'gap-3'}`,
|
|
140
|
-
children: [item.icon ? jsx("span", {
|
|
141
|
-
className: `flex-shrink-0`,
|
|
142
|
-
style: {
|
|
143
|
-
color: isActive ? settings?.primaryColor : ''
|
|
144
|
-
},
|
|
145
|
-
children: item.icon
|
|
146
|
-
}) : collapsed && !isHoverMenu ? jsx("span", {
|
|
147
|
-
className: "flex items-center justify-center flex-shrink-0",
|
|
148
|
-
style: {
|
|
149
|
-
color: isActive ? settings?.primaryColor : ''
|
|
150
|
-
},
|
|
151
|
-
children: getFirstLetter(item.name)
|
|
152
|
-
}) : null, (!collapsed || isHoverMenu) && jsx("span", {
|
|
153
|
-
className: "font-medium whitespace-nowrap overflow-hidden text-ellipsis",
|
|
154
|
-
style: {
|
|
155
|
-
color: isActive ? settings?.primaryColor : ''
|
|
156
|
-
},
|
|
157
|
-
children: item.name
|
|
158
|
-
})]
|
|
159
|
-
}), hasChildren && (!collapsed || isHoverMenu) && jsx("span", {
|
|
160
|
-
style: {
|
|
161
|
-
color: isActive ? settings?.primaryColor : ''
|
|
162
|
-
},
|
|
163
|
-
className: "flex-shrink-0 ml-1",
|
|
164
|
-
children: isOpen ? jsx(ChevronUpIcon, {
|
|
165
|
-
className: "h-4 w-4"
|
|
166
|
-
}) : jsx(ChevronDownIcon, {
|
|
167
|
-
className: "h-4 w-4"
|
|
168
|
-
})
|
|
169
|
-
})]
|
|
170
|
-
}), collapsed && hasChildren && isHovered && !isHoverMenu && item.children.length > 0 && renderPopupMenu(item, depth), hasChildren && isOpen && !collapsed && jsx("div", {
|
|
171
|
-
className: "transition-all duration-200 ease-in-out",
|
|
172
|
-
children: item.children.map(child => renderMenuItem(child, depth + 1))
|
|
173
|
-
})]
|
|
174
|
-
}, item.path);
|
|
175
|
-
};
|
|
176
|
-
return jsx("div", {
|
|
177
|
-
className: "overflow-hidden",
|
|
178
|
-
children: jsx("nav", {
|
|
179
|
-
className: `mt-2 ${collapsed ? 'px-1' : 'px-2'} overflow-x-hidden`,
|
|
180
|
-
children: menuData.map(item => renderMenuItem(item))
|
|
181
|
-
})
|
|
182
|
-
});
|
|
183
|
-
};export{SidebarMenu};//# sourceMappingURL=SidebarMenu.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarMenu.js","sources":["../../../../src/components/Layout/Sidebar/SidebarMenu.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CheckBoxTheme.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/CheckBoxTheme.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAsD9C,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,mBAAmB,2CAiC/D"}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import {jsx,jsxs}from'react/jsx-runtime';const themelist = [{
|
|
2
|
-
key: 'light',
|
|
3
|
-
title: 'Light',
|
|
4
|
-
svg: jsxs("svg", {
|
|
5
|
-
width: "58",
|
|
6
|
-
height: "50",
|
|
7
|
-
viewBox: "0 0 58 50",
|
|
8
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
-
children: [jsx("defs", {
|
|
10
|
-
children: jsx("filter", {
|
|
11
|
-
id: "softShadow",
|
|
12
|
-
x: "-20%",
|
|
13
|
-
y: "-20%",
|
|
14
|
-
width: "140%",
|
|
15
|
-
height: "140%",
|
|
16
|
-
children: jsx("feDropShadow", {
|
|
17
|
-
dx: "0",
|
|
18
|
-
dy: "2",
|
|
19
|
-
stdDeviation: "4",
|
|
20
|
-
floodColor: "#000000",
|
|
21
|
-
floodOpacity: "0.1"
|
|
22
|
-
})
|
|
23
|
-
})
|
|
24
|
-
}), jsx("rect", {
|
|
25
|
-
x: "0",
|
|
26
|
-
y: "0",
|
|
27
|
-
width: "58",
|
|
28
|
-
height: "50",
|
|
29
|
-
rx: "8",
|
|
30
|
-
fill: "#ffffff",
|
|
31
|
-
filter: "url(#softShadow)"
|
|
32
|
-
})]
|
|
33
|
-
})
|
|
34
|
-
}, {
|
|
35
|
-
key: 'realDark',
|
|
36
|
-
title: 'realDark',
|
|
37
|
-
svg: jsxs("svg", {
|
|
38
|
-
width: "58",
|
|
39
|
-
height: "50",
|
|
40
|
-
viewBox: "0 0 58 50",
|
|
41
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
42
|
-
children: [jsx("rect", {
|
|
43
|
-
x: "0",
|
|
44
|
-
y: "0",
|
|
45
|
-
width: "58",
|
|
46
|
-
height: "50",
|
|
47
|
-
rx: "8",
|
|
48
|
-
fill: "#ffffff"
|
|
49
|
-
}), jsx("path", {
|
|
50
|
-
d: "M0,8\n A8,8 0 0 1 8,0\n H18\n V50\n H8\n A8,8 0 0 1 0,42\n Z",
|
|
51
|
-
fill: "#011627"
|
|
52
|
-
})]
|
|
53
|
-
})
|
|
54
|
-
}, {
|
|
55
|
-
key: 'dark',
|
|
56
|
-
title: 'Dark',
|
|
57
|
-
svg: jsxs("svg", {
|
|
58
|
-
width: "58",
|
|
59
|
-
height: "50",
|
|
60
|
-
viewBox: "0 0 58 50",
|
|
61
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
62
|
-
children: [jsx("rect", {
|
|
63
|
-
width: "58",
|
|
64
|
-
height: "50",
|
|
65
|
-
rx: "8",
|
|
66
|
-
fill: "#000000"
|
|
67
|
-
}), jsx("clipPath", {
|
|
68
|
-
id: "roundedClip",
|
|
69
|
-
children: jsx("rect", {
|
|
70
|
-
width: "58",
|
|
71
|
-
height: "50",
|
|
72
|
-
rx: "8"
|
|
73
|
-
})
|
|
74
|
-
}), jsxs("g", {
|
|
75
|
-
clipPath: "url(#roundedClip)",
|
|
76
|
-
children: [jsx("rect", {
|
|
77
|
-
x: "0",
|
|
78
|
-
y: "13",
|
|
79
|
-
width: "29",
|
|
80
|
-
height: "37",
|
|
81
|
-
fill: "#0d1117"
|
|
82
|
-
}), jsx("rect", {
|
|
83
|
-
x: "29",
|
|
84
|
-
y: "13",
|
|
85
|
-
width: "29",
|
|
86
|
-
height: "37",
|
|
87
|
-
fill: "#233445"
|
|
88
|
-
})]
|
|
89
|
-
})]
|
|
90
|
-
})
|
|
91
|
-
}];
|
|
92
|
-
function CheckBoxTheme(props) {
|
|
93
|
-
const {
|
|
94
|
-
list,
|
|
95
|
-
changeSetting,
|
|
96
|
-
settings
|
|
97
|
-
} = props;
|
|
98
|
-
return jsx("div", {
|
|
99
|
-
className: "flex flex-row gap-4",
|
|
100
|
-
children: themelist.map((themeItems, index) => {
|
|
101
|
-
return jsx("div", {
|
|
102
|
-
className: "relative cursor-pointer hover:opacity-80 transition-opacity",
|
|
103
|
-
style: {
|
|
104
|
-
boxShadow: '0 1px 2.5px 0 rgb(0 0 0 / 18%)'
|
|
105
|
-
},
|
|
106
|
-
onClick: () => {
|
|
107
|
-
changeSetting('navTheme', themeItems.key);
|
|
108
|
-
changeSetting('primaryColor', settings?.primaryColor);
|
|
109
|
-
},
|
|
110
|
-
children: jsxs("div", {
|
|
111
|
-
children: [themeItems.svg, settings?.navTheme === themeItems.key && jsx("svg", {
|
|
112
|
-
className: "absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-6 h-6 text-blue-500",
|
|
113
|
-
viewBox: "0 0 24 24",
|
|
114
|
-
fill: "currentColor",
|
|
115
|
-
children: jsx("path", {
|
|
116
|
-
d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
|
|
117
|
-
})
|
|
118
|
-
})]
|
|
119
|
-
})
|
|
120
|
-
}, `themeItem_${index}`);
|
|
121
|
-
})
|
|
122
|
-
});
|
|
123
|
-
}export{CheckBoxTheme as default};//# sourceMappingURL=CheckBoxTheme.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CheckBoxTheme.js","sources":["../../../src/components/SettingDrawer/CheckBoxTheme.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"yCAGA,MAAM,SAAS,GAAG,CAAA;AACd,EAAA,GAAA,EAAA,OAAA;AACI,EAAA,KAAA,EAAA,OAAY;AACZ,EAAA,GAAA,EAAAA,IAAA,CAAK,KAAS,EAAA;SACX,EAAA,IACM;AASZ,IAAA,MAAA,EAAA,IAAA;AACD,IAAA,OAAA,EAAA,WAAA;AACI,IAAA,KAAA,EAAG,4BAAY;AACf,IAAA,QAAA,GAAOC,GAAU,CAAA,MAAA,EAAA;cAEb,EAAAA,GAAA,CAAA,QAAK,EAAK;AAcjB,QAAA,EAAA,EAAA,YAAA;AACD,QAAA,CAAA,EAAA,MAAA;AACI,QAAA,CAAA,EAAG,MAAQ;AACX,QAAA,KAAK,EAAE,MAAM;QACb,MACI,EAAK,MAAA;AAWZ,QAAA,QAAA,EAAAA,GAAA,CAAA,cAAA,EAAA;UACH,EAAA,EAAA,GAAA;AAEF,UAAO,EAAA,EAAO,GAAU;UACd,YAAQ,EAAA,GAAA;AACd,UAAA,UACI,EAAA,SAAc;AAEN,UAAA,YAGQ,EAAA;AAGI,SAAA;AACA,OAAA;AACJ,KAAA,CAAA,EAAAA,GAAA,CAAA;SAiBX,GACC;AAEd,MAAC,CAAA,EAAA,GAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutChange.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/LayoutChange.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAG/C,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,oBAAoB,GAAG,GAAG,2CA2GrE"}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {Switch}from'./Switch/index.js';import'react';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import'../../hooks/use-get-current-lat-long.js';import {useMediaQuery}from'../../hooks/useMediaQuery.js';function LayoutChange(props) {
|
|
2
|
-
const {
|
|
3
|
-
settings,
|
|
4
|
-
changeSetting,
|
|
5
|
-
location
|
|
6
|
-
} = props;
|
|
7
|
-
const {
|
|
8
|
-
t
|
|
9
|
-
} = useTranslation('settings');
|
|
10
|
-
const {
|
|
11
|
-
isMobile
|
|
12
|
-
} = useMediaQuery();
|
|
13
|
-
const currentRoute = location?.pathname || '/';
|
|
14
|
-
const {
|
|
15
|
-
navTheme
|
|
16
|
-
} = settings || {};
|
|
17
|
-
const routeSettings = settings?.routeSettings?.[currentRoute] || settings?.routeSettings?.['/'] || settings;
|
|
18
|
-
const deviceType = isMobile ? 'mobile' : 'desktop';
|
|
19
|
-
const deviceLayout = routeSettings?.layout?.[deviceType] || {};
|
|
20
|
-
const handleLayoutChange = (key, value) => {
|
|
21
|
-
if (!changeSetting) return;
|
|
22
|
-
changeSetting(`routeSettings.${currentRoute}.layout.${deviceType}`, {
|
|
23
|
-
...deviceLayout,
|
|
24
|
-
[key]: value
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
const textColor = {
|
|
28
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
29
|
-
};
|
|
30
|
-
return jsxs("div", {
|
|
31
|
-
children: [jsxs("div", {
|
|
32
|
-
className: "flex items-center mt-4",
|
|
33
|
-
children: [jsx("p", {
|
|
34
|
-
className: "mb-0",
|
|
35
|
-
style: textColor,
|
|
36
|
-
children: t('fixed_header')
|
|
37
|
-
}), jsx("div", {
|
|
38
|
-
className: "flex-grow"
|
|
39
|
-
}), jsx(Switch, {
|
|
40
|
-
value: deviceLayout.fixedHeader,
|
|
41
|
-
onChange: checked => handleLayoutChange('fixedHeader', checked)
|
|
42
|
-
})]
|
|
43
|
-
}), jsxs("div", {
|
|
44
|
-
className: "flex items-center mt-4",
|
|
45
|
-
children: [jsx("p", {
|
|
46
|
-
className: "mb-0",
|
|
47
|
-
style: textColor,
|
|
48
|
-
children: t('fixed_sidebar')
|
|
49
|
-
}), jsx("div", {
|
|
50
|
-
className: "flex-grow"
|
|
51
|
-
}), jsx(Switch, {
|
|
52
|
-
value: deviceLayout.fixedSidebar,
|
|
53
|
-
onChange: checked => handleLayoutChange('fixedSidebar', checked)
|
|
54
|
-
})]
|
|
55
|
-
}), jsxs("div", {
|
|
56
|
-
className: "flex items-center mt-4",
|
|
57
|
-
children: [jsx("p", {
|
|
58
|
-
className: "mb-0",
|
|
59
|
-
style: textColor,
|
|
60
|
-
children: t('split_menus')
|
|
61
|
-
}), jsx("div", {
|
|
62
|
-
className: "flex-grow"
|
|
63
|
-
}), jsx(Switch, {
|
|
64
|
-
value: deviceLayout.splitMenus,
|
|
65
|
-
onChange: checked => handleLayoutChange('splitMenus', checked)
|
|
66
|
-
})]
|
|
67
|
-
}), deviceLayout.splitMenus && jsxs(Fragment, {
|
|
68
|
-
children: [jsx("div", {
|
|
69
|
-
className: "mt-6 mb-2",
|
|
70
|
-
children: jsx("p", {
|
|
71
|
-
className: "text-sm font-medium",
|
|
72
|
-
style: textColor,
|
|
73
|
-
children: t('menu_divider_names')
|
|
74
|
-
})
|
|
75
|
-
}), jsxs("div", {
|
|
76
|
-
className: "flex flex-col space-y-4",
|
|
77
|
-
children: [jsxs("div", {
|
|
78
|
-
className: "flex flex-col",
|
|
79
|
-
children: [jsx("label", {
|
|
80
|
-
className: "text-xs mb-1",
|
|
81
|
-
style: textColor,
|
|
82
|
-
children: t('upper_menu_divider')
|
|
83
|
-
}), jsx("input", {
|
|
84
|
-
type: "text",
|
|
85
|
-
className: "px-3 py-2 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",
|
|
86
|
-
value: deviceLayout?.upperMenuDividerName,
|
|
87
|
-
onChange: e => {
|
|
88
|
-
handleLayoutChange('upperMenuDividerName', e.target.value);
|
|
89
|
-
}
|
|
90
|
-
})]
|
|
91
|
-
}), jsxs("div", {
|
|
92
|
-
className: "flex flex-col",
|
|
93
|
-
children: [jsx("label", {
|
|
94
|
-
className: "text-xs mb-1",
|
|
95
|
-
style: textColor,
|
|
96
|
-
children: t('middle_menu_divider')
|
|
97
|
-
}), jsx("input", {
|
|
98
|
-
type: "text",
|
|
99
|
-
className: "px-3 py-2 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",
|
|
100
|
-
value: deviceLayout?.middleMenuDividerName,
|
|
101
|
-
onChange: e => {
|
|
102
|
-
handleLayoutChange('middleMenuDividerName', e.target.value);
|
|
103
|
-
}
|
|
104
|
-
})]
|
|
105
|
-
}), jsxs("div", {
|
|
106
|
-
className: "flex flex-col",
|
|
107
|
-
children: [jsx("label", {
|
|
108
|
-
className: "text-xs mb-1",
|
|
109
|
-
style: textColor,
|
|
110
|
-
children: t('lower_menu_divider')
|
|
111
|
-
}), jsx("input", {
|
|
112
|
-
type: "text",
|
|
113
|
-
className: "px-3 py-2 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",
|
|
114
|
-
value: deviceLayout?.lowerMenuDividerName,
|
|
115
|
-
onChange: e => {
|
|
116
|
-
handleLayoutChange('lowerMenuDividerName', e.target.value);
|
|
117
|
-
}
|
|
118
|
-
})]
|
|
119
|
-
})]
|
|
120
|
-
})]
|
|
121
|
-
})]
|
|
122
|
-
});
|
|
123
|
-
}export{LayoutChange as default};//# sourceMappingURL=LayoutChange.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutChange.js","sources":["../../../src/components/SettingDrawer/LayoutChange.tsx"],"sourcesContent":[null],"names":[],"mappings":"kVAMwB,SAAA,YAAY,CAAC,KAAiC,EAAA;QAC5D;IACN,QAAQ;AACR,IAAA,aAAgB;AAChB,IAAA;AACA,GAAA,GAAA;AACA,EAAA,MAAA;IACA;MACM,cAAA,CAAA,UAAe,CAAA;AAErB,EAAA,MAAA;AACI,IAAA;mBAA2B,EAAA;AAE3B,EAAA,MAAA,YAAA,GAA+B,QAAA,EAAA,QAAA,IAAA,GAAA;AAC3B,EAAA,MAAA;;AAEH,GAAA,GAAA,QAAE,IAAA,EAAA;AACP,EAAA,MAAE,aAAA,GAAA,QAAA,EAAA,aAAA,GAAA,YAAA,CAAA,IAAA,QAAA,EAAA,aAAA,GAAA,GAAA,CAAA,IAAA,QAAA;AAEF,EAAA,MAAA,aAAkB,QAAO,WAAe,GAAA,SAAQ;QAEzC,YAEC,GAAA,aAAA,EAAA,MAAA,GAAA,UAAc,CAAA,IAAA,EAAC;6CAiD2B;AACtB,IAAA,IAAA,CAAA,aAAA,EAAA;+CAYsB,CAAA,QAAA,EAAA;AACtB,MAAA,GAAA,YAAA;;AAaA,KAAA,CAAA;AAQhC,GAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationsModes.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/NavigationsModes.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AA4E/C,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,oBAAoB,2CA8ElG"}
|