@chromatic-com/tetra 3.2.4 → 3.2.5--canary.ef247e0.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 +52 -1
- package/dist/index.d.ts +52 -1
- package/dist/index.js +817 -563
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +817 -563
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -881,6 +881,57 @@ declare const Form: _emotion_styled.StyledComponent<{
|
|
|
881
881
|
justify?: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
882
882
|
}, React.DetailedHTMLProps<React.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, {}>;
|
|
883
883
|
|
|
884
|
+
interface AutocompleteOption {
|
|
885
|
+
value: string;
|
|
886
|
+
label: string;
|
|
887
|
+
}
|
|
888
|
+
interface AutocompleteProps {
|
|
889
|
+
options: AutocompleteOption[];
|
|
890
|
+
value?: string;
|
|
891
|
+
onChange?: (value: string) => void;
|
|
892
|
+
placeholder?: string;
|
|
893
|
+
inverse?: boolean;
|
|
894
|
+
disabled?: boolean;
|
|
895
|
+
'aria-invalid'?: boolean;
|
|
896
|
+
id?: string;
|
|
897
|
+
}
|
|
898
|
+
declare const Autocomplete: React__default.ForwardRefExoticComponent<AutocompleteProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
899
|
+
|
|
900
|
+
interface DatePickerProps {
|
|
901
|
+
value?: Date;
|
|
902
|
+
onChange?: (date: Date) => void;
|
|
903
|
+
placeholder?: string;
|
|
904
|
+
inverse?: boolean;
|
|
905
|
+
disabled?: boolean;
|
|
906
|
+
'aria-invalid'?: boolean;
|
|
907
|
+
id?: string;
|
|
908
|
+
minDate?: Date;
|
|
909
|
+
maxDate?: Date;
|
|
910
|
+
}
|
|
911
|
+
declare const DatePicker: React__default.ForwardRefExoticComponent<DatePickerProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
912
|
+
|
|
913
|
+
interface CalendarProps {
|
|
914
|
+
selectedDate?: Date;
|
|
915
|
+
onDateSelect: (date: Date) => void;
|
|
916
|
+
minDate?: Date;
|
|
917
|
+
maxDate?: Date;
|
|
918
|
+
}
|
|
919
|
+
declare const Calendar: React__default.FC<CalendarProps>;
|
|
920
|
+
|
|
921
|
+
interface FlightBookingProps {
|
|
922
|
+
airports: AutocompleteOption[];
|
|
923
|
+
onSearch?: (data: FlightBookingData) => void;
|
|
924
|
+
inverse?: boolean;
|
|
925
|
+
}
|
|
926
|
+
interface FlightBookingData {
|
|
927
|
+
source: string;
|
|
928
|
+
destination: string;
|
|
929
|
+
departureDate: Date;
|
|
930
|
+
returnDate?: Date;
|
|
931
|
+
tripType: 'one-way' | 'return';
|
|
932
|
+
}
|
|
933
|
+
declare const FlightBooking: React__default.FC<FlightBookingProps>;
|
|
934
|
+
|
|
884
935
|
declare const cssVariables: string;
|
|
885
936
|
|
|
886
|
-
export { Accordion, Avatar, BBCIcon, Button, Checkbox, CollectiveIcon, Container, CustomerStoryHero, CypressIcon, Divider, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuItem, EzCaterIcon, Field, Fieldset, FigmaIcon, Footer, type FooterProps, Form, FullWidthContainer, Grid, HStack, Header, type HeaderProps, Icon, type Icons, Input, IntegrationImage, Label, Legend, Link, LinkWithWrapper, type ListTypes, Logo, MondayIcon, NavDropdownMenu, NetlifyIcon, NormalizeArea, PlaywrightIcon, Range, Select, Stack, Stat, SubNav, Testimonial, Text, VStack, animations, breakpoint, color, cssVariables, fontFamily, fontSize, fontWeight, lineHeight, max2xl, maxLg, maxMd, maxSm, maxXl, min2xl, minBase, minLg, minMd, minSm, minXl, spacing, t, typography, useMediaQuery };
|
|
937
|
+
export { Accordion, Autocomplete, type AutocompleteOption, type AutocompleteProps, Avatar, BBCIcon, Button, Calendar, type CalendarProps, Checkbox, CollectiveIcon, Container, CustomerStoryHero, CypressIcon, DatePicker, type DatePickerProps, Divider, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuItem, EzCaterIcon, Field, Fieldset, FigmaIcon, FlightBooking, type FlightBookingData, type FlightBookingProps, Footer, type FooterProps, Form, FullWidthContainer, Grid, HStack, Header, type HeaderProps, Icon, type Icons, Input, IntegrationImage, Label, Legend, Link, LinkWithWrapper, type ListTypes, Logo, MondayIcon, NavDropdownMenu, NetlifyIcon, NormalizeArea, PlaywrightIcon, Range, Select, Stack, Stat, SubNav, Testimonial, Text, VStack, animations, breakpoint, color, cssVariables, fontFamily, fontSize, fontWeight, lineHeight, max2xl, maxLg, maxMd, maxSm, maxXl, min2xl, minBase, minLg, minMd, minSm, minXl, spacing, t, typography, useMediaQuery };
|
package/dist/index.d.ts
CHANGED
|
@@ -881,6 +881,57 @@ declare const Form: _emotion_styled.StyledComponent<{
|
|
|
881
881
|
justify?: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
882
882
|
}, React.DetailedHTMLProps<React.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, {}>;
|
|
883
883
|
|
|
884
|
+
interface AutocompleteOption {
|
|
885
|
+
value: string;
|
|
886
|
+
label: string;
|
|
887
|
+
}
|
|
888
|
+
interface AutocompleteProps {
|
|
889
|
+
options: AutocompleteOption[];
|
|
890
|
+
value?: string;
|
|
891
|
+
onChange?: (value: string) => void;
|
|
892
|
+
placeholder?: string;
|
|
893
|
+
inverse?: boolean;
|
|
894
|
+
disabled?: boolean;
|
|
895
|
+
'aria-invalid'?: boolean;
|
|
896
|
+
id?: string;
|
|
897
|
+
}
|
|
898
|
+
declare const Autocomplete: React__default.ForwardRefExoticComponent<AutocompleteProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
899
|
+
|
|
900
|
+
interface DatePickerProps {
|
|
901
|
+
value?: Date;
|
|
902
|
+
onChange?: (date: Date) => void;
|
|
903
|
+
placeholder?: string;
|
|
904
|
+
inverse?: boolean;
|
|
905
|
+
disabled?: boolean;
|
|
906
|
+
'aria-invalid'?: boolean;
|
|
907
|
+
id?: string;
|
|
908
|
+
minDate?: Date;
|
|
909
|
+
maxDate?: Date;
|
|
910
|
+
}
|
|
911
|
+
declare const DatePicker: React__default.ForwardRefExoticComponent<DatePickerProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
912
|
+
|
|
913
|
+
interface CalendarProps {
|
|
914
|
+
selectedDate?: Date;
|
|
915
|
+
onDateSelect: (date: Date) => void;
|
|
916
|
+
minDate?: Date;
|
|
917
|
+
maxDate?: Date;
|
|
918
|
+
}
|
|
919
|
+
declare const Calendar: React__default.FC<CalendarProps>;
|
|
920
|
+
|
|
921
|
+
interface FlightBookingProps {
|
|
922
|
+
airports: AutocompleteOption[];
|
|
923
|
+
onSearch?: (data: FlightBookingData) => void;
|
|
924
|
+
inverse?: boolean;
|
|
925
|
+
}
|
|
926
|
+
interface FlightBookingData {
|
|
927
|
+
source: string;
|
|
928
|
+
destination: string;
|
|
929
|
+
departureDate: Date;
|
|
930
|
+
returnDate?: Date;
|
|
931
|
+
tripType: 'one-way' | 'return';
|
|
932
|
+
}
|
|
933
|
+
declare const FlightBooking: React__default.FC<FlightBookingProps>;
|
|
934
|
+
|
|
884
935
|
declare const cssVariables: string;
|
|
885
936
|
|
|
886
|
-
export { Accordion, Avatar, BBCIcon, Button, Checkbox, CollectiveIcon, Container, CustomerStoryHero, CypressIcon, Divider, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuItem, EzCaterIcon, Field, Fieldset, FigmaIcon, Footer, type FooterProps, Form, FullWidthContainer, Grid, HStack, Header, type HeaderProps, Icon, type Icons, Input, IntegrationImage, Label, Legend, Link, LinkWithWrapper, type ListTypes, Logo, MondayIcon, NavDropdownMenu, NetlifyIcon, NormalizeArea, PlaywrightIcon, Range, Select, Stack, Stat, SubNav, Testimonial, Text, VStack, animations, breakpoint, color, cssVariables, fontFamily, fontSize, fontWeight, lineHeight, max2xl, maxLg, maxMd, maxSm, maxXl, min2xl, minBase, minLg, minMd, minSm, minXl, spacing, t, typography, useMediaQuery };
|
|
937
|
+
export { Accordion, Autocomplete, type AutocompleteOption, type AutocompleteProps, Avatar, BBCIcon, Button, Calendar, type CalendarProps, Checkbox, CollectiveIcon, Container, CustomerStoryHero, CypressIcon, DatePicker, type DatePickerProps, Divider, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuItem, EzCaterIcon, Field, Fieldset, FigmaIcon, FlightBooking, type FlightBookingData, type FlightBookingProps, Footer, type FooterProps, Form, FullWidthContainer, Grid, HStack, Header, type HeaderProps, Icon, type Icons, Input, IntegrationImage, Label, Legend, Link, LinkWithWrapper, type ListTypes, Logo, MondayIcon, NavDropdownMenu, NetlifyIcon, NormalizeArea, PlaywrightIcon, Range, Select, Stack, Stat, SubNav, Testimonial, Text, VStack, animations, breakpoint, color, cssVariables, fontFamily, fontSize, fontWeight, lineHeight, max2xl, maxLg, maxMd, maxSm, maxXl, min2xl, minBase, minLg, minMd, minSm, minXl, spacing, t, typography, useMediaQuery };
|