@trafilea/afrodita-components 5.0.0-beta.75 → 5.0.0-beta.76
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/build/index.d.ts +14 -4
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IconProps as IconProps$1 } from 'src/types/types';
|
|
3
|
-
import React, { FC, ReactNode, ElementType, CSSProperties, AriaAttributes,
|
|
3
|
+
import React, { FC, ReactNode, ElementType, CSSProperties, AriaAttributes, HTMLAttributes, LabelHTMLAttributes, RefObject } from 'react';
|
|
4
4
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
5
5
|
import * as _emotion_styled from '@emotion/styled';
|
|
6
6
|
import { StyledComponent } from '@emotion/styled';
|
|
@@ -1669,7 +1669,7 @@ interface PaginationProps {
|
|
|
1669
1669
|
}
|
|
1670
1670
|
declare const Pagination: ({ from, to, currentPage, onChange, underlineActive, boldActive, disabled, }: PaginationProps) => JSX.Element;
|
|
1671
1671
|
|
|
1672
|
-
declare const Text:
|
|
1672
|
+
declare const Text: ({ variant, children, testId, ...allProps }: TextProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1673
1673
|
declare type TextHeroProps = {
|
|
1674
1674
|
variant: 'hero1' | 'hero2' | 'hero3';
|
|
1675
1675
|
weight?: 'heavy' | 'bold' | 'demi';
|
|
@@ -1679,6 +1679,7 @@ declare type TextHeroProps = {
|
|
|
1679
1679
|
wide?: never;
|
|
1680
1680
|
original?: never;
|
|
1681
1681
|
allCaps?: never;
|
|
1682
|
+
href: never;
|
|
1682
1683
|
};
|
|
1683
1684
|
declare type TextDisplayProps = {
|
|
1684
1685
|
variant: 'display1' | 'display2';
|
|
@@ -1689,6 +1690,7 @@ declare type TextDisplayProps = {
|
|
|
1689
1690
|
wide?: never;
|
|
1690
1691
|
original?: never;
|
|
1691
1692
|
allCaps?: never;
|
|
1693
|
+
href: never;
|
|
1692
1694
|
};
|
|
1693
1695
|
declare type TextHeadingProps = {
|
|
1694
1696
|
variant: 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6';
|
|
@@ -1699,6 +1701,7 @@ declare type TextHeadingProps = {
|
|
|
1699
1701
|
wide?: never;
|
|
1700
1702
|
original?: never;
|
|
1701
1703
|
allCaps?: never;
|
|
1704
|
+
href?: never;
|
|
1702
1705
|
};
|
|
1703
1706
|
declare type TextBodyProps = {
|
|
1704
1707
|
variant: 'body';
|
|
@@ -1709,6 +1712,7 @@ declare type TextBodyProps = {
|
|
|
1709
1712
|
wide?: never;
|
|
1710
1713
|
original?: never;
|
|
1711
1714
|
allCaps?: never;
|
|
1715
|
+
href?: never;
|
|
1712
1716
|
};
|
|
1713
1717
|
declare type TextButtonProps = {
|
|
1714
1718
|
variant: 'button';
|
|
@@ -1719,6 +1723,7 @@ declare type TextButtonProps = {
|
|
|
1719
1723
|
wide?: boolean;
|
|
1720
1724
|
original?: never;
|
|
1721
1725
|
allCaps?: never;
|
|
1726
|
+
href?: never;
|
|
1722
1727
|
};
|
|
1723
1728
|
declare type TextPricingProps = {
|
|
1724
1729
|
variant: 'pricing';
|
|
@@ -1729,6 +1734,7 @@ declare type TextPricingProps = {
|
|
|
1729
1734
|
wide?: never;
|
|
1730
1735
|
original?: boolean;
|
|
1731
1736
|
allCaps?: never;
|
|
1737
|
+
href?: never;
|
|
1732
1738
|
};
|
|
1733
1739
|
declare type TextLinkProps = {
|
|
1734
1740
|
variant: 'link';
|
|
@@ -1739,7 +1745,8 @@ declare type TextLinkProps = {
|
|
|
1739
1745
|
wide?: never;
|
|
1740
1746
|
original?: never;
|
|
1741
1747
|
allCaps?: never;
|
|
1742
|
-
|
|
1748
|
+
href?: string;
|
|
1749
|
+
};
|
|
1743
1750
|
declare type TextLabelProps = {
|
|
1744
1751
|
variant: 'label';
|
|
1745
1752
|
weight?: 'regular' | 'demi';
|
|
@@ -1749,6 +1756,7 @@ declare type TextLabelProps = {
|
|
|
1749
1756
|
wide?: never;
|
|
1750
1757
|
original?: never;
|
|
1751
1758
|
allCaps?: never;
|
|
1759
|
+
href?: never;
|
|
1752
1760
|
} & LabelHTMLAttributes<'label'>;
|
|
1753
1761
|
declare type TextTagProps = {
|
|
1754
1762
|
variant: 'tag';
|
|
@@ -1759,8 +1767,10 @@ declare type TextTagProps = {
|
|
|
1759
1767
|
wide?: never;
|
|
1760
1768
|
original?: never;
|
|
1761
1769
|
allCaps?: boolean;
|
|
1770
|
+
href?: never;
|
|
1762
1771
|
};
|
|
1763
|
-
declare type TextProps = AriaAttributes & {
|
|
1772
|
+
declare type TextProps<T = Element> = AriaAttributes & HTMLAttributes<T> & {
|
|
1773
|
+
children: ReactNode;
|
|
1764
1774
|
style?: CSSProperties;
|
|
1765
1775
|
className?: string;
|
|
1766
1776
|
testId?: string;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Trafilea's Design System",
|
|
4
4
|
"author": "Trafilea",
|
|
5
5
|
"repository": "https://github.com/trafilea/afrodita-components",
|
|
6
|
-
"version": "5.0.0-beta.
|
|
6
|
+
"version": "5.0.0-beta.76",
|
|
7
7
|
"private": false,
|
|
8
8
|
"main": "build/index.js",
|
|
9
9
|
"style": "build/index.css",
|