@admin-layout/tailwind-design-pro 10.0.9-alpha.6 → 10.0.9-alpha.61

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.
Files changed (255) hide show
  1. package/README.md +345 -1
  2. package/lib/cdm-locales/en/settings.json +21 -1
  3. package/lib/cdm-locales/es/settings.json +23 -3
  4. package/lib/components/Layout/BasicLayout/index.d.ts +1 -2
  5. package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
  6. package/lib/components/Layout/BasicLayout/index.js +102 -37
  7. package/lib/components/Layout/BasicLayout/index.js.map +1 -1
  8. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts +1 -8
  9. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
  10. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
  11. package/lib/components/Layout/GlobalHeader/Header.d.ts +2 -15
  12. package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
  13. package/lib/components/Layout/GlobalHeader/Header.js +44 -21
  14. package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
  15. package/lib/components/Layout/GlobalHeader/Logo.d.ts +4 -0
  16. package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +1 -0
  17. package/lib/components/Layout/GlobalHeader/Logo.js +141 -0
  18. package/lib/components/Layout/GlobalHeader/Logo.js.map +1 -0
  19. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +6 -0
  20. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -0
  21. package/lib/components/Layout/GlobalHeader/MainHeader.js +226 -0
  22. package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -0
  23. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts +1 -12
  24. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts.map +1 -1
  25. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
  26. package/lib/components/Layout/GlobalHeader/RightContent.d.ts +1 -13
  27. package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
  28. package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -1
  29. package/lib/components/Layout/GlobalHeader/RightMenu.d.ts +4 -0
  30. package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -0
  31. package/lib/components/Layout/GlobalHeader/RightMenu.js +290 -0
  32. package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -0
  33. package/lib/components/Layout/GlobalHeader/index.d.ts +4 -0
  34. package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -0
  35. package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
  36. package/lib/components/Layout/ProTailwindLayout.js +1 -2
  37. package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
  38. package/lib/components/Layout/Sidebar/Divider.d.ts +1 -31
  39. package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -1
  40. package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
  41. package/lib/components/Layout/Sidebar/DynamicIcon.d.ts +5 -0
  42. package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -0
  43. package/lib/components/Layout/Sidebar/DynamicIcon.js +51 -0
  44. package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -0
  45. package/lib/components/Layout/Sidebar/Sidebar.d.ts +1 -12
  46. package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +1 -1
  47. package/lib/components/Layout/Sidebar/Sidebar.js +107 -91
  48. package/lib/components/Layout/Sidebar/Sidebar.js.map +1 -1
  49. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +1 -1
  50. package/lib/components/Layout/Sidebar/SidebarMenu.js +110 -20
  51. package/lib/components/Layout/Sidebar/SidebarMenu.js.map +1 -1
  52. package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
  53. package/lib/components/Layout/TailwindLayout.js +29 -19
  54. package/lib/components/Layout/TailwindLayout.js.map +1 -1
  55. package/lib/components/Layout/getPageTitle.d.ts +1 -16
  56. package/lib/components/Layout/getPageTitle.d.ts.map +1 -1
  57. package/lib/components/Layout/getPageTitle.js +2 -2
  58. package/lib/components/Layout/getPageTitle.js.map +1 -1
  59. package/lib/components/Layout/slot-fill/Footer.d.ts +1 -1
  60. package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -1
  61. package/lib/components/Layout/slot-fill/Footer.js +6 -6
  62. package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
  63. package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts +3 -0
  64. package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts.map +1 -0
  65. package/lib/components/Layout/slot-fill/HeaderSearchBar.js +6 -0
  66. package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -0
  67. package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts +3 -0
  68. package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts.map +1 -0
  69. package/lib/components/Layout/slot-fill/HeaderSearchButton.js +6 -0
  70. package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -0
  71. package/lib/components/Layout/slot-fill/RightContent.d.ts +3 -0
  72. package/lib/components/Layout/slot-fill/RightContent.d.ts.map +1 -0
  73. package/lib/components/Layout/slot-fill/RightContent.js +6 -0
  74. package/lib/components/Layout/slot-fill/RightContent.js.map +1 -0
  75. package/lib/components/Layout/slot-fill/index.d.ts +3 -0
  76. package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
  77. package/lib/components/Layout/util.js +12 -0
  78. package/lib/components/Layout/util.js.map +1 -0
  79. package/lib/components/SettingDrawer/LayoutChange.d.ts +1 -1
  80. package/lib/components/SettingDrawer/LayoutChange.d.ts.map +1 -1
  81. package/lib/components/SettingDrawer/LayoutChange.js +75 -17
  82. package/lib/components/SettingDrawer/LayoutChange.js.map +1 -1
  83. package/lib/components/SettingDrawer/NavigationsModes.d.ts +1 -1
  84. package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +1 -1
  85. package/lib/components/SettingDrawer/NavigationsModes.js +18 -10
  86. package/lib/components/SettingDrawer/NavigationsModes.js.map +1 -1
  87. package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +1 -1
  88. package/lib/components/SettingDrawer/RegionalSettings.js +609 -32
  89. package/lib/components/SettingDrawer/RegionalSettings.js.map +1 -1
  90. package/lib/components/SettingDrawer/SettingDrawer.d.ts +1 -1
  91. package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
  92. package/lib/components/SettingDrawer/SettingDrawer.js +183 -38
  93. package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
  94. package/lib/components/SettingDrawer/WebFontsSelector.d.ts +3 -0
  95. package/lib/components/SettingDrawer/WebFontsSelector.d.ts.map +1 -0
  96. package/lib/components/SettingDrawer/WebFontsSelector.js +24 -0
  97. package/lib/components/SettingDrawer/WebFontsSelector.js.map +1 -0
  98. package/lib/components/SettingDrawer/types.d.ts +23 -2
  99. package/lib/components/SettingDrawer/types.d.ts.map +1 -1
  100. package/lib/components/ThemeProvider/ThemeProvider.d.ts +6 -16
  101. package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  102. package/lib/components/ThemeProvider/ThemeProvider.js +26 -29
  103. package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -1
  104. package/lib/components/ThemeProvider/ThemeToggle.js +50 -0
  105. package/lib/components/ThemeProvider/ThemeToggle.js.map +1 -0
  106. package/lib/components/ThemeProvider/index.d.ts +2 -5
  107. package/lib/components/ThemeProvider/index.d.ts.map +1 -1
  108. package/lib/components/ThemeProvider/themes/airbnb.d.ts +3 -0
  109. package/lib/components/ThemeProvider/themes/airbnb.d.ts.map +1 -0
  110. package/lib/components/ThemeProvider/themes/airbnb.js +186 -0
  111. package/lib/components/ThemeProvider/themes/airbnb.js.map +1 -0
  112. package/lib/components/ThemeProvider/themes/default.d.ts +3 -0
  113. package/lib/components/ThemeProvider/themes/default.d.ts.map +1 -0
  114. package/lib/components/ThemeProvider/themes/default.js +183 -0
  115. package/lib/components/ThemeProvider/themes/default.js.map +1 -0
  116. package/lib/components/ThemeProvider/themes/github.d.ts +3 -0
  117. package/lib/components/ThemeProvider/themes/github.d.ts.map +1 -0
  118. package/lib/components/ThemeProvider/themes/github.js +190 -0
  119. package/lib/components/ThemeProvider/themes/github.js.map +1 -0
  120. package/lib/components/ThemeProvider/themes/index.d.ts +15 -0
  121. package/lib/components/ThemeProvider/themes/index.d.ts.map +1 -0
  122. package/lib/components/ThemeProvider/themes/index.js +7 -0
  123. package/lib/components/ThemeProvider/themes/index.js.map +1 -0
  124. package/lib/components/ThemeProvider/themes/slack.d.ts +3 -0
  125. package/lib/components/ThemeProvider/themes/slack.d.ts.map +1 -0
  126. package/lib/components/ThemeProvider/themes/slack.js +188 -0
  127. package/lib/components/ThemeProvider/themes/slack.js.map +1 -0
  128. package/lib/components/ThemeProvider/themes/spotify.d.ts +3 -0
  129. package/lib/components/ThemeProvider/themes/spotify.d.ts.map +1 -0
  130. package/lib/components/ThemeProvider/themes/spotify.js +189 -0
  131. package/lib/components/ThemeProvider/themes/spotify.js.map +1 -0
  132. package/lib/components/ThemeProvider/types.d.ts +106 -106
  133. package/lib/components/ThemeProvider/types.d.ts.map +1 -1
  134. package/lib/components/UI/CategoriesTypeList.d.ts +29 -0
  135. package/lib/components/UI/CategoriesTypeList.d.ts.map +1 -0
  136. package/lib/components/UI/CategoriesTypeList.js +140 -0
  137. package/lib/components/UI/CategoriesTypeList.js.map +1 -0
  138. package/lib/components/UI/LazyLoadingGoogleMarker.d.ts +83 -0
  139. package/lib/components/UI/LazyLoadingGoogleMarker.d.ts.map +1 -0
  140. package/lib/components/UI/LazyLoadingGoogleMarker.js +107 -0
  141. package/lib/components/UI/LazyLoadingGoogleMarker.js.map +1 -0
  142. package/lib/components/UI/Pagination.d.ts +6 -0
  143. package/lib/components/UI/Pagination.d.ts.map +1 -0
  144. package/lib/components/UI/Pagination.js +59 -0
  145. package/lib/components/UI/Pagination.js.map +1 -0
  146. package/lib/components/UI/ParamSearchResultContainer.d.ts +90 -0
  147. package/lib/components/UI/ParamSearchResultContainer.d.ts.map +1 -0
  148. package/lib/components/UI/ParamSearchResultContainer.js +80 -0
  149. package/lib/components/UI/ParamSearchResultContainer.js.map +1 -0
  150. package/lib/components/UI/PropertyCard.d.ts +24 -0
  151. package/lib/components/UI/PropertyCard.d.ts.map +1 -0
  152. package/lib/components/UI/PropertyCard.js +377 -0
  153. package/lib/components/UI/PropertyCard.js.map +1 -0
  154. package/lib/components/UI/PropertyCardList.d.ts +93 -0
  155. package/lib/components/UI/PropertyCardList.d.ts.map +1 -0
  156. package/lib/components/UI/PropertyCardList.js +41 -0
  157. package/lib/components/UI/PropertyCardList.js.map +1 -0
  158. package/lib/components/UI/PropertyCardOnMap.d.ts +10 -0
  159. package/lib/components/UI/PropertyCardOnMap.d.ts.map +1 -0
  160. package/lib/components/UI/PropertyCardOnMap.js +108 -0
  161. package/lib/components/UI/PropertyCardOnMap.js.map +1 -0
  162. package/lib/components/UI/icons/LocationIcon.d.ts +7 -0
  163. package/lib/components/UI/icons/LocationIcon.d.ts.map +1 -0
  164. package/lib/components/UI/icons/LocationIcon.js +18 -0
  165. package/lib/components/UI/icons/LocationIcon.js.map +1 -0
  166. package/lib/components/UI/icons/index.d.ts +2 -0
  167. package/lib/components/UI/icons/index.d.ts.map +1 -0
  168. package/lib/components/UI/index.d.ts +8 -0
  169. package/lib/components/UI/index.d.ts.map +1 -0
  170. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +1 -1
  171. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
  172. package/lib/components/index.d.ts +4 -0
  173. package/lib/components/index.d.ts.map +1 -0
  174. package/lib/components/index.js +1 -0
  175. package/lib/components/index.js.map +1 -0
  176. package/lib/components/typings.d.ts +128 -51
  177. package/lib/components/typings.d.ts.map +1 -1
  178. package/lib/compute.d.ts.map +1 -1
  179. package/lib/compute.js +5 -4
  180. package/lib/compute.js.map +1 -1
  181. package/lib/config/constants.d.ts +7 -0
  182. package/lib/config/constants.d.ts.map +1 -0
  183. package/lib/config/constants.js +6 -0
  184. package/lib/config/constants.js.map +1 -0
  185. package/lib/config/env-config.d.ts +2 -0
  186. package/lib/config/env-config.d.ts.map +1 -1
  187. package/lib/config/env-config.js +15 -1
  188. package/lib/config/env-config.js.map +1 -1
  189. package/lib/helpers/DynamicIcon.d.ts +7 -4
  190. package/lib/helpers/DynamicIcon.d.ts.map +1 -1
  191. package/lib/helpers/DynamicIcon.js +51 -0
  192. package/lib/helpers/DynamicIcon.js.map +1 -0
  193. package/lib/hooks/index.d.ts +6 -0
  194. package/lib/hooks/index.d.ts.map +1 -0
  195. package/lib/hooks/use-get-current-lat-long.d.ts +18 -0
  196. package/lib/hooks/use-get-current-lat-long.d.ts.map +1 -0
  197. package/lib/hooks/use-get-current-lat-long.js +29 -0
  198. package/lib/hooks/use-get-current-lat-long.js.map +1 -0
  199. package/lib/hooks/useMediaQuery.d.ts +14 -0
  200. package/lib/hooks/useMediaQuery.d.ts.map +1 -0
  201. package/lib/hooks/useMediaQuery.js +49 -0
  202. package/lib/hooks/useMediaQuery.js.map +1 -0
  203. package/lib/hooks/useScrollThreshold.d.ts +12 -0
  204. package/lib/hooks/useScrollThreshold.d.ts.map +1 -0
  205. package/lib/hooks/useScrollThreshold.js +60 -0
  206. package/lib/hooks/useScrollThreshold.js.map +1 -0
  207. package/lib/hooks/useTailwindTheme.d.ts +34 -0
  208. package/lib/hooks/useTailwindTheme.d.ts.map +1 -0
  209. package/lib/hooks/useTailwindTheme.js +82 -0
  210. package/lib/hooks/useTailwindTheme.js.map +1 -0
  211. package/lib/hooks/useWindowSize.d.ts +6 -0
  212. package/lib/hooks/useWindowSize.d.ts.map +1 -0
  213. package/lib/hooks/useWindowSize.js +20 -0
  214. package/lib/hooks/useWindowSize.js.map +1 -0
  215. package/lib/icons.d.ts +2 -0
  216. package/lib/icons.d.ts.map +1 -1
  217. package/lib/icons.js +4 -2
  218. package/lib/icons.js.map +1 -1
  219. package/lib/index.d.ts +2 -0
  220. package/lib/index.d.ts.map +1 -1
  221. package/lib/index.js +1 -1
  222. package/lib/index.js.map +1 -1
  223. package/lib/machines/settingsMachine.d.ts +4 -1
  224. package/lib/machines/settingsMachine.d.ts.map +1 -1
  225. package/lib/machines/settingsMachine.js +173 -67
  226. package/lib/machines/settingsMachine.js.map +1 -1
  227. package/lib/machines/types.d.ts +117 -17
  228. package/lib/machines/types.d.ts.map +1 -1
  229. package/lib/machines/types.js +5 -0
  230. package/lib/machines/types.js.map +1 -0
  231. package/lib/module.d.ts +0 -1
  232. package/lib/module.d.ts.map +1 -1
  233. package/lib/module.js +12 -14
  234. package/lib/module.js.map +1 -1
  235. package/lib/tailwindConfig.d.ts +42 -0
  236. package/lib/tailwindConfig.d.ts.map +1 -0
  237. package/lib/tailwindConfig.js +23 -0
  238. package/lib/tailwindConfig.js.map +1 -0
  239. package/package.json +4 -4
  240. package/lib/components/Layout/GlobalFooter/Copyright.js +0 -8
  241. package/lib/components/Layout/GlobalFooter/Copyright.js.map +0 -1
  242. package/lib/components/Layout/GlobalFooter/Footer.js +0 -22
  243. package/lib/components/Layout/GlobalFooter/Footer.js.map +0 -1
  244. package/lib/components/ThemeProvider/themeRegistry.d.ts +0 -3
  245. package/lib/components/ThemeProvider/themeRegistry.d.ts.map +0 -1
  246. package/lib/components/ThemeProvider/themeRegistry.js +0 -388
  247. package/lib/components/ThemeProvider/themeRegistry.js.map +0 -1
  248. package/lib/components/ThemeProvider/themeUtils.d.ts +0 -26
  249. package/lib/components/ThemeProvider/themeUtils.d.ts.map +0 -1
  250. package/lib/components/ThemeProvider/themeUtils.js +0 -135
  251. package/lib/components/ThemeProvider/themeUtils.js.map +0 -1
  252. package/lib/components/defaultSettings.d.ts +0 -4
  253. package/lib/components/defaultSettings.d.ts.map +0 -1
  254. package/lib/components/defaultSettings.js +0 -14
  255. package/lib/components/defaultSettings.js.map +0 -1
