@cruk/cruk-react-components 5.0.0 → 5.0.2
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/README.md +24 -0
- package/lib/components/AddressLookup/styles.d.ts +1 -1
- package/lib/components/AllThemesWrapper.d.ts +4 -6
- package/lib/components/Avatar/styles.d.ts +3 -4
- package/lib/components/Badge/index.d.ts +3 -3
- package/lib/components/Badge/styles.d.ts +7 -8
- package/lib/components/Box/styles.d.ts +4 -4
- package/lib/components/Button/styles.d.ts +7 -9
- package/lib/components/Carousel/Dots.d.ts +4 -5
- package/lib/components/Carousel/styles.d.ts +24 -29
- package/lib/components/Checkbox/styles.d.ts +13 -12
- package/lib/components/Collapse/styles.d.ts +6 -6
- package/lib/components/DateField/styles.d.ts +9 -7
- package/lib/components/Divider.d.ts +2 -3
- package/lib/components/Flex.d.ts +2 -1
- package/lib/components/Header/styles.d.ts +19 -22
- package/lib/components/Heading/index.d.ts +3 -3
- package/lib/components/Heading/styles.d.ts +8 -8
- package/lib/components/IconFa/index.d.ts +1 -1
- package/lib/components/LabelWrapper/styles.d.ts +1 -1
- package/lib/components/LegendWrapper/styles.d.ts +3 -3
- package/lib/components/Link/styles.d.ts +2 -2
- package/lib/components/Modal/styles.d.ts +12 -13
- package/lib/components/Pagination/styles.d.ts +10 -12
- package/lib/components/PopOver/styles.d.ts +5 -5
- package/lib/components/ProgressBar/styles.d.ts +25 -29
- package/lib/components/Radio/styles.d.ts +15 -15
- package/lib/components/RadioConsent/styles.d.ts +8 -6
- package/lib/components/Select/styles.d.ts +2 -2
- package/lib/components/Spacing/index.d.ts +51 -2
- package/lib/components/Step/styles.d.ts +12 -14
- package/lib/components/Text/styles.d.ts +10 -10
- package/lib/components/TextAreaField/TextAreaField.stories.d.ts +0 -1
- package/lib/components/TextAreaField/styles.d.ts +3 -3
- package/lib/components/TextField/styles.d.ts +4 -4
- package/lib/components/ThemeCheatSheet.d.ts +2 -3
- package/lib/components/Totaliser/index.d.ts +2 -2
- package/lib/components/Totaliser/styles.d.ts +20 -14
- package/lib/src/components/AddressLookup/index.js +1 -1
- package/lib/src/components/AddressLookup/index.js.map +1 -1
- package/lib/src/components/AddressLookup/styles.js +1 -1
- package/lib/src/components/AddressLookup/styles.js.map +1 -1
- package/lib/src/components/Avatar/index.js +1 -1
- package/lib/src/components/Avatar/index.js.map +1 -1
- package/lib/src/components/Avatar/styles.js +1 -1
- package/lib/src/components/Avatar/styles.js.map +1 -1
- package/lib/src/components/Badge/index.js +1 -1
- package/lib/src/components/Badge/index.js.map +1 -1
- package/lib/src/components/Badge/styles.js +1 -1
- package/lib/src/components/Badge/styles.js.map +1 -1
- package/lib/src/components/Box/index.js +1 -1
- package/lib/src/components/Box/index.js.map +1 -1
- package/lib/src/components/Box/styles.js +1 -1
- package/lib/src/components/Box/styles.js.map +1 -1
- package/lib/src/components/Button/index.js +1 -1
- package/lib/src/components/Button/index.js.map +1 -1
- package/lib/src/components/Button/styles.js +1 -1
- package/lib/src/components/Button/styles.js.map +1 -1
- package/lib/src/components/Carousel/Dots.js +1 -1
- package/lib/src/components/Carousel/Dots.js.map +1 -1
- package/lib/src/components/Carousel/index.js +1 -1
- package/lib/src/components/Carousel/index.js.map +1 -1
- package/lib/src/components/Carousel/styles.js +1 -1
- package/lib/src/components/Carousel/styles.js.map +1 -1
- package/lib/src/components/Checkbox/index.js +1 -1
- package/lib/src/components/Checkbox/index.js.map +1 -1
- package/lib/src/components/Checkbox/styles.js +1 -1
- package/lib/src/components/Checkbox/styles.js.map +1 -1
- package/lib/src/components/Collapse/index.js +1 -1
- package/lib/src/components/Collapse/index.js.map +1 -1
- package/lib/src/components/Collapse/styles.js +1 -1
- package/lib/src/components/Collapse/styles.js.map +1 -1
- package/lib/src/components/DateField/styles.js.map +1 -1
- package/lib/src/components/Divider.js +1 -1
- package/lib/src/components/Divider.js.map +1 -1
- package/lib/src/components/Flex.js +1 -1
- package/lib/src/components/Flex.js.map +1 -1
- package/lib/src/components/Header/index.js +1 -1
- package/lib/src/components/Header/index.js.map +1 -1
- package/lib/src/components/Header/styles.js +1 -1
- package/lib/src/components/Header/styles.js.map +1 -1
- package/lib/src/components/Heading/index.js +1 -1
- package/lib/src/components/Heading/index.js.map +1 -1
- package/lib/src/components/Heading/styles.js +1 -1
- package/lib/src/components/Heading/styles.js.map +1 -1
- package/lib/src/components/IconFa/index.js +1 -1
- package/lib/src/components/IconFa/index.js.map +1 -1
- package/lib/src/components/LabelWrapper/index.js +1 -1
- package/lib/src/components/LabelWrapper/index.js.map +1 -1
- package/lib/src/components/LabelWrapper/styles.js +1 -1
- package/lib/src/components/LabelWrapper/styles.js.map +1 -1
- package/lib/src/components/LegendWrapper/index.js +1 -1
- package/lib/src/components/LegendWrapper/index.js.map +1 -1
- package/lib/src/components/LegendWrapper/styles.js +1 -1
- package/lib/src/components/LegendWrapper/styles.js.map +1 -1
- package/lib/src/components/Link/index.js +1 -1
- package/lib/src/components/Link/index.js.map +1 -1
- package/lib/src/components/Link/styles.js +1 -1
- package/lib/src/components/Link/styles.js.map +1 -1
- package/lib/src/components/Modal/index.js +1 -1
- package/lib/src/components/Modal/index.js.map +1 -1
- package/lib/src/components/Modal/styles.js +1 -1
- package/lib/src/components/Modal/styles.js.map +1 -1
- package/lib/src/components/Pagination/index.js +1 -1
- package/lib/src/components/Pagination/index.js.map +1 -1
- package/lib/src/components/Pagination/styles.js +1 -1
- package/lib/src/components/Pagination/styles.js.map +1 -1
- package/lib/src/components/PopOver/index.js +1 -1
- package/lib/src/components/PopOver/index.js.map +1 -1
- package/lib/src/components/PopOver/styles.js +1 -1
- package/lib/src/components/PopOver/styles.js.map +1 -1
- package/lib/src/components/ProgressBar/index.js +1 -1
- package/lib/src/components/ProgressBar/index.js.map +1 -1
- package/lib/src/components/ProgressBar/styles.js +1 -1
- package/lib/src/components/ProgressBar/styles.js.map +1 -1
- package/lib/src/components/Radio/index.js +1 -1
- package/lib/src/components/Radio/index.js.map +1 -1
- package/lib/src/components/Radio/styles.js +1 -1
- package/lib/src/components/Radio/styles.js.map +1 -1
- package/lib/src/components/RadioConsent/index.js +1 -1
- package/lib/src/components/RadioConsent/index.js.map +1 -1
- package/lib/src/components/RadioConsent/styles.js +1 -1
- package/lib/src/components/RadioConsent/styles.js.map +1 -1
- package/lib/src/components/Select/index.js +1 -1
- package/lib/src/components/Select/index.js.map +1 -1
- package/lib/src/components/Select/styles.js +1 -1
- package/lib/src/components/Select/styles.js.map +1 -1
- package/lib/src/components/Spacing/index.js +1 -1
- package/lib/src/components/Spacing/index.js.map +1 -1
- package/lib/src/components/Step/index.js +1 -1
- package/lib/src/components/Step/index.js.map +1 -1
- package/lib/src/components/Step/styles.js +1 -1
- package/lib/src/components/Step/styles.js.map +1 -1
- package/lib/src/components/Text/index.js +1 -1
- package/lib/src/components/Text/index.js.map +1 -1
- package/lib/src/components/Text/styles.js +1 -1
- package/lib/src/components/Text/styles.js.map +1 -1
- package/lib/src/components/TextAreaField/index.js +1 -1
- package/lib/src/components/TextAreaField/index.js.map +1 -1
- package/lib/src/components/TextAreaField/styles.js +1 -1
- package/lib/src/components/TextAreaField/styles.js.map +1 -1
- package/lib/src/components/TextField/index.js +1 -1
- package/lib/src/components/TextField/index.js.map +1 -1
- package/lib/src/components/TextField/styles.js +1 -1
- package/lib/src/components/TextField/styles.js.map +1 -1
- package/lib/src/components/Totaliser/index.js +1 -1
- package/lib/src/components/Totaliser/index.js.map +1 -1
- package/lib/src/components/Totaliser/styles.js +1 -1
- package/lib/src/components/Totaliser/styles.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -52,6 +52,30 @@ export const StyledButton = styled(Button)<StyledButtonProps>`
|
|
|
52
52
|
`;
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
+
Styled components 6 also no longer filters out custom props, so to stop a prop bleeding into child components or the underlying html element, prefix the prop name with a $ see size prop in example below:
|
|
56
|
+
|
|
57
|
+
### Before:
|
|
58
|
+
|
|
59
|
+
```tsx
|
|
60
|
+
<StyledAvatar
|
|
61
|
+
{...rest}
|
|
62
|
+
size={theme.avatar[size || "m"]}
|
|
63
|
+
src={avatarUrl()}
|
|
64
|
+
alt={alt}
|
|
65
|
+
/>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Now:
|
|
69
|
+
|
|
70
|
+
```tsx
|
|
71
|
+
<StyledAvatar
|
|
72
|
+
{...rest}
|
|
73
|
+
$size={theme.avatar[size || "m"]}
|
|
74
|
+
src={avatarUrl()}
|
|
75
|
+
alt={alt}
|
|
76
|
+
/>
|
|
77
|
+
```
|
|
78
|
+
|
|
55
79
|
## Migration from V0 to V1
|
|
56
80
|
|
|
57
81
|
1. Find all instances of RadioGroup and change it to the new component name of RadioConsent
|
|
@@ -4,7 +4,7 @@ interface ListWrapperProps extends React.HTMLProps<HTMLDivElement> {
|
|
|
4
4
|
}
|
|
5
5
|
type ListProps = {
|
|
6
6
|
theme: ThemeType;
|
|
7
|
-
isActive?: boolean;
|
|
7
|
+
$isActive?: boolean;
|
|
8
8
|
};
|
|
9
9
|
export declare const ListWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ListWrapperProps>> & string;
|
|
10
10
|
export declare const List: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, ListProps & {
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import React, { type ReactNode } from "react";
|
|
2
2
|
import { type ThemeType } from "../types";
|
|
3
|
-
|
|
3
|
+
export declare const TestThemeWrapper: ({ children, theme, }: {
|
|
4
4
|
theme?: ThemeType;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
};
|
|
7
|
-
export declare const
|
|
8
|
-
type AllThemesWrapperProps = {
|
|
6
|
+
}) => React.JSX.Element;
|
|
7
|
+
export declare const AllThemesWrapper: ({ children }: {
|
|
9
8
|
children?: ReactNode;
|
|
10
|
-
};
|
|
11
|
-
export declare const AllThemesWrapper: ({ children }: AllThemesWrapperProps) => React.JSX.Element;
|
|
9
|
+
}) => React.JSX.Element;
|
|
12
10
|
export default AllThemesWrapper;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type ThemeType } from "../../types";
|
|
2
|
-
|
|
3
|
-
size?: string;
|
|
2
|
+
export declare const StyledAvatar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {
|
|
3
|
+
$size?: string;
|
|
4
4
|
theme: ThemeType;
|
|
5
|
-
};
|
|
6
|
-
export declare const StyledAvatar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, AvatarStyledProps>> & string;
|
|
5
|
+
}>> & string;
|
|
7
6
|
export default StyledAvatar;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { type ReactNode } from "react";
|
|
1
|
+
import React, { type HTMLAttributes, type ReactNode } from "react";
|
|
2
2
|
import { type SpaceType } from "../../types";
|
|
3
|
-
export type BadgeProps = {
|
|
3
|
+
export type BadgeProps = HTMLAttributes<HTMLSpanElement> & {
|
|
4
4
|
/** background colour of badge */
|
|
5
5
|
backgroundColor?: string;
|
|
6
6
|
/** border colour of badge */
|
|
@@ -25,5 +25,5 @@ at the end of a sentence, link, or button. Unless the context is clear,
|
|
|
25
25
|
consider including additional context with a visually hidden piece of
|
|
26
26
|
additional text.
|
|
27
27
|
*/
|
|
28
|
-
export declare function Badge({ children, ...rest }: BadgeProps): React.JSX.Element;
|
|
28
|
+
export declare function Badge({ children, size, backgroundColor, borderColor, textColor, ...rest }: BadgeProps): React.JSX.Element;
|
|
29
29
|
export default Badge;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { type SpaceType, type ThemeType } from "../../types";
|
|
2
|
-
|
|
3
|
-
backgroundColor?: string;
|
|
4
|
-
borderColor?: string;
|
|
5
|
-
textColor?: string;
|
|
6
|
-
isText?: boolean;
|
|
7
|
-
size: SpaceType;
|
|
2
|
+
export declare const StyledBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
3
|
+
$backgroundColor?: string;
|
|
4
|
+
$borderColor?: string;
|
|
5
|
+
$textColor?: string;
|
|
6
|
+
$isText?: boolean;
|
|
7
|
+
$size: SpaceType;
|
|
8
8
|
theme: ThemeType;
|
|
9
|
-
};
|
|
10
|
-
export declare const StyledBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, StyleBadgeProps>> & string;
|
|
9
|
+
}>> & string;
|
|
11
10
|
export default StyledBadge;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type SpacingPropsInternal } from "../Spacing";
|
|
2
2
|
import { type ThemeType } from "../../types";
|
|
3
|
-
type StyledBoxProps =
|
|
4
|
-
backgroundColor?: string;
|
|
5
|
-
css?: string;
|
|
3
|
+
type StyledBoxProps = SpacingPropsInternal & {
|
|
4
|
+
$backgroundColor?: string;
|
|
5
|
+
$css?: string;
|
|
6
6
|
theme: ThemeType;
|
|
7
7
|
};
|
|
8
8
|
export declare const StyledBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledBoxProps>> & string;
|
|
@@ -2,14 +2,12 @@ import { type ThemeType, type ButtonAppearanceType } from "../../types";
|
|
|
2
2
|
export declare const Spacer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
3
3
|
theme: ThemeType;
|
|
4
4
|
}>> & string;
|
|
5
|
-
|
|
6
|
-
isIconButton: boolean;
|
|
7
|
-
appearance?: ButtonAppearanceType;
|
|
8
|
-
full?: boolean;
|
|
5
|
+
export declare const StyledButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
9
6
|
theme: ThemeType;
|
|
10
7
|
href?: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
$isIconButton: boolean;
|
|
9
|
+
$appearance?: ButtonAppearanceType;
|
|
10
|
+
$full?: boolean;
|
|
11
|
+
$size?: "m" | "l";
|
|
12
|
+
$css?: string;
|
|
13
|
+
}>> & string;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React, { type ButtonHTMLAttributes } from "react";
|
|
2
|
-
|
|
2
|
+
export declare const CarouselLeftButton: (props: ButtonHTMLAttributes<HTMLElement>) => React.JSX.Element;
|
|
3
|
+
export declare const CarouselRightButton: (props: ButtonHTMLAttributes<HTMLElement>) => React.JSX.Element;
|
|
4
|
+
export declare const Dots: ({ count, currentPosition, scrollToPosition, next, previous, }: {
|
|
3
5
|
count: number;
|
|
4
6
|
currentPosition: number;
|
|
5
7
|
scrollToPosition: (to: number) => void;
|
|
6
8
|
next: () => void;
|
|
7
9
|
previous: () => void;
|
|
8
|
-
};
|
|
9
|
-
export declare const CarouselLeftButton: (props: ButtonHTMLAttributes<HTMLElement>) => React.JSX.Element;
|
|
10
|
-
export declare const CarouselRightButton: (props: ButtonHTMLAttributes<HTMLElement>) => React.JSX.Element;
|
|
11
|
-
export declare const Dots: ({ count, currentPosition, scrollToPosition, next, previous, }: DotProps) => React.JSX.Element;
|
|
10
|
+
}) => React.JSX.Element;
|
|
12
11
|
export default Dots;
|
|
@@ -1,35 +1,30 @@
|
|
|
1
|
-
import { type ButtonHTMLAttributes } from "react";
|
|
2
1
|
import { type ThemeType } from "../../types";
|
|
3
2
|
export declare const CarouselWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
onlyChild: boolean;
|
|
18
|
-
fullWidthChild: boolean;
|
|
19
|
-
};
|
|
20
|
-
export declare const CarouselScrollArea: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, CarouselScrollAreaProps>> & string;
|
|
21
|
-
export declare const CarouselCard: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, CarouselCardProps>> & string;
|
|
22
|
-
export declare const CarouselCardInner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, CarouselCardInnerProps>> & string;
|
|
3
|
+
export declare const CarouselScrollArea: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {
|
|
4
|
+
$smoothScrolling: boolean;
|
|
5
|
+
}>> & string;
|
|
6
|
+
export declare const CarouselCard: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {
|
|
7
|
+
$onlyChild: boolean;
|
|
8
|
+
$fullWidthChild: boolean;
|
|
9
|
+
}>> & string;
|
|
10
|
+
export declare const CarouselCardInner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
11
|
+
$isSelected: boolean;
|
|
12
|
+
$shrinkUnselectedPages: boolean;
|
|
13
|
+
$onlyChild: boolean;
|
|
14
|
+
$fullWidthChild: boolean;
|
|
15
|
+
}>> & string;
|
|
23
16
|
export declare const ButtonWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
24
17
|
export declare const VerticalAlign: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
18
|
+
export declare const CarouselButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
theme: ThemeType;
|
|
21
|
+
}>> & string;
|
|
22
|
+
export declare const DotContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
23
|
+
$count: number;
|
|
24
|
+
theme: ThemeType;
|
|
25
|
+
}>> & string;
|
|
26
|
+
export declare const Dot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
27
|
+
$selected: boolean;
|
|
28
|
+
theme: ThemeType;
|
|
33
29
|
}>> & string;
|
|
34
30
|
export declare const ScreenReaderOnly: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
35
|
-
export {};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { type ThemeType } from "../../types";
|
|
2
|
-
|
|
3
|
-
checked: boolean;
|
|
4
|
-
disabled: boolean;
|
|
5
|
-
hasError: boolean;
|
|
2
|
+
export declare const CheckWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
6
3
|
theme: ThemeType;
|
|
7
|
-
};
|
|
8
|
-
|
|
4
|
+
}>> & string;
|
|
5
|
+
export declare const Check: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
9
6
|
theme: ThemeType;
|
|
10
|
-
};
|
|
11
|
-
export declare const
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
}>> & string;
|
|
8
|
+
export declare const StyledLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {
|
|
9
|
+
$checked: boolean;
|
|
10
|
+
$disabled: boolean;
|
|
11
|
+
$hasError: boolean;
|
|
12
|
+
theme: ThemeType;
|
|
13
|
+
}>> & string;
|
|
14
14
|
export declare const SelectedBorder: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
15
|
-
export declare const StyledInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>,
|
|
16
|
-
|
|
15
|
+
export declare const StyledInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {
|
|
16
|
+
theme: ThemeType;
|
|
17
|
+
}>> & string;
|
|
@@ -2,18 +2,18 @@ import { type FontSizeType, type ThemeType } from "../../types";
|
|
|
2
2
|
import IconFa from "../IconFa";
|
|
3
3
|
export declare const transitionDurationSeconds = 0.5;
|
|
4
4
|
export declare const FlippingIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../IconFa").IconFaProps, {
|
|
5
|
-
open: boolean;
|
|
5
|
+
$open: boolean;
|
|
6
6
|
}>> & string & Omit<typeof IconFa, keyof import("react").Component<any, {}, any>>;
|
|
7
7
|
export declare const DefaultHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("../Button").ButtonProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
|
|
8
8
|
ref?: ((instance: HTMLElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLElement> | null | undefined;
|
|
9
9
|
}, {
|
|
10
|
-
textColor?: string;
|
|
11
|
-
textSize?: FontSizeType;
|
|
12
|
-
textFontFamily?: string;
|
|
13
10
|
theme: ThemeType;
|
|
11
|
+
$textColor?: string;
|
|
12
|
+
$textSize?: FontSizeType;
|
|
13
|
+
$textFontFamily?: string;
|
|
14
14
|
}>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("../Button").ButtonProps, "ref"> & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
15
15
|
export declare const CollapseContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
16
|
-
contentHeight: string;
|
|
17
|
-
openStatus: boolean;
|
|
16
|
+
$contentHeight: string;
|
|
17
|
+
$openStatus: boolean;
|
|
18
18
|
}>> & string;
|
|
19
19
|
export declare const CustomHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { type ThemeType } from "../../types";
|
|
2
|
-
type ThemeProps = {
|
|
3
|
-
theme: ThemeType;
|
|
4
|
-
};
|
|
5
2
|
export declare const Fieldset: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, never>> & string;
|
|
6
3
|
export declare const TextAsLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("../Text").TextProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
|
|
7
4
|
ref?: ((instance: HTMLElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLElement> | null | undefined;
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
}, {
|
|
6
|
+
theme: ThemeType;
|
|
7
|
+
}>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("../Text").TextProps, "ref"> & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
8
|
+
export declare const DateTextFieldWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
9
|
+
theme: ThemeType;
|
|
10
|
+
}>> & string;
|
|
11
|
+
export declare const LargeDateTextFieldWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & {
|
|
12
|
+
theme: ThemeType;
|
|
13
|
+
}, "ref"> & {
|
|
11
14
|
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
12
15
|
}, never>> & string;
|
|
13
16
|
export declare const ErrorTextWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
14
|
-
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { type ReactNode } from "react";
|
|
2
|
-
|
|
2
|
+
export declare const Divider: ({ children }: {
|
|
3
3
|
children?: ReactNode;
|
|
4
|
-
};
|
|
5
|
-
export declare const Divider: ({ children }: DividerProps) => React.JSX.Element;
|
|
4
|
+
}) => React.JSX.Element;
|
|
6
5
|
export default Divider;
|
package/lib/components/Flex.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { type SpacingProps } from "./Spacing";
|
|
2
3
|
import { type ThemeType } from "../types";
|
|
3
4
|
type Props = SpacingProps & {
|
|
4
5
|
theme: ThemeType;
|
|
5
6
|
};
|
|
6
|
-
export declare
|
|
7
|
+
export declare function Flex(props: Props): React.JSX.Element;
|
|
7
8
|
export default Flex;
|
|
@@ -1,36 +1,33 @@
|
|
|
1
1
|
import { type ThemeType } from "../../types";
|
|
2
|
-
|
|
2
|
+
export declare const StyledHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {
|
|
3
3
|
theme: ThemeType;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
export declare const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
isSmall?: boolean;
|
|
12
|
-
isSticky?: boolean;
|
|
4
|
+
}>> & string;
|
|
5
|
+
export declare const HeaderStickyPlaceHolder: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
6
|
+
theme: ThemeType;
|
|
7
|
+
}>> & string;
|
|
8
|
+
export declare const HeaderStickyContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
9
|
+
$isSmall?: boolean;
|
|
10
|
+
$isSticky?: boolean;
|
|
13
11
|
theme: ThemeType;
|
|
14
|
-
};
|
|
15
|
-
export declare const HeaderStickyContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, HeaderStickyProps>> & string;
|
|
12
|
+
}>> & string;
|
|
16
13
|
export declare const HeaderMainContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
17
|
-
fullWidth?: boolean;
|
|
14
|
+
$fullWidth?: boolean;
|
|
18
15
|
theme: ThemeType;
|
|
19
16
|
}>> & string;
|
|
20
17
|
export declare const Logo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
|
|
21
|
-
|
|
22
|
-
isSmall?: boolean;
|
|
23
|
-
isSticky?: boolean;
|
|
18
|
+
export declare const LogoWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
19
|
+
$isSmall?: boolean;
|
|
20
|
+
$isSticky?: boolean;
|
|
24
21
|
theme: ThemeType;
|
|
25
|
-
};
|
|
26
|
-
export declare const LogoWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, LogoWrapperProps>> & string;
|
|
22
|
+
}>> & string;
|
|
27
23
|
export declare const StyledLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>> & string;
|
|
28
|
-
export declare const SkipToMain: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>,
|
|
24
|
+
export declare const SkipToMain: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {
|
|
25
|
+
theme: ThemeType;
|
|
26
|
+
}>> & string;
|
|
29
27
|
export declare const Tagline: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {
|
|
30
|
-
isSmall?: boolean;
|
|
31
|
-
isSticky?: boolean;
|
|
28
|
+
$isSmall?: boolean;
|
|
29
|
+
$isSticky?: boolean;
|
|
32
30
|
theme: ThemeType;
|
|
33
31
|
}>> & string;
|
|
34
32
|
export declare const ChildWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
35
33
|
export declare const ChildInner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
36
|
-
export {};
|
|
@@ -14,12 +14,12 @@ export type HeadingProps = SpacingProps & HTMLAttributes<HTMLElement> & {
|
|
|
14
14
|
textAlign?: "left" | "right" | "center";
|
|
15
15
|
/** color of text */
|
|
16
16
|
textColor?: string;
|
|
17
|
-
/** styled-component polymorphic feature so you take the styling of a header and cast the component to be a "span" for example */
|
|
18
|
-
as?: ElementType;
|
|
19
17
|
/** word-break behavior */
|
|
20
18
|
wordBreak?: WordBreakType;
|
|
21
19
|
/** overflow-wrap behavior */
|
|
22
20
|
overflowWrap?: OverflowWrapType;
|
|
21
|
+
/** styled-component polymorphic feature so you take the styling of a header and cast the component to be a "span" for example */
|
|
22
|
+
as?: ElementType;
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -28,5 +28,5 @@ Markup headings semantically using the appropriate <h#> level HTML element and
|
|
|
28
28
|
use the corresponding heading class (h1, h2, h3, ....). Write all headings in sentence case. Heading differs from the Text component by using a different font-family and it changes the font size according to the screen width breakpoints.
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
|
-
export declare function Heading({ h1, h2, h3, h4, h5, h6, ...props }: HeadingProps): React.JSX.Element;
|
|
31
|
+
export declare function Heading({ textSize, textAlign, textColor, wordBreak, overflowWrap, h1, h2, h3, h4, h5, h6, ...props }: HeadingProps): React.JSX.Element;
|
|
32
32
|
export default Heading;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type ThemeType, type FontSizeType, type WordBreakType } from "../../types";
|
|
3
|
-
type StyledHeadingProps =
|
|
1
|
+
import { type SpacingPropsInternal } from "../Spacing";
|
|
2
|
+
import { type ThemeType, type FontSizeType, type WordBreakType, type OverflowWrapType } from "../../types";
|
|
3
|
+
type StyledHeadingProps = SpacingPropsInternal & {
|
|
4
4
|
theme: ThemeType;
|
|
5
|
-
textSize?: FontSizeType;
|
|
6
|
-
textAlign?: "left" | "right" | "center";
|
|
7
|
-
textColor?: string;
|
|
8
|
-
wordBreak?: WordBreakType;
|
|
9
|
-
overflowWrap?:
|
|
5
|
+
$textSize?: FontSizeType;
|
|
6
|
+
$textAlign?: "left" | "right" | "center";
|
|
7
|
+
$textColor?: string;
|
|
8
|
+
$wordBreak?: WordBreakType;
|
|
9
|
+
$overflowWrap?: OverflowWrapType;
|
|
10
10
|
};
|
|
11
11
|
export declare const H1: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, StyledHeadingProps>> & string;
|
|
12
12
|
export declare const H2: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, StyledHeadingProps>> & string;
|
|
@@ -13,5 +13,5 @@ export type IconFaProps = {
|
|
|
13
13
|
*
|
|
14
14
|
* This is an svg icon wrapper where a font awesome icon definition can be passed in a long with colour and size
|
|
15
15
|
* */
|
|
16
|
-
export declare function IconFa({ faIcon, color, size
|
|
16
|
+
export declare function IconFa({ faIcon, color, size }: IconFaProps): React.JSX.Element;
|
|
17
17
|
export default IconFa;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ThemeType } from "../../types";
|
|
2
2
|
type LabelTextProp = {
|
|
3
|
-
hasHintText: boolean;
|
|
3
|
+
$hasHintText: boolean;
|
|
4
4
|
theme: ThemeType;
|
|
5
5
|
};
|
|
6
6
|
export declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type ThemeType } from "../../types";
|
|
2
2
|
type StyledFieldsetProps = {
|
|
3
|
-
hasError?: boolean;
|
|
3
|
+
$hasError?: boolean;
|
|
4
|
+
$hasHintText?: boolean;
|
|
4
5
|
theme: ThemeType;
|
|
5
|
-
hasHintText?: boolean;
|
|
6
6
|
};
|
|
7
7
|
export declare const LegendSpan: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
8
|
-
hasHintText: boolean;
|
|
8
|
+
$hasHintText: boolean;
|
|
9
9
|
theme: ThemeType;
|
|
10
10
|
}>> & string;
|
|
11
11
|
export declare const StyledFieldset: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, StyledFieldsetProps>> & string;
|
|
@@ -3,8 +3,8 @@ import { type TextProps } from "../Text";
|
|
|
3
3
|
import { type ThemeType } from "../../types";
|
|
4
4
|
type StyledLinkProps = AnchorHTMLAttributes<HTMLElement> & TextProps & {
|
|
5
5
|
theme: ThemeType;
|
|
6
|
-
appearance?: "primary" | "secondary";
|
|
7
|
-
textHoverColor?: string;
|
|
6
|
+
$appearance?: "primary" | "secondary";
|
|
7
|
+
$textHoverColor?: string;
|
|
8
8
|
};
|
|
9
9
|
export declare const StyledLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<TextProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
|
|
10
10
|
ref?: ((instance: HTMLElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLElement> | null | undefined;
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { type ThemeType } from "../../types";
|
|
2
|
-
|
|
2
|
+
export declare const Background: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
3
|
theme: ThemeType;
|
|
4
|
-
};
|
|
5
|
-
type ContentProps = {
|
|
6
|
-
backgroundColor?: string;
|
|
7
|
-
theme: ThemeType;
|
|
8
|
-
top: string;
|
|
9
|
-
width: string;
|
|
10
|
-
maxWidth: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const Background: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ThemeProp>> & string;
|
|
4
|
+
}>> & string;
|
|
13
5
|
export declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
14
6
|
export declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("../Box").BoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
15
7
|
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
16
|
-
},
|
|
8
|
+
}, {
|
|
9
|
+
$backgroundColor?: string;
|
|
10
|
+
$top: string;
|
|
11
|
+
$width: string;
|
|
12
|
+
$maxWidth: string;
|
|
13
|
+
theme: ThemeType;
|
|
14
|
+
}>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("../Box").BoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
17
15
|
export declare const CloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("../Button").ButtonProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
|
|
18
16
|
ref?: ((instance: HTMLElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLElement> | null | undefined;
|
|
19
|
-
},
|
|
20
|
-
|
|
17
|
+
}, {
|
|
18
|
+
theme: ThemeType;
|
|
19
|
+
}>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("../Button").ButtonProps, "ref"> & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { type ThemeType } from "../../types";
|
|
2
|
-
|
|
3
|
-
theme: ThemeType;
|
|
4
|
-
};
|
|
5
|
-
type PaginationStyledProps = ThemeProps & {
|
|
6
|
-
active?: boolean;
|
|
7
|
-
name?: string;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
};
|
|
10
|
-
export declare const PagerWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, PaginationStyledProps>> & string;
|
|
2
|
+
export declare const PagerWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
11
3
|
export declare const PagerList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>> & string;
|
|
12
|
-
export declare const PagerLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>,
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
export declare const PagerLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {
|
|
5
|
+
name?: string;
|
|
6
|
+
theme: ThemeType;
|
|
7
|
+
$active?: boolean;
|
|
8
|
+
$disabled?: boolean;
|
|
9
|
+
}>> & string;
|
|
10
|
+
export declare const PagerItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {
|
|
11
|
+
theme: ThemeType;
|
|
12
|
+
}>> & string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type ThemeType, type PopOverPositionType } from "../../types";
|
|
2
2
|
export declare const PopOverWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
|
-
full: boolean;
|
|
4
|
-
css?: string;
|
|
3
|
+
$full: boolean;
|
|
4
|
+
$css?: string;
|
|
5
5
|
}>> & string;
|
|
6
6
|
export declare const PopOverModal: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
7
|
-
position: PopOverPositionType;
|
|
7
|
+
$position: PopOverPositionType;
|
|
8
|
+
$maxWidth: string;
|
|
9
|
+
$minWidth: string;
|
|
8
10
|
theme?: ThemeType;
|
|
9
|
-
maxWidth: string;
|
|
10
|
-
minWidth: string;
|
|
11
11
|
}>> & string;
|