@fluidattacks/design 1.2.28 → 1.2.30
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/design.js +297 -164
- package/dist/design.mjs +3552 -3162
- package/dist/gradients.svg +4 -4
- package/dist/src/components/button/types.d.ts +2 -0
- package/dist/src/components/content-card-carousel/index.d.ts +3 -0
- package/dist/src/components/content-card-carousel/scroll-buttons/index.d.ts +5 -1
- package/dist/src/components/content-card-carousel/styles.d.ts +3 -2
- package/dist/src/components/icon-card/index.d.ts +3 -0
- package/dist/src/components/icon-card/styles.d.ts +2 -0
- package/dist/src/components/icon-card/types.d.ts +10 -0
- package/dist/src/components/interactive-card/icon/index.d.ts +5 -0
- package/dist/src/components/interactive-card/index.d.ts +3 -0
- package/dist/src/components/interactive-card/styles.d.ts +3 -0
- package/dist/src/components/interactive-card/types.d.ts +20 -0
- package/dist/src/index.d.ts +2 -0
- package/package.json +2 -2
package/dist/gradients.svg
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
<stop offset="1" stop-color="#B8075D"/>
|
|
6
6
|
</linearGradient>
|
|
7
7
|
|
|
8
|
-
<linearGradient id="gradient-02" gradientTransform="rotate(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
<linearGradient id="gradient-02" gradientTransform="rotate(90)">
|
|
9
|
+
<stop stop-color="#667085"/>
|
|
10
|
+
<stop offset="1" stop-color="#FCFCFD"/>
|
|
11
|
+
</linearGradient>
|
|
12
12
|
</defs>
|
|
13
13
|
</svg>
|
|
@@ -12,6 +12,7 @@ type TVariant = "primary" | "primaryWeb" | "secondary" | "secondaryWeb" | "terti
|
|
|
12
12
|
* @extends IIconModifiable
|
|
13
13
|
* @extends ButtonHTMLAttributes<HTMLButtonElement>
|
|
14
14
|
* @property {boolean} [bold] - Text bold for link variant.
|
|
15
|
+
* @property {boolean} [external] - Whether the link should open in a new tab.
|
|
15
16
|
* @property {string} [href] - Link URL for link variant.
|
|
16
17
|
* @property {TMode} [mode] - The background theme: dark or light.
|
|
17
18
|
* @property {string} [tooltip] - Tooltip message.
|
|
@@ -21,6 +22,7 @@ type TVariant = "primary" | "primaryWeb" | "secondary" | "secondaryWeb" | "terti
|
|
|
21
22
|
*/
|
|
22
23
|
interface IButtonProps extends IBorderModifiable, IDisplayModifiable, IMarginModifiable, IPaddingModifiable, Partial<IIconModifiable>, ButtonHTMLAttributes<HTMLButtonElement> {
|
|
23
24
|
bold?: boolean;
|
|
25
|
+
external?: boolean;
|
|
24
26
|
href?: string;
|
|
25
27
|
mode?: TMode;
|
|
26
28
|
showArrow?: boolean;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
|
|
1
|
+
declare const StyledIconBtn: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
2
|
+
declare const OutlineContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export { OutlineContainer, StyledIconBtn };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const IconCardContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export { IconCardContainer };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type DefaultIconNames = "book-open" | "bullseye" | "briefcase" | "calendar-xmark" | "diagram-venn" | "file" | "headset" | "infinity" | "messages-question" | "radar" | "scanner-touchscreen" | "screwdriver-wrench" | "sidebar" | "user-robot";
|
|
2
|
+
/**
|
|
3
|
+
* Icon card props interface.
|
|
4
|
+
* @interface IconCardProps
|
|
5
|
+
* @property { DefaultIconNames } icon - Custom selection of FontAwesome icons.
|
|
6
|
+
*/
|
|
7
|
+
interface IIconCardProps {
|
|
8
|
+
icon: DefaultIconNames;
|
|
9
|
+
}
|
|
10
|
+
export type { IIconCardProps };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const InteractiveCardContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
declare const InteractiveCardIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export { InteractiveCardContainer, InteractiveCardIcon };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IconName } from '@fortawesome/free-solid-svg-icons';
|
|
2
|
+
/**
|
|
3
|
+
* Interactive card component props.
|
|
4
|
+
* @interface IInteractiveCardProps
|
|
5
|
+
* @property {string} category - The category of the card, e.g. "Success story".
|
|
6
|
+
* @property {string} description - The description of the card.
|
|
7
|
+
* @property {string} href - The URL of the card.
|
|
8
|
+
* @property {IconName} icon - The icon of the card.
|
|
9
|
+
* @property {string} location - The location of the card, e.g. "Latin America".
|
|
10
|
+
* @property {string} title - The title of the card.
|
|
11
|
+
*/
|
|
12
|
+
interface IInteractiveCardProps {
|
|
13
|
+
category: string;
|
|
14
|
+
description: string;
|
|
15
|
+
href: string;
|
|
16
|
+
icon: IconName;
|
|
17
|
+
location: string;
|
|
18
|
+
title: string;
|
|
19
|
+
}
|
|
20
|
+
export type { IInteractiveCardProps };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -6,10 +6,12 @@ export * from './components/cloud-image';
|
|
|
6
6
|
export * from './components/colors';
|
|
7
7
|
export * from './components/container';
|
|
8
8
|
export * from './components/content-card';
|
|
9
|
+
export * from './components/content-card-carousel';
|
|
9
10
|
export * from './components/form';
|
|
10
11
|
export * from './components/icon';
|
|
11
12
|
export * from './components/icon-button';
|
|
12
13
|
export * from './components/inputs';
|
|
14
|
+
export * from './components/interactive-card';
|
|
13
15
|
export * from './components/language-selector';
|
|
14
16
|
export * from './components/logo';
|
|
15
17
|
export * from './components/logo-carousel';
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@cloudinary/react": "1.13.0",
|
|
8
8
|
"@cloudinary/url-gen": "1.21.0",
|
|
9
|
-
"@fortawesome/free-solid-svg-icons": "6.
|
|
9
|
+
"@fortawesome/free-solid-svg-icons": "6.7.1",
|
|
10
10
|
"@fortawesome/react-fontawesome": "0.2.2",
|
|
11
11
|
"react": "18.2.0",
|
|
12
12
|
"react-dom": "18.2.0",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"storybook": "storybook dev"
|
|
93
93
|
},
|
|
94
94
|
"types": "dist/src/index.d.ts",
|
|
95
|
-
"version": "1.2.
|
|
95
|
+
"version": "1.2.30"
|
|
96
96
|
}
|