@admin-layout/tailwind-design-pro 10.0.9-alpha.4 → 10.0.9-alpha.44
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 +88 -1
- package/lib/cdm-locales/en/settings.json +6 -1
- package/lib/cdm-locales/es/settings.json +5 -2
- package/lib/components/Layout/BasicLayout/index.d.ts +3 -1
- package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/index.js +117 -62
- package/lib/components/Layout/BasicLayout/index.js.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts +1 -8
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.d.ts +1 -14
- package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.js +1 -1
- package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/Logo.d.ts +4 -0
- package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +1 -0
- package/lib/components/Layout/GlobalHeader/Logo.js +141 -0
- package/lib/components/Layout/GlobalHeader/Logo.js.map +1 -0
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +6 -0
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -0
- package/lib/components/Layout/GlobalHeader/MainHeader.js +203 -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.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts +1 -13
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -1
- 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 +287 -0
- package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -0
- package/lib/components/Layout/GlobalHeader/index.d.ts +4 -0
- package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -0
- package/lib/components/Layout/ProTailwindLayout.d.ts +2 -0
- package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.js +19 -4
- package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
- package/lib/components/Layout/Sidebar/Divider.d.ts +1 -31
- package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts +5 -0
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/DynamicIcon.js +51 -0
- package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -0
- package/lib/components/Layout/Sidebar/Sidebar.d.ts +1 -12
- package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/Sidebar.js +10 -3
- package/lib/components/Layout/Sidebar/Sidebar.js.map +1 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.js +89 -13
- package/lib/components/Layout/Sidebar/SidebarMenu.js.map +1 -1
- package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/TailwindLayout.js +12 -9
- 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 +2 -2
- package/lib/components/Layout/getPageTitle.js.map +1 -1
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts +4 -0
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/AdditionalSettings.js +7 -0
- package/lib/components/Layout/slot-fill/AdditionalSettings.js.map +1 -0
- package/lib/components/Layout/slot-fill/Footer.js +6 -6
- package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts +3 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js +6 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts +3 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js +6 -0
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -0
- package/lib/components/Layout/slot-fill/RightContent.d.ts +3 -0
- package/lib/components/Layout/slot-fill/RightContent.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/RightContent.js +6 -0
- package/lib/components/Layout/slot-fill/RightContent.js.map +1 -0
- package/lib/components/Layout/slot-fill/index.d.ts +4 -0
- package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
- package/lib/components/Layout/util.js +12 -0
- package/lib/components/Layout/util.js.map +1 -0
- package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +1 -1
- package/lib/components/SettingDrawer/RegionalSettings.js +79 -1
- package/lib/components/SettingDrawer/RegionalSettings.js.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.js +101 -12
- package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
- package/lib/components/SettingDrawer/ThemeColor.d.ts.map +1 -1
- package/lib/components/SettingDrawer/ThemeColor.js +3 -0
- package/lib/components/SettingDrawer/ThemeColor.js.map +1 -1
- package/lib/components/SettingDrawer/WebFontsSelector.d.ts +3 -0
- package/lib/components/SettingDrawer/WebFontsSelector.d.ts.map +1 -0
- package/lib/components/SettingDrawer/WebFontsSelector.js +24 -0
- package/lib/components/SettingDrawer/WebFontsSelector.js.map +1 -0
- package/lib/components/SettingDrawer/types.d.ts +19 -1
- package/lib/components/SettingDrawer/types.d.ts.map +1 -1
- package/lib/components/ThemeProvider/ThemeProvider.d.ts +8 -0
- package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +1 -0
- package/lib/components/ThemeProvider/ThemeProvider.js +64 -0
- package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -0
- package/lib/components/ThemeProvider/ThemeToggle.d.ts +7 -0
- package/lib/components/ThemeProvider/ThemeToggle.d.ts.map +1 -0
- package/lib/components/ThemeProvider/ThemeToggle.js +50 -0
- package/lib/components/ThemeProvider/ThemeToggle.js.map +1 -0
- package/lib/components/ThemeProvider/index.d.ts +4 -0
- package/lib/components/ThemeProvider/index.d.ts.map +1 -0
- package/lib/components/ThemeProvider/themes/airbnb.d.ts +3 -0
- package/lib/components/ThemeProvider/themes/airbnb.d.ts.map +1 -0
- package/lib/components/ThemeProvider/themes/airbnb.js +186 -0
- package/lib/components/ThemeProvider/themes/airbnb.js.map +1 -0
- package/lib/components/ThemeProvider/themes/default.d.ts +3 -0
- package/lib/components/ThemeProvider/themes/default.d.ts.map +1 -0
- package/lib/components/ThemeProvider/themes/default.js +183 -0
- package/lib/components/ThemeProvider/themes/default.js.map +1 -0
- package/lib/components/ThemeProvider/themes/github.d.ts +3 -0
- package/lib/components/ThemeProvider/themes/github.d.ts.map +1 -0
- package/lib/components/ThemeProvider/themes/github.js +190 -0
- package/lib/components/ThemeProvider/themes/github.js.map +1 -0
- package/lib/components/ThemeProvider/themes/index.d.ts +15 -0
- package/lib/components/ThemeProvider/themes/index.d.ts.map +1 -0
- package/lib/components/ThemeProvider/themes/index.js +7 -0
- package/lib/components/ThemeProvider/themes/index.js.map +1 -0
- package/lib/components/ThemeProvider/themes/slack.d.ts +3 -0
- package/lib/components/ThemeProvider/themes/slack.d.ts.map +1 -0
- package/lib/components/ThemeProvider/themes/slack.js +188 -0
- package/lib/components/ThemeProvider/themes/slack.js.map +1 -0
- package/lib/components/ThemeProvider/themes/spotify.d.ts +3 -0
- package/lib/components/ThemeProvider/themes/spotify.d.ts.map +1 -0
- package/lib/components/ThemeProvider/themes/spotify.js +189 -0
- package/lib/components/ThemeProvider/themes/spotify.js.map +1 -0
- package/lib/components/ThemeProvider/types.d.ts +112 -0
- package/lib/components/ThemeProvider/types.d.ts.map +1 -0
- package/lib/components/UI/CategoriesTypeList.d.ts +29 -0
- package/lib/components/UI/CategoriesTypeList.d.ts.map +1 -0
- package/lib/components/UI/CategoriesTypeList.js +140 -0
- package/lib/components/UI/CategoriesTypeList.js.map +1 -0
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts +83 -0
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts.map +1 -0
- package/lib/components/UI/LazyLoadingGoogleMarker.js +107 -0
- package/lib/components/UI/LazyLoadingGoogleMarker.js.map +1 -0
- package/lib/components/UI/Pagination.d.ts +6 -0
- package/lib/components/UI/Pagination.d.ts.map +1 -0
- package/lib/components/UI/Pagination.js +59 -0
- package/lib/components/UI/Pagination.js.map +1 -0
- package/lib/components/UI/ParamSearchResultContainer.d.ts +90 -0
- package/lib/components/UI/ParamSearchResultContainer.d.ts.map +1 -0
- package/lib/components/UI/ParamSearchResultContainer.js +80 -0
- package/lib/components/UI/ParamSearchResultContainer.js.map +1 -0
- package/lib/components/UI/PropertyCard.d.ts +24 -0
- package/lib/components/UI/PropertyCard.d.ts.map +1 -0
- package/lib/components/UI/PropertyCard.js +377 -0
- package/lib/components/UI/PropertyCard.js.map +1 -0
- package/lib/components/UI/PropertyCardList.d.ts +93 -0
- package/lib/components/UI/PropertyCardList.d.ts.map +1 -0
- package/lib/components/UI/PropertyCardList.js +41 -0
- package/lib/components/UI/PropertyCardList.js.map +1 -0
- package/lib/components/UI/PropertyCardOnMap.d.ts +10 -0
- package/lib/components/UI/PropertyCardOnMap.d.ts.map +1 -0
- package/lib/components/UI/PropertyCardOnMap.js +108 -0
- package/lib/components/UI/PropertyCardOnMap.js.map +1 -0
- package/lib/components/UI/icons/LocationIcon.d.ts +7 -0
- package/lib/components/UI/icons/LocationIcon.d.ts.map +1 -0
- package/lib/components/UI/icons/LocationIcon.js +18 -0
- package/lib/components/UI/icons/LocationIcon.js.map +1 -0
- package/lib/components/UI/icons/index.d.ts +2 -0
- package/lib/components/UI/icons/index.d.ts.map +1 -0
- package/lib/components/UI/index.d.ts +8 -0
- package/lib/components/UI/index.d.ts.map +1 -0
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +1 -1
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
- package/lib/components/index.d.ts +4 -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 +123 -51
- package/lib/components/typings.d.ts.map +1 -1
- package/lib/compute.d.ts.map +1 -1
- package/lib/compute.js +24 -8
- package/lib/compute.js.map +1 -1
- package/lib/config/constants.d.ts +7 -0
- package/lib/config/constants.d.ts.map +1 -0
- package/lib/config/constants.js +6 -0
- package/lib/config/constants.js.map +1 -0
- package/lib/config/env-config.d.ts +2 -0
- package/lib/config/env-config.d.ts.map +1 -1
- package/lib/config/env-config.js +15 -1
- package/lib/config/env-config.js.map +1 -1
- package/lib/helpers/DynamicIcon.d.ts +7 -4
- package/lib/helpers/DynamicIcon.d.ts.map +1 -1
- package/lib/helpers/DynamicIcon.js +51 -0
- package/lib/helpers/DynamicIcon.js.map +1 -0
- package/lib/hooks/index.d.ts +5 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/use-get-current-lat-long.d.ts +18 -0
- package/lib/hooks/use-get-current-lat-long.d.ts.map +1 -0
- package/lib/hooks/use-get-current-lat-long.js +29 -0
- package/lib/hooks/use-get-current-lat-long.js.map +1 -0
- package/lib/hooks/useScrollThreshold.d.ts +12 -0
- package/lib/hooks/useScrollThreshold.d.ts.map +1 -0
- package/lib/hooks/useScrollThreshold.js +60 -0
- package/lib/hooks/useScrollThreshold.js.map +1 -0
- package/lib/hooks/useTailwindTheme.d.ts +34 -0
- package/lib/hooks/useTailwindTheme.d.ts.map +1 -0
- package/lib/hooks/useTailwindTheme.js +82 -0
- package/lib/hooks/useTailwindTheme.js.map +1 -0
- package/lib/hooks/useWindowSize.d.ts +6 -0
- package/lib/hooks/useWindowSize.d.ts.map +1 -0
- package/lib/hooks/useWindowSize.js +20 -0
- package/lib/hooks/useWindowSize.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/machines/settingsMachine.d.ts.map +1 -1
- package/lib/machines/settingsMachine.js +23 -3
- package/lib/machines/settingsMachine.js.map +1 -1
- package/lib/machines/types.d.ts +14 -0
- package/lib/machines/types.d.ts.map +1 -1
- 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 +12 -14
- package/lib/module.js.map +1 -1
- package/lib/routes.json +42 -0
- package/lib/styles/index.css +438 -46
- package/lib/tailwindConfig.d.ts +42 -0
- package/lib/tailwindConfig.d.ts.map +1 -0
- package/lib/tailwindConfig.js +23 -0
- package/lib/tailwindConfig.js.map +1 -0
- package/package.json +4 -4
- 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/README.md
CHANGED
|
@@ -1 +1,88 @@
|
|
|
1
|
-
# Tailwind
|
|
1
|
+
# Tailwind Design Pro
|
|
2
|
+
|
|
3
|
+
A universal tailwind design system for use across all projects.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Unified theme system with light and dark mode support
|
|
8
|
+
- Consistent styling across all projects
|
|
9
|
+
- Easy to customize and extend
|
|
10
|
+
- Built-in typography, forms, and aspect ratio support
|
|
11
|
+
|
|
12
|
+
## Usage in Servers
|
|
13
|
+
|
|
14
|
+
To use this package in your server project, follow these steps:
|
|
15
|
+
|
|
16
|
+
### 1. Install the package
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install @admin-layout/tailwind-design-pro
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### 2. Use the Universal Tailwind Config
|
|
23
|
+
|
|
24
|
+
Create a `tailwind.config.js` or `tailwind.config.ts` file in your server project and import the universal config:
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
// tailwind.config.ts or tailwind.config.js
|
|
28
|
+
import { themeConfig } from '@admin-layout/tailwind-design-pro';
|
|
29
|
+
|
|
30
|
+
export default {
|
|
31
|
+
// Override content paths to include server-specific paths
|
|
32
|
+
content: [
|
|
33
|
+
'./src/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}',
|
|
34
|
+
'./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}',
|
|
35
|
+
'../../packages/**/*.{js,jsx,ts,tsx}',
|
|
36
|
+
'../../packages-modules/**/*.{js,jsx,ts,tsx}',
|
|
37
|
+
],
|
|
38
|
+
|
|
39
|
+
// You can add server-specific overrides here if needed
|
|
40
|
+
theme: {
|
|
41
|
+
extend: {
|
|
42
|
+
// Any server-specific extensions would go here
|
|
43
|
+
...themeConfig,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
darkMode: 'class',
|
|
47
|
+
variants: {
|
|
48
|
+
typography: ['dark'],
|
|
49
|
+
},
|
|
50
|
+
plugins: [typography, forms, aspectRatio],
|
|
51
|
+
};
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### 3. Using the ThemeProvider
|
|
55
|
+
|
|
56
|
+
To enable theme switching functionality in your application, wrap your app with the ThemeProvider:
|
|
57
|
+
|
|
58
|
+
```tsx
|
|
59
|
+
import { ThemeProvider } from '@admin-layout/tailwind-design-pro';
|
|
60
|
+
|
|
61
|
+
function App() {
|
|
62
|
+
// Example settings for the theme
|
|
63
|
+
const settings = {
|
|
64
|
+
theme: 'airbnb', // Use our unified theme
|
|
65
|
+
themeType: 'light', // 'light' or 'dark'
|
|
66
|
+
primaryColor: '#1890ff', // Optional custom primary color
|
|
67
|
+
fontFamily: 'Inter, sans-serif', // Optional custom font
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
return (
|
|
71
|
+
<ThemeProvider settings={settings}>
|
|
72
|
+
<YourApp />
|
|
73
|
+
</ThemeProvider>
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Theme Customization
|
|
79
|
+
|
|
80
|
+
The theme system is built on Tailwind's theme extension mechanism. You can customize the theme by modifying the `themeRegistry.ts` file.
|
|
81
|
+
|
|
82
|
+
## Available Themes
|
|
83
|
+
|
|
84
|
+
- `default` - The default theme
|
|
85
|
+
- `github` - GitHub-inspired theme
|
|
86
|
+
- `slack` - Slack-inspired theme
|
|
87
|
+
- `airbnb` - Airbnb-inspired theme
|
|
88
|
+
- `spotify` - Spotify-inspired theme
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
"header": "Header",
|
|
6
6
|
"footer": "Footer",
|
|
7
7
|
"search_bar": "Search Bar",
|
|
8
|
+
"search_bar_on_scroll": "Show Search Bar on Scroll",
|
|
9
|
+
"search_bar_overlay": "Show Overlay on Search",
|
|
8
10
|
"menu": "Menu",
|
|
9
11
|
"menu_header": "Menu Header",
|
|
10
12
|
"setting": "Setting",
|
|
@@ -15,5 +17,8 @@
|
|
|
15
17
|
"other_setting": "Other Setting",
|
|
16
18
|
"weak_mode": "Weak Mode",
|
|
17
19
|
"light": "Light",
|
|
18
|
-
"dark": "Dark"
|
|
20
|
+
"dark": "Dark",
|
|
21
|
+
"font_family": "Font Family",
|
|
22
|
+
"select_theme": "Select Theme",
|
|
23
|
+
"scroll_threshold": "Searchbar Scroll Threshold"
|
|
19
24
|
}
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
"fixed_sidebar": "Barra Lateral Fija",
|
|
4
4
|
"split_menus": "Menús Divididos",
|
|
5
5
|
"header": "Encabezado",
|
|
6
|
-
"footer": "Pie de
|
|
6
|
+
"footer": "Pie de página",
|
|
7
7
|
"search_bar": "Barra de Búsqueda",
|
|
8
|
+
"search_bar_on_scroll": "Mostrar Barra de Búsqueda al Desplazar",
|
|
9
|
+
"search_bar_overlay": "Mostrar Superposición en Búsqueda",
|
|
8
10
|
"menu": "Menú",
|
|
9
11
|
"menu_header": "Encabezado del Menú",
|
|
10
12
|
"setting": "Configuración",
|
|
@@ -15,5 +17,6 @@
|
|
|
15
17
|
"other_setting": "Otra Configuración",
|
|
16
18
|
"weak_mode": "Modo Débil",
|
|
17
19
|
"light": "Claro",
|
|
18
|
-
"dark": "Oscuro"
|
|
20
|
+
"dark": "Oscuro",
|
|
21
|
+
"scroll_threshold": "Umbral de Desplazamiento"
|
|
19
22
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BasicLayoutProps, GlobalHeaderProps } from '@admin-layout/client';
|
|
3
|
-
export declare const useHorizontalScroll: ({ scrolled, setScrolled, setSearchOptionsShown, onScrollReachEnd }: {
|
|
3
|
+
export declare const useHorizontalScroll: ({ scrolled, setScrolled, setSearchOptionsShown, onScrollReachEnd, settings, onSettingChange, }: {
|
|
4
4
|
scrolled: any;
|
|
5
5
|
setScrolled: any;
|
|
6
6
|
setSearchOptionsShown: any;
|
|
7
7
|
onScrollReachEnd: any;
|
|
8
|
+
settings: any;
|
|
9
|
+
onSettingChange: any;
|
|
8
10
|
}) => React.MutableRefObject<undefined>;
|
|
9
11
|
export declare const BasicLayout: React.FC<BasicLayoutProps & GlobalHeaderProps & {
|
|
10
12
|
routeParams?: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/BasicLayout/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiE,MAAM,OAAO,CAAC;AAOtF,OAAO,EACH,gBAAgB,EAGhB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/BasicLayout/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiE,MAAM,OAAO,CAAC;AAOtF,OAAO,EACH,gBAAgB,EAGhB,iBAAiB,EAIpB,MAAM,sBAAsB,CAAC;AAU9B,eAAO,MAAM,mBAAmB;;;;;;;uCAgE/B,CAAC;AAgCF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAC9B,gBAAgB,GAAG,iBAAiB,GAAG;IAAE,WAAW,CAAC,EAAE,GAAG,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAoL3F,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {jsx
|
|
2
|
-
const useHorizontalScroll = ({
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';import {useState,useRef,useEffect}from'react';import {Sidebar}from'../Sidebar/Sidebar.js';import {GlobalHeader}from'../GlobalHeader/Header.js';import {Outlet}from'@remix-run/react';import warning from'warning';import {omit}from'lodash-es';import {SettingDrawer}from'../../SettingDrawer/SettingDrawer.js';import {defaultSettings,useComponentSize,getMenuSeparation,getThemeColors}from'@admin-layout/client';import isBrowser from'../../../utils/isBrowser/index.js';import {getPageTitleInfo}from'../getPageTitle.js';import {useTheme}from'../../ThemeProvider/ThemeProvider.js';import {MainHeader}from'../GlobalHeader/MainHeader.js';import'../GlobalHeader/Logo.js';import'react-router';import'../../../helpers/DynamicIcon.js';import'@app/dialog/WrappedDialogsSwitch';import'@common-stack/components-pro';import {FooterSlot}from'../slot-fill/Footer.js';import'reflect-metadata';import'@admin-layout/client/lib/constants/layout.js';import {config}from'../../../config/env-config.js';import {SearchBarBehavior}from'../../../machines/types.js';import {useScrollThreshold}from'../../../hooks/useScrollThreshold.js';const useHorizontalScroll = ({
|
|
3
2
|
scrolled,
|
|
4
3
|
setScrolled,
|
|
5
4
|
setSearchOptionsShown,
|
|
6
|
-
onScrollReachEnd
|
|
5
|
+
onScrollReachEnd,
|
|
6
|
+
settings,
|
|
7
|
+
onSettingChange
|
|
7
8
|
}) => {
|
|
8
9
|
const elRef = useRef();
|
|
9
10
|
useEffect(() => {
|
|
@@ -13,11 +14,37 @@ const useHorizontalScroll = ({
|
|
|
13
14
|
if (e.deltaY == 0) return;
|
|
14
15
|
e.preventDefault();
|
|
15
16
|
setSearchOptionsShown(false);
|
|
16
|
-
if (
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
if (settings?.regions?.searchBarBehavior === SearchBarBehavior.ON_SCROLL) {
|
|
18
|
+
if (window.scrollY > 50) {
|
|
19
|
+
setScrolled(true);
|
|
20
|
+
// Update search bar visibility
|
|
21
|
+
onSettingChange({
|
|
22
|
+
...settings,
|
|
23
|
+
regions: {
|
|
24
|
+
...settings.regions,
|
|
25
|
+
searchBarRender: true
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
if (window.scrollY < 25) {
|
|
30
|
+
setScrolled(false);
|
|
31
|
+
// Hide search bar when scrolling back to top
|
|
32
|
+
onSettingChange({
|
|
33
|
+
...settings,
|
|
34
|
+
regions: {
|
|
35
|
+
...settings.regions,
|
|
36
|
+
searchBarRender: false
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
} else {
|
|
41
|
+
// For permanent search bar, just update scroll state
|
|
42
|
+
if (window.scrollY > 50) {
|
|
43
|
+
setScrolled(true);
|
|
44
|
+
}
|
|
45
|
+
if (window.scrollY < 25) {
|
|
46
|
+
setScrolled(false);
|
|
47
|
+
}
|
|
21
48
|
}
|
|
22
49
|
if (window.innerHeight + window.scrollY >= document.body.scrollHeight) {
|
|
23
50
|
onScrollReachEnd();
|
|
@@ -28,7 +55,7 @@ const useHorizontalScroll = ({
|
|
|
28
55
|
window.removeEventListener('scroll', onWheel);
|
|
29
56
|
};
|
|
30
57
|
}
|
|
31
|
-
}, []);
|
|
58
|
+
}, [settings?.regions?.searchBarBehavior]);
|
|
32
59
|
return elRef;
|
|
33
60
|
};
|
|
34
61
|
const defaultPageTitleRender = (pageProps, props) => {
|
|
@@ -75,7 +102,7 @@ const BasicLayout = props => {
|
|
|
75
102
|
// isChildrenLayout: propsIsChildrenLayout,
|
|
76
103
|
menuDataRender,
|
|
77
104
|
loading,
|
|
78
|
-
|
|
105
|
+
location,
|
|
79
106
|
routeParams,
|
|
80
107
|
settings,
|
|
81
108
|
authorities,
|
|
@@ -85,27 +112,46 @@ const BasicLayout = props => {
|
|
|
85
112
|
actor
|
|
86
113
|
} = propsWithSettings;
|
|
87
114
|
const [isSideMenuOpen, setIsSideMenuOpen] = useState(false);
|
|
88
|
-
const
|
|
89
|
-
const location = useLocation();
|
|
115
|
+
// const location = useLocation();
|
|
90
116
|
const [scrollEnd, setScrollEnd] = useState(false);
|
|
91
117
|
const [searchOptionsShown, setSearchOptionsShown] = useState(false);
|
|
118
|
+
const {
|
|
119
|
+
picture
|
|
120
|
+
} = mainHeaderProps;
|
|
121
|
+
const {
|
|
122
|
+
LAYOUT_ROOT
|
|
123
|
+
} = config;
|
|
124
|
+
const {
|
|
125
|
+
theme,
|
|
126
|
+
isDarkMode
|
|
127
|
+
} = useTheme();
|
|
92
128
|
const onScrollReachEnd = () => {
|
|
93
129
|
setScrollEnd(prevScrollEnd => !prevScrollEnd);
|
|
94
130
|
};
|
|
95
|
-
useHorizontalScroll({
|
|
131
|
+
const horizontalScrollRef = useHorizontalScroll({
|
|
96
132
|
scrolled,
|
|
97
133
|
setScrolled,
|
|
98
134
|
setSearchOptionsShown,
|
|
99
|
-
onScrollReachEnd
|
|
135
|
+
onScrollReachEnd,
|
|
136
|
+
settings,
|
|
137
|
+
onSettingChange
|
|
100
138
|
});
|
|
101
139
|
const defaultProps = omit({
|
|
102
140
|
...propsWithSettings
|
|
103
141
|
}, ['layout']);
|
|
104
|
-
defaultPageTitleRender({
|
|
142
|
+
const pageTitleInfo = defaultPageTitleRender({
|
|
105
143
|
pathname: location?.pathname,
|
|
106
144
|
...defaultProps
|
|
107
145
|
}, propsWithSettings);
|
|
108
146
|
const settingRef = useRef(settings);
|
|
147
|
+
const scrollThreshold = settings?.regions?.scrollThreshold || 50;
|
|
148
|
+
const {
|
|
149
|
+
componentVisibility
|
|
150
|
+
} = useScrollThreshold([{
|
|
151
|
+
threshold: scrollThreshold,
|
|
152
|
+
id: 'search-bar',
|
|
153
|
+
useWindowScroll: true
|
|
154
|
+
}]);
|
|
109
155
|
useEffect(() => {
|
|
110
156
|
// Only update if the primaryColor actually needs to change
|
|
111
157
|
if (settingRef.current?.primaryColor === '#3FA541C' && primaryColor !== '#3FA541C') {
|
|
@@ -134,62 +180,71 @@ const BasicLayout = props => {
|
|
|
134
180
|
if (heightBody < window.innerHeight - heightHeader - heightFooter) setFooterFixed(true);else setFooterFixed(false);
|
|
135
181
|
}
|
|
136
182
|
}, [heightHeader, heightBody, heightFooter]);
|
|
137
|
-
useEffect(() => {
|
|
138
|
-
if (settings?.navTheme === 'light') {
|
|
139
|
-
setIsDarkMode(false);
|
|
140
|
-
document.documentElement.classList.remove('dark');
|
|
141
|
-
} else if (settings?.navTheme === 'dark') {
|
|
142
|
-
document.documentElement.classList.add('dark');
|
|
143
|
-
setIsDarkMode(true);
|
|
144
|
-
} else {
|
|
145
|
-
setIsDarkMode(false);
|
|
146
|
-
document.documentElement.classList.remove('dark');
|
|
147
|
-
}
|
|
148
|
-
}, [settings]);
|
|
149
183
|
const toggleSideMenu = () => {
|
|
150
184
|
setIsSideMenuOpen(!isSideMenuOpen);
|
|
151
185
|
};
|
|
152
186
|
const closeSideMenu = () => {
|
|
153
187
|
setIsSideMenuOpen(false);
|
|
154
188
|
};
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
189
|
+
// Get background color based on dark mode
|
|
190
|
+
const backgroundColor = isDarkMode ? theme.colors.background.dark : theme.colors.background.light;
|
|
191
|
+
return jsxs("div", {
|
|
192
|
+
className: "flex h-screen bg-background font-sans",
|
|
193
|
+
ref: horizontalScrollRef,
|
|
194
|
+
style: {
|
|
195
|
+
backgroundColor: backgroundColor
|
|
158
196
|
},
|
|
159
|
-
children:
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
197
|
+
children: [settings?.layout.navigationMode !== 'topbar' && settings?.regions.showMenu && !settings?.layout.splitMenus && LAYOUT_ROOT != '/' && jsx(Sidebar, {
|
|
198
|
+
isSideMenuOpen: isSideMenuOpen,
|
|
199
|
+
closeSideMenu: closeSideMenu,
|
|
200
|
+
menuData: menuData,
|
|
201
|
+
collapsed: collapsed,
|
|
202
|
+
setCollapsed: setCollapsed,
|
|
203
|
+
routeParams: routeParams,
|
|
204
|
+
settings: settings
|
|
205
|
+
}), jsxs("div", {
|
|
206
|
+
className: "flex flex-col flex-1 w-full",
|
|
207
|
+
children: [settings?.regions.showHeader && LAYOUT_ROOT != '/' && jsx(GlobalHeader, {
|
|
208
|
+
toggleSideMenu: toggleSideMenu,
|
|
209
|
+
settings: settings,
|
|
210
|
+
upperMenus: getMenuSeparation(menuData).upperMenus,
|
|
167
211
|
routeParams: routeParams,
|
|
168
|
-
|
|
169
|
-
}),
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
212
|
+
collapsed: collapsed
|
|
213
|
+
}), LAYOUT_ROOT === '/' && settings?.regions.showHeader && jsx(MainHeader, {
|
|
214
|
+
scrolled: scrolled,
|
|
215
|
+
location: location,
|
|
216
|
+
menuData: menuData,
|
|
217
|
+
settings: settings,
|
|
218
|
+
pageTitleInfo: pageTitleInfo,
|
|
219
|
+
onSettingChange: onSettingChange,
|
|
220
|
+
searchOptionsShown: searchOptionsShown,
|
|
221
|
+
setSearchOptionsShown: setSearchOptionsShown,
|
|
222
|
+
authorities: authorities,
|
|
223
|
+
picture: picture,
|
|
224
|
+
componentVisibility: componentVisibility
|
|
225
|
+
}), jsx(SettingDrawer, {
|
|
226
|
+
primaryColor: primaryColor,
|
|
227
|
+
settings: settings,
|
|
228
|
+
onSettingChange: onSettingChange,
|
|
229
|
+
actor: actor,
|
|
230
|
+
colorList: getThemeColors(settings?.theme)
|
|
231
|
+
}), jsxs("main", {
|
|
232
|
+
className: "relative",
|
|
233
|
+
children: [searchOptionsShown && settings?.regions?.searchBarOverlay && jsx("div", {
|
|
234
|
+
className: "fixed inset-0 bg-black bg-opacity-50 z-30 cursor-pointer",
|
|
235
|
+
onClick: e => {
|
|
236
|
+
e.stopPropagation();
|
|
237
|
+
setSearchOptionsShown(false);
|
|
238
|
+
}
|
|
239
|
+
}), jsx(Outlet, {})]
|
|
240
|
+
}), jsx("div", {
|
|
241
|
+
ref: refFooter,
|
|
242
|
+
className: footerFixed ? 'fixed bottom-0 w-full' : '',
|
|
243
|
+
children: jsx(FooterSlot, {
|
|
189
244
|
settings: settings,
|
|
190
|
-
active: settings?.regions?.showFooter
|
|
191
|
-
})
|
|
245
|
+
active: settings?.regions?.showFooter === undefined ? true : settings?.regions?.showFooter
|
|
246
|
+
})
|
|
192
247
|
})]
|
|
193
|
-
})
|
|
248
|
+
})]
|
|
194
249
|
});
|
|
195
250
|
};export{BasicLayout,useHorizontalScroll};//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/Layout/BasicLayout/index.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Layout/BasicLayout/index.tsx"],"sourcesContent":[null],"names":[],"mappings":"ynCAyBa,MAAA,mBAAmB,GAAG,CAAC;AAQhC,EAAA,QAAM;aAEG;AACL,EAAA,qBAAW;kBACF;AACL,EAAA,QAAA;AACI,EAAA;;gBACA,MAAgB,EAAA;kBACK;oBAEjB,CAAA,OAAQ,IAAE,IAAA;AACV,IAAA,IAAA,EAAA,EAAA;2BACe;wBACX,CAA+B,EAAA;AAC/B,QAAA,CAAA,CAAA,cAAA,EAAA;AACI,QAAA,qBAAA,CAAA,KAAW,CAAA;AACX,QAAA,IAAA,QAAA,EAAA,OAAA,EAAA,iBAAS,KAAA,iBAAA,CAAA,SAAA,EAAA;iCACF,EAAA;AACH,YAAA,WAAA,CAAA,IAAA,CAAA;AACH;AACJ,YAAA,eAAE,CAAA;yBACN;AACD,cAAA,OAAA,EAAA;2BACe,CAAA,OAAA;+BACkC,EAAA;AAC7C;AACI,aAAA,CAAA;AACA;iCACO,EAAA;AACH,YAAA,WAAA,CAAA,KAAA,CAAA;AACH;AACJ,YAAA,eAAE,CAAA;yBACN;qBACJ,EAAA;2BAAO,CAAA,OAAA;+BACiD,EAAA;AACrD;;;AAGA,SAAA,MAAA;;oBAEA,CAAC,OAAA,GAAA,EAAA,EAAA;uBACJ,CAAA,IAAA,CAAA;AAED;AACI,UAAA,IAAA,MAAA,CAAA,OAAA,GAAA,EAAA,EAAA;uBACH,CAAA,KAAA,CAAA;AACL;AAEA;AACA,QAAA,IAAA,MAAA,CAAO,WAAK,GAAA,MAAA,CAAA,OAAA,IAAA,QAAA,CAAA,IAAA,CAAA,YAAA,EAAA;A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string;
|
|
7
|
-
[key: string]: string;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
2
|
+
import { BottomMenuDropDownProps } from '../../typings';
|
|
10
3
|
declare const BottomMenuDropDown: React.FC<BottomMenuDropDownProps>;
|
|
11
4
|
export default BottomMenuDropDown;
|
|
12
5
|
//# sourceMappingURL=BottomMenuDropdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomMenuDropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/GlobalFooter/BottomMenuDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"BottomMenuDropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/GlobalFooter/BottomMenuDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAExD,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA2EzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomMenuDropdown.js","sources":["../../../../src/components/Layout/GlobalFooter/BottomMenuDropdown.tsx"],"sourcesContent":[null],"names":["_jsxs"],"mappings":"
|
|
1
|
+
{"version":3,"file":"BottomMenuDropdown.js","sources":["../../../../src/components/Layout/GlobalFooter/BottomMenuDropdown.tsx"],"sourcesContent":[null],"names":["_jsxs"],"mappings":"kOAMA,MAAM,kBAAkB,GAAsC,KAAC,IAAS;QAC9D;AACN,IAAA,KAAA;AACA,IAAA,SAAO;IACP;AAEA,GAAA,GAAA,KAAM;AACF,EAAA,MAAA,QAAwB,GAAA,WAAA,EAAA;AACpB,EAAA,MAAA,CAAA,MAAA,YAAe,GAAC,KAAO,CAAI,eAAY;mBAC1B,GAAA,KAAM,CAAA,MAAE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
|
5
|
-
layout?: any;
|
|
6
|
-
upperMenus: any;
|
|
7
|
-
routeParams: {
|
|
8
|
-
orgName?: string;
|
|
9
|
-
[key: string]: string;
|
|
10
|
-
};
|
|
11
|
-
formatMessage?: any;
|
|
12
|
-
collapsed?: boolean;
|
|
13
|
-
settings?: ProSettings;
|
|
14
|
-
toggleSideMenu?: any;
|
|
15
|
-
}
|
|
2
|
+
import { GlobalHeaderRightProps } from '../../typings';
|
|
16
3
|
export declare const GlobalHeader: React.FC<GlobalHeaderRightProps | any>;
|
|
17
4
|
export default GlobalHeader;
|
|
18
5
|
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/GlobalHeader/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/GlobalHeader/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAEvD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,GAAG,GAAG,CAwE/D,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -19,7 +19,7 @@ import {jsx,jsxs}from'react/jsx-runtime';import React__default from'react';impor
|
|
|
19
19
|
}), [settings]);
|
|
20
20
|
if (!settings?.regions?.showHeader) return null;
|
|
21
21
|
return jsx("header", {
|
|
22
|
-
className: "z-10 py-4
|
|
22
|
+
className: "z-10 py-4 dark:bg-gray-800",
|
|
23
23
|
style: headerStyles,
|
|
24
24
|
children: jsxs("div", {
|
|
25
25
|
className: "container flex items-center justify-end h-full px-6 mx-auto text-gray-700 dark:text-gray-200",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sources":["../../../../src/components/Layout/GlobalHeader/Header.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Header.js","sources":["../../../../src/components/Layout/GlobalHeader/Header.tsx"],"sourcesContent":[null],"names":[],"mappings":"kMAMa,MAAA,YAAY,GAA2C,KAAC,IAAS;AAC1E,EAAA,MAAA;AACA,IAAA,KAAA;IAEA,MAA0B;IAC1B,UAAM;AAGM,IAAA,WAAA;AACA,IAAA,SAAK;AACgB,IAAA,QACpB;AAGb,IAAA;AAAoC,GAAA,GAAA,KAAA;AACpC,EAAA,MAAA;AAyDJ,IAAE,QAAA;AAEF,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/GlobalHeader/Logo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AA4B3C,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAsJrC,CAAC"}
|