package/README.md CHANGED
@@ -1 +1,345 @@
1
- # Tailwind UI
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
+ # Theme System Documentation
55
+
56
+ ## Overview
57
+
58
+ The theme system provides a flexible and powerful way to manage the visual appearance of your application. It supports multiple pre-built themes (default, Airbnb, Slack, GitHub, and Spotify) and includes dark mode functionality.
59
+
60
+ ## Available Themes
61
+
62
+ The system comes with several pre-built themes:
63
+
64
+ - `default`: A neutral theme with standard components
65
+ - `airbnb`: Inspired by Airbnb's design system
66
+ - `slack`: Based on Slack's color scheme and components
67
+ - `github`: Following GitHub's design patterns
68
+ - `spotify`: Matching Spotify's visual identity
69
+
70
+ ## Theme Structure
71
+
72
+ Each theme follows a consistent structure defined by the `DefaultTheme` interface:
73
+
74
+ ```typescript
75
+ interface DefaultTheme {
76
+ name: string;
77
+ colors: {
78
+ primary: ColorRamp;
79
+ secondary: ColorRamp;
80
+ accent: ColorRamp;
81
+ success: ColorRamp;
82
+ warning: ColorRamp;
83
+ error: ColorRamp;
84
+ neutral: ColorRamp;
85
+ background: {
86
+ light: string;
87
+ dark: string;
88
+ };
89
+ text: {
90
+ light: {
91
+ primary: string;
92
+ secondary: string;
93
+ tertiary: string;
94
+ };
95
+ dark: {
96
+ primary: string;
97
+ secondary: string;
98
+ tertiary: string;
99
+ };
100
+ };
101
+ };
102
+ borderRadius: {
103
+ sm: string;
104
+ DEFAULT: string;
105
+ md: string;
106
+ lg: string;
107
+ xl: string;
108
+ '2xl': string;
109
+ full: string;
110
+ };
111
+ fontFamily: {
112
+ sans: string[];
113
+ serif: string[];
114
+ mono: string[];
115
+ };
116
+ boxShadow: {
117
+ sm: string;
118
+ DEFAULT: string;
119
+ md: string;
120
+ lg: string;
121
+ xl: string;
122
+ };
123
+ components: {
124
+ buttons: {
125
+ primary: ButtonStyle;
126
+ secondary: ButtonStyle;
127
+ };
128
+ cards: {
129
+ borderRadius: string;
130
+ padding: string;
131
+ shadow: string;
132
+ border: string;
133
+ };
134
+ inputs: {
135
+ borderRadius: string;
136
+ borderColor: string;
137
+ focusBorderColor: string;
138
+ padding: string;
139
+ fontSize: string;
140
+ lineHeight: string;
141
+ };
142
+ };
143
+ }
144
+ ```
145
+
146
+ ## Setting Up the Theme Provider
147
+
148
+ To use the theme system, wrap your application with the `ThemeProviderTailwind` component:
149
+
150
+ ```tsx
151
+ import { ThemeProviderTailwind } from 'packages/tailwind-design-pro/src/components/ThemeProvider';
152
+
153
+ const App = () => {
154
+ const settings = {
155
+ theme: 'default', // or 'airbnb', 'slack', 'github', 'spotify'
156
+ themeType: 'light',
157
+ primaryColor: '#your-color',
158
+ fontFamily: 'your-font-family',
159
+ navTheme: 'light', // or 'dark'
160
+ };
161
+
162
+ return <ThemeProviderTailwind settings={settings}>{/* Your app components */}</ThemeProviderTailwind>;
163
+ };
164
+ ```
165
+
166
+ ## Using the useTheme Hook
167
+
168
+ The `useTheme` hook provides access to the current theme and theme-related functionality. Here's how to use it:
169
+
170
+ ```tsx
171
+ import { useTheme } from 'packages/tailwind-design-pro/src/components/ThemeProvider';
172
+
173
+ const YourComponent = () => {
174
+ const { themeName, theme, isDarkMode, toggleDarkMode } = useTheme();
175
+
176
+ return (
177
+ <div>
178
+ {/* Access theme colors */}
179
+ <div style={{ color: theme.colors.primary[500] }}>Primary Color</div>
180
+
181
+ {/* Use theme-specific styles */}
182
+ <button
183
+ style={{
184
+ borderRadius: theme.borderRadius.DEFAULT,
185
+ fontFamily: theme.fontFamily.sans.join(', '),
186
+ }}
187
+ >
188
+ Themed Button
189
+ </button>
190
+
191
+ {/* Toggle dark mode */}
192
+ <button onClick={toggleDarkMode}>Toggle {isDarkMode ? 'Light' : 'Dark'} Mode</button>
193
+ </div>
194
+ );
195
+ };
196
+ ```
197
+
198
+ ### Available Properties from useTheme
199
+
200
+ 1. `themeName`: The current theme name ('default', 'airbnb', 'slack', 'github', or 'spotify')
201
+ 2. `theme`: The complete theme object containing all styling properties
202
+ 3. `isDarkMode`: Boolean indicating if dark mode is active
203
+ 4. `toggleDarkMode`: Function to toggle between light and dark modes
204
+
205
+ ## Theme Features
206
+
207
+ ### 1. Dark Mode Support
208
+
209
+ - Automatically handles dark mode through the `isDarkMode` state
210
+ - Persists dark mode preference in localStorage
211
+ - Applies appropriate dark mode classes to the document
212
+
213
+ ### 2. Dynamic Theme Switching
214
+
215
+ - Themes can be changed dynamically through the settings prop
216
+ - All theme properties are immediately applied when changed
217
+
218
+ ### 3. Component-Specific Styling
219
+
220
+ Each theme includes specific styling for common components:
221
+
222
+ - Buttons (primary and secondary variants)
223
+ - Cards
224
+ - Input fields
225
+
226
+ ### 4. Color System
227
+
228
+ - Each theme includes a comprehensive color system with:
229
+ - Primary colors
230
+ - Secondary colors
231
+ - Accent colors
232
+ - Semantic colors (success, warning, error)
233
+ - Neutral colors
234
+ - Background colors
235
+ - Text colors
236
+
237
+ ### 5. Typography
238
+
239
+ - Customizable font families for different text styles
240
+ - Consistent typography settings across themes
241
+
242
+ ## Best Practices
243
+
244
+ 1. **Theme Access**
245
+
246
+ ```tsx
247
+ const { theme } = useTheme();
248
+ // Use theme properties directly
249
+ const primaryColor = theme.colors.primary[500];
250
+ ```
251
+
252
+ 2. **Dark Mode Handling**
253
+
254
+ ```tsx
255
+ const { isDarkMode, toggleDarkMode } = useTheme();
256
+ // Use isDarkMode to conditionally render styles
257
+ const backgroundColor = isDarkMode ? theme.colors.background.dark : theme.colors.background.light;
258
+ ```
259
+
260
+ 3. **Component Styling**
261
+
262
+ ```tsx
263
+ const { theme } = useTheme();
264
+ // Use theme component styles
265
+ const buttonStyle = {
266
+ ...theme.components.buttons.primary,
267
+ // Add custom styles as needed
268
+ };
269
+ ```
270
+
271
+ 4. **Responsive Design**
272
+ ```tsx
273
+ const { theme } = useTheme();
274
+ // Use theme's responsive values
275
+ const cardStyle = {
276
+ borderRadius: theme.borderRadius.md,
277
+ boxShadow: theme.boxShadow.DEFAULT,
278
+ };
279
+ ```
280
+
281
+ ## Theme Customization
282
+
283
+ ### Creating a Custom Theme
284
+
285
+ You can create your own theme by following the `DefaultTheme` interface structure:
286
+
287
+ ```typescript
288
+ const customTheme: DefaultTheme = {
289
+ name: 'custom',
290
+ colors: {
291
+ // Define your color palette
292
+ },
293
+ // Define other theme properties
294
+ };
295
+ ```
296
+
297
+ ### Extending Existing Themes
298
+
299
+ You can extend existing themes by importing them and modifying specific properties:
300
+
301
+ ```typescript
302
+ import { defaultTheme } from './themes/default';
303
+
304
+ const extendedTheme: DefaultTheme = {
305
+ ...defaultTheme,
306
+ name: 'extended',
307
+ colors: {
308
+ ...defaultTheme.colors,
309
+ primary: {
310
+ // Override primary colors
311
+ },
312
+ },
313
+ };
314
+ ```
315
+
316
+ ## Troubleshooting
317
+
318
+ ### Common Issues
319
+
320
+ 1. **Theme Not Applying**
321
+
322
+ - Ensure the `ThemeProviderTailwind` is properly wrapped around your application
323
+ - Check if the theme name matches one of the available themes
324
+ - Verify that the settings prop is correctly configured
325
+
326
+ 2. **Dark Mode Not Working**
327
+
328
+ - Check if `navTheme` is properly set in the settings
329
+ - Verify that the dark mode classes are being applied to the document
330
+ - Ensure localStorage is accessible in your environment
331
+
332
+ 3. **Custom Styles Not Taking Effect**
333
+ - Verify that your custom theme follows the `DefaultTheme` interface
334
+ - Check if the theme is properly registered in the themes object
335
+ - Ensure the theme name is correctly referenced in the settings
336
+
337
+ ## Contributing
338
+
339
+ When contributing to the theme system:
340
+
341
+ 1. Follow the existing theme structure
342
+ 2. Maintain consistency with other themes
343
+ 3. Include both light and dark mode variants
344
+ 4. Document any new theme properties or features
345
+ 5. Test the theme across different components and scenarios
@@ -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,23 @@
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",
24
+ "menu_divider_names": "Menu Divider Names",
25
+ "upper_menu_divider": "Upper Menu Divider",
26
+ "middle_menu_divider": "Middle Menu Divider",
27
+ "lower_menu_divider": "Lower Menu Divider",
28
+ "header_elements": "Header Elements",
29
+ "show_logo": "Show Logo",
30
+ "show_search_slot": "Show Search Slot",
31
+ "show_right_content": "Show Right Content",
32
+ "desktop_settings": "Desktop Settings",
33
+ "mobile_settings": "Mobile Settings",
34
+ "show_menu_toggle": "Show Menu Toggle",
35
+ "show_back_button": "Show Back Button",
36
+ "show_page_title": "Show Page Title",
37
+ "show_action_buttons": "Show Action Buttons",
38
+ "show_header": "Show Header"
19
39
  }
