@admin-layout/tailwind-design-pro 11.0.4-alpha.4 → 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 +471 -1
- package/lib/cdm-locales/en/menu.json +2 -1
- package/lib/cdm-locales/en/settings.json +40 -1
- package/lib/cdm-locales/es/menu.json +2 -1
- package/lib/cdm-locales/es/settings.json +42 -3
- 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 -12
- package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/index.js +274 -108
- 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 +1 -8
- 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 +1 -15
- package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.js +107 -65
- package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +4 -0
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -0
- package/lib/components/Layout/GlobalHeader/MainHeader.js +187 -0
- package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -0
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts +1 -12
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js +26 -30
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts +3 -16
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.js +86 -0
- package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -0
- package/lib/components/Layout/GlobalHeader/RightMenu.d.ts +4 -0
- package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -0
- package/lib/components/Layout/GlobalHeader/RightMenu.js +248 -0
- package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -0
- package/lib/components/Layout/GlobalHeader/SearchBar.d.ts +9 -0
- package/lib/components/Layout/GlobalHeader/SearchBar.d.ts.map +1 -0
- package/lib/components/Layout/GlobalHeader/SearchBar.js +109 -0
- package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -0
- package/lib/components/Layout/GlobalHeader/index.d.ts +3 -0
- package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -0
- package/lib/components/Layout/ProTailwindLayout.d.ts +3 -1
- package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.js +77 -12
- 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 -31
- 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 +5 -0
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/DynamicIcon.js +50 -0
- package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -0
- 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 +46 -13
- package/lib/components/Layout/TailwindLayout.js.map +1 -1
- package/lib/components/Layout/getPageTitle.d.ts +1 -16
- package/lib/components/Layout/getPageTitle.d.ts.map +1 -1
- package/lib/components/Layout/getPageTitle.js +1 -1
- package/lib/components/Layout/getPageTitle.js.map +1 -1
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts +5 -0
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/AdditionalSettings.js +7 -0
- package/lib/components/Layout/slot-fill/AdditionalSettings.js.map +1 -0
- package/lib/components/Layout/slot-fill/Footer.d.ts +4 -3
- package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.js +6 -6
- package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderNotice.d.ts +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 +4 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js +6 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts +4 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js +6 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -0
- package/lib/components/Layout/slot-fill/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 +4 -0
- package/lib/components/Layout/slot-fill/RightContent.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/RightContent.js +6 -0
- package/lib/components/Layout/slot-fill/RightContent.js.map +1 -0
- package/lib/components/Layout/slot-fill/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 +6 -0
- package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
- package/lib/components/Layout/util.d.ts.map +1 -1
- package/lib/components/Layout/util.js +12 -0
- package/lib/components/Layout/util.js.map +1 -0
- package/lib/components/SettingDrawer/SettingDrawer.d.ts +2 -25
- package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.js +203 -382
- 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/utils/types.d.ts +105 -0
- package/lib/components/SettingDrawer/utils/types.d.ts.map +1 -0
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +16 -1
- 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 +2 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/typings.d.ts +154 -50
- package/lib/components/typings.d.ts.map +1 -1
- package/lib/compute.d.ts.map +1 -1
- package/lib/compute.js +16 -6
- package/lib/compute.js.map +1 -1
- package/lib/config/analytics-config.d.ts +59 -0
- package/lib/config/analytics-config.d.ts.map +1 -0
- package/lib/config/constants.d.ts +8 -0
- package/lib/config/constants.d.ts.map +1 -0
- package/lib/config/constants.js +32 -0
- package/lib/config/constants.js.map +1 -0
- package/lib/config/env-config.d.ts +21 -0
- package/lib/config/env-config.d.ts.map +1 -1
- package/lib/config/env-config.js +86 -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 +8 -5
- package/lib/helpers/DynamicIcon.d.ts.map +1 -1
- package/lib/helpers/DynamicIcon.js +50 -0
- package/lib/helpers/DynamicIcon.js.map +1 -0
- package/lib/hooks/index.d.ts +3 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/useMediaQuery.d.ts +14 -0
- package/lib/hooks/useMediaQuery.d.ts.map +1 -0
- package/lib/hooks/useMediaQuery.js +48 -0
- package/lib/hooks/useMediaQuery.js.map +1 -0
- package/lib/hooks/useScrollThreshold.d.ts +12 -0
- package/lib/hooks/useScrollThreshold.d.ts.map +1 -0
- package/lib/hooks/useScrollThreshold.js +60 -0
- package/lib/hooks/useScrollThreshold.js.map +1 -0
- package/lib/hooks/useTailwindTheme.d.ts +34 -0
- package/lib/hooks/useTailwindTheme.d.ts.map +1 -0
- package/lib/hooks/useTailwindTheme.js +82 -0
- package/lib/hooks/useTailwindTheme.js.map +1 -0
- package/lib/icons.d.ts +18 -0
- package/lib/icons.d.ts.map +1 -0
- package/lib/icons.js +14 -0
- package/lib/icons.js.map +1 -0
- package/lib/index.d.ts +3 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/machines/selectors.d.ts +118 -0
- package/lib/machines/selectors.d.ts.map +1 -0
- package/lib/machines/settingsMachine.d.ts +29 -0
- package/lib/machines/settingsMachine.d.ts.map +1 -0
- package/lib/machines/settingsMachine.js +171 -0
- package/lib/machines/settingsMachine.js.map +1 -0
- package/lib/machines/types.d.ts +272 -0
- package/lib/machines/types.d.ts.map +1 -0
- package/lib/machines/types.js +5 -0
- package/lib/machines/types.js.map +1 -0
- package/lib/module.d.ts +0 -1
- package/lib/module.d.ts.map +1 -1
- package/lib/module.js +14 -15
- package/lib/module.js.map +1 -1
- package/lib/redux/index.d.ts +2 -0
- package/lib/redux/index.d.ts.map +1 -0
- package/lib/redux/searchReducer.d.ts +42 -0
- package/lib/redux/searchReducer.d.ts.map +1 -0
- package/lib/redux/searchReducer.js +64 -0
- package/lib/redux/searchReducer.js.map +1 -0
- package/lib/routes.json +10 -1
- package/lib/styles/index.css +667 -45
- package/lib/tailwindConfig.d.ts +100 -0
- package/lib/tailwindConfig.d.ts.map +1 -0
- package/lib/tailwindConfig.js +101 -0
- package/lib/tailwindConfig.js.map +1 -0
- package/lib/utils/__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/formateCarData.d.ts +2 -0
- package/lib/utils/formateCarData.d.ts.map +1 -0
- package/lib/utils/isBrowser/index.js.map +1 -1
- package/lib/utils/menu.d.ts.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/test-utils.d.ts.map +1 -1
- package/lib/utils/utils/index.d.ts.map +1 -1
- package/lib/utils/utils/index.js.map +1 -1
- package/package.json +7 -15
- package/lib/components/Layout/GlobalFooter/Copyright.js +0 -8
- package/lib/components/Layout/GlobalFooter/Copyright.js.map +0 -1
- package/lib/components/Layout/GlobalFooter/Footer.js +0 -22
- package/lib/components/Layout/GlobalFooter/Footer.js.map +0 -1
- package/lib/components/Layout/Sidebar/Sidebar.d.ts +0 -15
- package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +0 -1
- package/lib/components/Layout/Sidebar/Sidebar.js +0 -141
- package/lib/components/Layout/Sidebar/Sidebar.js.map +0 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts +0 -6
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +0 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.js +0 -89
- package/lib/components/Layout/Sidebar/SidebarMenu.js.map +0 -1
- package/lib/components/SettingDrawer/CheckBoxTheme.d.ts +0 -8
- package/lib/components/SettingDrawer/CheckBoxTheme.d.ts.map +0 -1
- package/lib/components/SettingDrawer/CheckBoxTheme.js +0 -48
- package/lib/components/SettingDrawer/CheckBoxTheme.js.map +0 -1
- package/lib/components/SettingDrawer/LayoutChange.d.ts +0 -7
- package/lib/components/SettingDrawer/LayoutChange.d.ts.map +0 -1
- package/lib/components/SettingDrawer/LayoutChange.js +0 -69
- package/lib/components/SettingDrawer/LayoutChange.js.map +0 -1
- package/lib/components/SettingDrawer/RegionalSettings.d.ts +0 -8
- package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +0 -1
- package/lib/components/SettingDrawer/RegionalSettings.js +0 -95
- package/lib/components/SettingDrawer/RegionalSettings.js.map +0 -1
- package/lib/components/SettingDrawer/Switch/index.d.ts +0 -9
- package/lib/components/SettingDrawer/Switch/index.d.ts.map +0 -1
- package/lib/components/SettingDrawer/Switch/index.js +0 -39
- package/lib/components/SettingDrawer/Switch/index.js.map +0 -1
- package/lib/components/SettingDrawer/ThemeColor.d.ts +0 -8
- package/lib/components/SettingDrawer/ThemeColor.d.ts.map +0 -1
- package/lib/components/SettingDrawer/ThemeColor.js +0 -32
- package/lib/components/SettingDrawer/ThemeColor.js.map +0 -1
- package/lib/components/defaultSettings.d.ts +0 -4
- package/lib/components/defaultSettings.d.ts.map +0 -1
- package/lib/components/defaultSettings.js +0 -14
- package/lib/components/defaultSettings.js.map +0 -1
- package/lib/utils/index.d.ts +0 -2
- package/lib/utils/index.d.ts.map +0 -1
- package/lib/utils/index.js +0 -13
- package/lib/utils/index.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formateCarData.d.ts","sourceRoot":"","sources":["../../src/utils/formateCarData.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,GAAI,MAAM,GAAG,QAehD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/utils/isBrowser/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,QAAQ,IAAI,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,IAAI,IAAI;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/utils/isBrowser/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,QAAQ,IAAI,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,IAAI,IAAI;AAE1G,MAAM,SAAS,GAAG,MAAK;MACnB,OAAI,CAAA,GAAQ,CAAA,aAAY,MAAK,EAAM;AAC/B,IAAA,OAAA,IAAO;;AAEX,EAAA,OAAA,OAAO,MAAO,KAAM,WAAK,WAAe,MAAO,CAAA,QAAO,KAAQ,WAAK,IAAW,CAAA;AAClF"}
|
package/lib/utils/menu.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/utils/menu.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/utils/menu.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,GAAI,qBAAgB,EAAE,iBAAY,QAU9B,CAAC;AAElC,eAAO,MAAM,iBAAiB,GAAI,qBAAgB,EAAE,mBAAc,QAWjC,CAAC;AAElC,eAAO,MAAM,eAAe,GAAI,qBAAgB,EAAE,iBAAY,QAQ7B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get a setting value based on applyToAllRoutes flag and current route/device context
|
|
3
|
+
* @param machineSettings - The settings object from XState machine
|
|
4
|
+
* @param settingName - The setting key to retrieve (e.g., 'fixedHeader', 'organization.members.invitations')
|
|
5
|
+
* @param applyToAllRoutes - Whether to use global or route-specific overrides
|
|
6
|
+
* @param currentRoute - Current route path or route pattern
|
|
7
|
+
* @param deviceType - Current device type ('desktop' or 'mobile')
|
|
8
|
+
* @param defaultValue - Default value if setting not found
|
|
9
|
+
* @returns The setting value from the appropriate scope
|
|
10
|
+
*/
|
|
11
|
+
export declare const getSettingValue: (machineSettings: any, settingName: string, applyToAllRoutes: boolean, currentRoute: string, deviceType: "desktop" | "mobile", defaultValue?: any) => any;
|
|
12
|
+
/**
|
|
13
|
+
* Calculate the default value for applyToAllRoutes based on what overrides exist
|
|
14
|
+
* @param settings - The full settings object with ConfigurationModel
|
|
15
|
+
* @param currentRoute - Current route path or route pattern
|
|
16
|
+
* @param deviceType - Current device type ('desktop' or 'mobile')
|
|
17
|
+
* @returns The default value for applyToAllRoutes
|
|
18
|
+
*/
|
|
19
|
+
export declare const getDefaultApplyToAllRoutes: (settings: any, currentRoute: string, deviceType: "desktop" | "mobile") => boolean;
|
|
20
|
+
//# sourceMappingURL=settingsUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settingsUtils.d.ts","sourceRoot":"","sources":["../../src/utils/settingsUtils.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,GACxB,iBAAiB,GAAG,EACpB,aAAa,MAAM,EACnB,kBAAkB,OAAO,EACzB,cAAc,MAAM,EACpB,YAAY,SAAS,GAAG,QAAQ,EAChC,eAAe,GAAG,QAwCrB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,GACnC,UAAU,GAAG,EACb,cAAc,MAAM,EACpB,YAAY,SAAS,GAAG,QAAQ,KACjC,OA2BF,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import {getNestedValue}from'./configOverrides.js';/**
|
|
2
|
+
* Get a setting value based on applyToAllRoutes flag and current route/device context
|
|
3
|
+
* @param machineSettings - The settings object from XState machine
|
|
4
|
+
* @param settingName - The setting key to retrieve (e.g., 'fixedHeader', 'organization.members.invitations')
|
|
5
|
+
* @param applyToAllRoutes - Whether to use global or route-specific overrides
|
|
6
|
+
* @param currentRoute - Current route path or route pattern
|
|
7
|
+
* @param deviceType - Current device type ('desktop' or 'mobile')
|
|
8
|
+
* @param defaultValue - Default value if setting not found
|
|
9
|
+
* @returns The setting value from the appropriate scope
|
|
10
|
+
*/
|
|
11
|
+
const getSettingValue = (machineSettings, settingName, applyToAllRoutes, currentRoute, deviceType, defaultValue) => {
|
|
12
|
+
if (!machineSettings) {
|
|
13
|
+
return defaultValue;
|
|
14
|
+
}
|
|
15
|
+
// Try to get from changedSettings first (most recent updates)
|
|
16
|
+
const changedSettings = machineSettings?.changedSettings || {};
|
|
17
|
+
const configModel = machineSettings?.configModel;
|
|
18
|
+
if (applyToAllRoutes) {
|
|
19
|
+
// Global mode: look for [device].settingName in changedSettings
|
|
20
|
+
const globalKey = `[${deviceType}].${settingName}`;
|
|
21
|
+
if (changedSettings[globalKey] !== undefined) {
|
|
22
|
+
return changedSettings[globalKey];
|
|
23
|
+
}
|
|
24
|
+
// Apply device-only override to get global settings
|
|
25
|
+
if (configModel) {
|
|
26
|
+
const deviceKey = `[${deviceType}]`;
|
|
27
|
+
const globalOverride = configModel.override(deviceKey);
|
|
28
|
+
const value = getNestedValue(globalOverride?.contents || configModel.contents, settingName);
|
|
29
|
+
if (value !== undefined) {
|
|
30
|
+
console.log(` → Returning from configModel override:`, value);
|
|
31
|
+
return value;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return defaultValue;
|
|
35
|
+
} else {
|
|
36
|
+
// Route-specific mode: look for [route][device].settingName in changedSettings
|
|
37
|
+
const routeKey = `[${currentRoute}][${deviceType}].${settingName}`;
|
|
38
|
+
if (changedSettings[routeKey] !== undefined) {
|
|
39
|
+
return changedSettings[routeKey];
|
|
40
|
+
}
|
|
41
|
+
// Fall back to context value (which has route-specific overrides already applied)
|
|
42
|
+
const value = getNestedValue(machineSettings, settingName);
|
|
43
|
+
return value !== undefined ? value : defaultValue;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Calculate the default value for applyToAllRoutes based on what overrides exist
|
|
48
|
+
* @param settings - The full settings object with ConfigurationModel
|
|
49
|
+
* @param currentRoute - Current route path or route pattern
|
|
50
|
+
* @param deviceType - Current device type ('desktop' or 'mobile')
|
|
51
|
+
* @returns The default value for applyToAllRoutes
|
|
52
|
+
*/
|
|
53
|
+
const getDefaultApplyToAllRoutes = (settings, currentRoute, deviceType) => {
|
|
54
|
+
const configModel = settings?.configModel;
|
|
55
|
+
if (!configModel) {
|
|
56
|
+
return false; // Default to route-specific if no configModel
|
|
57
|
+
}
|
|
58
|
+
const routeDeviceKey = `[${currentRoute}][${deviceType}]`;
|
|
59
|
+
const deviceKey = `[${deviceType}]`;
|
|
60
|
+
// Check if route-specific override exists by looking at the overrides array
|
|
61
|
+
const hasRouteOverride = configModel.overrides?.some(override => override.identifiers?.includes(routeDeviceKey));
|
|
62
|
+
// Check if global override exists by looking at the overrides array
|
|
63
|
+
const hasGlobalOverride = configModel.overrides?.some(override => override.identifiers?.includes(deviceKey));
|
|
64
|
+
// If route has its own override, use route-specific (applyToAllRoutes = false)
|
|
65
|
+
if (hasRouteOverride) {
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
// If no route override but global override exists, use global (applyToAllRoutes = true)
|
|
69
|
+
if (hasGlobalOverride) {
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
// No route or global override, default to route-specific (applyToAllRoutes = false)
|
|
73
|
+
return false;
|
|
74
|
+
};export{getDefaultApplyToAllRoutes,getSettingValue};//# sourceMappingURL=settingsUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settingsUtils.js","sources":["../../src/utils/settingsUtils.ts"],"sourcesContent":[null],"names":[],"mappings":"kDAEA;;;;;;;;;AASG;AACI,MAAM,eAAe,GAAG,CAC3B,eAAoB,EACpB,WAAmB,EACnB,gBAAyB,EACzB,YAAoB,EACpB,UAAgC,EAChC,YAAkB,KAClB;MACA,CAAA,eAAK,EAAe;AAChB,IAAA,OAAA;;;AAIJ,EAAA,MAAA,kBAAqB,eAAG,EAAe,eAAE,IAAe,EAAI;AAC5D,EAAA,MAAA,WAAM,GAAW,eAAG,EAAe;MAEnC,gBAAI,EAAgB;;AAEhB,IAAA,MAAA,aAAe,CAAA,EAAG,eAAc,WAAK,CAAA,CAAA;AAErC,IAAA,IAAA,yBAAoB,CAAA,KAAU,SAAK,EAAA;AAC/B,MAAA,OAAA,eAAO,CAAA,SAAgB,CAAA;;;QAI3B,WAAI,EAAA;AACA,MAAA,MAAA,SAAM,GAAA,CAAA,CAAA,EAAS,UAAO,CAAA,CAAA,CAAA;YACtB,cAAM,GAAA,WAAiB,CAAA,kBAAqB,CAAA;AAC5C,MAAA,MAAA,KAAA,GAAM,cAAQ,CAAA,wBAA+B,IAAA,WAAY,CAAA,QAAY,EAAA,WAAU,CAAA;AAC/E,MAAA,IAAA,KAAA,KAAI,SAAU,EAAA;AACV,QAAA,OAAA,CAAA,GAAA,CAAA,CAAA,iDAAsD;AACtD,QAAA,OAAA,KAAA;;;AAGR,IAAA,OAAA;SACH;;UACG,QAAA,GAAA,CAAA,CAAA,EAAA,YAAA,CAAA,EAAA,EAAA,UAAA,CAAA,EAAA,EAAA,WAAA,CAAA,CAAA;QACA,wBAAqB,CAAA,KAAA,SAAiB,EAAA;AACtC,MAAA,sBAAoB,CAAA,QAAS,CAAA;AACzB,IAAA;;UAGJ,KAAA,GAAA,cAAA,CAAA,eAAA,EAAA,WAAA,CAAA;WACA,KAAM,cAAQ,GAAA,oBAA8B;;;AAGpD;AAEA;;;;;;AAMG,MAAA,0BAAA,GAAA,CAAA,QAAA,EAAA,YAAA,EAAA,UAAA,KAAA;AACH,EAAA,MAAO,WAAM,GAAA,QAAA,EAAA,WACT;AAIA,EAAA,IAAA,CAAA,WAAM,EAAA;IACN,OAAK,KAAA,CAAA;;QAEJ,cAAA,GAAA,CAAA,CAAA,EAAA,YAAA,CAAA,EAAA,EAAA,UAAA,CAAA,CAAA,CAAA;AAED,EAAA,MAAA,gBAAoB;AACpB;QAEA,gBAAA,GAAA,WAAA,CAAA,SAAA,EAAA,IAAA,CAAA,QAAA,IAAA,QAAA,CAAA,WAA4E,EAAA,QAAA,CAAA,cAAA,CAAA,CAAA;;QAG5E,iBAAA,GAAA,WAAA,CAAA,SAAA,EAAA,IAAA,CAAA,QAAA,IAAA,QAAoE,CAAA,WAAA,EAAA,QAAA,CAAA,SAAA,CAAA,CAAA;;MAGpE,gBAAA,EAAA;IACA,OAAI,KAAA;AACA,EAAA;;MAGJ,iBAAA,EAAA;IACA,OAAI,IAAA;AACA,EAAA;;SAGJ,KAAA;AACA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../src/utils/test-utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../src/utils/test-utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,GAAU,SAAS,GAAG,EAAE,aAAS,kBAMpE,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAM,MAAY,qBAM1C,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,SAMhD,CAAC;AAIF,wBAAgB,oBAAoB,CAChC,OAAO,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAE,EAC3C,UAAU,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE;;EAmDrD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAG7C,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAG7C,eAAO,MAAM,uBAAuB,GAAU,SAAS,GAAG,EAAE,aAAS,kBAMpE,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAM,MAAY,qBAM1C,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,SAMhD,CAAC;AAIF,wBAAgB,oBAAoB,CAChC,OAAO,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAE,EAC3C,UAAU,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE;;EAmDrD;AAED,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/utils/utils/index.ts"],"sourcesContent":[null],"names":[],"mappings":"0FAmFC,SAAA,EAAA,CAAA,GAAA,MAAA,EAAA;AAED,EAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/utils/utils/index.ts"],"sourcesContent":[null],"names":[],"mappings":"0FAmFC,SAAA,EAAA,CAAA,GAAA,MAAA,EAAA;AAED,EAAA,OAAM,OAAU,CAAA,IAAG,CAAG,MAAoB,CAAA,CAAA;AACtC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@admin-layout/tailwind-design-pro",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.2.1-alpha.1",
|
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -21,23 +21,15 @@
|
|
|
21
21
|
"watch": "yarn build:lib:watch"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@admin-layout/assets": "11.
|
|
25
|
-
"@admin-layout/client": "11.
|
|
26
|
-
"@
|
|
27
|
-
"base-64": "^0.1.0",
|
|
28
|
-
"identicon.js": "^2.3.1",
|
|
29
|
-
"react-copy-to-clipboard": "^5.0.2",
|
|
24
|
+
"@admin-layout/assets": "11.2.1-alpha.1",
|
|
25
|
+
"@admin-layout/client": "11.2.1-alpha.1",
|
|
26
|
+
"@admin-layout/tailwind-ui": "11.2.1-alpha.1",
|
|
30
27
|
"react-favicon": "^0.0.23",
|
|
31
|
-
"react-fontawesome": "^1.6.1",
|
|
32
28
|
"react-intl": "^6.1.1",
|
|
33
|
-
"react-responsive": "^10.0.0"
|
|
34
|
-
"unstated-next": "^1.1.0",
|
|
35
|
-
"use-json-comparison": "^1.0.5",
|
|
36
|
-
"use-media-antd-query": "^1.0.2",
|
|
37
|
-
"use-merge-value": "^1.0.2"
|
|
29
|
+
"react-responsive": "^10.0.0"
|
|
38
30
|
},
|
|
39
31
|
"devDependencies": {
|
|
40
|
-
"@adminide-stack/extension-api": "^
|
|
32
|
+
"@adminide-stack/extension-api": "^13.0.1-alpha.1",
|
|
41
33
|
"@tailwindcss/aspect-ratio": "^0.4.2",
|
|
42
34
|
"@tailwindcss/forms": "^0.5.4",
|
|
43
35
|
"@tailwindcss/typography": "^0.5.9",
|
|
@@ -61,5 +53,5 @@
|
|
|
61
53
|
"typescript": {
|
|
62
54
|
"definition": "lib/index.d.ts"
|
|
63
55
|
},
|
|
64
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "07c2534a0ba6f7955e1a718f54aa5e26b78cbacc"
|
|
65
57
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import {jsxs}from'react/jsx-runtime';const Copyright = ({
|
|
2
|
-
title
|
|
3
|
-
}) => jsxs("div", {
|
|
4
|
-
style: {
|
|
5
|
-
color: '#555353'
|
|
6
|
-
},
|
|
7
|
-
children: ["Copyright \u00A9 ", new Date().getFullYear(), " ", title, " All rights reserved."]
|
|
8
|
-
});export{Copyright as default};//# sourceMappingURL=Copyright.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Copyright.js","sources":["../../../../src/components/Layout/GlobalFooter/Copyright.tsx"],"sourcesContent":[null],"names":[],"mappings":"qCAEA,MAAM,SAAS,GAAG,CAAC;AAMnB,EAAA;;;;;;"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import {jsxs,jsx}from'react/jsx-runtime';import {Link}from'@remix-run/react';import Copyright from'./Copyright.js';const GlobalFooter = ({
|
|
2
|
-
settings,
|
|
3
|
-
active
|
|
4
|
-
}) => {
|
|
5
|
-
const {
|
|
6
|
-
title
|
|
7
|
-
} = settings;
|
|
8
|
-
if (!active) return null;
|
|
9
|
-
return jsxs("footer", {
|
|
10
|
-
className: "py-6 text-center",
|
|
11
|
-
children: [jsx("div", {
|
|
12
|
-
className: "my-8",
|
|
13
|
-
children: jsx(Link, {
|
|
14
|
-
to: "#",
|
|
15
|
-
className: "text-gray-600 hover:text-gray-800 transition-colors",
|
|
16
|
-
children: "Privacy Policy"
|
|
17
|
-
})
|
|
18
|
-
}), jsx(Copyright, {
|
|
19
|
-
title: title
|
|
20
|
-
})]
|
|
21
|
-
});
|
|
22
|
-
};export{GlobalFooter};//# sourceMappingURL=Footer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.js","sources":["../../../../src/components/Layout/GlobalFooter/Footer.tsx"],"sourcesContent":[null],"names":[],"mappings":"mHAIa,MAAA,YAAY,GAAG,CAAC;AACzB,EAAA,QAAM;AAEN,EAAA;AAAa,CAAA,KAAA;AAEb,EAAA,MAAA;AAUJ,IAAE;;;;;;;;;;;;;;;;"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface SidebarProps {
|
|
3
|
-
isSideMenuOpen: boolean;
|
|
4
|
-
closeSideMenu: () => void;
|
|
5
|
-
menuData: any;
|
|
6
|
-
collapsed: boolean;
|
|
7
|
-
routeParams: {
|
|
8
|
-
orgName?: string;
|
|
9
|
-
[key: string]: string;
|
|
10
|
-
};
|
|
11
|
-
settings?: any;
|
|
12
|
-
}
|
|
13
|
-
export declare const Sidebar: React.FC<SidebarProps>;
|
|
14
|
-
export default Sidebar;
|
|
15
|
-
//# sourceMappingURL=Sidebar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,UAAU,YAAY;IAClB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE;QACT,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACzB,CAAC;IACF,QAAQ,CAAC,EAAE,GAAG,CAAC;CAClB;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAqJ1C,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import {jsxs,jsx}from'react/jsx-runtime';import React__default,{useState,useEffect}from'react';import {Link}from'@remix-run/react';import {useTranslation}from'react-i18next';import {AiOutlineDash}from'@react-icons/all-files/ai/AiOutlineDash.js';import {useTheme}from'../BasicLayout/index.js';import BottomMenuDropDown from'../GlobalFooter/BottomMenuDropdown.js';import {getMenuSeparation}from'@admin-layout/client';import {Divider}from'./Divider.js';import {SidebarMenu}from'./SidebarMenu.js';const Sidebar = props => {
|
|
2
|
-
const {
|
|
3
|
-
isSideMenuOpen,
|
|
4
|
-
closeSideMenu,
|
|
5
|
-
menuData,
|
|
6
|
-
collapsed,
|
|
7
|
-
routeParams,
|
|
8
|
-
settings
|
|
9
|
-
} = props;
|
|
10
|
-
const [isPagesMenuOpen, setIsPagesMenuOpen] = useState(false);
|
|
11
|
-
const [iconModule, setIconModule] = React__default.useState(null);
|
|
12
|
-
const {
|
|
13
|
-
isDarkMode
|
|
14
|
-
} = useTheme();
|
|
15
|
-
const {
|
|
16
|
-
t,
|
|
17
|
-
i18n
|
|
18
|
-
} = useTranslation('menu');
|
|
19
|
-
// Close sidebar when clicking outside on mobile
|
|
20
|
-
useEffect(() => {
|
|
21
|
-
const handleClickOutside = event => {
|
|
22
|
-
const sidebar = document.getElementById('mobile-sidebar');
|
|
23
|
-
if (sidebar && !sidebar.contains(event.target) && isSideMenuOpen) {
|
|
24
|
-
closeSideMenu();
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
document.addEventListener('mousedown', handleClickOutside);
|
|
28
|
-
return () => {
|
|
29
|
-
document.removeEventListener('mousedown', handleClickOutside);
|
|
30
|
-
};
|
|
31
|
-
}, [isSideMenuOpen, closeSideMenu]);
|
|
32
|
-
// Close sidebar when pressing escape
|
|
33
|
-
useEffect(() => {
|
|
34
|
-
const handleEscape = event => {
|
|
35
|
-
if (event.key === 'Escape' && isSideMenuOpen) {
|
|
36
|
-
closeSideMenu();
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
document.addEventListener('keydown', handleEscape);
|
|
40
|
-
return () => {
|
|
41
|
-
document.removeEventListener('keydown', handleEscape);
|
|
42
|
-
};
|
|
43
|
-
}, [isSideMenuOpen, closeSideMenu]);
|
|
44
|
-
const bottomMenu = getMenuSeparation(menuData).bottomMenus;
|
|
45
|
-
const updateMenuIcons = menuItems => {
|
|
46
|
-
return menuItems.map(item => {
|
|
47
|
-
const updatedItem = {
|
|
48
|
-
...item,
|
|
49
|
-
name: t(item.name),
|
|
50
|
-
icon: iconModule && item.icon ? iconModule.renderDynamicIcon(item.icon) : null
|
|
51
|
-
};
|
|
52
|
-
if (updatedItem.children) {
|
|
53
|
-
updatedItem.children = updateMenuIcons(updatedItem.children);
|
|
54
|
-
}
|
|
55
|
-
return updatedItem;
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
const bottomMenus = {
|
|
59
|
-
menuData: updateMenuIcons(bottomMenu)
|
|
60
|
-
};
|
|
61
|
-
const middleMenu = getMenuSeparation(menuData).middleMenus;
|
|
62
|
-
const lowerMenus = getMenuSeparation(menuData).lowerMenus;
|
|
63
|
-
const renderSidebarContent = () => jsxs("div", {
|
|
64
|
-
className: "py-4 text-gray-500 dark:text-gray-400",
|
|
65
|
-
children: [jsxs(Link, {
|
|
66
|
-
to: "/",
|
|
67
|
-
className: "ml-6 flex items-center gap-2.5 text-lg font-bold text-gray-800 dark:text-gray-200",
|
|
68
|
-
children: [jsx("img", {
|
|
69
|
-
src: settings?.logo,
|
|
70
|
-
className: "w-[28px]"
|
|
71
|
-
}), "Cdebase"]
|
|
72
|
-
}), jsxs("div", {
|
|
73
|
-
children: [jsxs("div", {
|
|
74
|
-
style: {
|
|
75
|
-
flex: 1,
|
|
76
|
-
overflowY: 'auto',
|
|
77
|
-
overflowX: 'hidden',
|
|
78
|
-
display: 'flex',
|
|
79
|
-
flexDirection: 'column'
|
|
80
|
-
},
|
|
81
|
-
className: "removeBoxShadow",
|
|
82
|
-
children: [jsx(SidebarMenu, {
|
|
83
|
-
menuData: updateMenuIcons(middleMenu),
|
|
84
|
-
routeParams: routeParams,
|
|
85
|
-
settings: settings
|
|
86
|
-
}), collapsed && true ? jsx(AiOutlineDash, {
|
|
87
|
-
className: "ant-divider",
|
|
88
|
-
style: {
|
|
89
|
-
marginLeft: '17px',
|
|
90
|
-
borderTop: '0px',
|
|
91
|
-
fontSize: 'large',
|
|
92
|
-
margin: 0
|
|
93
|
-
}
|
|
94
|
-
}) : jsx(Divider, {
|
|
95
|
-
style: {
|
|
96
|
-
color: '#6b6767',
|
|
97
|
-
borderColor: '#6b6767',
|
|
98
|
-
margin: 0,
|
|
99
|
-
padding: 0
|
|
100
|
-
},
|
|
101
|
-
plain: true,
|
|
102
|
-
children: "Admin"
|
|
103
|
-
})]
|
|
104
|
-
}), jsx("div", {
|
|
105
|
-
style: {
|
|
106
|
-
flex: 1,
|
|
107
|
-
overflowY: 'auto',
|
|
108
|
-
overflowX: 'hidden',
|
|
109
|
-
display: 'flex',
|
|
110
|
-
flexDirection: 'column'
|
|
111
|
-
},
|
|
112
|
-
className: "removeBoxShadow",
|
|
113
|
-
children: jsx(SidebarMenu, {
|
|
114
|
-
menuData: updateMenuIcons(lowerMenus),
|
|
115
|
-
routeParams: routeParams,
|
|
116
|
-
settings: settings
|
|
117
|
-
})
|
|
118
|
-
})]
|
|
119
|
-
}), jsx("div", {
|
|
120
|
-
className: "absolute bottom-0 left-0 p-4 dark:border-gray-700",
|
|
121
|
-
children: jsx(BottomMenuDropDown, {
|
|
122
|
-
menus: bottomMenus,
|
|
123
|
-
collapsed: collapsed,
|
|
124
|
-
routeParams: routeParams
|
|
125
|
-
})
|
|
126
|
-
})]
|
|
127
|
-
});
|
|
128
|
-
return jsxs("div", {
|
|
129
|
-
children: [jsx("aside", {
|
|
130
|
-
className: "z-20 hidden h-full w-64 overflow-y-auto bg-white dark:bg-gray-800 md:block flex-shrink-0",
|
|
131
|
-
children: renderSidebarContent()
|
|
132
|
-
}), isSideMenuOpen && jsx("div", {
|
|
133
|
-
className: "fixed inset-0 z-10 flex items-end bg-black bg-opacity-50 sm:items-center sm:justify-center",
|
|
134
|
-
onClick: closeSideMenu
|
|
135
|
-
}), isSideMenuOpen && jsx("aside", {
|
|
136
|
-
id: "mobile-sidebar",
|
|
137
|
-
className: "fixed inset-y-0 z-20 flex-shrink-0 w-64 mt-16 overflow-y-auto bg-white dark:bg-gray-800 md:hidden",
|
|
138
|
-
children: renderSidebarContent()
|
|
139
|
-
})]
|
|
140
|
-
});
|
|
141
|
-
};export{Sidebar,Sidebar as default};//# sourceMappingURL=Sidebar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.js","sources":["../../../../src/components/Layout/Sidebar/Sidebar.tsx"],"sourcesContent":[null],"names":["React","_jsxs","_jsx"],"mappings":"6eAwBa,MAAA,OAAO,GAA2B,KAAC,IAAS;AACrD,EAAA,MAAA;IACA,cAAsB;AAEtB,IAAA,aAAO;AACP,IAAA,QAAQ;IACR,SAAS;IAET,WAAM;AACF,IAAA;AACJ,GAAA,GAAE,KAAA;QAE8C,CAAA,eAAA,EAAA,kBAAA,CAAA,GAAA,QAAA,CAAA,KAAA,CAAA;QACvC,CAAA,UAAM,EAAA,aAAA,CAAA,GAAAA,cAAA,CAAA,QAAA,CAAA,IAAA,CAAA;AACX,EAAA,MAAA;;AAEI,GAAA,GAAA,QAAA,EAAI;AACA,EAAA,MAAA;;AAER,IAAA;AAEA,GAAA,GAAA,cAAyB,CAAA,MAAA,CAAA;AAI7B;WAEqC,CAAA,MAAA;IACrC,MAAS,kBAAM,GAAA,KAAA,IAAA;AACX,MAAA,MAAA,OAAkB,GAAA,QAAI,CAAA,cAAwB,CAAA,gBAAA,CAAA;iBACtC,IAAK,CAAC,OAAG,CAAK,QAAQ,CAAI,KAAA,CAAA,MAAA,CAAA,IAAc,cAAG,EAAA;AAC3C,QAAA,aAAA,EAAA;;AAER,KAAA;AAEA,IAAA,QAAA,CAAA,gBAAyB,CAAA,aAAU,kBAAgB,CAAA;AACnD,IAAA,OAAA;AACI,MAAA,QAAA,CAAA,mBAA4B,CAAA,+BAA0B,CAAA;AAC1D,KAAA;AACJ,GAAA,EAAC,eAAG,EAAc,aAAe,CAAA,CAAA;;AAGjC,EAAA,SAAqB,CAAA,MAAA;AACjB,IAAA,MAAA,eAAiB,KAAK,IAAI;AACtB,MAAA,IAAA,KAAA,CAAA,gBAAoB,IAAA,cAAA,EAAA;AAChB,QAAA,aAAO,EAAA;AACP;;aAEH,gBAAC,CAAA,SAAA,EAAA,YAAA,CAAA;AACF,IAAA,OAAA,MAAe;4CACY,EAAA,YAA2B,CAAA;;AAGtD,GAAA,EAAA,CAAA,6BAAmB,CAAA,CAAA;AACvB,EAAA,MAAA,UAAG,GAAA,iBAAA,CAAA,QAAA,CAAA,CAAA,WAAA;AACP,EAAA,MAAE,eAAA,GAAA,SAAA,IAAA;IACF,OAAM,SAAA,CAAW,GAAG,CAAA,IAAU,IAAA;MAExB,MAAA,WAAa,GAAiB;QAC9B,GAAA,IAAA;AAEN,QAAA;AASoB,QAAA,IAAA,EAAA,UAAA,IAAA,IAAI,KAAG,GAAA,UAAA,CAAA,iBAAA,CAAA,IAAA,CAAA,IAAA,CAAA,GAAA;AACP,OAAA;AACA,MAAA,IAAA,WAAA,CAAA,QAAA,EAAA;AACA,QAAA,WAAA,CAAA,QAAA,GAAA,eAAe,CAAA,WAAA,CAAA,QAAA,CAAA;AACf;AACH,MAAA,OAAA,WAAA;AAQW,KAAA,CAAA;AACA,GAAA;AACA,EAAA,MAAA,WAAA,GAAA;AACA,IAAA,QAAA,EAAA,eAAA,CAAA,UAAA;;AAMA,EAAA,MAAA,UAAA,GAAA,iBAAA,CAAA,QAAgB,CAAA,CAAA,WAAA;AAChB,EAAA,MAAA,UAAA,GAAA,iBAAA,CAAA,QAAW,EAAE,UAAS;AACtB,EAAA,MAAA,oBAAA,GAAA,MAAAC,IAAM,MAAG,EAAA;AACT,IAAA,SAAA,EAAA,uCAAU;AACb,IAAA,QAAA,EAAA,CAAAA,IAAA,CAAA,IAAA,EAAA;AASL,MAAA,EAAA,EAAA,GAAA;AACA,MAAA,SAAA,EAAA,mFAAiB;AACjB,MAAA,QAAA,EAAA,CAAAC,GAAA,CAAA,KAAA,EAAA;AACA,QAAA,GAAA,EAAA,QAAA,EAAA,IAAA;AACA,QAAA,SAAA,EAAA;;AAcpB,KAAA,CAAA,EAAAD,IAGQ,CAAA,KAAA,EAAA;AAuBZ,MAAE,QAAA,EAAA,CAAAA,IAAA,CAAA,KAAA,EAAA;AAEF,QAAA,KAAA,EAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Sidebar/SidebarMenu.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW;;;;6CAgFvB,CAAC"}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import {jsx,jsxs}from'react/jsx-runtime';import {useState}from'react';import {ChevronDown,ChevronRight}from'lucide-react';import {Link}from'@remix-run/react';import {generateMenuPath}from'@admin-layout/client';import {generateLightShade}from'../BasicLayout/utils.js';const SidebarMenu = ({
|
|
2
|
-
menuData,
|
|
3
|
-
routeParams,
|
|
4
|
-
settings
|
|
5
|
-
}) => {
|
|
6
|
-
// Track open menus by their depth level
|
|
7
|
-
const [openMenusByLevel, setOpenMenusByLevel] = useState({});
|
|
8
|
-
// Track the currently active menu item
|
|
9
|
-
const [activePath, setActivePath] = useState('/dashboard');
|
|
10
|
-
const toggleMenu = (path, depth, e) => {
|
|
11
|
-
// Prevent link navigation when clicking on a parent menu with children
|
|
12
|
-
e.preventDefault();
|
|
13
|
-
setOpenMenusByLevel(prev => {
|
|
14
|
-
const newState = {
|
|
15
|
-
...prev
|
|
16
|
-
};
|
|
17
|
-
// If this menu is already open, close it
|
|
18
|
-
if (newState[depth] === path) {
|
|
19
|
-
newState[depth] = null;
|
|
20
|
-
}
|
|
21
|
-
// Otherwise, close any other menu at this depth level and open this one
|
|
22
|
-
else {
|
|
23
|
-
newState[depth] = path;
|
|
24
|
-
}
|
|
25
|
-
return newState;
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
const handleMenuClick = (path, hasChildren, depth, e) => {
|
|
29
|
-
if (hasChildren) {
|
|
30
|
-
toggleMenu(path, depth, e);
|
|
31
|
-
} else {
|
|
32
|
-
// For leaf items, set as active and allow navigation
|
|
33
|
-
setActivePath(path);
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
const renderMenuItem = (item, depth = 0) => {
|
|
37
|
-
const hasChildren = item.children && item.children.length > 0;
|
|
38
|
-
const isOpen = openMenusByLevel[depth] === item.path;
|
|
39
|
-
const isActive = activePath === item.path;
|
|
40
|
-
const paddingLeft = `${depth * 1}rem`;
|
|
41
|
-
// Determine the background color based on state
|
|
42
|
-
let bgColor = generateLightShade(settings?.primaryColor, 0.89);
|
|
43
|
-
return jsxs("div", {
|
|
44
|
-
className: "w-full",
|
|
45
|
-
children: [jsxs(Link, {
|
|
46
|
-
to: generateMenuPath(item?.path, routeParams),
|
|
47
|
-
className: `flex items-center justify-between w-full px-4 py-2 hover:bg-gray-100 text-sm cursor-pointer transition-colors rounded-md mx-1 my-0.5`,
|
|
48
|
-
style: {
|
|
49
|
-
paddingLeft: `calc(1rem + ${paddingLeft})`,
|
|
50
|
-
backgroundColor: isActive ? bgColor : ''
|
|
51
|
-
},
|
|
52
|
-
onClick: e => handleMenuClick(item.path, hasChildren, depth, e),
|
|
53
|
-
children: [jsxs("div", {
|
|
54
|
-
className: "flex items-center gap-3",
|
|
55
|
-
children: [item.icon && jsx("span", {
|
|
56
|
-
style: {
|
|
57
|
-
color: isActive ? settings?.primaryColor : ''
|
|
58
|
-
},
|
|
59
|
-
children: item.icon
|
|
60
|
-
}), jsx("span", {
|
|
61
|
-
className: `font-medium`,
|
|
62
|
-
style: {
|
|
63
|
-
color: isActive ? settings?.primaryColor : ''
|
|
64
|
-
},
|
|
65
|
-
children: item.name
|
|
66
|
-
})]
|
|
67
|
-
}), hasChildren && jsx("span", {
|
|
68
|
-
style: {
|
|
69
|
-
color: isActive ? settings?.primaryColor : ''
|
|
70
|
-
},
|
|
71
|
-
children: isOpen ? jsx(ChevronDown, {
|
|
72
|
-
className: "h-4 w-4"
|
|
73
|
-
}) : jsx(ChevronRight, {
|
|
74
|
-
className: "h-4 w-4"
|
|
75
|
-
})
|
|
76
|
-
})]
|
|
77
|
-
}), hasChildren && isOpen && jsx("div", {
|
|
78
|
-
className: "transition-all duration-200 ease-in-out",
|
|
79
|
-
children: item.children.map(child => renderMenuItem(child, depth + 1))
|
|
80
|
-
})]
|
|
81
|
-
}, item.path);
|
|
82
|
-
};
|
|
83
|
-
return jsx("div", {
|
|
84
|
-
children: jsx("nav", {
|
|
85
|
-
className: "mt-2 px-2",
|
|
86
|
-
children: menuData.map(item => renderMenuItem(item))
|
|
87
|
-
})
|
|
88
|
-
});
|
|
89
|
-
};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":[],"mappings":"2QAOO,MAAM,WAAW,GAAG,CAAC;UACgB;aACjB;;MAEjB;;QAGF,CAAuE,gBAAA,EAAA,mBAAA,CAAA,GAAA,QAAA,CAAA,EAAA,CAAA;;AAGvE,EAAA,MAAA,CAAA,UAAA,EAAA,aAAyB,CAAE,GAAE,QAAA,CAAA,YAAA,CAAA;AACzB,EAAA,MAAA,UAAM,QAAQ,EAAG,KAAK,EAAA,CAAA,KAAO;;AAG7B,IAAA,CAAA,CAAA;AACI,IAAA,mBAAA,CAAQ,IAAC,IAAM;YACnB,QAAC,GAAA;;;AAGG;kBACH,CAAA,KAAA,CAAA,KAAA,IAAA,EAAA;AAED,QAAA,QAAA,CAAA,aAAgB;AACpB;AACJ;WAEM;QACF,QAAI,CAAA,KAAA,CAAW,GAAG,IAAA;AACd;aACH,QAAA;;;uBAEgB,GAAC,CAAI,IAAC,EAAC,WAAA,EAAA,KAAA,EAAA,CAAA,KAAA;QACxB,WAAC,EAAA;AACL,MAAE,UAAA,CAAA,IAAA,EAAA,KAAA,EAAA,CAAA,CAAA;KAEI,MAAA;AACF;mBACM,CAAM,IAAG,CAAA;AACf;AACA,GAAA;QAEA,cAAgD,GAAA,CAAA,IAAA,EAAA,KAAA,GAAA,CAAA,KAAA;UAC5C,WAAU,GAAA,IAAA,CAAA,QAAA,IAAmB,IAAA,CAAA,QAAsB,CAAA,MAAA,GAAA,CAAE;UAElD,MACH,mBAA8B,CAAA,KAAA,CAAC,SAC3B,CAAA,IAAA;AA2BZ,IAAA,MAAE,QAAA,GAAA,UAAA,KAAA,IAAA,CAAA,IAAA;IAEF,MAAO,WAEC,GAAA,CAAA,EAAA,KAAA,GAAA,CAAA,CAAA,GAAA,CAAA;AAGZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
type ICheckboxThemeProps = {
|
|
2
|
-
list?: any[];
|
|
3
|
-
changeSetting?: (key: string, value: string | boolean | any) => void;
|
|
4
|
-
settings?: any;
|
|
5
|
-
};
|
|
6
|
-
export default function CheckBoxTheme(props: ICheckboxThemeProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=CheckBoxTheme.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CheckBoxTheme.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/CheckBoxTheme.tsx"],"names":[],"mappings":"AAEA,KAAK,mBAAmB,GAAG;IACvB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACb,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,GAAG,KAAK,IAAI,CAAC;IACrE,QAAQ,CAAC,EAAE,GAAG,CAAC;CAClB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,mBAAmB,2CA+C/D"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import {jsx,jsxs}from'react/jsx-runtime';function CheckBoxTheme(props) {
|
|
2
|
-
const {
|
|
3
|
-
list,
|
|
4
|
-
changeSetting,
|
|
5
|
-
settings
|
|
6
|
-
} = props;
|
|
7
|
-
return jsx("div", {
|
|
8
|
-
className: "flex flex-row",
|
|
9
|
-
children: list.map((themeItems, index) => {
|
|
10
|
-
return jsxs("div", {
|
|
11
|
-
className: "w-16 h-12 shadow-sm rounded cursor-pointer",
|
|
12
|
-
style: {
|
|
13
|
-
boxShadow: '0 1px 2.5px 0 rgb(0 0 0 / 18%)'
|
|
14
|
-
},
|
|
15
|
-
onClick: () => {
|
|
16
|
-
changeSetting('navTheme', themeItems.key);
|
|
17
|
-
changeSetting('primaryColor', settings.primaryColor);
|
|
18
|
-
},
|
|
19
|
-
children: [jsx("div", {
|
|
20
|
-
className: "h-3/10 rounded-t",
|
|
21
|
-
style: {
|
|
22
|
-
backgroundColor: themeItems.key == 'dark' ? 'rgba(6,25,45,1)' : '#ffff'
|
|
23
|
-
}
|
|
24
|
-
}), jsxs("div", {
|
|
25
|
-
className: "flex h-7/10",
|
|
26
|
-
children: [jsx("div", {
|
|
27
|
-
className: "w-3/10 rounded-bl",
|
|
28
|
-
style: {
|
|
29
|
-
backgroundColor: themeItems.key === 'dark' ? 'rgba(13,32,51,1)' : '#ffff'
|
|
30
|
-
}
|
|
31
|
-
}), jsx("div", {
|
|
32
|
-
className: "w-7/10 rounded-br",
|
|
33
|
-
style: {
|
|
34
|
-
backgroundColor: themeItems.key == 'dark' ? 'rgba(38,55,72,1)' : '#f0f2f5'
|
|
35
|
-
}
|
|
36
|
-
})]
|
|
37
|
-
}), settings?.navTheme == themeItems.key ? jsx("svg", {
|
|
38
|
-
className: "relative -bottom-8 left-8 w-4 h-4",
|
|
39
|
-
viewBox: "0 0 24 24",
|
|
40
|
-
fill: "currentColor",
|
|
41
|
-
children: jsx("path", {
|
|
42
|
-
d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
|
|
43
|
-
})
|
|
44
|
-
}) : '']
|
|
45
|
-
}, `themeItem_${index}`);
|
|
46
|
-
})
|
|
47
|
-
});
|
|
48
|
-
}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":["_jsx","_jsxs"],"mappings":"yCAQwB,SAAA,aAAa,CAAC,KAA0B,EAAA;QACtD;AACN,IAAA,IAAA;AAGY,IAAA,aAAA;AAMY,IAAA;AACA,GAAA,GAAA,KAAA;AACJ,EAAA,OAAAA,GAAA,CAAA;AAKQ,IAAA,SAAA,EAAA,eAAA;AACH,IAAA,QAAA,EAAA,IAAA,CAAA,GAAA,CAAA,CAAA,UAEL,EAAA,KAAA,KAAc;AAIF,MAAA,OAAAC,IAAA,CAAA,KAAA,EAAA;AACH,QAAA,SAAA,EAAA,4CAGS;AAEN,QAAA,KAAA,EAAA;;SAavB;AAGb,QAAC,OAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ProSettings } from '../defaultSettings';
|
|
2
|
-
export type ILayoutSettingsProps = {
|
|
3
|
-
settings?: Partial<ProSettings>;
|
|
4
|
-
changeSetting?: (key: string, value: string | boolean) => void;
|
|
5
|
-
};
|
|
6
|
-
export default function LayoutChange(props: ILayoutSettingsProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
//# sourceMappingURL=LayoutChange.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutChange.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/LayoutChange.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,oBAAoB,GAAG;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAChC,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;CAClE,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,oBAAoB,2CAsE/D"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import {jsxs,jsx}from'react/jsx-runtime';import {useState}from'react';import {useTranslation}from'react-i18next';import {Switch}from'./Switch/index.js';function LayoutChange(props) {
|
|
2
|
-
const [selectedValue, setSelectedValue] = useState();
|
|
3
|
-
const {
|
|
4
|
-
settings,
|
|
5
|
-
changeSetting
|
|
6
|
-
} = props;
|
|
7
|
-
const {
|
|
8
|
-
t
|
|
9
|
-
} = useTranslation('settings');
|
|
10
|
-
const {
|
|
11
|
-
contentWidth,
|
|
12
|
-
splitMenus,
|
|
13
|
-
fixedHeader,
|
|
14
|
-
layout,
|
|
15
|
-
fixSiderbar,
|
|
16
|
-
navTheme
|
|
17
|
-
} = settings;
|
|
18
|
-
return jsxs("div", {
|
|
19
|
-
children: [jsxs("div", {
|
|
20
|
-
className: "flex items-center mt-4",
|
|
21
|
-
children: [jsx("p", {
|
|
22
|
-
className: "mb-0",
|
|
23
|
-
style: {
|
|
24
|
-
color: navTheme == 'dark' ? '#ffff' : 'black'
|
|
25
|
-
},
|
|
26
|
-
children: t('fixed_header')
|
|
27
|
-
}), jsx("div", {
|
|
28
|
-
className: "flex-grow"
|
|
29
|
-
}), jsx(Switch, {
|
|
30
|
-
value: fixedHeader,
|
|
31
|
-
settingKey: "fixedHeader",
|
|
32
|
-
changeSetting: changeSetting,
|
|
33
|
-
settings: settings
|
|
34
|
-
})]
|
|
35
|
-
}), jsxs("div", {
|
|
36
|
-
className: "flex items-center mt-4",
|
|
37
|
-
children: [jsx("p", {
|
|
38
|
-
className: "mb-0",
|
|
39
|
-
style: {
|
|
40
|
-
color: navTheme == 'dark' ? '#ffff' : 'black'
|
|
41
|
-
},
|
|
42
|
-
children: t('fixed_sidebar')
|
|
43
|
-
}), jsx("div", {
|
|
44
|
-
className: "flex-grow"
|
|
45
|
-
}), jsx(Switch, {
|
|
46
|
-
value: fixSiderbar,
|
|
47
|
-
settingKey: "fixSiderbar",
|
|
48
|
-
changeSetting: changeSetting,
|
|
49
|
-
settings: settings
|
|
50
|
-
})]
|
|
51
|
-
}), jsxs("div", {
|
|
52
|
-
className: "flex items-center mt-4",
|
|
53
|
-
children: [jsx("p", {
|
|
54
|
-
className: "mb-0",
|
|
55
|
-
style: {
|
|
56
|
-
color: navTheme == 'dark' ? '#ffff' : 'black'
|
|
57
|
-
},
|
|
58
|
-
children: t('split_menus')
|
|
59
|
-
}), jsx("div", {
|
|
60
|
-
className: "flex-grow"
|
|
61
|
-
}), jsx(Switch, {
|
|
62
|
-
value: splitMenus,
|
|
63
|
-
settingKey: "splitMenus",
|
|
64
|
-
changeSetting: changeSetting,
|
|
65
|
-
settings: settings
|
|
66
|
-
})]
|
|
67
|
-
})]
|
|
68
|
-
});
|
|
69
|
-
}export{LayoutChange as default};//# sourceMappingURL=LayoutChange.js.map
|