@js-empire/emperor-ui 1.3.6 → 1.3.7
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/dist/emperor-ui.js +60623 -158
- package/package.json +7 -3
- package/.cursor/rules/code-conventions.mdc +0 -50
- package/.husky/pre-commit +0 -4
- package/.prettierrc +0 -10
- package/.storybook/main.ts +0 -24
- package/.storybook/preview.ts +0 -19
- package/.storybook/vitest.setup.ts +0 -7
- package/.vscode/extensions.json +0 -1
- package/dist/index-ABKcY4tX.js +0 -60607
- package/dist/index-CWu5fG3N.js +0 -6
- package/dist/index-DpemL3iQ.js +0 -291
- package/dist/src-UW24ZMRV-I8bMqcTI.js +0 -6
- package/eslint.config.js +0 -34
- package/index.html +0 -13
- package/public/icons/emperor-ui-logo.ico +0 -0
- package/public/images/avatar-female.jpg +0 -0
- package/public/images/avatar-male.jpg +0 -0
- package/public/images/emperor-ui-logo.png +0 -0
- package/src/animations/blink.ts +0 -26
- package/src/animations/floating.ts +0 -12
- package/src/animations/index.ts +0 -2
- package/src/components/atoms/brand/brand.stories.tsx +0 -27
- package/src/components/atoms/brand/brand.tsx +0 -56
- package/src/components/atoms/brand/index.ts +0 -1
- package/src/components/atoms/brand/styles/classes.ts +0 -9
- package/src/components/atoms/brand/styles/index.ts +0 -2
- package/src/components/atoms/brand/styles/styles.ts +0 -0
- package/src/components/atoms/color-picker/color-picker.tsx +0 -12
- package/src/components/atoms/color-picker/free-color-picker.tsx +0 -58
- package/src/components/atoms/color-picker/index.ts +0 -3
- package/src/components/atoms/color-picker/preset-color-picker.tsx +0 -66
- package/src/components/atoms/color-picker/stories/color-picker.stories.tsx +0 -63
- package/src/components/atoms/column/column.stories.tsx +0 -37
- package/src/components/atoms/column/column.tsx +0 -21
- package/src/components/atoms/column/index.ts +0 -1
- package/src/components/atoms/container/column.stories.tsx +0 -37
- package/src/components/atoms/container/container.tsx +0 -28
- package/src/components/atoms/container/index.ts +0 -1
- package/src/components/atoms/copy-button/copy-button.tsx +0 -73
- package/src/components/atoms/copy-button/index.ts +0 -1
- package/src/components/atoms/copy-button/stories/copy-button.stories.tsx +0 -21
- package/src/components/atoms/field/field.tsx +0 -81
- package/src/components/atoms/field/index.ts +0 -3
- package/src/components/atoms/field/styles/classes.ts +0 -9
- package/src/components/atoms/field/styles/index.ts +0 -1
- package/src/components/atoms/field/units/autocomplete-field.tsx +0 -49
- package/src/components/atoms/field/units/checkbox-field.tsx +0 -35
- package/src/components/atoms/field/units/index.ts +0 -7
- package/src/components/atoms/field/units/input-field.tsx +0 -35
- package/src/components/atoms/field/units/radio-field.tsx +0 -43
- package/src/components/atoms/field/units/select-field.tsx +0 -50
- package/src/components/atoms/field/units/switch-field.tsx +0 -35
- package/src/components/atoms/field/units/textarea-field.tsx +0 -37
- package/src/components/atoms/filter/filter.tsx +0 -93
- package/src/components/atoms/filter/index.ts +0 -3
- package/src/components/atoms/filter/stories/filter.stories.tsx +0 -238
- package/src/components/atoms/filter/styles/classes.ts +0 -20
- package/src/components/atoms/filter/styles/index.ts +0 -1
- package/src/components/atoms/filter/units/autocomplete-filter.tsx +0 -66
- package/src/components/atoms/filter/units/checkbox-filter.tsx +0 -42
- package/src/components/atoms/filter/units/checkbox-group-filter.tsx +0 -68
- package/src/components/atoms/filter/units/date-filter.tsx +0 -46
- package/src/components/atoms/filter/units/index.ts +0 -9
- package/src/components/atoms/filter/units/numeric-filter.tsx +0 -41
- package/src/components/atoms/filter/units/range-filter.tsx +0 -65
- package/src/components/atoms/filter/units/search-filter.tsx +0 -53
- package/src/components/atoms/filter/units/select-filter.tsx +0 -57
- package/src/components/atoms/filter/units/switch-filter.tsx +0 -35
- package/src/components/atoms/index.ts +0 -11
- package/src/components/atoms/portal/index.ts +0 -1
- package/src/components/atoms/portal/portal.stories.tsx +0 -43
- package/src/components/atoms/portal/portal.tsx +0 -25
- package/src/components/atoms/row/index.ts +0 -1
- package/src/components/atoms/row/row.stories.tsx +0 -37
- package/src/components/atoms/row/row.tsx +0 -26
- package/src/components/atoms/theme-switch/index.ts +0 -1
- package/src/components/atoms/theme-switch/styles/classes.ts +0 -16
- package/src/components/atoms/theme-switch/styles/index.ts +0 -1
- package/src/components/atoms/theme-switch/theme-switch.stories.tsx +0 -26
- package/src/components/atoms/theme-switch/theme-switch.tsx +0 -54
- package/src/components/atoms/uploader/components/avatar-label.tsx +0 -102
- package/src/components/atoms/uploader/components/index.ts +0 -8
- package/src/components/atoms/uploader/components/upload-file-error-box.tsx +0 -40
- package/src/components/atoms/uploader/components/upload-file-input.tsx +0 -36
- package/src/components/atoms/uploader/components/upload-file-label.tsx +0 -92
- package/src/components/atoms/uploader/components/upload-file-listing.tsx +0 -64
- package/src/components/atoms/uploader/components/uploader-title.tsx +0 -21
- package/src/components/atoms/uploader/components/uploader.tsx +0 -89
- package/src/components/atoms/uploader/components/view-image-modal.tsx +0 -41
- package/src/components/atoms/uploader/index.ts +0 -1
- package/src/components/atoms/uploader/stories/uploader.stories.tsx +0 -202
- package/src/components/index.ts +0 -4
- package/src/components/molecules/index.ts +0 -4
- package/src/components/molecules/item-card/components/actions/index.ts +0 -3
- package/src/components/molecules/item-card/components/actions/item-actions-buttons.tsx +0 -43
- package/src/components/molecules/item-card/components/actions/item-actions-dropdown.tsx +0 -57
- package/src/components/molecules/item-card/components/actions/item-actions-overlay.tsx +0 -50
- package/src/components/molecules/item-card/components/additions/index.ts +0 -2
- package/src/components/molecules/item-card/components/additions/item-banner.tsx +0 -22
- package/src/components/molecules/item-card/components/additions/loading-item.tsx +0 -88
- package/src/components/molecules/item-card/components/card/index.ts +0 -4
- package/src/components/molecules/item-card/components/card/item-card-body.tsx +0 -74
- package/src/components/molecules/item-card/components/card/item-card-footer.tsx +0 -79
- package/src/components/molecules/item-card/components/card/item-card-header.tsx +0 -69
- package/src/components/molecules/item-card/components/card/item-card.tsx +0 -123
- package/src/components/molecules/item-card/components/index.ts +0 -3
- package/src/components/molecules/item-card/index.ts +0 -2
- package/src/components/molecules/item-card/stories/item-card.stories.tsx +0 -218
- package/src/components/molecules/item-card/styles/classes.ts +0 -141
- package/src/components/molecules/item-card/styles/index.ts +0 -1
- package/src/components/molecules/nav-bar/index.ts +0 -3
- package/src/components/molecules/nav-bar/nav-bar-item.tsx +0 -64
- package/src/components/molecules/nav-bar/nav-bar.tsx +0 -57
- package/src/components/molecules/nav-bar/stories/hover-effect/nav-bar-hover-effect.stories.tsx +0 -52
- package/src/components/molecules/nav-bar/stories/nav-bar.stories.tsx +0 -50
- package/src/components/molecules/nav-bar/styles/classes.ts +0 -68
- package/src/components/molecules/nav-bar/styles/index.ts +0 -2
- package/src/components/molecules/nav-bar/styles/styles.ts +0 -85
- package/src/components/molecules/nav-bar/sub-items-box.tsx +0 -58
- package/src/components/molecules/scaffold/index.ts +0 -2
- package/src/components/molecules/scaffold/scaffold.stories.tsx +0 -21
- package/src/components/molecules/scaffold/scaffold.tsx +0 -23
- package/src/components/molecules/scaffold/styles/index.ts +0 -1
- package/src/components/molecules/scaffold/styles/scaffold-classes.ts +0 -10
- package/src/components/molecules/side-bar/compact-side-bar.tsx +0 -77
- package/src/components/molecules/side-bar/index.ts +0 -1
- package/src/components/molecules/side-bar/side-bar-drawer.tsx +0 -113
- package/src/components/molecules/side-bar/side-bar.stories.tsx +0 -111
- package/src/components/molecules/side-bar/side-bar.tsx +0 -31
- package/src/components/molecules/side-bar/styles/classes.ts +0 -28
- package/src/components/molecules/side-bar/styles/index.ts +0 -2
- package/src/components/molecules/side-bar/styles/styles.ts +0 -13
- package/src/components/organisms/deletion-confirmor/deletion-confirmor.tsx +0 -110
- package/src/components/organisms/deletion-confirmor/index.ts +0 -3
- package/src/components/organisms/deletion-confirmor/stories/components.tsx +0 -25
- package/src/components/organisms/deletion-confirmor/stories/deletion-confirmor.stories.tsx +0 -78
- package/src/components/organisms/deletion-confirmor/styles/classes.ts +0 -28
- package/src/components/organisms/deletion-confirmor/styles/index.ts +0 -2
- package/src/components/organisms/deletion-confirmor/styles/styles.ts +0 -4
- package/src/components/organisms/footer/copy-rights-box.tsx +0 -27
- package/src/components/organisms/footer/footer.tsx +0 -75
- package/src/components/organisms/footer/index.ts +0 -5
- package/src/components/organisms/footer/policies-box.tsx +0 -27
- package/src/components/organisms/footer/quick-links-box.tsx +0 -46
- package/src/components/organisms/footer/social-links-box.tsx +0 -33
- package/src/components/organisms/footer/stories/footer.stories.tsx +0 -61
- package/src/components/organisms/footer/styles/classes.ts +0 -71
- package/src/components/organisms/footer/styles/index.ts +0 -2
- package/src/components/organisms/footer/styles/styles.ts +0 -6
- package/src/components/organisms/form-builder/form-builder.stories.tsx +0 -144
- package/src/components/organisms/form-builder/form-builder.tsx +0 -75
- package/src/components/organisms/form-builder/index.ts +0 -1
- package/src/components/organisms/header/header.tsx +0 -87
- package/src/components/organisms/header/index.ts +0 -1
- package/src/components/organisms/header/segmented-header-content.tsx +0 -29
- package/src/components/organisms/header/stories/header.stories.tsx +0 -144
- package/src/components/organisms/header/styles/classes.ts +0 -22
- package/src/components/organisms/header/styles/index.ts +0 -2
- package/src/components/organisms/header/styles/styles.ts +0 -39
- package/src/components/organisms/index.ts +0 -6
- package/src/components/organisms/item-details/index.ts +0 -1
- package/src/components/organisms/item-details/item-details.tsx +0 -6
- package/src/components/organisms/listings/empty-listings.tsx +0 -80
- package/src/components/organisms/listings/index.ts +0 -3
- package/src/components/organisms/listings/listings.tsx +0 -96
- package/src/components/organisms/listings/stories/grid-listings.stories.tsx +0 -153
- package/src/components/organisms/listings/stories/list-listings.stories.tsx +0 -171
- package/src/components/organisms/listings/styles/classes.ts +0 -49
- package/src/components/organisms/listings/styles/index.ts +0 -2
- package/src/components/organisms/listings/styles/styles.ts +0 -6
- package/src/components/templates/index.ts +0 -1
- package/src/components/templates/landing-page/index.ts +0 -1
- package/src/components/templates/landing-page/landing-page.stories.tsx +0 -21
- package/src/components/templates/landing-page/landing-page.tsx +0 -57
- package/src/components/templates/landing-page/styles/classes.ts +0 -11
- package/src/components/templates/landing-page/styles/index.ts +0 -1
- package/src/constants/animations.ts +0 -14
- package/src/constants/card.tsx +0 -42
- package/src/constants/defaults.ts +0 -59
- package/src/constants/fake.ts +0 -5
- package/src/constants/footer.tsx +0 -157
- package/src/constants/index.ts +0 -6
- package/src/constants/uploader.ts +0 -33
- package/src/context/emperor-ui-context.ts +0 -6
- package/src/context/form-builder-context.tsx +0 -8
- package/src/context/index.ts +0 -4
- package/src/context/navigation-context.ts +0 -6
- package/src/context/uploader-context.ts +0 -6
- package/src/enums/index.ts +0 -2
- package/src/enums/placeholders.ts +0 -4
- package/src/enums/preserved-keys.ts +0 -3
- package/src/examples/index.ts +0 -1
- package/src/hooks/index.ts +0 -8
- package/src/hooks/use-emperor-ui.ts +0 -12
- package/src/hooks/use-filters.ts +0 -20
- package/src/hooks/use-form-builder-context.ts +0 -16
- package/src/hooks/use-navigation.ts +0 -12
- package/src/hooks/use-search-params-handler.tsx +0 -186
- package/src/hooks/use-uploader-context.ts +0 -14
- package/src/hooks/use-uploader.tsx +0 -164
- package/src/hooks/use-window-size.tsx +0 -53
- package/src/i18n/configs/i18n.ts +0 -7
- package/src/i18n/configs/index.ts +0 -1
- package/src/i18n/constants/index.ts +0 -1
- package/src/i18n/constants/locales.ts +0 -4
- package/src/i18n/index.ts +0 -5
- package/src/i18n/locales/ar.ts +0 -15
- package/src/i18n/locales/atoms/ar.ts +0 -18
- package/src/i18n/locales/atoms/en.ts +0 -18
- package/src/i18n/locales/atoms/index.ts +0 -2
- package/src/i18n/locales/common/ar.ts +0 -1
- package/src/i18n/locales/common/en.ts +0 -1
- package/src/i18n/locales/common/index.ts +0 -2
- package/src/i18n/locales/en.ts +0 -15
- package/src/i18n/locales/index.ts +0 -4
- package/src/i18n/locales/molecules/ar.ts +0 -1
- package/src/i18n/locales/molecules/en.ts +0 -1
- package/src/i18n/locales/molecules/index.ts +0 -2
- package/src/i18n/locales/organisms/ar.ts +0 -11
- package/src/i18n/locales/organisms/en.ts +0 -11
- package/src/i18n/locales/organisms/index.ts +0 -2
- package/src/i18n/locales/templates/ar.ts +0 -1
- package/src/i18n/locales/templates/en.ts +0 -1
- package/src/i18n/locales/templates/index.ts +0 -2
- package/src/i18n/locales/toasts/ar.ts +0 -1
- package/src/i18n/locales/toasts/en.ts +0 -1
- package/src/i18n/locales/toasts/index.ts +0 -2
- package/src/i18n/types/index.ts +0 -2
- package/src/i18n/types/locale.ts +0 -5
- package/src/i18n/types/toasts.ts +0 -3
- package/src/i18n/utils/get-locales.ts +0 -4
- package/src/i18n/utils/index.ts +0 -2
- package/src/i18n/utils/localize.ts +0 -15
- package/src/index.ts +0 -14
- package/src/mocks/constants.ts +0 -103
- package/src/mocks/deletion-confirmor.ts +0 -16
- package/src/mocks/header.tsx +0 -118
- package/src/mocks/index.ts +0 -6
- package/src/mocks/listings.tsx +0 -154
- package/src/mocks/locales/index.ts +0 -1
- package/src/mocks/locales/uploader.ts +0 -33
- package/src/mocks/types.ts +0 -64
- package/src/providers/config-provider.tsx +0 -72
- package/src/providers/emperor-ui-provider.tsx +0 -35
- package/src/providers/form-builder-provider-context.tsx +0 -18
- package/src/providers/index.ts +0 -6
- package/src/providers/navigation-provider.tsx +0 -42
- package/src/providers/theme-provider.tsx +0 -16
- package/src/providers/uploader-provider.tsx +0 -53
- package/src/styles/globals.css +0 -38
- package/src/styles/hero.ts +0 -3
- package/src/styles/index.css +0 -18
- package/src/types/components/atoms/brand.ts +0 -13
- package/src/types/components/atoms/color-picker/color-picker.ts +0 -21
- package/src/types/components/atoms/color-picker/index.ts +0 -1
- package/src/types/components/atoms/column.ts +0 -3
- package/src/types/components/atoms/container.ts +0 -3
- package/src/types/components/atoms/field/field.ts +0 -61
- package/src/types/components/atoms/field/index.ts +0 -1
- package/src/types/components/atoms/filter/filter.ts +0 -52
- package/src/types/components/atoms/filter/index.ts +0 -2
- package/src/types/components/atoms/filter/select-filter.ts +0 -8
- package/src/types/components/atoms/index.ts +0 -9
- package/src/types/components/atoms/portal.ts +0 -6
- package/src/types/components/atoms/row.ts +0 -3
- package/src/types/components/atoms/uploader.ts +0 -103
- package/src/types/components/index.ts +0 -4
- package/src/types/components/molecules/footer/footer.ts +0 -68
- package/src/types/components/molecules/footer/index.ts +0 -1
- package/src/types/components/molecules/header/header.ts +0 -51
- package/src/types/components/molecules/header/index.ts +0 -1
- package/src/types/components/molecules/index.ts +0 -9
- package/src/types/components/molecules/item-card/index.ts +0 -1
- package/src/types/components/molecules/item-card/item-card.ts +0 -69
- package/src/types/components/molecules/item-details/index.ts +0 -1
- package/src/types/components/molecules/item-details/item-details.ts +0 -9
- package/src/types/components/molecules/listings/index.ts +0 -1
- package/src/types/components/molecules/listings/listings.ts +0 -29
- package/src/types/components/molecules/nav-bar/index.ts +0 -1
- package/src/types/components/molecules/nav-bar/nav-bar.ts +0 -66
- package/src/types/components/molecules/scaffold/index.ts +0 -1
- package/src/types/components/molecules/scaffold/scaffold.ts +0 -9
- package/src/types/components/molecules/side-bar/index.ts +0 -1
- package/src/types/components/molecules/side-bar/side-bar.ts +0 -40
- package/src/types/components/molecules/theme-switch/index.ts +0 -1
- package/src/types/components/molecules/theme-switch/theme-switch.ts +0 -9
- package/src/types/components/organisms/deletion-confirmor/deletion-confirmor.ts +0 -22
- package/src/types/components/organisms/deletion-confirmor/index.ts +0 -1
- package/src/types/components/organisms/filters/filters.ts +0 -11
- package/src/types/components/organisms/filters/index.ts +0 -1
- package/src/types/components/organisms/form-builder/context.ts +0 -6
- package/src/types/components/organisms/form-builder/form-builder.ts +0 -39
- package/src/types/components/organisms/form-builder/index.ts +0 -2
- package/src/types/components/organisms/index.ts +0 -3
- package/src/types/components/templates/index.ts +0 -1
- package/src/types/components/templates/landing-page.ts +0 -10
- package/src/types/context/config.ts +0 -24
- package/src/types/context/index.ts +0 -4
- package/src/types/context/localization.ts +0 -24
- package/src/types/context/navigation.ts +0 -17
- package/src/types/context/theme.ts +0 -33
- package/src/types/index.ts +0 -3
- package/src/types/shared/components.ts +0 -13
- package/src/types/shared/index.ts +0 -1
- package/src/utils/cn.ts +0 -6
- package/src/utils/compress-images.ts +0 -36
- package/src/utils/index.ts +0 -5
- package/src/utils/locales.ts +0 -54
- package/src/utils/storybook.tsx +0 -15
- package/src/utils/uploader.ts +0 -170
- package/tsconfig.app.json +0 -37
- package/tsconfig.json +0 -7
- package/tsconfig.node.json +0 -25
- package/vite.config.ts +0 -47
- package/vitest.shims.d.ts +0 -1
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ConfigProviderProps } from "@/types";
|
|
2
|
-
import { ConfigProvider, NavigationProvider } from "@/providers";
|
|
3
|
-
import { HeroUIProvider } from "@heroui/system";
|
|
4
|
-
import { ToastProvider } from "@heroui/toast";
|
|
5
|
-
import { ThemeProvider } from "next-themes";
|
|
6
|
-
|
|
7
|
-
type EmperorUIProviderProps = ConfigProviderProps & {};
|
|
8
|
-
|
|
9
|
-
export function EmperorUIProvider({
|
|
10
|
-
children,
|
|
11
|
-
...props
|
|
12
|
-
}: EmperorUIProviderProps) {
|
|
13
|
-
return (
|
|
14
|
-
<ConfigProvider {...props}>
|
|
15
|
-
<HeroUIProvider>
|
|
16
|
-
<NavigationProvider>
|
|
17
|
-
<ThemeProvider>
|
|
18
|
-
<ToastProvider
|
|
19
|
-
placement="top-center"
|
|
20
|
-
toastProps={{
|
|
21
|
-
radius: "lg",
|
|
22
|
-
size: "lg",
|
|
23
|
-
color: "primary",
|
|
24
|
-
variant: "flat",
|
|
25
|
-
timeout: 4000,
|
|
26
|
-
}}
|
|
27
|
-
{...props?.config?.toast}
|
|
28
|
-
/>
|
|
29
|
-
{children}
|
|
30
|
-
</ThemeProvider>
|
|
31
|
-
</NavigationProvider>
|
|
32
|
-
</HeroUIProvider>
|
|
33
|
-
</ConfigProvider>
|
|
34
|
-
);
|
|
35
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { FieldValues } from "react-hook-form";
|
|
2
|
-
import type { ReactNode } from "react";
|
|
3
|
-
import { FormBuilderValue } from "@/types";
|
|
4
|
-
import { FormBuilderContext } from "@/context";
|
|
5
|
-
|
|
6
|
-
export function FormBuilderProvider<TSchema extends FieldValues>({
|
|
7
|
-
children,
|
|
8
|
-
value,
|
|
9
|
-
}: {
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
value: FormBuilderValue<TSchema>;
|
|
12
|
-
}) {
|
|
13
|
-
return (
|
|
14
|
-
<FormBuilderContext.Provider value={value as FormBuilderValue<FieldValues>}>
|
|
15
|
-
{children}
|
|
16
|
-
</FormBuilderContext.Provider>
|
|
17
|
-
);
|
|
18
|
-
}
|
package/src/providers/index.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
NavigationProviderProps,
|
|
3
|
-
NavigationContextState,
|
|
4
|
-
NavigationItem,
|
|
5
|
-
} from "@/types";
|
|
6
|
-
import { useMemo, useState } from "react";
|
|
7
|
-
import { NavigationContext } from "@/context";
|
|
8
|
-
import { PreservedKeys } from "@/enums";
|
|
9
|
-
|
|
10
|
-
export function NavigationProvider({ children }: NavigationProviderProps) {
|
|
11
|
-
const [hoveredItemId, setHoveredItemId] = useState<string | null>(null);
|
|
12
|
-
const [subItems, setSubItems] = useState<NavigationItem[]>([]);
|
|
13
|
-
const [isSubItemsBoxOpen, setIsSubItemsBoxOpen] = useState(false);
|
|
14
|
-
const [subItemsBoxIsHovered, setSubItemsBoxIsHovered] = useState(false);
|
|
15
|
-
|
|
16
|
-
const navigationProviderValue: NavigationContextState = useMemo(() => {
|
|
17
|
-
return {
|
|
18
|
-
hoveredItemId,
|
|
19
|
-
subItems,
|
|
20
|
-
isSubItemsBoxOpen,
|
|
21
|
-
subItemsBoxIsHovered,
|
|
22
|
-
setHoveredItemId,
|
|
23
|
-
setSubItems,
|
|
24
|
-
setIsSubItemsBoxOpen,
|
|
25
|
-
setSubItemsBoxIsHovered,
|
|
26
|
-
};
|
|
27
|
-
}, [hoveredItemId, subItems, isSubItemsBoxOpen, subItemsBoxIsHovered]);
|
|
28
|
-
|
|
29
|
-
return (
|
|
30
|
-
<NavigationContext.Provider
|
|
31
|
-
value={navigationProviderValue}
|
|
32
|
-
data-slot="emperor-navigation-provider"
|
|
33
|
-
>
|
|
34
|
-
<div
|
|
35
|
-
id={PreservedKeys.COMPACT_SIDEBAR_ID}
|
|
36
|
-
data-slot="emperor-compact-sidebar"
|
|
37
|
-
/>
|
|
38
|
-
|
|
39
|
-
{children}
|
|
40
|
-
</NavigationContext.Provider>
|
|
41
|
-
);
|
|
42
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { ThemeProvider as NextThemesProvider } from "next-themes";
|
|
4
|
-
import { ReactNode } from "react";
|
|
5
|
-
|
|
6
|
-
export type ThemeProviderProps = {
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export function ThemeProvider({ children }: ThemeProviderProps) {
|
|
11
|
-
return (
|
|
12
|
-
<NextThemesProvider attribute="class" defaultTheme="system" enableSystem>
|
|
13
|
-
{children}
|
|
14
|
-
</NextThemesProvider>
|
|
15
|
-
);
|
|
16
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
UploaderProviderProps,
|
|
3
|
-
UploaderContextState,
|
|
4
|
-
FileObject,
|
|
5
|
-
} from "@/types";
|
|
6
|
-
import { useMemo, useState } from "react";
|
|
7
|
-
import { UploaderContext } from "@/context";
|
|
8
|
-
import { useDisclosure } from "@heroui/modal";
|
|
9
|
-
|
|
10
|
-
export function UploaderProvider({
|
|
11
|
-
children,
|
|
12
|
-
...props
|
|
13
|
-
}: UploaderProviderProps) {
|
|
14
|
-
const { isOpen, onOpen, onOpenChange } = useDisclosure();
|
|
15
|
-
const [selectedFile, setSelectedFile] = useState<FileObject | null>(null);
|
|
16
|
-
|
|
17
|
-
const isFileViewable = useMemo(
|
|
18
|
-
() =>
|
|
19
|
-
!!selectedFile?.view &&
|
|
20
|
-
!!selectedFile?.file?.name &&
|
|
21
|
-
selectedFile?.type === "image",
|
|
22
|
-
[selectedFile],
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
const uploaderProviderValue: UploaderContextState = useMemo(() => {
|
|
26
|
-
return {
|
|
27
|
-
isOpen,
|
|
28
|
-
onOpen,
|
|
29
|
-
onOpenChange,
|
|
30
|
-
selectedFile,
|
|
31
|
-
setSelectedFile,
|
|
32
|
-
isFileViewable,
|
|
33
|
-
...props,
|
|
34
|
-
};
|
|
35
|
-
}, [
|
|
36
|
-
isOpen,
|
|
37
|
-
isFileViewable,
|
|
38
|
-
selectedFile,
|
|
39
|
-
onOpen,
|
|
40
|
-
onOpenChange,
|
|
41
|
-
setSelectedFile,
|
|
42
|
-
props,
|
|
43
|
-
]);
|
|
44
|
-
|
|
45
|
-
return (
|
|
46
|
-
<UploaderContext.Provider
|
|
47
|
-
value={uploaderProviderValue}
|
|
48
|
-
data-slot="emperor-uploader-provider"
|
|
49
|
-
>
|
|
50
|
-
{children}
|
|
51
|
-
</UploaderContext.Provider>
|
|
52
|
-
);
|
|
53
|
-
}
|
package/src/styles/globals.css
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
@import "tailwindcss";
|
|
2
|
-
@plugin './hero.ts';
|
|
3
|
-
@source '../../node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}';
|
|
4
|
-
|
|
5
|
-
/* @custom-variant dark (&:is(.dark *)); */
|
|
6
|
-
|
|
7
|
-
.scrollbar-hide {
|
|
8
|
-
-ms-overflow-style: none; /* IE and Edge */
|
|
9
|
-
scrollbar-width: none; /* Firefox */
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.scrollbar-hide::-webkit-scrollbar {
|
|
13
|
-
display: none; /* Chrome, Safari, Opera */
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/* Rounded corners and compact size for native color input swatch */
|
|
17
|
-
.color-swatch {
|
|
18
|
-
width: 1.25rem;
|
|
19
|
-
height: 1.25rem;
|
|
20
|
-
min-width: 1.25rem;
|
|
21
|
-
min-height: 1.25rem;
|
|
22
|
-
cursor: pointer;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.color-swatch::-webkit-color-swatch-wrapper {
|
|
26
|
-
padding: 0;
|
|
27
|
-
border-radius: 0.375rem;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.color-swatch::-webkit-color-swatch {
|
|
31
|
-
border: none;
|
|
32
|
-
border-radius: 0.375rem;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.color-swatch::-moz-color-swatch {
|
|
36
|
-
border: none;
|
|
37
|
-
border-radius: 0.375rem;
|
|
38
|
-
}
|
package/src/styles/hero.ts
DELETED
package/src/styles/index.css
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
@import "tailwindcss";
|
|
2
|
-
|
|
3
|
-
:root {
|
|
4
|
-
line-height: 1.5;
|
|
5
|
-
font-weight: 400;
|
|
6
|
-
color-scheme: light dark;
|
|
7
|
-
font-synthesis: none;
|
|
8
|
-
text-rendering: optimizeLegibility;
|
|
9
|
-
-webkit-font-smoothing: antialiased;
|
|
10
|
-
-moz-osx-font-smoothing: grayscale;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
html,
|
|
14
|
-
body {
|
|
15
|
-
margin: 0;
|
|
16
|
-
padding: 0;
|
|
17
|
-
box-sizing: border-box;
|
|
18
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { SharedComponentProps } from "@/types";
|
|
2
|
-
|
|
3
|
-
export type BrandProps = SharedComponentProps & {
|
|
4
|
-
src?: string;
|
|
5
|
-
alt?: string;
|
|
6
|
-
name?: string;
|
|
7
|
-
isIconOnly?: boolean;
|
|
8
|
-
classNames?: {
|
|
9
|
-
base?: string;
|
|
10
|
-
logo?: string;
|
|
11
|
-
name?: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { InputProps } from "@heroui/input";
|
|
2
|
-
import { SelectProps } from "@heroui/select";
|
|
3
|
-
|
|
4
|
-
export type ColorPickerInputType = "free" | "preset";
|
|
5
|
-
|
|
6
|
-
export type ColorPickerProps = Omit<
|
|
7
|
-
InputProps & SelectProps,
|
|
8
|
-
| "onChange"
|
|
9
|
-
| "onValueChange"
|
|
10
|
-
| "onSelectionChange"
|
|
11
|
-
| "children"
|
|
12
|
-
| "selectedKeys"
|
|
13
|
-
| "defaultSelectedKeys"
|
|
14
|
-
| "value"
|
|
15
|
-
> & {
|
|
16
|
-
inputType: ColorPickerInputType;
|
|
17
|
-
presets?: string[];
|
|
18
|
-
onChange?: (value: string) => void;
|
|
19
|
-
value?: string;
|
|
20
|
-
defaultValue?: string;
|
|
21
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./color-picker";
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import type { SharedComponentProps } from "@/types";
|
|
2
|
-
import type {
|
|
3
|
-
AutocompleteItemProps,
|
|
4
|
-
AutocompleteProps,
|
|
5
|
-
} from "@heroui/autocomplete";
|
|
6
|
-
import type { CheckboxProps } from "@heroui/checkbox";
|
|
7
|
-
import type { InputProps, TextAreaProps } from "@heroui/input";
|
|
8
|
-
import type { RadioGroupProps } from "@heroui/radio";
|
|
9
|
-
import type { SelectItemProps, SelectProps } from "@heroui/select";
|
|
10
|
-
import type { SwitchProps } from "@heroui/switch";
|
|
11
|
-
import type { FieldValues, Path } from "react-hook-form";
|
|
12
|
-
|
|
13
|
-
export type FieldClassnames = {
|
|
14
|
-
base?: string;
|
|
15
|
-
field?: string;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export type FieldType =
|
|
19
|
-
| "input"
|
|
20
|
-
| "textarea"
|
|
21
|
-
| "checkbox"
|
|
22
|
-
| "select"
|
|
23
|
-
| "autocomplete"
|
|
24
|
-
| "switch"
|
|
25
|
-
| "radio";
|
|
26
|
-
|
|
27
|
-
export type FieldOption = {
|
|
28
|
-
key: string;
|
|
29
|
-
label: string;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
type FieldTypesProps = {
|
|
33
|
-
inputProps?: InputProps;
|
|
34
|
-
textareaProps?: TextAreaProps;
|
|
35
|
-
checkboxProps?: CheckboxProps;
|
|
36
|
-
selectProps?: Omit<
|
|
37
|
-
SelectProps,
|
|
38
|
-
"children" | "selectedKeys" | "onSelectionChange"
|
|
39
|
-
>;
|
|
40
|
-
selectItemProps?: SelectItemProps;
|
|
41
|
-
autocompleteProps?: Omit<
|
|
42
|
-
AutocompleteProps,
|
|
43
|
-
"children" | "selectedKey" | "onSelectionChange"
|
|
44
|
-
>;
|
|
45
|
-
autocompleteItemProps?: AutocompleteItemProps;
|
|
46
|
-
switchProps?: SwitchProps;
|
|
47
|
-
radioGroupProps?: Omit<
|
|
48
|
-
RadioGroupProps,
|
|
49
|
-
"children" | "value" | "onValueChange"
|
|
50
|
-
>;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
type SharedFieldProps<TFieldValues extends FieldValues> = {
|
|
54
|
-
classNames?: FieldClassnames;
|
|
55
|
-
type: FieldType;
|
|
56
|
-
name: Path<TFieldValues>;
|
|
57
|
-
options?: FieldOption[];
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export type FieldProps<TFieldValues extends FieldValues = FieldValues> =
|
|
61
|
-
SharedComponentProps & FieldTypesProps & SharedFieldProps<TFieldValues>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type * from "./field";
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { SelectFilterProps, SharedComponentProps } from "@/types";
|
|
2
|
-
import { AutocompleteItemProps, AutocompleteProps } from "@heroui/autocomplete";
|
|
3
|
-
import { CheckboxGroupProps } from "@heroui/checkbox";
|
|
4
|
-
import { CheckboxProps } from "@heroui/checkbox";
|
|
5
|
-
import { DatePickerProps } from "@heroui/date-picker";
|
|
6
|
-
import { InputProps } from "@heroui/input";
|
|
7
|
-
import { RadioProps } from "@heroui/radio";
|
|
8
|
-
import { SelectItemProps, SelectProps } from "@heroui/select";
|
|
9
|
-
import { SliderProps } from "@heroui/slider";
|
|
10
|
-
import { SwitchProps } from "@heroui/switch";
|
|
11
|
-
|
|
12
|
-
export type FilterClassnames = {
|
|
13
|
-
base?: string;
|
|
14
|
-
field?: string;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export type FilterType =
|
|
18
|
-
| "search"
|
|
19
|
-
| "select"
|
|
20
|
-
| "autocomplete"
|
|
21
|
-
| "date"
|
|
22
|
-
| "numeric"
|
|
23
|
-
| "checkbox"
|
|
24
|
-
| "checkboxGroup"
|
|
25
|
-
| "switch"
|
|
26
|
-
| "range";
|
|
27
|
-
|
|
28
|
-
type FilterTypesProps = {
|
|
29
|
-
searchProps?: InputProps;
|
|
30
|
-
selectProps?: Omit<SelectProps, "children">;
|
|
31
|
-
selectItemProps?: SelectItemProps;
|
|
32
|
-
autocompleteProps?: Omit<AutocompleteProps, "children">;
|
|
33
|
-
autocompleteItemProps?: AutocompleteItemProps;
|
|
34
|
-
dateProps?: DatePickerProps;
|
|
35
|
-
numericProps?: InputProps;
|
|
36
|
-
checkboxProps?: CheckboxProps;
|
|
37
|
-
checkboxGroupProps?: Omit<CheckboxGroupProps, "children">;
|
|
38
|
-
radioProps?: RadioProps;
|
|
39
|
-
switchProps?: SwitchProps;
|
|
40
|
-
rangeProps?: SliderProps;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
type SharedFilterProps = {
|
|
44
|
-
classNames?: FilterClassnames;
|
|
45
|
-
type: FilterType;
|
|
46
|
-
paramKey: string;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export type FilterProps = SharedComponentProps &
|
|
50
|
-
SelectFilterProps &
|
|
51
|
-
FilterTypesProps &
|
|
52
|
-
SharedFilterProps;
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import type { SharedComponentProps } from "@/types";
|
|
2
|
-
import { ModalProps } from "@heroui/modal";
|
|
3
|
-
import { Dispatch, ReactNode, SetStateAction } from "react";
|
|
4
|
-
import type { Locale } from "@/i18n";
|
|
5
|
-
|
|
6
|
-
export type UploaderProps = SharedComponentProps &
|
|
7
|
-
UploaderContextState & {
|
|
8
|
-
className?: string;
|
|
9
|
-
hideListing?: boolean;
|
|
10
|
-
isAvatar?: boolean;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export type FileType = "image" | "doc" | "pdf" | "video" | "sheet";
|
|
14
|
-
|
|
15
|
-
export type FileObject = {
|
|
16
|
-
view?: string;
|
|
17
|
-
type?: FileType;
|
|
18
|
-
file?: File;
|
|
19
|
-
url?: string;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export type SharedFilesType = FileObject[];
|
|
23
|
-
|
|
24
|
-
export type SharedLabelIdType = string;
|
|
25
|
-
|
|
26
|
-
export type SharedOnInputChangeType = (
|
|
27
|
-
event: React.ChangeEvent<HTMLInputElement> &
|
|
28
|
-
React.DragEvent<HTMLLabelElement>,
|
|
29
|
-
) => Promise<void | string | null>;
|
|
30
|
-
|
|
31
|
-
export type UseUploadFileProps = {
|
|
32
|
-
labelId: string;
|
|
33
|
-
fileTypes: FileType[];
|
|
34
|
-
labelContent?: ReactNode;
|
|
35
|
-
isRequired?: boolean;
|
|
36
|
-
isMulti?: boolean;
|
|
37
|
-
isDraggable?: boolean;
|
|
38
|
-
maxCount?: number;
|
|
39
|
-
maxFileSize?: number; // in Kilobytes
|
|
40
|
-
compressFiles?: boolean;
|
|
41
|
-
preventDuplicates?: boolean;
|
|
42
|
-
onChange?: () => void;
|
|
43
|
-
locales?: Partial<Locale["atoms"]["uploader"]>;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
export type UseUploadFileReturn = {
|
|
47
|
-
files: FileObject[];
|
|
48
|
-
fileTypes: FileType[];
|
|
49
|
-
labelId: string;
|
|
50
|
-
isRequired: boolean;
|
|
51
|
-
labelContent: ReactNode;
|
|
52
|
-
isDraggable: boolean;
|
|
53
|
-
isMulti: boolean;
|
|
54
|
-
isLoading: boolean;
|
|
55
|
-
setFiles: Dispatch<SetStateAction<FileObject[]>>;
|
|
56
|
-
handleClearFile: (fileName?: string) => void;
|
|
57
|
-
onInputChange: SharedOnInputChangeType;
|
|
58
|
-
locales?: Partial<Locale["atoms"]["uploader"]>;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export type UploaderContextState = {
|
|
62
|
-
selectedFile?: FileObject | null;
|
|
63
|
-
setSelectedFile?: (file: FileObject | null) => void;
|
|
64
|
-
|
|
65
|
-
labelId: SharedLabelIdType;
|
|
66
|
-
labelContent?: ReactNode;
|
|
67
|
-
avatarLabelContent?: ReactNode;
|
|
68
|
-
title?: ReactNode;
|
|
69
|
-
errorMessage?: ReactNode;
|
|
70
|
-
|
|
71
|
-
isFileViewable?: boolean;
|
|
72
|
-
isRequired?: boolean;
|
|
73
|
-
isDraggable?: boolean;
|
|
74
|
-
isLoading: boolean;
|
|
75
|
-
hideErrorMessage?: boolean;
|
|
76
|
-
isMulti: boolean;
|
|
77
|
-
|
|
78
|
-
placeholderImage?: string;
|
|
79
|
-
files: SharedFilesType;
|
|
80
|
-
fileTypes: FileType[];
|
|
81
|
-
|
|
82
|
-
onInputChange: SharedOnInputChangeType;
|
|
83
|
-
handleClearFile: (fileName?: string) => void;
|
|
84
|
-
setFiles?: Dispatch<SetStateAction<FileObject[]>>;
|
|
85
|
-
|
|
86
|
-
modal?: Omit<ModalProps, "children"> & {
|
|
87
|
-
onOpen?: () => void;
|
|
88
|
-
};
|
|
89
|
-
classNames?: {
|
|
90
|
-
label?: string;
|
|
91
|
-
avatar?: string;
|
|
92
|
-
listing?: string;
|
|
93
|
-
listingItem?: string;
|
|
94
|
-
error?: string;
|
|
95
|
-
input?: string;
|
|
96
|
-
title?: string;
|
|
97
|
-
};
|
|
98
|
-
locales?: Partial<Locale["atoms"]["uploader"]>;
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
export type UploaderProviderProps = UploaderContextState & {
|
|
102
|
-
children: ReactNode;
|
|
103
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import type { SharedComponentProps } from "@/types";
|
|
2
|
-
import { ReactNode } from "react";
|
|
3
|
-
|
|
4
|
-
export type FooterClassnames = {
|
|
5
|
-
base?: string;
|
|
6
|
-
content?: string;
|
|
7
|
-
policiesWrapper?: string;
|
|
8
|
-
policy?: string;
|
|
9
|
-
quickLinksWrapper?: string;
|
|
10
|
-
quickLinksTitle?: string;
|
|
11
|
-
quickLinksList?: string;
|
|
12
|
-
quickLinksItem?: string;
|
|
13
|
-
quickLinksLink?: string;
|
|
14
|
-
socialLinksWrapper?: string;
|
|
15
|
-
socialLink?: string;
|
|
16
|
-
copyRightsWrapper?: string;
|
|
17
|
-
copyRightsText?: string;
|
|
18
|
-
contactsWrapper?: string;
|
|
19
|
-
contact?: string;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export type QuickLink = {
|
|
23
|
-
label: string;
|
|
24
|
-
href: string;
|
|
25
|
-
isExternal?: boolean;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export type QuickLinkCollection = {
|
|
29
|
-
title?: string;
|
|
30
|
-
links: QuickLink[];
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export type SocialLink = {
|
|
34
|
-
label?: string;
|
|
35
|
-
href: string;
|
|
36
|
-
icon?: ReactNode;
|
|
37
|
-
isExternal?: boolean;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export type Address = {
|
|
41
|
-
country?: string;
|
|
42
|
-
street?: string;
|
|
43
|
-
city?: string;
|
|
44
|
-
state?: string;
|
|
45
|
-
zip?: string;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export type CopyRights = {
|
|
49
|
-
year: number;
|
|
50
|
-
text: string;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export type Contacts = {
|
|
54
|
-
mobile?: string;
|
|
55
|
-
email?: string;
|
|
56
|
-
addresses?: Address[];
|
|
57
|
-
website?: string;
|
|
58
|
-
workingHours?: string;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export type FooterProps = SharedComponentProps & {
|
|
62
|
-
classNames?: FooterClassnames;
|
|
63
|
-
policies?: QuickLink[];
|
|
64
|
-
quickLinks?: QuickLinkCollection[];
|
|
65
|
-
socialLinks?: SocialLink[];
|
|
66
|
-
copyRights?: CopyRights;
|
|
67
|
-
contacts?: Contacts;
|
|
68
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type * from "./footer";
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { SharedComponentProps } from "@/types";
|
|
2
|
-
|
|
3
|
-
export type HeaderClassnames = {
|
|
4
|
-
base?: string;
|
|
5
|
-
logo?: string;
|
|
6
|
-
navbar?: string;
|
|
7
|
-
userDropdown?: string;
|
|
8
|
-
sideMenu?: string;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export type HeaderActivations = {
|
|
12
|
-
hideLog?: boolean;
|
|
13
|
-
hideNavbar?: boolean;
|
|
14
|
-
hideUserDropdown?: boolean;
|
|
15
|
-
hideSideMenu?: boolean;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export type HeaderVariant =
|
|
19
|
-
| "default"
|
|
20
|
-
| "floating"
|
|
21
|
-
| "light"
|
|
22
|
-
| "segmented-floating";
|
|
23
|
-
|
|
24
|
-
export type HeaderGlassEffect = {
|
|
25
|
-
enabled?: boolean;
|
|
26
|
-
blur?: number;
|
|
27
|
-
backgroundColor?: string;
|
|
28
|
-
foregroundColor?: string;
|
|
29
|
-
opacity?: number;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export type HeaderProps = SharedComponentProps & {
|
|
33
|
-
variant?: HeaderVariant;
|
|
34
|
-
classNames?: HeaderClassnames;
|
|
35
|
-
glassEffect?: HeaderGlassEffect;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export type HeaderDropdownProps = SharedComponentProps & {};
|
|
39
|
-
|
|
40
|
-
export type UserDropdownProps = SharedComponentProps & {};
|
|
41
|
-
|
|
42
|
-
export type HeaderStylesProps = {
|
|
43
|
-
primaryColor?: string;
|
|
44
|
-
foregroundColor?: string;
|
|
45
|
-
variant?: HeaderVariant;
|
|
46
|
-
glassEffect?: HeaderGlassEffect;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export type SegmentedHeaderContentProps = SharedComponentProps & {
|
|
50
|
-
glassEffect?: HeaderGlassEffect;
|
|
51
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type * from "./header";
|