@@ -5,15 +5,35 @@
5
5
  "header": "Encabezado",
6
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",
11
- "page_style_settings": "Configuraciones de Estilo de Página",
13
+ "page_style_settings": "Configuración de Estilo de Página",
12
14
  "theme_color": "Color del Tema",
13
15
  "navigation_mode": "Modo de Navegación",
14
- "regional_rettings": "Configuraciones Regionales",
16
+ "regional_rettings": "Configuración Regional",
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
+ "font_family": "Familia de Fuente",
22
+ "select_theme": "Seleccionar Tema",
23
+ "scroll_threshold": "Umbral de Desplazamiento de la Barra de Búsqueda",
24
+ "menu_divider_names": "Nombres de Divisores de Menú",
25
+ "upper_menu_divider": "Divisor Superior del Menú",
26
+ "middle_menu_divider": "Divisor Medio del Menú",
27
+ "lower_menu_divider": "Divisor Inferior del Menú",
28
+ "header_elements": "Elementos del Encabezado",
29
+ "show_logo": "Mostrar Logo",
30
+ "show_search_slot": "Mostrar Espacio de Búsqueda",
31
+ "show_right_content": "Mostrar Contenido Derecho",
32
+ "desktop_settings": "Configuración de Escritorio",
33
+ "mobile_settings": "Configuración Móvil",
34
+ "show_menu_toggle": "Mostrar Alternador de Menú",
35
+ "show_back_button": "Mostrar Botón de Atrás",
36
+ "show_page_title": "Mostrar Título de Página",
37
+ "show_action_buttons": "Mostrar Botones de Acción",
38
+ "show_header": "Mostrar Encabezado"
19
39
  }
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import { BasicLayoutProps, GlobalHeaderProps } from '@admin-layout/client';
3
- export declare const useHorizontalScroll: ({ scrolled, setScrolled, setSearchOptionsShown, onScrollReachEnd }: {
4
- scrolled: any;
3
+ export declare const useHorizontalScroll: ({ setScrolled, setSearchOptionsShown, onScrollReachEnd }: {
5
4
  setScrolled: any;
6
5
  setSearchOptionsShown: any;
7
6
  onScrollReachEnd: 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,EAGpB,MAAM,sBAAsB,CAAC;AAM9B,eAAO,MAAM,mBAAmB;;;;;uCA6B/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,CAqI3F,CAAC"}
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;;;;uCA4B/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,CA0N3F,CAAC"}
@@ -1,5 +1,4 @@
1
- import {jsx,jsxs}from'react/jsx-runtime';import {useState,useRef,useEffect}from'react';import {Sidebar}from'../Sidebar/Sidebar.js';import {GlobalHeader}from'../GlobalHeader/Header.js';import {useLocation,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 {GlobalFooter}from'../GlobalFooter/Footer.js';import {ThemeProvider}from'../../ThemeProvider/ThemeProvider.js';const useHorizontalScroll = ({
2
- scrolled,
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 {useScrollThreshold}from'../../../hooks/useScrollThreshold.js';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import'../../../hooks/use-get-current-lat-long.js';import {useMediaQuery}from'../../../hooks/useMediaQuery.js';const useHorizontalScroll = ({
3
2
  setScrolled,
4
3
  setSearchOptionsShown,
5
4
  onScrollReachEnd
@@ -64,17 +63,13 @@ const BasicLayout = props => {
64
63
  const {
65
64
  children,
66
65
  onCollapse: propsOnCollapse,
67
- // contentStyle,
68
66
  defaultCollapsed,
69
67
  menuData,
70
- // style,
71
- // disableContentMargin,
72
68
  siderWidth = 208,
73
69
  menu,
74
- // isChildrenLayout: propsIsChildrenLayout,
75
70
  menuDataRender,
76
71
  loading,
77
- // location,
72
+ location,
78
73
  routeParams,
79
74
  settings,
80
75
  authorities,
@@ -84,15 +79,32 @@ const BasicLayout = props => {
84
79
  actor
85
80
  } = propsWithSettings;
86
81
  const [isSideMenuOpen, setIsSideMenuOpen] = useState(false);
87
- useState(false);
88
- const location = useLocation();
89
82
  const [scrollEnd, setScrollEnd] = useState(false);
90
83
  const [searchOptionsShown, setSearchOptionsShown] = useState(false);
84
+ const {
85
+ picture
86
+ } = mainHeaderProps;
87
+ const {
88
+ LAYOUT_ROOT
89
+ } = config;
90
+ const {
91
+ theme,
92
+ isDarkMode
93
+ } = useTheme();
94
+ const {
95
+ isMobile
96
+ } = useMediaQuery();
97
+ // Get current route settings with proper fallback
98
+ const currentRoute = location?.pathname || '/';
99
+ const routeSettings = settings?.routeSettings?.[currentRoute] || settings?.routeSettings?.['/'] || settings;
100
+ // Get device-specific settings
101
+ const deviceType = isMobile ? 'mobile' : 'desktop';
102
+ const deviceSettings = routeSettings?.regions?.[deviceType] || {};
103
+ const layoutSettings = routeSettings?.layout?.[deviceType] || {};
91
104
  const onScrollReachEnd = () => {
92
105
  setScrollEnd(prevScrollEnd => !prevScrollEnd);
93
106
  };
94
- useHorizontalScroll({
95
- scrolled,
107
+ const horizontalScrollRef = useHorizontalScroll({
96
108
  setScrolled,
97
109
  setSearchOptionsShown,
98
110
  onScrollReachEnd
@@ -100,13 +112,20 @@ const BasicLayout = props => {
100
112
  const defaultProps = omit({
101
113
  ...propsWithSettings
102
114
  }, ['layout']);
103
- defaultPageTitleRender({
115
+ const pageTitleInfo = defaultPageTitleRender({
104
116
  pathname: location?.pathname,
105
117
  ...defaultProps
106
118
  }, propsWithSettings);
107
119
  const settingRef = useRef(settings);
120
+ const scrollThreshold = deviceSettings?.header?.scrollThreshold || 50;
121
+ const {
122
+ componentVisibility
123
+ } = useScrollThreshold([{
124
+ threshold: scrollThreshold,
125
+ id: 'search-bar',
126
+ useWindowScroll: true
127
+ }]);
108
128
  useEffect(() => {
109
- // Only update if the primaryColor actually needs to change
110
129
  if (settingRef.current?.primaryColor === '#3FA541C' && primaryColor !== '#3FA541C') {
111
130
  const newState = {
112
131
  ...settingRef.current,
@@ -115,6 +134,15 @@ const BasicLayout = props => {
115
134
  onSettingChange(newState);
116
135
  }
117
136
  }, [primaryColor, isBrowser, settingRef]);
137
+ // Update settings when route changes
138
+ useEffect(() => {
139
+ if (actor && location?.pathname) {
140
+ actor.send({
141
+ type: 'ROUTE_CHANGE',
142
+ pathname: location?.pathname
143
+ });
144
+ }
145
+ }, [location?.pathname, actor]);
118
146
  const {
119
147
  ref: refHeader,
120
148
  height: heightHeader
@@ -139,11 +167,35 @@ const BasicLayout = props => {
139
167
  const closeSideMenu = () => {
140
168
  setIsSideMenuOpen(false);
141
169
  };
142
- return jsx(ThemeProvider, {
143
- settings: settings,
144
- children: jsxs("div", {
145
- className: "flex h-screen bg-background font-sans",
146
- children: [settings?.layout.navigationMode !== 'topbar' && settings?.regions.showMenu && !settings?.layout.splitMenus && jsx(Sidebar, {
170
+ const backgroundColor = isDarkMode ? theme.colors.background.dark : theme.colors.background.light;
171
+ return jsxs("div", {
172
+ className: "flex flex-col h-screen bg-background font-sans",
173
+ ref: horizontalScrollRef,
174
+ style: {
175
+ backgroundColor: backgroundColor
176
+ },
177
+ children: [deviceSettings?.header?.showHeader && LAYOUT_ROOT != '/' && jsx(GlobalHeader, {
178
+ toggleSideMenu: toggleSideMenu,
179
+ settings: settings,
180
+ upperMenus: getMenuSeparation(menuData).upperMenus,
181
+ routeParams: routeParams,
182
+ collapsed: collapsed,
183
+ ...props
184
+ }), LAYOUT_ROOT === '/' && deviceSettings?.header?.showHeader && jsx(MainHeader, {
185
+ scrolled: scrolled,
186
+ location: location,
187
+ menuData: menuData,
188
+ settings: settings,
189
+ pageTitleInfo: pageTitleInfo,
190
+ onSettingChange: onSettingChange,
191
+ searchOptionsShown: searchOptionsShown,
192
+ setSearchOptionsShown: setSearchOptionsShown,
193
+ authorities: authorities,
194
+ picture: picture,
195
+ componentVisibility: componentVisibility
196
+ }), jsxs("div", {
197
+ className: "flex flex-1 relative",
198
+ children: [layoutSettings?.navigationMode !== 'topbar' && deviceSettings?.header?.showMenu && LAYOUT_ROOT != '/' && jsx(Sidebar, {
147
199
  isSideMenuOpen: isSideMenuOpen,
148
200
  closeSideMenu: closeSideMenu,
149
201
  menuData: menuData,
@@ -152,30 +204,43 @@ const BasicLayout = props => {
152
204
  routeParams: routeParams,
153
205
  settings: settings
154
206
  }), jsxs("div", {
155
- className: "flex flex-col flex-1 w-full",
156
- children: [settings?.regions.showHeader && jsx(GlobalHeader, {
157
- toggleSideMenu: toggleSideMenu,
158
- settings: settings,
159
- upperMenus: getMenuSeparation(menuData).upperMenus,
160
- routeParams: routeParams,
161
- collapsed: collapsed
162
- }), jsx(SettingDrawer, {
207
+ className: "flex flex-col flex-1 overflow-auto",
208
+ style: {
209
+ marginLeft: layoutSettings?.navigationMode !== 'topbar' && deviceSettings?.header?.showMenu && layoutSettings?.fixedSidebar && !isMobile && LAYOUT_ROOT != '/' ? collapsed ? '64px' : '256px' : '0px'
210
+ },
211
+ children: [jsx(SettingDrawer, {
163
212
  primaryColor: primaryColor,
164
213
  settings: settings,
165
- onSettingChange: onSettingChange,
214
+ onSettingChange: newSettings => {
215
+ if (actor) {
216
+ actor.send({
217
+ type: 'UPDATE',
218
+ value: newSettings
219
+ });
220
+ }
221
+ onSettingChange?.(newSettings);
222
+ },
166
223
  actor: actor,
167
- colorList: getThemeColors(settings?.theme)
168
- }), jsx("main", {
169
- className: "h-full overflow-y-auto bg-background text-foreground",
170
- children: jsx("div", {
171
- className: "container px-6 mx-auto grid",
172
- children: jsx(Outlet, {})
224
+ colorList: getThemeColors(settings?.theme),
225
+ ...props
226
+ }), jsxs("main", {
227
+ className: "relative",
228
+ children: [searchOptionsShown && deviceSettings?.header?.searchBarOverlay && jsx("div", {
229
+ className: "fixed inset-0 bg-black bg-opacity-50 z-30 cursor-pointer",
230
+ onClick: e => {
231
+ e.stopPropagation();
232
+ setSearchOptionsShown(false);
233
+ }
234
+ }), jsx(Outlet, {})]
235
+ }), jsx("div", {
236
+ ref: refFooter,
237
+ className: footerFixed ? 'fixed bottom-0 w-full' : '',
238
+ children: jsx(FooterSlot, {
239
+ settings: settings,
240
+ active: deviceSettings?.footer?.showFooter
173
241
  })
174
- }), jsx(GlobalFooter, {
175
- settings: settings,
176
- active: settings?.regions?.showFooter
177
242
  })]
178
243
  })]
179
- })
244
+ })]
180
245
  });
181
246
  };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":"2qBAoBO,MAAM,mBAAmB,GAAG,CAAC;AAChC,EAAA,QAAM;aAEG;AACL,EAAA,qBAAW;;AAEP,CAAA,KAAA;AACI,EAAA,MAAA,KAAA,GAAA,MAAM,EAAM;;oBACI,CAAA,OAAA,IAAA,IAAG;;AAEnB,MAAA,MAAA,OAAA,QAAW;oBACP,IAAW,CAAA,EAAA;wBACd,EAAA;AACD,QAAA,qBAAW,CAAA,KAAU,CAAA;0BACN,GAAA,EAAA,EAAM;qBACpB,CAAA,IAAA,CAAA;AACD;AACI,QAAA,IAAA,MAAA,CAAA,OAAA,GAAA,EAAA,EAAA;qBACH,CAAA,KAAA,CAAA;AACL;AAEA,QAAA,IAAA,MAAM,CAAC,WAAgB,GAAA,cAAW,IAAA,QAAS,CAAA,IAAA,CAAA,YAAA,EAAA;AAC3C,UAAA,gBAAY,EAAA;AACR;AACJ,OAAA;YACH,CAAA,gBAAA,CAAA,QAAA,EAAA,OAAA,CAA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MAAA,CAAA,QAAA,CAAA;QACD,gCAA0B,EAAA,MAAc,EAAC,eAAA,IAAA,EAAA;QAEvC;AACF,IAAA;AACJ,GAAA,GAAE,kBAAA,CAAA,CAAA;IAEF,SAAM,EAAA,eAAqB;QACvB,YAAiB;AACrB,IAAA,eAAE,EAAA;IAEF,CAAM;AAEN,EAAA,SAAO,CACH,MAAA;0BAoC0B,EAAA,YAAE,KAAM,UAAU,IAAA,YAAA,KAAA,UAAA,EAAA;AAChC,MAAA,MAAA,QAAA,GAAA;AAgBI,QAAA,GAAA,UAAA,CAAA,OAAA;;AAGI,OAAA;AACA,MAAA,eAAA,CAAA,QAAA,CAAA;AACA;AACI,GAAA,EAAA,CAAA,YAAA,EAAA,SAAA,EAAA,UAAW,CAAA,CAAA;AACP;AACA,EAAA,SAAA,CAAA,MAAA;AACJ,IAAA,IAAA,KAAA,IAAA,QAAA,EAAA,QAAO,EAAA;AAClB,MAAA,KAAA,CAAA,IAAA,CAAA;;;AAQe,OAAA,CAAA;AACA;AACH,GAAA,EAAA,CAAA,QAAA,EAAA,QAAA,EAAA,KAAA,CAAA,CAAA;;AAEL,IAAA,GAAA,EAAA,SAAA;AACJ,IAAA,MAAA,EAAA;;;;AAwBxB,IAAE,MAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,12 +1,5 @@
1
1
  import * as React from 'react';
2
- export interface BottomMenuDropDownProps {
3
- menus: any;
4
- collapsed: boolean;
5
- routeParams: {
6
- orgName?: 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