@asantemedia-org/leybold-design-system 1.0.9 → 1.0.11
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/assets/ai-banner-desktop.png +0 -0
- package/dist/assets/ai-banner-mobile.png +0 -0
- package/dist/assets/carousel-card.png +0 -0
- package/dist/assets/desktop-layout-alt.svg +27 -0
- package/dist/assets/desktop-layout.svg +29 -0
- package/dist/assets/globe.svg +7 -0
- package/dist/assets/language-selector-bg.png +0 -0
- package/dist/assets/leybold-footer-logo.svg +19 -0
- package/dist/assets/leybold-white.svg +19 -0
- package/dist/assets/list-card-alt.png +0 -0
- package/dist/assets/list-card.png +0 -0
- package/dist/assets/list-link-a.png +0 -0
- package/dist/assets/list-link-b.png +0 -0
- package/dist/assets/list-link-c.png +0 -0
- package/dist/assets/list-product-overlay-tip-active.svg +3 -0
- package/dist/assets/list-product-overlay-tip.svg +3 -0
- package/dist/assets/list-product.png +0 -0
- package/dist/assets/logo-example.svg +9 -0
- package/dist/assets/logo.svg +19 -0
- package/dist/assets/phone-layout.svg +14 -0
- package/dist/assets/red-tip.svg +10 -0
- package/dist/assets/tablet-layout.svg +28 -0
- package/dist/index.esm.js +560 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.scss +1807 -85
- package/dist/index.js +600 -31
- package/dist/index.js.map +1 -1
- package/dist/index.scss +1807 -85
- package/dist/src/app/layout.d.ts +1 -0
- package/dist/src/app/page.d.ts +1 -0
- package/dist/src/components/AIBanner/AIBanner.d.ts +15 -0
- package/dist/src/components/AIBanner/AIBanner.stories.d.ts +7 -0
- package/dist/src/components/AIBanner/index.d.ts +2 -0
- package/dist/src/components/Button/Button.d.ts +50 -5
- package/dist/src/components/Button/Button.stories.d.ts +16 -3
- package/dist/src/components/LanguageSelector/LanguageSelector.d.ts +7 -0
- package/dist/src/components/LanguageSelector/LanguageSelector.stories.d.ts +32 -0
- package/dist/src/components/LanguageSelector/LanguageSelector.types.d.ts +64 -0
- package/dist/src/components/LanguageSelector/LanguageSelectorLink.d.ts +20 -0
- package/dist/src/components/LanguageSelector/LocationDropdown.d.ts +6 -0
- package/dist/src/components/LanguageSelector/LocationSelectorLink.d.ts +20 -0
- package/dist/src/components/LanguageSelector/index.d.ts +7 -0
- package/dist/src/experience/Carousel/Carousel.d.ts +36 -0
- package/dist/src/experience/Carousel/Carousel.stories.d.ts +7 -0
- package/dist/src/experience/Carousel/index.d.ts +2 -0
- package/dist/src/experience/Footer/Footer.d.ts +201 -0
- package/dist/src/experience/Footer/Footer.stories.d.ts +28 -0
- package/dist/src/experience/Footer/icons/AtlasCopcoIcon.d.ts +10 -0
- package/dist/src/experience/Footer/icons/ExternalLinkIcon.d.ts +10 -0
- package/dist/src/experience/Footer/icons/index.d.ts +2 -0
- package/dist/src/experience/Footer/index.d.ts +2 -0
- package/dist/src/experience/GeneratedList/GeneratedList.d.ts +40 -0
- package/dist/src/experience/GeneratedList/GeneratedList.stories.d.ts +7 -0
- package/dist/src/experience/GeneratedList/GeneratedList.types.d.ts +131 -0
- package/dist/src/experience/GeneratedList/GeneratedListExternalLink.stories.d.ts +7 -0
- package/dist/src/experience/GeneratedList/GeneratedListList.stories.d.ts +9 -0
- package/dist/src/experience/GeneratedList/GeneratedListProduct.stories.d.ts +7 -0
- package/dist/src/experience/GeneratedList/_Card.d.ts +8 -0
- package/dist/src/experience/GeneratedList/_CardMobile.d.ts +8 -0
- package/dist/src/experience/GeneratedList/_ExternalLink.d.ts +8 -0
- package/dist/src/experience/GeneratedList/_List.d.ts +8 -0
- package/dist/src/experience/GeneratedList/_Product.d.ts +9 -0
- package/dist/src/experience/GeneratedList/index.d.ts +2 -0
- package/dist/src/experience/Header/Header.d.ts +20 -0
- package/dist/src/experience/Header/Header.stories.d.ts +9 -0
- package/dist/src/experience/Header/HeaderNavButton.d.ts +9 -0
- package/dist/src/experience/Header/MegaMenu.d.ts +10 -0
- package/dist/src/experience/Header/MenuLink.d.ts +8 -0
- package/dist/src/experience/Header/MobileHeader.stories.d.ts +6 -0
- package/dist/src/experience/Header/MobileMenu.d.ts +9 -0
- package/dist/src/experience/Header/MobileNavBar.d.ts +13 -0
- package/dist/src/experience/Header/index.d.ts +6 -0
- package/dist/src/experience/algolia-dynamic-search/AlgoliaDynamicSearch.d.ts +1 -0
- package/dist/src/experience/qr-form-journey/QrFormJourney.d.ts +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/stories/foundation/Buttons/ButtonComponents.d.ts +56 -0
- package/dist/src/stories/foundation/Typography/TypographyComponents.d.ts +45 -0
- package/dist/src/stories/foundation/_components/StoryLayout.d.ts +11 -0
- package/dist/src/types/cards.d.ts +1 -0
- package/dist/src/types/search.d.ts +5 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -2
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
export interface CardItem {
|
|
2
|
+
/** Unique identifier for React key */
|
|
3
|
+
id: string;
|
|
4
|
+
/** Card image URL */
|
|
5
|
+
imageUrl: string;
|
|
6
|
+
/** Card image alt text for accessibility */
|
|
7
|
+
imageAlt: string;
|
|
8
|
+
/** Card title - Inter Bold 24px */
|
|
9
|
+
title: string;
|
|
10
|
+
/** Card description - Inter Regular 18px */
|
|
11
|
+
description: string;
|
|
12
|
+
/** Target URL for card CTA */
|
|
13
|
+
linkUrl: string;
|
|
14
|
+
/** Optional custom link text (defaults to "READ MORE") */
|
|
15
|
+
linkText?: string;
|
|
16
|
+
/** Optional overlay color for mobile cards (defaults to blue) */
|
|
17
|
+
overlayColor?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ProductItem {
|
|
20
|
+
/** Unique identifier for React key */
|
|
21
|
+
id: string;
|
|
22
|
+
/** Product image URL */
|
|
23
|
+
imageUrl: string;
|
|
24
|
+
/** Product image alt text for accessibility */
|
|
25
|
+
imageAlt: string;
|
|
26
|
+
/** Product name/title - Inter Bold 24px, centered */
|
|
27
|
+
title: string;
|
|
28
|
+
/** Target URL for product page */
|
|
29
|
+
linkUrl: string;
|
|
30
|
+
}
|
|
31
|
+
export interface ExternalLinkItem {
|
|
32
|
+
/** Unique identifier for React key */
|
|
33
|
+
id: string;
|
|
34
|
+
/** External link card image URL */
|
|
35
|
+
imageUrl: string;
|
|
36
|
+
/** External link card image alt text for accessibility */
|
|
37
|
+
imageAlt: string;
|
|
38
|
+
/** Card title - Inter Bold 18px (H5) */
|
|
39
|
+
title: string;
|
|
40
|
+
/** Card description - Inter Regular 18px (Body) */
|
|
41
|
+
description: string;
|
|
42
|
+
/** Target URL for external link */
|
|
43
|
+
linkUrl: string;
|
|
44
|
+
/** Optional custom link text (defaults to "GO TO E-SHOP") */
|
|
45
|
+
linkText?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface ListItem {
|
|
48
|
+
/** Unique identifier for React key */
|
|
49
|
+
id: string;
|
|
50
|
+
/** Link text displayed to user */
|
|
51
|
+
text: string;
|
|
52
|
+
/** Target URL for the link */
|
|
53
|
+
url: string;
|
|
54
|
+
}
|
|
55
|
+
/** Base props shared across all variants */
|
|
56
|
+
interface BaseGeneratedListProps {
|
|
57
|
+
/** Number of columns (3=348px, 4=256px). Defaults to 3. */
|
|
58
|
+
columns?: 3 | 4;
|
|
59
|
+
/** Optional section title */
|
|
60
|
+
title?: string;
|
|
61
|
+
/** Additional CSS class */
|
|
62
|
+
className?: string;
|
|
63
|
+
}
|
|
64
|
+
/** Card variant props */
|
|
65
|
+
interface CardVariantProps extends BaseGeneratedListProps {
|
|
66
|
+
/** Variant type - defaults to card */
|
|
67
|
+
variant?: 'card';
|
|
68
|
+
/** Array of card items to display */
|
|
69
|
+
items: CardItem[];
|
|
70
|
+
}
|
|
71
|
+
/** Product variant props */
|
|
72
|
+
interface ProductVariantProps extends BaseGeneratedListProps {
|
|
73
|
+
/** Variant type - product */
|
|
74
|
+
variant: 'product';
|
|
75
|
+
/** Array of product items to display */
|
|
76
|
+
items: ProductItem[];
|
|
77
|
+
}
|
|
78
|
+
/** External Link variant props */
|
|
79
|
+
interface ExternalLinkVariantProps extends BaseGeneratedListProps {
|
|
80
|
+
/** Variant type - external-link */
|
|
81
|
+
variant: 'external-link';
|
|
82
|
+
/** Array of external link items to display */
|
|
83
|
+
items: ExternalLinkItem[];
|
|
84
|
+
/** External Link variant always uses 3 columns on desktop - columns prop not allowed */
|
|
85
|
+
columns?: never;
|
|
86
|
+
}
|
|
87
|
+
/** List variant props */
|
|
88
|
+
interface ListVariantProps extends Omit<BaseGeneratedListProps, 'title' | 'columns'> {
|
|
89
|
+
/** Variant type - list */
|
|
90
|
+
variant: 'list';
|
|
91
|
+
/** Marketing headline (required for list variant) */
|
|
92
|
+
heading: string;
|
|
93
|
+
/** Array of link items */
|
|
94
|
+
items: ListItem[];
|
|
95
|
+
/** Color scheme (required for list variant) */
|
|
96
|
+
colorScheme: 'red' | 'grey';
|
|
97
|
+
/** List variant doesn't use title or columns props */
|
|
98
|
+
title?: never;
|
|
99
|
+
columns?: never;
|
|
100
|
+
}
|
|
101
|
+
/** Union type for GeneratedList props with discriminated variant */
|
|
102
|
+
export type GeneratedListProps = CardVariantProps | ProductVariantProps | ExternalLinkVariantProps | ListVariantProps;
|
|
103
|
+
/** @private Internal use only */
|
|
104
|
+
export interface CardProps {
|
|
105
|
+
item: CardItem;
|
|
106
|
+
columns: 3 | 4;
|
|
107
|
+
className?: string;
|
|
108
|
+
}
|
|
109
|
+
/** @private Internal use only */
|
|
110
|
+
export interface ProductProps {
|
|
111
|
+
item: ProductItem;
|
|
112
|
+
columns: 3 | 4;
|
|
113
|
+
className?: string;
|
|
114
|
+
}
|
|
115
|
+
/** @private Internal use only */
|
|
116
|
+
export interface ExternalLinkProps {
|
|
117
|
+
item: ExternalLinkItem;
|
|
118
|
+
className?: string;
|
|
119
|
+
}
|
|
120
|
+
/** @private Internal use only */
|
|
121
|
+
export interface ListProps {
|
|
122
|
+
/** Marketing headline text */
|
|
123
|
+
heading: string;
|
|
124
|
+
/** Array of link items to display */
|
|
125
|
+
items: ListItem[];
|
|
126
|
+
/** Color scheme: red or grey */
|
|
127
|
+
colorScheme: 'red' | 'grey';
|
|
128
|
+
/** Optional CSS class */
|
|
129
|
+
className?: string;
|
|
130
|
+
}
|
|
131
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { GeneratedList } from "./GeneratedList";
|
|
3
|
+
declare const meta: Meta<typeof GeneratedList>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof GeneratedList>;
|
|
6
|
+
export declare const Desktop: Story;
|
|
7
|
+
export declare const Mobile: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { GeneratedList } from "./GeneratedList";
|
|
3
|
+
declare const meta: Meta<typeof GeneratedList>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof GeneratedList>;
|
|
6
|
+
export declare const RedDesktop: Story;
|
|
7
|
+
export declare const RedMobile: Story;
|
|
8
|
+
export declare const GreyDesktop: Story;
|
|
9
|
+
export declare const GreyMobile: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { GeneratedList } from "./GeneratedList";
|
|
3
|
+
declare const meta: Meta<typeof GeneratedList>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof GeneratedList>;
|
|
6
|
+
export declare const Desktop: Story;
|
|
7
|
+
export declare const Mobile: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CardProps } from './GeneratedList.types';
|
|
3
|
+
/**
|
|
4
|
+
* Private Card component for GeneratedList
|
|
5
|
+
* Renders a single content card with image, title, description, and CTA
|
|
6
|
+
* @private
|
|
7
|
+
*/
|
|
8
|
+
export declare const Card: React.FC<CardProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CardProps } from './GeneratedList.types';
|
|
3
|
+
/**
|
|
4
|
+
* Private Mobile Card component for GeneratedList
|
|
5
|
+
* Full-width overlay card with centered text on image
|
|
6
|
+
* @private
|
|
7
|
+
*/
|
|
8
|
+
export declare const CardMobile: React.FC<CardProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExternalLinkProps } from './GeneratedList.types';
|
|
3
|
+
/**
|
|
4
|
+
* Private ExternalLink component for GeneratedList
|
|
5
|
+
* White card with image, title, description, and external link button
|
|
6
|
+
* @private
|
|
7
|
+
*/
|
|
8
|
+
export declare const ExternalLink: React.FC<ExternalLinkProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ListProps } from './GeneratedList.types';
|
|
3
|
+
/**
|
|
4
|
+
* Private List component for GeneratedList
|
|
5
|
+
* Marketing section with heading and two columns of clickable links
|
|
6
|
+
* @private
|
|
7
|
+
*/
|
|
8
|
+
export declare const List: React.FC<ListProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ProductProps } from './GeneratedList.types';
|
|
3
|
+
/**
|
|
4
|
+
* Private Product component for GeneratedList
|
|
5
|
+
* White card with square product image and centered title
|
|
6
|
+
* Entire card is clickable (uses <a> tag wrapper)
|
|
7
|
+
* @private
|
|
8
|
+
*/
|
|
9
|
+
export declare const Product: React.FC<ProductProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface NavMenuItem {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
menuLinks?: Array<{
|
|
6
|
+
label: string;
|
|
7
|
+
href?: string;
|
|
8
|
+
}>;
|
|
9
|
+
}
|
|
10
|
+
export interface HeaderProps {
|
|
11
|
+
className?: string;
|
|
12
|
+
navItems?: NavMenuItem[];
|
|
13
|
+
hoverDelay?: number;
|
|
14
|
+
menuOpen?: boolean;
|
|
15
|
+
menuLinks?: Array<{
|
|
16
|
+
label: string;
|
|
17
|
+
href?: string;
|
|
18
|
+
}>;
|
|
19
|
+
}
|
|
20
|
+
export declare function Header({ className, navItems, hoverDelay, menuOpen, menuLinks, }: HeaderProps): JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Header } from './Header';
|
|
3
|
+
declare const meta: Meta<typeof Header>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Header>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const OneColumn: Story;
|
|
8
|
+
export declare const TwoColumn: Story;
|
|
9
|
+
export declare const ThreeColumn: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface HeaderNavButtonProps {
|
|
3
|
+
children: string;
|
|
4
|
+
hasDropdown?: boolean;
|
|
5
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
6
|
+
'data-force-state'?: 'hover' | 'focus';
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function HeaderNavButton({ children, hasDropdown, onClick, className, ...props }: HeaderNavButtonProps): JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface MegaMenuProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
links?: Array<{
|
|
5
|
+
label: string;
|
|
6
|
+
href?: string;
|
|
7
|
+
}>;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function MegaMenu({ isOpen, links, className }: MegaMenuProps): JSX.Element | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface MenuLinkProps {
|
|
3
|
+
children: string;
|
|
4
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
5
|
+
'data-force-state'?: 'hover' | 'focus';
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function MenuLink({ children, onClick, className, ...props }: MenuLinkProps): JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { NavMenuItem } from './Header';
|
|
3
|
+
export interface MobileMenuProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
navItems: NavMenuItem[];
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function MobileMenu({ isOpen, onClose, navItems, className, }: MobileMenuProps): JSX.Element | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface MobileNavBarProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
items?: Array<{
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
isHighlighted?: boolean;
|
|
9
|
+
}>;
|
|
10
|
+
onItemClick?: (id: string) => void;
|
|
11
|
+
onMoreClick?: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function MobileNavBar({ className, items, onItemClick, onMoreClick, }: MobileNavBarProps): JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Header } from './Header';
|
|
2
|
+
export type { HeaderProps, NavMenuItem } from './Header';
|
|
3
|
+
export { MobileNavBar } from './MobileNavBar';
|
|
4
|
+
export type { MobileNavBarProps } from './MobileNavBar';
|
|
5
|
+
export { MobileMenu } from './MobileMenu';
|
|
6
|
+
export type { MobileMenuProps } from './MobileMenu';
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export { Button } from "./components/Button";
|
|
2
2
|
export type { ButtonProps } from "./components/Button";
|
|
3
|
+
export { Carousel } from "./experience/Carousel";
|
|
4
|
+
export type { CarouselProps, CarouselCardData } from "./experience/Carousel";
|
|
5
|
+
export { Footer, FooterLink, FooterLinkGroup, FooterSocialIcons, FooterSocialIcon, FooterBottom, } from "./experience/Footer";
|
|
6
|
+
export type { FooterProps, FooterLinkItem, SocialLinkItem, FooterLogoProps, FooterLinkProps, FooterLinkGroupProps, FooterSocialIconsProps, FooterSocialIconProps, FooterBottomProps, } from "./experience/Footer";
|
|
3
7
|
export { Pagination, PaginationItem, PaginationButton, PaginationEllipsis, } from "./components/Pagination";
|
|
4
8
|
export type { PaginationProps, PaginationItemProps, PaginationButtonProps, PaginationEllipsisProps, } from "./components/Pagination";
|
|
5
9
|
export { AlgoliaDynamicSearchLeybold } from "./experience/algolia-dynamic-search";
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ButtonVariant } from '../../../components/Button/Button';
|
|
3
|
+
export interface ButtonVariantData {
|
|
4
|
+
variant: ButtonVariant;
|
|
5
|
+
label: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
category: 'high-emphasis' | 'medium-emphasis' | 'low-emphasis' | 'navigation';
|
|
8
|
+
}
|
|
9
|
+
export declare const BUTTON_VARIANTS: ButtonVariantData[];
|
|
10
|
+
interface ButtonShowcaseRowProps {
|
|
11
|
+
variant: ButtonVariant;
|
|
12
|
+
label: string;
|
|
13
|
+
showHover?: boolean;
|
|
14
|
+
showFocus?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const ButtonShowcaseRow: React.FC<ButtonShowcaseRowProps>;
|
|
17
|
+
interface ButtonGroupProps {
|
|
18
|
+
title: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
variants: ButtonVariantData[];
|
|
21
|
+
}
|
|
22
|
+
export declare const ButtonGroup: React.FC<ButtonGroupProps>;
|
|
23
|
+
interface ButtonExampleProps {
|
|
24
|
+
variant: ButtonVariant;
|
|
25
|
+
label: string;
|
|
26
|
+
description: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const ButtonExample: React.FC<ButtonExampleProps>;
|
|
29
|
+
export declare const StatesHeader: React.FC;
|
|
30
|
+
interface ViewportPanelProps {
|
|
31
|
+
title: string;
|
|
32
|
+
children: React.ReactNode;
|
|
33
|
+
}
|
|
34
|
+
export declare const ViewportPanel: React.FC<ViewportPanelProps>;
|
|
35
|
+
interface ButtonStateRowProps {
|
|
36
|
+
variant: ButtonVariant;
|
|
37
|
+
label: string;
|
|
38
|
+
rowLabel?: string;
|
|
39
|
+
darkBg?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export declare const ButtonStateRow: React.FC<ButtonStateRowProps>;
|
|
42
|
+
export interface ButtonStateTableProps {
|
|
43
|
+
variants: Array<{
|
|
44
|
+
variant: ButtonVariant;
|
|
45
|
+
label: string;
|
|
46
|
+
rowLabel?: string;
|
|
47
|
+
darkBg?: boolean;
|
|
48
|
+
}>;
|
|
49
|
+
}
|
|
50
|
+
export declare const ButtonStateTable: React.FC<ButtonStateTableProps>;
|
|
51
|
+
export declare const getVariantsByCategory: (category: ButtonVariantData['category']) => ButtonVariantData[];
|
|
52
|
+
export declare const HIGH_EMPHASIS_VARIANTS: ButtonVariantData[];
|
|
53
|
+
export declare const MEDIUM_EMPHASIS_VARIANTS: ButtonVariantData[];
|
|
54
|
+
export declare const LOW_EMPHASIS_VARIANTS: ButtonVariantData[];
|
|
55
|
+
export declare const NAVIGATION_VARIANTS: ButtonVariantData[];
|
|
56
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const TYPOGRAPHY_MOBILE: ({
|
|
2
|
+
label: string;
|
|
3
|
+
cssVar: string;
|
|
4
|
+
displaySize: string;
|
|
5
|
+
displayLineHeight: string;
|
|
6
|
+
displayLetterSpacing: string;
|
|
7
|
+
isBody?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
label: string;
|
|
10
|
+
cssVar: string;
|
|
11
|
+
displaySize: string;
|
|
12
|
+
displayLineHeight: string;
|
|
13
|
+
isBody: boolean;
|
|
14
|
+
displayLetterSpacing?: undefined;
|
|
15
|
+
})[];
|
|
16
|
+
export declare const TYPOGRAPHY_DESKTOP: ({
|
|
17
|
+
label: string;
|
|
18
|
+
cssVar: string;
|
|
19
|
+
displaySize: string;
|
|
20
|
+
displayLineHeight: string;
|
|
21
|
+
displayLetterSpacing: string;
|
|
22
|
+
isBody?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
label: string;
|
|
25
|
+
cssVar: string;
|
|
26
|
+
displaySize: string;
|
|
27
|
+
displayLineHeight: string;
|
|
28
|
+
isBody: boolean;
|
|
29
|
+
displayLetterSpacing?: undefined;
|
|
30
|
+
})[];
|
|
31
|
+
interface HeadingRowProps {
|
|
32
|
+
label: string;
|
|
33
|
+
cssVar: string;
|
|
34
|
+
displaySize: string;
|
|
35
|
+
displayLineHeight: string;
|
|
36
|
+
displayLetterSpacing?: string;
|
|
37
|
+
isBody?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export declare const HeadingRow: ({ label, cssVar, displaySize, displayLineHeight, displayLetterSpacing, isBody }: HeadingRowProps) => JSX.Element;
|
|
40
|
+
interface ViewportPanelProps {
|
|
41
|
+
title: string;
|
|
42
|
+
items: HeadingRowProps[];
|
|
43
|
+
}
|
|
44
|
+
export declare const ViewportPanel: ({ title, items }: ViewportPanelProps) => JSX.Element;
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface StoryFooterProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare const StoryFooter: ({ children }: StoryFooterProps) => JSX.Element;
|
|
6
|
+
interface StoryHeaderProps {
|
|
7
|
+
title: string;
|
|
8
|
+
subtitle: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const StoryHeader: ({ title, subtitle }: StoryHeaderProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FacetValue {
|
|
2
3
|
value: string;
|
|
3
4
|
count: number;
|
|
@@ -53,6 +54,8 @@ export interface FederatedSearchProps {
|
|
|
53
54
|
currentPage: number;
|
|
54
55
|
totalPages: number;
|
|
55
56
|
onPageChange(page: number): void;
|
|
57
|
+
facets?: Facet[];
|
|
58
|
+
onFacetToggle?(attribute: string, value: string): void;
|
|
56
59
|
}
|
|
57
60
|
export interface SearchTriggerButtonProps {
|
|
58
61
|
onOpen(): void;
|
|
@@ -111,8 +114,8 @@ export interface FederatedResultsViewProps {
|
|
|
111
114
|
currentPage: number;
|
|
112
115
|
totalPages: number;
|
|
113
116
|
onPageChange(page: number): void;
|
|
114
|
-
facets
|
|
115
|
-
onFacetToggle(attribute: string, value: string): void;
|
|
117
|
+
facets?: Facet[];
|
|
118
|
+
onFacetToggle?(attribute: string, value: string): void;
|
|
116
119
|
}
|
|
117
120
|
export interface FiltersPanelPropsOld {
|
|
118
121
|
className?: string;
|