@chromatic-com/tetra 2.1.0--canary.107.b84f7bf.0 → 2.1.0
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/index.d.mts +62 -102
- package/dist/index.d.ts +62 -102
- package/dist/index.js +727 -665
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +629 -570
- package/dist/index.mjs.map +1 -1
- package/dist/public/guides/frontend-testing-guide-thumbnail.jpg +0 -0
- package/package.json +22 -19
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _emotion_react from '@emotion/react';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import React__default, { FC, ReactNode, ElementType, FunctionComponent } from 'react';
|
|
4
|
-
import * as
|
|
3
|
+
import React__default, { FC, ReactNode, ElementType, ComponentType, FunctionComponent } from 'react';
|
|
4
|
+
import * as _emotion_styled from '@emotion/styled';
|
|
5
5
|
import * as RadixDropdownMenu from '@radix-ui/react-dropdown-menu';
|
|
6
6
|
|
|
7
7
|
declare const color: {
|
|
@@ -167,30 +167,30 @@ type TProps = {
|
|
|
167
167
|
};
|
|
168
168
|
declare const t: TProps;
|
|
169
169
|
declare const typography: {
|
|
170
|
-
heading56:
|
|
171
|
-
heading48:
|
|
172
|
-
heading40:
|
|
173
|
-
heading36:
|
|
174
|
-
heading30:
|
|
175
|
-
heading24:
|
|
176
|
-
heading20:
|
|
177
|
-
heading18:
|
|
178
|
-
heading16:
|
|
179
|
-
body20:
|
|
180
|
-
body18:
|
|
181
|
-
body16:
|
|
182
|
-
body14:
|
|
183
|
-
subheading:
|
|
184
|
-
subheadingLarge:
|
|
170
|
+
heading56: _emotion_react.SerializedStyles;
|
|
171
|
+
heading48: _emotion_react.SerializedStyles;
|
|
172
|
+
heading40: _emotion_react.SerializedStyles;
|
|
173
|
+
heading36: _emotion_react.SerializedStyles;
|
|
174
|
+
heading30: _emotion_react.SerializedStyles;
|
|
175
|
+
heading24: _emotion_react.SerializedStyles;
|
|
176
|
+
heading20: _emotion_react.SerializedStyles;
|
|
177
|
+
heading18: _emotion_react.SerializedStyles;
|
|
178
|
+
heading16: _emotion_react.SerializedStyles;
|
|
179
|
+
body20: _emotion_react.SerializedStyles;
|
|
180
|
+
body18: _emotion_react.SerializedStyles;
|
|
181
|
+
body16: _emotion_react.SerializedStyles;
|
|
182
|
+
body14: _emotion_react.SerializedStyles;
|
|
183
|
+
subheading: _emotion_react.SerializedStyles;
|
|
184
|
+
subheadingLarge: _emotion_react.SerializedStyles;
|
|
185
185
|
};
|
|
186
186
|
|
|
187
187
|
declare const animations: {
|
|
188
|
-
rotate360:
|
|
189
|
-
glow:
|
|
190
|
-
float:
|
|
191
|
-
jiggle:
|
|
192
|
-
shake:
|
|
193
|
-
inlineGlow: (inverse?: boolean) =>
|
|
188
|
+
rotate360: _emotion_react.Keyframes;
|
|
189
|
+
glow: _emotion_react.Keyframes;
|
|
190
|
+
float: _emotion_react.Keyframes;
|
|
191
|
+
jiggle: _emotion_react.Keyframes;
|
|
192
|
+
shake: _emotion_react.Keyframes;
|
|
193
|
+
inlineGlow: (inverse?: boolean) => _emotion_react.SerializedStyles;
|
|
194
194
|
};
|
|
195
195
|
|
|
196
196
|
declare function useMediaQuery(query: 'minBase' | 'minSm' | 'minMd' | 'minLg' | 'minXl' | 'min2Xl' | 'maxBase' | 'maxSm' | 'maxMd' | 'maxLg' | 'maxXl' | 'max2Xl' | 'base' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | {
|
|
@@ -407,6 +407,7 @@ declare const icons: {
|
|
|
407
407
|
readonly youtube: JSX.Element;
|
|
408
408
|
readonly linkedin: JSX.Element;
|
|
409
409
|
readonly vscode: JSX.Element;
|
|
410
|
+
readonly bluesky: JSX.Element;
|
|
410
411
|
};
|
|
411
412
|
|
|
412
413
|
type Icons = keyof typeof icons;
|
|
@@ -498,11 +499,11 @@ declare const listOfOptions: readonly ["marginY", "marginTop", "marginBottom", "
|
|
|
498
499
|
type ListOfOptionsArrayProps = (typeof listOfOptions)[number];
|
|
499
500
|
type BlockWithOptionsForContainerProps = Pick<BlockWithOptionsProps, ListOfOptionsArrayProps>;
|
|
500
501
|
|
|
501
|
-
declare const Container:
|
|
502
|
-
theme?:
|
|
502
|
+
declare const Container: _emotion_styled.StyledComponent<{
|
|
503
|
+
theme?: _emotion_react.Theme | undefined;
|
|
503
504
|
as?: React__default.ElementType<any> | undefined;
|
|
504
505
|
} & BlockWithOptionsForContainerProps & React__default.ClassAttributes<HTMLDivElement> & React__default.HTMLAttributes<HTMLDivElement> & {
|
|
505
|
-
theme?:
|
|
506
|
+
theme?: _emotion_react.Theme | undefined;
|
|
506
507
|
}, {}, {}>;
|
|
507
508
|
declare const FullWidthContainer: ({ children, ...props }: BlockWithOptionsForContainerProps & {
|
|
508
509
|
children: ReactNode;
|
|
@@ -518,7 +519,7 @@ interface ButtonProps {
|
|
|
518
519
|
href?: string;
|
|
519
520
|
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
520
521
|
onClick?: () => void;
|
|
521
|
-
as?: 'button' | 'a';
|
|
522
|
+
as?: 'button' | 'a' | 'span';
|
|
522
523
|
}
|
|
523
524
|
declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
524
525
|
|
|
@@ -536,11 +537,11 @@ interface StackProps$1 extends BlockWithOptionsProps {
|
|
|
536
537
|
color?: keyof typeof color;
|
|
537
538
|
inverse?: boolean;
|
|
538
539
|
}
|
|
539
|
-
declare const Divider:
|
|
540
|
-
theme?:
|
|
540
|
+
declare const Divider: _emotion_styled.StyledComponent<{
|
|
541
|
+
theme?: _emotion_react.Theme | undefined;
|
|
541
542
|
as?: React.ElementType<any> | undefined;
|
|
542
543
|
} & BlockWithOptionsProps & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
543
|
-
theme?:
|
|
544
|
+
theme?: _emotion_react.Theme | undefined;
|
|
544
545
|
} & StackProps$1, {}, {}>;
|
|
545
546
|
|
|
546
547
|
interface DropdownProps {
|
|
@@ -551,34 +552,15 @@ interface DropdownProps {
|
|
|
551
552
|
declare const DropdownMenu: ({ label, variant, children, ...props }: DropdownProps) => JSX.Element;
|
|
552
553
|
|
|
553
554
|
declare const DropdownMenuCheckboxItem: ({ children, ...props }: RadixDropdownMenu.MenuCheckboxItemProps) => JSX.Element;
|
|
554
|
-
declare const DropdownMenuItem:
|
|
555
|
-
theme?:
|
|
555
|
+
declare const DropdownMenuItem: _emotion_styled.StyledComponent<RadixDropdownMenu.DropdownMenuItemProps & React__default.RefAttributes<HTMLDivElement> & {
|
|
556
|
+
theme?: _emotion_react.Theme | undefined;
|
|
556
557
|
}, {}, {}>;
|
|
557
558
|
|
|
558
|
-
interface FooterItem {
|
|
559
|
-
title: string;
|
|
560
|
-
href: string;
|
|
561
|
-
LinkWrapper?: any;
|
|
562
|
-
}
|
|
563
|
-
interface FooterColumn {
|
|
564
|
-
title: string;
|
|
565
|
-
links: FooterItem[];
|
|
566
|
-
}
|
|
567
|
-
interface FooterSocialItem extends FooterItem {
|
|
568
|
-
icon: IconProps['name'];
|
|
569
|
-
}
|
|
570
|
-
interface HomeItem {
|
|
571
|
-
href: string;
|
|
572
|
-
LinkWrapper?: any;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
559
|
interface FooterProps {
|
|
576
560
|
theme: 'light' | 'dark';
|
|
577
|
-
|
|
578
|
-
socialLinks: FooterSocialItem[];
|
|
579
|
-
homeLink: HomeItem;
|
|
561
|
+
LinkWrapper: ElementType;
|
|
580
562
|
}
|
|
581
|
-
declare const Footer: ({ theme,
|
|
563
|
+
declare const Footer: ({ theme, LinkWrapper, ...props }: FooterProps) => JSX.Element;
|
|
582
564
|
|
|
583
565
|
interface ColumnProps {
|
|
584
566
|
children: ReactNode;
|
|
@@ -601,55 +583,32 @@ declare const Grid: FC<GridProps> & {
|
|
|
601
583
|
Column: FC<ColumnProps>;
|
|
602
584
|
};
|
|
603
585
|
|
|
604
|
-
interface
|
|
605
|
-
name?: string;
|
|
606
|
-
maxItems?: number;
|
|
607
|
-
collapsible?: boolean;
|
|
608
|
-
content: {
|
|
609
|
-
title: string;
|
|
610
|
-
href: string;
|
|
611
|
-
linkWrapper?: any;
|
|
612
|
-
icon?: Icons;
|
|
613
|
-
iconColor?: keyof typeof color;
|
|
614
|
-
customIcon?: ReactNode;
|
|
615
|
-
}[];
|
|
616
|
-
}
|
|
617
|
-
interface HeaderDesktopItemContent {
|
|
618
|
-
type: 'link' | 'separator';
|
|
586
|
+
interface HeaderLink {
|
|
619
587
|
title: string;
|
|
620
|
-
description?: string;
|
|
621
|
-
href?: string;
|
|
622
|
-
linkWrapper?: any;
|
|
623
588
|
icon?: Icons;
|
|
624
589
|
iconColor?: keyof typeof color;
|
|
625
|
-
customIcon?: ReactNode;
|
|
626
|
-
|
|
627
|
-
interface HeaderDesktopItem {
|
|
628
|
-
id: string;
|
|
629
|
-
name: string;
|
|
630
|
-
href?: string;
|
|
590
|
+
customIcon?: React__default.ReactNode;
|
|
591
|
+
href: string;
|
|
631
592
|
linkWrapper?: any;
|
|
632
|
-
leftPosition?: number;
|
|
633
|
-
menu?: {
|
|
634
|
-
content: HeaderDesktopItemContent[];
|
|
635
|
-
backgroundColor?: keyof typeof color;
|
|
636
|
-
}[];
|
|
637
593
|
}
|
|
594
|
+
type HeaderLinks = Record<LinkKeys, HeaderLink>;
|
|
595
|
+
|
|
638
596
|
interface HeaderProps {
|
|
639
597
|
theme?: 'light' | 'dark';
|
|
640
|
-
logo?: 'chromatic' | 'storybook';
|
|
641
|
-
logoHref?: string;
|
|
642
598
|
logoLinkWrapper?: any;
|
|
643
|
-
desktopData: HeaderDesktopItem[];
|
|
644
|
-
desktopRight?: ReactNode;
|
|
645
599
|
desktopActiveId?: string;
|
|
646
|
-
mobileData: HeaderMobileSection[];
|
|
647
|
-
mobileTop?: ReactNode;
|
|
648
|
-
mobileBottom?: ReactNode;
|
|
649
600
|
fullWidth?: boolean;
|
|
601
|
+
loggedIn?: boolean;
|
|
602
|
+
maintenanceMode?: boolean;
|
|
603
|
+
isSticky?: boolean;
|
|
604
|
+
links: HeaderLinks;
|
|
605
|
+
TrackSignUp: ComponentType<{
|
|
606
|
+
children: ReactNode;
|
|
607
|
+
}>;
|
|
650
608
|
}
|
|
609
|
+
type LinkKeys = 'signin' | 'signup' | 'uiTest' | 'visualTest' | 'interactionTest' | 'accessibilityTest' | 'storybook' | 'playwright' | 'cypress' | 'turboSnap' | 'uiReview' | 'publish' | 'figmaPlugin' | 'frontendTeams' | 'designSystems' | 'digitalAgencies' | 'aboutChromatic' | 'careers' | 'security' | 'enterprise' | 'netlify' | 'monday' | 'collective' | 'ezcater' | 'blog' | 'changelog' | 'frontendTestingGuide' | 'docs' | 'pricing' | 'sales';
|
|
651
610
|
|
|
652
|
-
declare const Header:
|
|
611
|
+
declare const Header: ({ theme, links, logoLinkWrapper, desktopActiveId, fullWidth, loggedIn, maintenanceMode, isSticky, TrackSignUp, }: HeaderProps) => JSX.Element;
|
|
653
612
|
|
|
654
613
|
declare const CollectiveIcon: () => JSX.Element;
|
|
655
614
|
|
|
@@ -693,6 +652,7 @@ interface LinkWithWrapperProps extends React__default.AnchorHTMLAttributes<HTMLA
|
|
|
693
652
|
LinkWrapper?: ElementType;
|
|
694
653
|
children: ReactNode;
|
|
695
654
|
href: string;
|
|
655
|
+
noAnchor?: boolean;
|
|
696
656
|
}
|
|
697
657
|
/**
|
|
698
658
|
* Optionally replace anchor tags with a wrapper component
|
|
@@ -725,8 +685,8 @@ interface NormalizeAreaProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
725
685
|
* https://nicksherman.com/size-by-area/ &
|
|
726
686
|
* https://piperhaywood.com/images-consistent-surface-area/
|
|
727
687
|
*/
|
|
728
|
-
declare const NormalizeArea:
|
|
729
|
-
theme?:
|
|
688
|
+
declare const NormalizeArea: _emotion_styled.StyledComponent<{
|
|
689
|
+
theme?: _emotion_react.Theme | undefined;
|
|
730
690
|
as?: React.ElementType<any> | undefined;
|
|
731
691
|
} & NormalizeAreaProps, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
732
692
|
|
|
@@ -751,32 +711,32 @@ interface StackProps extends BlockWithOptionsProps {
|
|
|
751
711
|
align: 'flex-start' | 'center' | 'flex-end';
|
|
752
712
|
justify?: 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
753
713
|
}
|
|
754
|
-
declare const Stack:
|
|
755
|
-
theme?:
|
|
714
|
+
declare const Stack: _emotion_styled.StyledComponent<{
|
|
715
|
+
theme?: _emotion_react.Theme | undefined;
|
|
756
716
|
as?: React.ElementType<any> | undefined;
|
|
757
717
|
} & BlockWithOptionsProps & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
758
|
-
theme?:
|
|
718
|
+
theme?: _emotion_react.Theme | undefined;
|
|
759
719
|
} & {
|
|
760
720
|
gap?: StackProps['gap'];
|
|
761
721
|
direction?: StackProps['direction'];
|
|
762
722
|
align?: "center" | "flex-start" | "flex-end" | undefined;
|
|
763
723
|
justify?: StackProps['justify'];
|
|
764
724
|
}, {}, {}>;
|
|
765
|
-
declare const HStack:
|
|
766
|
-
theme?:
|
|
725
|
+
declare const HStack: _emotion_styled.StyledComponent<{
|
|
726
|
+
theme?: _emotion_react.Theme | undefined;
|
|
767
727
|
as?: React.ElementType<any> | undefined;
|
|
768
728
|
} & BlockWithOptionsProps & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
769
|
-
theme?:
|
|
729
|
+
theme?: _emotion_react.Theme | undefined;
|
|
770
730
|
} & {
|
|
771
731
|
gap?: StackProps['gap'];
|
|
772
732
|
align?: "center" | "flex-start" | "flex-end" | undefined;
|
|
773
733
|
justify?: StackProps['justify'];
|
|
774
734
|
}, {}, {}>;
|
|
775
|
-
declare const VStack:
|
|
776
|
-
theme?:
|
|
735
|
+
declare const VStack: _emotion_styled.StyledComponent<{
|
|
736
|
+
theme?: _emotion_react.Theme | undefined;
|
|
777
737
|
as?: React.ElementType<any> | undefined;
|
|
778
738
|
} & BlockWithOptionsProps & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
779
|
-
theme?:
|
|
739
|
+
theme?: _emotion_react.Theme | undefined;
|
|
780
740
|
} & {
|
|
781
741
|
gap?: StackProps['gap'];
|
|
782
742
|
align?: "center" | "flex-start" | "flex-end" | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _emotion_react from '@emotion/react';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import React__default, { FC, ReactNode, ElementType, FunctionComponent } from 'react';
|
|
4
|
-
import * as
|
|
3
|
+
import React__default, { FC, ReactNode, ElementType, ComponentType, FunctionComponent } from 'react';
|
|
4
|
+
import * as _emotion_styled from '@emotion/styled';
|
|
5
5
|
import * as RadixDropdownMenu from '@radix-ui/react-dropdown-menu';
|
|
6
6
|
|
|
7
7
|
declare const color: {
|
|
@@ -167,30 +167,30 @@ type TProps = {
|
|
|
167
167
|
};
|
|
168
168
|
declare const t: TProps;
|
|
169
169
|
declare const typography: {
|
|
170
|
-
heading56:
|
|
171
|
-
heading48:
|
|
172
|
-
heading40:
|
|
173
|
-
heading36:
|
|
174
|
-
heading30:
|
|
175
|
-
heading24:
|
|
176
|
-
heading20:
|
|
177
|
-
heading18:
|
|
178
|
-
heading16:
|
|
179
|
-
body20:
|
|
180
|
-
body18:
|
|
181
|
-
body16:
|
|
182
|
-
body14:
|
|
183
|
-
subheading:
|
|
184
|
-
subheadingLarge:
|
|
170
|
+
heading56: _emotion_react.SerializedStyles;
|
|
171
|
+
heading48: _emotion_react.SerializedStyles;
|
|
172
|
+
heading40: _emotion_react.SerializedStyles;
|
|
173
|
+
heading36: _emotion_react.SerializedStyles;
|
|
174
|
+
heading30: _emotion_react.SerializedStyles;
|
|
175
|
+
heading24: _emotion_react.SerializedStyles;
|
|
176
|
+
heading20: _emotion_react.SerializedStyles;
|
|
177
|
+
heading18: _emotion_react.SerializedStyles;
|
|
178
|
+
heading16: _emotion_react.SerializedStyles;
|
|
179
|
+
body20: _emotion_react.SerializedStyles;
|
|
180
|
+
body18: _emotion_react.SerializedStyles;
|
|
181
|
+
body16: _emotion_react.SerializedStyles;
|
|
182
|
+
body14: _emotion_react.SerializedStyles;
|
|
183
|
+
subheading: _emotion_react.SerializedStyles;
|
|
184
|
+
subheadingLarge: _emotion_react.SerializedStyles;
|
|
185
185
|
};
|
|
186
186
|
|
|
187
187
|
declare const animations: {
|
|
188
|
-
rotate360:
|
|
189
|
-
glow:
|
|
190
|
-
float:
|
|
191
|
-
jiggle:
|
|
192
|
-
shake:
|
|
193
|
-
inlineGlow: (inverse?: boolean) =>
|
|
188
|
+
rotate360: _emotion_react.Keyframes;
|
|
189
|
+
glow: _emotion_react.Keyframes;
|
|
190
|
+
float: _emotion_react.Keyframes;
|
|
191
|
+
jiggle: _emotion_react.Keyframes;
|
|
192
|
+
shake: _emotion_react.Keyframes;
|
|
193
|
+
inlineGlow: (inverse?: boolean) => _emotion_react.SerializedStyles;
|
|
194
194
|
};
|
|
195
195
|
|
|
196
196
|
declare function useMediaQuery(query: 'minBase' | 'minSm' | 'minMd' | 'minLg' | 'minXl' | 'min2Xl' | 'maxBase' | 'maxSm' | 'maxMd' | 'maxLg' | 'maxXl' | 'max2Xl' | 'base' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | {
|
|
@@ -407,6 +407,7 @@ declare const icons: {
|
|
|
407
407
|
readonly youtube: JSX.Element;
|
|
408
408
|
readonly linkedin: JSX.Element;
|
|
409
409
|
readonly vscode: JSX.Element;
|
|
410
|
+
readonly bluesky: JSX.Element;
|
|
410
411
|
};
|
|
411
412
|
|
|
412
413
|
type Icons = keyof typeof icons;
|
|
@@ -498,11 +499,11 @@ declare const listOfOptions: readonly ["marginY", "marginTop", "marginBottom", "
|
|
|
498
499
|
type ListOfOptionsArrayProps = (typeof listOfOptions)[number];
|
|
499
500
|
type BlockWithOptionsForContainerProps = Pick<BlockWithOptionsProps, ListOfOptionsArrayProps>;
|
|
500
501
|
|
|
501
|
-
declare const Container:
|
|
502
|
-
theme?:
|
|
502
|
+
declare const Container: _emotion_styled.StyledComponent<{
|
|
503
|
+
theme?: _emotion_react.Theme | undefined;
|
|
503
504
|
as?: React__default.ElementType<any> | undefined;
|
|
504
505
|
} & BlockWithOptionsForContainerProps & React__default.ClassAttributes<HTMLDivElement> & React__default.HTMLAttributes<HTMLDivElement> & {
|
|
505
|
-
theme?:
|
|
506
|
+
theme?: _emotion_react.Theme | undefined;
|
|
506
507
|
}, {}, {}>;
|
|
507
508
|
declare const FullWidthContainer: ({ children, ...props }: BlockWithOptionsForContainerProps & {
|
|
508
509
|
children: ReactNode;
|
|
@@ -518,7 +519,7 @@ interface ButtonProps {
|
|
|
518
519
|
href?: string;
|
|
519
520
|
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
520
521
|
onClick?: () => void;
|
|
521
|
-
as?: 'button' | 'a';
|
|
522
|
+
as?: 'button' | 'a' | 'span';
|
|
522
523
|
}
|
|
523
524
|
declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
524
525
|
|
|
@@ -536,11 +537,11 @@ interface StackProps$1 extends BlockWithOptionsProps {
|
|
|
536
537
|
color?: keyof typeof color;
|
|
537
538
|
inverse?: boolean;
|
|
538
539
|
}
|
|
539
|
-
declare const Divider:
|
|
540
|
-
theme?:
|
|
540
|
+
declare const Divider: _emotion_styled.StyledComponent<{
|
|
541
|
+
theme?: _emotion_react.Theme | undefined;
|
|
541
542
|
as?: React.ElementType<any> | undefined;
|
|
542
543
|
} & BlockWithOptionsProps & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
543
|
-
theme?:
|
|
544
|
+
theme?: _emotion_react.Theme | undefined;
|
|
544
545
|
} & StackProps$1, {}, {}>;
|
|
545
546
|
|
|
546
547
|
interface DropdownProps {
|
|
@@ -551,34 +552,15 @@ interface DropdownProps {
|
|
|
551
552
|
declare const DropdownMenu: ({ label, variant, children, ...props }: DropdownProps) => JSX.Element;
|
|
552
553
|
|
|
553
554
|
declare const DropdownMenuCheckboxItem: ({ children, ...props }: RadixDropdownMenu.MenuCheckboxItemProps) => JSX.Element;
|
|
554
|
-
declare const DropdownMenuItem:
|
|
555
|
-
theme?:
|
|
555
|
+
declare const DropdownMenuItem: _emotion_styled.StyledComponent<RadixDropdownMenu.DropdownMenuItemProps & React__default.RefAttributes<HTMLDivElement> & {
|
|
556
|
+
theme?: _emotion_react.Theme | undefined;
|
|
556
557
|
}, {}, {}>;
|
|
557
558
|
|
|
558
|
-
interface FooterItem {
|
|
559
|
-
title: string;
|
|
560
|
-
href: string;
|
|
561
|
-
LinkWrapper?: any;
|
|
562
|
-
}
|
|
563
|
-
interface FooterColumn {
|
|
564
|
-
title: string;
|
|
565
|
-
links: FooterItem[];
|
|
566
|
-
}
|
|
567
|
-
interface FooterSocialItem extends FooterItem {
|
|
568
|
-
icon: IconProps['name'];
|
|
569
|
-
}
|
|
570
|
-
interface HomeItem {
|
|
571
|
-
href: string;
|
|
572
|
-
LinkWrapper?: any;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
559
|
interface FooterProps {
|
|
576
560
|
theme: 'light' | 'dark';
|
|
577
|
-
|
|
578
|
-
socialLinks: FooterSocialItem[];
|
|
579
|
-
homeLink: HomeItem;
|
|
561
|
+
LinkWrapper: ElementType;
|
|
580
562
|
}
|
|
581
|
-
declare const Footer: ({ theme,
|
|
563
|
+
declare const Footer: ({ theme, LinkWrapper, ...props }: FooterProps) => JSX.Element;
|
|
582
564
|
|
|
583
565
|
interface ColumnProps {
|
|
584
566
|
children: ReactNode;
|
|
@@ -601,55 +583,32 @@ declare const Grid: FC<GridProps> & {
|
|
|
601
583
|
Column: FC<ColumnProps>;
|
|
602
584
|
};
|
|
603
585
|
|
|
604
|
-
interface
|
|
605
|
-
name?: string;
|
|
606
|
-
maxItems?: number;
|
|
607
|
-
collapsible?: boolean;
|
|
608
|
-
content: {
|
|
609
|
-
title: string;
|
|
610
|
-
href: string;
|
|
611
|
-
linkWrapper?: any;
|
|
612
|
-
icon?: Icons;
|
|
613
|
-
iconColor?: keyof typeof color;
|
|
614
|
-
customIcon?: ReactNode;
|
|
615
|
-
}[];
|
|
616
|
-
}
|
|
617
|
-
interface HeaderDesktopItemContent {
|
|
618
|
-
type: 'link' | 'separator';
|
|
586
|
+
interface HeaderLink {
|
|
619
587
|
title: string;
|
|
620
|
-
description?: string;
|
|
621
|
-
href?: string;
|
|
622
|
-
linkWrapper?: any;
|
|
623
588
|
icon?: Icons;
|
|
624
589
|
iconColor?: keyof typeof color;
|
|
625
|
-
customIcon?: ReactNode;
|
|
626
|
-
|
|
627
|
-
interface HeaderDesktopItem {
|
|
628
|
-
id: string;
|
|
629
|
-
name: string;
|
|
630
|
-
href?: string;
|
|
590
|
+
customIcon?: React__default.ReactNode;
|
|
591
|
+
href: string;
|
|
631
592
|
linkWrapper?: any;
|
|
632
|
-
leftPosition?: number;
|
|
633
|
-
menu?: {
|
|
634
|
-
content: HeaderDesktopItemContent[];
|
|
635
|
-
backgroundColor?: keyof typeof color;
|
|
636
|
-
}[];
|
|
637
593
|
}
|
|
594
|
+
type HeaderLinks = Record<LinkKeys, HeaderLink>;
|
|
595
|
+
|
|
638
596
|
interface HeaderProps {
|
|
639
597
|
theme?: 'light' | 'dark';
|
|
640
|
-
logo?: 'chromatic' | 'storybook';
|
|
641
|
-
logoHref?: string;
|
|
642
598
|
logoLinkWrapper?: any;
|
|
643
|
-
desktopData: HeaderDesktopItem[];
|
|
644
|
-
desktopRight?: ReactNode;
|
|
645
599
|
desktopActiveId?: string;
|
|
646
|
-
mobileData: HeaderMobileSection[];
|
|
647
|
-
mobileTop?: ReactNode;
|
|
648
|
-
mobileBottom?: ReactNode;
|
|
649
600
|
fullWidth?: boolean;
|
|
601
|
+
loggedIn?: boolean;
|
|
602
|
+
maintenanceMode?: boolean;
|
|
603
|
+
isSticky?: boolean;
|
|
604
|
+
links: HeaderLinks;
|
|
605
|
+
TrackSignUp: ComponentType<{
|
|
606
|
+
children: ReactNode;
|
|
607
|
+
}>;
|
|
650
608
|
}
|
|
609
|
+
type LinkKeys = 'signin' | 'signup' | 'uiTest' | 'visualTest' | 'interactionTest' | 'accessibilityTest' | 'storybook' | 'playwright' | 'cypress' | 'turboSnap' | 'uiReview' | 'publish' | 'figmaPlugin' | 'frontendTeams' | 'designSystems' | 'digitalAgencies' | 'aboutChromatic' | 'careers' | 'security' | 'enterprise' | 'netlify' | 'monday' | 'collective' | 'ezcater' | 'blog' | 'changelog' | 'frontendTestingGuide' | 'docs' | 'pricing' | 'sales';
|
|
651
610
|
|
|
652
|
-
declare const Header:
|
|
611
|
+
declare const Header: ({ theme, links, logoLinkWrapper, desktopActiveId, fullWidth, loggedIn, maintenanceMode, isSticky, TrackSignUp, }: HeaderProps) => JSX.Element;
|
|
653
612
|
|
|
654
613
|
declare const CollectiveIcon: () => JSX.Element;
|
|
655
614
|
|
|
@@ -693,6 +652,7 @@ interface LinkWithWrapperProps extends React__default.AnchorHTMLAttributes<HTMLA
|
|
|
693
652
|
LinkWrapper?: ElementType;
|
|
694
653
|
children: ReactNode;
|
|
695
654
|
href: string;
|
|
655
|
+
noAnchor?: boolean;
|
|
696
656
|
}
|
|
697
657
|
/**
|
|
698
658
|
* Optionally replace anchor tags with a wrapper component
|
|
@@ -725,8 +685,8 @@ interface NormalizeAreaProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
725
685
|
* https://nicksherman.com/size-by-area/ &
|
|
726
686
|
* https://piperhaywood.com/images-consistent-surface-area/
|
|
727
687
|
*/
|
|
728
|
-
declare const NormalizeArea:
|
|
729
|
-
theme?:
|
|
688
|
+
declare const NormalizeArea: _emotion_styled.StyledComponent<{
|
|
689
|
+
theme?: _emotion_react.Theme | undefined;
|
|
730
690
|
as?: React.ElementType<any> | undefined;
|
|
731
691
|
} & NormalizeAreaProps, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
732
692
|
|
|
@@ -751,32 +711,32 @@ interface StackProps extends BlockWithOptionsProps {
|
|
|
751
711
|
align: 'flex-start' | 'center' | 'flex-end';
|
|
752
712
|
justify?: 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
753
713
|
}
|
|
754
|
-
declare const Stack:
|
|
755
|
-
theme?:
|
|
714
|
+
declare const Stack: _emotion_styled.StyledComponent<{
|
|
715
|
+
theme?: _emotion_react.Theme | undefined;
|
|
756
716
|
as?: React.ElementType<any> | undefined;
|
|
757
717
|
} & BlockWithOptionsProps & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
758
|
-
theme?:
|
|
718
|
+
theme?: _emotion_react.Theme | undefined;
|
|
759
719
|
} & {
|
|
760
720
|
gap?: StackProps['gap'];
|
|
761
721
|
direction?: StackProps['direction'];
|
|
762
722
|
align?: "center" | "flex-start" | "flex-end" | undefined;
|
|
763
723
|
justify?: StackProps['justify'];
|
|
764
724
|
}, {}, {}>;
|
|
765
|
-
declare const HStack:
|
|
766
|
-
theme?:
|
|
725
|
+
declare const HStack: _emotion_styled.StyledComponent<{
|
|
726
|
+
theme?: _emotion_react.Theme | undefined;
|
|
767
727
|
as?: React.ElementType<any> | undefined;
|
|
768
728
|
} & BlockWithOptionsProps & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
769
|
-
theme?:
|
|
729
|
+
theme?: _emotion_react.Theme | undefined;
|
|
770
730
|
} & {
|
|
771
731
|
gap?: StackProps['gap'];
|
|
772
732
|
align?: "center" | "flex-start" | "flex-end" | undefined;
|
|
773
733
|
justify?: StackProps['justify'];
|
|
774
734
|
}, {}, {}>;
|
|
775
|
-
declare const VStack:
|
|
776
|
-
theme?:
|
|
735
|
+
declare const VStack: _emotion_styled.StyledComponent<{
|
|
736
|
+
theme?: _emotion_react.Theme | undefined;
|
|
777
737
|
as?: React.ElementType<any> | undefined;
|
|
778
738
|
} & BlockWithOptionsProps & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
779
|
-
theme?:
|
|
739
|
+
theme?: _emotion_react.Theme | undefined;
|
|
780
740
|
} & {
|
|
781
741
|
gap?: StackProps['gap'];
|
|
782
742
|
align?: "center" | "flex-start" | "flex-end" | undefined;
|