@iniguezmarc/design-system 0.0.7 → 0.0.8
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/App.d.ts +2 -0
- package/dist/components/atoms/Avatar/Avatar.d.ts +3 -0
- package/dist/components/atoms/Avatar/BasicAvatar.d.ts +19 -0
- package/dist/components/atoms/Avatar/StatusAvatar.d.ts +9 -0
- package/dist/components/atoms/Badge/Badge.d.ts +3 -0
- package/dist/components/atoms/Badge/BasicBadge.d.ts +20 -0
- package/dist/components/atoms/Badge/RemovableBadge.d.ts +6 -0
- package/dist/components/atoms/Button/BasicButton.d.ts +27 -0
- package/dist/components/atoms/Button/Button.d.ts +3 -0
- package/dist/components/atoms/Button/ThreeDButton.d.ts +2 -0
- package/dist/components/atoms/Input/BasicInput.d.ts +29 -0
- package/dist/components/atoms/Input/Input.d.ts +3 -0
- package/dist/components/atoms/Input/PasswordInput.d.ts +5 -0
- package/dist/components/atoms/Toggle/BasicToggle.d.ts +17 -0
- package/dist/components/atoms/Toggle/LanguageToggle.d.ts +16 -0
- package/dist/components/atoms/Toggle/ThemeToggle.d.ts +11 -0
- package/dist/components/molecules/ProjectCard/BasicProjectCard.d.ts +28 -0
- package/dist/components/molecules/ProjectCard/ProjectCard.d.ts +3 -0
- package/dist/{src/components/organisms/ContentGrid/ContentGrid.d.ts → components/organisms/ContentGrid/BasicContentGrid.d.ts} +6 -3
- package/dist/components/organisms/ContentGrid/ContentGrid.d.ts +3 -0
- package/dist/components/organisms/Footer/BasicFooter.d.ts +29 -0
- package/dist/components/organisms/Footer/Footer.d.ts +3 -0
- package/dist/components/organisms/Hero/BasicHero.d.ts +29 -0
- package/dist/components/organisms/Hero/Hero.d.ts +3 -0
- package/dist/components/organisms/Navbar/BasicNavbar.d.ts +39 -0
- package/dist/components/organisms/Navbar/Navbar.d.ts +5 -0
- package/dist/components/organisms/Navbar/ScrollNavbar.d.ts +30 -0
- package/dist/{src/components/organisms/ProfileSection/ProfileSection.d.ts → components/organisms/ProfileSection/BasicProfileSection.d.ts} +10 -3
- package/dist/components/organisms/ProfileSection/ProfileSection.d.ts +3 -0
- package/dist/index.d.ts +11 -1
- package/dist/main.d.ts +0 -0
- package/package.json +1 -1
- package/dist/src/components/atoms/Avatar/Avatar.d.ts +0 -14
- package/dist/src/components/atoms/Badge/Badge.d.ts +0 -11
- package/dist/src/components/atoms/Button/Button.d.ts +0 -11
- package/dist/src/components/atoms/Input/Input.d.ts +0 -7
- package/dist/src/components/organisms/Footer/Footer.d.ts +0 -22
- package/dist/src/components/organisms/Hero/Hero.d.ts +0 -22
package/dist/App.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface AvatarSlots {
|
|
2
|
+
container?: string;
|
|
3
|
+
image?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface AvatarProps {
|
|
6
|
+
src: string;
|
|
7
|
+
alt?: string;
|
|
8
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
9
|
+
imageFit?: 'cover' | 'contain';
|
|
10
|
+
customStyles?: AvatarSlots;
|
|
11
|
+
className?: string;
|
|
12
|
+
borderColor?: string;
|
|
13
|
+
darkBorderColor?: string;
|
|
14
|
+
backgroundColor?: string;
|
|
15
|
+
darkBackgroundColor?: string;
|
|
16
|
+
/** Image loading strategy */
|
|
17
|
+
loading?: "eager" | "lazy";
|
|
18
|
+
}
|
|
19
|
+
export declare const BasicAvatar: ({ src, alt, size, imageFit, customStyles, className, borderColor, darkBorderColor, backgroundColor, darkBackgroundColor, loading, }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AvatarProps } from './BasicAvatar';
|
|
2
|
+
export type AvatarStatus = 'online' | 'offline' | 'busy' | 'away';
|
|
3
|
+
export interface StatusAvatarProps extends AvatarProps {
|
|
4
|
+
status?: AvatarStatus;
|
|
5
|
+
statusColor?: string;
|
|
6
|
+
statusBorderColor?: string;
|
|
7
|
+
darkStatusBorderColor?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const StatusAvatar: ({ status, statusColor, statusBorderColor, darkStatusBorderColor, className, customStyles, ...props }: StatusAvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface BadgeSlots {
|
|
2
|
+
container?: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface BadgeProps {
|
|
6
|
+
label: string;
|
|
7
|
+
variant?: 'primary' | 'secondary' | 'outline' | 'success';
|
|
8
|
+
customStyles?: BadgeSlots;
|
|
9
|
+
className?: string;
|
|
10
|
+
primaryColor?: string;
|
|
11
|
+
darkPrimaryColor?: string;
|
|
12
|
+
secondaryColor?: string;
|
|
13
|
+
darkSecondaryColor?: string;
|
|
14
|
+
outlineColor?: string;
|
|
15
|
+
darkOutlineColor?: string;
|
|
16
|
+
successColor?: string;
|
|
17
|
+
darkSuccessColor?: string;
|
|
18
|
+
endIcon?: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
export declare const BasicBadge: ({ label, variant, customStyles, className, endIcon, primaryColor, darkPrimaryColor, secondaryColor, darkSecondaryColor, outlineColor, darkOutlineColor, successColor, darkSuccessColor, }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BadgeProps } from './BasicBadge';
|
|
2
|
+
export interface RemovableBadgeProps extends BadgeProps {
|
|
3
|
+
onRemove?: () => void;
|
|
4
|
+
removeIcon?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const RemovableBadge: ({ onRemove, removeIcon, className, customStyles, ...props }: RemovableBadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface ButtonSlots {
|
|
2
|
+
container?: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ButtonProps {
|
|
6
|
+
label: string;
|
|
7
|
+
variant?: 'primary' | 'secondary' | 'outline';
|
|
8
|
+
size?: 'small' | 'medium' | 'large';
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
customStyles?: ButtonSlots;
|
|
12
|
+
href?: string;
|
|
13
|
+
target?: string;
|
|
14
|
+
primaryColor?: string;
|
|
15
|
+
primaryHoverColor?: string;
|
|
16
|
+
darkPrimaryColor?: string;
|
|
17
|
+
darkPrimaryHoverColor?: string;
|
|
18
|
+
secondaryColor?: string;
|
|
19
|
+
secondaryHoverColor?: string;
|
|
20
|
+
darkSecondaryColor?: string;
|
|
21
|
+
darkSecondaryHoverColor?: string;
|
|
22
|
+
outlineColor?: string;
|
|
23
|
+
outlineHoverColor?: string;
|
|
24
|
+
darkOutlineColor?: string;
|
|
25
|
+
darkOutlineHoverColor?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const BasicButton: ({ label, variant, size, onClick, className, customStyles, href, target, primaryColor, primaryHoverColor, darkPrimaryColor, darkPrimaryHoverColor, secondaryColor, secondaryHoverColor, darkSecondaryColor, darkSecondaryHoverColor, outlineColor, outlineHoverColor, darkOutlineColor, darkOutlineHoverColor, }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface InputSlots {
|
|
3
|
+
container?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
input?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
iconContainer?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
10
|
+
label?: string;
|
|
11
|
+
error?: string;
|
|
12
|
+
customStyles?: InputSlots;
|
|
13
|
+
startIcon?: ReactNode;
|
|
14
|
+
endIcon?: ReactNode;
|
|
15
|
+
labelColor?: string;
|
|
16
|
+
darkLabelColor?: string;
|
|
17
|
+
inputBgColor?: string;
|
|
18
|
+
darkInputBgColor?: string;
|
|
19
|
+
inputBorderColor?: string;
|
|
20
|
+
darkInputBorderColor?: string;
|
|
21
|
+
inputTextColor?: string;
|
|
22
|
+
darkInputTextColor?: string;
|
|
23
|
+
focusRingColor?: string;
|
|
24
|
+
errorBorderColor?: string;
|
|
25
|
+
darkErrorBorderColor?: string;
|
|
26
|
+
errorTextColor?: string;
|
|
27
|
+
darkErrorTextColor?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const BasicInput: import('react').ForwardRefExoticComponent<InputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { InputProps } from './BasicInput';
|
|
3
|
+
export interface PasswordInputProps extends Omit<InputProps, 'type' | 'endIcon'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const PasswordInput: React.ForwardRefExoticComponent<PasswordInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface ToggleSlots {
|
|
2
|
+
container?: string;
|
|
3
|
+
icon?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface BasicToggleProps {
|
|
6
|
+
isToggled: boolean;
|
|
7
|
+
onToggle: () => void;
|
|
8
|
+
iconOn?: React.ReactNode;
|
|
9
|
+
iconOff?: React.ReactNode;
|
|
10
|
+
imageOn?: string;
|
|
11
|
+
imageOff?: string;
|
|
12
|
+
imageFit?: 'cover' | 'contain';
|
|
13
|
+
customStyles?: ToggleSlots;
|
|
14
|
+
className?: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const BasicToggle: ({ isToggled, onToggle, iconOn, iconOff, imageOn, imageOff, imageFit, customStyles, className, title }: BasicToggleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface LanguageToggleProps {
|
|
2
|
+
initialLanguage?: 'en' | 'es';
|
|
3
|
+
onLanguageChange?: (lang: 'en' | 'es') => void;
|
|
4
|
+
className?: string;
|
|
5
|
+
customStyles?: {
|
|
6
|
+
container?: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
};
|
|
9
|
+
englishColor?: string;
|
|
10
|
+
englishBorderColor?: string;
|
|
11
|
+
englishTextColor?: string;
|
|
12
|
+
spanishColor?: string;
|
|
13
|
+
spanishBorderColor?: string;
|
|
14
|
+
spanishTextColor?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const LanguageToggle: ({ initialLanguage, onLanguageChange, className, customStyles, englishColor, englishBorderColor, englishTextColor, spanishColor, spanishBorderColor, spanishTextColor, }: LanguageToggleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BasicToggleProps } from './BasicToggle';
|
|
2
|
+
export type { ToggleSlots as ThemeToggleSlots } from './BasicToggle';
|
|
3
|
+
export interface ThemeToggleProps extends Omit<BasicToggleProps, 'isToggled' | 'onToggle' | 'iconOn' | 'iconOff' | 'imageOn' | 'imageOff'> {
|
|
4
|
+
isDark?: boolean;
|
|
5
|
+
onToggle?: () => void;
|
|
6
|
+
iconSun?: React.ReactNode;
|
|
7
|
+
iconMoon?: React.ReactNode;
|
|
8
|
+
sunImage?: string;
|
|
9
|
+
moonImage?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const ThemeToggle: ({ isDark: externalIsDark, onToggle: externalOnToggle, iconSun, iconMoon, sunImage, moonImage, customStyles, ...props }: ThemeToggleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface ProjectCardSlots {
|
|
2
|
+
container?: string;
|
|
3
|
+
imageWrapper?: string;
|
|
4
|
+
content?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
tagsContainer?: string;
|
|
8
|
+
/** URL the button links to */
|
|
9
|
+
projectUrl?: string;
|
|
10
|
+
linkTarget?: '_self' | '_blank';
|
|
11
|
+
/** Optional callback (if you prefer onClick) */
|
|
12
|
+
onViewProject?: () => void;
|
|
13
|
+
}
|
|
14
|
+
export interface BasicProjectCardProps {
|
|
15
|
+
title: string;
|
|
16
|
+
description: string;
|
|
17
|
+
image: string;
|
|
18
|
+
tags?: string[];
|
|
19
|
+
projectUrl?: string;
|
|
20
|
+
linkTarget?: '_self' | '_blank';
|
|
21
|
+
orientation?: 'vertical' | 'horizontal';
|
|
22
|
+
actionLabel?: string;
|
|
23
|
+
onViewProject?: () => void;
|
|
24
|
+
/** Hooks to customize internal style parts */
|
|
25
|
+
customStyles?: ProjectCardSlots;
|
|
26
|
+
className?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const BasicProjectCard: ({ title, description, image, tags, orientation, actionLabel, projectUrl, linkTarget, onViewProject, customStyles, className }: BasicProjectCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,13 +10,16 @@ export interface ContentGridSlots {
|
|
|
10
10
|
container?: string;
|
|
11
11
|
title?: string;
|
|
12
12
|
}
|
|
13
|
-
interface
|
|
13
|
+
export interface BasicContentGridProps {
|
|
14
14
|
title?: string;
|
|
15
15
|
items: GridItem[];
|
|
16
16
|
layout?: 'grid' | 'list';
|
|
17
17
|
itemButtonLabel?: string;
|
|
18
18
|
onItemClick?: (id: string) => void;
|
|
19
19
|
customStyles?: ContentGridSlots;
|
|
20
|
+
backgroundColor?: string;
|
|
21
|
+
darkBackgroundColor?: string;
|
|
22
|
+
titleColor?: string;
|
|
23
|
+
darkTitleColor?: string;
|
|
20
24
|
}
|
|
21
|
-
export declare const
|
|
22
|
-
export {};
|
|
25
|
+
export declare const BasicContentGrid: ({ title, items, layout, itemButtonLabel, onItemClick, customStyles, backgroundColor, darkBackgroundColor, titleColor, darkTitleColor, }: BasicContentGridProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface SocialLink {
|
|
2
|
+
platform: string;
|
|
3
|
+
url: string;
|
|
4
|
+
}
|
|
5
|
+
export interface FooterLink {
|
|
6
|
+
label: string;
|
|
7
|
+
href: string;
|
|
8
|
+
}
|
|
9
|
+
export interface FooterSlots {
|
|
10
|
+
container?: string;
|
|
11
|
+
text?: string;
|
|
12
|
+
link?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface BasicFooterProps {
|
|
15
|
+
copyrightOwner: string;
|
|
16
|
+
socialLinks: SocialLink[];
|
|
17
|
+
copyrightText?: string;
|
|
18
|
+
secondaryLinks?: FooterLink[];
|
|
19
|
+
customStyles?: FooterSlots;
|
|
20
|
+
backgroundColor?: string;
|
|
21
|
+
darkBackgroundColor?: string;
|
|
22
|
+
borderColor?: string;
|
|
23
|
+
darkBorderColor?: string;
|
|
24
|
+
textColor?: string;
|
|
25
|
+
darkTextColor?: string;
|
|
26
|
+
linksColor?: string;
|
|
27
|
+
linksHoverColor?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const BasicFooter: ({ copyrightOwner, copyrightText, socialLinks, secondaryLinks, customStyles, backgroundColor, darkBackgroundColor, borderColor, darkBorderColor, textColor, darkTextColor, linksColor, linksHoverColor, }: BasicFooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface HeroAction {
|
|
2
|
+
label: string;
|
|
3
|
+
onClick: () => void;
|
|
4
|
+
variant?: 'primary' | 'secondary' | 'outline';
|
|
5
|
+
}
|
|
6
|
+
export interface HeroSlots {
|
|
7
|
+
container?: string;
|
|
8
|
+
content?: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
subtitle?: string;
|
|
11
|
+
imageWrapper?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface BasicHeroProps {
|
|
14
|
+
greeting?: string;
|
|
15
|
+
title: string;
|
|
16
|
+
subtitle: string;
|
|
17
|
+
imageUrl?: string;
|
|
18
|
+
actions?: HeroAction[];
|
|
19
|
+
customStyles?: HeroSlots;
|
|
20
|
+
backgroundColor?: string;
|
|
21
|
+
darkBackgroundColor?: string;
|
|
22
|
+
greetingColor?: string;
|
|
23
|
+
darkGreetingColor?: string;
|
|
24
|
+
titleColor?: string;
|
|
25
|
+
darkTitleColor?: string;
|
|
26
|
+
subtitleColor?: string;
|
|
27
|
+
darkSubtitleColor?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const BasicHero: ({ greeting, title, subtitle, imageUrl, actions, customStyles, backgroundColor, darkBackgroundColor, greetingColor, darkGreetingColor, titleColor, darkTitleColor, subtitleColor, darkSubtitleColor, }: BasicHeroProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
export interface NavbarLink {
|
|
3
|
+
label: string;
|
|
4
|
+
href: string;
|
|
5
|
+
active?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface NavbarAction {
|
|
8
|
+
label: string;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
variant?: 'primary' | 'secondary' | 'outline';
|
|
11
|
+
}
|
|
12
|
+
export interface NavbarSlots {
|
|
13
|
+
container?: string;
|
|
14
|
+
logo?: string;
|
|
15
|
+
link?: string;
|
|
16
|
+
mobileMenu?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface BasicNavbarProps {
|
|
19
|
+
logo?: string;
|
|
20
|
+
isLogoImage?: boolean;
|
|
21
|
+
links: NavbarLink[];
|
|
22
|
+
actions?: NavbarAction[];
|
|
23
|
+
customStyles?: NavbarSlots;
|
|
24
|
+
isOpen?: boolean;
|
|
25
|
+
onToggleMenu?: () => void;
|
|
26
|
+
onLinkClick?: (e: MouseEvent<HTMLAnchorElement>, href: string) => void;
|
|
27
|
+
onLogoClick?: () => void;
|
|
28
|
+
backgroundColor?: string;
|
|
29
|
+
darkBackgroundColor?: string;
|
|
30
|
+
borderColor?: string;
|
|
31
|
+
darkBorderColor?: string;
|
|
32
|
+
textColor?: string;
|
|
33
|
+
darkTextColor?: string;
|
|
34
|
+
activeLinkColor?: string;
|
|
35
|
+
darkActiveLinkColor?: string;
|
|
36
|
+
hoverLinkColor?: string;
|
|
37
|
+
darkHoverLinkColor?: string;
|
|
38
|
+
}
|
|
39
|
+
export declare const BasicNavbar: ({ logo, isLogoImage, links, actions, customStyles, isOpen, onToggleMenu, onLinkClick, onLogoClick, backgroundColor, darkBackgroundColor, borderColor, darkBorderColor, textColor, darkTextColor, activeLinkColor, darkActiveLinkColor, hoverLinkColor, darkHoverLinkColor, }: BasicNavbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ScrollNavbarProps, NavbarLink, NavbarAction, NavbarSlots } from './ScrollNavbar';
|
|
2
|
+
export interface NavbarProps extends Omit<ScrollNavbarProps, 'isOpen' | 'isScrolled' | 'onToggleMenu' | 'onLinkClick' | 'onLogoClick'> {
|
|
3
|
+
}
|
|
4
|
+
export declare const Navbar: (props: NavbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export type { NavbarLink, NavbarAction, NavbarSlots };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
export interface NavbarLink {
|
|
3
|
+
label: string;
|
|
4
|
+
href: string;
|
|
5
|
+
active?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface NavbarAction {
|
|
8
|
+
label: string;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
variant?: 'primary' | 'secondary' | 'outline';
|
|
11
|
+
}
|
|
12
|
+
export interface NavbarSlots {
|
|
13
|
+
container?: string;
|
|
14
|
+
logo?: string;
|
|
15
|
+
link?: string;
|
|
16
|
+
mobileMenu?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ScrollNavbarProps {
|
|
19
|
+
logo?: string;
|
|
20
|
+
isLogoImage?: boolean;
|
|
21
|
+
links: NavbarLink[];
|
|
22
|
+
actions?: NavbarAction[];
|
|
23
|
+
customStyles?: NavbarSlots;
|
|
24
|
+
isOpen?: boolean;
|
|
25
|
+
isScrolled?: boolean;
|
|
26
|
+
onToggleMenu?: () => void;
|
|
27
|
+
onLinkClick?: (e: MouseEvent<HTMLAnchorElement>, href: string) => void;
|
|
28
|
+
onLogoClick?: () => void;
|
|
29
|
+
}
|
|
30
|
+
export declare const ScrollNavbar: ({ logo, isLogoImage, links, actions, customStyles, isOpen, isScrolled, onToggleMenu, onLinkClick, onLogoClick }: ScrollNavbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,7 +6,7 @@ export interface ProfileSectionSlots {
|
|
|
6
6
|
bio?: string;
|
|
7
7
|
skillsTitle?: string;
|
|
8
8
|
}
|
|
9
|
-
interface
|
|
9
|
+
export interface BasicProfileSectionProps {
|
|
10
10
|
/** Section title (ex: About Me) */
|
|
11
11
|
title?: string;
|
|
12
12
|
/** Profile photo URL */
|
|
@@ -20,6 +20,13 @@ interface ProfileSectionProps {
|
|
|
20
20
|
/** Style hooks */
|
|
21
21
|
customStyles?: ProfileSectionSlots;
|
|
22
22
|
id?: string;
|
|
23
|
+
backgroundColor?: string;
|
|
24
|
+
darkBackgroundColor?: string;
|
|
25
|
+
borderColor?: string;
|
|
26
|
+
darkBorderColor?: string;
|
|
27
|
+
titleColor?: string;
|
|
28
|
+
darkTitleColor?: string;
|
|
29
|
+
textColor?: string;
|
|
30
|
+
darkTextColor?: string;
|
|
23
31
|
}
|
|
24
|
-
export declare const
|
|
25
|
-
export {};
|
|
32
|
+
export declare const BasicProfileSection: ({ title, avatarUrl, bio, skillsTitle, skills, customStyles, id, backgroundColor, darkBackgroundColor, borderColor, darkBorderColor, titleColor, darkTitleColor, textColor, darkTextColor, }: BasicProfileSectionProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './components/atoms/Avatar/Avatar';
|
|
2
|
+
export * from './components/atoms/Badge/Badge';
|
|
3
|
+
export * from './components/atoms/Button/Button';
|
|
4
|
+
export * from './components/atoms/Input/Input';
|
|
5
|
+
export * from './components/atoms/Toggle/ThemeToggle';
|
|
6
|
+
export * from './components/molecules/ProjectCard/ProjectCard';
|
|
7
|
+
export * from './components/organisms/ContentGrid/ContentGrid';
|
|
8
|
+
export * from './components/organisms/Footer/Footer';
|
|
9
|
+
export * from './components/organisms/Hero/Hero';
|
|
10
|
+
export * from './components/organisms/Navbar/Navbar';
|
|
11
|
+
export * from './components/organisms/ProfileSection/ProfileSection';
|
package/dist/main.d.ts
ADDED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface AvatarSlots {
|
|
2
|
-
container?: string;
|
|
3
|
-
image?: string;
|
|
4
|
-
}
|
|
5
|
-
interface AvatarProps {
|
|
6
|
-
src: string;
|
|
7
|
-
alt?: string;
|
|
8
|
-
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
9
|
-
imageFit?: 'cover' | 'contain';
|
|
10
|
-
customStyles?: AvatarSlots;
|
|
11
|
-
className?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const Avatar: ({ src, alt, size, imageFit, customStyles, className }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface BadgeSlots {
|
|
2
|
-
container?: string;
|
|
3
|
-
}
|
|
4
|
-
interface BadgeProps {
|
|
5
|
-
label: string;
|
|
6
|
-
variant?: 'primary' | 'secondary' | 'outline' | 'success';
|
|
7
|
-
customStyles?: BadgeSlots;
|
|
8
|
-
className?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const Badge: ({ label, variant, customStyles, className }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
interface ButtonProps {
|
|
2
|
-
label: string;
|
|
3
|
-
variant?: 'primary' | 'secondary' | 'danger' | 'outline';
|
|
4
|
-
size?: 'small' | 'medium' | 'large';
|
|
5
|
-
onClick?: () => void;
|
|
6
|
-
className?: string;
|
|
7
|
-
href?: string;
|
|
8
|
-
target?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const Button: ({ label, variant, size, onClick, className, href, target }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
-
label?: string;
|
|
4
|
-
error?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const Input: ({ label, error, className, ...props }: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
interface SocialLink {
|
|
2
|
-
platform: string;
|
|
3
|
-
url: string;
|
|
4
|
-
}
|
|
5
|
-
interface FooterLink {
|
|
6
|
-
label: string;
|
|
7
|
-
href: string;
|
|
8
|
-
}
|
|
9
|
-
export interface FooterSlots {
|
|
10
|
-
container?: string;
|
|
11
|
-
text?: string;
|
|
12
|
-
link?: string;
|
|
13
|
-
}
|
|
14
|
-
interface FooterProps {
|
|
15
|
-
copyrightOwner: string;
|
|
16
|
-
socialLinks: SocialLink[];
|
|
17
|
-
copyrightText?: string;
|
|
18
|
-
secondaryLinks?: FooterLink[];
|
|
19
|
-
customStyles?: FooterSlots;
|
|
20
|
-
}
|
|
21
|
-
export declare const Footer: ({ copyrightOwner, copyrightText, socialLinks, secondaryLinks, customStyles }: FooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface HeroAction {
|
|
2
|
-
label: string;
|
|
3
|
-
onClick: () => void;
|
|
4
|
-
variant?: 'primary' | 'secondary' | 'outline';
|
|
5
|
-
}
|
|
6
|
-
export interface HeroSlots {
|
|
7
|
-
container?: string;
|
|
8
|
-
content?: string;
|
|
9
|
-
title?: string;
|
|
10
|
-
subtitle?: string;
|
|
11
|
-
imageWrapper?: string;
|
|
12
|
-
}
|
|
13
|
-
interface HeroProps {
|
|
14
|
-
greeting?: string;
|
|
15
|
-
title: string;
|
|
16
|
-
subtitle: string;
|
|
17
|
-
imageUrl?: string;
|
|
18
|
-
actions?: HeroAction[];
|
|
19
|
-
customStyles?: HeroSlots;
|
|
20
|
-
}
|
|
21
|
-
export declare const Hero: ({ greeting, title, subtitle, imageUrl, actions, customStyles }: HeroProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export {};
|