@admin-layout/tailwind-design-pro 10.1.1-alpha.9 → 11.2.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +376 -250
- package/lib/cdm-locales/en/menu.json +2 -1
- package/lib/cdm-locales/en/settings.json +6 -1
- package/lib/cdm-locales/es/menu.json +2 -1
- package/lib/cdm-locales/es/settings.json +6 -1
- package/lib/cdm-locales/index.d.ts +2 -0
- package/lib/cdm-locales/index.d.ts.map +1 -0
- package/lib/cdm-locales/index.ts +1 -0
- package/lib/components/LanguageMenu/LanguageMenu.d.ts +2 -1
- package/lib/components/LanguageMenu/LanguageMenu.d.ts.map +1 -1
- package/lib/components/LanguageMenu/LanguageMenu.js +40 -61
- package/lib/components/LanguageMenu/LanguageMenu.js.map +1 -1
- package/lib/components/Layout/BasicLayout/index.d.ts +6 -5
- package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/index.js +255 -175
- package/lib/components/Layout/BasicLayout/index.js.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.d.ts +4 -2
- package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.js +80 -109
- package/lib/components/Layout/BasicLayout/utils.js.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js +28 -38
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalFooter/Copyright.d.ts +2 -1
- package/lib/components/Layout/GlobalFooter/Copyright.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/Footer.d.ts +2 -1
- package/lib/components/Layout/GlobalFooter/Footer.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.d.ts +0 -1
- package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.js +82 -66
- package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +0 -2
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.js +119 -162
- package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js +26 -30
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts +1 -0
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.js +82 -19
- package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightMenu.js +116 -158
- package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/SearchBar.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/SearchBar.js +36 -45
- package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/index.d.ts +0 -1
- package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.d.ts +2 -2
- package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.js +70 -9
- package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
- package/lib/components/Layout/Sidebar/BottomMenu.d.ts +4 -0
- package/lib/components/Layout/Sidebar/BottomMenu.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/BottomMenu.js +294 -0
- package/lib/components/Layout/Sidebar/BottomMenu.js.map +1 -0
- package/lib/components/Layout/Sidebar/Divider.d.ts +2 -1
- package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/Divider.js +26 -28
- package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.js +10 -11
- package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -1
- package/lib/components/Layout/Sidebar/MainSidebar.d.ts +5 -0
- package/lib/components/Layout/Sidebar/MainSidebar.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/MainSidebar.js +224 -0
- package/lib/components/Layout/Sidebar/MainSidebar.js.map +1 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts +6 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.js +451 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.js.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts +4 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.js +254 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.js.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts +4 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js +318 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js.map +1 -0
- package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/TailwindLayout.js +37 -20
- package/lib/components/Layout/TailwindLayout.js.map +1 -1
- package/lib/components/Layout/getPageTitle.js.map +1 -1
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts +3 -2
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/AdditionalSettings.js +2 -2
- package/lib/components/Layout/slot-fill/AdditionalSettings.js.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.d.ts +3 -2
- package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.js +2 -2
- package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderNotice.d.ts +3 -2
- package/lib/components/Layout/slot-fill/HeaderNotice.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderNotice.js +7 -0
- package/lib/components/Layout/slot-fill/HeaderNotice.js.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts +2 -1
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js +2 -2
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts +2 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js +2 -2
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -1
- package/lib/components/Layout/slot-fill/Logo.d.ts +5 -0
- package/lib/components/Layout/slot-fill/Logo.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/Logo.js +7 -0
- package/lib/components/Layout/slot-fill/Logo.js.map +1 -0
- package/lib/components/Layout/slot-fill/RightContent.d.ts +2 -1
- package/lib/components/Layout/slot-fill/RightContent.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/RightContent.js +2 -2
- package/lib/components/Layout/slot-fill/RightContent.js.map +1 -1
- package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts +5 -0
- package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/SideMenuLogo.js +7 -0
- package/lib/components/Layout/slot-fill/SideMenuLogo.js.map +1 -0
- package/lib/components/Layout/slot-fill/index.d.ts +2 -0
- package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
- package/lib/components/Layout/util.js +1 -1
- package/lib/components/Layout/util.js.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.d.ts +2 -2
- package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.js +190 -499
- package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts +8 -0
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js +21 -0
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js.map +1 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts +4 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.js +119 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.js.map +1 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.d.ts +8 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.js +74 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.js.map +1 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.d.ts +4 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.js +72 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.js.map +1 -0
- package/lib/components/SettingDrawer/components/LayoutChange.d.ts +4 -0
- package/lib/components/SettingDrawer/components/LayoutChange.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/LayoutChange.js +111 -0
- package/lib/components/SettingDrawer/components/LayoutChange.js.map +1 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts +21 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js +106 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js.map +1 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.d.ts +4 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.js +322 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.js.map +1 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.d.ts +4 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.js +519 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.js.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsActions.d.ts +13 -0
- package/lib/components/SettingDrawer/components/SettingsActions.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsActions.js +42 -0
- package/lib/components/SettingDrawer/components/SettingsActions.js.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts +5 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js +22 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js.map +1 -0
- package/lib/components/SettingDrawer/components/Switch.d.ts +4 -0
- package/lib/components/SettingDrawer/components/Switch.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/Switch.js +20 -0
- package/lib/components/SettingDrawer/components/Switch.js.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeColor.d.ts +4 -0
- package/lib/components/SettingDrawer/components/ThemeColor.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeColor.js +45 -0
- package/lib/components/SettingDrawer/components/ThemeColor.js.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.d.ts +4 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.js +16 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.js.map +1 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts +4 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.js +22 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.js.map +1 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts +18 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts.map +1 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.js +115 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.js.map +1 -0
- package/lib/components/SettingDrawer/utils/constants.d.ts +11 -0
- package/lib/components/SettingDrawer/utils/constants.d.ts.map +1 -0
- package/lib/components/SettingDrawer/utils/constants.js +77 -0
- package/lib/components/SettingDrawer/utils/constants.js.map +1 -0
- package/lib/components/SettingDrawer/utils/helper.d.ts +37 -0
- package/lib/components/SettingDrawer/utils/helper.d.ts.map +1 -0
- package/lib/components/SettingDrawer/utils/helper.js +154 -0
- package/lib/components/SettingDrawer/utils/helper.js.map +1 -0
- package/lib/components/SettingDrawer/utils/transformers.d.ts +15 -0
- package/lib/components/SettingDrawer/utils/transformers.d.ts.map +1 -0
- package/lib/components/SettingDrawer/utils/transformers.js +73 -0
- package/lib/components/SettingDrawer/utils/transformers.js.map +1 -0
- package/lib/components/SettingDrawer/{types.d.ts → utils/types.d.ts} +14 -0
- package/lib/components/SettingDrawer/utils/types.d.ts.map +1 -0
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +13 -4
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js +97 -4
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js.map +1 -1
- package/lib/components/index.d.ts +0 -2
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/typings.d.ts +20 -6
- package/lib/components/typings.d.ts.map +1 -1
- package/lib/compute.d.ts.map +1 -1
- package/lib/compute.js +10 -2
- package/lib/compute.js.map +1 -1
- package/lib/config/analytics-config.d.ts +59 -0
- package/lib/config/analytics-config.d.ts.map +1 -0
- package/lib/config/constants.js.map +1 -1
- package/lib/config/env-config.d.ts +6 -0
- package/lib/config/env-config.d.ts.map +1 -1
- package/lib/config/env-config.js +21 -1
- package/lib/config/env-config.js.map +1 -1
- package/lib/config/index.d.ts +3 -0
- package/lib/config/index.d.ts.map +1 -0
- package/lib/helpers/DynamicIcon.d.ts +1 -1
- package/lib/helpers/DynamicIcon.d.ts.map +1 -1
- package/lib/helpers/DynamicIcon.js +16 -17
- package/lib/helpers/DynamicIcon.js.map +1 -1
- package/lib/hooks/index.d.ts +0 -3
- package/lib/hooks/index.d.ts.map +1 -1
- package/lib/hooks/useMediaQuery.js.map +1 -1
- package/lib/hooks/useScrollThreshold.js.map +1 -1
- package/lib/hooks/useTailwindTheme.js.map +1 -1
- package/lib/icons.d.ts +2 -0
- package/lib/icons.d.ts.map +1 -1
- package/lib/icons.js +4 -2
- package/lib/icons.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/machines/selectors.d.ts +118 -0
- package/lib/machines/selectors.d.ts.map +1 -0
- package/lib/machines/settingsMachine.d.ts +25 -2
- package/lib/machines/settingsMachine.d.ts.map +1 -1
- package/lib/machines/settingsMachine.js +133 -168
- package/lib/machines/settingsMachine.js.map +1 -1
- package/lib/machines/types.d.ts +107 -9
- package/lib/machines/types.d.ts.map +1 -1
- package/lib/machines/types.js.map +1 -1
- package/lib/module.js.map +1 -1
- package/lib/redux/searchReducer.d.ts +1 -1
- package/lib/redux/searchReducer.d.ts.map +1 -1
- package/lib/redux/searchReducer.js.map +1 -1
- package/lib/routes.json +9 -1
- package/lib/styles/index.css +602 -372
- package/lib/tailwindConfig.d.ts +85 -27
- package/lib/tailwindConfig.d.ts.map +1 -1
- package/lib/tailwindConfig.js +96 -18
- package/lib/tailwindConfig.js.map +1 -1
- package/lib/utils/__tests__/analytics-utils.test.d.ts +2 -0
- package/lib/utils/__tests__/analytics-utils.test.d.ts.map +1 -0
- package/lib/utils/__tests__/configOverrides.test.d.ts +2 -0
- package/lib/utils/__tests__/configOverrides.test.d.ts.map +1 -0
- package/lib/utils/__tests__/menu.test.d.ts +2 -0
- package/lib/utils/__tests__/menu.test.d.ts.map +1 -0
- package/lib/utils/__tests__/selectors.test.d.ts +2 -0
- package/lib/utils/__tests__/selectors.test.d.ts.map +1 -0
- package/lib/utils/__tests__/settingsMachine.test.d.ts +2 -0
- package/lib/utils/__tests__/settingsMachine.test.d.ts.map +1 -0
- package/lib/utils/__tests__/settingsUtils.test.d.ts +2 -0
- package/lib/utils/__tests__/settingsUtils.test.d.ts.map +1 -0
- package/lib/utils/analytics-utils.d.ts +43 -0
- package/lib/utils/analytics-utils.d.ts.map +1 -0
- package/lib/utils/analytics.d.ts +48 -0
- package/lib/utils/analytics.d.ts.map +1 -0
- package/lib/utils/configOverrides.d.ts +213 -0
- package/lib/utils/configOverrides.d.ts.map +1 -0
- package/lib/utils/configOverrides.js +91 -0
- package/lib/utils/configOverrides.js.map +1 -0
- package/lib/utils/isBrowser/index.js.map +1 -1
- package/lib/utils/settingsUtils.d.ts +20 -0
- package/lib/utils/settingsUtils.d.ts.map +1 -0
- package/lib/utils/settingsUtils.js +74 -0
- package/lib/utils/settingsUtils.js.map +1 -0
- package/lib/utils/utils/index.js.map +1 -1
- package/package.json +7 -15
- package/lib/components/Layout/GlobalHeader/Logo.d.ts +0 -4
- package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +0 -1
- package/lib/components/Layout/GlobalHeader/Logo.js +0 -141
- package/lib/components/Layout/GlobalHeader/Logo.js.map +0 -1
- package/lib/components/Layout/Sidebar/Sidebar.d.ts +0 -5
- package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +0 -1
- package/lib/components/Layout/Sidebar/Sidebar.js +0 -186
- package/lib/components/Layout/Sidebar/Sidebar.js.map +0 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts +0 -4
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +0 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.js +0 -183
- package/lib/components/Layout/Sidebar/SidebarMenu.js.map +0 -1
- package/lib/components/SettingDrawer/CheckBoxTheme.d.ts +0 -3
- package/lib/components/SettingDrawer/CheckBoxTheme.d.ts.map +0 -1
- package/lib/components/SettingDrawer/CheckBoxTheme.js +0 -123
- package/lib/components/SettingDrawer/CheckBoxTheme.js.map +0 -1
- package/lib/components/SettingDrawer/LayoutChange.d.ts +0 -3
- package/lib/components/SettingDrawer/LayoutChange.d.ts.map +0 -1
- package/lib/components/SettingDrawer/LayoutChange.js +0 -123
- package/lib/components/SettingDrawer/LayoutChange.js.map +0 -1
- package/lib/components/SettingDrawer/NavigationsModes.d.ts +0 -3
- package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +0 -1
- package/lib/components/SettingDrawer/NavigationsModes.js +0 -289
- package/lib/components/SettingDrawer/NavigationsModes.js.map +0 -1
- package/lib/components/SettingDrawer/RegionalSettings.d.ts +0 -3
- package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +0 -1
- package/lib/components/SettingDrawer/RegionalSettings.js +0 -740
- package/lib/components/SettingDrawer/RegionalSettings.js.map +0 -1
- package/lib/components/SettingDrawer/Switch/index.d.ts +0 -3
- package/lib/components/SettingDrawer/Switch/index.d.ts.map +0 -1
- package/lib/components/SettingDrawer/Switch/index.js +0 -22
- package/lib/components/SettingDrawer/Switch/index.js.map +0 -1
- package/lib/components/SettingDrawer/ThemeColor.d.ts +0 -3
- package/lib/components/SettingDrawer/ThemeColor.d.ts.map +0 -1
- package/lib/components/SettingDrawer/ThemeColor.js +0 -35
- package/lib/components/SettingDrawer/ThemeColor.js.map +0 -1
- package/lib/components/SettingDrawer/ThemeSelector.d.ts +0 -3
- package/lib/components/SettingDrawer/ThemeSelector.d.ts.map +0 -1
- package/lib/components/SettingDrawer/ThemeSelector.js +0 -18
- package/lib/components/SettingDrawer/ThemeSelector.js.map +0 -1
- package/lib/components/SettingDrawer/WebFontsSelector.d.ts +0 -3
- package/lib/components/SettingDrawer/WebFontsSelector.d.ts.map +0 -1
- package/lib/components/SettingDrawer/WebFontsSelector.js +0 -24
- package/lib/components/SettingDrawer/WebFontsSelector.js.map +0 -1
- package/lib/components/SettingDrawer/types.d.ts.map +0 -1
- package/lib/components/ThemeProvider/ThemeProvider.d.ts +0 -8
- package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +0 -1
- package/lib/components/ThemeProvider/ThemeProvider.js +0 -60
- package/lib/components/ThemeProvider/ThemeProvider.js.map +0 -1
- package/lib/components/ThemeProvider/ThemeToggle.d.ts +0 -7
- package/lib/components/ThemeProvider/ThemeToggle.d.ts.map +0 -1
- package/lib/components/ThemeProvider/ThemeToggle.js +0 -50
- package/lib/components/ThemeProvider/ThemeToggle.js.map +0 -1
- package/lib/components/ThemeProvider/index.d.ts +0 -4
- package/lib/components/ThemeProvider/index.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/airbnb.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/airbnb.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/airbnb.js +0 -186
- package/lib/components/ThemeProvider/themes/airbnb.js.map +0 -1
- package/lib/components/ThemeProvider/themes/default.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/default.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/default.js +0 -183
- package/lib/components/ThemeProvider/themes/default.js.map +0 -1
- package/lib/components/ThemeProvider/themes/github.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/github.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/github.js +0 -190
- package/lib/components/ThemeProvider/themes/github.js.map +0 -1
- package/lib/components/ThemeProvider/themes/index.d.ts +0 -15
- package/lib/components/ThemeProvider/themes/index.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/index.js +0 -7
- package/lib/components/ThemeProvider/themes/index.js.map +0 -1
- package/lib/components/ThemeProvider/themes/slack.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/slack.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/slack.js +0 -188
- package/lib/components/ThemeProvider/themes/slack.js.map +0 -1
- package/lib/components/ThemeProvider/themes/spotify.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/spotify.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/spotify.js +0 -189
- package/lib/components/ThemeProvider/themes/spotify.js.map +0 -1
- package/lib/components/ThemeProvider/types.d.ts +0 -112
- package/lib/components/ThemeProvider/types.d.ts.map +0 -1
- package/lib/components/UI/CardList.d.ts +0 -61
- package/lib/components/UI/CardList.d.ts.map +0 -1
- package/lib/components/UI/CardList.js +0 -43
- package/lib/components/UI/CardList.js.map +0 -1
- package/lib/components/UI/CategoriesTypeList.d.ts +0 -29
- package/lib/components/UI/CategoriesTypeList.d.ts.map +0 -1
- package/lib/components/UI/CategoriesTypeList.js +0 -140
- package/lib/components/UI/CategoriesTypeList.js.map +0 -1
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts +0 -83
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts.map +0 -1
- package/lib/components/UI/LazyLoadingGoogleMarker.js +0 -107
- package/lib/components/UI/LazyLoadingGoogleMarker.js.map +0 -1
- package/lib/components/UI/Pagination.d.ts +0 -6
- package/lib/components/UI/Pagination.d.ts.map +0 -1
- package/lib/components/UI/Pagination.js +0 -59
- package/lib/components/UI/Pagination.js.map +0 -1
- package/lib/components/UI/ParamSearchResultContainer.d.ts +0 -99
- package/lib/components/UI/ParamSearchResultContainer.d.ts.map +0 -1
- package/lib/components/UI/ParamSearchResultContainer.js +0 -120
- package/lib/components/UI/ParamSearchResultContainer.js.map +0 -1
- package/lib/components/UI/PropertyCard.d.ts +0 -24
- package/lib/components/UI/PropertyCard.d.ts.map +0 -1
- package/lib/components/UI/PropertyCard.js +0 -375
- package/lib/components/UI/PropertyCard.js.map +0 -1
- package/lib/components/UI/PropertyCardOnMap.d.ts +0 -10
- package/lib/components/UI/PropertyCardOnMap.d.ts.map +0 -1
- package/lib/components/UI/PropertyCardOnMap.js +0 -108
- package/lib/components/UI/PropertyCardOnMap.js.map +0 -1
- package/lib/components/UI/VehicleCard/PricePopover.d.ts +0 -8
- package/lib/components/UI/VehicleCard/PricePopover.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/PricePopover.js +0 -98
- package/lib/components/UI/VehicleCard/PricePopover.js.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleBadge.d.ts +0 -7
- package/lib/components/UI/VehicleCard/VehicleBadge.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleFeature.d.ts +0 -9
- package/lib/components/UI/VehicleCard/VehicleFeature.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleFeature.js +0 -23
- package/lib/components/UI/VehicleCard/VehicleFeature.js.map +0 -1
- package/lib/components/UI/VehicleCard/types.d.ts +0 -59
- package/lib/components/UI/VehicleCard/types.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard.d.ts +0 -15
- package/lib/components/UI/VehicleCard.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard.js +0 -166
- package/lib/components/UI/VehicleCard.js.map +0 -1
- package/lib/components/UI/VehicleCardList.d.ts +0 -14
- package/lib/components/UI/VehicleCardList.d.ts.map +0 -1
- package/lib/components/UI/VehicleCardList.js +0 -38
- package/lib/components/UI/VehicleCardList.js.map +0 -1
- package/lib/components/UI/VehicleParamSearchResultContainer.d.ts +0 -90
- package/lib/components/UI/VehicleParamSearchResultContainer.d.ts.map +0 -1
- package/lib/components/UI/icons/LocationIcon.d.ts +0 -7
- package/lib/components/UI/icons/LocationIcon.d.ts.map +0 -1
- package/lib/components/UI/icons/LocationIcon.js +0 -18
- package/lib/components/UI/icons/LocationIcon.js.map +0 -1
- package/lib/components/UI/icons/index.d.ts +0 -2
- package/lib/components/UI/icons/index.d.ts.map +0 -1
- package/lib/components/UI/index.d.ts +0 -10
- package/lib/components/UI/index.d.ts.map +0 -1
- package/lib/components/typings.js +0 -6
- package/lib/components/typings.js.map +0 -1
- package/lib/hooks/use-get-current-lat-long.d.ts +0 -18
- package/lib/hooks/use-get-current-lat-long.d.ts.map +0 -1
- package/lib/hooks/use-get-current-lat-long.js +0 -29
- package/lib/hooks/use-get-current-lat-long.js.map +0 -1
- package/lib/hooks/useWindowSize.d.ts +0 -6
- package/lib/hooks/useWindowSize.d.ts.map +0 -1
- package/lib/hooks/useWindowSize.js +0 -20
- package/lib/hooks/useWindowSize.js.map +0 -1
- package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts +0 -6
- package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/bookingCarRentalMiddleware.d.ts +0 -6
- package/lib/middlewares/bookingCarRentalMiddleware.d.ts.map +0 -1
- package/lib/middlewares/bookingDatasourcesMiddleware.d.ts +0 -7
- package/lib/middlewares/bookingDatasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/datasourcesMiddleware.d.ts +0 -6
- package/lib/middlewares/datasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts +0 -7
- package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts.map +0 -1
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
// Spotify-inspired theme
|
|
2
|
-
const spotifyTheme = {
|
|
3
|
-
name: 'spotify',
|
|
4
|
-
colors: {
|
|
5
|
-
primary: {
|
|
6
|
-
50: '#ecfdf5',
|
|
7
|
-
100: '#d1fae5',
|
|
8
|
-
200: '#a7f3d0',
|
|
9
|
-
300: '#6ee7b7',
|
|
10
|
-
400: '#34d399',
|
|
11
|
-
500: '#1DB954',
|
|
12
|
-
// Spotify green
|
|
13
|
-
600: '#059669',
|
|
14
|
-
700: '#047857',
|
|
15
|
-
800: '#065f46',
|
|
16
|
-
900: '#064e3b',
|
|
17
|
-
950: '#022c22'
|
|
18
|
-
},
|
|
19
|
-
secondary: {
|
|
20
|
-
50: '#f8fafc',
|
|
21
|
-
100: '#f1f5f9',
|
|
22
|
-
200: '#e2e8f0',
|
|
23
|
-
300: '#cbd5e1',
|
|
24
|
-
400: '#94a3b8',
|
|
25
|
-
500: '#767676',
|
|
26
|
-
// Spotify secondary gray
|
|
27
|
-
600: '#475569',
|
|
28
|
-
700: '#334155',
|
|
29
|
-
800: '#1e293b',
|
|
30
|
-
900: '#0f172a',
|
|
31
|
-
950: '#020617'
|
|
32
|
-
},
|
|
33
|
-
accent: {
|
|
34
|
-
50: '#fff7ed',
|
|
35
|
-
100: '#ffedd5',
|
|
36
|
-
200: '#fed7aa',
|
|
37
|
-
300: '#fdba74',
|
|
38
|
-
400: '#fb923c',
|
|
39
|
-
500: '#f97316',
|
|
40
|
-
// Spotify orange
|
|
41
|
-
600: '#ea580c',
|
|
42
|
-
700: '#c2410c',
|
|
43
|
-
800: '#9a3412',
|
|
44
|
-
900: '#7c2d12',
|
|
45
|
-
950: '#431407'
|
|
46
|
-
},
|
|
47
|
-
success: {
|
|
48
|
-
50: '#f0fdf4',
|
|
49
|
-
100: '#dcfce7',
|
|
50
|
-
200: '#bbf7d0',
|
|
51
|
-
300: '#86efac',
|
|
52
|
-
400: '#4ade80',
|
|
53
|
-
500: '#1DB954',
|
|
54
|
-
// Spotify green (same as primary)
|
|
55
|
-
600: '#16a34a',
|
|
56
|
-
700: '#15803d',
|
|
57
|
-
800: '#166534',
|
|
58
|
-
900: '#14532d',
|
|
59
|
-
950: '#052e16'
|
|
60
|
-
},
|
|
61
|
-
warning: {
|
|
62
|
-
50: '#fffbeb',
|
|
63
|
-
100: '#fef3c7',
|
|
64
|
-
200: '#fde68a',
|
|
65
|
-
300: '#fcd34d',
|
|
66
|
-
400: '#fbbf24',
|
|
67
|
-
500: '#f59e0b',
|
|
68
|
-
600: '#d97706',
|
|
69
|
-
700: '#b45309',
|
|
70
|
-
800: '#92400e',
|
|
71
|
-
900: '#78350f',
|
|
72
|
-
950: '#451a03'
|
|
73
|
-
},
|
|
74
|
-
error: {
|
|
75
|
-
50: '#fef2f2',
|
|
76
|
-
100: '#fee2e2',
|
|
77
|
-
200: '#fecaca',
|
|
78
|
-
300: '#fca5a5',
|
|
79
|
-
400: '#f87171',
|
|
80
|
-
500: '#ef4444',
|
|
81
|
-
600: '#dc2626',
|
|
82
|
-
700: '#b91c1c',
|
|
83
|
-
800: '#991b1b',
|
|
84
|
-
900: '#7f1d1d',
|
|
85
|
-
950: '#450a0a'
|
|
86
|
-
},
|
|
87
|
-
neutral: {
|
|
88
|
-
50: '#f9fafb',
|
|
89
|
-
100: '#f3f4f6',
|
|
90
|
-
200: '#e5e7eb',
|
|
91
|
-
300: '#d1d5db',
|
|
92
|
-
400: '#9ca3af',
|
|
93
|
-
500: '#6b7280',
|
|
94
|
-
600: '#4b5563',
|
|
95
|
-
700: '#374151',
|
|
96
|
-
800: '#1f2937',
|
|
97
|
-
900: '#111827',
|
|
98
|
-
950: '#030712'
|
|
99
|
-
},
|
|
100
|
-
background: {
|
|
101
|
-
light: '#ffffff',
|
|
102
|
-
dark: '#121212' // Spotify dark background
|
|
103
|
-
},
|
|
104
|
-
text: {
|
|
105
|
-
light: {
|
|
106
|
-
primary: '#191414',
|
|
107
|
-
secondary: '#535353',
|
|
108
|
-
tertiary: '#b3b3b3'
|
|
109
|
-
},
|
|
110
|
-
dark: {
|
|
111
|
-
primary: '#ffffff',
|
|
112
|
-
secondary: '#b3b3b3',
|
|
113
|
-
tertiary: '#727272'
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
borderRadius: {
|
|
118
|
-
sm: '4px',
|
|
119
|
-
DEFAULT: '8px',
|
|
120
|
-
md: '12px',
|
|
121
|
-
lg: '16px',
|
|
122
|
-
xl: '24px',
|
|
123
|
-
'2xl': '32px',
|
|
124
|
-
full: '9999px'
|
|
125
|
-
},
|
|
126
|
-
fontFamily: {
|
|
127
|
-
sans: ['Circular', 'Helvetica Neue', 'Arial', 'sans-serif'],
|
|
128
|
-
serif: ['Georgia', 'Cambria', 'Times New Roman', 'Times', 'serif'],
|
|
129
|
-
mono: ['Courier New', 'monospace']
|
|
130
|
-
},
|
|
131
|
-
boxShadow: {
|
|
132
|
-
sm: '0 2px 4px rgba(0,0,0,0.05)',
|
|
133
|
-
DEFAULT: '0 4px 8px rgba(0,0,0,0.1)',
|
|
134
|
-
md: '0 8px 16px rgba(0,0,0,0.1)',
|
|
135
|
-
lg: '0 16px 32px rgba(0,0,0,0.15)',
|
|
136
|
-
xl: '0 24px 48px rgba(0,0,0,0.2)'
|
|
137
|
-
},
|
|
138
|
-
typography: {
|
|
139
|
-
headings: {
|
|
140
|
-
fontWeight: '700',
|
|
141
|
-
lineHeight: '1.2',
|
|
142
|
-
letterSpacing: '-0.04em'
|
|
143
|
-
},
|
|
144
|
-
body: {
|
|
145
|
-
fontWeight: '400',
|
|
146
|
-
lineHeight: '1.5',
|
|
147
|
-
letterSpacing: '0'
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
// Component specific styling
|
|
151
|
-
components: {
|
|
152
|
-
buttons: {
|
|
153
|
-
primary: {
|
|
154
|
-
background: '#1DB954',
|
|
155
|
-
text: '#FFFFFF',
|
|
156
|
-
hoverBackground: '#1ed760',
|
|
157
|
-
hoverText: '#FFFFFF',
|
|
158
|
-
borderRadius: '500px',
|
|
159
|
-
// Spotify uses pill-shaped buttons
|
|
160
|
-
padding: '12px 32px',
|
|
161
|
-
fontWeight: '700'
|
|
162
|
-
},
|
|
163
|
-
secondary: {
|
|
164
|
-
background: 'transparent',
|
|
165
|
-
text: '#FFFFFF',
|
|
166
|
-
border: '1px solid #727272',
|
|
167
|
-
hoverBackground: 'rgba(255,255,255,0.1)',
|
|
168
|
-
hoverText: '#FFFFFF',
|
|
169
|
-
borderRadius: '500px',
|
|
170
|
-
padding: '12px 32px',
|
|
171
|
-
fontWeight: '700'
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
cards: {
|
|
175
|
-
borderRadius: '8px',
|
|
176
|
-
padding: '16px',
|
|
177
|
-
shadow: '0 8px 24px rgba(0,0,0,0.5)',
|
|
178
|
-
border: 'none'
|
|
179
|
-
},
|
|
180
|
-
inputs: {
|
|
181
|
-
borderRadius: '4px',
|
|
182
|
-
borderColor: '#727272',
|
|
183
|
-
focusBorderColor: '#1DB954',
|
|
184
|
-
padding: '8px 12px',
|
|
185
|
-
fontSize: '14px',
|
|
186
|
-
lineHeight: '1.5'
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
};export{spotifyTheme};//# sourceMappingURL=spotify.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spotify.js","sources":["../../../../src/components/ThemeProvider/themes/spotify.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;AACa,MAAA,YAAY,GAAiB;AACtC,EAAA,IAAA,EAAI,SAAW;AACf,EAAA,MAAA,EAAM;AACF,IAAA,OAAA,EAAA;AACI,MAAA,EAAA,EAAA,SAAa;AACb,MAAA,GAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc;oBACA;AACd;AACA,MAAA,GAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc;AACjB,MAAA,GAAA,EAAA;AACD,KAAA;AACI,IAAA,SAAA;AACA,MAAA,EAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc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EAAA,KAAA;AACJ,MAAA,OAAA,EAAA,MAAA;AACA,MAAA,MAAA,EAAA,4BAAsB;AACtB,MAAA,MAAA,EAAA;AACA,KAAA;AACA,IAAA,MAAA,EAAA;AACA,MAAA,YAAA,EAAA,KAAiB;AACpB,MAAA,WAAA,EAAA,SAAA;AACJ,MAAA,gBAAA,EAAA,SAAA;MACH,OAAA,EAAA,UAAA;;;;;"}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
export interface ThemeContextProps {
|
|
2
|
-
themeName: ThemeName;
|
|
3
|
-
theme: DefaultTheme;
|
|
4
|
-
isDarkMode: boolean;
|
|
5
|
-
toggleDarkMode: () => void;
|
|
6
|
-
}
|
|
7
|
-
export interface DefaultTheme {
|
|
8
|
-
name: string;
|
|
9
|
-
colors: {
|
|
10
|
-
primary: ColorRamp;
|
|
11
|
-
secondary: ColorRamp;
|
|
12
|
-
accent: ColorRamp;
|
|
13
|
-
success: ColorRamp;
|
|
14
|
-
warning: ColorRamp;
|
|
15
|
-
error: ColorRamp;
|
|
16
|
-
neutral: ColorRamp;
|
|
17
|
-
background: {
|
|
18
|
-
light: string;
|
|
19
|
-
dark: string;
|
|
20
|
-
};
|
|
21
|
-
text: {
|
|
22
|
-
light: {
|
|
23
|
-
primary: string;
|
|
24
|
-
secondary: string;
|
|
25
|
-
tertiary: string;
|
|
26
|
-
};
|
|
27
|
-
dark: {
|
|
28
|
-
primary: string;
|
|
29
|
-
secondary: string;
|
|
30
|
-
tertiary: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
borderRadius: {
|
|
35
|
-
sm: string;
|
|
36
|
-
DEFAULT: string;
|
|
37
|
-
md: string;
|
|
38
|
-
lg: string;
|
|
39
|
-
xl: string;
|
|
40
|
-
'2xl': string;
|
|
41
|
-
full: string;
|
|
42
|
-
};
|
|
43
|
-
fontFamily: {
|
|
44
|
-
sans: string[];
|
|
45
|
-
serif: string[];
|
|
46
|
-
mono: string[];
|
|
47
|
-
};
|
|
48
|
-
boxShadow: {
|
|
49
|
-
sm: string;
|
|
50
|
-
DEFAULT: string;
|
|
51
|
-
md: string;
|
|
52
|
-
lg: string;
|
|
53
|
-
xl: string;
|
|
54
|
-
};
|
|
55
|
-
typography: {
|
|
56
|
-
headings: {
|
|
57
|
-
fontWeight: string;
|
|
58
|
-
lineHeight: string;
|
|
59
|
-
letterSpacing: string;
|
|
60
|
-
};
|
|
61
|
-
body: {
|
|
62
|
-
fontWeight: string;
|
|
63
|
-
lineHeight: string;
|
|
64
|
-
letterSpacing: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
components: {
|
|
68
|
-
buttons: {
|
|
69
|
-
primary: ButtonStyle;
|
|
70
|
-
secondary: ButtonStyle;
|
|
71
|
-
};
|
|
72
|
-
cards: {
|
|
73
|
-
borderRadius: string;
|
|
74
|
-
padding: string;
|
|
75
|
-
shadow: string;
|
|
76
|
-
border: string;
|
|
77
|
-
};
|
|
78
|
-
inputs: {
|
|
79
|
-
borderRadius: string;
|
|
80
|
-
borderColor: string;
|
|
81
|
-
focusBorderColor: string;
|
|
82
|
-
padding: string;
|
|
83
|
-
fontSize: string;
|
|
84
|
-
lineHeight: string;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
export interface ColorRamp {
|
|
89
|
-
50: string;
|
|
90
|
-
100: string;
|
|
91
|
-
200: string;
|
|
92
|
-
300: string;
|
|
93
|
-
400: string;
|
|
94
|
-
500: string;
|
|
95
|
-
600: string;
|
|
96
|
-
700: string;
|
|
97
|
-
800: string;
|
|
98
|
-
900: string;
|
|
99
|
-
950: string;
|
|
100
|
-
}
|
|
101
|
-
export interface ButtonStyle {
|
|
102
|
-
background: string;
|
|
103
|
-
text: string;
|
|
104
|
-
hoverBackground: string;
|
|
105
|
-
hoverText: string;
|
|
106
|
-
borderRadius: string;
|
|
107
|
-
padding: string;
|
|
108
|
-
fontWeight: string;
|
|
109
|
-
border?: string;
|
|
110
|
-
}
|
|
111
|
-
export type ThemeName = 'default' | 'airbnb' | 'slack' | 'github' | 'spotify';
|
|
112
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ThemeProvider/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAC9B,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,EAAE,YAAY,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,MAAM,IAAI,CAAC;CAC9B;AACD,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE;QACJ,OAAO,EAAE,SAAS,CAAC;QACnB,SAAS,EAAE,SAAS,CAAC;QACrB,MAAM,EAAE,SAAS,CAAC;QAClB,OAAO,EAAE,SAAS,CAAC;QACnB,OAAO,EAAE,SAAS,CAAC;QACnB,KAAK,EAAE,SAAS,CAAC;QACjB,OAAO,EAAE,SAAS,CAAC;QACnB,UAAU,EAAE;YACR,KAAK,EAAE,MAAM,CAAC;YACd,IAAI,EAAE,MAAM,CAAC;SAChB,CAAC;QACF,IAAI,EAAE;YACF,KAAK,EAAE;gBACH,OAAO,EAAE,MAAM,CAAC;gBAChB,SAAS,EAAE,MAAM,CAAC;gBAClB,QAAQ,EAAE,MAAM,CAAC;aACpB,CAAC;YACF,IAAI,EAAE;gBACF,OAAO,EAAE,MAAM,CAAC;gBAChB,SAAS,EAAE,MAAM,CAAC;gBAClB,QAAQ,EAAE,MAAM,CAAC;aACpB,CAAC;SACL,CAAC;KACL,CAAC;IACF,YAAY,EAAE;QACV,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;QAChB,EAAE,EAAE,MAAM,CAAC;QACX,EAAE,EAAE,MAAM,CAAC;QACX,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,E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AAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface IBaseItem {
|
|
3
|
-
id: string;
|
|
4
|
-
title: string;
|
|
5
|
-
types: string[];
|
|
6
|
-
name: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
introduction?: string;
|
|
9
|
-
address: any;
|
|
10
|
-
location: string;
|
|
11
|
-
images: any;
|
|
12
|
-
thumbnailUrl?: string;
|
|
13
|
-
thumbnailAlt?: string;
|
|
14
|
-
verificationDocuments?: any;
|
|
15
|
-
info?: any;
|
|
16
|
-
user: any;
|
|
17
|
-
status?: any;
|
|
18
|
-
errors?: any;
|
|
19
|
-
preferences?: any;
|
|
20
|
-
orgName?: string;
|
|
21
|
-
serviceConfiguration?: any;
|
|
22
|
-
totalReview?: number;
|
|
23
|
-
totalStar?: number;
|
|
24
|
-
reviews?: any;
|
|
25
|
-
comments?: any;
|
|
26
|
-
userLikes?: any;
|
|
27
|
-
calendarEvents?: any[];
|
|
28
|
-
isUserLike?: boolean;
|
|
29
|
-
formattedPrice?: number;
|
|
30
|
-
timeZone: string;
|
|
31
|
-
createdAt: any;
|
|
32
|
-
updatedAt?: any;
|
|
33
|
-
stats?: any;
|
|
34
|
-
guideBookId?: string;
|
|
35
|
-
guestSharing?: any;
|
|
36
|
-
}
|
|
37
|
-
type CardListProps = {
|
|
38
|
-
items?: IBaseItem[];
|
|
39
|
-
setFocus: (index: number) => void;
|
|
40
|
-
setBlur: (index: number) => void;
|
|
41
|
-
handleLike: (index: number) => void;
|
|
42
|
-
likeBtnLoading: boolean;
|
|
43
|
-
categoryTypes: any[];
|
|
44
|
-
extraIcons?: any;
|
|
45
|
-
className?: string;
|
|
46
|
-
customCardComponent?: (props: {
|
|
47
|
-
item: IBaseItem;
|
|
48
|
-
index: number;
|
|
49
|
-
setFocus: () => void;
|
|
50
|
-
setBlur: (index: number) => void;
|
|
51
|
-
handleLike: (index: number) => void;
|
|
52
|
-
likeBtnLoading: boolean;
|
|
53
|
-
categoryTypes: any[];
|
|
54
|
-
extraIcons?: any;
|
|
55
|
-
authenticated: boolean;
|
|
56
|
-
}) => React.ReactNode;
|
|
57
|
-
emptyMessage?: string;
|
|
58
|
-
};
|
|
59
|
-
export declare const CardList: React.FC<CardListProps>;
|
|
60
|
-
export {};
|
|
61
|
-
//# sourceMappingURL=CardList.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CardList.d.ts","sourceRoot":"","sources":["../../../src/components/UI/CardList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,SAAS;IACf,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,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jB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE;QAC1B,IAAI,EAAE,SAAS,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,IAAI,CAAC;QACrB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QACjC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QACpC,cAAc,EAAE,OAAO,CAAC;QACxB,aAAa,EAAE,GAAG,EAAE,CAAC;QACrB,UAAU,CAAC,EAAE,GAAG,CAAC;QACjB,aAAa,EAAE,OAAO,CAAC;KAC1B,KAAK,KAAK,CAAC,SAAS,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAuC5C,CAAC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import {jsx}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {isEmpty}from'lodash-es';import {isUserAuthenticated}from'@adminide-stack/user-auth0-client';const CardList = props => {
|
|
2
|
-
const {
|
|
3
|
-
setBlur,
|
|
4
|
-
setFocus,
|
|
5
|
-
items,
|
|
6
|
-
handleLike,
|
|
7
|
-
likeBtnLoading,
|
|
8
|
-
categoryTypes,
|
|
9
|
-
extraIcons,
|
|
10
|
-
className = '',
|
|
11
|
-
customCardComponent,
|
|
12
|
-
emptyMessage = 'No items found'
|
|
13
|
-
} = props;
|
|
14
|
-
const {
|
|
15
|
-
t
|
|
16
|
-
} = useTranslation();
|
|
17
|
-
const {
|
|
18
|
-
authenticated
|
|
19
|
-
} = isUserAuthenticated();
|
|
20
|
-
if (isEmpty(items)) {
|
|
21
|
-
return jsx("div", {
|
|
22
|
-
className: "text-base",
|
|
23
|
-
children: emptyMessage
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
return jsx("div", {
|
|
27
|
-
className: `flex flex-wrap justify-evenly ${className}`,
|
|
28
|
-
children: items?.map((item, index) => jsx("div", {
|
|
29
|
-
className: "max-w-[100%] mb-4",
|
|
30
|
-
children: customCardComponent?.({
|
|
31
|
-
item,
|
|
32
|
-
index,
|
|
33
|
-
setFocus: () => setFocus(index),
|
|
34
|
-
setBlur,
|
|
35
|
-
handleLike,
|
|
36
|
-
likeBtnLoading,
|
|
37
|
-
categoryTypes,
|
|
38
|
-
extraIcons,
|
|
39
|
-
authenticated
|
|
40
|
-
})
|
|
41
|
-
}, index))
|
|
42
|
-
});
|
|
43
|
-
};export{CardList};//# sourceMappingURL=CardList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CardList.js","sources":["../../../src/components/UI/CardList.tsx"],"sourcesContent":[null],"names":[],"mappings":"mLA0Ea,MAAA,QAAQ,GAA4B,KAAC,IAAS;QACjD;AAYN,IAAA;AACA,IAAA,QAAQ;AAER,IAAA,KAAW;AACP,IAAA,UAAA;IACJ,cAAC;IAED,aACS;;gBAKW,EAAK;AACL,IAAA,mBAAA;gBACA,GAAO;;;;oBAIG,EAAA;;AAEb,IAAA;AAKrB,GAAE,GAAA,mBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Splide } from '@cdmbase/react-splide';
|
|
2
|
-
import '@splidejs/react-splide/css';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
export interface ICategoryType<TTypename, TCategory, TName> {
|
|
5
|
-
__typename?: TTypename;
|
|
6
|
-
id: string;
|
|
7
|
-
description: string | null;
|
|
8
|
-
category: TCategory;
|
|
9
|
-
name: TName;
|
|
10
|
-
icon?: string | null;
|
|
11
|
-
imageKey?: string | null;
|
|
12
|
-
thumbnailUrl?: string | null;
|
|
13
|
-
}
|
|
14
|
-
export interface ICategoriesTypeListProps<TTypename, TCategory, TName> {
|
|
15
|
-
isExplorerView?: boolean;
|
|
16
|
-
categories: ICategoryType<TTypename, TCategory, TName>[];
|
|
17
|
-
initialCategory: ICategoryType<TTypename, TCategory, TName>;
|
|
18
|
-
boxColor: (categoryId: string) => string;
|
|
19
|
-
iconColor: (categoryId: string) => string;
|
|
20
|
-
badgeTitle?: string;
|
|
21
|
-
extraIcons: string[];
|
|
22
|
-
aria_label: string;
|
|
23
|
-
splideRef?: React.RefObject<Splide>;
|
|
24
|
-
isNewBadge: (categoryId: string) => boolean;
|
|
25
|
-
handleSearchClick: (cateItem: string, item: any, isExplorerView?: boolean) => void;
|
|
26
|
-
activeCategory?: string;
|
|
27
|
-
}
|
|
28
|
-
export declare const CategoriesTypeList: <TTypename, TCategory, TName>({ boxColor, iconColor, badgeTitle, extraIcons, categories, initialCategory, aria_label, isExplorerView, splideRef, isNewBadge, handleSearchClick, activeCategory, }: ICategoriesTypeListProps<TTypename, TCategory, TName>) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
//# sourceMappingURL=CategoriesTypeList.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CategoriesTypeList.d.ts","sourceRoot":"","sources":["../../../src/components/UI/CategoriesTypeList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAA2C,MAAM,uBAAuB,CAAC;AACxF,OAAO,4BAA4B,CAAC;AACpC,OAAO,KAAoD,MAAM,OAAO,CAAC;AAKzE,MAAM,WAAW,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK;IACtD,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,EAAE,KAAK,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,WAAW,wBAAwB,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK;IACjE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC;IACzD,eAAe,EAAE,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IAC5D,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;IACzC,SAAS,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACpC,UAAU,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;IAC5C,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,cAAc,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACnF,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAyGD,eAAO,MAAM,kBAAkB,GAAI,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,qKAa7D,wBAAwB,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,4CA6DvD,CAAC"}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import {jsxs,jsx}from'react/jsx-runtime';import {Splide,SplideSlide}from'@cdmbase/react-splide';import'@splidejs/react-splide/css';import React__default,{useCallback,useMemo,useState,useEffect}from'react';import {useTranslation}from'react-i18next';import {renderDynamicIcon}from'../../helpers/DynamicIcon.js';import useWindowSize from'../../hooks/useWindowSize.js';// Helper function to merge arrays
|
|
2
|
-
const mergeArrays = (arr1, arr2, keyToMapIcons) => {
|
|
3
|
-
const iconMap = new Map(arr2.map(icon => [icon.split('.').pop(), icon]));
|
|
4
|
-
return arr1.filter(item => iconMap.has(item[keyToMapIcons])).map(item => ({
|
|
5
|
-
...item,
|
|
6
|
-
icon: iconMap.get(item[keyToMapIcons])
|
|
7
|
-
}));
|
|
8
|
-
};
|
|
9
|
-
// Create a memoized category item component
|
|
10
|
-
function CategoryItemComponent({
|
|
11
|
-
category,
|
|
12
|
-
boxColor,
|
|
13
|
-
size,
|
|
14
|
-
t,
|
|
15
|
-
isNewBadge,
|
|
16
|
-
badgeTitle,
|
|
17
|
-
handleSearchClick,
|
|
18
|
-
isExplorerView,
|
|
19
|
-
isActive
|
|
20
|
-
}) {
|
|
21
|
-
// Prevent multiple click propagation
|
|
22
|
-
const handleClick = useCallback(e => {
|
|
23
|
-
e.preventDefault();
|
|
24
|
-
e.stopPropagation();
|
|
25
|
-
handleSearchClick(category.id, category, isExplorerView);
|
|
26
|
-
}, [category, handleSearchClick, isExplorerView]);
|
|
27
|
-
// Compute the current color values
|
|
28
|
-
const currentBoxColor = isActive ? boxColor(category.id) : '#4A5568';
|
|
29
|
-
// Determine font size based on screen width
|
|
30
|
-
const fontSize = useMemo(() => {
|
|
31
|
-
if (size.width > 1200) return '16px';
|
|
32
|
-
if (size.width > 768) return '15px';
|
|
33
|
-
if (size.width > 480) return '14px';
|
|
34
|
-
return '12px';
|
|
35
|
-
}, [size.width]);
|
|
36
|
-
// Determine icon size based on screen width
|
|
37
|
-
const iconSize = useMemo(() => ({
|
|
38
|
-
w: size.width > 1200 ? '2vw' : '3vw',
|
|
39
|
-
h: size.height > 1200 ? '2vw' : '3vw'
|
|
40
|
-
}), [size.width, size.height]);
|
|
41
|
-
return jsxs("div", {
|
|
42
|
-
className: `flex flex-col items-center justify-center cursor-pointer relative font-bold ${isActive ? 'active' : ''}`,
|
|
43
|
-
style: {
|
|
44
|
-
color: currentBoxColor,
|
|
45
|
-
fontSize
|
|
46
|
-
},
|
|
47
|
-
onClick: handleClick,
|
|
48
|
-
children: [renderDynamicIcon({
|
|
49
|
-
name: category.icon,
|
|
50
|
-
style: {
|
|
51
|
-
iconColor: currentBoxColor,
|
|
52
|
-
...iconSize
|
|
53
|
-
}
|
|
54
|
-
}), jsx("div", {
|
|
55
|
-
className: "text-center",
|
|
56
|
-
children: t(category.description)
|
|
57
|
-
}), isNewBadge(category.id) && jsx("div", {
|
|
58
|
-
className: "absolute top-0 right-0 bg-blue-500 text-white rounded-md text-xs p-1",
|
|
59
|
-
children: badgeTitle
|
|
60
|
-
})]
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
// Use React.memo with a custom comparison function
|
|
64
|
-
const CategoryItem = React__default.memo(CategoryItemComponent, (prevProps, nextProps) => {
|
|
65
|
-
if (prevProps.category.id !== nextProps.category.id) return false;
|
|
66
|
-
if (prevProps.isActive !== nextProps.isActive) return false;
|
|
67
|
-
if (prevProps.boxColor(prevProps.category.id) !== nextProps.boxColor(nextProps.category.id)) return false;
|
|
68
|
-
return true;
|
|
69
|
-
});
|
|
70
|
-
const CategoriesTypeList = ({
|
|
71
|
-
boxColor,
|
|
72
|
-
iconColor,
|
|
73
|
-
badgeTitle,
|
|
74
|
-
extraIcons,
|
|
75
|
-
categories,
|
|
76
|
-
initialCategory,
|
|
77
|
-
aria_label,
|
|
78
|
-
isExplorerView,
|
|
79
|
-
splideRef,
|
|
80
|
-
isNewBadge,
|
|
81
|
-
handleSearchClick,
|
|
82
|
-
activeCategory
|
|
83
|
-
}) => {
|
|
84
|
-
const size = useWindowSize();
|
|
85
|
-
const {
|
|
86
|
-
t
|
|
87
|
-
} = useTranslation(['property-types', 'common']);
|
|
88
|
-
// Track the currently active category ID internally
|
|
89
|
-
const [activeCategoryId, setActiveCategoryId] = useState(() => activeCategory || initialCategory.id);
|
|
90
|
-
// Update internal state when activeCategory prop changes
|
|
91
|
-
useEffect(() => {
|
|
92
|
-
setActiveCategoryId(activeCategory || initialCategory.id);
|
|
93
|
-
}, [activeCategory, initialCategory.id]);
|
|
94
|
-
// Memoize the merged array
|
|
95
|
-
const mappedArr = useMemo(() => mergeArrays([initialCategory, ...categories], extraIcons, 'icon'), [initialCategory, categories, extraIcons]);
|
|
96
|
-
// Splide options
|
|
97
|
-
const splideOptions = useMemo(() => ({
|
|
98
|
-
type: 'slide',
|
|
99
|
-
drag: 'free',
|
|
100
|
-
perPage: 9,
|
|
101
|
-
perMove: 1,
|
|
102
|
-
wheel: true,
|
|
103
|
-
releaseWheel: true,
|
|
104
|
-
pagination: false,
|
|
105
|
-
speed: 500,
|
|
106
|
-
wheelSleep: 300,
|
|
107
|
-
breakpoints: {
|
|
108
|
-
1024: {
|
|
109
|
-
perPage: 9
|
|
110
|
-
},
|
|
111
|
-
600: {
|
|
112
|
-
perPage: 5
|
|
113
|
-
},
|
|
114
|
-
480: {
|
|
115
|
-
perPage: 3
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}), []);
|
|
119
|
-
return jsx("div", {
|
|
120
|
-
className: "w-full relative",
|
|
121
|
-
children: jsx(Splide, {
|
|
122
|
-
ref: splideRef,
|
|
123
|
-
"aria-label": aria_label,
|
|
124
|
-
options: splideOptions,
|
|
125
|
-
children: mappedArr.map(d => jsx(SplideSlide, {
|
|
126
|
-
children: jsx(CategoryItem, {
|
|
127
|
-
category: d,
|
|
128
|
-
boxColor: boxColor,
|
|
129
|
-
size: size,
|
|
130
|
-
t: t,
|
|
131
|
-
isNewBadge: isNewBadge,
|
|
132
|
-
badgeTitle: badgeTitle,
|
|
133
|
-
handleSearchClick: handleSearchClick,
|
|
134
|
-
isExplorerView: isExplorerView,
|
|
135
|
-
isActive: d.id === activeCategoryId
|
|
136
|
-
}, `category_${d.id}`)
|
|
137
|
-
}, `button_${d.id}`))
|
|
138
|
-
})
|
|
139
|
-
});
|
|
140
|
-
};export{CategoriesTypeList};//# sourceMappingURL=CategoriesTypeList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CategoriesTypeList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