formica-ui-lib 1.0.15 → 1.0.20
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/componentProps/atoms/button/ButtonProps.d.ts +13 -0
- package/dist/componentProps/atoms/icon/IconProps.d.ts +6 -0
- package/dist/componentProps/atoms/image/ImageProps.d.ts +7 -0
- package/dist/componentProps/atoms/text/TextProps.d.ts +8 -0
- package/dist/componentProps/molecules/card/featurecard/FeatureCardProps.d.ts +8 -0
- package/dist/componentProps/molecules/selectors/CountrySelectorProps.d.ts +8 -0
- package/dist/componentProps/organisms/banner/featurebanner/FeatureBannerProps.d.ts +10 -0
- package/dist/componentProps/organisms/banner/herobanner/HeroBannerProps.d.ts +6 -0
- package/dist/componentProps/organisms/footer/FooterProps.d.ts +24 -0
- package/dist/componentProps/organisms/menu/GlobalNavBarProps.d.ts +29 -0
- package/dist/componentProps/organisms/menu/TopNavBarProps.d.ts +21 -0
- package/dist/index.cjs +565 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +4619 -0
- package/dist/stories/atoms/button/Button.d.ts +4 -0
- package/dist/stories/atoms/icon/Icon.d.ts +4 -0
- package/dist/stories/atoms/image/Image.d.ts +4 -0
- package/dist/stories/atoms/text/Text.d.ts +4 -0
- package/dist/stories/molecules/card/featurecard/FeatureCard.d.ts +4 -0
- package/dist/stories/molecules/selectors/CountrySelector.d.ts +4 -0
- package/dist/stories/organisms/banner/featurebanner/FeatureBanner.d.ts +4 -0
- package/dist/stories/organisms/banner/herobanner/HeroBanner.d.ts +4 -0
- package/dist/stories/organisms/footer/Footer.d.ts +4 -0
- package/dist/stories/organisms/menu/GlobalNavBar/GlobalNavBar.d.ts +4 -0
- package/dist/stories/organisms/menu/TopNavBar/TopNavBar.d.ts +4 -0
- package/dist/stories/page/v1/home/HomePage.d.ts +42 -0
- package/dist/vite.svg +1 -0
- package/package.json +59 -58
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type ButtonVariant = 'nav' | 'standard' | 'text' | 'icon' | 'free';
|
|
2
|
+
export type IconPosition = 'left' | 'right';
|
|
3
|
+
export interface ButtonProps {
|
|
4
|
+
label?: string;
|
|
5
|
+
iconSrc?: string;
|
|
6
|
+
iconAlt?: string;
|
|
7
|
+
iconPosition?: IconPosition;
|
|
8
|
+
variant?: ButtonVariant;
|
|
9
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
10
|
+
className?: string;
|
|
11
|
+
active?: boolean;
|
|
12
|
+
href?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type TextVariant = 'h1' | 'h2' | 'h3' | 'nav' | 'standard' | 'navlink' | 'free' | 'body' | 'bold' | 'caption';
|
|
2
|
+
export type TextTag = 'p' | 'span' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
3
|
+
export interface TextProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
as?: TextTag;
|
|
5
|
+
variant?: TextVariant;
|
|
6
|
+
className?: string;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
2
|
+
export interface SiteLinkGroup {
|
|
3
|
+
group: string;
|
|
4
|
+
links: {
|
|
5
|
+
label: string;
|
|
6
|
+
}[];
|
|
7
|
+
}
|
|
8
|
+
export interface SocialLink {
|
|
9
|
+
href: string;
|
|
10
|
+
icon: IconProp | string;
|
|
11
|
+
}
|
|
12
|
+
export interface Legal {
|
|
13
|
+
phone?: string;
|
|
14
|
+
disclaimerText: string;
|
|
15
|
+
footerLinks: {
|
|
16
|
+
label: string;
|
|
17
|
+
href: string;
|
|
18
|
+
}[];
|
|
19
|
+
}
|
|
20
|
+
export interface FooterProps {
|
|
21
|
+
siteLinks?: SiteLinkGroup[];
|
|
22
|
+
socialLinks?: SocialLink[];
|
|
23
|
+
legal?: Legal;
|
|
24
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface CustomerType {
|
|
2
|
+
label: string;
|
|
3
|
+
href: string;
|
|
4
|
+
}
|
|
5
|
+
export interface BannerAd {
|
|
6
|
+
message: string;
|
|
7
|
+
href?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface WhereToBuyItem {
|
|
10
|
+
label: string;
|
|
11
|
+
href: string;
|
|
12
|
+
}
|
|
13
|
+
export interface Login {
|
|
14
|
+
label: string;
|
|
15
|
+
icon: string;
|
|
16
|
+
href: string;
|
|
17
|
+
}
|
|
18
|
+
export interface Country {
|
|
19
|
+
label: string;
|
|
20
|
+
locale: string;
|
|
21
|
+
href: string;
|
|
22
|
+
}
|
|
23
|
+
export interface GlobalNavBarProps {
|
|
24
|
+
CustomerTypes: CustomerType[];
|
|
25
|
+
BannerAd: BannerAd;
|
|
26
|
+
WhereToBuy: WhereToBuyItem[];
|
|
27
|
+
Countries: Country[];
|
|
28
|
+
Login: Login;
|
|
29
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface NavSubItem {
|
|
2
|
+
label: string;
|
|
3
|
+
href: string;
|
|
4
|
+
}
|
|
5
|
+
export interface NavGroup {
|
|
6
|
+
group: string;
|
|
7
|
+
items: NavSubItem[];
|
|
8
|
+
}
|
|
9
|
+
export interface NavItem {
|
|
10
|
+
label: string;
|
|
11
|
+
submenu?: NavGroup[];
|
|
12
|
+
}
|
|
13
|
+
export interface Country {
|
|
14
|
+
label: string;
|
|
15
|
+
locale: string;
|
|
16
|
+
href: string;
|
|
17
|
+
}
|
|
18
|
+
export interface TopNavBarProps {
|
|
19
|
+
NavMenuWithSubItems: NavItem[];
|
|
20
|
+
Countries: Country[];
|
|
21
|
+
}
|